vendor: 6,120 bytes, lines 1-9
1var lm=e=>{throw TypeError(e)};var yu=(e,t,n)=>t.has(e)||lm("Cannot "+n);var R=(e,t,n)=>(yu(e,t,"read from private field"),n?n.call(e):t.get(e)),re=(e,t,n)=>t.has(e)?lm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),X=(e,t,n,r)=>(yu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),We=(e,t,n)=>(yu(e,t,"access private method"),n);var Ca=(e,t,n,r)=>({set _(i){X(e,t,i,n)},get _(){return R(e,t,r)}});function ES(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function c0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u0={exports:{}},Ac={},d0={exports:{}},ee={};/** 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 ua=Symbol.for("react.element"),_S=Symbol.for("react.portal"),CS=Symbol.for("react.fragment"),AS=Symbol.for("react.strict_mode"),PS=Symbol.for("react.profiler"),jS=Symbol.for("react.provider"),RS=Symbol.for("react.context"),NS=Symbol.for("react.forward_ref"),OS=Symbol.for("react.suspense"),MS=Symbol.for("react.memo"),IS=Symbol.for("react.lazy"),cm=Symbol.iterator;function DS(e){return e===null||typeof e!="object"?null:(e=cm&&e[cm]||e["@@iterator"],typeof e=="function"?e:null)}var h0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f0=Object.assign,p0={};function js(e,t,n){this.props=e,this.context=t,this.refs=p0,this.updater=n||h0}js.prototype.isReactComponent={};js.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")};js.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function m0(){}m0.prototype=js.prototype;function uf(e,t,n){this.props=e,this.context=t,this.refs=p0,this.updater=n||h0}var df=uf.prototype=new m0;df.constructor=uf;f0(df,js.prototype);df.isPureReactComponent=!0;var um=Array.isArray,g0=Object.prototype.hasOwnProperty,hf={current:null},y0={key:!0,ref:!0,__self:!0,__source:!0};function v0(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)g0.call(t,r)&&!y0.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ua,type:e,key:s,ref:o,props:i,_owner:hf.current}}function LS(e,t){return{$$typeof:ua,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ff(e){return typeof e=="object"&&e!==null&&e.$$typeof===ua}function FS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var dm=/\/+/g;function vu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?FS(""+e.key):t.toString(36)}function hl(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ua:case _S:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+vu(o,0):r,um(i)?(n="",e!=null&&(n=e.replace(dm,"$&/")+"/"),hl(i,t,n,"",function(c){return c})):i!=null&&(ff(i)&&(i=LS(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(dm,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",um(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+vu(s,a);o+=hl(s,t,n,l,i)}else if(l=DS(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+vu(s,a++),o+=hl(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Aa(e,t,n){if(e==null)return e;var r=[],i=0;return hl(e,r,"","",function(s){return t.call(n,s,i++)}),r}function zS(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 nt={current:null},fl={transition:null},US={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:fl,ReactCurrentOwner:hf};function w0(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:Aa,forEach:function(e,t,n){Aa(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Aa(e,function(){t++}),t},toArray:function(e){return Aa(e,function(t){return t})||[]},only:function(e){if(!ff(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=js;ee.Fragment=CS;ee.Profiler=PS;ee.PureComponent=uf;ee.StrictMode=AS;ee.Suspense=OS;
vendor: 5,062 bytes, lines 9-25
9ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=US;ee.act=w0;ee.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=f0({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=hf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)g0.call(t,l)&&!y0.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:ua,type:e.type,key:i,ref:s,props:r,_owner:o}};ee.createContext=function(e){return e={$$typeof:RS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:jS,_context:e},e.Consumer=e};ee.createElement=v0;ee.createFactory=function(e){var t=v0.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:NS,render:e}};ee.isValidElement=ff;ee.lazy=function(e){return{$$typeof:IS,_payload:{_status:-1,_result:e},_init:zS}};ee.memo=function(e,t){return{$$typeof:MS,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=fl.transition;fl.transition={};try{e()}finally{fl.transition=t}};ee.unstable_act=w0;ee.useCallback=function(e,t){return nt.current.useCallback(e,t)};ee.useContext=function(e){return nt.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return nt.current.useDeferredValue(e)};ee.useEffect=function(e,t){return nt.current.useEffect(e,t)};ee.useId=function(){return nt.current.useId()};ee.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return nt.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)};ee.useRef=function(e){return nt.current.useRef(e)};ee.useState=function(e){return nt.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return nt.current.useTransition()};ee.version="18.3.1";d0.exports=ee;var b=d0.exports;const O=c0(b),x0=ES({__proto__:null,default:O},[b]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var BS=b,$S=Symbol.for("react.element"),VS=Symbol.for("react.fragment"),WS=Object.prototype.hasOwnProperty,HS=BS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,KS={key:!0,ref:!0,__self:!0,__source:!0};function b0(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)WS.call(t,r)&&!KS.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:$S,type:e,key:s,ref:o,props:i,_owner:HS.current}}Ac.Fragment=VS;Ac.jsx=b0;Ac.jsxs=b0;u0.exports=Ac;var f=u0.exports,k0={exports:{}},bt={},S0={exports:{}},T0={};/** 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(C,j){var L=C.length;C.push(j);e:for(;0<L;){var H=L-1>>>1,W=C[H];if(0<i(W,j))C[H]=j,C[L]=W,L=H;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var j=C[0],L=C.pop();if(L!==j){C[0]=L;e:for(var H=0,W=C.length,Z=W>>>1;H<Z;){var te=2*(H+1)-1,Te=C[te],Ve=te+1,ie=C[Ve];if(0>i(Te,L))Ve<W&&0>i(ie,Te)?(C[H]=ie,C[Ve]=L,H=Ve):(C[H]=Te,C[te]=L,H=te);else if(Ve<W&&0>i(ie,L))C[H]=ie,C[Ve]=L,H=Ve;else break e}}return j}function i(C,j){var L=C.sortIndex-j.sortIndex;return L!==0?L:C.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,h=3,p=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(C){for(var j=n(c);j!==null;){if(j.callback===null)r(c);else if(j.startTime<=C)r(c),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(c)}}function k(C){if(y=!1,w(C),!v)if(n(l)!==null)v=!0,$(S);else{var j=n(c);j!==null&&Y(k,j.startTime-C)}}function S(C,j){v=!1,y&&(y=!1,m(_),_=-1),p=!0;var L=h;try{for(w(j),d=n(l);d!==null&&(!(d.expirationTime>j)||C&&!F());){var H=d.callback;
vendor: 9,155 bytes, lines 25-34
25if(typeof H=="function"){d.callback=null,h=d.priorityLevel;var W=H(d.expirationTime<=j);j=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(l)&&r(l),w(j)}else r(l);d=n(l)}if(d!==null)var Z=!0;else{var te=n(c);te!==null&&Y(k,te.startTime-j),Z=!1}return Z}finally{d=null,h=L,p=!1}}var T=!1,E=null,_=-1,P=5,A=-1;function F(){return!(e.unstable_now()-A<P)}function I(){if(E!==null){var C=e.unstable_now();A=C;var j=!0;try{j=E(!0,C)}finally{j?G():(T=!1,E=null)}}else T=!1}var G;if(typeof g=="function")G=function(){g(I)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,q=M.port2;M.port1.onmessage=I,G=function(){q.postMessage(null)}}else G=function(){x(I,0)};function $(C){E=C,T||(T=!0,G())}function Y(C,j){_=x(function(){C(e.unstable_now())},j)}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(C){C.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,$(S))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(C){switch(h){case 1:case 2:case 3:var j=3;break;default:j=h}var L=h;h=j;try{return C()}finally{h=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,j){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var L=h;h=C;try{return j()}finally{h=L}},e.unstable_scheduleCallback=function(C,j,L){var H=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?H+L:H):L=H,C){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=L+W,C={id:u++,callback:j,priorityLevel:C,startTime:L,expirationTime:W,sortIndex:-1},L>H?(C.sortIndex=L,t(c,C),n(l)===null&&C===n(c)&&(y?(m(_),_=-1):y=!0,Y(k,L-H))):(C.sortIndex=W,t(l,C),v||p||(v=!0,$(S))),C},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(C){var j=h;return function(){var L=h;h=j;try{return C.apply(this,arguments)}finally{h=L}}}})(T0);S0.exports=T0;var GS=S0.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 qS=b,xt=GS;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 E0=new Set,Ao={};function pi(e,t){ys(e,t),ys(e+"Capture",t)}function ys(e,t){for(Ao[e]=t,e=0;e<t.length;e++)E0.add(t[e])}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vd=Object.prototype.hasOwnProperty,YS=/^[: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]*$/,hm={},fm={};function JS(e){return vd.call(fm,e)?!0:vd.call(hm,e)?!1:YS.test(e)?fm[e]=!0:(hm[e]=!0,!1)}function XS(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 QS(e,t,n,r){if(t===null||typeof t>"u"||XS(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 rt(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$e[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$e[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$e[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$e[e]=new rt(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){$e[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$e[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$e[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$e[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$e[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var pf=/[\-:]([a-z])/g;function mf(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(pf,mf);$e[t]=new rt(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(pf,mf);$e[t]=new rt(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(pf,mf);$e[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$e[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});$e.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$e[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function gf(e,t,n,r){var i=$e.hasOwnProperty(t)?$e[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(QS(t,n,i,r)&&(n=null),r||i===null?JS(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Fn=qS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pa=Symbol.for("react.element"),Li=Symbol.for("react.portal"),Fi=Symbol.for("react.fragment"),yf=Symbol.for("react.strict_mode"),wd=Symbol.for("react.profiler"),_0=Symbol.for("react.provider"),C0=Symbol.for("react.context"),vf=Symbol.for("react.forward_ref"),xd=Symbol.for("react.suspense"),bd=Symbol.for("react.suspense_list"),wf=Symbol.for("react.memo"),Qn=Symbol.for("react.lazy"),A0=Symbol.for("react.offscreen"),pm=Symbol.iterator;function Ws(e){return e===null||typeof e!="object"?null:(e=pm&&e[pm]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,wu;function ro(e){if(wu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);wu=t&&t[1]||""}return` 34`+wu+e}var xu=!1;function bu(e,t){if(!e||xu)return"";xu=!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: 14,090 bytes, lines 34-37
34catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(` 35`),s=r.stack.split(` 36`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=` 37`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{xu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ro(e):""}function ZS(e){switch(e.tag){case 5:return ro(e.type);case 16:return ro("Lazy");case 13:return ro("Suspense");case 19:return ro("SuspenseList");case 0:case 2:case 15:return e=bu(e.type,!1),e;case 11:return e=bu(e.type.render,!1),e;case 1:return e=bu(e.type,!0),e;default:return""}}function kd(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 Fi:return"Fragment";case Li:return"Portal";case wd:return"Profiler";case yf:return"StrictMode";case xd:return"Suspense";case bd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C0:return(e.displayName||"Context")+".Consumer";case _0:return(e._context.displayName||"Context")+".Provider";case vf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wf:return t=e.displayName||null,t!==null?t:kd(e.type)||"Memo";case Qn:t=e._payload,e=e._init;try{return kd(e(t))}catch{}}return null}function eT(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 kd(t);case 8:return t===yf?"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 kr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function P0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tT(e){var t=P0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ja(e){e._valueTracker||(e._valueTracker=tT(e))}function j0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=P0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ll(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 Sd(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kr(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 R0(e,t){t=t.checked,t!=null&&gf(e,"checked",t,!1)}function Td(e,t){R0(e,t);var n=kr(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")?Ed(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ed(e,t.type,kr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gm(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 Ed(e,t,n){(t!=="number"||Ll(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var io=Array.isArray;function Zi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+kr(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _d(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ym(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(io(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:kr(n)}}function N0(e,t){var n=kr(t.value),r=kr(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 vm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function O0(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 Cd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?O0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ra,M0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ra=Ra||document.createElement("div"),Ra.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ra.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Po(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uo={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},nT=["Webkit","ms","Moz","O"];Object.keys(uo).forEach(function(e){nT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uo[t]=uo[e]})});function I0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uo.hasOwnProperty(e)&&uo[e]?(""+t).trim():t+"px"}function D0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=I0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var rT=we({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 Ad(e,t){if(t){if(rT[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 Pd(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 jd=null;function xf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rd=null,es=null,ts=null;function wm(e){if(e=fa(e)){if(typeof Rd!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Oc(t),Rd(e.stateNode,e.type,t))}}function L0(e){es?ts?ts.push(e):ts=[e]:es=e}function F0(){if(es){var e=es,t=ts;if(ts=es=null,wm(e),t)for(e=0;e<t.length;e++)wm(t[e])}}function z0(e,t){return e(t)}function U0(){}var ku=!1;function B0(e,t,n){if(ku)return e(t,n);ku=!0;try{return z0(e,t,n)}finally{ku=!1,(es!==null||ts!==null)&&(U0(),F0())}}function jo(e,t){var n=e.stateNode;if(n===null)return null;var r=Oc(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 Nd=!1;if(Nn)try{var Hs={};Object.defineProperty(Hs,"passive",{get:function(){Nd=!0}}),window.addEventListener("test",Hs,Hs),window.removeEventListener("test",Hs,Hs)}catch{Nd=!1}function iT(e,t,n,r,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var ho=!1,Fl=null,zl=!1,Od=null,sT={onError:function(e){ho=!0,Fl=e}};function oT(e,t,n,r,i,s,o,a,l){ho=!1,Fl=null,iT.apply(sT,arguments)}function aT(e,t,n,r,i,s,o,a,l){if(oT.apply(this,arguments),ho){if(ho){var c=Fl;ho=!1,Fl=null}else throw Error(N(198));zl||(zl=!0,Od=c)}}function mi(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 $0(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 xm(e){if(mi(e)!==e)throw Error(N(188))}function lT(e){var t=e.alternate;if(!t){if(t=mi(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return xm(i),e;if(s===r)return xm(i),t;s=s.sibling}throw Error(N(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function V0(e){return e=lT(e),e!==null?W0(e):null}function W0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=W0(e);if(t!==null)return t;e=e.sibling}return null}var H0=xt.unstable_scheduleCallback,bm=xt.unstable_cancelCallback,cT=xt.unstable_shouldYield,uT=xt.unstable_requestPaint,Se=xt.unstable_now,dT=xt.unstable_getCurrentPriorityLevel,bf=xt.unstable_ImmediatePriority,K0=xt.unstable_UserBlockingPriority,Ul=xt.unstable_NormalPriority,hT=xt.unstable_LowPriority,G0=xt.unstable_IdlePriority,Pc=null,pn=null;function fT(e){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(Pc,e,void 0,(e.current.flags&128)===128)}catch{}}var qt=Math.clz32?Math.clz32:gT,pT=Math.log,mT=Math.LN2;function gT(e){return e>>>=0,e===0?32:31-(pT(e)/mT|0)|0}var Na=64,Oa=4194304;function so(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 Bl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=so(a):(s&=o,s!==0&&(r=so(s)))}else o=n&~i,o!==0?r=so(o):s!==0&&(r=so(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-qt(t),i=1<<n,r|=e[n],t&=~i;return r}function yT(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 vT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-qt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=yT(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Md(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function q0(){var e=Na;return Na<<=1,!(Na&4194240)&&(Na=64),e}function Su(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function da(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qt(t),e[t]=n}function wT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-qt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function kf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var se=0;function Y0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var J0,Sf,X0,Q0,Z0,Id=!1,Ma=[],fr=null,pr=null,mr=null,Ro=new Map,No=new Map,er=[],xT="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 km(e,t){switch(e){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":pr=null;break;case"mouseover":case"mouseout":mr=null;break;case"pointerover":case"pointerout":Ro.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":No.delete(t.pointerId)}}function Ks(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=fa(t),t!==null&&Sf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function bT(e,t,n,r,i){switch(t){case"focusin":return fr=Ks(fr,e,t,n,r,i),!0;case"dragenter":return pr=Ks(pr,e,t,n,r,i),!0;case"mouseover":return mr=Ks(mr,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Ro.set(s,Ks(Ro.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,No.set(s,Ks(No.get(s)||null,e,t,n,r,i)),!0}return!1}function ew(e){var t=Kr(e.target);if(t!==null){var n=mi(t);if(n!==null){if(t=n.tag,t===13){if(t=$0(n),t!==null){e.blockedOn=t,Z0(e.priority,function(){X0(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 pl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Dd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);jd=r,n.target.dispatchEvent(r),jd=null}else return t=fa(n),t!==null&&Sf(t),e.blockedOn=n,!1;t.shift()}return!0}function Sm(e,t,n){pl(e)&&n.delete(t)}function kT(){Id=!1,fr!==null&&pl(fr)&&(fr=null),pr!==null&&pl(pr)&&(pr=null),mr!==null&&pl(mr)&&(mr=null),Ro.forEach(Sm),No.forEach(Sm)}function Gs(e,t){e.blockedOn===t&&(e.blockedOn=null,Id||(Id=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,kT)))}function Oo(e){function t(i){return Gs(i,e)}if(0<Ma.length){Gs(Ma[0],e);for(var n=1;n<Ma.length;n++){var r=Ma[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fr!==null&&Gs(fr,e),pr!==null&&Gs(pr,e),mr!==null&&Gs(mr,e),Ro.forEach(t),No.forEach(t),n=0;n<er.length;n++)r=er[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<er.length&&(n=er[0],n.blockedOn===null);)ew(n),n.blockedOn===null&&er.shift()}var ns=Fn.ReactCurrentBatchConfig,$l=!0;function ST(e,t,n,r){var i=se,s=ns.transition;ns.transition=null;try{se=1,Tf(e,t,n,r)}finally{se=i,ns.transition=s}}function TT(e,t,n,r){var i=se,s=ns.transition;ns.transition=null;try{se=4,Tf(e,t,n,r)}finally{se=i,ns.transition=s}}function Tf(e,t,n,r){if($l){var i=Dd(e,t,n,r);if(i===null)Ou(e,t,r,Vl,n),km(e,r);else if(bT(i,e,t,n,r))r.stopPropagation();else if(km(e,r),t&4&&-1<xT.indexOf(e)){for(;i!==null;){var s=fa(i);if(s!==null&&J0(s),s=Dd(e,t,n,r),s===null&&Ou(e,t,r,Vl,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Ou(e,t,r,null,n)}}var Vl=null;function Dd(e,t,n,r){if(Vl=null,e=xf(r),e=Kr(e),e!==null)if(t=mi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=$0(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 Vl=e,null}
vendor: 10,028 bytes, line 37
37function tw(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(dT()){case bf:return 1;case K0:return 4;case Ul:case hT:return 16;case G0:return 536870912;default:return 16}default:return 16}}var cr=null,Ef=null,ml=null;function nw(){if(ml)return ml;var e,t=Ef,n=t.length,r,i="value"in cr?cr.value:cr.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return ml=i.slice(e,1<r?1-r:void 0)}function gl(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 Ia(){return!0}function Tm(){return!1}function kt(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ia:Tm,this.isPropagationStopped=Tm,this}return we(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=Ia)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ia)},persist:function(){},isPersistent:Ia}),t}var Rs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_f=kt(Rs),ha=we({},Rs,{view:0,detail:0}),ET=kt(ha),Tu,Eu,qs,jc=we({},ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cf,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!==qs&&(qs&&e.type==="mousemove"?(Tu=e.screenX-qs.screenX,Eu=e.screenY-qs.screenY):Eu=Tu=0,qs=e),Tu)},movementY:function(e){return"movementY"in e?e.movementY:Eu}}),Em=kt(jc),_T=we({},jc,{dataTransfer:0}),CT=kt(_T),AT=we({},ha,{relatedTarget:0}),_u=kt(AT),PT=we({},Rs,{animationName:0,elapsedTime:0,pseudoElement:0}),jT=kt(PT),RT=we({},Rs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),NT=kt(RT),OT=we({},Rs,{data:0}),_m=kt(OT),MT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IT={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"},DT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=DT[e])?!!t[e]:!1}function Cf(){return LT}var FT=we({},ha,{key:function(e){if(e.key){var t=MT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?IT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cf,charCode:function(e){return e.type==="keypress"?gl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zT=kt(FT),UT=we({},jc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cm=kt(UT),BT=we({},ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cf}),$T=kt(BT),VT=we({},Rs,{propertyName:0,elapsedTime:0,pseudoElement:0}),WT=kt(VT),HT=we({},jc,{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}),KT=kt(HT),GT=[9,13,27,32],Af=Nn&&"CompositionEvent"in window,fo=null;Nn&&"documentMode"in document&&(fo=document.documentMode);var qT=Nn&&"TextEvent"in window&&!fo,rw=Nn&&(!Af||fo&&8<fo&&11>=fo),Am=" ",Pm=!1;function iw(e,t){switch(e){case"keyup":return GT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zi=!1;function YT(e,t){switch(e){case"compositionend":return sw(t);case"keypress":return t.which!==32?null:(Pm=!0,Am);case"textInput":return e=t.data,e===Am&&Pm?null:e;default:return null}}function JT(e,t){if(zi)return e==="compositionend"||!Af&&iw(e,t)?(e=nw(),ml=Ef=cr=null,zi=!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 rw&&t.locale!=="ko"?null:t.data;default:return null}}var XT={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 jm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!XT[e.type]:t==="textarea"}function ow(e,t,n,r){L0(r),t=Wl(t,"onChange"),0<t.length&&(n=new _f("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var po=null,Mo=null;function QT(e){yw(e,0)}function Rc(e){var t=$i(e);if(j0(t))return e}function ZT(e,t){if(e==="change")return t}var aw=!1;if(Nn){var Cu;if(Nn){var Au="oninput"in document;if(!Au){var Rm=document.createElement("div");Rm.setAttribute("oninput","return;"),Au=typeof Rm.oninput=="function"}Cu=Au}else Cu=!1;aw=Cu&&(!document.documentMode||9<document.documentMode)}function Nm(){po&&(po.detachEvent("onpropertychange",lw),Mo=po=null)}function lw(e){if(e.propertyName==="value"&&Rc(Mo)){var t=[];ow(t,Mo,e,xf(e)),B0(QT,t)}}function eE(e,t,n){e==="focusin"?(Nm(),po=t,Mo=n,po.attachEvent("onpropertychange",lw)):e==="focusout"&&Nm()}function tE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Rc(Mo)}function nE(e,t){if(e==="click")return Rc(t)}function rE(e,t){if(e==="input"||e==="change")return Rc(t)}function iE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xt=typeof Object.is=="function"?Object.is:iE;function Io(e,t){if(Xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!vd.call(t,i)||!Xt(e[i],t[i]))return!1}return!0}function Om(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mm(e,t){var n=Om(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=Om(n)}}function cw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uw(){for(var e=window,t=Ll();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ll(e.document)}return t}function Pf(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 sE(e){var t=uw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cw(n.ownerDocument.documentElement,n)){if(r!==null&&Pf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Mm(n,s);var o=Mm(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var oE=Nn&&"documentMode"in document&&11>
vendor: 4,874 bytes, line 37
37=document.documentMode,Ui=null,Ld=null,mo=null,Fd=!1;function Im(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fd||Ui==null||Ui!==Ll(r)||(r=Ui,"selectionStart"in r&&Pf(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}),mo&&Io(mo,r)||(mo=r,r=Wl(Ld,"onSelect"),0<r.length&&(t=new _f("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ui)))}function Da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Bi={animationend:Da("Animation","AnimationEnd"),animationiteration:Da("Animation","AnimationIteration"),animationstart:Da("Animation","AnimationStart"),transitionend:Da("Transition","TransitionEnd")},Pu={},dw={};Nn&&(dw=document.createElement("div").style,"AnimationEvent"in window||(delete Bi.animationend.animation,delete Bi.animationiteration.animation,delete Bi.animationstart.animation),"TransitionEvent"in window||delete Bi.transitionend.transition);function Nc(e){if(Pu[e])return Pu[e];if(!Bi[e])return e;var t=Bi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in dw)return Pu[e]=t[n];return e}var hw=Nc("animationend"),fw=Nc("animationiteration"),pw=Nc("animationstart"),mw=Nc("transitionend"),gw=new Map,Dm="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 jr(e,t){gw.set(e,t),pi(t,[e])}for(var ju=0;ju<Dm.length;ju++){var Ru=Dm[ju],aE=Ru.toLowerCase(),lE=Ru[0].toUpperCase()+Ru.slice(1);jr(aE,"on"+lE)}jr(hw,"onAnimationEnd");jr(fw,"onAnimationIteration");jr(pw,"onAnimationStart");jr("dblclick","onDoubleClick");jr("focusin","onFocus");jr("focusout","onBlur");jr(mw,"onTransitionEnd");ys("onMouseEnter",["mouseout","mouseover"]);ys("onMouseLeave",["mouseout","mouseover"]);ys("onPointerEnter",["pointerout","pointerover"]);ys("onPointerLeave",["pointerout","pointerover"]);pi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pi("onBeforeInput",["compositionend","keypress","textInput","paste"]);pi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cE=new Set("cancel close invalid load scroll toggle".split(" ").concat(oo));function Lm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,aT(r,t,void 0,e),e.currentTarget=null}function yw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Lm(i,a,c),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Lm(i,a,c),s=l}}}if(zl)throw e=Od,zl=!1,Od=null,e}function de(e,t){var n=t[Vd];n===void 0&&(n=t[Vd]=new Set);var r=e+"__bubble";n.has(r)||(vw(t,e,2,!1),n.add(r))}function Nu(e,t,n){var r=0;t&&(r|=4),vw(n,e,r,t)}var La="_reactListening"+Math.random().toString(36).slice(2);function Do(e){if(!e[La]){e[La]=!0,E0.forEach(function(n){n!=="selectionchange"&&(cE.has(n)||Nu(n,!1,e),Nu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[La]||(t[La]=!0,Nu("selectionchange",!1,t))}}function vw(e,t,n,r){switch(tw(t)){case 1:var i=ST;break;case 4:i=TT;break;default:i=Tf}n=i.bind(null,t,n,e),i=void 0,!Nd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ou(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;
vendor: 4,719 bytes, lines 37-38
37if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Kr(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}B0(function(){var c=s,u=xf(n),d=[];e:{var h=gw.get(e);if(h!==void 0){var p=_f,v=e;switch(e){case"keypress":if(gl(n)===0)break e;case"keydown":case"keyup":p=zT;break;case"focusin":v="focus",p=_u;break;case"focusout":v="blur",p=_u;break;case"beforeblur":case"afterblur":p=_u;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Em;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=CT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=$T;break;case hw:case fw:case pw:p=jT;break;case mw:p=WT;break;case"scroll":p=ET;break;case"wheel":p=KT;break;case"copy":case"cut":case"paste":p=NT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Cm}var y=(t&4)!==0,x=!y&&e==="scroll",m=y?h!==null?h+"Capture":null:h;y=[];for(var g=c,w;g!==null;){w=g;var k=w.stateNode;if(w.tag===5&&k!==null&&(w=k,m!==null&&(k=jo(g,m),k!=null&&y.push(Lo(g,k,w)))),x)break;g=g.return}0<y.length&&(h=new p(h,v,null,n,u),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==jd&&(v=n.relatedTarget||n.fromElement)&&(Kr(v)||v[On]))break e;if((p||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,p?(v=n.relatedTarget||n.toElement,p=c,v=v?Kr(v):null,v!==null&&(x=mi(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=c),p!==v)){if(y=Em,k="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=Cm,k="onPointerLeave",m="onPointerEnter",g="pointer"),x=p==null?h:$i(p),w=v==null?h:$i(v),h=new y(k,g+"leave",p,n,u),h.target=x,h.relatedTarget=w,k=null,Kr(u)===c&&(y=new y(m,g+"enter",v,n,u),y.target=w,y.relatedTarget=x,k=y),x=k,p&&v)t:{for(y=p,m=v,g=0,w=y;w;w=Ti(w))g++;for(w=0,k=m;k;k=Ti(k))w++;for(;0<g-w;)y=Ti(y),g--;for(;0<w-g;)m=Ti(m),w--;for(;g--;){if(y===m||m!==null&&y===m.alternate)break t;y=Ti(y),m=Ti(m)}y=null}else y=null;p!==null&&Fm(d,h,p,y,!1),v!==null&&x!==null&&Fm(d,x,v,y,!0)}}e:{if(h=c?$i(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var S=ZT;else if(jm(h))if(aw)S=rE;else{S=tE;var T=eE}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=nE);if(S&&(S=S(e,c))){ow(d,S,n,u);break e}T&&T(e,h,c),e==="focusout"&&(T=h._wrapperState)&&T.controlled&&h.type==="number"&&Ed(h,"number",h.value)}switch(T=c?$i(c):window,e){case"focusin":(jm(T)||T.contentEditable==="true")&&(Ui=T,Ld=c,mo=null);break;case"focusout":mo=Ld=Ui=null;break;case"mousedown":Fd=!0;break;case"contextmenu":case"mouseup":case"dragend":Fd=!1,Im(d,n,u);break;case"selectionchange":if(oE)break;case"keydown":case"keyup":Im(d,n,u)}var E;if(Af)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else zi?iw(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(rw&&n.locale!=="ko"&&(zi||_!=="onCompositionStart"?_==="onCompositionEnd"&&zi&&(E=nw()):(cr=u,Ef="value"in cr?cr.value:cr.textContent,zi=!0)),T=Wl(c,_),0<T.length&&(_=new _m(_,e,null,n,u),d.push({event:_,listeners:T}),E?_.data=E:(E=sw(n),E!==null&&(_.data=E)))),(E=qT?YT(e,n):JT(e,n))&&(c=Wl(c,"onBeforeInput"),0<c.length&&(u=new _m("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=E))}yw(d,t)})}function Lo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=jo(e,n),s!=null&&r.unshift(Lo(e,s,i)),s=jo(e,t),s!=null&&r.push(Lo(e,s,i))),e=e.return}return r}function Ti(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fm(e,t,n,r,i){for(var s=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,i?(l=jo(n,s),l!=null&&o.unshift(Lo(n,l,a))):i||(l=jo(n,s),l!=null&&o.push(Lo(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var uE=/\r\n?/g,dE=/\u0000|\uFFFD/g;function zm(e){return(typeof e=="string"?e:""+e).replace(uE,` 38`).replace(dE,"")}
vendor: 4,180 bytes, line 38
38function Fa(e,t,n){if(t=zm(t),zm(e)!==t&&n)throw Error(N(425))}function Hl(){}var zd=null,Ud=null;function Bd(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 $d=typeof setTimeout=="function"?setTimeout:void 0,hE=typeof clearTimeout=="function"?clearTimeout:void 0,Um=typeof Promise=="function"?Promise:void 0,fE=typeof queueMicrotask=="function"?queueMicrotask:typeof Um<"u"?function(e){return Um.resolve(null).then(e).catch(pE)}:$d;function pE(e){setTimeout(function(){throw e})}function Mu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Oo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Oo(t)}function gr(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 Bm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ns=Math.random().toString(36).slice(2),hn="__reactFiber$"+Ns,Fo="__reactProps$"+Ns,On="__reactContainer$"+Ns,Vd="__reactEvents$"+Ns,mE="__reactListeners$"+Ns,gE="__reactHandles$"+Ns;function Kr(e){var t=e[hn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[On]||n[hn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bm(e);e!==null;){if(n=e[hn])return n;e=Bm(e)}return t}e=n,n=e.parentNode}return null}function fa(e){return e=e[hn]||e[On],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $i(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Oc(e){return e[Fo]||null}var Wd=[],Vi=-1;function Rr(e){return{current:e}}function fe(e){0>Vi||(e.current=Wd[Vi],Wd[Vi]=null,Vi--)}function ce(e,t){Vi++,Wd[Vi]=e.current,e.current=t}var Sr={},Ye=Rr(Sr),lt=Rr(!1),li=Sr;function vs(e,t){var n=e.type.contextTypes;if(!n)return Sr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ct(e){return e=e.childContextTypes,e!=null}function Kl(){fe(lt),fe(Ye)}function $m(e,t,n){if(Ye.current!==Sr)throw Error(N(168));ce(Ye,t),ce(lt,n)}function ww(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(N(108,eT(e)||"Unknown",i));return we({},n,r)}function Gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sr,li=Ye.current,ce(Ye,e),ce(lt,lt.current),!0}function Vm(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=ww(e,t,li),r.__reactInternalMemoizedMergedChildContext=e,fe(lt),fe(Ye),ce(Ye,e)):fe(lt),ce(lt,n)}var Cn=null,Mc=!1,Iu=!1;function xw(e){Cn===null?Cn=[e]:Cn.push(e)}function yE(e){Mc=!0,xw(e)}function Nr(){if(!Iu&&Cn!==null){Iu=!0;var e=0,t=se;try{var n=Cn;for(se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Cn=null,Mc=!1}catch(i){throw Cn!==null&&(Cn=Cn.slice(e+1)),H0(bf,Nr),i}finally{se=t,Iu=!1}}return null}var Wi=[],Hi=0,ql=null,Yl=0,Et=[],_t=0,ci=null,Pn=1,jn="";function Br(e,t){Wi[Hi++]=Yl,Wi[Hi++]=ql,ql=e,Yl=t}function bw(e,t,n){Et[_t++]=Pn,Et[_t++]=jn,Et[_t++]=ci,ci=e;var r=Pn;e=jn;var i=32-qt(r)-1;r&=~(1<<i),n+=1;var s=32-qt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Pn=1<<32-qt(t)+i|n<<i|r,jn=s+e}else Pn=1<<s|n<<i|r,jn=e}function jf(e){e.return!==null&&(Br(e,1),bw(e,1,0))}function Rf(e){for(;e===ql;)ql=Wi[--Hi],Wi[Hi]=null,Yl=Wi[--Hi],Wi[Hi]=null;for(;e===ci;)ci=Et[--_t],Et[_t]=null,jn=Et[--_t],Et[_t]=null,Pn=Et[--_t],Et[_t]=null}var vt=null,yt=null,me=!1,Gt=null;function kw(e,t){var n=Ct(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 Wm(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 4,309 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,vt=e,yt=gr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ci!==null?{id:Pn,overflow:jn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vt=e,yt=null,!0):!1;default:return!1}}function Hd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Kd(e){if(me){var t=yt;if(t){var n=t;if(!Wm(e,t)){if(Hd(e))throw Error(N(418));t=gr(n.nextSibling);var r=vt;t&&Wm(e,t)?kw(r,n):(e.flags=e.flags&-4097|2,me=!1,vt=e)}}else{if(Hd(e))throw Error(N(418));e.flags=e.flags&-4097|2,me=!1,vt=e}}}function Hm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vt=e}function za(e){if(e!==vt)return!1;if(!me)return Hm(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bd(e.type,e.memoizedProps)),t&&(t=yt)){if(Hd(e))throw Sw(),Error(N(418));for(;t;)kw(e,t),t=gr(t.nextSibling)}if(Hm(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){yt=gr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yt=null}}else yt=vt?gr(e.stateNode.nextSibling):null;return!0}function Sw(){for(var e=yt;e;)e=gr(e.nextSibling)}function ws(){yt=vt=null,me=!1}function Nf(e){Gt===null?Gt=[e]:Gt.push(e)}var vE=Fn.ReactCurrentBatchConfig;function Ys(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Ua(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Km(e){var t=e._init;return t(e._payload)}function Tw(e){function t(m,g){if(e){var w=m.deletions;w===null?(m.deletions=[g],m.flags|=16):w.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function i(m,g){return m=xr(m,g),m.index=0,m.sibling=null,m}function s(m,g,w){return m.index=w,e?(w=m.alternate,w!==null?(w=w.index,w<g?(m.flags|=2,g):w):(m.flags|=2,g)):(m.flags|=1048576,g)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,w,k){return g===null||g.tag!==6?(g=$u(w,m.mode,k),g.return=m,g):(g=i(g,w),g.return=m,g)}function l(m,g,w,k){var S=w.type;return S===Fi?u(m,g,w.props.children,k,w.key):g!==null&&(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Qn&&Km(S)===g.type)?(k=i(g,w.props),k.ref=Ys(m,g,w),k.return=m,k):(k=Sl(w.type,w.key,w.props,null,m.mode,k),k.ref=Ys(m,g,w),k.return=m,k)}function c(m,g,w,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=Vu(w,m.mode,k),g.return=m,g):(g=i(g,w.children||[]),g.return=m,g)}function u(m,g,w,k,S){return g===null||g.tag!==7?(g=si(w,m.mode,k,S),g.return=m,g):(g=i(g,w),g.return=m,g)}function d(m,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=$u(""+g,m.mode,w),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Pa:return w=Sl(g.type,g.key,g.props,null,m.mode,w),w.ref=Ys(m,null,g),w.return=m,w;case Li:return g=Vu(g,m.mode,w),g.return=m,g;case Qn:var k=g._init;return d(m,k(g._payload),w)}if(io(g)||Ws(g))return g=si(g,m.mode,w,null),g.return=m,g;Ua(m,g)}return null}function h(m,g,w,k){var S=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return S!==null?null:a(m,g,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Pa:return w.key===S?l(m,g,w,k):null;case Li:return w.key===S?c(m,g,w,k):null;case Qn:return S=w._init,h(m,g,S(w._payload),k)}if(io(w)||Ws(w))return S!==null?null:u(m,g,w,k,null);Ua(m,w)}return null}
vendor: 1,544 bytes, line 38
38function p(m,g,w,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return m=m.get(w)||null,a(g,m,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Pa:return m=m.get(k.key===null?w:k.key)||null,l(g,m,k,S);case Li:return m=m.get(k.key===null?w:k.key)||null,c(g,m,k,S);case Qn:var T=k._init;return p(m,g,w,T(k._payload),S)}if(io(k)||Ws(k))return m=m.get(w)||null,u(g,m,k,S,null);Ua(g,k)}return null}function v(m,g,w,k){for(var S=null,T=null,E=g,_=g=0,P=null;E!==null&&_<w.length;_++){E.index>_?(P=E,E=null):P=E.sibling;var A=h(m,E,w[_],k);if(A===null){E===null&&(E=P);break}e&&E&&A.alternate===null&&t(m,E),g=s(A,g,_),T===null?S=A:T.sibling=A,T=A,E=P}if(_===w.length)return n(m,E),me&&Br(m,_),S;if(E===null){for(;_<w.length;_++)E=d(m,w[_],k),E!==null&&(g=s(E,g,_),T===null?S=E:T.sibling=E,T=E);return me&&Br(m,_),S}for(E=r(m,E);_<w.length;_++)P=p(E,m,_,w[_],k),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?_:P.key),g=s(P,g,_),T===null?S=P:T.sibling=P,T=P);return e&&E.forEach(function(F){return t(m,F)}),me&&Br(m,_),S}function y(m,g,w,k){var S=Ws(w);if(typeof S!="function")throw Error(N(150));if(w=S.call(w),w==null)throw Error(N(151));for(var T=S=null,E=g,_=g=0,P=null,A=w.next();E!==null&&!A.done;_++,A=w.next()){E.index>_?(P=E,E=null):P=E.sibling;var F=h(m,E,A.value,k);if(F===null){E===null&&(E=P);break}e&&E&&F.alternate===null&&t(m,E),g=s(F,g,_),T===null?S=F:T.sibling=F,T=F,E=P}if(A.done)return n(m,E),me&&Br(m,_),S;if(E===null){for(;!A.done;_++,A=w.next())A=d(m,A.value,k),A!==null&&(g=s(A,g,_),T===null?S=A
vendor: 18,319 bytes, lines 38-40
38:T.sibling=A,T=A);return me&&Br(m,_),S}for(E=r(m,E);!A.done;_++,A=w.next())A=p(E,m,_,A.value,k),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?_:A.key),g=s(A,g,_),T===null?S=A:T.sibling=A,T=A);return e&&E.forEach(function(I){return t(m,I)}),me&&Br(m,_),S}function x(m,g,w,k){if(typeof w=="object"&&w!==null&&w.type===Fi&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Pa:e:{for(var S=w.key,T=g;T!==null;){if(T.key===S){if(S=w.type,S===Fi){if(T.tag===7){n(m,T.sibling),g=i(T,w.props.children),g.return=m,m=g;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Qn&&Km(S)===T.type){n(m,T.sibling),g=i(T,w.props),g.ref=Ys(m,T,w),g.return=m,m=g;break e}n(m,T);break}else t(m,T);T=T.sibling}w.type===Fi?(g=si(w.props.children,m.mode,k,w.key),g.return=m,m=g):(k=Sl(w.type,w.key,w.props,null,m.mode,k),k.ref=Ys(m,g,w),k.return=m,m=k)}return o(m);case Li:e:{for(T=w.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(m,g.sibling),g=i(g,w.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Vu(w,m.mode,k),g.return=m,m=g}return o(m);case Qn:return T=w._init,x(m,g,T(w._payload),k)}if(io(w))return v(m,g,w,k);if(Ws(w))return y(m,g,w,k);Ua(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,w),g.return=m,m=g):(n(m,g),g=$u(w,m.mode,k),g.return=m,m=g),o(m)):n(m,g)}return x}var xs=Tw(!0),Ew=Tw(!1),Jl=Rr(null),Xl=null,Ki=null,Of=null;function Mf(){Of=Ki=Xl=null}function If(e){var t=Jl.current;fe(Jl),e._currentValue=t}function Gd(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 rs(e,t){Xl=e,Of=Ki=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(at=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(Of!==e)if(e={context:e,memoizedValue:t,next:null},Ki===null){if(Xl===null)throw Error(N(308));Ki=e,Xl.dependencies={lanes:0,firstContext:e}}else Ki=Ki.next=e;return t}var Gr=null;function Df(e){Gr===null?Gr=[e]:Gr.push(e)}function _w(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Df(t)):(n.next=i.next,i.next=n),t.interleaved=n,Mn(e,r)}function Mn(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 Zn=!1;function Lf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cw(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 Rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Mn(e,n)}return i=r.interleaved,i===null?(t.next=t,Df(r)):(t.next=i.next,i.next=t),r.interleaved=t,Mn(e,n)}function yl(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,kf(e,n)}}function Gm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ql(e,t,n,r){var i=e.updateQueue;Zn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=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(s!==null){var d=i.baseState;o=0,u=c=l=null,a=s;do{var h=a.lane,p=a.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,y=a;switch(h=t,p=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(p,d,h);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,h=typeof v=="function"?v.call(p,d,h):v,h==null)break e;d=we({},d,h);break e;case 2:Zn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);di|=o,e.lanes=o,e.memoizedState=d}}function qm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(N(191,i));i.call(r)}}}var pa={},mn=Rr(pa),zo=Rr(pa),Uo=Rr(pa);function qr(e){if(e===pa)throw Error(N(174));return e}function Ff(e,t){switch(ce(Uo,t),ce(zo,e),ce(mn,pa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cd(t,e)}fe(mn),ce(mn,t)}function bs(){fe(mn),fe(zo),fe(Uo)}function Aw(e){qr(Uo.current);var t=qr(mn.current),n=Cd(t,e.type);t!==n&&(ce(zo,e),ce(mn,n))}function zf(e){zo.current===e&&(fe(mn),fe(zo))}var ye=Rr(0);function Zl(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 Du=[];function Uf(){for(var e=0;e<Du.length;e++)Du[e]._workInProgressVersionPrimary=null;Du.length=0}var vl=Fn.ReactCurrentDispatcher,Lu=Fn.ReactCurrentBatchConfig,ui=0,ve=null,je=null,Oe=null,ec=!1,go=!1,Bo=0,wE=0;function He(){throw Error(N(321))}function Bf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xt(e[n],t[n]))return!1;return!0}function $f(e,t,n,r,i,s){if(ui=s,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vl.current=e===null||e.memoizedState===null?SE:TE,e=n(r,i),go){s=0;do{if(go=!1,Bo=0,25<=s)throw Error(N(301));s+=1,Oe=je=null,t.updateQueue=null,vl.current=EE,e=n(r,i)}while(go)}if(vl.current=tc,t=je!==null&&je.next!==null,ui=0,Oe=je=ve=null,ec=!1,t)throw Error(N(300));return e}function Vf(){var e=Bo!==0;return Bo=0,e}function rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?ve.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function Nt(){if(je===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Oe===null?ve.memoizedState:Oe.next;if(t!==null)Oe=t,je=e;else{if(e===null)throw Error(N(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Oe===null?ve.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function $o(e,t){return typeof t=="function"?t(e):t}function Fu(e){var t=Nt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=je,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,c=s;do{var u=c.lane;if((ui&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,ve.lanes|=u,di|=u}c=c.next}while(c!==null&&c!==s);l===null?o=r:l.next=a,Xt(r,t.memoizedState)||(at=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ve.lanes|=s,di|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zu(e){var t=Nt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Xt(s,t.memoizedState)||(at=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Pw(){}function jw(e,t){var n=ve,r=Nt(),i=t(),s=!Xt(r.memoizedState,i);if(s&&(r.memoizedState=i,at=!0),r=r.queue,Wf(Ow.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Oe!==null&&Oe.memoizedState.tag&1){if(n.flags|=2048,Vo(9,Nw.bind(null,n,r,i,t),void 0,null),Me===null)throw Error(N(349));ui&30||Rw(n,t,i)}return i}function Rw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Nw(e,t,n,r){t.value=n,t.getSnapshot=r,Mw(t)&&Iw(e)}function Ow(e,t,n){return n(function(){Mw(t)&&Iw(e)})}function Mw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xt(e,n)}catch{return!0}}function Iw(e){var t=Mn(e,1);t!==null&&Yt(t,e,1,-1)}function Ym(e){var t=rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e},t.queue=e,e=e.dispatch=kE.bind(null,ve,e),[t.memoizedState,e]}function Vo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.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 Dw(){return Nt().memoizedState}function wl(e,t,n,r){var i=rn();ve.flags|=e,i.memoizedState=Vo(1|t,n,void 0,r===void 0?null:r)}function Ic(e,t,n,r){var i=Nt();r=r===void 0?null:r;var s=void 0;if(je!==null){var o=je.memoizedState;if(s=o.destroy,r!==null&&Bf(r,o.deps)){i.memoizedState=Vo(t,n,s,r);return}}ve.flags|=e,i.memoizedState=Vo(1|t,n,s,r)}function Jm(e,t){return wl(8390656,8,e,t)}function Wf(e,t){return Ic(2048,8,e,t)}function Lw(e,t){return Ic(4,2,e,t)}function Fw(e,t){return Ic(4,4,e,t)}function zw(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 Uw(e,t,n){return n=n!=null?n.concat([e]):null,Ic(4,4,zw.bind(null,t,e),n)}function Hf(){}function Bw(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $w(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vw(e,t,n){return ui&21?(Xt(n,t)||(n=q0(),ve.lanes|=n,di|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,at=!0),e.memoizedState=n)}function xE(e,t){var n=se;se=n!==0&&4>n?n:4,e(!0);var r=Lu.transition;Lu.transition={};try{e(!1),t()}finally{se=n,Lu.transition=r}}function Ww(){return Nt().memoizedState}function bE(e,t,n){var r=wr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hw(e))Kw(t,n);else if(n=_w(e,t,n,r),n!==null){var i=tt();Yt(n,e,r,i),Gw(n,t,r)}}function kE(e,t,n){var r=wr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hw(e))Kw(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Xt(a,o)){var l=t.interleaved;l===null?(i.next=i,Df(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=_w(e,t,i,r),n!==null&&(i=tt(),Yt(n,e,r,i),Gw(n,t,r))}}function Hw(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Kw(e,t){go=ec=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kf(e,n)}}var tc={readContext:Rt,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useInsertionEffect:He,useLayoutEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useMutableSource:He,useSyncExternalStore:He,useId:He,unstable_isNewReconciler:!1},SE={readContext:Rt,useCallback:function(e,t){return rn().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:Jm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wl(4194308,4,zw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wl(4194308,4,e,t)},useInsertionEffect:function(e,t){return wl(4,2,e,t)},useMemo:function(e,t){var n=rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rn();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=bE.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=rn();return e={current:e},t.memoizedState=e},useState:Ym,useDebugValue:Hf,useDeferredValue:function(e){return rn().memoizedState=e},useTransition:function(){var e=Ym(!1),t=e[0];return e=xE.bind(null,e[1]),rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,i=rn();if(me){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Me===null)throw Error(N(349));ui&30||Rw(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Jm(Ow.bind(null,r,s,e),[e]),r.flags|=2048,Vo(9,Nw.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=rn(),t=Me.identifierPrefix;if(me){var n=jn,r=Pn;n=(r&~(1<<32-qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},TE={readContext:Rt,useCallback:Bw,useContext:Rt,useEffect:Wf,useImperativeHandle:Uw,useInsertionEffect:Lw,useLayoutEffect:Fw,useMemo:$w,useReducer:Fu,useRef:Dw,useState:function(){return Fu($o)},useDebugValue:Hf,useDeferredValue:function(e){var t=Nt();return Vw(t,je.memoizedState,e)},useTransition:function(){var e=Fu($o)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Pw,useSyncExternalStore:jw,useId:Ww,unstable_isNewReconciler:!1},EE={readContext:Rt,useCallback:Bw,useContext:Rt,useEffect:Wf,useImperativeHandle:Uw,useInsertionEffect:Lw,useLayoutEffect:Fw,useMemo:$w,useReducer:zu,useRef:Dw,useState:function(){return zu($o)},useDebugValue:Hf,useDeferredValue:function(e){var t=Nt();return je===null?t.memoizedState=e:Vw(t,je.memoizedState,e)},useTransition:function(){var e=zu($o)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Pw,useSyncExternalStore:jw,useId:Ww,unstable_isNewReconciler:!1};function Bt(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function qd(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Dc={isMounted:function(e){return(e=e._reactInternals)?mi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),i=wr(e),s=Rn(r,i);s.payload=t,n!=null&&(s.callback=n),t=yr(e,s,i),t!==null&&(Yt(t,e,i,r),yl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),i=wr(e),s=Rn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=yr(e,s,i),t!==null&&(Yt(t,e,i,r),yl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=wr(e),i=Rn(n,r);i.tag=2,t!=null&&(i.callback=t),t=yr(e,i,r),t!==null&&(Yt(t,e,r,n),yl(t,e,r))}};function Xm(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Io(n,r)||!Io(i,s):!0}function qw(e,t,n){var r=!1,i=Sr,s=t.contextType;return typeof s=="object"&&s!==null?s=Rt(s):(i=ct(t)?li:Ye.current,r=t.contextTypes,s=(r=r!=null)?vs(e,i):Sr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Dc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Qm(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&&Dc.enqueueReplaceState(t,t.state,null)}function Yd(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Lf(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Rt(s):(s=ct(t)?li:Ye.current,i.context=vs(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(qd(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Dc.enqueueReplaceState(i,i.state,null),Ql(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ks(e,t){try{var n="",r=t;do n+=ZS(r),r=r.return;while(r);var i=n}catch(s){i=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Uu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Jd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _E=typeof WeakMap=="function"?WeakMap:Map;function Yw(e,t,n){n=Rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rc||(rc=!0,oh=r),Jd(e,t)},n}
vendor: 10,843 bytes, line 40
40function Jw(e,t,n){n=Rn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Jd(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Jd(e,t),typeof r!="function"&&(vr===null?vr=new Set([this]):vr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Zm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _E;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=UE.bind(null,e,t,n),t.then(e,e))}function eg(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 tg(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Rn(-1,1),t.tag=2,yr(n,t,1))),n.lanes|=1),e)}var CE=Fn.ReactCurrentOwner,at=!1;function Xe(e,t,n,r){t.child=e===null?Ew(t,null,n,r):xs(t,e.child,n,r)}function ng(e,t,n,r,i){n=n.render;var s=t.ref;return rs(t,i),r=$f(e,t,n,r,s,i),n=Vf(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,In(e,t,i)):(me&&n&&jf(t),t.flags|=1,Xe(e,t,r,i),t.child)}function rg(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Zf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Xw(e,t,s,r,i)):(e=Sl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Io,n(o,r)&&e.ref===t.ref)return In(e,t,i)}return t.flags|=1,e=xr(s,r),e.ref=t.ref,e.return=t,t.child=e}function Xw(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Io(s,r)&&e.ref===t.ref)if(at=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(at=!0);else return t.lanes=e.lanes,In(e,t,i)}return Xd(e,t,n,r,i)}function Qw(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ce(qi,pt),pt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ce(qi,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ce(qi,pt),pt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ce(qi,pt),pt|=r;return Xe(e,t,i,n),t.child}function Zw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xd(e,t,n,r,i){var s=ct(n)?li:Ye.current;return s=vs(t,s),rs(t,i),n=$f(e,t,n,r,s,i),r=Vf(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,In(e,t,i)):(me&&r&&jf(t),t.flags|=1,Xe(e,t,n,i),t.child)}function ig(e,t,n,r,i){if(ct(n)){var s=!0;Gl(t)}else s=!1;if(rs(t,i),t.stateNode===null)xl(e,t),qw(t,n,r),Yd(t,n,r,i),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=Rt(c):(c=ct(n)?li:Ye.current,c=vs(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)&&Qm(t,o,r,c),Zn=!1;var h=t.memoizedState;o.state=h,Ql(t,r,o,i),l=t.memoizedState,a!==r||h!==l||lt.current||Zn?(typeof u=="function"&&(qd(t,n,u,r),l=t.memoizedState),(a=Zn||Xm(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,Cw(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Bt(t.type,a),o.props=c,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Rt(l):(l=ct(n)?li:Ye.current,l=vs(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Qm(t,o,r,l),Zn=!1,h=t.memoizedState,o.state=h,Ql(t,r,o,i);var v=t.memoizedState;a!==d||h!==v||lt.current||Zn?(typeof p=="function"&&(qd(t,n,p,r),v=t.memoizedState),(c=Zn||Xm(t,n,c,r,h,v,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,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=v),o.props=r,o.state=v,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 Qd(e,t,n,r,s,i)}function Qd(e,t,n,r,i,s){Zw(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Vm(t,n,!1),In(e,t,s);r=t.stateNode,CE.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=xs(t,e.child,null,s),t.child=xs(t,null,a,s)):Xe(e,t,a,s),t.memoizedState=r.state,i&&Vm(t,n,!0),t.child}function ex(e){var t=e.stateNode;t.pendingContext?$m(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$m(e,t.context,!1),Ff(e,t.containerInfo)}function sg(e,t,n,r,i){return ws(),Nf(i),t.flags|=256,Xe(e,t,n,r),t.child}var Zd={dehydrated:null,treeContext:null,retryLane:0};function eh(e){return{baseLanes:e,cachePool:null,transitions:null}}function tx(e,t,n){var r=t.pendingProps,i=ye.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ce(ye,i&1),e===null)return Kd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=zc(o,r,0,null),e=si(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=eh(n),t.memoizedState=Zd,e):Kf(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return AE(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=xr(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=xr(a,s):(s=si(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?eh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Zd,r}return s=e.child,e=s.sibling,r=xr(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Kf(e,t){return t=zc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ba(e,t,n,r){return r!==null&&Nf(r),xs(t,e.child,null,n),e=Kf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function AE(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Uu(Error(N(422))),Ba(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=zc({mode:"visible",children:r.children},i,0,null),s=si(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&xs(t,e.child,null,o),t.child.memoizedState=eh(o),t.memoizedState=Zd,s);if(!(t.mode&1))return Ba(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(N(419)),r=Uu(s,r,void 0),Ba(e,t,o,r)}if(a=(o&e.childLanes)!==0,at||a){if(r=Me,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Mn(e,i),Yt(r,e,i,-1))}return Qf(),r=Uu(Error(N(421))),Ba(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=BE.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,yt=gr(i.nextSibling),vt=t,me=!0,Gt=null,e!==null&&(Et[_t++]=Pn,Et[_t++]=jn,Et[_t++]=ci,Pn=e.id,jn=e.overflow,ci=t),t=Kf(t,r.children),t.flags|=4096,t)}function og(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gd(e.return,t,n)}function Bu(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function nx(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Xe(e,t,r.children,n),r=ye.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&&og(e,n,t);else if(e.tag===19)og(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ce(ye,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Zl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bu(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Zl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bu(t,!0,n,null,s);break;case"together":Bu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function In(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),di|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));
vendor: 4,174 bytes, line 40
40if(t.child!==null){for(e=t.child,n=xr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function PE(e,t,n){switch(t.tag){case 3:ex(t),ws();break;case 5:Aw(t);break;case 1:ct(t.type)&&Gl(t);break;case 4:Ff(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ce(Jl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ce(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?tx(e,t,n):(ce(ye,ye.current&1),e=In(e,t,n),e!==null?e.sibling:null);ce(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return nx(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ce(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,Qw(e,t,n)}return In(e,t,n)}var rx,th,ix,sx;rx=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}};th=function(){};ix=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qr(mn.current);var s=null;switch(n){case"input":i=Sd(e,i),r=Sd(e,r),s=[];break;case"select":i=we({},i,{value:void 0}),r=we({},r,{value:void 0}),s=[];break;case"textarea":i=_d(e,i),r=_d(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Hl)}Ad(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ao.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[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||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ao.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&de("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};sx=function(e,t,n,r){n!==r&&(t.flags|=4)};function Js(e,t){if(!me)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 Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function jE(e,t,n){var r=t.pendingProps;switch(Rf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return ct(t.type)&&Kl(),Ke(t),null;case 3:return r=t.stateNode,bs(),fe(lt),fe(Ye),Uf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(za(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gt!==null&&(ch(Gt),Gt=null))),th(e,t),Ke(t),null;case 5:zf(t);var i=qr(Uo.current);if(n=t.type,e!==null&&t.stateNode!=null)ix(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return Ke(t),null}if(e=qr(mn.current),za(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;
vendor: 29,316 bytes, line 40
40switch(r[hn]=t,r[Fo]=s,e=(t.mode&1)!==0,n){case"dialog":de("cancel",r),de("close",r);break;case"iframe":case"object":case"embed":de("load",r);break;case"video":case"audio":for(i=0;i<oo.length;i++)de(oo[i],r);break;case"source":de("error",r);break;case"img":case"image":case"link":de("error",r),de("load",r);break;case"details":de("toggle",r);break;case"input":mm(r,s),de("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},de("invalid",r);break;case"textarea":ym(r,s),de("invalid",r)}Ad(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Fa(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Fa(r.textContent,a,e),i=["children",""+a]):Ao.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&de("scroll",r)}switch(n){case"input":ja(r),gm(r,s,!0);break;case"textarea":ja(r),vm(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Hl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=O0(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[hn]=t,e[Fo]=r,rx(e,t,!1,!1),t.stateNode=e;e:{switch(o=Pd(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;i<oo.length;i++)de(oo[i],e);i=r;break;case"source":de("error",e),i=r;break;case"img":case"image":case"link":de("error",e),de("load",e),i=r;break;case"details":de("toggle",e),i=r;break;case"input":mm(e,r),i=Sd(e,r),de("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=we({},r,{value:void 0}),de("invalid",e);break;case"textarea":ym(e,r),i=_d(e,r),de("invalid",e);break;default:i=r}Ad(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?D0(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&M0(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Po(e,l):typeof l=="number"&&Po(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ao.hasOwnProperty(s)?l!=null&&s==="onScroll"&&de("scroll",e):l!=null&&gf(e,s,l,o))}switch(n){case"input":ja(e),gm(e,r,!1);break;case"textarea":ja(e),vm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+kr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Zi(e,!!r.multiple,s,!1):r.defaultValue!=null&&Zi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Hl)}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 Ke(t),null;case 6:if(e&&t.stateNode!=null)sx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=qr(Uo.current),qr(mn.current),za(t)){if(r=t.stateNode,n=t.memoizedProps,r[hn]=t,(s=r.nodeValue!==n)&&(e=vt,e!==null))switch(e.tag){case 3:Fa(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fa(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[hn]=t,t.stateNode=r}return Ke(t),null;case 13:if(fe(ye),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&yt!==null&&t.mode&1&&!(t.flags&128))Sw(),ws(),t.flags|=98560,s=!1;else if(s=za(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(N(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[hn]=t}else ws(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),s=!1}else Gt!==null&&(ch(Gt),Gt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ye.current&1?Ne===0&&(Ne=3):Qf())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return bs(),th(e,t),e===null&&Do(t.stateNode.containerInfo),Ke(t),null;case 10:return If(t.type._context),Ke(t),null;case 17:return ct(t.type)&&Kl(),Ke(t),null;case 19:if(fe(ye),s=t.memoizedState,s===null)return Ke(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Js(s,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Zl(e),o!==null){for(t.flags|=128,Js(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ce(ye,ye.current&1|2),t.child}e=e.sibling}s.tail!==null&&Se()>Ss&&(t.flags|=128,r=!0,Js(s,!1),t.lanes=4194304)}else{if(!r)if(e=Zl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Js(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!me)return Ke(t),null}else 2*Se()-s.renderingStartTime>Ss&&n!==1073741824&&(t.flags|=128,r=!0,Js(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Se(),t.sibling=null,n=ye.current,ce(ye,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return Xf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function RE(e,t){switch(Rf(t),t.tag){case 1:return ct(t.type)&&Kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bs(),fe(lt),fe(Ye),Uf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zf(t),null;case 13:if(fe(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));ws()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ye),null;case 4:return bs(),null;case 10:return If(t.type._context),null;case 22:case 23:return Xf(),null;case 24:return null;default:return null}}var $a=!1,qe=!1,NE=typeof WeakSet=="function"?WeakSet:Set,z=null;function Gi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function nh(e,t,n){try{n()}catch(r){ke(e,t,r)}}var ag=!1;function OE(e,t){if(zd=$l,e=uw(),Pf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,u=0,d=e,h=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===i&&(a=o),h===s&&++u===r&&(l=o),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},$l=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:Bt(t.type,y),x);m.__reactInternalSnapshotBeforeUpdate=g}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(k){ke(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return v=ag,ag=!1,v}function yo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&nh(t,n,s)}i=i.next}while(i!==r)}}function Lc(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 rh(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 ox(e){var t=e.alternate;t!==null&&(e.alternate=null,ox(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hn],delete t[Fo],delete t[Vd],delete t[mE],delete t[gE])),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 ax(e){return e.tag===5||e.tag===3||e.tag===4}function lg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ax(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 ih(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=Hl));else if(r!==4&&(e=e.child,e!==null))for(ih(e,t,n),e=e.sibling;e!==null;)ih(e,t,n),e=e.sibling}function sh(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(sh(e,t,n),e=e.sibling;e!==null;)sh(e,t,n),e=e.sibling}var Fe=null,Kt=!1;function Kn(e,t,n){for(n=n.child;n!==null;)lx(e,t,n),n=n.sibling}function lx(e,t,n){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(Pc,n)}catch{}switch(n.tag){case 5:qe||Gi(n,t);case 6:var r=Fe,i=Kt;Fe=null,Kn(e,t,n),Fe=r,Kt=i,Fe!==null&&(Kt?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Kt?(e=Fe,n=n.stateNode,e.nodeType===8?Mu(e.parentNode,n):e.nodeType===1&&Mu(e,n),Oo(e)):Mu(Fe,n.stateNode));break;case 4:r=Fe,i=Kt,Fe=n.stateNode.containerInfo,Kt=!0,Kn(e,t,n),Fe=r,Kt=i;break;case 0:case 11:case 14:case 15:if(!qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&nh(n,t,o),i=i.next}while(i!==r)}Kn(e,t,n);break;case 1:if(!qe&&(Gi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ke(n,t,a)}Kn(e,t,n);break;case 21:Kn(e,t,n);break;case 22:n.mode&1?(qe=(r=qe)||n.memoizedState!==null,Kn(e,t,n),qe=r):Kn(e,t,n);break;default:Kn(e,t,n)}}function cg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new NE),t.forEach(function(r){var i=$E.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Fe=a.stateNode,Kt=!1;break e;case 3:Fe=a.stateNode.containerInfo,Kt=!0;break e;case 4:Fe=a.stateNode.containerInfo,Kt=!0;break e}a=a.return}if(Fe===null)throw Error(N(160));lx(s,o,i),Fe=null,Kt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){ke(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)cx(t,e),t=t.sibling}function cx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),tn(e),r&4){try{yo(3,e,e.return),Lc(3,e)}catch(y){ke(e,e.return,y)}try{yo(5,e,e.return)}catch(y){ke(e,e.return,y)}}break;case 1:Dt(t,e),tn(e),r&512&&n!==null&&Gi(n,n.return);break;case 5:if(Dt(t,e),tn(e),r&512&&n!==null&&Gi(n,n.return),e.flags&32){var i=e.stateNode;try{Po(i,"")}catch(y){ke(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&R0(i,s),Pd(a,o);var c=Pd(a,s);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?D0(i,d):u==="dangerouslySetInnerHTML"?M0(i,d):u==="children"?Po(i,d):gf(i,u,d,c)}switch(a){case"input":Td(i,s);break;case"textarea":N0(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?Zi(i,!!s.multiple,p,!1):h!==!!s.multiple&&(s.defaultValue!=null?Zi(i,!!s.multiple,s.defaultValue,!0):Zi(i,!!s.multiple,s.multiple?[]:"",!1))}i[Fo]=s}catch(y){ke(e,e.return,y)}}break;case 6:if(Dt(t,e),tn(e),r&4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){ke(e,e.return,y)}}break;case 3:if(Dt(t,e),tn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Oo(t.containerInfo)}catch(y){ke(e,e.return,y)}break;case 4:Dt(t,e),tn(e);break;case 13:Dt(t,e),tn(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Yf=Se())),r&4&&cg(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(qe=(c=qe)||u,Dt(t,e),qe=c):Dt(t,e),tn(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(z=e,u=e.child;u!==null;){for(d=z=u;z!==null;){switch(h=z,p=h.child,h.tag){case 0:case 11:case 14:case 15:yo(4,h,h.return);break;case 1:Gi(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){ke(r,n,y)}}break;case 5:Gi(h,h.return);break;case 22:if(h.memoizedState!==null){dg(d);continue}}p!==null?(p.return=h,z=p):dg(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=I0("display",o))}catch(y){ke(e,e.return,y)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(y){ke(e,e.return,y)}}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:Dt(t,e),tn(e),r&4&&cg(e);break;case 21:break;default:Dt(t,e),tn(e)}}function tn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ax(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Po(i,""),r.flags&=-33);var s=lg(e);sh(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=lg(e);ih(e,a,o);break;default:throw Error(N(161))}}catch(l){ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ME(e,t,n){z=e,ux(e)}function ux(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var i=z,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||$a;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||qe;a=$a;var c=qe;if($a=o,(qe=l)&&!c)for(z=i;z!==null;)o=z,l=o.child,o.tag===22&&o.memoizedState!==null?hg(i):l!==null?(l.return=o,z=l):hg(i);for(;s!==null;)z=s,ux(s),s=s.sibling;z=i,$a=a,qe=c}ug(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,z=s):ug(e)}}function ug(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qe||Lc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Bt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&qm(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}qm(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&&Oo(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}qe||t.flags&512&&rh(t)}catch(h){ke(t,t.return,h)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function dg(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function hg(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Lc(4,t)}catch(l){ke(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ke(t,i,l)}}var s=t.return;try{rh(t)}catch(l){ke(t,s,l)}break;case 5:var o=t.return;try{rh(t)}catch(l){ke(t,o,l)}}}catch(l){ke(t,t.return,l)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var IE=Math.ceil,nc=Fn.ReactCurrentDispatcher,Gf=Fn.ReactCurrentOwner,Pt=Fn.ReactCurrentBatchConfig,ne=0,Me=null,Ce=null,Be=0,pt=0,qi=Rr(0),Ne=0,Wo=null,di=0,Fc=0,qf=0,vo=null,ot=null,Yf=0,Ss=1/0,Tn=null,rc=!1,oh=null,vr=null,Va=!1,ur=null,ic=0,wo=0,ah=null,bl=-1,kl=0;function tt(){return ne&6?Se():bl!==-1?bl:bl=Se()}function wr(e){return e.mode&1?ne&2&&Be!==0?Be&-Be:vE.transition!==null?(kl===0&&(kl=q0()),kl):(e=se,e!==0||(e=window.event,e=e===void 0?16:tw(e.type)),e):1}function Yt(e,t,n,r){if(50<wo)throw wo=0,ah=null,Error(N(185));da(e,n,r),(!(ne&2)||e!==Me)&&(e===Me&&(!(ne&2)&&(Fc|=n),Ne===4&&tr(e,Be)),ut(e,r),n===1&&ne===0&&!(t.mode&1)&&(Ss=Se()+500,Mc&&Nr()))}function ut(e,t){var n=e.callbackNode;vT(e,t);var r=Bl(e,e===Me?Be:0);if(r===0)n!==null&&bm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&bm(n),t===1)e.tag===0?yE(fg.bind(null,e)):xw(fg.bind(null,e)),fE(function(){!(ne&6)&&Nr()}),n=null;else{switch(Y0(r)){case 1:n=bf;break;case 4:n=K0;break;case 16:n=Ul;break;case 536870912:n=G0;break;default:n=Ul}n=vx(n,dx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function dx(e,t){if(bl=-1,kl=0,ne&6)throw Error(N(327));var n=e.callbackNode;if(is()&&e.callbackNode!==n)return null;var r=Bl(e,e===Me?Be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=sc(e,r);else{t=r;var i=ne;ne|=2;var s=fx();(Me!==e||Be!==t)&&(Tn=null,Ss=Se()+500,ii(e,t));do try{FE();break}catch(a){hx(e,a)}while(!0);Mf(),nc.current=s,ne=i,Ce!==null?t=0:(Me=null,Be=0,t=Ne)}if(t!==0){if(t===2&&(i=Md(e),i!==0&&(r=i,t=lh(e,i))),t===1)throw n=Wo,ii(e,0),tr(e,r),ut(e,Se()),n;if(t===6)tr(e,r);else{if(i=e.current.alternate,!(r&30)&&!DE(i)&&(t=sc(e,r),t===2&&(s=Md(e),s!==0&&(r=s,t=lh(e,s))),t===1))throw n=Wo,ii(e,0),tr(e,r),ut(e,Se()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:$r(e,ot,Tn);break;case 3:if(tr(e,r),(r&130023424)===r&&(t=Yf+500-Se(),10<t)){if(Bl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=$d($r.bind(null,e,ot,Tn),t);break}$r(e,ot,Tn);break;case 4:if(tr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-qt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*IE(r/1960))-r,10<r){e.timeoutHandle=$d($r.bind(null,e,ot,Tn),r);break}$r(e,ot,Tn);break;case 5:$r(e,ot,Tn);break;default:throw Error(N(329))}}}return ut(e,Se()),e.callbackNode===n?dx.bind(null,e):null}function lh(e,t){var n=vo;return e.current.memoizedState.isDehydrated&&(ii(e,t).flags|=256),e=sc(e,t),e!==2&&(t=ot,ot=n,t!==null&&ch(t)),e}function ch(e){ot===null?ot=e:ot.push.apply(ot,e)}function DE(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Xt(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function tr(e,t){for(t&=~qf,t&=~Fc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function fg(e){if(ne&6)throw Error(N(327));is();var t=Bl(e,0);if(!(t&1))return ut(e,Se()),null;var n=sc(e,t);if(e.tag!==0&&n===2){var r=Md(e);r!==0&&(t=r,n=lh(e,r))}if(n===1)throw n=Wo,ii(e,0),tr(e,t),ut(e,Se()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$r(e,ot,Tn),ut(e,Se()),null}function Jf(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(Ss=Se()+500,Mc&&Nr())}}function hi(e){ur!==null&&ur.tag===0&&!(ne&6)&&is();var t=ne;ne|=1;var n=Pt.transition,r=se;try{if(Pt.transition=null,se=1,e)return e()}finally{se=r,Pt.transition=n,ne=t,!(ne&6)&&Nr()}}function Xf(){pt=qi.current,fe(qi)}function ii(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hE(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(Rf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Kl();break;case 3:bs(),fe(lt),fe(Ye),Uf();break;case 5:zf(r);break;case 4:bs();break;case 13:fe(ye);break;case 19:fe(ye);break;case 10:If(r.type._context);break;case 22:case 23:Xf()}n=n.return}if(Me=e,Ce=e=xr(e.current,null),Be=pt=t,Ne=0,Wo=null,qf=Fc=di=0,ot=vo=null,Gr!==null){for(t=0;t<Gr.length;t++)if(n=Gr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Gr=null}return e}function hx(e,t){do{var n=Ce;try{if(Mf(),vl.current=tc,ec){for(var r=ve.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ec=!1}if(ui=0,Oe=je=ve=null,go=!1,Bo=0,Gf.current=null,n===null||n.return===null){Ne=1,Wo=t,Ce=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=Be,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 p=eg(o);if(p!==null){p.flags&=-257,tg(p,o,a,s,t),p.mode&1&&Zm(s,c,t),t=p,l=c;var v=t.updateQueue;if(v===null){var y=new Set;y.add(l),t.updateQueue=y}else v.add(l);break e}else{if(!(t&1)){Zm(s,c,t),Qf();break e}l=Error(N(426))}}else if(me&&a.mode&1){var x=eg(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),tg(x,o,a,s,t),Nf(ks(l,a));break e}}s=l=ks(l,a),Ne!==4&&(Ne=2),vo===null?vo=[s]:vo.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=Yw(s,l,t);Gm(s,m);break e;case 1:a=l;var g=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(vr===null||!vr.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var k=Jw(s,a,t);Gm(s,k);break e}}s=s.return}while(s!==null)}mx(n)}catch(S){t=S,Ce===n&&n!==null&&(Ce=n=n.return);continue}break}while(!0)}function fx(){var e=nc.current;return nc.current=tc,e===null?tc:e}function Qf(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Me===null||!(di&268435455)&&!(Fc&268435455)||tr(Me,Be)}function sc(e,t){var n=ne;ne|=2;var r=fx();(Me!==e||Be!==t)&&(Tn=null,ii(e,t));do try{LE();break}catch(i){hx(e,i)}while(!0);if(Mf(),ne=n,nc.current=r,Ce!==null)throw Error(N(261));return Me=null,Be=0,Ne}function LE(){for(;Ce!==null;)px(Ce)}function FE(){for(;Ce!==null&&!cT();)px(Ce)}function px(e){var t=yx(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?mx(e):Ce=t,Gf.current=null}function mx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=RE(n,t),n!==null){n.flags&=32767,Ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,Ce=null;return}}else if(n=jE(n,t,pt),n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Ne===0&&(Ne=5)}function $r(e,t,n){var r=se,i=Pt.transition;try{Pt.transition=null,se=1,zE(e,t,n,r)}finally{Pt.transition=i,se=r}return null}function zE(e,t,n,r){do is();while(ur!==null);if(ne&6)throw Error(N(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(wT(e,s),e===Me&&(Ce=Me=null,Be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Va||(Va=!0,vx(Ul,function(){return is(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Pt.transition,Pt.transition=null;var o=se;se=1;var a=ne;ne|=4,Gf.current=null,OE(e,n),cx(n,e),sE(Ud),$l=!!zd,Ud=zd=null,e.current=n,ME(n),uT(),ne=a,se=o,Pt.transition=s}else e.current=n;if(Va&&(Va=!1,ur=e,ic=i),s=e.pendingLanes,s===0&&(vr=null),fT(n.stateNode),ut(e,Se()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(rc)throw rc=!1,e=oh,oh=null,e;return ic&1&&e.tag!==0&&is(),s=e.pendingLanes,s&1?e===ah?wo++:(wo=0,ah=e):wo=0,Nr(),null}function is(){if(ur!==null){var e=Y0(ic),t=Pt.transition,n=se;try{if(Pt.transition=null,se=16>e?16:e,ur===null)var r=!1;else{if(e=ur,ur=null,ic=0,ne&6)throw Error(N(331));var i=ne;for(ne|=4,z=e.current;z!==null;){var s=z,o=s.child;if(z.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(z=c;z!==null;){var u=z;switch(u.tag){case 0:case 11:case 15:yo(8,u,s)}var d=u.child;if(d!==null)d.return=u,z=d;else for(;z!==null;){u=z;var h=u.sibling,p=u.return;if(ox(u),u===c){z=null;break}if(h!==null){h.return=p,z=h;break}z=p}}}var v=s.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}z=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,z=o;else e:for(;z!==null;){if(s=z,s.flags&2048)switch(s.tag){case 0:case 11:case 15:yo(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,z=m;break e}z=s.return}}var g=e.current;for(z=g;z!==null;){o=z;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,z=w;else e:for(o=g;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Lc(9,a)}}catch(S){ke(a,a.return,S)}if(a===o){z=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,z=k;break e}z=a.return}}if(ne=i,Nr(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(Pc,e)}catch{}r=!0}return r}finally{se=n,Pt.transition=t}}return!1}function pg(e,t,n){t=ks(n,t),t=Yw(e,t,1),e=yr(e,t,1),t=tt(),e!==null&&(da(e,1,t),ut(e,t))}function ke(e,t,n){if(e.tag===3)pg(e,e,n);else for(;t!==null;){if(t.tag===3){pg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(vr===null||!vr.has(r))){e=ks(n,e),e=Jw(t,e,1),t=yr(t,e,1),e=tt(),t!==null&&(da(t,1,e),ut(t,e));break}}t=t.return}}function UE(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Me===e&&(Be&n)===n&&(Ne===4||Ne===3&&(Be&130023424)===Be&&500>Se()-Yf?ii(e,0):qf|=n),ut(e,t)}function gx(e,t){t===0&&(e.mode&1?(t=Oa,Oa<<=1,!(Oa&130023424)&&(Oa=4194304)):t=1);var n=tt();e=Mn(e,t),e!==null&&(da(e,t,n),ut(e,n))}function BE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gx(e,n)}function $E(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),gx(e,n)}var yx;yx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)at=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return at=!1,PE(e,t,n);at=!!(e.flags&131072)}else at=!1,me&&t.flags&1048576&&bw(t,Yl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xl(e,t),e=t.pendingProps;var i=vs(t,Ye.current);rs(t,n),i=$f(null,t,r,e,i,n);var s=Vf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ct(r)?(s=!0,Gl(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Lf(t),i.updater=Dc,t.stateNode=i,i._reactInternals=t,Yd(t,r,e,n),t=Qd(null,t,r,!0,s,n)):(t.tag=0,me&&s&&jf(t),Xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=WE(r),e=Bt(r,e),i){case 0:t=Xd(null,t,r,e,n);break e;case 1:t=ig(null,t,r,e,n);break e;case 11:t=ng(null,t,r,e,n);break e;case 14:t=rg(null,t,r,Bt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt
vendor: 6,473 bytes, line 40
40(r,i),Xd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),ig(e,t,r,i,n);case 3:e:{if(ex(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Cw(e,t),Ql(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=ks(Error(N(423)),t),t=sg(e,t,r,n,i);break e}else if(r!==i){i=ks(Error(N(424)),t),t=sg(e,t,r,n,i);break e}else for(yt=gr(t.stateNode.containerInfo.firstChild),vt=t,me=!0,Gt=null,n=Ew(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ws(),r===i){t=In(e,t,n);break e}Xe(e,t,r,n)}t=t.child}return t;case 5:return Aw(t),e===null&&Kd(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Bd(r,i)?o=null:s!==null&&Bd(r,s)&&(t.flags|=32),Zw(e,t),Xe(e,t,o,n),t.child;case 6:return e===null&&Kd(t),null;case 13:return tx(e,t,n);case 4:return Ff(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xs(t,null,r,n):Xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),ng(e,t,r,i,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ce(Jl,r._currentValue),r._currentValue=o,s!==null)if(Xt(s.value,o)){if(s.children===i.children&&!lt.current){t=In(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Rn(-1,n&-n),l.tag=2;var c=s.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}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Gd(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Gd(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rs(t,n),i=Rt(i),r=r(i),t.flags|=1,Xe(e,t,r,n),t.child;case 14:return r=t.type,i=Bt(r,t.pendingProps),i=Bt(r.type,i),rg(e,t,r,i,n);case 15:return Xw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),xl(e,t),t.tag=1,ct(r)?(e=!0,Gl(t)):e=!1,rs(t,n),qw(t,r,i),Yd(t,r,i,n),Qd(null,t,r,!0,e,n);case 19:return nx(e,t,n);case 22:return Qw(e,t,n)}throw Error(N(156,t.tag))};function vx(e,t){return H0(e,t)}function VE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,r){return new VE(e,t,n,r)}function Zf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function WE(e){if(typeof e=="function")return Zf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vf)return 11;if(e===wf)return 14}return 2}function xr(e,t){var n=e.alternate;return n===null?(n=Ct(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 Sl(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Zf(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Fi:return si(n.children,i,s,t);case yf:o=8,i|=8;break;case wd:return e=Ct(12,n,t,i|2),e.elementType=wd,e.lanes=s,e;case xd:return e=Ct(13,n,t,i),e.elementType=xd,e.lanes=s,e;case bd:return e=Ct(19,n,t,i),e.elementType=bd,e.lanes=s,e;case A0:return zc(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _0:o=10;break e;case C0:o=9;break e;case vf:o=11;break e;case wf:o=14;break e;case Qn:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ct(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function si(e,t,n,r){return e=Ct(7,e,r,t),e.lanes=n,e}function zc(e,t,n,r){return e=Ct(22,e,r,t),e.elementType=A0,e.lanes=n,e.stateNode={isHidden:!1},e}function $u(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function Vu(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function HE(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Su(0),this.expirationTimes=Su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Su(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ep(e,t,n,r,i,s,o,a,l){return e=new HE(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ct(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lf(s),e}function KE(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Li,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function wx(e){if(!e)return Sr;e=e._reactInternals;e:{if(mi(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(ct(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(ct(n))return ww(e,n,t)}return t}function xx(e,t,n,r,i,s,o,a,l){return e=ep(n,r,!0,e,i,s,o,a,l),e.context=wx(null),n=e.current,r=tt(),i=wr
vendor: 4,199 bytes, line 40
40(n),s=Rn(r,i),s.callback=t??null,yr(n,s,i),e.current.lanes=i,da(e,i,r),ut(e,r),e}function Uc(e,t,n,r){var i=t.current,s=tt(),o=wr(i);return n=wx(n),t.context===null?t.context=n:t.pendingContext=n,t=Rn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=yr(i,t,o),e!==null&&(Yt(e,i,o,s),yl(e,i,o)),o}function oc(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 mg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tp(e,t){mg(e,t),(e=e.alternate)&&mg(e,t)}function GE(){return null}var bx=typeof reportError=="function"?reportError:function(e){console.error(e)};function np(e){this._internalRoot=e}Bc.prototype.render=np.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Uc(e,t,null,null)};Bc.prototype.unmount=np.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hi(function(){Uc(null,e,null,null)}),t[On]=null}};function Bc(e){this._internalRoot=e}Bc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Q0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<er.length&&t!==0&&t<er[n].priority;n++);er.splice(n,0,e),n===0&&ew(e)}};function rp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gg(){}function qE(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=oc(o);s.call(c)}}var o=xx(t,r,e,0,null,!1,!1,"",gg);return e._reactRootContainer=o,e[On]=o.current,Do(e.nodeType===8?e.parentNode:e),hi(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=oc(l);a.call(c)}}var l=ep(e,0,!1,null,null,!1,!1,"",gg);return e._reactRootContainer=l,e[On]=l.current,Do(e.nodeType===8?e.parentNode:e),hi(function(){Uc(t,l,n,r)}),l}function Vc(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=oc(o);a.call(l)}}Uc(t,o,e,i)}else o=qE(n,t,e,i,r);return oc(o)}J0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=so(t.pendingLanes);n!==0&&(kf(t,n|1),ut(t,Se()),!(ne&6)&&(Ss=Se()+500,Nr()))}break;case 13:hi(function(){var r=Mn(e,1);if(r!==null){var i=tt();Yt(r,e,1,i)}}),tp(e,1)}};Sf=function(e){if(e.tag===13){var t=Mn(e,134217728);if(t!==null){var n=tt();Yt(t,e,134217728,n)}tp(e,134217728)}};X0=function(e){if(e.tag===13){var t=wr(e),n=Mn(e,t);if(n!==null){var r=tt();Yt(n,e,t,r)}tp(e,t)}};Q0=function(){return se};Z0=function(e,t){var n=se;try{return se=e,t()}finally{se=n}};Rd=function(e,t,n){switch(t){case"input":if(Td(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Oc(r);if(!i)throw Error(N(90));j0(r),Td(r,i)}}}break;case"textarea":N0(e,n);break;case"select":t=n.value,t!=null&&Zi(e,!!n.multiple,t,!1)}};z0=Jf;U0=hi;var YE={usingClientEntryPoint:!1,Events:[fa,$i,Oc,L0,F0,Jf]},Xs={findFiberByHostInstance:Kr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},JE={bundleType:Xs.bundleType,version:Xs.version,rendererPackageName:Xs.rendererPackageName,rendererConfig:Xs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=V0(e),e===null?null:e.stateNode},findFiberByHostInstance:Xs.findFiberByHostInstance||GE,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 Wa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wa.isDisabled&&Wa.supportsFiber)try{Pc=Wa.inject(JE),pn=Wa}catch{}}
40bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YE;bt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rp(t))throw Error(N(200));return KE(e,t,null,n)};bt.createRoot=function(e,t){if(!rp(e))throw Error(N(299));var n=!1,r="",i=bx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,!1,r,i),e[On]=t.current,Do(e.nodeType===8?e.parentNode:e),new np(t)};bt.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=V0(t),e=e===null?null:e.stateNode,e};bt.flushSync=function(e){return hi(e)};bt.hydrate=function(e,t,n){if(!$c(t))throw Error(N(200));return Vc(null,e,t,!0,n)};bt.hydrateRoot=function(e,t,n){if(!rp(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=bx;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=xx(t,null,e,1,n??null,i,!1,s,o),e[On]=t.current,Do(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Bc(t)};bt.render=function(e,t,n){if(!$c(t))throw Error(N(200));return Vc(null,e,t,!1,n)};bt.unmountComponentAtNode=function(e){if(!$c(e))throw Error(N(40));return e._reactRootContainer?(hi(function(){Vc(null,null,e,!1,function(){e._reactRootContainer=null,e[On]=null})}),!0):!1};bt.unstable_batchedUpdates=Jf;bt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!$c(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return Vc(e,t,n,!1,r)};bt.version="18.3.1-next-f1338f8080-20240426";function kx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kx)}catch(e){console.error(e)}}kx(),k0.exports=bt;var ma=k0.exports;const Sx=c0(ma);var Tx,yg=ma;Tx=yg.createRoot,yg.hydrateRoot;var Wc=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(){}},Hc=typeof window>"u"||"Deno"in globalThis;function $t(){}function XE(e,t){return typeof e=="function"?e(t):e}function QE(e){return typeof e=="number"&&e>=0&&e!==1/0}function ZE(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uh(e,t){return typeof e=="function"?e(t):e}function e_(e,t){return typeof e=="function"?e(t):e}function vg(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==ip(o,t.options))return!1}else if(!Ko(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function wg(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Ho(t.options.mutationKey)!==Ho(s))return!1}else if(!Ko(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ip(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ho)(e)}function Ho(e){return JSON.stringify(e,(t,n)=>dh(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ko(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ko(e[n],t[n])):!1}function Ex(e,t){if(e===t)return e;const n=xg(e)&&xg(t);if(n||dh(e)&&dh(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{},l=new Set(r);let c=0;for(let u=0;u<o;u++){const d=n?u:s[u];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Ex(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return i===o&&c===i?e:a}return t}function xg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dh(e){if(!bg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!bg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function bg(e){return Object.prototype.toString.call(e)==="[object Object]"}function t_(e){return new Promise(t=>{setTimeout(t,e)})}function n_(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ex(e,t):t}function r_(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function i_(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var sp=Symbol();function _x(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===sp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Qr,ir,cs,t0,s_=(t0=class extends Wc{constructor(){super();re(this,Qr);re(this,ir);re(this,cs);X(this,cs,t=>{if(!Hc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,ir)||this.setEventListener(R(this,cs))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,ir))==null||t.call(this),X(this,ir,void 0))}setEventListener(t){var n;X(this,cs,t),(n=R(this,ir))==null||n.call(this),X(this,ir,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,Qr)!==t&&(X(this,Qr,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,369 bytes, line 40
40this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,Qr)=="boolean"?R(this,Qr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Qr=new WeakMap,ir=new WeakMap,cs=new WeakMap,t0),Cx=new s_,us,sr,ds,n0,o_=(n0=class extends Wc{constructor(){super();re(this,us,!0);re(this,sr);re(this,ds);X(this,ds,t=>{if(!Hc&&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(){R(this,sr)||this.setEventListener(R(this,ds))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,sr))==null||t.call(this),X(this,sr,void 0))}setEventListener(t){var n;X(this,ds,t),(n=R(this,sr))==null||n.call(this),X(this,sr,t(this.setOnline.bind(this)))}setOnline(t){R(this,us)!==t&&(X(this,us,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,us)}},us=new WeakMap,sr=new WeakMap,ds=new WeakMap,n0),ac=new o_;function a_(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function l_(e){return Math.min(1e3*2**e,3e4)}function Ax(e){return(e??"online")==="online"?ac.isOnline():!0}var Px=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Wu(e){return e instanceof Px}function jx(e){let t=!1,n=0,r=!1,i;const s=a_(),o=y=>{var x;r||(h(new Px(y)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>Cx.isFocused()&&(e.networkMode==="always"||ac.isOnline())&&e.canRun(),u=()=>Ax(e.networkMode)&&e.canRun(),d=y=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,y),i==null||i(),s.resolve(y))},h=y=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,y),i==null||i(),s.reject(y))},p=()=>new Promise(y=>{var x;i=m=>{(r||c())&&y(m)},(x=e.onPause)==null||x.call(e)}).then(()=>{var y;i=void 0,r||(y=e.onContinue)==null||y.call(e)}),v=()=>{if(r)return;let y;const x=n===0?e.initialPromise:void 0;try{y=x??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(d).catch(m=>{var T;if(r)return;const g=e.retry??(Hc?0:3),w=e.retryDelay??l_,k=typeof w=="function"?w(n,m):w,S=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,m);if(t||!S){h(m);return}n++,(T=e.onFail)==null||T.call(e,n,m),t_(k).then(()=>c()?void 0:p()).then(()=>{t?h(m):v()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?v():p().then(v),s)}}var c_=e=>setTimeout(e,0);function u_(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=c_;const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Qe=u_(),Zr,r0,Rx=(r0=class{constructor(){re(this,Zr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),QE(this.gcTime)&&X(this,Zr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hc?1/0:5*60*1e3))}clearGcTimeout(){R(this,Zr)&&(clearTimeout(R(this,Zr)),X(this,Zr,void 0))}},Zr=new WeakMap,r0),hs,ei,Tt,ti,Ge,la,ni,Wt,Sn,i0,d_=(i0=class extends Rx{constructor(t){super();re(this,Wt);re(this,hs);re(this,ei);re(this,Tt);re(this,ti);re(this,Ge);re(this,la);re(this,ni);X(this,ni,!1),X(this,la,t.defaultOptions),this.setOptions(t.options),this.observers=[],X(this,ti,t.client),X(this,Tt,R(this,ti).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,X(this,hs,f_(this.options)),this.state=t.state??R(this,hs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,Ge))==null?void 0:t.promise}setOptions(t){this.options={...R(this,la),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,Tt).remove(this)}setData(t,n){const r=n_(this.state.data,t,this.options);return We(this,Wt,Sn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}
vendor: 1,817 bytes, line 40
40setState(t,n){We(this,Wt,Sn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=R(this,Ge))==null?void 0:r.promise;return(i=R(this,Ge))==null||i.cancel(t),n?n.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,hs))}isActive(){return this.observers.some(t=>e_(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>uh(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:!ZE(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Ge))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Ge))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,Ge)&&(R(this,ni)?R(this,Ge).cancel({revert:!0}):R(this,Ge).cancelRetry()),this.scheduleGc()),R(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||We(this,Wt,Sn).call(this,{type:"invalidate"})}
vendor: 6,523 bytes, line 40
40fetch(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(R(this,Ge))return R(this,Ge).continueRetry(),R(this,Ge).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(X(this,ni,!0),r.signal)})},s=()=>{const h=_x(this.options,n),v=(()=>{const y={client:R(this,ti),queryKey:this.queryKey,meta:this.meta};return i(y),y})();return X(this,ni,!1),this.options.persister?this.options.persister(h,v,this):h(v)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,ti),state:this.state,fetchFn:s};return i(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),X(this,ei,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&We(this,Wt,Sn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var p,v,y,x;Wu(h)&&h.silent||We(this,Wt,Sn).call(this,{type:"error",error:h}),Wu(h)||((v=(p=R(this,Tt).config).onError)==null||v.call(p,h,this),(x=(y=R(this,Tt).config).onSettled)==null||x.call(y,this.state.data,h,this)),this.scheduleGc()};return X(this,Ge,jx({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,v,y,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(m){l(m);return}(v=(p=R(this,Tt).config).onSuccess)==null||v.call(p,h,this),(x=(y=R(this,Tt).config).onSettled)==null||x.call(y,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,p)=>{We(this,Wt,Sn).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{We(this,Wt,Sn).call(this,{type:"pause"})},onContinue:()=>{We(this,Wt,Sn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),R(this,Ge).start()}},hs=new WeakMap,ei=new WeakMap,Tt=new WeakMap,ti=new WeakMap,Ge=new WeakMap,la=new WeakMap,ni=new WeakMap,Wt=new WeakSet,Sn=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,...h_(r.data,this.options),fetchMeta:t.meta??null};case"success":return X(this,ei,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 i=t.error;return Wu(i)&&i.revert&&R(this,ei)?{...R(this,ei),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,Tt).notify({query:this,type:"updated",action:t})})},i0);function h_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ax(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function f_(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 an,s0,p_=(s0=class extends Wc{constructor(t={}){super();re(this,an);this.config=t,X(this,an,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??ip(i,n);let o=this.get(s);return o||(o=new d_({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){R(this,an).has(t.queryHash)||(R(this,an).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,an).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,an).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,an).get(t)}getAll(){return[...R(this,an).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vg(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>vg(t,r)):n}notify(t){Qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},an=new WeakMap,s0),ln,Je,ri,cn,Yn,o0,m_=(o0=class extends Rx{constructor(t){super();re(this,cn);re(this,ln);re(this,Je);re(this,ri);this.mutationId=t.mutationId,X(this,Je,t.mutationCache),X(this,ln,[]),this.state=t.state||g_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,ln).includes(t)||(R(this,ln).push(t),this.clearGcTimeout(),R(this,Je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){X(this,ln,R(this,ln).filter(n=>n!==t)),this.scheduleGc(),R(this,Je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,ln).length||(this.state.status==="pending"?this.scheduleGc():R(this,Je).remove(this))}continue(){var t;return((t=R(this,ri))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,a,l,c,u,d,h,p,v,y,x,m,g,w,k,S,T,E,_;const n=()=>{We(this,cn,Yn).call(this,{type:"continue"})};X(this,ri,jx({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,A)=>{We(this,cn,Yn).call(this,{type:"failed",failureCount:P,error:A})},onPause:()=>{We(this,cn,Yn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Je).canRun(this)}));const r=this.state.status==="pending",i=!R(this,ri).canStart();try{if(r)n();else{We(this,cn,Yn).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(s=R(this,Je).config).onMutate)==null?void 0:o.call(s,t,this));
40const A=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));A!==this.state.context&&We(this,cn,Yn).call(this,{type:"pending",context:A,variables:t,isPaused:i})}const P=await R(this,ri).start();return await((u=(c=R(this,Je).config).onSuccess)==null?void 0:u.call(c,P,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,P,t,this.state.context)),await((v=(p=R(this,Je).config).onSettled)==null?void 0:v.call(p,P,null,this.state.variables,this.state.context,this)),await((x=(y=this.options).onSettled)==null?void 0:x.call(y,P,null,t,this.state.context)),We(this,cn,Yn).call(this,{type:"success",data:P}),P}catch(P){try{throw await((g=(m=R(this,Je).config).onError)==null?void 0:g.call(m,P,t,this.state.context,this)),await((k=(w=this.options).onError)==null?void 0:k.call(w,P,t,this.state.context)),await((T=(S=R(this,Je).config).onSettled)==null?void 0:T.call(S,void 0,P,this.state.variables,this.state.context,this)),await((_=(E=this.options).onSettled)==null?void 0:_.call(E,void 0,P,t,this.state.context)),P}finally{We(this,cn,Yn).call(this,{type:"error",error:P})}}finally{R(this,Je).runNext(this)}}},ln=new WeakMap,Je=new WeakMap,ri=new WeakMap,cn=new WeakSet,Yn=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),Qe.batch(()=>{R(this,ln).forEach(r=>{r.onMutationUpdate(t)}),R(this,Je).notify({mutation:this,type:"updated",action:t})})},o0);function g_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var An,Ht,ca,a0,y_=(a0=class extends Wc{constructor(t={}){super();re(this,An);re(this,Ht);re(this,ca);this.config=t,X(this,An,new Set),X(this,Ht,new Map),X(this,ca,0)}build(t,n,r){const i=new m_({mutationCache:this,mutationId:++Ca(this,ca)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){R(this,An).add(t);const n=Ha(t);if(typeof n=="string"){const r=R(this,Ht).get(n);r?r.push(t):R(this,Ht).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,An).delete(t)){const n=Ha(t);if(typeof n=="string"){const r=R(this,Ht).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&R(this,Ht).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ha(t);if(typeof n=="string"){const r=R(this,Ht).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Ha(t);if(typeof n=="string"){const i=(r=R(this,Ht).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Qe.batch(()=>{R(this,An).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,An).clear(),R(this,Ht).clear()})}getAll(){return Array.from(R(this,An))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wg(n,r))}findAll(t={}){return this.getAll().filter(n=>wg(t,n))}notify(t){Qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qe.batch(()=>Promise.all(t.map(n=>n.continue().catch($t))))}},An=new WeakMap,Ht=new WeakMap,ca=new WeakMap,a0);function Ha(e){var t;return(t=e.options.scope)==null?void 0:t.id}function kg(e){return{onFetch:(t,n)=>{var u,d,h,p,v;const r=t.options,i=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let y=!1;const x=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)}
vendor: 8,316 bytes, lines 40-49
40)},m=_x(t.options,t.fetchOptions),g=async(w,k,S)=>{if(y)return Promise.reject();if(k==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:k,direction:S?"backward":"forward",meta:t.options.meta};return x(F),F})(),_=await m(E),{maxPages:P}=t.options,A=S?i_:r_;return{pages:A(w.pages,_,P),pageParams:A(w.pageParams,k,P)}};if(i&&s.length){const w=i==="backward",k=w?v_:Sg,S={pages:s,pageParams:o},T=k(r,S);a=await g(S,T,w)}else{const w=e??s.length;do{const k=l===0?o[0]??r.initialPageParam:Sg(r,a);if(l>0&&k==null)break;a=await g(a,k),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var y,x;return(x=(y=t.options).persister)==null?void 0:x.call(y,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Sg(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 v_(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 xe,or,ar,fs,ps,lr,ms,gs,l0,w_=(l0=class{constructor(e={}){re(this,xe);re(this,or);re(this,ar);re(this,fs);re(this,ps);re(this,lr);re(this,ms);re(this,gs);X(this,xe,e.queryCache||new p_),X(this,or,e.mutationCache||new y_),X(this,ar,e.defaultOptions||{}),X(this,fs,new Map),X(this,ps,new Map),X(this,lr,0)}mount(){Ca(this,lr)._++,R(this,lr)===1&&(X(this,ms,Cx.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,xe).onFocus())})),X(this,gs,ac.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,xe).onOnline())})))}unmount(){var e,t;Ca(this,lr)._--,R(this,lr)===0&&((e=R(this,ms))==null||e.call(this),X(this,ms,void 0),(t=R(this,gs))==null||t.call(this),X(this,gs,void 0))}isFetching(e){return R(this,xe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,or).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,xe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,xe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(uh(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,xe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=R(this,xe).get(r.queryHash),s=i==null?void 0:i.state.data,o=XE(t,s);if(o!==void 0)return R(this,xe).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Qe.batch(()=>R(this,xe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,xe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,xe);Qe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,xe);return Qe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Qe.batch(()=>R(this,xe).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then($t).catch($t)}invalidateQueries(e,t={}){return Qe.batch(()=>(R(this,xe).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=Qe.batch(()=>R(this,xe).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch($t)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then($t)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,xe).build(this,t);return n.isStaleByTime(uh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($t).catch($t)}fetchInfiniteQuery(e){return e.behavior=kg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($t).catch($t)}ensureInfiniteQueryData(e){return e.behavior=kg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ac.isOnline()?R(this,or).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,xe)}getMutationCache(){return R(this,or)}getDefaultOptions(){return R(this,ar)}setDefaultOptions(e){X(this,ar,e)}setQueryDefaults(e,t){R(this,fs).set(Ho(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,fs).values()],n={};return t.forEach(r=>{Ko(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,ps).set(Ho(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,ps).values()],n={};return t.forEach(r=>{Ko(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,ar).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ip(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===sp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,ar).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,xe).clear(),R(this,or).clear()}},xe=new WeakMap,or=new WeakMap,ar=new WeakMap,fs=new WeakMap,ps=new WeakMap,lr=new WeakMap,ms=new WeakMap,gs=new WeakMap,l0),x_=b.createContext(void 0),b_=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(x_.Provider,{value:e,children:t}));/** 41 * @remix-run/router v1.23.0 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function Go(){return Go=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},Go.apply(this,arguments)}var dr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(dr||(dr={}));const Tg="popstate";function k_(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return hh("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:lc(i)}return T_(t,n,null,e)}function Ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function S_(){return Math.random().toString(36).substr(2,8)}function Eg(e,t){return{usr:e.state,key:e.key,idx:t}}function hh(e,t,n,r){return n===void 0&&(n=null),Go({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Os(t):t,{state:n,key:t&&t.key||r||S_()})}function lc(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 Os(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 T_(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=dr.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Go({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=dr.Pop;let x=u(),m=x==null?null:x-c;c=x,l&&l({action:a,location:y.location,delta:m})}function h(x,m){a=dr.Push;let g=hh(y.location,x,m);c=u()+1;let w=Eg(g,c),k=y.createHref(g);try{o.pushState(w,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(k)}s&&l&&l({action:a,location:y.location,delta:1})}function p(x,m){a=dr.Replace;let g=hh(y.location,x,m);c=u();let w=Eg(g,c),k=y.createHref(g);o.replaceState(w,"",k),s&&l&&l({action:a,location:y.location,delta:0})}function v(x){let m=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof x=="str
49ing"?x:lc(x);return g=g.replace(/ $/,"%20"),Ae(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let y={get action(){return a},get location(){return e(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Tg,d),l=x,()=>{i.removeEventListener(Tg,d),l=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let m=v(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:p,go(x){return o.go(x)}};return y}var _g;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_g||(_g={}));function E_(e,t,n){return n===void 0&&(n="/"),__(e,t,n,!1)}function __(e,t,n,r){let i=typeof t=="string"?Os(t):t,s=op(i.pathname||"/",n);if(s==null)return null;let o=Ox(e);C_(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=F_(s);a=D_(o[l],c,r)}return a}function Ox(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Ae(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=br([r,l.relativePath]),u=n.concat(l);s.children&&s.children.length>0&&(Ae(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ox(s.children,t,u,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:M_(c,s.index),routesMeta:u})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of Mx(s.path))i(s,o,l)}),t}function Mx(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Mx(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function C_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:I_(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const A_=/^:[\w-]+$/,P_=3,j_=2,R_=1,N_=10,O_=-2,Cg=e=>e==="*";function M_(e,t){let n=e.split("/"),r=n.length;return n.some(Cg)&&(r+=O_),t&&(r+=j_),n.filter(i=>!Cg(i)).reduce((i,s)=>i+(A_.test(s)?P_:s===""?R_:N_),r)}function I_(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function D_(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=s==="/"?t:t.slice(s.length)||"/",d=Ag({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Ag({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 6,917 bytes, lines 49-58
49Object.assign(i,d.params),o.push({params:i,pathname:br([s,d.pathname]),pathnameBase:$_(br([s,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(s=br([s,d.pathnameBase]))}return o}function Ag(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=L_(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:h,isOptional:p}=u;if(h==="*"){let y=a[d]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const v=a[d];return p&&!v?c[h]=void 0:c[h]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function L_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Nx(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function F_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nx(!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 op(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 z_(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Os(e):e;return{pathname:n?n.startsWith("/")?n:U_(n,t):t,search:V_(r),hash:W_(i)}}function U_(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Hu(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 B_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ix(e,t){let n=B_(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Dx(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Os(e):(i=Go({},e),Ae(!i.pathname||!i.pathname.includes("?"),Hu("?","pathname","search",i)),Ae(!i.pathname||!i.pathname.includes("#"),Hu("#","pathname","hash",i)),Ae(!i.search||!i.search.includes("#"),Hu("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.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;i.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=z_(i,a),c=o&&o!=="/"&&o.endsWith("/"),u=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const br=e=>e.join("/").replace(/\/\/+/g,"/"),$_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,W_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function H_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Lx=["post","put","patch","delete"];new Set(Lx);const K_=["get",...Lx];new Set(K_);/** 50 * React Router v6.30.1 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function qo(){return qo=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},qo.apply(this,arguments)}const ap=b.createContext(null),G_=b.createContext(null),gi=b.createContext(null),Kc=b.createContext(null),Or=b.createContext({outlet:null,matches:[],isDataRoute:!1}),Fx=b.createContext(null);function q_(e,t){let{relative:n}=t===void 0?{}:t;ga()||Ae(!1);let{basename:r,navigator:i}=b.useContext(gi),{hash:s,pathname:o,search:a}=$x(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:br([r,o])),i.createHref({pathname:l,search:a,hash:s})}function ga(){return b.useContext(Kc)!=null}function Ms(){return ga()||Ae(!1),b.useContext(Kc).location}function zx(e){b.useContext(gi).static||b.useLayoutEffect(e)}function Ux(){let{isDataRoute:e}=b.useContext(Or);return e?aC():Y_()}function Y_(){ga()||Ae(!1);let e=b.useContext(ap),{basename:t,future:n,navigator:r}=b.useContext(gi),{matches:i}=b.useContext(Or),{pathname:s}=Ms(),o=JSON.stringify(Ix(i,n.v7_relativeSplatPath)),a=b.useRef(!1);return zx(()=>{a.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Dx(c,JSON.parse(o),s,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:br([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,o,s,e])}function Bx(){let{matches:e}=b.useContext(Or),t=e[e.length-1];return t?t.params:{}}function $x(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(gi),{matches:i}=b.useContext(Or),{pathname:s}=Ms(),o=JSON.stringify(Ix(i,r.v7_relativeSplatPath));return b.useMemo(()=>Dx(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function J_(e,t){return X_(e,t)}function X_(e,t,n,r){ga()||Ae(!1);let{navigator:i}=b.useContext(gi),{matches:s}=b.useContext(Or),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Ms(),u;if(t){var d;let x=typeof t=="string"?Os(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Ae(!1),u=x}else u=c;let h=u.pathname||"/",p=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=E_(e,{pathname:p}),y=nC(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:br([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:br([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&y?b.createElement(Kc.Provider,{value:{location:qo({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:dr.Pop}},y):y}function Q_(){let e=oC(),t=H_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application
58Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const Z_=b.createElement(Q_,null);class eC extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(Or.Provider,{value:this.props.routeContext},b.createElement(Fx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tC(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(ap);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Or.Provider,{value:t},r)}function nC(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Ae(!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:p}=n,v=d.route.loader&&h[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||v){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,h)=>{let p,v=!1,y=null,x=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||Z_,l&&(c<0&&h===0?(v=!0,x=null):c===h&&(v=!0,x=d.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,h+1)),g=()=>{let w;return p?w=y:v?w=x:d.route.Component?w=b.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,b.createElement(tC,{match:d,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?b.createElement(eC,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Vx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vx||{}),cc=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}(cc||{});function rC(e){let t=b.useContext(ap);return t||Ae(!1),t}function iC(e){let t=b.useContext(G_);return t||Ae(!1),t}function sC(e){let t=b.useContext(Or);return t||Ae(!1),t}function Wx(e){let t=sC(),n=t.matches[t.matches.length-1];return n.route.id||Ae(!1),n.route.id}function oC(){var e;let t=b.useContext(Fx),n=iC(cc.UseRouteError),r=Wx(cc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function aC(){let{router:e}=rC(Vx.UseNavigateStable),t=Wx(cc.UseNavigateStable),n=b.useRef(!1);return zx(()=>{n.current=!0}),b.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,qo({fromRouteId:t},s)))},[e,t])}function lC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ri(e){Ae(!1)}function cC(e){let{basename:t="/",children:n=null,location:r,navigationType:i=dr.Pop,navigator:s,static:o=!1,future:a}=e;ga()&&Ae(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:s,static:o,future:qo({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=Os(r));
58let{pathname:u="/",search:d="",hash:h="",state:p=null,key:v="default"}=r,y=b.useMemo(()=>{let x=op(u,l);return x==null?null:{location:{pathname:x,search:d,hash:h,state:p,key:v},navigationType:i}},[l,u,d,h,p,v,i]);return y==null?null:b.createElement(gi.Provider,{value:c},b.createElement(Kc.Provider,{children:n,value:y}))}function uC(e){let{children:t,location:n}=e;return J_(fh(t),n)}new Promise(()=>{});function fh(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let s=[...t,i];if(r.type===b.Fragment){n.push.apply(n,fh(r.props.children,s));return}r.type!==Ri&&Ae(!1),!r.props.index||!r.props.children||Ae(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=fh(r.props.children,s)),n.push(o)}),n}/** 59 * React Router DOM v6.30.1 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function ph(){return ph=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},ph.apply(this,arguments)}function dC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function hC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fC(e,t){return e.button===0&&(!t||t==="_self")&&!hC(e)}const pC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],mC="6";try{window.__reactRouterVersion=mC}catch{}const gC="startTransition",Pg=x0[gC];function yC(e){let{basename:t,children:n,future:r,window:i}=e,s=b.useRef();s.current==null&&(s.current=k_({window:i,v5Compat:!0}));let o=s.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=b.useCallback(d=>{c&&Pg?Pg(()=>l(d)):l(d)},[l,c]);return b.useLayoutEffect(()=>o.listen(u),[o,u]),b.useEffect(()=>lC(r),[r]),b.createElement(cC,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const vC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ts=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=dC(t,pC),{basename:p}=b.useContext(gi),v,y=!1;if(typeof c=="string"&&wC.test(c)&&(v=c,vC))try{let w=new URL(window.location.href),k=c.startsWith("//")?new URL(w.protocol+c):new URL(c),S=op(k.pathname,p);k.origin===w.origin&&S!=null?c=S+k.search+k.hash:y=!0}catch{}let x=q_(c,{relative:i}),m=xC(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:d});function g(w){r&&r(w),w.defaultPrevented||m(w)}return b.createElement("a",ph({},h,{href:v||x,onClick:y||s?r:g,ref:n,target:l}))});var jg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jg||(jg={}));var Rg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Rg||(Rg={}));function xC(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}:t,l=Ux(),c=Ms(),u=$x(e,{relative:o});return b.useCallback(d=>{if(fC(d,n)){d.preventDefault();let h=r!==void 0?r:lc(c)===lc(u);l(e,{replace:h,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[c,l,u,r,i,n,e,s,o,a])}var Ng=["light","dark"],bC="(prefers-color-scheme: dark)",kC=b.createContext(void 0),SC={setTheme:e=>{},themes:[]},TC=()=>{var e;return(e=b.useContext(kC))!=null?e:SC};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let c=s==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;
67${`c.remove(${a.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?Ng.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(v,y=!1,x=!0)=>{let m=o?o[v]:v,g=y?v+"|| ''":`'${m}'`,w="";return i&&x&&!y&&Ng.includes(v)&&(w+=`d.style.colorScheme = '${v}';`),n==="class"?y||m?w+=`c.add(${g})`:w+="null":m&&(w+=`d[s](n,${g})`),w},p=e?`!function(){${u}${h(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${bC}',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(s,!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(s,!1,!1)};}${d}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var EC=e=>{switch(e){case"success":return AC;case"info":return jC;case"warning":return PC;case"error":return RC;default:return null}},_C=Array(12).fill(0),CC=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},_C.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),AC=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"})),PC=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"})),jC=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"})),RC=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"})),NC=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"})),OC=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},mh=1,MC=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:mh++,s=this.toasts.find(a=>a.id===i),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:n}),{...a,...e,id:i,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:i}),i},this.dismiss=e=>
67(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)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0,s,o=r.then(async l=>{if(s=["resolve",l],O.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(DC(l)&&!l.ok){i=!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){i=!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(s=["reject",l],t.error!==void 0){i=!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;i&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>o.then(()=>s[0]==="reject"?c(s[1]):l(s[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)||mh++;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}},st=new MC,IC=(e,t)=>{let n=(t==null?void 0:t.id)||mh++;return st.addToast({title:e,...t,id:n}),n},DC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",LC=IC,FC=()=>st.toasts,zC=()=>
67st.getActiveToasts(),Og=Object.assign(LC,{success:st.success,info:st.info,warning:st.warning,error:st.error,custom:st.custom,message:st.message,promise:st.promise,dismiss:st.dismiss,loading:st.loading},{getHistory:FC,getToasts:zC});function UC(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))}UC(`: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;
67left: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}
67: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%);
67--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%)} 68`);function Ka(e){return e.label!==void 0}var BC=3,$C="32px",VC="16px",Mg=4e3,WC=356,HC=14,KC=20,GC=200;function Lt(...e){return e.filter(Boolean).join(" ")}function qC(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var YC=e=>{var t,n,r,i,s,o,a,l,c,u,d;let{invert:h,toast:p,unstyled:v,interacting:y,setHeights:x,visibleToasts:m,heights:g,index:w,toasts:k,expanded:S,removeToast:T,defaultRichColors:E,closeButton:_,style:P,cancelButtonStyle:A,actionButtonStyle:F,className:I="",descriptionClassName:G="",duration:M,position:q,gap:$,loadingIcon:Y,expandByDefault:C,classNames:j,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:W}=e,[Z,te]=O.useState(null),[Te,Ve]=O.useState(null),[ie,vi]=O.useState(!1),[Un,Ir]=O.useState(!1),[Bn,wi]=O.useState(!1),[$n,Ta]=O.useState(!1),[fu,Ea]=O.useState(!1),[pu,$s]=O.useState(0),[xi,nm]=O.useState(0),Vs=O.useRef(p.duration||M||Mg),rm=O.useRef(null),Dr=O.useRef(null),gS=w===0,yS=w+1<=m,St=p.type,bi=p.dismissible!==!1,vS=p.className||"",wS=p.descriptionClassName||"",_a=O.useMemo(()=>g.findIndex(J=>J.toastId===p.id)||0,[g,p.id]),xS=O.useMemo(()=>{var J;return(J=p.closeButton)!=null?J:_},[p.closeButton,_]),im=O.useMemo(()=>p.duration||M||Mg,[p.duration,M]),mu=O.useRef(0),ki=O.useRef(0),sm=O.useRef(0),Si=O.useRef(null),[bS,kS]=q.split("-"),om=O.useMemo(()=>g.reduce((J,oe,pe)=>pe>=_a?J:J+oe.height,0),[g,_a]),am=OC(),SS=p.invert||h,gu=St==="loading";ki.current=O.useMemo(()=>_a*$+om,[_a,om]),O.useEffect(()=>{Vs.current=im},[im]),O.useEffect(()=>{vi(!0)},[]),O.useEffect(()=>{let J=Dr.current;if(J){let oe=J.getBoundingClientRect().height;return nm(oe),x(pe=>[{toastId:p.id,height:oe,position:p.position},...pe]),()=>x(pe=>pe.filter(Ot=>Ot.toastId!==p.id))}},[x,p.id]),O.useLayoutEffect(()=>{if(!ie)return;let J=Dr.current,oe=J.style.height;J.style.height="auto";let pe=J.getBoundingClientRect().height;J.style.height=oe,nm(pe),x(Ot=>Ot.find(Mt=>Mt.toastId===p.id)?Ot.map(Mt=>Mt.toastId===p.id?{...Mt,height:pe}:Mt):[{toastId:p.id,height:pe,position:p.position},...Ot])},[ie,p.title,p.description,x,p.id]);let Vn=O.useCallback(()=>
68{Ir(!0),$s(ki.current),x(J=>J.filter(oe=>oe.toastId!==p.id)),setTimeout(()=>{T(p)},GC)},[p,T,x,ki]);O.useEffect(()=>{if(p.promise&&St==="loading"||p.duration===1/0||p.type==="loading")return;let J;return S||y||W&&am?(()=>{if(sm.current<mu.current){let oe=new Date().getTime()-mu.current;Vs.current=Vs.current-oe}sm.current=new Date().getTime()})():Vs.current!==1/0&&(mu.current=new Date().getTime(),J=setTimeout(()=>{var oe;(oe=p.onAutoClose)==null||oe.call(p,p),Vn()},Vs.current)),()=>clearTimeout(J)},[S,y,p,St,W,am,Vn]),O.useEffect(()=>{p.delete&&Vn()},[Vn,p.delete]);function TS(){var J,oe,pe;return L!=null&&L.loading?O.createElement("div",{className:Lt(j==null?void 0:j.loader,(J=p==null?void 0:p.classNames)==null?void 0:J.loader,"sonner-loader"),"data-visible":St==="loading"},L.loading):Y?O.createElement("div",{className:Lt(j==null?void 0:j.loader,(oe=p==null?void 0:p.classNames)==null?void 0:oe.loader,"sonner-loader"),"data-visible":St==="loading"},Y):O.createElement(CC,{className:Lt(j==null?void 0:j.loader,(pe=p==null?void 0:p.classNames)==null?void 0:pe.loader),visible:St==="loading"})}return O.createElement("li",{tabIndex:0,ref:Dr,className:Lt(I,vS,j==null?void 0:j.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[St],(n=p==null?void 0:p.classNames)==null?void 0:n[St]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:E,"data-styled":!(p.jsx||p.unstyled||v),"data-mounted":ie,"data-promise":!!p.promise,"data-swiped":fu,"data-removed":Un,"data-visible":yS,"data-y-position":bS,"data-x-position":kS,"data-index":w,"data-front":gS,"data-swiping":Bn,"data-dismissible":bi,"data-type":St,"data-invert":SS,"data-swipe-out":$n,"data-swipe-direction":Te,"data-expanded":!!(S||C&&ie),style:{"--index":w,"--toasts-before":w,"--z-index":k.length-w,"--offset":`${Un?pu:ki.current}px`,"--initial-height":C?"auto":`${xi}px`,...P,...p.style},onDragEnd:()=>{wi(!1),te(null),Si.current=null},onPointerDown:J=>{gu||!bi||(rm.current=new Date,$s(ki.current),J.target.setPointerCapture(J.pointerId),J.target.tagName!=="BUTTON"&&(wi(!0),Si.current={x:J.clientX,y:J.clientY}))},onPointerUp:()=>{var J,oe,pe,Ot;if($n||!bi)return;Si.current=null;let Mt=Number(((J=Dr.current)==null?void 0:J.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Wn=Number(((oe=Dr.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Lr=new Date().getTime()-((pe=rm.current)==null?void 0:pe.getTime()),It=Z==="x"?Mt:Wn,Hn=Math.abs(It)/Lr;if(Math.abs(It)>=KC||Hn>.11){$s(ki.current),(Ot=p.onDismiss)==null||Ot.call(p,p),Ve(Z==="x"?Mt>0?"right":"left":Wn>0?"down":"up"),Vn(),Ta(!0),Ea(!1);return}wi(!1),te(null)},onPointerMove:J=>{var oe,pe,Ot,Mt;if(!Si.current||!bi||((oe=window.getSelection())==null?void 0:oe.toString().length)>0)return;let Wn=J.clientY-Si.current.y,Lr=J.clientX-Si.current.x,It=(pe=e.swipeDirections)!=null?pe:qC(q);!Z&&(Math.abs(Lr)>1||Math.abs(Wn)>1)&&te(Math.abs(Lr)>Math.abs(Wn)?"x":"y");let Hn={x:0,y:0};Z==="y"?(It.includes("top")||It.includes("bottom"))&&(It.includes("top")&&Wn<0||It.includes("bottom")&&Wn>0)&&(Hn.y=Wn):Z==="x"&&(It.includes("left")||It.includes("right"))&&(It.includes("left")&&Lr<0||It.includes("right")&&Lr>0)&&(Hn.x=Lr),(Math.abs(Hn.x)>0||Math.abs(Hn.y)>0)&&Ea(!0),(Ot=Dr.current)==null||Ot.style.setProperty("--swipe-amount-x",`${Hn.x}px`),(Mt=Dr.current)==null||Mt.style.setProperty("--swipe-amount-y",`${Hn.y}px`)}},xS&&!p.jsx?O.createElement("button",{"aria-label":H,"data-disabled":gu,"data-close-button":!0,onClick:gu||!bi?()=>{}:()=>{var J;Vn(),(J=p.onDismiss)==null||J.call(p,p)},className:Lt(j==null?void 0:j.closeButton,(i=p==null?void 0:p.classNames)==null?void 0:i.closeButton)},(s=L==null?void 0:L.close)!=null?s:NC):null,p.jsx||b.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:O.createElement(O.Fragment,null,St||p.icon||p.promise?O.createElement("div",{"data-icon":"",className:Lt(j==null?void 0:j.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||TS():null,p.type!=="loading"?p.icon||(L==null?void 0:L[St])||EC(St):null):null,O.createElement("div",{"data-content":"",className:Lt(j==null?void 0:j.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},O.createElement("div",{"data-title":"",className:Lt(j==null?void 0:j.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?O.createElement("div",{"data-description":"",className:Lt(G,wS,j==null?void 0:j.description,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),b.isValidElement(p.cancel)?p.cancel:p.cancel&&Ka(p.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||A,onClick:J=>{var oe,pe;Ka(p.cancel)&&bi&&((pe=(oe=p.cancel).onClick)==null||pe.call(oe,J),Vn())},className:Lt(j==null?void 0:j.cancelButton,(u=p==null?void 0:p.classNames)==null?void 0:u.cancelButton)},p.cancel.label):null,b.isValidElement(p.action)?p.action:p.action&&Ka(p.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||F,onClick:J=>{var oe,pe;Ka(p.action)&&((pe=(oe=p.action).onClick)==null||pe.call(oe,J),!J.defaultPrevented&&Vn())},className:Lt(j==null?void 0:j.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function Ig(){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 JC(e,t){let n={};return[e,t].forEach((r,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?VC:$C;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}var XC=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:h,style:p,visibleToasts:v=BC,toastOptions:y,dir:x=Ig(),gap:m=HC,loadingIcon:g,icons:w,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:S}=e,[T,E]=O.useState([]),_=O.useMemo(()=>Array.from(new Set([r].concat(T.filter(W=>W.position).map(W=>W.position)))),[T,r]),[P,A]=O.useState([]),[F,I]=O.useState(!1),[G,M]=O.useState(!1),[q,$]=O.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
68k":"light"),Y=O.useRef(null),C=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=O.useRef(null),L=O.useRef(!1),H=O.useCallback(W=>{E(Z=>{var te;return(te=Z.find(Te=>Te.id===W.id))!=null&&te.delete||st.dismiss(W.id),Z.filter(({id:Te})=>Te!==W.id)})},[]);return O.useEffect(()=>st.subscribe(W=>{if(W.dismiss){E(Z=>Z.map(te=>te.id===W.id?{...te,delete:!0}:te));return}setTimeout(()=>{Sx.flushSync(()=>{E(Z=>{let te=Z.findIndex(Te=>Te.id===W.id);return te!==-1?[...Z.slice(0,te),{...Z[te],...W},...Z.slice(te+1)]:[W,...Z]})})})}),[]),O.useEffect(()=>{if(u!=="system"){$(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:Z})=>{$(Z?"dark":"light")})}catch{W.addListener(({matches:te})=>{try{$(te?"dark":"light")}catch(Te){console.error(Te)}})}},[u]),O.useEffect(()=>{T.length<=1&&I(!1)},[T]),O.useEffect(()=>{let W=Z=>{var te,Te;i.every(Ve=>Z[Ve]||Z.code===Ve)&&(I(!0),(te=Y.current)==null||te.focus()),Z.code==="Escape"&&(document.activeElement===Y.current||(Te=Y.current)!=null&&Te.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[i]),O.useEffect(()=>{if(Y.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,L.current=!1)}},[Y.current]),O.createElement("section",{ref:t,"aria-label":`${k} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},_.map((W,Z)=>{var te;let[Te,Ve]=W.split("-");return T.length?O.createElement("ol",{key:W,dir:x==="auto"?Ig():x,tabIndex:-1,ref:Y,className:a,"data-sonner-toaster":!0,"data-theme":q,"data-y-position":Te,"data-lifted":F&&T.length>1&&!s,"data-x-position":Ve,style:{"--front-toast-height":`${((te=P[0])==null?void 0:te.height)||0}px`,"--width":`${WC}px`,"--gap":`${m}px`,...p,...JC(l,c)},onBlur:ie=>{L.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(L.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||L.current||(L.current=!0,j.current=ie.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{G||I(!1)},onDragEnd:()=>I(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},T.filter(ie=>!ie.position&&Z===0||ie.position===W).map((ie,vi)=>{var Un,Ir;return O.createElement(YC,{key:ie.id,icons:w,index:vi,toast:ie,defaultRichColors:d,duration:(Un=y==null?void 0:y.duration)!=null?Un:h,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:v,closeButton:(Ir=y==null?void 0:y.closeButton)!=null?Ir:o,interacting:G,position:W,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:H,toasts:T.filter(Bn=>Bn.position==ie.position),heights:P.filter(Bn=>Bn.position==ie.position),setHeights:A,expandByDefault:s,gap:m,loadingIcon:g,expanded:F,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const QC=({...e})=>{const{theme:t="system"}=TC();return f.jsx(XC,{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})},ZC=1,eA=1e6;let Ku=0;function tA(){return Ku=(Ku+1)%Number.MAX_SAFE_INTEGER,Ku.toString()}const Gu=new Map,Dg=e=>{if(Gu.has(e))return;const t=setTimeout(()=>{Gu.delete(e),xo({type:"REMOVE_TOAST",toastId:e})},eA);Gu.set(e,t)},nA=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ZC)};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;
68return n?Dg(n):e.toasts.forEach(r=>{Dg(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)}}},Tl=[];let El={toasts:[]};function xo(e){El=nA(El,e),Tl.forEach(t=>{t(El)})}function rA({...e}){const t=tA(),n=i=>xo({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>xo({type:"DISMISS_TOAST",toastId:t});return xo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function iA(){const[e,t]=b.useState(El);return b.useEffect(()=>(Tl.push(t),()=>{const n=Tl.indexOf(t);n>-1&&Tl.splice(n,1)}),[e]),{...e,toast:rA,dismiss:n=>xo({type:"DISMISS_TOAST",toastId:n})}}function Re(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Lg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Hx(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Lg(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Lg(e[i],null)}}}}function Qt(...e){return b.useCallback(Hx(...e),e)}function Gc(e,t=[]){let n=[];function r(s,o){const a=b.createContext(o),l=n.length;n=[...n,o];const c=d=>{var m;const{scope:h,children:p,...v}=d,y=((m=h==null?void 0:h[e])==null?void 0:m[l])||a,x=b.useMemo(()=>v,Object.values(v));return f.jsx(y.Provider,{value:x,children:p})};c.displayName=s+"Provider";function u(d,h){var y;const p=((y=h==null?void 0:h[e])==null?void 0:y[l])||a,v=b.useContext(p);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[c,u]}const i=()=>{const s=n.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,sA(i,...t)]}function sA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function gh(e){const t=oA(e),n=b.forwardRef((r,i)=>{const{children:s,...o}=r,a=b.Children.toArray(s),l=a.find(lA);if(l){const c=l.props.children,u=a.map(d=>d===l?b.Children.count(c)>1?b.Children.only(null):b.isValidElement(c)?c.props.children:null:d);return f.jsx(t,{...o,ref:i,children:b.isValidElement(c)?b.cloneElement(c,void 0,u):null})}return f.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function oA(e){const t=b.forwardRef((n,r)=>{const{children:i,...s}=n;if(b.isValidElement(i)){const o=uA(i),a=cA(s,i.props);return i.type!==b.Fragment&&(a.ref=r?Hx(r,o):o),b.cloneElement(i,a)}return b.Children.count(i)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kx=Symbol("radix.slottable");function aA(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Kx,t}function lA(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kx}function cA(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function uA(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function dA(e){const t=e+"CollectionProvider",[n,r]=Gc(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:x,children:m}=y,g=O.useRef(null),w=O.useRef(new Map).current;return f.jsx(i,{scope:x,itemMap:w,collectionRef:g,children:m})};o.displayName=t;const a=e+"CollectionSlot",l=gh(a),c=O.forwardRef((y,x)=>{const{scope:m,children:g}=y,w=s(a,m),k=Qt(x,w.collectionRef);return f.jsx(l,{ref:k,children:g})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=gh(u),p=O.forwardRef((y,x)=>{const{scope:m,children:g,...w}=y,k=O.useRef(null),S=Qt(x,k),T=s(u,m);return O.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>
vendor: 8,865 bytes, line 68
68void T.itemMap.delete(k))),f.jsx(h,{[d]:"",ref:S,children:g})});p.displayName=u;function v(y){const x=s(e+"CollectionConsumer",y);return O.useCallback(()=>{const g=x.collectionRef.current;if(!g)return[];const w=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((T,E)=>w.indexOf(T.ref.current)-w.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:c,ItemSlot:p},v,r]}var hA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=hA.reduce((e,t)=>{const n=gh(`Primitive.${t}`),r=b.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Gx(e,t){e&&ma.flushSync(()=>e.dispatchEvent(t))}function Tr(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function fA(e,t=globalThis==null?void 0:globalThis.document){const n=Tr(e);b.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var pA="DismissableLayer",yh="dismissableLayer.update",mA="dismissableLayer.pointerDownOutside",gA="dismissableLayer.focusOutside",Fg,qx=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lp=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,c=b.useContext(qx),[u,d]=b.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=b.useState({}),v=Qt(t,E=>d(E)),y=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=y.indexOf(x),g=u?y.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,k=g>=m,S=vA(E=>{const _=E.target,P=[...c.branches].some(A=>A.contains(_));!k||P||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),T=wA(E=>{const _=E.target;[...c.branches].some(A=>A.contains(_))||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return fA(E=>{g===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),b.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Fg=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),zg(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Fg)}},[u,h,n,c]),b.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),zg())},[u,c]),b.useEffect(()=>{const E=()=>p({});return document.addEventListener(yh,E),()=>document.removeEventListener(yh,E)},[]),f.jsx(ht.div,{...l,ref:v,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,S.onPointerDownCapture)})});lp.displayName=pA;var yA="DismissableLayerBranch",Yx=b.forwardRef((e,t)=>{const n=b.useContext(qx),r=b.useRef(null),i=Qt(t,r);return b.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(ht.div,{...e,ref:i})});Yx.displayName=yA;function vA(e,t=globalThis==null?void 0:globalThis.document){const n=Tr(e),r=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Jx(mA,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function wA(e,t=globalThis==null?void 0:globalThis.document){const n=Tr(e),r=b.useRef(!1);return b.useEffect(()=>{const i=s=>{s.target&&!r.current&&Jx(gA,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zg(){const e=new CustomEvent(yh);document.dispatchEvent(e)}function Jx(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Gx(i,s):i.dispatchEvent(s)}var xA=lp,bA=Yx,Er=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},kA="Portal",Xx=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=b.useState(!1);Er(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Sx.createPortal(f.jsx(ht.div,{...r,ref:t}),o):null});Xx.displayName=kA;function SA(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var cp=e=>{const{present:t,children:n}=e,r=TA(t),i=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),s=Qt(r.ref,EA(i));return typeof n=="function"||r.isPresent?b.cloneElement(i,{ref:s}):null};cp.displayName="Presence";function TA(e){const[t,n]=b.useState(),r=b.useRef(null),i=b.useRef(e),s=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=SA(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const c=Ga(r.current);s.current=a==="mounted"?c:"none"},[a]),Er(()=>{const c=r.current,u=i.current;if(u!==e){const h=s.current,p=Ga(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Er(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=p=>{const y=Ga(r.current).includes(p.animationName);if(p.target===t&&y&&(l("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=p=>{p.target===t&&(s.current=Ga(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:b.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Ga(e){return(e==null?void 0:e.animationName)||"none"}function EA(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _A=x0[" useInsertionEffect ".trim().toString()]||Er;function CA({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=AA({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const u=b.useRef(e!==void 0);b.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=b.useCallback(u=>{var d;if(a){const h=PA(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else s(u)},[a,e,s,o]);return[l,c]}function AA({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),i=b.useRef(n),s=b.useRef(t);return _A(()=>{s.current=t},[t]),b.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function PA(e){return typeof e=="function"}var jA=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"}),RA="VisuallyHidden",qc=b.forwardRef((e,t)=>f.jsx(ht.span,{...e,ref:t,style:{...jA,...e.style}}));qc.displayName=RA;var NA=qc,up="ToastProvider",[dp,OA,MA]=dA("Toast"),[Qx,x4]=Gc("Toast",[MA]),[IA,Yc]=Qx(up),Zx=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=b.useState(null),[c,u]=b.useState(0),d=b.useRef(!1),h=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${up}\`. Expected non-empty \`string\`.`),f.jsx(dp.Provider,{scope:t,children:f.jsx(IA,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:c,viewport:
68a,onViewportChange:l,onToastAdd:b.useCallback(()=>u(p=>p+1),[]),onToastRemove:b.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:o})})};Zx.displayName=up;var eb="ToastViewport",DA=["F8"],vh="toast.viewportPause",wh="toast.viewportResume",tb=b.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=DA,label:i="Notifications ({hotkey})",...s}=e,o=Yc(eb,n),a=OA(n),l=b.useRef(null),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),h=Qt(t,d,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=o.toastCount>0;b.useEffect(()=>{const x=m=>{var w;r.length!==0&&r.every(k=>m[k]||m.code===k)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),b.useEffect(()=>{const x=l.current,m=d.current;if(v&&x&&m){const g=()=>{if(!o.isClosePausedRef.current){const T=new CustomEvent(vh);m.dispatchEvent(T),o.isClosePausedRef.current=!0}},w=()=>{if(o.isClosePausedRef.current){const T=new CustomEvent(wh);m.dispatchEvent(T),o.isClosePausedRef.current=!1}},k=T=>{!x.contains(T.relatedTarget)&&w()},S=()=>{x.contains(document.activeElement)||w()};return x.addEventListener("focusin",g),x.addEventListener("focusout",k),x.addEventListener("pointermove",g),x.addEventListener("pointerleave",S),window.addEventListener("blur",g),window.addEventListener("focus",w),()=>{x.removeEventListener("focusin",g),x.removeEventListener("focusout",k),x.removeEventListener("pointermove",g),x.removeEventListener("pointerleave",S),window.removeEventListener("blur",g),window.removeEventListener("focus",w)}}},[v,o.isClosePausedRef]);const y=b.useCallback(({tabbingDirection:x})=>{const g=a().map(w=>{const k=w.ref.current,S=[k,...YA(k)];return x==="forwards"?S:S.reverse()});return(x==="forwards"?g.reverse():g).flat()},[a]);return b.useEffect(()=>{const x=d.current;if(x){const m=g=>{var S,T,E;const w=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!w){const _=document.activeElement,P=g.shiftKey;if(g.target===x&&P){(S=c.current)==null||S.focus();return}const I=y({tabbingDirection:P?"backwards":"forwards"}),G=I.findIndex(M=>M===_);qu(I.slice(G+1))?g.preventDefault():P?(T=c.current)==null||T.focus():(E=u.current)==null||E.focus()}};return x.addEventListener("keydown",m),()=>x.removeEventListener("keydown",m)}},[a,y]),f.jsxs(bA,{ref:l,role:"region","aria-label":i.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&f.jsx(xh,{ref:c,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"forwards"});qu(x)}}),f.jsx(dp.Slot,{scope:n,children:f.jsx(ht.ol,{tabIndex:-1,...s,ref:h})}),v&&f.jsx(xh,{ref:u,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"backwards"});qu(x)}})]})});tb.displayName=eb;var nb="ToastFocusProxy",xh=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=Yc(nb,n);return f.jsx(qc,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&r()}})});xh.displayName=nb;var ya="Toast",LA="toast.swipeStart",FA="toast.swipeMove",zA="toast.swipeCancel",UA="toast.swipeEnd",rb=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a,l]=CA({prop:r,defaultProp:i??!0,onChange:s,caller:ya});return f.jsx(cp,{present:n||a,children:f.jsx(VA,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Tr(e.onPause),onResume:Tr(e.onResume),onSwipeStart:Re(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Re(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:Re(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:Re(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)})})})});rb.displayName=ya;var[BA,$A]=Qx(ya,{onClose(){}}),VA=b.forwardRef((e,t)=>
68{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:p,...v}=e,y=Yc(ya,n),[x,m]=b.useState(null),g=Qt(t,M=>m(M)),w=b.useRef(null),k=b.useRef(null),S=i||y.duration,T=b.useRef(0),E=b.useRef(S),_=b.useRef(0),{onToastAdd:P,onToastRemove:A}=y,F=Tr(()=>{var q;(x==null?void 0:x.contains(document.activeElement))&&((q=y.viewport)==null||q.focus()),o()}),I=b.useCallback(M=>{!M||M===1/0||(window.clearTimeout(_.current),T.current=new Date().getTime(),_.current=window.setTimeout(F,M))},[F]);b.useEffect(()=>{const M=y.viewport;if(M){const q=()=>{I(E.current),c==null||c()},$=()=>{const Y=new Date().getTime()-T.current;E.current=E.current-Y,window.clearTimeout(_.current),l==null||l()};return M.addEventListener(vh,$),M.addEventListener(wh,q),()=>{M.removeEventListener(vh,$),M.removeEventListener(wh,q)}}},[y.viewport,S,l,c,I]),b.useEffect(()=>{s&&!y.isClosePausedRef.current&&I(S)},[s,S,y.isClosePausedRef,I]),b.useEffect(()=>(P(),()=>A()),[P,A]);const G=b.useMemo(()=>x?ub(x):null,[x]);return y.viewport?f.jsxs(f.Fragment,{children:[G&&f.jsx(WA,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:G}),f.jsx(BA,{scope:n,onClose:F,children:ma.createPortal(f.jsx(dp.ItemSlot,{scope:n,children:f.jsx(xA,{asChild:!0,onEscapeKeyDown:Re(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||F(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(ht.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection,...v,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Re(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:Re(e.onPointerDown,M=>{M.button===0&&(w.current={x:M.clientX,y:M.clientY})}),onPointerMove:Re(e.onPointerMove,M=>{if(!w.current)return;const q=M.clientX-w.current.x,$=M.clientY-w.current.y,Y=!!k.current,C=["left","right"].includes(y.swipeDirection),j=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,L=C?j(0,q):0,H=C?0:j(0,$),W=M.pointerType==="touch"?10:2,Z={x:L,y:H},te={originalEvent:M,delta:Z};Y?(k.current=Z,qa(FA,d,te,{discrete:!1})):Ug(Z,y.swipeDirection,W)?(k.current=Z,qa(LA,u,te,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(q)>W||Math.abs($)>W)&&(w.current=null)}),onPointerUp:Re(e.onPointerUp,M=>{const q=k.current,$=M.target;if($.hasPointerCapture(M.pointerId)&&$.releasePointerCapture(M.pointerId),k.current=null,w.current=null,q){const Y=M.currentTarget,C={originalEvent:M,delta:q};Ug(q,y.swipeDirection,y.swipeThreshold)?qa(UA,p,C,{discrete:!0}):qa(zA,h,C,{discrete:!0}),Y.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),WA=e=>{const{__scopeToast:t,children:n,...r}=e,i=Yc(ya,t),[s,o]=b.useState(!1),[a,l]=b.useState(!1);return GA(()=>o(!0)),b.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:f.jsx(Xx,{asChild:!0,children:f.jsx(qc,{...r,children:s&&f.jsxs(f.Fragment,{children:[i.label," ",n]})})})},HA="ToastTitle",ib=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(ht.div,{...r,ref:t})});ib.displayName=HA;var KA="ToastDescription",sb=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(ht.div,{...r,ref:t})});sb.displayName=KA;var ob="ToastAction",ab=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?f.jsx(cb,{altText:n,asChild:!0,children:f.jsx(hp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ob}\`. Expected non-empty \`string\`.`),null)});ab.displayName=ob;var lb="ToastClose",hp=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=$A(lb,n);return f.jsx(cb,{asChild:!0,children:f.jsx(ht.button,{type:"button",...r,ref:t,onClick:Re(e.onClick,i.onClose)})})});hp.displayName=lb;var cb=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return f.jsx(ht.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function ub(e){const t=[];
vendor: 10,599 bytes, lines 68-178
68return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),qA(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...ub(r))}}),t}function qa(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Gx(i,s):i.dispatchEvent(s)}var Ug=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function GA(e=()=>{}){const t=Tr(e);Er(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function qA(e){return e.nodeType===e.ELEMENT_NODE}function YA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var JA=Zx,db=tb,hb=rb,fb=ib,pb=sb,mb=ab,gb=hp;function yb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=yb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vb(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=yb(e))&&(r&&(r+=" "),r+=t);return r}const Bg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,$g=vb,XA=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return $g(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(c=>{const u=n==null?void 0:n[c],d=s==null?void 0:s[c];if(u===null)return null;const h=Bg(u)||Bg(d);return i[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,...p}=u;return Object.entries(p).every(v=>{let[y,x]=v;return Array.isArray(x)?x.includes({...s,...a}[y]):{...s,...a}[y]===x})?[...c,d,h]:c},[]);return $g(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 69 * @license lucide-react v0.462.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const QA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wb=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 74 * @license lucide-react v0.462.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */var ZA={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"};/** 79 * @license lucide-react v0.462.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const eP=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...ZA,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:wb("lucide",i),...a},[...o.map(([c,u])=>b.createElement(c,u)),...Array.isArray(s)?s:[s]]));/** 84 * @license lucide-react v0.462.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const Ie=(e,t)=>{const n=b.forwardRef(({className:r,...i},s)=>b.createElement(eP,{ref:s,iconNode:t,className:wb(`lucide-${QA(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 89 * @license lucide-react v0.462.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const fp=Ie("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 94 * @license lucide-react v0.462.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const tP=Ie("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 99 * @license lucide-react v0.462.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const nP=Ie("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"}]]);/** 104 * @license lucide-react v0.462.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const rP=Ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 109 * @license lucide-react v0.462.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const iP=Ie("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 114 * @license lucide-react v0.462.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const gn=Ie("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"}]]);/** 119 * @license lucide-react v0.462.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const bh=Ie("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/** 124 * @license lucide-react v0.462.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const Ya=Ie("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 129 * @license lucide-react v0.462.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const xb=Ie("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 134 * @license lucide-react v0.462.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const sP=Ie("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"}]]);/** 139 * @license lucide-react v0.462.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const ss=Ie("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** 144 * @license lucide-react v0.462.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const _l=Ie("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 149 * @license lucide-react v0.462.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const oP=Ie("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 154 * @license lucide-react v0.462.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const aP=Ie("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"}]]);/** 159 * @license lucide-react v0.462.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const lP=Ie("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 164 * @license lucide-react v0.462.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const cP=Ie("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/** 169 * @license lucide-react v0.462.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const uP=Ie("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/** 174 * @license lucide-react v0.462.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const bb=Ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 4,965 bytes, line 178
178],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),pp="-",dP=e=>{const t=fP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(pp);return a[0]===""&&a.length!==1&&a.shift(),kb(a,t)||hP(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},kb=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?kb(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(pp);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Vg=/^\[(.+)\]$/,hP=e=>{if(Vg.test(e)){const t=Vg.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fP=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mP(Object.entries(e.classGroups),n).forEach(([s,o])=>{kh(o,r,s,t)}),r},kh=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Wg(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(pP(i)){kh(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{kh(o,Wg(t,s),n,r)})})},Wg=(e,t)=>{let n=e;return t.split(pp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},pP=e=>e.isThemeGetter,mP=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,gP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},Sb="!",yP=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let x=0;x<a.length;x++){let m=a[x];if(c===0){if(m===i&&(r||a.slice(x,x+s)===t)){l.push(a.slice(u,x)),u=x+s;continue}if(m==="/"){d=x;continue}}m==="["?c++:m==="]"&&c--}const h=l.length===0?a:a.substring(u),p=h.startsWith(Sb),v=p?h.substring(1):h,y=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:o}):o},vP=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},wP=e=>({cache:gP(e.cacheSize),parseClassName:yP(e),...dP(e)}),xP=/\s+/,bP=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(xP);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=n(c);let v=!!p,y=r(v?h.substring(0,p):h);if(!y){if(!v){a=c+(a.length>0?" "+a:a);continue}if(y=r(h),!y){a=c+(a.length>0?" "+a:a);continue}v=!1}const x=vP(u).join(":"),m=d?x+Sb:x,g=m+y;if(s.includes(g))continue;s.push(g);const w=i(y,v);for(let k=0;k<w.length;++k){const S=w[k];s.push(m+S)}a=c+(a.length>0?" "+a:a)}return a};function kP(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Tb(t))&&(r&&(r+=" "),r+=n);return r}const Tb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Tb(e[r]))&&(n&&(n+=" "),n+=t);return n};function SP(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=wP(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=bP(l,n);return i(l,u),u}return function(){return s(kP.apply(null,arguments))}}const ue=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Eb=/^\[(?:([a-z-]+):)?(.+)\]$/i,TP=/^\d+\/\d+$/,EP=new Set(["px","full","screen"]),_P=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CP=/\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$/,AP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,PP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kn=e=>os(e)||EP.has(e)||TP.test(e),Gn=e=>Is(e,"length",FP),os=e=>!!e&&!Number.isNaN(Number(e)),Yu=e=>Is(e,"number",os),Qs=e=>!!e&&Number.isInteger(Number(e)),RP=e=>e.endsWith("%")&&os(e.slice(0,-1)),Q=e=>Eb.test(e),qn=e=>_P.test(e),NP=new Set(["length","size","percentage"]),OP=e=>Is(e,NP,_b),MP=e=>Is(e,"position",_b),IP=new Set(["image","url"]),DP=e=>Is(e,IP,UP),LP=e=>Is(e,"",zP),Zs=()=>!0,Is=(e,t,n)=>{const r=Eb.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},FP=e=>CP.test(e)&&!AP.test(e),_b=()=>!1,zP=e=>PP.test(e),UP=e=>jP.test(e),BP=()=>{const e=ue("colors"),t=ue("spacing"),n=ue("blur"),r=ue("brightness"),i=ue("borderColor"),s=ue("borderRadius"),o=ue("borderSpacing"),a=ue("borderWidth"),l=ue("contrast"),c=ue("grayscale"),u=ue("hueRotate"),d=ue("invert"),h=ue("gap"),p=ue("gradientColorStops"),v=ue("gradientColorStopPositions"),y=ue
vendor: 12,430 bytes, line 178
178("inset"),x=ue("margin"),m=ue("opacity"),g=ue("padding"),w=ue("saturate"),k=ue("scale"),S=ue("sepia"),T=ue("skew"),E=ue("space"),_=ue("translate"),P=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",Q,t],I=()=>[Q,t],G=()=>["",kn,Gn],M=()=>["auto",os,Q],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",Q],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[os,Q];return{cacheSize:500,separator:":",theme:{colors:[Zs],spacing:[kn,Gn],blur:["none","",qn,Q],brightness:H(),borderColor:[e],borderRadius:["none","","full",qn,Q],borderSpacing:I(),borderWidth:G(),contrast:H(),grayscale:j(),hueRotate:H(),invert:j(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[RP,Gn],inset:F(),margin:F(),opacity:H(),padding:I(),saturate:H(),scale:H(),sepia:j(),skew:H(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[qn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:[...q(),Q]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qs,Q]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Qs,Q]}],"grid-cols":[{"grid-cols":[Zs]}],"col-start-end":[{col:["auto",{span:["full",Qs,Q]},Q]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Zs]}],"row-start-end":[{row:["auto",{span:[Qs,Q]},Q]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Q,t]}],"min-w":[{"min-w":[Q,t,"min","max","fit"]}],"max-w":[{"max-w":[Q,t,"none","full","min","max","fit","prose",{screen:[qn]},qn]}],h:[{h:[Q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",qn,Gn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yu]}],"font-family":[{font:[Zs]}],"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",Q]}],"line-clamp":[{"line-clamp":["none",os,Yu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kn,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",kn,Gn]}],"underline-offset":[{"underline-offset":["auto",kn,Q]}],"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",Q]}],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",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),MP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",OP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},DP]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:$()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[kn,Q]}],"outline-w":[{outline:[kn,Gn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[kn,Gn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qn,LP]}],"shadow-color":[{shadow:[Zs]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",qn,Q]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"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":[m]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",Q]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Qs,Q]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],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",Q]}],"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 178
178],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",Q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[kn,Gn,Yu]}],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"]}}},$P=SP(BP);function yi(...e){return $P(vb(e))}const VP=JA,Cb=b.forwardRef(({className:e,...t},n)=>f.jsx(db,{ref:n,className:yi("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}));Cb.displayName=db.displayName;const WP=XA("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"}}),Ab=b.forwardRef(({className:e,variant:t,...n},r)=>f.jsx(hb,{ref:r,className:yi(WP({variant:t}),e),...n}));Ab.displayName=hb.displayName;const HP=b.forwardRef(({className:e,...t},n)=>f.jsx(mb,{ref:n,className:yi("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}));HP.displayName=mb.displayName;const Pb=b.forwardRef(({className:e,...t},n)=>f.jsx(gb,{ref:n,className:yi("absolute right-2 top-2 rounded-md p-1 text-foreground
178/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:f.jsx(bb,{className:"h-4 w-4"})}));Pb.displayName=gb.displayName;const jb=b.forwardRef(({className:e,...t},n)=>f.jsx(fb,{ref:n,className:yi("text-sm font-semibold",e),...t}));jb.displayName=fb.displayName;const Rb=b.forwardRef(({className:e,...t},n)=>f.jsx(pb,{ref:n,className:yi("text-sm opacity-90",e),...t}));Rb.displayName=pb.displayName;function KP(){const{toasts:e}=iA();return f.jsxs(VP,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return f.jsxs(Ab,{...s,children:[f.jsxs("div",{className:"grid gap-1",children:[n&&f.jsx(jb,{children:n}),r&&f.jsx(Rb,{children:r})]}),i,f.jsx(Pb,{})]},t)}),f.jsx(Cb,{})]})}const GP=["top","right","bottom","left"],_r=Math.min,mt=Math.max,uc=Math.round,Ja=Math.floor,yn=e=>({x:e,y:e}
vendor: 12,626 bytes, line 178
178),qP={left:"right",right:"left",bottom:"top",top:"bottom"},YP={start:"end",end:"start"};function Sh(e,t,n){return mt(e,_r(t,n))}function Dn(e,t){return typeof e=="function"?e(t):e}function Ln(e){return e.split("-")[0]}function Ds(e){return e.split("-")[1]}function mp(e){return e==="x"?"y":"x"}function gp(e){return e==="y"?"height":"width"}const JP=new Set(["top","bottom"]);function fn(e){return JP.has(Ln(e))?"y":"x"}function yp(e){return mp(fn(e))}function XP(e,t,n){n===void 0&&(n=!1);const r=Ds(e),i=yp(e),s=gp(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=dc(o)),[o,dc(o)]}function QP(e){const t=dc(e);return[Th(e),t,Th(t)]}function Th(e){return e.replace(/start|end/g,t=>YP[t])}const Hg=["left","right"],Kg=["right","left"],ZP=["top","bottom"],ej=["bottom","top"];function tj(e,t,n){switch(e){case"top":case"bottom":return n?t?Kg:Hg:t?Hg:Kg;case"left":case"right":return t?ZP:ej;default:return[]}}function nj(e,t,n,r){const i=Ds(e);let s=tj(Ln(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(Th)))),s}function dc(e){return e.replace(/left|right|bottom|top/g,t=>qP[t])}function rj(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nb(e){return typeof e!="number"?rj(e):{top:e,right:e,bottom:e,left:e}}function hc(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Gg(e,t,n){let{reference:r,floating:i}=e;const s=fn(t),o=yp(t),a=gp(o),l=Ln(t),c=s==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ds(t)){case"start":p[o]-=h*(n&&c?-1:1);break;case"end":p[o]+=h*(n&&c?-1:1);break}return p}const ij=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Gg(c,r,l),h=r,p={},v=0;for(let y=0;y<a.length;y++){const{name:x,fn:m}=a[y],{x:g,y:w,data:k,reset:S}=await m({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});u=g??u,d=w??d,p={...p,[x]:{...p[x],...k}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:u,y:d}=Gg(c,h,l)),y=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:p}};async function Yo(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Dn(t,e),v=Nb(p),x=a[h?d==="floating"?"reference":"floating":d],m=hc(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),k=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},S=hc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:l}):g);return{top:(m.top-S.top+v.top)/k.y,bottom:(S.bottom-m.bottom+v.bottom)/k.y,left:(m.left-S.left+v.left)/k.x,right:(S.right-m.right+v.right)/k.x}}const sj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Dn(e,t)||{};if(c==null)return{};const d=Nb(u),h={x:n,y:r},p=yp(i),v=gp(p),y=await o.getDimensions(c),x=p==="y",m=x?"top":"left",g=x?"bottom":"right",w=x?"clientHeight":"clientWidth",k=s.reference[v]+s.reference[p]-h[p]-s.floating[v],S=h[p]-s.reference[p],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let E=T?T[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(T)))&&(E=a.floating[w]||s.floating[v]);const _=k/2-S/2,P=E/2-y[v]/2-1,A=_r(d[m],P),F=_r(d[g],P),I=A,G=E-y[v]-F,M=E/2-y[v]/2+_,q=Sh(I,M,G),$=!l.arrow&&Ds(i)!=null&&M!==q&&s.reference[v]/2-(M<I?A:F)-y[v]/2<0,Y=$?M<I?M-I:M-G:0;return{[p]:h[p]+Y,data:{[p]:q,centerOffset:M-q-Y,...$&&{alignmentOffset:Y}},reset:$}}}),oj=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...x}=Dn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=Ln(i),g=fn(a),w=Ln(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=h||(w||!y?[dc(a)]:QP(a)),T=v!=="none";!h&&T&&S.push(...nj(a,y,v,k));const E=[a,...S],_=await Yo(t,x),P=[];let A=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&P.push(_[m]),d){const M=XP(i,o,k);P.push(_[M[0]],_[M[1]])}if(A=[...A,{placement:i,overflows:P}],!P.every(M=>M<=0)){var F,I;const M=(((F=s.flip)==null?void 0:F.index)||0)+1,q=E[M];if(q&&(!(d==="alignment"?g!==fn(q):!1)||A.every(C=>C.overflows[0]>0&&fn(C.placement)===g)))return{data:{index:M,overflows:A},reset:{placement:q}};let $=(I=A.filter(Y=>Y.overflows[0]<=0).sort((Y,C)=>Y.overflows[1]-C.overflows[1])[0])==null?void 0:I.placement;if(!$)switch(p){case"bestFit":{var G;const Y=(G=A.filter(C=>{if(T){const j=fn(C.placement);return j===g||j==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(j=>j>0).reduce((j,L)=>j+L,0)]).sort((C,j)=>C[1]-j[1])[0])==null?void 0:G[0];Y&&($=Y);break}case"initialPlacement":$=a;break}if(i!==$)return{reset:{placement:$}}}return{}}}};function qg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yg(e){return GP.some(t=>e[t]>=0)}const aj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Dn(e,t);switch(r){case"referenceHidden":{const s=await Yo(t,{...i,elementContext:"reference"}),o=qg(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Yg(o)}}}case"escaped":{const s=await Yo(t,{...i,altBoundary:!0}),o=qg(s,n.floating);return{data:{escapedOffsets:o,escaped:Yg(o)}}}default:return{}}}}},Ob=new Set(["left","top"]);async function lj(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ln(n),a=Ds(n),l=fn(n)==="y",c=Ob.has(o)?-1:1,u=s&&l?-1:1,d=Dn(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(p=a==="end"?v*-1:v),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const cj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await lj(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},uj=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:m,y:g}=x;return{x:m,y:g}}},...l}=Dn(e,t),c={x:n,y:r},u=await Yo(t,l),d=fn(Ln(i)),h=mp(d);let p=c[h],v=c[d];if(s){const x=h==="y"?"top":"left",m=h==="y"?"bottom":"right",g=p+u[x],w=p-u[m];p=Sh(g,p,w)}if(o){const x=d==="y"?"top":"left",m=d==="y"?"bottom":"right",g=v+u[x],w=v-u[m];v=Sh(g,v,w)}const y=a.fn({...t,[h]:p,[d]:v});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[h]:s,[d]:o}}}}}},dj=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Dn(e,t),u={x:n,y:r},d=fn(i),h=mp(d);let p=u[h],v=u[d];const y=Dn(a,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const w=h==="y"?"height":"width",k=s.reference[h]-s.floating[w]+x.mainAxis,S=s.reference[h]+s.reference[w]-x.mainAxis;p<k?p=k:p>S&&(p=S)}if(c){var m,g;const w=h==="y"?"width":"height",k=Ob.has(Ln(i)),S=s.reference[d]-s.floating[w]+(k&&((m=o.offset)==null?void 0:m[d])||0)+(k?0:x.crossAxis),T=s.reference[d]+s.reference[w]+(k?0:((g=o.offset)==null?void 0:g[d])||0)-(k?x.crossAxis:0);v<S?v=S:v>T&&(v=T)}return{[h]:p,[d]:v}}}},hj=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...c}=Dn(e,t),u=await Yo(t,c),d=Ln(i),h=Ds(i),p=fn(i)==="y",{width:v,height:y}=s.floating;let x,m;d==="top"||d==="bottom"?(x=d,m=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,x=h==="end"?"top":"bottom");const g=y-u.top-u.bottom,w=v-u.left-u.right,k=_r(y-u[x],g),S=_r(v-u[m],w),T=!t.middlewareData.shift;let E=k,_=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=g),T&&!h){const A=mt(u.left,0),F=mt(u.right,0),I=mt(u.top,0),G=mt(u.bottom,0);p?_=v-2*(A!==0||F!==0?A+F:mt(u.left,u.right)):E=y-2*(I!==0||G!==0?I+G:mt(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:E});const P=await o.getDimensions(a.floating);return v!==P.width||y!==P.height?{reset:{rects:!0}}:{}}}};function Jc(){return typeof window<"u"}function Ls(e){return Mb(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(Mb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mb(e){return Jc()?e instanceof Node||e instanceof wt(e).Node:!1}function Zt(e){return Jc()?e instanceof Element||e instanceof wt(e).Element:!1}function wn(e){return Jc()?e instanceof HTMLElement||e instanceof wt(e).HTMLElement:!1}function Jg(e){return!Jc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}const fj=new Set(["inline","contents"]);function va(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=en(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!fj.has(i)}const pj=new Set(["table","td","th"]);function mj(e){return pj.has(Ls(e))}const gj=[":popover-open",":modal"];function Xc(e){return gj.some(t=>{try{return e.matches(t)}catch{return!1}})}const yj=["transform","translate","scale","rotate","perspective"],vj=["transform","translate","scale","rotate","perspective","filter"],wj=["paint","layout","strict","content"];function vp(e){const t=wp(),n=Zt(e)?en(e):e;return yj.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)||vj.some(r=>(n.willChange||"").includes(r))||wj.some(r=>(n.contain||"").includes(r))}function xj(e){let t=Cr(e);for(;wn(t)&&!Es(t);){if(vp(t))return t;if(Xc(t))return null;t=Cr(t)}return null}function wp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bj=new Set(["html","body","#document"]);function Es(e){return bj.has(Ls(e))}function en(e){return wt(e).getComputedStyle(e)}function Qc(e){return Zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Cr(e){if(Ls(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jg(e)&&e.host||bn(e);return Jg(t)?t.host:t}function Ib(e){const t=Cr(e);return Es(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&va(t)?t:Ib(t)}function Jo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ib(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=wt(i);if(s){const a=Eh(o);return t.concat(o,o.visualViewport||[],va(i)?i:[],a&&n?Jo(a):[])}return t.concat(i,Jo(i,[],n))}function Eh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Db(e){const t=en(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=wn(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=uc(n)!==s||uc(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function xp(e){return Zt(e)?e:e.contextElement}function as(e){const t=xp(e);if(!wn(t))return yn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Db(t);let o=(s?uc(n.width):n.width)/r,a=(s?uc(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const kj=yn(0);
vendor: 6,586 bytes, line 178
178function Lb(e){const t=wt(e);return!wp()||!t.visualViewport?kj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sj(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wt(e)?!1:t}function fi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=xp(e);let o=yn(1);t&&(r?Zt(r)&&(o=as(r)):o=as(e));const a=Sj(s,n,r)?Lb(s):yn(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){const h=wt(s),p=r&&Zt(r)?wt(r):r;let v=h,y=Eh(v);for(;y&&r&&p!==v;){const x=as(y),m=y.getBoundingClientRect(),g=en(y),w=m.left+(y.clientLeft+parseFloat(g.paddingLeft))*x.x,k=m.top+(y.clientTop+parseFloat(g.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=w,c+=k,v=wt(y),y=Eh(v)}}return hc({width:u,height:d,x:l,y:c})}function bp(e,t){const n=Qc(e).scrollLeft;return t?t.left+n:fi(bn(e)).left+n}function Fb(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:bp(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function Tj(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=bn(r),a=t?Xc(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=yn(1);const u=yn(0),d=wn(r);if((d||!d&&!s)&&((Ls(r)!=="body"||va(o))&&(l=Qc(r)),wn(r))){const p=fi(r);c=as(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const h=o&&!d&&!s?Fb(o,l,!0):yn(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 Ej(e){return Array.from(e.getClientRects())}function _j(e){const t=bn(e),n=Qc(e),r=e.ownerDocument.body,i=mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+bp(e);const a=-n.scrollTop;return en(r).direction==="rtl"&&(o+=mt(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function Cj(e,t){const n=wt(e),r=bn(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=wp();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}const Aj=new Set(["absolute","fixed"]);function Pj(e,t){const n=fi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=wn(e)?as(e):yn(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function Xg(e,t,n){let r;if(t==="viewport")r=Cj(e,n);else if(t==="document")r=_j(bn(e));else if(Zt(t))r=Pj(t,n);else{const i=Lb(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return hc(r)}function zb(e,t){const n=Cr(e);return n===t||!Zt(n)||Es(n)?!1:en(n).position==="fixed"||zb(n,t)}function jj(e,t){const n=t.get(e);if(n)return n;let r=Jo(e,[],!1).filter(a=>Zt(a)&&Ls(a)!=="body"),i=null;const s=en(e).position==="fixed";let o=s?Cr(e):e;for(;Zt(o)&&!Es(o);){const a=en(o),l=vp(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&Aj.has(i.position)||va(o)&&!l&&zb(e,o))?r=r.filter(u=>u!==o):i=a,o=Cr(o)}return t.set(e,r),r}function Rj(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Xc(t)?[]:jj(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=Xg(t,u,i);return c.top=mt(d.top,c.top),c.right=_r(d.right,c.right),c.bottom=_r(d.bottom,c.bottom),c.left=mt(d.left,c.left),c},Xg(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Nj(e){const{width:t,height:n}=Db(e);return{width:t,height:n}}function Oj(e,t,n){const r=wn(t),i=bn(t),s=n==="fixed",o=fi(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=yn(0);function c(){l.x=bp(i)}if(r||!r&&!s)if((Ls(t)!=="body"||va(i))&&(a=Qc(t)),r){const p=fi(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&c();s&&!r&&i&&c();const u=i&&!r&&!s?Fb(i,a):yn(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 Ju(e){return en(e).position==="static"}function Qg(e,t){if(!wn(e)||en(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return bn(e)===n&&(n=n.ownerDocument.body),n}function Ub(e,t){const n=wt(e);if(Xc(e))return n;if(!wn(e)){let i=Cr(e);for(;i&&!Es(i);){if(Zt(i)&&!Ju(i))return i;i=Cr(i)}return n}let r=Qg(e,t);for(;r&&mj(r)&&Ju(r);)r=Qg(r,t);return r&&Es(r)&&Ju(r)&&!vp(r)?n:r||xj(e)||n}const Mj=async function(e){const t=this.getOffsetParent||Ub,n=this.getDimensions,r=await n(e.floating);return{reference:Oj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ij(e){return en(e).direction==="rtl"}const Dj={convertOffsetParentRelativeRectToViewportRelativeRect:Tj,getDocumentElement:bn,getClippingRect:Rj,getOffsetParent:Ub,getElementRects:Mj,getClientRects:Ej,getDimensions:Nj,getScale:as,isElement:Zt,isRTL:Ij};function Bb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Lj(e,t){let n=null,r;const i=bn(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;const v=Ja(d),y=Ja(i.clientWidth-(u+h)),x=Ja(i.clientHeight-(d+p)),m=Ja(u),w={rootMargin:-v+"px "+-y+"px "+-x+"px "+-m+"px",threshold:mt(0,_r(1,l))||1};let k=!0;function S(T){const E=T[0].intersectionRatio;if(E!==l){if(!k)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!Bb(c,e.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(S,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),s}function Fj(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=xp(e),u=i||s?[...c?Jo(c):[],...Jo(t)]:[];u.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const d=c&&a?Lj(c,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(m=>{let[g]=m;g&&g.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let v,y=l?fi(e):null;l&&x();function x(){const m=fi(e);y&&!Bb(y,m)&&n(),y=m,v=requestAnimationFrame(x)}return n(),()=>{var m;u.forEach(g=>{i&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),d==null||d(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const zj=cj,Uj=uj,Bj=oj,$j=hj,Vj=aj,Zg=sj,Wj=dj,Hj=(e,t,n)=>{const r=new Map,i={platform:Dj,...n},s={...i.platform,_c:r};return ij(e,t,{...i,platform:s})};
vendor: 4,238 bytes, line 178
178var Kj=typeof document<"u",Gj=function(){},Cl=Kj?b.useLayoutEffect:Gj;function fc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!fc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!fc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function $b(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ey(e,t){const n=$b(e);return Math.round(t*n)/n}function Xu(e){const t=b.useRef(e);return Cl(()=>{t.current=e}),t}function qj(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=b.useState(r);fc(h,r)||p(r);const[v,y]=b.useState(null),[x,m]=b.useState(null),g=b.useCallback(C=>{C!==T.current&&(T.current=C,y(C))},[]),w=b.useCallback(C=>{C!==E.current&&(E.current=C,m(C))},[]),k=s||v,S=o||x,T=b.useRef(null),E=b.useRef(null),_=b.useRef(u),P=l!=null,A=Xu(l),F=Xu(i),I=Xu(c),G=b.useCallback(()=>{if(!T.current||!E.current)return;const C={placement:t,strategy:n,middleware:h};F.current&&(C.platform=F.current),Hj(T.current,E.current,C).then(j=>{const L={...j,isPositioned:I.current!==!1};M.current&&!fc(_.current,L)&&(_.current=L,ma.flushSync(()=>{d(L)}))})},[h,t,n,F,I]);Cl(()=>{c===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[c]);const M=b.useRef(!1);Cl(()=>(M.current=!0,()=>{M.current=!1}),[]),Cl(()=>{if(k&&(T.current=k),S&&(E.current=S),k&&S){if(A.current)return A.current(k,S,G);G()}},[k,S,G,A,P]);const q=b.useMemo(()=>({reference:T,floating:E,setReference:g,setFloating:w}),[g,w]),$=b.useMemo(()=>({reference:k,floating:S}),[k,S]),Y=b.useMemo(()=>{const C={position:n,left:0,top:0};if(!$.floating)return C;const j=ey($.floating,u.x),L=ey($.floating,u.y);return a?{...C,transform:"translate("+j+"px, "+L+"px)",...$b($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:L}},[n,a,$.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:G,refs:q,elements:$,floatingStyles:Y}),[u,G,q,$,Y])}const Yj=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Zg({element:r.current,padding:i}).fn(n):{}:r?Zg({element:r,padding:i}).fn(n):{}}}},Jj=(e,t)=>({...zj(e),options:[e,t]}),Xj=(e,t)=>({...Uj(e),options:[e,t]}),Qj=(e,t)=>({...Wj(e),options:[e,t]}),Zj=(e,t)=>({...Bj(e),options:[e,t]}),eR=(e,t)=>({...$j(e),options:[e,t]}),tR=(e,t)=>({...Vj(e),options:[e,t]}),nR=(e,t)=>({...Yj(e),options:[e,t]});var rR="Arrow",Vb=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return f.jsx(ht.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vb.displayName=rR;var iR=Vb;function sR(e){const[t,n]=b.useState(void 0);return Er(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,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 Wb="Popper",[Hb,Kb]=Gc(Wb),[b4,Gb]=Hb(Wb),qb="PopperAnchor",Yb=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=Gb(qb,n),o=b.useRef(null),a=Qt(t,o);return b.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:f.jsx(ht.div,{...i,ref:a})});Yb.displayName=qb;var kp="PopperContent",[oR,aR]=Hb(kp),Jb=b.forwardRef((e,t)=>{var ie,vi,Un,Ir,Bn,wi;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l
vendor: 4,166 bytes, line 178
178=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:v,...y}=e,x=Gb(kp,n),[m,g]=b.useState(null),w=Qt(t,$n=>g($n)),[k,S]=b.useState(null),T=sR(k),E=(T==null?void 0:T.width)??0,_=(T==null?void 0:T.height)??0,P=r+(s!=="center"?"-"+s:""),A=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},F=Array.isArray(c)?c:[c],I=F.length>0,G={padding:A,boundary:F.filter(cR),altBoundary:I},{refs:M,floatingStyles:q,placement:$,isPositioned:Y,middlewareData:C}=qj({strategy:"fixed",placement:P,whileElementsMounted:(...$n)=>Fj(...$n,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[Jj({mainAxis:i+_,alignmentAxis:o}),l&&Xj({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Qj():void 0,...G}),l&&Zj({...G}),eR({...G,apply:({elements:$n,rects:Ta,availableWidth:fu,availableHeight:Ea})=>{const{width:pu,height:$s}=Ta.reference,xi=$n.floating.style;xi.setProperty("--radix-popper-available-width",`${fu}px`),xi.setProperty("--radix-popper-available-height",`${Ea}px`),xi.setProperty("--radix-popper-anchor-width",`${pu}px`),xi.setProperty("--radix-popper-anchor-height",`${$s}px`)}}),k&&nR({element:k,padding:a}),uR({arrowWidth:E,arrowHeight:_}),h&&tR({strategy:"referenceHidden",...G})]}),[j,L]=Zb($),H=Tr(v);Er(()=>{Y&&(H==null||H())},[Y,H]);const W=(ie=C.arrow)==null?void 0:ie.x,Z=(vi=C.arrow)==null?void 0:vi.y,te=((Un=C.arrow)==null?void 0:Un.centerOffset)!==0,[Te,Ve]=b.useState();return Er(()=>{m&&Ve(window.getComputedStyle(m).zIndex)},[m]),f.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:Y?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Te,"--radix-popper-transform-origin":[(Ir=C.transformOrigin)==null?void 0:Ir.x,(Bn=C.transformOrigin)==null?void 0:Bn.y].join(" "),...((wi=C.hide)==null?void 0:wi.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(oR,{scope:n,placedSide:j,onArrowChange:S,arrowX:W,arrowY:Z,shouldHideArrow:te,children:f.jsx(ht.div,{"data-side":j,"data-align":L,...y,ref:w,style:{...y.style,animation:Y?void 0:"none"}})})})});Jb.displayName=kp;var Xb="PopperArrow",lR={top:"bottom",right:"left",bottom:"top",left:"right"},Qb=b.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=aR(Xb,r),o=lR[s.placedSide];return f.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:f.jsx(iR,{...i,ref:n,style:{...i.style,display:"block"}})})});Qb.displayName=Xb;function cR(e){return e!==null}var uR=e=>({name:"transformOrigin",options:e,fn(t){var x,m,g;const{placement:n,rects:r,middlewareData:i}=t,o=((x=i.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=Zb(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((m=i.arrow)==null?void 0:m.x)??0)+a/2,p=(((g=i.arrow)==null?void 0:g.y)??0)+l/2;let v="",y="";return c==="bottom"?(v=o?d:`${h}px`,y=`${-l}px`):c==="top"?(v=o?d:`${h}px`,y=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,y=o?d:`${p}px`):c==="left"&&(v=`${r.floating.width+l}px`,y=o?d:`${p}px`),{data:{x:v,y}}}});function Zb(e){const[t,n="center"]=e.split("-");return[t,n]}var dR=Yb,hR=Jb,fR=Qb,[Zc,k4]=Gc("Tooltip",[Kb]),Sp=Kb(),e1="TooltipProvider",pR=700,ty="tooltip.open",[mR,t1]=Zc(e1),n1=e=>{const{__scopeTooltip:t,delayDuration:n=pR,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,o=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),f.jsx(mR,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(c=>{a.current=c}
vendor: 5,737 bytes, line 178
178,[]),disableHoverableContent:i,children:s})};n1.displayName=e1;var r1="Tooltip",[S4,eu]=Zc(r1),_h="TooltipTrigger",gR=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=eu(_h,n),s=t1(_h,n),o=Sp(n),a=b.useRef(null),l=Qt(t,a,i.onTriggerChange),c=b.useRef(!1),u=b.useRef(!1),d=b.useCallback(()=>c.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.jsx(dR,{asChild:!0,...o,children:f.jsx(ht.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Re(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Re(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Re(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Re(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Re(e.onBlur,i.onClose),onClick:Re(e.onClick,i.onClose)})})});gR.displayName=_h;var yR="TooltipPortal",[T4,vR]=Zc(yR,{forceMount:void 0}),_s="TooltipContent",i1=b.forwardRef((e,t)=>{const n=vR(_s,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=eu(_s,e.__scopeTooltip);return f.jsx(cp,{present:r||o.open,children:o.disableHoverableContent?f.jsx(s1,{side:i,...s,ref:t}):f.jsx(wR,{side:i,...s,ref:t})})}),wR=b.forwardRef((e,t)=>{const n=eu(_s,e.__scopeTooltip),r=t1(_s,e.__scopeTooltip),i=b.useRef(null),s=Qt(t,i),[o,a]=b.useState(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:d}=r,h=b.useCallback(()=>{a(null),d(!1)},[d]),p=b.useCallback((v,y)=>{const x=v.currentTarget,m={x:v.clientX,y:v.clientY},g=TR(m,x.getBoundingClientRect()),w=ER(m,g),k=_R(y.getBoundingClientRect()),S=AR([...w,...k]);a(S),d(!0)},[d]);return b.useEffect(()=>()=>h(),[h]),b.useEffect(()=>{if(l&&u){const v=x=>p(x,u),y=x=>p(x,l);return l.addEventListener("pointerleave",v),u.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",v),u.removeEventListener("pointerleave",y)}}},[l,u,p,h]),b.useEffect(()=>{if(o){const v=y=>{const x=y.target,m={x:y.clientX,y:y.clientY},g=(l==null?void 0:l.contains(x))||(u==null?void 0:u.contains(x)),w=!CR(m,o);g?h():w&&(h(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,u,o,c,h]),f.jsx(s1,{...e,ref:s})}),[xR,bR]=Zc(r1,{isInside:!1}),kR=aA("TooltipContent"),s1=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=eu(_s,n),c=Sp(n),{onClose:u}=l;return b.useEffect(()=>(document.addEventListener(ty,u),()=>document.removeEventListener(ty,u)),[u]),b.useEffect(()=>{if(l.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),f.jsx(lp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:f.jsxs(hR,{"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:[f.jsx(kR,{children:r}),f.jsx(xR,{scope:n,isInside:!0,children:f.jsx(NA,{id:l.contentId,role:"tooltip",children:i||r})})]})})});i1.displayName=_s;var o1="TooltipArrow",SR=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Sp(n);return bR(o1,n).isInside?null:f.jsx(fR,{...i,...r,ref:t})});SR.displayName=o1;function TR(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ER(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 _R(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function CR(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s],l=t[o],c=a.x,u=a.y,d=l.x,h=l.y;u>r!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function AR(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),PR(t)}function PR(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var jR=n1,a1=i1;const RR=jR,NR=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(a1,{ref:r,sideOffset:t,className:yi("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
178de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));NR.displayName=a1.displayName;const Tp=b.createContext({});function Ep(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const OR=typeof window<"u",l1=OR?b.useLayoutEffect:b.useEffect,tu=b.createContext(null);function _p(e,t){e.indexOf(t)===-1&&e.push(t)}function pc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const xn=(e,t,n)=>n>t?t:n<e?e:n;let nu=()=>{},Cs=()=>{};const Ar={},c1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function u1(e){return typeof e=="object"&&e!==null}const d1=e=>/^0[^.\s]+$/u.test(e);function h1(e){let t;return()=>(t===void 0&&(t=e()),t)}const jt=e=>e,MR=(e,t)=>n=>t(e(n)),wa=(...e)=>e.reduce(MR),Xo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Cp{constructor(){this.subscriptions=[]}add(t){return _p(this.subscriptions,t),()=>pc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const dt=e=>e*1e3,At=e=>e/1e3;function f1(e,t){return t?e*(1e3/t):0}const p1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,IR=1e-7,DR=12;function LR(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=p1(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>IR&&++a<DR);return o}function xa(e,t,n,r){if(e===t&&n===r)return jt;const i=s=>LR(s,0,1,e,n);return s=>s===0||s===1?s:p1(i(s),t,r)}const m1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,g1=e=>t=>1-e(1-t),y1=xa(.33,1.53,.69,.99),Ap=g1(y1),v1=m1(Ap),w1=e=>e>=1?1:(e*=2)<1?.5*Ap(e):.5*(2-Math.pow(2,-10*(e-1))),Pp=e=>1-Math.sin(Math.acos(e)),x1=g1(Pp),b1=m1(Pp),FR=xa(.42,0,1,1),zR=xa(0,0,.58,1),k1=xa(.42,0,.58,1),UR=e=>Array.isArray(e)&&typeof e[0]!="number",S1=e=>Array.isArray(e)&&typeof e[0]=="number",ny={linear:jt,easeIn:FR,easeInOut:k1,easeOut:zR,circIn:Pp,circInOut:b1,circOut:x1,backIn:Ap,backInOut:v1,backOut:y1,anticipate:w1},BR=e=>typeof e=="string",ry=e=>{if(S1(e)){Cs(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return xa(t,n,r,i)}else if(BR(e))return Cs(ny[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),ny[e];return e},Xa=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],iy={value:null,addProjectionMetrics:null};function $R(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(d){o.has(d)&&(u.schedule(d),e()),l++,d(a)}const u={schedule:(d,h=!1,p=!1)=>{const y=p&&i?n:r;return h&&o.add(d),y.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,i){s=!0;return}i=!0;const h=n;n=r,r=h,n.forEach(c),t&&iy.value&&iy.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,u.process(d))}};return u}const VR=40;function T1(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Xa.reduce((w,k)=>(w[k]=$R(s,t?k:void 0),w),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:p,postRender:v}=o,y=()=>{const w=Ar.useManualTiming,k=w?i.timestamp:performance.now();n=!1,w||(i.delta=r?1e3/60:Math.max(Math.min(k-i.timestamp,VR),1)),i.timestamp=k,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),p.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},x=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Xa.reduce((w,k)=>{const S=o[k];return w[k]=(T,E=!1,_=!1)=>(n||x(),S.schedule(T,E,_)),w},{}),cancel:w=>{for(let k=0;k<Xa.length;k++)o[Xa[k]].cancel(w)},state:i,steps:o}}const{schedule:ae,cancel:Pr,state:ze,steps:Qu}=T1(typeof requestAnimationFrame<"u"?requestAnimationFrame:jt,!0);let Al;function WR(){Al=void 0}const Ze={now:()=>(Al===void 0&&Ze.set(ze.isProcessing||Ar.useManualTiming?ze.timestamp:performance.now()),Al),set:e=>{Al=e,queueMicrotask(WR)}},E1=e=>t=>typeof t=="string"&&t.startsWith(e),_1=E1("--"),HR=E1("var(--"),jp=e=>HR(e)?KR.test(e.split("/*")[0].trim()):!1,KR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function sy(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Fs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qo={...Fs,transform:e=>xn(0,1,e)},Qa={...Fs,default:1},bo=e=>Math.round(e*1e5)/1e5,Rp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function GR(e){return e==null}const qR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Np=(e,t)=>n=>!!(typeof n=="string"&&qR.test(n)&&n.startsWith(e)||t&&!GR(n)&&Object.prototype.hasOwnProperty.call(n,t)),C1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Rp);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},YR=e=>xn(0,255,e),Zu={...Fs,transform:e=>Math.round(YR(e))},Yr={test:Np("rgb","red"),parse:C1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zu.transform(e)+", "+Zu.transform(t)+", "+Zu.transform(n)+", "+bo(Qo.transform(r))+")"};function JR(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
vendor: 4,326 bytes, line 178
178a:i?parseInt(i,16)/255:1}}const Ch={test:Np("#"),parse:JR,transform:Yr.transform},ba=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jn=ba("deg"),vn=ba("%"),U=ba("px"),XR=ba("vh"),QR=ba("vw"),oy={...vn,parse:e=>vn.parse(e)/100,transform:e=>vn.transform(e*100)},Yi={test:Np("hsl","hue"),parse:C1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vn.transform(bo(t))+", "+vn.transform(bo(n))+", "+bo(Qo.transform(r))+")"},_e={test:e=>Yr.test(e)||Ch.test(e)||Yi.test(e),parse:e=>Yr.test(e)?Yr.parse(e):Yi.test(e)?Yi.parse(e):Ch.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Yr.transform(e):Yi.transform(e),getAnimatableNone:e=>{const t=_e.parse(e);return t.alpha=0,_e.transform(t)}},ZR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function e2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Rp))==null?void 0:t.length)||0)+(((n=e.match(ZR))==null?void 0:n.length)||0)>0}const A1="number",P1="color",t2="var",n2="var(",ay="${}",r2=/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 As(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(r2,l=>(_e.test(l)?(r.color.push(s),i.push(P1),n.push(_e.parse(l))):l.startsWith(n2)?(r.var.push(s),i.push(t2),n.push(l)):(r.number.push(s),i.push(A1),n.push(parseFloat(l))),++s,ay)).split(ay);return{values:n,split:a,indexes:r,types:i}}function i2(e){return As(e).values}function j1({split:e,types:t}){const n=e.length;return r=>{let i="";for(let s=0;s<n;s++)if(i+=e[s],r[s]!==void 0){const o=t[s];o===A1?i+=bo(r[s]):o===P1?i+=_e.transform(r[s]):i+=r[s]}return i}}function s2(e){return j1(As(e))}const o2=e=>typeof e=="number"?0:_e.test(e)?_e.getAnimatableNone(e):e,a2=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:o2(e);function l2(e){const t=As(e);return j1(t)(t.values.map((r,i)=>a2(r,t.split[i])))}const Jt={test:e2,parse:i2,createTransformer:s2,getAnimatableNone:l2};function ed(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 c2({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=ed(l,a,e+1/3),s=ed(l,a,e),o=ed(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function mc(e,t){return n=>n>0?t:e}const he=(e,t,n)=>e+(t-e)*n,td=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},u2=[Ch,Yr,Yi],d2=e=>u2.find(t=>t.test(e));function ly(e){const t=d2(e);if(nu(!!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===Yi&&(n=c2(n)),n}const cy=(e,t)=>{const n=ly(e),r=ly(t);if(!n||!r)return mc(e,t);const i={...n};return s=>(i.red=td(n.red,r.red,s),i.green=td(n.green,r.green,s),i.blue=td(n.blue,r.blue,s),i.alpha=he(n.alpha,r.alpha,s),Yr.transform(i))},Ah=new Set(["none","hidden"]);function h2(e,t){return Ah.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function f2(e,t){return n=>he(e,t,n)}function Op(e){return typeof e=="number"?f2:typeof e=="string"?jp(e)?mc:_e.test(e)?cy:g2:Array.isArray(e)?R1:typeof e=="object"?_e.test(e)?cy:p2:mc}function R1(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Op(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function p2(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Op(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function m2(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const g2=(e,t)=>{const n=Jt.createTransformer(t),r=As(e),i=As(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ah.has(e)&&!i.values.length||Ah.has(t)&&!r.values.length?h2(e,t):wa(R1(m2(r,i),i.values),n):(nu(!0,`Complex values '${e}' and '${t}
178' 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"),mc(e,t))};function N1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?he(e,t,n):Op(e)(e,t)}const y2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ae.update(t,n),stop:()=>Pr(t),now:()=>ze.isProcessing?ze.timestamp:Ze.now()}},O1=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},gc=2e4;function Mp(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<gc;)t+=n,r=e.next(t);return t>=gc?1/0:t}function v2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Mp(r),gc);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:At(i)}}const ge={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Ph(e,t){return e*Math.sqrt(1-t*t)}const w2=12;function x2(e,t,n){let r=n;for(let i=1;i<w2;i++)r=r-e(r)/t(r);return r}const nd=.001;function b2({duration:e=ge.duration,bounce:t=ge.bounce,velocity:n=ge.velocity,mass:r=ge.mass}){let i,s;nu(e<=dt(ge.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=xn(ge.minDamping,ge.maxDamping,o),e=xn(ge.minDuration,ge.maxDuration,At(e)),o<1?(i=c=>{const u=c*o,d=u*e,h=u-n,p=Ph(c,o),v=Math.exp(-d);return nd-h/p*v},s=c=>{const d=c*o*e,h=d*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,v=Math.exp(-d),y=Ph(Math.pow(c,2),o);return(-i(c)+nd>0?-1:1)*((h-p)*v)/y}):(i=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-nd+u*d},s=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=x2(i,s,a);if(e=dt(e),isNaN(l))return{stiffness:ge.stiffness,damping:ge.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const k2=["duration","bounce"],S2=["stiffness","damping","mass"];function uy(e,t){return t.some(n=>e[n]!==void 0)}function T2(e){let t={velocity:ge.velocity,stiffness:ge.stiffness,damping:ge.damping,mass:ge.mass,isResolvedFromDuration:!1,...e};if(!uy(e,S2)&&uy(e,k2))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ge.mass,stiffness:i,damping:s}}else{const n=b2({...e,velocity:0});t={...t,...n,mass:ge.mass},t.isResolvedFromDuration=!0}return t}function yc(e=ge.visualDuration,t=ge.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:p}=T2({...n,velocity:-At(n.velocity||0)}),v=h||0,y=c/(2*Math.sqrt(l*u)),x=o-s,m=At(Math.sqrt(l/u)),g=Math.abs(x)<5;r||(r=g?ge.restSpeed.granular:ge.restSpeed.default),i||(i=g?ge.restDelta.granular:ge.restDelta.default);let w,k,S,T,E,_;if(y<1)S=Ph(m,y),T=(v+y*m*x)/S,w=A=>{const F=Math.exp(-y*m*A);return o-F*(T*Math.sin(S*A)+x*Math.cos(S*A))},E=y*m*T+x*S,_=y*m*x-T*S,k=A=>Math.exp(-y*m*A)*(E*Math.sin(S*A)+_*Math.cos(S*A));else if(y===1){w=F=>o-Math.exp(-m*F)*(x+(v+m*x)*F);const A=v+m*x;k=F=>Math.exp(-m*F)*(m*A*F-v)}else{const A=m*Math.sqrt(y*y-1);w=M=>{const q=Math.exp(-y*m*M),$=Math.min(A*M,300);return o-q*((v+y*m*x)*Math.sinh($)+A*x*Math.cosh($))/A};const F=(v+y*m*x)/A,I=y*m*F-x*A,G=y*m*x-F*A;k=M=>{const q=Math.exp(-y*m*M),$=Math.min(A*M,300);return q*(I*Math.sinh($)+G*Math.cosh($))}}const P={calculatedDuration:p&&d||null,velocity:A=>dt(k(A)),next:A=>{if(!p&&y<1){const I=Math.exp(-y*m*A),G=Math.sin(S*A),M=Math.cos(S*A),q=o-I*(T*G+x*M),$=dt(I*(E*G+_*M));return a.done=Math.abs($)<=r&&Math.abs(o-q)<=i,a.value=a.done?o:q,a}const F=w(A);if(p)a.done=A>=d;else{const I=dt(k(A));a.done=Math.abs(I)<=r&&Math.abs(o-F)<=i}return a.value=a.done?o:F,a},toString:()=>{const A=Math.min(Mp(P),gc),F=O1(I=>P.next(A*I).value,A,30);return A+"ms "+F},toTransition:()=>{}};return P}yc.applyToOptions=e=>{const t=v2(e,100,yc);return e.ease=t.ease,e.duration=dt(t.duration),e.type="keyframes",e};const E2=5;function M1(e,t,n){const r=Math.max(t-E2,0);return f1(n-e(r),t-r)}function jh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=_=>a!==void 0&&_<a||l!==void 0&&_>l,v=_=>a===void 0?l:l===void 0||Math.abs(a-_)<Math.abs(l-_)?a:l;let y=n*t;
vendor: 15,768 bytes, line 178
178const x=d+y,m=o===void 0?x:o(x);m!==x&&(y=m-d);const g=_=>-y*Math.exp(-_/r),w=_=>m+g(_),k=_=>{const P=g(_),A=w(_);h.done=Math.abs(P)<=c,h.value=h.done?m:A};let S,T;const E=_=>{p(h.value)&&(S=_,T=yc({keyframes:[h.value,v(h.value)],velocity:M1(w,_,h.value),damping:i,stiffness:s,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:_=>{let P=!1;return!T&&S===void 0&&(P=!0,k(_),E(_)),S!==void 0&&_>=S?T.next(_-S):(!P&&k(_),h)}}}function _2(e,t,n){const r=[],i=n||Ar.mix||N1,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||jt:t;a=wa(l,a)}r.push(a)}return r}function C2(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Cs(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=_2(t,r,i),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=Xo(e[d],e[d+1],u);return a[d](h)};return n?u=>c(xn(e[0],e[s-1],u)):c}function A2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Xo(0,t,r);e.push(he(n,1,i))}}function P2(e){const t=[0];return A2(t,e.length-1),t}function j2(e,t){return e.map(n=>n*t)}function R2(e,t){return e.map(()=>t||k1).splice(0,e.length-1)}function ko({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=UR(r)?r.map(ry):ry(r),s={done:!1,value:t[0]},o=j2(n&&n.length===t.length?n:P2(t),e),a=C2(o,t,{ease:Array.isArray(i)?i:R2(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const N2=e=>e!==null;function ru(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(N2),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const O2={decay:jh,inertia:jh,tween:ko,keyframes:ko,spring:yc};function I1(e){typeof e.type=="string"&&(e.type=O2[e.type])}class Ip{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 M2=e=>e/100;class vc extends Ip{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ze.now()&&this.tick(Ze.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;I1(t);const{type:n=ko,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||ko;l!==ko&&typeof a[0]!="number"&&(this.mixKeyframes=wa(M2,N1(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Mp(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:p,type:v,onUpdate:y,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,k=r;if(d){const _=Math.min(this.currentTime,i)/a;let P=Math.floor(_),A=_%1;!A&&_>=1&&(A=1),A===1&&P--,P=Math.min(P,d+1),!!(P%2)&&(h==="reverse"?(A=1-A,p&&(A-=p/a)):h==="mirror"&&(k=o)),w=xn(0,1,A)*a}let S;g?(this.delayState.value=u[0],S=this.delayState):S=k.next(w),s&&!g&&(S.value=s(S.value));let{done:T}=S;!g&&l!==null&&(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return E&&v!==jh&&(S.value=ru(u,this.options,x,this.speed)),y&&y(S.value),E&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return At(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+At(t)}get time(){return At(this.currentTime)}set time(t){t=dt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return M1(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Ze.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=At(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=y2,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ze.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 I2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Jr=e=>e*180/Math.PI,Rh=e=>{const t=Jr(Math.atan2(e[1],e[0]));return Nh(t)},D2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Rh,rotateZ:Rh,skewX:e=>Jr(Math.atan(e[1])),skewY:e=>Jr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Nh=e=>(e=e%360,e<0&&(e+=360),e),dy=Rh,hy=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fy=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),L2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:hy,scaleY:fy,scale:e=>(hy(e)+fy(e))/2,rotateX:e=>Nh(Jr(Math.atan2(e[6],e[5]))),rotateY:e=>Nh(Jr(Math.atan2(-e[2],e[0]))),rotateZ:dy,rotate:dy,skewX:e=>Jr(Math.atan(e[4])),skewY:e=>Jr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Oh(e){return e.includes("scale")?1:0}function Mh(e,t){if(!e||e==="none")return Oh(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=L2,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=D2,i=a}if(!i)return Oh(t);const s=r[t],o=i[1].split(",").map(z2);return typeof s=="function"?s(o):o[s]}const F2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Mh(n,t)};function z2(e){return parseFloat(e.trim())}const zs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Us=new Set(zs),py=e=>e===Fs||e===U,U2=new Set(["x","y","z"]),B2=zs.filter(e=>!U2.has(e));function $2(e){const t=[];return B2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const hr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Mh(t,"x"),y:(e,{transform:t})=>Mh(t,"y")};hr.translateX=hr.x;hr.translateY=hr.y;const oi=new Set;let Ih=!1,Dh=!1,Lh=!1;function D1(){if(Dh){const e=Array.from(oi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=$2(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Dh=!1,Ih=!1,oi.forEach(e=>e.complete(Lh)),oi.clear()}function L1(){oi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Dh=!0)})}function V2(){Lh=!0,L1(),D1(),Lh=!1}class Dp{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(oi.add(this),Ih||(Ih=!0,ae.read(L1),ae.resolveKeyframes(D1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}I2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),oi.delete(this)}cancel(){this.state==="scheduled"&&(oi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const W2=e=>e.startsWith("--");function F1(e,t,n){W2(t)?e.style.setProperty(t,n):e.style[t]=n}const H2={};function z1(e,t){const n=h1(e);return()=>H2[t]??n()}const K2=z1(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),U1=z1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ao=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,my={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ao([0,.65,.55,1]),circOut:ao([.55,0,1,.45]),backIn:ao([.31,.01,.66,-.59]),backOut:ao([.33,1.53,.69,.99])};function B1(e,t){if(e)return typeof e=="function"?U1()?O1(e,t):"ease-out":S1(e)?ao(e):Array.isArray(e)?e.map(n=>B1(n,t)||my.easeOut):my[e]}function G2(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=B1(a,i);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function $1(e){return typeof e=="function"&&"applyToOptions"in e}function q2({type:e,...t}){return $1(e)&&U1()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class V1 extends Ip{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Cs(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=q2(t);this.animation=G2(n,r,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=ru(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),F1(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,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return At(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+At(t)}get time(){return At(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=dt(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&K2()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),jt):i(this)}}const W1={anticipate:w1,backInOut:v1,circInOut:b1};function Y2(e){return e in W1}function J2(e){typeof e.ease=="string"&&Y2(e.ease)&&(e.ease=W1[e.ease])}const rd=10;class X2 extends V1{constructor(t){J2(t),I1(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new vc({...o,autoplay:!1}),l=Math.max(rd,Ze.now()-this.startTime),c=xn(0,rd,l-rd),u=a.sample(l).value,{name:d}=this.options;s&&d&&F1(s,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const gy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Jt.test(e)||e==="0")&&!e.startsWith("url("));function Q2(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 Z2(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=gy(i,t),a=gy(s,t);return nu(o===a,`You are trying to animate ${t} from "${i}" to "${s}". "${o?s:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:Q2(e)||(n==="spring"||$1(n))&&r}function Fh(e){e.duration=0,e.type="keyframes"}const H1=new Set(["opacity","clipPath","filter","transform"]),eN=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function tN(e){for(let t=0;t<e.length;
178t++)if(typeof e[t]=="string"&&eN.test(e[t]))return!0;return!1}const nN=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rN=h1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function iN(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return rN()&&n&&(H1.has(n)||nN.has(n)&&tN(a))&&(n!=="transform"||!u)&&!c&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const sN=40;class oN extends Ip{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var v;super(),this.stop=()=>{var y,x;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=Ze.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:c,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||Dp;this.keyframeResolver=new p(a,(y,x,m)=>this.onKeyframesResolved(y,x,h,!m),l,c,u),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,i){var m,g;this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=Ze.now();let d=!0;Z2(t,s,o,a)||(d=!1,(Ar.instantAnimations||!l)&&(u==null||u(ru(t,r,n))),t[0]=t[t.length-1],Fh(r),r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>sN?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},v=d&&!c&&iN(p),y=(g=(m=p.motionValue)==null?void 0:m.owner)==null?void 0:g.current;let x;if(v)try{x=new X2({...p,element:y})}catch{x=new vc(p)}else x=new vc(p);x.finished.then(()=>{this.notifyFinished()}).catch(jt),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}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(),V2()),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 K1(e,t,n,r=0,i=1){const s=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}const aN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lN(e){const t=aN.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const cN=4;function G1(e,t,n=1){Cs(n<=cN,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=lN(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return c1(o)?parseFloat(o):o}return jp(i)?G1(i,t,n+1):i}const uN={type:"spring",stiffness:500,damping:25,restSpeed:10},dN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hN={type:"keyframes",duration:.8},fN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pN=(e,{keyframes:t})=>t.length>2?hN:Us.has(e)?e.startsWith("scale")?dN(t[1]):uN:fN;function q1(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Lp(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?q1(n,e):n}const mN=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function gN(e){for(const t in e)if(!mN.has(t))return!0;return!1}const Fp=(e,t,n,r={},i,s)=>o=>{const a=Lp(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-dt(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:s?void 0:i};gN(a)||Object.assign(u,pN(e,u)),u.duration&&(u.duration=dt(u.duration)),u.repeatDelay&&(u.repeatDelay=dt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Fh(u),u.delay===0&&(
vendor: 50,879 bytes, line 178
178d=!0)),(Ar.instantAnimations||Ar.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(d=!0,Fh(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const h=ru(u.keyframes,a);if(h!==void 0){ae.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new vc(u):new oN(u)};function yy(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function zp(e,t,n,r){if(typeof t=="function"){const[i,s]=yy(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=yy(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function ai(e,t,n){const r=e.getProps();return zp(r,t,n!==void 0?n:r.custom,e)}const Y1=new Set(["width","height","top","left","right","bottom",...zs]),vy=30,yN=e=>!isNaN(parseFloat(e));class vN{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=Ze.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ze.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yN(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 Cp);const r=this.events[t].add(n);return t==="change"?()=>{r(),ae.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){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=Ze.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>vy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,vy);return f1(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 Ps(e,t){return new vN(e,t)}const zh=e=>Array.isArray(e);function wN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ps(n))}function xN(e){return zh(e)?e[e.length-1]||0:e}function bN(e,t){const n=ai(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=xN(s[o]);wN(e,o,a)}}const Ue=e=>!!(e&&e.getVelocity);function kN(e){return!!(Ue(e)&&e.add)}function Uh(e,t){const n=e.getValue("willChange");if(kN(n))return n.add(t);if(!n&&Ar.WillChange){const r=new Ar.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Up(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const SN="framerAppearId",J1="data-"+Up(SN);function X1(e){return e.props[J1]}function TN({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Q1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();s=s?q1(s,l):l;const c=s==null?void 0:s.reduceMotion;r&&(s=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in a){const p=e.getValue(h,e.latestValues[h]??null),v=a[h];if(v===void 0||d&&TN(d,h))continue;const y={delay:n,...Lp(s||{},h)},x=p.get();if(x!==void 0&&!p.isAnimating()&&!Array.isArray(v)&&v===x&&!y.velocity){ae.update(()=>p.set(v));continue}let m=!1;if(window.MotionHandoffAnimation){const k=X1(e);if(k){const S=window.MotionHandoffAnimation(k,h,ae);S!==null&&(y.startTime=S,m=!0)}}Uh(e,h);const g=c??e.shouldReduceMotion;p.start(Fp(h,p,v,g&&Y1.has(h)?{type:!1}:y,e,m));const w=p.animation;w&&u.push(w)}if(o){const h=()=>ae.update(()=>{o&&bN(e,o)});u.length?Promise.all(u).then(h):h()}return u}function Bh(e,t,n={}){var l;const r=ai(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Q1(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return EN(e,t,c,u,d,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[s,o]:[o,s];return c().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function EN(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Bh(l,t,{...o,delay:n+(typeof r=="function"?0:r)+K1(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function _N(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Bh(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Bh(e,t,n);else{const i=typeof t=="function"?ai(e,t,n.custom):t;r=Promise.all(Q1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const CN={test:e=>e==="auto",parse:e=>e},Z1=e=>t=>t.test(e),ek=[Fs,U,vn,Jn,QR,XR,CN],wy=e=>ek.find(Z1(e));function AN(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||d1(e):!0}const PN=new Set(["brightness","contrast","saturate","opacity"]);function jN(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Rp)||[];if(!r)return e;const i=n.replace(r,"");let s=PN.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const RN=/\b([a-z-]*)\(.*?\)/gu,$h={...Jt,getAnimatableNone:e=>{const t=e.match(RN);return t?t.map(jN).join(" "):e}},Vh={...Jt,getAnimatableNone:e=>{const t=Jt.parse(e);return Jt.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},xy={...Fs,transform:Math.round},NN={rotate:Jn,rotateX:Jn,rotateY:Jn,rotateZ:Jn,scale:Qa,scaleX:Qa,scaleY:Qa,scaleZ:Qa,skew:Jn,skewX:Jn,skewY:Jn,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:Qo,originX:oy,originY:oy,originZ:U},Bp={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,...NN,zIndex:xy,fillOpacity:Qo,strokeOpacity:Qo,numOctaves:xy},ON={...Bp,color:_e,backgroundColor:_e,outlineColor:_e,fill:_e,stroke:_e,borderColor:_e,borderTopColor:_e,borderRightColor:_e,borderBottomColor:_e,borderLeftColor:_e,filter:$h,WebkitFilter:$h,mask:Vh,WebkitMask:Vh},tk=e=>ON[e],MN=new Set([$h,Vh]);function nk(e,t){let n=tk(e);return MN.has(n)||(n=Jt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const IN=new Set(["auto","none","0"]);function DN(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!IN.has(s)&&As(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=nk(n,i)}class LN extends Dp{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),jp(d))){const h=G1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Y1.has(r)||t.length!==2)return;const[i,s]=t,o=wy(i),a=wy(s),l=sy(i),c=sy(s);if(l!==c&&hr[r]){this.needsMeasurement=!0;return}if(o!==a)if(py(o)&&py(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else hr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||AN(t[i]))&&r.push(i);r.length&&DN(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=hr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=hr[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 rk(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const ik=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Pl(e){return u1(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:$p,cancel:E4}=T1(queueMicrotask,!1),Ut={x:!1,y:!1};function sk(){return Ut.x||Ut.y}function FN(e){return e==="x"||e==="y"?Ut[e]?null:(Ut[e]=!0,()=>{Ut[e]=!1}):Ut.x||Ut.y?null:(Ut.x=Ut.y=!0,()=>{Ut.x=Ut.y=!1})}function ok(e,t){const n=rk(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function zN(e){return!(e.pointerType==="touch"||sk())}function UN(e,t,n={}){const[r,i,s]=ok(e,n);return r.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",v)},d=x=>{c&&(c(x),c=void 0),u()},h=x=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(x))},p=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},v=x=>{if(x.pointerType!=="touch"){if(a){l=!0;return}d(x)}},y=x=>{if(!zN(x))return;l=!1;const m=t(o,x);typeof m=="function"&&(c=m,o.addEventListener("pointerleave",v,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",p,i)}),s}const ak=(e,t)=>t?e===t?!0:ak(e,t.parentElement):!1,Vp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,BN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $N(e){return BN.has(e.tagName)||e.isContentEditable===!0}const VN=new Set(["INPUT","SELECT","TEXTAREA"]);function WN(e){return VN.has(e.tagName)||e.isContentEditable===!0}const jl=new WeakSet;function by(e){return t=>{t.key==="Enter"&&e(t)}}function id(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const HN=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=by(()=>{if(jl.has(n))return;id(n,"down");const i=by(()=>{id(n,"up")}),s=()=>id(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ky(e){return Vp(e)&&!sk()}const Sy=new WeakSet;function KN(e,t,n={}){const[r,i,s]=ok(e,n),o=a=>{const l=a.currentTarget;if(!ky(a)||Sy.has(a))return;jl.add(l),n.stopPropagation&&Sy.add(a);const c=t(l,a),u=(p,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),jl.has(l)&&jl.delete(l),ky(p)&&typeof c=="function"&&c(p,{success:v})},d=p=>{u(p,l===window||l===document||n.useGlobalTarget||ak(l,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Pl(a)&&(a.addEventListener("focus",c=>HN(c,i)),!$N(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Wp(e){return u1(e)&&"ownerSVGElement"in e}const Rl=new WeakMap;let Xn;const lk=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:Wp(r)&&"getBBox"in r?r.getBBox()[t]:r[n],GN=lk("inline","width","offsetWidth"),qN=lk("block","height","offsetHeight");function YN({target:e,borderBoxSize:t}){var n;(n=Rl.get(e))==null||n.forEach(r=>{r(e,{get width(){return GN(e,t)},get height(){return qN(e,t)}})})}function JN(e){e.forEach(YN)}function XN(){typeof ResizeObserver>"u"||(Xn=new ResizeObserver(JN))}function QN(e,t){Xn||XN();const n=rk(e);return n.forEach(r=>{let i=Rl.get(r);i||(i=new Set,Rl.set(r,i)),i.add(t),Xn==null||Xn.observe(r)}),()=>{n.forEach(r=>{const i=Rl.get(r);i==null||i.delete(t),i!=null&&i.size||Xn==null||Xn.unobserve(r)})}}const Nl=new Set;let Ji;function ZN(){Ji=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Nl.forEach(t=>t(e))},window.addEventListener("resize",Ji)}function eO(e){return Nl.add(e),Ji||ZN(),()=>{Nl.delete(e),!Nl.size&&typeof Ji=="function"&&(window.removeEventListener("resize",Ji),Ji=void 0)}}function Ty(e,t){return typeof e=="function"?eO(e):QN(e,t)}function tO(e){return Wp(e)&&e.tagName==="svg"}const nO=[...ek,_e,Jt],rO=e=>nO.find(Z1(e)),Ey=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xi=()=>({x:Ey(),y:Ey()}),_y=()=>({min:0,max:0}),Pe=()=>({x:_y(),y:_y()}),iO=new WeakMap;function iu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zo(e){return typeof e=="string"||Array.isArray(e)}const Hp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Kp=["initial",...Hp];function su(e){return iu(e.animate)||Kp.some(t=>Zo(e[t]))}function ck(e){return!!(su(e)||e.variants)}function sO(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Ue(i))e.addValue(r,i);else if(Ue(s))e.addValue(r,Ps(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Ps(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wh={current:null},uk={current:!1},oO=typeof window<"u";function aO(){if(uk.current=!0,!!oO)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Wh.current=e.matches;e.addEventListener("change",t),t()}else Wh.current=!1}const Cy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let wc={};function dk(e){wc=e}function lO(){return wc}class cO{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Dp,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 p=Ze.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,ae.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=i,this.skipAnimationsConfig=s,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=su(n),this.isVariantNode=ck(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const v=h[p];c[p]!==void 0&&Ue(v)&&v.set(c[p])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,iO.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(uk.current||aO(),this.shouldReduceMotion=Wh.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(),Pr(this.notifyUpdate),Pr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&H1.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new V1({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:dt(u)}),h=o(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const r=Us.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&ae.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),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 wc){const n=wc[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pe()}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<Cy.length;r++){const i=Cy[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=sO(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=Ps(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"&&(c1(r)||d1(r))?r=parseFloat(r):!rO(r)&&Jt.test(n)&&(r=nk(t,n)),this.setBaseTarget(t,Ue(r)?r.get():r)),Ue(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=zp(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ue(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Cp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){$p.render(this.render)}}class hk extends cO{constructor(){super(...arguments),this.KeyframeResolver=LN}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;Ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function fk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dO(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 sd(e){return e===void 0||e===1}function Hh({scale:e,scaleX:t,scaleY:n}){return!sd(e)||!sd(t)||!sd(n)}function Vr(e){return Hh(e)||pk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pk(e){return Ay(e.x)||Ay(e.y)}function Ay(e){return e&&e!=="0%"}function xc(e,t,n){const r=e-n,i=t*r;return n+i}function Py(e,t,n,r,i){return i!==void 0&&(e=xc(e,i,r)),xc(e,n,r)+t}function Kh(e,t=0,n=1,r,i){e.min=Py(e.min,t,n,r,i),e.max=Py(e.max,t,n,r,i)}function mk(e,{x:t,y:n}){Kh(e.x,t.translate,t.scale,t.originPoint),Kh(e.y,n.translate,n.scale,n.originPoint)}const jy=.999999999999,Ry=1.0000000000001;function hO(e,t,n,r=!1){var a;const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(un(e.x,-s.scroll.offset.x),un(e.y,-s.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,mk(e,o)),r&&Vr(s.latestValues)&&Ol(e,s.latestValues,(a=s.layout)==null?void 0:a.layoutBox))}t.x<Ry&&t.x>jy&&(t.x=1),t.y<Ry&&t.y>jy&&(t.y=1)}function un(e,t){e.min+=t,e.max+=t}function Ny(e,t,n,r,i=.5){const s=he(e.min,e.max,i);Kh(e,t,n,s,r)}function Oy(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Ol(e,t,n){const r=n??e;Ny(e.x,Oy(t.x,r.x),t.scaleX,t.scale,t.originX),Ny(e.y,Oy(t.y,r.y),t.scaleY,t.scale,t.originY)}function gk(e,t){return fk(dO(e.getBoundingClientRect(),t))}function fO(e,t,n){const r=gk(e,n),{scroll:i}=t;return i&&(un(r.x,i.offset.x),un(r.y,i.offset.y)),r}const pO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mO=zs.length;function gO(e,t,n){let r="",i=!0;for(let s=0;s<mO;s++){const o=zs[s],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=ik(a,Bp[o]);if(!l){i=!1;const u=pO[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Gp(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(Us.has(l)){o=!0;continue}else if(_1(l)){i[l]=c;continue}else{const u=ik(c,Bp[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=gO(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${c} ${u}`}}function yk(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function My(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const eo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(U.test(e))e=parseFloat(e);else return e;const n=My(e,t.target.x),r=My(e,t.target.y);return`${n}% ${r}%`}},yO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Jt.parse(e);if(i.length>5)return r;const s=Jt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const c=he(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}},Gh={borderRadius:{...eo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomLeftRadius:eo,borderBottomRightRadius:eo,boxShadow:yO};function vk(e,{layout:t,layoutId:n}){return Us.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gh[e]||e==="opacity")}function qp(e,t,n){var o;const r=e.style,i=t==null?void 0:t.style,s={};if(!r)return s;for(const a in r)(Ue(r[a])||i&&Ue(i[a])||vk(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}function vO(e){return window.getComputedStyle(e)}class wO extends hk{constructor(){super(...arguments),this.type="html",this.renderInstance=yk}readValueFromInstance(t,n){var r;if(Us.has(n))return(r=this.projection)!=null&&r.isProjecting?Oh(n):F2(t,n);{const i=vO(t),s=(_1(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return gk(t,n)}build(t,n,r){Gp(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return qp(t,n,r)}}const xO={offset:"stroke-dashoffset",array:"stroke-dasharray"},bO={offset:"strokeDashoffset",array:"strokeDasharray"};function kO(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?xO:bO;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const SO=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function wk(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,c,u){if(Gp(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 p of SO)d[p]!==void 0&&(h[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&kO(d,i,s,o,!1)}const xk=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"]),bk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function TO(e,t,n,r){yk(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(xk.has(i)?i:Up(i),t.attrs[i])}function kk(e,t,n){const r=qp(e,t,n);for(const i in e)if(Ue(e[i])||Ue(t[i])){const s=zs.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class EO extends hk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Us.has(n)){const r=tk(n);return r&&r.default||0}return n=xk.has(n)?n:Up(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return kk(t,n,r)}build(t,n,r){wk(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){TO(t,n,r,i)}mount(t){this.isSVGTag=bk(t.tagName),super.mount(t)}}const _O=Kp.length;function Sk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Sk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_O;n++){const r=Kp[n],i=e.props[r];(Zo(i)||i===!1)&&(t[r]=i)}return t}function Tk(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 CO=[...Hp].reverse(),AO=Hp.length;function PO(e){return t=>Promise.all(t.map(({animation:n,options:r})=>_N(e,n,r)))}function jO(e){let t=PO(e),n=Iy(),r=!0,i=!1;const s=c=>(u,d)=>{var p;const h=ai(e,d,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(h){const{transition:v,transitionEnd:y,...x}=h;u={...u,...x,...y}}return u};function o(c){t=c(e)}function a(c){const{props:u}=e,d=Sk(e.parent)||{},h=[],p=new Set;let v={},y=1/0;for(let m=0;m<AO;m++){const g=CO[m],w=n[g],k=u[g]!==void 0?u[g]:d[g],S=Zo(k),T=g===c?w.isActive:null;T===!1&&(y=m);let E=k===d[g]&&k!==u[g]&&S;if(E&&(r||i)&&e.manuallyAnimateOnMount&&(E=!1),w.protectedKeys={...v},!w.isActive&&T===null||!k&&!w.prevProp||iu(k)||typeof k=="boolean")continue;if(g==="exit"&&w.isActive&&T!==!0){w.prevResolvedValues&&(v={...v,...w.prevResolvedValues});continue}const _=RO(w.prevProp,k);let P=_||g===c&&w.isActive&&!E&&S||m>y&&S,A=!1;const F=Array.isArray(k)?k:[k];let I=F.reduce(s(g),{});T===!1&&(I={});const{prevResolvedValues:G={}}=w,M={...G,...I},q=C=>{P=!0,p.has(C)&&(A=!0,p.delete(C)),w.needsAnimating[C]=!0;const j=e.getValue(C);j&&(j.liveStyle=!1)};for(const C in M){const j=I[C],L=G[C];if(v.hasOwnProperty(C))continue;let H=!1;zh(j)&&zh(L)?H=!Tk(j,L):H=j!==L,H?j!=null?q(C):p.add(C):j!==void 0&&p.has(C)?q(C):w.protectedKeys[C]=!0}w.prevProp=k,w.prevResolvedValues=I,w.isActive&&(v={...v,...I}),(r||i)&&e.blockInitialAnimation&&(P=!1);const $=E&&_;P&&(!$||A)&&h.push(...F.map(C=>{const j={type:g};if(typeof C=="string"&&(r||i)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,H=ai(L,C);if(L.enteringChildren&&H){const{delayChildren:W}=H.transition||{};j.delay=K1(L.enteringChildren,e,W)}}return{animation:C,options:j}}))}if(p.size){const m={};if(typeof u.initial!="boolean"){const g=ai(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(m.transition=g.transition)}p.forEach(g=>{const w=e.getBaseTarget(g),k=e.getValue(g);k&&(k.liveStyle=!0),m[g]=w??null}),h.push({animation:m})}let x=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,i=!1,x?t(h):Promise.resolve()}function l(c,u){var h;if(n[c].isActive===u)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(p=>{var v;return(v=p.animationState)==null?void 0:v.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Iy(),i=!0}}}function RO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Tk(t,e):!1}function Fr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Iy(){return{animate:Fr(!0),whileInView:Fr(),whileHover:Fr(),whileTap:Fr(),whileDrag:Fr(),whileFocus:Fr(),exit:Fr()}}function qh(e,t){e.min=t.min,e.max=t.max}function Ft(e,t){qh(e.x,t.x),qh(e.y,t.y)}function Dy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Ek=1e-4,NO=1-Ek,OO=1+Ek,_k=.01,MO=0-_k,IO=0+_k;function et(e){return e.max-e.min}function DO(e,t,n){return Math.abs(e-t)<=n}function Ly(e,t,n,r=.5){e.origin=r,e.originPoint=he(t.min,t.max,e.origin),e.scale=et(n)/et(t),e.translate=he(n.min,n.max,e.origin)-e.originPoint,(e.scale>=NO&&e.scale<=OO||isNaN(e.scale))&&(e.scale=1),(e.translate>=MO&&e.translate<=IO||isNaN(e.translate))&&(e.translate=0)}function So(e,t,n,r){Ly(e.x,t.x,n.x,r?r.originX:void 0),Ly(e.y,t.y,n.y,r?r.originY:void 0)}function Fy(e,t,n,r=0){const i=r?he(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+et(t)}function LO(e,t,n,r){Fy(e.x,t.x,n.x,r==null?void 0:r.x),Fy(e.y,t.y,n.y,r==null?void 0:r.y)}function zy(e,t,n,r=0){const i=r?he(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+et(t)}function bc(e,t,n,r){zy(e.x,t.x,n.x,r==null?void 0:r.x),zy(e.y,t.y,n.y,r==null?void 0:r.y)}function Uy(e,t,n,r,i){return e-=t,e=xc(e,1/n,r),i!==void 0&&(e=xc(e,1/i,r)),e}function FO(e,t=0,n=1,r=.5,i,s=e,o=e){if(vn.test(t)&&(t=parseFloat(t),t=he(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=he(s.min,s.max,r);e===s&&(a-=t),e.min=Uy(e.min,t,n,a,i),e.max=Uy(e.max,t,n,a,i)}function By(e,t,[n,r,i],s,o){FO(e,t[n],t[r],t[i],t.scale,s,o)}const zO=["x","scaleX","originX"],UO=["y","scaleY","originY"];function $y(e,t,n,r){By(e.x,t,zO,n?n.x:void 0,r?r.x:void 0),By(e.y,t,UO,n?n.y:void 0,r?r.y:void 0)}function Vy(e){return e.translate===0&&e.scale===1}function Ck(e){return Vy(e.x)&&Vy(e.y)}function Wy(e,t){return e.min===t.min&&e.max===t.max}function BO(e,t){return Wy(e.x,t.x)&&Wy(e.y,t.y)}function Hy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ak(e,t){return Hy(e.x,t.x)&&Hy(e.y,t.y)}function Ky(e){return et(e.x)/et(e.y)}function Gy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function sn(e){return[e("x"),e("y")]}function $O(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:p,skewY:v}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),v&&(r+=`skewY(${v}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 Pk=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],VO=Pk.length,qy=e=>typeof e=="string"?parseFloat(e):e,Yy=e=>typeof e=="number"||U.test(e);function WO(e,t,n,r,i,s){i?(e.opacity=he(0,n.opacity??1,HO(r)),e.opacityExit=he(t.opacity??1,0,KO(r))):s&&(e.opacity=he(t.opacity??1,n.opacity??1,r));for(let o=0;o<VO;o++){const a=Pk[o];let l=Jy(t,a),c=Jy(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Yy(l)===Yy(c)?(e[a]=Math.max(he(qy(l),qy(c),r),0),(vn.test(c)||vn.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=he(t.rotate||0,n.rotate||0,r))}function Jy(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const HO=jk(0,.5,x1),KO=jk(.5,.95,jt);function jk(e,t,n){return r=>r<e?0:r>t?1:n(Xo(e,t,r))}function GO(e,t,n){const r=Ue(e)?e:Ps(e);return r.start(Fp("",r,t,n)),r.animation}function ea(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const qO=(e,t)=>e.depth-t.depth;class YO{constructor(){this.children=[],this.isDirty=!1}add(t){_p(this.children,t),this.isDirty=!0}remove(t){pc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(qO),this.isDirty=!1,this.children.forEach(t)}}function JO(e,t){const n=Ze.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Pr(r),e(s-t))};return ae.setup(r,!0),()=>Pr(r)}function Ml(e){return Ue(e)?e.get():e}class XO{constructor(){this.members=[]}add(t){_p(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(pc(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(pc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:o}=t.options;(s===void 0||s!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,s,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(i=t.resumingFrom)==null?void 0:(s=i.options).onExitComplete)==null||o.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Il={hasAnimatedSinceResize:!0,hasEverUpdated:!1},od=["","X","Y","Z"],QO=1e3;let ZO=0;function ad(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Rk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=X1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ae,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Rk(r)}function Nk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=ZO++,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(nM),this.nodes.forEach(lM),this.nodes.forEach(cM),this.nodes.forEach(rM)},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 YO)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Cp),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=Wp(o)&&!tO(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;ae.read(()=>{d=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=JO(h,250),Il.hasAnimatedSinceResize&&(Il.hasAnimatedSinceResize=!1,this.nodes.forEach(Zy)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||pM,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=c.getProps(),m=!this.targetLayout||!Ak(this.targetLayout,p),g=!d&&h;if(this.options.layoutRoot||this.resumeFrom||g||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Lp(v,"layout"),onPlay:y,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,g)}else d||Zy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Pr(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(uM),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&&Rk(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,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(sM),this.nodes.forEach(Xy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Qy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oM),this.nodes.forEach(aM),this.nodes.forEach(eM),this.nodes.forEach(tM)):this.nodes.forEach(Qy),this.clearAllSnapshots();const a=Ze.now();ze.delta=xn(0,1e3/60,a-ze.timestamp),ze.timestamp=a,ze.isProcessing=!0,Qu.update.process(ze),Qu.preRender.process(ze),Qu.render.process(ze),ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$p.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iM),this.sharedNodes.forEach(dM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ae.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ae.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!et(this.snapshot.measuredBox.x)&&!et(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Pe()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ck(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Vr(this.latestValues)||u)&&(i(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)),mM(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Pe();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(gM))){const{scroll:u}=this.root;u&&(un(a.x,u.offset.x),un(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=Pe();if(Ft(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&&Ft(a,o),un(a.x,d.offset.x),un(a.y,d.offset.y))}return a}applyTransform(o,a=!1,l){var u,d;const c=l||Pe();Ft(c,o);for(let h=0;h<this.path.length;h++){const p=this.path[h];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(un(c.x,-p.scroll.offset.x),un(c.y,-p.scroll.offset.y)),Vr(p.latestValues)&&Ol(c,p.latestValues,(u=p.layout)==null?void 0:u.layoutBox)}return Vr(this.latestValues)&&Ol(c,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),c}removeTransform(o){var l;const a=Pe();Ft(a,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!Vr(u.latestValues))continue;let d;u.instance&&(Hh(u.latestValues)&&u.updateSnapshot(),d=Pe(),Ft(d,u.measurePageBox())),$y(a,u.latestValues,(l=u.snapshot)==null?void 0:l.layoutBox,d)}return Vr(this.latestValues)&&$y(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!==ze.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var p;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||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=ze.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pe(),this.targetWithTransforms=Pe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),LO(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Ft(this.target,this.layout.layoutBox),mk(this.target,this.targetDelta)):Ft(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!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||Hh(this.parent.latestValues)||pk(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=Pe(),this.relativeTargetOrigin=Pe(),bc(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Ft(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var v;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty)&&
vendor: 5,333 bytes, line 178
178(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ze.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;Ft(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;hO(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=Pe());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Dy(this.prevProjectionDelta.x,this.projectionDelta.x),Dy(this.prevProjectionDelta.y,this.projectionDelta.y)),So(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Gy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Gy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Xi(),this.projectionDelta=Xi(),this.projectionDeltaWithTransform=Xi()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Xi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Pe(),p=l?l.source:void 0,v=this.layout?this.layout.source:void 0,y=p!==v,x=this.getStack(),m=!x||x.members.length<=1,g=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(fM));this.animationProgress=0;let w;this.mixTargetDelta=k=>{const S=k/1e3;ev(d.x,o.x,S),ev(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bc(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),hM(this.relativeTarget,this.relativeTargetOrigin,h,S),w&&BO(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Pe()),Ft(w,this.relativeTarget)),y&&(this.animationValues=u,WO(u,c,this.latestValues,S,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},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&&(Pr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ae.update(()=>{Il.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ps(0)),this.motionValue.jump(0,!1),this.currentAnimation=GO(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(QO),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&&Ok(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Pe();const d=et(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=et(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Ft(a,l),Ol(a,u),So(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new XO),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: 4,506 bytes, line 178
178resetSkewAndRotation(){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&&ad("z",o,c,this.animationValues);for(let u=0;u<od.length;u++)ad(`rotate${od[u]}`,o,c,this.animationValues),ad(`skew${od[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=Ml(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=Ml(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Vr(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=$O(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:h,y:p}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${p.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 v in Gh){if(u[v]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:m}=Gh[v],g=d==="none"?u[v]:y(u[v],c);if(x){const w=x.length;for(let k=0;k<w;k++)o[x[k]]=g}else m?this.options.visualElement.renderState.vars[v]=g:o[v]=g}this.options.layoutId&&(o.pointerEvents=c===this?Ml(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(Xy),this.root.sharedNodes.clear()}}}function eM(e){e.updateLayout()}function tM(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;if(s==="size")sn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],p=et(h);h.min=r[d].min,h.max=h.min+p});else if(s==="x"||s==="y"){const d=s==="x"?"y":"x";qh(o?t.measuredBox[d]:t.layoutBox[d],r[d])}else Ok(s,t.layoutBox,r)&&sn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],p=et(r[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Xi();So(a,r,t.layoutBox);const l=Xi();o?So(l,e.applyTransform(i,!0),t.measuredBox):So(l,r,t.layoutBox);const c=!Ck(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const v=e.options.layoutAnchor||void 0,y=Pe();bc(y,t.layoutBox,h.layoutBox,v);const x=Pe();bc(x,r,p.layoutBox,v),Ak(y,x)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=x,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 nM(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 rM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iM(e){e.clearSnapshot()}function Xy(e){e.clearMeasurements()}function sM(e){e.isLayoutDirty=!0,e.updateLayout()}function Qy(e){e.isLayoutDirty=!1}function oM(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function aM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Zy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lM(e){e.resolveTargetDelta()}function cM(e){e.calcProjection()}
178function uM(e){e.resetSkewAndRotation()}function dM(e){e.removeLeadSnapshot()}function ev(e,t,n){e.translate=he(t.translate,0,n),e.scale=he(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tv(e,t,n,r){e.min=he(t.min,n.min,r),e.max=he(t.max,n.max,r)}function hM(e,t,n,r){tv(e.x,t.x,n.x,r),tv(e.y,t.y,n.y,r)}function fM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pM={duration:.45,ease:[.4,0,.1,1]},nv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rv=nv("applewebkit/")&&!nv("chrome/")?Math.round:jt;function iv(e){e.min=rv(e.min),e.max=rv(e.max)}function mM(e){iv(e.x),iv(e.y)}function Ok(e,t,n){return e==="position"||e==="preserve-aspect"&&!DO(Ky(t),Ky(n),.2)}function gM(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const yM=Nk({attachResizeListener:(e,t)=>ea(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}),ld={current:void 0},Mk=Nk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ld.current){const e=new yM({});e.mount(window),e.setOptions({layoutScroll:!0}),ld.current=e}return ld.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Yp=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vM(...e){return t=>{let n=!1;const r=e.map(i=>{const s=sv(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():sv(e[i],null)}}}}function wM(...e){return b.useCallback(vM(...e),e)}class xM extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Pl(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=Pl(r)&&r.offsetWidth||0,s=Pl(r)&&r.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=s-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function bM({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:s}){var h;const o=b.useId(),a=b.useRef(null),l=b.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=b.useContext(Yp),u=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),d=wM(a,u);return b.useInsertionEffect(()=>{const{width:p,height:v,top:y,left:x,right:m,bottom:g}=l.current;if(t||s===!1||!a.current||!p||!v)return;const w=n==="left"?`left: ${x}`:`right: ${m}`,k=r==="bottom"?`bottom: ${g}`:`top: ${y}`;a.current.dataset.motionPopId=o;const S=document.createElement("style");c&&(S.nonce=c);const T=i??document.head;return T.appendChild(S),S.sheet&&S.sheet.insertRule(` 179 [data-motion-pop-id="${o}"] { 180 position: absolute !important; 181 width: ${p}px !important; 182 height: ${v}px !important; 183 ${w}px !important; 184 ${k}px !important; 185 } 186 `),()=>{var E;(E=a.current)==null||E.removeAttribute("data-motion-pop-id"),T.contains(S)&&T.removeChild(S)}},[t]),f.jsx(xM,{isPresent:t,childRef:a,sizeRef:l,pop:s,children:s===!1?e:b.cloneElement(e,{ref:d})})}const kM=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,anchorY:l,root:c})=>{const u=Ep(SM),d=b.useId();let h=!0,p=b.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:v=>{u.set(v,!0);for(const y of u.values())if(!y)return;r&&r()},register:v=>(u.set(v,!1),()=>u.delete(v))}),[n,u,r]);return s&&h&&(p={...p}),b.useMemo(()=>{u.forEach((v,y)=>u.set(y,!1))},[n]),b.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=f.jsx(bM,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),f.jsx(tu.Provider,{value:p,children:e})};function SM(){return new Map}function Ik(e=!0){const t=b.useContext(tu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=b.useId();b.useEffect(()=>{if(e)return i(s)},[e]);const o=b.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Za=e=>e.key||"";function ov(e){const t=[];
vendor: 2,810 bytes, line 186
186return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const Jp=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=Ik(o),h=b.useMemo(()=>ov(e),[e]),p=o&&!u?[]:h.map(Za),v=b.useRef(!0),y=b.useRef(h),x=Ep(()=>new Map),m=b.useRef(new Set),[g,w]=b.useState(h),[k,S]=b.useState(h);l1(()=>{v.current=!1,y.current=h;for(let _=0;_<k.length;_++){const P=Za(k[_]);p.includes(P)?(x.delete(P),m.current.delete(P)):x.get(P)!==!0&&x.set(P,!1)}},[k,p.length,p.join("-")]);const T=[];if(h!==g){let _=[...h];for(let P=0;P<k.length;P++){const A=k[P],F=Za(A);p.includes(F)||(_.splice(P,0,A),T.push(A))}return s==="wait"&&T.length&&(_=T),S(ov(_)),w(h),null}const{forceRender:E}=b.useContext(Tp);return f.jsx(f.Fragment,{children:k.map(_=>{const P=Za(_),A=o&&!u?!1:h===k||p.includes(P),F=()=>{if(m.current.has(P))return;if(x.has(P))m.current.add(P),x.set(P,!0);else return;let I=!0;x.forEach(G=>{G||(I=!1)}),I&&(E==null||E(),S(y.current),o&&(d==null||d()),r&&r())};return f.jsx(kM,{isPresent:A,initial:!v.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:c,onExitComplete:A?void 0:F,anchorX:a,anchorY:l,children:_},P)})})},Dk=b.createContext({strict:!1}),av={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 lv=!1;function TM(){if(lv)return;const e={};for(const t in av)e[t]={isEnabled:n=>av[t].some(r=>!!n[r])};dk(e),lv=!0}function Lk(){return TM(),lO()}function EM(e){const t=Lk();for(const n in e)t[n]={...t[n],...e[n]};dk(t)}const _M=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 kc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_M.has(e)}let Fk=e=>!kc(e);function CM(e){typeof e=="function"&&(Fk=t=>t.startsWith("on")?!kc(t):e(t))}try{CM(require("@emotion/is-prop-valid").default)}catch{}function AM(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||Ue(e[i])||
vendor: 24,528 bytes, line 186
186(Fk(i)||n===!0&&kc(i)||!t&&!kc(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ou=b.createContext({});function PM(e,t){if(su(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zo(n)?n:void 0,animate:Zo(r)?r:void 0}}return e.inherit!==!1?t:{}}function jM(e){const{initial:t,animate:n}=PM(e,b.useContext(ou));return b.useMemo(()=>({initial:t,animate:n}),[cv(t),cv(n)])}function cv(e){return Array.isArray(e)?e.join(" "):e}const Xp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zk(e,t,n){for(const r in t)!Ue(t[r])&&!vk(r,n)&&(e[r]=t[r])}function RM({transformTemplate:e},t){return b.useMemo(()=>{const n=Xp();return Gp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function NM(e,t){const n=e.style||{},r={};return zk(r,n,e),Object.assign(r,RM(e,t)),r}function OM(e,t){const n={},r=NM(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 Uk=()=>({...Xp(),attrs:{}});function MM(e,t,n,r){const i=b.useMemo(()=>{const s=Uk();return wk(s,t,bk(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};zk(s,e.style,e),i.style={...s,...i.style}}return i}const IM=["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 Qp(e){return typeof e!="string"||e.includes("-")?!1:!!(IM.indexOf(e)>-1||/[A-Z]/u.test(e))}function DM(e,t,n,{latestValues:r},i,s=!1,o){const l=(o??Qp(e)?MM:OM)(t,r,i,e),c=AM(t,typeof e=="string",s),u=e!==b.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=b.useMemo(()=>Ue(d)?d.get():d,[d]);return b.createElement(e,{...u,children:h})}function LM({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:FM(n,r,i,e),renderState:t()}}function FM(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=Ml(s[h]);let{initial:o,animate:a}=e;const l=su(e),c=ck(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"&&!iu(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const v=zp(e,h[p]);if(v){const{transitionEnd:y,transition:x,...m}=v;for(const g in m){let w=m[g];if(Array.isArray(w)){const k=u?w.length-1:0;w=w[k]}w!==null&&(i[g]=w)}for(const g in y)i[g]=y[g]}}}return i}const Bk=e=>(t,n)=>{const r=b.useContext(ou),i=b.useContext(tu),s=()=>LM(e,t,r,i);return n?s():Ep(s)},zM=Bk({scrapeMotionValuesFromProps:qp,createRenderState:Xp}),UM=Bk({scrapeMotionValuesFromProps:kk,createRenderState:Uk}),BM=Symbol.for("motionComponentSymbol");function $M(e,t,n){const r=b.useRef(n);b.useInsertionEffect(()=>{r.current=n});const i=b.useRef(null);return b.useCallback(s=>{var a;s&&((a=e.onMount)==null||a.call(e,s));const o=r.current;if(typeof o=="function")if(s){const l=o(s);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(s);else o&&(o.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const $k=b.createContext({});function Ni(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VM(e,t,n,r,i,s){var w,k;const{visualElement:o}=b.useContext(ou),a=b.useContext(Dk),l=b.useContext(tu),c=b.useContext(Yp),u=c.reducedMotion,d=c.skipAnimations,h=b.useRef(null),p=b.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:s}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const v=h.current,y=b.useContext($k);v&&!v.projection&&i&&(v.type==="html"||v.type==="svg")&&WM(h.current,n,i,y);const x=b.useRef(!1);b.useInsertionEffect(()=>{v&&x.current&&v.update(n,l)});const m=n[J1],g=b.useRef(!!m&&typeof window<"u"&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,m))&&((k=window.MotionHasOptimisedAnimation)==null?void 0:k.call(window,m)));return l1(()=>{p.current=!0,v&&(x.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),g.current&&v.animationState&&v.animationState.animateChanges())}),b.useEffect(()=>{v&&(!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,m)}),g.current=!1),v.enteringChildren=void 0)}),v}function WM(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Vk(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Ni(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function Vk(e){if(e)return e.options.allowProjection!==!1?e.projection:Vk(e.parent)}function cd(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&EM(r);const s=n?n==="svg":Qp(e),o=s?UM:zM;function a(c,u){let d;const h={...b.useContext(Yp),...c,layoutId:HM(c)},{isStatic:p}=h,v=jM(c),y=o(c,p);if(!p&&typeof window<"u"){KM();const x=GM(h);d=x.MeasureLayout,v.visualElement=VM(e,y,h,i,x.ProjectionNode,s)}return f.jsxs(ou.Provider,{value:v,children:[d&&v.visualElement?f.jsx(d,{visualElement:v.visualElement,...h}):null,DM(e,c,$M(y,v.visualElement,u),y,p,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=b.forwardRef(a);return l[BM]=e,l}function HM({layoutId:e}){const t=b.useContext(Tp).id;return t&&e!==void 0?t+"-"+e:e}function KM(e,t){b.useContext(Dk).strict}function GM(e){const t=Lk(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function qM(e,t){if(typeof Proxy>"u")return cd;const n=new Map,r=(s,o)=>cd(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,cd(o,void 0,e,t)),n.get(o))})}const YM=(e,t)=>t.isSVG??Qp(e)?new EO(t):new wO(t,{allowProjection:e!==b.Fragment});class JM extends Mr{constructor(t){super(t),t.animationState||(t.animationState=jO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();iu(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 XM=0;class QM extends Mr{constructor(){super(...arguments),this.id=XM++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"){const l=ai(this.node,o,a);if(l){const{transition:c,transitionEnd:u,...d}=l;for(const h in d)(s=this.node.getValue(h))==null||s.jump(d[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ZM={animation:{Feature:JM},exit:{Feature:QM}};function ka(e){return{point:{x:e.pageX,y:e.pageY}}}const eI=e=>t=>Vp(t)&&e(t,ka(t));function To(e,t,n,r){return ea(e,t,eI(n),r)}const Wk=({current:e})=>e?e.ownerDocument.defaultView:null,uv=(e,t)=>Math.abs(e-t);function tI(e,t){const n=uv(e.x,t.x),r=uv(e.y,t.y);return Math.sqrt(n**2+r**2)}const dv=new Set(["auto","scroll"]);class Hk{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=el(this.lastRawMoveEventInfo,this.transformPagePoint));const p=ud(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,y=tI(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!y)return;const{point:x}=p,{timestamp:m}=ze;this.history.push({...x,timestamp:m});const{onStart:g,onMove:w}=this.handlers;v||(g&&g(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,p)},this.handlePointerMove=(p,v)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=v,this.lastMoveEventInfo=el(v,this.transformPagePoint),ae.update(this.updatePoint,!0)},this.handlePointerUp=(p,v)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=ud(p.type==="pointercancel"?this.lastMoveEventInfo:el(v,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,g),x&&x(p,g)},!Vp(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const l=ka(t),c=el(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=ze;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,ud(c,this.history)),this.removeListeners=wa(To(this.contextWindow,"pointermove",this.handlePointerMove),To(this.contextWindow,"pointerup",this.handlePointerUp),To(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(dv.has(r.overflowX)||dv.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),ae.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Pr(this.updatePoint)}}function el(e,t){return t?{point:t(e.point)}:e}function hv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ud({point:e},t){return{point:e,delta:hv(e,Kk(t)),offset:hv(e,nI(t)),velocity:rI(t,.1)}}function nI(e){return e[0]}function Kk(e){return e[e.length-1]}function rI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Kk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>dt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>dt(t)*2&&(r=e[1]);const s=At(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function iI(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?he(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?he(n,e,r.max):Math.min(e,n)),e}function fv(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 sI(e,{top:t,left:n,bottom:r,right:i}){return{x:fv(e.x,n,i),y:fv(e.y,t,r)}}function pv(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 oI(e,t){return{x:pv(e.x,t.x),y:pv(e.y,t.y)}}function aI(e,t){let n=.5;const r=et(e),i=et(t);return i>r?n=Xo(t.min,t.max-r,e.min):r>i&&(n=Xo(e.min,e.max-i,t.min)),xn(0,1,n)}function lI(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 Yh=.35;function cI(e=Yh){return e===!1?e=0:e===!0&&(e=Yh),{x:mv(e,"left","right"),y:mv(e,"top","bottom")}}function mv(e,t,n){return{min:gv(e,t),max:gv(e,n)}}function gv(e,t){return typeof e=="number"?e:e[t]||0}const uI=new WeakMap;class dI{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=Pe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=d=>{n&&this.snapToCursor(ka(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:p,dragPropagation:v,onDragStart:y}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=FN(p),!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(m=>{let g=this.getAxisMotionValue(m).get()||0;if(vn.test(g)){const{projection:w}=this.visualElement;if(w&&w.layout){const k=w.layout.layoutBox[m];k&&(g=et(k)*(parseFloat(g)/100))}}this.originPoint[m]=g}),y&&ae.update(()=>y(d,h),!1,!0),Uh(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:y,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:m}=h;if(v&&this.currentDirection===null){this.currentDirection=fI(m),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,m),this.updateAxis("y",h.point,m),this.visualElement.render(),x&&ae.update(()=>x(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 Hk(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Wk(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&ae.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!tl(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=iI(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Ni(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=sI(r.layoutBox,t):this.constraints=!1,this.elastic=cI(n),i!==this.constraints&&!Ni(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&sn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=lI(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ni(t))return!1;const r=t.current;Cs(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:i}=this.visualElement;if(!i||!i.layout)return!1;const s=fO(r,i.root,this.visualElement.getTransformPagePoint());let o=oI(i.layout.layoutBox,s);if(n){const a=n(uO(o));this.hasMutatedConstraints=!!a,a&&(o=fk(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=sn(u=>{if(!tl(u,n,this.currentDirection))return;let d=l&&l[u]||{};(o===!0||o===u)&&(d={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,v={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Uh(this.visualElement,t),r.start(Fp(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(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){sn(n=>{const{drag:r}=this.getProps();if(!tl(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-he(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ni(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};sn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=aI({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),sn(o=>{if(!tl(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(he(l,c,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;uI.set(this.visualElement,this);const t=this.visualElement.current,n=To(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=c.target,p=h!==t&&WN(h);u&&d&&!p&&this.start(c)});let r;const i=()=>{const{dragConstraints:c}=this.getProps();Ni(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=hI(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ae.read(i);const a=ea(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.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:i=!1,dragConstraints:s=!1,dragElastic:o=Yh,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function yv(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function hI(e,t,n){const r=Ty(e,yv(n)),i=Ty(t,yv(n));return()=>{r(),i()}}function tl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class pI extends Mr{constructor(t){super(t),this.removeGroupControls=jt,this.removeListeners=jt,this.controls=new dI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||jt}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 dd=e=>(t,n)=>{e&&ae.update(()=>e(t,n),!1,!0)};class mI extends Mr{constructor(){super(...arguments),this.removePointerDownListener=jt}onPointerDown(t){this.session=new Hk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:dd(t),onStart:dd(n),onMove:dd(r),onEnd:(s,o)=>{delete this.session,i&&ae.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=To(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 hd=!1;class gI extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),hd&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Il.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),hd=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||ae.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),$p.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;hd=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Gk(e){const[t,n]=Ik(),r=b.useContext(Tp);return f.jsx(gI,{...e,layoutGroup:r,switchLayoutGroup:b.useContext($k),isPresent:t,safeToRemove:n})}const yI={pan:{Feature:mI},drag:{Feature:pI,ProjectionNode:Mk,MeasureLayout:Gk}};function vv(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&ae.postRender(()=>s(t,ka(t)))}class vI extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=UN(t,(n,r)=>(vv(this.node,r,"Start"),i=>vv(this.node,i,"End"))))}unmount(){}}class wI extends Mr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=wa(ea(this.node.current,"focus",()=>this.onFocus()),ea(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function wv(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&ae.postRender(()=>s(t,ka(t)))}class xI extends Mr{mount(){const{current:t}=this.node;if(!t)return;
186const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=KN(t,(i,s)=>(wv(this.node,s,"Start"),(o,{success:a})=>wv(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Jh=new WeakMap,fd=new WeakMap,bI=e=>{const t=Jh.get(e.target);t&&t(e)},kI=e=>{e.forEach(bI)};function SI({root:e,...t}){const n=e||document;fd.has(n)||fd.set(n,{});const r=fd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(kI,{root:e,...t})),r[i]}function TI(e,t,n){const r=SI(t);return Jh.set(e,n),r.observe(e),()=>{Jh.delete(e),r.unobserve(e)}}const EI={some:0,all:1};class _I extends Mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:EI[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=u?d:h;p&&p(c)};this.stopObserver=TI(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(CI(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function CI({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AI={inView:{Feature:_I},tap:{Feature:xI},focus:{Feature:wI},hover:{Feature:vI}},PI={layout:{ProjectionNode:Mk,MeasureLayout:Gk}},jI={...ZM,...AI,...yI,...PI},D=qM(jI,YM),xv=[{label:"Home",id:"home"},{label:"About",id:"bio"},{label:"Concerts",id:"concerts"},{label:"Symphonic",id:"symphonic"},{label:"Filmography",id:"filmography"},{label:"Documentaries",id:"documentaries"},{label:"Discography",id:"discography"},{label:"Awards",id:"awards"},{label:"Contact",id:"contact"}],au=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),i=Ux(),s=Ms();b.useEffect(()=>{const a=()=>t(window.scrollY>80);return window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)},[]);const o=a=>{if(r(!1),s.pathname==="/")if(a==="home")window.scrollTo({top:0,behavior:"smooth"});else{const l=document.getElementById(a);l==null||l.scrollIntoView({behavior:"smooth"})}else i(a==="home"?"/":`/#${a}`)};return b.useEffect(()=>{if(s.pathname==="/"&&s.hash){const a=s.hash.replace("#","");setTimeout(()=>{const l=document.getElementById(a);l==null||l.scrollIntoView({behavior:"smooth"})},100)}},[s]),f.jsxs(f.Fragment,{children:[f.jsx(D.nav,{initial:{y:-80},animate:{y:0},transition:{duration:.8,ease:"easeOut"},className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${e?"bg-background/90 backdrop-blur-md border-b border-border/50":""}`,children:f.jsxs("div",{className:"max-w-7xl mx-auto px-6 md:px-16 lg:px-24 flex items-center justify-between h-16 md:h-20",children:[f.jsx("button",{onClick:()=>o("home"),className:"font-serif text-lg tracking-wider text-primary",children:"FA"}),f.jsx("ul",{className:"hidden lg:flex items-center gap-6",children:xv.map(a=>f.jsx("li",{children:f.jsx("button",{onClick:()=>o(a.id),className:"text-[10px] tracking-[0.2em] uppercase text-muted-foreground hover:text-primary transition-colors duration-300",children:a.label})},a.id))}),f.jsx("button",{onClick:()=>r(!n),className:"lg:hidden text-foreground",children:n?f.jsx(bb,{size:20}):f.jsx(sP,{size:20})})]})}),f.jsx(Jp,{children:n&&f.jsx(D.div,{initial:{opacity:0}
186,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-background/98 backdrop-blur-lg flex items-center justify-center",children:f.jsx("ul",{className:"flex flex-col items-center gap-6",children:xv.map((a,l)=>f.jsx(D.li,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:l*.07},children:f.jsx("button",{onClick:()=>o(a.id),className:"font-serif text-2xl text-foreground hover:text-primary transition-colors",children:a.label})},a.id))})})})]})},RI="/assets/fahir-concert-night-DukuvPnp.webp",NI=[{label:"Spotify",href:"https://open.spotify.com/artist/6Mj20Zm7PRpGzoNN453mSq"},{label:"Instagram",href:"https://www.instagram.com/fahiratakoglu/"},{label:"Facebook",href:"https://www.facebook.com/fahiratakoglu/"},{label:"X",href:"https://x.com/Fahiratakoglu"},{label:"IMDB",href:"https://www.imdb.com/name/nm0040232/"},{label:"YouTube",href:"https://www.youtube.com/@FahirAtakogluOfficial"}],OI=[{value:"18",label:"Albums"},{value:"55+",label:"Film & TV Credits"},{value:"30,000+",label:"Commercial Jingles"},{value:"2M+",label:"Albums Sold"},{value:"20",label:"Countries"}],MI=()=>f.jsxs("section",{id:"home",className:"relative h-screen w-full overflow-hidden noise-overlay",children:[f.jsxs("div",{className:"absolute inset-0",children:[f.jsx("img",{src:RI,alt:"Fahir AtakoÄlu performing live on stage",className:"w-full h-full object-cover",width:1920,height:1080}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/80 to-transparent"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-transparent to-background/40"})]}),f.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none z-[5]",children:["âª","â«","â©","â¬","âª"].map((e,t)=>f.jsx(D.span,{className:"absolute text-primary/10 font-serif",style:{left:`${10+t*20}%`,top:"60%",fontSize:`${20+t*8}px`},animate:{y:[-20,-100-t*20],opacity:[.3,0],x:[0,t%2===0?20:-20]},transition:{duration:4+t,repeat:1/0,delay:t*1.5,ease:"easeOut"},children:e},t))}),f.jsxs("div",{className:"relative z-10 flex flex-col justify-end h-full px-6 md:px-16 lg:px-24 pt-40 md:pt-44 pb-24 max-w-7xl mx-auto",children:[f.jsxs(D.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:1.2,ease:"easeOut"},children:[f.jsx("p",{className:"mt-8 md:mt-10 text-primary font-light tracking-[0.4em] uppercase text-xs md:text-sm mb-4",children:"Pianist · Composer · Visionary"}),f.jsxs("h1",{className:"text-6xl md:text-8xl lg:text-9xl font-serif font-light leading-[0.9] tracking-tight",children:[f.jsx("span",{className:"text-gradient-gold",children:"Fahir"}),f.jsx("br",{}),f.jsx("span",{className:"text-foreground",children:"AtakoÄlu"})]}),f.jsx(D.p,{initial:{opacity:0}
186,animate:{opacity:1},transition:{delay:.6,duration:1},className:"mt-6 max-w-lg text-muted-foreground text-xs md:text-sm leading-relaxed font-light",children:"Award-Winning Composer | Film Scores | Jazz | Symphonic Works | 18 Albums | Carnegie Hall to Istanbul"}),f.jsx(D.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.7,duration:.8},className:"mt-6 flex items-center gap-6 md:gap-10",children:OI.map((e,t)=>f.jsxs("div",{className:"text-center",children:[f.jsx(D.span,{className:"text-primary text-xl md:text-2xl font-serif block",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{delay:.9+t*.1},children:e.value}),f.jsx("span",{className:"text-muted-foreground/60 text-[9px] tracking-[0.2em] uppercase",children:e.label})]},e.label))}),f.jsxs(D.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.8,duration:.8},className:"mt-8 flex flex-wrap items-center gap-4",children:[f.jsxs("a",{href:"https://open.spotify.com/artist/6Mj20Zm7PRpGzoNN453mSq",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground text-xs tracking-[0.15em] uppercase font-medium hover:bg-primary/90 transition-colors glow-gold",children:[f.jsx(ss,{size:14}),"Listen on Spotify"]}),f.jsx("a",{href:"#contact",onClick:e=>{var t;e.preventDefault(),(t=document.getElementById("contact"))==null||t.scrollIntoView({behavior:"smooth"})},className:"inline-flex items-center gap-2 px-6 py-3 border border-primary/40 text-primary text-xs tracking-[0.15em] uppercase font-medium hover:bg-primary/10 transition-colors",children:"Book Now"}),f.jsx("div",{className:"flex items-center gap-3",children:NI.map(e=>f.jsx("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] tracking-[0.15em] uppercase text-muted-foreground hover:text-primary transition-colors","aria-label":e.label,children:e.label},e.label))})]}),f.jsxs(D.p,{initial:{opacity:0}
186,animate:{opacity:1},transition:{delay:1,duration:1},className:"mt-10 max-w-md text-muted-foreground text-sm leading-relaxed font-light italic",children:['"One of the outstanding pianists and composers in Europe today... At the cutting edge of world music."',f.jsx("span",{className:"block mt-2 not-italic text-primary/80 text-xs tracking-wider",children:"â Ahmet Ertegun, Atlantic Records"})]})]}),f.jsxs(D.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.5,duration:1},className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2",children:[f.jsx("span",{className:"text-muted-foreground text-[10px] tracking-[0.3em] uppercase",children:"Scroll"}),f.jsx(D.div,{animate:{y:[0,8,0]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},className:"w-px h-8 bg-gradient-to-b from-primary to-transparent"})]})]})]}),qk="/assets/fahir-sea-CPYshd1U.jpeg",II=()=>f.jsx("section",{id:"bio",className:"relative py-20 px-6 md:px-16 lg:px-24 noise-overlay",children:f.jsxs("div",{className:"max-w-7xl mx-auto grid lg:grid-cols-2 gap-16 items-center relative z-10",children:[f.jsxs(D.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"relative",children:[f.jsx("img",{src:qk,alt:"Fahir AtakoÄlu portrait â award-winning Turkish-American pianist and composer",className:"w-full h-[400px] lg:h-[550px] object-cover",loading:"lazy"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background/30 to-transparent"})]}),f.jsxs(D.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,delay:.2},children:[f.jsx("p",{className:"text-primary text-xs tracking-[0.4em] uppercase mb-4",children:"Biography"}),f.jsxs("h2",{className:"font-serif text-4xl md:text-5xl lg:text-6xl font-light mb-8 text-foreground leading-tight",children:["About ",f.jsx("span",{className:"text-gradient-gold italic",children:"Fahir AtakoÄlu"})]}),f.jsxs("div",{className:"space-y-5 text-muted-foreground text-sm leading-relaxed font-light",children:[f.jsxs("p",{children:[f.jsx("strong",{className:"text-foreground/80",children:"Mustafa Fahir AtakoÄlu"})," was born January 28, 1963 in Kadıköy, Istanbul. At age 7, his mother recognized his musical gift and sold her jewelry to buy him a piano. At 15, while attending IÅık High School, his music teacher Muzaffer Uz introduced him to Turkey's legendary composer Cemal ReÅit Rey. He studied under Rey from 1977â1980 â years he calls transformative:",f.jsx("em",{className:"text-foreground/70",children:'"There was nothing but music for me."'})," He also attended the Istanbul State Conservatory (1978â1980)."]}),f.jsx("p",{children:"In 1980 he moved to London, studying at both the London School of Music and Croydon College, earning a degree in Marketing and Advertising in 1983. In London he began performing for large audiences for the first time. Drawn back by his mother's calls, he returned to Istanbul and immediately immersed himself in the jazz club circuit, where his talent caught the attention of Turkey's top musicians."}),f.jsx("p",{children:`Since 1994 he has released 18 albums selling over 2 million copies across 20 countries. His compositions span 37+ film and TV credits. His film score for "Ayla: The Daughter of War" was Turkey's official Academy Award submission in 2018. In 2015 he was named one of the 50 Most Influential Turkish-American Artists. His album "For Love" (2020) â a collaboration of 42 artists from 8 countries â received seven first-round Grammy ballot nominations including Album of the Year, Song of the Year, and Best Jazz Instrumental Album. His latest single "Whispers in the Distance" (Feb 2025) with Matthew Shell continues to push boundaries.`})]}),f.jsx(Ts,{to:"/about",className:"inline-block mt-8 text-xs tracking-[0.2em] uppercase text-primary border border-primary/30 px-6 py-3 hover:bg-primary/10 transition-colors",children:"Full Biography â"}),f.jsxs("blockquote",{className:"mt-10 pl-6 border-l-2 border-primary/40",children:[f.jsx("p",{className:"text-foreground
186/80 italic font-serif text-lg leading-relaxed",children:'"One of the outstanding pianists and composers in Europe today â at the cutting edge of world music."'}),f.jsx("cite",{className:"block mt-3 text-primary text-xs tracking-wider not-italic",children:"â Ahmet Ertegun, Founder of Atlantic Records"})]}),f.jsxs("div",{className:"mt-6 space-y-3",children:[f.jsxs("p",{className:"text-muted-foreground/70 text-xs italic",children:['"Undeniably skillful and unique" â ',f.jsx("span",{className:"text-primary/80",children:"Jazz Times"})]}),f.jsxs("p",{className:"text-muted-foreground/70 text-xs italic",children:['"Pianist Fahir Atakoglu brings an assertive and exotic approach to the piano" â ',f.jsx("span",{className:"text-primary/80",children:"All About Jazz"})]})]})]})]})}),Yk="/assets/fahir-piano-red-DBn4yoiH.webp",DI=[{venue:"Carnegie Hall â Isaac Stern Auditorium",city:"New York City",details:"Sold-out solo concerts. April 2010: pianist and accompanist for Sezen Aksu's sold-out 2.5-hour concert â standing ovation. 2007: 'Painted on Water' with Sertab Erener, Dave Weckl, Trilok Gurtu, and Al di Meola.",highlight:!0},{venue:"Kodak Theatre (now Dolby Theatre)",city:"Los Angeles, CA",details:"Sold-out solo show. 2007: 'Painted on Water' with Sertab Erener, Dave Weckl, Trilok Gurtu, and Al di Meola.",highlight:!0},{venue:"Merkin Hall at Kaufman Music Center",city:"New York City",details:"March 12, 2020: 'Music of Hope Tour' â 16-piece string orchestra conducted by Saadi Zain, featuring Palestinian and Syrian musicians, poetry of Rumi and Yunus Emre.",date:"March 2020"},{venue:"Dizzy's Club at Jazz at Lincoln Center",city:"New York City",details:"Multiple performances as part of U.S. touring."},{venue:"DROM â East Village",city:"New York City",details:"December 27, 2024: Duo concert with Ara Dinkjian. March 28, 2025: Two sets with Ara Dinkjian â 1st set sold out. August 27, 2025: Second concert scheduled. December 16, 2010: Trio with Anthony Jackson and Horacio 'El Negro' Hernandez.",date:"2010â2025"},{venue:"Blues Alley",city:"Washington, D.C.",details:"January 29, 2020: With Letizia Gambi, Lenny White, Dave Stryker, Jisoo Ok, and Ollie Bomann."},{venue:"The Music Center at Strathmore",city:"North Bethesda, MD",details:"With Sezen Aksu as part of her U.S. tour."},{venue:"New Jersey Performing Arts Center",city:"Newark, NJ",details:"With Sezen Aksu as part of her U.S. tour."},{venue:"The Velvet Note",city:"Atlanta, GA",details:"U.S. tour stop before Jazz at Lincoln Center."},{venue:"Deer Head Inn",city:"Delaware Water Gap, PA",details:"Intimate jazz venue performance."}],LI=[{venue:"Umbria Jazz Festival â Teatro Morlacchi",city:"Perugia",details:"2010: Performed with Horacio 'El Negro' Hernandez and Alain Caron. Recorded and released as 'Live at Umbria Jazz' (2016).",highlight:!0},{venue:"Milano Film Festival",city:"Milan",details:"Won first prize for Documentary Music Compositions."}],FI=[{venue:"Atatürk Cultural Center (AKM)",city:"Istanbul",details:"January 31, 2025: Premiere of 'Music: Fahir AtakoÄlu' documentary at AKM's 2,040-seat Opera Hall, supported by Turkey's Presidential Directorate of Communications. October 14, 2022: BeyoÄlu Culture Route Festival.",highlight:!0},{venue:"19th Antalya Piano Festival",city:"Antalya",details:"September 8, 2018: Performed with the Antalya National Symphony Orchestra, conducted by legendary maestro Gürer Aykali.",date:"September 2018",highlight:!0},{venue:"Bodrum Jazz Festival",city:"Bodrum",details:"September 5, 2018: Solo piano concert at 'Off GümuÅlük.'",date:"September 2018"},{venue:"Istanbul State Opera & Ballet",city:"Istanbul",details:"'East Side Story' (AÄır Roman) â composed and performed both in Istanbul and at Hollywood's John Anson Ford Amphitheater (August 2006)."},{venue:"'100 Project' Symphonic Concert",city:"Istanbul",details:"Performed with the Cinema Symphony Orchestra and Choir during Turkey's 100th Republic Anniversary Celebrations."},{venue:"Art of Banksy Exhibition",city:"Istanbul",details:"2016: Premiered 'Musical Reflections of the Art of Banksy' â a 6-part, 25-minute live composition."}],zI=[{venue:"The Music of Hope Tour",city:"International",details:"Humanitarian concert tour dedicated to refugees worldwide. Features Palestinian and Syrian musicians, poetry of Rumi, Yunus Emre, Fouad Muhammad Fouad, Khaled Juma, and Rafeef Ziadah. Promoting unity, tolerance, and peace.",highlight:!0},{venue:"2016 World Tour",city:"International",details:"Full international world tour following the release of 'Live at Umbria Jazz.'"},{venue:"European & U.S. Festival Circuit",city:"Ongoing",details:"Extensive performances at music festivals across Europe, the United States, and Turkey spanning four decades."}],bv=[{venue:"To Be Announced",city:"New York City",date:"Summer 2026",details:"Details coming soon"},{venue:"To Be Announced",city:"Europe",date:"Fall 2026",details:"Details coming soon"},{venue:"To Be Announced",city:"Istanbul",date:"Late 2026",details:"Details coming soon"}],nl={usa:"border-l-primary",italy:"border-l-cobalt",turkey:"border-l-crimson",international:"border-l-amber"},UI=({entry:e,color:t})=>f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:`group p-6 bg-card/30 border border-border/30 ${t} border-l-2 hover:border-primary/40 transition-all duration-500 glow-gold-hover`,children:[f.jsxs("div",{className:"flex items-start justify-between mb-2",children:[f.jsx("h4",{className:"font-serif text-lg text-foreground group-hover:text-primary transition-colors leading-snug",children:e.venue}),e.highlight&&f.jsx("span",{className:"text-[9px] tracking-[0.2em] uppercase text-primary border border-primary/30 px-2 py-0.5
186shrink-0 ml-2",children:"Highlight"})]}),f.jsxs("div",{className:"flex items-center gap-2 mb-3 text-muted-foreground",children:[f.jsx(xb,{size:11}),f.jsx("span",{className:"text-xs tracking-wider",children:e.city}),e.date&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-border",children:"·"}),f.jsx(nP,{size:11}),f.jsx("span",{className:"text-xs",children:e.date})]})]}),f.jsx("p",{className:"text-muted-foreground text-xs font-light leading-relaxed",children:e.details})]}),rl=({title:e,icon:t,concerts:n,color:r})=>f.jsxs("div",{className:"mb-16",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t,f.jsx("h3",{className:"font-serif text-2xl text-foreground",children:e})]}),f.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:n.map(i=>f.jsx(UI,{entry:i,color:r},i.venue))})]}),BI=()=>f.jsx("section",{id:"concerts",className:"py-20 px-6 md:px-16 lg:px-24 bg-gradient-dark noise-overlay",children:f.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-20 text-center",children:[f.jsx("p",{className:"text-primary text-xs tracking-[0.4em] uppercase mb-4",children:"On Stage"}),f.jsxs("h2",{className:"font-serif text-5xl md:text-6xl lg:text-7xl font-light text-foreground",children:["Concerts & ",f.jsx("span",{className:"text-gradient-gold italic",children:"Performances"})]}),f.jsx("p",{className:"mt-6 text-muted-foreground text-sm font-light max-w-2xl mx-auto leading-relaxed",children:"From Carnegie Hall to Umbria Jazz Festival, from Atatürk Cultural Center to DROM NYC â four decades of electrifying live performances across the globe."})]}),bv.length>0&&f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-16 p-6 md:p-8 bg-primary/5 border border-primary/20 relative overflow-hidden",children:[f.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-primary/60 to-transparent"}),f.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[f.jsx(cP,{size:14,className:"text-primary"}),f.jsx("h3",{className:"font-serif text-sm tracking-[0.3em] uppercase text-primary",children:"Upcoming Events"})]}),f.jsx("div",{className:"grid md:grid-cols-3 gap-px bg-primary/10",children:bv.map(e=>f.jsxs("div",{className:"bg-background/40 p-5 flex flex-col gap-2",children:[f.jsx("span",{className:"text-primary text-[10px] tracking-[0.25em] uppercase font-medium",children:e.date}),f.jsx("h4",{className:"font-serif text-lg text-foreground leading-tight",children:e.venue}),f.jsxs("p",{className:"text-muted-foreground text-xs font-light",children:[e.city," â ",e.details]})]},e.venue+e.date))})]}),f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-16 relative overflow-hidden rounded-sm",children:[f.jsx("img",{src:Yk,alt:"Fahir AtakoÄlu performing live at concert venue",className:"w-full h-[300px] md:h-[400px] object-cover",loading:"lazy"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/20 to-transparent"}),f.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[...Array(5)].map((e,t)=>f.jsx(D.div,{className:"absolute text-primary/20 text-2xl",style:{left:`${15+t*18}%`,bottom:"20%"},animate:{y:[-20,-80],opacity:[.6,0],rotate:[0,15]},transition:{duration:3,repeat:1/0,delay:t*.7,ease:"easeOut"},children:"âª"},t))})]}),f.jsx(rl,{title:"United States",icon:f.jsx(Ya,{size:18,className:"text-primary"}),concerts:DI,color:nl.usa}),f.jsx(rl,{title:"Italy",icon:f.jsx(Ya,{size:18,className:"text-cobalt"}),concerts:LI,color:nl.italy}),f.jsx(rl,{title:"Turkey",icon:f.jsx(Ya,{size:18,className:"text-crimson"}),concerts:FI,color:nl.turkey}),f.jsx(rl,{title:"International Tours",icon:f.jsx(Ya,{size:18,className:"text-amber"}),concerts:zI,color:nl.international})]})}),lu="/assets/fahir-orchestra-USvs7F3f.jpg",$I=[{title:"Antalya National Symphony Orchestra",desc:"19th Antalya Piano Festival, September 8, 2018. Conducted by Gürer Aykali. One of Turkey's most prestigious classical music events."},{title:"Cinema Symphony Orchestra",desc:"'100 Project' Symphonic Concert: Performed during Turkey's 100th Republic Anniversary Celebrations, supported by Istanbul Metropolitan Municipality."},{title:"Istanbul State Opera and Ballet",desc:"'East Side Story' (AÄır Roman): Full score composed and performed in Istanbul and at Hollywood's John Anson Ford Amphitheater, August 2006."}
186,{title:"Music of Hope Tour â 16-Piece String Orchestra",desc:"Merkin Hall, New York City, conducted by Saadi Zain, featuring Palestinian and Syrian musicians."},{title:"'For Love' (2020) â Full Symphonic String Orchestrations",desc:"Blending Turkish, Cuban, Brazilian, Spanish, Italian, and American jazz elements."},{title:"Magnificent Century â Full Orchestral Score",desc:"Full orchestral score for all 139 episodes. Aired in 65 countries and on Netflix."},{title:"Film Score Orchestrations",desc:"Ayla (2017), Turkish Ice-Cream (2019), Pocket Hercules (2019), Come on My Son (2018), 49 (2023)."},{title:"Imagination Stage â Washington D.C.",desc:"Commissioned to compose original music for 'Aladdin's Luck,' 'Never Ending Story,' 'Perfectly Persephone' (a retelling of the Greek myth), and 'The Caucasian Chalk Circle' (a play-within-a-play exploring justice and love)."}],VI=()=>f.jsx("section",{id:"symphonic",className:"py-32 px-6 md:px-16 lg:px-24 bg-gradient-cobalt noise-overlay",children:f.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-20 text-center",children:[f.jsx("p",{className:"text-cobalt text-xs tracking-[0.4em] uppercase mb-4",children:"Orchestral"}),f.jsxs("h2",{className:"font-serif text-5xl md:text-6xl lg:text-7xl font-light text-foreground",children:["Symphonic & ",f.jsx("span",{className:"text-gradient-gold italic",children:"Orchestral Work"})]})]}),f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-16 relative overflow-hidden rounded-sm",children:[f.jsx("img",{src:lu,alt:"Fahir AtakoÄlu performing with symphony orchestra on stage",className:"w-full h-[300px] md:h-[400px] object-cover",loading:"lazy"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/20 to-transparent"})]}),f.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:$I.map((e,t)=>f.jsx(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.05},className:"group p-8 bg-card/40 border border-border/30 hover:border-cobalt/40 transition-all duration-500",children:f.jsxs("div",{className:"flex items-start gap-4",children:[f.jsx(ss,{size:16,className:"text-cobalt mt-1 shrink-0"}),f.jsxs("div",{children:[f.jsx("h4",{className:"font-serif text-lg text-foreground group-hover:text-primary transition-colors mb-2",children:e.title}),f.jsx("p",{className:"text-muted-foreground text-xs font-light leading-relaxed",children:e.desc})]})]})},e.title))})]})}),Sc="/assets/fahir-speaking-DgzOZnwt.jpeg",kv=["Lintas","McCann Erickson","CDP Europe","Young & Rubicam","Saatchi & Saatchi","Ogilvy & Mather","TBWA Istanbul","Ali Taran Creative"],WI=[{name:"Filli Boya â 'Hayattan Rengi Alın' (2012â2014)",desc:"Fahir composed and performed the iconic jingle 'Hayattan Rengi Alın, Geri Neyi Kalır Ki?' on piano with a full orchestra. The 2012 campaign aired simultaneously on 33 channels and featured Tarkan, Selçuk Yöntem, Zerrin Tekindor, Tülin Åahin, BuÄra Gülsoy, and Gupse Ãzay â each singing the jingle in their own style. In 2013 and 2014, the campaign continued with new celebrity editions and a collaboration with Turkish rock band Manga.",year:"2012â2014",tag:"Iconic Jingle"},{name:"GittiGidiyor â E-Commerce Campaign (2016)",desc:"Composed the original score for Turkey's leading e-commerce platform's national campaign, produced by 25 Film for TBWA Istanbul. The emotionally resonant commercial aired across TV, internet, and cinema.",year:"2016",tag:"Digital"}],HI=[{category:"Automotive & Industry",brands:["Renault","Fiat","Ford Otosan","Arçelik","Vestel"]},{category:"Food & Beverage",brands:["Coca-Cola Turkey","Efes Pilsen","Ãlker","Pınar"]},{category:"Telecom & Banking",brands:["Turkcell","Türk Telekom","İŠBankası","Garanti BBVA"]},{category:"Consumer & Lifestyle",brands:["Filli Boya","GittiGidiyor","THY","Mavi Jeans"]}],KI=()=>f.jsx("section",{id:"commercials",className:"py-32 px-6 md:px-16 lg:px-24 noise-overlay",children:f.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-20 text-center",children:[f.jsx("p",{className:"text-amber text-xs tracking-[0.4em] uppercase mb-4",children:"Reklam MüziÄi & Advertising"}),f.jsxs("h2",{className:"font-serif text-5xl md:text-6xl lg:text-7xl font-light text-foreground",children:["The Sound of ",f.jsx("span",{className:"text-gradient-gold italic",children:"Brands"})]}),f.jsx("p",{className:"mt-6 text-muted-foreground text-sm font-light max-w-3xl mx-auto leading-relaxed",children:"From 1987 to the present, Fahir AtakoÄlu has composed music for over 30,000 national and international commercials â averaging one jingle per day for over a decade. Working with Turkey's top agencies and the country's most beloved brands, his advertising work spans television, radio, cinema, and digital platforms across nearly four decades."})]}),f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-16 relative overflow-hidden rounded-sm",children:[f.jsx("img",{src:Sc,alt:"Fahir AtakoÄlu speaking at industry event",className:"w-full h-[250px] md:h-[350px] object-cover",loading:"lazy"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/20 to-transparent"})]}),f.jsxs("div",{className:"mb-16 overflow-hidden",children:[f.jsx("p",{className:"text-center text-muted-foreground
186/50 text-[10px] tracking-[0.3em] uppercase mb-4",children:"Agency Partners"}),f.jsx("div",{className:"flex items-center gap-8 animate-[scroll_20s_linear_infinite] whitespace-nowrap",children:[...kv,...kv].map((e,t)=>f.jsx("span",{className:"text-muted-foreground/40 text-sm tracking-[0.2em] uppercase font-light shrink-0",children:e},t))})]}),f.jsxs("div",{className:"mb-16",children:[f.jsx("p",{className:"text-center text-primary text-[10px] tracking-[0.3em] uppercase mb-8",children:"Featured Campaigns"}),f.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:WI.map((e,t)=>f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.15},className:"group relative p-8 bg-card/40 border border-border/30 hover:border-amber/40 transition-all duration-500",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[f.jsx("span",{className:"text-[10px] tracking-[0.2em] uppercase text-primary/70 bg-primary/10 px-3 py-1 rounded-full",children:e.tag}),f.jsx("span",{className:"text-[10px] tracking-[0.15em] text-muted-foreground/50",children:e.year})]}),f.jsx("h4",{className:"font-serif text-lg text-foreground group-hover:text-primary transition-colors mb-4",children:e.name}),f.jsx("p",{className:"text-muted-foreground text-xs font-light leading-relaxed",children:e.desc})]},e.name))})]}),f.jsxs("div",{className:"mb-16",children:[f.jsx("p",{className:"text-center text-primary text-[10px] tracking-[0.3em] uppercase mb-8",children:"Brands & Sectors"}),f.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:HI.map((e,t)=>f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"p-6 bg-card/30 border border-border/20",children:[f.jsx("h5",{className:"text-xs tracking-[0.2em] uppercase text-primary/80 mb-4",children:e.category}),f.jsx("ul",{className:"space-y-2",children:e.brands.map(n=>f.jsxs("li",{className:"text-muted-foreground text-xs font-light flex items-center gap-2",children:[f.jsx("span",{className:"w-1 h-1 rounded-full bg-primary/40"}),n]},n))})]},e.category))})]}),f.jsx(D.div,{initial:{opacity:0}
186,whileInView:{opacity:1},viewport:{once:!0},className:"grid grid-cols-3 gap-4 mb-16 max-w-2xl mx-auto text-center",children:[{num:"30,000+",label:"Commercials"},{num:"37+",label:"Years in Advertising"},{num:"7+",label:"Agency Partners"}].map(e=>f.jsxs("div",{children:[f.jsx("p",{className:"font-serif text-3xl md:text-4xl text-primary",children:e.num}),f.jsx("p",{className:"text-muted-foreground text-[10px] tracking-[0.2em] uppercase mt-1",children:e.label})]},e.label))}),f.jsxs(D.blockquote,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"max-w-3xl mx-auto text-center",children:[f.jsx("div",{className:"w-12 h-px bg-primary mx-auto mb-8"}),f.jsx("p",{className:"font-serif text-2xl md:text-3xl text-foreground/90 italic leading-relaxed",children:'"My training in advertising jingles honed my skill as a composer â it taught me how to create immediate emotional context within music."'}),f.jsx("cite",{className:"block mt-6 text-primary text-xs tracking-[0.2em] uppercase not-italic",children:"â Fahir AtakoÄlu"})]})]})}),GI="/assets/fahir-duo-bw-DudRYj6D.jpg",qI=[{name:"Sezen Aksu",desc:"Co-wrote hit songs. Pianist at Carnegie Hall (April 2010), The Music Center at Strathmore, and NJPAC. Featured on İz (2008) â 'La'l.' One of Turkey's most important musical partnerships spanning decades."},{name:"Tarkan",desc:"'Alaturka' on İz (2008). Appeared together in the Filli Boya commercial with Fahir on piano. Turkey's biggest pop icon."},{name:"Sertab Erener",desc:"'İstanbul' on İz (2008). 2007 Carnegie Hall and Kodak Theatre 'Painted on Water' performances with Dave Weckl, Trilok Gurtu, and Al di Meola. Eurovision winner."},{name:"Levent Yüksel",desc:"'Sır' on İz (2008). Featured in the 'Music: Fahir AtakoÄlu' documentary, speaking on Fahir's genius and creative process."},{name:"Nilüfer",desc:"'UzaÄım Olma' on İz (2008). Iconic Turkish pop diva."},{name:"Buika",desc:"Spanish-African vocalist. Featured on 'Por Amor' from the 'For Love' album (2020) â nominated for Grammy Song of the Year."},{name:"Luciana Souza",desc:"Grammy-winning Brazilian vocalist. Featured on the 'For Love' album (2020)."},{name:"Mazhar Fuat Ãzkan (MFÃ)",desc:"Composed original music for this legendary Turkish rock trio â one of the most iconic bands in Turkish music history."},{name:"Mazhar Alanson",desc:"Close peer and collaborator. Appeared in the 'Music: Fahir AtakoÄlu' documentary sharing insights on their musical bond."},{name:"Ata Demirer",desc:"Turkey's beloved comedian. Fahir composed the complete soundtrack for Eyyvah Eyvah 3 (2014) and served as musical director for Eyyvah Eyvah (2010)."},{name:"Demir Demirkan",desc:"Guitarist and composer. Connected through the 'Painted on Water' project with Sertab Erener â Carnegie Hall and Kodak Theatre performances."},{name:"Notis Sfakianakis (Greece)",desc:"'Telos Dihos Telos' â 4x platinum, 480,000+ copies sold. Won Best Song Award, Mega Channel Greece. One of the biggest hits in Greek music history."},{name:"Jehan Barbur",desc:"Vocal on 'Sır' â İz (2008)."},{name:"Ara Dinkjian",desc:"Armenian-American oud virtuoso. Multiple duo concerts at DROM NYC (Dec 2024, March 2025, August 2025). A meeting of two masters from neighboring musical traditions."},{name:"Hülya KoçyiÄit",desc:"Legendary Turkish actress. Attended the 'Music: Fahir AtakoÄlu' documentary premiere at AKM, Istanbul (January 2025)."},{name:"Aimée Allen",desc:"American jazz vocalist featured on the 'For Love' album (2020)."},{name:"Letizia Gambi",desc:"Italian vocalist. Featured on 'For Love' (2020) and performed at Blues Alley and Music of Hope Tour."}],YI=()=>f.jsx("section",{id:"collaborations",className:"py-32 px-6 md:px-16 lg:px-24 bg-gradient-crimson noise-overlay",children:f.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-20 text-center",children:[f.jsx("p",{className:"text-crimson text-xs tracking-[0.4em] uppercase mb-4",children:"Together"}),f.jsxs("h2",{className:"font-serif text-5xl md:text-6xl lg:text-7xl font-light text-foreground",children:["Artist ",f.jsx("span",{className:"text-gradient-gold italic",children:"Collaborations"})]}),f.jsx("p",{className:"mt-6 text-muted-foreground text-sm font-light max-w-2xl mx-auto leading-relaxed",children:"From Turkey's biggest pop icons to Grammy-winning international vocalists â a legacy of world-class musical partnerships."})]}),f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-16 relative overflow-hidden rounded-sm",children:[f.jsx("img",{src:GI,alt:"Fahir AtakoÄlu and Ara Dinkjian performing at DROM New York",className:"w-full h-[300px] md:h-[400px] object-cover object-top",loading:"lazy"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/20 to-transparent"}),f.jsx("div",{className:"absolute bottom-4 left-6 text-xs text-muted-foreground
186/70 tracking-wider",children:"Fahir AtakoÄlu & Ara Dinkjian â DROM, NYC"})]}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-5",children:qI.map((e,t)=>f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.04},className:"group p-6 bg-card/40 border border-border/30 hover:border-primary/40 transition-all duration-500 glow-gold-hover",children:[f.jsx("h4",{className:"font-serif text-xl text-foreground group-hover:text-primary transition-colors mb-3",children:e.name}),f.jsx("p",{className:"text-muted-foreground text-xs font-light leading-relaxed",children:e.desc})]},e.name))})]})}),Jk="/assets/fahir-trio-bw-DjPVRvIU.jpg",JI=[{title:"Core Touring Trio",members:[{name:"Horacio 'El Negro' Hernandez",role:"Drums (Cuba)"},{name:"Alain Caron",role:"Bass (Canada)"},{name:"Anthony Jackson",role:"Bass (USA)"}]},{title:"Faces & Places (2012)",members:[{name:"John Patitucci",role:"Bass"},{name:"Randy Brecker",role:"Trumpet"},{name:"Bob Mintzer",role:"Saxophone"},{name:"Wayne Krantz",role:"Electric Guitar"},{name:"Romero Lubambo",role:"Guitar"},{name:"Rene Toledo",role:"Flamenco Guitar"},{name:"Rogerio Bocatto",role:"Percussion"}]},{title:"For Love (2020) â 42 Artists, 8 Countries",members:[{name:"Buika",role:"Vocals (Spain) â 'Por Amor' feat."},{name:"Luciana Souza",role:"Vocals (Brazil)"},{name:"Letizia Gambi",role:"Vocals (Italy)"},{name:"Aimée Allen",role:"Vocals (USA)"},{name:"Fatih Ahiskali",role:"Strings"},{name:"Ugur Varol",role:"Strings"},{name:"Cagatay Cetin",role:"Musician"},{name:"Ozer Arkun",role:"Musician"},{name:"Göksun Cavdar",role:"Musician"}]},{title:"Istanbul in Blue (2007/2008)",members:[{name:"Mike Stern",role:"Guitar"},{name:"Wayne Krantz",role:"Guitar"},{name:"Bob Franceschini",role:"Saxophone"}]},{title:"Music of Hope Tour",members:[{name:"Bob Franceschini",role:"Saxophone"},{name:"Armando Gola",role:"Bass"},{name:"Mustafa Boztüy",role:"Turkish Percussion"},{name:"Adam Maalouf",role:"Cello & Hand Pan"},{name:"Kinan Azmeh",role:"Clarinet (Syria)"},{name:"Estrella Acosta",role:"Vocals"},{name:"Letizia Gambi",role:"Vocals"},{name:"Maria Olon Tsaroucha",role:"Spoken Word"},{name:"Saadi Zain",role:"Conductor"},{name:"Jisoo Ok",role:"Musician"},{name:"Ollie Bomann",role:"Musician"}]},{title:"2025 Collaborations",members:[{name:"Matthew Shell",role:"Producer â 'Whispers in the Distance' (Feb 2025)"},{name:"Jackie Bertone",role:"Featured â 'Whispers in the Distance'"},{name:"Hector Ruano",role:"Featured â 'Whispers in the Distance'"},{name:"Francesca Prattico",role:"Featured â 'Whispers in the Distance'"},{name:"Joanna Pearl",role:"Artist â 'Whispers in the Distance'"}]},{title:"Other Notable Collaborators",members:[{name:"Dave Weckl",role:"Drums ('Painted on Water' 2007)"},{name:"Trilok Gurtu",role:"Percussion ('Painted on Water' 2007)"},{name:"Al di Meola",role:"Guitar ('Painted on Water' 2007)"},{name:"Lenny White",role:"Drums (Blues Alley 2020)"},{name:"Dave Stryker",role:"Guitar (Blues Alley 2020)"},{name:"Rüstem Mustafa",role:"Musician (For Love)"}]}],XI=()=>f.jsx("section",{id:"musicians",className:"py-32 px-6 md:px-16 lg:px-24 bg-gradient-violet noise-overlay",children:f.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-20 text-center",children:[f.jsx("p",{className:"text-violet text-xs tracking-[0.4em] uppercase mb-4",children:"World-Class Musicians"}),f.jsxs("h2",{className:"font-serif text-5xl md:text-6xl lg:text-7xl font-light text-foreground",children:["International ",f.jsx("span",{className:"text-gradient-gold italic",children:"Collaborators"})]})]}),f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-16 relative overflow-hidden rounded-sm",children:[f.jsx("img",{src:Jk,alt:"Fahir AtakoÄlu with international musician collaborators backstage",className:"w-full h-[300px] md:h-[400px] object-cover",loading:"lazy"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/20 to-transparent"})]}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:JI.map((e,t)=>f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.05},className:"p-8 bg-card/40 border border-border/30 hover:border-violet/40 transition-all duration-500",children:[f.jsx("h4",{className:"font-serif text-lg text-primary mb-5",children:e.title}),f.jsx("ul",{className:"space-y-3",children:e.members.map(n=>f.jsxs("li",{className:"flex items-baseline gap-2",children:[f.jsx("span",{className:"text-foreground text-sm font-medium",children:n.name}),f.jsxs("span",{className:"text-muted-foreground text-xs font-light",children:["â ",n.role]}
186)]},n.name))})]},e.title))})]})}),to=[{title:"Kıbrıs Türküsü (Al Beni Baba)",year:"2026",description:"Original score composed by Fahir AtakoÄlu. Also known as 'Al Beni Baba'.",posterUrl:"https://m.media-amazon.com/images/M/MV5BNTBiOGZhMTMtZmJhZi00YjJkLWFkY2YtNWEzYzA2YjNmYjIzXkEyXkFqcGc@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt37698303/",type:"film",rating:"5.0",altText:"Kıbrıs Türküsü (Al Beni Baba) film â score by Fahir AtakoÄlu"},{title:"Lefter: The Story of the Ordinarius",year:"2025",description:"Biographical drama about Lefter Küçükandonyadis, the legendary Fenerbahçe footballer. Original score by Fahir AtakoÄlu. Directed by Can Ulkay.",posterUrl:"https://m.media-amazon.com/images/M/MV5BZThkNDM1MGItYjYxZC00ZjJlLTk2YjMtYWJkZGU2MGFmYWFmXkEyXkFqcGc@._V1_QL75_UY414_CR3,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt34433451/",type:"film",rating:"6.4",altText:"Lefter film â original score by Fahir AtakoÄlu"},{title:"Bi Umut",year:"2025",description:"Original score composed by Fahir AtakoÄlu.",posterUrl:"https://m.media-amazon.com/images/M/MV5BYjcyYzAzMDktOTIyYi00OWJkLWI0MjktNWNhZGE0NDYyNDQwXkEyXkFqcGc@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt37025457/",type:"film",rating:"7.6",altText:"Bi Umut film â score by Fahir AtakoÄlu"},{title:"Blue Cave",year:"2024",description:"Original score.",posterUrl:"https://m.media-amazon.com/images/M/MV5BNTU4NTY0N2QtNjA1NC00MWFjLWI2YjQtZmUxZjM4OGU0MDU2XkEyXkFqcGc@._V1_QL75_UX280_CR0,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt32313870/",amazonUrl:"https://www.primevideo.com/detail/0FZD92KQL9F54WXYW70YIKH9E7/",type:"film",rating:"5.3",altText:"Blue Cave film â score by Fahir AtakoÄlu"},{title:"Intoxicated by Love",year:"2024",description:"Original score.",posterUrl:"https://m.media-amazon.com/images/M/MV5BMGJkZWQwNDYtNThlYS00M2RkLWI3MTktYjQ0MzJhNTcyYWZjXkEyXkFqcGc@._V1_QL75_UY414_CR1,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt11281220/",type:"film",rating:"6.9",altText:"Intoxicated by Love film â music by Fahir AtakoÄlu"},{title:"Hayatla BarıÅ",year:"2024",description:"Original score. Drama exploring themes of reconciliation and inner peace.",posterUrl:"https://m.media-amazon.com/images/M/MV5BOWY4MjUzYzktMWE0Yi00NjBjLTg2MDItMzQyN2FmZmNmNDUzXkEyXkFqcGc@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt25785988/",type:"film",rating:"6.3",altText:"Hayatla BarıŠfilm â music by Fahir AtakoÄlu"},{title:"Regardless / HerÅeye RaÄmen",year:"2023",description:"Original score composed by Fahir AtakoÄlu.",posterUrl:"https://m.media-amazon.com/images/M/MV5BMzFlMmVhZmYtYWFhNi00MTU0LWFiMTItYTdiOTgwODk2ODQ0XkEyXkFqcGc@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt10923334/",type:"film",rating:"5.0",altText:"Regardless Herseye Ragmen film â score by Fahir AtakoÄlu"},{title:"49",year:"2023",description:"Thriller based on true events. Turkish intelligence operatives rescue 49 hostages from ISIS after the invasion of Mosul on June 11, 2014.",posterUrl:"https://m.media-amazon.com/images/M/MV5BMzhkOGM4YzktZDE4ZC00MjA0LWJkNzgtYjgyMzZmZGRlODdkXkEyXkFqcGc@._V1_QL75_UX280_CR0,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt21741198/",type:"film",rating:"5.6",altText:"49 film poster â original score by Fahir AtakoÄlu"},{title:"KesiÅme: İyi Ki Varsın Eren",year:"2022",description:"True story drama. Tagline: 'Your scar becomes who you are.'",posterUrl:"https://m.media-amazon.com/images/M/MV5BYWQ4MWFlNTctODVkMy00YTFlLWJkZDAtNTlmYmU5NTAzMTNlXkEyXkFqcGc@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt13761148/",amazonUrl:"https://www.primevideo.com/detail/Kesi%C5%9Fme-Eren-%C4%B0yi-Ki-Vars%C4%B1n/0TG407YT9M3PC7RHLE852PA5F3",type:"film",rating:"7.3",altText:"KesiÅme İyi Ki Varsın Eren film â music by Fahir AtakoÄlu"},{title:"15/07: Break of Dawn",year:"2021",description:"Composed '15 Temmuz Destanı' (Epic of July 15) â premiered at the Presidential Complex. Score became part of Turkey's cultural memory.",posterUrl:"https://m.media-amazon.com/images/M/MV5BZTA4Yzc2MzctZjQwZC00YjEyLTg3NjQtNzNiMGJmNTE1MTVmXkEyXkFqcGc@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt14878948/",type:"film",rating:"1.3",altText:"15/07 Break of Dawn â score by Fahir AtakoÄlu"},{title:"Dumlupınar: Vatan SaÄolsun",year:"2019",description:"Submarine war drama directed by Can Ulkay. The true story of 81 crew members trapped in the Dumlupınar submarine after a collision in the Dardanelles in 1953.",posterUrl:"https://tr.web.img3.acsta.net/c_310_420/pictures/19/04/29/11/12/2519936.jpg",imdbUrl:"https://www.imdb.com/title/tt4602774/",type:"film",altText:"Dumlupınar Vatan SaÄolsun film â score by Fahir AtakoÄlu"},{title:"Pocket Hercules: Naim Süleymanoglu",year:"2019",description:"Biographical film about Turkey's legendary three-time Olympic weightlifting champion.",posterUrl:"https://m.media-amazon.com/images/M/MV5BY2I4OGE0NGEtY2YxYy00YzBkLWI0NDctNzhkMWIzNDg1ZmUzXkEyXkFqcGc@._V1_QL75_UX280_CR0,1,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt9500372/",type:"film",rating:"8.2",altText:"Pocket Hercules Naim Suleymanoglu film â score by Fahir AtakoÄlu"},{title:"Turkish Ice-Cream / Türk İÅi Dondurma",year:"2019",description:"WWI-era historical drama directed by Can Ulkay. Two Turkish men selling ice cream in Australia return to fight at Gallipoli in 1915.",posterUrl:"https://m.media-amazon.com/images/M/MV5BYzNjODdmYmUtYTVlZS00YzRlLTk3YTktYTg5OTRkYjU3M2ViXkEyXkFqcGc@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt9034290/",amazonUrl:"https://www.primevideo.com/detail/T%C3%BCrk-%C4%B0%C5%9Fi-Dondurma/0FZ76R2S85ERUZZPU36T9EHMUI",type:"film",rating:"6.4",altText:"Turkish Ice Cream film poster â soundtrack by Fahir AtakoÄlu"},{title:"Come on My Son / Hadi Be OÄlum",year:"2018",description:"Emotional family drama
186starring Kıvanç TatlıtuÄ about a father navigating his relationship with his autistic son Efe. Directed by Bora Egemen.",posterUrl:"https://m.media-amazon.com/images/M/MV5BNmNmNTQxMGItMTA0NS00NTM5LWE2NTgtNzE3YTA5Y2MwY2NhXkEyXkFqcGc@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt7628458/",type:"film",rating:"7.0",altText:"Hadi Be Ogum film poster â music by Fahir AtakoÄlu"},{title:"Ayla: The Daughter of War",year:"2017",description:"Turkey's official Academy Award submission for Best Foreign Language Film. Directed by Can Ulkay. True story of Turkish Sergeant Süleyman DilbirliÄi who rescues a 5-year-old Korean orphan during the Korean War. Full 29-track original score.",posterUrl:"https://m.media-amazon.com/images/M/MV5BMDRhYTNiMjMtY2U1OC00NWIwLTk0MTEtMDY1NTMxZDExYjBmXkEyXkFqcGc@._V1_QL75_UY414_CR3,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt6316138/",amazonUrl:"https://www.primevideo.com/detail/Ayla/0TVPHQO0KRZRH8XQEW2ORK2KHF",type:"film",rating:"8.2",altText:"Ayla The Daughter of War movie poster â score by Fahir AtakoÄlu"},{title:"Olanlar Oldu",year:"2017",description:"Comedy film. Fahir AtakoÄlu arranged 'İncirler Olana Kadar' for the soundtrack.",posterUrl:"https://m.media-amazon.com/images/M/MV5BNDBhYTkyMGMtNzRhZC00NTVjLTlkODctNjgyZDE5ZDc1ODllXkEyXkFqcGc@._V1_QL75_UY414_CR1,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt6313158/",type:"film",rating:"6.2",altText:"Olanlar Oldu film â arrangement by Fahir AtakoÄlu"},{title:"AÅk Sana Benzer",year:"2015",description:"Romantic drama. Original score by Fahir AtakoÄlu. Also performed accordion and piano.",posterUrl:"https://m.media-amazon.com/images/M/MV5BMjk3OTcyNTU3NF5BMl5BanBnXkFtZTgwMTM0NjM4MzE@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt4114762/",type:"film",rating:"3.8",altText:"AÅk Sana Benzer film â score by Fahir AtakoÄlu"},{title:"Eyyvah Eyvah 3",year:"2014",description:"Third installment of Turkey's beloved comedy franchise starring Ata Demirer and Demet AkbaÄ. Composed all original songs including 'Yatıya Kalayım', 'Zabıta', 'Ãek Ãek Ãek', 'Balık', 'Kayıp', 'Bayram', 'Hüzün', 'Menajer', 'KavuÅma'.",posterUrl:"https://m.media-amazon.com/images/M/MV5BMTU2NTcwNTU4NF5BMl5BanBnXkFtZTgwMzY0OTEyMTE@._V1_QL75_UY414_CR5,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt3478046/",type:"film",rating:"5.9",altText:"Eyyvah Eyvah 3 film â music by Fahir AtakoÄlu"},{title:"Eyyvah Eyvah 2",year:"2011",description:"Second installment of the hit comedy franchise starring Ata Demirer. A clarinetist from Thrace tries to win back his fiancée. Box office hit grossing $24.7M internationally.",posterUrl:"https://m.media-amazon.com/images/M/MV5BMjA3MDM3OTAxNF5BMl5BanBnXkFtZTcwNTcyODY5Ng@@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt1801051/",type:"film",rating:"6.6",altText:"Eyyvah Eyvah 2 film â music by Fahir AtakoÄlu"},{title:"Eyyvah Eyvah",year:"2010",description:"Turkey's beloved comedy hit starring Ata Demirer as a clarinet
186ist struggling to make it in the music world. Fahir served as musical director. Launched one of Turkey's biggest film franchises.",posterUrl:"https://m.media-amazon.com/images/M/MV5BMjA3MDM3OTAxNF5BMl5BanBnXkFtZTcwNTcyODY5Ng@@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt1594918/",type:"film",rating:"7.0",altText:"Eyyvah Eyvah film â musical direction by Fahir AtakoÄlu"},{title:"Beyza'nın Kadınları",year:"2006",description:"Psychological drama based on the bestselling novel. Score by Fahir AtakoÄlu. Also performed keyboard and piano.",posterUrl:"https://m.media-amazon.com/images/M/MV5BZmMyMTI1MTctYmExNi00MjhiLWEwOGMtMGVjZWUwZDFlNjkzXkEyXkFqcGc@._V1_QL75_UY414_CR2,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt0476148/",type:"film",rating:"6.2",altText:"Beyza'nın Kadınları film â score by Fahir AtakoÄlu"},{title:"Exile in Büyükada",year:"2000",description:"Drama set on Istanbul's Princes' Islands. Music editing by Fahir AtakoÄlu.",posterUrl:"https://m.media-amazon.com/images/M/MV5BMTQ0MzY5NDY1MF5BMl5BanBnXkFtZTcwNTIyMzcxMQ@@._V1_QL75_UY414_CR6,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt0311098/",type:"film",rating:"6.9",altText:"Exile in Büyükada film â music by Fahir AtakoÄlu"},{title:"Dar Alanda Kısa PaslaÅmalar / Offside",year:"2000",description:"Cult Turkish drama. One of the earliest film scores in Fahir AtakoÄlu's career. Also performed percussion.",posterUrl:"https://m.media-amazon.com/images/M/MV5BNTUyZjc5ODQtM2Y1Yy00OGM3LTgyMDktNThiMmJkNGFmYTAwXkEyXkFqcGc@._V1_QL75_UY414_CR5,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt0265144/",type:"film",rating:"7.3",altText:"Dar Alanda Kısa PaslaÅmalar film â early score by Fahir AtakoÄlu"},{title:"Berlin in Berlin",year:"1993",description:"Early career film composition. One of Fahir AtakoÄlu's earliest film scoring credits.",posterUrl:"https://m.media-amazon.com/images/M/MV5BNmE1ZGNmZTktM2Y2My00MTg4LWI3NTMtOTQ5OTgzODE0MWIyXkEyXkFqcGc@._V1_QL75_UY414_CR9,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt0106389/",type:"film",rating:"5.5",altText:"Berlin in Berlin film â early score by Fahir AtakoÄlu"}],Sv=[{title:"Magnificent Century / MuhteÅem Yüzyıl",year:"2011â2014",description:"Full orchestral score for all 139 episodes of Turkey's most-watched historical drama. Aired in 65 countries and on Netflix.",posterUrl:"https://m.media-amazon.com/images/M/MV5BMTMxNjYzNTg0M15BMl5BanBnXkFtZTcwNzY1MzIxNg@@._V1_QL75_UY414_CR7,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt1848220/",amazonUrl:"https://www.primevideo.com/detail/Muhte%C5%9Fem-Y%C3%BCzy%C4%B1l/0HSC1H3FJ1YHT5P463DC5JE8HI",type:"tv",episodes:"139 episodes",rating:"7.0",altText:"Magnificent Century TV series â full orchestral score by Fahir AtakoÄlu"},{title:"Ahl Al Kahf",year:"2024",description:"Original music composer for this Arabic-language production.",posterUrl:"https://m.media-amazon.com/images/M/MV5BY2NiYzAyM2UtY2M0MS00MTdiLWJkMzctMjVkMWNmNGYyNjEwXkEyXkFqcGc@._V1_QL75_UY414_CR8,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt15684016/",type:"tv",rating:"5.2",altText:"Ahl Al Kahf series â original music by Fahir AtakoÄlu"},{title:"Yangın Günleri Independenta",year:"2023",description:"Original score for all 8 episodes.",posterUrl:"https://m.media-amazon.com/images/M/MV5BYzYxZGY2MGUtZDYzMy00MzBjLThlNmUtMzU5MDc2MWZjMDkyXkEyXkFqcGc@._V1_QL75_UY414_CR22,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt22394746/",type:"tv",episodes:"8 episodes",rating:"5.4",altText:"Yangin Gunleri Independenta series â score by Fahir AtakoÄlu"},{title:"The Red Room / Kırmızı Oda",year:"2020â2022",description:"Fahir AtakoÄlu's music 'Farkındayım' featured in this acclaimed Turkish psychological drama series.",posterUrl:"https://m.media-amazon.com/images/M/MV5BZTVlZWU2ODMtMGY3MS00MWU3LTg0NDktMDY0MzRkYmE2ZTU5XkEyXkFqcGc@._V1_QL75_UY414_CR9,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt12687036/",type:"tv",rating:"7.3",altText:"The Red Room TV series â music by Fahir AtakoÄlu"},{title:"Bride of Istanbul / İstanbullu Gelin",year:"2017â2019",description:"Fahir AtakoÄlu's music 'Sır' featured in this popular Turkish TV drama
186series.",posterUrl:"https://m.media-amazon.com/images/M/MV5BNmFmNjFhNzctMDliZC00NWE5LTk4YmUtOTMzNTgxMDgwZTI5XkEyXkFqcGc@._V1_QL75_UY414_CR7,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt6462806/",type:"tv",rating:"7.1",altText:"Bride of Istanbul TV series â music by Fahir AtakoÄlu"},{title:"Saraya Abdeen",year:"2014â2015",description:"Theme music for this 42-episode Egyptian historical drama about Khedive Ismail Pasha and the intrigues of Abdeen Palace.",posterUrl:"https://m.media-amazon.com/images/M/MV5BNDBiMWUxOWUtODAyNy00YjRhLThkZGEtZjgwZDkzMDRmMGI4XkEyXkFqcGc@._V1_QL75_UY414_CR8,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt3843078/",type:"tv",episodes:"42 episodes",rating:"6.4",altText:"Saraya Abdeen Egyptian TV series â theme music by Fahir AtakoÄlu"},{title:"Omar / Farouk Omar",year:"2012",description:"Theme and additional music for this landmark 31-episode Arabic historical miniseries about Omar ibn Al-Khattab, the second Caliph of Islam.",posterUrl:"https://m.media-amazon.com/images/M/MV5BOWUxN2ZjZWYtYjViZC00ZmVlLTg4NDItNjY1OTAzODFkNDgzXkEyXkFqcGc@._V1_QL75_UY414_CR1,0,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt2063241/",type:"tv",episodes:"31 episodes",rating:"9.1",altText:"Omar Farouk Omar TV series â music by Fahir AtakoÄlu"},{title:"O Ses Türkiye (The Voice Turkey)",year:"2011âpresent",description:"Fahir AtakoÄlu's composition 'Anında Görüntü' featured in Turkey's version of The Voice.",posterUrl:"https://m.media-amazon.com/images/M/MV5BZTk0Y2E2MTQtYjI1Zi00YWQyLTk1NDYtOTE2ZmQyOGIxYTk0XkEyXkFqcGc@._V1_QL75_UX280_CR0,10,280,414_.jpg",imdbUrl:"https://www.imdb.com/title/tt8960548/",type:"tv",rating:"4.6",altText:"O Ses Türkiye TV show â music by Fahir AtakoÄlu"}],Tv=({entry:e})=>f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"group relative bg-card/30 border border-border/30 hover:border-primary/40 transition-all duration-500 overflow-hidden glow-gold-hover",children:[f.jsxs("div",{className:"relative aspect-[2/3] bg-muted/10 overflow-hidden",children:[f.jsx("img",{src:e.posterUrl,alt:e.altText,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",loading:"lazy"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/80 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),e.rating&&f.jsxs("div",{className:"absolute top-2 right-2 bg-background/80 backdrop-blur-sm px-2 py-1 flex items-center gap-1",children:[f.jsx("span",{className:"text-primary text-xs",children:"â
"}),f.jsx("span",{className:"text-foreground text-xs font-medium",children:e.rating})]}),e.year==="Upcoming"&&f.jsx("div",{className:"absolute top-2 left-2 bg-primary/90 px-2 py-1",children:f.jsx("span",{className:"text-primary-foreground text-[10px] tracking-[0.15em] uppercase font-medium",children:"Upcoming"})})]}),f.jsxs("div",{className:"p-5",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[f.jsx("span",{className:"text-[10px] tracking-[0.2em] uppercase text-primary border border-primary/30 px-2 py-0.5 shrink-0",children:"Composer"}),f.jsx("span",{className:"text-muted-foreground/60 text-xs",children:e.year})]}),f.jsx("h4",{className:"font-serif text-lg text-foreground group-hover:text-primary transition-colors leading-snug mb-2",children:e.title}),f.jsx("p",{className:"text-muted-foreground text-xs font-light leading-relaxed mb-3",children:e.description}),e.episodes&&f.jsx("p",{className:"text-primary/70 text-[10px] tracking-wider uppercase mb-3",children:e.episodes}),f.jsxs("div",{className:"flex items-center gap-3",children:[e.imdbUrl&&f.jsxs("a",{href:e.imdbUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[10px] tracking-[0.15em] uppercase text-muted-foreground hover:text-primary transition-colors",children:["IMDb ",f.jsx(gn,{size:10})]}),e.amazonUrl&&f.jsxs("a",{href:e.amazonUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[10px] tracking-[0.15em] uppercase text-muted-foreground hover:text-amber transition-colors",children:["Prime Video ",f.jsx(gn,{size:10})]})]})]})]}),QI=()=>{const[e,t]=b.useState(!1),n=e?to:to.slice(0,15);return f.jsx("section",{id:"filmography",className:"py-32 px-6 md:px-16 lg:px-24",children:f.jsxs("div",{className:"max-w-7xl mx-auto",children:[f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-20 text-center",children:[f.jsx("p",{className:"text-primary text-xs tracking-[0.4em] uppercase mb-4",children:"Cinema & Television"}),f.jsxs("h2",{className:"font-serif text-5xl md:text-6xl lg:text-7xl font-light text-foreground",children:["Film & ",f.jsx("span",{className:"text-gradient-gold italic",children:"Television Work"})]}),f.jsx("p",{className:"mt-6 text-muted-foreground text-sm font-light max-w-2xl mx-auto leading-relaxed",children:"55+ composer and music department credits spanning feature films, TV series, and documentaries â from Berlin in Berlin (1993) to upcoming releases."}),f.jsx(D.div,{initial:{opacity:0}
186,whileInView:{opacity:1},viewport:{once:!0},className:"mt-8 flex items-center justify-center gap-2",children:[...Array(7)].map((r,i)=>f.jsx(D.div,{className:"w-3 h-3 border border-primary/30 rounded-full",animate:{scale:[1,1.2,1],opacity:[.3,.7,.3]},transition:{duration:2,repeat:1/0,delay:i*.3}},i))})]}),f.jsxs("div",{className:"mb-20",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx(bh,{size:18,className:"text-primary"}),f.jsx("h3",{className:"font-serif text-2xl text-foreground",children:"Feature Films"}),f.jsxs("span",{className:"text-muted-foreground/50 text-xs ml-2",children:["(",to.length," titles)"]})]}),f.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4",children:n.map(r=>f.jsx(Tv,{entry:r},r.title))}),to.length>15&&f.jsx(D.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"mt-8 text-center",children:f.jsxs("button",{onClick:()=>t(!e),className:"inline-flex items-center gap-2 px-6 py-3 border border-primary/30 text-primary text-xs tracking-[0.15em] uppercase hover:bg-primary/10 transition-colors",children:[e?"Show Less":`Show All ${to.length} Films`,f.jsx(rP,{size:14,className:`transition-transform ${e?"rotate-180":""}`})]})})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx(uP,{size:18,className:"text-primary"}),f.jsx("h3",{className:"font-serif text-2xl text-foreground",children:"Television Series"}),f.jsxs("span",{className:"text-muted-foreground/50 text-xs ml-2",children:["(",Sv.length," series)"]})]}),f.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:Sv.map(r=>f.jsx(Tv,{entry:r},r.title))})]}),f.jsx(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-12 text-center",children:f.jsxs("a",{href:"https://www.imdb.com/name/nm0040232/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-8 py-4 bg-primary text-primary-foreground text-xs tracking-[0.15em] uppercase font-medium hover:bg-primary/90 transition-colors glow-gold",children:["Full Filmography on IMDb",f.jsx(gn,{size:12})]})})]})})},ZI=[{title:"Demirkırat: Bir Demokrasinin DoÄuÅu",year:"1991",director:"Mehmet Ali Birand, Can Dündar & Bülent Ãaplı",role:"Original Score Composer",description:"A landmark 10-part documentary series tracing Turkey's turbulent journey toward multi-party democracy from the 1930s to 1961 â the rise of the Demokrat Parti, the Menderes era, the 27 May 1960 coup, the Yassıada trials, and the execution of Adnan Menderes. Produced as a TRTâMilliyet Gazetesi joint production. Rated 9.0/10 on IMDb with 638 ratings.",imdbUrl:"https://www.imdb.com/title/tt4077876/",highlights:["10-episode series covering 1930sâ1961","IMDb rating: 9.0/10 (638 votes)","TRTâMilliyet Gazetesi co-production",'Iconic finale theme praised by Can Dündar as "muhteÅem"',"Widely regarded as one of Turkey's most important political documentaries"],legacy:`Can Dündar wrote: "Demirkırat'ın sonuna o muhteÅem final ezgisini yazabilmesi..." â praising Fahir's ability to compose the magnificent finale theme.`},{title:"Sarı Zeybek",year:"1993",director:"Can Dündar",role:"Original Score Composer",description:"The deeply moving 44-minute documentary telling the story of Mustafa Kemal Atatürk's last 300 days â his illness, the delayed diagnosis, his treatment, and his final moments â told through testimonies and memoirs of those closest to him. Produced by the 32. Gün team, first aired on Show TV on 10 Kasım 1993. Due to extraordinary public demand, it re-aired 3+ times. Rated 8.5/10 on Sinemalar.com (435 votes).",imdbUrl:"https://www.imdb.com/title/tt0323890/",highlights:["Atatürk's final 300 days â produced by 32. Gün","First aired 10 Kasım 1993 on Show TV","Re-aired 3+ times due to massive public demand","Later adapted into Can Dündar's bestselling book","Score evolved into a full Sahne Kantatı (Stage Cantata)"],legacy:"The score became synonymous with Atatürk commemoration. Its haunting melodies are performed annually on 10 Kasım by state symphony orchestras across Turkey."},{title:"12 Mart: İhtilalin Pençesinde Demokrasi",year:"1994",director:"Mehmet Ali Birand, Can Dündar & Bülent Ãaplı",role:"Original Score Composer",description:"A 10-part documentary examining Turkey from the 27 May 1960 coup through the March 12, 1971 military memorandum â 12 years of democracy under the shadow of intervention. Presented by Mehmet Ali Birand for 32. Gün. Each episode opens with Birand's narration over Fahir AtakoÄlu's haunting soprano-led score.",highlights:["10-episode series â 32. Gün production","Score opens with a soprano's haunting cry","Covers 1960 coup aftermath through 1971 memorandum","Explores impact on intellectuals and civil liberties","Released as part of Fahir's debut album 'Fahir's Music' (2000)"],legacy:`Can Dündar noted: "12 Mart'ın
186jeneriÄine bir Soprano'nun çıÄlıÄını eklemesi..." â The soprano's cry that opens the credits became one of the most memorable moments in Turkish documentary television.`}],eD=[{title:"Journey of Faith",year:"2008",director:"Victoria Barrett",role:"Original Score Composer",description:"A visually stunning documentary tracing the rich trail of Christianity through the ages in Turkey â visiting fourteen biblical locations including the resting place of Noah's Ark, the setting for the seven churches of Revelation, and the home of St. Nicholas. Hosted by Victoria Barrett with animated maps and works of fine art. Rated 7.9 on IMDb.",posterUrl:"https://dove.org/wp-content/uploads/8264.jpg",imdbUrl:"https://www.imdb.com/title/tt1391809/",highlights:["14 biblical locations across Turkey","IMDb rating: 7.9/10","Praised by Dove Foundation as 'an inspiring documentary'","Distributed by Shenandoah Films internationally"]},{title:"Müzik: Fahir AtakoÄlu",year:"2025",director:"Vizyon Film",role:"Subject & Featured Composer",description:"A feature-length documentary chronicling Fahir AtakoÄlu's extraordinary musical journey from Istanbul to the world stage. Premiered at the Atatürk Kültür Merkezi (AKM) in Taksim, Istanbul on February 1, 2025, attended by luminaries from arts, politics, and business. The film traces his evolution from a young piano student under Cemal ReÅit Rey to an internationally acclaimed composer.",posterUrl:"https://cdn.halktv.com.tr/news/399294.jpg",highlights:["World premiere at AKM, Taksim â February 1, 2025","Attended by leading figures from arts, politics & business","Traces journey from Istanbul to international stages","Produced by Vizyon Film"]}],tD=[{year:"2016",venue:"Bursa Bölge Devlet Senfoni Orkestrası",location:"Bursa",event:"10 Kasım Atatürk'ü Anma Konseri"},{year:"2016",venue:"EskiÅehir BüyükÅehir Belediyesi",location:"EskiÅehir",event:"Sarı Zeybek Senfonisi Sahnelenmesi"},{year:"2018",venue:"Anadolu Ãniversitesi & Devlet Senfoni Orkestrası",location:"EskiÅehir",event:"10 Kasım Atatürk'ü Anma â Sahne Kantatı"},{year:"2018",venue:"Ahmed Adnan Saygun Sanat Merkezi",location:"İzmir",event:"Sarı Zeybek Sahne Kantatı Konseri"}],nD=()=>{const[e,t]=b.useState("Sarı Zeybek");return f.jsxs("section",{id:"documentaries",className:"py-32 px-6 md:px-16 lg:px-24 relative overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 opacity-[0.03]",children:f.jsx("div",{className:"w-full h-full",style:{backgroundImage:"repeating-linear-gradient(0deg, transparent, transparent 40px, hsl(var(--primary)/0.3) 40px, hsl(var(--primary)/0.3) 41px)"}})}),f.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-20 text-center",children:[f.jsx("p",{className:"text-primary text-xs tracking-[0.4em] uppercase mb-4",children:"Documentary Film Music"}),f.jsxs("h2",{className:"font-serif text-5xl md:text-6xl lg:text-7xl font-light text-foreground",children:["Scoring ",f.jsx("span",{className:"text-gradient-gold italic",children:"History"})]}),f.jsx("p",{className:"mt-6 text-muted-foreground text-sm font-light max-w-3xl mx-auto leading-relaxed",children:"From Atatürk's final days to Turkey's journey toward democracy, Fahir AtakoÄlu's documentary scores transform historical narratives into deeply emotional musical experiences â compositions that have become inseparable from the stories they tell."}),f.jsx(D.div,{initial:{opacity:0}
186,whileInView:{opacity:1},viewport:{once:!0},className:"mt-8 flex items-center justify-center gap-1",children:[...Array(11)].map((n,r)=>f.jsx(D.div,{className:`h-1 rounded-full ${r===5?"w-8 bg-primary":"w-3 bg-primary/30"}`,animate:r===5?{opacity:[.7,1,.7]}:{opacity:[.2,.5,.2]},transition:{duration:3,repeat:1/0,delay:r*.15}},r))})]}),f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-24",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[f.jsx(bh,{size:18,className:"text-primary"}),f.jsx("h3",{className:"font-serif text-2xl text-foreground",children:"The Can Dündar Trilogy"})]}),f.jsx("p",{className:"text-muted-foreground text-sm font-light mb-10 max-w-2xl",children:"Three landmark documentaries that defined an era of Turkish political storytelling â each scored by Fahir AtakoÄlu, weaving history, emotion, and musical poetry into an unforgettable body of work."}),f.jsx(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12 relative",children:f.jsxs("div",{className:"border border-primary/20 bg-card/40 backdrop-blur-sm p-8 md:p-10 relative overflow-hidden",children:[f.jsx("div",{className:"absolute top-0 left-0 w-1 h-full bg-gradient-to-b from-primary via-primary/50 to-transparent"}),f.jsx(oP,{size:32,className:"text-primary/30 mb-4"}),f.jsx("blockquote",{className:"font-serif text-lg md:text-xl text-foreground/90 leading-relaxed italic mb-4",children:`"Kıbrıs'da kanunla buzukiyi ahenkle buluÅturması, Demirkırat'ın sonuna o muhteÅem final ezgisini yazabilmesi, 12 Mart'ın
186jeneriÄine bir Soprano'nun çıÄlıÄını eklemesi, Sarı Zeybek'e o hüznü nakledebilmesi⦠Fahir'i dinleyin. O'nun müziÄi; Türkiye'nin notalarla yazılmıŠtarihçesidir."`}),f.jsx("p",{className:"text-muted-foreground text-xs tracking-[0.2em] uppercase",children:"â Can Dündar, journalist & filmmaker"}),f.jsx("p",{className:"text-primary/60 text-xs mt-2 font-light italic",children:`"Listen to Fahir. His music is Turkey's history written in notes."`})]})}),f.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:ZI.map((n,r)=>f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.15},className:`group relative border transition-all duration-500 cursor-pointer ${e===n.title?"border-primary/50 bg-card/50":"border-border/30 bg-card/20 hover:border-primary/30"}`,onClick:()=>t(e===n.title?null:n.title),children:[f.jsx("div",{className:"absolute -top-3 left-6 bg-background px-3 py-1 border border-primary/30",children:f.jsx("span",{className:"text-primary text-xs tracking-[0.2em] font-medium",children:n.year})}),f.jsxs("div",{className:"p-6 pt-8",children:[f.jsx("div",{className:"flex items-start justify-between mb-3",children:f.jsx("span",{className:"text-[10px] tracking-[0.2em] uppercase text-primary/70 border border-primary/20 px-2 py-0.5",children:n.role})}),f.jsx("h4",{className:"font-serif text-xl text-foreground group-hover:text-primary transition-colors mb-2 leading-snug",children:n.title}),f.jsxs("p",{className:"text-muted-foreground/70 text-xs mb-1",children:["Directed by ",n.director]}),f.jsx("p",{className:"text-muted-foreground text-sm font-light leading-relaxed mt-4",children:n.description}),f.jsx(Jp,{children:e===n.title&&f.jsxs(D.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3},className:"overflow-hidden",children:[n.highlights&&f.jsx("ul",{className:"mt-4 space-y-2",children:n.highlights.map((i,s)=>f.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground text-xs",children:[f.jsx("span",{className:"text-primary mt-0.5",children:"â¸"}),i]},s))}),n.legacy&&f.jsx("p",{className:"mt-4 text-primary/70 text-xs italic border-t border-border/20 pt-4",children:n.legacy}),n.imdbUrl&&f.jsxs("a",{href:n.imdbUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-4 text-[10px] tracking-[0.15em] uppercase text-muted-foreground hover:text-primary transition-colors",onClick:i=>i.stopPropagation(),children:["IMDb ",f.jsx(gn,{size:10})]})]})})]}),f.jsx("div",{className:`h-0.5 transition-all duration-500 ${e===n.title?"bg-gradient-to-r from-primary via-primary/50 to-transparent":"bg-transparent"}`})]},n.title))})]}),f.jsx(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-24",children:f.jsxs("div",{className:"border border-primary/20 bg-gradient-to-br from-card/60 via-card/30 to-transparent relative overflow-hidden",children:[f.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-primary/5 rounded-full blur-3xl"}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-0",children:[f.jsxs("div",{className:"relative h-64 lg:h-auto overflow-hidden",children:[f.jsx("img",{src:lu,alt:"Sarı Zeybek Sahne Kantatı performed by state symphony orchestras",className:"w-full h-full object-cover"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent to-background/80 hidden lg:block"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/80 to-transparent lg:hidden"}),f.jsx("div",{className:"absolute bottom-4 left-4 lg:bottom-auto lg:top-4 lg:left-4",children:f.jsx("div",{className:"bg-primary/90 px-3 py-1.5",children:f.jsxs("span",{className:"text-primary-foreground text-[10px] tracking-[0.2em] uppercase font-medium flex items-center gap-1.5",children:[f.jsx(ss,{size:10})," Stage Cantata"]})})})]}),f.jsxs("div",{className:"p-8 lg:p-10 relative z-10",children:[f.jsx("p",{className:"text-primary text-xs tracking-[0.3em] uppercase mb-3",children:"From Screen to Stage"}),f.jsxs("h3",{className:"font-serif text-3xl md:text-4xl text-foreground font-light mb-4",children:["Sarı Zeybek",f.jsx("br",{}),f.jsx("span",{className:"text-gradient-gold italic",children:"Sahne Kantatı"})]}),f.jsxs("p",{className:"text-muted-foreground text-sm font-light leading-relaxed mb-6",children:["What began as a documentary score evolved into one of Turkey's most performed contemporary orchestral works. The"," ",f.jsx("em",{children:"Sarı Zeybek Sahne Kantatı"})," is performed annually on 10 Kasım (November 10th) by state symphony orchestras across Turkey to commemorate Atatürk â transforming Fahir's original documentary themes into a monumental live experience with full orchestra, chorus, and soloists."]}),f.jsx("h4",{className:"text-foreground text-xs tracking-[0.2em] uppercase mb-4",children:"Notable Performances"}),f.jsx("div",{className:"space-y-3",children:tD.map((n,r)=>f.jsxs(D.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:r*.1},className:"flex items-start gap-3 group/perf",children:[f.jsx("span",{className:"text-primary text-xs font-medium w-10 shrink-0",children:n.year}),f.jsxs("div",{className:"border-l border-primary/20 pl-3",children:[f.jsx("p",{className:"text-foreground text-sm font-light",children:n.venue}
186),f.jsxs("p",{className:"text-muted-foreground/60 text-xs flex items-center gap-1 mt-0.5",children:[f.jsx(xb,{size:9})," ",n.location," â ",n.event]})]})]},r))})]})]})]})}),f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-16",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx(bh,{size:18,className:"text-primary"}),f.jsx("h3",{className:"font-serif text-2xl text-foreground",children:"More Documentary Work"})]}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:eD.map((n,r)=>f.jsx(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.15},className:"group border border-border/30 hover:border-primary/40 bg-card/20 transition-all duration-500 overflow-hidden",children:f.jsxs("div",{className:"flex gap-0",children:[n.posterUrl&&f.jsx("div",{className:"w-32 shrink-0 overflow-hidden",children:f.jsx("img",{src:n.posterUrl,alt:n.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",loading:"lazy"})}),f.jsxs("div",{className:"p-5 flex-1",children:[f.jsxs("div",{className:"flex items-start justify-between mb-2",children:[f.jsx("span",{className:"text-[10px] tracking-[0.2em] uppercase text-primary border border-primary/30 px-2 py-0.5",children:n.role}),f.jsx("span",{className:"text-muted-foreground/60 text-xs",children:n.year})]}),f.jsx("h4",{className:"font-serif text-lg text-foreground group-hover:text-primary transition-colors mb-1",children:n.title}),f.jsxs("p",{className:"text-muted-foreground/60 text-xs mb-3",children:["Dir. ",n.director]}),f.jsx("p",{className:"text-muted-foreground text-xs font-light leading-relaxed mb-3",children:n.description}),n.highlights&&f.jsx("ul",{className:"space-y-1 mb-3",children:n.highlights.slice(0,3).map((i,s)=>f.jsxs("li",{className:"text-muted-foreground/70 text-[10px] flex items-start gap-1.5",children:[f.jsx("span",{className:"text-primary mt-0.5",children:"â¸"}),i]},s))}),n.imdbUrl&&f.jsxs("a",{href:n.imdbUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[10px] tracking-[0.15em] uppercase text-muted-foreground hover:text-primary transition-colors",children:["IMDb ",f.jsx(gn,{size:10})]})]})]})},n.title))})]}),f.jsx(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:f.jsxs("div",{className:"inline-flex items-center gap-2 px-6 py-3 border border-primary/20 bg-card/30",children:[f.jsx(_l,{size:14,className:"text-primary"}),f.jsx("span",{className:"text-muted-foreground text-xs font-light",children:"5 documentary scores spanning 3 decades â from Turkey's political turning points to the crossroads of world civilizations"})]})})]})]})},rD=[{title:"Fahir AtakoÄlu",year:"1994",num:1,note:"Debut album featuring iconic scores: Sarı Zeybek (Atatürk documentary), Demirkırat, 12 Mart, and Kıbrıs â described by Can Dündar as 'Turkey's history written in notes'",spotify:"https://open.spotify.com/album/2yCrRK0QBEKzsn1BmlKmaK",apple:"https://music.apple.com/us/artist/fahir-atako%C4%9Flu/80866067"},{title:"Fahir AtakoÄlu 2",year:"1996",num:2,spotify:"https://open.spotify.com/album/7L7ooXs68lEPBfOKwTCuDv"},{title:"Yarına Dört IÅık",year:"1996",num:3,spotify:"https://open.spotify.com/album/28Ps8gfoJ00wNkxfEDPfkD"},{title:"As One",year:"2002",num:4,spotify:"https://open.spotify.com/album/3ZTX1KnKeX2EnRIv9QaNFI"},{title:"La Luna / As One",year:"2005",num:5,spotify:"https://open.spotify.com/album/2x6LOo6EjGjfPHYSisCbrm"},{title:"Live in Istanbul",year:"2005",num:6,spotify:"https://open.spotify.com/album/4jeoI9wAtFEONkHmHzALhM"},{title:"If",year:"2005",num:7,note:"With Anthony Jackson & Horacio 'El Negro' Hernandez â charted on JazzWeek Jazz Charts"},{title:"East Side Story Soundtrack",year:"2006",num:8,note:"Istanbul State Opera & Ballet adaptation of AÄır Roman â performed in Istanbul & Hollywood",spotify:"https://open.spotify.com/album/3wiBrqvqoMDSzBvF8MkzSD"},{title:"Istanbul in Blue",year:"2007",num:9,note:"#1 JazzWeek World Music Charts twice, #15 Jazz Charts. Featuring Mike Stern, Wayne Krantz, Bob Franceschini, Anthony Jackson, Horacio Hernandez",spotify:"https://open.spotify.com/album/7iYwvUo7Q6A6TzR0QGiDhc"},{title:"İz",year:"2008",num:10,note:"Featuring Tarkan, Sezen Aksu, Sertab Erener, Levent Yüksel, Nilüfer, Jehan Barbur. Includes Sarı Zeybek & Demirkırat",spotify:"https://open.spotify.com/album/5K3VV9ERNmpTS9sCzFwoHr"},{title:"Faces & Places",year:"2009",num:11,note:"#1 JazzWeek World Music Charts. With John Patitucci, Randy Brecker, Bob Mintzer, Wayne Krantz, Romero Lubambo",spotify:"https://open.spotify.com/album/34bSj8A0cahPSjCY51EJg2"},{title:"MuhteÅem Yüzyıl Vol. 1",year:"2013",num:12,note:"Official soundtrack for Magnificent Century â 139 episodes, aired in 65 countries",spotify:"https://open.spotify.com/album/4oN3woSLFWiuf1tS3BmQRp",apple:"https://music.apple.com/us/album/muhte%C5%9Fem-y%C3%BCzy%C4%B1l-vol-1-orijinal-dizi-m%C3%BCzikleri/646983262"},{title:"MuhteÅem Yüzyıl Vol. 2",year:"2014",num:13,note:"Continuation of the Magnificent Century score",spotify:"https://open.spotify.com/album/54EXESJ7V291flfAXs7ftO"},{title:"Live at Umbria Jazz",year:"2016",num:14,note:"Recorded live at Teatro Morlacchi, Perugia, Italy 2010 with Horacio Hernandez & Alain Caron",spotify:"https://open.spotify.com/album/4bhxPUQksnTo2DQUUzaMl0"},{title:"Musical Reflections of the Art of Banksy",year:"2016",num:15,note:"6-part, 25-minute c
186omposition premiered at Istanbul's Art of Banksy exhibition",spotify:"https://open.spotify.com/album/2TDeoOghd9VkpgiBqWbPKv"},{title:"Ayla Original Motion Picture Soundtrack",year:"2017",num:16,note:"29 tracks â Turkey's official Academy Award submission",spotify:"https://open.spotify.com/album/4SPszT7UtRH7jouY4Di0GT",apple:"https://music.apple.com/tr/album/ayla-original-motion-picture-soundtrack/1301466061"},{title:"Hadi Be OÄlum Soundtrack",year:"2018",num:17,spotify:"https://open.spotify.com/album/0AVWBWZfHVrnGN0T7Yzw3Z"},{title:"Turkish Ice Cream Soundtrack",year:"2019",num:18,spotify:"https://open.spotify.com/album/1fASxIx2rGr8QqWGaDDtla",apple:"https://music.apple.com/us/album/turkish-ice-cream-original-motion-picture-soundtrack/1473860588"},{title:"Cep Herkülü / Pocket Hercules Soundtrack",year:"2019",num:19,spotify:"https://open.spotify.com/album/6rjXHpTsvf1N34JRmy1x78",apple:"https://music.apple.com/tr/album/cep-herkulu-naim-suleymanoglu-original-film-soundtrack/1490359149"},{title:"For Love",year:"2020",num:20,note:"42 artists from 8 countries. 7 Grammy first-round nominations including Album of the Year. Feat. Buika, Luciana Souza, Letizia Gambi, Aimée Allen",spotify:"https://open.spotify.com/album/3ixapO9eiECjKZ05ogwmHB"},{title:"15 Temmuz Destanı",year:"2021",num:21,note:"Premiered at the Presidential Complex. 9-track symphonic work.",spotify:"https://open.spotify.com/album/2uXgF7aRVWKdKJdkQFFrDK"},{title:"KesiÅme / İyi Ki Varsın Eren Soundtrack",year:"2022",num:22,spotify:"https://open.spotify.com/album/5HdAd8K7rlXnGJDh4bxXfU"},{title:"Mavi MaÄara / Blue Cave Soundtrack",year:"2024",num:23,spotify:"https://open.spotify.com/album/4NMEHKMKzbt5EtP1sPItiO"},{title:"Lefter: The Story of the Ordinarius Soundtrack",year:"2025",num:24,note:"44-track score for the biographical drama about legendary Fenerbahçe footballer Lefter Küçükandonyadis",spotify:"https://open.spotify.com/album/0eBjOjggUvXnPUGumSEeeD"}],Ev=[{title:"Whispers in the Distance",year:"2025",note:"With Matthew Shell & Joanna Pearl. Feat. Jackie Bertone, Hector Ruano, Francesca Prattico",spotify:"https://open.spotify.com/album/3LhGOzL9mGE96TyvYIxpYA"},{title:"Sultan (Arr. for Cello and Piano)",year:"2023",note:"With Jamal Aliyev & Ece DaÄıstan",spotify:"https://open.spotify.com/album/39qor38Zc3xIDSFUP5LIVr"},{title:"Musical Reflections of Omar Ibn Al-Khattab",year:"2024",note:"Special Edition â remixed and remastered selections from the 2012 TV series score"}],iD=[{title:"Sarı Zeybek",context:"Atatürk documentary score â performed as a live stage cantata",spotify:"https://open.spotify.com/track/3QeY6eWQBggZ6VkX9blZqi"},{title:"Demirkırat",context:"Can Dündar's landmark democracy documentary",spotify:"https://open.spotify.com/track/34cSkJ2EkrqwPj6BDMqdyX"},{title:"Farkındayım",context:"Featured in 'The Red Room' (Kırmızı Oda)"},{title:"Sır",context:"Featured in 'Bride of Istanbul' (İstanbullu Gelin)",spotify:"https://open.spotify.com/track/1pHDpaNvPZZhEt5IHfSvRX"},{title:"Anında Görüntü",context:"Featured in 'O Ses Türkiye' (The Voice Turkey)"},{title:"Sultan",context:"MuhteÅem Yüzyıl â 1M+ streams",spotify:"https://open.spotify.com/track/4ypI9VnOE6xYykwurias80"},{title:"Telos Dihos Telos",context:"4à Platinum â 480,000+ copies with Notis Sfakianakis"},{title:"İncirler Olana Kadar",context:"Arranged for 'Olanlar Oldu' film"},{title:"Alaturka (feat. Tarkan)",context:"From 'İz' album",spotify:"https://open.spotify.com/track/2hszkqbZbMYJMrJ6v24E76"}],sD=()=>f.jsx("section",{id:"discography",className:"py-32 px-6 md:px-16 lg:px-24 bg-gradient-amber noise-overlay",children:f.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-20 text-center",children:[f.jsx("p",{className:"text-amber text-xs tracking-[0.4em] uppercase mb-4",children:"24 Albums · Singles · Soundtracks"}),f.jsx("h2",{className:"font-serif text-5xl md:text-6xl lg:text-7xl font-light text-foreground",children:f.jsx("span",{className:"text-gradient-gold italic",children:"Discography"})}),f.jsx("p",{className:"mt-6 text-muted-foreground text-sm font-light max-w-2xl mx-auto leading-relaxed",children:"Over 2 million copies sold across 20 countries since 1994 â spanning jazz, symphonic, and film score genres."})]}),f.jsx(D.div,{initial:{opacity:0}
186,whileInView:{opacity:1},viewport:{once:!0},className:"flex items-end justify-center gap-1 mb-16 h-12",children:[...Array(20)].map((e,t)=>f.jsx(D.div,{className:"w-1 bg-primary/40 rounded-full",animate:{height:[8,20+Math.random()*28,8]},transition:{duration:1.2+Math.random()*.8,repeat:1/0,delay:t*.1,ease:"easeInOut"}},t))}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:rD.map((e,t)=>f.jsx(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.03},className:"group p-6 bg-card/50 border border-border/30 hover:border-primary/50 transition-all duration-500 glow-gold-hover animated-border",children:f.jsxs("div",{className:"flex items-start gap-4",children:[f.jsx("span",{className:"text-primary/30 text-xs font-mono mt-1 w-6 shrink-0",children:String(e.num).padStart(2,"0")}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsx("h4",{className:"font-serif text-base text-foreground group-hover:text-primary transition-colors leading-snug",children:e.title}),f.jsx("span",{className:"text-muted-foreground/50 text-xs shrink-0",children:e.year})]}),e.note&&f.jsx("p",{className:"text-muted-foreground text-[11px] font-light leading-relaxed mt-2",children:e.note}),f.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[e.spotify&&f.jsxs("a",{href:e.spotify,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[10px] tracking-[0.15em] uppercase text-primary/60 hover:text-primary transition-colors",children:[f.jsx(_l,{size:9})," Spotify"]}),e.apple&&f.jsxs("a",{href:e.apple,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[10px] tracking-[0.15em] uppercase text-primary/60 hover:text-primary transition-colors",children:[f.jsx(ss,{size:9})," Apple"]})]})]})]})},e.title))}),Ev.length>0&&f.jsxs("div",{className:"mt-12",children:[f.jsx("h3",{className:"font-serif text-2xl text-foreground mb-6",children:"Latest Singles & Special Releases"}),f.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:Ev.map((e,t)=>f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.05},className:"group p-6 bg-card/50 border border-primary/20 hover:border-primary/50 transition-all duration-500 glow-gold-hover",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[f.jsx("span",{className:"text-[10px] tracking-[0.2em] uppercase text-primary border border-primary/30 px-2 py-0.5",children:"New"}),f.jsx("span",{className:"text-muted-foreground/50 text-xs",children:e.year})]}),f.jsx("h4",{className:"font-serif text-base text-foreground group-hover:text-primary transition-colors leading-snug",children:e.title}),e.note&&f.jsx("p",{className:"text-muted-foreground text-[11px] font-light leading-relaxed mt-2",children:e.note}),e.spotify&&f.jsxs("a",{href:e.spotify,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 mt-2 text-[10px] tracking-[0.15em] uppercase text-primary/60 hover:text-primary transition-colors",children:[f.jsx(_l,{size:9})," Listen on Spotify"]})]},e.title))})]}),f.jsxs("div",{className:"mt-12",children:[f.jsx("h3",{className:"font-serif text-2xl text-foreground mb-6",children:"Notable Tracks & Features"}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-3",children:iD.map((e,t)=>f.jsxs(D.div,{initial:{opacity:0,x:-10},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:t*.05},className:`flex items-center gap-3 p-4 bg-card/30 border border-border/20 hover:border-primary/30 transition-colors ${e.spotify?"cursor-pointer":""}`,onClick:()=>e.spotify&&window.open(e.spotify,"_blank"),children:[f.jsx(ss,{size:14,className:"text-primary/50 shrink-0"}),f.jsxs("div",{className:"flex-1",children:[f.jsx("span",{className:"text-foreground text-sm font-medium block",children:e.title}),f.jsx("span",{className:"text-muted-foreground text-[10px]",children:e.context})]}),e.spotify&&f.jsx(_l,{size:12,className:"text-primary/40 shrink-0"})]},e.title))})]}),f.jsxs(D.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-12 flex flex-wrap justify-center gap-4",children:[f.jsxs("a",{href:"https://open.spotify.com/artist/6Mj20Zm7PRpGzoNN453mSq",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-8 py-4 bg-primary text-primary-foreground text-xs tracking-[0.15em] uppercase font-medium hover:bg-primary/90 transition-colors glow-gold",children:[f.jsx(ss,{size:14}),"Listen on Spotify",f.jsx(gn,{size:12})]}),f.jsxs("a",{href:"https://music.apple.com/us/artist/fahir-atako%C4%9Flu/80866067",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-8 py-4 border border-primary/40 text-primary text-xs tracking-[0.15em] uppercase font-medium hover:bg-primary/10 transition-colors",children:["Apple Music",f.jsx(gn,{size:12})]}),f.jsxs("a",{href:"https://www.youtube.com/@FahirAtakogluOfficial",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-8 py-4 border border-primary/40 text-primary text-xs tracking-[0.15em] uppercase font-medium hover:bg-primary/10 transition-colors",children:["YouTube Channel",f.jsx(gn,{size:12})]})]})]})}),oD=[{title:"Turkey's Official Academy Award Submission",desc:"Ayla: The Daughter of War (2018) â Turkey's official submission for Best Foreign Language Film.",tier:"gold"},{title:"7 Grammy Award First-Round Nominations",desc:"'For Love' (2020) â Album of the Year, Song of the Year ('Por Amor' feat. Buika), Best Jazz Instrumental Album, and more. A collaboration of 42 artists from 8 countries.",tier:"gold"},{title:"55+ Film & Television Credits",desc:"Composer for 55+ productions spanning feature films, TV series, documentaries, and soundtracks â from Berlin in Berlin (1993) to Al Beni Baba (upcoming).",tier:"gold"},{title:"50 Most Influential Turkish-American Artists",desc:"Named in 2015 as one of the most influential Turkish-American figures in the arts."},{title:"First Prize â Milano Film Festival",desc:"Won first prize for Documentary Music Compositions at Milan's prestigious film festival."},{title:"Platinum Sales Award â EMI Greece",desc:"'Telos Dihos Telos' â 4x platinum, 480,000+ copies sold with Notis Sfakianakis."},{title:"Best Song Award â Mega Channel, Greece",desc:"For 'Telos Dihos Telos' with Notis Sfakianakis â one of the biggest hits in Greek music history."},{title:"2 Million+ Albums Sold",desc:"18 albums sold across 20 countries since 1994, spanning jazz, symphonic, and film score genres."},{title:"#1 JazzWeek World Music Charts (3Ã)",desc:"'Istanbul in Blue' (2007) hit #1 twice, 'Faces & Places' (2010) also reached #1 on JazzWeek World Music Charts."},{title:"'Epic of July 15' â Presidential Performance",desc:"Composed '15 Temmuz Destanı' â premiered at the Presidential Complex. The score became a significant part of Turkey's cultural memory."},{title:"'Music: Fahir AtakoÄlu' â Full Documentary",desc:"Produced by Turkey's Presidential Directorate of Communications. Premiered at AKM's 2,040-seat Opera Hall, Istanbul, January 31, 2025. Featuring interviews with Levent Yüksel, Sertab Erener, and Mazhar Alanson.",tier:"gold"},{title:"Described as 'Turkey's Hans Zimmer'",desc:"â Daily Sabah. Recognized as one of the rare composers bridging Turkish classical, jazz, and film scoring at the highest international level."},{title:"Outstanding Achievement in Arts Award",desc:"Recognition for decades of contribution to music and the arts."},{title:"Ahmet Ertegun Endorsement",desc:"'One of the outstanding pianists and composers in Europe today â at the cutting edge of world music.' â Founder of Atlantic Records"},{title:"Jazz Times & All About Jazz",desc:"'Undeniably skillful and unique' (Jazz Times) · 'Pianist Fahir Atakoglu brings an assertive and exotic approach to the piano' (All About Jazz)"},{title:"Imagination Stage Commissions â Washington D.C.",desc:"Commissioned to compose original music for 'Aladdin's Luck,' 'Never Ending Story,' 'Perfectly Persephone,' and 'The Caucasian Chalk Circle' at the renowned theater in D.C."},{title:"Eyyvah Eyvah Franchise â Musical Direction",desc:"Musical director for Turkey's blockbuster comedy franchise starring Ata Demirer. Eyyvah Eyvah (2010) grossed millions at the box office, and the franchise became a cultural phenomenon."}],aD=()=>f.jsx("section",{id:"awards",className:"py-32 px-6 md:px-16 lg:px-24 noise-overlay",children:f.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-20 text-center",children:[f.jsx("p",{className:"text-primary text-xs tracking-[0.4em] uppercase mb-4",children:"Recognition"}),f.jsxs("h2",{className:"font-serif text-5xl md:text-6xl lg:text-7xl font-light text-foreground",children:["Awards & ",f.jsx("span",{className:"text-gradient-gold italic",children:"Recognition"})]}),f.jsx(D.div,{initial:{opacity:0}
186,whileInView:{opacity:1},viewport:{once:!0},className:"mt-6 flex items-center justify-center gap-2",children:[...Array(5)].map((e,t)=>f.jsx(D.div,{animate:{scale:[1,1.3,1],opacity:[.4,1,.4]},transition:{duration:2,repeat:1/0,delay:t*.2},children:f.jsx(lP,{size:14,className:"text-primary fill-primary"})},t))})]}),f.jsx("div",{className:"max-w-3xl mx-auto space-y-0",children:oD.map((e,t)=>f.jsxs(D.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:t*.04},className:`group relative pl-10 py-6 border-l ${e.tier==="gold"?"border-primary/40":"border-primary/20"} hover:border-primary/60 transition-colors`,children:[f.jsx("div",{className:`absolute left-0 top-7 -translate-x-1/2 w-3 h-3 border ${e.tier==="gold"?"border-primary bg-primary/20":"border-primary/40 bg-background"} group-hover:bg-primary/20 transition-colors`}),f.jsx(tP,{size:14,className:`absolute left-4 top-7 ${e.tier==="gold"?"text-primary":"text-primary/50"} group-hover:text-primary transition-colors`}),f.jsx("h4",{className:"font-serif text-lg text-foreground group-hover:text-primary transition-colors mb-1",children:e.title}),f.jsx("p",{className:"text-muted-foreground text-xs font-light leading-relaxed",children:e.desc})]},e.title))})]})});function cu(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function lD(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,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?s(u.value):i(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}const cD=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Zp extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class uD extends Zp{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class _v extends Zp{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Cv extends Zp{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Xh;(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"})(Xh||(Xh={}));class dD{constructor(t,{headers:n={},customFetch:r,region:i=Xh.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=cD(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return lD(this,arguments,void 0,function*(n,r={}){var i;let s,o;try{const{headers:a,method:l,body:c,signal:u,timeout:d}=r;let h={},{region:p}=r;p||(p=this.region);const v=new URL(`${this.url}/${n}`);p&&p!=="any"&&(h["x-region"]=p,v.searchParams.set("forceFunctionRegion",p));let y;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",y=c):typeof c=="string"?(h["Content-Type"]="text/plain",y=c):typeof FormData<"u"&&c instanceof FormData?y=c:(h["Content-Type"]="application/json",y=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?y=JSON.stringify(c):y=c;let x=u;d&&(o=new AbortController,s=setTimeout(()=>o.abort(),d),u?(x=o.signal,u.addEventListener("abort",()=>o.abort())):x=o.signal);const m=yield this.fetch(v.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:y,signal:x}).catch(S=>{throw new uD(S)}),g=m.headers.get("x-relay-error");
186if(g&&g==="true")throw new _v(m);if(!m.ok)throw new Cv(m);let w=((i=m.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),k;return w==="application/json"?k=yield m.json():w==="application/octet-stream"||w==="application/pdf"?k=yield m.blob():w==="text/event-stream"?k=m:w==="multipart/form-data"?k=yield m.formData():k=yield m.text(),{data:k,error:null,response:m}}catch(a){return{data:null,error:a,response:a instanceof Cv||a instanceof _v?a.context:void 0}}finally{s&&clearTimeout(s)}})}}const Xk=3,Av=e=>Math.min(1e3*2**e,3e4),hD=[520,503],Qk=["GET","HEAD","OPTIONS"];var fD=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Pv(e,t){return new Promise(n=>{if(t!=null&&t.aborted){n();return}const r=setTimeout(()=>{t==null||t.removeEventListener("abort",i),n()},e);function i(){clearTimeout(r),n()}t==null||t.addEventListener("abort",i)})}function pD(e,t,n,r){return!(!r||n>=Xk||!Qk.includes(e)||!hD.includes(t))}var mD=class{constructor(e){var t,n,r,i,s;this.shouldThrowOnError=!1,this.retryEnabled=!0,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.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(i=e.urlLengthLimit)!==null&&i!==void 0?i:8e3,this.retryEnabled=(s=e.retry)!==null&&s!==void 0?s:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(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"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let s=(async()=>{let o=0;for(;;){const c=new Headers(n.headers);o>0&&c.set("X-Retry-Count",String(o));let u;try{u=await r(n.url.toString(),{method:n.method,headers:c,body:JSON.stringify(n.body,(d,h)=>typeof h=="bigint"?h.toString():h),signal:n.signal})}catch(d){if((d==null?void 0:d.name)==="AbortError"||(d==null?void 0:d.code)==="ABORT_ERR"||!Qk.includes(n.method))throw d;if(n.retryEnabled&&o<Xk){const h=Av(o);o++,await Pv(h,n.signal);continue}throw d}if(pD(n.method,u.status,o,n.retryEnabled)){var a,l;const d=(a=(l=u.headers)===null||l===void 0?void 0:l.get("Retry-After"))!==null&&a!==void 0?a:null,h=d!==null?Math.max(0,parseInt(d,10)||0)*1e3:Av(o);await u.text(),o++,await Pv(h,n.signal);continue}return await n.processResponse(u)}})();return this.shouldThrowOnError||(s=s.catch(o=>{var a;let l="",c="",u="";const d=o==null?void 0:o.cause;if(d){var h,p,v,y;const g=(h=d==null?void 0:d.message)!==null&&h!==void 0?h:"",w=(p=d==null?void 0:d.code)!==null&&p!==void 0?p:"";l=`${(v=o==null?void 0:o.name)!==null&&v!==void 0?v:"FetchError"}: ${o==null?void 0:o.message}`,l+=` 187 188Caused by: ${(y=d==null?void 0:d.name)!==null&&y!==void 0?y:"Error"}: ${g}`,w&&(l+=` (${w})`),d!=null&&d.stack&&(l+=` 189${d.stack}`)}else{var x;l=(x=o==null?void 0:o.stack)!==null&&x!==void 0?x:""}const m=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(u="",c="Request was aborted (timeout or manual cancellation)",m>this.urlLengthLimit&&(c+=`. Note: Your request URL is ${m} 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.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",c="HTTP headers exceeded server limits (typically 16KB)",m>this.urlLengthLimit&&(c+=`. Your request URL is ${m} 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.`)),{success:!1,error:{message:`${(a=o==null?void 0:o.name)!==null&&a!==void 0?a:"FetchError"}: ${o==null?void 0:o.message}`,details:l,hint:c,code:u},data:null,count:null,status:0,statusText:""}}
189)),s.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,i=null,s=e.status,o=e.statusText;if(e.ok){var a,l;if(t.method!=="HEAD"){var c;const h=await e.text();h===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((c=t.headers.get("Accept"))===null||c===void 0)&&c.includes("application/vnd.pgrst.plan+text"))?r=h:r=JSON.parse(h))}const u=(a=t.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),d=(l=e.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");u&&d&&d.length>1&&(i=parseInt(d[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,i=null,s=406,o="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const u=await e.text();try{n=JSON.parse(u),Array.isArray(n)&&e.status===404&&(r=[],n=null,s=200,o="OK")}catch{e.status===404&&u===""?(s=204,o="No Content"):n={message:u}}if(n&&t.shouldThrowOnError)throw new fD(n)}return{success:n===null,error:n,data:r,count:i,status:s,statusText:o}}returns(){return this}overrideTypes(){return this}},gD=class extends mD{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:i=r}={}){const s=i?`${i}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${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 i=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(s,`${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.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:s="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"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+${s}; for="${l}"; options=${a};`),s==="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 jv=new RegExp("[,()]");var Oi=class extends gD{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"&&jv.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"&&jv.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 i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${s}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>
189n!==void 0).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}},yD=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:i=8e3,retry:s}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=i,this.retry=s}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},i=n?"HEAD":"GET";let s=!1;const o=(e??"*").split("").map(c=>/\s/.test(c)&&!s?"":(c==='"'&&(s=!s),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new Oi({method:i,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST",{url:s,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>
1890){const l=[...new Set(a)].map(c=>`"${c}"`);s.searchParams.set("columns",l.join(","))}}return new Oi({method:i,url:s,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var s;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}`),i||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 Oi({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const r="PATCH",{url:i,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new Oi({method:r,url:i,headers:s,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new Oi({method:n,url:r,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function ta(e){"@babel/helpers - typeof";return ta=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},ta(e)}function vD(e,t){if(ta(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ta(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wD(e){var t=vD(e,"string");return ta(t)=="symbol"?t:t+""}function xD(e,t,n){return(t=wD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function il(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rv(Object(n),!0).forEach(function(r){xD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var bD=class Zk{constructor(t,{headers:n={},schema:r,fetch:i,timeout:s,urlLengthLimit:o=8e3,retry:a}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const l=i??globalThis.fetch;s!==void 0&&s>0?this.fetch=(c,u)=>{const d=new AbortController,h=setTimeout(()=>d.abort(),s),p=u==null?void 0:u.signal;if(p){if(p.aborted)return clearTimeout(h),l(c,u);const v=()=>{clearTimeout(h),d.abort()};return p.addEventListener("abort",v,{once:!0}),l(c,il(il({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(h),p.removeEventListener("abort",v)})}return l(c,il(il({},u),{},{signal:d.signal})).finally(()=>clearTimeout(h))}:this.fetch=l,this.retry=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 yD(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new Zk(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:r=!1,get:i=!1,count:s}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;const u=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(u)),d=r&&Object.values(n).some(u);d?(a="POST",c=n):r||i?(a=r?"HEAD":"GET",Object.entries(n).filter(([p,v])=>v!==void 0).map(([p,v])=>[p,Array.isArray(v)?`{${v.join(",")}}`:`${v}
189`]).forEach(([p,v])=>{l.searchParams.append(p,v)})):(a="POST",c=n);const h=new Headers(this.headers);return d?h.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&h.set("Prefer",`count=${s}`),new Oi({method:a,url:l,headers:h,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class kD{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 i=r.node,s=parseInt(i.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 190import ws from "ws" 191new 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+=` 192 193Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const SD="2.104.0",TD=`realtime-js/${SD}`,ED="1.0.0",eS="2.0.0",_D=eS,CD=1e4,AD=100,nr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},tS={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Qh={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class PD{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 i=(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,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var i,s;const o=t.topic,a=(i=t.ref)!==null&&i!==void 0?i:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",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,p=new ArrayBuffer(this.HEADER_LENGTH+h);let v=new DataView(p),y=0;v.setUint8(y++,this.KINDS.userBroadcastPush),v.setUint8(y++,l.length),v.setUint8(y++,a.length),v.setUint8(y++,o.length),v.setUint8(y++,c.length),v.setUint8(y++,d.length),v.setUint8(y++,n),Array.from(l,m=>v.setUint8(y++,m.charCodeAt(0))),Array.from(a,m=>v.setUint8(y++,m.charCodeAt(0))),Array.from(o,m=>v.setUint8(y++,m.charCodeAt(0))),Array.from(c,m=>v.setUint8(y++,m.charCodeAt(0))),Array.from(d,m=>v.setUint8(y++,m.charCodeAt(0)));var x=new Uint8Array(p.byteLength+r.byteLength);return x.set(new Uint8Array(p),0),x.set(new Uint8Array(r),p.byteLength),x.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),[i,s,o,a,l]=r;
193return n({join_ref:i,ref:s,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),s=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+i));l=l+i;const u=r.decode(t.slice(l,l+s));l=l+s;const d=r.decode(t.slice(l,l+o));l=l+o;const h=t.slice(l,t.byteLength),p=a===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,v={type:this.BROADCAST_EVENT,event:u,payload:p};return o>0&&(v.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:v}}_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)))}}var le;(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"})(le||(le={}));const Nv=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((s,o)=>(s[o]=jD(o,e,t,i),s),{}):{}},jD=(e,t,n,r)=>{const i=t.find(a=>a.name===e),s=i==null?void 0:i.type,o=n[e];return s&&!r.includes(s)?nS(s,o):Zh(o)},nS=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return MD(t,n)}switch(e){case le.bool:return RD(t);case le.float4:case le.float8:case le.int2:case le.int4:case le.int8:case le.numeric:case le.oid:return ND(t);case le.json:case le.jsonb:return OD(t);case le.timestamp:return ID(t);case le.abstime:case le.date:case le.daterange:case le.int4range:case le.int8range:case le.money:case le.reltime:case le.text:case le.time:case le.timestamptz:case le.timetz:case le.tsrange:case le.tstzrange:return Zh(t);default:return Zh(t)}},Zh=e=>e,RD=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},ND=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},OD=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},MD=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const o=e.slice(1,n);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>nS(t,a))}return e},ID=e=>typeof e=="string"?e.replace(" ","T"):e,rS=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};var Eo=e=>typeof e=="function"?e:function(){return e},DD=typeof self<"u"?self:null,Mi=typeof window<"u"?window:null,on=DD||Mi||globalThis,LD="2.0.0",FD=1e4,zD=1e3,dn={connecting:0,open:1,closing:2,closed:3},it={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},En={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},ef={longpoll:"longpoll",websocket:"websocket"},UD={complete:4},tf="base64url.bearer.phx.",sl=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),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()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}
vendor: 8,135 bytes, line 193
193matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},iS=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},BD=class{constructor(e,t,n){this.state=it.closed,this.topic=e,this.params=Eo(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new sl(this,En.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new iS(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=it.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=it.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=it.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=it.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new sl(this,En.leave,Eo({}),this.timeout).send(),this.state=it.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(En.reply,(r,i)=>{this.trigger(this.replyEventName(i),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=it.closed,this.bindings=[]}onClose(e){this.on(En.close,e)}onError(e){return this.on(En.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new sl(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=it.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(En.close,"leave")},n=new sl(this,En.leave,Eo({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=it.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let s=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,n));for(let o=0;o<s.length;o++)s[o].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===it.closed}isErrored(){return this.state===it.errored}isJoined(){return this.state===it.joined}isJoining(){return this.state===it.joining}isLeaving(){return this.state===it.leaving}},Tc=class{static request(e,t,n,r,i,s,o){if(on.XDomainRequest){let a=new on.XDomainRequest;return this.xdomainRequest(a,e,t,r,i,s,o)}else if(on.XMLHttpRequest){let a=new on.XMLHttpRequest;return this.xhrRequest(a,e,t,n,r,i,s,o)}else{if(on.fetch&&on.AbortController)return this.fetchRequest(e,t,n,r,i,s,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,i,s,o){let a={method:e,headers:n,body:r},l=null;return i&&(l=new AbortController,setTimeout(()=>l.abort(),i),a.signal=l.signal),on.fetch(t,a).then(c=>c.text()).then(c=>this.parseJSON(c)).then(c=>o&&o(c)).catch(c=>{c.name==="AbortError"&&s?s():o&&o(null)}),l}static xdomainRequest(e,t,n,r,i,s,o){return e.timeout=i,e.open(t,n),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},s&&(e.ontimeout=s),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,s,o,a){e.open(t,n,!0),e.timeout=s;for(let[l,c]of Object.entries(r))e.setRequestHeader(l,c);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===UD.complete&&a){let l=this.parseJSON(e.responseText);a(l)}},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,s=e[r];typeof s=="object"?n.push(this.serialize(s,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(s))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},$D=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let i=0;i<r;i++)t+=String.fromCharCode(n[i]);return btoa(t)},Ei=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(tf)&&(this.authToken=atob(t[1].slice(tf.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=dn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+ef.websocket),"$1/"+ef.longpoll)}endpointURL(){return Tc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=dn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===dn.open||this.readyState===dn.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:i}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:i.forEach(s=>{setTimeout(()=>this.onmessage({data:s}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=dn.open,this.onopen({}),this.poll();break;
193case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=$D(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 194`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=dn.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let s,o=()=>{this.reqs.delete(s),r()};s=Tc.request(e,this.endpointURL(),t,n,this.timeout,o,a=>{this.reqs.delete(s),this.isActive()&&i(a)}),this.reqs.add(s)}},VD=class lo{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,i=>{let{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=lo.syncState(this.state,i,s,o),this.pendingDiffs.forEach(l=>{this.state=lo.syncDiff(this.state,l,s,o)}),this.pendingDiffs=[],a()}),this.channel.on(r.diff,i=>{let{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=lo.syncDiff(this.state,i,s,o),a())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return lo.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,i){let s=this.clone(t),o={},a={};return this.map(s,(l,c)=>{n[l]||(a[l]=c)}),this.map(n,(l,c)=>{let u=s[l];if(u){let d=c.metas.map(y=>y.phx_ref),h=u.metas.map(y=>y.phx_ref),p=c.metas.filter(y=>h.indexOf(y.phx_ref)<0),v=u.metas.filter(y=>d.indexOf(y.phx_ref)<0);p.length>0&&(o[l]=c,o[l].metas=p),v.length>0&&(a[l]=this.clone(u),a[l].metas=v)}else o[l]=c}),this.syncDiff(s,{joins:o,leaves:a},r,i)}static syncDiff(t,n,r,i){let{joins:s,leaves:o}=this.clone(n);return r||(r=function(){}),i||(i=function(){}),this.map(s,(a,l)=>{let c=t[a];if(t[a]=this.clone(l),c){let u=t[a].metas.map(h=>h.phx_ref),d=c.metas.filter(h=>u.indexOf(h.phx_ref)<0);t[a].metas.unshift(...d)}r(a,c,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;let u=l.metas.map(d=>d.phx_ref);c.metas=c.metas.filter(d=>u.indexOf(d.phx_ref)<0),i(a,c,l),c.metas.length===0&&delete t[a]}),t}static list(t,n){return n||(n=function(r,i){return i}),this.map(t,(r,i)=>n(r,i))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},ol={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,s,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:s,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:s}=e,o=this.META_LENGTH+t.length+n.length+i.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,i.length),l.setUint8(c++,r.length),Array.from(t,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(c++,d.charCodeAt(0)));var u=new Uint8Array(a.byteLength+s.byteLength);return u.set(new Uint8Array(a),0),u.set(new Uint8Array(s),a.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
vendor: 8,419 bytes, line 194
194,decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let c=n.decode(e.slice(o,o+s));o=o+s;let u=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:l,event:c,payload:u}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),o=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(a,a+r));a=a+r;let c=n.decode(e.slice(a,a+i));a=a+i;let u=n.decode(e.slice(a,a+s));a=a+s;let d=n.decode(e.slice(a,a+o));a=a+o;let h=e.slice(a,e.byteLength),p={status:d,response:h};return{join_ref:l,ref:c,topic:u,event:En.reply,payload:p}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=this.HEADER_LENGTH+2,o=n.decode(e.slice(s,s+r));s=s+r;let a=n.decode(e.slice(s,s+i));s=s+i;let l=e.slice(s,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},WD=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||FD,this.transport=t.transport||on.WebSocket||Ei,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||on&&on.sessionStorage,this.establishedConnections=0,this.defaultEncoder=ol.encode.bind(ol),this.defaultDecoder=ol.decode.bind(ol),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==Ei?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;Mi&&Mi.addEventListener&&(Mi.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),n=this.connectClock)}),Mi.addEventListener("pageshow",r=>{n===this.connectClock&&(n=null,this.connect())}),Mi.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=r=>t.rejoinAfterMs?t.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>t.reconnectAfterMs?t.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(r,i,s)=>{console.log(`${r}: ${i}`,s)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Eo(t.params||{}),this.endPoint=`${e}/${ef.websocket}`,this.vsn=t.vsn||LD,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new iS(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return Ei}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Tc.appendParams(Tc.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Eo(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Ei?this.connectWithFallback(Ei,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(i=>{i.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case Ei:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${tf}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,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)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,i,s,o=this.transportName(e),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([i,s]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),s=this.onError(l=>{this.log("transport","error",l),r&&!n&&(clearTimeout(this.fallbackTimer),a(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),zD,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===dn.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError()}
194triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(En.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case dn.connecting:return"connecting";case dn.open:return"open";case dn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new BD(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:i,join_ref:s}=e;this.log("push",`${t} ${n} (${s}, ${i})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:i,ref:s,join_ref:o}=t;if(s&&s===this.pendingHeartbeatRef){const a=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.status==="ok"?"ok":"error",a)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${n} ${r} ${s&&"("+s+")"||""}`.trim(),i);for(let a=0;a<this.channels.length;a++){const l=this.channels[a];l.isMember(n,r,i,o)&&l.trigger(r,i,s,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class _o{constructor(t,n){const r=KD(n);this.presence=new VD(t.getChannel(),r),this.presence.onJoin((i,s,o)=>{const a=_o.onJoinPayload(i,s,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((i,s,o)=>{const a=_o.onLeavePayload(i,s,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return _o.transformState(this.presence.state)}static transformState(t){return t=HD(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return n[r]=Dl(i),n},{})}static onJoinPayload(t,n,r){const i=Ov(n),s=Dl(r);return{event:"join",key:t,currentPresences:i,newPresences:s}}static onLeavePayload(t,n,r){const i=Ov(n),s=Dl(r);return{event:"leave",key:t,currentPresences:i,leftPresences:s}}}function Dl(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function HD(e){return JSON.parse(JSON.stringify(e))}function KD(e){return(e==null?void 0:e.events)&&{events:e.events}}function Ov(e){return e!=null&&e.metas?Dl(e):[]}var Mv;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Mv||(Mv={}));class GD{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new _o(this.channel.channelAdapter,n)}}class qD{constructor(t,n,r){const i=YD(r);this.channel=t.getSocket().channel(n,i),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let i;try{i=this.channel.push(t,n,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>AD){const s=this.channel.pushBuffer.shift();s.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${s.event}`,s.payload())}return i}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===nr.joined}isJoined(){return this.state===nr.joined}isJoining(){return this.state===nr.joining}isClosed(){return this.state===nr.closed}isLeaving(){return this.state===nr.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function YD(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var Iv;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Iv||(Iv={}));var Qi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Qi||(Qi={}));var _n;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(_n||(_n={}));class Co{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var i,s;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},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.channelAdapter=new qD(this.socket.socketAdapter,t,this.params),this.presence=new GD(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=rS(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&i!==void 0?i:[],u=!!this.bindings[Qi.PRESENCE]&&this.bindings[Qi.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.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(p=>{t==null||t(_n.CHANNEL_ERROR,p)}),this._onClose(()=>t==null?void 0:t(_n.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:p})=>{if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t(_n.SUBSCRIBED);return}this._updatePostgresBindings(p,t)}
194).receive("error",p=>{this.state=nr.errored,t==null||t(_n.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(_n.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const i=this.bindings.postgres_changes,s=(r=i==null?void 0:i.length)!==null&&r!==void 0?r:0,o=[];for(let a=0;a<s;a++){const l=i[a],{filter:{event:c,schema:u,table:d,filter:h}}=l,p=t&&t[a];if(p&&p.event===c&&Co.isFilterValueEqual(p.schema,u)&&Co.isFilterValueEqual(p.table,d)&&Co.isFilterValueEqual(p.filter,h))o.push(Object.assign(Object.assign({},l),{id:p.id}));else{this.unsubscribe(),this.state=nr.errored,n==null||n(_n.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=nr.errored&&n&&n(_n.SUBSCRIBED)}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){const i=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),s=t===Qi.PRESENCE||t===Qi.POSTGRES_CHANGES;if(i&&s)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var i;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=r.timeout)!==null&&i!==void 0?i: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,i;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
194in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,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:s,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((i=c.body)===null||i===void 0?void 0:i.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,a,l;const c=this.channelAdapter.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)&&s("ok"),c.receive("ok",()=>s("ok")),c.receive("error",()=>s("error")),c.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),o}_on(t,n,r){const i=t.toLocaleLowerCase(),s=this.channelAdapter.on(t,r),o={type:i,filter:n,callback:r,ref:s};return this.bindings[i]?this.bindings[i].push(o):this.bindings[i]=[o],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var i,s,o,a,l,c,u;const d=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(d,r))return!1;const h=(i=this.bindings[d])===null||i===void 0?void 0:i.find(p=>p.ref===t.ref);if(!h)return!0;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in h){const p=h.id,v=(s=h.filter)===null||s===void 0?void 0:s.event;return p&&((o=n.ids)===null||o===void 0?void 0:o.includes(p))&&(v==="*"||(v==null?void 0:v.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const p=(c=(l=h==null?void 0:h.filter)===null||l===void 0?void 0:l.event)===null||c===void 0?void 0:c.toLocaleLowerCase();return p==="*"||p===((u=n==null?void 0:n.event)===null||u===void 0?void 0:u.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===d})}_notThisChannelEvent(t,n){const{close:r,error:i,leave:s,join:o}=tS;return n&&[r,i,s,o].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const i=n.data,{schema:s,table:o,commit_timestamp:a,type:l,errors:c}=i;return Object.assign(Object.assign({},{schema:s,table:o,commit_timestamp:a,eventType:l,new:{},old:{},errors:c}),this._getPayloadRecords(i))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Nv(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Nv(t.columns,t.old_record)),n}}class JD{constructor(t,n){this.socket=new WD(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,i=1e4){return new Promise(s=>{setTimeout(()=>s("timeout"),i),this.socket.disconnect(()=>{t(),s("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Qh.connecting}isDisconnecting(){return this.socket.connectionState()==Qh.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const XD={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},QD=[1e3,2e3,5e3,1e4],ZD=1e4,eL=` 195 addEventListener("message", (e) => { 196 if (e.data.event === "start") { 197 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 198 } 199 });`;class tL{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
199,this.ref=0,this.serializer=new PD,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=s=>s?(...o)=>s(...o):(...o)=>fetch(...o),!(!((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;const i=this._initializeOptions(n);this.socketAdapter=new JD(t,i),this.httpEndpoint=rS(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw n.includes("Node.js")?new Error(`${n} 200 201To use Realtime in Node.js, you need to provide a WebSocket implementation: 202 203Option 1: Use Node.js 22+ which has native WebSocket support 204Option 2: Install and provide the "ws" package: 205 206 npm install ws 207 208 import ws from "ws" 209 const client = new RealtimeClient(url, { 210 ...options, 211 transport: ws 212 })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const i=await r.unsubscribe();return r.teardown(),i}),n=await Promise.all(t);return this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||Qh.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new Co(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const s={access_token:n,version:TD};n&&i.updateJoinPayload(s),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(tS.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)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,r)}}_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.disconnect()},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)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([eL],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,i,s,o,a,l,c,u;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const d={};
212d.timeout=(i=t==null?void 0:t.timeout)!==null&&i!==void 0?i:CD,d.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:XD.HEARTBEAT_INTERVAL,d.transport=(o=t==null?void 0:t.transport)!==null&&o!==void 0?o:kD.getWebSocketConstructor(),d.params=t==null?void 0:t.params,d.logger=t==null?void 0:t.logger,d.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),d.reconnectAfterMs=(a=t==null?void 0:t.reconnectAfterMs)!==null&&a!==void 0?a:y=>QD[y-1]||ZD;let h,p;const v=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:_D;switch(v){case ED:h=(y,x)=>x(JSON.stringify(y)),p=(y,x)=>x(JSON.parse(y));break;case eS:h=this.serializer.encode.bind(this.serializer),p=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${d.vsn}`)}if(d.vsn=v,d.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:h,d.decode=(u=t==null?void 0:t.decode)!==null&&u!==void 0?u:p,d.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,d.params=Object.assign(Object.assign({},d.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,d.autoSendHeartbeat=!this.worker}return d}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var na=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 nL(e,t,n){const r=new URL(t,e);if(n)for(const[i,s]of Object.entries(n))s!==void 0&&r.searchParams.set(i,s);return r.toString()}async function rL(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 iL(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:s,headers:o}){const a=nL(e.baseUrl,r,i),l=await rL(e.auth),c=await t(a,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...l,...o},body:s?JSON.stringify(s):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 p=d?h:void 0,v=p==null?void 0:p.error;throw new na((v==null?void 0:v.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:v==null?void 0:v.type,icebergCode:v==null?void 0:v.code,details:p})}return{status:c.status,headers:c.headers,data:h}}}}function al(e){return e.join("�")}var sL=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:al(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/${al(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${al(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${al(e.namespace)}`}),!0}catch(t){if(t instanceof na&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof na&&n.status===409)return;throw n}}};function _i(e){return e.join("�")}var oL=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/${_i(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/${_i(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/${_i(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/${_i(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/${_i(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/${_i(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof na&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof na&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},aL=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=iL({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new sL(this.client,t),this.tableOps=new oL(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)}
212async 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)}};function ra(e){"@babel/helpers - typeof";return ra=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},ra(e)}function lL(e,t){if(ra(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ra(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cL(e){var t=lL(e,"string");return ra(t)=="symbol"?t:t+""}function uL(e,t,n){return(t=cL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?Dv(Object(n),!0).forEach(function(r){uL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var uu=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}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function du(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var nf=class extends uu{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 K({},super.toJSON())}},sS=class extends uu{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function em(e,t,n){const r=K({},e),i=t.toLowerCase();for(const s of Object.keys(r))s.toLowerCase()===i&&delete r[s];return r[i]=n,r}function dL(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}const hL=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),fL=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)},rf=e=>{if(Array.isArray(e))return e.map(n=>rf(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=rf(r)}),t},pL=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Lv=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)},mL=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&typeof e.json=="function"){const i=e;let s=parseInt(i.status,10);Number.isFinite(s)||(s=500),i.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||s+"";t(new nf(Lv(o),s,a,r))}).catch(()=>{const o=s+"";t(new nf(i.statusText||`HTTP ${s} error`,s,o,r))})}else t(new sS(Lv(e),e,r))},gL=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!r)return K(K({},i),n);if(fL(r)){var s;const o=(t==null?void 0:t.headers)||{};let a;for(const[l,c]of Object.entries(o))l.toLowerCase()==="content-type"&&(a=c);i.headers=em(o,"Content-Type",(s=a)!==null&&s!==void 0?s:"application/json"),i.body=JSON.stringify(r)}else i.body=r;return t!=null&&t.duplex&&(i.duplex=t.duplex),K(K({},i),n)};async function no(e,t,n,r,i,s,o){return new Promise((a,l)=>{e(n,gL(t,r,i,s)).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=>mL(c,l,r,o))})}function oS(e="storage"){return{get:async(t,n,r,i)=>no(t,"GET",n,r,i,void 0,e),post:async(t,n,r,i,s)=>no(t,"POST",n,i,s,r,e),put:async(t,n,r,i,s)=>no(t,"PUT",n,i,s,r,e),head:async(t,n,r,i)=>no(t,"HEAD",n,K(K({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,s)=>no(t,"DELETE",n,i,s,r,e)}}const yL=oS("storage"),{get:ia,post:Vt,put:sf,head:vL,remove:tm}=yL,gt=oS("vectors");var Bs=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=dL(t),this.fetch=hL(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=em(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(du(n))return{data:null,error:n};throw n}}},wL=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(du(t))return{data:null,error:t};throw t}}};let aS;aS=Symbol.toStringTag;var xL=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[aS]="BlobDownloadBuilder",this.promise=null}asStream(){return new wL(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(du(t))return{data:null,error:t};throw t}}};const bL={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Fv={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var kL=class extends Bs{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let s;const o=K(K({},Fv),r);let a=K(K({},i.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;if(typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),l&&s.append("metadata",i.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",o.cacheControl),l&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(l))):(s=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers)for(const[h,p]of Object.entries(r.headers))a=em(a,h,p);const c=i._removeEmptyFolders(t),u=i._getFinalPath(c),d=await(e=="PUT"?sf:Vt)(i.fetch,`${i.url}/object/${u}`,s,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 i=this;const s=i._removeEmptyFolders(e),o=i._getFinalPath(s),a=new URL(i.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),i.handleOperation(async()=>{let l;const c=K(K({},Fv),r),u=K(K({},i.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:s,fullPath:(await sf(i.fetch,a.toString(),l,{headers:u})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const i=K({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const s=await Vt(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(n.url+s.url),a=o.searchParams.get("token");if(!a)throw new uu("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 Vt(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
212stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Vt(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 i=r._getFinalPath(e);const s=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await Vt(r.fetch,`${r.url}/object/sign/${i}`,K({expiresIn:t},s?{transform:n.transform}:{}),{headers:r.headers});const a=new URLSearchParams;n!=null&&n.download&&a.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&a.set("cacheNonce",String(n.cacheNonce));const l=a.toString();return{signedUrl:encodeURI(`${r.url}${o.signedURL}${l?`&${l}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const i=await Vt(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),s=new URLSearchParams;n!=null&&n.download&&s.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&s.set("cacheNonce",String(n.cacheNonce));const o=s.toString();return i.map(a=>K(K({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",i=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(i,t.transform),(t==null?void 0:t.cacheNonce)!=null&&i.set("cacheNonce",String(t.cacheNonce));const s=i.toString(),o=this._getFinalPath(e),a=()=>ia(this.fetch,`${this.url}/${r}/${o}${s?`?${s}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new xL(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>rf(await ia(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await vL(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(du(i)){var r;const s=i instanceof nf?i.status:i instanceof sS?(r=i.originalError)===null||r===void 0?void 0:r.status:void 0;if(s!==void 0&&[400,404].includes(s))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;t!=null&&t.download&&r.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(r,t.transform),(t==null?void 0:t.cacheNonce)!=null&&r.set("cacheNonce",String(t.cacheNonce));const i=r.toString(),s=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}`)+(i?`?${i}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await tm(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 i=K(K(K({},bL),t),{},{prefix:e||""});return await Vt(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=K({},e);return await Vt(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,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const SL="2.104.0",Sa={"X-Client-Info":`storage-js/${SL}`};var TL=class extends Bs{constructor(e,t={},n,r){const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const s=i.href.replace(/\/$/,""),o=K(K({},Sa),t);super(s,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await ia(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ia(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Vt(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 sf(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 Vt(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await tm(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():""}},EL=class extends Bs{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=K(K({},Sa),t);super(r,i,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Vt(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(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await ia(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await tm(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!pL(e))throw new uu("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 aL({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
212),r=this.shouldThrowOnError;return new Proxy(n,{get(i,s){const o=i[s];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(i,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},_L=class extends Bs{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=K(K({},Sa),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await gt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await gt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await gt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await gt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},CL=class extends Bs{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=K(K({},Sa),{},{"Content-Type":"application/json"},t);super(r,i,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 gt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await gt.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 gt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await gt.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 gt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},AL=class extends Bs{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=K(K({},Sa),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await gt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await gt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await gt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await gt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},PL=class extends AL{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new jL(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)}},jL=class extends _L{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 RL(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},RL=class extends CL{constructor(e,t,n,r,i){super(e,t,i),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}))}},NL=class extends TL{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new kL(this.url,this.headers,e,this.fetch)}get vectors(){return new PL(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new EL(this.url+"/iceberg",this.headers,this.fetch)}};const lS="2.104.0",Ii=30*1e3,of=3,pd=of*Ii,OL="http://localhost:9999",ML="supabase.auth.token",IL={"X-Client-Info":`gotrue-js/${lS}`},af="X-Supabase-Api-Version",cS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},DL=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,LL=10*60*1e3;
212class sa extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function B(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class FL extends sa{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function zL(e){return B(e)&&e.name==="AuthApiError"}class Hr extends sa{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class zn extends sa{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class ft extends zn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function ll(e){return B(e)&&e.name==="AuthSessionMissingError"}class Ci extends zn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class cl extends zn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class ul extends zn{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function UL(e){return B(e)&&e.name==="AuthImplicitGrantRedirectError"}class zv extends zn{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class BL extends zn{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 lf extends zn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function md(e){return B(e)&&e.name==="AuthRetryableFetchError"}class Uv extends zn{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class cf extends zn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ec="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Bv=` 213\r=`.split(""),$L=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Bv.length;t+=1)e[Bv[t].charCodeAt(0)]=-2;for(let t=0;t<Ec.length;t+=1)e[Ec[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(Ec[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(Ec[r]),t.queuedBits-=6}}function uS(e,t,n){const r=$L[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 Vv(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{HL(o,r,n)};for(let o=0;o<e.length;o+=1)uS(e.charCodeAt(o),i,s);return t.join("")}function VL(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 WL(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}VL(r,t)}}function HL(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 ls(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)uS(e.charCodeAt(i),n,r);return new Uint8Array(t)}function KL(e){const t=[];return WL(e,n=>t.push(n)),new Uint8Array(t)}function Xr(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>
213$v(i,n,r)),$v(null,n,r),t.join("")}function GL(e){return Math.round(Date.now()/1e3)+e}function qL(){return Symbol("auth-callback")}const Le=()=>typeof window<"u"&&typeof document<"u",zr={tested:!1,writable:!1},dS=()=>{if(!Le())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(zr.tested)return zr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),zr.tested=!0,zr.writable=!0}catch{zr.tested=!0,zr.writable=!1}return zr.writable};function YL(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{t[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const hS=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),JL=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Di=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ur=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},De=async(e,t)=>{await e.removeItem(t)};class hu{constructor(){this.promise=new hu.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}hu.promiseConstructor=Promise;function dl(e){const t=e.split(".");if(t.length!==3)throw new cf("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!DL.test(t[r]))throw new cf("JWT not in base64url format");return{header:JSON.parse(Vv(t[0])),payload:JSON.parse(Vv(t[1])),signature:ls(t[2]),raw:{header:t[0],payload:t[1]}}}async function XL(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function QL(e,t){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){r(o);return}}catch(o){if(!t(s,o)){i(o);return}}})()})}function ZL(e){return("0"+e.toString(16)).substr(-2)}function eF(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,ZL).join("")}async function tF(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function nF(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 tF(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Ai(e,t,n=!1){const r=eF();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await Di(e,`${t}-code-verifier`,i);const s=await nF(r);return[s,r===s?"plain":"s256"]}const rF=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function iF(e){const t=e.headers.get(af);if(!t||!t.match(rF))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function sF(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 oF(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 aF=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Pi(e){if(!aF.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function gd(){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 lF(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;
213if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}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,i)}})}function Wv(e){return JSON.parse(JSON.stringify(e))}const Wr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),cF=[502,503,504,520,521,522,523,524,530];async function Hv(e){var t;if(!JL(e))throw new lf(Wr(e),0);if(cF.includes(e.status))throw new lf(Wr(e),e.status);let n;try{n=await e.json()}catch(s){throw new Hr(Wr(s),s)}let r;const i=iF(e);if(i&&i.getTime()>=cS["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 Uv(Wr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new ft}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((s,o)=>s&&typeof o=="string",!0))throw new Uv(Wr(n),e.status,n.weak_password.reasons);throw new FL(Wr(n),e.status||500,r)}const uF=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function V(e,t,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[af]||(s[af]=cS["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const o=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await dF(e,t,n+a,{headers:s,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 dF(e,t,n,r,i,s){const o=uF(t,r,i,s);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new lf(Wr(l),0)}if(a.ok||await Hv(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Hv(l)}}function zt(e){var t;let n=null;pF(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=GL(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Kv(e){const t=zt(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 rr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function hF(e){return{data:e,error:null}}function fF(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=e,o=cu(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function Gv(e){return e}function pF(e){return e.access_token&&e.refresh_token&&e.expires_in}const yd=["global","local","others"];class mF{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=hS(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)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}
vendor: 4,751 bytes, line 213
213async signOut(t,n=yd[0]){if(yd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${yd.join(", ")}`);try{return await V(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(B(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await V(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:rr})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=cu(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await V(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:fF,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(B(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await V(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:rr})}catch(n){if(B(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,s,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await V(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:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Gv});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,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(v=>{const y=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(v.split(";")[1].split("=")[1]);c[`${x}Page`]=y}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(B(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){Pi(t);try{return await V(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:rr})}catch(n){if(B(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Pi(t);try{return await V(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:rr})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Pi(t);try{return await V(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:rr})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Pi(t.userId);try{const{data:n,error:r}=await V(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(B(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Pi(t.userId),Pi(t.id);try{return{data:await V(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(B(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,s,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await V(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:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Gv});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,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(v=>{const y=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(v.split(";")[1].split("=")[1]);c[`${x}Page`]=y}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(B(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await V(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await V(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await V(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(B(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await V(this.fetch,"DELET
213E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(B(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await V(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await V(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var i;return{data:{providers:(i=r==null?void 0:r.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(n){if(B(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await V(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await V(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await V(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(B(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await V(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(B(n))return{data:null,error:n};throw n}}}function qv(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const nn={debug:!!(globalThis&&dS()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class fS extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Yv extends fS{}async function gF(e,t,n){nn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let i;t>0&&(i=setTimeout(()=>{r.abort(),nn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){clearTimeout(i),nn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{nn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw nn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Yv(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(nn.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}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"),clearTimeout(i),await n()}})}catch(s){if(t>0&&clearTimeout(i),(s==null?void 0:s.name)==="AbortError"&&t>0){if(r.signal.aborted)return nn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async o=>{if(o){nn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await n()}finally{nn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw nn.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new Yv(`Lock "${e}" was released because another request stole it`)}throw s}}function yF(){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 pS(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
213" is invalid.`);return e.toLowerCase()}function vF(e){return parseInt(e,16)}function wF(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function xF(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:s=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(` 214`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=pS(e.address),v=u?`${u}://${r}`:r,y=e.statement?`${e.statement} 215`:"",x=`${v} wants you to sign in with your Ethereum account: 216${p} 217 218${y}`;let m=`URI: ${d} 219Version: ${h} 220Chain ID: ${n}${o?` 221Nonce: ${o}`:""} 222Issued At: ${s.toISOString()}`;if(i&&(m+=` 223Expiration Time: ${i.toISOString()}`),a&&(m+=` 224Not Before: ${a.toISOString()}`),l&&(m+=` 225Request ID: ${l}`),c){let g=` 226Resources:`;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}`);g+=` 227- ${w}`}m+=g}return`${x} 228${m}`}class Ee extends Error{constructor({message:t,code:n,cause:r,name:i}){var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=i??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class _c extends Ee{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function bF({error:e,options:t}){var n,r,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ee({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Ee({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=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Ee({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Ee({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 Ee({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ee({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Ee({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ee({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(mS(o)){if(s.rp.id!==o)return new Ee({message:`The RP ID "${s.rp.id}
228" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ee({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Ee({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 Ee({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 Ee({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function kF({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 Ee({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ee({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(mS(r)){if(n.rpId!==r)return new Ee({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ee({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ee({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 Ee({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class SF{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 TF=new SF;function EF(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,i=cu(e,["challenge","user","excludeCredentials"]),s=ls(t).buffer,o=Object.assign(Object.assign({},n),{id:ls(n.id).buffer}),a=Object.assign(Object.assign({},i),{challenge:s,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:ls(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function _F(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=cu(e,["challenge","allowCredentials"]),i=ls(t).buffer,s=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];s.allowCredentials[o]=Object.assign(Object.assign({},a),{id:ls(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function CF(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:Xr(new Uint8Array(e.response.attestationObject)),clientDataJSON:Xr(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function AF(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Xr(new Uint8Array(i.authenticatorData)),clientDataJSON:Xr(new Uint8Array(i.clientDataJSON)),signature:Xr(new
228Uint8Array(i.signature)),userHandle:i.userHandle?Xr(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function mS(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Jv(){var e,t;return!!(Le()&&"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 PF(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new _c("Browser returned unexpected credential type",t)}:{data:null,error:new _c("Empty credential response",t)}}catch(t){return{data:null,error:bF({error:t,options:e})}}}async function jF(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new _c("Browser returned unexpected credential type",t)}:{data:null,error:new _c("Empty credential response",t)}}catch(t){return{data:null,error:kF({error:t,options:e})}}}const RF={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},NF={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Cc(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const s in i){const o=i[s];if(o!==void 0)if(Array.isArray(o))r[s]=o;else if(n(o))r[s]=o;else if(t(o)){const a=r[s];t(a)?r[s]=Cc(a,o):r[s]=Cc(o)}else r[s]=o}return r}function OF(e,t){return Cc(RF,e,t||{})}function MF(e,t){return Cc(NF,e,t||{})}class IF{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:i},s){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=i??TF.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 p=(await this.client.getUser()).data.user,v=((o=p==null?void 0:p.user_metadata)===null||o===void 0?void 0:o.name)||(p==null?void 0:p.email)||(p==null?void 0:p.id)||"User";u.name=`${u.id}:${v}`}}u.displayName||(u.displayName=u.name)}switch(a.webauthn.type){case"create":{const u=OF(a.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:d,error:h}=await PF({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=MF(a.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:d,error:h}=await jF(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 B(a)?{data:null,error:a}:{data:null,error:new Hr("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:i}={}},s){if(!n)return{data:null,error:new sa("rpId is required for WebAuthn authentication")};try{if(!Jv())return{data:null,error:new Hr("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:s});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 B(o)?{data:null,error:o}:{data:null,error:new Hr("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:i}={}},s){if(!n)return{data:null,error:new sa("rpId is required for WebAuthn registration")};try{if(!Jv())return{data:null,error:new Hr("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:i},{create:s});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 B(o)?{data:null,error:o}:{data:null,error:new Hr("Unexpected error in register",o)}}}}yF();const DF={url:OL,storageKey:ML,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:IL,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function Xv(e,t,n){return await n()}const ji={};class oa{get jwks(){var t,n;return(n=(t=ji[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){ji[this.storageKey]=Object.assign(Object.assign({},ji[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=ji[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){ji[this.storageKey]=Object.assign(Object.assign({},ji[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;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 s=Object.assign(Object.assign({},DF),t);if(this.storageKey=s.storageKey,this.instanceID=(n=oa.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,oa.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&Le()){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=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new mF({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=hS(s.fetch),this.lock=s.lock||Xv,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,this.lockAcquireTimeout=s.lockAcquireTimeout,s.lock?this.lock=s.lock:this.persistSession&&Le()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=gF:this.lock=Xv,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 IF(this)}
228,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?(s.storage?this.storage=s.storage:dS()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=qv(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=qv(this.memoryStorage)),Le()&&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)}(i=this.broadcastChannel)===null||i===void 0||i.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)}})}s.skipAutoInitialize||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} (${lS}) ${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(Le()&&(n=YL(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Le()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),UL(s)){const l=(t=s.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:s}}return{error:s}}const{session:o,redirectType:a}=i;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 B(n)?this._returnResult({error:n}):this._returnResult({error:new Hr("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const s=await V(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:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:zt}),{data:o,error:a}=s;
228if(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(s){if(B(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var n,r,i;try{let s;if("email"in t){const{email:u,password:d,options:h}=t;let p=null,v=null;this.flowType==="pkce"&&([p,v]=await Ai(this.storage,this.storageKey)),s=await V(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:p,code_challenge_method:v},xform:zt})}else if("phone"in t){const{phone:u,password:d,options:h}=t;s=await V(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:(i=h==null?void 0:h.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:zt})}else throw new cl("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
228if(a||!o)return await De(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(s){if(await De(this.storage,`${this.storageKey}-code-verifier`),B(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:o,options:a}=t;n=await V(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Kv})}else if("phone"in t){const{phone:s,password:o,options:a}=t;n=await V(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Kv})}else throw new cl("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const s=new Ci;return this._returnResult({data:{user:null,session:null},error:s})}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:i})}catch(n){if(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,s;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:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.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,i,s,o,a,l,c,u,d,h;let p,v;if("message"in t)p=t.message,v=t.signature;else{const{chain:y,wallet:x,statement:m,options:g}=t;let w;if(Le())if(typeof x=="object")w=x;else{const P=window;if("ethereum"in P&&typeof P.ethereum=="object"&&"request"in P.ethereum&&typeof P.ethereum.request=="function")w=P.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 x!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=x}const k=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href),S=await w.request({method:"eth_requestAccounts"}).then(P=>P).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const T=pS(S[0]);let E=(r=g==null?void 0:g.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!E){const P=await w.request({method:"eth_chainId"});E=vF(P)}const _={domain:k.host,address:T,statement:m,uri:k.href,version:"1",chainId:E,nonce:(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.resources};p=xF(_),v=await w.request({method:"personal_sign",params:[wF(p),T]})}try{const{data:y,error:x}=await V(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:v},!((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:zt});if(x)throw x;if(!y||!y.session||!y.user){const m=new Ci;return this._returnResult({data:{user:null,session:null},error:m})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:x})}catch(y){if(B(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async signInWithSolana(t){var n,r,i,s,o,a,l,c,u,d,h,p;let v,y;if("message"in t)v=t.message,y=t.signature;else{const{chain:x,wallet:m,statement:g,options:w}=t;let k;if(Le())if(typeof m=="object")k=m;else{const T=window;if("solana"in T&&typeof T.solana=="object"&&("signIn"in T.solana&&typeof T.solana.signIn=="function"||"signMessage"in T.solana&&typeof T.solana.signMessage=="function"))k=T.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 m!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=m}const S=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href);
228if("signIn"in k&&k.signIn){const T=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),g?{statement:g}:null));let E;if(Array.isArray(T)&&T[0]&&typeof T[0]=="object")E=T[0];else if(T&&typeof T=="object"&&"signedMessage"in T&&"signature"in T)E=T;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)v=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),y=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in k)||typeof k.signMessage!="function"||!("publicKey"in k)||typeof k!="object"||!k.publicKey||!("toBase58"in k.publicKey)||typeof k.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");v=[`${S.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(i=(r=w==null?void 0:w.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=w==null?void 0:w.signInWithSolana)===null||s===void 0)&&s.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.signInWithSolana.resources.map(E=>`- ${E}`)]:[]].join(` 229`);const T=await k.signMessage(new TextEncoder().encode(v),"utf8");if(!T||!(T instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");y=T}}try{const{data:x,error:m}=await V(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:v,signature:Xr(y)},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:zt});if(m)throw m;if(!x||!x.session||!x.user){const g=new Ci;return this._returnResult({data:{user:null,session:null},error:g})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:m})}catch(x){if(B(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await Ur(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new BL;const{data:s,error:o}=await V(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:zt});if(await De(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!s||!s.session||!s.user){const a=new Ci;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(await De(this.storage,`${this.storageKey}-code-verifier`),B(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:s,nonce:o}=t,a=await V(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:zt}),{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 Ci;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(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,s,o;try{if("email"in t){const{email:a,options:l}=t;
229let c=null,u=null;this.flowType==="pkce"&&([c,u]=await Ai(this.storage,this.storageKey));const{error:d}=await V(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 V(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!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 cl("You must provide either an email or phone number.")}catch(a){if(await De(this.storage,`${this.storageKey}-code-verifier`),B(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let i,s;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await V(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:zt});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(i){if(B(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,s,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await Ai(this.storage,this.storageKey));const c=await V(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}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.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:hF});return!((s=c.data)===null||s===void 0)&&s.url&&Le()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await De(this.storage,`${this.storageKey}-code-verifier`),B(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 ft;const{error:i}=await V(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(B(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:i,options:s}=t,{error:o}=await V(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:i,options:s}=t,{data:o,error:a}=await V(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new cl("You must provide either an email or phone number and a type")}catch(n){if(B(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(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}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 i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.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 Ur(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
229id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<pd:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Ur(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=gd()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=lF(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},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 V(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:rr}):await this._useSession(async n=>{var r,i,s;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 ft}:await V(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:rr})})}catch(n){if(B(n))return ll(n)&&(await this._removeSession(),await De(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:i,error:s}=r;if(s)throw s;if(!i.session)throw new ft;const o=i.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Ai(this.storage,this.storageKey));const{data:c,error:u}=await V(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:rr});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 De(this.storage,`${this.storageKey}-code-verifier`),B(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 ft;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:o}=dl(t.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){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};s=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});s={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(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(B(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 ft;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!Le())throw new ul("No browser detected.");
229if(t.error||t.error_description||t.error_code)throw new ul(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 zv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ul("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 zv("No code detected.");const{data:g,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const k=new URL(window.location.href);return k.searchParams.delete("code"),window.history.replaceState(window.history.state,"",k.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!s||!a||!o||!c)throw new ul("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(a);let h=u+d;l&&(h=parseInt(l));const p=h-u;p*1e3<=Ii&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${d}s`);const v=h-d;u-v>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",v,h,u):u-v<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",v,h,u);const{data:y,error:x}=await this._getUser(s);if(x)throw x;const m={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:d,expires_at:h,refresh_token:o,token_type:c,user:y.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:m,redirectType:t.type},error:null})}catch(r){if(B(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 Ur(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:i,error:s}=n;if(s&&!ll(s))return this._returnResult({error:s});const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(zL(a)&&(a.status===404||a.status===401||a.status===403)||ll(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await De(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=qL(),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,i;try{const{data:{session:s},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),ll(s)?console.warn(s):console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await Ai(this.storage,this.storageKey,!0));try{return await V(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await De(this.storage,`${this.storageKey}-code-verifier`),B(s))return this._returnResult({data:null,error:s});throw s}}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(B(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:i}=await this._useSession(async s=>{var o,a,l,c,u;const{data:d,error:h}=s;if(h)throw h;const p=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 V(this.fetch,"GET",p,{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(i)throw i;return Le()&&!(!((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(B(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:i,data:{session:s}}=n;
229if(i)throw i;const{options:o,provider:a,token:l,access_token:c,nonce:u}=t,d=await V(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s==null?void 0:s.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:zt}),{data:h,error:p}=d;return p?this._returnResult({data:{user:null,session:null},error:p}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new Ci}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:p}))}catch(i){if(await De(this.storage,`${this.storageKey}-code-verifier`),B(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)throw o;return await V(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(B(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 QL(async i=>(i>0&&await XL(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await V(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:zt})),(i,s)=>{const o=200*Math.pow(2,i);return s&&md(s)&&Date.now()+o-r<Ii})}catch(r){if(this._debug(n,"error",r),B(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),Le()&&!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 i=await Ur(this.storage,this.storageKey);if(i&&this.userStorage){let o=await Ur(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await Di(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:gd()}else if(i&&!i.user&&!i.user){const o=await Ur(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await De(this.storage,this.storageKey+"-user"),await Di(this.storage,this.storageKey,i)):i.user=gd()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<pd;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${pd}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),md(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(i.access_token);!a&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):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",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new ft;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new hu;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new ft;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={data:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),B(s)){const o={data:null,error:s};return md(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(o),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await De(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 Di(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=Wv(i);await Di(this.storage,this.storageKey,s)}else{const i=Wv(n);await Di(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await De(this.storage,this.storageKey),await De(this.storage,this.storageKey+"-code-verifier"),await De(this.storage,this.storageKey+"-user"),this.userStorage&&await De(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Le()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
229catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ii);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 i=Math.floor((r.expires_at*1e3-t)/Ii);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Ii}ms, refresh threshold is ${of} ticks`),i<=of&&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 fS)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Le()||!(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()=>{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 i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,o]=await Ai(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?this._returnResult({data:null,error:s}):await V(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:s,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 V(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.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(B(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:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?CF(t.webauthn.credential_response):AF(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await V(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=i==null?void 0:i.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(B(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:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=await V(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.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:EF(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:_F(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(B(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 i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,i,s;if(t)try{const{payload:p}=dl(t);let v=null;p.aal&&(v=p.aal);let y=v;const{data:{user:x},error:m}=await this.getUser(t);if(m)return this._returnResult({data:null,error:m});((r=(n=x==null?void 0:x.factors)===null||n===void 0?void 0:n.filter(k=>k.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(y="aal2");const w=p.amr||[];return{data:{currentLevel:v,nextLevel:y,currentAuthenticationMethods:w},error:null}}catch(p){if(B(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:o},error:a}
229=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}=dl(o.access_token);let c=null;l.aal&&(c=l.aal);let u=c;((s=(i=o.user.factors)===null||i===void 0?void 0:i.filter(p=>p.status==="verified"))!==null&&s!==void 0?s:[]).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:i}=n;return i?this._returnResult({data:null,error:i}):r?await V(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new ft})})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new ft});const o=await V(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Le()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(B(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new ft});const o=await V(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Le()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(B(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 V(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new ft})})}catch(t){if(B(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:i}=n;return i?this._returnResult({data:null,error:i}):r?(await V(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 ft})})}catch(n){if(B(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 i=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+LL>i)return r;const{data:s,error:o}=await V(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:p,error:v}
229=await this.getSession();if(v||!p.session)return this._returnResult({data:null,error:v});r=p.session.access_token}const{header:i,payload:s,signature:o,raw:{header:a,payload:l}}=dl(r);n!=null&&n.allowExpired||sF(s.exp);const c=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:s,header:i,signature:o},error:null}}const u=oF(i.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,KL(`${a}.${l}`)))throw new cf("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(r){if(B(r))return this._returnResult({data:null,error:r});throw r}}}oa.nextInstanceID={};const LF=oa,FF="2.104.0";let co="";typeof Deno<"u"?co="deno":typeof document<"u"?co="web":typeof navigator<"u"&&navigator.product==="ReactNative"?co="react-native":co="node";const zF={"X-Client-Info":`supabase-js-${co}/${FF}`},UF={headers:zF},BF={schema:"public"},$F={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},VF={};function aa(e){"@babel/helpers - typeof";return aa=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},aa(e)}function WF(e,t){if(aa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(aa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HF(e){var t=WF(e,"string");return aa(t)=="symbol"?t:t+""}function KF(e,t,n){return(t=HF(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(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function be(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){KF(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 GF=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),qF=()=>Headers,YF=(e,t,n)=>{const r=GF(n),i=qF();return async(s,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new i(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(s,be(be({},o),{},{headers:c}))}};function JF(e){return e.endsWith("/")?e:e+"/"}function XF(e,t){var n,r;const{db:i,auth:s,realtime:o,global:a}=e,{db:l,auth:c,realtime:u,global:d}=t,h={db:be(be({},l),i),auth:be(be({},c),s),realtime:be(be({},u),o),storage:{},global:be(be(be({},d),a),{},{headers:be(be({},(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 QF(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(JF(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var ZF=class extends LF{constructor(e){super(e)}},e4=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const s=QF(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const o=`sb-${s.hostname.split(".")[0]}-auth-token`,a={db:BF,realtime:VF,auth:be(be({},$F),{},{storageKey:o}),global:UF},l=XF(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},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=YF(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(be({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 bD(new URL("rest/v1",s).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new NL(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new dD(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)}
229channel(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:i,storageKey:s,flowType:o,lock:a,debug:l,throwOnError:c},u,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new ZF({url:this.authUrl.href,headers:be(be({},h),u),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:o,lock:a,debug:l,throwOnError:c,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new tL(this.realtimeUrl.href,be(be({},e),{},{params:be(be({},{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 t4=(e,t,n)=>new e4(e,t,n);function n4(){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}n4()&&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 r4="https://sbazwymnvskeacqqqzoa.supabase.co",i4="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNiYXp3eW1udnNrZWFjcXFxem9hIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzYwNzg5MzQsImV4cCI6MjA5MTY1NDkzNH0.5eib1VZM7QIePa6AGCb3lzraRTi2TQ-2E8jmXMA7qw4",s4=t4(r4,i4,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),o4=[{label:"Spotify",href:"https://open.spotify.com/artist/6Mj20Zm7PRpGzoNN453mSq"},{label:"Instagram",href:"https://www.instagram.com/fahiratakoglu/"},{label:"Facebook",href:"https://www.facebook.com/fahiratakoglu/"},{label:"X / Twitter",href:"https://x.com/Fahiratakoglu"},{label:"IMDB",href:"https://www.imdb.com/name/nm0040232/"},{label:"Wikipedia",href:"https://en.wikipedia.org/wiki/Fahir_Atako%C4%9Flu"},{label:"YouTube",href:"https://www.youtube.com/@FahirAtakogluOfficial"},{label:"Official Site",href:"https://www.fahiratakoglu.com"}],a4=["Concert Booking","Film Scoring","Commercial Licensing","Press & Media","Other"],l4=()=>{const[e,t]=b.useState({name:"",email:"",organization:"",eventType:"",date:"",message:""}),[n,r]=b.useState(!1),[i,s]=b.useState(!1),o=async a=>{a.preventDefault(),s(!0);try{const{error:l}=await s4.from("contact_inquiries").insert({name:e.name.trim(),email:e.email.trim(),organization:e.organization.trim()||null,event_type:e.eventType,event_date:e.date||null,message:e.message.trim()});if(l)throw l;r(!0),t({name:"",email:"",organization:"",eventType:"",date:"",message:""}),setTimeout(()=>r(!1),4e3),Og.success("Inquiry received! Our team will be in contact with you.")}catch(l){console.error("Form submission error:",l),Og.error("Something went wrong. Please try again.")}finally{s(!1)}};return f.jsxs(f.Fragment,{children:[f.jsxs("section",{id:"contact",className:"py-32 px-6 md:px-16 lg:px-24 bg-gradient-dark noise-overlay",children:[f.jsxs("div",{className:"max-w-4xl mx-auto relative z-10",children:[f.jsxs(D.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-16 text-center",children:[f.jsx("p",{className:"text-primary text-xs tracking-[0.4em] uppercase mb-4",children:"Inquiries"}),f.jsxs("h2",{className:"font-serif text-5xl md:text-6xl lg:text-7xl font-light text-foreground",children:["Booking & ",f.jsx("span",{className:"text-gradient-gold italic",children:"Contact"})]}),f.jsx("p",{className:"mt-6 text-muted-foreground text-sm font-light max-w-xl mx-auto leading-relaxed",children:"For concert bookings, film scoring inquiries, commercial licensing, and press, please use the form below."})]}),f.jsxs(D.form,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},onSubmit:o,className:"grid md:grid-cols-2 gap-5",children:[f.jsx("input",{type:"text",placeholder:"Name",required:!0,maxLength:100,className:"w-full px-4 py-3 bg-card/50 border border-border/40 text-foreground text-sm placeholder:text-muted-foreground
229/50 focus:border-primary/50 focus:outline-none transition-colors",value:e.name,onChange:a=>t(l=>({...l,name:a.target.value}))}),f.jsx("input",{type:"email",placeholder:"Email",required:!0,maxLength:255,className:"w-full px-4 py-3 bg-card/50 border border-border/40 text-foreground text-sm placeholder:text-muted-foreground/50 focus:border-primary/50 focus:outline-none transition-colors",value:e.email,onChange:a=>t(l=>({...l,email:a.target.value}))}),f.jsx("input",{type:"text",placeholder:"Organization",maxLength:100,className:"w-full px-4 py-3 bg-card/50 border border-border/40 text-foreground text-sm placeholder:text-muted-foreground/50 focus:border-primary/50 focus:outline-none transition-colors",value:e.organization,onChange:a=>t(l=>({...l,organization:a.target.value}))}),f.jsxs("select",{required:!0,className:"w-full px-4 py-3 bg-card/50 border border-border/40 text-foreground text-sm focus:border-primary/50 focus:outline-none transition-colors appearance-none",value:e.eventType,onChange:a=>t(l=>({...l,eventType:a.target.value})),children:[f.jsx("option",{value:"",disabled:!0,children:"Event Type"}),a4.map(a=>f.jsx("option",{value:a,children:a},a))]}),f.jsx("input",{type:"date",className:"w-full px-4 py-3 bg-card/50 border border-border/40 text-foreground text-sm focus:border-primary/50 focus:outline-none transition-colors md:col-span-2",value:e.date,onChange:a=>t(l=>({...l,date:a.target.value}))}),f.jsx("textarea",{placeholder:"Message",required:!0,maxLength:2e3,rows:5,className:"w-full px-4 py-3 bg-card/50 border border-border/40 text-foreground text-sm placeholder:text-muted-foreground/50 focus:border-primary/50 focus:outline-none transition-colors md:col-span-2 resize-none",value:e.message,onChange:a=>t(l=>({...l,message:a.target.value}))}),f.jsx("div",{className:"md:col-span-2",children:f.jsx("button",{type:"submit",disabled:i,className:"inline-flex items-center gap-2 px-8 py-3 bg-primary text-primary-foreground text-xs tracking-[0.15em] uppercase font-medium hover:bg-primary/90 transition-colors glow-gold disabled:opacity-50",children:i?"Sending...":f.jsxs(f.Fragment,{children:[f.jsx(aP,{size:14})," Send Inquiry"]})})})]})]}),f.jsx(Jp,{children:n&&f.jsx(D.div,{initial:{opacity:0}
229,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-background/80 backdrop-blur-sm",onClick:()=>r(!1),children:f.jsxs(D.div,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:-10},transition:{type:"spring",damping:20,stiffness:300},className:"text-center px-12 py-10 max-w-md",children:[f.jsx(D.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.15,type:"spring",damping:12,stiffness:200},className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/15 border border-primary/30 mb-6",children:f.jsx(iP,{className:"text-primary",size:32})}),f.jsx(D.h3,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.25},className:"font-serif text-2xl md:text-3xl text-foreground mb-3",children:"Inquiry Received"}),f.jsx(D.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.35},className:"text-muted-foreground text-sm leading-relaxed",children:"Thank you for reaching out. Our team will be in contact with you shortly."}),f.jsx(D.div,{initial:{scaleX:0},animate:{scaleX:1},transition:{delay:.1,duration:3.9,ease:"linear"},className:"h-0.5 bg-primary/40 mt-8 origin-left"})]})})})]}),f.jsx("footer",{className:"px-6 md:px-16 lg:px-24 py-12 border-t border-border/30",children:f.jsxs("div",{className:"max-w-7xl mx-auto",children:[f.jsx("div",{className:"flex flex-wrap items-center justify-center gap-6 mb-8",children:o4.map(a=>f.jsxs("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[10px] tracking-[0.15em] uppercase text-muted-foreground hover:text-primary transition-colors",children:[a.label," ",f.jsx(gn,{size:9})]},a.label))}),f.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4",children:[f.jsxs("p",{className:"text-muted-foreground/50 text-xs tracking-wider",children:["© ",new Date().getFullYear()," Fahir AtakoÄlu. All rights reserved. | Official Website: fahiratakoglu.com"]}),f.jsx("p",{className:"font-serif text-sm text-primary/60 tracking-wider",children:"FA"})]})]})})]})},c4=()=>f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(au,{}),f.jsx(MI,{}),f.jsx(II,{}),f.jsx(BI,{}),f.jsx(VI,{}),f.jsx(KI,{}),f.jsx(YI,{}),f.jsx(XI,{}),f.jsx(QI,{}),f.jsx(nD,{}),f.jsx(sD,{}),f.jsx(aD,{}),f.jsx(l4,{})]}),u4=()=>f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(au,{}),f.jsxs("div",{className:"pt-24 max-w-5xl mx-auto px-6 md:px-16 py-16",children:[f.jsxs(Ts,{to:"/",className:"inline-flex items-center gap-2 text-primary text-sm mb-12 hover:underline",children:[f.jsx(fp,{size:16})," Back Home"]}),f.jsxs(D.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},children:[f.jsx("p",{className:"text-primary text-xs tracking-[0.4em] uppercase mb-4",children:"Biography"}),f.jsxs("h1",{className:"font-serif text-5xl md:text-7xl font-light text-foreground mb-16",children:["Fahir ",f.jsx("span",{className:"text-gradient-gold italic",children:"AtakoÄlu"})]})]}),f.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 mb-20",children:[f.jsx(D.img,{initial:{opacity:0}
229,animate:{opacity:1},transition:{delay:.3},src:qk,alt:"Fahir AtakoÄlu",className:"w-full h-[500px] object-cover"}),f.jsxs(D.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"space-y-5 text-muted-foreground text-sm leading-relaxed font-light",children:[f.jsx("p",{children:"A native of Turkey, Fahir AtakoÄlu is an international, award-winning composer and pianist well known in the fields of large symphonic works, film music, and jazz. He is considered one of the most outstanding pianists and composers in the world today."}),f.jsx("p",{children:'Praised by the legendary Ahmet Ertegun of Atlantic Records as being "at the cutting edge of world music," Fahir has built a career that spans continents and genres. His 18 albums showcase a unique musical language that blends elements from Turkey, Spain, Italy, the Middle East, Cuba, and Brazil.'}),f.jsx("p",{children:"His live performances are legendary for their intensity and emotional depth. Whether performing solo piano or leading a full orchestra, Fahir brings an extraordinary commitment to every note, creating moments of transcendence that audiences remember for years."}),f.jsx("p",{children:"Beyond his artistic achievements, Fahir is deeply committed to using music as a force for peace and understanding. His Music of Hope Tour, dedicated to refugees worldwide, carries messages of unity and the belief that music can bridge the deepest divides between people."})]})]}),f.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-20",children:[f.jsx("img",{src:lu,alt:"Fahir with orchestra",className:"w-full h-[300px] object-cover"}),f.jsx("img",{src:Sc,alt:"Fahir speaking",className:"w-full h-[300px] object-cover"})]}),f.jsxs("div",{className:"max-w-3xl space-y-5 text-muted-foreground text-sm leading-relaxed font-light mb-20",children:[f.jsx("p",{children:"Fahir began his musical education at an early age, studying classical piano and composition at the Istanbul State Conservatory. He later pursued advanced studies in the United States, where he was exposed to jazz and contemporary American musicâinfluences that would profoundly shape his compositional voice."}),f.jsx("p",{children:'His film and television scoring work has reached audiences of hundreds of millions worldwide. The score for "Omar ibn Al-Khattab" remains one of the most acclaimed television scores ever produced in the Middle East, praised for its emotional power and cultural authenticity.'}),f.jsx("p",{children:"Fahir has performed at the world's most prestigious venues and festivals, including Carnegie Hall, the Kennedy Center, Umbria Jazz Festival, Istanbul Jazz Festival, and Montreux Jazz Festival. His concert appearances are celebrated for their spontaneity, virtuosity, and deep emotional engagement."})]}),f.jsxs("blockquote",{className:"border-l-2 border-primary/40 pl-8 py-4 max-w-3xl",children:[f.jsx("p",{className:"text-foreground/80 italic font-serif text-2xl leading-relaxed",children:`"Let's give up our earthly desires to let live love and to live love as one."`}),f.jsx("cite",{className:"block mt-4 text-primary text-xs tracking-wider not-italic",children:"â Fahir AtakoÄlu"})]})]})]}),d4="/assets/fahir-duo-bw-DudRYj6D.jpg",h4={"symphonic-works":{title:"Symphonic Works",subtitle:"Large-scale orchestral compositions",image:lu,description:["Fahir AtakoÄlu's symphonic works represent the pinnacle of his compositional visionâgrand, sweeping orchestral pieces that bridge Eastern and Western musical traditions with breathtaking emotional depth.","His symphonic compositions have been performed by prestigious orchestras worldwide, including performances at Carnegie Hall, the Kennedy Center, and major European concert halls. Each work showcases his ability to weave Turkish, Middle Eastern, and Mediterranean melodic traditions into the rich fabric of Western orchestral writing.","Notable works include his symphonic suites commissioned by international orchestras, pieces for the July 15th commemorations, and collaborative works with conductors from the world's leading ensembles."],highlights:["Performed by major international orchestras","Carnegie Hall and Kennedy Center premieres","Blends Eastern and Western musical traditions","Commissioned works for national commemorations","Collaborations with world-renowned conductors"]},"film-scores":{title:"Film Scores",subtitle:"Cinema & motion picture",image:d4,description:["Fahir AtakoÄlu's film scoring work demonstrates his remarkable ability to serve cinematic storytelling through music. His scores enhance narrative depth while maintaining his distinctive compositional voice.","His most acclaimed film work includes the sweeping score for 'Omar ibn Al-Khattab,' a major international production that required blending historical authenticity with modern cinematic sensibilities. The score was praised for its emotional resonance and cultural sensitivity.","Beyond historical epics, Fahir has scored contemporary dramas, documentaries, and independent films, bringing the same level of craft and emotional intelligence to projects of every scale."],highlights:["
229Score for 'Omar ibn Al-Khattab' â major international production","Expertise in historically-informed scoring","Contemporary dramas and documentaries","Award-winning compositions for cinema","Cross-cultural musical storytelling"]},"television-music":{title:"Television Music",subtitle:"TV dramas & series",image:Yk,description:["Fahir AtakoÄlu has composed music for some of the most-watched television productions in the Middle East and Turkey, creating memorable themes and underscores that have become iconic in their own right.","His television work spans historical dramas, contemporary series, and documentary programming. Each project benefits from his deep understanding of how music functions within serialized storytellingâcreating themes that evolve across episodes while maintaining emotional coherence.","His TV compositions have reached audiences of hundreds of millions worldwide, making his music some of the most widely heard contemporary orchestral writing in global television."],highlights:["Music for major Turkish and Middle Eastern TV dramas","Hundreds of millions of viewers worldwide","Award-winning television compositions","Historical drama and documentary scoring","Iconic themes recognized across continents"]},"live-performance":{title:"Live Performance",subtitle:"Concert & world tours",image:Jk,description:["As a performer, Fahir AtakoÄlu is known for his electrifying stage presence and the extraordinary emotional range he brings to every concert. His live performances are renowned for their intensity, spontaneity, and the deep connection he forges with audiences.","The Music of Hope Tour, one of his most significant ongoing projects, is dedicated to refugees throughout the world. These concerts carry messages of unity, of learning to live together, and embracing our differences to always feel the Hope for Peace through music.","Fahir has performed at major international jazz festivals including Umbria Jazz, Istanbul Jazz Festival, and Montreux Jazz Festival, as well as prestigious concert halls like Carnegie Hall, the Kennedy Center, and Blue Note Jazz Club."],highlights:["Music of Hope Tour â dedicated to refugees worldwide","Umbria Jazz Festival, Montreux Jazz Festival","Carnegie Hall, Kennedy Center performances","Blue Note Jazz Club residencies","International concert tours across Europe, USA, and Middle East"]}},f4=()=>{const{slug:e}=Bx(),t=e?h4[e]:null;return t?f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(au,{}),f.jsxs("div",{className:"relative h-[60vh] overflow-hidden",children:[f.jsx("img",{src:t.image,alt:t.title,className:"w-full h-full object-cover"}),f.jsx("div",{className:"absolute inset-0 bg-background/60"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-transparent to-background/40"}),f.jsx("div",{className:"absolute bottom-0 left-0 right-0 px-6 md:px-16 lg:px-24 pb-16 max-w-7xl mx-auto",children:f.jsxs(D.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[f.jsx("p",{className:"text-primary text-xs tracking-[0.4em] uppercase mb-4",children:t.subtitle}),f.jsx("h1",{className:"font-serif text-5xl md:text-7xl font-light text-foreground",children:t.title})]})})]}),f.jsxs("div",{className:"max-w-4xl mx-auto px-6 md:px-16 py-20",children:[f.jsxs(Ts,{to:"/#work",className:"inline-flex items-center gap-2 text-primary text-sm mb-12 hover:underline",children:[f.jsx(fp,{size:16})," Back to All Work"]}),f.jsx("div",{className:"space-y-6 text-muted-foreground text-base leading-relaxed font-light",children:t.description.map((n,r)=>f.jsx(D.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:r*.15},children:n},r))}),f.jsxs(D.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"mt-16 p-8 border border-border/50 bg-card/30",children:[f.jsx("h3",{className:"font-serif text-2xl text-foreground mb-6",children:"Highlights"}),f.jsx("ul",{className:"space-y-3",children:t.highlights.map((n,r)=>f.jsxs("li",{className:"flex items-start gap-3 text-muted-foreground text-sm",children:[f.jsx("span",{className:"text-primary mt-1",children:"â¢"}),n]},r))})]})]})]}):f.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h1",{className:"font-serif text-4xl text-foreground mb-4",children:"Not Found"}),f.jsx(Ts,{to:"/",className:"text-primary hover:underline",children:"â Back Home"})]})})},Zv="/assets/fahir-portrait-DFdodXXm.jpg",e0="/assets/fahir-piano-yamaha-qPWZjNlU.jpg",p4={"for-love":{title:"For Love",year:"2024",type:"18th Studio Album",image:Zv,description:[`"For Love" is Fahir AtakoÄlu's eighteenth album and represents the culmination of decades of cross-cultural musical exploration. This visionary undertaking blends musical elements from Turkey, Spain, Italy, the Middle East, Cuba, and Brazil with American jazz improvisations and symphonic polyphony.`,"The album showcases Fahir's unmatched ability to transcend genre boundaries, creating a unified musical language that speaks to the universal human experience of love in all its forms."],tracks:["For Love","Mediterranean Dreams","Istanbul Nights","Hope","Reunion","Eternity"],spotifyUrl:"https://open.spotify.com/artist/2Z6HCfH88hUvhXSvVdDngI"},"omar-ibn-al-khattab":{title:"Musical Reflections of Omar ibn Al-Khattab",year:"2012",type:"Television Score",image:e0,description:["This album contains Fahir AtakoÄlu's acclaimed musical compositions for the epic television series 'Omar ibn Al-Khattab,' one of the most ambitious and widely-viewed historical dramas ever produced in the Middle East.","The score required a delicate balance of historical authenticity and modern cinematic sensibility, blending traditional Middle Eastern instruments with full orchestral arrangements to create music that honored the subject while captivating contemporary audiences."],tracks:["Main Theme","The Journey Begins","Medina","Battle of Badr","Peace","Legacy"]},if:{title:"If",year:"2010",type:"Studio Album",image:Sc,description:[`"If" explores the boundaries between jazz improvisation and composed orchestral music. The album features Fahir's signature blend of Turkish melodic sensibilities with contemporary jazz harmony.`,"Recorded with an ensemble of world-class musicians, the album was praised by critics for its emotional depth and technical brilliance."],tracks:["If","Whispers","Crossroads","Midnight Sun","Reflections","Tomorrow"]},"live-at-umbria-jazz":{title:"Live at Umbria Jazz",year:"2008",type:"Live Album",image:Zv,description:["Captured during Fahir AtakoÄlu's electrifying performance at the prestigious Umbria Jazz Festival in Perugia, Italy, this live album showcases the raw energy and spontaneous brilliance of his concert performances.","The recording captures the magical chemistry between Fahir and his ensemble, featuring extended improvisations and audience interactions that define his legendary live shows."]},"istanbul-in-blue":{title:"Istanbul in Blue",year:"2006",type:"Studio Album",image:e0,description:[`"Istanbul in Blue" is a love letter to Fahir's hometown, capturing the city's unique atmosphere through music that bridges European jazz and Turkish classical traditions.`,"The album paints a sonic portrait of Istanbulâits energy, its melancholy, its beautyâthrough compositions that blend piano jazz with traditional Turkish instruments and orchestral arrangements."]},"far-away-from-home":{title:"Far Away from Home",year:"2004",type:"Studio Album",image:Sc,description:[`"Far Away from Home" explores themes of displacement, longing, and the universal experience of being between cultures. The album reflects Fahir's own journey between Turkey and the United States.`,"With compositions that range from intimate solo piano pieces to full ensemble arrangements, the album showcases the breadth of Fahir's musical vision and his ability to transform personal experience into universal art."]}},m4=()=>{const{slug:e}=Bx(),t=e?p4[e]:null;return t?f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(au,{}),f.jsxs("div",{className:"pt-24 max-w-6xl mx-auto px-6 md:px-16 py-16",children:[f.jsxs(Ts,{to:"/#music",className:"inline-flex items-center gap-2 text-primary text-sm mb-12 hover:underline",children:[f.jsx(fp,{size:16})," Back to Discography"]}),f.jsxs("div",{className:"grid lg:grid-cols-[1fr_1.5fr] gap-16 items-start",children:[f.jsx(D.div,{initial:{opacity:0,x:-30}
229,animate:{opacity:1,x:0},children:f.jsx("img",{src:t.image,alt:t.title,className:"w-full aspect-square object-cover"})}),f.jsxs(D.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},transition:{delay:.2},children:[f.jsxs("p",{className:"text-primary text-xs tracking-[0.3em] uppercase mb-2",children:[t.type," · ",t.year]}),f.jsx("h1",{className:"font-serif text-5xl md:text-6xl font-light text-foreground mb-8",children:t.title}),f.jsx("div",{className:"space-y-5 text-muted-foreground text-sm leading-relaxed font-light",children:t.description.map((n,r)=>f.jsx("p",{children:n},r))}),t.tracks&&f.jsxs("div",{className:"mt-12",children:[f.jsx("h3",{className:"font-serif text-xl text-foreground mb-4",children:"Track Listing"}),f.jsx("div",{className:"space-y-0",children:t.tracks.map((n,r)=>f.jsxs("div",{className:"flex items-center gap-4 py-3 border-b border-border/30",children:[f.jsx("span",{className:"text-muted-foreground/40 text-xs font-mono w-6",children:String(r+1).padStart(2,"0")}),f.jsx("span",{className:"text-foreground text-sm",children:n})]},n))})]}),t.spotifyUrl&&f.jsxs("a",{href:t.spotifyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 mt-8 text-xs tracking-[0.2em] uppercase text-primary border border-primary/30 px-6 py-3 hover:bg-primary/10 transition-colors",children:["Listen on Spotify ",f.jsx(gn,{size:12})]})]})]})]})]}):f.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h1",{className:"font-serif text-4xl text-foreground mb-4",children:"Album Not Found"}),f.jsx(Ts,{to:"/",className:"text-primary hover:underline",children:"â Back Home"})]})})},g4=()=>{const e=Ms();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),f.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),f.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},y4=new w_,v4=()=>f.jsx(b_,{client:y4,children:f.jsxs(RR,{children:[f.jsx(KP,{}),f.jsx(QC,{}),f.jsx(yC,{children:f.jsxs(uC,{children:[f.jsx(Ri,{path:"/",element:f.jsx(c4,{})}),f.jsx(Ri,{path:"/about",element:f.jsx(u4,{})}),f.jsx(Ri,{path:"/work/:slug",element:f.jsx(f4,{})}),f.jsx(Ri,{path:"/music/:slug",element:f.jsx(m4,{})}),f.jsx(Ri,{path:"*",element:f.jsx(g4,{})})]})})]})});Tx(document.getElementById("root")).render(f.jsx(v4,{}));
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.