PageSourceSearch

https://rumbot.org/assets/index-DRwEXknO.js

js rumbot.org collected 2026-10-08 13:52:21 UTC 728,745 bytes, 307 lines download raw bytes

vendor: 4,136 bytes, lines 1-9
1var Cg=e=>{throw TypeError(e)};var ed=(e,t,n)=>t.has(e)||Cg("Cannot "+n);var k=(e,t,n)=>(ed(e,t,"read from private field"),n?n.call(e):t.get(e)),z=(e,t,n)=>t.has(e)?Cg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),L=(e,t,n,r)=>(ed(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(ed(e,t,"access private method"),n);var pl=(e,t,n,r)=>({set _(s){L(e,t,s,n)},get _(){return k(e,t,r)}});function zk(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Iw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dw={exports:{}},hu={},Mw={exports:{}},te={};/**
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 Ja=Symbol.for("react.element"),Wk=Symbol.for("react.portal"),Hk=Symbol.for("react.fragment"),Kk=Symbol.for("react.strict_mode"),qk=Symbol.for("react.profiler"),Gk=Symbol.for("react.provider"),Qk=Symbol.for("react.context"),Yk=Symbol.for("react.forward_ref"),Jk=Symbol.for("react.suspense"),Xk=Symbol.for("react.memo"),Zk=Symbol.for("react.lazy"),Tg=Symbol.iterator;function eC(e){return e===null||typeof e!="object"?null:(e=Tg&&e[Tg]||e["@@iterator"],typeof e=="function"?e:null)}var Lw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$w=Object.assign,Fw={};function fo(e,t,n){this.props=e,this.context=t,this.refs=Fw,this.updater=n||Lw}fo.prototype.isReactComponent={};fo.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")};fo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Uw(){}Uw.prototype=fo.prototype;function pp(e,t,n){this.props=e,this.context=t,this.refs=Fw,this.updater=n||Lw}var mp=pp.prototype=new Uw;mp.constructor=pp;$w(mp,fo.prototype);mp.isPureReactComponent=!0;var Pg=Array.isArray,Bw=Object.prototype.hasOwnProperty,gp={current:null},Vw={key:!0,ref:!0,__self:!0,__source:!0};function zw(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Bw.call(t,r)&&!Vw.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Ja,type:e,key:i,ref:o,props:s,_owner:gp.current}}function tC(e,t){return{$$typeof:Ja,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yp(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ja}function nC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rg=/\/+/g;function td(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nC(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function Xl(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ja:case Wk:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+td(o,0):r,Pg(s)?(n="",e!=null&&(n=e.replace(Rg,"$&/")+"/"),Xl(s,t,n,"",function(c){return c})):s!=null&&(yp(s)&&(s=tC(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Rg,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Pg(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+td(i,a);o+=Xl(i,t,n,l,s)}else if(l=eC(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+td(i,a++),o+=Xl(i,t,n,l,s);else if(i==="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 ml(e,t,n){if(e==null)return e;var r=[],s=0;return Xl(e,r,"","",function(i){return t.call(n,i,s++)}),r}function rC(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 mt={current:null},Zl={transition:null},sC={ReactCurrentDispatcher:mt,ReactCurrentBatchConfig:Zl,ReactCurrentOwner:gp};function Ww(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:ml,forEach:function(e,t,n){ml(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ml(e,function(){t++}),t},toArray:function(e){return ml(e,function(t){return t})||[]},only:function(e){if(!yp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=fo;te.Fragment=Hk;te.Profiler=qk;te.PureComponent=pp;te.StrictMode=Kk;te.Suspense=Jk;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sC;te.act=Ww;te.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=$w({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=gp.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Bw.call(t,l)&&!Vw.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 c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Ja,type:e.type,key:s,ref:i,props:r,_owner:o}};te.createContext=function(e){return e={$$typeof:Qk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Gk,_context:e},e.Consumer=e};te.createElement=zw;te.createFactory=function(e){var t=zw.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:Yk,render:e}};te.isValidElement=yp;te.lazy=function(e){return{$$typeof:Zk,_payload:{_status:-1,_result:e},_init:rC}};te.memo=function(e,t){return{$$typeof:Xk,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=Zl.transition;Zl.transition={};try{e()}finally{Zl.transition=t}};te.unstable_act=Ww;te.useCallback=function(e,t){return mt.current.useCallback(e,t)};te.useContext=function(e){return mt.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return mt.current.useDeferredValue(e)};te.useEffect=function(e,t){return mt.current.useEffect(e,t)};te.useId=function(){return mt.current.useId()};te.useImperativeHandle=function(e,t,n){return mt.current.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return mt.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return mt.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return mt.current.useMemo(e,t)};te.useReducer=function(e,t,n){return mt.current.useReducer(e,t,n)};te.useRef=function(e){return mt.current.useRef(e)};te.useState=function(e){return mt.current.useState(e)};te.useSyncExternalStore=function(e,t,n){return mt.current.useSyncExternalStore(e,t,n)};te.useTransition=function(){return mt.current.useTransition()};te.version="18.3.1";Mw.exports=te;var x=Mw.exports;const O=Iw(x),vp=zk({__proto__:null,default:O},[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 iC=x,oC=Symbol.for("react.element"),aC=Symbol.for("react.fragment"),lC=Object.prototype.hasOwnProperty,cC=iC.__SECRET_INT
vendor: 11,418 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uC={key:!0,ref:!0,__self:!0,__source:!0};function Hw(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)lC.call(t,r)&&!uC.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:oC,type:e,key:i,ref:o,props:s,_owner:cC.current}}hu.Fragment=aC;hu.jsx=Hw;hu.jsxs=Hw;Dw.exports=hu;var p=Dw.exports,Kw={exports:{}},Dt={},qw={exports:{}},Gw={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(P,A){var M=P.length;P.push(A);e:for(;0<M;){var Q=M-1>>>1,W=P[Q];if(0<s(W,A))P[Q]=A,P[M]=W,M=Q;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var A=P[0],M=P.pop();if(M!==A){P[0]=M;e:for(var Q=0,W=P.length,ee=W>>>1;Q<ee;){var ne=2*(Q+1)-1,Ne=P[ne],et=ne+1,ie=P[et];if(0>s(Ne,M))et<W&&0>s(ie,Ne)?(P[Q]=ie,P[et]=M,Q=et):(P[Q]=Ne,P[ne]=M,Q=ne);else if(et<W&&0>s(ie,M))P[Q]=ie,P[et]=M,Q=et;else break e}}return A}function s(P,A){var M=P.sortIndex-A.sortIndex;return M!==0?M:P.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,h=3,f=!1,y=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(P){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=P)r(c),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(c)}}function S(P){if(m=!1,w(P),!y)if(n(l)!==null)y=!0,G(E);else{var A=n(c);A!==null&&B(S,A.startTime-P)}}function E(P,A){y=!1,m&&(m=!1,g(T),T=-1),f=!0;var M=h;try{for(w(A),d=n(l);d!==null&&(!(d.expirationTime>A)||P&&!U());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,h=d.priorityLevel;var W=Q(d.expirationTime<=A);A=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(l)&&r(l),w(A)}else r(l);d=n(l)}if(d!==null)var ee=!0;else{var ne=n(c);ne!==null&&B(S,ne.startTime-A),ee=!1}return ee}finally{d=null,h=M,f=!1}}var _=!1,C=null,T=-1,R=5,j=-1;function U(){return!(e.unstable_now()-j<R)}function I(){if(C!==null){var P=e.unstable_now();j=P;var A=!0;try{A=C(!0,P)}finally{A?q():(_=!1,C=null)}}else _=!1}var q;if(typeof v=="function")q=function(){v(I)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,Z=D.port2;D.port1.onmessage=I,q=function(){Z.postMessage(null)}}else q=function(){b(I,0)};function G(P){C=P,_||(_=!0,q())}function B(P,A){T=b(function(){P(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){y||f||(y=!0,G(E))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var A=3;break;default:A=h}var M=h;h=A;try{return P()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,A){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var M=h;h=P;try{return A()}finally{h=M}},e.unstable_scheduleCallback=function(P,A,M){var Q=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?Q+M:Q):M=Q,P){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=M+W,P={id:u++,callback:A,priorityLevel:P,startTime:M,expirationTime:W,sortIndex:-1},M>Q?(P.sortIndex=M,t(c,P),n(l)===null&&P===n(c)&&(m?(g(T),T=-1):m=!0,B(S,M-Q))):(P.sortIndex=W,t(l,P),y||f||(y=!0,G(E))),P},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(P){var A=h;return function(){var M=h;h=A;try{return P.apply(this,arguments)}finally{h=M}}}})(Gw);qw.exports=Gw;var dC=qw.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 hC=x,It=dC;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qw=new Set,ha={};function Hs(e,t){to(e,t),to(e+"Capture",t)}function to(e,t){for(ha[e]=t,e=0;e<t.length;e++)Qw.add(t[e])}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ph=Object.prototype.hasOwnProperty,fC=/^[: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]*$/,Ag={},jg={};function pC(e){return ph.call(jg,e)?!0:ph.call(Ag,e)?!1:fC.test(e)?jg[e]=!0:(Ag[e]=!0,!1)}function mC(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 gC(e,t,n,r){if(t===null||typeof t>"u"||mC(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 gt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new gt(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){Xe[e]=new gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wp=/[\-:]([a-z])/g;function xp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wp,xp);Xe[t]=new gt(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(wp,xp);Xe[t]=new gt(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(wp,xp);Xe[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new gt(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function bp(e,t,n,r){var s=Xe.hasOwnProperty(t)?Xe[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gC(t,n,s,r)&&(n=null),r||s===null?pC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nr=hC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gl=Symbol.for("react.element"),pi=Symbol.for("react.portal"),mi=Symbol.for("react.fragment"),Sp=Symbol.for("react.strict_mode"),mh=Symbol.for("react.profiler"),Yw=Symbol.for("react.provider"),Jw=Symbol.for("react.context"),Ep=Symbol.for("react.forward_ref"),gh=Symbol.for("react.suspense"),yh=Symbol.for("react.suspense_list"),_p=Symbol.for("react.memo"),vr=Symbol.for("react.lazy"),Xw=Symbol.for("react.offscreen"),Ng=Symbol.iterator;function jo(e){return e===null||typeof e!="object"?null:(e=Ng&&e[Ng]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Object.assign,nd;function zo(e){if(nd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);nd=t&&t[1]||""}return`
34`+nd+e}var rd=!1;function sd(e,t){if(!e||rd)return"";rd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}
vendor: 15,597 bytes, lines 34-37
34catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
35`),i=r.stack.split(`
36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=`
37`+s[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{rd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zo(e):""}function yC(e){switch(e.tag){case 5:return zo(e.type);case 16:return zo("Lazy");case 13:return zo("Suspense");case 19:return zo("SuspenseList");case 0:case 2:case 15:return e=sd(e.type,!1),e;case 11:return e=sd(e.type.render,!1),e;case 1:return e=sd(e.type,!0),e;default:return""}}function vh(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 mi:return"Fragment";case pi:return"Portal";case mh:return"Profiler";case Sp:return"StrictMode";case gh:return"Suspense";case yh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jw:return(e.displayName||"Context")+".Consumer";case Yw:return(e._context.displayName||"Context")+".Provider";case Ep:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _p:return t=e.displayName||null,t!==null?t:vh(e.type)||"Memo";case vr:t=e._payload,e=e._init;try{return vh(e(t))}catch{}}return null}function vC(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 vh(t);case 8:return t===Sp?"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 Gr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wC(e){var t=Zw(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 s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.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 yl(e){e._valueTracker||(e._valueTracker=wC(e))}function ex(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sc(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 wh(e,t){var n=t.checked;return _e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Og(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gr(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 tx(e,t){t=t.checked,t!=null&&bp(e,"checked",t,!1)}function xh(e,t){tx(e,t);var n=Gr(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")?bh(e,t.type,n):t.hasOwnProperty("defaultValue")&&bh(e,t.type,Gr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ig(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 bh(e,t,n){(t!=="number"||Sc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wo=Array.isArray;function Ni(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Gr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Sh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return _e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(Wo(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Gr(n)}}function nx(e,t){var n=Gr(t.value),r=Gr(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 Mg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rx(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 Eh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var vl,sx=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(vl=vl||document.createElement("div"),vl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=vl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yo={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},xC=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){xC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function ix(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function ox(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=ix(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var bC=_e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _h(e,t){if(t){if(bC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function kh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ch=null;function kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Th=null,Oi=null,Ii=null;function Lg(e){if(e=el(e)){if(typeof Th!="function")throw Error(N(280));var t=e.stateNode;t&&(t=yu(t),Th(e.stateNode,e.type,t))}}function ax(e){Oi?Ii?Ii.push(e):Ii=[e]:Oi=e}function lx(){if(Oi){var e=Oi,t=Ii;if(Ii=Oi=null,Lg(e),t)for(e=0;e<t.length;e++)Lg(t[e])}}function cx(e,t){return e(t)}function ux(){}var id=!1;function dx(e,t,n){if(id)return e(t,n);id=!0;try{return cx(e,t,n)}finally{id=!1,(Oi!==null||Ii!==null)&&(ux(),lx())}}function pa(e,t){var n=e.stateNode;if(n===null)return null;var r=yu(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(N(231,t,typeof n));return n}var Ph=!1;if(Gn)try{var No={};Object.defineProperty(No,"passive",{get:function(){Ph=!0}}),window.addEventListener("test",No,No),window.removeEventListener("test",No,No)}catch{Ph=!1}function SC(e,t,n,r,s,i,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Jo=!1,Ec=null,_c=!1,Rh=null,EC={onError:function(e){Jo=!0,Ec=e}};function _C(e,t,n,r,s,i,o,a,l){Jo=!1,Ec=null,SC.apply(EC,arguments)}function kC(e,t,n,r,s,i,o,a,l){if(_C.apply(this,arguments),Jo){if(Jo){var c=Ec;Jo=!1,Ec=null}else throw Error(N(198));_c||(_c=!0,Rh=c)}}function Ks(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 hx(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 $g(e){if(Ks(e)!==e)throw Error(N(188))}function CC(e){var t=e.alternate;if(!t){if(t=Ks(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return $g(s),e;if(i===r)return $g(s),t;i=i.sibling}throw Error(N(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,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){for(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)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function fx(e){return e=CC(e),e!==null?px(e):null}function px(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=px(e);if(t!==null)return t;e=e.sibling}return null}var mx=It.unstable_scheduleCallback,Fg=It.unstable_cancelCallback,TC=It.unstable_shouldYield,PC=It.unstable_requestPaint,Ae=It.unstable_now,RC=It.unstable_getCurrentPriorityLevel,Cp=It.unstable_ImmediatePriority,gx=It.unstable_UserBlockingPriority,kc=It.unstable_NormalPriority,AC=It.unstable_LowPriority,yx=It.unstable_IdlePriority,fu=null,Rn=null;function jC(e){if(Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(fu,e,void 0,(e.current.flags&128)===128)}catch{}}var fn=Math.clz32?Math.clz32:IC,NC=Math.log,OC=Math.LN2;function IC(e){return e>>>=0,e===0?32:31-(NC(e)/OC|0)|0}var wl=64,xl=4194304;function Ho(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 Cc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ho(a):(i&=o,i!==0&&(r=Ho(i)))}else o=n&~s,o!==0?r=Ho(o):i!==0&&(r=Ho(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&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-fn(t),s=1<<n,r|=e[n],t&=~s;return r}function DC(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 MC(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-fn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=DC(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Ah(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vx(){var e=wl;return wl<<=1,!(wl&4194240)&&(wl=64),e}function od(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fn(t),e[t]=n}function LC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-fn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Tp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-fn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ae=0;function wx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xx,Pp,bx,Sx,Ex,jh=!1,bl=[],$r=null,Fr=null,Ur=null,ma=new Map,ga=new Map,br=[],$C="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 Ug(e,t){switch(e){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":Fr=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":ma.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ga.delete(t.pointerId)}}function Oo(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=el(t),t!==null&&Pp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 10,431 bytes, line 37
37function FC(e,t,n,r,s){switch(t){case"focusin":return $r=Oo($r,e,t,n,r,s),!0;case"dragenter":return Fr=Oo(Fr,e,t,n,r,s),!0;case"mouseover":return Ur=Oo(Ur,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return ma.set(i,Oo(ma.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ga.set(i,Oo(ga.get(i)||null,e,t,n,r,s)),!0}return!1}function _x(e){var t=ys(e.target);if(t!==null){var n=Ks(t);if(n!==null){if(t=n.tag,t===13){if(t=hx(n),t!==null){e.blockedOn=t,Ex(e.priority,function(){bx(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 ec(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Nh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ch=r,n.target.dispatchEvent(r),Ch=null}else return t=el(n),t!==null&&Pp(t),e.blockedOn=n,!1;t.shift()}return!0}function Bg(e,t,n){ec(e)&&n.delete(t)}function UC(){jh=!1,$r!==null&&ec($r)&&($r=null),Fr!==null&&ec(Fr)&&(Fr=null),Ur!==null&&ec(Ur)&&(Ur=null),ma.forEach(Bg),ga.forEach(Bg)}function Io(e,t){e.blockedOn===t&&(e.blockedOn=null,jh||(jh=!0,It.unstable_scheduleCallback(It.unstable_NormalPriority,UC)))}function ya(e){function t(s){return Io(s,e)}if(0<bl.length){Io(bl[0],e);for(var n=1;n<bl.length;n++){var r=bl[n];r.blockedOn===e&&(r.blockedOn=null)}}for($r!==null&&Io($r,e),Fr!==null&&Io(Fr,e),Ur!==null&&Io(Ur,e),ma.forEach(t),ga.forEach(t),n=0;n<br.length;n++)r=br[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<br.length&&(n=br[0],n.blockedOn===null);)_x(n),n.blockedOn===null&&br.shift()}var Di=nr.ReactCurrentBatchConfig,Tc=!0;function BC(e,t,n,r){var s=ae,i=Di.transition;Di.transition=null;try{ae=1,Rp(e,t,n,r)}finally{ae=s,Di.transition=i}}function VC(e,t,n,r){var s=ae,i=Di.transition;Di.transition=null;try{ae=4,Rp(e,t,n,r)}finally{ae=s,Di.transition=i}}function Rp(e,t,n,r){if(Tc){var s=Nh(e,t,n,r);if(s===null)gd(e,t,r,Pc,n),Ug(e,r);else if(FC(s,e,t,n,r))r.stopPropagation();else if(Ug(e,r),t&4&&-1<$C.indexOf(e)){for(;s!==null;){var i=el(s);if(i!==null&&xx(i),i=Nh(e,t,n,r),i===null&&gd(e,t,r,Pc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else gd(e,t,r,null,n)}}var Pc=null;function Nh(e,t,n,r){if(Pc=null,e=kp(r),e=ys(e),e!==null)if(t=Ks(e),t===null)e=null;else if(n=t.tag,n===13){if(e=hx(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 Pc=e,null}function kx(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(RC()){case Cp:return 1;case gx:return 4;case kc:case AC:return 16;case yx:return 536870912;default:return 16}default:return 16}}var Ir=null,Ap=null,tc=null;function Cx(){if(tc)return tc;var e,t=Ap,n=t.length,r,s="value"in Ir?Ir.value:Ir.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return tc=s.slice(e,1<r?1-r:void 0)}function nc(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 Sl(){return!0}function Vg(){return!1}function Mt(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Sl:Vg,this.isPropagationStopped=Vg,this}return _e(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=Sl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Sl)},persist:function(){},isPersistent:Sl}),t}var po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jp=Mt(po),Za=_e({},po,{view:0,detail:0}),zC=Mt(Za),ad,ld,Do,pu=_e({},Za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Np,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!==Do&&(Do&&e.type==="mousemove"?(ad=e.screenX-Do.screenX,ld=e.screenY-Do.screenY):ld=ad=0,Do=e),ad)},movementY:function(e){return"movementY"in e?e.movementY:ld}}),zg=Mt(pu),WC=_e({},pu,{dataTransfer:0}),HC=Mt(WC),KC=_e({},Za,{relatedTarget:0}),cd=Mt(KC),qC=_e({},po,{animationName:0,elapsedTime:0,pseudoElement:0}),GC=Mt(qC),QC=_e({},po,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),YC=Mt(QC),JC=_e({},po,{data:0}),Wg=Mt(JC),XC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZC={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"},eT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=eT[e])?!!t[e]:!1}function Np(){return tT}var nT=_e({},Za,{key:function(e){if(e.key){var t=XC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ZC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Np,charCode:function(e){return e.type==="keypress"?nc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rT=Mt(nT),sT=_e({},pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hg=Mt(sT),iT=_e({},Za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Np}),oT=Mt(iT),aT=_e({},po,{propertyName:0,elapsedTime:0,pseudoElement:0}),lT=Mt(aT),cT=_e({},pu,{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}),uT=Mt(cT),dT=[9,13,27,32],Op=Gn&&"CompositionEvent"in window,Xo=null;Gn&&"documentMode"in document&&(Xo=document.documentMode);var hT=Gn&&"TextEvent"in window&&!Xo,Tx=Gn&&(!Op||Xo&&8<Xo&&11>=Xo),Kg=" ",qg=!1;function Px(e,t){switch(e){case"keyup":return dT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gi=!1;function fT(e,t){switch(e){case"compositionend":return Rx(t);case"keypress":return t.which!==32?null:(qg=!0,Kg);case"textInput":return e=t.data,e===Kg&&qg?null:e;default:return null}}function pT(e,t){if(gi)return e==="compositionend"||!Op&&Px(e,t)?(e=Cx(),tc=Ap=Ir=null,gi=!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 Tx&&t.locale!=="ko"?null:t.data;default:return null}}var mT={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 Gg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mT[e.type]:t==="textarea"}function Ax(e,t,n,r){ax(r),t=Rc(t,"onChange"),0<t.length&&(n=new jp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zo=null,va=null;function gT(e){Bx(e,0)}function mu(e){var t=wi(e);if(ex(t))return e}function yT(e,t){if(e==="change")return t}var jx=!1;if(Gn){var ud;if(Gn){var dd="oninput"in document;if(!dd){var Qg=document.createElement("div");Qg.setAttribute("oninput","return;"),dd=typeof Qg.oninput=="function"}ud=dd}else ud=!1;jx=ud&&(!document.documentMode||9<document.documentMode)}function Yg(){Zo&&(Zo.detachEvent("onpropertychange",Nx),va=Zo=null)}function Nx(e){if(e.propertyName==="value"&&mu(va)){var t=[];Ax(t,va,e,kp(e)),dx(gT,t)}}function vT(e,t,n){e==="focusin"?(Yg(),Zo=t,va=n,Zo.attachEvent("onpropertychange",Nx)):e==="focusout"&&Yg()}function wT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mu(va)}function xT(e,t){if(e==="click")return mu(t)}function bT(e,t){if(e==="input"||e==="change")return mu(t)}function ST(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gn=typeof Object.is=="function"?Object.is:ST;function wa(e,t){if(gn(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!ph.call(t,s)||!gn(e[s],t[s]))return!1}return!0}function Jg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xg(e,t){var n=Jg(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=Jg(n)}}function Ox(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ox(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ix(){for(var e=window,t=Sc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sc(e.document)}return t}function Ip(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 ET(e){var t=Ix(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ox(n.ownerDocument.documentElement,n)){if(r!==null&&Ip(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Xg(n,i);var o=Xg(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>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 _T=Gn&&"documentMode"in document&&11>=document.documentMode,yi=null,Oh=null,ea=null,Ih=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ih||yi==null||yi!==Sc(r)||(r=yi,"selectionStart"in r&&Ip(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}),ea&&wa(ea,r)||(ea=r,r=Rc(Oh,"onSelect"),0<r.length&&(t=new jp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yi)))}function El(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vi={animationend:El("Animation","AnimationEnd"),animationiteration:El("Animation","AnimationIteration"),animationstart:El("Animation","AnimationStart"),transitionend:El("Transition","TransitionEnd")},hd={},Dx={};Gn&&(Dx=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function gu(e){if(hd[e])return hd[e];if(!vi[e])return e;var t=vi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Dx)return hd[e]=t[n];return e}var Mx=gu("animationend"),Lx=gu("animationiteration"),$x=gu("animationstart"),Fx=gu("transitionend"),Ux=new Map,ey="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 es(e,t){Ux.set(e,t),Hs(t,[e])}for(var fd=0;fd<ey.length;fd++){var pd=ey[fd],kT=pd.toLowerCase(),CT=pd[0].toUpperCase()+pd.slice(1);es(kT,"on"+CT)}es(Mx,"onAnimationEnd");es(Lx,"onAnimationIteration");es($x,"onAnimationStart");es("dblclick","onDoubleClick");es("focusin","onFocus");es("focusout","onBlur");es(Fx,"onTransitionEnd");to("onMouseEnter",["mouseout","mouseover"]);to("onMouseLeave",["mouseout","mouseover"]);to("onPointerEnter",["pointerout","pointerover"]);to("onPointerLeave",["pointerout","pointerover"]);Hs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37Hs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ko="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(" "),TT=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ko));function ty(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,kC(r,t,void 0,e),e.currentTarget=null}function Bx(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;ty(s,a,c),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;ty(s,a,c),i=l}}}if(_c)throw e=Rh,_c=!1,Rh=null,e}function fe(e,t){var n=t[Fh];n===void 0&&(n=t[Fh]=new Set);var r=e+"__bubble";n.has(r)||(Vx(t,e,2,!1),n.add(r))}function md(e,t,n){var r=0;t&&(r|=4),Vx(n,e,r,t)}var _l="_reactListening"+Math.random().toString(36).slice(2);function xa(e){if(!e[_l]){e[_l]=!0,Qw.forEach(function(n){n!=="selectionchange"&&(TT.has(n)||md(n,!1,e),md(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_l]||(t[_l]=!0,md("selectionchange",!1,t))}}function Vx(e,t,n,r){switch(kx(t)){case 1:var s=BC;break;case 4:s=VC;break;default:s=Rp}n=s.bind(null,t,n,e),s=void 0,!Ph||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function gd(e,t,n,r,s){var i=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===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=ys(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}dx(function(){var c=i,u=kp(n),d=[];e:{var h=Ux.get(e);if(h!==void 0){var f=jp,y=e;switch(e){case"keypress":if(nc(n)===0)break e;case"keydown":case"keyup":f=rT;break;case"focusin":y="focus",f=cd;break;case"focusout":y="blur",f=cd;break;case"beforeblur":case"afterblur":f=cd;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":f=zg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=HC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=oT;break;case Mx:case Lx:case $x:f=GC;break;case Fx:f=lT;break;case"scroll":f=zC;break;case"wheel":f=uT;break;case"copy":case"cut":case"paste":f=YC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Hg}var m=(t&4)!==0,b=!m&&e==="scroll",g=m?h!==null?h+"Capture":null:h;m=[];for(var v=c,w;v!==null;){w=v;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,g!==null&&(S=pa(v,g),S!=null&&m.push(ba(v,S,w)))),b)break;v=v.return}0<m.length&&(h=new f(h,y,null,n,u),d.push({event:h,listeners:m}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==Ch&&(y=n.relatedTarget||n.fromElement)&&(ys(y)||y[Qn]))break e;if((f||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,f?(y=n.relatedTarget||n.toElement,f=c,y=y?ys(y):null,y!==null&&(b=Ks(y),y!==b||y.tag!==5&&y.tag!==6)&&(y=null)):(f=null,y=c),f!==y)){if(m=zg,S="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(m=Hg,S="onPointerLeave",g="onPointerEnter",v="pointer"),b=f==null?h:wi(f),w=y==null?h:wi(y),h=new m(S,v+"leave",f,n,u),h.target=b,h.relatedTarget=w,S=null,ys(u)===c&&(m=new m(g,v+"enter",y,n,u),m.target=w,m.relatedTarget=b,S=m),b=S,f&&y)t:{for(m=f,g=y,v=0,w=m;w;w=ei(w))v++;for(w=0,S=g;S;S=ei(S))w++;for(;0<v-w;)m=ei(m),v--;for(;0<w-v;)g=ei(g),w--;for(;v--;){if(m===g||g!==null&&m===g.alternate)break t;m=ei(m),g=ei(g)}m=null}else m=null;f!==null&&ny(d,h,f,m,!1),y!==null&&b!==null&&ny(d,b,y,m,!0)}}
vendor: 5,681 bytes, lines 37-38
37e:{if(h=c?wi(c):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var E=yT;else if(Gg(h))if(jx)E=bT;else{E=wT;var _=vT}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=xT);if(E&&(E=E(e,c))){Ax(d,E,n,u);break e}_&&_(e,h,c),e==="focusout"&&(_=h._wrapperState)&&_.controlled&&h.type==="number"&&bh(h,"number",h.value)}switch(_=c?wi(c):window,e){case"focusin":(Gg(_)||_.contentEditable==="true")&&(yi=_,Oh=c,ea=null);break;case"focusout":ea=Oh=yi=null;break;case"mousedown":Ih=!0;break;case"contextmenu":case"mouseup":case"dragend":Ih=!1,Zg(d,n,u);break;case"selectionchange":if(_T)break;case"keydown":case"keyup":Zg(d,n,u)}var C;if(Op)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else gi?Px(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Tx&&n.locale!=="ko"&&(gi||T!=="onCompositionStart"?T==="onCompositionEnd"&&gi&&(C=Cx()):(Ir=u,Ap="value"in Ir?Ir.value:Ir.textContent,gi=!0)),_=Rc(c,T),0<_.length&&(T=new Wg(T,e,null,n,u),d.push({event:T,listeners:_}),C?T.data=C:(C=Rx(n),C!==null&&(T.data=C)))),(C=hT?fT(e,n):pT(e,n))&&(c=Rc(c,"onBeforeInput"),0<c.length&&(u=new Wg("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=C))}Bx(d,t)})}function ba(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=pa(e,n),i!=null&&r.unshift(ba(e,i,s)),i=pa(e,t),i!=null&&r.push(ba(e,i,s))),e=e.return}return r}function ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ny(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,s?(l=pa(n,i),l!=null&&o.unshift(ba(n,l,a))):s||(l=pa(n,i),l!=null&&o.push(ba(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var PT=/\r\n?/g,RT=/\u0000|\uFFFD/g;function ry(e){return(typeof e=="string"?e:""+e).replace(PT,`
38`).replace(RT,"")}function kl(e,t,n){if(t=ry(t),ry(e)!==t&&n)throw Error(N(425))}function Ac(){}var Dh=null,Mh=null;function Lh(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 $h=typeof setTimeout=="function"?setTimeout:void 0,AT=typeof clearTimeout=="function"?clearTimeout:void 0,sy=typeof Promise=="function"?Promise:void 0,jT=typeof queueMicrotask=="function"?queueMicrotask:typeof sy<"u"?function(e){return sy.resolve(null).then(e).catch(NT)}:$h;function NT(e){setTimeout(function(){throw e})}function yd(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),ya(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ya(t)}function Br(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 iy(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 mo=Math.random().toString(36).slice(2),Cn="__reactFiber$"+mo,Sa="__reactProps$"+mo,Qn="__reactContainer$"+mo,Fh="__reactEvents$"+mo,OT="__reactListeners$"+mo,IT="__reactHandles$"+mo;function ys(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qn]||n[Cn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=iy(e);e!==null;){if(n=e[Cn])return n;e=iy(e)}return t}e=n,n=e.parentNode}return null}function el(e){return e=e[Cn]||e[Qn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function yu(e){return e[Sa]||null}var Uh=[],xi=-1;function ts(e){return{current:e}}function me(e){0>xi||(e.current=Uh[xi],Uh[xi]=null,xi--)}function ue(e,t){xi++,Uh[xi]=e.current,e.current=t}var Qr={},at=ts(Qr),St=ts(!1),Ds=Qr;function no(e,t){var n=e.type.contextTypes;if(!n)return Qr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Et(e){return e=e.childContextTypes,e!=null}function jc(){me(St),me(at)}function oy(e,t,n){if(at.current!==Qr)throw Error(N(168));ue(at,t),ue(St,n)}function zx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(N(108,vC(e)||"Unknown",s));return _e({},n,r)}function Nc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qr,Ds=at.current,ue(at,e),ue(St,St.current),!0}function ay(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=zx(e,t,Ds),r.__reactInternalMemoizedMergedChildContext=e,me(St),me(at),ue(at,e)):me(St),ue(St,n)}var Bn=null,vu=!1,vd=!1;function Wx(e){Bn===null?Bn=[e]:Bn.push(e)}function DT(e){vu=!0,Wx(e)}function ns(){if(!vd&&Bn!==null){vd=!0;var e=0,t=ae;try{var n=Bn;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Bn=null,vu=!1}catch(s){throw Bn!==null&&(Bn=Bn.slice(e+1)),mx(Cp,ns),s}finally{ae=t,vd=!1}}return null}var bi=[],Si=0,Oc=null,Ic=0,Ut=[],Bt=0,Ms=null,Wn=1,Hn="";function ds(e,t){bi[Si++]=Ic,bi[Si++]=Oc,Oc=e,Ic=t}
vendor: 16,148 bytes, line 38
38function Hx(e,t,n){Ut[Bt++]=Wn,Ut[Bt++]=Hn,Ut[Bt++]=Ms,Ms=e;var r=Wn;e=Hn;var s=32-fn(r)-1;r&=~(1<<s),n+=1;var i=32-fn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Wn=1<<32-fn(t)+s|n<<s|r,Hn=i+e}else Wn=1<<i|n<<s|r,Hn=e}function Dp(e){e.return!==null&&(ds(e,1),Hx(e,1,0))}function Mp(e){for(;e===Oc;)Oc=bi[--Si],bi[Si]=null,Ic=bi[--Si],bi[Si]=null;for(;e===Ms;)Ms=Ut[--Bt],Ut[Bt]=null,Hn=Ut[--Bt],Ut[Bt]=null,Wn=Ut[--Bt],Ut[Bt]=null}var Nt=null,At=null,we=!1,dn=null;function Kx(e,t){var n=Vt(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 ly(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Nt=e,At=Br(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Nt=e,At=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ms!==null?{id:Wn,overflow:Hn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Nt=e,At=null,!0):!1;default:return!1}}function Bh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Vh(e){if(we){var t=At;if(t){var n=t;if(!ly(e,t)){if(Bh(e))throw Error(N(418));t=Br(n.nextSibling);var r=Nt;t&&ly(e,t)?Kx(r,n):(e.flags=e.flags&-4097|2,we=!1,Nt=e)}}else{if(Bh(e))throw Error(N(418));e.flags=e.flags&-4097|2,we=!1,Nt=e}}}function cy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Nt=e}function Cl(e){if(e!==Nt)return!1;if(!we)return cy(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Lh(e.type,e.memoizedProps)),t&&(t=At)){if(Bh(e))throw qx(),Error(N(418));for(;t;)Kx(e,t),t=Br(t.nextSibling)}if(cy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){At=Br(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}At=null}}else At=Nt?Br(e.stateNode.nextSibling):null;return!0}function qx(){for(var e=At;e;)e=Br(e.nextSibling)}function ro(){At=Nt=null,we=!1}function Lp(e){dn===null?dn=[e]:dn.push(e)}var MT=nr.ReactCurrentBatchConfig;function Mo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Tl(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uy(e){var t=e._init;return t(e._payload)}function Gx(e){function t(g,v){if(e){var w=g.deletions;w===null?(g.deletions=[v],g.flags|=16):w.push(v)}}function n(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function r(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function s(g,v){return g=Hr(g,v),g.index=0,g.sibling=null,g}function i(g,v,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<v?(g.flags|=2,v):w):(g.flags|=2,v)):(g.flags|=1048576,v)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,v,w,S){return v===null||v.tag!==6?(v=kd(w,g.mode,S),v.return=g,v):(v=s(v,w),v.return=g,v)}function l(g,v,w,S){var E=w.type;return E===mi?u(g,v,w.props.children,S,w.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vr&&uy(E)===v.type)?(S=s(v,w.props),S.ref=Mo(g,v,w),S.return=g,S):(S=cc(w.type,w.key,w.props,null,g.mode,S),S.ref=Mo(g,v,w),S.return=g,S)}function c(g,v,w,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Cd(w,g.mode,S),v.return=g,v):(v=s(v,w.children||[]),v.return=g,v)}function u(g,v,w,S,E){return v===null||v.tag!==7?(v=Os(w,g.mode,S,E),v.return=g,v):(v=s(v,w),v.return=g,v)}function d(g,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=kd(""+v,g.mode,w),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case gl:return w=cc(v.type,v.key,v.props,null,g.mode,w),w.ref=Mo(g,null,v),w.return=g,w;case pi:return v=Cd(v,g.mode,w),v.return=g,v;case vr:var S=v._init;return d(g,S(v._payload),w)}if(Wo(v)||jo(v))return v=Os(v,g.mode,w,null),v.return=g,v;Tl(g,v)}return null}function h(g,v,w,S){var E=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return E!==null?null:a(g,v,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case gl:return w.key===E?l(g,v,w,S):null;case pi:return w.key===E?c(g,v,w,S):null;case vr:return E=w._init,h(g,v,E(w._payload),S)}if(Wo(w)||jo(w))return E!==null?null:u(g,v,w,S,null);Tl(g,w)}return null}function f(g,v,w,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(w)||null,a(v,g,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case gl:return g=g.get(S.key===null?w:S.key)||null,l(v,g,S,E);case pi:return g=g.get(S.key===null?w:S.key)||null,c(v,g,S,E);case vr:var _=S._init;return f(g,v,w,_(S._payload),E)}if(Wo(S)||jo(S))return g=g.get(w)||null,u(v,g,S,E,null);Tl(v,S)}return null}function y(g,v,w,S){for(var E=null,_=null,C=v,T=v=0,R=null;C!==null&&T<w.length;T++){C.index>T?(R=C,C=null):R=C.sibling;var j=h(g,C,w[T],S);if(j===null){C===null&&(C=R);break}e&&C&&j.alternate===null&&t(g,C),v=i(j,v,T),_===null?E=j:_.sibling=j,_=j,C=R}if(T===w.length)return n(g,C),we&&ds(g,T),E;if(C===null){for(;T<w.length;T++)C=d(g,w[T],S),C!==null&&(v=i(C,v,T),_===null?E=C:_.sibling=C,_=C);return we&&ds(g,T),E}for(C=r(g,C);T<w.length;T++)R=f(C,g,T,w[T],S),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?T:R.key),v=i(R,v,T),_===null?E=R:_.sibling=R,_=R);return e&&C.forEach(function(U){return t(g,U)}),we&&ds(g,T),E}function m(g,v,w,S){var E=jo(w);if(typeof E!="function")throw Error(N(150));if(w=E.call(w),w==null)throw Error(N(151));for(var _=E=null,C=v,T=v=0,R=null,j=w.next();C!==null&&!j.done;T++,j=w.next()){C.index>T?(R=C,C=null):R=C.sibling;var U=h(g,C,j.value,S);if(U===null){C===null&&(C=R);break}e&&C&&U.alternate===null&&t(g,C),v=i(U,v,T),_===null?E=U:_.sibling=U,_=U,C=R}if(j.done)return n(g,C),we&&ds(g,T),E;if(C===null){for(;!j.done;T++,j=w.next())j=d(g,j.value,S),j!==null&&(v=i(j,v,T),_===null?E=j:_.sibling=j,_=j);return we&&ds(g,T),E}for(C=r(g,C);!j.done;T++,j=w.next())j=f(C,g,T,j.value,S),j!==null&&(e&&j.alternate!==null&&C.delete(j.key===null?T:j.key),v=i(j,v,T),_===null?E=j:_.sibling=j,_=j);return e&&C.forEach(function(I){return t(g,I)}),we&&ds(g,T),E}function b(g,v,w,S){if(typeof w=="object"&&w!==null&&w.type===mi&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case gl:e:{for(var E=w.key,_=v;_!==null;){if(_.key===E){if(E=w.type,E===mi){if(_.tag===7){n(g,_.sibling),v=s(_,w.props.children),v.return=g,g=v;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vr&&uy(E)===_.type){n(g,_.sibling),v=s(_,w.props),v.ref=Mo(g,_,w),v.return=g,g=v;break e}n(g,_);break}else t(g,_);_=_.sibling}w.type===mi?(v=Os(w.props.children,g.mode,S,w.key),v.return=g,g=v):(S=cc(w.type,w.key,w.props,null,g.mode,S),S.ref=Mo(g,v,w),S.return=g,g=S)}return o(g);case pi:e:{for(_=w.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(g,v.sibling),v=s(v,w.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Cd(w,g.mode,S),v.return=g,g=v}return o(g);case vr:return _=w._init,b(g,v,_(w._payload),S)}if(Wo(w))return y(g,v,w,S);if(jo(w))return m(g,v,w,S);Tl(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(g,v.sibling),v=s(v,w),v.return=g,g=v):(n(g,v),v=kd(w,g.mode,S),v.return=g,g=v),o(g)):n(g,v)}return b}var so=Gx(!0),Qx=Gx(!1),Dc=ts(null),Mc=null,Ei=null,$p=null;function Fp(){$p=Ei=Mc=null}function Up(e){var t=Dc.current;me(Dc),e._currentValue=t}function zh(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 Mi(e,t){Mc=e,$p=Ei=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bt=!0),e.firstContext=null)}function Gt(e){var t=e._currentValue;if($p!==e)if(e={context:e,memoizedValue:t,next:null},Ei===null){if(Mc===null)throw Error(N(308));Ei=e,Mc.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var vs=null;function Bp(e){vs===null?vs=[e]:vs.push(e)}function Yx(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Bp(t)):(n.next=s.next,s.next=n),t.interleaved=n,Yn(e,r)}function Yn(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 wr=!1;function Vp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jx(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 Kn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,se&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Yn(e,n)}return s=r.interleaved,s===null?(t.next=t,Bp(r)):(t.next=s.next,s.next=t),r.interleaved=t,Yn(e,n)}function rc(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,Tp(e,n)}}function dy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=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};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Lc(e,t,n,r){var s=e.updateQueue;wr=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,u=c=l=null,a=i;do{var h=a.lane,f=a.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,m=a;switch(h=t,f=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){d=y.call(f,d,h);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,h=typeof y=="function"?y.call(f,d,h):y,h==null)break e;d=_e({},d,h);break e;case 2:wr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=f,l=d):u=u.next=f,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(u===null&&(l=d),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=u,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);$s|=o,e.lanes=o,e.memoizedState=d}}function hy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(N(191,s));s.call(r)}}}var tl={},An=ts(tl),Ea=ts(tl),_a=ts(tl);function ws(e){if(e===tl)throw Error(N(174));return e}function zp(e,t){switch(ue(_a,t),ue(Ea,e),ue(An,tl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Eh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Eh(t,e)}me(An),ue(An,t)}function io(){me(An),me(Ea),me(_a)}function Xx(e){ws(_a.current);var t=ws(An.current),n=Eh(t,e.type);t!==n&&(ue(Ea,e),ue(An,n))}function Wp(e){Ea.current===e&&(me(An),me(Ea))}var be=ts(0);function $c(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 wd=[];function Hp(){for(var e=0;e<wd.length;e++)wd[e]._workInProgressVersionPrimary=null;wd.length=0}var sc=nr.ReactCurrentDispatcher,xd=nr.ReactCurrentBatchConfig,Ls=0,Ee=null,$e=null,Ve=null,Fc=!1,ta=!1,ka=0,LT=0;function tt(){throw Error(N(321))}function Kp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gn(e[n],t[n]))return!1;return!0}function qp(e,t,n,r,s,i){if(Ls=i,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sc.current=e===null||e.memoizedState===null?BT:VT,e=n(r,s),ta){i=0;do{if(ta=!1,ka=0,25<=i)throw Error(N(301));i+=1,Ve=$e=null,t.updateQueue=null,sc.current=zT,e=n(r,s)}while(ta)}if(sc.current=Uc,t=$e!==null&&$e.next!==null,Ls=0,Ve=$e=Ee=null,Fc=!1,t)throw Error(N(300));return e}function Gp(){var e=ka!==0;return ka=0,e}function bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?Ee.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Qt(){if($e===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=Ve===null?Ee.memoizedState:Ve.next;if(t!==null)Ve=t,$e=e;else{if(e===null)throw Error(N(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Ve===null?Ee.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Ca(e,t){return typeof t=="function"?t(e):t}function bd(e){var t=Qt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=$e,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,c=i;do{var u=c.lane;if((Ls&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,Ee.lanes|=u,$s|=u}c=c.next}while(c!==null&&c!==i);l===null?o=r:l.next=a,gn(r,t.memoizedState)||(bt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Ee.lanes|=i,$s|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sd(e){var t=Qt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);gn(i,t.memoizedState)||(bt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Zx(){}function eb(e,t){var n=Ee,r=Qt(),s=t(),i=!gn(r.memoizedState,s);if(i&&(r.memoizedState=s,bt=!0),r=r.queue,Qp(rb.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,Ta(9,nb.bind(null,n,r,s,t),void 0,null),He===null)throw Error(N(349));Ls&30||tb(n,t,s)}return s}function tb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function nb(e,t,n,r){t.value=n,t.getSnapshot=r,sb(t)&&ib(e)}
vendor: 5,411 bytes, line 38
38function rb(e,t,n){return n(function(){sb(t)&&ib(e)})}function sb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gn(e,n)}catch{return!0}}function ib(e){var t=Yn(e,1);t!==null&&pn(t,e,1,-1)}function fy(e){var t=bn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:e},t.queue=e,e=e.dispatch=UT.bind(null,Ee,e),[t.memoizedState,e]}function Ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.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 ob(){return Qt().memoizedState}function ic(e,t,n,r){var s=bn();Ee.flags|=e,s.memoizedState=Ta(1|t,n,void 0,r===void 0?null:r)}function wu(e,t,n,r){var s=Qt();r=r===void 0?null:r;var i=void 0;if($e!==null){var o=$e.memoizedState;if(i=o.destroy,r!==null&&Kp(r,o.deps)){s.memoizedState=Ta(t,n,i,r);return}}Ee.flags|=e,s.memoizedState=Ta(1|t,n,i,r)}function py(e,t){return ic(8390656,8,e,t)}function Qp(e,t){return wu(2048,8,e,t)}function ab(e,t){return wu(4,2,e,t)}function lb(e,t){return wu(4,4,e,t)}function cb(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 ub(e,t,n){return n=n!=null?n.concat([e]):null,wu(4,4,cb.bind(null,t,e),n)}function Yp(){}function db(e,t){var n=Qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Kp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hb(e,t){var n=Qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Kp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fb(e,t,n){return Ls&21?(gn(n,t)||(n=vx(),Ee.lanes|=n,$s|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=n)}function $T(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=xd.transition;xd.transition={};try{e(!1),t()}finally{ae=n,xd.transition=r}}function pb(){return Qt().memoizedState}function FT(e,t,n){var r=Wr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mb(e))gb(t,n);else if(n=Yx(e,t,n,r),n!==null){var s=pt();pn(n,e,r,s),yb(n,t,r)}}function UT(e,t,n){var r=Wr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mb(e))gb(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,gn(a,o)){var l=t.interleaved;l===null?(s.next=s,Bp(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Yx(e,t,s,r),n!==null&&(s=pt(),pn(n,e,r,s),yb(n,t,r))}}function mb(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function gb(e,t){ta=Fc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Tp(e,n)}}var Uc={readContext:Gt,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},BT={readContext:Gt,useCallback:function(e,t){return bn().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:py,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ic(4194308,4,cb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ic(4194308,4,e,t)},useInsertionEffect:function(e,t){return ic(4,2,e,t)},useMemo:function(e,t){var n=bn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bn();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=FT.bind(null,Ee,e),[r.memoizedState,e]},useRef:function(e){var t=bn();return e={current:e},t.memoizedState=e},useState:fy,useDebugValue:Yp,useDeferredValue:function(e){return bn().memoizedState=e},useTransition:function(){var e=fy(!1),t=e[0];return e=$T.bind(null,e[1]),bn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ee,s=bn();if(we){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),He===null)throw Error(N(349));Ls&30||tb(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,py(rb.bind(null,r,i,e),[e]),r.flags|=2048,Ta(9,nb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=bn(),t=He.identifierPrefix;if(we){var n=Hn,r=Wn;n=(r&~(1<<32-fn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ka++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=LT++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VT={readContext:Gt,useCallback:db,useContext:Gt,useEffect:Qp,useImperativeHandle:ub,useInsertionEffect:ab,useLayoutEffect:lb,useMemo:hb,useReducer:bd,useRef:ob,useState:function(){return bd(Ca)},useDebugValue:Yp,useDeferredValue:function(e){var t=Qt();return fb(t,$e.memoizedState,e)},useTransition:function(){var e=bd(Ca)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:Zx,useSyncExternalStore:eb,useId:pb,unstable_isNewReconciler:!1},zT={readContext:Gt,useCallback:db,useContext:Gt,useEffect:Qp,useImperativeHandle:ub,useInsertionEffect:ab,useLayoutEffect:lb,useMemo:hb,useReducer:Sd,useRef
vendor: 5,969 bytes, lines 38-40
38:ob,useState:function(){return Sd(Ca)},useDebugValue:Yp,useDeferredValue:function(e){var t=Qt();return $e===null?t.memoizedState=e:fb(t,$e.memoizedState,e)},useTransition:function(){var e=Sd(Ca)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:Zx,useSyncExternalStore:eb,useId:pb,unstable_isNewReconciler:!1};function sn(e,t){if(e&&e.defaultProps){t=_e({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Wh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:_e({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xu={isMounted:function(e){return(e=e._reactInternals)?Ks(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pt(),s=Wr(e),i=Kn(r,s);i.payload=t,n!=null&&(i.callback=n),t=Vr(e,i,s),t!==null&&(pn(t,e,s,r),rc(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pt(),s=Wr(e),i=Kn(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Vr(e,i,s),t!==null&&(pn(t,e,s,r),rc(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pt(),r=Wr(e),s=Kn(n,r);s.tag=2,t!=null&&(s.callback=t),t=Vr(e,s,r),t!==null&&(pn(t,e,r,n),rc(t,e,r))}};function my(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!wa(n,r)||!wa(s,i):!0}function vb(e,t,n){var r=!1,s=Qr,i=t.contextType;return typeof i=="object"&&i!==null?i=Gt(i):(s=Et(t)?Ds:at.current,r=t.contextTypes,i=(r=r!=null)?no(e,s):Qr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function gy(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&&xu.enqueueReplaceState(t,t.state,null)}function Hh(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Vp(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Gt(i):(i=Et(t)?Ds:at.current,s.context=no(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Wh(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&xu.enqueueReplaceState(s,s.state,null),Lc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function oo(e,t){try{var n="",r=t;do n+=yC(r),r=r.return;while(r);var s=n}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Ed(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Kh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var WT=typeof WeakMap=="function"?WeakMap:Map;function wb(e,t,n){n=Kn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vc||(Vc=!0,nf=r),Kh(e,t)},n}function xb(e,t,n){n=Kn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Kh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Kh(e,t),typeof r!="function"&&(zr===null?zr=new Set([this]):zr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function yy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new WT;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=sP.bind(null,e,t,n),t.then(e,e))}function vy(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 wy(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=Kn(-1,1),t.tag=2,Vr(n,t,1))),n.lanes|=1),e)}var HT=nr.ReactCurrentOwner,bt=!1;function ut(e,t,n,r){t.child=e===null?Qx(t,null,n,r):so(t,e.child,n,r)}function xy(e,t,n,r,s){n=n.render;var i=t.ref;return Mi(t,s),r=qp(e,t,n,r,i,s),n=Gp(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Jn(e,t,s)):(we&&n&&Dp(t),t.flags|=1,ut(e,t,r,s),t.child)}function by(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!sm(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,bb(e,t,i,r,s)):(e=cc(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:wa,n(o,r)&&e.ref===t.ref)return Jn(e,t,s)}return t.flags|=1,e=Hr(i,r),e.ref=t.ref,e.return=t,t.child=e}function bb(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(wa(i,r)&&e.ref===t.ref)if(bt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(bt=!0);else return t.lanes=e.lanes,Jn(e,t,s)}return qh(e,t,n,r,s)}function Sb(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(ki,Tt),Tt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(ki,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ue(ki,Tt),Tt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ue(ki,Tt),Tt|=r;return ut(e,t,s,n),t.child}function Eb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,638 bytes, line 40
40function qh(e,t,n,r,s){var i=Et(n)?Ds:at.current;return i=no(t,i),Mi(t,s),n=qp(e,t,n,r,i,s),r=Gp(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Jn(e,t,s)):(we&&r&&Dp(t),t.flags|=1,ut(e,t,n,s),t.child)}function Sy(e,t,n,r,s){if(Et(n)){var i=!0;Nc(t)}else i=!1;if(Mi(t,s),t.stateNode===null)oc(e,t),vb(t,n,r),Hh(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Gt(c):(c=Et(n)?Ds:at.current,c=no(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&gy(t,o,r,c),wr=!1;var h=t.memoizedState;o.state=h,Lc(t,r,o,s),l=t.memoizedState,a!==r||h!==l||St.current||wr?(typeof u=="function"&&(Wh(t,n,u,r),l=t.memoizedState),(a=wr||my(t,n,a,r,h,l,c))?(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=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Jx(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:sn(t.type,a),o.props=c,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Gt(l):(l=Et(n)?Ds:at.current,l=no(t,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&gy(t,o,r,l),wr=!1,h=t.memoizedState,o.state=h,Lc(t,r,o,s);var y=t.memoizedState;a!==d||h!==y||St.current||wr?(typeof f=="function"&&(Wh(t,n,f,r),y=t.memoizedState),(c=wr||my(t,n,c,r,h,y,l)||!1)?(u||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&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Gh(e,t,n,r,i,s)}function Gh(e,t,n,r,s,i){Eb(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&ay(t,n,!1),Jn(e,t,i);r=t.stateNode,HT.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=so(t,e.child,null,i),t.child=so(t,null,a,i)):ut(e,t,a,i),t.memoizedState=r.state,s&&ay(t,n,!0),t.child}function _b(e){var t=e.stateNode;t.pendingContext?oy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&oy(e,t.context,!1),zp(e,t.containerInfo)}function Ey(e,t,n,r,s){return ro(),Lp(s),t.flags|=256,ut(e,t,n,r),t.child}var Qh={dehydrated:null,treeContext:null,retryLane:0};function Yh(e){return{baseLanes:e,cachePool:null,transitions:null}}function kb(e,t,n){var r=t.pendingProps,s=be.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ue(be,s&1),e===null)return Vh(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,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Eu(o,r,0,null),e=Os(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Yh(n),t.memoizedState=Qh,e):Jp(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return KT(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Hr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Hr(a,i):(i=Os(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Yh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Qh,r}return i=e.child,e=i.sibling,r=Hr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Jp(e,t){return t=Eu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pl(e,t,n,r){return r!==null&&Lp(r),so(t,e.child,null,n),e=Jp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function KT(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Ed(Error(N(422))),Pl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Eu({mode:"visible",children:r.children},s,0,null),i=Os(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&so(t,e.child,null,o),t.child.memoizedState=Yh(o),t.memoizedState=Qh,i);if(!(t.mode&1))return Pl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(N(419)),r=Ed(i,r,void 0),Pl(e,t,o,r)}if(a=(o&e.childLanes)!==0,bt||a){if(r=He,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Yn(e,s),pn(r,e,s,-1))}return rm(),r=Ed(Error(N(421))),Pl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=iP.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,At=Br(s.nextSibling),Nt=t,we=!0,dn=null,e!==null&&(Ut[Bt++]=Wn,Ut[Bt++]=Hn,Ut[Bt++]=Ms,Wn=e.id,Hn=e.overflow,Ms=t),t=Jp(t,r.children),t.flags|=4096,t)}
vendor: 5,469 bytes, line 40
40function _y(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),zh(e.return,t,n)}function _d(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Cb(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(ut(e,t,r.children,n),r=be.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&&_y(e,n,t);else if(e.tag===19)_y(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(ue(be,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&$c(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),_d(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&$c(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}_d(t,!0,n,null,i);break;case"together":_d(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$s|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Hr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qT(e,t,n){switch(t.tag){case 3:_b(t),ro();break;case 5:Xx(t);break;case 1:Et(t.type)&&Nc(t);break;case 4:zp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ue(Dc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(be,be.current&1),t.flags|=128,null):n&t.child.childLanes?kb(e,t,n):(ue(be,be.current&1),e=Jn(e,t,n),e!==null?e.sibling:null);ue(be,be.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Cb(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ue(be,be.current),r)break;return null;case 22:case 23:return t.lanes=0,Sb(e,t,n)}return Jn(e,t,n)}var Tb,Jh,Pb,Rb;Tb=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}};Jh=function(){};Pb=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ws(An.current);var i=null;switch(n){case"input":s=wh(e,s),r=wh(e,r),i=[];break;case"select":s=_e({},s,{value:void 0}),r=_e({},r,{value:void 0}),i=[];break;case"textarea":s=Sh(e,s),r=Sh(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ac)}_h(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ha.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="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||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ha.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&fe("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Rb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Lo(e,t){if(!we)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 nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function GT(e,t,n){var r=t.pendingProps;switch(Mp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return Et(t.type)&&jc(),nt(t),null;case 3:return r=t.stateNode,io(),me(St),me(at),Hp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Cl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dn!==null&&(of(dn),dn=null))),Jh(e,t),nt(t),null;case 5:Wp(t);var s=ws(_a.current);
vendor: 32,512 bytes, line 40
40if(n=t.type,e!==null&&t.stateNode!=null)Pb(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return nt(t),null}if(e=ws(An.current),Cl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Cn]=t,r[Sa]=i,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(s=0;s<Ko.length;s++)fe(Ko[s],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":Og(r,i),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},fe("invalid",r);break;case"textarea":Dg(r,i),fe("invalid",r)}_h(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&kl(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&kl(r.textContent,a,e),s=["children",""+a]):ha.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&fe("scroll",r)}switch(n){case"input":yl(r),Ig(r,i,!0);break;case"textarea":yl(r),Mg(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ac)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rx(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[Cn]=t,e[Sa]=r,Tb(e,t,!1,!1),t.stateNode=e;e:{switch(o=kh(n,r),n){case"dialog":fe("cancel",e),fe("close",e),s=r;break;case"iframe":case"object":case"embed":fe("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ko.length;s++)fe(Ko[s],e);s=r;break;case"source":fe("error",e),s=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),s=r;break;case"details":fe("toggle",e),s=r;break;case"input":Og(e,r),s=wh(e,r),fe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=_e({},r,{value:void 0}),fe("invalid",e);break;case"textarea":Dg(e,r),s=Sh(e,r),fe("invalid",e);break;default:s=r}_h(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?ox(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&sx(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&fa(e,l):typeof l=="number"&&fa(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ha.hasOwnProperty(i)?l!=null&&i==="onScroll"&&fe("scroll",e):l!=null&&bp(e,i,l,o))}switch(n){case"input":yl(e),Ig(e,r,!1);break;case"textarea":yl(e),Mg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Gr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Ni(e,!!r.multiple,i,!1):r.defaultValue!=null&&Ni(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Ac)}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 nt(t),null;case 6:if(e&&t.stateNode!=null)Rb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=ws(_a.current),ws(An.current),Cl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Cn]=t,(i=r.nodeValue!==n)&&(e=Nt,e!==null))switch(e.tag){case 3:kl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&kl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Cn]=t,t.stateNode=r}return nt(t),null;case 13:if(me(be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&&At!==null&&t.mode&1&&!(t.flags&128))qx(),ro(),t.flags|=98560,i=!1;else if(i=Cl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(N(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(N(317));i[Cn]=t}else ro(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;nt(t),i=!1}else dn!==null&&(of(dn),dn=null),i=!0;if(!i)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||be.current&1?Be===0&&(Be=3):rm())),t.updateQueue!==null&&(t.flags|=4),nt(t),null);case 4:return io(),Jh(e,t),e===null&&xa(t.stateNode.containerInfo),nt(t),null;case 10:return Up(t.type._context),nt(t),null;case 17:return Et(t.type)&&jc(),nt(t),null;case 19:if(me(be),i=t.memoizedState,i===null)return nt(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Lo(i,!1);else{if(Be!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=$c(e),o!==null){for(t.flags|=128,Lo(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(be,be.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>ao&&(t.flags|=128,r=!0,Lo(i,!1),t.lanes=4194304)}else{if(!r)if(e=$c(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Lo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!we)return nt(t),null}else 2*Ae()-i.renderingStartTime>ao&&n!==1073741824&&(t.flags|=128,r=!0,Lo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=be.current,ue(be,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return nm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Tt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function QT(e,t){switch(Mp(t),t.tag){case 1:return Et(t.type)&&jc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return io(),me(St),me(at),Hp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wp(t),null;case 13:if(me(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(be),null;case 4:return io(),null;case 10:return Up(t.type._context),null;case 22:case 23:return nm(),null;case 24:return null;default:return null}}var Rl=!1,st=!1,YT=typeof WeakSet=="function"?WeakSet:Set,$=null;function _i(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Xh(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var ky=!1;function JT(e,t){if(Dh=Tc,e=Ix(),Ip(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 s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,u=0,d=e,h=null;t:for(;;){for(var f;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===s&&(a=o),h===i&&++u===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mh={focusedElem:e,selectionRange:n},Tc=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;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 m=y.memoizedProps,b=y.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:sn(t.type,m),b);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(S){Pe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return y=ky,ky=!1,y}function na(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Xh(t,n,i)}s=s.next}while(s!==r)}}function bu(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 Zh(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 Ab(e){var t=e.alternate;t!==null&&(e.alternate=null,Ab(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Cn],delete t[Sa],delete t[Fh],delete t[OT],delete t[IT])),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 jb(e){return e.tag===5||e.tag===3||e.tag===4}function Cy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jb(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 ef(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=Ac));else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}function tf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(tf(e,t,n),e=e.sibling;e!==null;)tf(e,t,n),e=e.sibling}var Ge=null,cn=!1;function dr(e,t,n){for(n=n.child;n!==null;)Nb(e,t,n),n=n.sibling}function Nb(e,t,n){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(fu,n)}catch{}switch(n.tag){case 5:st||_i(n,t);case 6:var r=Ge,s=cn;Ge=null,dr(e,t,n),Ge=r,cn=s,Ge!==null&&(cn?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(cn?(e=Ge,n=n.stateNode,e.nodeType===8?yd(e.parentNode,n):e.nodeType===1&&yd(e,n),ya(e)):yd(Ge,n.stateNode));break;case 4:r=Ge,s=cn,Ge=n.stateNode.containerInfo,cn=!0,dr(e,t,n),Ge=r,cn=s;break;case 0:case 11:case 14:case 15:if(!st&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Xh(n,t,o),s=s.next}while(s!==r)}dr(e,t,n);break;case 1:if(!st&&(_i(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Pe(n,t,a)}dr(e,t,n);break;case 21:dr(e,t,n);break;case 22:n.mode&1?(st=(r=st)||n.memoizedState!==null,dr(e,t,n),st=r):dr(e,t,n);break;default:dr(e,t,n)}}function Ty(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YT),t.forEach(function(r){var s=oP.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ge=a.stateNode,cn=!1;break e;case 3:Ge=a.stateNode.containerInfo,cn=!0;break e;case 4:Ge=a.stateNode.containerInfo,cn=!0;break e}a=a.return}if(Ge===null)throw Error(N(160));Nb(i,o,s),Ge=null,cn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){Pe(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ob(t,e),t=t.sibling}function Ob(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zt(t,e),xn(e),r&4){try{na(3,e,e.return),bu(3,e)}catch(m){Pe(e,e.return,m)}try{na(5,e,e.return)}catch(m){Pe(e,e.return,m)}}break;case 1:Zt(t,e),xn(e),r&512&&n!==null&&_i(n,n.return);break;case 5:if(Zt(t,e),xn(e),r&512&&n!==null&&_i(n,n.return),e.flags&32){var s=e.stateNode;try{fa(s,"")}catch(m){Pe(e,e.return,m)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&tx(s,i),kh(a,o);var c=kh(a,i);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?ox(s,d):u==="dangerouslySetInnerHTML"?sx(s,d):u==="children"?fa(s,d):bp(s,u,d,c)}switch(a){case"input":xh(s,i);break;case"textarea":nx(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?Ni(s,!!i.multiple,f,!1):h!==!!i.multiple&&(i.defaultValue!=null?Ni(s,!!i.multiple,i.defaultValue,!0):Ni(s,!!i.multiple,i.multiple?[]:"",!1))}s[Sa]=i}catch(m){Pe(e,e.return,m)}}break;case 6:if(Zt(t,e),xn(e),r&4){if(e.stateNode===null)throw Error(N(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(m){Pe(e,e.return,m)}}break;case 3:if(Zt(t,e),xn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ya(t.containerInfo)}catch(m){Pe(e,e.return,m)}break;case 4:Zt(t,e),xn(e);break;case 13:Zt(t,e),xn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(em=Ae())),r&4&&Ty(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(st=(c=st)||u,Zt(t,e),st=c):Zt(t,e),xn(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for($=e,u=e.child;u!==null;){for(d=$=u;$!==null;){switch(h=$,f=h.child,h.tag){case 0:case 11:case 14:case 15:na(4,h,h.return);break;case 1:_i(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Pe(r,n,m)}}break;case 5:_i(h,h.return);break;case 22:if(h.memoizedState!==null){Ry(d);continue}}f!==null?(f.return=h,$=f):Ry(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{s=d.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=ix("display",o))}catch(m){Pe(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Pe(e,e.return,m)}}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;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Zt(t,e),xn(e),r&4&&Ty(e);break;case 21:break;default:Zt(t,e),xn(e)}}function xn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jb(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(fa(s,""),r.flags&=-33);var i=Cy(e);tf(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Cy(e);ef(e,a,o);break;default:throw Error(N(161))}}catch(l){Pe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function XT(e,t,n){$=e,Ib(e)}function Ib(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var s=$,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Rl;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||st;a=Rl;var c=st;if(Rl=o,(st=l)&&!c)for($=s;$!==null;)o=$,l=o.child,o.tag===22&&o.memoizedState!==null?Ay(s):l!==null?(l.return=o,$=l):Ay(s);for(;i!==null;)$=i,Ib(i),i=i.sibling;$=s,Rl=a,st=c}Py(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,$=i):Py(e)}}function Py(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:st||bu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!st)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:sn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&hy(t,i,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}hy(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 c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&ya(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}st||t.flags&512&&Zh(t)}catch(h){Pe(t,t.return,h)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Ry(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function Ay(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bu(4,t)}catch(l){Pe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Pe(t,s,l)}}var i=t.return;try{Zh(t)}catch(l){Pe(t,i,l)}break;case 5:var o=t.return;try{Zh(t)}catch(l){Pe(t,o,l)}}}catch(l){Pe(t,t.return,l)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var ZT=Math.ceil,Bc=nr.ReactCurrentDispatcher,Xp=nr.ReactCurrentOwner,Ht=nr.ReactCurrentBatchConfig,se=0,He=null,De=null,Je=0,Tt=0,ki=ts(0),Be=0,Pa=null,$s=0,Su=0,Zp=0,ra=null,xt=null,em=0,ao=1/0,Fn=null,Vc=!1,nf=null,zr=null,Al=!1,Dr=null,zc=0,sa=0,rf=null,ac=-1,lc=0;function pt(){return se&6?Ae():ac!==-1?ac:ac=Ae()}function Wr(e){return e.mode&1?se&2&&Je!==0?Je&-Je:MT.transition!==null?(lc===0&&(lc=vx()),lc):(e=ae,e!==0||(e=window.event,e=e===void 0?16:kx(e.type)),e):1}function pn(e,t,n,r){if(50<sa)throw sa=0,rf=null,Error(N(185));Xa(e,n,r),(!(se&2)||e!==He)&&(e===He&&(!(se&2)&&(Su|=n),Be===4&&Sr(e,Je)),_t(e,r),n===1&&se===0&&!(t.mode&1)&&(ao=Ae()+500,vu&&ns()))}function _t(e,t){var n=e.callbackNode;MC(e,t);var r=Cc(e,e===He?Je:0);if(r===0)n!==null&&Fg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Fg(n),t===1)e.tag===0?DT(jy.bind(null,e)):Wx(jy.bind(null,e)),jT(function(){!(se&6)&&ns()}),n=null;else{switch(wx(r)){case 1:n=Cp;break;case 4:n=gx;break;case 16:n=kc;break;case 536870912:n=yx;break;default:n=kc}n=Vb(n,Db.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Db(e,t){if(ac=-1,lc=0,se&6)throw Error(N(327));var n=e.callbackNode;if(Li()&&e.callbackNode!==n)return null;var r=Cc(e,e===He?Je:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Wc(e,r);else{t=r;var s=se;se|=2;var i=Lb();(He!==e||Je!==t)&&(Fn=null,ao=Ae()+500,Ns(e,t));do try{nP();break}catch(a){Mb(e,a)}while(!0);Fp(),Bc.current=i,se=s,De!==null?t=0:(He=null,Je=0,t=Be)}if(t!==0){if(t===2&&(s=Ah(e),s!==0&&(r=s,t=sf(e,s))),t===1)throw n=Pa,Ns(e,0),Sr(e,r),_t(e,Ae()),n;if(t===6)Sr(e,r);else{if(s=e.current.alternate,!(r&30)&&!eP(s)&&(t=Wc(e,r),t===2&&(i=Ah(e),i!==0&&(r=i,t=sf(e,i))),t===1))throw n=Pa,Ns(e,0),Sr(e,r),_t(e,Ae()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:hs(e,xt,Fn);break;case 3:if(Sr(e,r),(r&130023424)===r&&(t=em+500-Ae(),10<t)){if(Cc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){pt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=$h(hs.bind(null,e,xt,Fn),t);break}hs(e,xt,Fn);break;case 4:if(Sr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-fn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ZT(r/1960))-r,10<r){e.timeoutHandle=$h(hs.bind(null,e,xt,Fn),r);break}hs(e,xt,Fn);break;case 5:hs(e,xt,Fn);break;default:throw Error(N(329))}}}return _t(e,Ae()),e.callbackNode===n?Db.bind(null,e):null}function sf(e,t){var n=ra;return e.current.memoizedState.isDehydrated&&(Ns(e,t).flags|=256),e=Wc(e,t),e!==2&&(t=xt,xt=n,t!==null&&of(t)),e}function of(e){xt===null?xt=e:xt.push.apply(xt,e)}function eP(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 s=n[r],i=s.getSnapshot;s=s.value;try{if(!gn(i(),s))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 Sr(e,t){for(t&=~Zp,t&=~Su,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-fn(t),r=1<<n;e[n]=-1,t&=~r}}function jy(e){if(se&6)throw Error(N(327));Li();var t=Cc(e,0);if(!(t&1))return _t(e,Ae()),null;var n=Wc(e,t);if(e.tag!==0&&n===2){var r=Ah(e);r!==0&&(t=r,n=sf(e,r))}if(n===1)throw n=Pa,Ns(e,0),Sr(e,t),_t(e,Ae()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hs(e,xt,Fn),_t(e,Ae()),null}function tm(e,t){var n=se;se|=1;try{return e(t)}finally{se=n,se===0&&(ao=Ae()+500,vu&&ns())}}function Fs(e){Dr!==null&&Dr.tag===0&&!(se&6)&&Li();var t=se;se|=1;var n=Ht.transition,r=ae;try{if(Ht.transition=null,ae=1,e)return e()}finally{ae=r,Ht.transition=n,se=t,!(se&6)&&ns()}}function nm(){Tt=ki.current,me(ki)}function Ns(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,AT(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(Mp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&jc();break;case 3:io(),me(St),me(at),Hp();break;case 5:Wp(r);break;case 4:io();break;case 13:me(be);break;case 19:me(be);break;case 10:Up(r.type._context);break;case 22:case 23:nm()}n=n.return}if(He=e,De=e=Hr(e.current,null),Je=Tt=t,Be=0,Pa=null,Zp=Su=$s=0,xt=ra=null,vs!==null){for(t=0;t<vs.length;t++)if(n=vs[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}vs=null}return e}function Mb(e,t){do{var n=De;try{if(Fp(),sc.current=Uc,Fc){for(var r=Ee.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Fc=!1}if(Ls=0,Ve=$e=Ee=null,ta=!1,ka=0,Xp.current=null,n===null||n.return===null){Be=1,Pa=t,De=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=Je,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=vy(o);if(f!==null){f.flags&=-257,wy(f,o,a,i,t),f.mode&1&&yy(i,c,t),t=f,l=c;var y=t.updateQueue;if(y===null){var m=new Set;m.add(l),t.updateQueue=m}else y.add(l);break e}else{if(!(t&1)){yy(i,c,t),rm();break e}l=Error(N(426))}}else if(we&&a.mode&1){var b=vy(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),wy(b,o,a,i,t),Lp(oo(l,a));break e}}i=l=oo(l,a),Be!==4&&(Be=2),ra===null?ra=[i]:ra.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=wb(i,l,t);dy(i,g);break e;case 1:a=l;var v=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(zr===null||!zr.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=xb(i,a,t);dy(i,S);break e}}i=i.return}while(i!==null)}Fb(n)}catch(E){t=E,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function Lb(){var e=Bc.current;return Bc.current=Uc,e===null?Uc:e}function rm(){(Be===0||Be===3||Be===2)&&(Be=4),He===null||!($s&268435455)&&!(Su&268435455)||Sr(He,Je)}function Wc(e,t){var n=se;se|=2;var r=Lb();(He!==e||Je!==t)&&(Fn=null,Ns(e,t));do try{tP();break}catch(s){Mb(e,s)}while(!0);if(Fp(),se=n,Bc.current=r,De!==null)throw Error(N(261));return He=null,Je=0,Be}function tP(){for(;De!==null;)$b(De)}function nP(){for(;De!==null&&!TC();)$b(De)}function $b(e){var t=Bb(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?Fb(e):De=t,Xp.current=null}function Fb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=QT(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Be=6,De=null;return}}else if(n=GT(n,t,Tt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Be===0&&(Be=5)}function hs(e,t,n){var r=ae,s=Ht.transition;try{Ht.transition=null,ae=1,rP(e,t,n,r)}finally{Ht.transition=s,ae=r}return null}function rP(e,t,n,r){do Li();while(Dr!==null);if(se&6)throw Error(N(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(LC(e,i),e===He&&(De=He=null,Je=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Al||(Al=!0,Vb(kc,function(){return Li(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Ht.transition,Ht.transition=null;var o=ae;ae=1;var a=se;se|=4,Xp.current=null,JT(e,n),Ob(n,e),ET(Mh),Tc=!!Dh,Mh=Dh=null,e.current=n,XT(n),PC(),se=a,ae=o,Ht.transition=i}else e.current=n;if(Al&&(Al=!1,Dr=e,zc=s),i=e.pendingLanes,i===0&&(zr=null),jC(n.stateNode),_t(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Vc)throw Vc=!1,e=nf,nf=null,e;return zc&1&&e.tag!==0&&Li(),i=e.pendingLanes,i&1?e===rf?sa++:(sa=0,rf=e):sa=0,ns(),null}function Li(){if(Dr!==null){var e=wx(zc),t=Ht.transition,n=ae;try{if(Ht.transition=null,ae=16>e?16:e,Dr===null)var r=!1;else{if(e=Dr,Dr=null,zc=0,se&6)throw Error(N(331));var s=se;for(se|=4,$=e.current;$!==null;){var i=$,o=i.child;if($.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for($=c;$!==null;){var u=$;switch(u.tag){case 0:case 11:case 15:na(8,u,i)}var d=u.child;if(d!==null)d.return=u,$=d;else for(;$!==null;){u=$;var h=u.sibling,f=u.return;if(Ab(u),u===c){$=null;break}if(h!==null){h.return=f,$=h;break}$=f}}}var y=i.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(m!==null)}}$=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,$=o;else e:for(;$!==null;){if(i=$,i.flags&2048)switch(i.tag){case 0:case 11:case 15:na(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,$=g;break e}$=i.return}}var v=e.current;for($=v;$!==null;){o=$;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,$=w;else e:for(o=v;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:bu(9,a)}}catch(E){Pe(a,a.return,E)}if(a===o){$=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,$=S;break e}$=a.return}}if(se=s,ns(),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(fu,e)}catch{}r=!0}return r}finally{ae=n,Ht.transition=t}}return!1}function Ny(e,t,n){t=oo(n,t),t=wb(e,t,1),e=Vr(e,t,1),t=pt(),e!==null&&(Xa(e,1,t),_t(e,t))}function Pe(e,t,n){if(e.tag===3)Ny(e,e,n);else for(;t!==null;){if(t.tag===3){Ny(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zr===null||!zr.has(r))){e=oo(n,e),e=xb(t,e,1),t=Vr(t,e,1),e=pt(),t!==null&&(Xa(t,1,e),_t(t,e));break}}t=t.return}}function sP(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pt(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(Je&n)===n&&(Be===4||Be===3&&(Je&130023424)===Je&&500>Ae()-em?Ns(e,0):Zp|=n),_t(e,t)}function Ub(e,t){t===0&&(e.mode&1?(t=xl,xl<<=1,!(xl&130023424)&&(xl=4194304)):t=1);var n=pt();e=Yn(e,t),e!==null&&(Xa(e,t,n),_t(e,n))}function iP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ub(e,n)}function oP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Ub(e,n)}var Bb;Bb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,qT(e,t,n);bt=!!(e.flags&131072)}else bt=!1,we&&t.flags&1048576&&Hx(t,Ic,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;oc(e,t),e=t.pendingProps;var s=no(t,at.current);Mi(t,n),s=qp(null,t,r,e,s,n);var i=Gp();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Et(r)?(i=!0,Nc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Vp(t),s.updater=xu,t.stateNode=s,s._reactInternals=t,Hh(t,r,e,n),t=Gh(null,t,r,!0,i,n)):(t.tag=0,we&&i&&Dp(t),ut(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(oc(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=lP(r),e=sn(r,e),s){case 0:t=qh(null,t,r,e,n);break e;case 1:t=Sy(null,t,r,e,n);break e;case 11:t=xy(null,t,r,e,n);break e;case 14:t=by(null,t,r,sn(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:sn(r,s),qh(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:sn(r,s),Sy(e,t,r,s,n);case 3:e:{if(_b(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Jx(e,t),Lc(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=oo(Error(N(423)),t),t=Ey(e,t,r,n,s);break e}else if(r!==s){s=oo(Error(N(424)),t),t=Ey(e,t,r,n,s);break e}else for(At=Br(t.stateNode.containerInfo.firstChild),Nt=t,we=!0,dn=null,n=Qx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ro(),r===s){t=Jn(e,t,n);break e}ut(e,t,r,n)}t=t.child}return t;case 5:return Xx(t),e===null&&Vh(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Lh(r,s)?o=null:i!==null&&Lh(r,i)&&(t.flags|=32),Eb(e,t),ut(e,t,o,n),t.child;case 6:return e===null&&Vh(t),null;case 13:return kb(e,t,n);case 4:return zp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=so(t,null,r,n):ut(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:sn(r,s),xy(e,t,r,s,n);case 7:return ut(e,t,t.pendingProps,n),t.child;case 8:return ut(e,t,t.pendingProps.children,n),t.child;case 12:return ut(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,ue(Dc,r._currentValue),r._currentValue=o,i!==null)if(gn(i.value,o)){if(i.children===s.children&&!St.current){t=Jn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Kn(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),zh(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),zh(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ut(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Mi(t,n),s=Gt(s),r=r(s),t.flags|=1,ut(e,t,r,n),t.child;case 14:return r=t.type,s=sn(r,t.pendingProps),s=sn(r.type,s),by(e,t,r,s,n);case 15:return bb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:sn(r,s),oc(e,t),t.tag=1,Et(r)?(e=!0,Nc(t)):e=!1,Mi(t,n),vb(t,r,s),Hh(t,r,s,n),Gh(null,t,r,!0,e,n);case 19:return Cb(e,t,n);case 22:return Sb(e,t,n)}throw Error(N(156,t.tag))};function Vb(e,t){return mx(e,t)}function aP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 8,219 bytes, line 40
40ype=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 Vt(e,t,n,r){return new aP(e,t,n,r)}function sm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lP(e){if(typeof e=="function")return sm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ep)return 11;if(e===_p)return 14}return 2}function Hr(e,t){var n=e.alternate;return n===null?(n=Vt(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 cc(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")sm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case mi:return Os(n.children,s,i,t);case Sp:o=8,s|=8;break;case mh:return e=Vt(12,n,t,s|2),e.elementType=mh,e.lanes=i,e;case gh:return e=Vt(13,n,t,s),e.elementType=gh,e.lanes=i,e;case yh:return e=Vt(19,n,t,s),e.elementType=yh,e.lanes=i,e;case Xw:return Eu(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yw:o=10;break e;case Jw:o=9;break e;case Ep:o=11;break e;case _p:o=14;break e;case vr:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Vt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Os(e,t,n,r){return e=Vt(7,e,r,t),e.lanes=n,e}function Eu(e,t,n,r){return e=Vt(22,e,r,t),e.elementType=Xw,e.lanes=n,e.stateNode={isHidden:!1},e}function kd(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function Cd(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cP(e,t,n,r,s){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=od(0),this.expirationTimes=od(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=od(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function im(e,t,n,r,s,i,o,a,l){return e=new cP(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Vt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vp(i),e}function uP(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zb(e){if(!e)return Qr;e=e._reactInternals;e:{if(Ks(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(Et(n))return zx(e,n,t)}return t}function Wb(e,t,n,r,s,i,o,a,l){return e=im(n,r,!0,e,s,i,o,a,l),e.context=zb(null),n=e.current,r=pt(),s=Wr(n),i=Kn(r,s),i.callback=t??null,Vr(n,i,s),e.current.lanes=s,Xa(e,s,r),_t(e,r),e}function _u(e,t,n,r){var s=t.current,i=pt(),o=Wr(s);return n=zb(n),t.context===null?t.context=n:t.pendingContext=n,t=Kn(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vr(s,t,o),e!==null&&(pn(e,s,o,i),rc(e,s,o)),o}function Hc(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 Oy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function om(e,t){Oy(e,t),(e=e.alternate)&&Oy(e,t)}function dP(){return null}var Hb=typeof reportError=="function"?reportError:function(e){console.error(e)};function am(e){this._internalRoot=e}ku.prototype.render=am.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));_u(e,t,null,null)};ku.prototype.unmount=am.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fs(function(){_u(null,e,null,null)}),t[Qn]=null}};function ku(e){this._internalRoot=e}ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<br.length&&t!==0&&t<br[n].priority;n++);br.splice(n,0,e),n===0&&_x(e)}};function lm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Iy(){}function hP(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=Hc(o);i.call(c)}}var o=Wb(t,r,e,0,null,!1,!1,"",Iy);return e._reactRootContainer=o,e[Qn]=o.current,xa(e.nodeType===8?e.parentNode:e),Fs(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=Hc(l);a.call(c)}}var l=im(e,0,!1,null,null,!1,!1,"",Iy);return e._reactRootContainer=l,e[Qn]=l.current,xa(e.nodeType===8?e.parentNode:e),Fs(function(){_u(t,l,n,r)}),l}function Tu(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=Hc(o);a.call(l)}}_u(t,o,e,s)}else o=hP(n,t,e,s,r);return Hc(o)}xx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ho(t.pendingLanes);n!==0&&(Tp(t,n|1),_t(t,Ae()),!(se&6)&&(ao=Ae()+500,ns()))}break;case 13:Fs(function(){var r=Yn(e,1);if(r!==null){var s=pt();pn(r,e,1,s)}}),om(e,1)}};Pp=function(e){if(e.tag===13){var t=Yn(e,134217728);if(t!==null){var n=pt();pn(t,e,134217728,n)}om(e,134217728)}};bx=function(e){if(e.tag===13){var t=Wr(e),n=Yn(e,t);if(n!==null){var r=pt();pn(n,e,t,r)}om(e,t)}};Sx=function(){return ae};Ex=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Th=function(e,t,n){switch(t){case"input":if(xh(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 s=yu(r);if(!s)throw Error(N(90));ex(r),xh(r,s)}}}break;case"textarea":nx(e,n);break;case"select":t=n.value,t!=null&&Ni(e,!!n.multiple,t,!1)}};cx=tm;ux=Fs;var fP={usingClientEntryPoint:!1,Events:[el,wi,yu,ax,lx,tm]},$o={findFiberByHostInstance:ys,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},pP={bundleType:$o.bundleType,version:$o.version,rendererPackageName:$o.rendererPackageName,rendererConfig:$o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=fx(e),e===null?null:e.stateNode},findFiberByHostInstance:$o.findFiberByHostInstance||dP,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 jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jl.isDisabled&&jl.supportsFiber)try{fu=jl.inject(pP),Rn=jl}catch{}}Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fP;Dt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lm(t))throw Error(N(200));return uP(e,t,null,n)};Dt.createRoot=function(e,t){if(!lm(e))throw Error(N(299));var n=!1,r="",s=Hb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=im(e,1,!1,null,null,n,!1,r,s),e[Qn]=t.current,xa(e.n
40odeType===8?e.parentNode:e),new am(t)};Dt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=fx(t),e=e===null?null:e.stateNode,e};Dt.flushSync=function(e){return Fs(e)};Dt.hydrate=function(e,t,n){if(!Cu(t))throw Error(N(200));return Tu(null,e,t,!0,n)};Dt.hydrateRoot=function(e,t,n){if(!lm(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Hb;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Wb(t,null,e,1,n??null,s,!1,i,o),e[Qn]=t.current,xa(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new ku(t)};Dt.render=function(e,t,n){if(!Cu(t))throw Error(N(200));return Tu(null,e,t,!1,n)};Dt.unmountComponentAtNode=function(e){if(!Cu(e))throw Error(N(40));return e._reactRootContainer?(Fs(function(){Tu(null,null,e,!1,function(){e._reactRootContainer=null,e[Qn]=null})}),!0):!1};Dt.unstable_batchedUpdates=tm;Dt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Cu(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return Tu(e,t,n,!1,r)};Dt.version="18.3.1-next-f1338f8080-20240426";function Kb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kb)}catch(e){console.error(e)}}Kb(),Kw.exports=Dt;var nl=Kw.exports;const qb=Iw(nl);var Gb,Dy=nl;Gb=Dy.createRoot,Dy.hydrateRoot;const mP=1,gP=1e6;let Td=0;function yP(){return Td=(Td+1)%Number.MAX_SAFE_INTEGER,Td.toString()}const Pd=new Map,My=e=>{if(Pd.has(e))return;const t=setTimeout(()=>{Pd.delete(e),ia({type:"REMOVE_TOAST",toastId:e})},gP);Pd.set(e,t)},vP=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,mP)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?My(n):e.toasts.forEach(r=>{My(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)}}},uc=[];let dc={toasts:[]};function ia(e){dc=vP(dc,e),uc.forEach(t=>{t(dc)})}function wP({...e}){const t=yP(),n=s=>ia({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>ia({type:"DISMISS_TOAST",toastId:t});return ia({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function Qb(){const[e,t]=x.useState(dc);return x.useEffect(()=>(uc.push(t),()=>{const n=uc.indexOf(t);n>-1&&uc.splice(n,1)}),[e]),{...e,toast:wP,dismiss:n=>ia({type:"DISMISS_TOAST",toastId:n})}}function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Ly(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Yb(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Ly(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Ly(e[s],null)}}}}function Ze(...e){return x.useCallback(Yb(...e),e)}function xP(e,t){const n=x.createContext(t),r=i=>{const{children:o,...a}=i,l=x.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=x.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function go(e,t=[]){let n=[];function r(i,o){const a=x.createContext(o),l=n.length;n=[...n,o];const c=d=>{var g;const{scope:h,children:f,...y}=d,m=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,b=x.useMemo(()=>y,Object.values(y));return p.jsx(m.Provider,{value:b,children:f})};c.displayName=i+"Provider";function u(d,h){var m;const f=((m=h==null?void 0:h[e])==null?void 0:m[l])||a,y=x.useContext(f);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,bP(s,...t)]}function bP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c}
vendor: 8,295 bytes, line 40
40)=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Ra(e){const t=EP(e),n=x.forwardRef((r,s)=>{const{children:i,...o}=r,a=x.Children.toArray(i),l=a.find(kP);if(l){const c=l.props.children,u=a.map(d=>d===l?x.Children.count(c)>1?x.Children.only(null):x.isValidElement(c)?c.props.children:null:d);return p.jsx(t,{...o,ref:s,children:x.isValidElement(c)?x.cloneElement(c,void 0,u):null})}return p.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var SP=Ra("Slot");function EP(e){const t=x.forwardRef((n,r)=>{const{children:s,...i}=n;if(x.isValidElement(s)){const o=TP(s),a=CP(i,s.props);return s.type!==x.Fragment&&(a.ref=r?Yb(r,o):o),x.cloneElement(s,a)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jb=Symbol("radix.slottable");function _P(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Jb,t}function kP(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jb}function CP(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function TP(e){var r,s;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=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function PP(e){const t=e+"CollectionProvider",[n,r]=go(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:b,children:g}=m,v=O.useRef(null),w=O.useRef(new Map).current;return p.jsx(s,{scope:b,itemMap:w,collectionRef:v,children:g})};o.displayName=t;const a=e+"CollectionSlot",l=Ra(a),c=O.forwardRef((m,b)=>{const{scope:g,children:v}=m,w=i(a,g),S=Ze(b,w.collectionRef);return p.jsx(l,{ref:S,children:v})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Ra(u),f=O.forwardRef((m,b)=>{const{scope:g,children:v,...w}=m,S=O.useRef(null),E=Ze(b,S),_=i(u,g);return O.useEffect(()=>(_.itemMap.set(S,{ref:S,...w}),()=>void _.itemMap.delete(S))),p.jsx(h,{[d]:"",ref:E,children:v})});f.displayName=u;function y(m){const b=i(e+"CollectionConsumer",m);return O.useCallback(()=>{const v=b.collectionRef.current;if(!v)return[];const w=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((_,C)=>w.indexOf(_.ref.current)-w.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},y,r]}var RP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ke=RP.reduce((e,t)=>{const n=Ra(`Primitive.${t}`),r=x.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Xb(e,t){e&&nl.flushSync(()=>e.dispatchEvent(t))}function On(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 AP(e,t=globalThis==null?void 0:globalThis.document){const n=On(e);x.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var jP="DismissableLayer",af="dismissableLayer.update",NP="dismissableLayer.pointerDownOutside",OP="dismissableLayer.focusOutside",$y,Zb=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pu=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=x.useContext(Zb),[u,d]=x.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),y=Ze(t,C=>d(C)),m=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(b),v=u?m.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=v>=g,E=DP(C=>{const T=C.target,R=[...c.branches].some(j=>j.contains(T));!S||R||(s==null||s(C),o==null||o(C),C.defaultPrevented||a==null||a())},h),_=MP(C=>{const T=C.target;[...c.branches].some(j=>j.contains(T))||(i==null||i(C),o==null||o(C),C.defaultPrevented||a==null||a())},h);return AP(C=>{v===c.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},h),x.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&($y=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Fy(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=$y)}},[u,h,n,c]),x.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Fy())},[u,c]),x.useEffect(()=>{const C=()=>f({});return document.addEventListener(af,C),()=>document.removeEventListener(af,C)},[]),p.jsx(ke.div,{...l,ref:y,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,_.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,E.onPointerDownCapture)})});Pu.displayName=jP;var IP="DismissableLayerBranch",e1=x.forwardRef((e,t)=>{const n=x.useContext(Zb),r=x.useRef(null),s=Ze(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(ke.div,{...e,ref:s})});e1.displayName=IP;function DP(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){t1(NP,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function MP(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=x.useRef(!1);return x.useEffect(()=>{const s=i=>{i.target&&!r.current&&t1(OP,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Fy(){const e=new CustomEvent(af);document.dispatchEvent(e)}function t1(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Xb(s,i):s.dispatchEvent(i)}var LP=Pu,$P=e1,Xn=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},FP="Portal",cm=x.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=x.useState(!1);Xn(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?qb.createPortal(p.jsx(ke.div,{...r,ref:t}),o):null});cm.displayName=FP;function UP(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var yo=e=>{const{present:t,children:n}=e,r=BP(t),s=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=Ze(r.ref,VP(s));return typeof n=="function"||r.isPresent?x.cloneElement(s,{ref:i}):null};yo.displayName="Presence";function BP(e){const[t,n]=x.useState(),r=x.useRef(null),s=x.useRef(e),i=x.useRef("none"),o=e?"mounted":"unmounted",[a,l]=UP(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const c=Nl(r.current);i.current=a==="mounted"?c:"none"},[a]),Xn(()=>{const c=r.current,u=s.current;if(u!==e){const h=i.current,f=Nl(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Xn(()=>
40{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const m=Nl(r.current).includes(f.animationName);if(f.target===t&&m&&(l("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=f=>{f.target===t&&(i.current=Nl(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Nl(e){return(e==null?void 0:e.animationName)||"none"}function VP(e){var r,s;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=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zP=vp[" useInsertionEffect ".trim().toString()]||Xn;function um({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=WP({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const u=x.useRef(e!==void 0);x.useEffect(()=>{const d=u.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.`),u.current=a},[a,r])}const c=x.useCallback(u=>{var d;if(a){const h=HP(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,e,i,o]);return[l,c]}function WP({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),s=x.useRef(n),i=x.useRef(t);return zP(()=>{i.current=t},[t]),x.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function HP(e){return typeof e=="function"}var KP=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"}),qP="VisuallyHidden",Ru=x.forwardRef((e,t)=>p.jsx(ke.span,{...e,ref:t,style:{...KP,...e.style}}));Ru.displayName=qP;var GP=Ru,dm="ToastProvider",[hm,QP,YP]=PP("Toast"),[n1,cU]=go("Toast",[YP]),[JP,Au]=n1(dm),r1=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=x.useState(null),[c,u]=x.useState(0),d=x.useRef(!1),h=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${dm}\`. Expected non-empty \`string\`.`),p.jsx(hm.Provider,{scope:t,children:p.jsx(JP,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>u(f=>f+1),[]),onToastRemove:x.useCallback(()=>u(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:o})})};r1.displayName=dm;var s1="ToastViewport",XP=["F8"],lf="toast.viewportPause",cf="toast.viewportResume",i1=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=XP,label:s="Notifications ({hotkey})",...i}=e,o=Au(s1,n),a=QP(n),l=x.useRef(null),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),h=Ze(t,d,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;x.useEffect(()=>{const b=g=>{var w;r.length!==0&&r.every(S=>g[S]||g.code===S)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),x.useEffect(()=>{const b=l.current,g=d.current;if(y&&b&&g){const v=()=>{if(!o.isClosePausedRef.current){const _=new CustomEvent(lf);g.dispatchEvent(_),o.isClosePausedRef.current=!0}},w=()=>{if(o.isClosePausedRef.current){const _=new CustomEvent(cf);g.dispatchEvent(_),o.isClosePausedRef.current=!1}},S=_=>{!b.contains(_.relatedTarget)&&w()},E=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",v),b.addEventListener("focusout",S),b.addEventListener("pointermove",v),b.addEventListener("pointerleave",E),window.addEventListener("blur",v),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",v),b.removeEventListener("focusout",S),b.removeEventListener("pointermove",v),b.removeEventListener("pointerleave",E),window.removeEventListener("blur",v),window.removeEventListener("focus",w)}}},[y,o.isClosePausedRef]);const m=x.useCallback(({tabbingDirection:b})=>{const v=a().map(w=>{const S=w.ref.current,E=[S,...dR(S)];return b==="forwards"?E:E.reverse()});return(b==="forwards"?v.reverse():v).flat()},[a]);return x.useEffect(()=>{const b=d.current;if(b){const g=v=>{var E,_,C;const w=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!w){const T=document.activeElement,R=v.shiftKey;if(v.target===b&&R){(E=c.current)==null||E.focus();return}const I=m({tabbingDirection:R?"backwards":"forwards"}),q=I.findIndex(D=>D===T);Rd(I.slice(q+1))?v.preventDefault():R?(_=c.current)==null||_.focus():(C=u.current)==null||C.focus()}};return b.addEventListener("keydown",g),()=>b.removeEventListener("keydown",g)}},[a,m]),p.jsxs($P,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&p.jsx(uf,{ref:c,onFocusFromOutsideViewport:()=>{const b=m({tabbingDirection:"forwards"});Rd(b)}}),p.jsx(hm.Slot,{scope:n,children:p.jsx(ke.ol,{tabIndex:-1,...i,ref:h})}),y&&p.jsx(uf,{ref:u,onFocusFromOutsideViewport:()=>{const b=m({tabbingDirection:"backwards"});Rd(b)}})]})});i1.displayName=s1;var o1="ToastFocusProxy",uf=x.forwardRef((e,t)=>
40{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=Au(o1,n);return p.jsx(Ru,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&r()}})});uf.displayName=o1;var rl="Toast",ZP="toast.swipeStart",eR="toast.swipeMove",tR="toast.swipeCancel",nR="toast.swipeEnd",a1=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=um({prop:r,defaultProp:s??!0,onChange:i,caller:rl});return p.jsx(yo,{present:n||a,children:p.jsx(iR,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:On(e.onPause),onResume:On(e.onResume),onSwipeStart:pe(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:pe(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:pe(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});a1.displayName=rl;var[rR,sR]=n1(rl,{onClose(){}}),iR=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...y}=e,m=Au(rl,n),[b,g]=x.useState(null),v=Ze(t,D=>g(D)),w=x.useRef(null),S=x.useRef(null),E=s||m.duration,_=x.useRef(0),C=x.useRef(E),T=x.useRef(0),{onToastAdd:R,onToastRemove:j}=m,U=On(()=>{var Z;(b==null?void 0:b.contains(document.activeElement))&&((Z=m.viewport)==null||Z.focus()),o()}),I=x.useCallback(D=>{!D||D===1/0||(window.clearTimeout(T.current),_.current=new Date().getTime(),T.current=window.setTimeout(U,D))},[U]);x.useEffect(()=>{const D=m.viewport;if(D){const Z=()=>{I(C.current),c==null||c()},G=()=>{const B=new Date().getTime()-_.current;C.current=C.current-B,window.clearTimeout(T.current),l==null||l()};return D.addEventListener(lf,G),D.addEventListener(cf,Z),()=>{D.removeEventListener(lf,G),D.removeEventListener(cf,Z)}}},[m.viewport,E,l,c,I]),x.useEffect(()=>{i&&!m.isClosePausedRef.current&&I(E)},[i,E,m.isClosePausedRef,I]),x.useEffect(()=>(R(),()=>j()),[R,j]);const q=x.useMemo(()=>b?p1(b):null,[b]);return m.viewport?p.jsxs(p.Fragment,{children:[q&&p.jsx(oR,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:q}),p.jsx(rR,{scope:n,onClose:U,children:nl.createPortal(p.jsx(hm.ItemSlot,{scope:n,children:p.jsx(LP,{asChild:!0,onEscapeKeyDown:pe(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||U(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:p.jsx(ke.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pe(e.onKeyDown,D=>{D.key==="Escape"&&(a==null||a(D.nativeEvent),D.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:pe(e.onPointerDown,D=>{D.button===0&&(w.current={x:D.clientX,y:D.clientY})}),onPointerMove:pe(e.onPointerMove,D=>{if(!w.current)return;const Z=D.clientX-w.current.x,G=D.clientY-w.current.y,B=!!S.current,P=["left","right"].includes(m.swipeDirection),A=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,M=P?A(0,Z):0,Q=P?0:A(0,G),W=D.pointerType==="touch"?10:2,ee={x:M,y:Q},ne={originalEvent:D,delta:ee};B?(S.current=ee,Ol(eR,d,ne,{discrete:!1})):Uy(ee,m.swipeDirection,W)?(S.current=ee,Ol(ZP,u,ne,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(Z)>W||Math.abs(G)>W)&&(w.current=null)}),onPointerUp:pe(e.onPointerUp,D=>{const Z=S.current,G=D.target;if(G.hasPointerCapture(D.pointerId)&&G.releasePointerCapture(D.pointerId),S.current=null,w.current=null,Z){const B=D.currentTarget,P={originalEvent:D,delta:Z};Uy(Z,m.swipeDirection,m.swipeThreshold)?Ol(nR,f,P,{discrete:!0}):Ol(tR,h,P,{discrete:!0}),B.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),oR=e=>{const{__scopeToast:t,children:n,...r}=e,s=Au(rl,t),[i,o]=x.useState(!1),[a,l]=x.useState(!1);return cR(()=>o(!0)),x.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:p.jsx(cm,{asChild:!0,children:p.jsx(Ru,{...r,children:i&&p.jsxs(p.Fragment,{children:[s.label," ",n]})})})},aR="ToastTitle",l1=x.forwardRef((e,t)=>
vendor: 8,982 bytes, lines 40-114
40{const{__scopeToast:n,...r}=e;return p.jsx(ke.div,{...r,ref:t})});l1.displayName=aR;var lR="ToastDescription",c1=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(ke.div,{...r,ref:t})});c1.displayName=lR;var u1="ToastAction",d1=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?p.jsx(f1,{altText:n,asChild:!0,children:p.jsx(fm,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${u1}\`. Expected non-empty \`string\`.`),null)});d1.displayName=u1;var h1="ToastClose",fm=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=sR(h1,n);return p.jsx(f1,{asChild:!0,children:p.jsx(ke.button,{type:"button",...r,ref:t,onClick:pe(e.onClick,s.onClose)})})});fm.displayName=h1;var f1=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return p.jsx(ke.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function p1(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),uR(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...p1(r))}}),t}function Ol(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Xb(s,i):s.dispatchEvent(i)}var Uy=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function cR(e=()=>{}){const t=On(e);Xn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function uR(e){return e.nodeType===e.ELEMENT_NODE}function dR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var hR=r1,m1=i1,g1=a1,y1=l1,v1=c1,w1=d1,x1=fm;function b1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=b1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function S1(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=b1(e))&&(r&&(r+=" "),r+=t);return r}const By=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vy=S1,ju=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Vy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const h=By(u)||By(d);return s[c][h]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:h,...f}=u;return Object.entries(f).every(y=>{let[m,b]=y;return Array.isArray(b)?b.includes({...i,...a}[m]):{...i,...a}[m]===b})?[...c,d,h]:c},[]);return Vy(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 fR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E1=(...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 pR={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 mR=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>x.createElement("svg",{ref:l,...pR,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:E1("lucide",s),...a},[...o.map(([c,u])=>x.createElement(c,u)),...Array.isArray(i)?i:[i]]));/**
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 ye=(e,t)=>{const n=x.forwardRef(({className:r,...s},i)=>x.createElement(mR,{ref:i,iconNode:t,className:E1(`lucide-${fR(e)}`,r),...s}));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 zy=ye("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
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 _1=ye("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 gR=ye("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
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 k1=ye("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const yR=ye("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const df=ye("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const vR=ye("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const wR=ye("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const xR=ye("Gamepad2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const bR=ye("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const C1=ye("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const SR=ye("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const ER=ye("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const _R=ye("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
131 * @license lucide-react v0.462.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const kR=ye("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const CR=ye("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const TR=ye("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const PR=ye("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
151 * @license lucide-react v0.462.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const RR=ye("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
156 * @license lucide-react v0.462.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const AR=ye("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
161 * @license lucide-react v0.462.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const jR=ye("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
166 * @license lucide-react v0.462.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const NR=ye("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
171 * @license lucide-react v0.462.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const OR=ye("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 8,824 bytes, lines 175-185
175],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
176 * @license lucide-react v0.462.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const IR=ye("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
181 * @license lucide-react v0.462.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const pm=ye("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),mm="-",DR=e=>{const t=LR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(mm);return a[0]===""&&a.length!==1&&a.shift(),T1(a,t)||MR(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},T1=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?T1(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(mm);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Wy=/^\[(.+)\]$/,MR=e=>{if(Wy.test(e)){const t=Wy.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},LR=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return FR(Object.entries(e.classGroups),n).forEach(([i,o])=>{hf(o,r,i,t)}),r},hf=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Hy(t,s);i.classGroupId=n;return}if(typeof s=="function"){if($R(s)){hf(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{hf(o,Hy(t,i),n,r)})})},Hy=(e,t)=>{let n=e;return t.split(mm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},$R=e=>e.isThemeGetter,FR=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,UR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},P1="!",BR=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let b=0;b<a.length;b++){let g=a[b];if(c===0){if(g===s&&(r||a.slice(b,b+i)===t)){l.push(a.slice(u,b)),u=b+i;continue}if(g==="/"){d=b;continue}}g==="["?c++:g==="]"&&c--}const h=l.length===0?a:a.substring(u),f=h.startsWith(P1),y=f?h.substring(1):h,m=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:m}};return n?a=>n({className:a,parseClassName:o}):o},VR=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},zR=e=>({cache:UR(e.cacheSize),parseClassName:BR(e),...DR(e)}),WR=/\s+/,HR=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(WR);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(c);let y=!!f,m=r(y?h.substring(0,f):h);if(!m){if(!y){a=c+(a.length>0?" "+a:a);continue}if(m=r(h),!m){a=c+(a.length>0?" "+a:a);continue}y=!1}const b=VR(u).join(":"),g=d?b+P1:b,v=g+m;if(i.includes(v))continue;i.push(v);const w=s(m,y);for(let S=0;S<w.length;++S){const E=w[S];i.push(g+E)}a=c+(a.length>0?" "+a:a)}return a};function KR(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=R1(t))&&(r&&(r+=" "),r+=n);return r}const R1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=R1(e[r]))&&(n&&(n+=" "),n+=t);return n};function qR(e,...t){let n,r,s,i=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=zR(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=HR(l,n);return s(l,u),u}return function(){return i(KR.apply(null,arguments))}}const he=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},A1=/^\[(?:([a-z-]+):)?(.+)\]$/i,GR=/^\d+\/\d+$/,QR=new Set(["px","full","screen"]),YR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,JR=/\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$/,XR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ZR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ln=e=>$i(e)||QR.has(e)||GR.test(e),hr=e=>vo(e,"length",lA),$i=e=>!!e&&!Number.isNaN(Number(e)),Ad=e=>vo(e,"number",$i),Fo=e=>!!e&&Number.isInteger(Number(e)),tA=e=>e.endsWith("%")&&$i(e.slice(0,-1)),J=e=>A1.test(e),fr=e=>YR.test(e),nA=new Set(["length","size","percentage"]),rA=e=>vo(e,nA,j1),sA=e=>vo(e,"position",j1),iA=new Set(["image","url"]),oA=e=>vo(e,iA,uA),aA=e=>vo(e,"",cA),Uo=()=>!0,vo=(e,t,n)=>{const r=A1.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},lA=e=>JR.test(e)&&!XR.test(e),j1=()=>!1,cA=e=>ZR.test(e),uA=e=>eA.test(e),dA=()=>{const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),s=he("borderColor"),i=he("borderRadius"),o=he("borderSpacing"),a=he("borderWidth"),l=he("contrast"),c=he("grayscale"),u=he("hueRotate"),d=he("invert"),h=he("gap"),f=he("gradientColorStops"),y=he("gradientColorStopPositions"),m=he("inset"),b=he("margin"),g=he("opacity"),v=he("padding"),w=he("saturate"),S=he("scale"),E=he("sepia"),_=he("skew"),C=he("space"),T=he("translate"),R=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",J,t],I=()=>[J,t],q=()=>["",Ln,hr],D=()=>["auto",$i,J],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",J],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[$i,J];return{cacheSize:500,separator:":",theme:{colors:[Uo],spacing:[Ln,hr],blur:["none","",fr,J],brightness:Q(),borderColor:[e],borderRadius:["none","","full",fr,J],borderSpacing:I(),borderWidth:q(),contrast:Q(),grayscale:A(),hueRotate:Q(),invert:A(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[tA,hr],inset:U(),margin:U(),opacity:Q(),padding:I(),saturate:Q(),scale:Q(),sepia:A(),skew:Q(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[fr]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:[...Z(),J]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fo,J]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",Fo,J]}],"grid-cols":[{"grid-cols":[Uo]}],"col-start-end":[{col:["auto",{span:["full",Fo,J]},J]}],"col-start":[{"col-start":D()}
vendor: 9,394 bytes, line 185
185],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Uo]}],"row-start-end":[{row:["auto",{span:[Fo,J]},J]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[fr]},fr]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fr,hr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ad]}],"font-family":[{font:[Uo]}],"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",J]}],"line-clamp":[{"line-clamp":["none",$i,Ad]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ln,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ln,hr]}],"underline-offset":[{"underline-offset":["auto",Ln,J]}],"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:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],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",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),sA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rA]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},oA]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...G(),"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":[g]}],"divide-style":[{divide:G()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[Ln,J]}],"outline-w":[{outline:[Ln,hr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Ln,hr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fr,aA]}],"shadow-color":[{shadow:[Uo]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",fr,J]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],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":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"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",J]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Fo,J]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],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",J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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 185
185],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",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ln,hr,Ad]}],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"]}}},hA=qR(dA);function ge(...e){return hA(S1(e))}const fA=hR,N1=x.forwardRef(({className:e,...t},n)=>p.jsx(m1,{ref:n,className:ge("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}));N1.displayName=m1.displayName;const pA=ju("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"}}),O1=x.forwardRef(({className:e,variant:t,...n},r)=>p.jsx(g1,{ref:r,className:ge(pA({variant:t}),e),...n}));O1.displayName=g1.displayName;const mA=x.forwardRef(({className:e,...t},n)=>p.jsx(w1,{ref:n,className:ge("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}));mA.displayName=w1.displayName;const I1=x.forwardRef(({className:e,...t},n)=>p.jsx(x1,{ref:n,className:ge("absolute right-2 top-2 rounded-md p-1 text-foreground
185/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:p.jsx(pm,{className:"h-4 w-4"})}));I1.displayName=x1.displayName;const D1=x.forwardRef(({className:e,...t},n)=>p.jsx(y1,{ref:n,className:ge("text-sm font-semibold",e),...t}));D1.displayName=y1.displayName;const M1=x.forwardRef(({className:e,...t},n)=>p.jsx(v1,{ref:n,className:ge("text-sm opacity-90",e),...t}));M1.displayName=v1.displayName;function gA(){const{toasts:e}=Qb();return p.jsxs(fA,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return p.jsxs(O1,{...i,children:[p.jsxs("div",{className:"grid gap-1",children:[n&&p.jsx(D1,{children:n}),r&&p.jsx(M1,{children:r})]}),s,p.jsx(I1,{})]},t)}),p.jsx(N1,{})]})}var Ky=["light","dark"],yA="(prefers-color-scheme: dark)",vA=x.createContext(void 0),wA={setTheme:e=>{},themes:[]},xA=()=>{var e;return(e=x.useContext(vA))!=null?e:wA};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let c=i==="system",u=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=s?Ky.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(y,m=!1,b=!0)=>{let g=o?o[y]:y,v=m?y+"|| ''":`'${g}'`,w="";return s&&b&&!m&&Ky.includes(y)&&(w+=`d.style.colorScheme = '${y}';`),n==="class"?m||g?w+=`c.add(${v})`:w+="null":g&&(w+=`d[s](n,${v})`),w},f=e?`!function(){${u}${h(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${yA}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${c?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var bA=e=>{switch(e){case"success":return _A;case"info":return CA;case"warning":return kA;case"error":return TA;default:return null}},SA=Array(12).fill(0),EA=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},SA.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),_A=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),kA=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.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"})),CA=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),TA=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),PA=O.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"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),RA=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};
185return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ff=1,AA=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,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ff++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},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)=>
185this.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(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],O.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(NA(l)&&!l.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:c,description:u})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(l):t.success,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:c,description:u})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(l):t.error,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:c,description:u})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>o.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));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)||ff++;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}},wt=new AA,jA=(e,t)=>{let n=(t==null?void 0:t.id)||ff++;return wt.addToast({title:e,...t,id:n}),n},NA=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",OA=jA,IA=()=>wt.toasts,DA=()=>wt.getActiveToasts(),zt=Object.assign(OA,{success:wt.success,info:wt.info,warning:wt.warning,error:wt.error,custom:wt.custom,message:wt.message,promise:wt.promise,dismiss:wt.dismiss,loading:wt.loading},{getHistory:IA,getToasts:DA});function MA(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))}MA(`: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;
185left: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}
185: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%);
185--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%)}
186`);function Il(e){return e.label!==void 0}var LA=3,$A="32px",FA="16px",qy=4e3,UA=356,BA=14,VA=20,zA=200;function en(...e){return e.filter(Boolean).join(" ")}function WA(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var HA=e=>{var t,n,r,s,i,o,a,l,c,u,d;let{invert:h,toast:f,unstyled:y,interacting:m,setHeights:b,visibleToasts:g,heights:v,index:w,toasts:S,expanded:E,removeToast:_,defaultRichColors:C,closeButton:T,style:R,cancelButtonStyle:j,actionButtonStyle:U,className:I="",descriptionClassName:q="",duration:D,position:Z,gap:G,loadingIcon:B,expandByDefault:P,classNames:A,icons:M,closeButtonAriaLabel:Q="Close toast",pauseWhenPageIsHidden:W}=e,[ee,ne]=O.useState(null),[Ne,et]=O.useState(null),[ie,Gs]=O.useState(!1),[ir,is]=O.useState(!1),[or,Qs]=O.useState(!1),[ar,dl]=O.useState(!1),[Yu,hl]=O.useState(!1),[Ju,Ro]=O.useState(0),[Ys,xg]=O.useState(0),Ao=O.useRef(f.duration||D||qy),bg=O.useRef(null),os=O.useRef(null),Ik=w===0,Dk=w+1<=g,Lt=f.type,Js=f.dismissible!==!1,Mk=f.className||"",Lk=f.descriptionClassName||"",fl=O.useMemo(()=>v.findIndex(Y=>Y.toastId===f.id)||0,[v,f.id]),$k=O.useMemo(()=>{var Y;return(Y=f.closeButton)!=null?Y:T},[f.closeButton,T]),Sg=O.useMemo(()=>f.duration||D||qy,[f.duration,D]),Xu=O.useRef(0),Xs=O.useRef(0),Eg=O.useRef(0),Zs=O.useRef(null),[Fk,Uk]=Z.split("-"),_g=O.useMemo(()=>v.reduce((Y,le,ve)=>ve>=fl?Y:Y+le.height,0),[v,fl]),kg=RA(),Bk=f.invert||h,Zu=Lt==="loading";Xs.current=O.useMemo(()=>fl*G+_g,[fl,_g]),O.useEffect(()=>{Ao.current=Sg},[Sg]),O.useEffect(()=>{Gs(!0)},[]),O.useEffect(()=>{let Y=os.current;if(Y){let le=Y.getBoundingClientRect().height;return xg(le),b(ve=>[{toastId:f.id,height:le,position:f.position},...ve]),()=>b(ve=>ve.filter(Yt=>Yt.toastId!==f.id))}},[b,f.id]),O.useLayoutEffect(()=>{if(!ie)return;let Y=os.current,le=Y.style.height;Y.style.height="auto";let ve=Y.getBoundingClientRect().height;Y.style.height=le,xg(ve),b(Yt=>Yt.find(Jt=>Jt.toastId===f.id)?Yt.map(Jt=>Jt.toastId===f.id?{...Jt,height:ve}:Jt):[{toastId:f.id,height:ve,position:f.position},...Yt])},[ie,f.title,f.description,b,f.id]);let lr=O.useCallback(()=>
186{is(!0),Ro(Xs.current),b(Y=>Y.filter(le=>le.toastId!==f.id)),setTimeout(()=>{_(f)},zA)},[f,_,b,Xs]);O.useEffect(()=>{if(f.promise&&Lt==="loading"||f.duration===1/0||f.type==="loading")return;let Y;return E||m||W&&kg?(()=>{if(Eg.current<Xu.current){let le=new Date().getTime()-Xu.current;Ao.current=Ao.current-le}Eg.current=new Date().getTime()})():Ao.current!==1/0&&(Xu.current=new Date().getTime(),Y=setTimeout(()=>{var le;(le=f.onAutoClose)==null||le.call(f,f),lr()},Ao.current)),()=>clearTimeout(Y)},[E,m,f,Lt,W,kg,lr]),O.useEffect(()=>{f.delete&&lr()},[lr,f.delete]);function Vk(){var Y,le,ve;return M!=null&&M.loading?O.createElement("div",{className:en(A==null?void 0:A.loader,(Y=f==null?void 0:f.classNames)==null?void 0:Y.loader,"sonner-loader"),"data-visible":Lt==="loading"},M.loading):B?O.createElement("div",{className:en(A==null?void 0:A.loader,(le=f==null?void 0:f.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":Lt==="loading"},B):O.createElement(EA,{className:en(A==null?void 0:A.loader,(ve=f==null?void 0:f.classNames)==null?void 0:ve.loader),visible:Lt==="loading"})}return O.createElement("li",{tabIndex:0,ref:os,className:en(I,Mk,A==null?void 0:A.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,A==null?void 0:A.default,A==null?void 0:A[Lt],(n=f==null?void 0:f.classNames)==null?void 0:n[Lt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:C,"data-styled":!(f.jsx||f.unstyled||y),"data-mounted":ie,"data-promise":!!f.promise,"data-swiped":Yu,"data-removed":ir,"data-visible":Dk,"data-y-position":Fk,"data-x-position":Uk,"data-index":w,"data-front":Ik,"data-swiping":or,"data-dismissible":Js,"data-type":Lt,"data-invert":Bk,"data-swipe-out":ar,"data-swipe-direction":Ne,"data-expanded":!!(E||P&&ie),style:{"--index":w,"--toasts-before":w,"--z-index":S.length-w,"--offset":`${ir?Ju:Xs.current}px`,"--initial-height":P?"auto":`${Ys}px`,...R,...f.style},onDragEnd:()=>{Qs(!1),ne(null),Zs.current=null},onPointerDown:Y=>{Zu||!Js||(bg.current=new Date,Ro(Xs.current),Y.target.setPointerCapture(Y.pointerId),Y.target.tagName!=="BUTTON"&&(Qs(!0),Zs.current={x:Y.clientX,y:Y.clientY}))},onPointerUp:()=>{var Y,le,ve,Yt;if(ar||!Js)return;Zs.current=null;let Jt=Number(((Y=os.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),cr=Number(((le=os.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),as=new Date().getTime()-((ve=bg.current)==null?void 0:ve.getTime()),Xt=ee==="x"?Jt:cr,ur=Math.abs(Xt)/as;if(Math.abs(Xt)>=VA||ur>.11){Ro(Xs.current),(Yt=f.onDismiss)==null||Yt.call(f,f),et(ee==="x"?Jt>0?"right":"left":cr>0?"down":"up"),lr(),dl(!0),hl(!1);return}Qs(!1),ne(null)},onPointerMove:Y=>{var le,ve,Yt,Jt;if(!Zs.current||!Js||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;let cr=Y.clientY-Zs.current.y,as=Y.clientX-Zs.current.x,Xt=(ve=e.swipeDirections)!=null?ve:WA(Z);!ee&&(Math.abs(as)>1||Math.abs(cr)>1)&&ne(Math.abs(as)>Math.abs(cr)?"x":"y");let ur={x:0,y:0};ee==="y"?(Xt.includes("top")||Xt.includes("bottom"))&&(Xt.includes("top")&&cr<0||Xt.includes("bottom")&&cr>0)&&(ur.y=cr):ee==="x"&&(Xt.includes("left")||Xt.includes("right"))&&(Xt.includes("left")&&as<0||Xt.includes("right")&&as>0)&&(ur.x=as),(Math.abs(ur.x)>0||Math.abs(ur.y)>0)&&hl(!0),(Yt=os.current)==null||Yt.style.setProperty("--swipe-amount-x",`${ur.x}px`),(Jt=os.current)==null||Jt.style.setProperty("--swipe-amount-y",`${ur.y}px`)}},$k&&!f.jsx?O.createElement("button",{"aria-label":Q,"data-disabled":Zu,"data-close-button":!0,onClick:Zu||!Js?()=>{}:()=>{var Y;lr(),(Y=f.onDismiss)==null||Y.call(f,f)},className:en(A==null?void 0:A.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=M==null?void 0:M.close)!=null?i:PA):null,f.jsx||x.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:O.createElement(O.Fragment,null,Lt||f.icon||f.promise?O.createElement("div",{"data-icon":"",className:en(A==null?void 0:A.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Vk():null,f.type!=="loading"?f.icon||(M==null?void 0:M[Lt])||bA(Lt):null):null,O.createElement("div",{"data-content":"",className:en(A==null?void 0:A.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},O.createElement("div",{"data-title":"",className:en(A==null?void 0:A.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?O.createElement("div",{"data-description":"",className:en(q,Lk,A==null?void 0:A.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),x.isValidElement(f.cancel)?f.cancel:f.cancel&&Il(f.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||j,onClick:Y=>{var le,ve;Il(f.cancel)&&Js&&((ve=(le=f.cancel).onClick)==null||ve.call(le,Y),lr())},className:en(A==null?void 0:A.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,x.isValidElement(f.action)?f.action:f.action&&Il(f.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||U,onClick:Y=>{var le,ve;Il(f.action)&&((ve=(le=f.action).onClick)==null||ve.call(le,Y),!Y.defaultPrevented&&lr())},className:en(A==null?void 0:A.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function Gy(){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 KA(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?FA:$A;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${o}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}
vendor: 4,605 bytes, line 186
186var qA=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:h,style:f,visibleToasts:y=LA,toastOptions:m,dir:b=Gy(),gap:g=BA,loadingIcon:v,icons:w,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[_,C]=O.useState([]),T=O.useMemo(()=>Array.from(new Set([r].concat(_.filter(W=>W.position).map(W=>W.position)))),[_,r]),[R,j]=O.useState([]),[U,I]=O.useState(!1),[q,D]=O.useState(!1),[Z,G]=O.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=O.useRef(null),P=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),A=O.useRef(null),M=O.useRef(!1),Q=O.useCallback(W=>{C(ee=>{var ne;return(ne=ee.find(Ne=>Ne.id===W.id))!=null&&ne.delete||wt.dismiss(W.id),ee.filter(({id:Ne})=>Ne!==W.id)})},[]);return O.useEffect(()=>wt.subscribe(W=>{if(W.dismiss){C(ee=>ee.map(ne=>ne.id===W.id?{...ne,delete:!0}:ne));return}setTimeout(()=>{qb.flushSync(()=>{C(ee=>{let ne=ee.findIndex(Ne=>Ne.id===W.id);return ne!==-1?[...ee.slice(0,ne),{...ee[ne],...W},...ee.slice(ne+1)]:[W,...ee]})})})}),[]),O.useEffect(()=>{if(u!=="system"){G(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;let W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:ee})=>{G(ee?"dark":"light")})}catch{W.addListener(({matches:ne})=>{try{G(ne?"dark":"light")}catch(Ne){console.error(Ne)}})}},[u]),O.useEffect(()=>{_.length<=1&&I(!1)},[_]),O.useEffect(()=>{let W=ee=>{var ne,Ne;s.every(et=>ee[et]||ee.code===et)&&(I(!0),(ne=B.current)==null||ne.focus()),ee.code==="Escape"&&(document.activeElement===B.current||(Ne=B.current)!=null&&Ne.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[s]),O.useEffect(()=>{if(B.current)return()=>{A.current&&(A.current.focus({preventScroll:!0}),A.current=null,M.current=!1)}},[B.current]),O.createElement("section",{ref:t,"aria-label":`${S} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((W,ee)=>{var ne;let[Ne,et]=W.split("-");return _.length?O.createElement("ol",{key:W,dir:b==="auto"?Gy():b,tabIndex:-1,ref:B,className:a,"data-sonner-toaster":!0,"data-theme":Z,"data-y-position":Ne,"data-lifted":U&&_.length>1&&!i,"data-x-position":et,style:{"--front-toast-height":`${((ne=R[0])==null?void 0:ne.height)||0}px`,"--width":`${UA}px`,"--gap":`${g}px`,...f,...KA(l,c)},onBlur:ie=>{M.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(M.current=!1,A.current&&(A.current.focus({preventScroll:!0}),A.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||M.current||(M.current=!0,A.current=ie.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{q||I(!1)},onDragEnd:()=>I(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||D(!0)},onPointerUp:()=>D(!1)},_.filter(ie=>!ie.position&&ee===0||ie.position===W).map((ie,Gs)=>{var ir,is;return O.createElement(HA,{key:ie.id,icons:w,index:Gs,toast:ie,defaultRichColors:d,duration:(ir=m==null?void 0:m.duration)!=null?ir:h,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:y,closeButton:(is=m==null?void 0:m.closeButton)!=null?is:o,interacting:q,position:W,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:Q,toasts:_.filter(or=>or.position==ie.position),heights:R.filter(or=>or.position==ie.position),setHeights:j,expandByDefault:i,gap:g,loadingIcon:v,expanded:U,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const GA=({...e})=>{const{theme:t="system"}=xA();return p.jsx(qA,{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})};var QA=vp[" useId ".trim().toString()]||(()=>{}),YA=0;
vendor: 10,567 bytes, line 186
186function jd(e){const[t,n]=x.useState(QA());return Xn(()=>{e||n(r=>r??String(YA++))},[e]),e||(t?`radix-${t}`:"")}const JA=["top","right","bottom","left"],Yr=Math.min,Pt=Math.max,Kc=Math.round,Dl=Math.floor,jn=e=>({x:e,y:e}),XA={left:"right",right:"left",bottom:"top",top:"bottom"},ZA={start:"end",end:"start"};function pf(e,t,n){return Pt(e,Yr(t,n))}function Zn(e,t){return typeof e=="function"?e(t):e}function er(e){return e.split("-")[0]}function wo(e){return e.split("-")[1]}function gm(e){return e==="x"?"y":"x"}function ym(e){return e==="y"?"height":"width"}const ej=new Set(["top","bottom"]);function Pn(e){return ej.has(er(e))?"y":"x"}function vm(e){return gm(Pn(e))}function tj(e,t,n){n===void 0&&(n=!1);const r=wo(e),s=vm(e),i=ym(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=qc(o)),[o,qc(o)]}function nj(e){const t=qc(e);return[mf(e),t,mf(t)]}function mf(e){return e.replace(/start|end/g,t=>ZA[t])}const Qy=["left","right"],Yy=["right","left"],rj=["top","bottom"],sj=["bottom","top"];function ij(e,t,n){switch(e){case"top":case"bottom":return n?t?Yy:Qy:t?Qy:Yy;case"left":case"right":return t?rj:sj;default:return[]}}function oj(e,t,n,r){const s=wo(e);let i=ij(er(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(mf)))),i}function qc(e){return e.replace(/left|right|bottom|top/g,t=>XA[t])}function aj(e){return{top:0,right:0,bottom:0,left:0,...e}}function L1(e){return typeof e!="number"?aj(e):{top:e,right:e,bottom:e,left:e}}function Gc(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Jy(e,t,n){let{reference:r,floating:s}=e;const i=Pn(t),o=vm(t),a=ym(o),l=er(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-s.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-s.width,y:d};break;default:f={x:r.x,y:r.y}}switch(wo(t)){case"start":f[o]-=h*(n&&c?-1:1);break;case"end":f[o]+=h*(n&&c?-1:1);break}return f}const lj=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Jy(c,r,l),h=r,f={},y=0;for(let m=0;m<a.length;m++){const{name:b,fn:g}=a[m],{x:v,y:w,data:S,reset:E}=await g({x:u,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=v??u,d=w??d,f={...f,[b]:{...f[b],...S}},E&&y<=50&&(y++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:u,y:d}=Jy(c,h,l)),m=-1)}return{x:u,y:d,placement:h,strategy:s,middlewareData:f}};async function Aa(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=Zn(t,e),y=L1(f),b=a[h?d==="floating"?"reference":"floating":d],g=Gc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=Gc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-E.top+y.top)/S.y,bottom:(E.bottom-g.bottom+y.bottom)/S.y,left:(g.left-E.left+y.left)/S.x,right:(E.right-g.right+y.right)/S.x}}const cj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Zn(e,t)||{};if(c==null)return{};const d=L1(u),h={x:n,y:r},f=vm(s),y=ym(f),m=await o.getDimensions(c),b=f==="y",g=b?"top":"left",v=b?"bottom":"right",w=b?"clientHeight":"clientWidth",S=i.reference[y]+i.reference[f]-h[f]-i.floating[y],E=h[f]-i.reference[f],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let C=_?_[w]:0;(!C||!await(o.isElement==null?void 0:o.isElement(_)))&&(C=a.floating[w]||i.floating[y]);const T=S/2-E/2,R=C/2-m[y]/2-1,j=Yr(d[g],R),U=Yr(d[v],R),I=j,q=C-m[y]-U,D=C/2-m[y]/2+T,Z=pf(I,D,q),G=!l.arrow&&wo(s)!=null&&D!==Z&&i.reference[y]/2-(D<I?j:U)-m[y]/2<0,B=G?D<I?D-I:D-q:0;return{[f]:h[f]+B,data:{[f]:Z,centerOffset:D-Z-B,...G&&{alignmentOffset:B}},reset:G}}}),uj=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:m=!0,...b}=Zn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=er(s),v=Pn(a),w=er(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(w||!m?[qc(a)]:nj(a)),_=y!=="none";!h&&_&&E.push(...oj(a,m,y,S));const C=[a,...E],T=await Aa(t,b),R=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&R.push(T[g]),d){const D=tj(s,o,S);R.push(T[D[0]],T[D[1]])}if(j=[...j,{placement:s,overflows:R}],!R.every(D=>D<=0)){var U,I;const D=(((U=i.flip)==null?void 0:U.index)||0)+1,Z=C[D];if(Z&&(!(d==="alignment"?v!==Pn(Z):!1)||j.every(P=>P.overflows[0]>0&&Pn(P.placement)===v)))return{data:{index:D,overflows:j},reset:{placement:Z}};let G=(I=j.filter(B=>B.overflows[0]<=0).sort((B,P)=>B.overflows[1]-P.overflows[1])[0])==null?void 0:I.placement;if(!G)switch(f){case"bestFit":{var q;const B=(q=j.filter(P=>{if(_){const A=Pn(P.placement);return A===v||A==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(A=>A>0).reduce((A,M)=>A+M,0)]).sort((P,A)=>P[1]-A[1])[0])==null?void 0:q[0];B&&(G=B);break}case"initialPlacement":G=a;break}if(s!==G)return{reset:{placement:G}}}return{}}}};function Xy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zy(e){return JA.some(t=>e[t]>=0)}const dj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Zn(e,t);switch(r){case"referenceHidden":{const i=await Aa(t,{...s,elementContext:"reference"}),o=Xy(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Zy(o)}}}case"escaped":{const i=await Aa(t,{...s,altBoundary:!0}),o=Xy(i,n.floating);return{data:{escapedOffsets:o,escaped:Zy(o)}}}default:return{}}}}},$1=new Set(["left","top"]);async function hj(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=er(n),a=wo(n),l=Pn(n)==="y",c=$1.has(o)?-1:1,u=i&&l?-1:1,d=Zn(t,e);let{mainAxis:h,crossAxis:f,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"&&(f=a==="end"?y*-1:y),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const fj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await hj(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},pj=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:g,y:v}=b;return{x:g,y:v}}},...l}=Zn(e,t),c={x:n,y:r},u=await Aa(t,l),d=Pn(er(s)),h=gm(d);let f=c[h],y=c[d];if(i){const b=h==="y"?"top":"left",g=h==="y"?"bottom":"right",v=f+u[b],w=f-u[g];f=pf(v,f,w)}if(o){const b=d==="y"?"top":"left",g=d==="y"?"bottom":"right",v=y+u[b],w=y-u[g];y=pf(v,y,w)}const m=a.fn({...t,[h]:f,[d]:y});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[d]:o}}}}}},mj=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Zn(e,t),u={x:n,y:r},d=Pn(s),h=gm(d);let f=u[h],y=u[d];const m=Zn(a,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=h==="y"?"height":"width",S=i.reference[h]-i.floating[w]+b.mainAxis,E=i.reference[h]+i.reference[w]-b.mainAxis;f<S?f=S:f>E&&(f=E)}if(c){var g,v;const w=h==="y"?"width":"height",S=$1.has(er(s)),E=i.reference[d]-i.floating[w]+(S&&((g=o.offset)==null?void 0:g[d])||0)+(S?0:b.crossAxis),_=i.reference[d]+i.reference[w]+(S?0:((v=o.offset)==null?void 0:v[d])||0)-(S?b.crossAxis:0);y<E?y=E:y>_&&(y=_)}return{[h]:f,[d]:y}}}},gj=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=Zn(e,t),u=await Aa(t,c),d=er(s),h=wo(s),f=Pn(s)==="y",{width:y,height:m}=i.floating;let b,g;d==="top"||d==="bottom"?(b=d,g=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(g=d,b=h==="end"?"top":"bottom");const v=m-u.top-u.bottom,w=y-u.left-u.right,S=Yr(m-u[b],v),E=Yr(y-u[g],w),_=!t.middlewareData.shift;let C=S,T=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),_&&!h){const j=Pt(u.left,0),U=Pt(u.right,0),I=Pt(u.top,0),q=Pt(u.bottom,0);f?T=y-2*(j!==0||U!==0?j+U:Pt(u.left,u.right)):C=m-2*(I!==0||q!==0?I+q:Pt(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:C});const R=await o.getDimensions(a.floating);return y!==R.width||m!==R.height?{reset:{rects:!0}}:{}}}};function Nu(){return typeof window<"u"}function xo(e){return F1(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mn(e){var t;return(t=(F1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function F1(e){return Nu()?e instanceof Node||e instanceof Ot(e).Node:!1}function yn(e){return Nu()?e instanceof Element||e instanceof Ot(e).Element:!1}function In(e){return Nu()?e instanceof HTMLElement||e instanceof Ot(e).HTMLElement:!1}function ev(e){return!Nu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}const yj=new Set(["inline","contents"]);function sl(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=vn(e);
vendor: 4,121 bytes, line 186
186return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!yj.has(s)}const vj=new Set(["table","td","th"]);function wj(e){return vj.has(xo(e))}const xj=[":popover-open",":modal"];function Ou(e){return xj.some(t=>{try{return e.matches(t)}catch{return!1}})}const bj=["transform","translate","scale","rotate","perspective"],Sj=["transform","translate","scale","rotate","perspective","filter"],Ej=["paint","layout","strict","content"];function wm(e){const t=xm(),n=yn(e)?vn(e):e;return bj.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Sj.some(r=>(n.willChange||"").includes(r))||Ej.some(r=>(n.contain||"").includes(r))}function _j(e){let t=Jr(e);for(;In(t)&&!lo(t);){if(wm(t))return t;if(Ou(t))return null;t=Jr(t)}return null}function xm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kj=new Set(["html","body","#document"]);function lo(e){return kj.has(xo(e))}function vn(e){return Ot(e).getComputedStyle(e)}function Iu(e){return yn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jr(e){if(xo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ev(e)&&e.host||Mn(e);return ev(t)?t.host:t}function U1(e){const t=Jr(e);return lo(t)?e.ownerDocument?e.ownerDocument.body:e.body:In(t)&&sl(t)?t:U1(t)}function ja(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=U1(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Ot(s);if(i){const a=gf(o);return t.concat(o,o.visualViewport||[],sl(s)?s:[],a&&n?ja(a):[])}return t.concat(s,ja(s,[],n))}function gf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function B1(e){const t=vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=In(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Kc(n)!==i||Kc(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function bm(e){return yn(e)?e:e.contextElement}function Fi(e){const t=bm(e);if(!In(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=B1(t);let o=(i?Kc(n.width):n.width)/r,a=(i?Kc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Cj=jn(0);function V1(e){const t=Ot(e);return!xm()||!t.visualViewport?Cj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tj(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ot(e)?!1:t}function Us(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=bm(e);let o=jn(1);t&&(r?yn(r)&&(o=Fi(r)):o=Fi(e));const a=Tj(i,n,r)?V1(i):jn(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const h=Ot(i),f=r&&yn(r)?Ot(r):r;let y=h,m=gf(y);for(;m&&r&&f!==y;){const b=Fi(m),g=m.getBoundingClientRect(),v=vn(m),w=g.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,S=g.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=w,c+=S,y=Ot(m),m=gf(y)}}return Gc({width:u,height:d,x:l,y:c})}function Sm(e,t){const n=Iu(e).scrollLeft;return t?t.left+n:Us(Mn(e)).left+n}function z1(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Sm(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function Pj(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Mn(r),a=t?Ou(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=jn(1);const u=jn(0),d=In(r);if((d||!d&&!i)&&((xo(r)!=="body"||sl(o))&&(l=Iu(r)),In(r))){const f=Us(r);c=Fi(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const h=o&&!d&&!i?z1(o,l,!0):jn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function Rj(e){return Array.from(e.getClientRects())}function Aj(e){const t=Mn(e),n=Iu(e),r=e.ownerDocument.body,s=Pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Sm(e);const a=-n.scrollTop;return vn(r).direction==="rtl"&&(o+=Pt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}
vendor: 13,052 bytes, line 186
186function jj(e,t){const n=Ot(e),r=Mn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=xm();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const Nj=new Set(["absolute","fixed"]);function Oj(e,t){const n=Us(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=In(e)?Fi(e):jn(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function tv(e,t,n){let r;if(t==="viewport")r=jj(e,n);else if(t==="document")r=Aj(Mn(e));else if(yn(t))r=Oj(t,n);else{const s=V1(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Gc(r)}function W1(e,t){const n=Jr(e);return n===t||!yn(n)||lo(n)?!1:vn(n).position==="fixed"||W1(n,t)}function Ij(e,t){const n=t.get(e);if(n)return n;let r=ja(e,[],!1).filter(a=>yn(a)&&xo(a)!=="body"),s=null;const i=vn(e).position==="fixed";let o=i?Jr(e):e;for(;yn(o)&&!lo(o);){const a=vn(o),l=wm(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&Nj.has(s.position)||sl(o)&&!l&&W1(e,o))?r=r.filter(u=>u!==o):s=a,o=Jr(o)}return t.set(e,r),r}function Dj(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Ou(t)?[]:Ij(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=tv(t,u,s);return c.top=Pt(d.top,c.top),c.right=Yr(d.right,c.right),c.bottom=Yr(d.bottom,c.bottom),c.left=Pt(d.left,c.left),c},tv(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Mj(e){const{width:t,height:n}=B1(e);return{width:t,height:n}}function Lj(e,t,n){const r=In(t),s=Mn(t),i=n==="fixed",o=Us(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=jn(0);function c(){l.x=Sm(s)}if(r||!r&&!i)if((xo(t)!=="body"||sl(s))&&(a=Iu(t)),r){const f=Us(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&c();i&&!r&&s&&c();const u=s&&!r&&!i?z1(s,a):jn(0),d=o.left+a.scrollLeft-l.x-u.x,h=o.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:o.width,height:o.height}}function Nd(e){return vn(e).position==="static"}function nv(e,t){if(!In(e)||vn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Mn(e)===n&&(n=n.ownerDocument.body),n}function H1(e,t){const n=Ot(e);if(Ou(e))return n;if(!In(e)){let s=Jr(e);for(;s&&!lo(s);){if(yn(s)&&!Nd(s))return s;s=Jr(s)}return n}let r=nv(e,t);for(;r&&wj(r)&&Nd(r);)r=nv(r,t);return r&&lo(r)&&Nd(r)&&!wm(r)?n:r||_j(e)||n}const $j=async function(e){const t=this.getOffsetParent||H1,n=this.getDimensions,r=await n(e.floating);return{reference:Lj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fj(e){return vn(e).direction==="rtl"}const Uj={convertOffsetParentRelativeRectToViewportRelativeRect:Pj,getDocumentElement:Mn,getClippingRect:Dj,getOffsetParent:H1,getElementRects:$j,getClientRects:Rj,getDimensions:Mj,getScale:Fi,isElement:yn,isRTL:Fj};function K1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Bj(e,t){let n=null,r;const s=Mn(e);function i(){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),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(a||t(),!h||!f)return;const y=Dl(d),m=Dl(s.clientWidth-(u+h)),b=Dl(s.clientHeight-(d+f)),g=Dl(u),w={rootMargin:-y+"px "+-m+"px "+-b+"px "+-g+"px",threshold:Pt(0,Yr(1,l))||1};let S=!0;function E(_){const C=_[0].intersectionRatio;if(C!==l){if(!S)return o();C?o(!1,C):r=setTimeout(()=>{o(!1,1e-7)},1e3)}C===1&&!K1(c,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(E,{...w,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return o(!0),i}function Vj(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=bm(e),u=s||i?[...c?ja(c):[],...ja(t)]:[];u.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=c&&a?Bj(c,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(g=>{let[v]=g;v&&v.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let y,m=l?Us(e):null;l&&b();function b(){const g=Us(e);m&&!K1(m,g)&&n(),m=g,y=requestAnimationFrame(b)}return n(),()=>{var g;u.forEach(v=>{s&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),d==null||d(),(g=f)==null||g.disconnect(),f=null,l&&cancelAnimationFrame(y)}}const zj=fj,Wj=pj,Hj=uj,Kj=gj,qj=dj,rv=cj,Gj=mj,Qj=(e,t,n)=>{const r=new Map,s={platform:Uj,...n},i={...s.platform,_c:r};return lj(e,t,{...s,platform:i})};var Yj=typeof document<"u",Jj=function(){},hc=Yj?x.useLayoutEffect:Jj;function Qc(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,s;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(!Qc(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Qc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function q1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sv(e,t){const n=q1(e);return Math.round(t*n)/n}function Od(e){const t=x.useRef(e);return hc(()=>{t.current=e}),t}function Xj(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=x.useState(r);Qc(h,r)||f(r);const[y,m]=x.useState(null),[b,g]=x.useState(null),v=x.useCallback(P=>{P!==_.current&&(_.current=P,m(P))},[]),w=x.useCallback(P=>{P!==C.current&&(C.current=P,g(P))},[]),S=i||y,E=o||b,_=x.useRef(null),C=x.useRef(null),T=x.useRef(u),R=l!=null,j=Od(l),U=Od(s),I=Od(c),q=x.useCallback(()=>{if(!_.current||!C.current)return;const P={placement:t,strategy:n,middleware:h};U.current&&(P.platform=U.current),Qj(_.current,C.current,P).then(A=>{const M={...A,isPositioned:I.current!==!1};D.current&&!Qc(T.current,M)&&(T.current=M,nl.flushSync(()=>{d(M)}))})},[h,t,n,U,I]);hc(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[c]);const D=x.useRef(!1);hc(()=>(D.current=!0,()=>{D.current=!1}),[]),hc(()=>{if(S&&(_.current=S),E&&(C.current=E),S&&E){if(j.current)return j.current(S,E,q);q()}},[S,E,q,j,R]);const Z=x.useMemo(()=>({reference:_,floating:C,setReference:v,setFloating:w}),[v,w]),G=x.useMemo(()=>({reference:S,floating:E}),[S,E]),B=x.useMemo(()=>{const P={position:n,left:0,top:0};if(!G.floating)return P;const A=sv(G.floating,u.x),M=sv(G.floating,u.y);return a?{...P,transform:"translate("+A+"px, "+M+"px)",...q1(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:M}},[n,a,G.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:q,refs:Z,elements:G,floatingStyles:B}),[u,q,Z,G,B])}const Zj=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?rv({element:r.current,padding:s}).fn(n):{}:r?rv({element:r,padding:s}).fn(n):{}}}},e2=(e,t)=>({...zj(e),options:[e,t]}),t2=(e,t)=>({...Wj(e),options:[e,t]}),n2=(e,t)=>({...Gj(e),options:[e,t]}),r2=(e,t)=>({...Hj(e),options:[e,t]}),s2=(e,t)=>({...Kj(e),options:[e,t]}),i2=(e,t)=>({...qj(e),options:[e,t]}),o2=(e,t)=>({...Zj(e),options:[e,t]});var a2="Arrow",G1=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return p.jsx(ke.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});G1.displayName=a2;var l2=G1;function Q1(e){const[t,n]=x.useState(void 0);return Xn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.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 Y1="Popper",[J1,X1]=go(Y1),[uU,Z1]=J1(Y1),eS="PopperAnchor",tS=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Z1(eS,n),o=x.useRef(null),a=Ze(t,o);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:p.jsx(ke.div,{...s,ref:a})});tS.displayName=eS;var Em="PopperContent",[c2,u2]=J1(Em),nS=x.forwardRef((e,t)=>{var ie,Gs,ir,is,or,Qs;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:y,...m}=e,b=Z1(Em,n),[g,v]=x.useState(null),w=Ze(t,ar=>v(ar)),[S,E]=x.useState(null),_=Q1(S),C=(_==null?void 0:_.width)??0,T=(_==null?void 0:_.height)??0,R=r+(i!=="center"?"-"+i:""),j=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},U=Array.isArray(c)?c:[c],I=U.length>0,q={padding:j,boundary:U.filter(h2),altBoundary:I},{refs:D,floatingStyles:Z,placement:G,isPositioned:B,middlewareData:P}=Xj({strategy:"fixed",placement:R,whileElementsMounted:(...ar)=>Vj(...ar,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[e2({mainAxis:s+T,alignmentAxis:o}),l&&t2({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?n2():void 0,...q}),l&&r2({...q}),s2({...q,apply:({elements:ar,rects:dl,availableWidth:Yu,availableHeight:hl})=>{const{width:Ju,height:Ro}=dl.reference,Ys=ar.floating.style;Ys.setProperty("--radix-popper-available-width",`${Yu}px`),Ys.setProperty("--radix-popper-available-height",`${hl}px`),Ys.setProperty("--radix-popper-anchor-width",`${Ju}px`),Ys.setProperty("--radix-popper-anchor-height",`${Ro}px`)}}),S&&o2({element:S,padding:a}),f2({arrowWidth:C,arrowHeight:T}),h&&i2({strategy:"referenceHidden",...q})]}),[A,M]=iS(G),Q=On(y);Xn(()=>{B&&(Q==null||Q())},[B,Q]);const W=(ie=P.arrow)==null?void 0:ie.x,ee=(Gs=P.arrow)==null?void 0:Gs.y,ne=((ir=P.arrow)==null?void 0:ir.centerOffset)!==0,[Ne,et]=x.useState();return Xn(()=>{g&&et(window.getComputedStyle(g).zIndex)},[g]),p.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:B?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(is=P.transformOrigin)==null?void 0:is.x,(or=P.transformOrigin)==null?void 0:or.y].join(" "),...((Qs=P.hide)==null?void 0:Qs.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(c2,{scope:n,placedSide:A,onArrowChange:E,arrowX:W,arrowY:ee,shouldHideArrow:ne,children:p.jsx(ke.div,{"data-side":A,"data-align":M,...m,ref:w,style:{...m.style,animation:B?void 0:"none"}})})})});nS.displayName=Em;var rS="PopperArrow",d2={top:"bottom",right:"left",bottom:"top",left:"right"},sS=x.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=u2(rS,r),o=d2[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(l2,{...s,ref:n,style:{...s.style,display:"block"}})})});sS.displayName=rS;function h2(e){return e!==null}var f2=e=>({name:"transformOrigin",options:e,fn(t){var b,g,v;const{placement:n,rects:r,middlewareData:s}=t,o=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=iS(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((g=s.arrow)==null?void 0:g.x)??0)+a/2,f=(((v=s.arrow)==null?void 0:v.y)??0)+l/2;let y="",m="";return c==="bottom"?(y=o?d:`${h}px`,m=`${-l}px`):c==="top"?(y=o?d:`${h}px`,m=`${r.floating.height+l}px`):c==="right"?(y=`${-l}px`,m=o?d:`${f}px`):c==="left"&&(y=`${r.floating.width+l}px`,m=o?d:`${f}px`),{data:{x:y,y:m}}}});function iS(e){const[t,n="center"]=e.split("-");return[t,n]}var p2=tS,m2=nS,g2=sS,[Du,dU]=go("Tooltip",[X1]),_m=X1(),oS="TooltipProvider",y2=700,iv="tooltip.open",[v2,aS]=Du(oS),lS=e=>{const{__scopeTooltip:t,delayDuration:n=y2,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),p.jsx(v2,{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(()=>
vendor: 5,838 bytes, line 186
186o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};lS.displayName=oS;var cS="Tooltip",[hU,Mu]=Du(cS),yf="TooltipTrigger",w2=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Mu(yf,n),i=aS(yf,n),o=_m(n),a=x.useRef(null),l=Ze(t,a,s.onTriggerChange),c=x.useRef(!1),u=x.useRef(!1),d=x.useCallback(()=>c.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(p2,{asChild:!0,...o,children:p.jsx(ke.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:pe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:pe(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:pe(e.onBlur,s.onClose),onClick:pe(e.onClick,s.onClose)})})});w2.displayName=yf;var x2="TooltipPortal",[fU,b2]=Du(x2,{forceMount:void 0}),co="TooltipContent",uS=x.forwardRef((e,t)=>{const n=b2(co,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=Mu(co,e.__scopeTooltip);return p.jsx(yo,{present:r||o.open,children:o.disableHoverableContent?p.jsx(dS,{side:s,...i,ref:t}):p.jsx(S2,{side:s,...i,ref:t})})}),S2=x.forwardRef((e,t)=>{const n=Mu(co,e.__scopeTooltip),r=aS(co,e.__scopeTooltip),s=x.useRef(null),i=Ze(t,s),[o,a]=x.useState(null),{trigger:l,onClose:c}=n,u=s.current,{onPointerInTransitChange:d}=r,h=x.useCallback(()=>{a(null),d(!1)},[d]),f=x.useCallback((y,m)=>{const b=y.currentTarget,g={x:y.clientX,y:y.clientY},v=T2(g,b.getBoundingClientRect()),w=P2(g,v),S=R2(m.getBoundingClientRect()),E=j2([...w,...S]);a(E),d(!0)},[d]);return x.useEffect(()=>()=>h(),[h]),x.useEffect(()=>{if(l&&u){const y=b=>f(b,u),m=b=>f(b,l);return l.addEventListener("pointerleave",y),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",m)}}},[l,u,f,h]),x.useEffect(()=>{if(o){const y=m=>{const b=m.target,g={x:m.clientX,y:m.clientY},v=(l==null?void 0:l.contains(b))||(u==null?void 0:u.contains(b)),w=!A2(g,o);v?h():w&&(h(),c())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,u,o,c,h]),p.jsx(dS,{...e,ref:i})}),[E2,_2]=Du(cS,{isInside:!1}),k2=_P("TooltipContent"),dS=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=Mu(co,n),c=_m(n),{onClose:u}=l;return x.useEffect(()=>(document.addEventListener(iv,u),()=>document.removeEventListener(iv,u)),[u]),x.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),p.jsx(Pu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(m2,{"data-state":l.stateAttribute,...c,...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:[p.jsx(k2,{children:r}),p.jsx(E2,{scope:n,isInside:!0,children:p.jsx(GP,{id:l.contentId,role:"tooltip",children:s||r})})]})})});uS.displayName=co;var hS="TooltipArrow",C2=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=_m(n);return _2(hS,n).isInside?null:p.jsx(g2,{...s,...r,ref:t})});C2.displayName=hS;function T2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function P2(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 R2(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function A2(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],l=t[o],c=a.x,u=a.y,d=l.x,h=l.y;u>r!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(s=!s)}return s}function j2(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),N2(t)}function N2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}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 O2=lS,fS=uS;const I2=O2,D2=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(fS,{ref:r,sideOffset:t,className:ge("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
186de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));D2.displayName=fS.displayName;var bo=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(){}},Bs=typeof window>"u"||"Deno"in globalThis;function dt(){}function M2(e,t){return typeof e=="function"?e(t):e}function vf(e){return typeof e=="number"&&e>=0&&e!==1/0}function pS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Kr(e,t){return typeof e=="function"?e(t):e}function Ft(e,t){return typeof e=="function"?e(t):e}function ov(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==km(o,t.options))return!1}else if(!Na(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||s&&s!==t.state.fetchStatus||i&&!i(t))}function av(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Vs(t.options.mutationKey)!==Vs(i))return!1}else if(!Na(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function km(e,t){return((t==null?void 0:t.queryKeyHashFn)||Vs)(e)}function Vs(e){return JSON.stringify(e,(t,n)=>wf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Na(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Na(e[n],t[n])):!1}function mS(e,t){if(e===t)return e;const n=lv(e)&&lv(t);if(n||wf(e)&&wf(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},l=new Set(r);let c=0;for(let u=0;u<o;u++){const d=n?u:i[u];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=mS(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function Yc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function lv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wf(e){if(!cv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!cv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function cv(e){return Object.prototype.toString.call(e)==="[object Object]"}function L2(e){return new Promise(t=>{setTimeout(t,e)})}function xf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?mS(e,t):t}function $2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function F2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Cm=Symbol();function gS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Cm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function yS(e,t){return typeof e=="function"?e(...t):!!e}var Es,_r,zi,_w,U2=(_w=class extends bo{constructor(){super();z(this,Es);z(this,_r);z(this,zi);L(this,zi,t=>{if(!Bs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,_r)||this.setEventListener(k(this,zi))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,_r))==null||t.call(this),L(this,_r,void 0))}setEventListener(t){var n;L(this,zi,t),(n=k(this,_r))==null||n.call(this),L(this,_r,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,Es)!==t&&(L(this,Es,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,Es)=="boolean"?k(this,Es):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Es=new WeakMap,_r=new WeakMap,zi=new WeakMap,_w),Tm=new U2,Wi,kr,Hi,kw,B2=(kw=class extends bo{constructor(){super();z(this,Wi,!0);z(this,kr);z(this,Hi);L(this,Hi,t=>{if(!Bs&&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(){k(this,kr)||this.setEventListener(k(this,Hi))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,kr))==null||t.call(this),L(this,kr,void 0))}setEventListener(t){var n;L(this,Hi,t),(n=k(this,kr))==null||n.call(this),L(this,kr,t(this.setOnline.bind(this)))}setOnline(t){k(this,Wi)!==t&&(L(this,Wi,t),this.listeners.forEac
vendor: 30,181 bytes, line 186
186h(r=>{r(t)}))}isOnline(){return k(this,Wi)}},Wi=new WeakMap,kr=new WeakMap,Hi=new WeakMap,kw),Jc=new B2;function bf(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function V2(e){return Math.min(1e3*2**e,3e4)}function vS(e){return(e??"online")==="online"?Jc.isOnline():!0}var wS=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Id(e){return e instanceof wS}function xS(e){let t=!1,n=0,r=!1,s;const i=bf(),o=m=>{var b;r||(h(new wS(m)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>Tm.isFocused()&&(e.networkMode==="always"||Jc.isOnline())&&e.canRun(),u=()=>vS(e.networkMode)&&e.canRun(),d=m=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,m),s==null||s(),i.resolve(m))},h=m=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,m),s==null||s(),i.reject(m))},f=()=>new Promise(m=>{var b;s=g=>{(r||c())&&m(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var m;s=void 0,r||(m=e.onContinue)==null||m.call(e)}),y=()=>{if(r)return;let m;const b=n===0?e.initialPromise:void 0;try{m=b??e.fn()}catch(g){m=Promise.reject(g)}Promise.resolve(m).then(d).catch(g=>{var _;if(r)return;const v=e.retry??(Bs?0:3),w=e.retryDelay??V2,S=typeof w=="function"?w(n,g):w,E=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,g);if(t||!E){h(g);return}n++,(_=e.onFail)==null||_.call(e,n,g),L2(S).then(()=>c()?void 0:f()).then(()=>{t?h(g):y()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?y():f().then(y),i)}}var z2=e=>setTimeout(e,0);function W2(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=z2;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Fe=W2(),_s,Cw,bS=(Cw=class{constructor(){z(this,_s)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vf(this.gcTime)&&L(this,_s,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Bs?1/0:5*60*1e3))}clearGcTimeout(){k(this,_s)&&(clearTimeout(k(this,_s)),L(this,_s,void 0))}},_s=new WeakMap,Cw),Ki,ks,$t,Cs,rt,qa,Ts,an,$n,Tw,H2=(Tw=class extends bS{constructor(t){super();z(this,an);z(this,Ki);z(this,ks);z(this,$t);z(this,Cs);z(this,rt);z(this,qa);z(this,Ts);L(this,Ts,!1),L(this,qa,t.defaultOptions),this.setOptions(t.options),this.observers=[],L(this,Cs,t.client),L(this,$t,k(this,Cs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,L(this,Ki,K2(this.options)),this.state=t.state??k(this,Ki),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,rt))==null?void 0:t.promise}setOptions(t){this.options={...k(this,qa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,$t).remove(this)}setData(t,n){const r=xf(this.state.data,t,this.options);return X(this,an,$n).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){X(this,an,$n).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=k(this,rt))==null?void 0:r.promise;return(s=k(this,rt))==null||s.cancel(t),n?n.then(dt).catch(dt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Ki))}isActive(){return this.observers.some(t=>Ft(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Cm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Kr(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:!pS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,rt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,rt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,$t).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,rt)&&(k(this,Ts)?k(this,rt).cancel({revert:!0}):k(this,rt).cancelRetry()),this.scheduleGc()),k(this,$t).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,an,$n).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,rt))return k(this,rt).continueRetry(),k(this,rt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(L(this,Ts,!0),r.signal)})},i=()=>{const h=gS(this.options,n),y=(()=>{const m={client:k(this,Cs),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return L(this,Ts,!1),this.options.persister?this.options.persister(h,y,this):h(y)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,Cs),state:this.state,fetchFn:i};return s(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),L(this,ks,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&X(this,an,$n).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,y,m,b;Id(h)&&h.silent||X(this,an,$n).call(this,{type:"error",error:h}),Id(h)||((y=(f=k(this,$t).config).onError)==null||y.call(f,h,this),(b=(m=k(this,$t).config).onSettled)==null||b.call(m,this.state.data,h,this)),this.scheduleGc()};return L(this,rt,xS({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,y,m,b;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(g){l(g);return}(y=(f=k(this,$t).config).onSuccess)==null||y.call(f,h,this),(b=(m=k(this,$t).config).onSettled)==null||b.call(m,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{X(this,an,$n).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{X(this,an,$n).call(this,{type:"pause"})},onContinue:()=>{X(this,an,$n).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),k(this,rt).start()}},Ki=new WeakMap,ks=new WeakMap,$t=new WeakMap,Cs=new WeakMap,rt=new WeakMap,qa=new WeakMap,Ts=new WeakMap,an=new WeakSet,$n=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,...SS(r.data,this.options),fetchMeta:t.meta??null};case"success":return L(this,ks,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Id(s)&&s.revert&&k(this,ks)?{...k(this,ks),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Fe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,$t).notify({query:this,type:"updated",action:t})})},Tw);function SS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function K2(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 En,Pw,q2=(Pw=class extends bo{constructor(t={}){super();z(this,En);this.config=t,L(this,En,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??km(s,n);let o=this.get(i);return o||(o=new H2({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){k(this,En).has(t.queryHash)||(k(this,En).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,En).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,En).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,En).get(t)}getAll(){return[...k(this,En).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ov(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ov(t,r)):n}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},En=new WeakMap,Pw),_n,lt,Ps,kn,pr,Rw,G2=(Rw=class extends bS{constructor(t){super();z(this,kn);z(this,_n);z(this,lt);z(this,Ps);this.mutationId=t.mutationId,L(this,lt,t.mutationCache),L(this,_n,[]),this.state=t.state||ES(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,_n).includes(t)||(k(this,_n).push(t),this.clearGcTimeout(),k(this,lt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){L(this,_n,k(this,_n).filter(n=>n!==t)),this.scheduleGc(),k(this,lt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,_n).length||(this.state.status==="pending"?this.scheduleGc():k(this,lt).remove(this))}continue(){var t;return((t=k(this,Ps))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,c,u,d,h,f,y,m,b,g,v,w,S,E,_,C,T;const n=()=>{X(this,kn,pr).call(this,{type:"continue"})};L(this,Ps,xS({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,j)=>{X(this,kn,pr).call(this,{type:"failed",failureCount:R,error:j})},onPause:()=>{X(this,kn,pr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,lt).canRun(this)}));const r=this.state.status==="pending",s=!k(this,Ps).canStart();try{if(r)n();else{X(this,kn,pr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=k(this,lt).config).onMutate)==null?void 0:o.call(i,t,this));const j=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));j!==this.state.context&&X(this,kn,pr).call(this,{type:"pending",context:j,variables:t,isPaused:s})}const R=await k(this,Ps).start();return await((u=(c=k(this,lt).config).onSuccess)==null?void 0:u.call(c,R,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,R,t,this.state.context)),await((y=(f=k(this,lt).config).onSettled)==null?void 0:y.call(f,R,null,this.state.variables,this.state.context,this)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,R,null,t,this.state.context)),X(this,kn,pr).call(this,{type:"success",data:R}),R}catch(R){try{throw await((v=(g=k(this,lt).config).onError)==null?void 0:v.call(g,R,t,this.state.context,this)),await((S=(w=this.options).onError)==null?void 0:S.call(w,R,t,this.state.context)),await((_=(E=k(this,lt).config).onSettled)==null?void 0:_.call(E,void 0,R,this.state.variables,this.state.context,this)),await((T=(C=this.options).onSettled)==null?void 0:T.call(C,void 0,R,t,this.state.context)),R}finally{X(this,kn,pr).call(this,{type:"error",error:R})}}finally{k(this,lt).runNext(this)}}},_n=new WeakMap,lt=new WeakMap,Ps=new WeakMap,kn=new WeakSet,pr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Fe.batch(()=>{k(this,_n).forEach(r=>{r.onMutationUpdate(t)}),k(this,lt).notify({mutation:this,type:"updated",action:t})})},Rw);function ES(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,ln,Ga,Aw,Q2=(Aw=class extends bo{constructor(t={}){super();z(this,Vn);z(this,ln);z(this,Ga);this.config=t,L(this,Vn,new Set),L(this,ln,new Map),L(this,Ga,0)}build(t,n,r){const s=new G2({mutationCache:this,mutationId:++pl(this,Ga)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){k(this,Vn).add(t);const n=Ml(t);if(typeof n=="string"){const r=k(this,ln).get(n);r?r.push(t):k(this,ln).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,Vn).delete(t)){const n=Ml(t);if(typeof n=="string"){const r=k(this,ln).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&k(this,ln).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ml(t);if(typeof n=="string"){const r=k(this,ln).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Ml(t);if(typeof n=="string"){const s=(r=k(this,ln).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Fe.batch(()=>{k(this,Vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,Vn).clear(),k(this,ln).clear()})}getAll(){return Array.from(k(this,Vn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>av(n,r))}findAll(t={}){return this.getAll().filter(n=>av(t,n))}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Fe.batch(()=>Promise.all(t.map(n=>n.continue().catch(dt))))}},Vn=new WeakMap,ln=new WeakMap,Ga=new WeakMap,Aw);function Ml(e){var t;return(t=e.options.scope)==null?void 0:t.id}function uv(e){return{onFetch:(t,n)=>{var u,d,h,f,y;const r=t.options,s=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},g=gS(t.options,t.fetchOptions),v=async(w,S,E)=>{if(m)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const C=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return b(U),U})(),T=await g(C),{maxPages:R}=t.options,j=E?F2:$2;return{pages:j(w.pages,T,R),pageParams:j(w.pageParams,S,R)}};if(s&&i.length){const w=s==="backward",S=w?Y2:dv,E={pages:i,pageParams:o},_=S(r,E);a=await v(E,_,w)}else{const w=e??i.length;do{const S=l===0?o[0]??r.initialPageParam:dv(r,a);if(l>0&&S==null)break;a=await v(a,S),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var m,b;return(b=(m=t.options).persister)==null?void 0:b.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function dv(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 Y2(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 Ce,Cr,Tr,qi,Gi,Pr,Qi,Yi,jw,J2=(jw=class{constructor(e={}){z(this,Ce);z(this,Cr);z(this,Tr);z(this,qi);z(this,Gi);z(this,Pr);z(this,Qi);z(this,Yi);L(this,Ce,e.queryCache||new q2),L(this,Cr,e.mutationCache||new Q2),L(this,Tr,e.defaultOptions||{}),L(this,qi,new Map),L(this,Gi,new Map),L(this,Pr,0)}mount(){pl(this,Pr)._++,k(this,Pr)===1&&(L(this,Qi,Tm.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ce).onFocus())})),L(this,Yi,Jc.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ce).onOnline())})))}unmount(){var e,t;pl(this,Pr)._--,k(this,Pr)===0&&((e=k(this,Qi))==null||e.call(this),L(this,Qi,void 0),(t=k(this,Yi))==null||t.call(this),L(this,Yi,void 0))}isFetching(e){return k(this,Ce).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,Cr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Ce).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=k(this,Ce).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Kr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return k(this,Ce).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=k(this,Ce).get(r.queryHash),i=s==null?void 0:s.state.data,o=M2(t,i);if(o!==void 0)return k(this,Ce).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Fe.batch(()=>k(this,Ce).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Ce).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,Ce);Fe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Ce);return Fe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Fe.batch(()=>k(this,Ce).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(dt).catch(dt)}invalidateQueries(e,t={}){return Fe.batch(()=>(k(this,Ce).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=Fe.batch(()=>k(this,Ce).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(dt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(dt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,Ce).build(this,t);return n.isStaleByTime(Kr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dt).catch(dt)}fetchInfiniteQuery(e){return e.behavior=uv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dt).catch(dt)}ensureInfiniteQueryData(e){return e.behavior=uv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Jc.isOnline()?k(this,Cr).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Ce)}getMutationCache(){return k(this,Cr)}getDefaultOptions(){return k(this,Tr)}setDefaultOptions(e){L(this,Tr,e)}setQueryDefaults(e,t){k(this,qi).set(Vs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,qi).values()],n={};return t.forEach(r=>{Na(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,Gi).set(Vs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Gi).values()],n={};return t.forEach(r=>{Na(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Tr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=km(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===Cm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Tr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Ce).clear(),k(this,Cr).clear()}},Ce=new WeakMap,Cr=new WeakMap,Tr=new WeakMap,qi=new WeakMap,Gi=new WeakMap,Pr=new WeakMap,Qi=new WeakMap,Yi=new WeakMap,jw),yt,re,Qa,ct,Rs,Ji,Rr,Ar,Ya,Xi,Zi,As,js,jr,eo,oe,qo,Sf,Ef,_f,kf,Cf,Tf,Pf,_S,Nw,X2=(Nw=class extends bo{constructor(t,n){super();z(this,oe);z(this,yt);z(this,re);z(this,Qa);z(this,ct);z(this,Rs);z(this,Ji);z(this,Rr);z(this,Ar);z(this,Ya);z(this,Xi);z(this,Zi);z(this,As);z(this,js);z(this,jr);z(this,eo,new Set);this.options=n,L(this,yt,t),L(this,Ar,null),L(this,Rr,bf()),this.options.experimental_prefetchInRender||k(this,Rr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,re).addObserver(this),hv(k(this,re),this.options)?X(this,oe,qo).call(this):this.updateResult(),X(this,oe,kf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Rf(k(this,re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rf(k(this,re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,oe,Cf).call(this),X(this,oe,Tf).call(this),k(this,re).removeObserver(this)}setOptions(t){const n=this.options,r=k(this,re);if(this.options=k(this,yt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ft(this.options.enabled,k(this,re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");X(this,oe,Pf).call(this),k(this,re).setOptions(this.options),n._defaulted&&!Yc(this.options,n)&&k(this,yt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,re),observer:this});const s=this.hasListeners();s&&fv(k(this,re),r,this.options,n)&&X(this,oe,qo).call(this),this.updateResult(),s&&(k(this,re)!==r||Ft(this.options.enabled,k(this,re))!==Ft(n.enabled,k(this,re))||Kr(this.options.staleTime,k(this,re))!==Kr(n.staleTime,k(this,re)))&&X(this,oe,Sf).call(this);const i=X(this,oe,Ef).call(this);s&&(k(this,re)!==r||Ft(this.options.enabled,k(this,re))!==Ft(n.enabled,k(this,re))||i!==k(this,jr))&&X(this,oe,_f).call(this,i)}getOptimisticResult(t){const n=k(this,yt).getQueryCache().build(k(this,yt),t),r=this.createResult(n,t);return eN(this,r)&&(L(this,ct,r),L(this,Ji,this.options),L(this,Rs,k(this,re).state)),r}getCurrentResult(){return k(this,ct)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),Reflect.get(r,s))})}trackProp(t){k(this,eo).add(t)}getCurrentQuery(){return k(this,re)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,yt).defaultQueryOptions(t),r=k(this,yt).getQueryCache().build(k(this,yt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return X(this,oe,qo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,ct)))}createResult(t,n){var R;const r=k(this,re),s=this.options,i=k(this,ct),o=k(this,Rs),a=k(this,Ji),c=t!==r?t.state:k(this,Qa),{state:u}=t;let d={...u},h=!1,f;if(n._optimisticResults){const j=this.hasListeners(),U=!j&&hv(t,n),I=j&&fv(t,r,n,s);(U||I)&&(d={...d,...SS(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:y,errorUpdatedAt:m,status:b}=d;f=d.data;let g=!1;if(n.placeholderData!==void 0&&f===void 0&&b==="pending"){let j;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(j=i.data,g=!0):j=typeof n.placeholderData=="function"?n.placeholderData((R=k(this,Zi))==null?void 0:R.state.data,k(this,Zi)):n.placeholderData,j!==void 0&&(b="success",f=xf(i==null?void 0:i.data,j,n),h=!0)}if(n.select&&f!==void 0&&!g)if(i&&f===(o==null?void 0:o.data)&&n.select===k(this,Ya))f=k(this,Xi);else try{L(this,Ya,n.select),f=n.select(f),f=xf(i==null?void 0:i.data,f,n),L(this,Xi,f),L(this,Ar,null)}catch(j){L(this,Ar,j)}k(this,Ar)&&(y=k(this,Ar),f=k(this,Xi),m=Date.now(),b="error");const v=d.fetchStatus==="fetching",w=b==="pending",S=b==="error",E=w&&v,_=f!==void 0,T={status:b,fetchStatus:d.fetchStatus,isPending:w,isSuccess:b==="success",isError:S,isInitialLoading:E,isLoading:E,data:f,dataUpdatedAt:d.dataUpdatedAt,error:y,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!w,isLoadingError:S&&!_,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&_,isStale:Pm(t,n),refetch:this.refetch,promise:k(this,Rr),isEnabled:Ft(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const j=q=>{T.status==="error"?q.reject(T.error):T.data!==void 0&&q.resolve(T.data)},U=()=>{const q=L(this,Rr,T.promise=bf());j(q)},I=k(this,Rr);switch(I.status){case"pending":t.queryHash===r.queryHash&&j(I);break;case"fulfilled":(T.status==="error"||T.data!==I.value)&&U();break;case"rejected":(T.status!=="error"||T.error!==I.reason)&&U();break}}return T}updateResult(){const t=k(this,ct),n=this.createResult(k(this,re),this.options);if(L(this,Rs,k(this,re).state),L(this,Ji,this.options),k(this,Rs).data!==void 0&&L(this,Zi,k(this,re)),Yc(n,t))return;L(this,ct,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!k(this,eo).size)return!0;const o=new Set(i??k(this,eo));return this.options.throwOnError&&o.add("error"),Object.keys(k(this,ct)).some(a=>{const l=a;return k(this,ct)[l]!==t[l]&&o.has(l)})};X(this,oe,_S).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,oe,kf).call(this)}},yt=new WeakMap,re=new WeakMap,Qa=new WeakMap,ct=new WeakMap,Rs=new WeakMap,Ji=new WeakMap,Rr=new WeakMap,Ar=new WeakMap,Ya=new WeakMap,Xi=new WeakMap,Zi=new WeakMap,As=new WeakMap,js=new WeakMap,jr=new WeakMap,eo=new WeakMap,oe=new WeakSet,qo=function(t){X(this,oe,Pf).call(this);let n=k(this,re).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(dt)),n},Sf=function(){X(this,oe,Cf).call(this);const t=Kr(this.options.staleTime,k(this,re));if(Bs||k(this,ct).isStale||!vf(t))return;const r=pS(k(this,ct).dataUpdatedAt,t)+1;L(this,As,setTimeout(()=>{k(this,ct).isStale||this.updateResult()},r))},Ef=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,re)):this.options.refetchInterval)??!1},_f=function(t){X(this,oe,Tf).call(this),L(this,jr,t),!(Bs||Ft(this.options.enabled,k(this,re))===!1||!vf(k(this,jr))||k(this,jr)===0)&&L(this,js,setInterval(()=>{(this.options.refetchIntervalInBackground||Tm.isFocused())&&X(this,oe,qo).call(this)},k(this,jr)))},kf=function(){X(this,oe,Sf).call(this),X(this,oe,_f).call(this,X(this,oe,Ef).call(this))},Cf=function(){k(this,As)&&(clearTimeout(k(this,As)),L(this,As,void 0))},Tf=function(){k(this,js)&&(clearInterval(k(this,js)),L(this,js,void 0))},Pf=function(){const t=k(this,yt).getQueryCache().build(k(this,yt),this.options);if(t===k(this,re))return;const n=k(this,re);L(this,re,t),L(this,Qa,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},_S=function(t){Fe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,ct))}),k(this,yt).getQueryCache().notify({query:k(this,re),type:"observerResultsUpdated"})})},Nw);function Z2(e,t){return Ft(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hv(e,t){return Z2(e,t)||e.state.data!==void 0&&Rf(e,t,t.refetchOnMount)}function Rf(e,t,n){if(Ft(t.enabled,e)!==!1&&Kr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Pm(e,t)}return!1}function fv(e,t,n,r){return(e!==t||Ft(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Pm(e,n)}function Pm(e,t){return Ft(t.enabled,e)!==!1&&e.isStaleByTime(Kr(t.staleTime,e))}function eN(e,t){return!Yc(e.getCurrentResult(),t)}var Nr,Or,vt,zn,qn,fc,Af,Ow,tN=(Ow=class extends bo{constructor(n,r){super();z(this,qn);z(this,Nr);z(this,Or);z(this,vt);z(this,zn);L(this,Nr,n),this.setOptions(r),this.bindMethods(),X(this,qn,fc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=k(this,Nr).defaultMutationOptions(n),Yc(this.options,r)||k(this,Nr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,vt),observer:this}
186),r!=null&&r.mutationKey&&this.options.mutationKey&&Vs(r.mutationKey)!==Vs(this.options.mutationKey)?this.reset():((s=k(this,vt))==null?void 0:s.state.status)==="pending"&&k(this,vt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=k(this,vt))==null||n.removeObserver(this)}onMutationUpdate(n){X(this,qn,fc).call(this),X(this,qn,Af).call(this,n)}getCurrentResult(){return k(this,Or)}reset(){var n;(n=k(this,vt))==null||n.removeObserver(this),L(this,vt,void 0),X(this,qn,fc).call(this),X(this,qn,Af).call(this)}mutate(n,r){var s;return L(this,zn,r),(s=k(this,vt))==null||s.removeObserver(this),L(this,vt,k(this,Nr).getMutationCache().build(k(this,Nr),this.options)),k(this,vt).addObserver(this),k(this,vt).execute(n)}},Nr=new WeakMap,Or=new WeakMap,vt=new WeakMap,zn=new WeakMap,qn=new WeakSet,fc=function(){var r;const n=((r=k(this,vt))==null?void 0:r.state)??ES();L(this,Or,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Af=function(n){Fe.batch(()=>{var r,s,i,o,a,l,c,u;if(k(this,zn)&&this.hasListeners()){const d=k(this,Or).variables,h=k(this,Or).context;(n==null?void 0:n.type)==="success"?((s=(r=k(this,zn)).onSuccess)==null||s.call(r,n.data,d,h),(o=(i=k(this,zn)).onSettled)==null||o.call(i,n.data,null,d,h)):(n==null?void 0:n.type)==="error"&&((l=(a=k(this,zn)).onError)==null||l.call(a,n.error,d,h),(u=(c=k(this,zn)).onSettled)==null||u.call(c,void 0,n.error,d,h))}this.listeners.forEach(d=>{d(k(this,Or))})})},Ow),kS=x.createContext(void 0),Rm=e=>{const t=x.useContext(kS);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},nN=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(kS.Provider,{value:e,children:t})),CS=x.createContext(!1),rN=()=>x.useContext(CS);CS.Provider;function sN(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var iN=x.createContext(sN()),oN=()=>x.useContext(iN),aN=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},lN=e=>{x.useEffect(()=>{e.clearReset()},[e])},cN=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||yS(n,[e.error,r])),uN=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},dN=(e,t)=>e.isLoading&&e.isFetching&&!t,hN=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,pv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function fN(e,t,n){var d,h,f,y,m;const r=rN(),s=oN(),i=Rm(),o=i.defaultQueryOptions(e);(h=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",uN(o),aN(o,s),lN(s);const a=!i.getQueryCache().get(o.queryHash),[l]=x.useState(()=>new t(i,o)),c=l.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(b=>{const g=u?l.subscribe(Fe.batchCalls(b)):dt;return l.updateResult(),g},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),x.useEffect(()=>{l.setOptions(o)},[o,l]),hN(o,c))throw pv(o,l,s);if(cN({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;if((y=(f=i.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||y.call(f,o,c),o.experimental_prefetchInRender&&!Bs&&dN(c,r)){const b=a?pv(o,l,s):(m=i.getQueryCache().get(o.queryHash))==null?void 0:m.promise;b==null||b.catch(dt).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function Am(e,t){return fN(e,X2)}function mv(e,t){const n=Rm(),[r]=x.useState(()=>new tN(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);const s=x.useSyncExternalStore(x.useCallback(o=>r.subscribe(Fe.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=x.useCallback((o,a)=>{r.mutate(o,a).catch(dt)},[r]);if(s.error&&yS(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}/**
187 * @remix-run/router v1.23.0
188 *
189 * Copyright (c) Remix Software Inc.
190 *
191 * This source code is licensed under the MIT license found in the
192 * LICENSE.md file in the root directory of this source tree.
193 *
194 * @license MIT
195 */function Oa(){return Oa=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},Oa.apply(this,arguments)}var Mr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Mr||(Mr={}));const gv="popstate";function pN(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return jf("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Xc(s)}return gN(t,n,null,e)}function je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function TS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mN(){return Math.random().toString(36).substr(2,8)}function yv(e,t){return{usr:e.state,key:e.key,idx:t}}function jf(e,t,n,r){return n===void 0&&(n=null),Oa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?So(t):t,{state:n,key:t&&t.key||r||mN()})}function Xc(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 So(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 gN(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=Mr.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Oa({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=Mr.Pop;let b=u(),g=b==null?null:b-c;c=b,l&&l({action:a,location:m.location,delta:g})}function h(b,g){a=Mr.Push;let v=jf(m.location,b,g);c=u()+1;let w=yv(v,c),S=m.createHref(v);try{o.pushState(w,"",S)}
vendor: 3,324 bytes, line 195
195catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(S)}i&&l&&l({action:a,location:m.location,delta:1})}function f(b,g){a=Mr.Replace;let v=jf(m.location,b,g);c=u();let w=yv(v,c),S=m.createHref(v);o.replaceState(w,"",S),i&&l&&l({action:a,location:m.location,delta:0})}function y(b){let g=s.location.origin!=="null"?s.location.origin:s.location.href,v=typeof b=="string"?b:Xc(b);return v=v.replace(/ $/,"%20"),je(g,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,g)}let m={get action(){return a},get location(){return e(s,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(gv,d),l=b,()=>{s.removeEventListener(gv,d),l=null}},createHref(b){return t(s,b)},createURL:y,encodeLocation(b){let g=y(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:f,go(b){return o.go(b)}};return m}var vv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vv||(vv={}));function yN(e,t,n){return n===void 0&&(n="/"),vN(e,t,n,!1)}function vN(e,t,n,r){let s=typeof t=="string"?So(t):t,i=jm(s.pathname||"/",n);if(i==null)return null;let o=PS(e);wN(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=AN(i);a=PN(o[l],c,r)}return a}function PS(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(je(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 c=qr([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(je(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),PS(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:CN(c,i.index),routesMeta:u})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of RS(i.path))s(i,o,l)}),t}function RS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=RS(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function wN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:TN(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xN=/^:[\w-]+$/,bN=3,SN=2,EN=1,_N=10,kN=-2,wv=e=>e==="*";function CN(e,t){let n=e.split("/"),r=n.length;return n.some(wv)&&(r+=kN),t&&(r+=SN),n.filter(s=>!wv(s)).reduce((s,i)=>s+(xN.test(i)?bN:i===""?EN:_N),r)}function TN(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function PN(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",d=xv({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=xv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 6,917 bytes, lines 195-204
195Object.assign(s,d.params),o.push({params:s,pathname:qr([i,d.pathname]),pathnameBase:IN(qr([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=qr([i,d.pathnameBase]))}return o}function xv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=RN(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:h,isOptional:f}=u;if(h==="*"){let m=a[d]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const y=a[d];return f&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function RN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),TS(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=[],s="^"+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:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function AN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return TS(!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 jm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function jN(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?So(e):e;return{pathname:n?n.startsWith("/")?n:NN(n,t):t,search:DN(r),hash:MN(s)}}function NN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Dd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ON(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nm(e,t){let n=ON(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Om(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=So(e):(s=Oa({},e),je(!s.pathname||!s.pathname.includes("?"),Dd("?","pathname","search",s)),je(!s.pathname||!s.pathname.includes("#"),Dd("#","pathname","hash",s)),je(!s.search||!s.search.includes("#"),Dd("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;s.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=jN(s,a),c=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const qr=e=>e.join("/").replace(/\/\/+/g,"/"),IN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),DN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,MN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function LN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const AS=["post","put","patch","delete"];new Set(AS);const $N=["get",...AS];new Set($N);/**
196 * React Router v6.30.1
197 *
198 * Copyright (c) Remix Software Inc.
199 *
200 * This source code is licensed under the MIT license found in the
201 * LICENSE.md file in the root directory of this source tree.
202 *
203 * @license MIT
204 */function Ia(){return Ia=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},Ia.apply(this,arguments)}const Im=x.createContext(null),FN=x.createContext(null),rs=x.createContext(null),Lu=x.createContext(null),rr=x.createContext({outlet:null,matches:[],isDataRoute:!1}),jS=x.createContext(null);function UN(e,t){let{relative:n}=t===void 0?{}:t;Eo()||je(!1);let{basename:r,navigator:s}=x.useContext(rs),{hash:i,pathname:o,search:a}=OS(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:qr([r,o])),s.createHref({pathname:l,search:a,hash:i})}function Eo(){return x.useContext(Lu)!=null}function qs(){return Eo()||je(!1),x.useContext(Lu).location}function NS(e){x.useContext(rs).static||x.useLayoutEffect(e)}function il(){let{isDataRoute:e}=x.useContext(rr);return e?eO():BN()}function BN(){Eo()||je(!1);let e=x.useContext(Im),{basename:t,future:n,navigator:r}=x.useContext(rs),{matches:s}=x.useContext(rr),{pathname:i}=qs(),o=JSON.stringify(Nm(s,n.v7_relativeSplatPath)),a=x.useRef(!1);return NS(()=>{a.current=!0}),x.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Om(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:qr([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,o,i,e])}function VN(){let{matches:e}=x.useContext(rr),t=e[e.length-1];return t?t.params:{}}function OS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(rs),{matches:s}=x.useContext(rr),{pathname:i}=qs(),o=JSON.stringify(Nm(s,r.v7_relativeSplatPath));return x.useMemo(()=>Om(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function zN(e,t){return WN(e,t)}function WN(e,t,n,r){Eo()||je(!1);let{navigator:s}=x.useContext(rs),{matches:i}=x.useContext(rr),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=qs(),u;if(t){var d;let b=typeof t=="string"?So(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||je(!1),u=b}else u=c;let h=u.pathname||"/",f=h;if(l!=="/"){let b=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let y=yN(e,{pathname:f}),m=QN(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:qr([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:qr([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&m?x.createElement(Lu.Provider,{value:{location:Ia({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Mr.Pop}},m):m}function HN(){let e=ZN(),t=LN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application 
204Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:s},n):null,null)}const KN=x.createElement(HN,null);class qN 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(rr.Provider,{value:this.props.routeContext},x.createElement(jS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function GN(e){let{routeContext:t,match:n,children:r}=e,s=x.useContext(Im);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(rr.Provider,{value:t},r)}function QN(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||je(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:h,errors:f}=n,y=d.route.loader&&h[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||y){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,h)=>{let f,y=!1,m=null,b=null;n&&(f=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||KN,l&&(c<0&&h===0?(y=!0,b=null):c===h&&(y=!0,b=d.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),v=()=>{let w;return f?w=m:y?w=b:d.route.Component?w=x.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,x.createElement(GN,{match:d,routeContext:{outlet:u,matches:g,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?x.createElement(qN,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:v(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):v()},null)}var IS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(IS||{}),Zc=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}(Zc||{});function YN(e){let t=x.useContext(Im);return t||je(!1),t}function JN(e){let t=x.useContext(FN);return t||je(!1),t}function XN(e){let t=x.useContext(rr);return t||je(!1),t}function DS(e){let t=XN(),n=t.matches[t.matches.length-1];return n.route.id||je(!1),n.route.id}function ZN(){var e;let t=x.useContext(jS),n=JN(Zc.UseRouteError),r=DS(Zc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function eO(){let{router:e}=YN(IS.UseNavigateStable),t=DS(Zc.UseNavigateStable),n=x.useRef(!1);return NS(()=>{n.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ia({fromRouteId:t},i)))},[e,t])}function tO(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function nO(e){let{to:t,replace:n,state:r,relative:s}=e;Eo()||je(!1);let{future:i,static:o}=x.useContext(rs),{matches:a}=x.useContext(rr),{pathname:l}=qs(),c=il(),u=Om(t,Nm(a,i.v7_relativeSplatPath),l,s==="path"),d=JSON.stringify(u);return x.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:s}),[c,d,s,n,r]),null}function kt(e){je(!1)}function rO(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Mr.Pop,navigator:i,static:o=!1,future:a}=e;Eo()&&je(!1);let l=t.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:l,navigator:i,static:o,future:Ia({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=So(r));
204let{pathname:u="/",search:d="",hash:h="",state:f=null,key:y="default"}=r,m=x.useMemo(()=>{let b=jm(u,l);return b==null?null:{location:{pathname:b,search:d,hash:h,state:f,key:y},navigationType:s}},[l,u,d,h,f,y,s]);return m==null?null:x.createElement(rs.Provider,{value:c},x.createElement(Lu.Provider,{children:n,value:m}))}function sO(e){let{children:t,location:n}=e;return zN(Nf(t),n)}new Promise(()=>{});function Nf(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,s)=>{if(!x.isValidElement(r))return;let i=[...t,s];if(r.type===x.Fragment){n.push.apply(n,Nf(r.props.children,i));return}r.type!==kt&&je(!1),!r.props.index||!r.props.children||je(!1);let o={id:r.props.id||i.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=Nf(r.props.children,i)),n.push(o)}),n}/**
205 * React Router DOM v6.30.1
206 *
207 * Copyright (c) Remix Software Inc.
208 *
209 * This source code is licensed under the MIT license found in the
210 * LICENSE.md file in the root directory of this source tree.
211 *
212 * @license MIT
213 */function Of(){return Of=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},Of.apply(this,arguments)}function iO(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function oO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function aO(e,t){return e.button===0&&(!t||t==="_self")&&!oO(e)}const lO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],cO="6";try{window.__reactRouterVersion=cO}catch{}const uO="startTransition",bv=vp[uO];function dO(e){let{basename:t,children:n,future:r,window:s}=e,i=x.useRef();i.current==null&&(i.current=pN({window:s,v5Compat:!0}));let o=i.current,[a,l]=x.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=x.useCallback(d=>{c&&bv?bv(()=>l(d)):l(d)},[l,c]);return x.useLayoutEffect(()=>o.listen(u),[o,u]),x.useEffect(()=>tO(r),[r]),x.createElement(rO,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const hO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hn=x.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=iO(t,lO),{basename:f}=x.useContext(rs),y,m=!1;if(typeof c=="string"&&fO.test(c)&&(y=c,hO))try{let w=new URL(window.location.href),S=c.startsWith("//")?new URL(w.protocol+c):new URL(c),E=jm(S.pathname,f);S.origin===w.origin&&E!=null?c=E+S.search+S.hash:m=!0}catch{}let b=UN(c,{relative:s}),g=pO(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:s,viewTransition:d});function v(w){r&&r(w),w.defaultPrevented||g(w)}return x.createElement("a",Of({},h,{href:y||b,onClick:m||i?r:v,ref:n,target:l}))});var Sv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Sv||(Sv={}));var Ev;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ev||(Ev={}));function pO(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=il(),c=qs(),u=OS(e,{relative:o});return x.useCallback(d=>{if(aO(d,n)){d.preventDefault();let h=r!==void 0?r:Xc(c)===Xc(u);l(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,l,u,r,s,n,e,i,o,a])}const MS=x.createContext({theme:"dark",setTheme:()=>null});function mO({children:e,defaultTheme:t="dark"}
213){const[n,r]=x.useState(()=>localStorage.getItem("rumbot-theme")||t);return x.useEffect(()=>{const s=window.document.documentElement;s.classList.remove("light","dark"),s.classList.add(n),localStorage.setItem("rumbot-theme",n)},[n]),p.jsx(MS.Provider,{value:{theme:n,setTheme:r},children:e})}const LS=()=>{const e=x.useContext(MS);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};var Tn=function(){return Tn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Tn.apply(this,arguments)};function _o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function gO(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function yO(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}const vO=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Dm extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class wO extends Dm{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class _v extends Dm{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class kv extends Dm{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var If;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(If||(If={}));class xO{constructor(t,{headers:n={},customFetch:r,region:s=If.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=vO(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return gO(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:c,signal:u,timeout:d}=r;let h={},{region:f}=r;f||(f=this.region);const y=new URL(`${this.url}/${n}`);f&&f!=="any"&&(h["x-region"]=f,y.searchParams.set("forceFunctionRegion",f));let m;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",m=c):typeof c=="string"?(h["Content-Type"]="text/plain",m=c):typeof FormData<"u"&&c instanceof FormData?m=c:(h["Content-Type"]="application/json",m=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?m=JSON.stringify(c):m=c;let b=u;d&&(o=new AbortController,i=setTimeout(()=>o.abort(),d),u?(b=o.signal,u.addEventListener("abort",()=>o.abort())):b=o.signal);const g=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:m,signal:b}).catch(E=>{throw new wO(E)}),v=g.headers.get("x-relay-error");if(v&&v==="true")throw new _v(g);if(!g.ok)throw new kv(g);let w=((s=g.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),S;return w==="application/json"?S=yield g.json():w==="application/octet-stream"||w==="application/pdf"?S=yield g.blob():w==="text/event-stream"?S=g:w==="multipart/form-data"?S=yield g.formData():S=yield g.text(),{data:S,error:null,response:g}}
213catch(a){return{data:null,error:a,response:a instanceof kv||a instanceof _v?a.context:void 0}}finally{i&&clearTimeout(i)}})}}var bO=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},SO=class{constructor(e){var t,n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=e.urlLengthLimit)!==null&&r!==void 0?r:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,a=null,l=null,c=i.status,u=i.statusText;if(i.ok){var d,h;if(n.method!=="HEAD"){var f;const g=await i.text();g===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((f=n.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?a=g:a=JSON.parse(g))}const m=(d=n.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),b=(h=i.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");m&&b&&b.length>1&&(l=parseInt(b[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,c=406,u="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var y;const m=await i.text();try{o=JSON.parse(m),Array.isArray(o)&&i.status===404&&(a=[],o=null,c=200,u="OK")}catch{i.status===404&&m===""?(c=204,u="No Content"):o={message:m}}if(o&&n.isMaybeSingle&&(!(o==null||(y=o.details)===null||y===void 0)&&y.includes("0 rows"))&&(o=null,c=200,u="OK"),o&&n.shouldThrowOnError)throw new bO(o)}return{error:o,data:a,count:l,status:c,statusText:u}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let a="",l="",c="";const u=i==null?void 0:i.cause;if(u){var d,h,f,y;const g=(d=u==null?void 0:u.message)!==null&&d!==void 0?d:"",v=(h=u==null?void 0:u.code)!==null&&h!==void 0?h:"";a=`${(f=i==null?void 0:i.name)!==null&&f!==void 0?f:"FetchError"}: ${i==null?void 0:i.message}`,a+=`
214
215Caused by: ${(y=u==null?void 0:u.name)!==null&&y!==void 0?y:"Error"}: ${g}`,v&&(a+=` (${v})`),u!=null&&u.stack&&(a+=`
216${u.stack}`)}else{var m;a=(m=i==null?void 0:i.stack)!==null&&m!==void 0?m:""}const b=this.url.toString().length;return(i==null?void 0:i.name)==="AbortError"||(i==null?void 0:i.code)==="ABORT_ERR"?(c="",l="Request was aborted (timeout or manual cancellation)",b>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${b} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((u==null?void 0:u.name)==="HeadersOverflowError"||(u==null?void 0:u.code)==="UND_ERR_HEADERS_OVERFLOW")&&(c="",l="HTTP headers exceeded server limits (typically 16KB)",b>this.urlLengthLimit&&(l+=`. Your request URL is ${b} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:a,hint:l,code:c},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},EO=class extends SO{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
216explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${a};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Cv=new RegExp("[,()]");var ui=class extends EO{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Cv.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Cv.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},_O=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(c=>/\s/.test(c)&&!i?"":(c==='"'&&(i=!i),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new ui({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(a.length>
2160){const l=[...new Set(a)].map(c=>`"${c}"`);i.searchParams.set("columns",l.join(","))}}return new ui({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const c=e.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);a.searchParams.set("columns",u.join(","))}}return new ui({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new ui({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new ui({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function Da(e){"@babel/helpers - typeof";return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Da(e)}function kO(e,t){if(Da(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Da(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CO(e){var t=kO(e,"string");return Da(t)=="symbol"?t:t+""}function TO(e,t,n){return(t=CO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ll(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tv(Object(n),!0).forEach(function(r){TO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var PO=class $S{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const a=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(l,c)=>{const u=new AbortController,d=setTimeout(()=>u.abort(),i),h=c==null?void 0:c.signal;if(h){if(h.aborted)return clearTimeout(d),a(l,c);const f=()=>{clearTimeout(d),u.abort()};return h.addEventListener("abort",f,{once:!0}),a(l,Ll(Ll({},c),{},{signal:u.signal})).finally(()=>{clearTimeout(d),h.removeEventListener("abort",f)})}return a(l,Ll(Ll({},c),{},{signal:u.signal})).finally(()=>clearTimeout(d))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new _O(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new $S(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;const u=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(u)),d=r&&Object.values(n).some(u);d?(a="POST",c=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([f,y])=>y!==void 0).map(([f,y])=>[f,Array.isArray(y)?`{${y.join(",")}}`:`${y}
216`]).forEach(([f,y])=>{l.searchParams.append(f,y)})):(a="POST",c=n);const h=new Headers(this.headers);return d?h.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&h.set("Prefer",`count=${i}`),new ui({method:a,url:l,headers:h,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class RO{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
217import ws from "ws"
218new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
219
220Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const AO="2.95.3",jO=`realtime-js/${AO}`,NO="1.0.0",FS="2.0.0",Pv=FS,Df=1e4,OO=1e3,IO=100;var xr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(xr||(xr={}));var Me;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Me||(Me={}));var un;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(un||(un={}));var Mf;(function(e){e.websocket="websocket"})(Mf||(Mf={}));var ms;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(ms||(ms={}));class DO{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(i=t.join_ref)!==null&&i!==void 0?i:"",c=t.payload.event,u=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(u).length===0?"":JSON.stringify(u);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+d.length,f=new ArrayBuffer(this.HEADER_LENGTH+h);let y=new DataView(f),m=0;y.setUint8(m++,this.KINDS.userBroadcastPush),y.setUint8(m++,l.length),y.setUint8(m++,a.length),y.setUint8(m++,o.length),y.setUint8(m++,c.length),y.setUint8(m++,d.length),y.setUint8(m++,n),Array.from(l,g=>y.setUint8(m++,g.charCodeAt(0))),Array.from(a,g=>y.setUint8(m++,g.charCodeAt(0))),Array.from(o,g=>y.setUint8(m++,g.charCodeAt(0))),Array.from(c,g=>y.setUint8(m++,g.charCodeAt(0))),Array.from(d,g=>y.setUint8(m++,g.charCodeAt(0)));var b=new Uint8Array(f.byteLength+r.byteLength);return b.set(new Uint8Array(f),0),b.set(new Uint8Array(r),f.byteLength),b.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,a,l]=r;
220return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const c=r.decode(t.slice(l,l+s));l=l+s;const u=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+o));l=l+o;const h=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,y={type:this.BROADCAST_EVENT,event:u,payload:f};return o>0&&(y.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class US{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ce;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ce||(ce={}));const Rv=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=MO(o,e,t,s),i),{}):{}},MO=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?BS(i,o):Lf(o)},BS=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return UO(t,n)}switch(e){case ce.bool:return LO(t);case ce.float4:case ce.float8:case ce.int2:case ce.int4:case ce.int8:case ce.numeric:case ce.oid:return $O(t);case ce.json:case ce.jsonb:return FO(t);case ce.timestamp:return BO(t);case ce.abstime:case ce.date:case ce.daterange:case ce.int4range:case ce.int8range:case ce.money:case ce.reltime:case ce.text:case ce.time:case ce.timestamptz:case ce.timetz:case ce.tsrange:case ce.tstzrange:return Lf(t);default:return Lf(t)}},Lf=e=>e,LO=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},$O=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},FO=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},UO=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>BS(t,a))}return e},BO=e=>typeof e=="string"?e.replace(" ","T"):e,VS=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class Md{constructor(t,n,r={},s=Df){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHo
220oks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Av;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Av||(Av={}));class oa{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=oa.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=oa.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=oa.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(i,(c,u)=>{o[c]||(l[c]=u)}),this.map(o,(c,u)=>{const d=i[c];if(d){const h=u.map(b=>b.presence_ref),f=d.map(b=>b.presence_ref),y=u.filter(b=>f.indexOf(b.presence_ref)<0),m=d.filter(b=>h.indexOf(b.presence_ref)<0);y.length>0&&(a[c]=y),m.length>0&&(l[c]=m)}else a[c]=u}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var c;const u=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),u.length>0){const d=t[a].map(f=>f.presence_ref),h=u.filter(f=>d.indexOf(f.presence_ref)<0);t[a].unshift(...h)}r(a,u,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;const u=l.map(d=>d.presence_ref);c=c.filter(d=>u.indexOf(d.presence_ref)<0),t[a]=c,s(a,c,l),c.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var jv;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(jv||(jv={}));var aa;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(aa||(aa={}));var Un;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Un||(Un={}));class Ci{constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Me.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Md(this,un.join,this.params,this.timeout),this.rejoinTimer=new US(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Me.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Me.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Me.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Me.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Me.errored,this.rejoinTimer.scheduleTimeout())}),this._on(un.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new oa(this),this.broadcastEndpointURL=VS(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==Me.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[aa.PRESENCE]&&this.bindings[aa.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(Un.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(Un.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:f})=>{var y;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Un.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,b=(y=m==null?void 0:m.length)!==null&&y!==void 0?y:0,g=[];for(let v=0;v<b;
220v++){const w=m[v],{filter:{event:S,schema:E,table:_,filter:C}}=w,T=f&&f[v];if(T&&T.event===S&&Ci.isFilterValueEqual(T.schema,E)&&Ci.isFilterValueEqual(T.table,_)&&Ci.isFilterValueEqual(T.filter,C))g.push(Object.assign(Object.assign({},w),{id:T.id}));else{this.unsubscribe(),this.state=Me.errored,t==null||t(Un.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,t&&t(Un.SUBSCRIBED);return}}).receive("error",f=>{this.state=Me.errored,t==null||t(Un.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Un.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===Me.joined&&t===aa.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
220in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const c=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Me.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(un.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new Md(this,un.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Me.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Md(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>IO){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:u}=un;if(r&&[a,l,c,u].indexOf(o)>=0&&r!==this._joinRef())return;let h=this._onMessage(o,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var y,m,b;return((y=f.filter)===null||y===void 0?void 0:y.event)==="*"||((b=(m=f.filter)===null||m===void 0?void 0:m.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===o}).map(f=>f.callback(h,r)):(i=this.bindings[o])===null||i===void 0||i.filter(f=>{var y,m,b,g,v,w;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in f){const S=f.id,E=(y=f.filter)===null||y===void 0?void 0:y.event;return S&&((m=n.ids)===null||m===void 0?void 0:m.includes(S))&&(E==="*"||(E==null?void 0:E.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const S=(v=(g=f==null?void 0:f.filter)===null||g===void 0?void 0:g.event)===null||v===void 0?void 0:v.toLocaleLowerCase();return S==="*"||S===((w=n==null?void 0:n.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===o}).map(f=>{if(typeof h=="object"&&"ids"in h){const y=h.data,{schema:m,table:b,commit_timestamp:g,type:v,errors:w}=y;h=Object.assign(Object.assign({},{schema:m,table:b,commit_timestamp:g,eventType:v,new:{},old:{},errors:w}),this._getPayloadRecords(y))}f.callback(h,r)})}_isClosed(){return this.state===Me.closed}_isJoined(){return this.state===Me.joined}_isJoining(){return this.state===Me.joining}_isLeaving(){return this.state===Me.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&Ci.isEqual(s.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(un.close,{},t)}_onError(t){this._on(un.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Me.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Rv(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Rv(t.columns,t.old_record)),n}}const Ld=()=>{},$l={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},VO=[1e3,2e3,5e3,1e4],zO=1e4,WO=`
221  addEventListener("message", (e) => {
222    if (e.data.event === "start") {
223      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
224    }
225  });`;class HO{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Df,this.transport=null,this.heartbeatIntervalMs=$l.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Ld,this.ref=0,this.reconnectTimer=null,this.vsn=Pv,this.logger=Ld,this.conn=null,this.sendBuffer=[],this.serializer
225=new DO,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Mf.websocket}`,this.httpEndpoint=VS(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=RO.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
226
227To use Realtime in Node.js, you need to provide a WebSocket implementation:
228
229Option 1: Use Node.js 22+ which has native WebSocket support
230Option 2: Install and provide the "ws" package:
231
232  npm install ws
233
234  import ws from "ws"
235  const client = new RealtimeClient(url, {
236    ...options,
237    transport: ws
238  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&this._remove(t),this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case xr.connecting:return ms.Connecting;case xr.open:return ms.Open;case xr.closing:return ms.Closing;default:return ms.Closed}}isConnected(){return this.connectionState()===ms.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new Ci(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(OO,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},$l.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
238{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const c=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",c)}catch(u){this.log("error","error in heartbeat callback",u)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===xr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===xr.open||this.conn.readyState===xr.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(n){this.log("error","error in heartbeat callback",n)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(un.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([WO],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEac
238h(s=>{const i={access_token:n,version:jO};n&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(un.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new US(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},$l.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,o,a,l,c,u,d,h,f;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:Df,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:$l.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Ld,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:Pv,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:y=>VO[y-1]||zO,this.vsn){case NO:this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(y,m)=>m(JSON.stringify(y)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:(y,m)=>m(JSON.parse(y));break;case FS:this.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:this.serializer.encode.bind(this.serializer),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var Ma=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function KO(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function qO(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function GO(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=KO(e.baseUrl,r,s),l=await qO(e.auth),c=await t(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),u=await c.text(),d=(c.headers.get("content-type")||"").includes("application/json"),h=d&&u?JSON.parse(u):u;if(!c.ok){const f=d?h:void 0,y=f==null?void 0:f.error;throw new Ma((y==null?void 0:y.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:y==null?void 0:y.type,icebergCode:y==null?void 0:y.code,details:f})}return{status:c.status,headers:c.headers,data:h}}}}function Fl(e){return e.join("�")}var QO=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Fl(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Fl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Fl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Fl(e.namespace)}`}),!0}catch(t){if(t instanceof Ma&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Ma&&n.status===409)return;throw n}}};function ti(e){return e.join("�")}var YO=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ti(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ti(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ti(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ti(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ti(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ti(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Ma&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Ma&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},JO=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=GO({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new QO(this.client,t),this.tableOps=new YO(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
238async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},$u=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function Fu(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Ul=class extends $u{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},zS=class extends $u{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const XO=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),ZO=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$f=e=>{if(Array.isArray(e))return e.map(n=>$f(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=$f(r)}),t},eI=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function La(e){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},La(e)}function tI(e,t){if(La(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(La(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nI(e){var t=tI(e,"string");return La(t)=="symbol"?t:t+""}function rI(e,t,n){return(t=nI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nv(Object(n),!0).forEach(function(r){rI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Ov=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},sI=async(e,t,n,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const s=e,i=s.status||500;if(typeof s.json=="function")s.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new Ul(Ov(o),i,a,r))}).catch(()=>{if(r==="vectors"){const o=i+"";t(new Ul(s.statusText||`HTTP ${i} error`,i,o,r))}else{const o=i+"";t(new Ul(s.statusText||`HTTP ${i} error`,i,o,r))}});else{const o=i+"";t(new Ul(s.statusText||`HTTP ${i} error`,i,o,r))}}else t(new zS(Ov(e),e,r))},iI=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?K(K({},s),n):(ZO(r)?(s.headers=K({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,t!=null&&t.duplex&&(s.duplex=t.duplex),K(K({},s),n))};async function Bo(e,t,n,r,s,i,o){return new Promise((a,l)=>{e(n,iI(t,r,s,i)).then(c=>{if(!c.ok)throw c;if(r!=null&&r.noResolveJson)return c;if(o==="vectors"){const u=c.headers.get("content-type");if(c.headers.get("content-length")==="0"||c.status===204)return{};if(!u||!u.includes("application/json"))return{}}return c.json()}).then(c=>a(c)).catch(c=>sI(c,l,r,o))})}function WS(e="storage"){return{get:async(t,n,r,s)=>Bo(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>Bo(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>Bo(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>Bo(t,"HEAD",n,K(K({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>Bo(t,"DELETE",n,s,i,r,e)}}const oI=WS("storage"),{get:$a,post:on,put:Ff,head:aI,remove:Mm}=oI,Rt=WS("vectors");var ko=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=XO(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Fu(n))return{data:null,error:n};throw n}}},lI=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Fu(t))return{data:null,error:t};throw t}}};let HS;HS=Symbol.toStringTag;var cI=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[HS]="BlobDownloadBuilder",this.promise=null}asStream(){return new lI(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Fu(t))return{data:null,error:t};throw t}}};const uI={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Iv={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var dI=class extends ko{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=K(K({},Iv),r);let a=K(K({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(a=K(K({},a),r.headers));const c=s._removeEmptyFolders(t),u=s._getFinalPath(c),d=await(e=="PUT"?Ff:on)(s.fetch,`${s.url}/object/${u}`,i,K({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:c,id:d.Id,fullPath:d.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),s.handleOperation(async()=>{let l;const c=K({upsert:Iv.upsert},r),u=K(K({},s.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType),{path:i,fullPath:(await Ff(s.fetch,a.toString(),l,{headers:u})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=K({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await on(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),a=o.searchParams.get("token");if(!a)throw new $u("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await on(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
238stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await on(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e),i=await on(r.fetch,`${r.url}/object/sign/${s}`,K({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${i.signedURL}${o}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await on(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s.map(o=>K(K({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${i}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),i=s?`?${s}`:"",o=this._getFinalPath(e),a=()=>$a(this.fetch,`${this.url}/${r}/${o}${i}`,{headers:this.headers,noResolveJson:!0},n);return new cI(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>$f(await $a(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await aI(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Fu(r)&&r instanceof zS){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&r.push(s);const i=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Mm(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=K(K(K({},uI),t),{},{prefix:e||""});return await on(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=K({},e);return await on(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const hI="2.95.3",ol={"X-Client-Info":`storage-js/${hI}`};var fI=class extends ko{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=K(K({},ol),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await $a(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await $a(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await on(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Ff(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await on(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Mm(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},pI=class extends ko{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=K(K({},ol),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await on(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await $a(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Mm(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!eI(e))throw new $u("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new JO({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
238),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(s,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},mI=class extends ko{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=K(K({},ol),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Rt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Rt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},gI=class extends ko{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=K(K({},ol),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},yI=class extends ko{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=K(K({},ol),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},vI=class extends yI{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new wI(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},wI=class extends mI{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,K(K({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,K(K({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new xI(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
238,xI=class extends gI{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,K(K({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,K(K({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,K(K({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,K(K({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,K(K({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},bI=class extends fI{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new dI(this.url,this.headers,e,this.fetch)}get vectors(){return new vI(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new pI(this.url+"/iceberg",this.headers,this.fetch)}};const KS="2.95.3",di=30*1e3,Uf=3,$d=Uf*di,SI="http://localhost:9999",EI="supabase.auth.token",_I={"X-Client-Info":`gotrue-js/${KS}`},Bf="X-Supabase-Api-Version",qS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},kI=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,CI=10*60*1e3;class Fa extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function V(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class TI extends Fa{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function PI(e){return V(e)&&e.name==="AuthApiError"}class gs extends Fa{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class sr extends Fa{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class Ct extends sr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Fd(e){return V(e)&&e.name==="AuthSessionMissingError"}class ni extends sr{constructor(){super("Auth session or user missing","AuthInvalidToken
238ResponseError",500,void 0)}}class Bl extends sr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Vl extends sr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function RI(e){return V(e)&&e.name==="AuthImplicitGrantRedirectError"}class Dv extends sr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class AI extends sr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Vf extends sr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Ud(e){return V(e)&&e.name==="AuthRetryableFetchError"}class Mv extends sr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class zf extends sr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const eu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Lv=` 	
239\r=`.split(""),jI=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Lv.length;t+=1)e[Lv[t].charCodeAt(0)]=-2;for(let t=0;t<eu.length;t+=1)e[eu[t].charCodeAt(0)]=t;return e})();function $v(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(eu[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(eu[r]),t.queuedBits-=6}}function GS(e,t,n){const r=jI[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Fv(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{II(o,r,n)};for(let o=0;o<e.length;o+=1)GS(e.charCodeAt(o),s,i);return t.join("")}function NI(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function OI(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}NI(r,t)}}function II(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Ui(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)GS(e.charCodeAt(s),n,r);return new Uint8Array(t)}function DI(e){const t=[];return OI(e,n=>t.push(n)),new Uint8Array(t)}function xs(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>$v(s,n,r)),$v(null,n,r),t.join("")}function MI(e){return Math.round(Date.now()/1e3)+e}function LI(){return Symbol("auth-callback")}const qe=()=>typeof window<"u"&&typeof document<"u",ls={tested:!1,writable:!1},QS=()=>{if(!qe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ls.tested)return ls.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ls.tested=!0,ls.writable=!0}catch{ls.tested=!0,ls.writable=!1}return ls.writable};function $I(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
239h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const YS=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),FI=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",hi=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},cs=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Ke=async(e,t)=>{await e.removeItem(t)};class Uu{constructor(){this.promise=new Uu.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Uu.promiseConstructor=Promise;function zl(e){const t=e.split(".");if(t.length!==3)throw new zf("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!kI.test(t[r]))throw new zf("JWT not in base64url format");return{header:JSON.parse(Fv(t[0])),payload:JSON.parse(Fv(t[1])),signature:Ui(t[2]),raw:{header:t[0],payload:t[1]}}}async function UI(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function BI(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function VI(e){return("0"+e.toString(16)).substr(-2)}function zI(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,VI).join("")}async function WI(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function HI(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await WI(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ri(e,t,n=!1){const r=zI();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await hi(e,`${t}-code-verifier`,s);const i=await HI(r);return[i,r===i?"plain":"s256"]}const KI=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function qI(e){const t=e.headers.get(Bf);if(!t||!t.match(KI))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function GI(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function QI(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const YI=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function si(e){if(!YI.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Bd(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function JI(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function Uv(e){return JSON.parse(JSON.stringify(e))}const fs=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),XI=[502,503,504];async function Bv(e){var t;if(!FI(e))throw new Vf(fs(e),0);if(XI.includes(e.status))throw new Vf(fs(e),e.status);let n;try{n=await e.json()}catch(i){throw new gs(fs(i),i)}let r;const s=qI(e);if(s&&s.getTime()>=qS["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Mv(fs(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Ct}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>
239i&&typeof o=="string",!0))throw new Mv(fs(n),e.status,n.weak_password.reasons);throw new TI(fs(n),e.status||500,r)}const ZI=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function H(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Bf]||(i[Bf]=qS["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await eD(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function eD(e,t,n,r,s,i){const o=ZI(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new Vf(fs(l),0)}if(a.ok||await Bv(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Bv(l)}}function nn(e){var t;let n=null;rD(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=MI(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Vv(e){const t=nn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Er(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function tD(e){return{data:e,error:null}}function nD(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=_o(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function zv(e){return e}function rD(e){return e.access_token&&e.refresh_token&&e.expires_in}const Vd=["global","local","others"];class sD{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=YS(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=Vd[0]){if(Vd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Vd.join(", ")}`);try{return await H(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(V(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await H(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Er})}catch(r){if(V(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=_o(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await H(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:nD,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(V(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await H(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Er})}catch(n){if(V(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await H(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:zv});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(y=>{const m=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(y.split(";")[1].split("=")[1]);c[`${b}Page`]=m}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(V(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){si(t);try{return await H(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Er})}catch(n){if(V(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){si(t);try{return await H(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Er})}catch(r){if(V(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){si(t);
239try{return await H(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Er})}catch(r){if(V(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){si(t.userId);try{const{data:n,error:r}=await H(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(V(n))return{data:null,error:n};throw n}}async _deleteFactor(t){si(t.userId),si(t.id);try{return{data:await H(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(V(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await H(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:zv});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(y=>{const m=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(y.split(";")[1].split("=")[1]);c[`${b}Page`]=m}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(V(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await H(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(V(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await H(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(V(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await H(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(V(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await H(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(V(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await H(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(V(n))return{data:null,error:n};throw n}}}function Wv(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const ii={debug:!!(globalThis&&QS()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class JS extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class iD extends JS{}async function oD(e,t,n){ii.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),ii.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){ii.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{ii.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw ii.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new iD(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(ii.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function aD(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function XS(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
239" is invalid.`);return e.toLowerCase()}function lD(e){return parseInt(e,16)}function cD(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function uD(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:u,uri:d,version:h}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
240`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=XS(e.address),y=u?`${u}://${r}`:r,m=e.statement?`${e.statement}
241`:"",b=`${y}
241 wants you to sign in with your Ethereum account:
242${f}
243
244${m}`;let g=`URI: ${d}
245Version: ${h}
246Chain ID: ${n}${o?`
247Nonce: ${o}`:""}
248Issued At: ${i.toISOString()}`;if(s&&(g+=`
249Expiration Time: ${s.toISOString()}`),a&&(g+=`
250Not Before: ${a.toISOString()}`),l&&(g+=`
251Request ID: ${l}`),c){let v=`
252Resources:`;for(const w of c){if(!w||typeof w!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${w}`);v+=`
253- ${w}`}g+=v}return`${b}
254${g}`}class Oe extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class tu extends Oe{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function dD({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Oe({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Oe({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Oe({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Oe({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Oe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Oe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Oe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Oe({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(ZS(o)){if(i.rp.id!==o)return new Oe({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Oe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Oe({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Oe({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Oe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function hD({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Oe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Oe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(ZS(r)){if(n.rpId!==r)return new Oe({message:`The RP ID "${n.rpId}
254" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Oe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Oe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Oe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class fD{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const pD=new fD;function mD(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=_o(e,["challenge","user","excludeCredentials"]),i=Ui(t).buffer,o=Object.assign(Object.assign({},n),{id:Ui(n.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const c=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:Ui(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function gD(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=_o(e,["challenge","allowCredentials"]),s=Ui(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:Ui(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function yD(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:xs(new Uint8Array(e.response.attestationObject)),clientDataJSON:xs(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function vD(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:xs(new Uint8Array(s.authenticatorData)),clientDataJSON:xs(new Uint8Array(s.clientDataJSON)),signature:xs(new Uint8Array(s.signature)),userHandle:s.userHandle?xs(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function ZS(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Hv(){var e,t;return!!(qe()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function wD(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new tu("Browser returned unexpected credential type",t)}:{data:null,error:new tu("Empty credential response",t)}}catch(t){return{data:null,error:dD({error:t,options:e})}}}async function xD(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new tu("Browser returned unexpected credential type",t)}:{data:null,error:new tu("Empty credential response",t)}}
254catch(t){return{data:null,error:hD({error:t,options:e})}}}const bD={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},SD={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function nu(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const a=r[i];t(a)?r[i]=nu(a,o):r[i]=nu(o)}else r[i]=o}return r}function ED(e,t){return nu(bD,e,t||{})}function _D(e,t){return nu(SD,e,t||{})}class kD{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const c=s??pD.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:u}=a.webauthn.credential_options.publicKey;if(!u.name){const d=r;if(d)u.name=`${u.id}:${d}`;else{const f=(await this.client.getUser()).data.user,y=((o=f==null?void 0:f.user_metadata)===null||o===void 0?void 0:o.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";u.name=`${u.id}:${y}`}}u.displayName||(u.displayName=u.name)}switch(a.webauthn.type){case"create":{const u=ED(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:h}=await wD({publicKey:u,signal:c});return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const u=_D(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:h}=await xD(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(a){return V(a)?{data:null,error:a}:{data:null,error:new gs("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Fa("rpId is required for WebAuthn authentication")};try{if(!Hv())return{data:null,error:new gs("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return V(o)?{data:null,error:o}:{data:null,error:new gs("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Fa("rpId is required for WebAuthn registration")};try{if(!Hv())return{data:null,error:new gs("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(u=>{var d;return(d=u.data)===null||d===void 0?void 0:d.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return V(o)?{data:null,error:o}:{data:null,error:new gs("Unexpected error in register",o)}}}}aD();const CD={url:SI,storageKey:EI,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:_I,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function Kv(e,t,n){return await n()}const oi={};class Ua{get jwks(){var t,n;return(n=(t=oi[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){oi[this.storageKey]=Object.assign(Object.assign({},oi[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=oi[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){oi[this.storageKey]=Object.assign(Object.assign({},oi[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},CD),t);if(this.storageKey=i.storageKey,this.instanceID=(n=Ua.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Ua.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&qe()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new sD({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=YS(i.fetch),this.lock=i.lock||Kv,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&qe()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=oD:this.lock=Kv,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new kD(this)}
254,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:QS()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Wv(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Wv(this.memoryStorage)),qe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${KS}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(qe()&&(n=$I(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),qe()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),RI(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return V(n)?this._returnResult({error:n}):this._returnResult({error:new gs("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await H(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:nn}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(V(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:u,password:d,options:h}=t;let f=null,y=null;this.flowType==="pkce"&&([f,y]=await ri(this.storage,this.storageKey)),i=await H(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:u,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:y},xform:nn})}else if("phone"in t){const{phone:u,password:d,options:h}=t;i=await H(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:nn})}else throw new Bl("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await Ke(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),V(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await H(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Vv})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await H(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Vv})}else throw new Bl("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new ni;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(V(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,a,l,c,u,d,h;let f,y;if("message"in t)f=t.message,y=t.signature;else{const{chain:m,wallet:b,statement:g,options:v}=t;let w;if(qe())if(typeof b=="object")w=b;else{const R=window;if("ethereum"in R&&typeof R.ethereum=="object"&&"request"in R.ethereum&&typeof R.ethereum.request=="function")w=R.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=b}const S=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href),E=await w.request({method:"eth_requestAccounts"}).then(R=>R).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!E||E.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const _=XS(E[0]);let C=(r=v==null?void 0:v.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!C){const R=await w.request({method:"eth_chainId"});C=lD(R)}const T={domain:S.host,address:_,statement:g,uri:S.href,version:"1",chainId:C,nonce:(s=v==null?void 0:v.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=v==null?void 0:v.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=v==null?void 0:v.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=v==null?void 0:v.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=v==null?void 0:v.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=v==null?void 0:v.signInWithEthereum)===null||u===void 0?void 0:u.resources};f=uD(T),y=await w.request({method:"personal_sign",params:[cD(f),_]})}try{const{data:m,error:b}=await H(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:y},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:nn});if(b)throw b;if(!m||!m.session||!m.user){const g=new ni;return this._returnResult({data:{user:null,session:null},error:g})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:b})}catch(m){if(V(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,s,i,o,a,l,c,u,d,h,f;let y,m;if("message"in t)y=t.message,m=t.signature;else{const{chain:b,wallet:g,statement:v,options:w}=t;let S;if(qe())if(typeof g=="object")S=g;else{const _=window;if("solana"in _&&typeof _.solana=="object"&&("signIn"in _.solana&&typeof _.solana.signIn=="function"||"signMessage"in _.solana&&typeof _.solana.signMessage=="function"))S=_.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=g}const E=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const _=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:E.host,uri:E.href}),v?{statement:v}:null));let C;if(Array.isArray(_)&&_[0]&&typeof _[0]=="object")C=_[0];else if(_&&typeof _=="object"&&"signedMessage"in _&&"signature"in _)C=_;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in C&&"signature"in C&&(typeof C.signedMessage=="string"||C.signedMessage instanceof Uint8Array)&&C.signature instanceof Uint8Array)y=typeof C.signedMessage=="string"?C.signedMessage:new TextDecoder().decode(C.signedMessage),m=C.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${E.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${E.href}`,`Issued At: ${(s=(r=w==null?void 0:w.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((c=w==null?void 0:w.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((d=(u=w==null?void 0:w.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...w.sign
254InWithSolana.resources.map(C=>`- ${C}`)]:[]].join(`
255`);const _=await S.signMessage(new TextEncoder().encode(y),"utf8");if(!_||!(_ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=_}}try{const{data:b,error:g}=await H(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:xs(m)},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:nn});if(g)throw g;if(!b||!b.session||!b.user){const v=new ni;return this._returnResult({data:{user:null,session:null},error:v})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:g})}catch(b){if(V(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const n=await cs(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new AI;const{data:i,error:o}=await H(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:nn});if(await Ke(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new ni;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),V(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await H(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:nn}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const u=new ni;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(n){if(V(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await ri(this.storage,this.storageKey));const{error:d}=await H(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await H(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u})}throw new Bl("You must provide either an email or phone number.")}catch(a){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),V(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await H(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:nn});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(V(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await ri(this.storage,this.storageKey));const c=await H(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:tD});return!((i=c.data)===null||i===void 0)&&i.url&&qe()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),V(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Ct;const{error:s}=await H(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(V(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await H(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await H(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new Bl("You must provide either an email or phone number and a type")}catch(n){if(V(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await cs(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
255id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<$d:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await cs(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Bd()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=JI(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await H(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Er}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ct}:await H(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Er})})}catch(n){if(V(n))return Fd(n)&&(await this._removeSession(),await Ke(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new Ct;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await ri(this.storage,this.storageKey));const{data:c,error:u}=await H(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Er});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),V(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Ct;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=zl(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(V(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Ct;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(V(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!qe())throw new Vl("No browser detected.");
255if(t.error||t.error_description||t.error_code)throw new Vl(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Dv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Vl("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Dv("No code detected.");const{data:v,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:v.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!i||!a||!o||!c)throw new Vl("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(a);let h=u+d;l&&(h=parseInt(l));const f=h-u;f*1e3<=di&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${d}s`);const y=h-d;u-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,h,u):u-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,h,u);const{data:m,error:b}=await this._getUser(i);if(b)throw b;const g={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:d,expires_at:h,refresh_token:o,token_type:c,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(r){if(V(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await cs(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i&&!Fd(i))return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(PI(a)&&(a.status===404||a.status===401||a.status===403)||Fd(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Ke(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=LI(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await ri(this.storage,this.storageKey,!0));try{return await H(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),V(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,c,u;const{data:d,error:h}=i;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await H(this.fetch,"GET",f,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return qe()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(V(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
255if(s)throw s;const{options:o,provider:a,token:l,access_token:c,nonce:u}=t,d=await H(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:nn}),{data:h,error:f}=d;return f?this._returnResult({data:{user:null,session:null},error:f}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new ni}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:f}))}catch(s){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),V(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await H(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await BI(async s=>(s>
2550&&await UI(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await H(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:nn})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Ud(i)&&Date.now()+o-r<di})}catch(r){if(this._debug(n,"error",r),V(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),qe()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await cs(this.storage,this.storageKey);if(s&&this.userStorage){let o=await cs(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await hi(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Bd()}else if(s&&!s.user&&!s.user){const o=await cs(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Ke(this.storage,this.storageKey+"-user"),await hi(this.storage,this.storageKey,s)):s.user=Bd()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<$d;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${$d}
255s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Ud(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Ct;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Uu;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new Ct;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),V(i)){const o={data:null,error:i};return Ud(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ke(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await hi(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=Uv(s);await hi(this.storage,this.storageKey,i)}else{const s=Uv(n);await hi(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ke(this.storage,this.storageKey),await Ke(this.storage,this.storageKey+"-code-verifier"),await Ke(this.storage,this.storageKey+"-user"),this.userStorage&&await Ke(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&qe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),di);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/di);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${di}ms, refresh threshold is ${Uf} ticks`),s<=Uf&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof JS)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!qe()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>
255{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await ri(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await H(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await H(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?yD(t.webauthn.credential_response):vD(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await H(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await H(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:mD(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:gD(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:f}=zl(t);let y=null;f.aal&&(y=f.aal);let m=y;const{data:{user:b},error:g}=await this.getUser(t);if(g)return this._returnResult({data:null,error:g});((r=(n=b==null?void 0:b.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(m="aal2");const w=f.amr||[];return{data:{currentLevel:y,nextLevel:m,currentAuthenticationMethods:w},error:null}}catch(f){if(V(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:o},error:a}
255=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=zl(o.access_token);let c=null;l.aal&&(c=l.aal);let u=c;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(f=>f.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(u="aal2");const h=l.amr||[];return{data:{currentLevel:c,nextLevel:u,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await H(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Ct})})}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Ct});const o=await H(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&qe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Ct});const o=await H(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&qe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await H(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Ct})})}catch(t){if(V(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await H(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Ct})})}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+CI>s)return r;const{data:i,error:o}=await H(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:y}
255=await this.getSession();if(y||!f.session)return this._returnResult({data:null,error:y});r=f.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=zl(r);n!=null&&n.allowExpired||GI(i.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:i,header:s,signature:o},error:null}}const u=QI(s.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,DI(`${a}.${l}`)))throw new zf("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}}}Ua.nextInstanceID={};const TD=Ua,PD="2.95.3";let Go="";typeof Deno<"u"?Go="deno":typeof document<"u"?Go="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Go="react-native":Go="node";const RD={"X-Client-Info":`supabase-js-${Go}/${PD}`},AD={headers:RD},jD={schema:"public"},ND={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},OD={};function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}function ID(e,t){if(Ba(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ba(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DD(e){var t=ID(e,"string");return Ba(t)=="symbol"?t:t+""}function MD(e,t,n){return(t=DD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qv(Object(n),!0).forEach(function(r){MD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const LD=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),$D=()=>Headers,FD=(e,t,n)=>{const r=LD(n),s=$D();return async(i,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new s(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(i,Te(Te({},o),{},{headers:c}))}};function UD(e){return e.endsWith("/")?e:e+"/"}function BD(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:c,realtime:u,global:d}=t,h={db:Te(Te({},l),s),auth:Te(Te({},c),i),realtime:Te(Te({},u),o),storage:{},global:Te(Te(Te({},d),a),{},{headers:Te(Te({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function VD(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(UD(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var zD=class extends TD{constructor(e){super(e)}},WD=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=VD(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,a={db:jD,realtime:OD,auth:Te(Te({},ND),{},{storageKey:o}),global:AD},l=BD(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(u,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=FD(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Te({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new PO(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new bI(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new xO(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
255channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:c},u,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new zD({url:this.authUrl.href,headers:Te(Te({},h),u),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:c,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new HO(this.realtimeUrl.href,Te(Te({},e),{},{params:Te(Te({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const HD=(e,t,n)=>new WD(e,t,n);function KD(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}KD()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const qD="https://bcoamolufqttgchlsiiz.supabase.co",GD="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJjb2Ftb2x1ZnF0dGdjaGxzaWl6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzA1OTk3MDEsImV4cCI6MjA4NjE3NTcwMX0.YDEn27Gsd6F3ILejzBrEV14YDh7aJgVp1v7NsTKziuI",it=HD(qD,GD,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),eE=x.createContext(void 0),QD=({children:e})=>{const[t,n]=x.useState(null),[r,s]=x.useState(null),[i,o]=x.useState(!1),[a,l]=x.useState(!0),c=async h=>{const{data:f}=await it.from("user_roles").select("role").eq("user_id",h).eq("role","admin").maybeSingle();o(!!f)};x.useEffect(()=>{it.auth.getSession().then(({data:{session:f}})=>{s(f),n((f==null?void 0:f.user)??null),f!=null&&f.user&&c(f.user.id),l(!1)});const{data:{subscription:h}}=it.auth.onAuthStateChange((f,y)=>{s(y),n((y==null?void 0:y.user)??null),y!=null&&y.user?c(y.user.id):o(!1),l(!1)});return()=>h.unsubscribe()},[]);const u=async(h,f)=>{const{error:y}=await it.auth.signInWithPassword({email:h,password:f});return{error:y}},d=async()=>{await it.auth.signOut()};return p.jsx(eE.Provider,{value:{user:t,session:r,isAdmin:i,loading:a,signIn:u,signOut:d},children:e})},tE=()=>{const e=x.useContext(eE);if(!e)throw new Error("useAuth must be used within AuthProvider");return e},YD=()=>p.jsx("div",{className:"min-h-screen flex items-center justify-center px-4 py-16 bg-background",children:p.jsxs("div",{className:"max-w-3xl mx-auto text-center space-y-6",children:[p.jsx("p",{className:"text-lg md:text-xl text-foreground leading-relaxed font-body",children:"All of us from RumBot have forged some amazing tools, amazing times and have enjoyed making the tools that helped to build Gaming on Rumble what it is today. Though this was never done or built with and by Rumble at all, the time to shut RumBot down is at hand."}),p.jsx("p",{className:"text-lg md:text-xl text-foreground leading-relaxed font-body",children:"We appreciate all the amazing community members who made all of this possible with all of the support and love that we got over the years. We will see you all online and in the lobbies that have helped us make so many memories."}),p.jsxs("p",{className:"text-lg md:text-xl text-foreground leading-relaxed font-body",children:["If you happen to come here by accident, we suggest using"," ",p.jsx("a",{href:"https://helixtools.org",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"helixtools.org"})," ","for your alert needs. Multiplatform support, clipping tools, short maker and more. Everything you need to have amazing streams there under one roof."]}),p.jsx("p",{className:"text-lg md:text-xl text-foreground leading-relaxed font-body",children:"Enjoy the games, enjoy the moments, long live gaming!"}),p.jsxs("p",{className:"text-lg md:text-xl text-foreground leading-relaxed font-body",children:["Sincerely,",p.jsx("br",{}),"RUMBot Dev Team"]})]})}),Lm=x.createContext({});function $m(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const nE=typeof window<"u",rE=nE?x.useLayoutEffect:x.useEffect,Bu=x.createContext(null);function Fm(e,t){e.indexOf(t)===-1&&e.push(t)}function Um(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Dn=(e,t,n)=>n>t?t:n<e?e:n;let Vu=()=>{},uo=()=>{};const tr={},sE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function iE(e){return typeof e=="object"&&e!==null}const oE=e=>/^0[^.\s]+$/u.test(e);function Bm(e){let t;return()=>(t===void 0&&(t=e()),t)}const Kt=e=>e,JD=(e,t)=>n=>t(e(n)),al=(...e)=>e.reduce(JD),Va=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Vm{constructor(){this.subscriptions=[]}add(t){return Fm(this.subscriptions,t),()=>Um(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const mn=e=>e*1e3,Wt=e=>e/1e3;function aE(e,t){return t?e*(1e3/t):0}const lE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,XD=1e-7,ZD=12;
vendor: 8,345 bytes, line 255
255function eM(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=lE(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>XD&&++a<ZD);return o}function ll(e,t,n,r){if(e===t&&n===r)return Kt;const s=i=>eM(i,0,1,e,n);return i=>i===0||i===1?i:lE(s(i),t,r)}const cE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,uE=e=>t=>1-e(1-t),dE=ll(.33,1.53,.69,.99),zm=uE(dE),hE=cE(zm),fE=e=>(e*=2)<1?.5*zm(e):.5*(2-Math.pow(2,-10*(e-1))),Wm=e=>1-Math.sin(Math.acos(e)),pE=uE(Wm),mE=cE(Wm),tM=ll(.42,0,1,1),nM=ll(0,0,.58,1),gE=ll(.42,0,.58,1),rM=e=>Array.isArray(e)&&typeof e[0]!="number",yE=e=>Array.isArray(e)&&typeof e[0]=="number",Gv={linear:Kt,easeIn:tM,easeInOut:gE,easeOut:nM,circIn:Wm,circInOut:mE,circOut:pE,backIn:zm,backInOut:hE,backOut:dE,anticipate:fE},sM=e=>typeof e=="string",Qv=e=>{if(yE(e)){uo(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return ll(t,n,r,s)}else if(sM(e))return uo(Gv[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Gv[e];return e},Wl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Yv={value:null,addProjectionMetrics:null};function iM(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(d){o.has(d)&&(u.schedule(d),e()),l++,d(a)}const u={schedule:(d,h=!1,f=!1)=>{const m=f&&s?n:r;return h&&o.add(d),m.has(d)||m.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(c),t&&Yv.value&&Yv.value.frameloop[t].push(l),l=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const oM=40;function vE(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Wl.reduce((w,S)=>(w[S]=iM(i,t?S:void 0),w),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:f,postRender:y}=o,m=()=>{const w=tr.useManualTiming?s.timestamp:performance.now();n=!1,tr.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(w-s.timestamp,oM),1)),s.timestamp=w,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),h.process(s),f.process(s),y.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},b=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:Wl.reduce((w,S)=>{const E=o[S];return w[S]=(_,C=!1,T=!1)=>(n||b(),E.schedule(_,C,T)),w},{}),cancel:w=>{for(let S=0;S<Wl.length;S++)o[Wl[S]].cancel(w)},state:s,steps:o}}const{schedule:de,cancel:Xr,state:Qe,steps:zd}=vE(typeof requestAnimationFrame<"u"?requestAnimationFrame:Kt,!0);let pc;function aM(){pc=void 0}const ht={now:()=>(pc===void 0&&ht.set(Qe.isProcessing||tr.useManualTiming?Qe.timestamp:performance.now()),pc),set:e=>{pc=e,queueMicrotask(aM)}},wE=e=>t=>typeof t=="string"&&t.startsWith(e),xE=wE("--"),lM=wE("var(--"),Hm=e=>lM(e)?cM.test(e.split("/*")[0].trim()):!1,cM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Jv(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Co={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},za={...Co,transform:e=>Dn(0,1,e)},Hl={...Co,default:1},la=e=>Math.round(e*1e5)/1e5,Km=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uM(e){return e==null}const dM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qm=(e,t)=>n=>!!(typeof n=="string"&&dM.test(n)&&n.startsWith(e)||t&&!uM(n)&&Object.prototype.hasOwnProperty.call(n,t)),bE=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Km);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},hM=e=>Dn(0,255,e),Wd={...Co,transform:e=>Math.round(hM(e))},bs={test:qm("rgb","red"),parse:bE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wd.transform(e)+", "+Wd.transform(t)+", "+Wd.transform(n)+", "+la(za.transform(r))+")"};function fM(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Wf={test:qm("#"),parse:fM,transform:bs.transform},cl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),mr=cl("deg"),Nn=cl("%"),F=cl("px"),pM=cl("vh"),mM=cl("vw"),Xv={...Nn,parse:e=>Nn.parse(e)/100,transform:e=>Nn.transform(e*100)},Ti={test:qm("hsl","hue"),parse:bE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Nn.transform(la(t))+", "+Nn.transform(la(n))+", "+la(za.transform(r))+")"},Ie={test:e=>bs.test(e)||Wf.test(e)||Ti.test(e),parse:e=>bs.test(e)?bs.parse(e):Ti.test(e)?Ti.parse(e):Wf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?bs.transform(e):Ti.transform(e),getAnimatableNone:e=>{const t=Ie.parse(e);return t.alpha=0,Ie.transform(t)}},gM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Km))==null?void 0:t.length)||0)+(((n=e.match(gM))==null?void 0:n.length)||0)>0}const SE="number",EE="color",vM="var",wM="var(",Zv="${}",xM=/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 Wa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(xM,l=>(Ie.test(l)?(r.color.push(i),s.push(EE),n.push(Ie.parse(l))):l.startsWith(wM)?(r.var.push(i),s.push(vM),n.push(l)):(r.number.push(i),s.push(SE),n.push(parseFloat(l))),++i,Zv)).split(Zv);return{values:n,split:a,indexes:r,types:s}}function _E(e){return Wa(e).values}function kE(e){const{split:t,types:n}=Wa(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const a=n[o];a===SE?i+=la(s[o]):a===EE?i+=Ie.transform(s[o]):i+=s[o]}return i}}const bM=e=>typeof e=="number"?0:Ie.test(e)?Ie.getAnimatableNone(e):e;function SM(e){const t=_E(e);return kE(e)(t.map(bM))}const Zr={test:yM,parse:_E,createTransformer:kE,getAnimatableNone:SM};function Hd(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 EM({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=Hd(l,a,e+1/3),i=Hd(l,a,e),o=Hd(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function ru(e,t){return n=>n>0?t:e}const Se=(e,t,n)=>e+(t-e)*n,Kd=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},_M=[Wf,bs,Ti],kM=e=>_M.find(t=>t.test(e));function e0(e){const t=kM(e);if(Vu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Ti&&(n=EM(n)),n}const t0=(e,t)=>{const n=e0(e),r=e0(t);if(!n||!r)return ru(e,t);const s={...n};return i=>(s.red=Kd(n.red,r.red,i),s.green=Kd(n.green,r.green,i),s.blue=Kd(n.blue,r.blue,i),s.alpha=Se(n.alpha,r.alpha,i),bs.transform(s))},Hf=new Set(["none","hidden"]);function CM(e,t){return Hf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TM(e,t){return n=>Se(e,t,n)}function Gm(e){return typeof e=="number"?TM:typeof e=="string"?Hm(e)?ru:Ie.test(e)?t0:AM:Array.isArray(e)?CE:typeof e=="object"?Ie.test(e)?t0:PM:ru}function CE(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Gm(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function PM(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Gm(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function RM(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const AM=(e,t)=>{const n=Zr.createTransformer(t),r=Wa(e),s=Wa(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Hf.has(e)&&!s.values.length||Hf.has(t)&&!r.values.length?CM(e,t):al(CE(RM(r,s),s.values),n):(Vu(!0,`Complex values '${e}' and '${t}
255' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ru(e,t))};function TE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Se(e,t,n):Gm(e)(e,t)}const jM=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>de.update(t,n),stop:()=>Xr(t),now:()=>Qe.isProcessing?Qe.timestamp:ht.now()}},PE=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},su=2e4;function Qm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<su;)t+=n,r=e.next(t);return t>=su?1/0:t}function NM(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Qm(r),su);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Wt(s)}}const OM=5;function RE(e,t,n){const r=Math.max(t-OM,0);return aE(n-e(r),t-r)}const xe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},qd=.001;function IM({duration:e=xe.duration,bounce:t=xe.bounce,velocity:n=xe.velocity,mass:r=xe.mass}){let s,i;Vu(e<=mn(xe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=Dn(xe.minDamping,xe.maxDamping,o),e=Dn(xe.minDuration,xe.maxDuration,Wt(e)),o<1?(s=c=>{const u=c*o,d=u*e,h=u-n,f=Kf(c,o),y=Math.exp(-d);return qd-h/f*y},i=c=>{const d=c*o*e,h=d*n+n,f=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-d),m=Kf(Math.pow(c,2),o);return(-s(c)+qd>0?-1:1)*((h-f)*y)/m}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-qd+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=MM(s,i,a);if(e=mn(e),isNaN(l))return{stiffness:xe.stiffness,damping:xe.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const DM=12;function MM(e,t,n){let r=n;for(let s=1;s<DM;s++)r=r-e(r)/t(r);return r}function Kf(e,t){return e*Math.sqrt(1-t*t)}const LM=["duration","bounce"],$M=["stiffness","damping","mass"];function n0(e,t){return t.some(n=>e[n]!==void 0)}function FM(e){let t={velocity:xe.velocity,stiffness:xe.stiffness,damping:xe.damping,mass:xe.mass,isResolvedFromDuration:!1,...e};if(!n0(e,$M)&&n0(e,LM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Dn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:xe.mass,stiffness:s,damping:i}}else{const n=IM(e);t={...t,...n,mass:xe.mass},t.isResolvedFromDuration=!0}return t}function iu(e=xe.visualDuration,t=xe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:f}=FM({...n,velocity:-Wt(n.velocity||0)}),y=h||0,m=c/(2*Math.sqrt(l*u)),b=o-i,g=Wt(Math.sqrt(l/u)),v=Math.abs(b)<5;r||(r=v?xe.restSpeed.granular:xe.restSpeed.default),s||(s=v?xe.restDelta.granular:xe.restDelta.default);let w;if(m<1){const E=Kf(g,m);w=_=>{const C=Math.exp(-m*g*_);return o-C*((y+m*g*b)/E*Math.sin(E*_)+b*Math.cos(E*_))}}else if(m===1)w=E=>o-Math.exp(-g*E)*(b+(y+g*b)*E);else{const E=g*Math.sqrt(m*m-1);w=_=>{const C=Math.exp(-m*g*_),T=Math.min(E*_,300);return o-C*((y+m*g*b)*Math.sinh(T)+E*b*Math.cosh(T))/E}}const S={calculatedDuration:f&&d||null,next:E=>{const _=w(E);if(f)a.done=E>=d;else{let C=E===0?y:0;m<1&&(C=E===0?mn(y):RE(w,E,_));const T=Math.abs(C)<=r,R=Math.abs(o-_)<=s;a.done=T&&R}return a.value=a.done?o:_,a},toString:()=>{const E=Math.min(Qm(S),su),_=PE(C=>S.next(E*C).value,E,30);return E+"ms "+_},toTransition:()=>{}};return S}iu.applyToOptions=e=>{const t=NM(e,100,iu);return e.ease=t.ease,e.duration=mn(t.duration),e.type="keyframes",e};function qf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},f=T=>a!==void 0&&T<a||l!==void 0&&T>l,y=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let m=n*t;const b=d+m,g=o===void 0?b:o(b);g!==b&&(m=g-d);const v=T=>-m*Math.exp(-T/r),w=T=>g+v(T),S=T=>{const R=v(T),j=w(T);h.done=Math.abs(R)<=c,h.value=h.done?g:j};let E,_;const C=T=>{f(h.value)&&(E=T,_=iu({keyframes:[h.value,y(h.value)],velocity:RE(w,T,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:T=>{let R=!1;return!_&&E===void 0&&(R=!0,S(T),C(T)),E!==void 0&&T>=E?_.next(T-E):(!R&&S(T),h)}}}function UM(e,t,n){const r=[],s=n||tr.mix||TE,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Kt:t;a=al(l,a)}r.push(a)}return r}function BM(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(uo(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=UM(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=Va(e[d],e[d+1],u);return a[d](h)};return n?u=>c(Dn(e[0],e[i-1],u)):c}
vendor: 14,393 bytes, line 255
255function VM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Va(0,t,r);e.push(Se(n,1,s))}}function zM(e){const t=[0];return VM(t,e.length-1),t}function WM(e,t){return e.map(n=>n*t)}function HM(e,t){return e.map(()=>t||gE).splice(0,e.length-1)}function ca({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=rM(r)?r.map(Qv):Qv(r),i={done:!1,value:t[0]},o=WM(n&&n.length===t.length?n:zM(t),e),a=BM(o,t,{ease:Array.isArray(s)?s:HM(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const KM=e=>e!==null;function Ym(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(KM),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const qM={decay:qf,inertia:qf,tween:ca,keyframes:ca,spring:iu};function AE(e){typeof e.type=="string"&&(e.type=qM[e.type])}class Jm{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 GM=e=>e/100;class Xm extends Jm{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==ht.now()&&this.tick(ht.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;AE(t);const{type:n=ca,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||ca;l!==ca&&typeof a[0]!="number"&&(this.mixKeyframes=al(GM,TE(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Qm(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:f,type:y,onUpdate:m,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let w=this.currentTime,S=r;if(d){const T=Math.min(this.currentTime,s)/a;let R=Math.floor(T),j=T%1;!j&&T>=1&&(j=1),j===1&&R--,R=Math.min(R,d+1),!!(R%2)&&(h==="reverse"?(j=1-j,f&&(j-=f/a)):h==="mirror"&&(S=o)),w=Dn(0,1,j)*a}const E=v?{done:!1,value:u[0]}:S.next(w);i&&(E.value=i(E.value));let{done:_}=E;!v&&l!==null&&(_=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return C&&y!==qf&&(E.value=Ym(u,this.options,b,this.speed)),m&&m(E.value),C&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Wt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Wt(t)}get time(){return Wt(this.currentTime)}set time(t){var n;t=mn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ht.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Wt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=jM,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);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(ht.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 QM(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ss=e=>e*180/Math.PI,Gf=e=>{const t=Ss(Math.atan2(e[1],e[0]));return Qf(t)},YM={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Gf,rotateZ:Gf,skewX:e=>Ss(Math.atan(e[1])),skewY:e=>Ss(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Qf=e=>(e=e%360,e<0&&(e+=360),e),r0=Gf,s0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),i0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),JM={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:s0,scaleY:i0,scale:e=>(s0(e)+i0(e))/2,rotateX:e=>Qf(Ss(Math.atan2(e[6],e[5]))),rotateY:e=>Qf(Ss(Math.atan2(-e[2],e[0]))),rotateZ:r0,rotate:r0,skewX:e=>Ss(Math.atan(e[4])),skewY:e=>Ss(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Yf(e){return e.includes("scale")?1:0}function Jf(e,t){if(!e||e==="none")return Yf(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=JM,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=YM,s=a}if(!s)return Yf(t);const i=r[t],o=s[1].split(",").map(ZM);return typeof i=="function"?i(o):o[i]}const XM=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jf(n,t)};function ZM(e){return parseFloat(e.trim())}const To=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Po=new Set(To),o0=e=>e===Co||e===F,eL=new Set(["x","y","z"]),tL=To.filter(e=>!eL.has(e));function nL(e){const t=[];return tL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Lr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Jf(t,"x"),y:(e,{transform:t})=>Jf(t,"y")};Lr.translateX=Lr.x;Lr.translateY=Lr.y;const Is=new Set;let Xf=!1,Zf=!1,ep=!1;function jE(){if(Zf){const e=Array.from(Is).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=nL(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Zf=!1,Xf=!1,Is.forEach(e=>e.complete(ep)),Is.clear()}function NE(){Is.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zf=!0)})}function rL(){ep=!0,NE(),jE(),ep=!1}class Zm{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Is.add(this),Xf||(Xf=!0,de.read(NE),de.resolveKeyframes(jE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}QM(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Is.delete(this)}cancel(){this.state==="scheduled"&&(Is.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const sL=e=>e.startsWith("--");function iL(e,t,n){sL(t)?e.style.setProperty(t,n):e.style[t]=n}const oL=Bm(()=>window.ScrollTimeline!==void 0),aL={};function lL(e,t){const n=Bm(e);return()=>aL[t]??n()}const OE=lL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,a0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qo([0,.65,.55,1]),circOut:Qo([.55,0,1,.45]),backIn:Qo([.31,.01,.66,-.59]),backOut:Qo([.33,1.53,.69,.99])};function IE(e,t){if(e)return typeof e=="function"?OE()?PE(e,t):"ease-out":yE(e)?Qo(e):Array.isArray(e)?e.map(n=>IE(n,t)||a0.easeOut):a0[e]}function cL(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=IE(a,s);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function DE(e){return typeof e=="function"&&"applyToOptions"in e}function uL({type:e,...t}){return DE(e)&&OE()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class dL extends Jm{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,uo(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=uL(t);this.animation=cL(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Ym(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):iL(n,r,u),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,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.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 Wt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Wt(t)}get time(){return Wt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=mn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&oL()?(this.animation.timeline=t,Kt):n(this)}}const ME={anticipate:fE,backInOut:hE,circInOut:mE};function hL(e){return e in ME}function fL(e){typeof e.ease=="string"&&hL(e.ease)&&(e.ease=ME[e.ease])}const Gd=10;class pL extends dL{constructor(t){fL(t),AE(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Xm({...o,autoplay:!1}),l=Math.max(Gd,ht.now()-this.startTime),c=Dn(0,Gd,l-Gd);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const l0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zr.test(e)||e==="0")&&!e.startsWith("url("));function mL(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 gL(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=l0(s,t),a=l0(i,t);return Vu(o===a,`You are trying to animate ${t} from "${s}" to "${i}". "${o?i:s}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:mL(e)||(n==="spring"||DE(n))&&r}function tp(e){e.duration=0,e.type="keyframes"}const yL=new Set(["opacity","clipPath","filter","transform"]),vL=Bm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function wL(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return vL()&&n&&yL.has(n)&&(n!=="transform"||!c)&&!l&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const xL=40;class bL extends Jm{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:
255o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var y;super(),this.stop=()=>{var m,b;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=ht.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},f=(u==null?void 0:u.KeyframeResolver)||Zm;this.keyframeResolver=new f(a,(m,b,g)=>this.onKeyframesResolved(m,b,h,!g),l,c,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,s){var b,g;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=ht.now(),gL(t,i,o,a)||((tr.instantAnimations||!l)&&(u==null||u(Ym(t,r,n))),t[0]=t[t.length-1],tp(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>xL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!c&&wL(h),y=(g=(b=h.motionValue)==null?void 0:b.owner)==null?void 0:g.current,m=f?new pL({...h,element:y}):new Xm(h);m.finished.then(()=>{this.notifyFinished()}).catch(Kt),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),rL()),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 LE(e,t,n,r=0,s=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const SL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function EL(e){const t=SL.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const _L=4;function $E(e,t,n=1){uo(n<=_L,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=EL(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return sE(o)?parseFloat(o):o}return Hm(s)?$E(s,t,n+1):s}const kL={type:"spring",stiffness:500,damping:25,restSpeed:10},CL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TL={type:"keyframes",duration:.8},PL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},RL=(e,{keyframes:t})=>t.length>2?TL:Po.has(e)?e.startsWith("scale")?CL(t[1]):kL:PL,AL=e=>e!==null;function jL(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(AL),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}function FE(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function eg(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?FE(n,e):n}function NL({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const tg=(e,t,n,r={},s,i)=>o=>{const a=eg(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-mn(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};NL(a)||Object.assign(u,RL(e,u)),u.duration&&(u.duration=mn(u.duration)),u.repeatDelay&&(u.repeatDelay=mn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(tp(u),u.delay===0&&(
vendor: 4,921 bytes, line 255
255d=!0)),(tr.instantAnimations||tr.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(d=!0,tp(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=jL(u.keyframes,a);if(h!==void 0){de.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Xm(u):new bL(u)};function c0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ng(e,t,n,r){if(typeof t=="function"){const[s,i]=c0(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=c0(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Bi(e,t,n){const r=e.getProps();return ng(r,t,n!==void 0?n:r.custom,e)}const UE=new Set(["width","height","top","left","right","bottom",...To]),u0=30,OL=e=>!isNaN(parseFloat(e));class IL{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=ht.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.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=ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=OL(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 Vm);const r=this.events[t].add(n);return t==="change"?()=>{r(),de.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 this.current}getPrevious(){return this.prev}getVelocity(){const t=ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>u0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,u0);return aE(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 ho(e,t){return new IL(e,t)}const np=e=>Array.isArray(e);function DL(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ho(n))}function ML(e){return np(e)?e[e.length-1]||0:e}function LL(e,t){const n=Bi(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=ML(i[o]);DL(e,o,a)}}const ot=e=>!!(e&&e.getVelocity);function $L(e){return!!(ot(e)&&e.add)}function rp(e,t){const n=e.getValue("willChange");if($L(n))return n.add(t);if(!n&&tr.WillChange){const r=new tr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function rg(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const FL="framerAppearId",BE="data-"+rg(FL);function VE(e){return e.props[BE]}function UL({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function zE(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?FE(i,l):l;const c=i==null?void 0:i.reduceMotion;r&&(i=r);const u=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const h in a){const f=e.getValue(h,e.latestValues[h]??null),y=a[h];if(y===void 0||d&&UL(d,h))continue;const m={delay:n,...eg(i||{},h)},b=f.get();if(b!==void 0&&!f.isAnimating&&!Array.isArray(y)&&y===b&&!m.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const S=VE(e);if(S){const E=window.MotionHandoffAnimation(S,h,de);E!==null&&(m.startTime=E,g=!0)}}rp(e,h);const v=c??e.shouldReduceMotion;f.start(tg(h,f,y,v&&UE.has(h)?{type:!1}:m,e,g));const w=f.animation;w&&u.push(w)}if(o){const h=()=>de.update(()=>{o&&LL(e,o)});
vendor: 4,458 bytes, line 255
255u.length?Promise.all(u).then(h):h()}return u}function sp(e,t,n={}){var l;const r=Bi(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(zE(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=s;return BL(e,t,c,u,d,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,u]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>u())}else return Promise.all([i(),o(n.delay)])}function BL(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(sp(l,t,{...o,delay:n+(typeof r=="function"?0:r)+LE(e.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function VL(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>sp(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=sp(e,t,n);else{const s=typeof t=="function"?Bi(e,t,n.custom):t;r=Promise.all(zE(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const zL={test:e=>e==="auto",parse:e=>e},WE=e=>t=>t.test(e),HE=[Co,F,Nn,mr,mM,pM,zL],d0=e=>HE.find(WE(e));function WL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||oE(e):!0}const HL=new Set(["brightness","contrast","saturate","opacity"]);function KL(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Km)||[];if(!r)return e;const s=n.replace(r,"");let i=HL.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const qL=/\b([a-z-]*)\(.*?\)/gu,ip={...Zr,getAnimatableNone:e=>{const t=e.match(qL);return t?t.map(KL).join(" "):e}},h0={...Co,transform:Math.round},GL={rotate:mr,rotateX:mr,rotateY:mr,rotateZ:mr,scale:Hl,scaleX:Hl,scaleY:Hl,scaleZ:Hl,skew:mr,skewX:mr,skewY:mr,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:za,originX:Xv,originY:Xv,originZ:F},sg={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,...GL,zIndex:h0,fillOpacity:za,strokeOpacity:za,numOctaves:h0},QL={...sg,color:Ie,backgroundColor:Ie,outlineColor:Ie,fill:Ie,stroke:Ie,borderColor:Ie,borderTopColor:Ie,borderRightColor:Ie,borderBottomColor:Ie,borderLeftColor:Ie,filter:ip,WebkitFilter:ip},KE=e=>QL[e];function qE(e,t){let n=KE(e);return n!==ip&&(n=Zr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const YL=new Set(["auto","none","0"]);function JL(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!YL.has(i)&&Wa(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=qE(n,s)}class XL extends Zm{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Hm(d))){const h=$E(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!UE.has(r)||t.length!==2)return;const[s,i]=t,o=d0(s),a=d0(i),l=Jv(s),c=Jv(i);if(l!==c&&Lr[r]){this.needsMeasurement=!0;return}if(o!==a)if(o0(o)&&o0(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Lr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||WL(t[s]))&&r.push(s);r.length&&JL(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=Lr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];
vendor: 7,843 bytes, line 255
255s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=Lr[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,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function GE(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const QE=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function op(e){return iE(e)&&"offsetHeight"in e}const{schedule:ig,cancel:mU}=vE(queueMicrotask,!1),rn={x:!1,y:!1};function YE(){return rn.x||rn.y}function ZL(e){return e==="x"||e==="y"?rn[e]?null:(rn[e]=!0,()=>{rn[e]=!1}):rn.x||rn.y?null:(rn.x=rn.y=!0,()=>{rn.x=rn.y=!1})}function JE(e,t){const n=GE(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function e4(e){return!(e.pointerType==="touch"||YE())}function t4(e,t,n={}){const[r,s,i]=JE(e,n);return r.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",y)},d=b=>{c&&(c(b),c=void 0),u()},h=b=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(b))},f=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},y=b=>{if(b.pointerType!=="touch"){if(a){l=!0;return}d(b)}},m=b=>{if(!e4(b))return;l=!1;const g=t(o,b);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",y,s))};o.addEventListener("pointerenter",m,s),o.addEventListener("pointerdown",f,s)}),i}const XE=(e,t)=>t?e===t?!0:XE(e,t.parentElement):!1,og=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,n4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function r4(e){return n4.has(e.tagName)||e.isContentEditable===!0}const s4=new Set(["INPUT","SELECT","TEXTAREA"]);function i4(e){return s4.has(e.tagName)||e.isContentEditable===!0}const mc=new WeakSet;function f0(e){return t=>{t.key==="Enter"&&e(t)}}function Qd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const o4=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=f0(()=>{if(mc.has(n))return;Qd(n,"down");const s=f0(()=>{Qd(n,"up")}),i=()=>Qd(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function p0(e){return og(e)&&!YE()}const m0=new WeakSet;function a4(e,t,n={}){const[r,s,i]=JE(e,n),o=a=>{const l=a.currentTarget;if(!p0(a)||m0.has(a))return;mc.add(l),n.stopPropagation&&m0.add(a);const c=t(l,a),u=(f,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),mc.has(l)&&mc.delete(l),p0(f)&&typeof c=="function"&&c(f,{success:y})},d=f=>{u(f,l===window||l===document||n.useGlobalTarget||XE(l,f.target))},h=f=>{u(f,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",h,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),op(a)&&(a.addEventListener("focus",c=>o4(c,s)),!r4(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function ag(e){return iE(e)&&"ownerSVGElement"in e}const gc=new WeakMap;let gr;const ZE=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:ag(r)&&"getBBox"in r?r.getBBox()[t]:r[n],l4=ZE("inline","width","offsetWidth"),c4=ZE("block","height","offsetHeight");function u4({target:e,borderBoxSize:t}){var n;(n=gc.get(e))==null||n.forEach(r=>{r(e,{get width(){return l4(e,t)},get height(){return c4(e,t)}})})}function d4(e){e.forEach(u4)}function h4(){typeof ResizeObserver>"u"||(gr=new ResizeObserver(d4))}function f4(e,t){gr||h4();const n=GE(e);return n.forEach(r=>{let s=gc.get(r);s||(s=new Set,gc.set(r,s)),s.add(t),gr==null||gr.observe(r)}),()=>{n.forEach(r=>{const s=gc.get(r);s==null||s.delete(t),s!=null&&s.size||gr==null||gr.unobserve(r)})}}const yc=new Set;let Pi;function p4(){Pi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};yc.forEach(t=>t(e))},window.addEventListener("resize",Pi)}function m4(e){return yc.add(e),Pi||p4(),()=>{yc.delete(e),!yc.size&&typeof Pi=="function"&&(window.removeEventListener("resize",Pi),Pi=void 0)}}function g0(e,t){return typeof e=="function"?m4(e):f4(e,t)}function g4(e){return ag(e)&&e.tagName==="svg"}const y4=[...HE,Ie,Zr],v4=e=>y4.find(WE(e)),y0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ri=()=>({x:y0(),y:y0()}),v0=()=>({min:0,max:0}),Le=()=>({x:v0(),y:v0()}),ap={current:null},e_={current:!1},w4=typeof window<"u";function x4(){if(e_.current=!0,!!w4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ap.current=e.matches;e.addEventListener("change",t),t()}else ap.current=!1}const b4=new WeakMap;function zu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ha(e){return typeof e=="string"||Array.isArray(e)}const lg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cg=["initial",...lg];function Wu(e){return zu(e.animate)||cg.some(t=>Ha(e[t]))}function t_(e){return!!(Wu(e)||e.variants)}function S4(e,t,n){for(const r in t){const s=t[r],i=n[r];if(ot(s))e.addValue(r,s);else if(ot(i))e.addValue(r,ho(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,ho(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const w0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ou={};function n_(e){ou=e}function E4(){return ou}class _4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,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=Zm,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 f=ht.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,de.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Wu(n),this.isVariantNode=t_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const y=h[f];c[f]!==void 0&&ot(y)&&y.set(c[f])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,b4.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.forEac
vendor: 31,990 bytes, line 255
255h((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(e_.current||x4(),this.shouldReduceMotion=ap.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(),Xr(this.notifyUpdate),Xr(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){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Po.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&de.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ou){const n=ou[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Le()}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<w0.length;r++){const s=w0[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=S4(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=ho(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"&&(sE(r)||oE(r))?r=parseFloat(r):!v4(r)&&Zr.test(n)&&(r=qE(t,n)),this.setBaseTarget(t,ot(r)?r.get():r)),ot(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=ng(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ot(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ig.render(this.render)}}class r_ extends _4{constructor(){super(...arguments),this.KeyframeResolver=XL}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;ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ss{constructor(t){this.isMounted=!1,this.node=t}update(){}}function s_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function k4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function C4(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 Yd(e){return e===void 0||e===1}function lp({scale:e,scaleX:t,scaleY:n}){return!Yd(e)||!Yd(t)||!Yd(n)}function ps(e){return lp(e)||i_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function i_(e){return x0(e.x)||x0(e.y)}function x0(e){return e&&e!=="0%"}function au(e,t,n){const r=e-n,s=t*r;return n+s}function b0(e,t,n,r,s){return s!==void 0&&(e=au(e,s,r)),au(e,n,r)+t}function cp(e,t=0,n=1,r,s){e.min=b0(e.min,t,n,r,s),e.max=b0(e.max,t,n,r,s)}function o_(e,{x:t,y:n}){cp(e.x,t.translate,t.scale,t.originPoint),cp(e.y,n.translate,n.scale,n.originPoint)}const S0=.999999999999,E0=1.0000000000001;function T4(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ji(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,o_(e,o)),r&&ps(i.latestValues)&&ji(e,i.latestValues))}t.x<E0&&t.x>S0&&(t.x=1),t.y<E0&&t.y>S0&&(t.y=1)}function Ai(e,t){e.min=e.min+t,e.max=e.max+t}function _0(e,t,n,r,s=.5){const i=Se(e.min,e.max,s);cp(e,t,n,i,r)}function ji(e,t){_0(e.x,t.x,t.scaleX,t.scale,t.originX),_0(e.y,t.y,t.scaleY,t.scale,t.originY)}function a_(e,t){return s_(C4(e.getBoundingClientRect(),t))}function P4(e,t,n){const r=a_(e,n),{scroll:s}=t;return s&&(Ai(r.x,s.offset.x),Ai(r.y,s.offset.y)),r}const R4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},A4=To.length;function j4(e,t,n){let r="",s=!0;for(let i=0;i<A4;i++){const o=To[i],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const c=parseFloat(a);l=o.startsWith("scale")?c===1:c===0}if(!l||n){const c=QE(a,sg[o]);if(!l){s=!1;const u=R4[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function ug(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(Po.has(l)){o=!0;continue}else if(xE(l)){s[l]=c;continue}else{const u=QE(c,sg[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=j4(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function l_(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function k0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;const n=k0(e,t.target.x),r=k0(e,t.target.y);return`${n}% ${r}%`}},N4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Zr.parse(e);if(s.length>5)return r;const i=Zr.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=Se(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},up={borderRadius:{...Vo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vo,borderTopRightRadius:Vo,borderBottomLeftRadius:Vo,borderBottomRightRadius:Vo,boxShadow:N4};function c_(e,{layout:t,layoutId:n}){return Po.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!up[e]||e==="opacity")}function dg(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(ot(r[a])||s&&ot(s[a])||c_(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function O4(e){return window.getComputedStyle(e)}class I4 extends r_{constructor(){super(...arguments),this.type="html",this.renderInstance=l_}readValueFromInstance(t,n){var r;if(Po.has(n))return(r=this.projection)!=null&&r.isProjecting?Yf(n):XM(t,n);{const s=O4(t),i=(xE(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return a_(t,n)}build(t,n,r){ug(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return dg(t,n,r)}}const D4={offset:"stroke-dashoffset",array:"stroke-dasharray"},M4={offset:"strokeDashoffset",array:"strokeDasharray"};function L4(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?D4:M4;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const $4=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function u_(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(ug(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const f of $4)d[f]!==void 0&&(h[f]=d[f],delete d[f]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&L4(d,s,i,o,!1)}const d_=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"]),h_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function F4(e,t,n,r){l_(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(d_.has(s)?s:rg(s),t.attrs[s])}function f_(e,t,n){const r=dg(e,t,n);for(const s in e)if(ot(e[s])||ot(t[s])){const i=To.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class U4 extends r_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Po.has(n)){const r=KE(n);return r&&r.default||0}return n=d_.has(n)?n:rg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return f_(t,n,r)}build(t,n,r){u_(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){F4(t,n,r,s)}mount(t){this.isSVGTag=h_(t.tagName),super.mount(t)}}const B4=cg.length;function p_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?p_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<B4;n++){const r=cg[n],s=e.props[r];(Ha(s)||s===!1)&&(t[r]=s)}return t}function m_(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 V4=[...lg].reverse(),z4=lg.length;function W4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>VL(e,n,r)))}function H4(e){let t=W4(e),n=C0(),r=!0;const s=l=>(c,u)=>{var h;const d=Bi(e,u,l==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:f,transitionEnd:y,...m}=d;c={...c,...m,...y}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=p_(e.parent)||{},d=[],h=new Set;let f={},y=1/0;for(let b=0;b<z4;b++){const g=V4[b],v=n[g],w=c[g]!==void 0?c[g]:u[g],S=Ha(w),E=g===l?v.isActive:null;E===!1&&(y=b);let _=w===u[g]&&w!==c[g]&&S;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),v.protectedKeys={...f},!v.isActive&&E===null||!w&&!v.prevProp||zu(w)||typeof w=="boolean")continue;const C=K4(v.prevProp,w);let T=C||g===l&&v.isActive&&!_&&S||b>y&&S,R=!1;const j=Array.isArray(w)?w:[w];let U=j.reduce(s(g),{});E===!1&&(U={});const{prevResolvedValues:I={}}=v,q={...I,...U},D=B=>{T=!0,h.has(B)&&(R=!0,h.delete(B)),v.needsAnimating[B]=!0;const P=e.getValue(B);P&&(P.liveStyle=!1)};for(const B in q){const P=U[B],A=I[B];if(f.hasOwnProperty(B))continue;let M=!1;np(P)&&np(A)?M=!m_(P,A):M=P!==A,M?P!=null?D(B):h.add(B):P!==void 0&&h.has(B)?D(B):v.protectedKeys[B]=!0}v.prevProp=w,v.prevResolvedValues=U,v.isActive&&(f={...f,...U}),r&&e.blockInitialAnimation&&(T=!1);const Z=_&&C;T&&(!Z||R)&&d.push(...j.map(B=>{const P={type:g};if(typeof B=="string"&&r&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:A}=e,M=Bi(A,B);if(A.enteringChildren&&M){const{delayChildren:Q}=M.transition||{};P.delay=LE(A.enteringChildren,e,Q)}}return{animation:B,options:P}}))}if(h.size){const b={};if(typeof c.initial!="boolean"){const g=Bi(e,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(b.transition=g.transition)}h.forEach(g=>{const v=e.getBaseTarget(g),w=e.getValue(g);w&&(w.liveStyle=!0),b[g]=v??null}),d.push({animation:b})}let m=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var f;return(f=h.animationState)==null?void 0:f.setActive(l,c)}),n[l].isActive=c;const u=o(l);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=C0()}}}function K4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!m_(t,e):!1}function us(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function C0(){return{animate:us(!0),whileInView:us(),whileHover:us(),whileTap:us(),whileDrag:us(),whileFocus:us(),exit:us()}}function T0(e,t){e.min=t.min,e.max=t.max}function tn(e,t){T0(e.x,t.x),T0(e.y,t.y)}function P0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const g_=1e-4,q4=1-g_,G4=1+g_,y_=.01,Q4=0-y_,Y4=0+y_;function ft(e){return e.max-e.min}function J4(e,t,n){return Math.abs(e-t)<=n}function R0(e,t,n,r=.5){e.origin=r,e.originPoint=Se(t.min,t.max,e.origin),e.scale=ft(n)/ft(t),e.translate=Se(n.min,n.max,e.origin)-e.originPoint,(e.scale>=q4&&e.scale<=G4||isNaN(e.scale))&&(e.scale=1),(e.translate>=Q4&&e.translate<=Y4||isNaN(e.translate))&&(e.translate=0)}function ua(e,t,n,r){R0(e.x,t.x,n.x,r?r.originX:void 0),R0(e.y,t.y,n.y,r?r.originY:void 0)}function A0(e,t,n){e.min=n.min+t.min,e.max=e.min+ft(t)}function X4(e,t,n){A0(e.x,t.x,n.x),A0(e.y,t.y,n.y)}function j0(e,t,n){e.min=t.min-n.min,e.max=e.min+ft(t)}function lu(e,t,n){j0(e.x,t.x,n.x),j0(e.y,t.y,n.y)}function N0(e,t,n,r,s){return e-=t,e=au(e,1/n,r),s!==void 0&&(e=au(e,1/s,r)),e}function Z4(e,t=0,n=1,r=.5,s,i=e,o=e){if(Nn.test(t)&&(t=parseFloat(t),t=Se(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Se(i.min,i.max,r);e===i&&(a-=t),e.min=N0(e.min,t,n,a,s),e.max=N0(e.max,t,n,a,s)}function O0(e,t,[n,r,s],i,o){Z4(e,t[n],t[r],t[s],t.scale,i,o)}const e3=["x","scaleX","originX"],t3=["y","scaleY","originY"];function I0(e,t,n,r){O0(e.x,t,e3,n?n.x:void 0,r?r.x:void 0),O0(e.y,t,t3,n?n.y:void 0,r?r.y:void 0)}function D0(e){return e.translate===0&&e.scale===1}function v_(e){return D0(e.x)&&D0(e.y)}function M0(e,t){return e.min===t.min&&e.max===t.max}function n3(e,t){return M0(e.x,t.x)&&M0(e.y,t.y)}function L0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function w_(e,t){return L0(e.x,t.x)&&L0(e.y,t.y)}function $0(e){return ft(e.x)/ft(e.y)}function F0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Sn(e){return[e("x"),e("y")]}function r3(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:f,skewY:y}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),f&&(r+=`skewX(${f}deg) `),y&&(r+=`skewY(${y}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 x_=["TopLeft","TopRight","BottomLeft","BottomRight"],s3=x_.length,U0=e=>typeof e=="string"?parseFloat(e):e,B0=e=>typeof e=="number"||F.test(e);function i3(e,t,n,r,s,i){s?(e.opacity=Se(0,n.opacity??1,o3(r)),e.opacityExit=Se(t.opacity??1,0,a3(r))):i&&(e.opacity=Se(t.opacity??1,n.opacity??1,r));for(let o=0;o<s3;o++){const a=`border${x_[o]}Radius`;let l=V0(t,a),c=V0(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||B0(l)===B0(c)?(e[a]=Math.max(Se(U0(l),U0(c),r),0),(Nn.test(c)||Nn.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=Se(t.rotate||0,n.rotate||0,r))}function V0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const o3=b_(0,.5,pE),a3=b_(.5,.95,Kt);function b_(e,t,n){return r=>r<e?0:r>t?1:n(Va(e,t,r))}function l3(e,t,n){const r=ot(e)?e:ho(e);return r.start(tg("",r,t,n)),r.animation}function Ka(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const c3=(e,t)=>e.depth-t.depth;class u3{constructor(){this.children=[],this.isDirty=!1}add(t){Fm(this.children,t),this.isDirty=!0}remove(t){Um(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(c3),this.isDirty=!1,this.children.forEach(t)}}function d3(e,t){const n=ht.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Xr(r),e(i-t))};return de.setup(r,!0),()=>Xr(r)}function vc(e){return ot(e)?e.get():e}class h3{constructor(){this.members=[]}add(t){Fm(this.members,t),t.scheduleRender()}remove(t){if(Um(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const s=r.options.layoutDependency,i=t.options.layoutDependency;s!==void 0&&i!==void 0&&s===i||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const wc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Jd=["","X","Y","Z"],f3=1e3;let p3=0;function Xd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function S_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=VE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",de,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&S_(r)}function E_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=p3++,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(y3),this.nodes.forEach(b3),this.nodes.forEach(S3),this.nodes.forEach(v3)},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 u3)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Vm),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=ag(o)&&!g4(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;de.read(()=>{d=window.innerWidth}),e(o,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,u&&u(),u=d3(h,250),wc.hasAnimatedSinceResize&&(wc.hasAnimatedSinceResize=!1,this.nodes.forEach(H0)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||T3,{onLayoutAnimationStart:m,onLayoutAnimationComplete:b}=c.getProps(),g=!this.targetLayout||!w_(this.targetLayout,f),v=!d&&h;if(this.options.layoutRoot||this.resumeFrom||v||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...eg(y,"layout"),onPlay:m,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,v)}else d||H0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}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(),Xr(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(E3),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&&S_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(z0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(W0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(x3),this.nodes.forEach(m3),this.nodes.forEach(g3)):this.nodes.forEach(W0),this.clearAllSnapshots();const a=ht.now();Qe.delta=Dn(0,1e3/60,a-Qe.timestamp),Qe.timestamp=a,Qe.isProcessing=!0,zd.update.process(Qe),zd.preRender.process(Qe),zd.render.process(Qe),Qe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ig.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(w3),this.sharedNodes.forEach(_3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,de.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){de.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ft(this.snapshot.measuredBox.x)&&!ft(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=Le(),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(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!v_(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||ps(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),P3(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Le();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(R3))){const{scroll:u}=this.root;u&&(Ai(a.x,u.offset.x),Ai(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=Le();if(tn(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&tn(a,o),Ai(a.x,d.offset.x),Ai(a.y,d.offset.y))}return a}applyTransform(o,a=!1){const l=Le();tn(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ji(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ps(u.latestValues)&&ji(l,u.latestValues)}return ps(this.latestValues)&&ji(l,this.latestValues),l}removeTransform(o){const a=Le();tn(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ps(c.latestValues))continue;lp(c.latestValues)&&c.updateSnapshot();const u=Le(),d=c.measurePageBox();tn(u,d),I0(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ps(this.latestValues)&&I0(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!==Qe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;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||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=Qe.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Le(),this.targetWithTransforms=Le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),X4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tn(this.target,this.layout.layoutBox),o_(this.target,this.targetDelta)):tn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||lp(this.parent.latestValues)||i_(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=Le(),this.relativeTargetOrigin=Le(),lu(this.relativeTargetOrigin,a,l),tn(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,271 bytes, line 255
255(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Qe.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;tn(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;T4(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=Le());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(P0(this.prevProjectionDelta.x,this.projectionDelta.x),P0(this.prevProjectionDelta.y,this.projectionDelta.y)),ua(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!F0(this.projectionDelta.x,this.prevProjectionDelta.x)||!F0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}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=Ri(),this.projectionDelta=Ri(),this.projectionDeltaWithTransform=Ri()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Ri();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Le(),f=l?l.source:void 0,y=this.layout?this.layout.source:void 0,m=f!==y,b=this.getStack(),g=!b||b.members.length<=1,v=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(C3));this.animationProgress=0;let w;this.mixTargetDelta=S=>{const E=S/1e3;K0(d.x,o.x,E),K0(d.y,o.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lu(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),k3(this.relativeTarget,this.relativeTargetOrigin,h,E),w&&n3(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Le()),tn(w,this.relativeTarget)),m&&(this.animationValues=u,i3(u,c,this.latestValues,E,v,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Xr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=de.update(()=>{wc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ho(0)),this.currentAnimation=l3(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(f3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&__(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Le();const d=ft(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=ft(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}tn(a,l),ji(a,u),ua(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new h3),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.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: 15,847 bytes, lines 255-263
255resetSkewAndRotation(){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 c={};l.z&&Xd("z",o,c,this.animationValues);for(let u=0;u<Jd.length;u++)Xd(`rotate${Jd[u]}`,o,c,this.animationValues),Xd(`skew${Jd[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);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=vc(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=vc(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ps(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=r3(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:h,y:f}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in up){if(u[y]===void 0)continue;const{correct:m,applyTo:b,isCSSVariable:g}=up[y],v=d==="none"?u[y]:m(u[y],c);if(b){const w=b.length;for(let S=0;S<w;S++)o[b[S]]=v}else g?this.options.visualElement.renderState.vars[y]=v:o[y]=v}this.options.layoutId&&(o.pointerEvents=c===this?vc(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(z0),this.root.sharedNodes.clear()}}}function m3(e){e.updateLayout()}function g3(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:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?Sn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=ft(h);h.min=r[d].min,h.max=h.min+f}):__(i,t.layoutBox,r)&&Sn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=ft(r[d]);h.max=h.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const a=Ri();ua(a,r,t.layoutBox);const l=Ri();o?ua(l,e.applyTransform(s,!0),t.measuredBox):ua(l,r,t.layoutBox);const c=!v_(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const y=Le();lu(y,t.layoutBox,h.layoutBox);const m=Le();lu(m,r,f.layoutBox),w_(y,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function y3(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 v3(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function w3(e){e.clearSnapshot()}function z0(e){e.clearMeasurements()}function W0(e){e.isLayoutDirty=!1}function x3(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function H0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function b3(e){e.resolveTargetDelta()}function S3(e){e.calcProjection()}function E3(e){e.resetSkewAndRotation()}function _3(e){e.removeLeadSnapshot()}function K0(e,t,n){e.translate=Se(t.translate,0,n),e.scale=Se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function q0(e,t,n,r){e.min=Se(t.min,n.min,r),e.max=Se(t.max,n.max,r)}function k3(e,t,n,r){q0(e.x,t.x,n.x,r),q0(e.y,t.y,n.y,r)}function C3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const T3={duration:.45,ease:[.4,0,.1,1]},G0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Q0=G0("applewebkit/")&&!G0("chrome/")?Math.round:Kt;function Y0(e){e.min=Q0(e.min),e.max=Q0(e.max)}function P3(e){Y0(e.x),Y0(e.y)}function __(e,t,n){return e==="position"||e==="preserve-aspect"&&!J4($0(t),$0(n),.2)}function R3(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const A3=E_({attachResizeListener:(e,t)=>Ka(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}),Zd={current:void 0},k_=E_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zd.current){const e=new A3({});e.mount(window),e.setOptions({layoutScroll:!0}),Zd.current=e}return Zd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hg=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function J0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function j3(...e){return t=>{let n=!1;const r=e.map(s=>{const i=J0(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():J0(e[s],null)}}}}function N3(...e){return x.useCallback(j3(...e),e)}class O3 extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=op(r)&&r.offsetWidth||0,i=op(r)&&r.offsetHeight||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=s-o.width-o.left,o.bottom=i-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function I3({children:e,isPresent:t,anchorX:n,anchorY:r,root:s,pop:i}){var h;const o=x.useId(),a=x.useRef(null),l=x.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=x.useContext(hg),u=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),d=N3(a,u);return x.useInsertionEffect(()=>{const{width:f,height:y,top:m,left:b,right:g,bottom:v}=l.current;if(t||i===!1||!a.current||!f||!y)return;const w=n==="left"?`left: ${b}`:`right: ${g}`,S=r==="bottom"?`bottom: ${v}`:`top: ${m}`;a.current.dataset.motionPopId=o;const E=document.createElement("style");c&&(E.nonce=c);const _=s??document.head;return _.appendChild(E),E.sheet&&E.sheet.insertRule(`
256          [data-motion-pop-id="${o}"] {
257            position: absolute !important;
258            width: ${f}px !important;
259            height: ${y}px !important;
260            ${w}px !important;
261            ${S}px !important;
262          }
263        `),()=>{_.contains(E)&&_.removeChild(E)}},[t]),p.jsx(O3,{isPresent:t,childRef:a,sizeRef:l,pop:i,children:i===!1?e:x.cloneElement(e,{ref:d})})}const D3=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:l,root:c})=>{const u=$m(M3),d=x.useId();let h=!0,f=x.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:s,onExitComplete:y=>{u.set(y,!0);for(const m of u.values())if(!m)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return i&&h&&(f={...f}),x.useMemo(()=>{u.forEach((y,m)=>u.set(m,!1))},[n]),x.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=p.jsx(I3,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),p.jsx(Bu.Provider,{value:f,children:e})};function M3(){return new Map}function C_(e=!0){const t=x.useContext(Bu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=x.useId();x.useEffect(()=>{if(e)return s(i)},[e]);const o=x.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const Kl=e=>e.key||"";function X0(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const T_=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=C_(o),h=x.useMemo(()=>X0(e),[e]),f=o&&!u?[]:h.map(Kl),y=x.useRef(!0),m=x.useRef(h),b=$m(()=>new Map),g=x.useRef(new Set),[v,w]=x.useState(h),[S,E]=x.useState(h);rE(()=>{y.current=!1,m.current=h;for(let T=0;T<S.length;T++){const R=Kl(S[T]);f.includes(R)?(b.delete(R),g.current.delete(R)):b.get(R)!==!0&&b.set(R,!1)}},[S,f.length,f.join("-")]);const _=[];if(h!==v){let T=[...h];for(let R=0;R<S.length;R++){const j=S[R],U=Kl(j);f.includes(U)||(T.splice(R,0,j),_.push(j))}return i==="wait"&&_.length&&(T=_),E(X0(T)),w(h),null}const{forceRender:C}=x.useContext(Lm);return p.jsx(p.Fragment,{children:S.map(T=>{const R=Kl(T),j=o&&!u?!1:h===S||f.includes(R),U=()=>{if(g.current.has(R))return;if(g.current.add(R),b.has(R))b.set(R,!0);else return;let I=!0;b.forEach(q=>{q||(I=!1)}),I&&(C==null||C(),E(m.current),o&&(d==null||d()),r&&r())};return p.jsx(D3,{isPresent:j,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:j?void 0:U,anchorX:a,anchorY:l,children:T},R)})})},P_=x.createContext({strict:!1}),Z0={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 ew=!1;function L3(){if(ew)return;const e={};for(const t in Z0)e[t]={isEnabled:n=>Z0[t].some(r=>!!n[r])};n_(e),ew=!0}function R_(){return L3(),E4()}function $3(e){const t=R_();for(const n in e)t[n]={...t[n],...e[n]};n_(t)}const F3=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 cu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||F3.has(e)}let A_=e=>!cu(e);function U3(e){typeof e=="function"&&(A_=t=>t.startsWith("on")?!cu(t):e(t))}try{U3(require("@emotion/is-prop-valid").default)}catch{}function B3(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(A_(s)||n===!0&&cu(s)||!t&&!cu(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Hu=x.createContext({});function V3(e,t){if(Wu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ha(n)?n:void 0,animate:Ha(r)?r:void 0}}return e.inherit!==!1?t:{}}function z3(e){const{initial:t,animate:n}=V3(e,x.useContext(Hu));return x.useMemo(()=>({initial:t,animate:n}),[tw(t),tw(n)])}function tw(e){return Array.isArray(e)?e.join(" "):e}const fg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function j_(e,t,n){for(const r in t)!ot(t[r])&&!c_(r,n)&&(e[r]=t[r])}function W3({transformTemplate:e},t){return x.useMemo(()=>{const n=fg();return ug(n,t,e),Object.assign({},n.vars,n.style)},[t])}function H3(e,t){const n=e.style||{},r={};return j_(r,n,e),Object.assign(r,W3(e,t)),r}function K3(e,t){const n={},r=H3(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 N_=()=>({...fg(),attrs:{}});function q3(e,t,n,r){const s=x.useMemo(()=>{const i=N_();return u_(i,t,h_(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};j_(i,e.style,e),s.style={...i,...s.style}}return s}const G3=["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 pg(e){return typeof e!="string"||e.includes("-")?!1:!!(G3.indexOf(e)>-1||/[A-Z]/u.test(e))}function Q3(e,t,n,{latestValues:r},s,i=!1,o){const l=(o??pg(e)?q3:K3)(t,r,s,e),c=B3(t,typeof e=="string",i),u=e!==x.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=x.useMemo(()=>ot(d)?d.get():d,[d]);return x.createElement(e,{...u,children:h})}function Y3({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:J3(n,r,s,e),renderState:t()}}function J3(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=vc(i[h]);let{initial:o,animate:a}=e;const l=Wu(e),c=t_(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!zu(d)){const h=Array.isArray(d)?d:[d];for(let f=0;f<h.length;f++){const y=ng(e,h[f]);if(y){const{transitionEnd:m,transition:b,...g}=y;for(const v in g){let w=g[v];if(Array.isArray(w)){const S=u?w.length-1:0;w=w[S]}w!==null&&(s[v]=w)}for(const v in m)s[v]=m[v]}}}return s}const O_=e=>(t,n)=>{const r=x.useContext(Hu),s=x.useContext(Bu),i=()=>Y3(e,t,r,s);return n?i():$m(i)},X3=O_({scrapeMotionValuesFromProps:dg,createRenderState:fg}),Z3=O_({scrapeMotionValuesFromProps:f_,createRenderState:N_}),e5=Symbol.for("motionComponentSymbol");function t5(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const s=x.useRef(null);return x.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const l=o(i);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const I_=x.createContext({});function fi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function n5(e,t,n,r,s,i){var w,S;const{visualElement:o}=x.useContext(Hu),a=x.useContext(P_),l=x.useContext(Bu),c=x.useContext(hg),u=c.reducedMotion,d=c.skipAnimations,h=x.useRef(null),f=x.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,m=x.useContext(I_);y&&!y.projection&&s&&(y.type==="html"||y.type==="svg")&&r5(h.current,n,s,m);const b=x.useRef(!1);x.useInsertionEffect(()=>{y&&b.current&&y.update(n,l)});const g=n[BE],v=x.useRef(!!g&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,g))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,g)));return rE(()=>{f.current=!0,y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),v.current&&y.animationState&&y.animationState.animateChanges())}),x.useEffect(()=>{y&&(!v.current&&y.animationState&&y.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,g)}
vendor: 19,300 bytes, line 263
263),v.current=!1),y.enteringChildren=void 0)}),y}function r5(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:D_(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&fi(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function D_(e){if(e)return e.options.allowProjection!==!1?e.projection:D_(e.parent)}function eh(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&$3(r);const i=n?n==="svg":pg(e),o=i?Z3:X3;function a(c,u){let d;const h={...x.useContext(hg),...c,layoutId:s5(c)},{isStatic:f}=h,y=z3(c),m=o(c,f);if(!f&&nE){i5();const b=o5(h);d=b.MeasureLayout,y.visualElement=n5(e,m,h,s,b.ProjectionNode,i)}return p.jsxs(Hu.Provider,{value:y,children:[d&&y.visualElement?p.jsx(d,{visualElement:y.visualElement,...h}):null,Q3(e,c,t5(m,y.visualElement,u),m,f,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=x.forwardRef(a);return l[e5]=e,l}function s5({layoutId:e}){const t=x.useContext(Lm).id;return t&&e!==void 0?t+"-"+e:e}function i5(e,t){x.useContext(P_).strict}function o5(e){const t=R_(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function a5(e,t){if(typeof Proxy>"u")return eh;const n=new Map,r=(i,o)=>eh(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,eh(o,void 0,e,t)),n.get(o))})}const l5=(e,t)=>t.isSVG??pg(e)?new U4(t):new I4(t,{allowProjection:e!==x.Fragment});class c5 extends ss{constructor(t){super(t),t.animationState||(t.animationState=H4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zu(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 u5=0;class d5 extends ss{constructor(){super(...arguments),this.id=u5++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const h5={animation:{Feature:c5},exit:{Feature:d5}};function ul(e){return{point:{x:e.pageX,y:e.pageY}}}const f5=e=>t=>og(t)&&e(t,ul(t));function da(e,t,n,r){return Ka(e,t,f5(n),r)}const M_=({current:e})=>e?e.ownerDocument.defaultView:null,nw=(e,t)=>Math.abs(e-t);function p5(e,t){const n=nw(e.x,t.x),r=nw(e.y,t.y);return Math.sqrt(n**2+r**2)}const rw=new Set(["auto","scroll"]);class L_{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=nh(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,m=p5(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!m)return;const{point:b}=f,{timestamp:g}=Qe;this.history.push({...b,timestamp:g});const{onStart:v,onMove:w}=this.handlers;y||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,f)},this.handlePointerMove=(f,y)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=th(y,this.transformPagePoint),de.update(this.updatePoint,!0)},this.handlePointerUp=(f,y)=>{this.end();const{onEnd:m,onSessionEnd:b,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=nh(f.type==="pointercancel"?this.lastMoveEventInfo:th(y,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),b&&b(f,v)},!og(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=ul(t),c=th(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Qe;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,nh(c,this.history)),this.removeListeners=al(da(this.contextWindow,"pointermove",this.handlePointerMove),da(this.contextWindow,"pointerup",this.handlePointerUp),da(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(rw.has(r.overflowX)||rw.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),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,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),de.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Xr(this.updatePoint)}}function th(e,t){return t?{point:t(e.point)}:e}function sw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nh({point:e},t){return{point:e,delta:sw(e,$_(t)),offset:sw(e,m5(t)),velocity:g5(t,.1)}}function m5(e){return e[0]}function $_(e){return e[e.length-1]}function g5(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=$_(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>mn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>mn(t)*2&&(r=e[1]);const i=Wt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function y5(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Se(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Se(n,e,r.max):Math.min(e,n)),e}function iw(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 v5(e,{top:t,left:n,bottom:r,right:s}){return{x:iw(e.x,n,s),y:iw(e.y,t,r)}}function ow(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 w5(e,t){return{x:ow(e.x,t.x),y:ow(e.y,t.y)}}function x5(e,t){let n=.5;const r=ft(e),s=ft(t);return s>r?n=Va(t.min,t.max-r,e.min):r>s&&(n=Va(e.min,e.max-s,t.min)),Dn(0,1,n)}function b5(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 dp=.35;function S5(e=dp){return e===!1?e=0:e===!0&&(e=dp),{x:aw(e,"left","right"),y:aw(e,"top","bottom")}}function aw(e,t,n){return{min:lw(e,t),max:lw(e,n)}}function lw(e,t){return typeof e=="number"?e:e[t]||0}const E5=new WeakMap;class _5{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=Le(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(ul(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:f,dragPropagation:y,onDragStart:m}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ZL(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Sn(g=>{let v=this.getAxisMotionValue(g).get()||0;if(Nn.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[g];S&&(v=ft(S)*(parseFloat(v)/100))}}this.originPoint[g]=v}),m&&de.update(()=>m(d,h),!1,!0),rp(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:m,onDrag:b}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:g}=h;if(y&&this.currentDirection===null){this.currentDirection=C5(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),b&&de.update(()=>b(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new L_(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:M_(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&de.postRender(()=>a(r,s))}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:s}=this.getProps();if(!r||!ql(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=y5(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&fi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=v5(r.layoutBox,t):this.constraints=!1,this.elastic=S5(n),s!==this.constraints&&!fi(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Sn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=b5(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fi(t))return!1;const r=t.current;uo(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=P4(r,s.root,this.visualElement.getTransformPagePoint());let o=w5(s.layout.layoutBox,i);if(n){const a=n(k4(o));this.hasMutatedConstraints=!!a,a&&(o=s_(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Sn(u=>{if(!ql(u,n,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const h=s?200:1e6,f=s?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return rp(this.visualElement,t),r.start(tg(t,r,0,n,this.visualElement,!1))}stopAnimation(){Sn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Sn(n=>{const{drag:r}=this.getProps();if(!ql(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-Se(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fi(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Sn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=x5({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Sn(o=>{if(!ql(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Se(l,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;E5.set(this.visualElement,this);const t=this.visualElement.current,n=da(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=c.target,f=h!==t&&i4(h);u&&d&&!f&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();fi(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=k5(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),de.read(s);const a=Ka(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Sn(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[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:s=!1,dragConstraints:i=!1,dragElastic:o=dp,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function cw(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function k5(e,t,n){const r=g0(e,cw(n)),s=g0(t,cw(n));return()=>{r(),s()}}function ql(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class T5 extends ss{constructor(t){super(t),this.removeGroupControls=Kt,this.removeListeners=Kt,this.controls=new _5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Kt}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 rh=e=>(t,n)=>{e&&de.update(()=>e(t,n),!1,!0)};class P5 extends ss{constructor(){super(...arguments),this.removePointerDownListener=Kt}onPointerDown(t){this.session=new L_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:M_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:rh(t),onStart:rh(n),onMove:rh(r),onEnd:(i,o)=>{delete this.session,s&&de.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=da(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 sh=!1;class R5 extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),sh&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),wc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),sh=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||de.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ig.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;sh=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function F_(e){const[t,n]=C_(),r=x.useContext(Lm);return p.jsx(R5,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(I_),isPresent:t,safeToRemove:n})}const A5={pan:{Feature:P5},drag:{Feature:T5,ProjectionNode:k_,MeasureLayout:F_}};function uw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&de.postRender(()=>i(t,ul(t)))}class j5 extends ss{mount(){const{current:t}=this.node;t&&(this.unmount=t4(t,(n,r)=>(uw(this.node,r,"Start"),s=>uw(this.node,s,"End"))))}unmount(){}}class N5 extends ss{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=al(Ka(this.node.current,"focus",()=>this.onFocus()),Ka(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function dw(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 s="onTap"+(n==="End"?"":n),i=r[s];i&&de.postRender(()=>i(t,ul(t)))}class O5 extends ss{mount(){const{current:t}=this.node;if(!t)return;
263const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=a4(t,(s,i)=>(dw(this.node,i,"Start"),(o,{success:a})=>dw(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const hp=new WeakMap,ih=new WeakMap,I5=e=>{const t=hp.get(e.target);t&&t(e)},D5=e=>{e.forEach(I5)};function M5({root:e,...t}){const n=e||document;ih.has(n)||ih.set(n,{});const r=ih.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(D5,{root:e,...t})),r[s]}function L5(e,t,n){const r=M5(t);return hp.set(e,n),r.observe(e),()=>{hp.delete(e),r.unobserve(e)}}const $5={some:0,all:1};class F5 extends ss{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:$5[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return L5(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(U5(t,n))&&this.startObserver()}unmount(){}}function U5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const B5={inView:{Feature:F5},tap:{Feature:O5},focus:{Feature:N5},hover:{Feature:j5}},V5={layout:{ProjectionNode:k_,MeasureLayout:F_}},z5={...h5,...B5,...A5,...V5},Re=a5(z5,l5),U_="/assets/logo-dark-D-LZPSM8.png",B_="/assets/logo-light-D_qNMuD3.png",hw=[{path:"/",label:"Home"},{path:"/about",label:"About"},{path:"/tools",label:"Tools"},{path:"/partners",label:"Partners"},{path:"/blog",label:"Blog"},{path:"/contact",label:"Contact"},{path:"/support",label:"Donate & Support"}],W5=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!1),{theme:s,setTheme:i}=LS(),o=qs();return x.useEffect(()=>{const a=()=>r(window.scrollY>20);return window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)},[]),x.useEffect(()=>{t(!1)},[o.pathname]),p.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${n?"bg-background/80 backdrop-blur-xl border-b border-border shadow-lg":"bg-transparent"}`,children:[p.jsxs("nav",{className:"container mx-auto px-4 h-16 flex items-center justify-between",children:[p.jsx(hn,{to:"/",className:"flex items-center","aria-label":"Rum Bot Home",children:p.jsx("img",{src:s==="dark"?U_:B_,alt:"Rum Bot",className:"h-10 w-auto object-contain"})}),p.jsx("div",{className:"hidden md:flex items-center gap-8",children:hw.map(a=>p.jsx(hn,{to:a.path,className:`text-sm font-semibold uppercase tracking-wider transition-colors hover:text-primary ${o.pathname===a.path?"text-primary":"text-foreground/70"}`,children:a.label},a.path))}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("button",{onClick:()=>i(s==="dark"?"light":"dark"),className:"p-2 rounded-lg hover:bg-secondary transition-colors","aria-label":"Toggle theme",children:s==="dark"?p.jsx(jR,{className:"h-5 w-5"}):p.jsx(_R,{className:"h-5 w-5"})}),p.jsx("button",{onClick:()=>t(!e),className:"md:hidden p-2 rounded-lg hover:bg-secondary transition-colors","aria-label":"Toggle menu",children:e?p.jsx(pm,{className:"h-5 w-5"}):p.jsx(ER,{className:"h-5 w-5"})})]})]}),p.jsx(T_,{children:e&&p.jsx(Re.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"md:hidden bg-background/95 backdrop-blur-xl border-b border-border overflow-hidden",children:p.jsx("div",{className:"container mx-auto px-4 py-4 flex flex-col gap-1",children:hw.map(a=>p.jsx(hn,{to:a.path,className:`text-sm font-semibold uppercase tracking-wider py-3 px-3 rounded-lg transition-colors hover:bg-secondary hover:text-primary ${o.pathname===a.path?"text-primary bg-secondary":"text-foreground/70"}`,children:a.label},a.path))})})})]})},H5=()=>{const{theme:e}=LS();return p.jsx("footer",{className:"bg-card border-t border-border",children:p.jsxs("div",{className:"container mx-auto px-4 py-16",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-10",children:[p.jsxs("div",{className:"md:col-span-1",children:[p.jsx("img",{src:e==="dark"?U_:B_,alt:"Rum Bot",className:"h-10 w-auto object-contain mb-4"}),p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"The Future of Streaming Today. Powerful tools and partnerships for content creators, brands, and game developers."})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-display text-lg mb-4 uppercase",children:"Navigation"}),p.jsx("ul",{className:"space-y-3",children:[{to:"/",label:"Home"},{to:"/about",label:"About"},{to:"/tools",label:"Tools"},{to:"/partners",label:"Partners"},{to:"/blog",label:"Blog"},{to:"/contact",label:"Contact"},{to:"/support",label:"Donate & Support"}].map(t=>p.jsx("li",{children:p.jsx(hn,{to:t.to,className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:t.label})},t.to))})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-display text-lg mb-4 uppercase",children:"Services"}),p.jsx("ul",{className:"space-y-3",children:["RUM Bot Hub","RUM Bot Connect","RUM Bot Music","RUM Bot Sync"].map(t=>p.jsx("li",{children:p.jsx(hn,{to:"/tools",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:t})},t))})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-display text-lg mb-4 uppercase",children:"Connect"}),p.jsxs("ul",{className:"space-y-3",children:[p.jsx("li",{children:p.jsx(hn,{to:"/contact",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"Contact Us"})}),p.jsx("li",{children:p.jsx("a",{href:"https://bit.ly/4tKWGLs",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"Discord"})}),p.jsx("li",{children:p.jsx("a",{href:"https://bit.ly/4kFTTyU",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"X (Twitter)"})}),p.jsx("li",{children:p.jsx("a",{href:"https://bit.ly/4azTF7B",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"TikTok"})}),p.jsx("li",{children:p.jsx("a",{href:"https://bit.ly/4azK1St",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"Rumble"})})]})]})]}),p.jsxs("div",{className:"mt-12 pt-8 border-t border-border flex flex-col md:flex-row items-center justify-between gap-4",children:[p.jsxs("p",{className:"text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," Rum Bot. All rights reserved."]}),p.jsx(hn,{to:"/",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"Rum Bot"})]})]})})},qt=({children:e})=>p.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[p.jsx(W5,{}),p.jsx("main",{className:"flex-1",children:e}),p.jsx(H5,{})]}),ze=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:ge("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
263ze.displayName="Card";const mg=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:ge("flex flex-col space-y-1.5 p-6",e),...t}));mg.displayName="CardHeader";const gg=x.forwardRef(({className:e,...t},n)=>p.jsx("h3",{ref:n,className:ge("text-2xl font-semibold leading-none tracking-tight",e),...t}));gg.displayName="CardTitle";const K5=x.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:ge("text-sm text-muted-foreground",e),...t}));K5.displayName="CardDescription";const We=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:ge("p-6 pt-0",e),...t}));We.displayName="CardContent";const q5=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:ge("flex items-center p-6 pt-0",e),...t}));q5.displayName="CardFooter";const G5=ju("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"}}),Ue=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?SP:"button";return p.jsx(o,{className:ge(G5({variant:t,size:n,className:e})),ref:i,...s})});Ue.displayName="Button";const Q5="/assets/vapingamers-De2z38Lv.png",Y5="/assets/goretv-B48gFY1q.png",J5="/assets/globalgamer2015-D-oOTRjV.png",X5="/assets/misterkelley-B0dVzcCW.png",Z5="/assets/thisistheray-CBANGU_s.png",V_="/assets/music-ZR_VP6x0.png",z_="/assets/connect-DfMiStbX.png",W_="/assets/hub-DtYehcrZ.png",e$=[{icon:NR,title:"CREATOR FIRST",description:"Every tool we build starts with the creator in mind. We listen, iterate, and deliver solutions that matter."},{icon:IR,title:"COMMUNITY DRIVEN",description:"Our community shapes our roadmap. We grow together, support each other, and celebrate wins as a team."},{icon:TR,title:"INNOVATION",description:"We push the boundaries of what's possible in streaming tech. If it doesn't exist yet, we build it."},{icon:AR,title:"RELIABILITY",description:"Your stream depends on us. We deliver rock-solid tools that perform when it matters most."}],t$=[{image:V_,title:"RUM Bot Music",description:"Premium music playback for live streams"},{image:z_,title:"RUM Bot Connect",description:"Brands/Developers + Creators engagement tools"},{image:W_,title:"RUM Bot Hub",description:"All-in-one dashboard for creators"}],n$=()=>p.jsxs(qt,{children:[p.jsxs("section",{className:"pt-32 pb-20 relative",children:[p.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,_hsl(var(--primary)/0.1)_0%,_transparent_60%)]"}),p.jsx("div",{className:"container mx-auto px-4 relative z-10",children:p.jsxs(Re.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"text-center max-w-3xl mx-auto",children:[p.jsxs("h1",{className:"text-5xl md:text-7xl mb-6",children:["ABOUT ",p.jsx("span",{className:"text-primary",children:"RUM BOT"})]}),p.jsx("p",{className:"text-lg text-muted-foreground font-body leading-relaxed",children:"Rum Bot is a streaming tools company empowering content creators with copyright free music, chat moderation, custom alerts, and strategic partnerships with brands and game developers."})]})})]}),p.jsx("section",{className:"py-20",children:p.jsx("div",{className:"container mx-auto px-4",children:p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[p.jsxs(Re.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[p.jsxs("h2",{className:"text-4xl md:text-5xl mb-6",children:["OUR ",p.jsx("span",{className:"text-primary",children:"MISSION"})]}),p.jsx("p",{className:"text-muted-foreground font-body leading-relaxed mb-6",children:"Rum Bot was founded to give every content creator — no matter their size — access to professional-grade streaming tools. We believe the future of entertainment is live, interactive, and community-driven."}),p.jsx("p",{className:"text-muted-foreground font-body leading-relaxed mb-8",children:"We connect creators with brands and game developers through strategic partnerships, while providing the tools that make streams stand out. From music playback to chat moderation to custom alerts, Rum Bot is everything a streamer needs under one roof."}),p.jsx(Ue,{asChild:!0,size:"lg",className:"font-semibold glow-primary",children:p.jsxs(hn,{to:"/tools",children:["Get The Tools",p.jsx(_1,{className:"ml-2 h-5 w-5"})]})})]}),p.jsx(Re.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"grid grid-cols-2 gap-4",children:t$.map((e,t)=>p.jsx(ze,{className:"border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-all duration-300",children:p.jsxs(We,{className:"p-6 text-center",children:[p.jsx("img",{src:e.image,alt:e.title,className:"h-8 w-8 object-contain mx-auto mb-3"}),p.jsx("h4",{className:"text-sm font-semibold mb-1 font-body",children:e.title}),p.jsx("p",{className:"text-xs text-muted-foreground font-body",children:e.description})]})}
263,e.title))})]})})}),p.jsx("section",{className:"py-20",children:p.jsxs("div",{className:"container mx-auto px-4",children:[p.jsxs(Re.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[p.jsxs("h2",{className:"text-4xl md:text-5xl mb-4",children:["THE ",p.jsx("span",{className:"text-primary",children:"RUM BOT"})," CREATOR TEAM"]}),p.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto font-body",children:"The passionate people behind the tools that power your streams"})]}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:[{name:"VapinGamers",role:"CEO",initials:"VG",image:Q5,description:"Visionary leader driving Rum Bot's mission to empower creators everywhere.",email:"[email protected]"},{name:"GlobalGamer2015",role:"CTO",initials:"GG",image:J5,description:"Technical architect behind Rum Bot's suite of streaming tools.",email:"[email protected]"},{name:"GoreTV",role:"CCO",initials:"GT",image:Y5,description:"Creative force shaping the brand identity and content strategy.",email:"[email protected]"},{name:"This Is The Ray",role:"CMO",initials:"TR",image:Z5,description:"Marketing strategist growing the Rum Bot community worldwide.",email:"[email protected]"},{name:"MisterKelley",role:"Asst. Lead Developer",initials:"MK",image:X5,description:"Key developer building and refining the tools creators rely on.",email:"[email protected]"}].map((e,t)=>p.jsx(Re.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},children:p.jsx(ze,{className:"h-full border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-all duration-300",children:p.jsxs(We,{className:"p-8 text-center",children:[e.image?p.jsx("img",{src:e.image,alt:e.name,className:"w-20 h-20 rounded-full object-cover mx-auto mb-4 border-2 border-primary/30"}):p.jsx("div",{className:"w-20 h-20 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:p.jsx("span",{className:"text-xl font-bold text-primary",children:e.initials})}),p.jsx("h3",{className:"text-xl mb-1",children:e.name}),p.jsx("p",{className:"text-sm text-primary font-semibold font-body mb-3",children:e.role}),e.email&&p.jsx("p",{style:{color:"#4ade80",fontSize:"11px",margin:"0 0 10px",opacity:"0.85"},children:e.email}),p.jsx("p",{className:"text-sm text-muted-foreground font-body leading-relaxed",children:e.description})]})})},e.name))})]})}),p.jsx("section",{className:"py-20",children:p.jsxs("div",{className:"container mx-auto px-4",children:[p.jsx(Re.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:p.jsxs("h2",{className:"text-4xl md:text-5xl mb-4",children:["OUR ",p.jsx("span",{className:"text-primary",children:"VALUES"})]})}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:e$.map((e,t)=>p.jsx(Re.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},children:p.jsx(ze,{className:"h-full border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-all duration-300",children:p.jsxs(We,{className:"p-8",children:[p.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-5",children:p.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),p.jsx("h3",{className:"text-xl mb-3",children:e.title}),p.jsx("p",{className:"text-sm text-muted-foreground font-body leading-relaxed",children:e.description})]})})},e.title))})]})})]}),r$="/assets/sync-DVOBhaYo.png",s$=[{id:"hub",icon:null,image:W_,title:"RUM Bot Hub",tagline:"Your All-In-One Streaming Dashboard",description:"RUM Bot Hub is the ultimate all-in-one streaming dashboard for content creators. Manage your entire streaming workflow from a single, powerful interface with browser-based stream alerts, interactive games, engagement tools, and Discord bot integration.",features:["Browser-based stream alerts designed for Rumble streaming","Interactive games and viewer engagement tools","Discord bot integration for community management","RUM Bot Connect marketplace access for partnerships","Premium streaming assets marketplace — overlays, alerts, and packages","Complete one-stop solution for channel growth and monetization"],link:"https://bit.ly/4nSdH3G",linkLabel:"Launch Hub",linkIcon:"external"},{id:"connect",icon:null,image:z_,title:"RUM Bot Connect",tagline:"Connect. Collaborate. Grow.",description:"RUM Bot Connect is a creator marketplace built into RUM Bot Hub that c
263onnects streamers with brand partnerships and game developers for sponsorship opportunities. Whether you're a creator looking for deals or a brand looking for exposure, Connect bridges the gap.",features:["Creator marketplace connecting streamers with brands","Game developer partnerships and sponsorship opportunities","Brand partnership discovery and management","Integrated directly within RUM Bot Hub for seamless access","Tools to showcase your channel metrics and audience reach","Streamlined deal negotiation and collaboration workflow"],link:"https://bit.ly/4vcALwv",linkLabel:"Launch Connect",linkIcon:"external"},{id:"music",icon:null,image:V_,title:"RUM Bot Music",tagline:"Stream-Safe Audio, Zero Worries",description:"Never worry about DMCA strikes again. RUM Bot Music delivers copyright-free, royalty-free music perfect for Rumble streamers, Twitch streamers, YouTube creators, and any live or recorded broadcaster who wants interactive music experiences without copyright claims.",features:["100% DMCA-safe and royalty-free music library","Curated playlists designed for live streaming","Viewer song request functionality for interactive streams","VOD-safe audio — keep your recordings monetizable","Works across Rumble, Twitch, YouTube, and more","Continuously updated library with fresh tracks"],link:"https://bit.ly/4rROaIx",linkLabel:"Launch Music",linkIcon:"external"},{id:"sync",icon:null,image:r$,title:"RUM Bot Sync",tagline:"Seamless YouTube to Rumble Automation",description:"RUM Bot Sync is the ultimate content distribution tool for creators, automatically syncing YouTube videos, Shorts, and recorded live streams directly to your Rumble channel. Choose manual control or set-it-and-forget-it automation—RUM Bot Sync handles cross-platform content distribution so you can focus on creating while reaching audiences on both YouTube and Rumble effortlessly.",features:["Automatic YouTube to Rumble synchronization for all content types","Manual sync control or fully automated scheduling options","Long-form video distribution with titles, descriptions, and tags","YouTube Shorts to Rumble Shorts for vertical content reach","Live stream recording transfer after broadcasts automatically","Seamless two-platform integration connecting YouTube and Rumble","Metadata preservation maintains SEO optimization across platforms","Zero duplicate work eliminates manual re-uploads and saves hours"],link:"https://bit.ly/4rFf9aR",linkLabel:"Download",linkIcon:"download"}],i$=()=>p.jsxs(qt,{children:[p.jsxs("section",{className:"pt-32 pb-20 relative",children:[p.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,_hsl(var(--primary)/0.1)_0%,_transparent_60%)]"}),p.jsx("div",{className:"container mx-auto px-4 relative z-10",children:p.jsxs(Re.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"text-center max-w-3xl mx-auto",children:[p.jsxs("h1",{className:"text-5xl md:text-7xl mb-6",children:["OUR ",p.jsx("span",{className:"text-primary",children:"TOOLS"})]}),p.jsx("p",{className:"text-lg text-muted-foreground font-body leading-relaxed",children:"A complete suite of professional streaming tools built for creators who demand the best. From broadcasting to music to brand partnerships — we've got you covered."})]})})]}),s$.map((e,t)=>p.jsx("section",{id:e.id,className:`py-20 ${t%2===1?"bg-card/30":""}`,children:p.jsx("div",{className:"container mx-auto px-4",children:p.jsxs("div",{className:`grid grid-cols-1 lg:grid-cols-2 gap-16 items-center ${t%2===1?"lg:flex-row-reverse":""}`,children:[p.jsxs(Re.div,{initial:{opacity:0,x:t%2===0?-30:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:t%2===1?"lg:order-2":"",children:[p.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[p.jsx("div",{className:"w-14 h-14 rounded-xl bg-primary/10 flex items-center justify-center overflow-hidden",children:e.image?p.jsx("img",{src:e.image,alt:e.title,className:"w-10 h-10 object-contain"}):e.icon&&p.jsx(e.icon,{className:"h-7 w-7 text-primary"})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-3xl md:text-4xl",children:e.title}),p.jsx("p",{className:"text-primary font-body text-sm font-semibold uppercase tracking-wider",children:e.tagline})]})]}),p.jsx("p",{className:"text-muted-foreground font-body leading-relaxed mt-6",children:e.description}),p.jsx("div",{className:"mt-6",children:p.jsx(Ue,{asChild:!0,variant:e.link==="#"?"secondary":"default",size:"lg",children:p.jsxs("a",{href:e.link,target:e.link!=="#"?"_blank":void 0,rel:"noopener noreferrer",children:[e.linkIcon==="download"?p.jsx(yR,{className:"mr-2 h-4 w-4"}):p.jsx(df,{className:"mr-2 h-4 w-4"}),e.linkLabel]})})})]}),p.jsx(Re.div,{initial:{opacity:0,x:t%2===0?30:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:t%2===1?"lg:order-1":"",children:p.jsx(ze,{className:"border-border/50 bg-card/50 backdrop-blur-sm",children:p.jsxs(We,{className:"p-8",children:[p.jsx("h3",{className:"text-xl mb-6 font-semibold",children:"Key Features"}),p.jsx("ul",{className:"space-y-4",children:e.features.map((n,r)=>p.jsxs(Re.li,{initial:{opacity:0,x:10},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:r*.08},className:"flex items-start gap-3",children:[p.jsx("span",{className:"mt-1.5 w-2 h-2 rounded-full bg-primary shrink-0"}),p.jsx("span",{className:"text-muted-foreground font-body text-sm leading-relaxed",children:n})]},r))})]})})})]})})},e.id))]}),o$=ju("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function zs({className:e,variant:t,...n}){return p.jsx("div",{className:ge(o$({variant:t}),e),...n})}const Ku="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAqASURBVHgB7Z1dUhtJEsczS8jg2NhZ5gQjn8DmZWfADxZiN2IfmRMYToD9iG0CEQ5g3gwnAJ9g8NtG7Bg0D4s8+wJzAvecYFj2YwDRlVPZA
263iGhz5a6W1nd9YsgHP4Mi/pXZlZWZhbCGCifLE7nL84XEdVjACoA0RMimAY0X7cQnIFCD/lHxFNA+hF1/nR19u8eOCIDISF40ScvzlcIsEhARRgeD40giOiDggcVJ4jRiF0A29W/8IKvj7jovfDMx6gowPersz9UwBGK2ASQwMK3Y9wFKqywdahNfXFQnjk4A0dPIhcAm/oHl+frxqe/gDFjXMWBE0NvIhVAfdfrPQIogDhw37mJdiITwHefFlZ8oh2Qj1ePGfIbLoCMSABbn0rvJJj8sKARAijYffX1xwPIKCMLYLO6sGeiryWwG898bWTxWDmSALZ/Kq1rDWVIC/Wk00GW3MPQAkjd4rfBQWP6hTCUADja16CPIBOkWwihBbBd/VuB4OpI5lEvTtIpBAUh0VBbz97iM7Sk4eozB728CSAlhLIAW8cLi4T0PTjM5aTaQZzYtd0ihLMASO/AEUCoXxiLcLRZLS2BxQxsAW4+6B44OuEh4ctXc/YllAa3AIQr4OhGgV2jjfHBQBYgW8e+EUE4UwQ7q7OHG2ABA1kADfQcHINBMK3NrbhxmZ9tsAYDCQCTLOpIDwU+Nm5XS+tcIwFC6esCnPmPBE+DWl4TWIvQ1wJo0ovgGJWCMpuIrQEIo68F2DxeODHn/yfgiArPXDvPS0kg9bQAQRDjFj9qGrEBCKCnAMx/tAiOWOCTwlZ14WjcJ4U+MQA+A0dscMk8p5PfmkAbxkRPAbjjXyKMNUDsGgRu/uuvT8D3T8CRGFykipBfTjJA7G4BfN8Ffwlz6xKSjAt6uADn/8dEcErYOi4lUmbfXQAEzgKMEUJ4l0Rc0DEGKB8Vp/NT6ldwjB3ub7ya/ONyXL2NHS1AbjJXBIcIiGgxf3F+Eldc0FEAymX/pFGIKzjsKAB0AaBEChqvTqJOGnUUgDE7zgJIhGCak0ZbPy1EVqDTJoD6BRCILWBwGB1o2o/qhNAmgGuqud1vAXyZFIUI2gTgAkB7iEIEbQIw587H4LCGUUXQJgDS8vv+gskeAMsmIHr0evYQ+as2pb/UhN+afPp7yBijiKAtE7hZLREIpX5b5pvbsorX689tV4uFa1BLOYDnWWpkNbu5HLYfoUUAkq+AtYaNtaeH5TB/h4WgQRXNh8xMR3NYEbQIQGoJuDHtu2tzH0e6HXtbLZWzYhHCiKAlBiDSEk8A3qiLz6zNHpYR9Lzxl1a0bI1CUG844HVyqwBk7o7IFoxjBxYCB49pDxZJwXrg0vvQ4gK4SpVk1QF6JsJ/BDHBMQKBSvO4G6829cVMr6vkey5AWAoYoQIxwhbhVV1gy1ifFZg2Cg9++2/P4+G9PAAVQBCo4WdIAGNl9jk+SKNb4EkmvVxBQwBcBSTtEshHdQoJwdbgzezREqTQGqCvu472aQgg/4d8AYQxAdceJAxbg6sLPaMJdiElcFzXrY6gIQDlk7gr4H4Zv7goz1fO1uYOX3BqOS3WIAfUMRZoCMAkgAogCw/GjMk/HKQlNmAr0GlQRUMAKOwEYPL+HgjgNjYghJdgOfn/n7clhxoCIGEBoMlK/hsE8eabwx1OINnsElC113reWQBhR0DzX/NAGGwNOEC01SV0cgN3eQBUfwJJIIl85IkDRHYJtt4p8IOdzT+/E4C0LKBwUxtcLhHY99QMYUtSKPS08KRAQvHPvF1d6uXglRG7aIkDmgQgKwbwUb4A2B2Y4MmuhJFqXWexFsAWahfahqfy7jCuvjkQFCuAcaSBh4GtgG1Hw8mLs3YBZPMVkIjg5+0txbmAKBCWtAqDE0AkqK/AUsQK4HJq2prjlbhKqhCIFYAtz73bOE63+ZpdrgAEz9hvhp/RA5vA1sSVWAE0H1WkEux+okWwCJNhbTmxuCBwBAhqe7YN0zDxSkuhrRPAkPALYcJ6KAbCJK0qzT+faPoNzyWD+lN/O7lm5eIziL4dLuAaJgogjKB5lq5ObF18cxV8er/QdgIcfeETyYPL83VN+kX499YFgdR2c9kQAPH9O8qZDaGEVCnzrqeL8700uEfzPa3c/7W7GMCcD8WOBhkDLbs+DSDsr37T3mfR5AL0LyDLvhVgTKRp19+iSHesYZQbAyAkfsHCuz5/8Z93GvQSpIkuu59pqgeQ0YjRQNOXkCDffVpYyf92/tl8J5YgZXTb/cxdDEAmBpDkAVQyA6sDcw96zycqWB3hd4GHa71+2r3HsrkzSNbtm7lijfM5NV54nojCQ7HSPCGk32S1hgVQoDzN44UEcdPRWoEIuc3kmc9ahJRjjn3z/f9MA3lFmJxxi+rxJN7xnL/nB5mszeSFwFz6vBykvb7h9US/E5TLzbz+8z+GKrys+3haz8Ki3xJmqGbrpNDj0q9SrzdNkPry1dzhwDX4WVx4JuxE1XsCkP1UfH1WMG6szv5Q6fT7fI6fvDhf0QQvsvjoxTDjdO/NCZzfN/mAyJ4jiREPg1p89G7mCHxlctlPIMNP3Qyz+ExLJlBcMqg7BeJzOzTdXlB2bzKGXXzmfj2ABw6rGGXxmVYB5HLWtjhlkVEXn2kRQO1/NQ8cVhDF4jNt2e+taumzqw0UzzIPtIQIaK8JtLjTNfXwNBKtZ6JafKatHoA0/ZLGW7EU4CnU86tz0U5PbbMAuv4il0MSxirzxU4co3PbBDBxr27cMV6I8H1t0o9l8ZmOxt4FgjKIKtLvRZeaQPrRaKMAjvFggj2N6tu1p53vPKKkc2cQuZPA2GB/j3pmbTb+xWc6CoAmchVwJA6/jxinv+9E1wOf5NqA1EFBU87GmxD1DlHRtTkUXUIoGW5M/jgWn+neHUz0ARyxMg6Tf5+unUGI+oBAvQNHHHga1PLaXDKBXi+6WoBAlfZNwhZPsOunkovy+9GvN5BfxlgBRxSI2fXN9JwQYpIR9j2IIBBpu76ZnhbAv7g+VZPqzB0Hh8RE+GbxX0rb9c30vfi1qFJYDmM814el75AoH3L74BgchP3aQ/3IhsVnBir94C7arHXYhIWbVnzADYl+vhcDTQjhD6acALrhaWX8/NcfrQyYBy7+clbgHsGVLezy83FgMQMPimQrAI76wpsAj/287YvPhCr/fHtc2lGY0cTQzY73p/ROeaaSmgxpqClh/qUuq8ncM9seSBiJ24V/mK6FvyV0Afh2tVgwl0RpnqsTwFE9PxIdZQ2+RIbqANj8Z/EJoDpKY4bQ1uPcsAzdApIqEdyY+QnQ++O8mx8HI/UAsQhQqe9tdQe827nw5eqh3k+jfx+EkZvArIsJMrzbOxFJFyBPGJuYwh2UemnEhS0K3mtSB1nx7YMSaRvoZrW0ZP7BdRHWwC36QMTSB/y2WirnAJ4nLYTg3SOED27RBye2RnCODTSoYqwWwezyoHzdBHJcxOp8engSmQTAQ58R/CUF+GwkMdwsuB/0LqqKP3V9mtXoPSoSHwXBR0eNuYJSVETCx/WHl4NR7Xf5hGChuSIZPZON85DgZx/VqVvw6Pkd63XmvE/8u8UAAAAASUVORK5CYII=",H_="/assets/x-icon-pdr4I23t.png",a$="/assets/instagram-icon-EGCtQwyp.png",l$="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%3e%3cpath%20d='M5.7%200L1.4%2010.985V55.88h15.284V64h8.597l8.12-8.12h12.418l16.716-16.716V0H5.7zm51.104%2036.3L47.25%2045.85H31.967l-8.12%208.12v-8.12H10.952V5.73h45.85V36.3zM47.25%2016.716v16.716h-5.73V16.716h5.73zm-15.284%200v16.716h-5.73V16.716h5.73z'%20fill='%236441a4'%20fill-rule='evenodd'/%3e%3c/svg%3e",c$="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20class='external-icon'%20viewBox='0%200%2028.57%2020'%20focusable='false'%20style='pointer-events:%20none;%20display:%20block;%20width:%20100%25;%20height:%20100%25;'%3e%3csvg%20viewBox='0%200%2028.57%2020'%20preserveAspectRatio='xMidYMid%20meet'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='M27.9727%203.12324C27.6435%201.89323%2026.6768%200.926623%2025.4468%200.597366C23.2197%202.24288e-07%2014.285%200%2014.285%200C14.285%200%205.35042%202.24288e-07%203.12323%200.597366C1.89323%200.926623%200.926623%201.89323%200.597366%203.12324C2.24288e-07%205.35042%200%2010%200%2010C0%2010%202.24288e-07%2014.6496%200.597366%2016.8768C0.926623%2018.1068%201.89323%2019.0734%203.12323%2019.4026C5.35042%2020%2014.285%2020%2014.285%2020C14.285%2020%2023.2197%2020%2025.4468%2019.4026C26.6768%2019.0734%2027.6435%2018.1068%2027.9727%2016.8768C28.5701%2014.6496%2028.5701%2010%2028.5701%2010C28.5701%2010%2028.5677%205.35042%2027.9727%203.12324Z'%20fill='%23FF0000'%3e%3c/path%3e%3cpath%20d='M11.4253%2014.2854L18.8477%2010.0004L11.4253%205.71533V14.2854Z'%20fill='white'%3e%3c/path%3e%3c/g%3e%3c/svg%3e%3c/svg%3e",u$={rumble:{src:Ku,alt:"Rumble"},x:{src:H_,alt:"X"},instagram:{src:a$,alt:"Instagram"},twitch:{src:l$,alt:"Twitch"},youtube:{src:c$,alt:"YouTube"}},d$=({partner:e,badgeClassName:t,badgeLabel:n,index:r})=>{const[s,i]=x.useState(!1);return p.jsx(Re.div,{initial:{opacity:0,y:20}
263,animate:{opacity:1,y:0},transition:{delay:r*.05,duration:.4},layout:!0,className:"h-full",style:{perspective:"1000px"},children:p.jsxs("div",{className:"relative w-full h-full cursor-pointer",style:{minHeight:"420px",transformStyle:"preserve-3d",transition:"transform 0.6s cubic-bezier(0.4, 0, 0.2, 1)",transform:s?"rotateY(180deg)":"rotateY(0deg)"},onClick:()=>i(!s),children:[p.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:p.jsx(ze,{className:"group h-full border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-all duration-300",children:p.jsxs(We,{className:"p-8",children:[p.jsxs("div",{className:"flex flex-col items-center text-center mb-5",children:[e.image&&p.jsx("img",{src:e.image,alt:e.name,className:"w-40 h-40 rounded-full object-cover mb-3 border-2 border-primary/30"}),p.jsx("h3",{className:"text-lg font-semibold font-body",children:e.name}),p.jsx(zs,{variant:"outline",className:t+" mt-1",children:n})]}),p.jsx("p",{className:"text-muted-foreground font-body leading-relaxed text-center mb-4",children:e.description}),e.socials.length>0&&p.jsx("div",{className:"flex items-center justify-center gap-3",children:e.socials.map(o=>{const a=u$[o.type];return a?p.jsx("a",{href:o.url,target:"_blank",rel:"noopener noreferrer",onClick:l=>l.stopPropagation(),className:"w-9 h-9 rounded-lg bg-secondary flex items-center justify-center hover:bg-secondary/70 transition-colors",children:p.jsx("img",{src:a.src,alt:a.alt,className:"w-5 h-5 object-contain"})},o.type):null})}),e.merchUrl&&p.jsx("div",{className:"flex items-center justify-center mt-3",children:p.jsxs("a",{href:e.merchUrl,target:"_blank",rel:"noopener noreferrer",onClick:o=>o.stopPropagation(),className:"inline-flex items-center gap-1.5 text-sm text-primary hover:text-primary/80 transition-colors font-body",children:["🛒 Merch Store",p.jsx(df,{className:"h-3 w-3"})]})}),p.jsx("p",{className:"text-xs text-muted-foreground/50 text-center mt-4",children:"Click to flip"})]})})}),p.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:"rotateY(180deg)"},children:p.jsx(ze,{className:"h-full border-border/50 bg-card/50 backdrop-blur-sm border-primary/30",children:p.jsxs(We,{className:"p-4 h-full flex flex-col",children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsx("h3",{className:"text-sm font-semibold font-body truncate",children:e.name}),p.jsx("button",{onClick:o=>{o.stopPropagation(),i(!1)},className:"w-8 h-8 rounded-lg bg-secondary flex items-center justify-center hover:bg-secondary/70 transition-colors shrink-0",children:p.jsx(PR,{className:"h-4 w-4 text-muted-foreground"})})]}),e.embedUrl?p.jsx("div",{className:"flex-1 rounded-lg overflow-hidden bg-background",children:p.jsx("iframe",{src:e.embedUrl,className:"w-full h-full min-h-[220px]",frameBorder:"0",allowFullScreen:!0,onClick:o=>o.stopPropagation()})}):p.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[e.image&&p.jsx("img",{src:e.image,alt:e.name,className:"w-40 h-40 rounded-full object-cover border-2 border-primary/30"}),p.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"No video available"}),e.rumbleUrl&&p.jsxs(Ue,{variant:"outline",size:"sm",className:"border-primary/30 hover:border-primary hover:text-primary",onClick:o=>{o.stopPropagation(),window.open(e.rumbleUrl,"_blank")},children:[p.jsx("img",{src:Ku,alt:"Rumble",className:"w-4 h-4 mr-2"}),"Watch on Rumble",p.jsx(df,{className:"h-3 w-3 ml-1"})]})]})]})})})]})})},h$="/assets/pickax-brand-PJEMAlIf.png",f$="/assets/fanatical-brand-DW36WruS.png",p$="/assets/fanatical-icon-9RzIUCbc.png",m$="/assets/dubby-brand-BRLjvhMI.png",g$="/assets/dubby-icon-BIowWePm.png",y$="/assets/pickax-icon-DgPYKWzQ.png",v$="/assets/mally-mouse-DskDGZcl.png",w$="/assets/reanimateher-CMoprKhZ.png",x$="/assets/blackfox87-CGbYZjaL.png",b$="/assets/megimu32-DTk_J_1b.png",S$="/assets/fragniac-BZ3U6LDl.png",E$="/assets/fusedaegis-CVQpa35A.png",_$="/assets/grimmhollywood-g-2n5mBs.png",k$="/assets/joedonuts-DjAHPdI2.png",C$="/assets/kittencog-D4sghMSt.png",T$="/assets/optimusdan-CT4hiEHM.png",P$="/assets/ladydesiree-CX_6ovdi.png",R$="/assets/midnight-D7TTFlJ9.png",A$="/assets/pudgetv-gyfqZsTo.png",fw=[{id:1,name:"Mally Mouse",type:"streamer",image:v$,description:"Content creator and Rumble partner bringing fun, authentic vibes to every stream.",embedUrl:"https://rumble.com/embed/v735xss/?pub=7o2o3",rumbleUrl:"https://rumble.com/user/Mally_Mouse",socials:[{t
263ype:"rumble",url:"https://rumble.com/user/Mally_Mouse"},{type:"x",url:"https://twitter.com/MallymkunMousey"},{type:"instagram",url:"https://www.instagram.com/mallymkun_mouse/"}]},{id:2,name:"ReAnimateHer",type:"streamer",image:w$,description:"Creative streamer and content creator bringing energy and passion to every broadcast.",embedUrl:"https://rumble.com/embed/v73ebf0/?pub=7o2o3",rumbleUrl:"https://rumble.com/user/ReAnimateHer",socials:[{type:"rumble",url:"https://rumble.com/user/ReAnimateHer"},{type:"x",url:"https://twitter.com/ReAnimateHer_"},{type:"instagram",url:"https://instagram.com/ReAnimateHer"},{type:"twitch",url:"https://www.twitch.tv/reanimateher"}]},{id:3,name:"BlackFox87",type:"streamer",image:x$,description:"FPS gaming content creator and Rumble partner known for high-energy streams.",embedUrl:"https://rumble.com/embed/v73e9ai/?pub=7o2o3",rumbleUrl:"https://rumble.com/user/blackfox87",socials:[{type:"rumble",url:"https://rumble.com/user/blackfox87"},{type:"x",url:"https://twitter.com/blackfox87fps"},{type:"instagram",url:"https://instagram.com/blackfox87fps/"},{type:"youtube",url:"https://www.youtube.com/c/BlackfoxGaming"}]},{id:4,name:"Megimu32",type:"streamer",image:b$,description:"Dynamic Rumble creator and content partner bringing personality and style to every stream.",embedUrl:"https://rumble.com/embed/v73hz06/?pub=7o2o3",rumbleUrl:"https://rumble.com/c/megimu32",merchUrl:"https://megimerch.com/",socials:[{type:"rumble",url:"https://rumble.com/c/megimu32"},{type:"x",url:"https://twitter.com/megimu32"},{type:"instagram",url:"https://instagram.com/megimu32/"}]},{id:5,name:"Fragniac",type:"streamer",image:S$,description:"High-energy Rumble creator and content partner known for entertaining and engaging streams.",embedUrl:"https://rumble.com/embed/v73iwwe/?pub=7o2o3",rumbleUrl:"https://rumble.com/c/Fragniac",socials:[{type:"rumble",url:"https://rumble.com/c/Fragniac"},{type:"x",url:"https://twitter.com/Fragniac"},{type:"instagram",url:"https://instagram.com/Fragniac"}]},{id:6,name:"FusedAegisTV",type:"streamer",image:E$,description:"Rumble creator and streamer delivering engaging content and building community one stream at a time.",embedUrl:"https://rumble.com/embed/v73d4de/?pub=7o2o3",rumbleUrl:"https://rumble.com/user/FusedAegisTV",socials:[{type:"rumble",url:"https://rumble.com/user/FusedAegisTV"},{type:"x",url:"https://twitter.com/FusedAegis"}]},{id:7,name:"GrimmHollywood",type:"streamer",image:_$,description:"Dark and cinematic Rumble creator bringing mystery and style to every stream.",embedUrl:"https://rumble.com/embed/v73h0m4/?pub=7o2o3",rumbleUrl:"https://rumble.com/user/GrimmHollywood",socials:[{type:"rumble",url:"https://rumble.com/user/GrimmHollywood"},{type:"x",url:"https://twitter.com/grimmhollywood"},{type:"instagram",url:"https://instagram.com/grimmhollywood"}]},{id:8,name:"Joe Donuts Live",type:"streamer",image:k$,description:"Fun and energetic Rumble creator bringing laughs and good vibes to every stream.",embedUrl:"https://rumble.com/embed/v73jjue/?pub=7o2o3",rumbleUrl:"https://rumble.com/c/JoeDonutsLive",socials:[{type:"rumble",url:"https://rumble.com/c/JoeDonutsLive"},{type:"x",url:"https://twitter.com/JoeDonutsFN"}]},{id:9,name:"KittenCog",type:"streamer",image:C$,description:"Creative and charismatic Rumble creator bringing charm and fun to every broadcast.",embedUrl:"https://rumble.com/embed/v73hsw4/?pub=7o2o3",rumbleUrl:"https://rumble.com/user/KittenCog",socials:[{type:"rumble",url:"https://rumble.com/user/KittenCog"},{type:"x",url:"https://twitter.com/Kittencog_"},{type:"instagram",url:"https://instagram.com/kittencog"}]},{id:10,name:"OptimusDan",type:"streamer",image:T$,description:"Passionate Rumble creator and entertainer bringing big energy and laughs to every stream.",embedUrl:"https://rumble.com/embed/v73gxaa/?pub=7o2o3",rumbleUrl:"https://rumble.com/user/OptimusDan",socials:[{type:"rumble",url:"https://rumble.com/user/OptimusDan"},{type:"x",url:"https://twitter.com/Optimusdan_"},{type:"instagram",url:"https://instagram.com/sbocent"}]},{id:11,name:"LadyDesireeMusic",type:"streamer",image:P$,description:"Talented musician and Rumble creator sharing live performances and creative content.",embedUrl:"https://rumble.com/embed/v73h0n0/?pub=7o2o3",rumbleUrl:"https://rumble.com/user/LadyDesireeMusic",socials:[{t
263ype:"rumble",url:"https://rumble.com/user/LadyDesireeMusic"},{type:"x",url:"https://twitter.com/ladydesiree"}]},{id:12,name:"MidnightInTheMountains",type:"streamer",image:R$,description:"Rumble creator and streamer bringing laid-back vibes and great content from the mountains.",embedUrl:"https://rumble.com/embed/v73igfu/?pub=7o2o3",rumbleUrl:"https://rumble.com/c/MidnightintheMountains",socials:[{type:"rumble",url:"https://rumble.com/c/MidnightintheMountains"},{type:"x",url:"https://twitter.com/MidnightiTMS"}]},{id:13,name:"PudgeTV",type:"streamer",image:A$,description:"Entertaining Rumble creator and streamer bringing humor and community to every broadcast.",embedUrl:"https://rumble.com/embed/v73criw/?pub=7o2o3",rumbleUrl:"https://rumble.com/c/PudgeTV",socials:[{type:"rumble",url:"https://rumble.com/c/PudgeTV"},{type:"x",url:"https://twitter.com/UnclePudge_"},{type:"instagram",url:"https://instagram.com/unclepudge/"}]},{id:16,name:"PickAx",type:"brand",image:h$,description:"PickAx is a next-generation social platform built for creators and communities to connect, share, and grow. With a focus on open expression and user empowerment, PickAx gives creators the tools to build loyal audiences on their own terms.",linkUrl:"https://bit.ly/4cEsfjZ",socials:[{type:"pickax",url:"https://bit.ly/4cEsfjZ"}]},{id:22,name:"Fanatical",type:"brand",image:f$,description:"Fanatical is a leading digital games retailer offering amazing deals on PC games, bundles, and more. Discover top titles at unbeatable prices and level up your gaming library.",linkUrl:"https://bit.ly/4cU2uvU",socials:[{type:"fanatical",url:"https://bit.ly/4cU2uvU"}]},{id:23,name:"Dubby",type:"brand",image:m$,description:"Dubby is a gaming energy brand delivering clean, focused energy for gamers and creators. Fuel your streams and sessions with bold flavors and no crash.",linkUrl:"https://bit.ly/4slFI4M",socials:[{type:"dubby",url:"https://bit.ly/4slFI4M"}]}],j$={streamer:{label:"Rumble Creator",className:"bg-primary/10 text-primary border-primary/20"},brand:{icon:gR,label:"Brand",className:"bg-blue-500/10 text-blue-400 border-blue-500/20"},gamedev:{icon:xR,label:"Game Dev",className:"bg-purple-500/10 text-purple-400 border-purple-500/20"}},N$=[{value:"all",label:"All Partners"},{value:"streamer",label:"Streamers"},{value:"brand",label:"Brands"}],O$=()=>{const[e,t]=x.useState("all"),n=e==="all"?fw:fw.filter(r=>r.type===e);return p.jsxs(qt,{children:[p.jsxs("section",{className:"pt-32 pb-16 relative",children:[p.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,_hsl(var(--primary)/0.1)_0%,_transparent_60%)]"}),p.jsx("div",{className:"container mx-auto px-4 relative z-10",children:p.jsxs(Re.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"text-center max-w-3xl mx-auto",children:[p.jsxs("h1",{className:"text-5xl md:text-7xl mb-6",children:["OUR ",p.jsx("span",{className:"text-primary",children:"PARTNERS"})]}),p.jsx("p",{className:"text-lg text-muted-foreground font-body leading-relaxed",children:"We collaborate with the best creators, brands, and game developers in the industry to deliver exceptional experiences."})]})})]}),p.jsx("section",{className:"pb-24",children:p.jsxs("div",{className:"container mx-auto px-4",children:[p.jsx("div",{className:"flex flex-wrap items-center justify-center gap-3 mb-12",children:N$.map(r=>p.jsx(Ue,{variant:e===r.value?"default":"outline",onClick:()=>t(r.value),className:e===r.value?"glow-primary":"border-border/50 hover:border-primary/30 hover:text-primary",children:r.label},r.value))}),p.jsx(T_,{mode:"wait",children:p.jsx(Re.div,{initial:{opacity:0}
263,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:n.map((r,s)=>{const i=j$[r.type];return r.type==="streamer"?p.jsx(d$,{partner:r,badgeClassName:i.className,badgeLabel:i.label,index:s},r.id):p.jsx(Re.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:s*.05,duration:.4},children:p.jsx(ze,{className:"group h-full border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-all duration-300",children:p.jsxs(We,{className:"p-8",children:[r.image?p.jsxs("div",{className:"flex flex-col items-center text-center mb-5",children:[p.jsx("div",{className:"w-full h-48 flex items-center justify-center mb-4",children:p.jsx("img",{src:r.image,alt:r.name,className:"max-w-full max-h-full object-contain"})}),p.jsx(zs,{variant:"outline",className:i.className,children:i.label})]}):p.jsxs("div",{className:"flex items-center gap-4 mb-5",children:[p.jsx("div",{className:"w-12 h-12 rounded-xl bg-secondary flex items-center justify-center",children:"icon"in i&&i.icon&&p.jsx(i.icon,{className:"h-6 w-6 text-primary"})}),p.jsxs("div",{children:[p.jsx("h3",{className:"text-lg font-semibold font-body",children:r.name}),p.jsx(zs,{variant:"outline",className:i.className,children:i.label})]})]}),p.jsx("p",{className:"text-muted-foreground font-body leading-relaxed text-center mb-4",children:r.description}),r.socials.length>0&&p.jsx("div",{className:"flex items-center justify-center gap-3",children:r.socials.map(a=>{let l=null,c="";return a.type==="rumble"?(l=Ku,c="Rumble"):a.type==="pickax"?(l=y$,c="PickAx"):a.type==="fanatical"?(l=p$,c="Fanatical"):a.type==="dubby"&&(l=g$,c="Dubby"),l?p.jsx("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",className:"w-9 h-9 rounded-lg bg-secondary flex items-center justify-center hover:bg-secondary/70 transition-colors",children:p.jsx("img",{src:l,alt:c,className:"w-5 h-5 object-contain"})},a.type):null})})]})})},r.id)})},e)})]})})]})},I$=()=>{const{data:e=[],isLoading:t}=Am({queryKey:["blog-posts"],queryFn:async()=>{const{data:n,error:r}=await it.from("blog_posts").select("*").eq("published",!0).order("created_at",{ascending:!1});if(r)throw r;return n}});return p.jsxs(qt,{children:[p.jsxs("section",{className:"pt-32 pb-16 relative",children:[p.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,_hsl(var(--primary)/0.1)_0%,_transparent_60%)]"}),p.jsx("div",{className:"container mx-auto px-4 relative z-10",children:p.jsxs(Re.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"text-center max-w-3xl mx-auto",children:[p.jsxs("h1",{className:"text-5xl md:text-7xl mb-6",children:["THE ",p.jsx("span",{className:"text-primary",children:"BLOG"})]}),p.jsx("p",{className:"text-lg text-muted-foreground font-body leading-relaxed",children:"News, tutorials, partner spotlights, and insights from the Rum Bot team"})]})})]}),p.jsx("section",{className:"pb-24",children:p.jsx("div",{className:"container mx-auto px-4",children:t?p.jsx("p",{className:"text-center text-muted-foreground",children:"Loading posts..."}):e.length===0?p.jsx("p",{className:"text-center text-muted-foreground",children:"No posts yet. Check back soon!"}):p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((n,r)=>p.jsx(Re.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:r*.1,duration:.4},children:p.jsx(hn,{to:`/blog/${n.slug}`,children:p.jsxs(ze,{className:"group h-full border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-all duration-300 overflow-hidden cursor-pointer",children:[n.featured_image_url?p.jsx("img",{src:n.featured_image_url,alt:n.title,className:"h-44 w-full object-cover",loading:"lazy"}):p.jsx("div",{className:"h-44 bg-gradient-to-br from-primary/20 via-primary/5 to-transparent flex items-center justify-center",children:p.jsx("span",{className:"font-display text-7xl text-primary/20 group-hover:text-primary/30 transition-colors duration-300",children:"RB"})}),p.jsxs(We,{className:"p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[p.jsx(zs,{variant:"outline",className:"bg-primary/10 text-primary border-primary/20",children:n.category}),p.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[p.jsx(k1,{className:"h-3 w-3"}),new Date(n.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]})]}),p.jsx("h3",{className:"text-xl font-semibold mb-3 font-body group-hover:text-primary transition-colors",children:n.title}),p.jsx("p",{className:"text-sm text-muted-foreground font-body leading-relaxed mb-4",children:n.excerpt}),p.jsxs("span",{className:"inline-flex items-center gap-1 text-sm font-semibold text-primary",children:["Read More",p.jsx(_1,{className:"h-4 w-4 group-hover:translate-x-1 transition-transform"})]})]})]})})},n.id))})})})]})},D$=()=>{const{slug:e}=VN(),{data:t,isLoading:n}=Am({queryKey:["blog-post",e],queryFn:async()=>{const{data:r,error:s}=await it.from("blog_posts").select("*").eq("slug",e).eq("published",!0).maybeSingle();if(s)throw s;return r},enabled:!!e});return n?p.jsx(qt,{children:p.jsx("section",{className:"pt-32 pb-24",children:p.jsx("div",{className:"container mx-auto px-4 max-w-3xl text-center text-muted-foreground",children:"Loading..."})})}):t?p.jsx(qt,{children:p.jsx("article",{className:"pt-32 pb-24",children:p.jsx("div",{className:"container mx-auto px-4 max-w-3xl",children:p.jsxs(Re.div,{initial:{opacity:0,y:20}
263,animate:{opacity:1,y:0},transition:{duration:.5},children:[p.jsx(Ue,{asChild:!0,variant:"ghost",className:"mb-8 -ml-2 text-muted-foreground",children:p.jsxs(hn,{to:"/blog",children:[p.jsx(zy,{className:"h-4 w-4 mr-2"})," Back to Blog"]})}),t.featured_image_url&&p.jsx("img",{src:t.featured_image_url,alt:t.title,className:"w-full h-64 md:h-96 object-cover rounded-xl mb-8"}),p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx(zs,{variant:"outline",className:"bg-primary/10 text-primary border-primary/20",children:t.category}),p.jsxs("span",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:[p.jsx(k1,{className:"h-4 w-4"}),new Date(t.created_at).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]})]}),p.jsx("h1",{className:"text-4xl md:text-5xl font-display mb-6",children:t.title}),t.excerpt&&p.jsx("p",{className:"text-lg text-muted-foreground font-body leading-relaxed mb-8 border-l-4 border-primary/30 pl-4",children:t.excerpt}),p.jsx("div",{className:"prose prose-invert max-w-none font-body leading-relaxed whitespace-pre-wrap",children:t.content})]})})})}):p.jsx(qt,{children:p.jsx("section",{className:"pt-32 pb-24",children:p.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[p.jsx("h1",{className:"text-3xl font-display mb-4",children:"Post Not Found"}),p.jsx(Ue,{asChild:!0,variant:"outline",children:p.jsxs(hn,{to:"/blog",children:[p.jsx(zy,{className:"h-4 w-4 mr-2"})," Back to Blog"]})})]})})})},jt=x.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:ge("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));jt.displayName="Input";const uu=x.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:ge("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
263ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));uu.displayName="Textarea";var M$="Label",K_=x.forwardRef((e,t)=>p.jsx(ke.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));K_.displayName=M$;var q_=K_;const L$=ju("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ye=x.forwardRef(({className:e,...t},n)=>p.jsx(q_,{ref:n,className:ge(L$(),e),...t}));Ye.displayName=q_.displayName;const $$=({className:e})=>p.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189z"})}),F$=()=>{const{toast:e}=Qb(),[t,n]=x.useState(!1),[r,s]=x.useState({name:"",email:"",subject:"",message:""}),i=async a=>{a.preventDefault(),n(!0);try{const{error:l}=await it.from("contact_messages").insert({name:r.name.trim(),email:r.email.trim(),subject:r.subject.trim()||null,message:r.message.trim()});if(l)throw l;const{error:c}=await it.functions.invoke("send-contact-email",{body:{name:r.name.trim(),email:r.email.trim(),subject:r.subject.trim()||null,message:r.message.trim()}});c&&console.error("Email notification failed:",c),e({title:"Message Sent!",description:"We'll get back to you as soon as possible."}),s({name:"",email:"",subject:"",message:""})}catch{e({title:"Error",description:"Failed to send message. Please try again.",variant:"destructive"})}finally{n(!1)}},o=a=>{s(l=>({...l,[a.target.name]:a.target.value}))};return p.jsxs(qt,{children:[p.jsxs("section",{className:"pt-32 pb-16 relative",children:[p.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,_hsl(var(--primary)/0.1)_0%,_transparent_60%)]"}),p.jsx("div",{className:"container mx-auto px-4 relative z-10",children:p.jsxs(Re.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"text-center max-w-3xl mx-auto",children:[p.jsxs("h1",{className:"text-5xl md:text-7xl mb-6",children:["CONTACT ",p.jsx("span",{className:"text-primary",children:"US"})]}),p.jsx("p",{className:"text-lg text-muted-foreground font-body leading-relaxed",children:"Have a question, partnership inquiry, or just want to say hello? We'd love to hear from you."})]})})]}),p.jsx("section",{className:"pb-24",children:p.jsx("div",{className:"container mx-auto px-4",children:p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12 max-w-6xl mx-auto",children:[p.jsx(Re.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.6},className:"lg:col-span-2",children:p.jsx(ze,{className:"border-border/50 bg-card/50 backdrop-blur-sm",children:p.jsx(We,{className:"p-8",children:p.jsxs("form",{onSubmit:i,className:"space-y-6",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsxs(Ye,{htmlFor:"name",className:"font-body",children:["Name ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(jt,{id:"name",name:"name",placeholder:"Your name",value:r.name,onChange:o,required:!0,className:"h-12 bg-background/50"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsxs(Ye,{htmlFor:"email",className:"font-body",children:["Email ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(jt,{id:"email",name:"email",type:"email",placeholder:"[email protected]",value:r.email,onChange:o,required:!0,className:"h-12 bg-background/50"})]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{htmlFor:"subject",className:"font-body",children:"Subject"}),p.jsx(jt,{id:"subject",name:"subject",placeholder:"What's this about?",value:r.subject,onChange:o,className:"h-12 bg-background/50"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsxs(Ye,{htmlFor:"message",className:"font-body",children:["Message ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(uu,{id:"message",name:"message",placeholder:"Tell us what's on your mind...",value:r.message,onChange:o,required:!0,rows:6,className:"bg-background/50 resize-none"})]}),p.jsxs(Ue,{type:"submit",size:"lg",disabled:t,className:"w-full h-12 font-semibold glow-primary",children:[t?p.jsx(bR,{className:"mr-2 h-5 w-5 animate-spin"}):p.jsx(RR,{className:"mr-2 h-5 w-5"}),t?"Sending...":"Send Message"]})]})})})}),p.jsxs(Re.div,{initial:{opacity:0,x:20}
263,animate:{opacity:1,x:0},transition:{duration:.6,delay:.2},className:"space-y-6",children:[p.jsx(ze,{className:"border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-all duration-300",children:p.jsx(We,{className:"p-6",children:p.jsxs("a",{href:"https://bit.ly/4tKWGLs",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-4 group",children:[p.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center group-hover:bg-primary/20 transition-colors",children:p.jsx($$,{className:"h-6 w-6 text-primary"})}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-semibold font-body",children:"Discord"}),p.jsx("p",{className:"text-sm text-muted-foreground group-hover:text-primary transition-colors",children:"Join our community"})]})]})})}),p.jsx(ze,{className:"border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-all duration-300",children:p.jsx(We,{className:"p-6",children:p.jsxs("a",{href:"https://bit.ly/4kFTTyU",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-4 group",children:[p.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center group-hover:bg-primary/20 transition-colors",children:p.jsx("img",{src:H_,alt:"X",className:"h-6 w-6"})}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-semibold font-body",children:"X (Twitter)"}),p.jsx("p",{className:"text-sm text-muted-foreground group-hover:text-primary transition-colors",children:"Follow us on X"})]})]})})}),p.jsx(ze,{className:"border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-all duration-300",children:p.jsx(We,{className:"p-6",children:p.jsxs("a",{href:"https://bit.ly/4azTF7B",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-4 group",children:[p.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center group-hover:bg-primary/20 transition-colors",children:p.jsx("svg",{className:"h-6 w-6 text-primary",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1v-3.5a6.37 6.37 0 00-.79-.05A6.34 6.34 0 003.15 15.2a6.34 6.34 0 006.34 6.34 6.34 6.34 0 006.34-6.34V9.42a8.16 8.16 0 004.76 1.52v-3.4a4.85 4.85 0 01-1-.85z"})})}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-semibold font-body",children:"TikTok"}),p.jsx("p",{className:"text-sm text-muted-foreground group-hover:text-primary transition-colors",children:"Follow us on TikTok"})]})]})})}),p.jsx(ze,{className:"border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-all duration-300",children:p.jsx(We,{className:"p-6",children:p.jsxs("a",{href:"https://bit.ly/4azK1St",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-4 group",children:[p.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center group-hover:bg-primary/20 transition-colors",children:p.jsx("img",{src:Ku,alt:"Rumble",className:"h-6 w-6"})}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-semibold font-body",children:"Rumble"}),p.jsx("p",{className:"text-sm text-muted-foreground group-hover:text-primary transition-colors",children:"Watch us on Rumble"})]})]})})})]})]})})})]})},U$=()=>p.jsx(qt,{children:p.jsx("section",{className:"pt-32 pb-20",children:p.jsxs("div",{className:"container mx-auto px-4",children:[p.jsxs("h1",{className:"text-5xl md:text-7xl text-center mb-12",children:["DONATE & ",p.jsx("span",{className:"text-primary",children:"SUPPORT"})]}),p.jsxs("div",{className:"flex flex-col lg:flex-row items-start gap-12 max-w-5xl mx-auto",children:[p.jsxs("div",{className:"flex-1 text-lg text-muted-foreground font-body leading-relaxed space-y-6",children:[p.jsx("p",{children:"Help Fuel the RUM Bot Madness! Hey you—yeah, the awesome human reading this! RUM Bot Live Alerts didn't just spawn out of thin air (we wish). It runs on caffeine, code, and a bit of chaos. Your donation helps keep the servers humming, the bugs squashed, and the bot smarter than a toaster. Think of it like feeding a digital pet, except this one shouts your name during streams and makes you look cool."}),p.jsx("p",{children:`Donating helps us keep building new features, fixing whatever broke this time, and making sure the bot doesn't go rogue and start ordering pizzas with your API keys. So if RUM Bot's made your stream better—or made your viewers go "whoa, that alert was sick"—consider tossing a coin to your dev team. We promise to use it for good… mostly.`}),p.jsx("p",{className:"font-semibold text-primary",children:"Simply choose the coin and amount you would like to donate and it will be sent directly to us! Thank you guys so much!"})]}),p.jsx("div",{className:"flex-shrink-0 mx-auto lg:mx-0",children:p.jsx("iframe",{src:"https://nowpayments.io/embeds/donation-widget?api_key=DCKQ7QW-1Y24QEA-QWZ95GS-PMWXAQJ",width:"346",height:"623",frameBorder:"0",scrolling:"no",style:{overflowY:"hidden"},title:"Donation Widget",children:"Can't load widget"})})]})]})})}),B$=()=>
263{const[e,t]=x.useState(""),[n,r]=x.useState(""),[s,i]=x.useState(!1),[o,a]=x.useState(!1),{signIn:l}=tE(),c=il(),u=async h=>{h.preventDefault(),i(!0);const{error:f}=await l(e,n);i(!1),f?zt.error(f.message):c("/admin/blog")},d=async h=>{if(h.preventDefault(),!e){zt.error("Please enter your email address.");return}i(!0);try{const{data:f,error:y}=await it.functions.invoke("send-reset-email",{body:{email:e,redirectTo:`${window.location.origin}/admin/reset-password`}});if(y)throw y;zt.success("Password reset link sent! Check your email."),a(!1)}catch(f){zt.error((f==null?void 0:f.message)||"Failed to send reset email.")}i(!1)};return p.jsx(qt,{children:p.jsx("section",{className:"pt-32 pb-24 flex items-center justify-center min-h-[70vh]",children:p.jsxs(ze,{className:"w-full max-w-md border-border/50 bg-card/80 backdrop-blur-sm",children:[p.jsxs(mg,{className:"text-center",children:[p.jsx("div",{className:"mx-auto mb-4 w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:p.jsx(C1,{className:"h-6 w-6 text-primary"})}),p.jsx(gg,{className:"text-2xl font-display",children:o?"Reset Password":"Admin Login"})]}),p.jsx(We,{children:o?p.jsxs("form",{onSubmit:d,className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{htmlFor:"email",children:"Email"}),p.jsx(jt,{id:"email",type:"email",value:e,onChange:h=>t(h.target.value),required:!0})]}),p.jsx(Ue,{type:"submit",className:"w-full",disabled:s,children:s?"Sending...":"Send Reset Link"}),p.jsx(Ue,{type:"button",variant:"ghost",className:"w-full",onClick:()=>a(!1),children:"Back to Login"})]}):p.jsxs("form",{onSubmit:u,className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{htmlFor:"email",children:"Email"}),p.jsx(jt,{id:"email",type:"email",value:e,onChange:h=>t(h.target.value),required:!0})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{htmlFor:"password",children:"Password"}),p.jsx(jt,{id:"password",type:"password",value:n,onChange:h=>r(h.target.value),required:!0})]}),p.jsx(Ue,{type:"submit",className:"w-full",disabled:s,children:s?"Signing in...":"Sign In"}),p.jsx(Ue,{type:"button",variant:"link",className:"w-full",onClick:()=>a(!0),children:"Forgot Password?"})]})})]})})})};function V$(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var qu="Switch",[z$,yU]=go(qu),[W$,H$]=z$(qu),G_=x.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:s,defaultChecked:i,required:o,disabled:a,value:l="on",onCheckedChange:c,form:u,...d}=e,[h,f]=x.useState(null),y=Ze(t,w=>f(w)),m=x.useRef(!1),b=h?u||!!h.closest("form"):!0,[g,v]=um({prop:s,defaultProp:i??!1,onChange:c,caller:qu});return p.jsxs(W$,{scope:n,checked:g,disabled:a,children:[p.jsx(ke.button,{type:"button",role:"switch","aria-checked":g,"aria-required":o,"data-state":X_(g),"data-disabled":a?"":void 0,disabled:a,value:l,...d,ref:y,onClick:pe(e.onClick,w=>{v(S=>!S),b&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),b&&p.jsx(J_,{control:h,bubbles:!m.current,name:r,value:l,checked:g,required:o,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});G_.displayName=qu;var Q_="SwitchThumb",Y_=x.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,s=H$(Q_,n);return p.jsx(ke.span,{"data-state":X_(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t})});Y_.displayName=Q_;var K$="SwitchBubbleInput",J_=x.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...s},i)=>{const o=x.useRef(null),a=Ze(o,i),l=V$(n),c=Q1(t);return x.useEffect(()=>{const u=o.current;if(!u)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&f){const y=new Event("click",{bubbles:r});f.call(u,n),u.dispatchEvent(y)}},[l,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:a,style:{...s.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});J_.displayName=K$;function X_(e){return e?"checked":"unchecked"}var Z_=G_,q$=Y_;const ek=x.forwardRef(({className:e,...t},n)=>p.jsx(Z_,{className:ge("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:n,children:p.jsx(q$,{className:ge("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}
vendor: 4,431 bytes, line 263
263));ek.displayName=Z_.displayName;var oh="focusScope.autoFocusOnMount",ah="focusScope.autoFocusOnUnmount",pw={bubbles:!1,cancelable:!0},G$="FocusScope",tk=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=x.useState(null),c=On(s),u=On(i),d=x.useRef(null),h=Ze(t,m=>l(m)),f=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(r){let m=function(w){if(f.paused||!a)return;const S=w.target;a.contains(S)?d.current=S:yr(d.current,{select:!0})},b=function(w){if(f.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||yr(d.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&yr(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const v=new MutationObserver(g);return a&&v.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),v.disconnect()}}},[r,a,f.paused]),x.useEffect(()=>{if(a){gw.add(f);const m=document.activeElement;if(!a.contains(m)){const g=new CustomEvent(oh,pw);a.addEventListener(oh,c),a.dispatchEvent(g),g.defaultPrevented||(Q$(eF(nk(a)),{select:!0}),document.activeElement===m&&yr(a))}return()=>{a.removeEventListener(oh,c),setTimeout(()=>{const g=new CustomEvent(ah,pw);a.addEventListener(ah,u),a.dispatchEvent(g),g.defaultPrevented||yr(m??document.body,{select:!0}),a.removeEventListener(ah,u),gw.remove(f)},0)}}},[a,c,u,f]);const y=x.useCallback(m=>{if(!n&&!r||f.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(b&&g){const v=m.currentTarget,[w,S]=Y$(v);w&&S?!m.shiftKey&&g===S?(m.preventDefault(),n&&yr(w,{select:!0})):m.shiftKey&&g===w&&(m.preventDefault(),n&&yr(S,{select:!0})):g===v&&m.preventDefault()}},[n,r,f.paused]);return p.jsx(ke.div,{tabIndex:-1,...o,ref:h,onKeyDown:y})});tk.displayName=G$;function Q$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(yr(r,{select:t}),document.activeElement!==n)return}function Y$(e){const t=nk(e),n=mw(t,e),r=mw(t.reverse(),e);return[n,r]}function nk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mw(e,t){for(const n of e)if(!J$(n,{upTo:t}))return n}function J$(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function X$(e){return e instanceof HTMLInputElement&&"select"in e}function yr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&X$(e)&&t&&e.select()}}var gw=Z$();function Z$(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=yw(e,t),e.unshift(t)},remove(t){var n;e=yw(e,t),(n=e[0])==null||n.resume()}}}function yw(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function eF(e){return e.filter(t=>t.tagName!=="A")}var lh=0;function tF(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vw()),document.body.insertAdjacentElement("beforeend",e[1]??vw()),lh++,()=>{lh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lh--}},[])}function vw(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var xc="right-scroll-bar-position",bc="width-before-scroll-bar",nF="with-scroll-bars-hidden",rF="--removed-body-scroll-bar-size";function ch(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sF(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var iF=typeof window<"u"?x.useLayoutEffect:x.useEffect,ww=new WeakMap;function oF(e,t){var n=sF(null,function(r){return e.forEach(function(s){return ch(s,r)})});return iF(function(){var r=ww.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;
vendor: 4,196 bytes, lines 263-278
263s.forEach(function(a){i.has(a)||ch(a,null)}),i.forEach(function(a){s.has(a)||ch(a,o)})}ww.set(n,e)},[e]),n}function aF(e){return e}function lF(e,t){t===void 0&&(t=aF);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var l=function(){var u=o;o=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),n}}}};return s}function cF(e){e===void 0&&(e={});var t=lF(null);return t.options=Tn({async:!0,ssr:!1},e),t}var rk=function(e){var t=e.sideCar,n=_o(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return x.createElement(r,Tn({},n))};rk.isSideCarExport=!0;function uF(e,t){return e.useMedium(t),rk}var sk=cF(),uh=function(){},Gu=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:uh,onWheelCapture:uh,onTouchMoveCapture:uh}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,y=e.noIsolation,m=e.inert,b=e.allowPinchZoom,g=e.as,v=g===void 0?"div":g,w=e.gapMode,S=_o(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,_=oF([n,t]),C=Tn(Tn({},S),s);return x.createElement(x.Fragment,null,u&&x.createElement(E,{sideCar:sk,removeScrollBar:c,shards:d,noRelative:f,noIsolation:y,inert:m,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:w}),o?x.cloneElement(x.Children.only(a),Tn(Tn({},C),{ref:_})):x.createElement(v,Tn({},C,{className:l,ref:_}),a))});Gu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gu.classNames={fullWidth:bc,zeroRight:xc};var dF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dF();return t&&e.setAttribute("nonce",t),e}function fF(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mF=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hF())&&(fF(t,n),pF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gF=function(){var e=mF();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ik=function(){var e=gF(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},yF={left:0,top:0,right:0,gap:0},dh=function(e){return parseInt(e||"",10)||0},vF=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[dh(n),dh(r),dh(s)]},wF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yF;var t=vF(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xF=ik(),Vi="data-scroll-locked",bF=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
264  .`.concat(nF,` {
265   overflow: hidden `).concat(r,`;
266   padding-right: `).concat(a,"px ").concat(r,`;
267  }
268  body[`).concat(Vi,`] {
269    overflow: hidden `).concat(r,`;
270    overscroll-behavior: contain;
271    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
272    padding-left: `.concat(s,`px;
273    padding-top: `).concat(i,`px;
274    padding-right: `).concat(o,`px;
275    margin-left:0;
276    margin-top:0;
277    margin-right: `).concat(a,"px ").concat(r,`;
278    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
278")].filter(Boolean).join(""),`
279  }
280  
281  .`).concat(xc,` {
282    right: `).concat(a,"px ").concat(r,`;
283  }
284  
285  .`).concat(bc,` {
286    margin-right: `).concat(a,"px ").concat(r,`;
287  }
288  
289  .`).concat(xc," .").concat(xc,` {
290    right: 0 `).concat(r,`;
291  }
292  
293  .`).concat(bc," .").concat(bc,` {
294    margin-right: 0 `).concat(r,`;
295  }
296  
297  body[`).concat(Vi,`] {
298    `).concat(rF,": ").concat(a,`px;
299  }
300`)},xw=function(){var e=parseInt(document.body.getAttribute(Vi)||"0",10);return isFinite(e)?e:0},SF=function(){x.useEffect(function(){return document.body.setAttribute(Vi,(xw()+1).toString()),function(){var e=xw()-1;e<=0?document.body.removeAttribute(Vi):document.body.setAttribute(Vi,e.toString())}},[])},EF=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;SF();var i=x.useMemo(function(){return wF(s)},[s]);return x.createElement(xF,{styles:bF(i,!t,s,n?"":"!important")})},fp=!1;if(typeof window<"u")try{var Gl=Object.defineProperty({},"passive",{get:function(){return fp=!0,!0}});window.addEventListener("test",Gl,Gl),window.removeEventListener("test",Gl,Gl)}catch{fp=!1}var ai=fp?{passive:!1}:!1,_F=function(e){return e.tagName==="TEXTAREA"},ok=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_F(e)&&n[t]==="visible")},kF=function(e){return ok(e,"overflowY")},CF=function(e){return ok(e,"overflowX")},bw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=ak(e,r);if(s){var i=lk(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},TF=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},PF=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ak=function(e,t){return e==="v"?kF(t):CF(t)},lk=function(e,t){return e==="v"?TF(t):PF(t)},RF=function(e,t){return e==="h"&&t==="rtl"?-1:1},AF=function(e,t,n,r,s){var i=RF(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,h=0;do{if(!a)break;var f=lk(e,a),y=f[0],m=f[1],b=f[2],g=m-b-i*y;(y||g)&&ak(e,a)&&(d+=g,h+=y);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(Math.abs(d)<1||!s)||!u&&(Math.abs(h)<1||!s))&&(c=!0),c},Ql=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sw=function(e){return[e.deltaX,e.deltaY]},Ew=function(e){return e&&"current"in e?e.current:e},jF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},NF=function(e){return`
301  .block-interactivity-`.concat(e,` {pointer-events: none;}
302  .allow-interactivity-`).concat(e,` {pointer-events: all;}
303`)},OF=0,li=[];function IF(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),s=x.useState(OF++)[0],i=x.useState(ik)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=yO([e.lockRef.current],(e.shards||[]).map(Ew),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=x.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var g=Ql(m),v=n.current,w="deltaX"in m?m.deltaX:v[0]-g[0],S="deltaY"in m?m.deltaY:v[1]-g[1],E,_=m.target,C=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in m&&C==="h"&&_.type==="range")return!1;var T=bw(C,_);if(!T)return!0;if(T?E=C:(E=C==="v"?"h":"v",T=bw(C,_)),!T)return!1;if(!r.current&&"changedTouches"in m&&(w||S)&&(r.current=E),!E)return!0;var R=r.current||E;return AF(R,b,m,R==="h"?w:S,!0)},[]),l=x.useCallback(function(m){var b=m;if(!(!li.length||li[li.length-1]!==i)){var g="deltaY"in b?Sw(b):Ql(b),v=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&jF(E.delta,g)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}
vendor: 4,333 bytes, line 303
303if(!v){var w=(o.current.shards||[]).map(Ew).filter(Boolean).filter(function(E){return E.contains(b.target)}),S=w.length>0?a(b,w[0]):!o.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=x.useCallback(function(m,b,g,v){var w={name:m,delta:b,target:g,should:v,shadowParent:DF(g)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),u=x.useCallback(function(m){n.current=Ql(m),r.current=void 0},[]),d=x.useCallback(function(m){c(m.type,Sw(m),m.target,a(m,e.lockRef.current))},[]),h=x.useCallback(function(m){c(m.type,Ql(m),m.target,a(m,e.lockRef.current))},[]);x.useEffect(function(){return li.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ai),document.addEventListener("touchmove",l,ai),document.addEventListener("touchstart",u,ai),function(){li=li.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,ai),document.removeEventListener("touchmove",l,ai),document.removeEventListener("touchstart",u,ai)}},[]);var f=e.removeScrollBar,y=e.inert;return x.createElement(x.Fragment,null,y?x.createElement(i,{styles:NF(s)}):null,f?x.createElement(EF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function DF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const MF=uF(sk,IF);var ck=x.forwardRef(function(e,t){return x.createElement(Gu,Tn({},e,{ref:t,sideCar:MF}))});ck.classNames=Gu.classNames;var LF=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ci=new WeakMap,Yl=new WeakMap,Jl={},hh=0,uk=function(e){return e&&(e.host||uk(e.parentNode))},$F=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=uk(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},FF=function(e,t,n,r){var s=$F(t,Array.isArray(e)?e:[e]);Jl[n]||(Jl[n]=new WeakMap);var i=Jl[n],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var f=h.getAttribute(r),y=f!==null&&f!=="false",m=(ci.get(h)||0)+1,b=(i.get(h)||0)+1;ci.set(h,m),i.set(h,b),o.push(h),m===1&&y&&Yl.set(h,!0),b===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return u(t),a.clear(),hh++,function(){o.forEach(function(d){var h=ci.get(d)-1,f=i.get(d)-1;ci.set(d,h),i.set(d,f),h||(Yl.has(d)||d.removeAttribute(r),Yl.delete(d)),f||d.removeAttribute(n)}),hh--,hh||(ci=new WeakMap,ci=new WeakMap,Yl=new WeakMap,Jl={})}},UF=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=LF(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),FF(r,s,n,"aria-hidden")):function(){return null}},Qu="Dialog",[dk,vU]=go(Qu),[BF,wn]=dk(Qu),hk=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=x.useRef(null),l=x.useRef(null),[c,u]=um({prop:r,defaultProp:s??!1,onChange:i,caller:Qu});return p.jsx(BF,{scope:t,triggerRef:a,contentRef:l,contentId:jd(),titleId:jd(),descriptionId:jd(),open:c,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};hk.displayName=Qu;var fk="DialogTrigger",VF=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=wn(fk,n),i=Ze(t,s.triggerRef);return p.jsx(ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":wg(s.open),...r,ref:i,onClick:pe(e.onClick,s.onOpenToggle)})});VF.displayName=fk;var yg="DialogPortal",[zF,pk]=dk(yg,{forceMount:void 0}),mk=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=wn(yg,t);return p.jsx(zF,{scope:t,forceMount:n,children:x.Children.map(r,o=>p.jsx(yo,{present:n||i.open,children:p.jsx(cm,{asChild:!0,container:s,children:o})}))})};mk.displayName=yg;var du="DialogOverlay",gk=x.forwardRef((e,t)=>{const n=pk(du,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=wn(du,e.__scopeDialog);return i.modal?p.jsx(yo,{present:r||i.open,children:p.jsx(HF,{...s,ref:t})}):null});gk.displayName=du;var WF=Ra("DialogOverlay.RemoveScroll"),HF=x.forwardRef((e,t)=>
vendor: 4,628 bytes, lines 303-307
303{const{__scopeDialog:n,...r}=e,s=wn(du,n);return p.jsx(ck,{as:WF,allowPinchZoom:!0,shards:[s.contentRef],children:p.jsx(ke.div,{"data-state":wg(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ws="DialogContent",yk=x.forwardRef((e,t)=>{const n=pk(Ws,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=wn(Ws,e.__scopeDialog);return p.jsx(yo,{present:r||i.open,children:i.modal?p.jsx(KF,{...s,ref:t}):p.jsx(qF,{...s,ref:t})})});yk.displayName=Ws;var KF=x.forwardRef((e,t)=>{const n=wn(Ws,e.__scopeDialog),r=x.useRef(null),s=Ze(t,n.contentRef,r);return x.useEffect(()=>{const i=r.current;if(i)return UF(i)},[]),p.jsx(vk,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,i=>i.preventDefault())})}),qF=x.forwardRef((e,t)=>{const n=wn(Ws,e.__scopeDialog),r=x.useRef(!1),s=x.useRef(!1);return p.jsx(vk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),vk=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=wn(Ws,n),l=x.useRef(null),c=Ze(t,l);return tF(),p.jsxs(p.Fragment,{children:[p.jsx(tk,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(Pu,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":wg(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(GF,{titleId:a.titleId}),p.jsx(YF,{contentRef:l,descriptionId:a.descriptionId})]})]})}),vg="DialogTitle",wk=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=wn(vg,n);return p.jsx(ke.h2,{id:s.titleId,...r,ref:t})});wk.displayName=vg;var xk="DialogDescription",bk=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=wn(xk,n);return p.jsx(ke.p,{id:s.descriptionId,...r,ref:t})});bk.displayName=xk;var Sk="DialogClose",Ek=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=wn(Sk,n);return p.jsx(ke.button,{type:"button",...r,ref:t,onClick:pe(e.onClick,()=>s.onOpenChange(!1))})});Ek.displayName=Sk;function wg(e){return e?"open":"closed"}var _k="DialogTitleWarning",[wU,kk]=xP(_k,{contentName:Ws,titleName:vg,docsSlug:"dialog"}),GF=({titleId:e})=>{const t=kk(_k),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
304
305If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
306
307For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},QF="DialogDescriptionWarning",YF=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${kk(QF).contentName}}.`;return x.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},JF=hk,XF=mk,Ck=gk,Tk=yk,Pk=wk,Rk=bk,ZF=Ek;const eU=JF,tU=XF,Ak=x.forwardRef(({className:e,...t},n)=>p.jsx(Ck,{ref:n,className:ge("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ak.displayName=Ck.displayName;const jk=x.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(tU,{children:[p.jsx(Ak,{}),p.jsxs(Tk,{ref:r,className:ge("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
307nded-lg",e),...n,children:[t,p.jsxs(ZF,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[p.jsx(pm,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jk.displayName=Tk.displayName;const Nk=({className:e,...t})=>p.jsx("div",{className:ge("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Nk.displayName="DialogHeader";const Ok=x.forwardRef(({className:e,...t},n)=>p.jsx(Pk,{ref:n,className:ge("text-lg font-semibold leading-none tracking-tight",e),...t}));Ok.displayName=Pk.displayName;const nU=x.forwardRef(({className:e,...t},n)=>p.jsx(Rk,{ref:n,className:ge("text-sm text-muted-foreground",e),...t}));nU.displayName=Rk.displayName;const fh={title:"",slug:"",excerpt:"",content:"",category:"General",published:!1,featured_image_url:""},rU=()=>{const{user:e,isAdmin:t,loading:n,signOut:r}=tE(),s=il(),i=Rm(),[o,a]=x.useState(!1),[l,c]=x.useState(null),[u,d]=x.useState(fh),{data:h=[],isLoading:f}=Am({queryKey:["admin-blog-posts"],queryFn:async()=>{const{data:E,error:_}=await it.from("blog_posts").select("*").order("created_at",{ascending:!1});if(_)throw _;return E},enabled:t}),y=mv({mutationFn:async E=>{const _={title:E.title,slug:E.slug,excerpt:E.excerpt,content:E.content,category:E.category,published:E.published,featured_image_url:E.featured_image_url||null,author_id:e==null?void 0:e.id};if(l){const{error:C}=await it.from("blog_posts").update(_).eq("id",l);if(C)throw C}else{const{error:C}=await it.from("blog_posts").insert(_);if(C)throw C}},onSuccess:()=>{i.invalidateQueries({queryKey:["admin-blog-posts"]}),i.invalidateQueries({queryKey:["blog-posts"]}),zt.success(l?"Post updated!":"Post created!"),b()},onError:E=>zt.error(E.message)}),m=mv({mutationFn:async E=>{const{error:_}=await it.from("blog_posts").delete().eq("id",E);if(_)throw _},onSuccess:()=>{i.invalidateQueries({queryKey:["admin-blog-posts"]}),i.invalidateQueries({queryKey:["blog-posts"]}),zt.success("Post deleted")},onError:E=>zt.error(E.message)}),b=()=>{a(!1),c(null),d(fh)},g=()=>{c(null),d(fh),a(!0)},v=E=>{c(E.id),d({title:E.title,slug:E.slug,excerpt:E.excerpt,content:E.content,category:E.category,published:E.published,featured_image_url:E.featured_image_url||""}),a(!0)},w=E=>E.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""),S=E=>{d(_=>({..._,title:E,slug:l?_.slug:w(E)}))};return n?null:!e||!t?(s("/admin"),null):p.jsxs(qt,{children:[p.jsx("section",{className:"pt-32 pb-24",children:p.jsxs("div",{className:"container mx-auto px-4",children:[p.jsxs("div",{className:"flex items-center justify-between mb-8",children:[p.jsxs("h1",{className:"text-3xl font-display",children:["BLOG ",p.jsx("span",{className:"text-primary",children:"MANAGER"})]}),p.jsxs("div",{className:"flex gap-3",children:[p.jsxs(Ue,{onClick:g,children:[p.jsx(CR,{className:"h-4 w-4 mr-2"})," New Post"]}),p.jsxs(Ue,{variant:"outline",onClick:()=>{r(),s("/admin")},children:[p.jsx(SR,{className:"h-4 w-4 mr-2"})," Sign Out"]})]})]}),f?p.jsx("p",{className:"text-muted-foreground",children:"Loading posts..."}):h.length===0?p.jsx(ze,{className:"border-dashed border-border/50",children:p.jsx(We,{className:"py-16 text-center text-muted-foreground",children:'No posts yet. Click "New Post" to create your first one.'})}):p.jsx("div",{className:"space-y-4",children:h.map(E=>p.jsx(ze,{className:"border-border/50 bg-card/50",children:p.jsxs(We,{className:"p-6 flex items-center justify-between",children:[p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[p.jsx("h3",{className:"font-semibold font-body truncate",children:E.title}),p.jsx(zs,{variant:E.published?"default":"outline",className:E.published?"":"text-muted-foreground",children:E.published?"Published":"Draft"}),p.jsx(zs,{variant:"outline",className:"bg-primary/10 text-primary border-primary/20",children:E.category})]}),p.jsx("p",{className:"text-sm text-muted-foreground truncate",children:E.excerpt})]}),p.jsxs("div",{className:"flex gap-2 ml-4",children:[p.jsx(Ue,{variant:"ghost",size:"icon",onClick:()=>v(E),children:p.jsx(kR,{className:"h-4 w-4"})}),p.jsx(Ue,{variant:"ghost",size:"icon",onClick:()=>m.mutate(E.id),children:p.jsx(OR,{className:"h-4 w-4 text-destructive"})})]})]})},E.id))})]})}),p.jsx(eU,{open:o,onOpenChange:a,children:p.jsxs(jk,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[p.jsx(Nk,{children:p.jsx(Ok,{children:l?"Edit Post":"New Post"})}),p.jsxs("form",{onSubmit:E=>{E.preventDefault(),y.mutate(u)},className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{children:"Title"}),p.jsx(jt,{value:u.title,onChange:E=>S(E.target.value),required:!0})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{children:"Slug"}),p.jsx(jt,{value:u.slug,onChange:E=>d(_=>({..._,slug:E.target.value})),required:!0})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{children:"Category"}),p.jsx(jt,{value:u.category,onChange:E=>d(_=>({..._,category:E.target.value}))})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{children:"Excerpt"}),p.jsx(uu,{value:u.excerpt,onChange:E=>d(_=>({..._,excerpt:E.target.value})),rows:2})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{children:"Content"}),p.jsx(uu,{value:u.content,onChange:E=>d(_=>({..._,content:E.target.value})),rows:12,className:"font-mono text-sm"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{children:"Featured Image URL"}),p.jsx(jt,{value:u.featured_image_url,onChange:E=>d(_=>({..._,featured_image_url:E.target.value})),placeholder:"https://..."})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(ek,{checked:u.published,onCheckedChange:E=>d(_=>({..._,published:E}))}),p.jsxs(Ye,{className:"flex items-center gap-2",children:[u.published?p.jsx(wR,{className:"h-4 w-4"}):p.jsx(vR,{className:"h-4 w-4"}),u.published?"Published":"Draft"]})]}),p.jsxs("div",{className:"flex gap-3 justify-end pt-2",children:[p.jsx(Ue,{type:"button",variant:"outline",onClick:b,children:"Cancel"}),p.jsx(Ue,{type:"submit",disabled:y.isPending,children:y.isPending?"Saving...":l?"Update":"Create"})]})]})]})})]})},sU=()=>
307{const[e,t]=x.useState(""),[n,r]=x.useState(""),[s,i]=x.useState(!1),[o,a]=x.useState(!1),l=il();x.useEffect(()=>{const{data:{subscription:u}}=it.auth.onAuthStateChange(d=>{d==="PASSWORD_RECOVERY"&&a(!0)});return()=>u.unsubscribe()},[]);const c=async u=>{if(u.preventDefault(),e!==n){zt.error("Passwords do not match.");return}if(e.length<6){zt.error("Password must be at least 6 characters.");return}i(!0);const{error:d}=await it.auth.updateUser({password:e});i(!1),d?zt.error(d.message):(zt.success("Password updated successfully!"),l("/admin"))};return p.jsx(qt,{children:p.jsx("section",{className:"pt-32 pb-24 flex items-center justify-center min-h-[70vh]",children:p.jsxs(ze,{className:"w-full max-w-md border-border/50 bg-card/80 backdrop-blur-sm",children:[p.jsxs(mg,{className:"text-center",children:[p.jsx("div",{className:"mx-auto mb-4 w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:p.jsx(C1,{className:"h-6 w-6 text-primary"})}),p.jsx(gg,{className:"text-2xl font-display",children:"Set New Password"})]}),p.jsx(We,{children:o?p.jsxs("form",{onSubmit:c,className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{htmlFor:"password",children:"New Password"}),p.jsx(jt,{id:"password",type:"password",value:e,onChange:u=>t(u.target.value),required:!0,minLength:6})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{htmlFor:"confirmPassword",children:"Confirm Password"}),p.jsx(jt,{id:"confirmPassword",type:"password",value:n,onChange:u=>r(u.target.value),required:!0,minLength:6})]}),p.jsx(Ue,{type:"submit",className:"w-full",disabled:s,children:s?"Updating...":"Update Password"})]}):p.jsx("p",{className:"text-center text-muted-foreground",children:"Verifying your reset link..."})})]})})})},iU=()=>{const{pathname:e,hash:t}=qs();return x.useEffect(()=>{t?setTimeout(()=>{const n=document.getElementById(t.replace("#",""));n&&n.scrollIntoView({behavior:"smooth"})},100):window.scrollTo(0,0)},[e,t]),null},oU=new J2,aU=()=>p.jsx(mO,{defaultTheme:"dark",children:p.jsx(nN,{client:oU,children:p.jsxs(I2,{children:[p.jsx(gA,{}),p.jsx(GA,{}),p.jsxs(dO,{children:[p.jsx(iU,{}),p.jsx(QD,{children:p.jsxs(sO,{children:[p.jsx(kt,{path:"/",element:p.jsx(YD,{})}),p.jsx(kt,{path:"/about",element:p.jsx(n$,{})}),p.jsx(kt,{path:"/tools",element:p.jsx(i$,{})}),p.jsx(kt,{path:"/partners",element:p.jsx(O$,{})}),p.jsx(kt,{path:"/blog",element:p.jsx(I$,{})}),p.jsx(kt,{path:"/blog/:slug",element:p.jsx(D$,{})}),p.jsx(kt,{path:"/contact",element:p.jsx(F$,{})}),p.jsx(kt,{path:"/support",element:p.jsx(U$,{})}),p.jsx(kt,{path:"/admin",element:p.jsx(B$,{})}),p.jsx(kt,{path:"/admin/blog",element:p.jsx(rU,{})}),p.jsx(kt,{path:"/admin/reset-password",element:p.jsx(sU,{})}),p.jsx(kt,{path:"*",element:p.jsx(nO,{to:"/",replace:!0})})]})})]})]})})});Gb(document.getElementById("root")).render(p.jsx(aU,{}));

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.