vendor: 4,699 bytes, lines 1-9
1var Rd=e=>{throw TypeError(e)};var nl=(e,t,n)=>t.has(e)||Rd("Cannot "+n);var P=(e,t,n)=>(nl(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?Rd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),H=(e,t,n,r)=>(nl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Te=(e,t,n)=>(nl(e,t,"access private method"),n);var Ko=(e,t,n,r)=>({set _(s){H(e,t,s,n)},get _(){return P(e,t,r)}});function Ey(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ky(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Gh={exports:{}},ga={},Yh={exports:{}},Y={};/** 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 Ro=Symbol.for("react.element"),Cy=Symbol.for("react.portal"),Py=Symbol.for("react.fragment"),Ty=Symbol.for("react.strict_mode"),Ry=Symbol.for("react.profiler"),Oy=Symbol.for("react.provider"),Ay=Symbol.for("react.context"),jy=Symbol.for("react.forward_ref"),Ny=Symbol.for("react.suspense"),Iy=Symbol.for("react.memo"),$y=Symbol.for("react.lazy"),Od=Symbol.iterator;function Ly(e){return e===null||typeof e!="object"?null:(e=Od&&e[Od]||e["@@iterator"],typeof e=="function"?e:null)}var Jh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xh=Object.assign,Zh={};function ys(e,t,n){this.props=e,this.context=t,this.refs=Zh,this.updater=n||Jh}ys.prototype.isReactComponent={};ys.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")};ys.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ep(){}ep.prototype=ys.prototype;function oc(e,t,n){this.props=e,this.context=t,this.refs=Zh,this.updater=n||Jh}var ic=oc.prototype=new ep;ic.constructor=oc;Xh(ic,ys.prototype);ic.isPureReactComponent=!0;var Ad=Array.isArray,tp=Object.prototype.hasOwnProperty,ac={current:null},np={key:!0,ref:!0,__self:!0,__source:!0};function rp(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)tp.call(t,r)&&!np.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Ro,type:e,key:o,ref:i,props:s,_owner:ac.current}}function My(e,t){return{$$typeof:Ro,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function lc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ro}function Dy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jd=/\/+/g;function rl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Dy(""+e.key):t.toString(36)}
vendor: 1,554 bytes, line 9
9function _i(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ro:case Cy:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+rl(i,0):r,Ad(s)?(n="",e!=null&&(n=e.replace(jd,"$&/")+"/"),_i(s,t,n,"",function(u){return u})):s!=null&&(lc(s)&&(s=My(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(jd,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Ad(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+rl(o,a);i+=_i(o,t,n,l,s)}else if(l=Ly(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+rl(o,a++),i+=_i(o,t,n,l,s);else if(o==="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 i}function Qo(e,t,n){if(e==null)return e;var r=[],s=0;return _i(e,r,"","",function(o){return t.call(n,o,s++)}),r}function Fy(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 Ue={current:null},bi={transition:null},zy={ReactCurrentDispatcher:Ue,ReactCurrentBatchConfig:bi,ReactCurrentOwner:ac};function sp(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 7,415 bytes, lines 9-25
9Y.Children={map:Qo,forEach:function(e,t,n){Qo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Qo(e,function(){t++}),t},toArray:function(e){return Qo(e,function(t){return t})||[]},only:function(e){if(!lc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=ys;Y.Fragment=Py;Y.Profiler=Ry;Y.PureComponent=oc;Y.StrictMode=Ty;Y.Suspense=Ny;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zy;Y.act=sp;Y.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=Xh({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=ac.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)tp.call(t,l)&&!np.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ro,type:e.type,key:s,ref:o,props:r,_owner:i}};Y.createContext=function(e){return e={$$typeof:Ay,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Oy,_context:e},e.Consumer=e};Y.createElement=rp;Y.createFactory=function(e){var t=rp.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:jy,render:e}};Y.isValidElement=lc;Y.lazy=function(e){return{$$typeof:$y,_payload:{_status:-1,_result:e},_init:Fy}};Y.memo=function(e,t){return{$$typeof:Iy,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=bi.transition;bi.transition={};try{e()}finally{bi.transition=t}};Y.unstable_act=sp;Y.useCallback=function(e,t){return Ue.current.useCallback(e,t)};Y.useContext=function(e){return Ue.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Ue.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Ue.current.useEffect(e,t)};Y.useId=function(){return Ue.current.useId()};Y.useImperativeHandle=function(e,t,n){return Ue.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return Ue.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Ue.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Ue.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return Ue.current.useReducer(e,t,n)};Y.useRef=function(e){return Ue.current.useRef(e)};Y.useState=function(e){return Ue.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return Ue.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return Ue.current.useTransition()};Y.version="18.3.1";Yh.exports=Y;var x=Yh.exports;const A=Qh(x),Uy=Ey({__proto__:null,default:A},[x]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var By=x,Wy=Symbol.for("react.element"),Vy=Symbol.for("react.fragment"),Hy=Object.prototype.hasOwnProperty,qy=By.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ky={key:!0,ref:!0,__self:!0,__source:!0};function op(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Hy.call(t,r)&&!Ky.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Wy,type:e,key:o,ref:i,props:s,_owner:qy.current}}ga.Fragment=Vy;ga.jsx=op;ga.jsxs=op;Gh.exports=ga;var b=Gh.exports,ip={exports:{}},it={},ap={exports:{}},lp={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(k,O){var D=k.length;k.push(O);e:for(;0<D;){var $=D-1>>>1,F=k[$];if(0<s(F,O))k[$]=O,k[D]=F,D=$;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var O=k[0],D=k.pop();if(D!==O){k[0]=D;e:for(var $=0,F=k.length,J=F>>>1;$<J;){var ce=2*($+1)-1,Je=k[ce],ee=ce+1,gt=k[ee];if(0>s(Je,D))ee<F&&0>s(gt,Je)?(k[$]=gt,k[ee]=D,$=ee):(k[$]=Je,k[ce]=D,$=ce);else if(ee<F&&0>s(gt,D))k[$]=gt,k[ee]=D,$=ee;else break e}}return O}function s(k,O){var D=k.sortIndex-O.sortIndex;return D!==0?D:k.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],c=1,f=null,d=3,m=!1,y=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(k){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=k)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function _(k){if(v=!1,g(k),!y)if(n(l)!==null)y=!0,U(S);else{var O=n(u);O!==null&&Q(_,O.startTime-k)}}function S(k,O){y=!1,v&&(v=!1,p(T),T=-1),m=!0;var D=d;try{for(g(O),f=n(l);f!==null&&(!(f.expirationTime>O)||k&&!z());){var $=f.callback;if(typeof $=="function"){f.callback=null,d=f.priorityLevel;var F=$(f.expirationTime<=O);O=e.unstable_now(),typeof F=="function"?f.callback=F:f===n(l)&&r(l),g(O)}else r(l);f=n(l)}if(f!==null)var J=!0;else{var ce=n(u);ce!==null&&Q(_,ce.startTime-O),J=!1}return J}finally{f=null,d=D,m=!1}}var E=!1,C=null,T=-1,L=5,j=-1;function z(){return!(e.unstable_now()-j<L)}function M(){if(C!==null){var k=e.unstable_now();j=k;var O=!0;try{O=C(!0,k)}finally{O?q():(E=!1,C=null)}}else E=!1}var q;if(typeof h=="function")q=function(){h(M)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,K=N.port2;N.port1.onmessage=M,q=function(){K.postMessage(null)}}else q=function(){w(M,0)};function U(k){C=k,E||(E=!0,q())}function Q(k,O){T=w(function(){k(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,U(S))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(d){case 1:case 2:case 3:var O=3;break;default:O=d}var D=d;d=O;try{return k()}finally{d=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,O){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var D=d;d=k;try{return O()}finally{d=D}},e.unstable_scheduleCallback=function(k,O,D){var $=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?$+D:$):D=$,k){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}
vendor: 4,614 bytes, lines 25-33
25return F=D+F,k={id:c++,callback:O,priorityLevel:k,startTime:D,expirationTime:F,sortIndex:-1},D>$?(k.sortIndex=D,t(u,k),n(l)===null&&k===n(u)&&(v?(p(T),T=-1):v=!0,Q(_,D-$))):(k.sortIndex=F,t(l,k),y||m||(y=!0,U(S))),k},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(k){var O=d;return function(){var D=d;d=O;try{return k.apply(this,arguments)}finally{d=D}}}})(lp);ap.exports=lp;var Qy=ap.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 Gy=x,ot=Qy;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var up=new Set,ro={};function wr(e,t){ls(e,t),ls(e+"Capture",t)}function ls(e,t){for(ro[e]=t,e=0;e<t.length;e++)up.add(t[e])}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bl=Object.prototype.hasOwnProperty,Yy=/^[: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]*$/,Nd={},Id={};function Jy(e){return Bl.call(Id,e)?!0:Bl.call(Nd,e)?!1:Yy.test(e)?Id[e]=!0:(Nd[e]=!0,!1)}function Xy(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 Zy(e,t,n,r){if(t===null||typeof t>"u"||Xy(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 Be(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new Be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new Be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new Be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new Be(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){Pe[e]=new Be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new Be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new Be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new Be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new Be(e,5,!1,e.toLowerCase(),null,!1,!1)});var uc=/[\-:]([a-z])/g;function cc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(uc,cc);Pe[t]=new Be(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(uc,cc);Pe[t]=new Be(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(uc,cc);Pe[t]=new Be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new Be(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new Be(e,1,!1,e.toLowerCase(),null,!0,!0)});function dc(e,t,n,r){var s=Pe.hasOwnProperty(t)?Pe[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Zy(t,n,s,r)&&(n=null),r||s===null?Jy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var an=Gy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Go=Symbol.for("react.element"),jr=Symbol.for("react.portal"),Nr=Symbol.for("react.fragment"),fc=Symbol.for("react.strict_mode"),Wl=Symbol.for("react.profiler"),cp=Symbol.for("react.provider"),dp=Symbol.for("react.context"),hc=Symbol.for("react.forward_ref"),Vl=Symbol.for("react.suspense"),Hl=Symbol.for("react.suspense_list"),pc=Symbol.for("react.memo"),yn=Symbol.for("react.lazy"),fp=Symbol.for("react.offscreen"),$d=Symbol.iterator;function Ps(e){return e===null||typeof e!="object"?null:(e=$d&&e[$d]||e["@@iterator"],typeof e=="function"?e:null)}var he=Object.assign,sl;function Ds(e){if(sl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sl=t&&t[1]||""}return` 34`+sl+e}var ol=!1;function il(e,t){if(!e||ol)return"";ol=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(` 35`),o=r.stack.split(` 36`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=` 37`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{ol=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ds(e):""}function e0(e){switch(e.tag){case 5:return Ds(e.type);case 16:return Ds("Lazy");case 13:return Ds("Suspense");case 19:return Ds("SuspenseList");case 0:case 2:case 15:return e=il(e.type,!1),e;case 11:return e=il(e.type.render,!1),e;case 1:return e=il(e.type,!0),e;default:return""}}function ql(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 Nr:return"Fragment";case jr:return"Portal";case Wl:return"Profiler";case fc:return"StrictMode";case Vl:return"Suspense";case Hl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dp:return(e.displayName||"Context")+".Consumer";case cp:return(e._context.displayName||"Context")+".Provider";case hc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pc:return t=e.displayName||null,t!==null?t:ql(e.type)||"Memo";case yn:t=e._payload,e=e._init;try{return ql(e(t))}catch{}}return null}function t0(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 ql(t);case 8:return t===fc?"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 zn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function n0(e){var t=hp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yo(e){e._valueTracker||(e._valueTracker=n0(e))}function pp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Li(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 Kl(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ld(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zn(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 mp(e,t){t=t.checked,t!=null&&dc(e,"checked",t,!1)}function Ql(e,t){mp(e,t);var n=zn(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")?Gl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gl(e,t.type,zn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,180 bytes, line 37
37function Md(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 Gl(e,t,n){(t!=="number"||Li(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fs=Array.isArray;function Vr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+zn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Yl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return he({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Fs(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zn(n)}}function gp(e,t){var n=zn(t.value),r=zn(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 Fd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vp(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 Jl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Jo,yp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Jo=Jo||document.createElement("div"),Jo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Jo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function so(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ws={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},r0=["Webkit","ms","Moz","O"];Object.keys(Ws).forEach(function(e){r0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ws[t]=Ws[e]})});function wp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ws.hasOwnProperty(e)&&Ws[e]?(""+t).trim():t+"px"}function xp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=wp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var s0=he({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xl(e,t){if(t){if(s0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Zl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eu=null;function mc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tu=null,Hr=null,qr=null;function zd(e){if(e=jo(e)){if(typeof tu!="function")throw Error(R(280));var t=e.stateNode;t&&(t=_a(t),tu(e.stateNode,e.type,t))}}function _p(e){Hr?qr?qr.push(e):qr=[e]:Hr=e}function bp(){if(Hr){var e=Hr,t=qr;if(qr=Hr=null,zd(e),t)for(e=0;e<t.length;e++)zd(t[e])}}function Sp(e,t){return e(t)}function Ep(){}var al=!1;function kp(e,t,n){if(al)return e(t,n);al=!0;try{return Sp(e,t,n)}finally{al=!1,(Hr!==null||qr!==null)&&(Ep(),bp())}}function oo(e,t){var n=e.stateNode;if(n===null)return null;var r=_a(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var nu=!1;if(en)try{var Ts={};Object.defineProperty(Ts,"passive",{get:function(){nu=!0}}),window.addEventListener("test",Ts,Ts),window.removeEventListener("test",Ts,Ts)}catch{nu=!1}function o0(e,t,n,r,s,o,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Vs=!1,Mi=null,Di=!1,ru=null,i0={onError:function(e){Vs=!0,Mi=e}};function a0(e,t,n,r,s,o,i,a,l){Vs=!1,Mi=null,o0.apply(i0,arguments)}function l0(e,t,n,r,s,o,i,a,l){if(a0.apply(this,arguments),Vs){if(Vs){var u=Mi;Vs=!1,Mi=null}else throw Error(R(198));Di||(Di=!0,ru=u)}}function xr(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 Cp(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 Ud(e){if(xr(e)!==e)throw Error(R(188))}function u0(e){var t=e.alternate;if(!t){if(t=xr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Ud(s),e;if(o===r)return Ud(s),t;o=o.sibling}throw Error(R(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Pp(e){return e=u0(e),e!==null?Tp(e):null}function Tp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Tp(e);if(t!==null)return t;e=e.sibling}return null}var Rp=ot.unstable_scheduleCallback,Bd=ot.unstable_cancelCallback,c0=ot.unstable_shouldYield,d0=ot.unstable_requestPaint,ge=ot.unstable_now,f0=ot.unstable_getCurrentPriorityLevel,gc=ot.unstable_ImmediatePriority,Op=ot.unstable_UserBlockingPriority,Fi=ot.unstable_NormalPriority,h0=ot.unstable_LowPriority,Ap=ot.unstable_IdlePriority,va=null,zt=null;function p0(e){if(zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(va,e,void 0,(e.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:v0,m0=Math.log,g0=Math.LN2;function v0(e){return e>>>=0,e===0?32:31-(m0(e)/g0|0)|0}var Xo=64,Zo=4194304;function zs(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 zi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=zs(a):(o&=i,o!==0&&(r=zs(o)))}else i=n&~s,i!==0?r=zs(i):o!==0&&(r=zs(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&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-kt(t),s=1<<n,r|=e[n],t&=~s;return r}function y0(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 w0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-kt(o),a=1<<i,l=s[i];l===-1?(!(a&n)||a&r)&&(s[i]=y0(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function su(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function jp(){var e=Xo;return Xo<<=1,!(Xo&4194240)&&(Xo=64),e}function ll(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Oo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=n}function x0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-kt(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function vc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var te=0;function Np(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ip,yc,$p,Lp,Mp,ou=!1,ei=[],jn=null,Nn=null,In=null,io=new Map,ao=new Map,_n=[],_0="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 Wd(e,t){switch(e){case"focusin":case"focusout":jn=null;break;case"dragenter":case"dragleave":Nn=null;break;case"mouseover":case"mouseout":In=null;break;case"pointerover":case"pointerout":io.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ao.delete(t.pointerId)}}function Rs(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=jo(t),t!==null&&yc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 9,719 bytes, line 37
37function b0(e,t,n,r,s){switch(t){case"focusin":return jn=Rs(jn,e,t,n,r,s),!0;case"dragenter":return Nn=Rs(Nn,e,t,n,r,s),!0;case"mouseover":return In=Rs(In,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return io.set(o,Rs(io.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,ao.set(o,Rs(ao.get(o)||null,e,t,n,r,s)),!0}return!1}function Dp(e){var t=nr(e.target);if(t!==null){var n=xr(t);if(n!==null){if(t=n.tag,t===13){if(t=Cp(n),t!==null){e.blockedOn=t,Mp(e.priority,function(){$p(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 Si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=iu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);eu=r,n.target.dispatchEvent(r),eu=null}else return t=jo(n),t!==null&&yc(t),e.blockedOn=n,!1;t.shift()}return!0}function Vd(e,t,n){Si(e)&&n.delete(t)}function S0(){ou=!1,jn!==null&&Si(jn)&&(jn=null),Nn!==null&&Si(Nn)&&(Nn=null),In!==null&&Si(In)&&(In=null),io.forEach(Vd),ao.forEach(Vd)}function Os(e,t){e.blockedOn===t&&(e.blockedOn=null,ou||(ou=!0,ot.unstable_scheduleCallback(ot.unstable_NormalPriority,S0)))}function lo(e){function t(s){return Os(s,e)}if(0<ei.length){Os(ei[0],e);for(var n=1;n<ei.length;n++){var r=ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(jn!==null&&Os(jn,e),Nn!==null&&Os(Nn,e),In!==null&&Os(In,e),io.forEach(t),ao.forEach(t),n=0;n<_n.length;n++)r=_n[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<_n.length&&(n=_n[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&_n.shift()}var Kr=an.ReactCurrentBatchConfig,Ui=!0;function E0(e,t,n,r){var s=te,o=Kr.transition;Kr.transition=null;try{te=1,wc(e,t,n,r)}finally{te=s,Kr.transition=o}}function k0(e,t,n,r){var s=te,o=Kr.transition;Kr.transition=null;try{te=4,wc(e,t,n,r)}finally{te=s,Kr.transition=o}}function wc(e,t,n,r){if(Ui){var s=iu(e,t,n,r);if(s===null)yl(e,t,r,Bi,n),Wd(e,r);else if(b0(s,e,t,n,r))r.stopPropagation();else if(Wd(e,r),t&4&&-1<_0.indexOf(e)){for(;s!==null;){var o=jo(s);if(o!==null&&Ip(o),o=iu(e,t,n,r),o===null&&yl(e,t,r,Bi,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else yl(e,t,r,null,n)}}var Bi=null;function iu(e,t,n,r){if(Bi=null,e=mc(r),e=nr(e),e!==null)if(t=xr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Cp(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 Bi=e,null}function Fp(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(f0()){case gc:return 1;case Op:return 4;case Fi:case h0:return 16;case Ap:return 536870912;default:return 16}default:return 16}}var Rn=null,xc=null,Ei=null;function zp(){if(Ei)return Ei;var e,t=xc,n=t.length,r,s="value"in Rn?Rn.value:Rn.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return Ei=s.slice(e,1<r?1-r:void 0)}function ki(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 ti(){return!0}function Hd(){return!1}function at(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ti:Hd,this.isPropagationStopped=Hd,this}return he(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ti)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ti)},persist:function(){},isPersistent:ti}),t}var ws={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_c=at(ws),Ao=he({},ws,{view:0,detail:0}),C0=at(Ao),ul,cl,As,ya=he({},Ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bc,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!==As&&(As&&e.type==="mousemove"?(ul=e.screenX-As.screenX,cl=e.screenY-As.screenY):cl=ul=0,As=e),ul)},movementY:function(e){return"movementY"in e?e.movementY:cl}}),qd=at(ya),P0=he({},ya,{dataTransfer:0}),T0=at(P0),R0=he({},Ao,{relatedTarget:0}),dl=at(R0),O0=he({},ws,{animationName:0,elapsedTime:0,pseudoElement:0}),A0=at(O0),j0=he({},ws,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),N0=at(j0),I0=he({},ws,{data:0}),Kd=at(I0),$0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L0={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"},M0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M0[e])?!!t[e]:!1}function bc(){return D0}var F0=he({},Ao,{key:function(e){if(e.key){var t=$0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ki(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?L0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bc,charCode:function(e){return e.type==="keypress"?ki(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ki(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),z0=at(F0),U0=he({},ya,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qd=at(U0),B0=he({},Ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bc}),W0=at(B0),V0=he({},ws,{propertyName:0,elapsedTime:0,pseudoElement:0}),H0=at(V0),q0=he({},ya,{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}),K0=at(q0),Q0=[9,13,27,32],Sc=en&&"CompositionEvent"in window,Hs=null;en&&"documentMode"in document&&(Hs=document.documentMode);var G0=en&&"TextEvent"in window&&!Hs,Up=en&&(!Sc||Hs&&8<Hs&&11>=Hs),Gd=" ",Yd=!1;function Bp(e,t){switch(e){case"keyup":return Q0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ir=!1;function Y0(e,t){switch(e){case"compositionend":return Wp(t);case"keypress":return t.which!==32?null:(Yd=!0,Gd);case"textInput":return e=t.data,e===Gd&&Yd?null:e;default:return null}}function J0(e,t){if(Ir)return e==="compositionend"||!Sc&&Bp(e,t)?(e=zp(),Ei=xc=Rn=null,Ir=!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 Up&&t.locale!=="ko"?null:t.data;default:return null}}var X0={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 Jd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!X0[e.type]:t==="textarea"}function Vp(e,t,n,r){_p(r),t=Wi(t,"onChange"),0<t.length&&(n=new _c("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qs=null,uo=null;function Z0(e){tm(e,0)}function wa(e){var t=Mr(e);if(pp(t))return e}function ew(e,t){if(e==="change")return t}var Hp=!1;if(en){var fl;if(en){var hl="oninput"in document;if(!hl){var Xd=document.createElement("div");Xd.setAttribute("oninput","return;
37"),hl=typeof Xd.oninput=="function"}fl=hl}else fl=!1;Hp=fl&&(!document.documentMode||9<document.documentMode)}function Zd(){qs&&(qs.detachEvent("onpropertychange",qp),uo=qs=null)}function qp(e){if(e.propertyName==="value"&&wa(uo)){var t=[];Vp(t,uo,e,mc(e)),kp(Z0,t)}}function tw(e,t,n){e==="focusin"?(Zd(),qs=t,uo=n,qs.attachEvent("onpropertychange",qp)):e==="focusout"&&Zd()}function nw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wa(uo)}function rw(e,t){if(e==="click")return wa(t)}function sw(e,t){if(e==="input"||e==="change")return wa(t)}function ow(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:ow;function co(e,t){if(Pt(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 s=n[r];if(!Bl.call(t,s)||!Pt(e[s],t[s]))return!1}return!0}function ef(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tf(e,t){var n=ef(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=ef(n)}}function Kp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qp(){for(var e=window,t=Li();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Li(e.document)}return t}function Ec(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 iw(e){var t=Qp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Kp(n.ownerDocument.documentElement,n)){if(r!==null&&Ec(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=tf(n,o);var i=tf(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 aw=en&&"documentMode"in document&&11>=document.documentMode,$r=null,au=null,Ks=null,lu=!1;function nf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lu||$r==null||$r!==Li(r)||(r=$r,"selectionStart"in r&&Ec(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}),Ks&&co(Ks,r)||(Ks=r,r=Wi(au,"onSelect"),0<r.length&&(t=new _c("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$r)))}function ni(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Lr={animationend:ni("Animation","AnimationEnd"),animationiteration:ni("Animation","AnimationIteration"),animationstart:ni("Animation","AnimationStart"),transitionend:ni("Transition","TransitionEnd")},pl={},Gp={};en&&(Gp=document.createElement("div").style,"AnimationEvent"in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),"TransitionEvent"in window||delete Lr.transitionend.transition);function xa(e){if(pl[e])return pl[e];if(!Lr[e])return e;var t=Lr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gp)return pl[e]=t[n];return e}var Yp=xa("animationend"),Jp=xa("animationiteration"),Xp=xa("animationstart"),Zp=xa("transitionend"),em=new Map,rf="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 qn(e,t){em.set(e,t),wr(t,[e])}for(var ml=0;ml<rf.length;ml++){var gl=rf[ml],lw=gl.toLowerCase(),uw=gl[0].toUpperCase()+gl.slice(1);qn(lw,"on"+uw)}qn(Yp,"onAnimationEnd");qn(Jp,"onAnimationIteration");qn(Xp,"onAnimationStart");qn("dblclick","onDoubleClick");qn("focusin","onFocus");qn("focusout","onBlur");qn(Zp,"onTransitionEnd");ls("onMouseEnter",["mouseout","mouseover"]);ls("onMouseLeave",["mouseout","mouseover"]);ls("onPointerEnter",["pointerout","pointerover"]);ls("onPointerLeave",["pointerout","pointerover"]);wr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 3,705 bytes, line 37
37wr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wr("onBeforeInput",["compositionend","keypress","textInput","paste"]);wr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Us="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(" "),cw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Us));function sf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,l0(r,t,void 0,e),e.currentTarget=null}function tm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;sf(s,a,u),o=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;sf(s,a,u),o=l}}}if(Di)throw e=ru,Di=!1,ru=null,e}function ae(e,t){var n=t[hu];n===void 0&&(n=t[hu]=new Set);var r=e+"__bubble";n.has(r)||(nm(t,e,2,!1),n.add(r))}function vl(e,t,n){var r=0;t&&(r|=4),nm(n,e,r,t)}var ri="_reactListening"+Math.random().toString(36).slice(2);function fo(e){if(!e[ri]){e[ri]=!0,up.forEach(function(n){n!=="selectionchange"&&(cw.has(n)||vl(n,!1,e),vl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ri]||(t[ri]=!0,vl("selectionchange",!1,t))}}function nm(e,t,n,r){switch(Fp(t)){case 1:var s=E0;break;case 4:s=k0;break;default:s=wc}n=s.bind(null,t,n,e),s=void 0,!nu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function yl(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=nr(a),i===null)return;if(l=i.tag,l===5||l===6){r=o=i;continue e}a=a.parentNode}}r=r.return}kp(function(){var u=o,c=mc(n),f=[];e:{var d=em.get(e);if(d!==void 0){var m=_c,y=e;switch(e){case"keypress":if(ki(n)===0)break e;case"keydown":case"keyup":m=z0;break;case"focusin":y="focus",m=dl;break;case"focusout":y="blur",m=dl;break;case"beforeblur":case"afterblur":m=dl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=qd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=T0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=W0;break;case Yp:case Jp:case Xp:m=A0;break;case Zp:m=H0;break;case"scroll":m=C0;break;case"wheel":m=K0;break;case"copy":case"cut":case"paste":m=N0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Qd}var v=(t&4)!==0,w=!v&&e==="scroll",p=v?d!==null?d+"Capture":null:d;v=[];for(var h=u,g;h!==null;){g=h;var _=g.stateNode;if(g.tag===5&&_!==null&&(g=_,p!==null&&(_=oo(h,p),_!=null&&v.push(ho(
vendor: 5,500 bytes, lines 37-38
37h,_,g)))),w)break;h=h.return}0<v.length&&(d=new m(d,y,null,n,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",d&&n!==eu&&(y=n.relatedTarget||n.fromElement)&&(nr(y)||y[tn]))break e;if((m||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=u,y=y?nr(y):null,y!==null&&(w=xr(y),y!==w||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=u),m!==y)){if(v=qd,_="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=Qd,_="onPointerLeave",p="onPointerEnter",h="pointer"),w=m==null?d:Mr(m),g=y==null?d:Mr(y),d=new v(_,h+"leave",m,n,c),d.target=w,d.relatedTarget=g,_=null,nr(c)===u&&(v=new v(p,h+"enter",y,n,c),v.target=g,v.relatedTarget=w,_=v),w=_,m&&y)t:{for(v=m,p=y,h=0,g=v;g;g=Cr(g))h++;for(g=0,_=p;_;_=Cr(_))g++;for(;0<h-g;)v=Cr(v),h--;for(;0<g-h;)p=Cr(p),g--;for(;h--;){if(v===p||p!==null&&v===p.alternate)break t;v=Cr(v),p=Cr(p)}v=null}else v=null;m!==null&&of(f,d,m,v,!1),y!==null&&w!==null&&of(f,w,y,v,!0)}}e:{if(d=u?Mr(u):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var S=ew;else if(Jd(d))if(Hp)S=sw;else{S=nw;var E=tw}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(S=rw);if(S&&(S=S(e,u))){Vp(f,S,n,c);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&Gl(d,"number",d.value)}switch(E=u?Mr(u):window,e){case"focusin":(Jd(E)||E.contentEditable==="true")&&($r=E,au=u,Ks=null);break;case"focusout":Ks=au=$r=null;break;case"mousedown":lu=!0;break;case"contextmenu":case"mouseup":case"dragend":lu=!1,nf(f,n,c);break;case"selectionchange":if(aw)break;case"keydown":case"keyup":nf(f,n,c)}var C;if(Sc)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Ir?Bp(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Up&&n.locale!=="ko"&&(Ir||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ir&&(C=zp()):(Rn=c,xc="value"in Rn?Rn.value:Rn.textContent,Ir=!0)),E=Wi(u,T),0<E.length&&(T=new Kd(T,e,null,n,c),f.push({event:T,listeners:E}),C?T.data=C:(C=Wp(n),C!==null&&(T.data=C)))),(C=G0?Y0(e,n):J0(e,n))&&(u=Wi(u,"onBeforeInput"),0<u.length&&(c=new Kd("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=C))}tm(f,t)})}function ho(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wi(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=oo(e,n),o!=null&&r.unshift(ho(e,o,s)),o=oo(e,t),o!=null&&r.push(ho(e,o,s))),e=e.return}return r}function Cr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function of(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=oo(n,o),l!=null&&i.unshift(ho(n,l,a))):s||(l=oo(n,o),l!=null&&i.push(ho(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var dw=/\r\n?/g,fw=/\u0000|\uFFFD/g;function af(e){return(typeof e=="string"?e:""+e).replace(dw,` 38`).replace(fw,"")}function si(e,t,n){if(t=af(t),af(e)!==t&&n)throw Error(R(425))}function Vi(){}var uu=null,cu=null;function du(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 fu=typeof setTimeout=="function"?setTimeout:void 0,hw=typeof clearTimeout=="function"?clearTimeout:void 0,lf=typeof Promise=="function"?Promise:void 0,pw=typeof queueMicrotask=="function"?queueMicrotask:typeof lf<"u"?function(e){return lf.resolve(null).then(e).catch(mw)}:fu;function mw(e){setTimeout(function(){throw e})}function wl(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),lo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);lo(t)}function $n(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 uf(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 xs=Math.random().toString(36).slice(2),Ft="__reactFiber$"+xs,po="__reactProps$"+xs,tn="__reactContainer$"+xs,hu="__reactEvents$"+xs,gw="__reactListeners$"+xs,vw="__reactHandles$"+xs;function nr(e){var t=e[Ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tn]||n[Ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=uf(e);e!==null;){if(n=e[Ft])return n;e=uf(e)}return t}e=n,n=e.parentNode}return null}function jo(e){return e=e[Ft]||e[tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function _a(e){return e[po]||null}var pu=[],Dr=-1;function Kn(e){return{current:e}}function le(e){0>Dr||(e.current=pu[Dr],pu[Dr]=null,Dr--)}function se(e,t){Dr++,pu[Dr]=e.current,e.current=t}var Un={},Ie=Kn(Un),Ke=Kn(!1),fr=Un;function us(e,t){var n=e.type.contextTypes;if(!n)return Un;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;
vendor: 14,750 bytes, line 38
38for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Qe(e){return e=e.childContextTypes,e!=null}function Hi(){le(Ke),le(Ie)}function cf(e,t,n){if(Ie.current!==Un)throw Error(R(168));se(Ie,t),se(Ke,n)}function rm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(R(108,t0(e)||"Unknown",s));return he({},n,r)}function qi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Un,fr=Ie.current,se(Ie,e),se(Ke,Ke.current),!0}function df(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=rm(e,t,fr),r.__reactInternalMemoizedMergedChildContext=e,le(Ke),le(Ie),se(Ie,e)):le(Ke),se(Ke,n)}var Yt=null,ba=!1,xl=!1;function sm(e){Yt===null?Yt=[e]:Yt.push(e)}function yw(e){ba=!0,sm(e)}function Qn(){if(!xl&&Yt!==null){xl=!0;var e=0,t=te;try{var n=Yt;for(te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yt=null,ba=!1}catch(s){throw Yt!==null&&(Yt=Yt.slice(e+1)),Rp(gc,Qn),s}finally{te=t,xl=!1}}return null}var Fr=[],zr=0,Ki=null,Qi=0,ut=[],ct=0,hr=null,Jt=1,Xt="";function Xn(e,t){Fr[zr++]=Qi,Fr[zr++]=Ki,Ki=e,Qi=t}function om(e,t,n){ut[ct++]=Jt,ut[ct++]=Xt,ut[ct++]=hr,hr=e;var r=Jt;e=Xt;var s=32-kt(r)-1;r&=~(1<<s),n+=1;var o=32-kt(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,Jt=1<<32-kt(t)+s|n<<s|r,Xt=o+e}else Jt=1<<o|n<<s|r,Xt=e}function kc(e){e.return!==null&&(Xn(e,1),om(e,1,0))}function Cc(e){for(;e===Ki;)Ki=Fr[--zr],Fr[zr]=null,Qi=Fr[--zr],Fr[zr]=null;for(;e===hr;)hr=ut[--ct],ut[ct]=null,Xt=ut[--ct],ut[ct]=null,Jt=ut[--ct],ut[ct]=null}var rt=null,nt=null,ue=!1,Et=null;function im(e,t){var n=dt(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 ff(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rt=e,nt=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,nt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=hr!==null?{id:Jt,overflow:Xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,nt=null,!0):!1;default:return!1}}function mu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gu(e){if(ue){var t=nt;if(t){var n=t;if(!ff(e,t)){if(mu(e))throw Error(R(418));t=$n(n.nextSibling);var r=rt;t&&ff(e,t)?im(r,n):(e.flags=e.flags&-4097|2,ue=!1,rt=e)}}else{if(mu(e))throw Error(R(418));e.flags=e.flags&-4097|2,ue=!1,rt=e}}}function hf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function oi(e){if(e!==rt)return!1;if(!ue)return hf(e),ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!du(e.type,e.memoizedProps)),t&&(t=nt)){if(mu(e))throw am(),Error(R(418));for(;t;)im(e,t),t=$n(t.nextSibling)}if(hf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){nt=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nt=null}}else nt=rt?$n(e.stateNode.nextSibling):null;return!0}function am(){for(var e=nt;e;)e=$n(e.nextSibling)}function cs(){nt=rt=null,ue=!1}function Pc(e){Et===null?Et=[e]:Et.push(e)}var ww=an.ReactCurrentBatchConfig;function js(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function ii(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pf(e){var t=e._init;return t(e._payload)}function lm(e){function t(p,h){if(e){var g=p.deletions;g===null?(p.deletions=[h],p.flags|=16):g.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function s(p,h){return p=Fn(p,h),p.index=0,p.sibling=null,p}function o(p,h,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<h?(p.flags|=2,h):g):(p.flags|=2,h)):(p.flags|=1048576,h)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,h,g,_){return h===null||h.tag!==6?(h=Pl(g,p.mode,_),h.return=p,h):(h=s(h,g),h.return=p,h)}function l(p,h,g,_){var S=g.type;return S===Nr?c(p,h,g.props.children,_,g.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===yn&&pf(S)===h.type)?(_=s(h,g.props),_.ref=js(p,h,g),_.return=p,_):(_=ji(g.type,g.key,g.props,null,p.mode,_),_.ref=js(p,h,g),_.return=p,_)}function u(p,h,g,_){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=Tl(g,p.mode,_),h.return=p,h):(h=s(h,g.children||[]),h.return=p,h)}function c(p,h,g,_,S){return h===null||h.tag!==7?(h=cr(g,p.mode,_,S),h.return=p,h):(h=s(h,g),h.return=p,h)}function f(p,h,g){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Pl(""+h,p.mode,g),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Go:return g=ji(h.type,h.key,h.props,null,p.mode,g),g.ref=js(p,null,h),g.return=p,g;case jr:return h=Tl(h,p.mode,g),h.return=p,h;case yn:var _=h._init;return f(p,_(h._payload),g)}if(Fs(h)||Ps(h))return h=cr(h,p.mode,g,null),h.return=p,h;ii(p,h)}return null}function d(p,h,g,_){var S=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return S!==null?null:a(p,h,""+g,_);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Go:return g.key===S?l(p,h,g,_):null;case jr:return g.key===S?u(p,h,g,_):null;case yn:return S=g._init,d(p,h,S(g._payload),_)}if(Fs(g)||Ps(g))return S!==null?null:c(p,h,g,_,null);ii(p,g)}return null}function m(p,h,g,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return p=p.get(g)||null,a(h,p,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Go:return p=p.get(_.key===null?g:_.key)||null,l(h,p,_,S);case jr:return p=p.get(_.key===null?g:_.key)||null,u(h,p,_,S);case yn:var E=_._init;return m(p,h,g,E(_._payload),S)}if(Fs(_)||Ps(_))return p=p.get(g)||null,c(h,p,_,S,null);ii(h,_)}return null}function y(p,h,g,_){for(var S=null,E=null,C=h,T=h=0,L=null;C!==null&&T<g.length;T++){C.index>T?(L=C,C=null):L=C.sibling;var j=d(p,C,g[T],_);if(j===null){C===null&&(C=L);break}e&&C&&j.alternate===null&&t(p,C),h=o(j,h,T),E===null?S=j:E.sibling=j,E=j,C=L}if(T===g.length)return n(p,C),ue&&Xn(p,T),S;if(C===null){for(;T<g.length;T++)C=f(p,g[T],_),C!==null&&(h=o(C,h,T),E===null?S=C:E.sibling=C,E=C);return ue&&Xn(p,T),S}for(C=r(p,C);T<g.length;T++)L=m(C,p,T,g[T],_),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?T:L.key),h=o(L,h,T),E===null?S=L:E.sibling=L,E=L);return e&&C.forEach(function(z){return t(p,z)}),ue&&Xn(p,T),S}function v(p,h,g,_){var S=Ps(g);if(typeof S!="function")throw Error(R(150));if(g=S.call(g),g==null)throw Error(R(151));for(var E=S=null,C=h,T=h=0,L=null,j=g.next();C!==null&&!j.done;T++,j=g.next()){C.index>T?(L=C,C=null):L=C.sibling;var z=d(p,C,j.value,_);if(z===null){C===null&&(C=L);break}e&&C&&z.alternate===null&&t(p,C),h=o(z,h,T),E===null?S=z:E.sibling=z,E=z,C=L}if(j.done)return n(p,C),ue&&Xn(p,T),S;if(C===null){for(;!j.done;T++,j=g.next())j=f(p,j.value,_),j!==null&&(h=o(j,h,T),E===null?S=j:E.sibling=j,E=j);return ue&&Xn(p,T),S}for(C=r(p,C);!j.done;T++,j=g.next())j=m(C,p,T,j.value,_),j!==null&&(e&&j.alternate!==null&&C.delete(j.key===null?T:j.key),h=o(j,h,T),E===null?S=j:E.sibling=j,E=j);return e&&C.forEach(function(M){return t(p,M)}),ue&&Xn(p,T),S}function w(p,h,g,_){if(typeof g=="object"&&g!==null&&g.type===Nr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Go:e:{for(var S=g.key,E=h;E!==null;){if(E.key===S){if(S=g.type,S===Nr){if(E.tag===7){n(p,E.sibling),h=s(E,g.props.children),h.return=p,p=h;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===yn&&pf(S)===E.type){n(p,E.sibling),h=s(E,g.props),h.ref=js(p,E,g),h.return=p,p=h;break e}n(p,E);break}else t(p,E);E=E.sibling}g.type===Nr?(h=cr(g.props.children,p.mode,_,g.key),h.return=p,p=h):(_=ji(g.type,g.key,g.props,null,p.mode,_),_.ref=js(p,h,g),_.return=p,p=_)}return i(p);case jr:e:{for(E=g.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(p,h.sibling),h=s(h,g.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Tl(g,p.mode,_),h.return=p,p=h}return i(p);case yn:return E=g._init,w(p,h,E(g._payload),_)}if(Fs(g))return y(p,h,g,_);if(Ps(g))return v(p,h,g,_);ii(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(p,h.sibling),h=s(h,g),h.return=p,p=h):(n(p,h),h=Pl(g,p.mode,_),h.return=p,p=h),i(p)):n(p,h)}return w}var ds=lm(!0),um=lm(!1),Gi=Kn(null),Yi=null,Ur=null,Tc=null;function Rc(){Tc=Ur=Yi=null}function Oc(e){var t=Gi.current;le(Gi),e._currentValue=t}function vu(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 Qr(e,t){Yi=e,Tc=Ur=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function pt(e){var t=e._currentValue;if(Tc!==e)if(e={context:e,memoizedValue:t,next:null},Ur===null){if(Yi===null)throw Error(R(308));Ur=e,Yi.dependencies={lanes:0,firstContext:e}}else Ur=Ur.next=e;return t}var rr=null;function Ac(e){rr===null?rr=[e]:rr.push(e)}function cm(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Ac(t)):(n.next=s.next,s.next=n),t.interleaved=n,nn(e,r)}function nn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var wn=!1;function jc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dm(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 Zt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,nn(e,n)}return s=r.interleaved,s===null?(t.next=t,Ac(r)):(t.next=s.next,s.next=t),r.interleaved=t,nn(e,n)}function Ci(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,vc(e,n)}}function mf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,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 Ji(e,t,n,r){var s=e.updateQueue;wn=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=s.baseState;i=0,c=u=l=null,a=o;do{var d=a.lane,m=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(d=t,m=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(m,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,d=typeof y=="function"?y.call(m,f,d):y,d==null)break e;f=he({},f,d);break e;case 2:wn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=s.effects,d===null?s.effects=[a]:d.push(a))}else m={eventTime:m,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=f):c=c.next=m,i|=d;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;d=a,a=d.next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}while(!0);if(c===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);mr|=i,e.lanes=i,e.memoizedState=f}}function gf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(R(191,s));s.call(r)}}}var No={},Ut=Kn(No),mo=Kn(No),go=Kn(No);function sr(e){if(e===No)throw Error(R(174));return e}function Nc(e,t){switch(se(go,t),se(mo,e),se(Ut,No),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jl(t,e)}le(Ut),se(Ut,t)}function fs(){le(Ut),le(mo),le(go)}function fm(e){sr(go.current);var t=sr(Ut.current),n=Jl(t,e.type);t!==n&&(se(mo,e),se(Ut,n))}function Ic(e){mo.current===e&&(le(Ut),le(mo))}var de=Kn(0);function Xi(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 _l=[];function $c(){for(var e=0;e<_l.length;e++)_l[e]._workInProgressVersionPrimary=null;_l.length=0}var Pi=an.ReactCurrentDispatcher,bl=an.ReactCurrentBatchConfig,pr=0,fe=null,ye=null,be=null,Zi=!1,Qs=!1,vo=0,xw=0;function Re(){throw Error(R(321))}function Lc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pt(e[n],t[n]))return!1;return!0}function Mc(e,t,n,r,s,o){if(pr=o,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Pi.current=e===null||e.memoizedState===null?Ew:kw,e=n(r,s),Qs){o=0;
vendor: 4,859 bytes, line 38
38do{if(Qs=!1,vo=0,25<=o)throw Error(R(301));o+=1,be=ye=null,t.updateQueue=null,Pi.current=Cw,e=n(r,s)}while(Qs)}if(Pi.current=ea,t=ye!==null&&ye.next!==null,pr=0,be=ye=fe=null,Zi=!1,t)throw Error(R(300));return e}function Dc(){var e=vo!==0;return vo=0,e}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return be===null?fe.memoizedState=be=e:be=be.next=e,be}function mt(){if(ye===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=be===null?fe.memoizedState:be.next;if(t!==null)be=t,ye=e;else{if(e===null)throw Error(R(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},be===null?fe.memoizedState=be=e:be=be.next=e}return be}function yo(e,t){return typeof t=="function"?t(e):t}function Sl(e){var t=mt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=ye,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var a=i=null,l=null,u=o;do{var c=u.lane;if((pr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,fe.lanes|=c,mr|=c}u=u.next}while(u!==null&&u!==o);l===null?i=r:l.next=a,Pt(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,fe.lanes|=o,mr|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function El(e){var t=mt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Pt(o,t.memoizedState)||(qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hm(){}function pm(e,t){var n=fe,r=mt(),s=t(),o=!Pt(r.memoizedState,s);if(o&&(r.memoizedState=s,qe=!0),r=r.queue,Fc(vm.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||be!==null&&be.memoizedState.tag&1){if(n.flags|=2048,wo(9,gm.bind(null,n,r,s,t),void 0,null),Se===null)throw Error(R(349));pr&30||mm(n,t,s)}return s}function mm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gm(e,t,n,r){t.value=n,t.getSnapshot=r,ym(t)&&wm(e)}function vm(e,t,n){return n(function(){ym(t)&&wm(e)})}function ym(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pt(e,n)}catch{return!0}}function wm(e){var t=nn(e,1);t!==null&&Ct(t,e,1,-1)}function vf(e){var t=$t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yo,lastRenderedState:e},t.queue=e,e=e.dispatch=Sw.bind(null,fe,e),[t.memoizedState,e]}function wo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function xm(){return mt().memoizedState}function Ti(e,t,n,r){var s=$t();fe.flags|=e,s.memoizedState=wo(1|t,n,void 0,r===void 0?null:r)}function Sa(e,t,n,r){var s=mt();r=r===void 0?null:r;var o=void 0;if(ye!==null){var i=ye.memoizedState;if(o=i.destroy,r!==null&&Lc(r,i.deps)){s.memoizedState=wo(t,n,o,r);return}}fe.flags|=e,s.memoizedState=wo(1|t,n,o,r)}function yf(e,t){return Ti(8390656,8,e,t)}function Fc(e,t){return Sa(2048,8,e,t)}function _m(e,t){return Sa(4,2,e,t)}function bm(e,t){return Sa(4,4,e,t)}function Sm(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 Em(e,t,n){return n=n!=null?n.concat([e]):null,Sa(4,4,Sm.bind(null,t,e),n)}function zc(){}function km(e,t){var n=mt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Cm(e,t){var n=mt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pm(e,t,n){return pr&21?(Pt(n,t)||(n=jp(),fe.lanes|=n,mr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function _w(e,t){var n=te;te=n!==0&&4>n?n:4,e(!0);var r=bl.transition;bl.transition={};try{e(!1),t()}finally{te=n,bl.transition=r}}function Tm(){return mt().memoizedState}function bw(e,t,n){var r=Dn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Rm(e))Om(t,n);else if(n=cm(e,t,n,r),n!==null){var s=ze();
vendor: 7,281 bytes, lines 38-40
38Ct(n,e,r,s),Am(n,t,r)}}function Sw(e,t,n){var r=Dn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rm(e))Om(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(s.hasEagerState=!0,s.eagerState=a,Pt(a,i)){var l=t.interleaved;l===null?(s.next=s,Ac(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=cm(e,t,s,r),n!==null&&(s=ze(),Ct(n,e,r,s),Am(n,t,r))}}function Rm(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Om(e,t){Qs=Zi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Am(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vc(e,n)}}var ea={readContext:pt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},Ew={readContext:pt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:yf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ti(4194308,4,Sm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ti(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bw.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:vf,useDebugValue:zc,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=vf(!1),t=e[0];return e=_w.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,s=$t();if(ue){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Se===null)throw Error(R(349));pr&30||mm(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,yf(vm.bind(null,r,o,e),[e]),r.flags|=2048,wo(9,gm.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$t(),t=Se.identifierPrefix;if(ue){var n=Xt,r=Jt;n=(r&~(1<<32-kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=xw++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kw={readContext:pt,useCallback:km,useContext:pt,useEffect:Fc,useImperativeHandle:Em,useInsertionEffect:_m,useLayoutEffect:bm,useMemo:Cm,useReducer:Sl,useRef:xm,useState:function(){return Sl(yo)},useDebugValue:zc,useDeferredValue:function(e){var t=mt();return Pm(t,ye.memoizedState,e)},useTransition:function(){var e=Sl(yo)[0],t=mt().memoizedState;return[e,t]},useMutableSource:hm,useSyncExternalStore:pm,useId:Tm,unstable_isNewReconciler:!1},Cw={readContext:pt,useCallback:km,useContext:pt,useEffect:Fc,useImperativeHandle:Em,useInsertionEffect:_m,useLayoutEffect:bm,useMemo:Cm,useReducer:El,useRef:xm,useState:function(){return El(yo)},useDebugValue:zc,useDeferredValue:function(e){var t=mt();return ye===null?t.memoizedState=e:Pm(t,ye.memoizedState,e)},useTransition:function(){var e=El(yo)[0],t=mt().memoizedState;return[e,t]},useMutableSource:hm,useSyncExternalStore:pm,useId:Tm,unstable_isNewReconciler:!1};function wt(e,t){if(e&&e.defaultProps){t=he({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function yu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:he({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ea={isMounted:function(e){return(e=e._reactInternals)?xr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ze(),s=Dn(e),o=Zt(r,s);o.payload=t,n!=null&&(o.callback=n),t=Ln(e,o,s),t!==null&&(Ct(t,e,s,r),Ci(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ze(),s=Dn(e),o=Zt(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ln(e,o,s),t!==null&&(Ct(t,e,s,r),Ci(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ze(),r=Dn(e),s=Zt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Ln(e,s,r),t!==null&&(Ct(t,e,r,n),Ci(t,e,r))}};function wf(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!co(n,r)||!co(s,o):!0}function jm(e,t,n){var r=!1,s=Un,o=t.contextType;return typeof o=="object"&&o!==null?o=pt(o):(s=Qe(t)?fr:Ie.current,r=t.contextTypes,o=(r=r!=null)?us(e,s):Un),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ea,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function xf(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&&Ea.enqueueReplaceState(t,t.state,null)}function wu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},jc(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=pt(o):(o=Qe(t)?fr:Ie.current,s.context=us(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(yu(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Ea.enqueueReplaceState(s,s.state,null),Ji(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function hs(e,t){try{var n="",r=t;do n+=e0(r),r=r.return;while(r);var s=n}catch(o){s=` 39Error generating stack: `+o.message+` 40`+o.stack}return{value:e,source:t,stack:s,digest:null}}function kl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function xu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pw=typeof WeakMap=="function"?WeakMap:Map;function Nm(e,t,n){n=Zt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){na||(na=!0,Ou=r),xu(e,t)},n}function Im(e,t,n){n=Zt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){xu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){xu(e,t),typeof r!="function"&&(Mn===null?Mn=new Set([this]):Mn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function _f(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pw;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Uw.bind(null,e,t,n),t.then(e,e))}function bf(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}
vendor: 10,662 bytes, line 40
40function Sf(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Zt(-1,1),t.tag=2,Ln(n,t,1))),n.lanes|=1),e)}var Tw=an.ReactCurrentOwner,qe=!1;function De(e,t,n,r){t.child=e===null?um(t,null,n,r):ds(t,e.child,n,r)}function Ef(e,t,n,r,s){n=n.render;var o=t.ref;return Qr(t,s),r=Mc(e,t,n,r,o,s),n=Dc(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rn(e,t,s)):(ue&&n&&kc(t),t.flags|=1,De(e,t,r,s),t.child)}function kf(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!Qc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$m(e,t,o,r,s)):(e=ji(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:co,n(i,r)&&e.ref===t.ref)return rn(e,t,s)}return t.flags|=1,e=Fn(o,r),e.ref=t.ref,e.return=t,t.child=e}function $m(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(co(o,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,rn(e,t,s)}return _u(e,t,n,r,s)}function Lm(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},se(Wr,et),et|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,se(Wr,et),et|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,se(Wr,et),et|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,se(Wr,et),et|=r;return De(e,t,s,n),t.child}function Mm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _u(e,t,n,r,s){var o=Qe(n)?fr:Ie.current;return o=us(t,o),Qr(t,s),n=Mc(e,t,n,r,o,s),r=Dc(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rn(e,t,s)):(ue&&r&&kc(t),t.flags|=1,De(e,t,n,s),t.child)}function Cf(e,t,n,r,s){if(Qe(n)){var o=!0;qi(t)}else o=!1;if(Qr(t,s),t.stateNode===null)Ri(e,t),jm(t,n,r),wu(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=pt(u):(u=Qe(n)?fr:Ie.current,u=us(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&xf(t,i,r,u),wn=!1;var d=t.memoizedState;i.state=d,Ji(t,r,i,s),l=t.memoizedState,a!==r||d!==l||Ke.current||wn?(typeof c=="function"&&(yu(t,n,c,r),l=t.memoizedState),(a=wn||wf(t,n,a,r,d,l,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,dm(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:wt(t.type,a),i.props=u,f=t.pendingProps,d=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=pt(l):(l=Qe(n)?fr:Ie.current,l=us(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||d!==l)&&xf(t,i,r,l),wn=!1,d=t.memoizedState,i.state=d,Ji(t,r,i,s);var y=t.memoizedState;a!==f||d!==y||Ke.current||wn?(typeof m=="function"&&(yu(t,n,m,r),y=t.memoizedState),(u=wn||wf(t,n,u,r,d,y,l)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return bu(e,t,n,r,o,s)}function bu(e,t,n,r,s,o){Mm(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&df(t,n,!1),rn(e,t,o);r=t.stateNode,Tw.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ds(t,e.child,null,o),t.child=ds(t,null,a,o)):De(e,t,a,o),t.memoizedState=r.state,s&&df(t,n,!0),t.child}function Dm(e){var t=e.stateNode;t.pendingContext?cf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cf(e,t.context,!1),Nc(e,t.containerInfo)}function Pf(e,t,n,r,s){return cs(),Pc(s),t.flags|=256,De(e,t,n,r),t.child}var Su={dehydrated:null,treeContext:null,retryLane:0};function Eu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fm(e,t,n){var r=t.pendingProps,s=de.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),se(de,s&1),e===null)return gu(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):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Pa(i,r,0,null),e=cr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Eu(n),t.memoizedState=Su,e):Uc(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Rw(e,t,i,r,a,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Fn(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=Fn(a,o):(o=cr(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Eu(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Su,r}return o=e.child,e=o.sibling,r=Fn(o,{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 Uc(e,t){return t=Pa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ai(e,t,n,r){return r!==null&&Pc(r),ds(t,e.child,null,n),e=Uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rw(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=kl(Error(R(422))),ai(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=Pa({mode:"visible",children:r.children},s,0,null),o=cr(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ds(t,e.child,null,i),t.child.memoizedState=Eu(i),t.memoizedState=Su,o);if(!(t.mode&1))return ai(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(R(419)),r=kl(o,r,void 0),ai(e,t,i,r)}if(a=(i&e.childLanes)!==0,qe||a){if(r=Se,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,nn(e,s),Ct(r,e,s,-1))}return Kc(),r=kl(Error(R(421))),ai(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Bw.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,nt=$n(s.nextSibling),rt=t,ue=!0,Et=null,e!==null&&(ut[ct++]=Jt,ut[ct++]=Xt,ut[ct++]=hr,Jt=e.id,Xt=e.overflow,hr=t),t=Uc(t,r.children),t.flags|=4096,t)}function Tf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vu(e.return,t,n)}function Cl(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function zm(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(De(e,t,r.children,n),r=de.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tf(e,n,t);else if(e.tag===19)Tf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(se(de,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Xi(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Cl(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Xi(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Cl(t,!0,n,null,o);break;case"together":Cl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ri(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ow(e,t,n){switch(t.tag){case 3:Dm(t),cs();break;case 5:fm(t);break;case 1:Qe(t.type)&&qi(t);break;case 4:Nc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;se(Gi,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(se(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?Fm(e,t,n):(se(de,de.current&1),e=rn(e,t,n
vendor: 4,145 bytes, line 40
40),e!==null?e.sibling:null);se(de,de.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return zm(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),se(de,de.current),r)break;return null;case 22:case 23:return t.lanes=0,Lm(e,t,n)}return rn(e,t,n)}var Um,ku,Bm,Wm;Um=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}};ku=function(){};Bm=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,sr(Ut.current);var o=null;switch(n){case"input":s=Kl(e,s),r=Kl(e,r),o=[];break;case"select":s=he({},s,{value:void 0}),r=he({},r,{value:void 0}),o=[];break;case"textarea":s=Yl(e,s),r=Yl(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Vi)}Xl(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ro.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ro.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ae("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Wm=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ns(e,t){if(!ue)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 Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Aw(e,t,n){var r=t.pendingProps;switch(Cc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Qe(t.type)&&Hi(),Oe(t),null;case 3:return r=t.stateNode,fs(),le(Ke),le(Ie),$c(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(oi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Et!==null&&(Nu(Et),Et=null))),ku(e,t),Oe(t),null;case 5:Ic(t);var s=sr(go.current);if(n=t.type,e!==null&&t.stateNode!=null)Bm(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return Oe(t),null}if(e=sr(Ut.current),oi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ft]=t,r[po]=o,e=(t.mode&1)!==0,n){case"dialog":ae("cancel",r),ae("close",r);break;case"iframe":case"object":case"embed":ae("load",r);break;case"video":case"audio":for(s=0;s<Us.length;s++)ae(Us[s],r);break;case"source":ae("error",r);break;case"img":case"image":case"link":ae("error",r),ae("load",r);break;case"details":ae("toggle",r);break;case"input":Ld(r,o),ae("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ae("invalid",r);break;case"textarea":Dd(r,o),ae("invalid",r)}Xl(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];
vendor: 32,404 bytes, line 40
40i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&si(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&si(r.textContent,a,e),s=["children",""+a]):ro.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&ae("scroll",r)}switch(n){case"input":Yo(r),Md(r,o,!0);break;case"textarea":Yo(r),Fd(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Vi)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ft]=t,e[po]=r,Um(e,t,!1,!1),t.stateNode=e;e:{switch(i=Zl(n,r),n){case"dialog":ae("cancel",e),ae("close",e),s=r;break;case"iframe":case"object":case"embed":ae("load",e),s=r;break;case"video":case"audio":for(s=0;s<Us.length;s++)ae(Us[s],e);s=r;break;case"source":ae("error",e),s=r;break;case"img":case"image":case"link":ae("error",e),ae("load",e),s=r;break;case"details":ae("toggle",e),s=r;break;case"input":Ld(e,r),s=Kl(e,r),ae("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=he({},r,{value:void 0}),ae("invalid",e);break;case"textarea":Dd(e,r),s=Yl(e,r),ae("invalid",e);break;default:s=r}Xl(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?xp(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&yp(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&so(e,l):typeof l=="number"&&so(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ro.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ae("scroll",e):l!=null&&dc(e,o,l,i))}switch(n){case"input":Yo(e),Md(e,r,!1);break;case"textarea":Yo(e),Fd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+zn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Vr(e,!!r.multiple,o,!1):r.defaultValue!=null&&Vr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Vi)}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 Oe(t),null;case 6:if(e&&t.stateNode!=null)Wm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=sr(go.current),sr(Ut.current),oi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ft]=t,(o=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:si(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&si(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ft]=t,t.stateNode=r}return Oe(t),null;case 13:if(le(de),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ue&&nt!==null&&t.mode&1&&!(t.flags&128))am(),cs(),t.flags|=98560,o=!1;else if(o=oi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(R(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(R(317));o[Ft]=t}else cs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oe(t),o=!1}else Et!==null&&(Nu(Et),Et=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?xe===0&&(xe=3):Kc())),t.updateQueue!==null&&(t.flags|=4),Oe(t),null);case 4:return fs(),ku(e,t),e===null&&fo(t.stateNode.containerInfo),Oe(t),null;case 10:return Oc(t.type._context),Oe(t),null;case 17:return Qe(t.type)&&Hi(),Oe(t),null;case 19:if(le(de),o=t.memoizedState,o===null)return Oe(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)Ns(o,!1);else{if(xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Xi(e),i!==null){for(t.flags|=128,Ns(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return se(de,de.current&1|2),t.child}e=e.sibling}o.tail!==null&&ge()>ps&&(t.flags|=128,r=!0,Ns(o,!1),t.lanes=4194304)}else{if(!r)if(e=Xi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ns(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!ue)return Oe(t),null}else 2*ge()-o.renderingStartTime>ps&&n!==1073741824&&(t.flags|=128,r=!0,Ns(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ge(),t.sibling=null,n=de.current,se(de,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return qc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?et&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function jw(e,t){switch(Cc(t),t.tag){case 1:return Qe(t.type)&&Hi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fs(),le(Ke),le(Ie),$c(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ic(t),null;case 13:if(le(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(de),null;case 4:return fs(),null;case 10:return Oc(t.type._context),null;case 22:case 23:return qc(),null;case 24:return null;default:return null}}var li=!1,Ne=!1,Nw=typeof WeakSet=="function"?WeakSet:Set,I=null;function Br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Cu(e,t,n){try{n()}catch(r){me(e,t,r)}}var Rf=!1;function Iw(e,t){if(uu=Ui,e=Qp(),Ec(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==n||s!==0&&f.nodeType!==3||(a=i+s),f!==o||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++u===s&&(a=i),d===o&&++c===r&&(l=i),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(cu={focusedElem:e,selectionRange:n},Ui=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,w=y.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:wt(t.type,v),w);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(_){me(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=Rf,Rf=!1,y}function Gs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&Cu(t,n,o)}s=s.next}while(s!==r)}}function ka(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 Pu(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 Vm(e){var t=e.alternate;t!==null&&(e.alternate=null,Vm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[po],delete t[hu],delete t[gw],delete t[vw])),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 Hm(e){return e.tag===5||e.tag===3||e.tag===4}function Of(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hm(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 Tu(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=Vi));else if(r!==4&&(e=e.child,e!==null))for(Tu(e,t,n),e=e.sibling;e!==null;)Tu(e,t,n),e=e.sibling}function Ru(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(Ru(e,t,n),e=e.sibling;e!==null;)Ru(e,t,n),e=e.sibling}var ke=null,bt=!1;function hn(e,t,n){for(n=n.child;n!==null;)qm(e,t,n),n=n.sibling}function qm(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(va,n)}catch{}switch(n.tag){case 5:Ne||Br(n,t);case 6:var r=ke,s=bt;ke=null,hn(e,t,n),ke=r,bt=s,ke!==null&&(bt?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(bt?(e=ke,n=n.stateNode,e.nodeType===8?wl(e.parentNode,n):e.nodeType===1&&wl(e,n),lo(e)):wl(ke,n.stateNode));break;case 4:r=ke,s=bt,ke=n.stateNode.containerInfo,bt=!0,hn(e,t,n),ke=r,bt=s;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Cu(n,t,i),s=s.next}while(s!==r)}hn(e,t,n);break;case 1:if(!Ne&&(Br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){me(n,t,a)}hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,hn(e,t,n),Ne=r):hn(e,t,n);break;default:hn(e,t,n)}}function Af(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Nw),t.forEach(function(r){var s=Ww.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:ke=a.stateNode,bt=!1;break e;case 3:ke=a.stateNode.containerInfo,bt=!0;break e;case 4:ke=a.stateNode.containerInfo,bt=!0;break e}a=a.return}if(ke===null)throw Error(R(160));qm(o,i,s),ke=null,bt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){me(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Km(t,e),t=t.sibling}function Km(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vt(t,e),Nt(e),r&4){try{Gs(3,e,e.return),ka(3,e)}catch(v){me(e,e.return,v)}try{Gs(5,e,e.return)}catch(v){me(e,e.return,v)}}break;case 1:vt(t,e),Nt(e),r&512&&n!==null&&Br(n,n.return);break;case 5:if(vt(t,e),Nt(e),r&512&&n!==null&&Br(n,n.return),e.flags&32){var s=e.stateNode;try{so(s,"")}catch(v){me(e,e.return,v)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&mp(s,o),Zl(a,i);var u=Zl(a,o);for(i=0;i<l.length;i+=2){var c=l[i],f=l[i+1];c==="style"?xp(s,f):c==="dangerouslySetInnerHTML"?yp(s,f):c==="children"?so(s,f):dc(s,c,f,u)}switch(a){case"input":Ql(s,o);break;case"textarea":gp(s,o);break;case"select":var d=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?Vr(s,!!o.multiple,m,!1):d!==!!o.multiple&&(o.defaultValue!=null?Vr(s,!!o.multiple,o.defaultValue,!0):Vr(s,!!o.multiple,o.multiple?[]:"",!1))}s[po]=o}catch(v){me(e,e.return,v)}}break;case 6:if(vt(t,e),Nt(e),r&4){if(e.stateNode===null)throw Error(R(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(v){me(e,e.return,v)}}break;case 3:if(vt(t,e),Nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lo(t.containerInfo)}catch(v){me(e,e.return,v)}break;case 4:vt(t,e),Nt(e);break;case 13:vt(t,e),Nt(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Vc=ge())),r&4&&Af(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ne=(u=Ne)||c,vt(t,e),Ne=u):vt(t,e),Nt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(I=e,c=e.child;c!==null;){for(f=I=c;I!==null;){switch(d=I,m=d.child,d.tag){case 0:case 11:case 14:case 15:Gs(4,d,d.return);break;case 1:Br(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){me(r,n,v)}}break;case 5:Br(d,d.return);break;case 22:if(d.memoizedState!==null){Nf(f);continue}}m!==null?(m.return=d,I=m):Nf(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{s=f.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=wp("display",i))}catch(v){me(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){me(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vt(t,e),Nt(e),r&4&&Af(e);break;case 21:break;default:vt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Hm(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(so(s,""),r.flags&=-33);var o=Of(e);Ru(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Of(e);Tu(e,a,i);break;default:throw Error(R(161))}}catch(l){me(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $w(e,t,n){I=e,Qm(e)}function Qm(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var s=I,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||li;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Ne;a=li;var u=Ne;if(li=i,(Ne=l)&&!u)for(I=s;I!==null;)i=I,l=i.child,i.tag===22&&i.memoizedState!==null?If(s):l!==null?(l.return=i,I=l):If(s);for(;o!==null;)I=o,Qm(o),o=o.sibling;I=s,li=a,Ne=u}jf(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,I=o):jf(e)}}function jf(e){for(;I!==null;){var t=I;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ne||ka(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ne)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:wt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&gf(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}gf(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&lo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Ne||t.flags&512&&Pu(t)}catch(d){me(t,t.return,d)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function Nf(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function If(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ka(4,t)}catch(l){me(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){me(t,s,l)}}var o=t.return;try{Pu(t)}catch(l){me(t,o,l)}break;case 5:var i=t.return;try{Pu(t)}catch(l){me(t,i,l)}}}catch(l){me(t,t.return,l)}if(t===e){I=null;break}var a=t.sibling;if(a!==null){a.return=t.return,I=a;break}I=t.return}}var Lw=Math.ceil,ta=an.ReactCurrentDispatcher,Bc=an.ReactCurrentOwner,ft=an.ReactCurrentBatchConfig,X=0,Se=null,ve=null,Ce=0,et=0,Wr=Kn(0),xe=0,xo=null,mr=0,Ca=0,Wc=0,Ys=null,Ve=null,Vc=0,ps=1/0,Qt=null,na=!1,Ou=null,Mn=null,ui=!1,On=null,ra=0,Js=0,Au=null,Oi=-1,Ai=0;function ze(){return X&6?ge():Oi!==-1?Oi:Oi=ge()}function Dn(e){return e.mode&1?X&2&&Ce!==0?Ce&-Ce:ww.transition!==null?(Ai===0&&(Ai=jp()),Ai):(e=te,e!==0||(e=window.event,e=e===void 0?16:Fp(e.type)),e):1}function Ct(e,t,n,r){if(50<Js)throw Js=0,Au=null,Error(R(185));Oo(e,n,r),(!(X&2)||e!==Se)&&(e===Se&&(!(X&2)&&(Ca|=n),xe===4&&bn(e,Ce)),Ge(e,r),n===1&&X===0&&!(t.mode&1)&&(ps=ge()+500,ba&&Qn()))}function Ge(e,t){var n=e.callbackNode;w0(e,t);var r=zi(e,e===Se?Ce:0);if(r===0)n!==null&&Bd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Bd(n),t===1)e.tag===0?yw($f.bind(null,e)):sm($f.bind(null,e)),pw(function(){!(X&6)&&Qn()}),n=null;else{switch(Np(r)){case 1:n=gc;break;case 4:n=Op;break;case 16:n=Fi;break;case 536870912:n=Ap;break;default:n=Fi}n=ng(n,Gm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Gm(e,t){if(Oi=-1,Ai=0,X&6)throw Error(R(327));var n=e.callbackNode;if(Gr()&&e.callbackNode!==n)return null;var r=zi(e,e===Se?Ce:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=sa(e,r);else{t=r;var s=X;X|=2;var o=Jm();(Se!==e||Ce!==t)&&(Qt=null,ps=ge()+500,ur(e,t));do try{Fw();break}catch(a){Ym(e,a)}while(!0);Rc(),ta.current=o,X=s,ve!==null?t=0:(Se=null,Ce=0,t=xe)}if(t!==0){if(t===2&&(s=su(e),s!==0&&(r=s,t=ju(e,s))),t===1)throw n=xo,ur(e,0),bn(e,r),Ge(e,ge()),n;if(t===6)bn(e,r);else{if(s=e.current.alternate,!(r&30)&&!Mw(s)&&(t=sa(e,r),t===2&&(o=su(e),o!==0&&(r=o,t=ju(e,o))),t===1))throw n=xo,ur(e,0),bn(e,r),Ge(e,ge()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:Zn(e,Ve,Qt);break;case 3:if(bn(e,r),(r&130023424)===r&&(t=Vc+500-ge(),10<t)){if(zi(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ze(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=fu(Zn.bind(null,e,Ve,Qt),t);break}Zn(e,Ve,Qt);break;case 4:if(bn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-kt(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Lw(r/1960))-r,10<r){e.timeoutHandle=fu(Zn.bind(null,e,Ve,Qt),r);break}Zn(e,Ve,Qt);break;case 5:Zn(e,Ve,Qt);break;default:throw Error(R(329))}}}return Ge(e,ge()),e.callbackNode===n?Gm.bind(null,e):null}function ju(e,t){var n=Ys;return e.current.memoizedState.isDehydrated&&(ur(e,t).flags|=256),e=sa(e,t),e!==2&&(t=Ve,Ve=n,t!==null&&Nu(t)),e}function Nu(e){Ve===null?Ve=e:Ve.push.apply(Ve,e)}function Mw(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!Pt(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bn(e,t){for(t&=~Wc,t&=~Ca,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-kt(t),r=1<<n;e[n]=-1,t&=~r}}function $f(e){if(X&6)throw Error(R(327));Gr();var t=zi(e,0);if(!(t&1))return Ge(e,ge()),null;var n=sa(e,t);if(e.tag!==0&&n===2){var r=su(e);r!==0&&(t=r,n=ju(e,r))}if(n===1)throw n=xo,ur(e,0),bn(e,t),Ge(e,ge()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zn(e,Ve,Qt),Ge(e,ge()),null}function Hc(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(ps=ge()+500,ba&&Qn())}}function gr(e){On!==null&&On.tag===0&&!(X&6)&&Gr();var t=X;X|=1;var n=ft.transition,r=te;try{if(ft.transition=null,te=1,e)return e()}finally{te=r,ft.transition=n,X=t,!(X&6)&&Qn()}}function qc(){et=Wr.current,le(Wr)}function ur(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hw(n)),ve!==null)for(n=ve.return;n!==null;){var r=n;switch(Cc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Hi();break;case 3:fs(),le(Ke),le(Ie),$c();break;case 5:Ic(r);break;case 4:fs();break;case 13:le(de);break;case 19:le(de);break;case 10:Oc(r.type._context);break;case 22:case 23:qc()}n=n.return}if(Se=e,ve=e=Fn(e.current,null),Ce=et=t,xe=0,xo=null,Wc=Ca=mr=0,Ve=Ys=null,rr!==null){for(t=0;t<rr.length;t++)if(n=rr[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}rr=null}return e}function Ym(e,t){do{var n=ve;try{if(Rc(),Pi.current=ea,Zi){for(var r=fe.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Zi=!1}if(pr=0,be=ye=fe=null,Qs=!1,vo=0,Bc.current=null,n===null||n.return===null){xe=1,xo=t,ve=null;break}e:{var o=e,i=n.return,a=n,l=t;if(t=Ce,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=bf(i);if(m!==null){m.flags&=-257,Sf(m,i,a,o,t),m.mode&1&&_f(o,u,t),t=m,l=u;var y=t.updateQueue;if(y===null){var v=new Set;v.add(l),t.updateQueue=v}else y.add(l);break e}else{if(!(t&1)){_f(o,u,t),Kc();break e}l=Error(R(426))}}else if(ue&&a.mode&1){var w=bf(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Sf(w,i,a,o,t),Pc(hs(l,a));break e}}o=l=hs(l,a),xe!==4&&(xe=2),Ys===null?Ys=[o]:Ys.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=Nm(o,l,t);mf(o,p);break e;case 1:a=l;var h=o.type,g=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Mn===null||!Mn.has(g)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=Im(o,a,t);mf(o,_);break e}}o=o.return}while(o!==null)}Zm(n)}catch(S){t=S,ve===n&&n!==null&&(ve=n=n.return);continue}break}while(!0)}function Jm(){var e=ta.current;return ta.current=ea,e===null?ea:e}function Kc(){(xe===0||xe===3||xe===2)&&(xe=4),Se===null||!(mr&268435455)&&!(Ca&268435455)||bn(Se,Ce)}function sa(e,t){var n=X;X|=2;var r=Jm();(Se!==e||Ce!==t)&&(Qt=null,ur(e,t));do try{Dw();break}catch(s){Ym(e,s)}while(!0);if(Rc(),X=n,ta.current=r,ve!==null)throw Error(R(261));return Se=null,Ce=0,xe}function Dw(){for(;ve!==null;)Xm(ve)}function Fw(){for(;ve!==null&&!c0();)Xm(ve)}function Xm(e){var t=tg(e.alternate,e,et);e.memoizedProps=e.pendingProps,t===null?Zm(e):ve=t,Bc.current=null}function Zm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=jw(n,t),n!==null){n.flags&=32767,ve=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xe=6,ve=null;return}}else if(n=Aw(n,t,et),n!==null){ve=n;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);xe===0&&(xe=5)}function Zn(e,t,n){var r=te,s=ft.transition;try{ft.transition=null,te=1,zw(e,t,n,r)}finally{ft.transition=s,te=r}return null}function zw(e,t,n,r){do Gr();while(On!==null);if(X&6)throw Error(R(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(x0(e,o),e===Se&&(ve=Se=null,Ce=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ui||(ui=!0,ng(Fi,function(){return Gr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ft.transition,ft.transition=null;var i=te;te=1;var a=X;X|=4,Bc.current=null,Iw(e,n),Km(n,e),iw(cu),Ui=!!uu,cu=uu=null,e.current=n,$w(n),d0(),X=a,te=i,ft.transition=o}else e.current=n;if(ui&&(ui=!1,On=e,ra=s),o=e.pendingLanes,o===0&&(Mn=null),p0(n.stateNode),Ge(e,ge()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(na)throw na=!1,e=Ou,Ou=null,e;return ra&1&&e.tag!==0&&Gr(),o=e.pendingLanes,o&1?e===Au?Js++:(Js=0,Au=e):Js=0,Qn(),null}function Gr(){if(On!==null){var e=Np(ra),t=ft.transition,n=te;try{if(ft.transition=null,te=16>e?16:e,On===null)var r=!1;else{if(e=On,On=null,ra=0,X&6)throw Error(R(331));var s=X;for(X|=4,I=e.current;I!==null;){var o=I,i=o.child;if(I.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(I=u;I!==null;){var c=I;switch(c.tag){case 0:case 11:case 15:Gs(8,c,o)}var f=c.child;if(f!==null)f.return=c,I=f;else for(;I!==null;){c=I;var d=c.sibling,m=c.return;if(Vm(c),c===u){I=null;break}if(d!==null){d.return=m,I=d;break}I=m}}}var y=o.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}I=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,I=i;else e:for(;I!==null;){if(o=I,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Gs(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,I=p;break e}I=o.return}}var h=e.current;for(I=h;I!==null;){i=I;var g=i.child;if(i.subtreeFlags&2064&&g!==null)g.return=i,I=g;else e:for(i=h;I!==null;){if(a=I,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ka(9,a)}}catch(S){me(a,a.return,S)}if(a===i){I=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,I=_;break e}I=a.return}}if(X=s,Qn(),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(va,e)}catch{}r=!0}return r}finally{te=n,ft.transition=t}}return!1}function Lf(e,t,n){t=hs(n,t),t=Nm(e,t,1),e=Ln(e,t,1),t=ze(),e!==null&&(Oo(e,1,t),Ge(e,t))}function me(e,t,n){if(e.tag===3)Lf(e,e,n);else for(;t!==null;){if(t.tag===3){Lf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mn===null||!Mn.has(r))){e=hs(n,e),e=Im(t,e,1),t=Ln(t,e,1),e=ze(),t!==null&&(Oo(t,1,e),Ge(t,e));break}}t=t.return}}function Uw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ze(),e.pingedLanes|=e.suspendedLanes&n,Se===e&&(Ce&n)===n&&(xe===4||xe===3&&(Ce&130023424)===Ce&&500>ge()-Vc?ur(e,0):Wc|=n),Ge(e,t)}function eg(e,t){t===0&&(e.mode&1?(t=Zo,Zo<<=1,!(Zo&130023424)&&(Zo=4194304)):t=1);var n=ze();e=nn(e,t),e!==null&&(Oo(e,t,n),Ge(e,n))}function Bw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eg(e,n)}function Ww(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),eg(e,n)}var tg;tg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,Ow(e,t,n);qe=!!(e.flags&131072)}else qe=!1,ue&&t.flags&1048576&&om(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ri(e,t),e=t.pendingProps;var s=us(t,Ie.current);Qr(t,n),s=Mc(null,t,r,e,s,n);var o=Dc();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(o=!0,qi(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,jc(t),s.updater=Ea,t.stateNode=s,s._reactInternals=t,wu(t,r,e,n),t=bu(null,t,r,!0,o,n)):(t.tag=0,ue&&o&&kc(t),De(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ri(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Hw(r),e=wt(r,e),s){case 0:t=_u(null,t,r,e,n);break e;case 1:t=Cf(null,t,r,e,n);break e;case 11:t=Ef(null,t,r,e,n);break e;case 14:t=kf(null,t,r,wt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),_u(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Cf(e,t,r,s,n);case 3:e:{if(Dm(t),e===null)throw Error(R(387));r=t.pendingProps,o=t.memoizedState,s=o.element,dm(e,t),Ji(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=hs(Error(R(423)),t),t=Pf(e,t,r,n,s);break e}else if(r!==s){s=hs(Error(R(424)),t),t=Pf(e,t,r,n,s);break e}else for(nt=$n(t.stateNode.containerInfo.firstChild),rt=t,ue=!0,Et=null,n=um(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cs(),r===s){t=rn(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return fm(t),e===null&&gu(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,du(r,s)?i=null:o!==null&&du(r,o)&&(t.flags|=32),Mm(e,t),De(e,t,i,n),t.child;case 6:return e===null&&gu(t),null;case 13:return Fm(e,t,n);case 4:return Nc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ds(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Ef(e,t,r,s,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,se(Gi,r._currentValue),r._currentValue=i,o!==null)if(Pt(o.value,i)){if(o.children===s.children&&!Ke.current){t=rn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Zt(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),vu(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(R(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),vu(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}De(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Qr(t,n),s=pt(s),r=r(s),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,s=wt(r,t.pendingProps),s=wt(r.type,s),kf(e,t,r,s,n);case 15:return $m(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Ri(e,t),t.tag=1,Qe(r)?(e=!0,qi(t)):e=!1,Qr(t,n),jm(t,r,s),wu(t,r,s,n),bu(null,t,r,!0,e,n);case 19:return zm(e,t,n);case 22:return Lm(e,t,n)}throw Error(R(156,t.tag))};function ng(e,t){return Rp(e,t)}function Vw(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 dt(e,t,n,r){return new Vw(e,t,n,r)}function Qc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hw(e){if(typeof e=="function")return Qc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hc)return 11;if(e===pc)return 14}return 2}function Fn(e,t){var n=e.alternate;return n===null?(n=dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 5,510 bytes, line 40
40ons=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ji(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Qc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Nr:return cr(n.children,s,o,t);case fc:i=8,s|=8;break;case Wl:return e=dt(12,n,t,s|2),e.elementType=Wl,e.lanes=o,e;case Vl:return e=dt(13,n,t,s),e.elementType=Vl,e.lanes=o,e;case Hl:return e=dt(19,n,t,s),e.elementType=Hl,e.lanes=o,e;case fp:return Pa(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cp:i=10;break e;case dp:i=9;break e;case hc:i=11;break e;case pc:i=14;break e;case yn:i=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=dt(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function cr(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function Pa(e,t,n,r){return e=dt(22,e,r,t),e.elementType=fp,e.lanes=n,e.stateNode={isHidden:!1},e}function Pl(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function Tl(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qw(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ll(0),this.expirationTimes=ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ll(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Gc(e,t,n,r,s,o,i,a,l){return e=new qw(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=dt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jc(o),e}function Kw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function rg(e){if(!e)return Un;e=e._reactInternals;e:{if(xr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(Qe(n))return rm(e,n,t)}return t}function sg(e,t,n,r,s,o,i,a,l){return e=Gc(n,r,!0,e,s,o,i,a,l),e.context=rg(null),n=e.current,r=ze(),s=Dn(n),o=Zt(r,s),o.callback=t??null,Ln(n,o,s),e.current.lanes=s,Oo(e,s,r),Ge(e,r),e}function Ta(e,t,n,r){var s=t.current,o=ze(),i=Dn(s);return n=rg(n),t.context===null?t.context=n:t.pendingContext=n,t=Zt(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ln(s,t,i),e!==null&&(Ct(e,s,i,o),Ci(e,s,i)),i}function oa(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 Mf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yc(e,t){Mf(e,t),(e=e.alternate)&&Mf(e,t)}function Qw(){return null}var og=typeof reportError=="function"?reportError:function(e){console.error(e)};function Jc(e){this._internalRoot=e}Ra.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));Ta(e,t,null,null)};Ra.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gr(function(){Ta(null,e,null,null)}),t[tn]=null}};function Ra(e){this._internalRoot=e}Ra.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_n.length&&t!==0&&t<_n[n].priority;n++);_n.splice(n,0,e),n===0&&Dp(e)}};function Xc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Oa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Df(){}function Gw(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var u=oa(i);o.call(u)}}var i=sg(t,r,e,0,null,!1,!1,"",Df);return e._reactRootContainer=i,e[tn]=i.current,fo(e.nodeType===8?e.parentNode:e),gr(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=oa(l);a.call(u)}}var l=Gc(e,0,!1,null,null,!1,!1,"",Df);return e._reactRootContainer=l,e[tn]=l.current,fo(e.nodeType===8?e.parentNode:e),gr(function(){Ta(t,l,n,r)}),l}function Aa(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=oa(i);a.call(l)}}Ta(t,i,e,s)}else i=Gw(n,t,e,s,r);return oa(i)}Ip=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=zs(t.pendingLanes);n!==0&&(vc(t,n|1),Ge(t,ge()),!(X&6)&&(ps=ge()+500,Qn()))}break;case 13:gr(function(){var r=nn(e,1);if(r!==null){var s=ze();Ct(r,e,1,s)}}),Yc(e,1)}};yc=function(e){if(e.tag===13){var t=nn(e,134217728);if(t!==null){var n=ze();Ct(t,e,134217728,n)}Yc(e,134217728)}};$p=function(e){if(e.tag===13){var t=Dn(e),n=nn(e,t);if(n!==null){var r=ze();Ct(n,e,t,r)}Yc(e,t)}};Lp=function(){return te};Mp=function(e,t){var n=te;
vendor: 4,186 bytes, line 40
40try{return te=e,t()}finally{te=n}};tu=function(e,t,n){switch(t){case"input":if(Ql(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=_a(r);if(!s)throw Error(R(90));pp(r),Ql(r,s)}}}break;case"textarea":gp(e,n);break;case"select":t=n.value,t!=null&&Vr(e,!!n.multiple,t,!1)}};Sp=Hc;Ep=gr;var Yw={usingClientEntryPoint:!1,Events:[jo,Mr,_a,_p,bp,Hc]},Is={findFiberByHostInstance:nr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Jw={bundleType:Is.bundleType,version:Is.version,rendererPackageName:Is.rendererPackageName,rendererConfig:Is.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:an.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Pp(e),e===null?null:e.stateNode},findFiberByHostInstance:Is.findFiberByHostInstance||Qw,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 ci=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ci.isDisabled&&ci.supportsFiber)try{va=ci.inject(Jw),zt=ci}catch{}}it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yw;it.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xc(t))throw Error(R(200));return Kw(e,t,null,n)};it.createRoot=function(e,t){if(!Xc(e))throw Error(R(299));var n=!1,r="",s=og;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Gc(e,1,!1,null,null,n,!1,r,s),e[tn]=t.current,fo(e.nodeType===8?e.parentNode:e),new Jc(t)};it.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Pp(t),e=e===null?null:e.stateNode,e};it.flushSync=function(e){return gr(e)};it.hydrate=function(e,t,n){if(!Oa(t))throw Error(R(200));return Aa(null,e,t,!0,n)};it.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=og;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=sg(t,null,e,1,n??null,s,!1,o,i),e[tn]=t.current,fo(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ra(t)};it.render=function(e,t,n){if(!Oa(t))throw Error(R(200));return Aa(null,e,t,!1,n)};it.unmountComponentAtNode=function(e){if(!Oa(e))throw Error(R(40));return e._reactRootContainer?(gr(function(){Aa(null,null,e,!1,function(){e._reactRootContainer=null,e[tn]=null})}),!0):!1};it.unstable_batchedUpdates=Hc;it.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Oa(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Aa(e,t,n,!1,r)};it.version="18.3.1-next-f1338f8080-20240426";function ig(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ig)}catch(e){console.error(e)}}ig(),ip.exports=it;var Io=ip.exports;const ag=Qh(Io);var lg,Ff=Io;lg=Ff.createRoot,Ff.hydrateRoot;const Xw=1,Zw=1e6;let Rl=0;function ex(){return Rl=(Rl+1)%Number.MAX_SAFE_INTEGER,Rl.toString()}const Ol=new Map,zf=e=>{if(Ol.has(e))return;const t=setTimeout(()=>{Ol.delete(e),Xs({type:"REMOVE_TOAST",toastId:e})},Zw);Ol.set(e,t)},tx=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Xw)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
40return n?zf(n):e.toasts.forEach(r=>{zf(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)}}},Ni=[];let Ii={toasts:[]};function Xs(e){Ii=tx(Ii,e),Ni.forEach(t=>{t(Ii)})}function nx({...e}){const t=ex(),n=s=>Xs({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Xs({type:"DISMISS_TOAST",toastId:t});return Xs({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function ug(){const[e,t]=x.useState(Ii);return x.useEffect(()=>(Ni.push(t),()=>{const n=Ni.indexOf(t);n>-1&&Ni.splice(n,1)}),[e]),{...e,toast:nx,dismiss:n=>Xs({type:"DISMISS_TOAST",toastId:n})}}function we(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function rx(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function cg(...e){return t=>e.forEach(n=>rx(n,t))}function Tt(...e){return x.useCallback(cg(...e),e)}function sx(e,t=[]){let n=[];function r(o,i){const a=x.createContext(i),l=n.length;n=[...n,i];function u(f){const{scope:d,children:m,...y}=f,v=(d==null?void 0:d[e][l])||a,w=x.useMemo(()=>y,Object.values(y));return b.jsx(v.Provider,{value:w,children:m})}function c(f,d){const m=(d==null?void 0:d[e][l])||a,y=x.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const s=()=>{const o=n.map(i=>x.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,ox(s,...t)]}function ox(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...a,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var _o=x.forwardRef((e,t)=>{const{children:n,...r}=e,s=x.Children.toArray(n),o=s.find(ix);if(o){const i=o.props.children,a=s.map(l=>l===o?x.Children.count(i)>1?x.Children.only(null):x.isValidElement(i)?i.props.children:null:l);return b.jsx(Iu,{...r,ref:t,children:x.isValidElement(i)?x.cloneElement(i,void 0,a):null})}return b.jsx(Iu,{...r,ref:t,children:n})});_o.displayName="Slot";var Iu=x.forwardRef((e,t)=>{const{children:n,...r}=e;if(x.isValidElement(n)){const s=lx(n);return x.cloneElement(n,{...ax(r,n.props),ref:t?cg(t,s):s})}return x.Children.count(n)>1?x.Children.only(null):null});Iu.displayName="SlotClone";var dg=({children:e})=>b.jsx(b.Fragment,{children:e});function ix(e){return x.isValidElement(e)&&e.type===dg}function ax(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...a)=>{o(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function lx(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ux(e){const t=e+"CollectionProvider",[n,r]=sx(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:y,children:v}=m,w=A.useRef(null),p=A.useRef(new Map).current;return b.jsx(s,{scope:y,itemMap:p,collectionRef:w,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=A.forwardRef((m,y)=>{const{scope:v,children:w}=m,p=o(a,v),h=Tt(y,p.collectionRef);return b.jsx(_o,{ref:h,children:w})});l.displayName=a;const u=e+"CollectionItemSlot",c="data-radix-collection-item",f=A.forwardRef((m,y)=>{const{scope:v,children:w,...p}=m,h=A.useRef(null),g=Tt(y,h),_=o(u,v);return A.useEffect(()=>(_.itemMap.set(h,{ref:h,...p}),()=>void _.itemMap.delete(h))),b.jsx(_o,{[c]:"",ref:g,children:w})});f.displayName=u;function d(m){const y=o(e+"CollectionConsumer",m);return A.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const p=Array.from(w.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((_,S)=>p.indexOf(_.ref.current)-p.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},d,r]}function fg(e,t=[]){let n=[];function r(o,i){const a=x.createContext(i),l=n.length;n=[...n,i];const u=f=>{var p;const{scope:d,children:m,...y}=f,v=((p=d==null?void 0:d[e])==null?void 0:p[l])||a,w=x.useMemo(()=>y,Object.values(y));return b.jsx(v.Provider,{value:w,children:m})};u.displayName=o+"Provider";function c(f,d){var v;const m=((v=d==null?void 0:d[e])==null?void 0:v[l])||a,y=x.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,c]}const s=()=>{const o=n.map(i=>x.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,cx(s,...t)]}function cx(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...a,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var dx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$e=dx.reduce((e,t)=>
vendor: 7,158 bytes, line 40
40{const n=x.forwardRef((r,s)=>{const{asChild:o,...i}=r,a=o?_o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(a,{...i,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hg(e,t){e&&Io.flushSync(()=>e.dispatchEvent(t))}function Bt(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function fx(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e);x.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var hx="DismissableLayer",$u="dismissableLayer.update",px="dismissableLayer.pointerDownOutside",mx="dismissableLayer.focusOutside",Uf,pg=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zc=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=e,u=x.useContext(pg),[c,f]=x.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=x.useState({}),y=Tt(t,C=>f(C)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),p=v.indexOf(w),h=c?v.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,_=h>=p,S=vx(C=>{const T=C.target,L=[...u.branches].some(j=>j.contains(T));!_||L||(s==null||s(C),i==null||i(C),C.defaultPrevented||a==null||a())},d),E=yx(C=>{const T=C.target;[...u.branches].some(j=>j.contains(T))||(o==null||o(C),i==null||i(C),C.defaultPrevented||a==null||a())},d);return fx(C=>{h===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},d),x.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Uf=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Bf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Uf)}},[c,d,n,u]),x.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Bf())},[c,u]),x.useEffect(()=>{const C=()=>m({});return document.addEventListener($u,C),()=>document.removeEventListener($u,C)},[]),b.jsx($e.div,{...l,ref:y,style:{pointerEvents:g?_?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,E.onFocusCapture),onBlurCapture:we(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,S.onPointerDownCapture)})});Zc.displayName=hx;var gx="DismissableLayerBranch",mg=x.forwardRef((e,t)=>{const n=x.useContext(pg),r=x.useRef(null),s=Tt(t,r);return x.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),b.jsx($e.div,{...e,ref:s})});mg.displayName=gx;function vx(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e),r=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){gg(px,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function yx(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e),r=x.useRef(!1);return x.useEffect(()=>{const s=o=>{o.target&&!r.current&&gg(mx,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bf(){const e=new CustomEvent($u);document.dispatchEvent(e)}function gg(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?hg(s,o):s.dispatchEvent(o)}var wx=Zc,xx=mg,vr=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},_x="Portal",vg=x.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,o]=x.useState(!1);vr(()=>o(!0),[]);const i=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?ag.createPortal(b.jsx($e.div,{...r,ref:t}),i):null});vg.displayName=_x;function bx(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var ed=e=>{const{present:t,children:n}=e,r=Sx(t),s=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),o=Tt(r.ref,Ex(s));return typeof n=="function"||r.isPresent?x.cloneElement(s,{ref:o}):null};ed.displayName="Presence";function Sx(e){const[t,n]=x.useState(),r=x.useRef({}),s=x.useRef(e),o=x.useRef("none"),i=e?"mounted":"unmounted",[a,l]=bx(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=di(r.current);o.current=a==="mounted"?u:"none"},[a]),vr(()=>{const u=r.current,c=s.current;if(c!==e){const d=o.current,m=di(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),vr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=m=>{const v=di(r.current).includes(m.animationName);if(m.target===t&&v&&(l("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},d=m=>{m.target===t&&(o.current=di(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function di(e){return(e==null?void 0:e.animationName)||"none"}function Ex(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kx({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=Cx({defaultProp:t,onChange:n}),o=e!==void 0,i=o?e:r,a=Bt(n),l=x.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else s(u)},[o,e,s,a]);return[i,l]}function Cx({defaultProp:e,onChange:t}){const n=x.useState(e),[r]=n,s=x.useRef(r),o=Bt(t);return x.useEffect(()=>{s.current!==r&&(o(r),s.current=r)},[r,s,o]),n}var Px="VisuallyHidden",ja=x.forwardRef((e,t)=>b.jsx($e.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ja.displayName=Px;
40var Tx=ja,td="ToastProvider",[nd,Rx,Ox]=ux("Toast"),[yg,AC]=fg("Toast",[Ox]),[Ax,Na]=yg(td),wg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,l]=x.useState(null),[u,c]=x.useState(0),f=x.useRef(!1),d=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${td}\`. Expected non-empty \`string\`.`),b.jsx(nd.Provider,{scope:t,children:b.jsx(Ax,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>c(m=>m+1),[]),onToastRemove:x.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d,children:i})})};wg.displayName=td;var xg="ToastViewport",jx=["F8"],Lu="toast.viewportPause",Mu="toast.viewportResume",_g=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=jx,label:s="Notifications ({hotkey})",...o}=e,i=Na(xg,n),a=Rx(n),l=x.useRef(null),u=x.useRef(null),c=x.useRef(null),f=x.useRef(null),d=Tt(t,f,i.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=i.toastCount>0;x.useEffect(()=>{const w=p=>{var g;r.length!==0&&r.every(_=>p[_]||p.code===_)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=l.current,p=f.current;if(y&&w&&p){const h=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(Lu);p.dispatchEvent(E),i.isClosePausedRef.current=!0}},g=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(Mu);p.dispatchEvent(E),i.isClosePausedRef.current=!1}},_=E=>{!w.contains(E.relatedTarget)&&g()},S=()=>{w.contains(document.activeElement)||g()};return w.addEventListener("focusin",h),w.addEventListener("focusout",_),w.addEventListener("pointermove",h),w.addEventListener("pointerleave",S),window.addEventListener("blur",h),window.addEventListener("focus",g),()=>{w.removeEventListener("focusin",h),w.removeEventListener("focusout",_),w.removeEventListener("pointermove",h),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",h),window.removeEventListener("focus",g)}}},[y,i.isClosePausedRef]);const v=x.useCallback(({tabbingDirection:w})=>{const h=a().map(g=>{const _=g.ref.current,S=[_,...Hx(_)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?h.reverse():h).flat()},[a]);return x.useEffect(()=>{const w=f.current;if(w){const p=h=>{var S,E,C;const g=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!g){const T=document.activeElement,L=h.shiftKey;if(h.target===w&&L){(S=u.current)==null||S.focus();return}const M=v({tabbingDirection:L?"backwards":"forwards"}),q=M.findIndex(N=>N===T);Al(M.slice(q+1))?h.preventDefault():L?(E=u.current)==null||E.focus():(C=c.current)==null||C.focus()}};return w.addEventListener("keydown",p),()=>w.removeEventListener("keydown",p)}},[a,v]),b.jsxs(xx,{ref:l,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&b.jsx(Du,{ref:u,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});Al(w)}}),b.jsx(nd.Slot,{scope:n,children:b.jsx($e.ol,{tabIndex:-1,...o,ref:d})}),y&&b.jsx(Du,{ref:c,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});Al(w)}})]})});_g.displayName=xg;var bg="ToastFocusProxy",Du=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,o=Na(bg,n);return b.jsx(ja,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});Du.displayName=bg;var Ia="Toast",Nx="toast.swipeStart",Ix="toast.swipeMove",$x="toast.swipeCancel",Lx="toast.swipeEnd",Sg=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...i}=e,[a=!0,l]=kx({prop:r,defaultProp:s,onChange:o});return b.jsx(ed,{present:n||a,children:b.jsx(Fx,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:Bt(e.onPause),onResume:Bt(e.onResume),onSwipeStart:we(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:we(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:we(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:we(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Sg.displayName=Ia;var[Mx,Dx]=yg(Ia,{onClose(){}}),Fx=x.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:m,...y}=e,v=Na(Ia,n),[w,p]=x.useState(null),h=Tt(t,N=>p(N)),g=x.useRef(null),_=x.useRef(null),S=s||v.duration,E=x.useRef(0),C=x.useRef(S),T=x.useRef(0),{onToastAdd:L,onToastRemove:j}=v,z=Bt(()=>{var K;(w==null?void 0:w.contains(document.activeElement))&&((K=v.viewport)==null||K.focus()),i()}),M=x.useCallback(N=>{!N||N===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout(z,N))},[z]);x.useEffect(()=>{const N=v.viewport;if(N){const K=()=>{M(C.current),u==null||u()},U=()=>{const Q=new Date().getTime()-E.current;C.current=C.current-Q,window.clearTimeout(T.current),l==null||l()};return N.addEventListener(Lu,U),N.addEventListener(Mu,K),()=>{N.removeEventListener(Lu,U),N.removeEventListener(Mu,K)}}},[v.viewport,S,l,u,M]),x.useEffect(()=>{o&&!v.isClosePausedRef.current&&M(S)},[o,S,v.isClosePausedRef,M]),x.useEffect(()=>(L(),()=>j()),[L,j]);const q=x.useMemo(()=>w?Og(w):null,[w]);return v.viewport?b.jsxs(b.Fragment,{children:[q&&b.jsx(zx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:q}),b.jsx(Mx,{scope:n,onClose:z,children:Io.createPortal(b.jsx(nd.ItemSlot,{scope:n,children:b.jsx(wx,{asChild:!0,onEscapeKeyDown:we(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||z(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx($e.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection,...y,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:we(e.onKeyDown,N=>{N.key==="Escape"&&(a==null||a(N.nativeEvent),N.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:we(e.onPointerDown,N=>{N.button===0&&(g.current={x:N.clientX,y:N.clientY})}),onPointerMove:we(e.onPointerMove,N=>{if(!g.current)return;const K=N.clientX-g.current.x,U=N.clientY-g.current.y,Q=!!_.current,k=["left","right"].includes(v.swipeDirection),O=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,D=k?O(0,K):0,$=k?0:O(0,U),F=N.pointerType==="touch"?10:2,J={x:D,y:$},ce={originalEvent:N,delta:J};Q?(_.current=J,fi(Ix,f,ce,{discrete:!1})):Wf(J,v.swipeDirection,F)?(_.current=J,fi(Nx,c,ce,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(K)>F||Math.abs(U)>F)&&(g.current=null)}),onPointerUp:we(e.onPointerUp,N=>{const K=_.current,U=N.target;if(U.hasPointerCapture(N.pointerId)&&U.releasePointerCapture(N.pointerId),_.current=null,g.current=null,K){const Q=N.currentTarget,k={originalEvent:N,delta:K};Wf(K,v.swipeDirection,v.swipeThreshold)?fi(Lx,m,k,{discrete:!0}):fi($x,d,k,{discrete:!0}),Q.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),zx=e=>{const{__scopeToast:t,children:n,...r}=e,s=Na(Ia,t),[o,i]=x.useState(!1),[a,l]=x.useState(!1);return Wx(()=>i(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:b.jsx(vg,{asChild:!0,children:b.jsx(ja,{...r,children:o&&b.jsxs(b.Fragment,{children:[s.label," ",n]})})})},Ux="ToastTitle",Eg=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx($e.div,{...r,ref:t})});Eg.displayName=Ux;var Bx="ToastDescription",kg=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx($e.div,{...r,ref:t})});kg.displayName=Bx;var Cg="ToastAction",Pg=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?b.jsx(Rg,{altText:n,asChild:!0,children:b.jsx(rd,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Cg}\`. Expected non-empty \`string\`.`),null)});Pg.displayName=Cg;var Tg="ToastClose",rd=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=Dx(Tg,n);return b.jsx(Rg,{asChild:!0,children:b.jsx($e.button,{type:"button",...r,ref:t,onClick:we(e.onClick,s.onClose)})})});rd.displayName=Tg;var Rg=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return b.jsx($e.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function Og(e){const t=[];
vendor: 4,878 bytes, lines 40-75
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Vx(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Og(r))}}),t}function fi(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?hg(s,o):s.dispatchEvent(o)}var Wf=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),o=r>s;return t==="left"||t==="right"?o&&r>n:!o&&s>n};function Wx(e=()=>{}){const t=Bt(e);vr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Vx(e){return e.nodeType===e.ELEMENT_NODE}function Hx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Al(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var qx=wg,Ag=_g,jg=Sg,Ng=Eg,Ig=kg,$g=Pg,Lg=rd;function Mg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Mg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Dg(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Mg(e))&&(r&&(r+=" "),r+=t);return r}const Vf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Hf=Dg,Fg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Hf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(u=>{const c=n==null?void 0:n[u],f=o==null?void 0:o[u];if(c===null)return null;const d=Vf(c)||Vf(f);return s[u][d]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...m}=c;return Object.entries(m).every(y=>{let[v,w]=y;return Array.isArray(w)?w.includes({...o,...a}[v]):{...o,...a}[v]===w})?[...u,f,d]:u},[]);return Hf(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const Kx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var Qx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const Gx=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},l)=>x.createElement("svg",{ref:l,...Qx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:zg("lucide",s),...a},[...i.map(([u,c])=>x.createElement(u,c)),...Array.isArray(o)?o:[o]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const sd=(e,t)=>{const n=x.forwardRef(({className:r,...s},o)=>x.createElement(Gx,{ref:o,iconNode:t,className:zg(`lucide-${Kx(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const Yx=sd("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const Jx=sd("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const Xx=sd("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,906 bytes, line 75
75],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),od="-",Zx=e=>{const t=t1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(od);return a[0]===""&&a.length!==1&&a.shift(),Ug(a,t)||e1(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Ug=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Ug(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(od);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},qf=/^\[(.+)\]$/,e1=e=>{if(qf.test(e)){const t=qf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},t1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return r1(Object.entries(e.classGroups),n).forEach(([o,i])=>{Fu(i,r,o,t)}),r},Fu=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Kf(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(n1(s)){Fu(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{Fu(i,Kf(t,o),n,r)})})},Kf=(e,t)=>{let n=e;return t.split(od).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},n1=e=>e.isThemeGetter,r1=(e,t)=>t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[n,s]}):e,s1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},Bg="!",o1=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let u=0,c=0,f;for(let w=0;w<a.length;w++){let p=a[w];if(u===0){if(p===s&&(r||a.slice(w,w+o)===t)){l.push(a.slice(c,w)),c=w+o;continue}if(p==="/"){f=w;continue}}p==="["?u++:p==="]"&&u--}const d=l.length===0?a:a.substring(c),m=d.startsWith(Bg),y=m?d.substring(1):d,v=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:i}):i},i1=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},a1=e=>({cache:s1(e.cacheSize),parseClassName:o1(e),...Zx(e)}),l1=/\s+/,u1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(l1);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:m}=n(u);let y=!!m,v=r(y?d.substring(0,m):d);if(!v){if(!y){a=u+(a.length>0?" "+a:a);continue}if(v=r(d),!v){a=u+(a.length>0?" "+a:a);continue}y=!1}const w=i1(c).join(":"),p=f?w+Bg:w,h=p+v;if(o.includes(h))continue;o.push(h);const g=s(v,y);for(let _=0;_<g.length;++_){const S=g[_];o.push(p+S)}a=u+(a.length>0?" "+a:a)}return a};function c1(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Wg(t))&&(r&&(r+=" "),r+=n);return r}const Wg=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wg(e[r]))&&(n&&(n+=" "),n+=t);return n};function d1(e,...t){let n,r,s,o=i;function i(l){const u=t.reduce((c,f)=>f(c),e());return n=a1(u),r=n.cache.get,s=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=u1(l,n);return s(l,c),c}return function(){return o(c1.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Vg=/^\[(?:([a-z-]+):)?(.+)\]$/i,f1=/^\d+\/\d+$/,h1=new Set(["px","full","screen"]),p1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,m1=/\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$/,g1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,v1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ht=e=>Yr(e)||h1.has(e)||f1.test(e),pn=e=>_s(e,"length",C1),Yr=e=>!!e&&!Number.isNaN(Number(e)),jl=e=>_s(e,"number",Yr),$s=e=>!!e&&Number.isInteger(Number(e)),w1=e=>e.endsWith("%")&&Yr(e.slice(0,-1)),V=e=>Vg.test(e),mn=e=>p1.test(e),x1=new Set(["length","size","percentage"]),_1=e=>_s(e,x1,Hg),b1=e=>_s(e,"position",Hg),S1=new Set(["image","url"]),E1=e=>_s(e,S1,T1),k1=e=>_s(e,"",P1),Ls=()=>!0,_s=(e,t,n)=>{const r=Vg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},C1=e=>m1.test(e)&&!g1.test(e),Hg=()=>!1,P1=e=>v1.test(e),T1=e=>y1.test(e),R1=()=>{const e=ie("colors"),t=ie("spacing"),n=ie("blur"),r=ie("brightness"),s=ie("borderColor"),o=ie("borderRadius"),i=ie("borderSpacing"),a=ie("borderWidth"),l=ie("contrast"),u=ie("grayscale"),c=ie("hueRotate"),f=ie("invert"),d=ie("gap"),m=ie("gradientColorStops"),y=ie("gradientColorStopPositions"),v=ie("inset"),w=ie("margin"),p=ie("opacity"),h=ie("padding"),g=ie("saturate"),_=ie("scale"),S=ie("sepia"),E=ie("skew"),C=ie("space"),T=ie("translate"),L=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",V,t],M=()=>[V,t],q=()=>["",Ht,pn],N=()=>["auto",Yr,V],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",V],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Yr,V];return{cacheSize:500,separator:":",theme:{colors:[Ls],spacing:[Ht,pn],blur:["none","",mn,V],brightness:$(),borderColor:[e],borderRadius:["n
75one","","full",mn,V],borderSpacing:M(),borderWidth:q(),contrast:$(),grayscale:O(),hueRotate:$(),invert:O(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[w1,pn],inset:z(),margin:z(),opacity:$(),padding:M(),saturate:$(),scale:$(),sepia:O(),skew:$(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",V]}],container:["container"],columns:[{columns:[mn]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...K(),V]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$s,V]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",V]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",$s,V]}],"grid-cols":[{"grid-cols":[Ls]}],"col-start-end":[{col:["auto",{span:["full",$s,V]},V]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Ls]}],"row-start-end":[{row:["auto",{span:[$s,V]},V]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",V]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",V]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",V,t]}],"min-w":[{"min-w":[V,t,"min","max","fit"]}],"max-w":[{"max-w":[V,t,"none","full","min","max","fit","prose",{screen:[mn]},mn]}],h:[{h:[V,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[V,t,"auto","min","max","fit"]}],"font-size":[{text:["base",mn,pn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jl]}],"font-family":[{font:[Ls]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",V]}],"line-clamp":[{"line-clamp":["none",Yr,jl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ht,V]}],"list-image":[{"list-image":["none",V]}],"list-style-type":[{list:["none","disc","decimal",V]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ht,pn]}],"underline-offset":[{"underline-offset":["auto",Ht,V]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],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",V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),b1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},E1]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}
vendor: 5,172 bytes, line 75
75],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[p]}],"border-style":[{border:[...U(),"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":[p]}],"divide-style":[{divide:U()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Ht,V]}],"outline-w":[{outline:[Ht,pn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[Ht,pn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mn,k1]}],"shadow-color":[{shadow:[Ls]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",mn,V]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[g]}],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":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",V]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",V]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",V]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[$s,V]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",V]}],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",V]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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,487 bytes, line 75
75],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",V]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ht,pn,jl]}],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"]}}},O1=d1(R1);function Le(...e){return O1(Dg(e))}const A1=qx,qg=x.forwardRef(({className:e,...t},n)=>b.jsx(Ag,{ref:n,className:Le("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}));qg.displayName=Ag.displayName;const j1=Fg("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"}}),Kg=x.forwardRef(({className:e,variant:t,...n},r)=>b.jsx(jg,{ref:r,className:Le(j1({variant:t}),e),...n}));Kg.displayName=jg.displayName;const N1=x.forwardRef(({className:e,...t},n)=>b.jsx($g,{ref:n,className:Le("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));
75N1.displayName=$g.displayName;const Qg=x.forwardRef(({className:e,...t},n)=>b.jsx(Lg,{ref:n,className:Le("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:b.jsx(Xx,{className:"h-4 w-4"})}));Qg.displayName=Lg.displayName;const Gg=x.forwardRef(({className:e,...t},n)=>b.jsx(Ng,{ref:n,className:Le("text-sm font-semibold",e),...t}));Gg.displayName=Ng.displayName;const Yg=x.forwardRef(({className:e,...t},n)=>b.jsx(Ig,{ref:n,className:Le("text-sm opacity-90",e),...t}));Yg.displayName=Ig.displayName;function I1(){const{toasts:e}=ug();return b.jsxs(A1,{children:[e.map(function({id:t,title:n,description:r,action:s,...o}){return b.jsxs(Kg,{...o,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(Gg,{children:n}),r&&b.jsx(Yg,{children:r})]}),s,b.jsx(Qg,{})]},t)}),b.jsx(qg,{})]})}var Qf=["light","dark"],$1="(prefers-color-scheme: dark)",L1=x.createContext(void 0),M1={setTheme:e=>{},themes:[]},D1=()=>{var e;return(e=x.useContext(L1))!=null?e:M1};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let u=o==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=s?Qf.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(y,v=!1,w=!0)=>{let p=i?i[y]:y,h=v?y+"|| ''":`'${p}'`,g="";return s&&w&&!v&&Qf.includes(y)&&(g+=`d.style.colorScheme = '${y}';`),n==="class"?v||p?g+=`c.add(${h})`:g+="null":p&&(g+=`d[s](n,${h})`),g},m=e?`!function(){${c}${d(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${$1}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${d(i?"x[e]":"e",!0)}}${u?"":"else{"+d(o,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${d(i?"x[e]":"e",!0)}}else{${d(o,!1,!1)};}${f}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})});var F1=e=>{switch(e){case"success":return B1;case"info":return V1;case"warning":return W1;case"error":return H1;default:return null}},z1=Array(12).fill(0),U1=({visible:e})=>A.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},A.createElement("div",{className:"sonner-spinner"},z1.map((t,n)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),B1=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),W1=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.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"})),V1=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),H1=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),q1=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};
75return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},zu=1,K1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:zu++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:s}),s},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
75this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0;return r.then(async o=>{if(G1(o)&&!o.ok){s=!1;let i=typeof t.error=="function"?await t.error(`HTTP error! status: ${o.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${o.status}`):t.description;this.create({id:n,type:"error",message:i,description:a})}else if(t.success!==void 0){s=!1;let i=typeof t.success=="function"?await t.success(o):t.success,a=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"success",message:i,description:a})}}).catch(async o=>{if(t.error!==void 0){s=!1;let i=typeof t.error=="function"?await t.error(o):t.error,a=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"error",message:i,description:a})}}).finally(()=>{var o;s&&(this.dismiss(n),n=void 0),(o=t.finally)==null||o.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||zu++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Ze=new K1,Q1=(e,t)=>{let n=(t==null?void 0:t.id)||zu++;return Ze.addToast({title:e,...t,id:n}),n},G1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Y1=Q1,J1=()=>Ze.toasts;Object.assign(Y1,{success:Ze.success,info:Ze.info,warning:Ze.warning,error:Ze.error,custom:Ze.custom,message:Ze.message,promise:Ze.promise,dismiss:Ze.dismiss,loading:Ze.loading},{getHistory:J1});function X1(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))}X1(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
75left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
75:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 76`);function hi(e){return e.label!==void 0}var Z1=3,e_="32px",t_=4e3,n_=356,r_=14,s_=20,o_=200;function i_(...e){return e.filter(Boolean).join(" ")}var a_=e=>{var t,n,r,s,o,i,a,l,u,c;let{invert:f,toast:d,unstyled:m,interacting:y,setHeights:v,visibleToasts:w,heights:p,index:h,toasts:g,expanded:_,removeToast:S,defaultRichColors:E,closeButton:C,style:T,cancelButtonStyle:L,actionButtonStyle:j,className:z="",descriptionClassName:M="",duration:q,position:N,gap:K,loadingIcon:U,expandByDefault:Q,classNames:k,icons:O,closeButtonAriaLabel:D="Close toast",pauseWhenPageIsHidden:$,cn:F}=e,[J,ce]=A.useState(!1),[Je,ee]=A.useState(!1),[gt,ln]=A.useState(!1),[un,cn]=A.useState(!1),[Wo,br]=A.useState(0),[Yn,Cs]=A.useState(0),Vo=A.useRef(null),dn=A.useRef(null),Xa=h===0,Za=h+1<=w,Ee=d.type,Sr=d.dismissible!==!1,vy=d.className||"",yy=d.descriptionClassName||"",Ho=A.useMemo(()=>p.findIndex(W=>W.toastId===d.id)||0,[p,d.id]),wy=A.useMemo(()=>{var W;return(W=d.closeButton)!=null?W:C},[d.closeButton,C]),Ed=A.useMemo(()=>d.duration||q||t_,[d.duration,q]),el=A.useRef(0),Er=A.useRef(0),kd=A.useRef(0),kr=A.useRef(null),[Cd,xy]=N.split("-"),Pd=A.useMemo(()=>p.reduce((W,oe,ne)=>ne>=Ho?W:W+oe.height,0),[p,Ho]),Td=q1(),_y=d.invert||f,tl=Ee==="loading";Er.current=A.useMemo(()=>Ho*K+Pd,[Ho,Pd]),A.useEffect(()=>{ce(!0)},[]),A.useLayoutEffect(()=>{if(!J)return;let W=dn.current,oe=W.style.height;W.style.height="auto";let ne=W.getBoundingClientRect().height;W.style.height=oe,Cs(ne),v(At=>At.find(jt=>jt.toastId===d.id)?At.map(jt=>jt.toastId===d.id?{...jt,height:ne}:jt):[{toastId:d.id,height:ne,position:d.position},...At])},[J,d.title,d.description,v,d.id]);let fn=A.useCallback(()=>{ee(!0),br(Er.current),v(W=>W.filter(oe=>oe.toastId!==d.id)),setTimeout(()=>{S(d)},o_)},[d,S,v,Er]);A.useEffect(()=>{if(d.promise&&Ee==="loading"||d.duration===1/0||d.type==="loading")return;let W,oe=Ed;return _||y||$&&Td?(()=>{if(kd.current<el.current){let ne=new Date().getTime()-el.current;oe=oe-ne}
76kd.current=new Date().getTime()})():oe!==1/0&&(el.current=new Date().getTime(),W=setTimeout(()=>{var ne;(ne=d.onAutoClose)==null||ne.call(d,d),fn()},oe)),()=>clearTimeout(W)},[_,y,Q,d,Ed,fn,d.promise,Ee,$,Td]),A.useEffect(()=>{let W=dn.current;if(W){let oe=W.getBoundingClientRect().height;return Cs(oe),v(ne=>[{toastId:d.id,height:oe,position:d.position},...ne]),()=>v(ne=>ne.filter(At=>At.toastId!==d.id))}},[v,d.id]),A.useEffect(()=>{d.delete&&fn()},[fn,d.delete]);function by(){return O!=null&&O.loading?A.createElement("div",{className:"sonner-loader","data-visible":Ee==="loading"},O.loading):U?A.createElement("div",{className:"sonner-loader","data-visible":Ee==="loading"},U):A.createElement(U1,{visible:Ee==="loading"})}return A.createElement("li",{"aria-live":d.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:dn,className:F(z,vy,k==null?void 0:k.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,k==null?void 0:k.default,k==null?void 0:k[Ee],(n=d==null?void 0:d.classNames)==null?void 0:n[Ee]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:E,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":J,"data-promise":!!d.promise,"data-removed":Je,"data-visible":Za,"data-y-position":Cd,"data-x-position":xy,"data-index":h,"data-front":Xa,"data-swiping":gt,"data-dismissible":Sr,"data-type":Ee,"data-invert":_y,"data-swipe-out":un,"data-expanded":!!(_||Q&&J),style:{"--index":h,"--toasts-before":h,"--z-index":g.length-h,"--offset":`${Je?Wo:Er.current}px`,"--initial-height":Q?"auto":`${Yn}px`,...T,...d.style},onPointerDown:W=>{tl||!Sr||(Vo.current=new Date,br(Er.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(ln(!0),kr.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,oe,ne,At;if(un||!Sr)return;kr.current=null;let jt=Number(((W=dn.current)==null?void 0:W.style.getPropertyValue("--swipe-amount").replace("px",""))||0),qo=new Date().getTime()-((oe=Vo.current)==null?void 0:oe.getTime()),Sy=Math.abs(jt)/qo;if(Math.abs(jt)>=s_||Sy>.11){br(Er.current),(ne=d.onDismiss)==null||ne.call(d,d),fn(),cn(!0);return}(At=dn.current)==null||At.style.setProperty("--swipe-amount","0px"),ln(!1)},onPointerMove:W=>{var oe;if(!kr.current||!Sr)return;let ne=W.clientY-kr.current.y,At=W.clientX-kr.current.x,jt=(Cd==="top"?Math.min:Math.max)(0,ne),qo=W.pointerType==="touch"?10:2;Math.abs(jt)>qo?(oe=dn.current)==null||oe.style.setProperty("--swipe-amount",`${ne}px`):Math.abs(At)>qo&&(kr.current=null)}},wy&&!d.jsx?A.createElement("button",{"aria-label":D,"data-disabled":tl,"data-close-button":!0,onClick:tl||!Sr?()=>{}:()=>{var W;fn(),(W=d.onDismiss)==null||W.call(d,d)},className:F(k==null?void 0:k.closeButton,(s=d==null?void 0:d.classNames)==null?void 0:s.closeButton)},A.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"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,d.jsx||A.isValidElement(d.title)?d.jsx||d.title:A.createElement(A.Fragment,null,Ee||d.icon||d.promise?A.createElement("div",{"data-icon":"",className:F(k==null?void 0:k.icon,(o=d==null?void 0:d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||by():null,d.type!=="loading"?d.icon||(O==null?void 0:O[Ee])||F1(Ee):null):null,A.createElement("div",{"data-content":"",className:F(k==null?void 0:k.content,(i=d==null?void 0:d.classNames)==null?void 0:i.content)},A.createElement("div",{"data-title":"",className:F(k==null?void 0:k.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},d.title),d.description?A.createElement("div",{"data-description":"",className:F(M,yy,k==null?void 0:k.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},d.description):null),A.isValidElement(d.cancel)?d.cancel:d.cancel&&hi(d.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||L,onClick:W=>{var oe,ne;hi(d.cancel)&&Sr&&((ne=(oe=d.cancel).onClick)==null||ne.call(oe,W),fn())},className:F(k==null?void 0:k.cancelButton,(u=d==null?void 0:d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,A.isValidElement(d.action)?d.action:d.action&&hi(d.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||j,onClick:W=>{var oe,ne;
76hi(d.action)&&(W.defaultPrevented||((ne=(oe=d.action).onClick)==null||ne.call(oe,W),fn()))},className:F(k==null?void 0:k.actionButton,(c=d==null?void 0:d.classNames)==null?void 0:c.actionButton)},d.action.label):null))};function Gf(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var l_=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:s,closeButton:o,className:i,offset:a,theme:l="light",richColors:u,duration:c,style:f,visibleToasts:d=Z1,toastOptions:m,dir:y=Gf(),gap:v=r_,loadingIcon:w,icons:p,containerAriaLabel:h="Notifications",pauseWhenPageIsHidden:g,cn:_=i_}=e,[S,E]=A.useState([]),C=A.useMemo(()=>Array.from(new Set([n].concat(S.filter($=>$.position).map($=>$.position)))),[S,n]),[T,L]=A.useState([]),[j,z]=A.useState(!1),[M,q]=A.useState(!1),[N,K]=A.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=A.useRef(null),Q=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),k=A.useRef(null),O=A.useRef(!1),D=A.useCallback($=>{var F;(F=S.find(J=>J.id===$.id))!=null&&F.delete||Ze.dismiss($.id),E(J=>J.filter(({id:ce})=>ce!==$.id))},[S]);return A.useEffect(()=>Ze.subscribe($=>{if($.dismiss){E(F=>F.map(J=>J.id===$.id?{...J,delete:!0}:J));return}setTimeout(()=>{ag.flushSync(()=>{E(F=>{let J=F.findIndex(ce=>ce.id===$.id);return J!==-1?[...F.slice(0,J),{...F[J],...$},...F.slice(J+1)]:[$,...F]})})})}),[]),A.useEffect(()=>{if(l!=="system"){K(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:$})=>{K($?"dark":"light")})},[l]),A.useEffect(()=>{S.length<=1&&z(!1)},[S]),A.useEffect(()=>{let $=F=>{var J,ce;r.every(Je=>F[Je]||F.code===Je)&&(z(!0),(J=U.current)==null||J.focus()),F.code==="Escape"&&(document.activeElement===U.current||(ce=U.current)!=null&&ce.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[r]),A.useEffect(()=>{if(U.current)return()=>{k.current&&(k.current.focus({preventScroll:!0}),k.current=null,O.current=!1)}},[U.current]),S.length?A.createElement("section",{"aria-label":`${h} ${Q}`,tabIndex:-1},C.map(($,F)=>{var J;let[ce,Je]=$.split("-");return A.createElement("ol",{key:$,dir:y==="auto"?Gf():y,tabIndex:-1,ref:U,className:i,"data-sonner-toaster":!0,"data-theme":N,"data-y-position":ce,"data-x-position":Je,style:{"--front-toast-height":`${((J=T[0])==null?void 0:J.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||e_,"--width":`${n_}px`,"--gap":`${v}px`,...f},onBlur:ee=>{O.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(O.current=!1,k.current&&(k.current.focus({preventScroll:!0}),k.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||O.current||(O.current=!0,k.current=ee.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{M||z(!1)},onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||q(!0)},onPointerUp:()=>q(!1)},S.filter(ee=>!ee.position&&F===0||ee.position===$).map((ee,gt)=>{var ln,un;return A.createElement(a_,{key:ee.id,icons:p,index:gt,toast:ee,defaultRichColors:u,duration:(ln=m==null?void 0:m.duration)!=null?ln:c,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:t,visibleToasts:d,closeButton:(un=m==null?void 0:m.closeButton)!=null?un:o,interacting:M,position:$,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:D,toasts:S.filter(cn=>cn.position==ee.position),heights:T.filter(cn=>cn.position==ee.position),setHeights:L,expandByDefault:s,gap:v,loadingIcon:w,expanded:j,pauseWhenPageIsHidden:g,cn:_})}))})):null};const u_=({...e})=>{const{theme:t="system"}=D1();return b.jsx(l_,{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})},c_=["top","right","bottom","left"],Bn=Math.min,tt=Math.max,ia=Math.round,pi=Math.floor,Wn=e=>({x:e,y:e}
vendor: 5,419 bytes, line 76
76),d_={left:"right",right:"left",bottom:"top",top:"bottom"},f_={start:"end",end:"start"};function Uu(e,t,n){return tt(e,Bn(t,n))}function sn(e,t){return typeof e=="function"?e(t):e}function on(e){return e.split("-")[0]}function bs(e){return e.split("-")[1]}function id(e){return e==="x"?"y":"x"}function ad(e){return e==="y"?"height":"width"}function Vn(e){return["top","bottom"].includes(on(e))?"y":"x"}function ld(e){return id(Vn(e))}function h_(e,t,n){n===void 0&&(n=!1);const r=bs(e),s=ld(e),o=ad(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=aa(i)),[i,aa(i)]}function p_(e){const t=aa(e);return[Bu(e),t,Bu(t)]}function Bu(e){return e.replace(/start|end/g,t=>f_[t])}function m_(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:i;default:return[]}}function g_(e,t,n,r){const s=bs(e);let o=m_(on(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Bu)))),o}function aa(e){return e.replace(/left|right|bottom|top/g,t=>d_[t])}function v_(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jg(e){return typeof e!="number"?v_(e):{top:e,right:e,bottom:e,left:e}}function la(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Yf(e,t,n){let{reference:r,floating:s}=e;const o=Vn(t),i=ld(t),a=ad(i),l=on(t),u=o==="y",c=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,d=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:c,y:r.y-s.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-s.width,y:f};break;default:m={x:r.x,y:r.y}}switch(bs(t)){case"start":m[i]-=d*(n&&u?-1:1);break;case"end":m[i]+=d*(n&&u?-1:1);break}return m}const y_=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=Yf(u,r,l),d=r,m={},y=0;for(let v=0;v<a.length;v++){const{name:w,fn:p}=a[v],{x:h,y:g,data:_,reset:S}=await p({x:c,y:f,initialPlacement:r,placement:d,strategy:s,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});c=h??c,f=g??f,m={...m,[w]:{...m[w],..._}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:c,y:f}=Yf(u,d,l)),v=-1)}return{x:c,y:f,placement:d,strategy:s,middlewareData:m}};async function bo(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=sn(t,e),y=Jg(m),w=a[d?f==="floating"?"reference":"floating":f],p=la(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),h=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,g=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(g))?await(o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},S=la(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:h,offsetParent:g,strategy:l}):h);return{top:(p.top-S.top+y.top)/_.y,bottom:(S.bottom-p.bottom+y.bottom)/_.y,left:(p.left-S.left+y.left)/_.x,right:(S.right-p.right+y.right)/_.x}}const w_=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=sn(e,t)||{};if(u==null)return{};const f=Jg(c),d={x:n,y:r},m=ld(s),y=ad(m),v=await i.getDimensions(u),w=m==="y",p=w?"top":"left",h=w?"bottom":"right",g=w?"clientHeight":"clientWidth",_=o.reference[y]+o.reference[m]-d[m]-o.floating[y],S=d[m]-o.reference[m],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let C=E?E[g]:0;(!C||!await(i.isElement==null?void 0:i.isElement(E)))&&(C=a.floating[g]||o.floating[y]);const T=_/2-S/2,L=C/2-v[y]/2-1,j=Bn(f[p],L),z=Bn(f[h],L),M=j,q=C-v[y]-z,N=C/2-v[y]/2+T,K=Uu(M,N,q),U=!l.arrow&&bs(s)!=null&&N!==K&&o.reference[y]/2-(N<M?j:z)-v[y]/2<0,Q=U?N<M?N-M:N-q:0;return{[m]:d[m]+Q,data:{[m]:K,centerOffset:N-K-Q,...U&&{alignmentOffset:Q}},reset:U}}}),x_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...w}=sn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=on(s),h=Vn(a),g=on(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=d||(g||!v?[aa(a)]:p_(a)),E=y!=="none";!d&&E&&S.push(...g_(a,v,y,_));const C=[a,...S],T=await bo(t,w),L=[];let j=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&L.push(T[p]),f){const N=h_(s,i,_);L.push(T[N[0]],T[N[1]])}if(j=[...j,{placement:s,overflows:L}],!L.every(N=>N<=0)){var z,M;const N=(((z=o.flip)==null?void 0:z.index)||0)+1,K=C[N];if(K)return{data:{index:N,overflows:j},reset:{placement:K}
vendor: 4,781 bytes, line 76
76};let U=(M=j.filter(Q=>Q.overflows[0]<=0).sort((Q,k)=>Q.overflows[1]-k.overflows[1])[0])==null?void 0:M.placement;if(!U)switch(m){case"bestFit":{var q;const Q=(q=j.filter(k=>{if(E){const O=Vn(k.placement);return O===h||O==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(O=>O>0).reduce((O,D)=>O+D,0)]).sort((k,O)=>k[1]-O[1])[0])==null?void 0:q[0];Q&&(U=Q);break}case"initialPlacement":U=a;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function Jf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xf(e){return c_.some(t=>e[t]>=0)}const __=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=sn(e,t);switch(r){case"referenceHidden":{const o=await bo(t,{...s,elementContext:"reference"}),i=Jf(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Xf(i)}}}case"escaped":{const o=await bo(t,{...s,altBoundary:!0}),i=Jf(o,n.floating);return{data:{escapedOffsets:i,escaped:Xf(i)}}}default:return{}}}}};async function b_(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=on(n),a=bs(n),l=Vn(n)==="y",u=["left","top"].includes(i)?-1:1,c=o&&l?-1:1,f=sn(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof y=="number"&&(m=a==="end"?y*-1:y),l?{x:m*c,y:d*u}:{x:d*u,y:m*c}}const S_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await b_(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},E_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:p,y:h}=w;return{x:p,y:h}}},...l}=sn(e,t),u={x:n,y:r},c=await bo(t,l),f=Vn(on(s)),d=id(f);let m=u[d],y=u[f];if(o){const w=d==="y"?"top":"left",p=d==="y"?"bottom":"right",h=m+c[w],g=m-c[p];m=Uu(h,m,g)}if(i){const w=f==="y"?"top":"left",p=f==="y"?"bottom":"right",h=y+c[w],g=y-c[p];y=Uu(h,y,g)}const v=a.fn({...t,[d]:m,[f]:y});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:o,[f]:i}}}}}},k_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=sn(e,t),c={x:n,y:r},f=Vn(s),d=id(f);let m=c[d],y=c[f];const v=sn(a,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const g=d==="y"?"height":"width",_=o.reference[d]-o.floating[g]+w.mainAxis,S=o.reference[d]+o.reference[g]-w.mainAxis;m<_?m=_:m>S&&(m=S)}if(u){var p,h;const g=d==="y"?"width":"height",_=["top","left"].includes(on(s)),S=o.reference[f]-o.floating[g]+(_&&((p=i.offset)==null?void 0:p[f])||0)+(_?0:w.crossAxis),E=o.reference[f]+o.reference[g]+(_?0:((h=i.offset)==null?void 0:h[f])||0)-(_?w.crossAxis:0);y<S?y=S:y>E&&(y=E)}return{[d]:m,[f]:y}}}},C_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...u}=sn(e,t),c=await bo(t,u),f=on(s),d=bs(s),m=Vn(s)==="y",{width:y,height:v}=o.floating;let w,p;f==="top"||f==="bottom"?(w=f,p=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(p=f,w=d==="end"?"top":"bottom");const h=v-c.top-c.bottom,g=y-c.left-c.right,_=Bn(v-c[w],h),S=Bn(y-c[p],g),E=!t.middlewareData.shift;let C=_,T=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=h),E&&!d){const j=tt(c.left,0),z=tt(c.right,0),M=tt(c.top,0),q=tt(c.bottom,0);m?T=y-2*(j!==0||z!==0?j+z:tt(c.left,c.right)):C=v-2*(M!==0||q!==0?M+q:tt(c.top,c.bottom))}await l({...t,availableWidth:T,availableHeight:C});const L=await i.getDimensions(a.floating);return y!==L.width||v!==L.height?{reset:{rects:!0}}:{}}}};function $a(){return typeof window<"u"}function Ss(e){return Xg(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vt(e){var t;return(t=(Xg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xg(e){return $a()?e instanceof Node||e instanceof st(e).Node:!1}function Rt(e){return $a()?e instanceof Element||e instanceof st(e).Element:!1}function Wt(e){return $a()?e instanceof HTMLElement||e instanceof st(e).HTMLElement:!1}function Zf(e){return!$a()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}function $o(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Ot(e);
vendor: 1,939 bytes, line 76
76return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function P_(e){return["table","td","th"].includes(Ss(e))}function La(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ud(e){const t=cd(),n=Rt(e)?Ot(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function T_(e){let t=Hn(e);for(;Wt(t)&&!ms(t);){if(ud(t))return t;if(La(t))return null;t=Hn(t)}return null}function cd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ms(e){return["html","body","#document"].includes(Ss(e))}function Ot(e){return st(e).getComputedStyle(e)}function Ma(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hn(e){if(Ss(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zf(e)&&e.host||Vt(e);return Zf(t)?t.host:t}function Zg(e){const t=Hn(e);return ms(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wt(t)&&$o(t)?t:Zg(t)}function So(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Zg(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=st(s);if(o){const a=Wu(i);return t.concat(i,i.visualViewport||[],$o(s)?s:[],a&&n?So(a):[])}return t.concat(s,So(s,[],n))}function Wu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ev(e){const t=Ot(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Wt(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,a=ia(n)!==o||ia(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function dd(e){return Rt(e)?e:e.contextElement}function Jr(e){const t=dd(e);if(!Wt(t))return Wn(1);
vendor: 4,168 bytes, line 76
76const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=ev(t);let i=(o?ia(n.width):n.width)/r,a=(o?ia(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const R_=Wn(0);function tv(e){const t=st(e);return!cd()||!t.visualViewport?R_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function O_(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==st(e)?!1:t}function yr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=dd(e);let i=Wn(1);t&&(r?Rt(r)&&(i=Jr(r)):i=Jr(e));const a=O_(o,n,r)?tv(o):Wn(0);let l=(s.left+a.x)/i.x,u=(s.top+a.y)/i.y,c=s.width/i.x,f=s.height/i.y;if(o){const d=st(o),m=r&&Rt(r)?st(r):r;let y=d,v=Wu(y);for(;v&&r&&m!==y;){const w=Jr(v),p=v.getBoundingClientRect(),h=Ot(v),g=p.left+(v.clientLeft+parseFloat(h.paddingLeft))*w.x,_=p.top+(v.clientTop+parseFloat(h.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,f*=w.y,l+=g,u+=_,y=st(v),v=Wu(y)}}return la({width:c,height:f,x:l,y:u})}function A_(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=Vt(r),a=t?La(t.floating):!1;if(r===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Wn(1);const c=Wn(0),f=Wt(r);if((f||!f&&!o)&&((Ss(r)!=="body"||$o(i))&&(l=Ma(r)),Wt(r))){const d=yr(r);u=Jr(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function j_(e){return Array.from(e.getClientRects())}function Vu(e,t){const n=Ma(e).scrollLeft;return t?t.left+n:yr(Vt(e)).left+n}function N_(e){const t=Vt(e),n=Ma(e),r=e.ownerDocument.body,s=tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Vu(e);const a=-n.scrollTop;return Ot(r).direction==="rtl"&&(i+=tt(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}function I_(e,t){const n=st(e),r=Vt(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const u=cd();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}function $_(e,t){const n=yr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Wt(e)?Jr(e):Wn(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,u=r*o.y;return{width:i,height:a,x:l,y:u}}function eh(e,t,n){let r;if(t==="viewport")r=I_(e,n);else if(t==="document")r=N_(Vt(e));else if(Rt(t))r=$_(t,n);else{const s=tv(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return la(r)}function nv(e,t){const n=Hn(e);return n===t||!Rt(n)||ms(n)?!1:Ot(n).position==="fixed"||nv(n,t)}function L_(e,t){const n=t.get(e);if(n)return n;let r=So(e,[],!1).filter(a=>Rt(a)&&Ss(a)!=="body"),s=null;const o=Ot(e).position==="fixed";let i=o?Hn(e):e;for(;Rt(i)&&!ms(i);){const a=Ot(i),l=ud(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||$o(i)&&!l&&nv(e,i))?r=r.filter(c=>c!==i):s=a,i=Hn(i)}return t.set(e,r),r}function M_(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?La(t)?[]:L_(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,c)=>{const f=eh(t,c,s);return u.top=tt(f.top,u.top),u.right=Bn(f.right,u.right),u.bottom=Bn(f.bottom,u.bottom),u.left=tt(f.left,u.left),u},eh(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function D_(e){const{width:t,height:n}=ev(e);return{width:t,height:n}}function F_(e,t,n){const r=Wt(t),s=Vt(t),o=n==="fixed",i=yr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Wn(0);if(r||!r&&!o)if((Ss(t)!=="body"||$o(s))&&(a=Ma(t)),r){const m=yr(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else s&&(l.x=Vu(s));let u=0,c=0;if(s&&!r&&!o){const m=s.getBoundingClientRect();c=m.top+a.scrollTop,u=m.left+a.scrollLeft-Vu(s,m)}const f=i.left+a.scrollLeft-l.x-u,d=i.top+a.scrollTop-l.y-c;return{x:f,y:d,width:i.width,height:i.height}}function Nl(e){return Ot(e).position==="static"}function th(e,t){if(!Wt(e)||Ot(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Vt(e)===n&&(n=n.ownerDocument.body),n}function rv(e,t){const n=st(e);if(La(e))return n;if(!Wt(e)){let s=Hn(e);for(;s&&!ms(s);
vendor: 8,713 bytes, line 76
76){if(Rt(s)&&!Nl(s))return s;s=Hn(s)}return n}let r=th(e,t);for(;r&&P_(r)&&Nl(r);)r=th(r,t);return r&&ms(r)&&Nl(r)&&!ud(r)?n:r||T_(e)||n}const z_=async function(e){const t=this.getOffsetParent||rv,n=this.getDimensions,r=await n(e.floating);return{reference:F_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function U_(e){return Ot(e).direction==="rtl"}const B_={convertOffsetParentRelativeRectToViewportRelativeRect:A_,getDocumentElement:Vt,getClippingRect:M_,getOffsetParent:rv,getElementRects:z_,getClientRects:j_,getDimensions:D_,getScale:Jr,isElement:Rt,isRTL:U_};function W_(e,t){let n=null,r;const s=Vt(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const m=pi(c),y=pi(s.clientWidth-(u+f)),v=pi(s.clientHeight-(c+d)),w=pi(u),h={rootMargin:-m+"px "+-y+"px "+-v+"px "+-w+"px",threshold:tt(0,Bn(1,l))||1};let g=!0;function _(S){const E=S[0].intersectionRatio;if(E!==l){if(!g)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(_,{...h,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,h)}n.observe(e)}return i(!0),o}function V_(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=dd(e),c=s||o?[...u?So(u):[],...So(t)]:[];c.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const f=u&&a?W_(u,n):null;let d=-1,m=null;i&&(m=new ResizeObserver(p=>{let[h]=p;h&&h.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var g;(g=m)==null||g.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let y,v=l?yr(e):null;l&&w();function w(){const p=yr(e);v&&(p.x!==v.x||p.y!==v.y||p.width!==v.width||p.height!==v.height)&&n(),v=p,y=requestAnimationFrame(w)}return n(),()=>{var p;c.forEach(h=>{s&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),f==null||f(),(p=m)==null||p.disconnect(),m=null,l&&cancelAnimationFrame(y)}}const H_=S_,q_=E_,K_=x_,Q_=C_,G_=__,nh=w_,Y_=k_,J_=(e,t,n)=>{const r=new Map,s={platform:B_,...n},o={...s.platform,_c:r};return y_(e,t,{...s,platform:o})};var $i=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ua(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ua(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!ua(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function sv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rh(e,t){const n=sv(e);return Math.round(t*n)/n}function Il(e){const t=x.useRef(e);return $i(()=>{t.current=e}),t}function X_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=x.useState(r);ua(d,r)||m(r);const[y,v]=x.useState(null),[w,p]=x.useState(null),h=x.useCallback(k=>{k!==E.current&&(E.current=k,v(k))},[]),g=x.useCallback(k=>{k!==C.current&&(C.current=k,p(k))},[]),_=o||y,S=i||w,E=x.useRef(null),C=x.useRef(null),T=x.useRef(c),L=l!=null,j=Il(l),z=Il(s),M=Il(u),q=x.useCallback(()=>{if(!E.current||!C.current)return;const k={placement:t,strategy:n,middleware:d};z.current&&(k.platform=z.current),J_(E.current,C.current,k).then(O=>{const D={...O,isPositioned:M.current!==!1};N.current&&!ua(T.current,D)&&(T.current=D,Io.flushSync(()=>{f(D)}))})},[d,t,n,z,M]);$i(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const N=x.useRef(!1);$i(()=>(N.current=!0,()=>{N.current=!1}),[]),$i(()=>{if(_&&(E.current=_),S&&(C.current=S),_&&S){if(j.current)return j.current(_,S,q);q()}},[_,S,q,j,L]);const K=x.useMemo(()=>({reference:E,floating:C,setReference:h,setFloating:g}),[h,g]),U=x.useMemo(()=>({reference:_,floating:S}),[_,S]),Q=x.useMemo(()=>{const k={position:n,left:0,top:0};if(!U.floating)return k;const O=rh(U.floating,c.x),D=rh(U.floating,c.y);return a?{...k,transform:"translate("+O+"px, "+D+"px)",...sv(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:D}},[n,a,U.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:q,refs:K,elements:U,floatingStyles:Q}),[c,q,K,U,Q])}const Z_=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?nh({element:r.current,padding:s}).fn(n):{}:r?nh({element:r,padding:s}).fn(n):{}}}},eb=(e,t)=>({...H_(e),options:[e,t]}),tb=(e,t)=>({...q_(e),options:[e,t]}),nb=(e,t)=>({...Y_(e),options:[e,t]}),rb=(e,t)=>({...K_(e),options:[e,t]}),sb=(e,t)=>({...Q_(e),options:[e,t]}),ob=(e,t)=>({...G_(e),options:[e,t]}),ib=(e,t)=>({...Z_(e),options:[e,t]});var ab="Arrow",ov=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...o}=e;return b.jsx($e.svg,{...o,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});ov.displayName=ab;var lb=ov;function ub(e,t=[]){let n=[];function r(o,i){const a=x.createContext(i),l=n.length;n=[...n,i];function u(f){const{scope:d,children:m,...y}=f,v=(d==null?void 0:d[e][l])||a,w=x.useMemo(()=>y,Object.values(y));return b.jsx(v.Provider,{value:w,children:m})}function c(f,d){const m=(d==null?void 0:d[e][l])||a,y=x.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const s=()=>{const o=n.map(i=>x.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,cb(s,...t)]}function cb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...a,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function db(e){const[t,n]=x.useState(void 0);return vr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var iv="Popper",[av,lv]=ub(iv),[jC,uv]=av(iv),cv="PopperAnchor",dv=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,o=uv(cv,n),i=x.useRef(null),a=Tt(t,i);return x.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:b.jsx($e.div,{...s,ref:a})});dv.displayName=cv;var fd="PopperContent",[fb,hb]=av(fd),fv=x.forwardRef((e,t)=>{var gt,ln,un,cn,Wo,br;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:y,...v}=e,w=uv(fd,n),[p,h]=x.useState(null),g=Tt(t,Yn=>h(Yn)),[_,S]=x.useState(null),E=db(_),C=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,L=r+(o!=="center"?"-"+o:""),j=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},z=Array.isArray(u)?u:[u],M=z.length>0,q={padding:j,boundary:z.filter(mb),altBoundary:M},{refs:N,floatingStyles:K,placement:U,isPositioned:Q,middlewareData:k}=X_({strategy:"fixed",placement:L,whileElementsMounted:(...Yn)=>V_(...Yn,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[eb({mainAxis:s+T,alignmentAxis:i}),l&&tb({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?nb():void 0,...q}),l&&rb({...q}),sb({...q,apply:({elements:Yn,rects:Cs,availableWidth:Vo,availableHeight:dn})=>{const{width:Xa,height:Za}=Cs.reference,Ee=Yn.floating.style;Ee.setProperty("--radix-popper-available-width",`${Vo}px`),Ee.setProperty("--radix-popper-available-height",`${dn}px`),Ee.setProperty("--radix-popper-anchor-width",`${Xa}
76px`),Ee.setProperty("--radix-popper-anchor-height",`${Za}px`)}}),_&&ib({element:_,padding:a}),gb({arrowWidth:C,arrowHeight:T}),d&&ob({strategy:"referenceHidden",...q})]}),[O,D]=mv(U),$=Bt(y);vr(()=>{Q&&($==null||$())},[Q,$]);const F=(gt=k.arrow)==null?void 0:gt.x,J=(ln=k.arrow)==null?void 0:ln.y,ce=((un=k.arrow)==null?void 0:un.centerOffset)!==0,[Je,ee]=x.useState();return vr(()=>{p&&ee(window.getComputedStyle(p).zIndex)},[p]),b.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:Q?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Je,"--radix-popper-transform-origin":[(cn=k.transformOrigin)==null?void 0:cn.x,(Wo=k.transformOrigin)==null?void 0:Wo.y].join(" "),...((br=k.hide)==null?void 0:br.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(fb,{scope:n,placedSide:O,onArrowChange:S,arrowX:F,arrowY:J,shouldHideArrow:ce,children:b.jsx($e.div,{"data-side":O,"data-align":D,...v,ref:g,style:{...v.style,animation:Q?void 0:"none"}})})})});fv.displayName=fd;var hv="PopperArrow",pb={top:"bottom",right:"left",bottom:"top",left:"right"},pv=x.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,o=hb(hv,r),i=pb[o.placedSide];return b.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:b.jsx(lb,{...s,ref:n,style:{...s.style,display:"block"}})})});pv.displayName=hv;function mb(e){return e!==null}var gb=e=>({name:"transformOrigin",options:e,fn(t){var w,p,h;const{placement:n,rects:r,middlewareData:s}=t,i=((w=s.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,c]=mv(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((p=s.arrow)==null?void 0:p.x)??0)+a/2,m=(((h=s.arrow)==null?void 0:h.y)??0)+l/2;let y="",v="";return u==="bottom"?(y=i?f:`${d}px`,v=`${-l}px`):u==="top"?(y=i?f:`${d}px`,v=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,v=i?f:`${m}px`):u==="left"&&(y=`${r.floating.width+l}px`,v=i?f:`${m}px`),{data:{x:y,y:v}}}});function mv(e){const[t,n="center"]=e.split("-");return[t,n]}var vb=dv,yb=fv,wb=pv,[Da,NC]=fg("Tooltip",[lv]),hd=lv(),gv="TooltipProvider",xb=700,sh="tooltip.open",[_b,vv]=Da(gv),yv=e=>{const{__scopeTooltip:t,delayDuration:n=xb,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=e,[i,a]=x.useState(!0),l=x.useRef(!1),u=x.useRef(0);return x.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),b.jsx(_b,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:x.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(c=>{l.current=c},[]),disableHoverableContent:s,children:o})};yv.displayName=gv;var wv="Tooltip",[IC,Fa]=Da(wv),Hu="TooltipTrigger",bb=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Fa(Hu,n),o=vv(Hu,n),i=hd(n),a=x.useRef(null),l=Tt(t,a,s.onTriggerChange),u=x.useRef(!1),c=x.useRef(!1),f=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),b.jsx(vb,{asChild:!0,...i,children:b.jsx($e.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:we(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),c.current=!0)}),onPointerLeave:we(e.onPointerLeave,()=>{s.onTriggerLeave(),c.current=!1}),onPointerDown:we(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:we(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:we(e.onBlur,s.onClose),onClick:we(e.onClick,s.onClose)})})});bb.displayName=Hu;var Sb="TooltipPortal",[$C,Eb]=Da(Sb,{forceMount:void 0}),gs="TooltipContent",xv=x.forwardRef((e,t)=>
vendor: 4,233 bytes, line 76
76{const n=Eb(gs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=e,i=Fa(gs,e.__scopeTooltip);return b.jsx(ed,{present:r||i.open,children:i.disableHoverableContent?b.jsx(_v,{side:s,...o,ref:t}):b.jsx(kb,{side:s,...o,ref:t})})}),kb=x.forwardRef((e,t)=>{const n=Fa(gs,e.__scopeTooltip),r=vv(gs,e.__scopeTooltip),s=x.useRef(null),o=Tt(t,s),[i,a]=x.useState(null),{trigger:l,onClose:u}=n,c=s.current,{onPointerInTransitChange:f}=r,d=x.useCallback(()=>{a(null),f(!1)},[f]),m=x.useCallback((y,v)=>{const w=y.currentTarget,p={x:y.clientX,y:y.clientY},h=Rb(p,w.getBoundingClientRect()),g=Ob(p,h),_=Ab(v.getBoundingClientRect()),S=Nb([...g,..._]);a(S),f(!0)},[f]);return x.useEffect(()=>()=>d(),[d]),x.useEffect(()=>{if(l&&c){const y=w=>m(w,c),v=w=>m(w,l);return l.addEventListener("pointerleave",y),c.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",y),c.removeEventListener("pointerleave",v)}}},[l,c,m,d]),x.useEffect(()=>{if(i){const y=v=>{const w=v.target,p={x:v.clientX,y:v.clientY},h=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),g=!jb(p,i);h?d():g&&(d(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,c,i,u,d]),b.jsx(_v,{...e,ref:o})}),[Cb,Pb]=Da(wv,{isInside:!1}),_v=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,l=Fa(gs,n),u=hd(n),{onClose:c}=l;return x.useEffect(()=>(document.addEventListener(sh,c),()=>document.removeEventListener(sh,c)),[c]),x.useEffect(()=>{if(l.trigger){const f=d=>{const m=d.target;m!=null&&m.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),b.jsx(Zc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:b.jsxs(yb,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(dg,{children:r}),b.jsx(Cb,{scope:n,isInside:!0,children:b.jsx(Tx,{id:l.contentId,role:"tooltip",children:s||r})})]})})});xv.displayName=gs;var bv="TooltipArrow",Tb=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=hd(n);return Pb(bv,n).isInside?null:b.jsx(wb,{...s,...r,ref:t})});Tb.displayName=bv;function Rb(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ob(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 Ab(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function jb(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o].x,l=t[o].y,u=t[i].x,c=t[i].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(s=!s)}return s}function Nb(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),Ib(t)}function Ib(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var $b=yv,Sv=xv;const Lb=$b,Mb=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 23,179 bytes, line 76
76b.jsx(Sv,{ref:r,sideOffset:t,className:Le("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Mb.displayName=Sv.displayName;var za=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(){}},Ua=typeof window>"u"||"Deno"in globalThis;function xt(){}function Db(e,t){return typeof e=="function"?e(t):e}function Fb(e){return typeof e=="number"&&e>=0&&e!==1/0}function zb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function oh(e,t){return typeof e=="function"?e(t):e}function Ub(e,t){return typeof e=="function"?e(t):e}function ih(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==pd(i,t.options))return!1}else if(!ko(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function ah(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Eo(t.options.mutationKey)!==Eo(o))return!1}else if(!ko(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function pd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Eo)(e)}function Eo(e){return JSON.stringify(e,(t,n)=>qu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],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).some(n=>!ko(e[n],t[n])):!1}function Ev(e,t){if(e===t)return e;const n=lh(e)&&lh(t);if(n||qu(e)&&qu(t)){const r=n?e:Object.keys(e),s=r.length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let l=0;for(let u=0;u<i;u++){const c=n?u:o[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,l++):(a[c]=Ev(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&l++)}return s===i&&l===s?e:a}return t}function lh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function qu(e){if(!uh(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!uh(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function uh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Bb(e){return new Promise(t=>{setTimeout(t,e)})}function Wb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ev(e,t):t}function Vb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Hb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var md=Symbol();function kv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===md?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var or,En,Zr,zh,qb=(zh=class extends za{constructor(){super();Z(this,or);Z(this,En);Z(this,Zr);H(this,Zr,t=>{if(!Ua&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,En)||this.setEventListener(P(this,Zr))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,En))==null||t.call(this),H(this,En,void 0))}setEventListener(t){var n;H(this,Zr,t),(n=P(this,En))==null||n.call(this),H(this,En,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,or)!==t&&(H(this,or,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,or)=="boolean"?P(this,or):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},or=new WeakMap,En=new WeakMap,Zr=new WeakMap,zh),Cv=new qb,es,kn,ts,Uh,Kb=(Uh=class extends za{constructor(){super();Z(this,es,!0);Z(this,kn);Z(this,ts);H(this,ts,t=>{if(!Ua&&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(){P(this,kn)||this.setEventListener(P(this,ts))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,kn))==null||t.call(this),H(this,kn,void 0))}setEventListener(t){var n;H(this,ts,t),(n=P(this,kn))==null||n.call(this),H(this,kn,t(this.setOnline.bind(this)))}setOnline(t){P(this,es)!==t&&(H(this,es,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,es)}},es=new WeakMap,kn=new WeakMap,ts=new WeakMap,Uh),ca=new Kb;function Qb(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function Gb(e){return Math.min(1e3*2**e,3e4)}function Pv(e){return(e??"online")==="online"?ca.isOnline():!0}var Tv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $l(e){return e instanceof Tv}function Rv(e){let t=!1,n=0,r=!1,s;const o=Qb(),i=v=>{var w;r||(d(new Tv(v)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Cv.isFocused()&&(e.networkMode==="always"||ca.isOnline())&&e.canRun(),c=()=>Pv(e.networkMode)&&e.canRun(),f=v=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,v),s==null||s(),o.resolve(v))},d=v=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,v),s==null||s(),o.reject(v))},m=()=>new Promise(v=>{var w;s=p=>{(r||u())&&v(p)},(w=e.onPause)==null||w.call(e)}).then(()=>{var v;s=void 0,r||(v=e.onContinue)==null||v.call(e)}),y=()=>{if(r)return;let v;const w=n===0?e.initialPromise:void 0;try{v=w??e.fn()}catch(p){v=Promise.reject(p)}Promise.resolve(v).then(f).catch(p=>{var E;if(r)return;const h=e.retry??(Ua?0:3),g=e.retryDelay??Gb,_=typeof g=="function"?g(n,p):g,S=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,p);if(t||!S){d(p);return}n++,(E=e.onFail)==null||E.call(e,n,p),Bb(_).then(()=>u()?void 0:m()).then(()=>{t?d(p):y()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?y():m().then(y),o)}}function Yb(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=a=>setTimeout(a,0);const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Fe=Yb(),ir,Bh,Ov=(Bh=class{constructor(){Z(this,ir)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fb(this.gcTime)&&H(this,ir,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ua?1/0:5*60*1e3))}clearGcTimeout(){P(this,ir)&&(clearTimeout(P(this,ir)),H(this,ir,void 0))}},ir=new WeakMap,Bh),ns,rs,lt,je,Po,ar,_t,qt,Wh,Jb=(Wh=class extends Ov{constructor(t){super();Z(this,_t);Z(this,ns);Z(this,rs);Z(this,lt);Z(this,je);Z(this,Po);Z(this,ar);H(this,ar,!1),H(this,Po,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,lt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,ns,Zb(this.options)),this.state=t.state??P(this,ns),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,je))==null?void 0:t.promise}setOptions(t){this.options={...P(this,Po),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,lt).remove(this)}setData(t,n){const r=Wb(this.state.data,t,this.options);return Te(this,_t,qt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Te(this,_t,qt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=P(this,je))==null?void 0:r.promise;return(s=P(this,je))==null||s.cancel(t),n?n.then(xt).catch(xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,ns))}isActive(){return this.observers.some(t=>Ub(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===md||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!zb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,je))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,je))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,lt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,je)&&(P(this,ar)?P(this,je).cancel({revert:!0}):P(this,je).cancelRetry()),this.scheduleGc()),P(this,lt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,_t,qt).call(this,{type:"invalidate"})}fetch(t,n){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,je))return P(this,je).continueRetry(),P(this,je).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(H(this,ar,!0),r.signal)})},o=()=>{const f=kv(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return s(d),H(this,ar,!1),this.options.persister?this.options.persister(f,d,this):f(d)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};s(i),(l=this.options.behavior)==null||l.onFetch(i,this),H(this,rs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&Te(this,_t,qt).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const a=f=>{var d,m,y,v;$l(f)&&f.silent||Te(this,_t,qt).call(this,{type:"error",error:f}),$l(f)||((m=(d=P(this,lt).config).onError)==null||m.call(d,f,this),(v=(y=P(this,lt).config).onSettled)==null||v.call(y,this.state.data,f,this)),this.scheduleGc()};return H(this,je,Rv({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,m,y,v;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(w){a(w);return}(m=(d=P(this,lt).config).onSuccess)==null||m.call(d,f,this),(v=(y=P(this,lt).config).onSettled)==null||v.call(y,f,this.state.error,this),this.scheduleGc()},onError:a,onFail:(f,d)=>{Te(this,_t,qt).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{Te(this,_t,qt).call(this,{type:"pause"})},onContinue:()=>{Te(this,_t,qt).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),P(this,je).start()}},ns=new WeakMap,rs=new WeakMap,lt=new WeakMap,je=new WeakMap,Po=new WeakMap,ar=new WeakMap,_t=new WeakSet,qt=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,...Xb(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return $l(s)&&s.revert&&P(this,rs)?{...P(this,rs),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Fe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,lt).notify({query:this,type:"updated",action:t})})},Wh);function Xb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Zb(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 Lt,Vh,eS=(Vh=class extends za{constructor(t={}){super();Z(this,Lt);this.config=t,H(this,Lt,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??pd(s,n);let i=this.get(o);return i||(i=new Jb({cache:this,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){P(this,Lt).has(t.queryHash)||(P(this,Lt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,Lt).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,Lt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,Lt).get(t)}getAll(){return[...P(this,Lt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ih(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ih(t,r)):n}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Lt=new WeakMap,Vh),Mt,Me,lr,Dt,gn,Hh,tS=(Hh=class extends Ov{constructor(t){super();Z(this,Dt);Z(this,Mt);Z(this,Me);Z(this,lr);this.mutationId=t.mutationId,H(this,Me,t.mutationCache),H(this,Mt,[]),this.state=t.state||nS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Mt).includes(t)||(P(this,Mt).push(t),this.clearGcTimeout(),P(this,Me).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,Mt,P(this,Mt).filter(n=>n!==t)),this.scheduleGc(),P(this,Me).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Mt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Me).remove(this))}continue(){var t;return((t=P(this,lr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,i,a,l,u,c,f,d,m,y,v,w,p,h,g,_,S,E,C;H(this,lr,Rv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,L)=>{Te(this,Dt,gn).call(this,{type:"failed",failureCount:T,error:L})},onPause:()=>{Te(this,Dt,gn).call(this,{type:"pause"})},onContinue:()=>{Te(this,Dt,gn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Me).canRun(this)}));const n=this.state.status==="pending",r=!P(this,lr).canStart();try{if(!n){Te(this,Dt,gn).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(s=P(this,Me).config).onMutate)==null?void 0:o.call(s,t,this));const L=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));L!==this.state.context&&Te(this,Dt,gn).call(this,{type:"pending",context:L,variables:t,isPaused:r})}const T=await P(this,lr).start();return await((u=(l=P(this,Me).config).onSuccess)==null?void 0:u.call(l,T,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,T,t,this.state.context)),await((m=(d=P(this,Me).config).onSettled)==null?void 0:m.call(d,T,null,this.state.variables,this.state.context,this)),await((v=(y=this.options).onSettled)==null?void 0:v.call(y,T,null,t,this.state.context)),Te(this,Dt,gn).call(this,{type:"success",data:T}),T}catch(T){try{throw await((p=(w=P(this,Me).config).onError)==null?void 0:p.call(w,T,t,this.state.context,this)),await((g=(h=this.options).onError)==null?void 0:g.call(h,T,t,this.state.context)),await((S=(_=P(this,Me).config).onSettled)==null?void 0:S.call(_,void 0,T,this.state.variables,this.state.context,this)),await((C=(E=this.options).onSettled)==null?void 0:C.call(E,void 0,T,t,this.state.context)),T}finally{Te(this,Dt,gn).call(this,{type:"error",error:T})}}finally{P(this,Me).runNext(this)}}},Mt=new WeakMap,Me=new WeakMap,lr=new WeakMap,Dt=new WeakSet,gn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Fe.batch(()=>{P(this,Mt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Me).notify({mutation:this,type:"updated",action:t})})},Hh);function nS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xe,To,qh,rS=(qh=class extends za{constructor(t={}){super();Z(this,Xe);Z(this,To);this.config=t,H(this,Xe,new Map),H(this,To,Date.now())}build(t,n,r){const s=new tS({mutationCache:this,mutationId:++Ko(this,To)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){const n=mi(t),r=P(this,Xe).get(n)??[];r.push(t),P(this,Xe).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=mi(t);if(P(this,Xe).has(n)){const s=(r=P(this,Xe).get(n))==null?void 0:r.filter(o=>o!==t);s&&(s.length===0?P(this,Xe).delete(n):P(this,Xe).set(n,s))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=P(this,Xe).get(mi(t)))==null?void 0:r.find(s=>s.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=P(this,Xe).get(mi(t)))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...P(this,Xe).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ah(n,r))}findAll(t={}){return this.getAll().filter(n=>ah(t,n))}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Fe.batch(()=>Promise.all(t.map(n=>n.continue().catch(xt))))}},Xe=new WeakMap,To=new WeakMap,qh);function mi(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function ch(e){return{onFetch:(t,n)=>{var c,f,d,m,y;const r=t.options,s=(d=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],i=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let v=!1;const w=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},p=kv(t.options,t.fetchOptions),h=async(g,_,S)=>{if(v)return Promise.reject();if(_==null&&g.pages.length)return Promise.resolve(g);const E={queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};w(E);const C=await p(E),{maxPages:T}=t.options,L=S?Hb:Vb;return{pages:L(g.pages,C,T),pageParams:L(g.pageParams,_,T)}};if(s&&o.length){const g=s==="backward",_=g?sS:dh,S={pages:o,pageParams:i},E=_(r,S);a=await h(S,E,g)}else{const g=e??o.length;do{const _=l===0?i[0]??r.initialPageParam:dh(r,a);if(l>0&&_==null)break;a=await h(a,_),l++}while(l<g)}return a};t.options.persister?t.fetchFn=()=>{var v,w;return(w=(v=t.options).persister)==null?void 0:w.call(v,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function dh(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 sS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var pe,Cn,Pn,ss,os,Tn,is,as,Kh,oS=(Kh=class{constructor(e={}){Z(this,pe);Z(this,Cn);Z(this,Pn);Z(this,ss);Z(this,os);Z(this,Tn);Z(this,is);Z(this,as);H(this,pe,e.queryCache||new eS),H(this,Cn,e.mutationCache||new rS),H(this,Pn,e.defaultOptions||{}),H(this,ss,new Map),H(this,os,new Map),H(this,Tn,0)}mount(){Ko(this,Tn)._++,P(this,Tn)===1&&(H(this,is,Cv.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,pe).onFocus())})),H(this,as,ca.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,pe).onOnline())})))}unmount(){var e,t;Ko(this,Tn)._--,P(this,Tn)===0&&((e=P(this,is))==null||e.call(this),H(this,is,void 0),(t=P(this,as))==null||t.call(this),H(this,as,void 0))}isFetching(e){return P(this,pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Cn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=P(this,pe).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(oh(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return P(this,pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=P(this,pe).get(r.queryHash),o=s==null?void 0:s.state.data,i=Db(t,o);if(i!==void 0)return P(this,pe).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Fe.batch(()=>P(this,pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,pe);Fe.batch(()=>
76{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,pe),r={type:"active",...e};return Fe.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Fe.batch(()=>P(this,pe).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(xt).catch(xt)}invalidateQueries(e={},t={}){return Fe.batch(()=>{if(P(this,pe).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Fe.batch(()=>P(this,pe).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(xt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(xt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,pe).build(this,t);return n.isStaleByTime(oh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xt).catch(xt)}fetchInfiniteQuery(e){return e.behavior=ch(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xt).catch(xt)}ensureInfiniteQueryData(e){return e.behavior=ch(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ca.isOnline()?P(this,Cn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,pe)}getMutationCache(){return P(this,Cn)}getDefaultOptions(){return P(this,Pn)}setDefaultOptions(e){H(this,Pn,e)}setQueryDefaults(e,t){P(this,ss).set(Eo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,ss).values()];let n={};return t.forEach(r=>{ko(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){P(this,os).set(Eo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,os).values()];let n={};return t.forEach(r=>{ko(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,Pn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===md&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,Pn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,pe).clear(),P(this,Cn).clear()}},pe=new WeakMap,Cn=new WeakMap,Pn=new WeakMap,ss=new WeakMap,os=new WeakMap,Tn=new WeakMap,is=new WeakMap,as=new WeakMap,Kh),iS=x.createContext(void 0),aS=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(iS.Provider,{value:e,children:t}));/** 77 * @remix-run/router v1.20.0 78 * 79 * Copyright (c) Remix Software Inc. 80 * 81 * This source code is licensed under the MIT license found in the 82 * LICENSE.md file in the root directory of this source tree. 83 * 84 * @license MIT 85 */function da(){return da=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},da.apply(this,arguments)}var An;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(An||(An={}));const fh="popstate";function lS(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:a}=r.location;return Ku("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:jv(s)}return cS(t,n,null,e)}function Ye(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Av(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uS(){return Math.random().toString(36).substr(2,8)}function hh(e,t){return{usr:e.state,key:e.key,idx:t}}function Ku(e,t,n,r){return n===void 0&&(n=null),da({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ba(t):t,{state:n,key:t&&t.key||r||uS()})}function jv(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 Ba(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 cS(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=An.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(da({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function f(){a=An.Pop;let w=c(),p=w==null?null:w-u;u=w,l&&l({action:a,location:v.location,delta:p})}function d(w,p){a=An.Push;let h=Ku(v.location,w,p);u=c()+1;let g=hh(h,u),_=v.createHref(h);try{i.pushState(g,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(_)}o&&l&&l({action:a,location:v.location,delta:1})}function m(w,p){a=An.Replace;let h=Ku(v.location,w,p);u=c();let g=hh(h,u),_=v.createHref(h);i.replaceState(g,"",_),o&&l&&l({action:a,location:v.location,delta:0})}function y(w){let p=s.location.origin!=="null"?s.location.origin:s.location.href,h=typeof w=="string"?w:jv(w);return h=h.replace(/ $/,"%20"),Ye(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let v={get action(){return a},get location(){return e(s,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(fh,f),l=w,()=>{s.removeEventListener(fh,f),l=null}},createHref(w){return t(s,w)},createURL:y,encodeLocation(w){let p=y(w);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:m,go(w){return i.go(w)}};return v}var ph;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ph||(ph={}));function dS(e,t,n){return n===void 0&&(n="/"),fS(e,t,n,!1)}function fS(e,t,n,r){let s=typeof t=="string"?Ba(t):t,o=$v(s.pathname||"/",n);if(o==null)return null;let i=Nv(e);hS(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=ES(o);a=bS(i[l],u,r)}return a}function Nv(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(Ye(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
85id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Xr([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Ye(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Nv(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:xS(u,o.index),routesMeta:c})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of Iv(o.path))s(o,i,l)}),t}function Iv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=Iv(r.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function hS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_S(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const pS=/^:[\w-]+$/,mS=3,gS=2,vS=1,yS=10,wS=-2,mh=e=>e==="*";function xS(e,t){let n=e.split("/"),r=n.length;return n.some(mh)&&(r+=wS),t&&(r+=gS),n.filter(s=>!mh(s)).reduce((s,o)=>s+(pS.test(o)?mS:o===""?vS:yS),r)}function _S(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function bS(e,t,n){let{routesMeta:r}=e,s={},o="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=gh({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),d=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=gh({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;
vendor: 4,131 bytes, lines 85-94
85Object.assign(s,f.params),i.push({params:s,pathname:Xr([o,f.pathname]),pathnameBase:kS(Xr([o,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(o=Xr([o,f.pathnameBase]))}return i}function gh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=SS(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:d,isOptional:m}=c;if(d==="*"){let v=a[f]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const y=a[f];return m&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function SS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Av(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function ES(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Av(!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 $v(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Xr=e=>e.join("/").replace(/\/\/+/g,"/"),kS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function CS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Lv=["post","put","patch","delete"];new Set(Lv);const PS=["get",...Lv];new Set(PS);/** 86 * React Router v6.27.0 87 * 88 * Copyright (c) Remix Software Inc. 89 * 90 * This source code is licensed under the MIT license found in the 91 * LICENSE.md file in the root directory of this source tree. 92 * 93 * @license MIT 94 */function fa(){return fa=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},fa.apply(this,arguments)}const TS=x.createContext(null),RS=x.createContext(null),Mv=x.createContext(null),Wa=x.createContext(null),Va=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Dv=x.createContext(null);function gd(){return x.useContext(Wa)!=null}function Fv(){return gd()||Ye(!1),x.useContext(Wa).location}function OS(e,t){return AS(e,t)}function AS(e,t,n,r){gd()||Ye(!1);let{navigator:s}=x.useContext(Mv),{matches:o}=x.useContext(Va),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=Fv(),c;if(t){var f;let w=typeof t=="string"?Ba(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Ye(!1),c=w}else c=u;let d=c.pathname||"/",m=d;if(l!=="/"){let w=l.replace(/^\//,"").split("/");m="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=dS(e,{pathname:m}),v=LS(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Xr([l,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Xr([l,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&v?x.createElement(Wa.Provider,{value:{location:fa({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:An.Pop}},v):v}function jS(){let e=zS(),t=CS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application
94Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:s},n):null,null)}const NS=x.createElement(jS,null);class IS extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(Va.Provider,{value:this.props.routeContext},x.createElement(Dv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $S(e){let{routeContext:t,match:n,children:r}=e,s=x.useContext(TS);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Va.Provider,{value:t},r)}function LS(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let c=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||Ye(!1),i=i.slice(0,Math.min(i.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<i.length;c++){let f=i[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:d,errors:m}=n,y=f.route.loader&&d[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||y){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,f,d)=>{let m,y=!1,v=null,w=null;n&&(m=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||NS,l&&(u<0&&d===0?(y=!0,w=null):u===d&&(y=!0,w=f.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,d+1)),h=()=>{let g;return m?g=v:y?g=w:f.route.Component?g=x.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=c,x.createElement($S,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:g})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?x.createElement(IS,{location:n.location,revalidation:n.revalidation,component:v,error:m,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var Qu=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}(Qu||{});function MS(e){let t=x.useContext(RS);return t||Ye(!1),t}function DS(e){let t=x.useContext(Va);return t||Ye(!1),t}function FS(e){let t=DS(),n=t.matches[t.matches.length-1];return n.route.id||Ye(!1),n.route.id}function zS(){var e;let t=x.useContext(Dv),n=MS(Qu.UseRouteError),r=FS(Qu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Gu(e){Ye(!1)}function US(e){let{basename:t="/",children:n=null,location:r,navigationType:s=An.Pop,navigator:o,static:i=!1,future:a}=e;gd()&&Ye(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:o,static:i,future:fa({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=Ba(r));let{pathname:c="/",search:f="",hash:d="",state:m=null,key:y="default"}=r,v=x.useMemo(()=>{let w=$v(c,l);return w==null?null:{location:{pathname:w,search:f,hash:d,state:m,key:y},navigationType:s}},[l,c,f,d,m,y,s]);return v==null?null:x.createElement(Mv.Provider,{value:u},x.createElement(Wa.Provider,{children:n,value:v}))}function BS(e){let{children:t,location:n}=e;return OS(Yu(t),n)}new Promise(()=>{});function Yu(e,t){t===void 0&&(t=[]);let n=[];
94return x.Children.forEach(e,(r,s)=>{if(!x.isValidElement(r))return;let o=[...t,s];if(r.type===x.Fragment){n.push.apply(n,Yu(r.props.children,o));return}r.type!==Gu&&Ye(!1),!r.props.index||!r.props.children||Ye(!1);let i={id:r.props.id||o.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&&(i.children=Yu(r.props.children,o)),n.push(i)}),n}/** 95 * React Router DOM v6.27.0 96 * 97 * Copyright (c) Remix Software Inc. 98 * 99 * This source code is licensed under the MIT license found in the 100 * LICENSE.md file in the root directory of this source tree. 101 * 102 * @license MIT 103 */const WS="6";try{window.__reactRouterVersion=WS}catch{}const VS="startTransition",vh=Uy[VS];function HS(e){let{basename:t,children:n,future:r,window:s}=e,o=x.useRef();o.current==null&&(o.current=lS({window:s,v5Compat:!0}));let i=o.current,[a,l]=x.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},c=x.useCallback(f=>{u&&vh?vh(()=>l(f)):l(f)},[l,u]);return x.useLayoutEffect(()=>i.listen(c),[i,c]),x.createElement(US,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var yh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(yh||(yh={}));var wh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wh||(wh={}));const qS=Fg("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-semibold ring-offset-background transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-soft hover:shadow-medium",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",accent:"bg-gradient-accent text-accent-foreground hover:shadow-glow transform hover:scale-105",hero:"bg-gradient-hero text-primary-foreground hover:shadow-glow transform hover:scale-105 font-bold",quiz:"bg-card text-card-foreground border-2 border-border hover:border-primary hover:bg-gradient-card transform hover:scale-105",social:"bg-card text-card-foreground border border-border hover:border-accent hover:bg-accent/10 transform hover:scale-105"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),dr=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const i=r?_o:"button";return b.jsx(i,{className:Le(qS({variant:t,size:n,className:e})),ref:o,...s})});dr.displayName="Button";const Lo=x.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:Le("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Lo.displayName="Card";const Mo=x.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:Le("flex flex-col space-y-1.5 p-6",e),...t}));Mo.displayName="CardHeader";const Do=x.forwardRef(({className:e,...t},n)=>b.jsx("h3",{ref:n,className:Le("text-2xl font-semibold leading-none tracking-tight",e),...t}));Do.displayName="CardTitle";const KS=x.forwardRef(({className:e,...t},n)=>b.jsx("p",{ref:n,className:Le("text-sm text-muted-foreground",e),...t}));KS.displayName="CardDescription";const Fo=x.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:Le("p-6 pt-0",e),...t}));
103Fo.displayName="CardContent";const QS=x.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:Le("flex items-center p-6 pt-0",e),...t}));QS.displayName="CardFooter";const GS=({onStartQuiz:e})=>b.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-background via-secondary/30 to-primary/5 p-4",children:b.jsxs(Lo,{className:"w-full max-w-md shadow-medium animate-slide-up bg-gradient-card",children:[b.jsxs(Mo,{className:"text-center pb-4",children:[b.jsx("div",{className:"w-16 h-16 mx-auto mb-4 bg-gradient-hero rounded-full flex items-center justify-center shadow-glow",children:b.jsx("span",{className:"text-2xl font-bold text-primary-foreground",children:"ðª"})}),b.jsx(Do,{className:"text-2xl font-bold bg-gradient-hero bg-clip-text text-transparent",children:"Fitness Pro Quiz"}),b.jsx("p",{className:"text-muted-foreground mt-2",children:"Test your fitness industry knowledge in just 3 minutes"})]}),b.jsxs(Fo,{className:"space-y-6",children:[b.jsxs("div",{className:"space-y-3 text-sm text-muted-foreground",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx("div",{className:"w-2 h-2 bg-accent rounded-full"}),b.jsx("span",{children:"10 questions about fitness, nutrition & business"})]}),b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx("div",{className:"w-2 h-2 bg-accent rounded-full"}),b.jsx("span",{children:"20 seconds per question"})]}),b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx("div",{className:"w-2 h-2 bg-accent rounded-full"}),b.jsx("span",{children:"Get your personalized results instantly"})]})]}),b.jsx(dr,{onClick:e,variant:"hero",size:"lg",className:"w-full text-lg py-6",children:"Start Quiz"}),b.jsx("p",{className:"text-xs text-center text-muted-foreground",children:"No registration required to start"})]})]})});function YS(e,t=[]){let n=[];function r(o,i){const a=x.createContext(i),l=n.length;n=[...n,i];function u(f){const{scope:d,children:m,...y}=f,v=(d==null?void 0:d[e][l])||a,w=x.useMemo(()=>y,Object.values(y));return b.jsx(v.Provider,{value:w,children:m})}function c(f,d){const m=(d==null?void 0:d[e][l])||a,y=x.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const s=()=>{const o=n.map(i=>x.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,JS(s,...t)]}function JS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...a,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var vd="Progress",yd=100,[XS,LC]=YS(vd),[ZS,eE]=XS(vd),zv=x.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:s,getValueLabel:o=tE,...i}=e;(s||s===0)&&!xh(s)&&console.error(nE(`${s}`,"Progress"));const a=xh(s)?s:yd;r!==null&&!_h(r,a)&&console.error(rE(`${r}`,"Progress"));const l=_h(r,a)?r:null,u=ha(l)?o(l,a):void 0;return b.jsx(ZS,{scope:n,value:l,max:a,children:b.jsx($e.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":ha(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":Wv(l,a),"data-value":l??void 0,"data-max":a,...i,ref:t})})});zv.displayName=vd;var Uv="ProgressIndicator",Bv=x.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,s=eE(Uv,n);return b.jsx($e.div,{"data-state":Wv(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...r,ref:t})});Bv.displayName=Uv;function tE(e,t){return`${Math.round(e/t*100)}%`}function Wv(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function ha(e){return typeof e=="number"}function xh(e){return ha(e)&&!isNaN(e)&&e>0}function _h(e,t){return ha(e)&&!isNaN(e)&&e<=t&&e>=0}function nE(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${yd}\`.`}function rE(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 104 - a positive number 105 - less than the value passed to \`max\` (or ${yd} if no \`max\` prop is set) 106 - \`null\` or \`undefined\` if the progress is indeterminate. 107 108Defaulting to \`null\`.`}var Vv=zv,sE=Bv;const Hv=x.forwardRef(({className:e,value:t,...n},r)=>
108b.jsx(Vv,{ref:r,className:Le("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:b.jsx(sE,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Hv.displayName=Vv.displayName;const oE=({question:e,questionNumber:t,totalQuestions:n,onAnswer:r,onTimeUp:s})=>{const[o,i]=x.useState(20),[a,l]=x.useState(null);x.useEffect(()=>{i(20),l(null)},[e.id]),x.useEffect(()=>{if(o<=0){s();return}const m=setInterval(()=>{i(y=>y-1)},1e3);return()=>clearInterval(m)},[o,s]);const u=m=>{a===null&&(l(m),r(m))},c=(t-1)/n*100,f=o/20*100,d=()=>o<=5?"bg-destructive":o<=10?"bg-warning":"bg-success";return b.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-background via-secondary/30 to-primary/5 p-4",children:b.jsxs(Lo,{className:"w-full max-w-2xl shadow-medium animate-slide-up bg-gradient-card",children:[b.jsxs(Mo,{className:"pb-4",children:[b.jsxs("div",{className:"flex items-center justify-between mb-4",children:[b.jsxs("span",{className:"text-sm font-medium text-muted-foreground",children:["Question ",t," of ",n]}),b.jsxs("div",{className:`px-3 py-1 rounded-full text-sm font-bold ${o<=5?"bg-destructive text-destructive-foreground animate-timer-pulse":o<=10?"bg-warning text-warning-foreground":"bg-success text-success-foreground"}`,children:[o,"s"]})]}),b.jsx(Hv,{value:c,className:"mb-4"}),b.jsx("div",{className:"mb-2",children:b.jsx("div",{className:`h-2 rounded-full transition-all duration-1000 ${d()}`,style:{width:`${f}%`}})}),b.jsx(Do,{className:"text-lg md:text-xl leading-relaxed",children:e.question})]}),b.jsxs(Fo,{children:[b.jsx("div",{className:"grid gap-3",children:e.options.map((m,y)=>b.jsxs(dr,{variant:"quiz",className:`p-4 h-auto text-left justify-start text-wrap ${a===y?"border-accent bg-accent/10":""}`,onClick:()=>u(y),disabled:a!==null,children:[b.jsxs("span",{className:"font-semibold text-accent mr-3",children:[String.fromCharCode(65+y),"."]}),b.jsx("span",{className:"flex-1",children:m})]},y))}),a!==null&&b.jsx("div",{className:"mt-6 text-center",children:b.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-success/10 text-success rounded-lg",children:[b.jsx("span",{className:"w-2 h-2 bg-success rounded-full animate-pulse"}),b.jsx("span",{className:"text-sm font-medium",children:"Answer recorded"})]})})]})]})})},qv=x.forwardRef(({className:e,type:t,...n},r)=>b.jsx("input",{type:t,className:Le("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));qv.displayName="Input";const iE=({onSubmit:e,isLoading:t})=>{const[n,r]=x.useState(""),[s,o]=x.useState(null),[i,a]=x.useState(""),l=c=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c),u=c=>{if(c.preventDefault(),!n.trim()){a("Email is required");return}if(!l(n)){a("Please enter a valid email address");return}s!==null&&(a(""),e(n,s))};return b.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-background via-secondary/30 to-primary/5 p-4",children:b.jsxs(Lo,{className:"w-full max-w-md
108shadow-medium animate-slide-up bg-gradient-card",children:[b.jsxs(Mo,{className:"text-center pb-4",children:[b.jsx("div",{className:"w-12 h-12 mx-auto mb-4 bg-gradient-accent rounded-full flex items-center justify-center shadow-glow",children:b.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"ð"})}),b.jsx(Do,{className:"text-xl font-bold",children:"Just one more step!"}),b.jsx("p",{className:"text-muted-foreground text-sm",children:"Enter your details to see your quiz results"})]}),b.jsxs(Fo,{children:[b.jsxs("form",{onSubmit:u,className:"space-y-6",children:[b.jsxs("div",{className:"space-y-2",children:[b.jsx("label",{htmlFor:"email",className:"text-sm font-medium",children:"Email address *"}),b.jsx(qv,{id:"email",type:"email",placeholder:"[email protected]",value:n,onChange:c=>{r(c.target.value),i&&a("")},className:i?"border-destructive":""}),i&&b.jsx("p",{className:"text-sm text-destructive",children:i})]}),b.jsxs("div",{className:"space-y-3",children:[b.jsx("label",{className:"text-sm font-medium",children:"Are you a certified fitness professional? *"}),b.jsxs("div",{className:"space-y-2",children:[b.jsxs("label",{className:"flex items-center space-x-3 cursor-pointer",children:[b.jsx("input",{type:"radio",name:"certified",value:"true",checked:s===!0,onChange:()=>o(!0),className:"w-4 h-4 text-accent border-border focus:ring-accent"}),b.jsx("span",{children:"Yes, I'm certified"})]}),b.jsxs("label",{className:"flex items-center space-x-3 cursor-pointer",children:[b.jsx("input",{type:"radio",name:"certified",value:"false",checked:s===!1,onChange:()=>o(!1),className:"w-4 h-4 text-accent border-border focus:ring-accent"}),b.jsx("span",{children:"No, not yet"})]})]})]}),b.jsx(dr,{type:"submit",variant:"hero",className:"w-full",disabled:!n||s===null||t,children:t?"Saving...":"View My Results"})]}),b.jsx("p",{className:"text-xs text-center text-muted-foreground mt-4",children:"We'll use your email to send you personalized fitness tips"})]})]})})},aE=({score:e,totalQuestions:t,email:n,isCertified:r})=>{const{toast:s}=ug(),o=Math.round(e/t*100),i=()=>e>=9?"Certified FitPro Genius":e>=7?"Rock Solid Coach":e>=5?"On Your Way":"Time to hit the books (or the FitBudd blog)",a=()=>e>=9?"ð":e>=7?"ðª":e>=5?"ð":"ð",l=()=>`I just scored ${e}/${t} (${o}%) on the Fitness Pro Quiz! ${i()} ðª #FitnessQuiz #FitBudd`,u="http://fitbudd.com/quizzes/quiz-for-fitness-pros",c=()=>{const d=encodeURIComponent(l()),m=encodeURIComponent(u);window.open(`https://www.instagram.com/create/story/?media=${m}&text=${d}`,"_blank"),s({title:"Opening Instagram",description:"Share your results on your story!"})},f=()=>{const d=encodeURIComponent(`${l()} 109 110Take the quiz: ${u}`);window.open(`https://wa.me/?text=${d}`,"_blank"),s({title:"Opening WhatsApp",description:"Share with your fitness friends!"})};return b.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-background via-secondary/30 to-primary/5 p-4",children:b.jsxs(Lo,{className:"w-full max-w-md
110shadow-medium animate-slide-up bg-gradient-card",children:[b.jsxs(Mo,{className:"text-center pb-4",children:[b.jsx("div",{className:"w-20 h-20 mx-auto mb-4 bg-gradient-hero rounded-full flex items-center justify-center shadow-glow animate-pulse-slow",children:b.jsx("span",{className:"text-3xl",children:a()})}),b.jsx(Do,{className:"text-2xl font-bold mb-2",children:i()}),b.jsxs("div",{className:"space-y-2",children:[b.jsxs("div",{className:"text-4xl font-bold bg-gradient-hero bg-clip-text text-transparent",children:[e,"/",t]}),b.jsxs("div",{className:"text-lg text-muted-foreground",children:[o,"% Correct"]})]})]}),b.jsxs(Fo,{className:"space-y-6",children:[b.jsxs("div",{className:"p-4 bg-gradient-card rounded-lg border border-border",children:[b.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Results for:"}),b.jsx("p",{className:"font-medium",children:n}),b.jsx("p",{className:"text-xs text-muted-foreground",children:r?"Certified Professional":"Aspiring Professional"})]}),b.jsxs("div",{className:"space-y-3",children:[b.jsx("p",{className:"text-sm font-medium text-center",children:"Share your results:"}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsxs(dr,{variant:"social",size:"sm",onClick:c,className:"flex-col h-16 gap-1",children:[b.jsx(Yx,{className:"w-5 h-5"}),b.jsx("span",{className:"text-xs",children:"Instagram"})]}),b.jsxs(dr,{variant:"social",size:"sm",onClick:f,className:"flex-col h-16 gap-1",children:[b.jsx(Jx,{className:"w-5 h-5"}),b.jsx("span",{className:"text-xs",children:"WhatsApp"})]})]})]}),b.jsxs("div",{className:"text-center space-y-3 p-4 bg-gradient-hero/5 rounded-lg border border-primary/20",children:[b.jsx("p",{className:"text-sm font-semibold text-primary",children:"Monetize your passion for fitness"}),b.jsx("p",{className:"text-xs text-muted-foreground",children:"Launch your branded fitness app in minutes"}),b.jsx(dr,{variant:"hero",className:"w-full font-semibold",onClick:()=>window.open("https://www.fitbudd.com/your-brand-awaits-your-app-self-sign-up?destination=/client-app/theme","_blank"),children:"Start FOR FREE! ð"})]})]})]})})},It=[{id:1,question:"What's the ideal rep range for building muscle (hypertrophy)?",options:["1â5 reps","6â12 reps","15â20 reps","20+ reps"],correctAnswer:1},{id:2,question:"Which macronutrient is the body's main source of energy?",options:["Protein","Fats","Carbohydrates","Vitamins"],correctAnswer:2},{id:3,question:"What's the best time to post on Instagram for fitness engagement?",options:["12 AM","6 AM","11 AM â 2 PM","10 PM"],correctAnswer:2},{id:4,question:"What is a key sign of overtraining in clients?",options:["Increased appetite","Better sleep","Decreased performance","Improved mood"],correctAnswer:2},{id:5,question:"Which of these is NOT a compound movement?",options:["Deadlift","Pull-up","Bicep curl","Squat"],correctAnswer:2},{id:6,question:"What tool helps automate class bookings, payments, and client plans?",options:["Excel","Notion","FitBudd","WhatsApp"],correctAnswer:2},{id:7,question:"How much protein is generally recommended per kg of body weight for active individuals?",options:["0.5g","1.2g","1.6â2.2g","3g"],correctAnswer:2},{id:8,question:"What's the most effective way to grow your online fitness business?",options:["Posting memes","Giving free sessions","Launching your own app","DMing people randomly"],correctAnswer:2},{id:9,question:'What does "progressive overload" mean?',options:["Working out every day","Increasing training volume over time","Taking pre-workout","Training multiple clients at once"],correctAnswer:1},{id:10,question:"What's the best way to track your client's progress remotely?",options:["Guess based on selfies","Weekly Zoom calls","An app with workout & nutrition tracking","Email check-ins"],correctAnswer:2}],lE="modulepreload",uE=function(e){return"/"+e},bh={},zo=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=uE(l),l in bh)return;bh[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":lE,u||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((d,m)=>{f.addEventListener("load",d),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},cE=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>zo(async()=>{const{default:r}=await Promise.resolve().then(()=>Es);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};
110class wd extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class dE extends wd{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Sh extends wd{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Eh extends wd{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Ju;(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"})(Ju||(Ju={}));var fE=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(c){try{u(r.next(c))}catch(f){i(f)}}function l(c){try{u(r.throw(c))}catch(f){i(f)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class hE{constructor(t,{headers:n={},customFetch:r,region:s=Ju.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=cE(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return fE(this,void 0,void 0,function*(){try{const{headers:s,method:o,body:i}=n;let a={},{region:l}=n;l||(l=this.region);const u=new URL(`${this.url}/${t}`);l&&l!=="any"&&(a["x-region"]=l,u.searchParams.set("forceFunctionRegion",l));let c;i&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&i instanceof Blob||i instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",c=i):typeof i=="string"?(a["Content-Type"]="text/plain",c=i):typeof FormData<"u"&&i instanceof FormData?c=i:(a["Content-Type"]="application/json",c=JSON.stringify(i)));const f=yield this.fetch(u.toString(),{method:o||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:c}).catch(v=>{throw new dE(v)}),d=f.headers.get("x-relay-error");if(d&&d==="true")throw new Sh(f);if(!f.ok)throw new Eh(f);let m=((r=f.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),y;return m==="application/json"?y=yield f.json():m==="application/octet-stream"?y=yield f.blob():m==="text/event-stream"?y=f:m==="multipart/form-data"?y=yield f.formData():y=yield f.text(),{data:y,error:null,response:f}}catch(s){return{data:null,error:s,response:s instanceof Eh||s instanceof Sh?s.context:void 0}}})}}var He={},xd={},Ha={},Uo={},qa={},Ka={},pE=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},vs=pE();const mE=vs.fetch,Kv=vs.fetch.bind(vs),Qv=vs.Headers,gE=vs.Request,vE=vs.Response,Es=Object.freeze(Object.defineProperty({__proto__:null,Headers:Qv,Request:gE,Response:vE,default:Kv,fetch:mE},Symbol.toStringTag,{value:"Module"})),yE=ky(Es);var Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});let wE=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
110de=t.code}};Qa.default=wE;var Gv=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ka,"__esModule",{value:!0});const xE=Gv(yE),_E=Gv(Qa);let bE=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=xE.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=Object.assign({},this.headers),this.headers[t]=n,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{var i,a,l;let u=null,c=null,f=null,d=o.status,m=o.statusText;if(o.ok){if(this.method!=="HEAD"){const p=await o.text();p===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?c=p:c=JSON.parse(p))}const v=(i=this.headers.Prefer)===null||i===void 0?void 0:i.match(/count=(exact|planned|estimated)/),w=(a=o.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");v&&w&&w.length>1&&(f=parseInt(w[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(c)&&(c.length>1?(u={code:"PGRST116",details:`Results contain ${c.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},c=null,f=null,d=406,m="Not Acceptable"):c.length===1?c=c[0]:c=null)}else{const v=await o.text();try{u=JSON.parse(v),Array.isArray(u)&&o.status===404&&(c=[],u=null,d=200,m="OK")}catch{o.status===404&&v===""?(d=204,m="No Content"):u={message:v}}if(u&&this.isMaybeSingle&&(!((l=u==null?void 0:u.details)===null||l===void 0)&&l.includes("0 rows"))&&(u=null,d=200,m="OK"),u&&this.shouldThrowOnError)throw new _E.default(u)}return{error:u,data:c,count:f,status:d,statusText:m}});return this.shouldThrowOnError||(s=s.catch(o=>{var i,a,l;return{error:{message:`${(i=o==null?void 0:o.name)!==null&&i!==void 0?i:"FetchError"}: ${o==null?void 0:o.message}`,details:`${(a=o==null?void 0:o.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=o==null?void 0:o.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}returns(){return this}overrideTypes(){return this}};Ka.default=bE;var SE=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qa,"__esModule",{value:!0});const EE=SE(Ka);let kE=class extends EE.default{select(t){let n=!1;const r=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:o=s}={}){const i=o?`${o}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:s=r}={}){const o=typeof s>"u"?"offset":`${s}.offset`,i=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(o,`${t}`),this.url.searchParams.set(i,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
110explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:o=!1,format:i="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${i}; for="${u}"; options=${l};`,i==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};qa.default=kE;var CE=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Uo,"__esModule",{value:!0});const PE=CE(qa);let TE=class extends PE.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:s}={}){let o="";s==="plain"?o="pl":s==="phrase"?o="ph":s==="websearch"&&(o="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${o}fts${i}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};Uo.default=TE;var RE=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ha,"__esModule",{value:!0});const Ms=RE(Uo);let OE=class{constructor(t,{headers:n={},schema:r,fetch:s}){this.url=t,this.headers=n,this.schema=r,this.fetch=s}select(t,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let o=!1;const i=(t??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),r&&(this.headers.Prefer=`count=${r}`),new Ms.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const s="POST",o=[];if(this.headers.Prefer&&o.push(this.headers.Prefer),n&&o.push(`count=${n}`),r||o.push("missing=default"),this.headers.Prefer=o.join(","),Array.isArray(t)){const i=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(i.length>
1100){const a=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Ms.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:o=!0}={}){const i="POST",a=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&a.push(this.headers.Prefer),s&&a.push(`count=${s}`),o||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const l=t.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new Ms.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),this.headers.Prefer=s.join(","),new Ms.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new Ms.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};Ha.default=OE;var Ga={},Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});Ya.version=void 0;Ya.version="0.0.0-automated";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.DEFAULT_HEADERS=void 0;const AE=Ya;Ga.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${AE.version}`};var Yv=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xd,"__esModule",{value:!0});const jE=Yv(Ha),NE=Yv(Uo),IE=Ga;let $E=class Jv{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=Object.assign(Object.assign({},IE.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new jE.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Jv(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:o}={}){let i;const a=new URL(`${this.url}/rpc/${t}`);let l;r||s?(i=r?"HEAD":"GET",Object.entries(n).filter(([c,f])=>f!==void 0).map(([c,f])=>[c,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([c,f])=>{a.searchParams.append(c,f)})):(i="POST",l=n);const u=Object.assign({},this.headers);return o&&(u.Prefer=`count=${o}`),new NE.default({method:i,url:a,headers:u,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};xd.default=$E;var ks=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(He,"__esModule",{value:!0});He.PostgrestError=He.PostgrestBuilder=He.PostgrestTransformBuilder=He.PostgrestFilterBuilder=He.PostgrestQueryBuilder=He.PostgrestClient=void 0;const Xv=ks(xd);He.PostgrestClient=Xv.default;const Zv=ks(Ha);He.PostgrestQueryBuilder=Zv.default;const ey=ks(Uo);He.PostgrestFilterBuilder=ey.default;const ty=ks(qa);He.PostgrestTransformBuilder=ty.default;const ny=ks(Ka);He.PostgrestBuilder=ny.default;const ry=ks(Qa);He.PostgrestError=ry.default;var LE=He.default={PostgrestClient:Xv.default,PostgrestQueryBuilder:Zv.default,PostgrestFilterBuilder:ey.default,PostgrestTransformBuilder:ty.default,PostgrestBuilder:ny.default,PostgrestError:ry.default};const{PostgrestClient:ME,PostgrestQueryBuilder:BC,PostgrestFilterBuilder:WC,PostgrestTransformBuilder:VC,PostgrestBuilder:HC,PostgrestError:qC}=LE;function DE(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const FE=DE(),zE="2.11.15",UE=`realtime-js/${zE}`,BE="1.0.0",sy=1e4,WE=1e3;var Zs;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Zs||(Zs={}));var Ae;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Ae||(Ae={}));var St;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(St||(St={}));var Xu;(function(e){e.websocket="websocket"})(Xu||(Xu={}));var tr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(tr||(tr={}));class VE{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),o=n.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(t.slice(i,i+s));i=i+s;const l=r.decode(t.slice(i,i+o));i=i+o;const u=JSON.parse(r.decode(t.slice(i,t.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class oy{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var re;(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"})(re||(re={}));const kh=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((o,i)=>(o[i]=HE(i,e,t,s),o),{})},HE=(e,t,n,r)=>{const s=t.find(a=>a.name===e),o=s==null?void 0:s.type,i=n[e];return o&&!r.includes(o)?iy(o,i):Zu(i)},iy=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return GE(t,n)}switch(e){case re.bool:return qE(t);case re.float4:case re.float8:case re.int2:case re.int4:case re.int8:case re.numeric:case re.oid:return KE(t);case re.json:case re.jsonb:return QE(t);case re.timestamp:return YE(t);case re.abstime:case re.date:case re.daterange:case re.int4range:case re.int8range:case re.money:case re.reltime:case re.text:case re.time:case re.timestamptz:case re.timetz:case re.tsrange:case re.tstzrange:return Zu(t);default:return Zu(t)}},Zu=e=>e,qE=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},KE=e=>{if(typeof e=="string"){const t=parseFloat(e);
vendor: 13,616 bytes, lines 110-115
110if(!Number.isNaN(t))return t}return e},QE=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},GE=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let o;const i=e.slice(1,n);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>iy(t,a))}return e},YE=e=>typeof e=="string"?e.replace(" ","T"):e,ay=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class Ll{constructor(t,n,r={},s=sy){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Ch;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Ch||(Ch={}));class eo{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=eo.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=eo.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=eo.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const o=this.cloneDeep(t),i=this.transformState(n),a={},l={};return this.map(o,(u,c)=>{i[u]||(l[u]=c)}),this.map(i,(u,c)=>{const f=o[u];if(f){const d=c.map(w=>w.presence_ref),m=f.map(w=>w.presence_ref),y=c.filter(w=>m.indexOf(w.presence_ref)<0),v=f.filter(w=>d.indexOf(w.presence_ref)<0);y.length>0&&(a[u]=y),v.length>0&&(l[u]=v)}else a[u]=c}),this.syncDiff(o,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:o,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(o,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const f=t[a].map(m=>m.presence_ref),d=c.filter(m=>f.indexOf(m.presence_ref)<0);t[a].unshift(...d)}r(a,c,l)}),this.map(i,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(f=>f.presence_ref);u=u.filter(f=>c.indexOf(f.presence_ref)<0),t[a]=u,s(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Ph;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Ph||(Ph={}));var Th;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Th||(Th={}));var Gt;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Gt||(Gt={}));class _d{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Ae.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Ll(this,St.join,this.params,this.timeout),this.rejoinTimer=new oy(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ae.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Ae.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Ae.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ae.errored,this.rejoinTimer.scheduleTimeout())}),this._on(St.reply,{},(s,o)=>{this._trigger(this._replyEventName(o),s)}),this.presence=new eo(this),this.broadcastEndpointURL=ay(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Ae.closed){const{config:{broadcast:o,presence:i,private:a}}=this.params;this._onError(c=>t==null?void 0:t(Gt.CHANNEL_ERROR,c)),this._onClose(()=>t==null?void 0:t(Gt.CLOSED));const l={},u={broadcast:o,presence:i,postgres_changes:(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(c=>c.filter))!==null&&s!==void 0?s:[],private:a};this.socket.accessTokenValue&&(l.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:u},l)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:c})=>{var f;if(this.socket.setAuth(),c===void 0){t==null||t(Gt.SUBSCRIBED);return}else{const d=this.bindings.postgres_changes,m=(f=d==null?void 0:d.length)!==null&&f!==void 0?f:0,y=[];for(let v=0;v<m;v++){const w=d[v],{filter:{event:p,schema:h,table:g,filter:_}}=w,S=c&&c[v];if(S&&S.event===p&&S.schema===h&&S.table===g&&S.filter===_)y.push(Object.assign(Object.assign({},w),{id:S.id}));else{this.unsubscribe(),this.state=Ae.errored,t==null||t(Gt.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=y,t&&t(Gt.SUBSCRIBED);return}}).receive("error",c=>{this.state=Ae.errored,t==null||t(Gt.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(c).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Gt.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){const{event:o,payload:i}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),u.receive("ok",()=>o("ok")),u.receive("error",()=>o("error")),u.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Ae.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(St.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new Ll(this,St.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.rejoinTimer&&clearTimeout(this.rejoinTimer.timer),this.joinPush.destroy()}async _fetchWithTimeout(t,n,r){const s=new AbortController,o=setTimeout(()=>s.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(o),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Ll(this,t,n,r);return this._canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,o;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=St;if(r&&[a,l,u,c].indexOf(i)>=0&&r!==this._joinRef())return;let d=this._onMessage(i,n,r);if(n&&!d)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(m=>{var y,v,w;return((y=m.filter)===null||y===void 0?void 0:y.event)==="*"||((w=(v=m.filter)===null||v===void 0?void 0:v.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===i}).map(m=>m.callback(d,r)):(o=this.bindings[i])===null||o===void 0||o.filter(m=>{var y,v,w,p,h,g;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in m){const _=m.id,S=(y=m.filter)===null||y===void 0?void 0:y.event;return _&&((v=n.ids)===null||v===void 0?void 0:v.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((w=n.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const _=(h=(p=m==null?void 0:m.filter)===null||p===void 0?void 0:p.event)===null||h===void 0?void 0:h.toLocaleLowerCase();return _==="*"||_===((g=n==null?void 0:n.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===i}).map(m=>{if(typeof d=="object"&&"ids"in d){const y=d.data,{schema:v,table:w,commit_timestamp:p,type:h,errors:g}=y;d=Object.assign(Object.assign({},{schema:v,table:w,commit_timestamp:p,eventType:h,new:{},old:{},errors:g}),this._getPayloadRecords(y))}m.callback(d,r)})}_isClosed(){return this.state===Ae.closed}_isJoined(){return this.state===Ae.joined}_isJoining(){return this.state===Ae.joining}_isLeaving(){return this.state===Ae.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),o={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===r&&_d.isEqual(s.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(St.close,{},t)}_onError(t){this._on(St.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ae.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=kh(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=kh(t.columns,t.old_record)),n}}const Rh=()=>{},JE=` 111 addEventListener("message", (e) => { 112 if (e.data.event === "start") { 113 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 114 } 115 });`;class XE{constructor(t,n){var r;this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=sy,this.heartbeatIntervalMs=25e3,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Rh,this.ref=0,this.logger=Rh,this.conn=null,this.sendBuffer=[],this.serializer
115=new VE,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=o=>{let i;return o?i=o:typeof fetch>"u"?i=(...a)=>zo(async()=>{const{default:l}=await Promise.resolve().then(()=>Es);return{default:l}},void 0).then(({default:l})=>l(...a)):i=fetch,(...a)=>i(...a)},this.endPoint=`${t}/${Xu.websocket}`,this.httpEndpoint=ay(t),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),(n!=null&&n.logLevel||n!=null&&n.log_level)&&(this.logLevel=n.logLevel||n.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const s=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;if(s&&(this.accessTokenValue=s,this.apiKey=s),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:o=>[1e3,2e3,5e3,1e4][o-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(o,i)=>i(JSON.stringify(o)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new oy(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch),n!=null&&n.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(n==null?void 0:n.worker)||!1,this.workerUrl=n==null?void 0:n.workerUrl}this.accessToken=(n==null?void 0:n.accessToken)||null}connect(){if(!this.conn){if(this.transport||(this.transport=FE),!this.transport)throw new Error("No transport provided");this.conn=new this.transport(this.endpointURL()),this.setupConnection()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:BE}))}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset(),this.channels.forEach(r=>r.teardown()))}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Zs.connecting:return tr.Connecting;case Zs.open:return tr.Open;case Zs.closing:return tr.Closing;default:return tr.Closed}}isConnected(){return this.connectionState()===tr.Open}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(o=>o.topic===r);if(s)return s;{const o=new _d(`realtime:${t}`,n,this);return this.channels.push(o),o}}push(t){const{topic:n,event:r,payload:s,ref:o}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){let n=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const s={access_token:n,version:UE};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(St.access_token,{access_token:n})}))}async sendHeartbeat(){var t;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),(t=this.conn)===null||t===void 0||t.close(WE,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),await this.setAuth()}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>
115this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:s,payload:o,ref:i}=n;r==="phoenix"&&s==="phx_reply"&&this.heartbeatCallback(n.payload.status=="ok"?"ok":"error"),i&&i===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${o.status||""} ${r} ${s} ${i&&"("+i+")"||""}`,o),Array.from(this.channels).filter(a=>a._isMember(r)).forEach(a=>a._trigger(s,o,i)),this.stateChangeCallbacks.message.forEach(a=>a(n))})}_onConnOpen(){this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this.stateChangeCallbacks.open.forEach(t=>t())}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",`${t}`),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(St.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([JE],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}}class bd extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function _e(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class ZE extends bd{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class ec extends bd{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var ek=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(c){try{u(r.next(c))}catch(f){i(f)}}function l(c){try{u(r.throw(c))}catch(f){i(f)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const ly=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>zo(async()=>{const{default:r}=await Promise.resolve().then(()=>Es);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},tk=()=>ek(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield zo(()=>Promise.resolve().then(()=>Es),void 0)).Response:Response}),tc=e=>{if(Array.isArray(e))return e.map(n=>tc(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[s]=tc(r)}),t};var _r=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(c){try{u(r.next(c))}catch(f){i(f)}}function l(c){try{u(r.throw(c))}catch(f){i(f)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Ml=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),nk=(e,t,n)=>_r(void 0,void 0,void 0,function*(){const r=yield tk();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(s=>{t(new ZE(Ml(s),e.status||500))}).catch(s=>{t(new ec(Ml(s),s))}):t(new ec(Ml(e),e))}),rk=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),r&&(s.body=JSON.stringify(r)),Object.assign(Object.assign({},s),n))};function Bo(e,t,n,r,s,o){return _r(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(n,rk(t,r,s,o)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>nk(l,a,r))})})}function pa(e,t,n,r){return _r(this,void 0,void 0,function*(){return Bo(e,"GET",t,n,r)})}
115function xn(e,t,n,r,s){return _r(this,void 0,void 0,function*(){return Bo(e,"POST",t,r,s,n)})}function sk(e,t,n,r,s){return _r(this,void 0,void 0,function*(){return Bo(e,"PUT",t,r,s,n)})}function ok(e,t,n,r){return _r(this,void 0,void 0,function*(){return Bo(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function uy(e,t,n,r,s){return _r(this,void 0,void 0,function*(){return Bo(e,"DELETE",t,r,s,n)})}var We=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(c){try{u(r.next(c))}catch(f){i(f)}}function l(c){try{u(r.throw(c))}catch(f){i(f)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const ik={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Oh={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class ak{constructor(t,n={},r,s){this.url=t,this.headers=n,this.bucketId=r,this.fetch=ly(s)}uploadOrUpdate(t,n,r,s){return We(this,void 0,void 0,function*(){try{let o;const i=Object.assign(Object.assign({},Oh),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l))):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(n),c=this._getFinalPath(u),f=yield this.fetch(`${this.url}/object/${c}`,Object.assign({method:t,body:o,headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{})),d=yield f.json();return f.ok?{data:{path:u,id:d.Id,fullPath:d.Key},error:null}:{data:null,error:d}}catch(o){if(_e(o))return{data:null,error:o};throw o}})}upload(t,n,r){return We(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return We(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(t),i=this._getFinalPath(o),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Oh.upsert},s),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const f=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:c}),d=yield f.json();return f.ok?{data:{path:o,fullPath:d.Key},error:null}:{data:null,error:d}}catch(l){if(_e(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return We(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const o=yield xn(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),i=new URL(this.url+o.url),a=i.searchParams.get("token");if(!a)throw new bd("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(r){if(_e(r))return{data:null,error:r};throw r}})}update(t,n,r){return We(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return We(this,void 0,void 0,function*(){try{return{data:yield xn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(_e(s))return{data:null,error:s};throw s}})}copy(t,n,r){return We(this,void 0,void 0,function*(){try{return{data:{path:(yield xn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(_e(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,r){return We(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),o=yield xn(this.fetch,`${this.url}/object/sign/${s}
115`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return o={signedUrl:encodeURI(`${this.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(s){if(_e(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return We(this,void 0,void 0,function*(){try{const s=yield xn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${o}`):null})),error:null}}catch(s){if(_e(s))return{data:null,error:s};throw s}})}download(t,n){return We(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),i=o?`?${o}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield pa(this.fetch,`${this.url}/${s}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(_e(a))return{data:null,error:a};throw a}})}info(t){return We(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield pa(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:tc(r),error:null}}catch(r){if(_e(r))return{data:null,error:r};throw r}})}exists(t){return We(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield ok(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(_e(r)&&r instanceof ec){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],o=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";o!==""&&s.push(o);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return We(this,void 0,void 0,function*(){try{return{data:yield uy(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(_e(n))return{data:null,error:n};throw n}})}list(t,n,r){return We(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},ik),n),{prefix:t||""});return{data:yield xn(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(_e(s))return{data:null,error:s};throw s}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const lk="2.7.1",uk={"X-Client-Info":`storage-js/${lk}`};var Pr=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(c){try{u(r.next(c))}catch(f){i(f)}}function l(c){try{u(r.throw(c))}catch(f){i(f)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class ck{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},uk),n),this.fetch=ly(r)}listBuckets(){return Pr(this,void 0,void 0,function*(){try{return{data:yield pa(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(_e(t))return{data:null,error:t};throw t}})}getBucket(t){return Pr(this,void 0,void 0,function*(){try{return{data:yield pa(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(_e(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return Pr(this,void 0,void 0,function*(){try{return{data:yield xn(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(_e(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return Pr(this,void 0,void 0,function*(){try{return{data:yield sk(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(_e(r))return{data:null,error:r};throw r}})}emptyBucket(t){return Pr(this,void 0,void 0,function*(){try{return{data:yield xn(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(_e(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Pr(this,void 0,void 0,function*(){try{return{data:yield uy(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(_e(n))return{data:null,error:n};throw n}})}}class dk extends ck{constructor(t,n={},r){super(t,n,r)}from(t){return new ak(this.url,this.headers,t,this.fetch)}}const fk="2.50.3";let Bs="";
115typeof Deno<"u"?Bs="deno":typeof document<"u"?Bs="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Bs="react-native":Bs="node";const hk={"X-Client-Info":`supabase-js-${Bs}/${fk}`},pk={headers:hk},mk={schema:"public"},gk={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},vk={};var yk=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(c){try{u(r.next(c))}catch(f){i(f)}}function l(c){try{u(r.throw(c))}catch(f){i(f)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const wk=e=>{let t;return e?t=e:typeof fetch>"u"?t=Kv:t=fetch,(...n)=>t(...n)},xk=()=>typeof Headers>"u"?Qv:Headers,_k=(e,t,n)=>{const r=wk(n),s=xk();return(o,i)=>yk(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let u=new s(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(o,Object.assign(Object.assign({},i),{headers:u}))})};var bk=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(c){try{u(r.next(c))}catch(f){i(f)}}function l(c){try{u(r.throw(c))}catch(f){i(f)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};function Sk(e){return e.endsWith("/")?e:e+"/"}function Ek(e,t){var n,r;const{db:s,auth:o,realtime:i,global:a}=e,{db:l,auth:u,realtime:c,global:f}=t,d={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},u),o),realtime:Object.assign(Object.assign({},c),i),global:Object.assign(Object.assign(Object.assign({},f),a),{headers:Object.assign(Object.assign({},(n=f==null?void 0:f.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>bk(this,void 0,void 0,function*(){return""})};return e.accessToken?d.accessToken=e.accessToken:delete d.accessToken,d}const cy="2.70.0",Ar=30*1e3,nc=3,Dl=nc*Ar,kk="http://localhost:9999",Ck="supabase.auth.token",Pk={"X-Client-Info":`gotrue-js/${cy}`},rc="X-Supabase-Api-Version",dy={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Tk=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Rk=6e5;class Sd extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function B(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Ok extends Sd{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function Ak(e){return B(e)&&e.name==="AuthApiError"}class fy extends Sd{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Gn extends Sd{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class vn extends Gn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function jk(e){return B(e)&&e.name==="AuthSessionMissingError"}class gi extends Gn{constructor(){super("Auth session or user missing","AuthInvalidToken
115ResponseError",500,void 0)}}class vi extends Gn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class yi extends Gn{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Nk(e){return B(e)&&e.name==="AuthImplicitGrantRedirectError"}class Ah extends Gn{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class sc extends Gn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Fl(e){return B(e)&&e.name==="AuthRetryableFetchError"}class jh extends Gn{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class to extends Gn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Nh=` 116\r=`.split(""),Ik=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Nh.length;t+=1)e[Nh[t].charCodeAt(0)]=-2;for(let t=0;t<ma.length;t+=1)e[ma[t].charCodeAt(0)]=t;return e})();function Ih(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(ma[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(ma[r]),t.queuedBits-=6}}function hy(e,t,n){const r=Ik[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 $h(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{Mk(i,r,n)};for(let i=0;i<e.length;i+=1)hy(e.charCodeAt(i),s,o);return t.join("")}function $k(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 Lk(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}$k(r,t)}}function Mk(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 Dk(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)hy(e.charCodeAt(s),n,r);return new Uint8Array(t)}function Fk(e){const t=[];return Lk(e,n=>t.push(n)),new Uint8Array(t)}function zk(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Ih(s,n,r)),Ih(null,n,r),t.join("")}function Uk(e){return Math.round(Date.now()/1e3)+e}function Bk(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const yt=()=>typeof window<"u"&&typeof document<"u",Jn={tested:!1,writable:!1},no=()=>{if(!yt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Jn.tested)return Jn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Jn.tested=!0,Jn.writable=!0}catch{Jn.tested=!0,Jn.writable=!1}return Jn.writable};function Wk(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,o)=>{t[o]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const py=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>zo(async()=>{const{default:r}=await Promise.resolve().then(()=>Es);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},Vk=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",my=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},wi=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},xi=async(e,t)=>{await e.removeItem(t)};class Ja{constructor(){this.promise=new Ja.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Ja.promiseConstructor=Promise;function zl(e){const t=e.split(".");if(t.length!==3)throw new to("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!Tk.test(t[r]))throw new to("JWT not in base64url format");return{header:JSON.parse($h(t[0])),payload:JSON.parse($h(t[1])),signature:Dk(t[2]),raw:{header:t[0],payload:t[1]}}}async function Hk(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function qk(e,t){return new Promise((r,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await e(o);if(!t(o,null,i)){r(i);return}}catch(i){if(!t(o,i)){s(i);return}}})()})}function Kk(e){return("0"+e.toString(16)).substr(-2)}function Qk(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let o=0;o<56;o++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,Kk).join("")}async function Gk(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
116n),s=new Uint8Array(r);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function Yk(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 Gk(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Tr(e,t,n=!1){const r=Qk();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await my(e,`${t}-code-verifier`,s);const o=await Yk(r);return[o,r===o?"plain":"s256"]}const Jk=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Xk(e){const t=e.headers.get(rc);if(!t||!t.match(Jk))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Zk(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 eC(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 tC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Rr(e){if(!tC.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}var nC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};const er=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),rC=[502,503,504];async function Lh(e){var t;if(!Vk(e))throw new sc(er(e),0);if(rC.includes(e.status))throw new sc(er(e),e.status);let n;try{n=await e.json()}catch(o){throw new fy(er(o),o)}let r;const s=Xk(e);if(s&&s.getTime()>=dy["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 jh(er(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new vn}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((o,i)=>o&&typeof i=="string",!0))throw new jh(er(n),e.status,n.weak_password.reasons);throw new Ok(er(n),e.status||500,r)}const sC=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function G(e,t,n,r){var s;const o=Object.assign({},r==null?void 0:r.headers);o[rc]||(o[rc]=dy["2024-01-01"].name),r!=null&&r.jwt&&(o.Authorization=`Bearer ${r.jwt}`);const i=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await oC(e,t,n+a,{headers:o,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 oC(e,t,n,r,s,o){const i=sC(t,r,s,o);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new sc(er(l),0)}if(a.ok||await Lh(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Lh(l)}}function Kt(e){var t;let n=null;uC(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=Uk(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Mh(e){const t=Kt(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 Sn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function iC(e){return{data:e,error:null}}function aC(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o}=e,i=nC(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function lC(e){return e}function uC(e){return e.access_token&&e.refresh_token&&e.expires_in}const Ul=["global","local","others"];var cC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};class dC{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=py(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n=Ul[0]){if(Ul.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Ul.join(", ")}`);try{return await G(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 G(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Sn})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=cC(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await G(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:aC,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 G(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Sn})}catch(n){if(B(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,o,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await G(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:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:lC});if(c.error)throw c.error;const f=await c.json(),d=(i=c.headers.get("x-total-count"))!==null&&i!==void 0?i:0,m=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return m.length>0&&(m.forEach(y=>{const v=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(y.split(";")[1].split("=")[1]);u[`${w}Page`]=v}),u.total=parseInt(d)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(B(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Rr(t);try{return await G(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Sn})}catch(n){if(B(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Rr(t);try{return await G(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Sn})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Rr(t);
116try{return await G(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Sn})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Rr(t.userId);try{const{data:n,error:r}=await G(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(B(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Rr(t.userId),Rr(t.id);try{return{data:await G(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}}}const fC={getItem:e=>no()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{no()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{no()&&globalThis.localStorage.removeItem(e)}};function Dh(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function hC(){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)}}const Or={debug:!!(globalThis&&no()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class gy extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class pC extends gy{}async function mC(e,t,n){Or.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Or.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){Or.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Or.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Or.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new pC(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Or.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"),await n()}}))}hC();const gC={url:kk,storageKey:Ck,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Pk,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Fh(e,t,n){return await n()}class Co{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=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,this.instanceID=Co.nextInstanceID,Co.nextInstanceID+=1,this.instanceID>0&&yt()&&console.warn("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.");const s=Object.assign(Object.assign({},gC),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new dC({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=py(s.fetch),this.lock=s.lock||Fh,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:yt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=mC:this.lock=Fh,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)},this.persistSession?s.storage?this.storage=s.storage:no()?this.storage=fC:(this.memoryStorage={},this.storage=Dh(this.memoryStorage)):(this.memoryStorage={},this.storage=Dh(this.memoryStorage)),yt()&&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)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${cy}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=Wk(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),yt()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:o}=await this._getSessionFromURL(n,r);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),Nk(o)){const l=(t=o.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:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return B(n)?{error:n}:{error:new fy("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const o=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Kt}),{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(o){if(B(o))return{data:{user:null,session:null},error:o};throw o}}async signUp(t){var n,r,s;try{let o;if("email"in t){const{email:c,password:f,options:d}=t;let m=null,y=null;this.flowType==="pkce"&&([m,y]=await Tr(this.storage,this.storageKey)),o=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:d==null?void 0:d.emailRedirectTo,body:{email:c,password:f,data:(n=d==null?void 0:d.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},code_challenge:m,code_challenge_method:y},xform:Kt})}else if("phone"in t){const{phone:c,password:f,options:d}=t;o=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:f,data:(r=d==null?void 0:d.data)!==null&&r!==void 0?r:{},channel:(s=d==null?void 0:d.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken}},xform:Kt})}else throw new vi("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(o){if(B(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithPassword(t){try{let n;if("email"in t){const{email:o,password:i,options:a}=t;n=await G(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Mh})}else if("phone"in t){const{phone:o,password:i,options:a}=t;n=await G(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Mh})}else throw new vi("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new gi}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(B(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,s,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=t.o
116ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;if(n==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(t){var n,r,s,o,i,a,l,u,c,f,d,m;let y,v;if("message"in t)y=t.message,v=t.signature;else{const{chain:w,wallet:p,statement:h,options:g}=t;let _;if(yt())if(typeof p=="object")_=p;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))_=E.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 p!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=p}const S=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const E=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},g==null?void 0:g.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),h?{statement:h}:null));let C;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")C=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)C=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in C&&"signature"in C&&(typeof C.signedMessage=="string"||C.signedMessage instanceof Uint8Array)&&C.signature instanceof Uint8Array)y=typeof C.signedMessage=="string"?C.signedMessage:new TextDecoder().decode(C.signedMessage),v=C.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...h?["",h,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=g==null?void 0:g.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=g==null?void 0:g.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...!((i=g==null?void 0:g.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...!((a=g==null?void 0:g.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...!((l=g==null?void 0:g.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...!((u=g==null?void 0:g.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...!((f=(c=g==null?void 0:g.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||f===void 0)&&f.length?["Resources",...g.signInWithSolana.resources.map(C=>`- ${C}`)]:[]].join(` 117`);const E=await _.signMessage(new TextEncoder().encode(y),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=E}}try{const{data:w,error:p}=await G(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:zk(v)},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:Kt});if(p)throw p;return!w||!w.session||!w.user?{data:{user:null,session:null},error:new gi}:(w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),{data:Object.assign({},w),error:p})}catch(w){if(B(w))return{data:{user:null,session:null},error:w};throw w}}async _exchangeCodeForSession(t){const n=await wi(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:o,error:i}=await G(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Kt});if(await xi(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!o||!o.session||!o.user?{data:{user:null,session:null,redirectType:null},error:new gi}:(o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(B(o))return{data:{user:null,session:null,redirectType:null},error:o};throw o}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:o,nonce:i}=t,a=await G(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Kt}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new gi}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(B(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,o,i;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await Tr(this.storage,this.storageKey));const{error:f}=await G(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:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await G(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new vi("You must provide either an email or phone number.")}catch(a){if(B(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let s,o;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,o=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await G(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:Kt});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,u=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(B(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,r,s;try{let o=null,i=null;return this.flowType==="pkce"&&([o,i]=await Tr(this.storage,this.storageKey)),await G(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}
117:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:i}),headers:this.headers,xform:iC})}catch(o){if(B(o))return{data:null,error:o};throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,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 vn;const{error:s}=await G(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(B(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:o}=t,{error:i}=await G(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return{data:{user:null,session:null},error:i}}else if("phone"in t){const{phone:r,type:s,options:o}=t,{data:i,error:a}=await G(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return{data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a}}throw new vi("You must provide either an email or phone number and a type")}catch(n){if(B(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await wi(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 valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Dl:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){let i=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,u,c)=>(!i&&u==="user"&&(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."),i=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,u,c))})}return{data:{session:t},error:null}}const{session:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?{data:{session:null},error:o}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await G(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Sn}):await this._useSession(async n=>{var r,s,o;const{data:i,error:a}=n;
117if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new vn}:await G(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:Sn})})}catch(n){if(B(n))return jk(n)&&(await this._removeSession(),await xi(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:o}=r;if(o)throw o;if(!s.session)throw new vn;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Tr(this.storage,this.storageKey));const{data:u,error:c}=await G(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:i.access_token,xform:Sn});if(c)throw c;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new vn;const n=Date.now()/1e3;let r=n,s=!0,o=null;const{payload:i}=zl(t.access_token);if(i.exp&&(r=i.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;o={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(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return{data:{user:o.user,session:o},error:null}}catch(n){if(B(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new vn;const{session:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?{data:{user:null,session:null},error:o}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(B(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!yt())throw new yi("No browser detected.");if(t.error||t.error_description||t.error_code)throw new yi(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 Ah("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new yi("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 Ah("No code detected.");const{data:h,error:g}=await this._exchangeCodeForSession(t.code);if(g)throw g;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:h.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:u}=t;if(!o||!a||!i||!u)throw new yi("No session defined in URL");const c=Math.round(Date.now()/1e3),f=parseInt(a);let d=c+f;l&&(d=parseInt(l));const m=d-c;m*1e3<=Ar&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${f}s`);const y=d-f;c-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,d,c):c-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,d,c);const{data:v,error:w}=await this._getUser(o);if(w)throw w;const p={provider_token:r,provider_refresh_token:s,access_token:o,expires_in:f,expires_at:d,refresh_token:i,token_type:u,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:p,redirectType:t.type},error:null}}catch(r){if(B(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await wi(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:o}=n;
117if(o)return{error:o};const i=(r=s.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(Ak(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await xi(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=Bk(),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(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:o},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",o),console.error(o)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Tr(this.storage,this.storageKey,!0));try{return await G(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(B(o))return{data:null,error:o};throw o}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(B(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:s}=await this._useSession(async o=>{var i,a,l,u,c;const{data:f,error:d}=o;if(d)throw d;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.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 G(this.fetch,"GET",m,{headers:this.headers,jwt:(c=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return yt()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(B(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)throw i;return await G(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=o.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(B(n))return{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 qk(async s=>(s>
1170&&await Hk(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await G(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Kt})),(s,o)=>{const i=200*Math.pow(2,s);return o&&Fl(o)&&Date.now()+i-r<Ar})}catch(r){if(this._debug(n,"error",r),B(r))return{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),yt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const r=await wi(this.storage,this.storageKey);if(this._debug(n,"session from storage",r),!this._isValidSession(r)){this._debug(n,"session is not valid"),r!==null&&await this._removeSession();return}const s=((t=r.expires_at)!==null&&t!==void 0?t:1/0)*1e3-Date.now()<Dl;if(this._debug(n,`session has${s?"":" not"} expired with margin of ${Dl}s`),s){if(this.autoRefreshToken&&r.refresh_token){const{error:o}=await this._callRefreshToken(r.refresh_token);o&&(console.error(o),Fl(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(n,"error",r),console.error(r);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new vn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Ja;const{data:o,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!o.session)throw new vn;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={session:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),B(o)){const i={session:null,error:o};return Fl(o)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await my(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await xi(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&yt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ar);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Ar);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ar}ms, refresh threshold is ${nc} ticks`),s<=nc&&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 gy)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!yt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),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(-1,async()=>
117{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[o,i]=await Tr(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const o=new URLSearchParams(r.queryParams);s.push(o.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await G(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)return{data:null,error:i};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:l,error:u}=await G(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;if(o)return{data:null,error:o};const{data:i,error:a}=await G(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:a})})}catch(n){if(B(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await G(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(B(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],s=r.filter(i=>i.factor_type==="totp"&&i.status==="verified"),o=r.filter(i=>i.factor_type==="phone"&&i.status==="verified");return{data:{all:r,totp:s,phone:o},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:s},error:o}=t;if(o)return{data:null,error:o};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=zl(s.access_token);let a=null;i.aal&&(a=i.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(f=>f.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=i.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(i=>i.kid===t);if(r||(r=this.jwks.keys.find(i=>i.kid===t),r&&this.jwks_cached_at+Rk>Date.now()))return r;const{data:s,error:o}=await G(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;if(!s.keys||s.keys.length===0)throw new to("JWKS is empty");if(this.jwks=s,this.jwks_cached_at=Date.now(),r=s.keys.find(i=>i.kid===t),!r)throw new to("No matching signing key found in JWKS");return r}async getClaims(t,n={keys:[]}){try{let r=t;if(!r){const{data:m,error:y}
117=await this.getSession();if(y||!m.session)return{data:null,error:y};r=m.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=zl(r);if(Zk(o.exp),!s.kid||s.alg==="HS256"||!("crypto"in globalThis&&"subtle"in globalThis.crypto)){const{error:m}=await this.getUser(r);if(m)throw m;return{data:{claims:o,header:s,signature:i},error:null}}const u=eC(s.alg),c=await this.fetchJwk(s.kid,n),f=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,f,i,Fk(`${a}.${l}`)))throw new to("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(r){if(B(r))return{data:null,error:r};throw r}}}Co.nextInstanceID=0;const vC=Co;class yC extends vC{constructor(t){super(t)}}var wC=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(c){try{u(r.next(c))}catch(f){i(f)}}function l(c){try{u(r.throw(c))}catch(f){i(f)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class xC{constructor(t,n,r){var s,o,i;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const a=Sk(t),l=new URL(a);this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const u=`sb-${l.hostname.split(".")[0]}-auth-token`,c={db:mk,realtime:vk,auth:Object.assign(Object.assign({},gk),{storageKey:u}),global:pk},f=Ek(r??{},c);this.storageKey=(s=f.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=f.global.headers)!==null&&o!==void 0?o:{},f.accessToken?(this.accessToken=f.accessToken,this.auth=new Proxy({},{get:(d,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=f.auth)!==null&&i!==void 0?i:{},this.headers,f.global.fetch),this.fetch=_k(n,this._getAccessToken.bind(this),f.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},f.realtime)),this.rest=new ME(new URL("rest/v1",l).href,{headers:this.headers,schema:f.db.schema,fetch:this.fetch}),f.accessToken||this._listenForAuthEvents()}get functions(){return new hE(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}get storage(){return new dk(this.storageUrl.href,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return wC(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,storageKey:o,flowType:i,lock:a,debug:l},u,c){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new yC({url:this.authUrl.href,headers:Object.assign(Object.assign({},f),u),storageKey:o,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,flowType:i,lock:a,debug:l,fetch:c,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new XE(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const _C=(e,t,n)=>new xC(e,t,n),bC="https://biapluubopjcrttywazi.supabase.co",SC="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJpYXBsdXVib3BqY3J0dHl3YXppIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTEzMDcwNTEsImV4cCI6MjA2Njg4MzA1MX0.wNfTBqmDHomcyctljtNA5YWY1zxygsS8hQnVub5VOiI",EC=_C(bC,SC,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),kC=()=>
117{const[e,t]=x.useState("welcome"),[n,r]=x.useState(0),[s,o]=x.useState({}),[i,a]=x.useState(""),[l,u]=x.useState(!1),[c,f]=x.useState(!1),d=()=>{t("quiz"),r(0),o({})},m=p=>{const h=It[n];o(g=>({...g,[h.id]:p})),setTimeout(()=>{n<It.length-1?r(g=>g+1):t("registration")},1e3)},y=()=>{const p=It[n];o(h=>({...h,[p.id]:-1})),n<It.length-1?r(h=>h+1):t("registration")},v=()=>{let p=0;return It.forEach(h=>{s[h.id]===h.correctAnswer&&p++}),p},w=async(p,h)=>{f(!0);try{const g=v(),_=Math.round(g/It.length*100),{error:S}=await EC.from("quiz_responses").insert({email:p,is_certified:h,score:g,total_questions:It.length,percentage:_});if(S)throw console.error("Failed to save results:",S),S;a(p),u(h),t("results")}catch(g){console.error("Failed to save results:",g),a(p),u(h),t("results")}finally{f(!1)}};if(e==="welcome")return b.jsx(GS,{onStartQuiz:d});if(e==="quiz"){const p=It[n];return b.jsx(oE,{question:p,questionNumber:n+1,totalQuestions:It.length,onAnswer:m,onTimeUp:y})}if(e==="registration")return b.jsx(iE,{onSubmit:w,isLoading:c});if(e==="results"){const p=v();return b.jsx(aE,{score:p,totalQuestions:It.length,email:i,isCertified:l})}return null},CC=()=>b.jsx(kC,{}),PC=()=>{const e=Fv();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),b.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:b.jsxs("div",{className:"text-center",children:[b.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),b.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),b.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},TC=new oS,RC=()=>b.jsx(aS,{client:TC,children:b.jsxs(Lb,{children:[b.jsx(I1,{}),b.jsx(u_,{}),b.jsx(HS,{children:b.jsxs(BS,{children:[b.jsx(Gu,{path:"/",element:b.jsx(CC,{})}),b.jsx(Gu,{path:"*",element:b.jsx(PC,{})})]})})]})});lg(document.getElementById("root")).render(b.jsx(RC,{}));
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.