vendor: 6,685 bytes, lines 1-9
1var Km=t=>{throw TypeError(t)};var wd=(t,e,r)=>e.has(t)||Km("Cannot "+r);var I=(t,e,r)=>(wd(t,e,"read from private field"),r?r.call(t):e.get(t)),Te=(t,e,r)=>e.has(t)?Km("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),fe=(t,e,r,n)=>(wd(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),wt=(t,e,r)=>(wd(t,e,"access private method"),r);var xl=(t,e,r,n)=>({set _(s){fe(t,e,s,r)},get _(){return I(t,e,n)}});function f0(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ep(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function rl(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return t[n]}})}),r}var h0={exports:{}},ku={},p0={exports:{}},ve={};/** 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 nl=Symbol.for("react.element"),ME=Symbol.for("react.portal"),$E=Symbol.for("react.fragment"),LE=Symbol.for("react.strict_mode"),FE=Symbol.for("react.profiler"),UE=Symbol.for("react.provider"),BE=Symbol.for("react.context"),VE=Symbol.for("react.forward_ref"),zE=Symbol.for("react.suspense"),WE=Symbol.for("react.memo"),HE=Symbol.for("react.lazy"),Gm=Symbol.iterator;function qE(t){return t===null||typeof t!="object"?null:(t=Gm&&t[Gm]||t["@@iterator"],typeof t=="function"?t:null)}var m0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g0=Object.assign,v0={};function Oo(t,e,r){this.props=t,this.context=e,this.refs=v0,this.updater=r||m0}Oo.prototype.isReactComponent={};Oo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Oo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function y0(){}y0.prototype=Oo.prototype;function tp(t,e,r){this.props=t,this.context=e,this.refs=v0,this.updater=r||m0}var rp=tp.prototype=new y0;rp.constructor=tp;g0(rp,Oo.prototype);rp.isPureReactComponent=!0;var Ym=Array.isArray,w0=Object.prototype.hasOwnProperty,np={current:null},x0={key:!0,ref:!0,__self:!0,__source:!0};function b0(t,e,r){var n,s={},i=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)w0.call(e,n)&&!x0.hasOwnProperty(n)&&(s[n]=e[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(t&&t.defaultProps)for(n in a=t.defaultProps,a)s[n]===void 0&&(s[n]=a[n]);return{$$typeof:nl,type:t,key:i,ref:o,props:s,_owner:np.current}}function KE(t,e){return{$$typeof:nl,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function sp(t){return typeof t=="object"&&t!==null&&t.$$typeof===nl}function GE(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var Qm=/\/+/g;function xd(t,e){return typeof t=="object"&&t!==null&&t.key!=null?GE(""+t.key):e.toString(36)}function rc(t,e,r,n,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case nl:case ME:o=!0}}if(o)return o=t,s=s(o),t=n===""?"."+xd(o,0):n,Ym(s)?(r="",t!=null&&(r=t.replace(Qm,"$&/")+"/"),rc(s,e,r,"",function(c){return c})):s!=null&&(sp(s)&&(s=KE(s,r+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Qm,"$&/")+"/")+t)),e.push(s)),1;if(o=0,n=n===""?".":n+":",Ym(t))for(var a=0;a<t.length;a++){i=t[a];var l=n+xd(i,a);o+=rc(i,e,r,l,s)}else if(l=qE(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=n+xd(i,a++),o+=rc(i,e,r,l,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function bl(t,e,r){if(t==null)return t;var n=[],s=0;return rc(t,n,"","",function(i){return e.call(r,i,s++)}),n}function YE(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Rt={current:null},nc={transition:null},QE={ReactCurrentDispatcher:Rt,ReactCurrentBatchConfig:nc,ReactCurrentOwner:np};function _0(){throw Error("act(...) is not supported in production builds of React.")}ve.Children={map:bl,forEach:function(t,e,r){bl(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return bl(t,function(){e++}),e},toArray:function(t){return bl(t,function(e){return e})||[]},only:function(t){if(!sp(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ve.Component=Oo;ve.Fragment=$E;ve.Profiler=FE;ve.PureComponent=tp;ve.StrictMode=LE;ve.Suspense=zE;
vendor: 9,060 bytes, lines 9-33
9ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QE;ve.act=_0;ve.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=g0({},t.props),s=t.key,i=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,o=np.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)w0.call(e,l)&&!x0.hasOwnProperty(l)&&(n[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];n.children=a}return{$$typeof:nl,type:t.type,key:s,ref:i,props:n,_owner:o}};ve.createContext=function(t){return t={$$typeof:BE,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:UE,_context:t},t.Consumer=t};ve.createElement=b0;ve.createFactory=function(t){var e=b0.bind(null,t);return e.type=t,e};ve.createRef=function(){return{current:null}};ve.forwardRef=function(t){return{$$typeof:VE,render:t}};ve.isValidElement=sp;ve.lazy=function(t){return{$$typeof:HE,_payload:{_status:-1,_result:t},_init:YE}};ve.memo=function(t,e){return{$$typeof:WE,type:t,compare:e===void 0?null:e}};ve.startTransition=function(t){var e=nc.transition;nc.transition={};try{t()}finally{nc.transition=e}};ve.unstable_act=_0;ve.useCallback=function(t,e){return Rt.current.useCallback(t,e)};ve.useContext=function(t){return Rt.current.useContext(t)};ve.useDebugValue=function(){};ve.useDeferredValue=function(t){return Rt.current.useDeferredValue(t)};ve.useEffect=function(t,e){return Rt.current.useEffect(t,e)};ve.useId=function(){return Rt.current.useId()};ve.useImperativeHandle=function(t,e,r){return Rt.current.useImperativeHandle(t,e,r)};ve.useInsertionEffect=function(t,e){return Rt.current.useInsertionEffect(t,e)};ve.useLayoutEffect=function(t,e){return Rt.current.useLayoutEffect(t,e)};ve.useMemo=function(t,e){return Rt.current.useMemo(t,e)};ve.useReducer=function(t,e,r){return Rt.current.useReducer(t,e,r)};ve.useRef=function(t){return Rt.current.useRef(t)};ve.useState=function(t){return Rt.current.useState(t)};ve.useSyncExternalStore=function(t,e,r){return Rt.current.useSyncExternalStore(t,e,r)};ve.useTransition=function(){return Rt.current.useTransition()};ve.version="18.3.1";p0.exports=ve;var x=p0.exports;const A=ep(x),ip=f0({__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 JE=x,ZE=Symbol.for("react.element"),XE=Symbol.for("react.fragment"),ek=Object.prototype.hasOwnProperty,tk=JE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rk={key:!0,ref:!0,__self:!0,__source:!0};function S0(t,e,r){var n,s={},i=null,o=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(n in e)ek.call(e,n)&&!rk.hasOwnProperty(n)&&(s[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)s[n]===void 0&&(s[n]=e[n]);return{$$typeof:ZE,type:t,key:i,ref:o,props:s,_owner:tk.current}}ku.Fragment=XE;ku.jsx=S0;ku.jsxs=S0;h0.exports=ku;var d=h0.exports,E0={exports:{}},er={},k0={exports:{}},C0={};/** 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(t){function e(N,R){var z=N.length;N.push(R);e:for(;0<z;){var ie=z-1>>>1,se=N[ie];if(0<s(se,R))N[ie]=R,N[z]=se,z=ie;else break e}}function r(N){return N.length===0?null:N[0]}function n(N){if(N.length===0)return null;var R=N[0],z=N.pop();if(z!==R){N[0]=z;e:for(var ie=0,se=N.length,le=se>>>1;ie<le;){var ae=2*(ie+1)-1,Re=N[ae],Ve=ae+1,H=N[Ve];if(0>s(Re,z))Ve<se&&0>s(H,Re)?(N[ie]=H,N[Ve]=z,ie=Ve):(N[ie]=Re,N[ae]=z,ie=ae);else if(Ve<se&&0>s(H,z))N[ie]=H,N[Ve]=z,ie=Ve;else break e}}return R}function s(N,R){var z=N.sortIndex-R.sortIndex;return z!==0?z:N.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,f=null,h=3,p=!1,b=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(N){for(var R=r(c);R!==null;){if(R.callback===null)n(c);else if(R.startTime<=N)n(c),R.sortIndex=R.expirationTime,e(l,R);else break;R=r(c)}}function _(N){if(g=!1,v(N),!b)if(r(l)!==null)b=!0,K(S);else{var R=r(c);R!==null&&X(_,R.startTime-N)}}function S(N,R){b=!1,g&&(g=!1,w(P),P=-1),p=!0;var z=h;try{for(v(R),f=r(l);f!==null&&(!(f.expirationTime>R)||N&&!G());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,h=f.priorityLevel;var se=ie(f.expirationTime<=R);R=t.unstable_now(),typeof se=="function"?f.callback=se:f===r(l)&&n(l),v(R)}else n(l);f=r(l)}if(f!==null)var le=!0;else{var ae=r(c);ae!==null&&X(_,ae.startTime-R),le=!1}return le}finally{f=null,h=z,p=!1}}var C=!1,k=null,P=-1,j=5,D=-1;function G(){return!(t.unstable_now()-D<j)}function M(){if(k!==null){var N=t.unstable_now();D=N;var R=!0;try{R=k(!0,N)}finally{R?B():(C=!1,k=null)}}else C=!1}var B;if(typeof m=="function")B=function(){m(M)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,ee=$.port2;$.port1.onmessage=M,B=function(){ee.postMessage(null)}}else B=function(){y(M,0)};function K(N){k=N,C||(C=!0,B())}function X(N,R){P=y(function(){N(t.unstable_now())},R)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(N){N.callback=null},t.unstable_continueExecution=function(){b||p||(b=!0,K(S))},t.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<N?Math.floor(1e3/N):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(N){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var z=h;h=R;try{return N()}finally{h=z}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(N,R){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var z=h;h=N;try{return R()}finally{h=z}},t.unstable_scheduleCallback=function(N,R,z){var ie=t.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?ie+z:ie):z=ie,N){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=z+se,N={id:u++,callback:R,priorityLevel:N,startTime:z,expirationTime:se,sortIndex:-1},z>ie?(N.sortIndex=z,e(c,N),r(l)===null&&N===r(c)&&(g?(w(P),P=-1):g=!0,X(_,z-ie))):(N.sortIndex=se,e(l,N),b||p||(b=!0,K(S))),N},t.unstable_shouldYield=G,t.unstable_wrapCallback=function(N){var R=h;return function(){var z=h;h=R;try{return N.apply(this,arguments)}finally{h=z}}}})(C0);k0.exports=C0;var nk=k0.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 sk=x,Zt=nk;function L(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var T0=new Set,Sa={};function hi(t,e){mo(t,e),mo(t+"Capture",e)}function mo(t,e){for(Sa[t]=e,t=0;t<e.length;t++)T0.add(e[t])}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vf=Object.prototype.hasOwnProperty,ik=/^[: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]*$/,Jm={},Zm={};function ok(t){return vf.call(Zm,t)?!0:vf.call(Jm,t)?!1:ik.test(t)?Zm[t]=!0:(Jm[t]=!0,!1)}function ak(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function lk(t,e,r,n){if(e===null||typeof e>"u"||ak(t,e,r,n))return!0;
vendor: 5,200 bytes, lines 33-34
33if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function At(t,e,r,n,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){vt[t]=new At(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];vt[e]=new At(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){vt[t]=new At(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){vt[t]=new At(t,2,!1,t,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(t){vt[t]=new At(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){vt[t]=new At(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){vt[t]=new At(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){vt[t]=new At(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){vt[t]=new At(t,5,!1,t.toLowerCase(),null,!1,!1)});var op=/[\-:]([a-z])/g;function ap(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(op,ap);vt[e]=new At(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(op,ap);vt[e]=new At(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(op,ap);vt[e]=new At(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){vt[t]=new At(t,1,!1,t.toLowerCase(),null,!1,!1)});vt.xlinkHref=new At("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){vt[t]=new At(t,1,!1,t.toLowerCase(),null,!0,!0)});function lp(t,e,r,n){var s=vt.hasOwnProperty(e)?vt[e]:null;(s!==null?s.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(lk(e,r,s,n)&&(r=null),n||s===null?ok(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):s.mustUseProperty?t[s.propertyName]=r===null?s.type===3?!1:"":r:(e=s.attributeName,n=s.attributeNamespace,r===null?t.removeAttribute(e):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var Pn=sk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_l=Symbol.for("react.element"),Ii=Symbol.for("react.portal"),Di=Symbol.for("react.fragment"),cp=Symbol.for("react.strict_mode"),yf=Symbol.for("react.profiler"),j0=Symbol.for("react.provider"),P0=Symbol.for("react.context"),up=Symbol.for("react.forward_ref"),wf=Symbol.for("react.suspense"),xf=Symbol.for("react.suspense_list"),dp=Symbol.for("react.memo"),Wn=Symbol.for("react.lazy"),N0=Symbol.for("react.offscreen"),Xm=Symbol.iterator;function zo(t){return t===null||typeof t!="object"?null:(t=Xm&&t[Xm]||t["@@iterator"],typeof t=="function"?t:null)}var Ye=Object.assign,bd;function ta(t){if(bd===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);bd=e&&e[1]||""}return` 34`+bd+t}var _d=!1;function Sd(t,e){if(!t||_d)return"";_d=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var n=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){n=c}t.call(e.prototype)}else{try{throw Error()}catch(c){n=c}t()}}
vendor: 16,737 bytes, lines 34-37
34catch(c){if(c&&n&&typeof c.stack=="string"){for(var s=c.stack.split(` 35`),i=n.stack.split(` 36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=` 37`+s[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{_d=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?ta(t):""}function ck(t){switch(t.tag){case 5:return ta(t.type);case 16:return ta("Lazy");case 13:return ta("Suspense");case 19:return ta("SuspenseList");case 0:case 2:case 15:return t=Sd(t.type,!1),t;case 11:return t=Sd(t.type.render,!1),t;case 1:return t=Sd(t.type,!0),t;default:return""}}function bf(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Di:return"Fragment";case Ii:return"Portal";case yf:return"Profiler";case cp:return"StrictMode";case wf:return"Suspense";case xf:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case P0:return(t.displayName||"Context")+".Consumer";case j0:return(t._context.displayName||"Context")+".Provider";case up:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case dp:return e=t.displayName||null,e!==null?e:bf(t.type)||"Memo";case Wn:e=t._payload,t=t._init;try{return bf(t(e))}catch{}}return null}function uk(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bf(e);case 8:return e===cp?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ms(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function O0(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function dk(t){var e=O0(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Sl(t){t._valueTracker||(t._valueTracker=dk(t))}function R0(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=O0(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Ec(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function _f(t,e){var r=e.checked;return Ye({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function eg(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=ms(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function A0(t,e){e=e.checked,e!=null&&lp(t,"checked",e,!1)}function Sf(t,e){A0(t,e);var r=ms(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ef(t,e.type,r):e.hasOwnProperty("defaultValue")&&Ef(t,e.type,ms(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function tg(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Ef(t,e,r){(e!=="number"||Ec(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var ra=Array.isArray;function qi(t,e,r,n){if(t=t.options,e){e={};for(var s=0;s<r.length;s++)e["$"+r[s]]=!0;for(r=0;r<t.length;r++)s=e.hasOwnProperty("$"+t[r].value),t[r].selected!==s&&(t[r].selected=s),s&&n&&(t[r].defaultSelected=!0)}else{for(r=""+ms(r),e=null,s=0;s<t.length;s++){if(t[s].value===r){t[s].selected=!0,n&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function kf(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(L(91));return Ye({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function rg(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(L(92));if(ra(r)){if(1<r.length)throw Error(L(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:ms(r)}}function I0(t,e){var r=ms(e.value),n=ms(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function ng(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function D0(t){switch(t){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 Cf(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?D0(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var El,M0=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,s){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(El=El||document.createElement("div"),El.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=El.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Ea(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var da={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},fk=["Webkit","ms","Moz","O"];Object.keys(da).forEach(function(t){fk.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),da[e]=da[t]})});function $0(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||da.hasOwnProperty(t)&&da[t]?(""+e).trim():e+"px"}function L0(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=$0(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,s):t[r]=s}}var hk=Ye({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 Tf(t,e){if(e){if(hk[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(L(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(L(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(L(61))}if(e.style!=null&&typeof e.style!="object")throw Error(L(62))}}function jf(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Pf=null;function fp(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Nf=null,Ki=null,Gi=null;function sg(t){if(t=ol(t)){if(typeof Nf!="function")throw Error(L(280));var e=t.stateNode;e&&(e=Nu(e),Nf(t.stateNode,t.type,e))}}function F0(t){Ki?Gi?Gi.push(t):Gi=[t]:Ki=t}function U0(){if(Ki){var t=Ki,e=Gi;if(Gi=Ki=null,sg(t),e)for(t=0;t<e.length;t++)sg(e[t])}}function B0(t,e){return t(e)}function V0(){}var Ed=!1;function z0(t,e,r){if(Ed)return t(e,r);Ed=!0;try{return B0(t,e,r)}finally{Ed=!1,(Ki!==null||Gi!==null)&&(V0(),U0())}}function ka(t,e){var r=t.stateNode;if(r===null)return null;var n=Nu(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(L(231,e,typeof r));return r}var Of=!1;if(_n)try{var Wo={};Object.defineProperty(Wo,"passive",{get:function(){Of=!0}}),window.addEventListener("test",Wo,Wo),window.removeEventListener("test",Wo,Wo)}catch{Of=!1}function pk(t,e,r,n,s,i,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(r,c)}catch(u){this.onError(u)}}var fa=!1,kc=null,Cc=!1,Rf=null,mk={onError:function(t){fa=!0,kc=t}};function gk(t,e,r,n,s,i,o,a,l){fa=!1,kc=null,pk.apply(mk,arguments)}function vk(t,e,r,n,s,i,o,a,l){if(gk.apply(this,arguments),fa){if(fa){var c=kc;fa=!1,kc=null}else throw Error(L(198));Cc||(Cc=!0,Rf=c)}}function pi(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function W0(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function ig(t){if(pi(t)!==t)throw Error(L(188))}function yk(t){var e=t.alternate;if(!e){if(e=pi(t),e===null)throw Error(L(188));return e!==t?null:t}for(var r=t,n=e;;){var s=r.return;if(s===null)break;var i=s.alternate;if(i===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===r)return ig(s),t;if(i===n)return ig(s),e;i=i.sibling}throw Error(L(188))}if(r.return!==n.return)r=s,n=i;else{for(var o=!1,a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o)throw Error(L(189))}}if(r.alternate!==n)throw Error(L(190))}if(r.tag!==3)throw Error(L(188));return r.stateNode.current===r?t:e}function H0(t){return t=yk(t),t!==null?q0(t):null}function q0(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=q0(t);if(e!==null)return e;t=t.sibling}return null}var K0=Zt.unstable_scheduleCallback,og=Zt.unstable_cancelCallback,wk=Zt.unstable_shouldYield,xk=Zt.unstable_requestPaint,et=Zt.unstable_now,bk=Zt.unstable_getCurrentPriorityLevel,hp=Zt.unstable_ImmediatePriority,G0=Zt.unstable_UserBlockingPriority,Tc=Zt.unstable_NormalPriority,_k=Zt.unstable_LowPriority,Y0=Zt.unstable_IdlePriority,Cu=null,tn=null;function Sk(t){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Cu,t,void 0,(t.current.flags&128)===128)}catch{}}var Rr=Math.clz32?Math.clz32:Ck,Ek=Math.log,kk=Math.LN2;function Ck(t){return t>>>=0,t===0?32:31-(Ek(t)/kk|0)|0}var kl=64,Cl=4194304;function na(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function jc(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,s=t.suspendedLanes,i=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~s;a!==0?n=na(a):(i&=o,i!==0&&(n=na(i)))}else o=r&~s,o!==0?n=na(o):i!==0&&(n=na(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&s)&&(s=n&-n,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-Rr(e),s=1<<r,n|=t[r],e&=~s;return n}function Tk(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 jk(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,s=t.expirationTimes,i=t.pendingLanes;0<i;){var o=31-Rr(i),a=1<<o,l=s[o];l===-1?(!(a&r)||a&n)&&(s[o]=Tk(a,e)):l<=e&&(t.expiredLanes|=a),i&=~a}}function Af(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Q0(){var t=kl;return kl<<=1,!(kl&4194240)&&(kl=64),t}function kd(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function sl(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Rr(e),t[e]=r}function Pk(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var s=31-Rr(r),i=1<<s;e[s]=0,n[s]=-1,t[s]=-1,r&=~i}}function pp(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-Rr(r),s=1<<n;s&e|t[n]&e&&(t[n]|=e),r&=~s}}var Oe=0;function J0(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Z0,mp,X0,ew,tw,If=!1,Tl=[],os=null,as=null,ls=null,Ca=new Map,Ta=new Map,Kn=[],Nk="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 ag(t,e){switch(t){case"focusin":case"focusout":os=null;break;case"dragenter":case"dragleave":as=null;break;case"mouseover":case"mouseout":ls=null;break;case"pointerover":case"pointerout":Ca.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ta.delete(e.pointerId)}}function Ho(t,e,r,n,s,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[s]},e!==null&&(e=ol(e),e!==null&&mp(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Ok(t,e,r,n,s){switch(e){case"focusin":return os=Ho(os,t,e,r,n,s),!0;case"dragenter":return as=Ho(as,t,e,r,n,s),!0;case"mouseover":return ls=Ho(ls,t,e,r,n,s),!0;case"pointerover":var i=s.pointerId;return Ca.set(i,Ho(Ca.get(i)||null,t,e,r,n,s)),!0;case"gotpointercapture":return i=s.pointerId,Ta.set(i,Ho(Ta.get(i)||null,t,e,r,n,s)),!0}return!1}function rw(t){var e=Vs(t.target);if(e!==null){var r=pi(e);if(r!==null){if(e=r.tag,e===13){if(e=W0(r),e!==null){t.blockedOn=e,tw(t.priority,function(){X0(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function sc(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=Df(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Pf=n,r.target.dispatchEvent(n),Pf=null}else return e=ol(r),e!==null&&mp(e),t.blockedOn=r,!1;e.shift()}return!0}function lg(t,e,r){sc(t)&&r.delete(e)}function Rk(){If=!1,os!==null&&sc(os)&&(os=null),as!==null&&sc(as)&&(as=null),ls!==null&&sc(ls)&&(ls=null),Ca.forEac
vendor: 11,841 bytes, line 37
37h(lg),Ta.forEach(lg)}function qo(t,e){t.blockedOn===e&&(t.blockedOn=null,If||(If=!0,Zt.unstable_scheduleCallback(Zt.unstable_NormalPriority,Rk)))}function ja(t){function e(s){return qo(s,t)}if(0<Tl.length){qo(Tl[0],t);for(var r=1;r<Tl.length;r++){var n=Tl[r];n.blockedOn===t&&(n.blockedOn=null)}}for(os!==null&&qo(os,t),as!==null&&qo(as,t),ls!==null&&qo(ls,t),Ca.forEach(e),Ta.forEach(e),r=0;r<Kn.length;r++)n=Kn[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<Kn.length&&(r=Kn[0],r.blockedOn===null);)rw(r),r.blockedOn===null&&Kn.shift()}var Yi=Pn.ReactCurrentBatchConfig,Pc=!0;function Ak(t,e,r,n){var s=Oe,i=Yi.transition;Yi.transition=null;try{Oe=1,gp(t,e,r,n)}finally{Oe=s,Yi.transition=i}}function Ik(t,e,r,n){var s=Oe,i=Yi.transition;Yi.transition=null;try{Oe=4,gp(t,e,r,n)}finally{Oe=s,Yi.transition=i}}function gp(t,e,r,n){if(Pc){var s=Df(t,e,r,n);if(s===null)Dd(t,e,n,Nc,r),ag(t,n);else if(Ok(s,t,e,r,n))n.stopPropagation();else if(ag(t,n),e&4&&-1<Nk.indexOf(t)){for(;s!==null;){var i=ol(s);if(i!==null&&Z0(i),i=Df(t,e,r,n),i===null&&Dd(t,e,n,Nc,r),i===s)break;s=i}s!==null&&n.stopPropagation()}else Dd(t,e,n,null,r)}}var Nc=null;function Df(t,e,r,n){if(Nc=null,t=fp(n),t=Vs(t),t!==null)if(e=pi(t),e===null)t=null;else if(r=e.tag,r===13){if(t=W0(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Nc=t,null}function nw(t){switch(t){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(bk()){case hp:return 1;case G0:return 4;case Tc:case _k:return 16;case Y0:return 536870912;default:return 16}default:return 16}}var rs=null,vp=null,ic=null;function sw(){if(ic)return ic;var t,e=vp,r=e.length,n,s="value"in rs?rs.value:rs.textContent,i=s.length;for(t=0;t<r&&e[t]===s[t];t++);var o=r-t;for(n=1;n<=o&&e[r-n]===s[i-n];n++);return ic=s.slice(t,1<n?1-n:void 0)}function oc(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function jl(){return!0}function cg(){return!1}function tr(t){function e(r,n,s,i,o){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(r=t[a],this[a]=r?r(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?jl:cg,this.isPropagationStopped=cg,this}return Ye(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=jl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),e}var Ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yp=tr(Ro),il=Ye({},Ro,{view:0,detail:0}),Dk=tr(il),Cd,Td,Ko,Tu=Ye({},il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wp,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ko&&(Ko&&t.type==="mousemove"?(Cd=t.screenX-Ko.screenX,Td=t.screenY-Ko.screenY):Td=Cd=0,Ko=t),Cd)},movementY:function(t){return"movementY"in t?t.movementY:Td}}),ug=tr(Tu),Mk=Ye({},Tu,{dataTransfer:0}),$k=tr(Mk),Lk=Ye({},il,{relatedTarget:0}),jd=tr(Lk),Fk=Ye({},Ro,{animationName:0,elapsedTime:0,pseudoElement:0}),Uk=tr(Fk),Bk=Ye({},Ro,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Vk=tr(Bk),zk=Ye({},Ro,{data:0}),dg=tr(zk),Wk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hk={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"},qk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kk(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=qk[t])?!!e[t]:!1}function wp(){return Kk}var Gk=Ye({},il,{key:function(t){if(t.key){var e=Wk[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=oc(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Hk[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wp,charCode:function(t){return t.type==="keypress"?oc(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?oc(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Yk=tr(Gk),Qk=Ye({},Tu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fg=tr(Qk),Jk=Ye({},il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wp}),Zk=tr(Jk),Xk=Ye({},Ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),eC=tr(Xk),tC=Ye({},Tu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),rC=tr(tC),nC=[9,13,27,32],xp=_n&&"CompositionEvent"in window,ha=null;_n&&"documentMode"in document&&(ha=document.documentMode);var sC=_n&&"TextEvent"in window&&!ha,iw=_n&&(!xp||ha&&8<ha&&11>=ha),hg=" ",pg=!1;function ow(t,e){switch(t){case"keyup":return nC.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aw(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Mi=!1;function iC(t,e){switch(t){case"compositionend":return aw(e);case"keypress":return e.which!==32?null:(pg=!0,hg);case"textInput":return t=e.data,t===hg&&pg?null:t;default:return null}}function oC(t,e){if(Mi)return t==="compositionend"||!xp&&ow(t,e)?(t=sw(),ic=vp=rs=null,Mi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return iw&&e.locale!=="ko"?null:e.data;default:return null}}var aC={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 mg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!aC[t.type]:e==="textarea"}function lw(t,e,r,n){F0(n),e=Oc(e,"onChange"),0<e.length&&(r=new yp("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var pa=null,Pa=null;function lC(t){ww(t,0)}function ju(t){var e=Fi(t);if(R0(e))return t}function cC(t,e){if(t==="change")return e}var cw=!1;if(_n){var Pd;if(_n){var Nd="oninput"in document;if(!Nd){var gg=document.createElement("div");gg.setAttribute("oninput","return;"),Nd=typeof gg.oninput=="function"}Pd=Nd}else Pd=!1;cw=Pd&&(!document.documentMode||9<document.documentMode)}function vg(){pa&&(pa.detachEvent("onpropertychange",uw),Pa=pa=null)}function uw(t){if(t.propertyName==="value"&&ju(Pa)){var e=[];lw(e,Pa,t,fp(t)),z0(lC,e)}}function uC(t,e,r){t==="focusin"?(vg(),pa=e,Pa=r,pa.attachEvent("onpropertychange",uw)):t==="focusout"&&vg()}function dC(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ju(Pa)}function fC(t,e){if(t==="click")return ju(e)}function hC(t,e){if(t==="input"||t==="change")return ju(e)}function pC(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ir=typeof Object.is=="function"?Object.is:pC;function Na(t,e){if(Ir(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!vf.call(e,s)||!Ir(t[s],e[s]))return!1}return!0}function yg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function wg(t,e){var r=yg(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=yg(r)}}function dw(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?dw(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function fw(){for(var t=window,e=Ec();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Ec(t.document)}return e}function bp(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function mC(t){var e=fw(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&dw(r.ownerDocument.documentElement,r)){if(n!==null&&bp(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!t.extend&&i>n&&(s=n,n=i,i=s),s=wg(r,i);var o=wg(r,n);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var gC=_n&&"documentMode"in document&&11>=document.documentMode,$i=null,Mf=null,ma=null,$f=!1;function xg(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$f||$i==null||$i!==Ec(n)||(n=$i,"selectionStart"in n&&bp(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,383 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),ma&&Na(ma,n)||(ma=n,n=Oc(Mf,"onSelect"),0<n.length&&(e=new yp("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=$i)))}function Pl(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Li={animationend:Pl("Animation","AnimationEnd"),animationiteration:Pl("Animation","AnimationIteration"),animationstart:Pl("Animation","AnimationStart"),transitionend:Pl("Transition","TransitionEnd")},Od={},hw={};_n&&(hw=document.createElement("div").style,"AnimationEvent"in window||(delete Li.animationend.animation,delete Li.animationiteration.animation,delete Li.animationstart.animation),"TransitionEvent"in window||delete Li.transitionend.transition);function Pu(t){if(Od[t])return Od[t];if(!Li[t])return t;var e=Li[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in hw)return Od[t]=e[r];return t}var pw=Pu("animationend"),mw=Pu("animationiteration"),gw=Pu("animationstart"),vw=Pu("transitionend"),yw=new Map,bg="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 bs(t,e){yw.set(t,e),hi(e,[t])}for(var Rd=0;Rd<bg.length;Rd++){var Ad=bg[Rd],vC=Ad.toLowerCase(),yC=Ad[0].toUpperCase()+Ad.slice(1);bs(vC,"on"+yC)}bs(pw,"onAnimationEnd");bs(mw,"onAnimationIteration");bs(gw,"onAnimationStart");bs("dblclick","onDoubleClick");bs("focusin","onFocus");bs("focusout","onBlur");bs(vw,"onTransitionEnd");mo("onMouseEnter",["mouseout","mouseover"]);mo("onMouseLeave",["mouseout","mouseover"]);mo("onPointerEnter",["pointerout","pointerover"]);mo("onPointerLeave",["pointerout","pointerover"]);hi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));hi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));hi("onBeforeInput",["compositionend","keypress","textInput","paste"]);hi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));hi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));hi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sa="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(" "),wC=new Set("cancel close invalid load scroll toggle".split(" ").concat(sa));function _g(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,vk(n,e,void 0,t),t.currentTarget=null}function ww(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],s=n.event;n=n.listeners;e:{var i=void 0;if(e)for(var o=n.length-1;0<=o;o--){var a=n[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;_g(s,a,c),i=l}else for(o=0;o<n.length;o++){if(a=n[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;_g(s,a,c),i=l}}}if(Cc)throw t=Rf,Cc=!1,Rf=null,t}function Fe(t,e){var r=e[Vf];r===void 0&&(r=e[Vf]=new Set);var n=t+"__bubble";r.has(n)||(xw(e,t,2,!1),r.add(n))}function Id(t,e,r){var n=0;e&&(n|=4),xw(r,t,n,e)}var Nl="_reactListening"+Math.random().toString(36).slice(2);function Oa(t){if(!t[Nl]){t[Nl]=!0,T0.forEach(function(r){r!=="selectionchange"&&(wC.has(r)||Id(r,!1,t),Id(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Nl]||(e[Nl]=!0,Id("selectionchange",!1,e))}}function xw(t,e,r,n){switch(nw(e)){case 1:var s=Ak;break;case 4:s=Ik;break;default:s=gp}r=s.bind(null,e,r,t),s=void 0,!Of||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),n?s!==void 0?t.addEventListener(e,r,{capture:!0,passive:s}):t.addEventListener(e,r,!0):s!==void 0?t.addEventListener(e,r,{passive:s}):t.addEventListener(e,r,!1)}function Dd(t,e,r,n,s){var i=n;
vendor: 2,645 bytes, line 37
37if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Vs(a),o===null)return;if(l=o.tag,l===5||l===6){n=i=o;continue e}a=a.parentNode}}n=n.return}z0(function(){var c=i,u=fp(r),f=[];e:{var h=yw.get(t);if(h!==void 0){var p=yp,b=t;switch(t){case"keypress":if(oc(r)===0)break e;case"keydown":case"keyup":p=Yk;break;case"focusin":b="focus",p=jd;break;case"focusout":b="blur",p=jd;break;case"beforeblur":case"afterblur":p=jd;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=ug;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=$k;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Zk;break;case pw:case mw:case gw:p=Uk;break;case vw:p=eC;break;case"scroll":p=Dk;break;case"wheel":p=rC;break;case"copy":case"cut":case"paste":p=Vk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=fg}var g=(e&4)!==0,y=!g&&t==="scroll",w=g?h!==null?h+"Capture":null:h;g=[];for(var m=c,v;m!==null;){v=m;var _=v.stateNode;if(v.tag===5&&_!==null&&(v=_,w!==null&&(_=ka(m,w),_!=null&&g.push(Ra(m,_,v)))),y)break;m=m.return}0<g.length&&(h=new p(h,b,null,r,u),f.push({event:h,listeners:g}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",h&&r!==Pf&&(b=r.relatedTarget||r.fromElement)&&(Vs(b)||b[Sn]))break e;if((p||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,p?(b=r.relatedTarget||r.toElement,p=c,b=b?Vs(b):null,b!==null&&(y=pi(b),b!==y||b.tag!==5&&b.tag!==6)&&(b=null)):(p=null,b=c),p!==b)){if(g=ug,_="onMouseLeave",w="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(g=fg,_="onPointerLeave",w="onPointerEnter",m="pointer"),y=p==null?h:Fi(p),v=b==null?h:Fi(b),h=new g(_,m+"leave",p,r,u),h.target=y,h.relatedTarget=v,_=null,Vs(u)===c&&(g=new g(w,m+"enter",b,r,u),g.target=v,g.relatedTarget=y,_=g),y=_,p&&b)t:{for(g=p,w=b,m=0,v=g;v;v=wi(v))m++;for(v=0,_=w;_;_=wi(_))v++;for(;0<m-v;)g=wi(g),m--;for(;0<v-m;)w=wi(w),v--;for(;m--;){if(g===w||w!==null&&g===w.alternate)break t;g=wi(g),w=wi(w)}g=null}else g=null;p!==null&&Sg(f,h,p,g,!1),b!==null&&y!==null&&Sg(f,y,b,g,!0)}}
vendor: 5,393 bytes, lines 37-38
37e:{if(h=c?Fi(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var S=cC;else if(mg(h))if(cw)S=hC;else{S=dC;var C=uC}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=fC);if(S&&(S=S(t,c))){lw(f,S,r,u);break e}C&&C(t,h,c),t==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&Ef(h,"number",h.value)}switch(C=c?Fi(c):window,t){case"focusin":(mg(C)||C.contentEditable==="true")&&($i=C,Mf=c,ma=null);break;case"focusout":ma=Mf=$i=null;break;case"mousedown":$f=!0;break;case"contextmenu":case"mouseup":case"dragend":$f=!1,xg(f,r,u);break;case"selectionchange":if(gC)break;case"keydown":case"keyup":xg(f,r,u)}var k;if(xp)e:{switch(t){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Mi?ow(t,r)&&(P="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(iw&&r.locale!=="ko"&&(Mi||P!=="onCompositionStart"?P==="onCompositionEnd"&&Mi&&(k=sw()):(rs=u,vp="value"in rs?rs.value:rs.textContent,Mi=!0)),C=Oc(c,P),0<C.length&&(P=new dg(P,t,null,r,u),f.push({event:P,listeners:C}),k?P.data=k:(k=aw(r),k!==null&&(P.data=k)))),(k=sC?iC(t,r):oC(t,r))&&(c=Oc(c,"onBeforeInput"),0<c.length&&(u=new dg("onBeforeInput","beforeinput",null,r,u),f.push({event:u,listeners:c}),u.data=k))}ww(f,e)})}function Ra(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Oc(t,e){for(var r=e+"Capture",n=[];t!==null;){var s=t,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ka(t,r),i!=null&&n.unshift(Ra(t,i,s)),i=ka(t,e),i!=null&&n.push(Ra(t,i,s))),t=t.return}return n}function wi(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Sg(t,e,r,n,s){for(var i=e._reactName,o=[];r!==null&&r!==n;){var a=r,l=a.alternate,c=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&c!==null&&(a=c,s?(l=ka(r,i),l!=null&&o.unshift(Ra(r,l,a))):s||(l=ka(r,i),l!=null&&o.push(Ra(r,l,a)))),r=r.return}o.length!==0&&t.push({event:e,listeners:o})}var xC=/\r\n?/g,bC=/\u0000|\uFFFD/g;function Eg(t){return(typeof t=="string"?t:""+t).replace(xC,` 38`).replace(bC,"")}function Ol(t,e,r){if(e=Eg(e),Eg(t)!==e&&r)throw Error(L(425))}function Rc(){}var Lf=null,Ff=null;function Uf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Bf=typeof setTimeout=="function"?setTimeout:void 0,_C=typeof clearTimeout=="function"?clearTimeout:void 0,kg=typeof Promise=="function"?Promise:void 0,SC=typeof queueMicrotask=="function"?queueMicrotask:typeof kg<"u"?function(t){return kg.resolve(null).then(t).catch(EC)}:Bf;function EC(t){setTimeout(function(){throw t})}function Md(t,e){var r=e,n=0;do{var s=r.nextSibling;if(t.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){t.removeChild(s),ja(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);ja(e)}function cs(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Cg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Ao=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Ao,Aa="__reactProps$"+Ao,Sn="__reactContainer$"+Ao,Vf="__reactEvents$"+Ao,kC="__reactListeners$"+Ao,CC="__reactHandles$"+Ao;function Vs(t){var e=t[Qr];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Sn]||r[Qr]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=Cg(t);t!==null;){if(r=t[Qr])return r;t=Cg(t)}return e}t=r,r=t.parentNode}return null}function ol(t){return t=t[Qr]||t[Sn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Fi(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(L(33))}function Nu(t){return t[Aa]||null}var zf=[],Ui=-1;function _s(t){return{current:t}}function Ue(t){0>Ui||(t.current=zf[Ui],zf[Ui]=null,Ui--)}function $e(t,e){Ui++,zf[Ui]=t.current,t.current=e}var gs={},kt=_s(gs),Bt=_s(!1),ri=gs;function go(t,e){var r=t.type.contextTypes;if(!r)return gs;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function Vt(t){return t=t.childContextTypes,t!=null}function Ac(){Ue(Bt),Ue(kt)}function Tg(t,e,r){if(kt.current!==gs)throw Error(L(168));$e(kt,e),$e(Bt,r)}function bw(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in e))throw Error(L(108,uk(t)||"Unknown",s));return Ye({},r,n)}function Ic(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||gs,ri=kt.current,$e(kt,t),$e(Bt,Bt.current),!0}function jg(t,e,r){var n=t.stateNode;if(!n)throw Error(L(169));r?(t=bw(t,e,ri),n.__reactInternalMemoizedMergedChildContext=t,Ue(Bt),Ue(kt),$e(kt,t)):Ue(Bt),$e(Bt,r)}var gn=null,Ou=!1,$d=!1;function _w(t){gn===null?gn=[t]:gn.push(t)}function TC(t){Ou=!0,_w(t)}function Ss(){if(!$d&&gn!==null){$d=!0;var t=0,e=Oe;
vendor: 14,697 bytes, line 38
38try{var r=gn;for(Oe=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}gn=null,Ou=!1}catch(s){throw gn!==null&&(gn=gn.slice(t+1)),K0(hp,Ss),s}finally{Oe=e,$d=!1}}return null}var Bi=[],Vi=0,Dc=null,Mc=0,nr=[],sr=0,ni=null,wn=1,xn="";function As(t,e){Bi[Vi++]=Mc,Bi[Vi++]=Dc,Dc=t,Mc=e}function Sw(t,e,r){nr[sr++]=wn,nr[sr++]=xn,nr[sr++]=ni,ni=t;var n=wn;t=xn;var s=32-Rr(n)-1;n&=~(1<<s),r+=1;var i=32-Rr(e)+s;if(30<i){var o=s-s%5;i=(n&(1<<o)-1).toString(32),n>>=o,s-=o,wn=1<<32-Rr(e)+s|r<<s|n,xn=i+t}else wn=1<<i|r<<s|n,xn=t}function _p(t){t.return!==null&&(As(t,1),Sw(t,1,0))}function Sp(t){for(;t===Dc;)Dc=Bi[--Vi],Bi[Vi]=null,Mc=Bi[--Vi],Bi[Vi]=null;for(;t===ni;)ni=nr[--sr],nr[sr]=null,xn=nr[--sr],nr[sr]=null,wn=nr[--sr],nr[sr]=null}var Qt=null,Yt=null,He=!1,jr=null;function Ew(t,e){var r=lr(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function Pg(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Qt=t,Yt=cs(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Qt=t,Yt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=ni!==null?{id:wn,overflow:xn}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=lr(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Qt=t,Yt=null,!0):!1;default:return!1}}function Wf(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Hf(t){if(He){var e=Yt;if(e){var r=e;if(!Pg(t,e)){if(Wf(t))throw Error(L(418));e=cs(r.nextSibling);var n=Qt;e&&Pg(t,e)?Ew(n,r):(t.flags=t.flags&-4097|2,He=!1,Qt=t)}}else{if(Wf(t))throw Error(L(418));t.flags=t.flags&-4097|2,He=!1,Qt=t}}}function Ng(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Qt=t}function Rl(t){if(t!==Qt)return!1;if(!He)return Ng(t),He=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Uf(t.type,t.memoizedProps)),e&&(e=Yt)){if(Wf(t))throw kw(),Error(L(418));for(;e;)Ew(t,e),e=cs(e.nextSibling)}if(Ng(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(L(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){Yt=cs(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}Yt=null}}else Yt=Qt?cs(t.stateNode.nextSibling):null;return!0}function kw(){for(var t=Yt;t;)t=cs(t.nextSibling)}function vo(){Yt=Qt=null,He=!1}function Ep(t){jr===null?jr=[t]:jr.push(t)}var jC=Pn.ReactCurrentBatchConfig;function Go(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(L(309));var n=r.stateNode}if(!n)throw Error(L(147,t));var s=n,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(L(284));if(!r._owner)throw Error(L(290,t))}return t}function Al(t,e){throw t=Object.prototype.toString.call(e),Error(L(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Og(t){var e=t._init;return e(t._payload)}function Cw(t){function e(w,m){if(t){var v=w.deletions;v===null?(w.deletions=[m],w.flags|=16):v.push(m)}}function r(w,m){if(!t)return null;for(;m!==null;)e(w,m),m=m.sibling;return null}function n(w,m){for(w=new Map;m!==null;)m.key!==null?w.set(m.key,m):w.set(m.index,m),m=m.sibling;return w}function s(w,m){return w=hs(w,m),w.index=0,w.sibling=null,w}function i(w,m,v){return w.index=v,t?(v=w.alternate,v!==null?(v=v.index,v<m?(w.flags|=2,m):v):(w.flags|=2,m)):(w.flags|=1048576,m)}function o(w){return t&&w.alternate===null&&(w.flags|=2),w}function a(w,m,v,_){return m===null||m.tag!==6?(m=Wd(v,w.mode,_),m.return=w,m):(m=s(m,v),m.return=w,m)}function l(w,m,v,_){var S=v.type;return S===Di?u(w,m,v.props.children,_,v.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Wn&&Og(S)===m.type)?(_=s(m,v.props),_.ref=Go(w,m,v),_.return=w,_):(_=hc(v.type,v.key,v.props,null,w.mode,_),_.ref=Go(w,m,v),_.return=w,_)}function c(w,m,v,_){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=Hd(v,w.mode,_),m.return=w,m):(m=s(m,v.children||[]),m.return=w,m)}function u(w,m,v,_,S){return m===null||m.tag!==7?(m=ei(v,w.mode,_,S),m.return=w,m):(m=s(m,v),m.return=w,m)}function f(w,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Wd(""+m,w.mode,v),m.return=w,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case _l:return v=hc(m.type,m.key,m.props,null,w.mode,v),v.ref=Go(w,null,m),v.return=w,v;case Ii:return m=Hd(m,w.mode,v),m.return=w,m;case Wn:var _=m._init;return f(w,_(m._payload),v)}if(ra(m)||zo(m))return m=ei(m,w.mode,v,null),m.return=w,m;Al(w,m)}return null}function h(w,m,v,_){var S=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return S!==null?null:a(w,m,""+v,_);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case _l:return v.key===S?l(w,m,v,_):null;case Ii:return v.key===S?c(w,m,v,_):null;case Wn:return S=v._init,h(w,m,S(v._payload),_)}if(ra(v)||zo(v))return S!==null?null:u(w,m,v,_,null);Al(w,v)}return null}function p(w,m,v,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return w=w.get(v)||null,a(m,w,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case _l:return w=w.get(_.key===null?v:_.key)||null,l(m,w,_,S);case Ii:return w=w.get(_.key===null?v:_.key)||null,c(m,w,_,S);case Wn:var C=_._init;return p(w,m,v,C(_._payload),S)}if(ra(_)||zo(_))return w=w.get(v)||null,u(m,w,_,S,null);Al(m,_)}return null}function b(w,m,v,_){for(var S=null,C=null,k=m,P=m=0,j=null;k!==null&&P<v.length;P++){k.index>P?(j=k,k=null):j=k.sibling;var D=h(w,k,v[P],_);if(D===null){k===null&&(k=j);break}t&&k&&D.alternate===null&&e(w,k),m=i(D,m,P),C===null?S=D:C.sibling=D,C=D,k=j}if(P===v.length)return r(w,k),He&&As(w,P),S;if(k===null){for(;P<v.length;P++)k=f(w,v[P],_),k!==null&&(m=i(k,m,P),C===null?S=k:C.sibling=k,C=k);return He&&As(w,P),S}for(k=n(w,k);P<v.length;P++)j=p(k,w,P,v[P],_),j!==null&&(t&&j.alternate!==null&&k.delete(j.key===null?P:j.key),m=i(j,m,P),C===null?S=j:C.sibling=j,C=j);return t&&k.forEach(function(G){return e(w,G)}),He&&As(w,P),S}function g(w,m,v,_){var S=zo(v);if(typeof S!="function")throw Error(L(150));if(v=S.call(v),v==null)throw Error(L(151));for(var C=S=null,k=m,P=m=0,j=null,D=v.next();k!==null&&!D.done;P++,D=v.next()){k.index>P?(j=k,k=null):j=k.sibling;var G=h(w,k,D.value,_);if(G===null){k===null&&(k=j);break}t&&k&&G.alternate===null&&e(w,k),m=i(G,m,P),C===null?S=G:C.sibling=G,C=G,k=j}if(D.done)return r(w,k),He&&As(w,P),S;if(k===null){for(;!D.done;P++,D=v.next())D=f(w,D.value,_),D!==null&&(m=i(D,m,P),C===null?S=D:C.sibling=D,C=D);return He&&As(w,P),S}for(k=n(w,k);!D.done;P++,D=v.next())D=p(k,w,P,D.value,_),D!==null&&(t&&D.alternate!==null&&k.delete(D.key===null?P:D.key),m=i(D,m,P),C===null?S=D:C.sibling=D,C=D);return t&&k.forEach(function(M){return e(w,M)}),He&&As(w,P),S}function y(w,m,v,_){if(typeof v=="object"&&v!==null&&v.type===Di&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case _l:e:{for(var S=v.key,C=m;C!==null;){if(C.key===S){if(S=v.type,S===Di){if(C.tag===7){r(w,C.sibling),m=s(C,v.props.children),m.return=w,w=m;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Wn&&Og(S)===C.type){r(w,C.sibling),m=s(C,v.props),m.ref=Go(w,C,v),m.return=w,w=m;break e}r(w,C);break}else e(w,C);C=C.sibling}v.type===Di?(m=ei(v.props.children,w.mode,_,v.key),m.return=w,w=m):(_=hc(v.type,v.key,v.props,null,w.mode,_),_.ref=Go(w,m,v),_.return=w,w=_)}return o(w);case Ii:e:{for(C=v.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){r(w,m.sibling),m=s(m,v.children||[]),m.return=w,w=m;break e}else{r(w,m);break}else e(w,m);m=m.sibling}m=Hd(v,w.mode,_),m.return=w,w=m}return o(w);case Wn:return C=v._init,y(w,m,C(v._payload),_)}if(ra(v))return b(w,m,v,_);if(zo(v))return g(w,m,v,_);Al(w,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(r(w,m.sibling),m=s(m,v),m.return=w,w=m):(r(w,m),m=Wd(v,w.mode,_),m.return=w,w=m),o(w)):r(w,m)}return y}var yo=Cw(!0),Tw=Cw(!1),$c=_s(null),Lc=null,zi=null,kp=null;function Cp(){kp=zi=Lc=null}function Tp(t){var e=$c.current;Ue($c),t._currentValue=e}function qf(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function Qi(t,e){Lc=t,kp=zi=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Ut=!0),t.firstContext=null)}function ur(t){var e=t._currentValue;if(kp!==t)if(t={context:t,memoizedValue:e,next:null},zi===null){if(Lc===null)throw Error(L(308));zi=t,Lc.dependencies={lanes:0,firstContext:t}}else zi=zi.next=t;return e}var zs=null;function jp(t){zs===null?zs=[t]:zs.push(t)}function jw(t,e,r,n){var s=e.interleaved;return s===null?(r.next=r,jp(e)):(r.next=s.next,s.next=r),e.interleaved=r,En(t,n)}function En(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var Hn=!1;function Pp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pw(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function bn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function us(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Ee&2){var s=n.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),n.pending=e,En(t,r)}return s=n.interleaved,s===null?(e.next=e,jp(n)):(e.next=s.next,s.next=e),n.interleaved=e,En(t,r)}function ac(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,pp(t,r)}}function Rg(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=e:i=i.next=e}else s=i=e;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function Fc(t,e,r,n){var s=t.updateQueue;Hn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=s.baseState;o=0,u=c=l=null,a=i;do{var h=a.lane,p=a.eventTime;if((n&h)===h){u!==null&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=t,g=a;switch(h=e,p=r,g.tag){case 1:if(b=g.payload,typeof b=="function"){f=b.call(p,f,h);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,h=typeof b=="function"?b.call(p,f,h):b,h==null)break e;f=Ye({},f,h);break e;case 2:Hn=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=p,l=f):u=u.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(u===null&&(l=f),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=u,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);ii|=o,t.lanes=o,t.memoizedState=f}}function Ag(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(L(191,s));s.call(n)}}}var al={},rn=_s(al),Ia=_s(al),Da=_s(al);function Ws(t){if(t===al)throw Error(L(174));return t}function Np(t,e){switch($e(Da,e),$e(Ia,t),$e(rn,al),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Cf(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Cf(e,t)}Ue(rn),$e(rn,e)}function wo(){Ue(rn),Ue(Ia),Ue(Da)}function Nw(t){Ws(Da.current);var e=Ws(rn.current),r=Cf(e,t.type);e!==r&&($e(Ia,t),$e(rn,r))}function Op(t){Ia.current===t&&(Ue(rn),Ue(Ia))}var Ke=_s(0);function Uc(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ld=[];function Rp(){for(var t=0;t<Ld.length;t++)Ld[t]._workInProgressVersionPrimary=null;Ld.length=0}var lc=Pn.ReactCurrentDispatcher,Fd=Pn.ReactCurrentBatchConfig,si=0,Ge=null,lt=null,dt=null,Bc=!1,ga=!1,Ma=0,PC=0;function xt(){throw Error(L(321))}function Ap(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Ir(t[r],e[r]))return!1;return!0}function Ip(t,e,r,n,s,i){if(si=i,Ge=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,lc.current=t===null||t.memoizedState===null?AC:IC,t=r(n,s),ga){i=0;do{if(ga=!1,Ma=0,25<=i)throw Error(L(301));i+=1,dt=lt=null,e.updateQueue=null,lc.current=DC,t=r(n,s)}while(ga)}if(lc.current=Vc,e=lt!==null&<.next!==null,si=0,dt=lt=Ge=null,Bc=!1,e)throw Error(L(300));return t}function Dp(){var t=Ma!==0;return Ma=0,t}function Hr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?Ge.memoizedState=dt=t:dt=dt.next=t,dt}function dr(){if(lt===null){var t=Ge.alternate;t=t!==null?t.memoizedState:null}else t=lt.next;var e=dt===null?Ge.memoizedState:dt.next;if(e!==null)dt=e,lt=t;else{if(t===null)throw Error(L(310));lt=t,t={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},dt===null?Ge.memoizedState=dt=t:dt=dt.next=t}return dt}function $a(t,e){return typeof e=="function"?e(t):e}function Ud(t){var e=dr(),r=e.queue;if(r===null)throw Error(L(311));r.lastRenderedReducer=t;
vendor: 4,649 bytes, line 38
38var n=lt,s=n.baseQueue,i=r.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}n.baseQueue=s=i,r.pending=null}if(s!==null){i=s.next,n=n.baseState;var a=o=null,l=null,c=i;do{var u=c.lane;if((si&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:t(n,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,o=n):l=l.next=f,Ge.lanes|=u,ii|=u}c=c.next}while(c!==null&&c!==i);l===null?o=n:l.next=a,Ir(n,e.memoizedState)||(Ut=!0),e.memoizedState=n,e.baseState=o,e.baseQueue=l,r.lastRenderedState=n}if(t=r.interleaved,t!==null){s=t;do i=s.lane,Ge.lanes|=i,ii|=i,s=s.next;while(s!==t)}else s===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Bd(t){var e=dr(),r=e.queue;if(r===null)throw Error(L(311));r.lastRenderedReducer=t;var n=r.dispatch,s=r.pending,i=e.memoizedState;if(s!==null){r.pending=null;var o=s=s.next;do i=t(i,o.action),o=o.next;while(o!==s);Ir(i,e.memoizedState)||(Ut=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function Ow(){}function Rw(t,e){var r=Ge,n=dr(),s=e(),i=!Ir(n.memoizedState,s);if(i&&(n.memoizedState=s,Ut=!0),n=n.queue,Mp(Dw.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||dt!==null&&dt.memoizedState.tag&1){if(r.flags|=2048,La(9,Iw.bind(null,r,n,s,e),void 0,null),ft===null)throw Error(L(349));si&30||Aw(r,e,s)}return s}function Aw(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=Ge.updateQueue,e===null?(e={lastEffect:null,stores:null},Ge.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function Iw(t,e,r,n){e.value=r,e.getSnapshot=n,Mw(e)&&$w(t)}function Dw(t,e,r){return r(function(){Mw(e)&&$w(t)})}function Mw(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Ir(t,r)}catch{return!0}}function $w(t){var e=En(t,1);e!==null&&Ar(e,t,1,-1)}function Ig(t){var e=Hr();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:t},e.queue=t,t=t.dispatch=RC.bind(null,Ge,t),[e.memoizedState,t]}function La(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=Ge.updateQueue,e===null?(e={lastEffect:null,stores:null},Ge.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function Lw(){return dr().memoizedState}function cc(t,e,r,n){var s=Hr();Ge.flags|=t,s.memoizedState=La(1|e,r,void 0,n===void 0?null:n)}function Ru(t,e,r,n){var s=dr();n=n===void 0?null:n;var i=void 0;if(lt!==null){var o=lt.memoizedState;if(i=o.destroy,n!==null&&Ap(n,o.deps)){s.memoizedState=La(e,r,i,n);return}}Ge.flags|=t,s.memoizedState=La(1|e,r,i,n)}function Dg(t,e){return cc(8390656,8,t,e)}function Mp(t,e){return Ru(2048,8,t,e)}function Fw(t,e){return Ru(4,2,t,e)}function Uw(t,e){return Ru(4,4,t,e)}function Bw(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Vw(t,e,r){return r=r!=null?r.concat([t]):null,Ru(4,4,Bw.bind(null,e,t),r)}function $p(){}function zw(t,e){var r=dr();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Ap(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function Ww(t,e){var r=dr();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Ap(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function Hw(t,e,r){return si&21?(Ir(r,e)||(r=Q0(),Ge.lanes|=r,ii|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Ut=!0),t.memoizedState=r)}function NC(t,e){var r=Oe;Oe=r!==0&&4>r?r:4,t(!0);var n=Fd.transition;Fd.transition={};try{t(!1),e()}finally{Oe=r,Fd.transition=n}}function qw(){return dr().memoizedState}function OC(t,e,r){var n=fs(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Kw(t))Gw(e,r);else if(r=jw(t,e,r,n),r!==null){var s=Ot();Ar(r,t,n,s),Yw(r,e,n)}}function RC(t,e,r){var n=fs(t),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Kw(t))Gw(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,r);if(s.hasEagerState=!0,s.eagerState=a,Ir(a,o)){var l=e.interleaved;l===null?(s.next=s,jp(e)):(s.next=l.next,l.next=s),e.interleaved=s;return}}catch{}finally{}r=jw(t,e,s,n),r!==null&&(s=Ot(),Ar(r,t,n,s),Yw(r,e,n))}}function Kw(t){var e=t.alternate;return t===Ge||e!==null&&e===Ge}function Gw(t,e){ga=Bc=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function Yw(t,e,r){if(r&4194240){var n=e.lanes;
vendor: 6,092 bytes, lines 38-40
38n&=t.pendingLanes,r|=n,e.lanes=r,pp(t,r)}}var Vc={readContext:ur,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useInsertionEffect:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useSyncExternalStore:xt,useId:xt,unstable_isNewReconciler:!1},AC={readContext:ur,useCallback:function(t,e){return Hr().memoizedState=[t,e===void 0?null:e],t},useContext:ur,useEffect:Dg,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,cc(4194308,4,Bw.bind(null,e,t),r)},useLayoutEffect:function(t,e){return cc(4194308,4,t,e)},useInsertionEffect:function(t,e){return cc(4,2,t,e)},useMemo:function(t,e){var r=Hr();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Hr();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=OC.bind(null,Ge,t),[n.memoizedState,t]},useRef:function(t){var e=Hr();return t={current:t},e.memoizedState=t},useState:Ig,useDebugValue:$p,useDeferredValue:function(t){return Hr().memoizedState=t},useTransition:function(){var t=Ig(!1),e=t[0];return t=NC.bind(null,t[1]),Hr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Ge,s=Hr();if(He){if(r===void 0)throw Error(L(407));r=r()}else{if(r=e(),ft===null)throw Error(L(349));si&30||Aw(n,e,r)}s.memoizedState=r;var i={value:r,getSnapshot:e};return s.queue=i,Dg(Dw.bind(null,n,i,t),[t]),n.flags|=2048,La(9,Iw.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Hr(),e=ft.identifierPrefix;if(He){var r=xn,n=wn;r=(n&~(1<<32-Rr(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Ma++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=PC++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},IC={readContext:ur,useCallback:zw,useContext:ur,useEffect:Mp,useImperativeHandle:Vw,useInsertionEffect:Fw,useLayoutEffect:Uw,useMemo:Ww,useReducer:Ud,useRef:Lw,useState:function(){return Ud($a)},useDebugValue:$p,useDeferredValue:function(t){var e=dr();return Hw(e,lt.memoizedState,t)},useTransition:function(){var t=Ud($a)[0],e=dr().memoizedState;return[t,e]},useMutableSource:Ow,useSyncExternalStore:Rw,useId:qw,unstable_isNewReconciler:!1},DC={readContext:ur,useCallback:zw,useContext:ur,useEffect:Mp,useImperativeHandle:Vw,useInsertionEffect:Fw,useLayoutEffect:Uw,useMemo:Ww,useReducer:Bd,useRef:Lw,useState:function(){return Bd($a)},useDebugValue:$p,useDeferredValue:function(t){var e=dr();return lt===null?e.memoizedState=t:Hw(e,lt.memoizedState,t)},useTransition:function(){var t=Bd($a)[0],e=dr().memoizedState;return[t,e]},useMutableSource:Ow,useSyncExternalStore:Rw,useId:qw,unstable_isNewReconciler:!1};function xr(t,e){if(t&&t.defaultProps){e=Ye({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}function Kf(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:Ye({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var Au={isMounted:function(t){return(t=t._reactInternals)?pi(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=Ot(),s=fs(t),i=bn(n,s);i.payload=e,r!=null&&(i.callback=r),e=us(t,i,s),e!==null&&(Ar(e,t,s,n),ac(e,t,s))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=Ot(),s=fs(t),i=bn(n,s);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=us(t,i,s),e!==null&&(Ar(e,t,s,n),ac(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=Ot(),n=fs(t),s=bn(r,n);s.tag=2,e!=null&&(s.callback=e),e=us(t,s,n),e!==null&&(Ar(e,t,n,r),ac(e,t,n))}};function Mg(t,e,r,n,s,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,o):e.prototype&&e.prototype.isPureReactComponent?!Na(r,n)||!Na(s,i):!0}function Qw(t,e,r){var n=!1,s=gs,i=e.contextType;return typeof i=="object"&&i!==null?i=ur(i):(s=Vt(e)?ri:kt.current,n=e.contextTypes,i=(n=n!=null)?go(t,s):gs),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Au,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=i),e}function $g(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&Au.enqueueReplaceState(e,e.state,null)}function Gf(t,e,r,n){var s=t.stateNode;s.props=r,s.state=t.memoizedState,s.refs={},Pp(t);var i=e.contextType;typeof i=="object"&&i!==null?s.context=ur(i):(i=Vt(e)?ri:kt.current,s.context=go(t,i)),s.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Kf(t,e,i,r),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&Au.enqueueReplaceState(s,s.state,null),Fc(t,r,s,n),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function xo(t,e){try{var r="",n=e;do r+=ck(n),n=n.return;while(n);var s=r}catch(i){s=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:t,source:e,stack:s,digest:null}}function Vd(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function Yf(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var MC=typeof WeakMap=="function"?WeakMap:Map;function Jw(t,e,r){r=bn(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){Wc||(Wc=!0,ih=n),Yf(t,e)},r}function Zw(t,e,r){r=bn(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var s=e.value;r.payload=function(){return n(s)},r.callback=function(){Yf(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Yf(t,e),t
vendor: 10,399 bytes, line 40
40ypeof n!="function"&&(ds===null?ds=new Set([this]):ds.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),r}function Lg(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new MC;var s=new Set;n.set(e,s)}else s=n.get(e),s===void 0&&(s=new Set,n.set(e,s));s.has(r)||(s.add(r),t=QC.bind(null,t,e,r),e.then(t,t))}function Fg(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Ug(t,e,r,n,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=bn(-1,1),e.tag=2,us(r,e,1))),r.lanes|=1),t)}var $C=Pn.ReactCurrentOwner,Ut=!1;function jt(t,e,r,n){e.child=t===null?Tw(e,null,r,n):yo(e,t.child,r,n)}function Bg(t,e,r,n,s){r=r.render;var i=e.ref;return Qi(e,s),n=Ip(t,e,r,n,i,s),r=Dp(),t!==null&&!Ut?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,kn(t,e,s)):(He&&r&&_p(e),e.flags|=1,jt(t,e,n,s),e.child)}function Vg(t,e,r,n,s){if(t===null){var i=r.type;return typeof i=="function"&&!Hp(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,Xw(t,e,i,n,s)):(t=hc(r.type,null,n,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:Na,r(o,n)&&t.ref===e.ref)return kn(t,e,s)}return e.flags|=1,t=hs(i,n),t.ref=e.ref,t.return=e,e.child=t}function Xw(t,e,r,n,s){if(t!==null){var i=t.memoizedProps;if(Na(i,n)&&t.ref===e.ref)if(Ut=!1,e.pendingProps=n=i,(t.lanes&s)!==0)t.flags&131072&&(Ut=!0);else return e.lanes=t.lanes,kn(t,e,s)}return Qf(t,e,r,n,s)}function ex(t,e,r){var n=e.pendingProps,s=n.children,i=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(Hi,Ht),Ht|=r;else{if(!(r&1073741824))return t=i!==null?i.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,$e(Hi,Ht),Ht|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,$e(Hi,Ht),Ht|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,$e(Hi,Ht),Ht|=n;return jt(t,e,s,r),e.child}function tx(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Qf(t,e,r,n,s){var i=Vt(r)?ri:kt.current;return i=go(e,i),Qi(e,s),r=Ip(t,e,r,n,i,s),n=Dp(),t!==null&&!Ut?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,kn(t,e,s)):(He&&n&&_p(e),e.flags|=1,jt(t,e,r,s),e.child)}function zg(t,e,r,n,s){if(Vt(r)){var i=!0;Ic(e)}else i=!1;if(Qi(e,s),e.stateNode===null)uc(t,e),Qw(e,r,n),Gf(e,r,n,s),n=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=ur(c):(c=Vt(r)?ri:kt.current,c=go(e,c));var u=r.getDerivedStateFromProps,f=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==c)&&$g(e,o,n,c),Hn=!1;var h=e.memoizedState;o.state=h,Fc(e,n,o,s),l=e.memoizedState,a!==n||h!==l||Bt.current||Hn?(typeof u=="function"&&(Kf(e,r,u,n),l=e.memoizedState),(a=Hn||Mg(e,r,a,n,h,l,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),o.props=n,o.state=l,o.context=c,n=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{o=e.stateNode,Pw(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:xr(e.type,a),o.props=c,f=e.pendingProps,h=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=ur(l):(l=Vt(r)?ri:kt.current,l=go(e,l));var p=r.getDerivedStateFromProps;(u=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&$g(e,o,n,l),Hn=!1,h=e.memoizedState,o.state=h,Fc(e,n,o,s);var b=e.memoizedState;a!==f||h!==b||Bt.current||Hn?(typeof p=="function"&&(Kf(e,r,p,n),b=e.memoizedState),(c=Hn||Mg(e,r,c,n,h,b,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,b,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,b,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=b),o.props=n,o.state=b,o.context=l,n=c):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),n=!1)}return Jf(t,e,r,n,i,s)}function Jf(t,e,r,n,s,i){tx(t,e);var o=(e.flags&128)!==0;if(!n&&!o)return s&&jg(e,r,!1),kn(t,e,i);n=e.stateNode,$C.current=e;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&o?(e.child=yo(e,t.child,null,i),e.child=yo(e,null,a,i)):jt(t,e,a,i),e.memoizedState=n.state,s&&jg(e,r,!0),e.child}function rx(t){var e=t.stateNode;e.pendingContext?Tg(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Tg(t,e.context,!1),Np(t,e.containerInfo)}function Wg(t,e,r,n,s){return vo(),Ep(s),e.flags|=256,jt(t,e,r,n),e.child}var Zf={dehydrated:null,treeContext:null,retryLane:0};function Xf(t){return{baseLanes:t,cachePool:null,transitions:null}}function nx(t,e,r){var n=e.pendingProps,s=Ke.current,i=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(s&2)!==0),a?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),$e(Ke,s&1),t===null)return Hf(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=n.children,t=n.fallback,i?(n=e.mode,i=e.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Mu(o,n,0,null),t=ei(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=Xf(r),e.memoizedState=Zf,t):Lp(e,o));if(s=t.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return LC(t,e,o,n,a,s,r);if(i){i=n.fallback,o=e.mode,s=t.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&e.child!==s?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=hs(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=hs(a,i):(i=ei(i,o,r,null),i.flags|=2),i.return=e,n.return=e,n.sibling=i,e.child=n,n=i,i=e.child,o=t.child.memoizedState,o=o===null?Xf(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~r,e.memoizedState=Zf,n}return i=t.child,t=i.sibling,n=hs(i,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function Lp(t,e){return e=Mu({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Il(t,e,r,n){return n!==null&&Ep(n),yo(e,t.child,null,r),t=Lp(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function LC(t,e,r,n,s,i,o){if(r)return e.flags&256?(e.flags&=-257,n=Vd(Error(L(422))),Il(t,e,o,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,s=e.mode,n=Mu({mode:"visible",children:n.children},s,0,null),i=ei(i,s,o,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,e.mode&1&&yo(e,t.child,null,o),e.child.memoizedState=Xf(o),e.memoizedState=Zf,i);if(!(e.mode&1))return Il(t,e,o,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(L(419)),n=Vd(i,n,void 0),Il(t,e,o,n)}if(a=(o&t.childLanes)!==0,Ut||a){if(n=ft,n!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,En(t,s),Ar(n,t,s,-1))}return Wp(),n=Vd(Error(L(421))),Il(t,e,o,n)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=JC.bind(null,t),s._reactRetry=e,null):(t=i.treeContext,Yt=cs(s.nextSibling),Qt=e,He=!0,jr=null,t!==null&&(nr[sr++]=wn,nr[sr++]=xn,nr[sr++]=ni,wn=t.id,xn=t.overflow,ni=e),e=Lp(e,n.children),e.flags|=4096,e)}function Hg(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),qf(t.return,e,r)}function zd(t,e,r,n,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=s)}function sx(t,e,r){var n=e.pendingProps,s=n.revealOrder,i=n.tail;if(jt(t,e,n.children,r),n=Ke.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Hg(t,r,e);else if(t.tag===19)Hg(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if($e(Ke,n),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(r=e.child,s=null;r!==null;)t=r.alternate,t!==null&&Uc(t)===null&&(s=r),r=r.sibling;r=s,r===null?(s=e.child,e.child=null):(s=r.sibling,r.sibling=null),zd(e,!1,s,r,i);break;case"backwards":for(r=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&Uc(t)===null){e.child=s;break}t=s.sibling,s.sibling=r,r=s,s=t}zd(e,!0,r,null,i);break;case"together":zd(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function uc(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}
vendor: 4,903 bytes, line 40
40function kn(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),ii|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(L(153));if(e.child!==null){for(t=e.child,r=hs(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=hs(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function FC(t,e,r){switch(e.tag){case 3:rx(e),vo();break;case 5:Nw(e);break;case 1:Vt(e.type)&&Ic(e);break;case 4:Np(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,s=e.memoizedProps.value;$e($c,n._currentValue),n._currentValue=s;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?($e(Ke,Ke.current&1),e.flags|=128,null):r&e.child.childLanes?nx(t,e,r):($e(Ke,Ke.current&1),t=kn(t,e,r),t!==null?t.sibling:null);$e(Ke,Ke.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return sx(t,e,r);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),$e(Ke,Ke.current),n)break;return null;case 22:case 23:return e.lanes=0,ex(t,e,r)}return kn(t,e,r)}var ix,eh,ox,ax;ix=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};eh=function(){};ox=function(t,e,r,n){var s=t.memoizedProps;if(s!==n){t=e.stateNode,Ws(rn.current);var i=null;switch(r){case"input":s=_f(t,s),n=_f(t,n),i=[];break;case"select":s=Ye({},s,{value:void 0}),n=Ye({},n,{value:void 0}),i=[];break;case"textarea":s=kf(t,s),n=kf(t,n),i=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Rc)}Tf(r,n);var o;r=null;for(c in s)if(!n.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Sa.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(a=s!=null?s[c]:void 0,n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Sa.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Fe("scroll",t),i||a===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(e.updateQueue=c)&&(e.flags|=4)}};ax=function(t,e,r,n){r!==n&&(e.flags|=4)};function Yo(t,e){if(!He)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function bt(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var s=t.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function UC(t,e,r){var n=e.pendingProps;switch(Sp(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(e),null;case 1:return Vt(e.type)&&Ac(),bt(e),null;case 3:return n=e.stateNode,wo(),Ue(Bt),Ue(kt),Rp(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Rl(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,jr!==null&&(lh(jr),jr=null))),eh(t,e),bt(e),null;case 5:Op(e);var s=Ws(Da.current);if(r=e.type,t!==null&&e.stateNode!=null)ox(t,e,r,n,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(L(166));return bt(e),null}if(t=Ws(rn.current),Rl(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[Qr]=e,n[Aa]=i,t=(e.mode&1)!==0,r){case"dialog":Fe("cancel",n),Fe("close",n);break;case"iframe":case"object":case"embed":Fe("load",n);break;case"video":case"audio":for(s=0;s<sa.length;s++)Fe(sa[s],n);break;case"source":Fe("error",n);break;case"img":case"image":case"link":Fe("error",n),Fe("load",n);break;case"details":Fe("toggle",n);break;case"input":eg(n,i),Fe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Fe("invalid",n);break;case"textarea":rg(n,i),Fe("invalid",n)}Tf(r,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 34,670 bytes, line 40
40o==="children"?typeof a=="string"?n.textContent!==a&&(i.suppressHydrationWarning!==!0&&Ol(n.textContent,a,t),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Ol(n.textContent,a,t),s=["children",""+a]):Sa.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Fe("scroll",n)}switch(r){case"input":Sl(n),tg(n,i,!0);break;case"textarea":Sl(n),ng(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Rc)}n=s,e.updateQueue=n,n!==null&&(e.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=D0(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[Qr]=e,t[Aa]=n,ix(t,e,!1,!1),e.stateNode=t;e:{switch(o=jf(r,n),r){case"dialog":Fe("cancel",t),Fe("close",t),s=n;break;case"iframe":case"object":case"embed":Fe("load",t),s=n;break;case"video":case"audio":for(s=0;s<sa.length;s++)Fe(sa[s],t);s=n;break;case"source":Fe("error",t),s=n;break;case"img":case"image":case"link":Fe("error",t),Fe("load",t),s=n;break;case"details":Fe("toggle",t),s=n;break;case"input":eg(t,n),s=_f(t,n),Fe("invalid",t);break;case"option":s=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},s=Ye({},n,{value:void 0}),Fe("invalid",t);break;case"textarea":rg(t,n),s=kf(t,n),Fe("invalid",t);break;default:s=n}Tf(r,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?L0(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&M0(t,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Ea(t,l):typeof l=="number"&&Ea(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Sa.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Fe("scroll",t):l!=null&&lp(t,i,l,o))}switch(r){case"input":Sl(t),tg(t,n,!1);break;case"textarea":Sl(t),ng(t);break;case"option":n.value!=null&&t.setAttribute("value",""+ms(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?qi(t,!!n.multiple,i,!1):n.defaultValue!=null&&qi(t,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=Rc)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return bt(e),null;case 6:if(t&&e.stateNode!=null)ax(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(L(166));if(r=Ws(Da.current),Ws(rn.current),Rl(e)){if(n=e.stateNode,r=e.memoizedProps,n[Qr]=e,(i=n.nodeValue!==r)&&(t=Qt,t!==null))switch(t.tag){case 3:Ol(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ol(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Qr]=e,e.stateNode=n}return bt(e),null;case 13:if(Ue(Ke),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(He&&Yt!==null&&e.mode&1&&!(e.flags&128))kw(),vo(),e.flags|=98560,i=!1;else if(i=Rl(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(L(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(L(317));i[Qr]=e}else vo(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;bt(e),i=!1}else jr!==null&&(lh(jr),jr=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||Ke.current&1?ct===0&&(ct=3):Wp())),e.updateQueue!==null&&(e.flags|=4),bt(e),null);case 4:return wo(),eh(t,e),t===null&&Oa(e.stateNode.containerInfo),bt(e),null;case 10:return Tp(e.type._context),bt(e),null;case 17:return Vt(e.type)&&Ac(),bt(e),null;case 19:if(Ue(Ke),i=e.memoizedState,i===null)return bt(e),null;if(n=(e.flags&128)!==0,o=i.rendering,o===null)if(n)Yo(i,!1);else{if(ct!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Uc(t),o!==null){for(e.flags|=128,Yo(i,!1),n=o.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)i=r,t=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return $e(Ke,Ke.current&1|2),e.child}t=t.sibling}i.tail!==null&&et()>bo&&(e.flags|=128,n=!0,Yo(i,!1),e.lanes=4194304)}else{if(!n)if(t=Uc(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Yo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!He)return bt(e),null}else 2*et()-i.renderingStartTime>bo&&r!==1073741824&&(e.flags|=128,n=!0,Yo(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(r=i.last,r!==null?r.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=et(),e.sibling=null,r=Ke.current,$e(Ke,n?r&1|2:r&1),e):(bt(e),null);case 22:case 23:return zp(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Ht&1073741824&&(bt(e),e.subtreeFlags&6&&(e.flags|=8192)):bt(e),null;case 24:return null;case 25:return null}throw Error(L(156,e.tag))}function BC(t,e){switch(Sp(e),e.tag){case 1:return Vt(e.type)&&Ac(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return wo(),Ue(Bt),Ue(kt),Rp(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Op(e),null;case 13:if(Ue(Ke),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(L(340));vo()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ue(Ke),null;case 4:return wo(),null;case 10:return Tp(e.type._context),null;case 22:case 23:return zp(),null;case 24:return null;default:return null}}var Dl=!1,St=!1,VC=typeof WeakSet=="function"?WeakSet:Set,J=null;function Wi(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ze(t,e,n)}else r.current=null}function th(t,e,r){try{r()}catch(n){Ze(t,e,n)}}var qg=!1;function zC(t,e){if(Lf=Pc,t=fw(),bp(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,c=0,u=0,f=t,h=null;t:for(;;){for(var p;f!==r||s!==0&&f.nodeType!==3||(a=o+s),f!==i||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===t)break t;if(h===r&&++c===s&&(a=o),h===i&&++u===n&&(l=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ff={focusedElem:t,selectionRange:r},Pc=!1,J=e;J!==null;)if(e=J,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,J=t;else for(;J!==null;){e=J;try{var b=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,y=b.memoizedState,w=e.stateNode,m=w.getSnapshotBeforeUpdate(e.elementType===e.type?g:xr(e.type,g),y);w.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=e.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(_){Ze(e,e.return,_)}if(t=e.sibling,t!==null){t.return=e.return,J=t;break}J=e.return}return b=qg,qg=!1,b}function va(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&th(e,r,i)}s=s.next}while(s!==n)}}function Iu(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function rh(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function lx(t){var e=t.alternate;e!==null&&(t.alternate=null,lx(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Qr],delete e[Aa],delete e[Vf],delete e[kC],delete e[CC])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function cx(t){return t.tag===5||t.tag===3||t.tag===4}function Kg(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||cx(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function nh(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Rc));else if(n!==4&&(t=t.child,t!==null))for(nh(t,e,r),t=t.sibling;t!==null;)nh(t,e,r),t=t.sibling}function sh(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(sh(t,e,r),t=t.sibling;t!==null;)sh(t,e,r),t=t.sibling}var mt=null,kr=!1;function In(t,e,r){for(r=r.child;r!==null;)ux(t,e,r),r=r.sibling}function ux(t,e,r){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Cu,r)}catch{}switch(r.tag){case 5:St||Wi(r,e);case 6:var n=mt,s=kr;mt=null,In(t,e,r),mt=n,kr=s,mt!==null&&(kr?(t=mt,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):mt.removeChild(r.stateNode));break;case 18:mt!==null&&(kr?(t=mt,r=r.stateNode,t.nodeType===8?Md(t.parentNode,r):t.nodeType===1&&Md(t,r),ja(t)):Md(mt,r.stateNode));break;case 4:n=mt,s=kr,mt=r.stateNode.containerInfo,kr=!0,In(t,e,r),mt=n,kr=s;break;case 0:case 11:case 14:case 15:if(!St&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&th(r,e,o),s=s.next}while(s!==n)}In(t,e,r);break;case 1:if(!St&&(Wi(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Ze(r,e,a)}In(t,e,r);break;case 21:In(t,e,r);break;case 22:r.mode&1?(St=(n=St)||r.memoizedState!==null,In(t,e,r),St=n):In(t,e,r);break;default:In(t,e,r)}}function Gg(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new VC),e.forEach(function(n){var s=ZC.bind(null,t,n);r.has(n)||(r.add(n),n.then(s,s))})}}function gr(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var i=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:mt=a.stateNode,kr=!1;break e;case 3:mt=a.stateNode.containerInfo,kr=!0;break e;case 4:mt=a.stateNode.containerInfo,kr=!0;break e}a=a.return}if(mt===null)throw Error(L(160));ux(i,o,s),mt=null,kr=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){Ze(s,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)dx(e,t),e=e.sibling}function dx(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(gr(e,t),Wr(t),n&4){try{va(3,t,t.return),Iu(3,t)}catch(g){Ze(t,t.return,g)}try{va(5,t,t.return)}catch(g){Ze(t,t.return,g)}}break;case 1:gr(e,t),Wr(t),n&512&&r!==null&&Wi(r,r.return);break;case 5:if(gr(e,t),Wr(t),n&512&&r!==null&&Wi(r,r.return),t.flags&32){var s=t.stateNode;try{Ea(s,"")}catch(g){Ze(t,t.return,g)}}if(n&4&&(s=t.stateNode,s!=null)){var i=t.memoizedProps,o=r!==null?r.memoizedProps:i,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&A0(s,i),jf(a,o);var c=jf(a,i);for(o=0;o<l.length;o+=2){var u=l[o],f=l[o+1];u==="style"?L0(s,f):u==="dangerouslySetInnerHTML"?M0(s,f):u==="children"?Ea(s,f):lp(s,u,f,c)}switch(a){case"input":Sf(s,i);break;case"textarea":I0(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?qi(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?qi(s,!!i.multiple,i.defaultValue,!0):qi(s,!!i.multiple,i.multiple?[]:"",!1))}s[Aa]=i}catch(g){Ze(t,t.return,g)}}break;case 6:if(gr(e,t),Wr(t),n&4){if(t.stateNode===null)throw Error(L(162));s=t.stateNode,i=t.memoizedProps;try{s.nodeValue=i}catch(g){Ze(t,t.return,g)}}break;case 3:if(gr(e,t),Wr(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{ja(e.containerInfo)}catch(g){Ze(t,t.return,g)}break;case 4:gr(e,t),Wr(t);break;case 13:gr(e,t),Wr(t),s=t.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Bp=et())),n&4&&Gg(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(St=(c=St)||u,gr(e,t),St=c):gr(e,t),Wr(t),n&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&t.mode&1)for(J=t,u=t.child;u!==null;){for(f=J=u;J!==null;){switch(h=J,p=h.child,h.tag){case 0:case 11:case 14:case 15:va(4,h,h.return);break;case 1:Wi(h,h.return);var b=h.stateNode;if(typeof b.componentWillUnmount=="function"){n=h,r=h.return;try{e=n,b.props=e.memoizedProps,b.state=e.memoizedState,b.componentWillUnmount()}catch(g){Ze(n,r,g)}}break;case 5:Wi(h,h.return);break;case 22:if(h.memoizedState!==null){Qg(f);continue}}p!==null?(p.return=h,J=p):Qg(f)}u=u.sibling}e:for(u=null,f=t;;){if(f.tag===5){if(u===null){u=f;try{s=f.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=$0("display",o))}catch(g){Ze(t,t.return,g)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(g){Ze(t,t.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===t)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gr(e,t),Wr(t),n&4&&Gg(t);break;case 21:break;default:gr(e,t),Wr(t)}}function Wr(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(cx(r)){var n=r;break e}r=r.return}throw Error(L(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Ea(s,""),n.flags&=-33);var i=Kg(t);sh(t,i,s);break;case 3:case 4:var o=n.stateNode.containerInfo,a=Kg(t);nh(t,a,o);break;default:throw Error(L(161))}}catch(l){Ze(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function WC(t,e,r){J=t,fx(t)}function fx(t,e,r){for(var n=(t.mode&1)!==0;J!==null;){var s=J,i=s.child;if(s.tag===22&&n){var o=s.memoizedState!==null||Dl;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||St;a=Dl;var c=St;if(Dl=o,(St=l)&&!c)for(J=s;J!==null;)o=J,l=o.child,o.tag===22&&o.memoizedState!==null?Jg(s):l!==null?(l.return=o,J=l):Jg(s);for(;i!==null;)J=i,fx(i),i=i.sibling;J=s,Dl=a,St=c}Yg(t)}else s.subtreeFlags&8772&&i!==null?(i.return=s,J=i):Yg(t)}}function Yg(t){for(;J!==null;){var e=J;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:St||Iu(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!St)if(r===null)n.componentDidMount();else{var s=e.elementType===e.type?r.memoizedProps:xr(e.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&Ag(e,i,n);break;case 3:var o=e.updateQueue;if(o!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}Ag(e,o,r)}break;case 5:var a=e.stateNode;if(r===null&&e.flags&4){r=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&ja(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}St||e.flags&512&&rh(e)}catch(h){Ze(e,e.return,h)}}if(e===t){J=null;break}if(r=e.sibling,r!==null){r.return=e.return,J=r;break}J=e.return}}function Qg(t){for(;J!==null;){var e=J;if(e===t){J=null;break}var r=e.sibling;if(r!==null){r.return=e.return,J=r;break}J=e.return}}function Jg(t){for(;J!==null;){var e=J;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{Iu(4,e)}catch(l){Ze(e,r,l)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var s=e.return;try{n.componentDidMount()}catch(l){Ze(e,s,l)}}var i=e.return;try{rh(e)}catch(l){Ze(e,i,l)}break;case 5:var o=e.return;try{rh(e)}catch(l){Ze(e,o,l)}}}catch(l){Ze(e,e.return,l)}if(e===t){J=null;break}var a=e.sibling;if(a!==null){a.return=e.return,J=a;break}J=e.return}}var HC=Math.ceil,zc=Pn.ReactCurrentDispatcher,Fp=Pn.ReactCurrentOwner,cr=Pn.ReactCurrentBatchConfig,Ee=0,ft=null,it=null,gt=0,Ht=0,Hi=_s(0),ct=0,Fa=null,ii=0,Du=0,Up=0,ya=null,Lt=null,Bp=0,bo=1/0,mn=null,Wc=!1,ih=null,ds=null,Ml=!1,ns=null,Hc=0,wa=0,oh=null,dc=-1,fc=0;function Ot(){return Ee&6?et():dc!==-1?dc:dc=et()}function fs(t){return t.mode&1?Ee&2&>!==0?gt&-gt:jC.transition!==null?(fc===0&&(fc=Q0()),fc):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:nw(t.type)),t):1}function Ar(t,e,r,n){if(50<wa)throw wa=0,oh=null,Error(L(185));sl(t,r,n),(!(Ee&2)||t!==ft)&&(t===ft&&(!(Ee&2)&&(Du|=r),ct===4&&Gn(t,gt)),zt(t,n),r===1&&Ee===0&&!(e.mode&1)&&(bo=et()+500,Ou&&Ss()))}function zt(t,e){var r=t.callbackNode;jk(t,e);var n=jc(t,t===ft?gt:0);if(n===0)r!==null&&og(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&og(r),e===1)t.tag===0?TC(Zg.bind(null,t)):_w(Zg.bind(null,t)),SC(function(){!(Ee&6)&&Ss()}),r=null;else{switch(J0(n)){case 1:r=hp;break;case 4:r=G0;break;case 16:r=Tc;break;case 536870912:r=Y0;break;default:r=Tc}r=xx(r,hx.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function hx(t,e){if(dc=-1,fc=0,Ee&6)throw Error(L(327));var r=t.callbackNode;if(Ji()&&t.callbackNode!==r)return null;var n=jc(t,t===ft?gt:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=qc(t,n);else{e=n;var s=Ee;Ee|=2;var i=mx();(ft!==t||gt!==e)&&(mn=null,bo=et()+500,Xs(t,e));do try{GC();break}catch(a){px(t,a)}while(!0);Cp(),zc.current=i,Ee=s,it!==null?e=0:(ft=null,gt=0,e=ct)}if(e!==0){if(e===2&&(s=Af(t),s!==0&&(n=s,e=ah(t,s))),e===1)throw r=Fa,Xs(t,0),Gn(t,n),zt(t,et()),r;if(e===6)Gn(t,n);else{if(s=t.current.alternate,!(n&30)&&!qC(s)&&(e=qc(t,n),e===2&&(i=Af(t),i!==0&&(n=i,e=ah(t,i))),e===1))throw r=Fa,Xs(t,0),Gn(t,n),zt(t,et()),r;switch(t.finishedWork=s,t.finishedLanes=n,e){case 0:case 1:throw Error(L(345));case 2:Is(t,Lt,mn);break;case 3:if(Gn(t,n),(n&130023424)===n&&(e=Bp+500-et(),10<e)){if(jc(t,0)!==0)break;if(s=t.suspendedLanes,(s&n)!==n){Ot(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=Bf(Is.bind(null,t,Lt,mn),e);break}Is(t,Lt,mn);break;case 4:if(Gn(t,n),(n&4194240)===n)break;for(e=t.eventTimes,s=-1;0<n;){var o=31-Rr(n);i=1<<o,o=e[o],o>s&&(s=o),n&=~i}if(n=s,n=et()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*HC(n/1960))-n,10<n){t.timeoutHandle=Bf(Is.bind(null,t,Lt,mn),n);break}Is(t,Lt,mn);break;case 5:Is(t,Lt,mn);break;default:throw Error(L(329))}}}return zt(t,et()),t.callbackNode===r?hx.bind(null,t):null}function ah(t,e){var r=ya;return t.current.memoizedState.isDehydrated&&(Xs(t,e).flags|=256),t=qc(t,e),t!==2&&(e=Lt,Lt=r,e!==null&&lh(e)),t}function lh(t){Lt===null?Lt=t:Lt.push.apply(Lt,t)}function qC(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],i=s.getSnapshot;s=s.value;try{if(!Ir(i(),s))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Gn(t,e){for(e&=~Up,e&=~Du,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-Rr(e),n=1<<r;t[r]=-1,e&=~n}}function Zg(t){if(Ee&6)throw Error(L(327));Ji();var e=jc(t,0);if(!(e&1))return zt(t,et()),null;var r=qc(t,e);if(t.tag!==0&&r===2){var n=Af(t);n!==0&&(e=n,r=ah(t,n))}if(r===1)throw r=Fa,Xs(t,0),Gn(t,e),zt(t,et()),r;if(r===6)throw Error(L(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Is(t,Lt,mn),zt(t,et()),null}function Vp(t,e){var r=Ee;Ee|=1;try{return t(e)}finally{Ee=r,Ee===0&&(bo=et()+500,Ou&&Ss())}}function oi(t){ns!==null&&ns.tag===0&&!(Ee&6)&&Ji();var e=Ee;Ee|=1;var r=cr.transition,n=Oe;try{if(cr.transition=null,Oe=1,t)return t()}finally{Oe=n,cr.transition=r,Ee=e,!(Ee&6)&&Ss()}}function zp(){Ht=Hi.current,Ue(Hi)}function Xs(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,_C(r)),it!==null)for(r=it.return;r!==null;){var n=r;switch(Sp(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ac();break;case 3:wo(),Ue(Bt),Ue(kt),Rp();break;case 5:Op(n);break;case 4:wo();break;case 13:Ue(Ke);break;case 19:Ue(Ke);break;case 10:Tp(n.type._context);break;case 22:case 23:zp()}r=r.return}if(ft=t,it=t=hs(t.current,null),gt=Ht=e,ct=0,Fa=null,Up=Du=ii=0,Lt=ya=null,zs!==null){for(e=0;e<zs.length;e++)if(r=zs[e],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=s,n.next=o}r.pending=n}zs=null}return t}function px(t,e){do{var r=it;try{if(Cp(),lc.current=Vc,Bc){for(var n=Ge.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}Bc=!1}if(si=0,dt=lt=Ge=null,ga=!1,Ma=0,Fp.current=null,r===null||r.return===null){ct=1,Fa=e,it=null;break}e:{var i=t,o=r.return,a=r,l=e;if(e=gt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,f=u.tag;if(!(u.mode&1)&&(f===0||f===11||f===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=Fg(o);if(p!==null){p.flags&=-257,Ug(p,o,a,i,e),p.mode&1&&Lg(i,c,e),e=p,l=c;var b=e.updateQueue;if(b===null){var g=new Set;g.add(l),e.updateQueue=g}else b.add(l);break e}else{if(!(e&1)){Lg(i,c,e),Wp();break e}l=Error(L(426))}}else if(He&&a.mode&1){var y=Fg(o);if(y!==null){!(y.flags&65536)&&(y.flags|=256),Ug(y,o,a,i,e),Ep(xo(l,a));break e}}i=l=xo(l,a),ct!==4&&(ct=2),ya===null?ya=[i]:ya.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var w=Jw(i,l,e);Rg(i,w);break e;case 1:a=l;var m=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ds===null||!ds.has(v)))){i.flags|=65536,e&=-e,i.lanes|=e;var _=Zw(i,a,e);Rg(i,_);break e}}i=i.return}while(i!==null)}vx(r)}catch(S){e=S,it===r&&r!==null&&(it=r=r.return);continue}break}while(!0)}function mx(){var t=zc.current;return zc.current=Vc,t===null?Vc:t}function Wp(){(ct===0||ct===3||ct===2)&&(ct=4),ft===null||!(ii&268435455)&&!(Du&268435455)||Gn(ft,gt)}function qc(t,e){var r=Ee;Ee|=2;var n=mx();(ft!==t||gt!==e)&&(mn=null,Xs(t,e));do try{KC();break}catch(s){px(t,s)}while(!0);if(Cp(),Ee=r,zc.current=n,it!==null)throw Error(L(261));return ft=null,gt=0,ct}function KC(){for(;it!==null;)gx(it)}function GC(){for(;it!==null&&!wk();)gx(it)}function gx(t){var e=wx(t.alternate,t,Ht);t.memoizedProps=t.pendingProps,e===null?vx(t):it=e,Fp.current=null}function vx(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=BC(r,e),r!==null){r.flags&=32767,it=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ct=6,it=null;return}}else if(r=UC(r,e,Ht),r!==null){it=r;return}if(e=e.sibling,e!==null){it=e;return}it=e=t}while(e!==null);ct===0&&(ct=5)}function Is(t,e,r){var n=Oe,s=cr.transition;try{cr.transition=null,Oe=1,YC(t,e,r,n)}finally{cr.transition=s,Oe=n}return null}function YC(t,e,r,n){do Ji();while(ns!==null);if(Ee&6)throw Error(L(327));r=t.finishedWork;var s=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(L(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(Pk(t,i),t===ft&&(it=ft=null,gt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Ml||(Ml=!0,xx(Tc,function(){return Ji(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=cr.transition,cr.transition=null;var o=Oe;Oe=1;var a=Ee;Ee|=4,Fp.current=null,zC(t,r),dx(r,t),mC(Ff),Pc=!!Lf,Ff=Lf=null,t.current=r,WC(r),xk(),Ee=a,Oe=o,cr.transition=i}else t.current=r;if(Ml&&(Ml=!1,ns=t,Hc=s),i=t.pendingLanes,i===0&&(ds=null),Sk(r.stateNode),zt(t,et()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)s=e[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(Wc)throw Wc=!1,t=ih,ih=null,t;return Hc&1&&t.tag!==0&&Ji(),i=t.pendingLanes,i&1?t===oh?wa++:(wa=0,oh=t):wa=0,Ss(),null}function Ji(){if(ns!==null){var t=J0(Hc),e=cr.transition,r=Oe;try{if(cr.transition=null,Oe=16>t?16:t,ns===null)var n=!1;else{if(t=ns,ns=null,Hc=0,Ee&6)throw Error(L(331));var s=Ee;for(Ee|=4,J=t.current;J!==null;){var i=J,o=i.child;if(J.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(J=c;J!==null;){var u=J;switch(u.tag){case 0:case 11:case 15:va(8,u,i)}var f=u.child;if(f!==null)f.return=u,J=f;else for(;J!==null;){u=J;var h=u.sibling,p=u.return;if(lx(u),u===c){J=null;break}if(h!==null){h.return=p,J=h;break}J=p}}}var b=i.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}J=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,J=o;else e:for(;J!==null;){if(i=J,i.flags&2048)switch(i.tag){case 0:case 11:case 15:va(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,J=w;break e}J=i.return}}var m=t.current;for(J=m;J!==null;){o=J;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,J=v;else e:for(o=m;J!==null;){if(a=J,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Iu(9,a)}}catch(S){Ze(a,a.return,S)}if(a===o){J=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,J=_;break e}J=a.return}}if(Ee=s,Ss(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Cu,t)}catch{}n=!0}return n}finally{Oe=r,cr.transition=e}}return!1}function Xg(t,e,r){e=xo(r,e),e=Jw(t,e,1),t=us(t,e,1),e=Ot(),t!==null&&(sl(t,1,e),zt(t,e))}function Ze(t,e,r){if(t.tag===3)Xg(t,t,r);else for(;e!==null;){if(e.tag===3){Xg(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ds===null||!ds.has(n))){t=xo(r,t),t=Zw(e,t,1),e=us(e,t,1),t=Ot(),e!==null&&(sl(e,1,t),zt(e,t));break}}e=e.return}}function QC(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=Ot(),t.pingedLanes|=t.suspendedLanes&r,ft===t&&(gt&r)===r&&(ct===4||ct===3&&(gt&130023424)===gt&&500>et()-Bp?Xs(t,0):Up|=r),zt(t,e)}function yx(t,e){e===0&&(t.mode&1?(e=Cl,Cl<<=1,!(Cl&130023424)&&(Cl=4194304)):e=1);var r=Ot();t=En(t,e),t!==null&&(sl(t,e,r),zt(t,r))}function JC(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),yx(t,r)}function ZC(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,s=t.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(L(314))}n!==null&&n.delete(e),yx(t,r)}var wx;wx=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Bt.current)Ut=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return Ut=!1,FC(t,e,r);Ut=!!(t.flags&131072)}else Ut=!1,He&&e.flags&1048576&&Sw(e,Mc,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;uc(t,e),t=e.pendingProps;var s=go(e,kt.current);Qi(e,r),s=Ip(null,e,n,t,s,r);var i=Dp();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Vt(n)?(i=!0,Ic(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Pp(e),s.updater=Au,e.stateNode=s,s._reactInternals=e,Gf(e,n,t,r),e=Jf(null,e,n,!0,i,r)):(e.tag=0,He&&i&&_p(e),jt(null,e,s,r),e=e.child),e;case 16:n=e.elementType;e:{switch(uc(t,e),t=e.pendingProps,s=n._init,n=s(n._payload),e.type=n,s=e.tag=eT(n),t=xr(n,t),s){case 0:e=Qf(null,e,n,t,r);break e;case 1:e=zg(null,e,n,t,r);break e;case 11:e=Bg(null,e,n,t,r);break e;case 14:e=Vg(null,e,n,xr(n.type,t),r);break e}throw Error(L(306,n,""))}return e;case 0:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:xr(n,s),Qf(t,e,n,s,r);case 1:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:xr(n,s),zg(t,e,n,s,r);case 3:e:{if(rx(e),t===null)throw Error(L(387));n=e.pendingProps,i=e.memoizedState,s=i.element,Pw(t,e),Fc(e,n,null,r);var o=e.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=xo(Error(L(423)),e),e=Wg(t,e,n,r,s);break e}else if(n!==s){s=xo(Error(L(424)),e),e=Wg(t,e,n,r,s);break e}else for(Yt=cs(e.stateNode.containerInfo.firstChild),Qt=e,He=!0,jr=null,r=Tw(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(vo(),n===s){e=kn(t,e,r);break e}jt(t,e,n,r)}e=e.child}return e;case 5:return Nw(e),t===null&&Hf(e),n=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,Uf(n,s)?o=null:i!==null&&Uf(n,i)&&(e.flags|=32),tx(t,e),jt(t,e,o,r),e.child;case 6:return t===null&&Hf(e),null;case 13:return nx(t,e,r);case 4:return Np(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=yo(e,null,n,r):jt(t,e,n,r),e.child;case 11:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:xr(n,s),Bg(t,e,n,s,r);case 7:return jt(t,e,e.pendingProps,r),e.child;case 8:return jt(t,e,e.pendingProps.children,r),e.child;case 12:return jt(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,$e($c,n._currentValue),n._currentValue=o,i!==null)if(Ir(i.value,o)){if(i.children===s.children&&!Bt.current){e=kn(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=bn(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),qf(i.return,r,e),a.lanes|=r;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(L(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),qf(o,r,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}jt(t,e,s.children,r),e=e.child}return e;case 9:return s=e.type,n=e.pendingProps.children,Qi(e,r),s=ur(s),n=n(s),e.flags|=1,jt(t,e,n,r),e.child;case 14:return n=e.type,s=xr(n,e.pendingProps),s=xr(n.type,s),Vg(t,e,n,s,r);case 15:return Xw(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:xr(n,s),uc(t,e),e.tag=1,Vt(n)?(t=!0,Ic(e)):t=!1,Qi(e,r),Qw(e,n,s),Gf(e,n,s,r),Jf(null,e,n,!0,t,r);case 19:return sx(t,e,r);case 22:return ex(t,e,r)}throw Error(L(156,e.tag))};function xx(t,e){return K0(t,e)}function XC(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lr(t,e,r,n){return new XC(t,e,r,n)}function Hp(t){return t=t.prototype,!(!t||!t.isReactComponent)}function eT(t){if(typeof t=="function")return Hp(t)?1:0;if(t!=null){if(t=t.$$typeof,t===up)return 11;if(t===dp)return 14}return 2}function hs(t,e){var r=t.alternate;return r===null?(r=lr(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function hc(t,e,r,n,s,i){var o=2;if(n=t,typeof t=="function")Hp(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Di:return ei(r.children,s,i,e);case cp:o=8,s|=8;break;case yf:return t=lr(12,r,e,s|2),t.elementType=yf,t.lanes=i,t;case wf:return t=lr(13,r,e,s),t.elementType=wf,t.lanes=i,t;case xf:return t=lr(19,r,e,s),t.elementType=xf,t.lanes=i,t;case N0:return Mu(r,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case j0:o=10;break e;case P0:o=9;break e;case up:o=11;break e;case dp:o=14;break e;case Wn:o=16,n=null;break e}throw Error(L(130,t==null?t:typeof t,""))}return e=lr(o,r,e,s),e.elementType=t,e.type=n,e.lanes=i,e}function ei(t,e,r,n){return t=lr(7,t,n,e),t.lanes=r,t}function Mu(t,e,r,n){return t=lr(22,t,n,e),t.elementType=N0,t.lanes=r,t.stateNode={isHidden:!1},t}function Wd(t,e,r){return t=lr(6,t,null,e),t.lanes=r,t}function Hd(t,e,r){return e=lr(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function tT(t,e,r,n,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kd(0),this.expirationTimes=kd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kd(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function qp(t,e,r,n,s,i,o,a,l){return t=new tT(t,e,r,a,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=lr(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pp(i),t}function rT(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;
vendor: 4,591 bytes, line 40
40return{$$typeof:Ii,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function bx(t){if(!t)return gs;t=t._reactInternals;e:{if(pi(t)!==t||t.tag!==1)throw Error(L(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Vt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(L(171))}if(t.tag===1){var r=t.type;if(Vt(r))return bw(t,r,e)}return e}function _x(t,e,r,n,s,i,o,a,l){return t=qp(r,n,!0,t,s,i,o,a,l),t.context=bx(null),r=t.current,n=Ot(),s=fs(r),i=bn(n,s),i.callback=e??null,us(r,i,s),t.current.lanes=s,sl(t,s,n),zt(t,n),t}function $u(t,e,r,n){var s=e.current,i=Ot(),o=fs(s);return r=bx(r),e.context===null?e.context=r:e.pendingContext=r,e=bn(i,o),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=us(s,e,o),t!==null&&(Ar(t,s,o,i),ac(t,s,o)),o}function Kc(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function ev(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function Kp(t,e){ev(t,e),(t=t.alternate)&&ev(t,e)}function nT(){return null}var Sx=typeof reportError=="function"?reportError:function(t){console.error(t)};function Gp(t){this._internalRoot=t}Lu.prototype.render=Gp.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(L(409));$u(t,e,null,null)};Lu.prototype.unmount=Gp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;oi(function(){$u(null,t,null,null)}),e[Sn]=null}};function Lu(t){this._internalRoot=t}Lu.prototype.unstable_scheduleHydration=function(t){if(t){var e=ew();t={blockedOn:null,target:t,priority:e};for(var r=0;r<Kn.length&&e!==0&&e<Kn[r].priority;r++);Kn.splice(r,0,t),r===0&&rw(t)}};function Yp(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Fu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function tv(){}function sT(t,e,r,n,s){if(s){if(typeof n=="function"){var i=n;n=function(){var c=Kc(o);i.call(c)}}var o=_x(e,n,t,0,null,!1,!1,"",tv);return t._reactRootContainer=o,t[Sn]=o.current,Oa(t.nodeType===8?t.parentNode:t),oi(),o}for(;s=t.lastChild;)t.removeChild(s);if(typeof n=="function"){var a=n;n=function(){var c=Kc(l);a.call(c)}}var l=qp(t,0,!1,null,null,!1,!1,"",tv);return t._reactRootContainer=l,t[Sn]=l.current,Oa(t.nodeType===8?t.parentNode:t),oi(function(){$u(e,l,r,n)}),l}function Uu(t,e,r,n,s){var i=r._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=Kc(o);a.call(l)}}$u(e,o,t,s)}else o=sT(r,e,t,s,n);return Kc(o)}Z0=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=na(e.pendingLanes);r!==0&&(pp(e,r|1),zt(e,et()),!(Ee&6)&&(bo=et()+500,Ss()))}break;case 13:oi(function(){var n=En(t,1);if(n!==null){var s=Ot();Ar(n,t,1,s)}}),Kp(t,1)}};mp=function(t){if(t.tag===13){var e=En(t,134217728);if(e!==null){var r=Ot();Ar(e,t,134217728,r)}Kp(t,134217728)}};X0=function(t){if(t.tag===13){var e=fs(t),r=En(t,e);if(r!==null){var n=Ot();Ar(r,t,e,n)}Kp(t,e)}};ew=function(){return Oe};tw=function(t,e){var r=Oe;try{return Oe=t,e()}finally{Oe=r}};Nf=function(t,e,r){switch(e){case"input":if(Sf(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var s=Nu(n);if(!s)throw Error(L(90));R0(n),Sf(n,s)}}}break;case"textarea":I0(t,r);break;case"select":e=r.value,e!=null&&qi(t,!!r.multiple,e,!1)}};B0=Vp;V0=oi;var iT={usingClientEntryPoint:!1,Events:[ol,Fi,Nu,F0,U0,Vp]},Qo={findFiberByHostInstance:Vs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},oT={bundleType:Qo.bundleType,version:Qo.version,rendererPackageName:Qo.rendererPackageName,rendererConfig:Qo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=H0(t),t===null?null:t.stateNode},findFiberByHostInstance:Qo.findFiberByHostInstance||nT,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$l.isDisabled&&$l.supportsFiber)try{Cu=$l.inject(oT),tn=$l}catch{}}er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iT;er.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yp(e))throw Error(L(200));return rT(t,e,null,r)};er.createRoot=function(t,e){if(!Yp(t))throw Error(L(299));var r=!1,n="",s=Sx;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=qp(t,1,!1,null,null,r,!1,n,s),t[Sn]=e.current,Oa(t.nodeType===8?t.parentNode:t),new Gp(e)};er.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(L(188)):(t=Object.keys(t).join(","),Error(L(268,t)));return t=H0(e),t=t===null?null:t.stateNode,t};er.flushSync=function(t){return oi(t)};er.hydrate=function(t,e,r){if(!Fu(e))throw Error(L(200));return Uu(null,t,e,!0,r)};er.hydrateRoot=function(t,e,r){if(!Yp(t))throw Error(L(405));var n=r!=null&&r.hydratedSources||null,s=!1,i="",o=Sx;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),e=_x(e,null,t,1,r??null,s,!1,i,o),t[Sn]=e.current,Oa(t),n)for(t=0;t<n.length;t++)r=n[t],s=r._getVersion,s=s(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,s]:e.mutableSourceEagerHydrationData.push(r,s);return new Lu(e)};er.render=function(t,e,r){if(!Fu(e))throw Error(L(200));return Uu(null,t,e,!1,r)};er.unmountComponentAtNode=function(t){if(!Fu(t))throw Error(L(40));return t._reactRootContainer?(oi(function(){Uu(null,null,t,!1,function(){t._reactRootContainer=null,t[Sn]=null})}),!0):!1};er.unstable_batchedUpdates=Vp;er.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Fu(r))throw Error(L(200));if(t==null||t._reactInternals===void 0)throw Error(L(38));return Uu(t,e,r,!1,n)};er.version="18.3.1-next-f1338f8080-20240426";function Ex(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ex)}catch(t){console.error(t)}}Ex(),E0.exports=er;var mi=E0.exports;const kx=ep(mi);var Cx,rv=mi;Cx=rv.createRoot,rv.hydrateRoot;const aT=1,lT=1e6;let qd=0;function cT(){return qd=(qd+1)%Number.MAX_SAFE_INTEGER,qd.toString()}const Kd=new Map,nv=t=>{if(Kd.has(t))return;const e=setTimeout(()=>{Kd.delete(t),xa({type:"REMOVE_TOAST",toastId:t})},lT);Kd.set(t,e)},uT=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,aT)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?nv(r):t.toasts.forEach(n=>{nv(n.id)}),{...t,toasts:t.toasts.map(n=>
vendor: 9,771 bytes, line 40
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},pc=[];let mc={toasts:[]};function xa(t){mc=uT(mc,t),pc.forEach(e=>{e(mc)})}function dT({...t}){const e=cT(),r=s=>xa({type:"UPDATE_TOAST",toast:{...s,id:e}}),n=()=>xa({type:"DISMISS_TOAST",toastId:e});return xa({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||n()}}}),{id:e,dismiss:n,update:r}}function Bu(){const[t,e]=x.useState(mc);return x.useEffect(()=>(pc.push(e),()=>{const r=pc.indexOf(e);r>-1&&pc.splice(r,1)}),[t]),{...t,toast:dT,dismiss:r=>xa({type:"DISMISS_TOAST",toastId:r})}}function pe(t,e,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function sv(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Tx(...t){return e=>{let r=!1;const n=t.map(s=>{const i=sv(s,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():sv(t[s],null)}}}}function Be(...t){return x.useCallback(Tx(...t),t)}function fT(t,e){const r=x.createContext(e),n=i=>{const{children:o,...a}=i,l=x.useMemo(()=>a,Object.values(a));return d.jsx(r.Provider,{value:l,children:o})};n.displayName=t+"Provider";function s(i){const o=x.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[n,s]}function Io(t,e=[]){let r=[];function n(i,o){const a=x.createContext(o),l=r.length;r=[...r,o];const c=f=>{var w;const{scope:h,children:p,...b}=f,g=((w=h==null?void 0:h[t])==null?void 0:w[l])||a,y=x.useMemo(()=>b,Object.values(b));return d.jsx(g.Provider,{value:y,children:p})};c.displayName=i+"Provider";function u(f,h){var g;const p=((g=h==null?void 0:h[t])==null?void 0:g[l])||a,b=x.useContext(p);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=r.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[t])||i;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return s.scopeName=t,[n,hT(s,...e)]}function hT(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...a,...f}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function _o(t){const e=pT(t),r=x.forwardRef((n,s)=>{const{children:i,...o}=n,a=x.Children.toArray(i),l=a.find(gT);if(l){const c=l.props.children,u=a.map(f=>f===l?x.Children.count(c)>1?x.Children.only(null):x.isValidElement(c)?c.props.children:null:f);return d.jsx(e,{...o,ref:s,children:x.isValidElement(c)?x.cloneElement(c,void 0,u):null})}return d.jsx(e,{...o,ref:s,children:i})});return r.displayName=`${t}.Slot`,r}var jx=_o("Slot");function pT(t){const e=x.forwardRef((r,n)=>{const{children:s,...i}=r;if(x.isValidElement(s)){const o=yT(s),a=vT(i,s.props);return s.type!==x.Fragment&&(a.ref=n?Tx(n,o):o),x.cloneElement(s,a)}return x.Children.count(s)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Px=Symbol("radix.slottable");function mT(t){const e=({children:r})=>d.jsx(d.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=Px,e}function gT(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Px}function vT(t,e){const r={...e};for(const n in e){const s=t[n],i=e[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function yT(t){var n,s;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Nx(t){const e=t+"CollectionProvider",[r,n]=Io(e),[s,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:y,children:w}=g,m=A.useRef(null),v=A.useRef(new Map).current;return d.jsx(s,{scope:y,itemMap:v,collectionRef:m,children:w})};o.displayName=e;const a=t+"CollectionSlot",l=_o(a),c=A.forwardRef((g,y)=>{const{scope:w,children:m}=g,v=i(a,w),_=Be(y,v.collectionRef);return d.jsx(l,{ref:_,children:m})});c.displayName=a;const u=t+"CollectionItemSlot",f="data-radix-collection-item",h=_o(u),p=A.forwardRef((g,y)=>{const{scope:w,children:m,...v}=g,_=A.useRef(null),S=Be(y,_),C=i(u,w);return A.useEffect(()=>(C.itemMap.set(_,{ref:_,...v}),()=>void C.itemMap.delete(_))),d.jsx(h,{[f]:"",ref:S,children:m})});p.displayName=u;function b(g){const y=i(t+"CollectionConsumer",g);return A.useCallback(()=>{const m=y.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((C,k)=>v.indexOf(C.ref.current)-v.indexOf(k.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:c,ItemSlot:p},b,n]}var wT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Se=wT.reduce((t,e)=>{const r=_o(`Primitive.${e}`),n=x.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Ox(t,e){t&&mi.flushSync(()=>t.dispatchEvent(e))}function Dr(t){const e=x.useRef(t);return x.useEffect(()=>{e.current=t}),x.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function xT(t,e=globalThis==null?void 0:globalThis.document){const r=Dr(t);x.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var bT="DismissableLayer",ch="dismissableLayer.update",_T="dismissableLayer.pointerDownOutside",ST="dismissableLayer.focusOutside",iv,Rx=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ll=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=t,c=x.useContext(Rx),[u,f]=x.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=x.useState({}),b=Be(e,k=>f(k)),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(y),m=u?g.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,_=m>=w,S=kT(k=>{const P=k.target,j=[...c.branches].some(D=>D.contains(P));!_||j||(s==null||s(k),o==null||o(k),k.defaultPrevented||a==null||a())},h),C=CT(k=>{const P=k.target;[...c.branches].some(D=>D.contains(P))||(i==null||i(k),o==null||o(k),k.defaultPrevented||a==null||a())},h);return xT(k=>{m===c.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},h),x.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(iv=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),ov(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=iv)}},[u,h,r,c]),x.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),ov())},[u,c]),x.useEffect(()=>{const k=()=>p({});return document.addEventListener(ch,k),()=>document.removeEventListener(ch,k)},[]),d.jsx(Se.div,{...l,ref:b,style:{pointerEvents:v?_?"auto":"none":void 0,...t.style},onFocusCapture:pe(t.onFocusCapture,C.onFocusCapture),onBlurCapture:pe(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:pe(t.onPointerDownCapture,S.onPointerDownCapture)})});ll.displayName=bT;var ET="DismissableLayerBranch",Ax=x.forwardRef((t,e)=>{const r=x.useContext(Rx),n=x.useRef(null),s=Be(e,n);return x.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),d.jsx(Se.div,{...t,ref:s})});Ax.displayName=ET;function kT(t,e=globalThis==null?void 0:globalThis.document){const r=Dr(t),n=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){Ix(_T,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=l,e.addEventListener("click",s.current,{once:!0})):l()}else e.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function CT(t,e=globalThis==null?void 0:globalThis.document){const r=Dr(t),n=x.useRef(!1);return x.useEffect(()=>{const s=i=>{i.target&&!n.current&&Ix(ST,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ov(){const t=new CustomEvent(ch);document.dispatchEvent(t)}function Ix(t,e,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?Ox(s,i):s.dispatchEvent(i)}var TT=ll,jT=Ax,yt=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},PT="Portal",Vu=x.forwardRef((t,e)=>{var a;const{container:r,...n}=t,[s,i]=x.useState(!1);yt(()=>i(!0),[]);const o=r||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?kx.createPortal(d.jsx(Se.div,{...n,ref:e}),o):null});
40Vu.displayName=PT;function NT(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var Do=t=>{const{present:e,children:r}=t,n=OT(e),s=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),i=Be(n.ref,RT(s));return typeof r=="function"||n.isPresent?x.cloneElement(s,{ref:i}):null};Do.displayName="Presence";function OT(t){const[e,r]=x.useState(),n=x.useRef(null),s=x.useRef(t),i=x.useRef("none"),o=t?"mounted":"unmounted",[a,l]=NT(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const c=Ll(n.current);i.current=a==="mounted"?c:"none"},[a]),yt(()=>{const c=n.current,u=s.current;if(u!==t){const h=i.current,p=Ll(c);t?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,l]),yt(()=>{if(e){let c;const u=e.ownerDocument.defaultView??window,f=p=>{const g=Ll(n.current).includes(p.animationName);if(p.target===e&&g&&(l("ANIMATION_END"),!s.current)){const y=e.style.animationFillMode;e.style.animationFillMode="forwards",c=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=y)})}},h=p=>{p.target===e&&(i.current=Ll(n.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{u.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Ll(t){return(t==null?void 0:t.animationName)||"none"}function RT(t){var n,s;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var AT=ip[" useInsertionEffect ".trim().toString()]||yt;function Gc({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[s,i,o]=IT({defaultProp:e,onChange:r}),a=t!==void 0,l=a?t:s;{const u=x.useRef(t!==void 0);x.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,n])}const c=x.useCallback(u=>{var f;if(a){const h=DT(u)?u(t):u;h!==t&&((f=o.current)==null||f.call(o,h))}else i(u)},[a,t,i,o]);return[l,c]}function IT({defaultProp:t,onChange:e}){const[r,n]=x.useState(t),s=x.useRef(r),i=x.useRef(e);return AT(()=>{i.current=e},[e]),x.useEffect(()=>{var o;s.current!==r&&((o=i.current)==null||o.call(i,r),s.current=r)},[r,s]),[r,n,i]}function DT(t){return typeof t=="function"}var Dx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),MT="VisuallyHidden",zu=x.forwardRef((t,e)=>d.jsx(Se.span,{...t,ref:e,style:{...Dx,...t.style}}));zu.displayName=MT;var $T=zu,Qp="ToastProvider",[Jp,LT,FT]=Nx("Toast"),[Mx,$4]=Io("Toast",[FT]),[UT,Wu]=Mx(Qp),$x=t=>{const{__scopeToast:e,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=t,[a,l]=x.useState(null),[c,u]=x.useState(0),f=x.useRef(!1),h=x.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Qp}\`. Expected non-empty \`string\`.`),d.jsx(Jp.Provider,{scope:e,children:d.jsx(UT,{scope:e,label:r,duration:n,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>u(p=>p+1),[]),onToastRemove:x.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:o})})};$x.displayName=Qp;var Lx="ToastViewport",BT=["F8"],uh="toast.viewportPause",dh="toast.viewportResume",Fx=x.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=BT,label:s="Notifications ({hotkey})",...i}=t,o=Wu(Lx,r),a=LT(r),l=x.useRef(null),c=x.useRef(null),u=x.useRef(null),f=x.useRef(null),h=Be(e,f,o.onViewportChange),p=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=o.toastCount>0;x.useEffect(()=>{const y=w=>{var v;n.length!==0&&n.every(_=>w[_]||w.code===_)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[n]),x.useEffect(()=>{const y=l.current,w=f.current;if(b&&y&&w){const m=()=>{if(!o.isClosePausedRef.current){const C=new CustomEvent(uh);w.dispatchEvent(C),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const C=new CustomEvent(dh);w.dispatchEvent(C),o.isClosePausedRef.current=!1}},_=C=>{!y.contains(C.relatedTarget)&&v()},S=()=>{y.contains(document.activeElement)||v()};return y.addEventListener("focusin",m),y.addEventListener("focusout",_),y.addEventListener("pointermove",m),y.addEventListener("pointerleave",S),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{y.removeEventListener("focusin",m),y.removeEventListener("focusout",_),y.removeEventListener("pointermove",m),y.removeEventListener("pointerleave",S),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[b,o.isClosePausedRef]);const g=x.useCallback(({tabbingDirection:y})=>{const m=a().map(v=>{const _=v.ref.current,S=[_,...ej(_)];return y==="forwards"?S:S.reverse()});return(y==="forwards"?m.reverse():m).flat()},[a]);return x.useEffect(()=>{const y=f.current;if(y){const w=m=>{var S,C,k;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const P=document.activeElement,j=m.shiftKey;if(m.target===y&&j){(S=c.current)==null||S.focus();return}const M=g({tabbingDirection:j?"backwards":"forwards"}),B=M.findIndex($=>$===P);Gd(M.slice(B+1))?m.preventDefault():j?(C=c.current)==null||C.focus():(k=u.current)==null||k.focus()}};return y.addEventListener("keydown",w),()=>y.removeEventListener("keydown",w)}},[a,g]),d.jsxs(jT,{ref:l,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&d.jsx(fh,{ref:c,onFocusFromOutsideViewport:()=>{const y=g({tabbingDirection:"forwards"});Gd(y)}}),d.jsx(Jp.Slot,{scope:r,children:d.jsx(Se.ol,{tabIndex:-1,...i,ref:h})}),b&&d.jsx(fh,{ref:u,onFocusFromOutsideViewport:()=>{const y=g({tabbingDirection:"backwards"});Gd(y)}})]})});Fx.displayName=Lx;var Ux="ToastFocusProxy",fh=x.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=t,i=Wu(Ux,r);return d.jsx(zu,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&n()}})});fh.displayName=Ux;var cl="Toast",VT="toast.swipeStart",zT="toast.swipeMove",WT="toast.swipeCancel",HT
40="toast.swipeEnd",Bx=x.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=t,[a,l]=Gc({prop:n,defaultProp:s??!0,onChange:i,caller:cl});return d.jsx(Do,{present:r||a,children:d.jsx(GT,{open:a,...o,ref:e,onClose:()=>l(!1),onPause:Dr(t.onPause),onResume:Dr(t.onResume),onSwipeStart:pe(t.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(t.onSwipeMove,c=>{const{x:u,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:pe(t.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:pe(t.onSwipeEnd,c=>{const{x:u,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Bx.displayName=cl;var[qT,KT]=Mx(cl,{onClose(){}}),GT=x.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...b}=t,g=Wu(cl,r),[y,w]=x.useState(null),m=Be(e,$=>w($)),v=x.useRef(null),_=x.useRef(null),S=s||g.duration,C=x.useRef(0),k=x.useRef(S),P=x.useRef(0),{onToastAdd:j,onToastRemove:D}=g,G=Dr(()=>{var ee;(y==null?void 0:y.contains(document.activeElement))&&((ee=g.viewport)==null||ee.focus()),o()}),M=x.useCallback($=>{!$||$===1/0||(window.clearTimeout(P.current),C.current=new Date().getTime(),P.current=window.setTimeout(G,$))},[G]);x.useEffect(()=>{const $=g.viewport;if($){const ee=()=>{M(k.current),c==null||c()},K=()=>{const X=new Date().getTime()-C.current;k.current=k.current-X,window.clearTimeout(P.current),l==null||l()};return $.addEventListener(uh,K),$.addEventListener(dh,ee),()=>{$.removeEventListener(uh,K),$.removeEventListener(dh,ee)}}},[g.viewport,S,l,c,M]),x.useEffect(()=>{i&&!g.isClosePausedRef.current&&M(S)},[i,S,g.isClosePausedRef,M]),x.useEffect(()=>(j(),()=>D()),[j,D]);const B=x.useMemo(()=>y?Gx(y):null,[y]);return g.viewport?d.jsxs(d.Fragment,{children:[B&&d.jsx(YT,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:B}),d.jsx(qT,{scope:r,onClose:G,children:mi.createPortal(d.jsx(Jp.ItemSlot,{scope:r,children:d.jsx(TT,{asChild:!0,onEscapeKeyDown:pe(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||G(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(Se.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...b,ref:m,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:pe(t.onKeyDown,$=>{$.key==="Escape"&&(a==null||a($.nativeEvent),$.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,G()))}),onPointerDown:pe(t.onPointerDown,$=>{$.button===0&&(v.current={x:$.clientX,y:$.clientY})}),onPointerMove:pe(t.onPointerMove,$=>{if(!v.current)return;const ee=$.clientX-v.current.x,K=$.clientY-v.current.y,X=!!_.current,N=["left","right"].includes(g.swipeDirection),R=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,z=N?R(0,ee):0,ie=N?0:R(0,K),se=$.pointerType==="touch"?10:2,le={x:z,y:ie},ae={originalEvent:$,delta:le};X?(_.current=le,Fl(zT,f,ae,{discrete:!1})):av(le,g.swipeDirection,se)?(_.current=le,Fl(VT,u,ae,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(ee)>se||Math.abs(K)>se)&&(v.current=null)}),onPointerUp:pe(t.onPointerUp,$=>{const ee=_.current,K=$.target;if(K.hasPointerCapture($.pointerId)&&K.releasePointerCapture($.pointerId),_.current=null,v.current=null,ee){const X=$.currentTarget,N={originalEvent:$,delta:ee};av(ee,g.swipeDirection,g.swipeThreshold)?Fl(HT,p,N,{discrete:!0}
40):Fl(WT,h,N,{discrete:!0}),X.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),YT=t=>{const{__scopeToast:e,children:r,...n}=t,s=Wu(cl,e),[i,o]=x.useState(!1),[a,l]=x.useState(!1);return ZT(()=>o(!0)),x.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:d.jsx(Vu,{asChild:!0,children:d.jsx(zu,{...n,children:i&&d.jsxs(d.Fragment,{children:[s.label," ",r]})})})},QT="ToastTitle",Vx=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return d.jsx(Se.div,{...n,ref:e})});Vx.displayName=QT;var JT="ToastDescription",zx=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return d.jsx(Se.div,{...n,ref:e})});zx.displayName=JT;var Wx="ToastAction",Hx=x.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?d.jsx(Kx,{altText:r,asChild:!0,children:d.jsx(Zp,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${Wx}\`. Expected non-empty \`string\`.`),null)});Hx.displayName=Wx;var qx="ToastClose",Zp=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,s=KT(qx,r);return d.jsx(Kx,{asChild:!0,children:d.jsx(Se.button,{type:"button",...n,ref:e,onClick:pe(t.onClick,s.onClose)})})});Zp.displayName=qx;var Kx=x.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...s}=t;return d.jsx(Se.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:e})});function Gx(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),XT(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...Gx(n))}}),e}function Fl(t,e,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?Ox(s,i):s.dispatchEvent(i)}var av=(t,e,r=0)=>{const n=Math.abs(t.x),s=Math.abs(t.y),i=n>s;return e==="left"||e==="right"?i&&n>r:!i&&s>r};function ZT(t=()=>{}){const e=Dr(t);yt(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function XT(t){return t.nodeType===t.ELEMENT_NODE}function ej(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Gd(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}var tj=$x,Yx=Fx,Qx=Bx,Jx=Vx,Zx=zx,Xx=Hx,eb=Zp;function tb(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(r=tb(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function rb(){for(var t,e,r=0,n="",s=arguments.length;r<s;r++)(t=arguments[r])&&(e=tb(t))&&(n&&(n+=" "),n+=e);return n}const lv=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,cv=rb,Hu=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return cv(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:i}=e,o=Object.keys(s).map(c=>{const u=r==null?void 0:r[c],f=i==null?void 0:i[c];if(u===null)return null;const h=lv(u)||lv(f);return s[c][h]}),a=r&&Object.entries(r).reduce((c,u)=>{let[f,h]=u;return h===void 0||(c[f]=h),c},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:f,className:h,...p}=u;return Object.entries(p).every(b=>{let[g,y]=b;return Array.isArray(y)?y.includes({...i,...a}[g]):{...i,...a}[g]===y})?[...c,f,h]:c},[]);return cv(t,o,l,r==null?void 0:r.class,r==null?void 0:r.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 rj=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nb=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).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 nj={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 sj=x.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:i,iconNode:o,...a},l)=>x.createElement("svg",{ref:l,...nj,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:nb("lucide",s),...a},[...o.map(([c,u])=>x.createElement(c,u)),...Array.isArray(i)?i:[i]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const me=(t,e)=>{const r=x.forwardRef(({className:n,...s},i)=>x.createElement(sj,{ref:i,iconNode:e,className:nb(`lucide-${rj(t)}`,n),...s}));return r.displayName=`${t}`,r};/** 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 sb=me("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const ij=me("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
70],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 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 oj=me("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const aj=me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const ib=me("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const lj=me("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const cj=me("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const ob=me("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const uj=me("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const dj=me("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const fj=me("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const ab=me("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const hj=me("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const lb=me("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const Ua=me("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const pj=me("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const mj=me("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** 146 * @license lucide-react v0.462.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const gj=me("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/** 151 * @license lucide-react v0.462.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const Zi=me("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree.
160 */const vj=me("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const yj=me("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const wj=me("MailOpen",[["path",{d:"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z",key:"1jhwl8"}],["path",{d:"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10",key:"1qfld7"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const Ni=me("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const xj=me("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const cb=me("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const uv=me("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const bj=me("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const Yc=me("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const _j=me("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const Sj=me("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const Ej=me("ReceiptText",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}
vendor: 9,627 bytes, lines 215-260
215],["path",{d:"M13 16H8",key:"wsln4y"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const ub=me("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const kj=me("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const Cj=me("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const Tj=me("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 236 * @license lucide-react v0.462.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const jj=me("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/** 241 * @license lucide-react v0.462.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const dv=me("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 246 * @license lucide-react v0.462.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const Pj=me("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 251 * @license lucide-react v0.462.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const Ba=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 256 * @license lucide-react v0.462.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const Nj=me("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),Xp="-",Oj=t=>{const e=Aj(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const a=o.split(Xp);return a[0]===""&&a.length!==1&&a.shift(),db(a,e)||Rj(o)},getConflictingClassGroupIds:(o,a)=>{const l=r[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},db=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),s=n?db(t.slice(1),n):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(Xp);return(o=e.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},fv=/^\[(.+)\]$/,Rj=t=>{if(fv.test(t)){const e=fv.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Aj=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Dj(Object.entries(t.classGroups),r).forEach(([i,o])=>{hh(o,n,i,e)}),n},hh=(t,e,r,n)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:hv(e,s);i.classGroupId=r;return}if(typeof s=="function"){if(Ij(s)){hh(s(n),e,r,n);return}e.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,o])=>{hh(o,hv(e,i),r,n)})})},hv=(t,e)=>{let r=t;return e.split(Xp).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ij=t=>t.isThemeGetter,Dj=(t,e)=>e?t.map(([r,n])=>{const s=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[e+o,a])):i);return[r,s]}):t,Mj=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const s=(i,o)=>{r.set(i,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return s(i,o),o},set(i,o){r.has(i)?r.set(i,o):s(i,o)}}},fb="!",$j=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,s=e[0],i=e.length,o=a=>{const l=[];let c=0,u=0,f;for(let y=0;y<a.length;y++){let w=a[y];if(c===0){if(w===s&&(n||a.slice(y,y+i)===e)){l.push(a.slice(u,y)),u=y+i;continue}if(w==="/"){f=y;continue}}w==="["?c++:w==="]"&&c--}const h=l.length===0?a:a.substring(u),p=h.startsWith(fb),b=p?h.substring(1):h,g=f&&f>u?f-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:g}};return r?a=>r({className:a,parseClassName:o}):o},Lj=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},Fj=t=>({cache:Mj(t.cacheSize),parseClassName:$j(t),...Oj(t)}),Uj=/\s+/,Bj=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=e,i=[],o=t.trim().split(Uj);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=r(c);let b=!!p,g=n(b?h.substring(0,p):h);if(!g){if(!b){a=c+(a.length>0?" "+a:a);continue}if(g=n(h),!g){a=c+(a.length>0?" "+a:a);continue}b=!1}const y=Lj(u).join(":"),w=f?y+fb:y,m=w+g;if(i.includes(m))continue;i.push(m);const v=s(g,b);for(let _=0;_<v.length;++_){const S=v[_];i.push(w+S)}a=c+(a.length>0?" "+a:a)}return a};function Vj(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=hb(e))&&(n&&(n+=" "),n+=r);return n}const hb=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=hb(t[n]))&&(r&&(r+=" "),r+=e);return r};function zj(t,...e){let r,n,s,i=o;function o(l){const c=e.reduce((u,f)=>f(u),t());return r=Fj(c),n=r.cache.get,s=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=Bj(l,r);return s(l,u),u}return function(){return i(Vj.apply(null,arguments))}}const Le=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},pb=/^\[(?:([a-z-]+):)?(.+)\]$/i,Wj=/^\d+\/\d+$/,Hj=new Set(["px","full","screen"]),qj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kj=/\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$/,Gj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Yj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fn=t=>Xi(t)||Hj.has(t)||Wj.test(t),Dn=t=>Mo(t,"length",sP),Xi=t=>!!t&&!Number.isNaN(Number(t)),Yd=t=>Mo(t,"number",Xi),Jo=t=>!!t&&Number.isInteger(Number(t)),Jj=t=>t.endsWith("%")&&Xi(t.slice(0,-1)),he=t=>pb.test(t),Mn=t=>qj.test(t),Zj=new Set(["length","size","percentage"]),Xj=t=>Mo(t,Zj,mb),eP=t=>Mo(t,"position",mb),tP=new Set(["image","url"]),rP=t=>Mo(t,tP,oP),nP=t=>Mo(t,"",iP),Zo=()=>!0,Mo=(t,e,r)=>{const n=pb.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},sP=t=>Kj.test(t)&&!Gj.test(t),mb=()=>!1,iP=t=>Yj.test(t),oP=t=>Qj.test(t),aP=()=>{const t=Le("colors"),e=Le("spacing"),r=Le("blur"),n=Le("brightness"),s=Le("borderColor"),i=Le("borderRadius"),o=Le("borderSpacing"),a=Le("borderWidth"),l=Le("contrast"),c=Le("grayscale"),u=Le("hueRotate"),f=Le("invert"),h=Le("gap"),p=Le("gradientColorStops"),b=Le("gradientColorStopPositions"),g=Le("inset"),y=Le("margin"),w=Le("opacity"),m=Le("padding"),v=Le("saturate"),_=Le("scale"),S=Le("sepia"),C=Le("skew"),k=Le("space"),P=Le("translate"),j=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",he,e],M=()=>[he,e],B=()=>["",fn,Dn],$=()=>["auto",Xi,he],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",he],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[Xi,he];return{cacheSize:500,separator:":",theme:{colors:[Zo],spacing:[fn,Dn],blur:["none","",Mn,he],brightness:ie(),borderColor:[t],borderRadius:["n
260one","","full",Mn,he],borderSpacing:M(),borderWidth:B(),contrast:ie(),grayscale:R(),hueRotate:ie(),invert:R(),gap:M(),gradientColorStops:[t],gradientColorStopPositions:[Jj,Dn],inset:G(),margin:G(),opacity:ie(),padding:M(),saturate:ie(),scale:ie(),sepia:R(),skew:ie(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",he]}],container:["container"],columns:[{columns:[Mn]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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:[...ee(),he]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Jo,he]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",he]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Jo,he]}],"grid-cols":[{"grid-cols":[Zo]}],"col-start-end":[{col:["auto",{span:["full",Jo,he]},he]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Zo]}],"row-start-end":[{row:["auto",{span:[Jo,he]},he]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",he]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",he]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",he,e]}],"min-w":[{"min-w":[he,e,"min","max","fit"]}],"max-w":[{"max-w":[he,e,"none","full","min","max","fit","prose",{screen:[Mn]},Mn]}],h:[{h:[he,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[he,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[he,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[he,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Mn,Dn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yd]}],"font-family":[{font:[Zo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",he]}],"line-clamp":[{"line-clamp":["none",Xi,Yd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fn,he]}],"list-image":[{"list-image":["none",he]}],"list-style-type":[{list:["none","disc","decimal",he]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fn,Dn]}],"underline-offset":[{"underline-offset":["auto",fn,he]}],"text-decoration-color":[{decoration:[t]}],"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",he]}],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",he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),eP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rP]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[b]}
vendor: 5,182 bytes, line 260
260],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...K(),"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":[w]}],"divide-style":[{divide:K()}],"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:["",...K()]}],"outline-offset":[{"outline-offset":[fn,he]}],"outline-w":[{outline:[fn,Dn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[fn,Dn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Mn,nP]}],"shadow-color":[{shadow:[Zo]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Mn,he]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",he]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",he]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",he]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Jo,he]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",he]}],accent:[{accent:["auto",t]}],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",he]}],"caret-color":[{caret:[t]}],"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,647 bytes, line 260
260],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",he]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[fn,Dn,Yd]}],stroke:[{stroke:[t,"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"]}}},lP=zj(aP);function _e(...t){return lP(rb(t))}const cP=tj,gb=x.forwardRef(({className:t,...e},r)=>d.jsx(Yx,{ref:r,className:_e("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]",t),...e}));gb.displayName=Yx.displayName;const uP=Hu("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"}}),vb=x.forwardRef(({className:t,variant:e,...r},n)=>d.jsx(Qx,{ref:n,className:_e(uP({variant:e}),t),...r}));vb.displayName=Qx.displayName;const dP=x.forwardRef(({className:t,...e},r)=>d.jsx(Xx,{ref:r,className:_e("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));dP.displayName=Xx.displayName;const yb=x.forwardRef(({className:t,...e},r)=>d.jsx(eb,{ref:r,className:_e("absolute right-2 top-2 rounded-md p-1 text-foreground
260/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:d.jsx(Ba,{className:"h-4 w-4"})}));yb.displayName=eb.displayName;const wb=x.forwardRef(({className:t,...e},r)=>d.jsx(Jx,{ref:r,className:_e("text-sm font-semibold",t),...e}));wb.displayName=Jx.displayName;const xb=x.forwardRef(({className:t,...e},r)=>d.jsx(Zx,{ref:r,className:_e("text-sm opacity-90",t),...e}));xb.displayName=Zx.displayName;function fP(){const{toasts:t}=Bu();return d.jsxs(cP,{children:[t.map(function({id:e,title:r,description:n,action:s,...i}){return d.jsxs(vb,{...i,children:[d.jsxs("div",{className:"grid gap-1",children:[r&&d.jsx(wb,{children:r}),n&&d.jsx(xb,{children:n})]}),s,d.jsx(yb,{})]},e)}),d.jsx(gb,{})]})}var pv=["light","dark"],hP="(prefers-color-scheme: dark)",pP=x.createContext(void 0),mP={setTheme:t=>{},themes:[]},gP=()=>{var t;return(t=x.useContext(pP))!=null?t:mP};x.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let c=i==="system",u=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=s?pv.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(b,g=!1,y=!0)=>{let w=o?o[b]:b,m=g?b+"|| ''":`'${w}'`,v="";return s&&y&&!g&&pv.includes(b)&&(v+=`d.style.colorScheme = '${b}';`),r==="class"?g||w?v+=`c.add(${m})`:v+="null":w&&(v+=`d[s](n,${m})`),v},p=t?`!function(){${u}${h(t)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${c})){var t='${hP}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${c?"":"else{"+h(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${f}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var vP=t=>{switch(t){case"success":return xP;case"info":return _P;case"warning":return bP;case"error":return SP;default:return null}},yP=Array(12).fill(0),wP=({visible:t,className:e})=>A.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},A.createElement("div",{className:"sonner-spinner"},yP.map((r,n)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),xP=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"})),bP=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"})),_P=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"})),SP=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"})),EP=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"})),kP=()=>{let[t,e]=A.useState(document.hidden);return A.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},ph=1,CP=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>
260{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:ph++,i=this.toasts.find(a=>a.id===s),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:r}),{...a,...t,id:s,dismissible:o,title:r}):a):this.addToast({title:r,...n,dismissible:o,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),s=r!==void 0,i,o=n.then(async l=>{if(i=["resolve",l],A.isValidElement(l))s=!1,this.create({id:r,type:"default",message:l});else if(jP(l)&&!l.ok){s=!1;let c=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,u=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:r,type:"error",message:c,description:u})}else if(e.success!==void 0){s=!1;let c=typeof e.success=="function"?await e.success(l):e.success,u=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"success",message:c,description:u})}}).catch(async l=>{if(i=["reject",l],e.error!==void 0){s=!1;let c=typeof e.error=="function"?await e.error(l):e.error,u=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"error",message:c,description:u})}}).finally(()=>{var l;s&&(this.dismiss(r),r=void 0),(l=e.finally)==null||l.call(e)}),a=()=>new Promise((l,c)=>o.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||ph++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},$t=new CP,TP=(t,e)=>{let r=(e==null?void 0:e.id)||ph++;return $t.addToast({title:t,...e,id:r}),r},jP=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",PP=TP,NP=()=>$t.toasts,OP=()=>$t.getActiveToasts();Object.assign(PP,{success:$t.success,info:$t.info,warning:$t.warning,error:$t.error,custom:$t.custom,message:$t.message,promise:$t.promise,dismiss:$t.dismiss,loading:$t.loading},{getHistory:NP,getToasts:OP});function RP(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}RP(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
260left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
260:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
260--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 261`);function Ul(t){return t.label!==void 0}var AP=3,IP="32px",DP="16px",mv=4e3,MP=356,$P=14,LP=20,FP=200;function vr(...t){return t.filter(Boolean).join(" ")}function UP(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var BP=t=>{var e,r,n,s,i,o,a,l,c,u,f;let{invert:h,toast:p,unstyled:b,interacting:g,setHeights:y,visibleToasts:w,heights:m,index:v,toasts:_,expanded:S,removeToast:C,defaultRichColors:k,closeButton:P,style:j,cancelButtonStyle:D,actionButtonStyle:G,className:M="",descriptionClassName:B="",duration:$,position:ee,gap:K,loadingIcon:X,expandByDefault:N,classNames:R,icons:z,closeButtonAriaLabel:ie="Close toast",pauseWhenPageIsHidden:se}=t,[le,ae]=A.useState(null),[Re,Ve]=A.useState(null),[H,Ce]=A.useState(!1),[De,xe]=A.useState(!1),[ye,be]=A.useState(!1),[ut,Ct]=A.useState(!1),[Ur,Br]=A.useState(!1),[ln,vi]=A.useState(0),[cn,E]=A.useState(0),T=A.useRef(p.duration||$||mv),O=A.useRef(null),W=A.useRef(null),V=v===0,U=v+1<=w,Q=p.type,we=p.dismissible!==!1,Ae=p.className||"",It=p.descriptionClassName||"",un=A.useMemo(()=>m.findIndex(de=>de.toastId===p.id)||0,[m,p.id]),Vr=A.useMemo(()=>{var de;return(de=p.closeButton)!=null?de:P},[p.closeButton,P]),vl=A.useMemo(()=>p.duration||$||mv,[p.duration,$]),js=A.useRef(0),zr=A.useRef(0),yl=A.useRef(0),dn=A.useRef(null),[vd,wl]=ee.split("-"),Hm=A.useMemo(()=>m.reduce((de,Ie,ze)=>ze>=un?de:de+Ie.height,0),[m,un]),qm=kP(),IE=p.invert||h,yd=Q==="loading";zr.current=A.useMemo(()=>un*K+Hm,[un,Hm]),A.useEffect(()=>{T.current=vl},[vl]),A.useEffect(()=>{Ce(!0)},[]),A.useEffect(()=>{let de=W.current;if(de){let Ie=de.getBoundingClientRect().height;return E(Ie),y(ze=>[{toastId:p.id,height:Ie,position:p.position},...ze]),()=>y(ze=>ze.filter(hr=>hr.toastId!==p.id))}},[y,p.id]),A.useLayoutEffect(()=>{if(!H)return;let de=W.current,Ie=de.style.height;de.style.height="auto";let ze=de.getBoundingClientRect().height;de.style.height=Ie,E(ze),y(hr=>hr.find(pr=>pr.toastId===p.id)?hr.map(pr=>pr.toastId===p.id?{...pr,height:ze}:pr):[{toastId:p.id,height:ze,position:p.position},...hr])},[H,p.title,p.description,y,p.id]);let On=A.useCallback(()=>{xe(!0),vi(zr.current),y(de=>de.filter(Ie=>Ie.toastId!==p.id)),setTimeout(()=>{C(p)},FP)},[p,C,y,zr]);A.useEffect(()=>{if(p.promise&&Q==="loading"||p.duration===1/0||p.type==="loading")return;let de;return S||g||se&&qm?(()=>{if(yl.current<js.current){let Ie=new Date().getTime()-js.current;T.current=T.current-Ie}
261yl.current=new Date().getTime()})():T.current!==1/0&&(js.current=new Date().getTime(),de=setTimeout(()=>{var Ie;(Ie=p.onAutoClose)==null||Ie.call(p,p),On()},T.current)),()=>clearTimeout(de)},[S,g,p,Q,se,qm,On]),A.useEffect(()=>{p.delete&&On()},[On,p.delete]);function DE(){var de,Ie,ze;return z!=null&&z.loading?A.createElement("div",{className:vr(R==null?void 0:R.loader,(de=p==null?void 0:p.classNames)==null?void 0:de.loader,"sonner-loader"),"data-visible":Q==="loading"},z.loading):X?A.createElement("div",{className:vr(R==null?void 0:R.loader,(Ie=p==null?void 0:p.classNames)==null?void 0:Ie.loader,"sonner-loader"),"data-visible":Q==="loading"},X):A.createElement(wP,{className:vr(R==null?void 0:R.loader,(ze=p==null?void 0:p.classNames)==null?void 0:ze.loader),visible:Q==="loading"})}return A.createElement("li",{tabIndex:0,ref:W,className:vr(M,Ae,R==null?void 0:R.toast,(e=p==null?void 0:p.classNames)==null?void 0:e.toast,R==null?void 0:R.default,R==null?void 0:R[Q],(r=p==null?void 0:p.classNames)==null?void 0:r[Q]),"data-sonner-toast":"","data-rich-colors":(n=p.richColors)!=null?n:k,"data-styled":!(p.jsx||p.unstyled||b),"data-mounted":H,"data-promise":!!p.promise,"data-swiped":Ur,"data-removed":De,"data-visible":U,"data-y-position":vd,"data-x-position":wl,"data-index":v,"data-front":V,"data-swiping":ye,"data-dismissible":we,"data-type":Q,"data-invert":IE,"data-swipe-out":ut,"data-swipe-direction":Re,"data-expanded":!!(S||N&&H),style:{"--index":v,"--toasts-before":v,"--z-index":_.length-v,"--offset":`${De?ln:zr.current}px`,"--initial-height":N?"auto":`${cn}px`,...j,...p.style},onDragEnd:()=>{be(!1),ae(null),dn.current=null},onPointerDown:de=>{yd||!we||(O.current=new Date,vi(zr.current),de.target.setPointerCapture(de.pointerId),de.target.tagName!=="BUTTON"&&(be(!0),dn.current={x:de.clientX,y:de.clientY}))},onPointerUp:()=>{var de,Ie,ze,hr;if(ut||!we)return;dn.current=null;let pr=Number(((de=W.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Rn=Number(((Ie=W.current)==null?void 0:Ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ps=new Date().getTime()-((ze=O.current)==null?void 0:ze.getTime()),mr=le==="x"?pr:Rn,An=Math.abs(mr)/Ps;if(Math.abs(mr)>=LP||An>.11){vi(zr.current),(hr=p.onDismiss)==null||hr.call(p,p),Ve(le==="x"?pr>0?"right":"left":Rn>0?"down":"up"),On(),Ct(!0),Br(!1);return}be(!1),ae(null)},onPointerMove:de=>{var Ie,ze,hr,pr;if(!dn.current||!we||((Ie=window.getSelection())==null?void 0:Ie.toString().length)>0)return;let Rn=de.clientY-dn.current.y,Ps=de.clientX-dn.current.x,mr=(ze=t.swipeDirections)!=null?ze:UP(ee);!le&&(Math.abs(Ps)>1||Math.abs(Rn)>1)&&ae(Math.abs(Ps)>Math.abs(Rn)?"x":"y");let An={x:0,y:0};le==="y"?(mr.includes("top")||mr.includes("bottom"))&&(mr.includes("top")&&Rn<0||mr.includes("bottom")&&Rn>0)&&(An.y=Rn):le==="x"&&(mr.includes("left")||mr.includes("right"))&&(mr.includes("left")&&Ps<0||mr.includes("right")&&Ps>0)&&(An.x=Ps),(Math.abs(An.x)>0||Math.abs(An.y)>0)&&Br(!0),(hr=W.current)==null||hr.style.setProperty("--swipe-amount-x",`${An.x}px`),(pr=W.current)==null||pr.style.setProperty("--swipe-amount-y",`${An.y}px`)}},Vr&&!p.jsx?A.createElement("button",{"aria-label":ie,"data-disabled":yd,"data-close-button":!0,onClick:yd||!we?()=>{}:()=>{var de;On(),(de=p.onDismiss)==null||de.call(p,p)},className:vr(R==null?void 0:R.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=z==null?void 0:z.close)!=null?i:EP):null,p.jsx||x.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:A.createElement(A.Fragment,null,Q||p.icon||p.promise?A.createElement("div",{"data-icon":"",className:vr(R==null?void 0:R.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||DE():null,p.type!=="loading"?p.icon||(z==null?void 0:z[Q])||vP(Q):null):null,A.createElement("div",{"data-content":"",className:vr(R==null?void 0:R.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},A.createElement("div",{"data-title":"",className:vr(R==null?void 0:R.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?A.createElement("div",{"data-description":"",className:vr(B,It,R==null?void 0:R.description,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),x.isValidElement(p.cancel)?p.cancel:p.cancel&&Ul(p.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||D,onClick:de=>{var Ie,ze;Ul(p.cancel)&&we&&((ze=(Ie=p.cancel).onClick)==null||ze.call(Ie,de),On())},className:vr(R==null?void 0:R.cancelButton,(u=p==null?void 0:p.classNames)==null?void 0:u.cancelButton)},p.cancel.label):null,x.isValidElement(p.action)?p.action:p.action&&Ul(p.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||G,onClick:de=>{var Ie,ze;Ul(p.action)&&((ze=(Ie=p.action).onClick)==null||ze.call(Ie,de),!de.defaultPrevented&&On())},className:vr(R==null?void 0:R.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};
vendor: 4,233 bytes, line 261
261function gv(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function VP(t,e){let r={};return[t,e].forEach((n,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?DP:IP;function l(c){["top","right","bottom","left"].forEach(u=>{r[`${o}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${o}-${c}`]=a:r[`${o}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):l(a)}),r}var zP=x.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:c,theme:u="light",richColors:f,duration:h,style:p,visibleToasts:b=AP,toastOptions:g,dir:y=gv(),gap:w=$P,loadingIcon:m,icons:v,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S}=t,[C,k]=A.useState([]),P=A.useMemo(()=>Array.from(new Set([n].concat(C.filter(se=>se.position).map(se=>se.position)))),[C,n]),[j,D]=A.useState([]),[G,M]=A.useState(!1),[B,$]=A.useState(!1),[ee,K]=A.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=A.useRef(null),N=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=A.useRef(null),z=A.useRef(!1),ie=A.useCallback(se=>{k(le=>{var ae;return(ae=le.find(Re=>Re.id===se.id))!=null&&ae.delete||$t.dismiss(se.id),le.filter(({id:Re})=>Re!==se.id)})},[]);return A.useEffect(()=>$t.subscribe(se=>{if(se.dismiss){k(le=>le.map(ae=>ae.id===se.id?{...ae,delete:!0}:ae));return}setTimeout(()=>{kx.flushSync(()=>{k(le=>{let ae=le.findIndex(Re=>Re.id===se.id);return ae!==-1?[...le.slice(0,ae),{...le[ae],...se},...le.slice(ae+1)]:[se,...le]})})})}),[]),A.useEffect(()=>{if(u!=="system"){K(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;let se=window.matchMedia("(prefers-color-scheme: dark)");try{se.addEventListener("change",({matches:le})=>{K(le?"dark":"light")})}catch{se.addListener(({matches:ae})=>{try{K(ae?"dark":"light")}catch(Re){console.error(Re)}})}},[u]),A.useEffect(()=>{C.length<=1&&M(!1)},[C]),A.useEffect(()=>{let se=le=>{var ae,Re;s.every(Ve=>le[Ve]||le.code===Ve)&&(M(!0),(ae=X.current)==null||ae.focus()),le.code==="Escape"&&(document.activeElement===X.current||(Re=X.current)!=null&&Re.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",se),()=>document.removeEventListener("keydown",se)},[s]),A.useEffect(()=>{if(X.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,z.current=!1)}},[X.current]),A.createElement("section",{ref:e,"aria-label":`${_} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((se,le)=>{var ae;let[Re,Ve]=se.split("-");return C.length?A.createElement("ol",{key:se,dir:y==="auto"?gv():y,tabIndex:-1,ref:X,className:a,"data-sonner-toaster":!0,"data-theme":ee,"data-y-position":Re,"data-lifted":G&&C.length>1&&!i,"data-x-position":Ve,style:{"--front-toast-height":`${((ae=j[0])==null?void 0:ae.height)||0}px`,"--width":`${MP}px`,"--gap":`${w}px`,...p,...VP(l,c)},onBlur:H=>{z.current&&!H.currentTarget.contains(H.relatedTarget)&&(z.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||z.current||(z.current=!0,R.current=H.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{B||M(!1)},onDragEnd:()=>M(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},C.filter(H=>!H.position&&le===0||H.position===se).map((H,Ce)=>{var De,xe;return A.createElement(BP,{key:H.id,icons:v,index:Ce,toast:H,defaultRichColors:f,duration:(De=g==null?void 0:g.duration)!=null?De:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:b,closeButton:(xe=g==null?void 0:g.closeButton)!=null?xe:o,interacting:
vendor: 4,177 bytes, line 261
261B,position:se,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:ie,toasts:C.filter(ye=>ye.position==H.position),heights:j.filter(ye=>ye.position==H.position),setHeights:D,expandByDefault:i,gap:w,loadingIcon:m,expanded:G,pauseWhenPageIsHidden:S,swipeDirections:t.swipeDirections})})):null}))});const WP=({...t})=>{const{theme:e="system"}=gP();return d.jsx(zP,{theme:e,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"}},...t})};var HP=ip[" useId ".trim().toString()]||(()=>{}),qP=0;function eo(t){const[e,r]=x.useState(HP());return yt(()=>{r(n=>n??String(qP++))},[t]),e?`radix-${e}`:""}const KP=["top","right","bottom","left"],vs=Math.min,Kt=Math.max,Qc=Math.round,Bl=Math.floor,nn=t=>({x:t,y:t}),GP={left:"right",right:"left",bottom:"top",top:"bottom"},YP={start:"end",end:"start"};function mh(t,e,r){return Kt(t,vs(e,r))}function Cn(t,e){return typeof t=="function"?t(e):t}function Tn(t){return t.split("-")[0]}function $o(t){return t.split("-")[1]}function em(t){return t==="x"?"y":"x"}function tm(t){return t==="y"?"height":"width"}const QP=new Set(["top","bottom"]);function Xr(t){return QP.has(Tn(t))?"y":"x"}function rm(t){return em(Xr(t))}function JP(t,e,r){r===void 0&&(r=!1);const n=$o(t),s=rm(t),i=tm(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Jc(o)),[o,Jc(o)]}function ZP(t){const e=Jc(t);return[gh(t),e,gh(e)]}function gh(t){return t.replace(/start|end/g,e=>YP[e])}const vv=["left","right"],yv=["right","left"],XP=["top","bottom"],eN=["bottom","top"];function tN(t,e,r){switch(t){case"top":case"bottom":return r?e?yv:vv:e?vv:yv;case"left":case"right":return e?XP:eN;default:return[]}}function rN(t,e,r,n){const s=$o(t);let i=tN(Tn(t),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(gh)))),i}function Jc(t){return t.replace(/left|right|bottom|top/g,e=>GP[e])}function nN(t){return{top:0,right:0,bottom:0,left:0,...t}}function bb(t){return typeof t!="number"?nN(t):{top:t,right:t,bottom:t,left:t}}function Zc(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function wv(t,e,r){let{reference:n,floating:s}=t;const i=Xr(e),o=rm(e),a=tm(o),l=Tn(e),c=i==="y",u=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,h=n[a]/2-s[a]/2;let p;switch(l){case"top":p={x:u,y:n.y-s.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-s.width,y:f};break;default:p={x:n.x,y:n.y}}switch($o(e)){case"start":p[o]-=h*(r&&c?-1:1);break;case"end":p[o]+=h*(r&&c?-1:1);break}return p}const sN=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:f}=wv(c,n,l),h=n,p={},b=0;for(let g=0;g<a.length;g++){const{name:y,fn:w}=a[g],{x:m,y:v,data:_,reset:S}=await w({x:u,y:f,initialPlacement:n,placement:h,strategy:s,middlewareData:p,rects:c,platform:o,elements:{reference:t,floating:e}});u=m??u,f=v??f,p={...p,[y]:{...p[y],..._}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:u,y:f}=wv(c,h,l)),g=-1)}return{x:u,y:f,placement:h,strategy:s,middlewareData:p}};async function Va(t,e){var r;e===void 0&&(e={});const{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=Cn(e,t),b=bb(p),y=a[h?f==="floating"?"reference":"floating":f],w=Zc(await i.getClippingRect
vendor: 16,364 bytes, line 261
261({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),m=f==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=Zc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:v,strategy:l}):m);return{top:(w.top-S.top+b.top)/_.y,bottom:(S.bottom-w.bottom+b.bottom)/_.y,left:(w.left-S.left+b.left)/_.x,right:(S.right-w.right+b.right)/_.x}}const iN=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=Cn(t,e)||{};if(c==null)return{};const f=bb(u),h={x:r,y:n},p=rm(s),b=tm(p),g=await o.getDimensions(c),y=p==="y",w=y?"top":"left",m=y?"bottom":"right",v=y?"clientHeight":"clientWidth",_=i.reference[b]+i.reference[p]-h[p]-i.floating[b],S=h[p]-i.reference[p],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let k=C?C[v]:0;(!k||!await(o.isElement==null?void 0:o.isElement(C)))&&(k=a.floating[v]||i.floating[b]);const P=_/2-S/2,j=k/2-g[b]/2-1,D=vs(f[w],j),G=vs(f[m],j),M=D,B=k-g[b]-G,$=k/2-g[b]/2+P,ee=mh(M,$,B),K=!l.arrow&&$o(s)!=null&&$!==ee&&i.reference[b]/2-($<M?D:G)-g[b]/2<0,X=K?$<M?$-M:$-B:0;return{[p]:h[p]+X,data:{[p]:ee,centerOffset:$-ee-X,...K&&{alignmentOffset:X}},reset:K}}}),oN=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...y}=Cn(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const w=Tn(s),m=Xr(a),v=Tn(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=h||(v||!g?[Jc(a)]:ZP(a)),C=b!=="none";!h&&C&&S.push(...rN(a,g,b,_));const k=[a,...S],P=await Va(e,y),j=[];let D=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&j.push(P[w]),f){const $=JP(s,o,_);j.push(P[$[0]],P[$[1]])}if(D=[...D,{placement:s,overflows:j}],!j.every($=>$<=0)){var G,M;const $=(((G=i.flip)==null?void 0:G.index)||0)+1,ee=k[$];if(ee&&(!(f==="alignment"?m!==Xr(ee):!1)||D.every(N=>N.overflows[0]>0&&Xr(N.placement)===m)))return{data:{index:$,overflows:D},reset:{placement:ee}};let K=(M=D.filter(X=>X.overflows[0]<=0).sort((X,N)=>X.overflows[1]-N.overflows[1])[0])==null?void 0:M.placement;if(!K)switch(p){case"bestFit":{var B;const X=(B=D.filter(N=>{if(C){const R=Xr(N.placement);return R===m||R==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(R=>R>0).reduce((R,z)=>R+z,0)]).sort((N,R)=>N[1]-R[1])[0])==null?void 0:B[0];X&&(K=X);break}case"initialPlacement":K=a;break}if(s!==K)return{reset:{placement:K}}}return{}}}};function xv(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function bv(t){return KP.some(e=>t[e]>=0)}const aN=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...s}=Cn(t,e);switch(n){case"referenceHidden":{const i=await Va(e,{...s,elementContext:"reference"}),o=xv(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:bv(o)}}}case"escaped":{const i=await Va(e,{...s,altBoundary:!0}),o=xv(i,r.floating);return{data:{escapedOffsets:o,escaped:bv(o)}}}default:return{}}}}},_b=new Set(["left","top"]);async function lN(t,e){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=Tn(r),a=$o(r),l=Xr(r)==="y",c=_b.has(o)?-1:1,u=i&&l?-1:1,f=Cn(e,t);let{mainAxis:h,crossAxis:p,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof b=="number"&&(p=a==="end"?b*-1:b),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const cN=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=e,l=await lN(e,t);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},uN=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:y=>{let{x:w,y:m}=y;return{x:w,y:m}}},...l}=Cn(t,e),c={x:r,y:n},u=await Va(e,l),f=Xr(Tn(s)),h=em(f);let p=c[h],b=c[f];if(i){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",m=p+u[y],v=p-u[w];p=mh(m,p,v)}if(o){const y=f==="y"?"top":"left",w=f==="y"?"bottom":"right",m=b+u[y],v=b-u[w];b=mh(m,b,v)}const g=a.fn({...e,[h]:p,[f]:b});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:i,[f]:o}}}}}},dN=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Cn(t,e),u={x:r,y:n},f=Xr(s),h=em(f);let p=u[h],b=u[f];const g=Cn(a,e),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const v=h==="y"?"height":"width",_=i.reference[h]-i.floating[v]+y.mainAxis,S=i.reference[h]+i.reference[v]-y.mainAxis;p<_?p=_:p>S&&(p=S)}if(c){var w,m;const v=h==="y"?"width":"height",_=_b.has(Tn(s)),S=i.reference[f]-i.floating[v]+(_&&((w=o.offset)==null?void 0:w[f])||0)+(_?0:y.crossAxis),C=i.reference[f]+i.reference[v]+(_?0:((m=o.offset)==null?void 0:m[f])||0)-(_?y.crossAxis:0);b<S?b=S:b>C&&(b=C)}return{[h]:p,[f]:b}}}},fN=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:s,rects:i,platform:o,elements:a}=e,{apply:l=()=>{},...c}=Cn(t,e),u=await Va(e,c),f=Tn(s),h=$o(s),p=Xr(s)==="y",{width:b,height:g}=i.floating;let y,w;f==="top"||f==="bottom"?(y=f,w=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(w=f,y=h==="end"?"top":"bottom");const m=g-u.top-u.bottom,v=b-u.left-u.right,_=vs(g-u[y],m),S=vs(b-u[w],v),C=!e.middlewareData.shift;let k=_,P=S;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(P=v),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(k=m),C&&!h){const D=Kt(u.left,0),G=Kt(u.right,0),M=Kt(u.top,0),B=Kt(u.bottom,0);p?P=b-2*(D!==0||G!==0?D+G:Kt(u.left,u.right)):k=g-2*(M!==0||B!==0?M+B:Kt(u.top,u.bottom))}await l({...e,availableWidth:P,availableHeight:k});const j=await o.getDimensions(a.floating);return b!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function qu(){return typeof window<"u"}function Lo(t){return Sb(t)?(t.nodeName||"").toLowerCase():"#document"}function Jt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function an(t){var e;return(e=(Sb(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Sb(t){return qu()?t instanceof Node||t instanceof Jt(t).Node:!1}function Mr(t){return qu()?t instanceof Element||t instanceof Jt(t).Element:!1}function on(t){return qu()?t instanceof HTMLElement||t instanceof Jt(t).HTMLElement:!1}function _v(t){return!qu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Jt(t).ShadowRoot}const hN=new Set(["inline","contents"]);function ul(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=$r(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!hN.has(s)}const pN=new Set(["table","td","th"]);function mN(t){return pN.has(Lo(t))}const gN=[":popover-open",":modal"];function Ku(t){return gN.some(e=>{try{return t.matches(e)}catch{return!1}})}const vN=["transform","translate","scale","rotate","perspective"],yN=["transform","translate","scale","rotate","perspective","filter"],wN=["paint","layout","strict","content"];function nm(t){const e=sm(),r=Mr(t)?$r(t):t;return vN.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||yN.some(n=>(r.willChange||"").includes(n))||wN.some(n=>(r.contain||"").includes(n))}function xN(t){let e=ys(t);for(;on(e)&&!So(e);){if(nm(e))return e;if(Ku(e))return null;e=ys(e)}return null}function sm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bN=new Set(["html","body","#document"]);function So(t){return bN.has(Lo(t))}function $r(t){return Jt(t).getComputedStyle(t)}function Gu(t){return Mr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ys(t){if(Lo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||_v(t)&&t.host||an(t);return _v(e)?e.host:e}function Eb(t){const e=ys(t);return So(e)?t.ownerDocument?t.ownerDocument.body:t.body:on(e)&&ul(e)?e:Eb(e)}function za(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=Eb(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),o=Jt(s);if(i){const a=vh(o);return e.concat(o,o.visualViewport||[],ul(s)?s:[],a&&r?za(a):[])}return e.concat(s,za(s,[],r))}function vh(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function kb(t){const e=$r(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=on(t),i=s?t.offsetWidth:r,o=s?t.offsetHeight:n,a=Qc(r)!==i||Qc(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function im(t){return Mr(t)?t:t.contextElement}function to(t){const e=im(t);if(!on(e))return nn(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:i}=kb(e);let o=(i?Qc(r.width):r.width)/n,a=(i?Qc(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const _N=nn(0);function Cb(t){const e=Jt(t);return!sm()||!e.visualViewport?_N:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function SN(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Jt(t)?!1:e}function ai(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=im(t);let o=nn(1);e&&(n?Mr(n)&&(o=to(n)):o=to(t));const a=SN(i,r,n)?Cb(i):nn(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,f=s.height/o.y;if(i){const h=Jt(i),p=n&&Mr(n)?Jt(n):n;let b=h,g=vh(b);for(;g&&n&&p!==b;){const y=to(g),w=g.getBoundingClientRect(),m=$r(g),v=w.left+(g.clientLeft+parseFloat(m.paddingLeft))*y.x,_=w.top+(g.clientTop+parseFloat(m.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,f*=y.y,l+=v,c+=_,b=Jt(g),g=vh(b)}}return Zc({width:u,height:f,x:l,y:c})}function om(t,e){const r=Gu(t).scrollLeft;return e?e.left+r:ai(an(t)).left+r}function Tb(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),s=n.left+e.scrollLeft-(r?0:om(t,n)),i=n.top+e.scrollTop;return{x:s,y:i}}function EN(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",o=an(n),a=e?Ku(e.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=nn(1);const u=nn(0),f=on(n);if((f||!f&&!i)&&((Lo(n)!=="body"||ul(o))&&(l=Gu(n)),on(n))){const p=ai(n);c=to(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const h=o&&!f&&!i?Tb(o,l,!0):nn(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:r.y*c.y-l.scrollTop*c.y+u.y+h.y}}function kN(t){return Array.from(t.getClientRects())}function CN(t){const e=an(t),r=Gu(t),n=t.ownerDocument.body,s=Kt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Kt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+om(t);const a=-r.scrollTop;return $r(n).direction==="rtl"&&(o+=Kt(e.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}function TN(t,e){const r=Jt(t),n=an(t),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=sm();(!c||c&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const jN=new Set(["absolute","fixed"]);function PN(t,e){const r=ai(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=on(t)?to(t):nn(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=s*i.x,c=n*i.y;return{width:o,height:a,x:l,y:c}}function Sv(t,e,r){let n;if(e==="viewport")n=TN(t,r);else if(e==="document")n=CN(an(t));else if(Mr(e))n=PN(e,r);else{const s=Cb(t);n={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Zc(n)}function jb(t,e){const r=ys(t);return r===e||!Mr(r)||So(r)?!1:$r(r).position==="fixed"||jb(r,e)}function NN(t,e){const r=e.get(t);if(r)return r;let n=za(t,[],!1).filter(a=>Mr(a)&&Lo(a)!=="body"),s=null;const i=$r(t).position==="fixed";let o=i?ys(t):t;for(;Mr(o)&&!So(o);){const a=$r(o),l=nm(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&jN.has(s.position)||ul(o)&&!l&&jb(t,o))?n=n.filter(u=>u!==o):s=a,o=ys(o)}return e.set(t,n),n}function ON(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const o=[...r==="clippingAncestors"?Ku(e)?[]:NN(e,this._c):[].concat(r),n],a=o[0],l=o.reduce((c,u)=>{const f=Sv(e,u,s);return c.top=Kt(f.top,c.top),c.right=vs(f.right,c.right),c.bottom=vs(f.bottom,c.bottom),c.left=Kt(f.left,c.left),c},Sv(e,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function RN(t){const{width:e,height:r}=kb(t);return{width:e,height:r}}function AN(t,e,r){const n=on(e),s=an(e),i=r==="fixed",o=ai(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=nn(0);function c(){l.x=om(s)}if(n||!n&&!i)if((Lo(e)!=="body"||ul(s))&&(a=Gu(e)),n){const p=ai(e,!0,i,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else s&&c();i&&!n&&s&&c();const u=s&&!n&&!i?Tb(s,a):nn(0),f=o.left+a.scrollLeft-l.x-u.x,h=o.top+a.scrollTop-l.y-u.y;return{x:f,y:h,width:o.width,height:o.height}}function Qd(t){return $r(t).position==="static"}function Ev(t,e){if(!on(t)||$r(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return an(t)===r&&(r=r.ownerDocument.body),r}function Pb(t,e){const r=Jt(t);if(Ku(t))return r;if(!on(t)){let s=ys(t);for(;s&&!So(s);){if(Mr(s)&&!Qd(s))return s;s=ys(s)}return r}let n=Ev(t,e);for(;n&&mN(n)&&Qd(n);)n=Ev(n,e);return n&&So(n)&&Qd(n)&&!nm(n)?r:n||xN(t)||r}const IN=async function(t){const e=this.getOffsetParent||Pb,r=this.getDimensions,n=await r(t.floating);return{reference:AN(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function DN(t){return $r(t).direction==="rtl"}const MN={convertOffsetParentRelativeRectToViewportRelativeRect:EN,getDocumentElement:an,getClippingRect:ON,getOffsetParent:Pb,getElementRects:IN,getClientRects:kN,getDimensions:RN,getScale:to,isElement:Mr,isRTL:DN};function Nb(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function $N(t,e){let r=null,n;const s=an(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=t.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=c;if(a||e(),!h||!p)return;const b=Bl(f),g=Bl(s.clientWidth-(u+h)),y=Bl(s.clientHeight-(f+p)),w=Bl(u),v={rootMargin:-b+"px "+-g+"px "+-y+"px "+-w+"px",threshold:Kt(0,vs(1,l))||1};let _=!0;function S(C){const k=C[0].intersectionRatio;if(k!==l){if(!_)return o();k?o(!1,k):n=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!Nb(c,t.getBoundingClientRect())&&o(),_=!1}try{r=new IntersectionObserver(S,{...v,root:s.ownerDocument})}catch{r=new IntersectionObserver(S,v)}r.observe(t)}return o(!0),i}function LN(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=im(t),u=s||i?[...c?za(c):[],...za(e)]:[];u.forEach(w=>{s&&w.addEventListener("scroll",r,{passive:!0}),i&&w.addEventListener("resize",r)});const f=c&&a?$N(c,r):null;let h=-1,p=null;o&&(p=new ResizeObserver(w=>{let[m]=w;m&&m.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(e)})),r()}),c&&!l&&p.observe(c),p.observe(e));let b,g=l?ai(t):null;l&&y();function y(){const w=ai(t);g&&!Nb(g,w)&&r(),g=w,b=requestAnimationFrame(y)}return r(),()=>{var w;u.forEach(m=>{s&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),f==null||f(),(w=p)==null||w.disconnect(),p=null,l&&cancelAnimationFrame(b)}}const FN=cN,UN=uN,BN=oN,VN=fN,zN=aN,kv=iN,WN=dN,HN=(t,e,r)=>{const n=new Map,s={platform:MN,...r},i={...s.platform,_c:n};return sN(t,e,{...s,platform:i})};var qN=typeof document<"u",KN=function(){},gc=qN?x.useLayoutEffect:KN;function Xc(t,e){if(t===e)return!0;
vendor: 10,132 bytes, line 261
261if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Xc(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!Xc(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Ob(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Cv(t,e){const r=Ob(t);return Math.round(e*r)/r}function Jd(t){const e=x.useRef(t);return gc(()=>{e.current=t}),e}function GN(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[u,f]=x.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[h,p]=x.useState(n);Xc(h,n)||p(n);const[b,g]=x.useState(null),[y,w]=x.useState(null),m=x.useCallback(N=>{N!==C.current&&(C.current=N,g(N))},[]),v=x.useCallback(N=>{N!==k.current&&(k.current=N,w(N))},[]),_=i||b,S=o||y,C=x.useRef(null),k=x.useRef(null),P=x.useRef(u),j=l!=null,D=Jd(l),G=Jd(s),M=Jd(c),B=x.useCallback(()=>{if(!C.current||!k.current)return;const N={placement:e,strategy:r,middleware:h};G.current&&(N.platform=G.current),HN(C.current,k.current,N).then(R=>{const z={...R,isPositioned:M.current!==!1};$.current&&!Xc(P.current,z)&&(P.current=z,mi.flushSync(()=>{f(z)}))})},[h,e,r,G,M]);gc(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[c]);const $=x.useRef(!1);gc(()=>($.current=!0,()=>{$.current=!1}),[]),gc(()=>{if(_&&(C.current=_),S&&(k.current=S),_&&S){if(D.current)return D.current(_,S,B);B()}},[_,S,B,D,j]);const ee=x.useMemo(()=>({reference:C,floating:k,setReference:m,setFloating:v}),[m,v]),K=x.useMemo(()=>({reference:_,floating:S}),[_,S]),X=x.useMemo(()=>{const N={position:r,left:0,top:0};if(!K.floating)return N;const R=Cv(K.floating,u.x),z=Cv(K.floating,u.y);return a?{...N,transform:"translate("+R+"px, "+z+"px)",...Ob(K.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:R,top:z}},[r,a,K.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:B,refs:ee,elements:K,floatingStyles:X}),[u,B,ee,K,X])}const YN=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?kv({element:n.current,padding:s}).fn(r):{}:n?kv({element:n,padding:s}).fn(r):{}}}},QN=(t,e)=>({...FN(t),options:[t,e]}),JN=(t,e)=>({...UN(t),options:[t,e]}),ZN=(t,e)=>({...WN(t),options:[t,e]}),XN=(t,e)=>({...BN(t),options:[t,e]}),eO=(t,e)=>({...VN(t),options:[t,e]}),tO=(t,e)=>({...zN(t),options:[t,e]}),rO=(t,e)=>({...YN(t),options:[t,e]});var nO="Arrow",Rb=x.forwardRef((t,e)=>{const{children:r,width:n=10,height:s=5,...i}=t;return d.jsx(Se.svg,{...i,ref:e,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Rb.displayName=nO;var sO=Rb;function iO(t){const[e,r]=x.useState(void 0);return yt(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var am="Popper",[Ab,Yu]=Io(am),[oO,Ib]=Ab(am),Db=t=>{const{__scopePopper:e,children:r}=t,[n,s]=x.useState(null);return d.jsx(oO,{scope:e,anchor:n,onAnchorChange:s,children:r})};Db.displayName=am;var Mb="PopperAnchor",$b=x.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=Ib(Mb,r),o=x.useRef(null),a=Be(e,o);return x.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:d.jsx(Se.div,{...s,ref:a})});$b.displayName=Mb;var lm="PopperContent",[aO,lO]=Ab(lm),Lb=x.forwardRef((t,e)=>{var H,Ce,De,xe,ye,be;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:b,...g}=t,y=Ib(lm,r),[w,m]=x.useState(null),v=Be(e,ut=>m(ut)),[_,S]=x.useState(null),C=iO(_),k=(C==null?void 0:C.width)??0,P=(C==null?void 0:C.height)??0,j=n+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},G=Array.isArray(c)?c:[c],M=G.length>0,B={padding:D,boundary:G.filter(uO),altBoundary:M},{refs:$,floatingStyles:ee,placement:K,isPositioned:X,middlewareData:N}=GN({strategy:"fixed",placement:j,whileElementsMounted:(...ut)=>LN(...ut,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[QN({mainAxis:s+P,alignmentAxis:o}),l&&JN({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ZN():void 0,...B}),l&&XN({...B}),eO({...B,apply:({elements:ut,rects:Ct,availableWidth:Ur,availableHeight:Br})=>{const{width:ln,height:vi}=Ct.reference,cn=ut.floating.style;cn.setProperty("--radix-popper-available-width",`${Ur}px`),cn.setProperty("--radix-popper-available-height",`${Br}px`),cn.setProperty("--radix-popper-anchor-width",`${ln}px`),cn.setProperty("--radix-popper-anchor-height",`${vi}px`)}}),_&&rO({element:_,padding:a}),dO({arrowWidth:k,arrowHeight:P}),h&&tO({strategy:"referenceHidden",...B})]}),[R,z]=Bb(K),ie=Dr(b);yt(()=>{X&&(ie==null||ie())},[X,ie]);const se=(H=N.arrow)==null?void 0:H.x,le=(Ce=N.arrow)==null?void 0:Ce.y,ae=((De=N.arrow)==null?void 0:De.centerOffset)!==0,[Re,Ve]=x.useState();return yt(()=>{w&&Ve(window.getComputedStyle(w).zIndex)},[w]),d.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:X?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[(xe=N.transformOrigin)==null?void 0:xe.x,(ye=N.transformOrigin)==null?void 0:ye.y].join(" "),...((be=N.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:d.jsx(aO,{scope:r,placedSide:R,onArrowChange:S,arrowX:se,arrowY:le,shouldHideArrow:ae,children:d.jsx(Se.div,{"data-side":R,"data-align":z,...g,ref:v,style:{...g.style,animation:X?void 0:"none"}})})})});Lb.displayName=lm;var Fb="PopperArrow",cO={top:"bottom",right:"left",bottom:"top",left:"right"},Ub=x.forwardRef(function(e,r){const{__scopePopper:n,...s}=e,i=lO(Fb,n),o=cO[i.placedSide];return d.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:d.jsx(sO,{...s,ref:r,style:{...s.style,display:"block"}})})});Ub.displayName=Fb;function uO(t){return t!==null}var dO=t=>({name:"transformOrigin",options:t,fn(e){var y,w,m;const{placement:r,rects:n,middlewareData:s}=e,o=((y=s.arrow)==null?void 0:y.centerOffset)!==0,a=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[c,u]=Bb(r),f={start:"0%",center:"50%",end:"100%"}[u],h=(((w=s.arrow)==null?void 0:w.x)??0)+a/2,p=(((m=s.arrow)==null?void 0:m.y)??0)+l/2;let b="",g="";return c==="bottom"?(b=o?f:`${h}px`,g=`${-l}px`):c==="top"?(b=o?f:`${h}px`,g=`${n.floating.height+l}px`):c==="right"?(b=`${-l}px`,g=o?f:`${p}px`):c==="left"&&(b=`${n.floating.width+l}px`,g=o?f:`${p}px`),{data:{x:b,y:g}}}});function Bb(t){const[e,r="center"]=t.split("-");return[e,r]}var fO=Db,Vb=$b,zb=Lb,Wb=Ub,[Qu,L4]=Io("Tooltip",[Yu]),cm=Yu(),Hb="TooltipProvider",hO=700,Tv="tooltip.open",[pO,qb]=Qu(Hb),Kb=t=>{const{__scopeTooltip:e,delayDuration:r=hO,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=t,o=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),d.jsx(pO,{scope:e,isOpenDelayedRef:o,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};Kb.displayName=Hb;var Gb="Tooltip",[F4,Ju]=Qu(Gb),yh="TooltipTrigger",mO=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=Ju(yh,r),i=qb(yh,r),o=cm(r),a=x.useRef(null),l=Be(e,a,s.onTriggerChange),c=x.useRef(!1),u=x.useRef(!1),f=x.useCallback(()=>c.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.jsx(Vb,{asChild:!0,...o,children:d.jsx(Se.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:pe(t.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:pe(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:pe(t.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:pe(t.onFocus,()=>{c.current||s.onOpen()}),onBlur:pe(t.onBlur,s.onClose),onClick:pe(t.onClick,s.onClose)})})});mO.displayName=yh;var gO="TooltipPortal",[U4,vO]=Qu(gO,{forceMount:void 0}),Eo="TooltipContent",Yb=x.forwardRef((t,e)=>{const r=vO(Eo,t.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=t,o=Ju(Eo,t.__scopeTooltip);return d.jsx(Do,{present:n||o.open,children:o.disableHoverableContent?d.jsx(Qb,{side:s,...i,ref:e}):d.jsx(yO,{side:s,...i,ref:e})})}),yO=x.forwardRef((t,e)=>{const r=Ju(Eo,t.__scopeTooltip),n=qb(Eo,t.__scopeTooltip),s=x.useRef(null),i=Be(e,s),[o,a]=x.useState(null),{trigger:l,onClose:c}=r,u=s.current,{onPointerInTransitChange:f}=n,h=x.useCallback(()=>{a(null),f(!1)},[f]),p=x.useCallback((b,g)=>{const y=b.currentTarget,w={x:b.clientX,y:b.clientY}
261,m=SO(w,y.getBoundingClientRect()),v=EO(w,m),_=kO(g.getBoundingClientRect()),S=TO([...v,..._]);a(S),f(!0)},[f]);return x.useEffect(()=>()=>h(),[h]),x.useEffect(()=>{if(l&&u){const b=y=>p(y,u),g=y=>p(y,l);return l.addEventListener("pointerleave",b),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",g)}}},[l,u,p,h]),x.useEffect(()=>{if(o){const b=g=>{const y=g.target,w={x:g.clientX,y:g.clientY},m=(l==null?void 0:l.contains(y))||(u==null?void 0:u.contains(y)),v=!CO(w,o);m?h():v&&(h(),c())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,u,o,c,h]),d.jsx(Qb,{...t,ref:i})}),[wO,xO]=Qu(Gb,{isInside:!1}),bO=mT("TooltipContent"),Qb=x.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,l=Ju(Eo,r),c=cm(r),{onClose:u}=l;return x.useEffect(()=>(document.addEventListener(Tv,u),()=>document.removeEventListener(Tv,u)),[u]),x.useEffect(()=>{if(l.trigger){const f=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),d.jsx(ll,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:d.jsxs(zb,{"data-state":l.stateAttribute,...c,...a,ref:e,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:[d.jsx(bO,{children:n}),d.jsx(wO,{scope:r,isInside:!0,children:d.jsx($T,{id:l.contentId,role:"tooltip",children:s||n})})]})})});Yb.displayName=Eo;var Jb="TooltipArrow",_O=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=cm(r);return xO(Jb,r).isInside?null:d.jsx(Wb,{...s,...n,ref:e})});_O.displayName=Jb;function SO(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function EO(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function kO(t){const{top:e,right:r,bottom:n,left:s}=t;return[{x:s,y:e},{x:r,y:e},{x:r,y:n},{x:s,y:n}]}function CO(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const a=e[i],l=e[o],c=a.x,u=a.y,f=l.x,h=l.y;u>n!=h>n&&r<(f-c)*(n-u)/(h-u)+c&&(s=!s)}return s}function TO(t){const e=t.slice();return e.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),jO(e)}function jO(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const s=t[n];for(;e.length>=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const s=t[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var PO=Kb,Zb=Yb;const NO=PO,OO=x.forwardRef(({className:t,sideOffset:e=4,...r},n)=>d.jsx(Zb,{ref:n,sideOffset:e,className:_e("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",t),...r}));OO.displayName=Zb.displayName;var Zu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xu=typeof window>"u"||"Deno"in globalThis;function br(){}function RO(t,e){return typeof t=="function"?t(e):t}function AO(t){return typeof t=="number"&&t>=0&&t!==1/0}function IO(t,e){return Math.max(t+(e||0)-Date.now(),0)}function wh(t,e){return typeof t=="function"?t(e):t}function DO(t,e){return typeof t=="function"?t(e):t}function jv(t,e){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:a}=t;if(o){if(n){if(e.queryHash!==um(o,e.options))return!1}else if(!Ha(e.queryKey,o))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||i&&!i(e))}function Pv(t,e){const{exact:r,status:n,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(r){if(Wa(e.options.mutationKey)!==Wa(i))return!1}else if(!Ha(e.options.mutationKey,i))return!1}return!(n&&e.state.status!==n||s&&!s(e))}function um(t,e){return((e==null?void 0:e.queryKeyHashFn)||Wa)(t)}function Wa(t){return JSON.stringify(t,(e,r)=>xh(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Ha(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>Ha(t[r],e[r])):!1}function Xb(t,e){if(t===e)return t;const r=Nv(t)&&Nv(e);if(r||xh(t)&&xh(e)){const n=r?t:Object.keys(t),s=n.length,i=r?e:Object.keys(e),o=i.length,a=r?[]:{},l=new Set(n);let c=0;for(let u=0;u<o;u++){const f=r?u:i[u];(!r&&l.has(f)||r)&&t[f]===void 0&&e[f]===void 0?(a[f]=void 0,c++):(a[f]=Xb(t[f],e[f]),a[f]===t[f]&&t[f]!==void 0&&c++)}return s===o&&c===s?t:a}return e}function Nv(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function xh(t){if(!Ov(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!Ov(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Ov(t){return Object.prototype.toString.call(t)==="[object Object]"}function MO(t){return new Promise(e=>{setTimeout(e,t)})}function $O(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?Xb(t,e):e}function LO(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function FO(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var dm=Symbol();function e_(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===dm?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Ks,Jn,oo,s0,UO=(s0=class extends Zu{constructor(){super();Te(this,Ks);Te(this,Jn);Te(this,oo);fe(this,oo,e=>{if(!Xu&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){I(this,Jn)||this.setEventListener(I(this,oo))}onUnsubscribe(){var e;this.hasListeners()||((e=I(this,Jn))==null||e.call(this),fe(this,Jn,void 0))}setEventListener(e){var r;fe(this,oo,e),(r=I(this,Jn))==null||r.call(this),fe(this,Jn,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){I(this,Ks)!==e&&(fe(this,Ks,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,924 bytes, line 261
261this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof I(this,Ks)=="boolean"?I(this,Ks):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ks=new WeakMap,Jn=new WeakMap,oo=new WeakMap,s0),t_=new UO,ao,Zn,lo,i0,BO=(i0=class extends Zu{constructor(){super();Te(this,ao,!0);Te(this,Zn);Te(this,lo);fe(this,lo,e=>{if(!Xu&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){I(this,Zn)||this.setEventListener(I(this,lo))}onUnsubscribe(){var e;this.hasListeners()||((e=I(this,Zn))==null||e.call(this),fe(this,Zn,void 0))}setEventListener(e){var r;fe(this,lo,e),(r=I(this,Zn))==null||r.call(this),fe(this,Zn,e(this.setOnline.bind(this)))}setOnline(e){I(this,ao)!==e&&(fe(this,ao,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return I(this,ao)}},ao=new WeakMap,Zn=new WeakMap,lo=new WeakMap,i0),eu=new BO;function VO(){let t,e;const r=new Promise((s,i)=>{t=s,e=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),t(s)},r.reject=s=>{n({status:"rejected",reason:s}),e(s)},r}function zO(t){return Math.min(1e3*2**t,3e4)}function r_(t){return(t??"online")==="online"?eu.isOnline():!0}var n_=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Zd(t){return t instanceof n_}function s_(t){let e=!1,r=0,n=!1,s;const i=VO(),o=g=>{var y;n||(h(new n_(g)),(y=t.abort)==null||y.call(t))},a=()=>{e=!0},l=()=>{e=!1},c=()=>t_.isFocused()&&(t.networkMode==="always"||eu.isOnline())&&t.canRun(),u=()=>r_(t.networkMode)&&t.canRun(),f=g=>{var y;n||(n=!0,(y=t.onSuccess)==null||y.call(t,g),s==null||s(),i.resolve(g))},h=g=>{var y;n||(n=!0,(y=t.onError)==null||y.call(t,g),s==null||s(),i.reject(g))},p=()=>new Promise(g=>{var y;s=w=>{(n||c())&&g(w)},(y=t.onPause)==null||y.call(t)}).then(()=>{var g;s=void 0,n||(g=t.onContinue)==null||g.call(t)}),b=()=>{if(n)return;let g;const y=r===0?t.initialPromise:void 0;try{g=y??t.fn()}catch(w){g=Promise.reject(w)}Promise.resolve(g).then(f).catch(w=>{var C;if(n)return;const m=t.retry??(Xu?0:3),v=t.retryDelay??zO,_=typeof v=="function"?v(r,w):v,S=m===!0||typeof m=="number"&&r<m||typeof m=="function"&&m(r,w);if(e||!S){h(w);return}r++,(C=t.onFail)==null||C.call(t,r,w),MO(_).then(()=>c()?void 0:p()).then(()=>{e?h(w):b()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?b():p().then(b),i)}}var WO=t=>setTimeout(t,0);function HO(){let t=[],e=0,r=a=>{a()},n=a=>{a()},s=WO;const i=a=>{e?t.push(a):s(()=>{r(a)})},o=()=>{const a=t;t=[],a.length&&s(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var Nt=HO(),Gs,o0,i_=(o0=class{constructor(){Te(this,Gs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),AO(this.gcTime)&&fe(this,Gs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Xu?1/0:5*60*1e3))}clearGcTimeout(){I(this,Gs)&&(clearTimeout(I(this,Gs)),fe(this,Gs,void 0))}},Gs=new WeakMap,o0),co,Ys,rr,Qs,_t,el,Js,Sr,pn,a0,qO=(a0=class extends i_{constructor(e){super();Te(this,Sr);Te(this,co);Te(this,Ys);Te(this,rr);Te(this,Qs);Te(this,_t);Te(this,el);Te(this,Js);fe(this,Js,!1),fe(this,el,e.defaultOptions),this.setOptions(e.options),this.observers=[],fe(this,Qs,e.client),fe(this,rr,I(this,Qs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,fe(this,co,GO(this.options)),this.state=e.state??I(this,co),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=I(this,_t))==null?void 0:e.promise}setOptions(e){this.options={...I(this,el),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&I(this,rr).remove(this)}setData(e,r){const n=$O(this.state.data,e,this.options);return wt(this,Sr,pn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){wt(this,Sr,pn).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,s;const r=(n=I(this,_t))==null?void 0:n.promise;return(s=I(this,_t))==null||s.cancel(e),r?r.then(br).catch(br):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,co))}isActive(){return this.observers.some(e=>DO(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dm||this.state.dataUpdateCount+this.state.errorUpdate
261Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>wh(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!IO(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=I(this,_t))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=I(this,_t))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),I(this,rr).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(I(this,_t)&&(I(this,Js)?I(this,_t).cancel({revert:!0}):I(this,_t).cancelRetry()),this.scheduleGc()),I(this,rr).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||wt(this,Sr,pn).call(this,{type:"invalidate"})}fetch(e,r){var c,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(I(this,_t))return I(this,_t).continueRetry(),I(this,_t).promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(fe(this,Js,!0),n.signal)})},i=()=>{const h=e_(this.options,r),b=(()=>{const g={client:I(this,Qs),queryKey:this.queryKey,meta:this.meta};return s(g),g})();return fe(this,Js,!1),this.options.persister?this.options.persister(h,b,this):h(b)},a=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:I(this,Qs),state:this.state,fetchFn:i};return s(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),fe(this,Ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&wt(this,Sr,pn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var p,b,g,y;Zd(h)&&h.silent||wt(this,Sr,pn).call(this,{type:"error",error:h}),Zd(h)||((b=(p=I(this,rr).config).onError)==null||b.call(p,h,this),(y=(g=I(this,rr).config).onSettled)==null||y.call(g,this.state.data,h,this)),this.scheduleGc()};return fe(this,_t,s_({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var p,b,g,y;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(w){l(w);return}(b=(p=I(this,rr).config).onSuccess)==null||b.call(p,h,this),(y=(g=I(this,rr).config).onSettled)==null||y.call(g,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,p)=>{wt(this,Sr,pn).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{wt(this,Sr,pn).call(this,{type:"pause"})},onContinue:()=>{wt(this,Sr,pn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),I(this,_t).start()}},co=new WeakMap,Ys=new WeakMap,rr=new WeakMap,Qs=new WeakMap,_t=new WeakMap,el=new WeakMap,Js=new WeakMap,Sr=new WeakSet,pn=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...KO(n.data,this.options),fetchMeta:e.meta??null};case"success":return fe(this,Ys,void 0),{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return Zd(s)&&s.revert&&I(this,Ys)?{...I(this,Ys),fetchStatus:"idle"}
vendor: 5,105 bytes, line 261
261:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),Nt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),I(this,rr).notify({query:this,type:"updated",action:e})})},a0);function KO(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:r_(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function GO(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Kr,l0,YO=(l0=class extends Zu{constructor(e={}){super();Te(this,Kr);this.config=e,fe(this,Kr,new Map)}build(e,r,n){const s=r.queryKey,i=r.queryHash??um(s,r);let o=this.get(i);return o||(o=new qO({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){I(this,Kr).has(e.queryHash)||(I(this,Kr).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=I(this,Kr).get(e.queryHash);r&&(e.destroy(),r===e&&I(this,Kr).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Nt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return I(this,Kr).get(e)}getAll(){return[...I(this,Kr).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(n=>jv(r,n))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(n=>jv(e,n)):r}notify(e){Nt.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){Nt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Nt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Kr=new WeakMap,l0),Gr,Tt,Zs,Yr,Ln,c0,QO=(c0=class extends i_{constructor(e){super();Te(this,Yr);Te(this,Gr);Te(this,Tt);Te(this,Zs);this.mutationId=e.mutationId,fe(this,Tt,e.mutationCache),fe(this,Gr,[]),this.state=e.state||JO(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){I(this,Gr).includes(e)||(I(this,Gr).push(e),this.clearGcTimeout(),I(this,Tt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){fe(this,Gr,I(this,Gr).filter(r=>r!==e)),this.scheduleGc(),I(this,Tt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){I(this,Gr).length||(this.state.status==="pending"?this.scheduleGc():I(this,Tt).remove(this))}continue(){var e;return((e=I(this,Zs))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,o,a,l,c,u,f,h,p,b,g,y,w,m,v,_,S,C,k,P;const r=()=>{wt(this,Yr,Ln).call(this,{type:"continue"})};fe(this,Zs,s_({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(j,D)=>{wt(this,Yr,Ln).call(this,{type:"failed",failureCount:j,error:D})},onPause:()=>{wt(this,Yr,Ln).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>I(this,Tt).canRun(this)}));const n=this.state.status==="pending",s=!I(this,Zs).canStart();try{if(n)r();else{wt(this,Yr,Ln).call(this,{type:"pending",variables:e,isPaused:s}),await((o=(i=I(this,Tt).config).onMutate)==null?void 0:o.call(i,e,this));const D=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));D!==this.state.context&&wt(this,Yr,Ln).call(this,{type:"pending",context:D,variables:e,isPaused:s})}const j=await I(this,Zs).start();return await((u=(c=I(this,Tt).config).onSuccess)==null?void 0:u.call(c,j,e,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,j,e,this.state.context)),await((b=(p=I(this,Tt).config).onSettled)==null?void 0:b.call(p,j,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,j,null,e,this.state.context)),wt(this,Yr,Ln).call(this,{type:"success",data:j}),j}catch(j){try{throw await((m=(w=I(this,Tt).config).onError)==null?void 0:m.call(w,j,e,this.state.context,this)),await((_=(v=this.options).onError)==null?void 0:_.call(v,j,e,this.state.context)),await((C=(S=I(this,Tt).config).onSettled)==null?void 0:C.call(S,void 0,j,this.state.variables,this.state.context,this)),await((P=(k=this.options).onSettled)==null?void 0:P.call(k,void 0,j,e,this.state.context)),j}finally{wt(this,Yr,Ln).call(this,{type:"error",error:j})}}finally{I(this,Tt).runNext(this)}}},Gr=new WeakMap,Tt=new WeakMap,Zs=new WeakMap,Yr=new WeakSet,Ln=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
261case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Nt.batch(()=>{I(this,Gr).forEach(n=>{n.onMutationUpdate(e)}),I(this,Tt).notify({mutation:this,type:"updated",action:e})})},c0);function JO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,Er,tl,u0,ZO=(u0=class extends Zu{constructor(e={}){super();Te(this,vn);Te(this,Er);Te(this,tl);this.config=e,fe(this,vn,new Set),fe(this,Er,new Map),fe(this,tl,0)}build(e,r,n){const s=new QO({mutationCache:this,mutationId:++xl(this,tl)._,options:e.defaultMutationOptions(r),state:n});return this.add(s),s}add(e){I(this,vn).add(e);const r=Vl(e);if(typeof r=="string"){const n=I(this,Er).get(r);n?n.push(e):I(this,Er).set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(I(this,vn).delete(e)){const r=Vl(e);if(typeof r=="string"){const n=I(this,Er).get(r);if(n)if(n.length>1){const s=n.indexOf(e);s!==-1&&n.splice(s,1)}else n[0]===e&&I(this,Er).delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=Vl(e);if(typeof r=="string"){const n=I(this,Er).get(r),s=n==null?void 0:n.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){var n;const r=Vl(e);if(typeof r=="string"){const s=(n=I(this,Er).get(r))==null?void 0:n.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Nt.batch(()=>{I(this,vn).forEach(e=>{this.notify({type:"removed",mutation:e})}),I(this,vn).clear(),I(this,Er).clear()})}getAll(){return Array.from(I(this,vn))}find(e){const r={exact:!0,...e};return this.getAll().find(n=>Pv(r,n))}findAll(e={}){return this.getAll().filter(r=>Pv(e,r))}notify(e){Nt.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>
vendor: 4,438 bytes, line 261
261r.state.isPaused);return Nt.batch(()=>Promise.all(e.map(r=>r.continue().catch(br))))}},vn=new WeakMap,Er=new WeakMap,tl=new WeakMap,u0);function Vl(t){var e;return(e=t.options.scope)==null?void 0:e.id}function Rv(t){return{onFetch:(e,r)=>{var u,f,h,p,b;const n=e.options,s=(h=(f=(u=e.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((p=e.state.data)==null?void 0:p.pages)||[],o=((b=e.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const y=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(e.signal.aborted?g=!0:e.signal.addEventListener("abort",()=>{g=!0}),e.signal)})},w=e_(e.options,e.fetchOptions),m=async(v,_,S)=>{if(g)return Promise.reject();if(_==null&&v.pages.length)return Promise.resolve(v);const k=(()=>{const G={client:e.client,queryKey:e.queryKey,pageParam:_,direction:S?"backward":"forward",meta:e.options.meta};return y(G),G})(),P=await w(k),{maxPages:j}=e.options,D=S?FO:LO;return{pages:D(v.pages,P,j),pageParams:D(v.pageParams,_,j)}};if(s&&i.length){const v=s==="backward",_=v?XO:Av,S={pages:i,pageParams:o},C=_(n,S);a=await m(S,C,v)}else{const v=t??i.length;do{const _=l===0?o[0]??n.initialPageParam:Av(n,a);if(l>0&&_==null)break;a=await m(a,_),l++}while(l<v)}return a};e.options.persister?e.fetchFn=()=>{var g,y;return(y=(g=e.options).persister)==null?void 0:y.call(g,c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=c}}}function Av(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function XO(t,{pages:e,pageParams:r}){var n;return e.length>0?(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r):void 0}var Qe,Xn,es,uo,fo,ts,ho,po,d0,eR=(d0=class{constructor(t={}){Te(this,Qe);Te(this,Xn);Te(this,es);Te(this,uo);Te(this,fo);Te(this,ts);Te(this,ho);Te(this,po);fe(this,Qe,t.queryCache||new YO),fe(this,Xn,t.mutationCache||new ZO),fe(this,es,t.defaultOptions||{}),fe(this,uo,new Map),fe(this,fo,new Map),fe(this,ts,0)}mount(){xl(this,ts)._++,I(this,ts)===1&&(fe(this,ho,t_.subscribe(async t=>{t&&(await this.resumePausedMutations(),I(this,Qe).onFocus())})),fe(this,po,eu.subscribe(async t=>{t&&(await this.resumePausedMutations(),I(this,Qe).onOnline())})))}unmount(){var t,e;xl(this,ts)._--,I(this,ts)===0&&((t=I(this,ho))==null||t.call(this),fe(this,ho,void 0),(e=I(this,po))==null||e.call(this),fe(this,po,void 0))}isFetching(t){return I(this,Qe).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return I(this,Xn).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=I(this,Qe).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=I(this,Qe).build(this,e),n=r.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(wh(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return I(this,Qe).findAll(t).map(({queryKey:e,state:r})=>{const n=r.data;return[e,n]})}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),s=I(this,Qe).get(n.queryHash),i=s==null?void 0:s.state.data,o=RO(e,i);if(o!==void 0)return I(this,Qe).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(t,e,r){return Nt.batch(()=>I(this,Qe).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=I(this,Qe).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=I(this,Qe);Nt.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=I(this,Qe);return Nt.batch(()=>(r.findAll(t).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},n=Nt.batch(()=>I(this,Qe).findAll(t).map(s=>s.cancel(r)));return Promise.all(n).then(br).catch(br)}invalidateQueries(t,e={}){return Nt.batch(()=>(I(this,Qe).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},n=Nt.batch(()=>I(this,Qe).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(br)),s.state.fetchStatus==="paused"?Promise.resolve():i}
261));return Promise.all(n).then(br)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=I(this,Qe).build(this,e);return r.isStaleByTime(wh(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(br).catch(br)}fetchInfiniteQuery(t){return t.behavior=Rv(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(br).catch(br)}ensureInfiniteQueryData(t){return t.behavior=Rv(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return eu.isOnline()?I(this,Xn).resumePausedMutations():Promise.resolve()}getQueryCache(){return I(this,Qe)}getMutationCache(){return I(this,Xn)}getDefaultOptions(){return I(this,es)}setDefaultOptions(t){fe(this,es,t)}setQueryDefaults(t,e){I(this,uo).set(Wa(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...I(this,uo).values()],r={};return e.forEach(n=>{Ha(t,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(t,e){I(this,fo).set(Wa(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...I(this,fo).values()],r={};return e.forEach(n=>{Ha(t,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...I(this,es).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=um(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===dm&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...I(this,es).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){I(this,Qe).clear(),I(this,Xn).clear()}},Qe=new WeakMap,Xn=new WeakMap,es=new WeakMap,uo=new WeakMap,fo=new WeakMap,ts=new WeakMap,ho=new WeakMap,po=new WeakMap,d0),tR=x.createContext(void 0),rR=({client:t,children:e})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),d.jsx(tR.Provider,{value:t,children:e}));/** 262 * @remix-run/router v1.23.0 263 * 264 * Copyright (c) Remix Software Inc. 265 * 266 * This source code is licensed under the MIT license found in the 267 * LICENSE.md file in the root directory of this source tree. 268 * 269 * @license MIT 270 */function qa(){return qa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qa.apply(this,arguments)}var ss;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(ss||(ss={}));const Iv="popstate";function nR(t){t===void 0&&(t={});function e(n,s){let{pathname:i,search:o,hash:a}=n.location;return bh("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:a_(s)}return iR(e,r,null,t)}function ot(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function o_(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function sR(){return Math.random().toString(36).substr(2,8)}function Dv(t,e){return{usr:t.state,key:t.key,idx:e}}function bh(t,e,r,n){return r===void 0&&(r=null),qa({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Fo(e):e,{state:r,key:e&&e.key||n||sR()})}function a_(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Fo(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function iR(t,e,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:i=!1}=n,o=s.history,a=ss.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(qa({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){a=ss.Pop;let y=u(),w=y==null?null:y-c;c=y,l&&l({action:a,location:g.location,delta:w})}function h(y,w){a=ss.Push;let m=bh(g.location,y,w);c=u()+1;let v=Dv(m,c),_=g.createHref(m);try{o.pushState(v,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(_)}i&&l&&l({action:a,location:g.location,delta:1})}function p(y,w){a=ss.Replace;let m=bh(g.location,y,w);c=u();let v=Dv(m,c),_=g.createHref(m);o.replaceState(v,"",_),i&&l&&l({action:a,location:g.location,delta:0})}function b(y){let w=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof y=="string"?y:a_(y);return m=m.replace(/ $/,"%20"),ot(w,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,w)}let g={get action(){return a},get location(){return t(s,o)},listen(y){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Iv,f),l=y,()=>{s.removeEventListener(Iv,f),l=null}},createHref(y){return e(s,y)},createURL:b,encodeLocation(y){let w=b(y);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:p,go(y){return o.go(y)}};return g}var Mv;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Mv||(Mv={}));function oR(t,e,r){return r===void 0&&(r="/"),aR(t,e,r,!1)}function aR(t,e,r,n){let s=typeof e=="string"?Fo(e):e,i=u_(s.pathname||"/",r);if(i==null)return null;let o=l_(t);lR(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=wR(i);a=vR(o[l],c,n)}return a}function l_(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(ot(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not val
270id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=ti([n,l.relativePath]),u=r.concat(l);i.children&&i.children.length>0&&(ot(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),l_(i.children,e,u,c)),!(i.path==null&&!i.index)&&e.push({path:c,score:mR(c,i.index),routesMeta:u})};return t.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of c_(i.path))s(i,o,l)}),e}function c_(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let o=c_(n.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function lR(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:gR(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const cR=/^:[\w-]+$/,uR=3,dR=2,fR=1,hR=10,pR=-2,$v=t=>t==="*";function mR(t,e){let r=t.split("/"),n=r.length;return r.some($v)&&(n+=pR),e&&(n+=dR),r.filter(s=>!$v(s)).reduce((s,i)=>s+(cR.test(i)?uR:i===""?fR:hR),n)}function gR(t,e){return t.length===e.length&&t.slice(0,-1).every((n,s)=>n===e[s])?t[t.length-1]-e[e.length-1]:0}function vR(t,e,r){let{routesMeta:n}=t,s={},i="/",o=[];for(let a=0;a<n.length;++a){let l=n[a],c=a===n.length-1,u=i==="/"?e:e.slice(i.length)||"/",f=Lv({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!f&&c&&r&&!n[n.length-1].route.index&&(f=Lv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!f)return null;
vendor: 8,934 bytes, lines 270-279
270Object.assign(s,f.params),o.push({params:s,pathname:ti([i,f.pathname]),pathnameBase:SR(ti([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=ti([i,f.pathnameBase]))}return o}function Lv(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=yR(t.path,t.caseSensitive,t.end),s=e.match(r);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:n.reduce((c,u,f)=>{let{paramName:h,isOptional:p}=u;if(h==="*"){let g=a[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const b=a[f];return p&&!b?c[h]=void 0:c[h]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:t}}function yR(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),o_(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),n]}function wR(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return o_(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function u_(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function xR(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:s=""}=typeof t=="string"?Fo(t):t;return{pathname:r?r.startsWith("/")?r:bR(r,e):e,search:ER(n),hash:kR(s)}}function bR(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Xd(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function _R(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function d_(t,e){let r=_R(t);return e?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function f_(t,e,r,n){n===void 0&&(n=!1);let s;typeof t=="string"?s=Fo(t):(s=qa({},t),ot(!s.pathname||!s.pathname.includes("?"),Xd("?","pathname","search",s)),ot(!s.pathname||!s.pathname.includes("#"),Xd("#","pathname","hash",s)),ot(!s.search||!s.search.includes("#"),Xd("#","search","hash",s)));let i=t===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=r;else{let f=e.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?e[f]:"/"}let l=xR(s,a),c=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const ti=t=>t.join("/").replace(/\/\/+/g,"/"),SR=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),ER=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,kR=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function CR(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const h_=["post","put","patch","delete"];new Set(h_);const TR=["get",...h_];new Set(TR);/** 271 * React Router v6.30.1 272 * 273 * Copyright (c) Remix Software Inc. 274 * 275 * This source code is licensed under the MIT license found in the 276 * LICENSE.md file in the root directory of this source tree. 277 * 278 * @license MIT 279 */function Ka(){return Ka=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ka.apply(this,arguments)}const fm=x.createContext(null),jR=x.createContext(null),dl=x.createContext(null),ed=x.createContext(null),gi=x.createContext({outlet:null,matches:[],isDataRoute:!1}),p_=x.createContext(null);function fl(){return x.useContext(ed)!=null}function hl(){return fl()||ot(!1),x.useContext(ed).location}function m_(t){x.useContext(dl).static||x.useLayoutEffect(t)}function g_(){let{isDataRoute:t}=x.useContext(gi);return t?BR():PR()}function PR(){fl()||ot(!1);let t=x.useContext(fm),{basename:e,future:r,navigator:n}=x.useContext(dl),{matches:s}=x.useContext(gi),{pathname:i}=hl(),o=JSON.stringify(d_(s,r.v7_relativeSplatPath)),a=x.useRef(!1);return m_(()=>{a.current=!0}),x.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let f=f_(c,JSON.parse(o),i,u.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:ti([e,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[e,n,o,i,t])}function NR(t,e){return OR(t,e)}function OR(t,e,r,n){fl()||ot(!1);let{navigator:s}=x.useContext(dl),{matches:i}=x.useContext(gi),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=hl(),u;if(e){var f;let y=typeof e=="string"?Fo(e):e;l==="/"||(f=y.pathname)!=null&&f.startsWith(l)||ot(!1),u=y}else u=c;let h=u.pathname||"/",p=h;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=oR(t,{pathname:p}),g=MR(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:ti([l,s.encodeLocation?s.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:ti([l,s.encodeLocation?s.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n);return e&&g?x.createElement(ed.Provider,{value:{location:Ka({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ss.Pop}},g):g}function RR(){let t=UR(),e=CR(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.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 Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},e),r?x.createElement("pre",{style:s},r):null,null)}const AR=x.createElement(RR,null);class IR extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?x.createElement(gi.Provider,{value:this.props.routeContext},x.createElement(p_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DR(t){let{routeContext:e,match:r,children:n}=t,s=x.useContext(fm);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),x.createElement(gi.Provider,{value:e},n)}function MR(t,e,r,n){var s;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var i;if(!r)return null;if(r.errors)t=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,a=(s=r)==null?void 0:s.errors;if(a!=null){let u=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);u>=0||ot(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<o.length;u++){let f=o[u];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=u),f.route.id){let{loaderData:h,errors:p}=r,b=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||b){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,f,h)=>{let p,b=!1,g=null,y=null;r&&(p=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||AR,l&&(c<0&&h===0?(b=!0,y=null):c===h&&(b=!0,y=f.route.hydrateFallbackElement||null)));let w=e.concat(o.slice(0,h+1)),m=()=>{let v;return p?v=g:b?v=y:f.route.Component?v=x.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=u,x.createElement(DR,{match:f,routeContext:{outlet:u,matches:w,isDataRoute:r!=null},children:v})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement(IR,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:m(),routeC
279ontext:{outlet:null,matches:w,isDataRoute:!0}}):m()},null)}var v_=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(v_||{}),tu=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(tu||{});function $R(t){let e=x.useContext(fm);return e||ot(!1),e}function LR(t){let e=x.useContext(jR);return e||ot(!1),e}function FR(t){let e=x.useContext(gi);return e||ot(!1),e}function y_(t){let e=FR(),r=e.matches[e.matches.length-1];return r.route.id||ot(!1),r.route.id}function UR(){var t;let e=x.useContext(p_),r=LR(tu.UseRouteError),n=y_(tu.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function BR(){let{router:t}=$R(v_.UseNavigateStable),e=y_(tu.UseNavigateStable),r=x.useRef(!1);return m_(()=>{r.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),r.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,Ka({fromRouteId:e},i)))},[t,e])}function VR(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Fv(t){let{to:e,replace:r,state:n,relative:s}=t;fl()||ot(!1);let{future:i,static:o}=x.useContext(dl),{matches:a}=x.useContext(gi),{pathname:l}=hl(),c=g_(),u=f_(e,d_(a,i.v7_relativeSplatPath),l,s==="path"),f=JSON.stringify(u);return x.useEffect(()=>c(JSON.parse(f),{replace:r,state:n,relative:s}),[c,f,s,r,n]),null}function Ds(t){ot(!1)}function zR(t){let{basename:e="/",children:r=null,location:n,navigationType:s=ss.Pop,navigator:i,static:o=!1,future:a}=t;fl()&&ot(!1);let l=e.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:l,navigator:i,static:o,future:Ka({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof n=="string"&&(n=Fo(n));let{pathname:u="/",search:f="",hash:h="",state:p=null,key:b="default"}=n,g=x.useMemo(()=>{let y=u_(u,l);return y==null?null:{location:{pathname:y,search:f,hash:h,state:p,key:b},navigationType:s}},[l,u,f,h,p,b,s]);return g==null?null:x.createElement(dl.Provider,{value:c},x.createElement(ed.Provider,{children:r,value:g}))}function WR(t){let{children:e,location:r}=t;return NR(_h(e),r)}new Promise(()=>{});function _h(t,e){e===void 0&&(e=[]);let r=[];return x.Children.forEach(t,(n,s)=>{if(!x.isValidElement(n))return;let i=[...e,s];if(n.type===x.Fragment){r.push.apply(r,_h(n.props.children,i));return}n.type!==Ds&&ot(!1),!n.props.index||!n.props.children||ot(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=_h(n.props.children,i)),r.push(o)}),r}/** 280 * React Router DOM v6.30.1 281 * 282 * Copyright (c) Remix Software Inc. 283 * 284 * This source code is licensed under the MIT license found in the 285 * LICENSE.md file in the root directory of this source tree. 286 * 287 * @license MIT 288 */function Sh(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,r)=>{let n=t[r];return e.concat(Array.isArray(n)?n.map(s=>[r,s]):[[r,n]])},[]))}function HR(t,e){let r=Sh(t);return e&&e.forEach((n,s)=>{r.has(s)||e.getAll(s).forEach(i=>{r.append(s,i)})}),r}const qR="6";try{window.__reactRouterVersion=qR}catch{}const KR="startTransition",Uv=ip[KR];function GR(t){let{basename:e,children:r,future:n,window:s}=t,i=x.useRef();i.current==null&&(i.current=nR({window:s,v5Compat:!0}));let o=i.current,[a,l]=x.useState({action:o.action,location:o.location}),{v7_startTransition:c}=n||{},u=x.useCallback(f=>{c&&Uv?Uv(()=>l(f)):l(f)},[l,c]);return x.useLayoutEffect(()=>o.listen(u),[o,u]),x.useEffect(()=>
288VR(n),[n]),x.createElement(zR,{basename:e,children:r,location:a.location,navigationType:a.action,navigator:o,future:n})}var Bv;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Bv||(Bv={}));var Vv;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Vv||(Vv={}));function hm(t){let e=x.useRef(Sh(t)),r=x.useRef(!1),n=hl(),s=x.useMemo(()=>HR(n.search,r.current?null:e.current),[n.search]),i=g_(),o=x.useCallback((a,l)=>{const c=Sh(typeof a=="function"?a(s):a);r.current=!0,i("?"+c,l)},[i,s]);return[s,o]}const YR=Hu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),qe=x.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...s},i)=>{const o=n?jx:"button";return d.jsx(o,{className:_e(YR({variant:e,size:r,className:t})),ref:i,...s})});qe.displayName="Button";const pm="/assets/logo-CJZSlea4.png",w_=()=>{const t=[{name:"হà§à¦®",href:"#home",color:"text-foreground hover:text-accent"},{name:"সারà§à¦à¦¿à¦¸",href:"#government-services",color:"text-foreground hover:text-accent"},{name:"à¦
à§à¦¯à¦¾à¦¡à¦®à¦¿à¦¶à¦¨",href:"#training",color:"text-foreground hover:text-accent"},{name:"যà§à¦à¦¾à¦¯à§à¦",href:"#contact",color:"text-foreground hover:text-accent"}];return d.jsx("header",{className:"fixed top-10 md:top-11 left-0 right-0 z-50 bg-background/95 backdrop-blur-xl border-b border-border/50",children:d.jsx("div",{className:"container mx-auto px-3 sm:px-4",children:d.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-2 py-2 md:py-0 md:h-20",children:[d.jsxs("a",{href:"#home",className:"flex items-center gap-2 sm:gap-3 group",children:[d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"absolute -inset-1.5 rounded-full bg-gradient-to-r from-primary via-accent to-primary opacity-70 blur-sm animate-logo-spin"}),d.jsx("div",{className:"absolute -inset-1 rounded-full bg-gradient-to-r from-accent via-primary to-accent opacity-60 animate-logo-spin",style:{animationDirection:"reverse",animationDuration:"6s"}}),d.jsx("img",{src:pm,alt:"Nafia Jannat Computer Logo",className:"relative w-9 h-9 sm:w-10 sm:h-10 md:w-12 md:h-12 object-contain transform group-hover:scale-110 transition-transform duration-300 animate-logo-spring"})]}),d.jsxs("div",{children:[d.jsx("h1",{className:"font-display font-bold text-base sm:text-xl md:text-2xl tracking-wide",children:d.jsx("span",{className:"text-gradient",children:"Nafia Jannat"})}),d.jsx("p",{className:"text-[10px] sm:text-sm text-muted-foreground -mt-1 tracking-widest uppercase",children:"Computer"})]})]}),d.jsxs("div",{className:"flex items-center gap-2 md:gap-4 order-2 md:order-3",children:[d.jsxs("a",{href:"tel:01948175158",className:"flex items-center gap-1.5 md:gap-2 text-xs sm:text-sm md:text-base font-semibold text-foreground hover:text-primary transition-colors",children:[d.jsx(Yc,{className:"w-4 h-4 md:w-5 md:h-5"}),"01948175158"]}),d.jsx(qe,{className:"bg-gradient-to-r from-primary to-accent hover:opacity-90 transition-opacity font-display h-8 px-3 text-xs md:h-10 md:px-4 md:text-base tracking-wide",children:"যà§à¦à¦¾à¦¯à§à¦ à¦à¦°à§à¦¨"})]}),d.jsx("nav",{className:"order-3 md:order-2 w-full md:w-auto flex items-center justify-between md:justify-center gap-3 sm:gap-6 md:gap-8 pb-1 md:pb-0",children:t.map(e=>d.jsxs("a",{href:e.href,className:`text-sm md:text-base font-semibold ${e.color} transition-colors relative group whitespace-nowrap`,children:[e.name,d.jsx("span",{className:"absolute -bottom-1 left-0 w-0 h-0.5 bg-current group-hover:w-full transition-all duration-300"})]},e.name))})]})})})},QR=()=>{const t="à¦à¦¸à¦à¦¸à¦¸à¦¿ ঠà¦à¦à¦à¦à¦¸à¦¸à¦¿-২০২৬ পরà§à¦à§à¦·à¦¾à¦°à§à¦¥à§à¦¦à§à¦° à¦à¦¨à§à¦¯ ২৫% ডিসà¦à¦¾à¦à¦¨à§à¦à§ à¦
ফিস পà§à¦°à§à¦à§à¦°à¦¾à¦® ঠà¦à§à¦°à¦¾à¦«à¦¿à¦à§à¦¸ ডিà¦à¦¾à¦à¦¨à§ à¦à¦°à§à¦¤à¦¿ à¦à¦²à¦à§";return d.jsxs("div",{className:"fixed top-0 left-0 right-0 z-[60] h-10 md:h-11 bg-gradient-to-r from-primary via-accent to-primary text-primary-foreground flex items-center overflow-hidden shadow-md",children:[d.jsxs("div",{className:"flex-shrink-0 px-4 h-full flex items-center gap-2 bg-background/20 backdrop-blur-sm z-10 border-r border-white/20",children:[d.jsx(Tj,{className:"w-4 h-4"}),d.jsx("span",{className:"font-display text-xs md:text-sm font-bold whitespace-nowrap",children:"নতà§à¦¨ à¦
ফার"})]}),d.jsx("div",{className:"flex-1 overflow-hidden relative",children:d.jsxs("div",{className:"animate-marquee whitespace-nowrap flex items-center h-full",children:[d.jsx("span",{className:"font-body text-sm md:text-base font-semibold px-4",children:t}),d.jsx("span",{className:"font-body text-sm md:text-base font-semibold px-4 opacity-60",children:"â
"}),d.jsx("span",{className:"font-body text-sm md:text-base font-semibold px-4",children:t}),d.jsx("span",{className:"font-body text-sm md:text-base font-semibold px-4 opacity-60",children:"â
"}),d.jsx("span",{className:"font-body text-sm md:text-base font-semibold px-4",children:t}),d.jsx("span",{className:"font-body text-sm md:text-base font-semibold px-4 opacity-60",children:"â
"})]})})]})},JR=1,ZR="7073de29-eed7-4b3a-88f2-2daf84fe2718",XR="940d8152-3dac-41c1-9455-48f94e0dc95a",e2="/__l5e/assets-v1/7073de29-eed7-4b3a-88f2-2daf84fe2718/nafia-jannat-computer-banner-new.jpg",t2="a/v1/940d8152-3dac-41c1-9455-48f94e0dc95a/7073de29-eed7-4b3a-88f2-2daf84fe2718/nafia-jannat-computer-banner-new.jpg",r2="nafia-jannat-computer-banner-new.jpg",n2=381864,s2="image/jpeg",i2="2026-08-28T10:23:09Z",o2={version:JR,asset_id:ZR,project_id:XR,url:e2,r2_key:t2,original_filename:r2,size:n2,content_type:s2,created_at:i2},a2=()=>d.jsxs("section",{id:"home",className:"relative min-h-screen flex items-center pt-40 md:pt-28 lg:pt-20 overflow-hidden",children:[d.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(hsl(var(--border)/0.3)_1px,transparent_1px),linear-gradient(90deg,hsl(var(--border)/0.3)_1px,transparent_1px)] bg-[size:60px_60px] [mask-image:radial-gradient(ellipse_at_center,black_20%,transparent_70%)]"}),d.jsx("div",{className:"absolute top-32 left-[15%] w-2 h-2 bg-primary/40 rounded-full animate-bounce",style:{animationDuration:"3s"}}),d.jsx("div",{className:"absolute top-48 right-[30%] w-3 h-3 bg-accent/40 rounded-full animate-bounce",style:{animationDuration:"4s",animationDelay:"0.5s"}}),d.jsx("div",{className:"absolute bottom-40 left-[25%] w-2 h-2 bg-primary/30 rounded-full animate-bounce",style:{animationDuration:"3.5s",animationDelay:"1s"}}),d.jsx("div",{className:"container mx-auto px-4 relative z-10",children:d.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[d.jsxs("div",{className:"text-center lg:text-left",children:[d.jsxs("h1",{className:"font-display text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold leading-tight mb-6",children:[d.jsx("span",{className:"text-foreground",children:"নাফিà§à¦¾ à¦à¦¾à¦¨à§à¦¨à¦¾à¦¤"}),d.jsx("br",{}),d.jsx("span",{className:"text-gradient",children:"à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦°Â "})]}),d.jsx("p",{className:"text-lg md:text-xl text-muted-foreground mb-8 max-w-xl mx-auto lg:mx-0 font-body",children:"à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦° পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£à§ à¦à¦®à¦°à¦¾ সà§à¦°à¦¾à¥¤ à¦à¦§à§à¦¨à¦¿à¦ পà§à¦°à¦¯à§à¦à§à¦¤à¦¿ ঠদà¦à§à¦· à¦à§à¦°à§à¦à¦¨à¦¾à¦° দিয়ৠপà§à¦°à¦¶à¦¿à¦à§à¦·à¦£ দিà§à§ থাà¦à¦¿à¥¤ তার পাশাপাশি à¦
ফিসিà§à¦¾à¦² সারà§à¦à¦¿à¦¸ দিà§à§ থাà¦à¦¿à¥¤"}),d.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start",children:[d.jsxs(qe,{size:"lg",className:"bg-gradient-to-r from-primary to-accent hover:opacity-90 transition-opacity font-display text-base tracking-wide group",children:["à¦à¦à¦¨à¦ যà§à¦à¦¾à¦¯à§à¦ à¦à¦°à§à¦¨",d.jsx(sb,{className:"ml-2 w-5 h-5 group-hover:translate-x-1 transition-transform"})]}),d.jsx(qe,{size:"lg",variant:"outline",className:"font-display text-base tracking-wide border-border/50 hover:bg-secondary/50",children:"à¦à¦®à¦¾à¦¦à§à¦° সà§à¦¬à¦¾ দà§à¦à§à¦¨"})]}),d.jsxs("div",{className:"grid grid-cols-3 gap-6 mt-12 pt-8 border-t border-border/50",children:[d.jsxs("div",{className:"text-center lg:text-left",children:[d.jsx("p",{className:"font-display text-2xl md:text-3xl font-bold text-gradient",children:"১০+"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"বà¦à¦°à§à¦° à¦
à¦à¦¿à¦à§à¦à¦¤à¦¾"})]}),d.jsxs("div",{className:"text-center lg:text-left",children:[d.jsx("p",{className:"font-display text-2xl md:text-3xl font-bold text-gradient",children:"৫০০০+"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"সনà§à¦¤à§à¦·
288à§à¦ à¦à§à¦°à¦¾à¦¹à¦"})]}),d.jsxs("div",{className:"text-center lg:text-left",children:[d.jsx("p",{className:"font-display text-2xl md:text-3xl font-bold text-gradient",children:"২৪/à§"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"সাপà§à¦°à§à¦"})]})]})]}),d.jsxs("div",{className:"relative flex flex-col items-center",children:[d.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-2xl shadow-primary/30 border-2 border-primary/20",children:[d.jsx("img",{src:o2.url,alt:"à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦° শিà¦à§à¦¨ - à¦
ফিস পà§à¦°à§à¦à§à¦°à¦¾à¦® ঠà¦à§à¦°à¦¾à¦«à¦¿à¦à§à¦¸ ডিà¦à¦¾à¦à¦¨, SSC ঠHSC পরà§à¦à§à¦·à¦¾à¦°à§à¦¥à§à¦¦à§à¦° à¦à¦¨à§à¦¯ 25% ডিসà¦à¦¾à¦à¦¨à§à¦",className:"w-full max-w-lg object-contain"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/20 to-transparent pointer-events-none"})]}),d.jsxs("div",{className:"mt-8 text-center glass-effect rounded-2xl p-6",children:[d.jsx("h3",{className:"font-display text-xl font-bold text-foreground mb-1",children:"à¦à¦¹à¦®à¦¦ হà§à¦¸à§à¦¨ মà¦à¦¨à§"}),d.jsx("p",{className:"text-gradient font-semibold text-lg",children:"বà§à¦¯à¦¬à¦¸à§à¦¥à¦¾à¦ªà¦¨à¦¾ পরিà¦à¦¾à¦²à¦"}),d.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:"নাফিয়া à¦à¦¾à¦¨à§à¦¨à¦¾à¦¤ à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦°"})]})]})]})})]}),ir=x.forwardRef(({className:t,...e},r)=>d.jsx("div",{ref:r,className:_e("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));ir.displayName="Card";const ru=x.forwardRef(({className:t,...e},r)=>d.jsx("div",{ref:r,className:_e("flex flex-col space-y-1.5 p-6",t),...e}));ru.displayName="CardHeader";const nu=x.forwardRef(({className:t,...e},r)=>d.jsx("h3",{ref:r,className:_e("text-2xl font-semibold leading-none tracking-tight",t),...e}));nu.displayName="CardTitle";const l2=x.forwardRef(({className:t,...e},r)=>d.jsx("p",{ref:r,className:_e("text-sm text-muted-foreground",t),...e}));l2.displayName="CardDescription";const or=x.forwardRef(({className:t,...e},r)=>d.jsx("div",{ref:r,className:_e("p-6 pt-0",t),...e}));or.displayName="CardContent";const c2=x.forwardRef(({className:t,...e},r)=>d.jsx("div",{ref:r,className:_e("flex items-center p-6 pt-0",t),...e}));c2.displayName="CardFooter";const u2=[{icon:uj,title:"NID à¦à¦¾à¦°à§à¦¡",problems:["à¦à¦ াতৠপারà¦à§à¦¨ না?","নষà§à¦ à¦
থবা হারিয়ৠà¦à§à¦à§?","বà§à¦¯à¦¬à¦¹à¦¾à¦°à§à¦° à¦
যà§à¦à§à¦¯?"],solution:"à¦à¦®à¦°à¦¾ à¦à¦ªà¦¨à¦¾à¦° à¦à¦¾à¦¤à§à¦¯à¦¼ পরিà¦à¦¯à¦¼à¦ªà¦¤à§à¦°à¦à¦¿ à¦à¦¤à§à¦¤à§à¦²à¦¨ à¦à¦°à§ দিব।",color:"from-emerald-500 to-teal-500"},{icon:lb,title:"E-TIN",problems:["à¦à¦ াতৠপারà¦à§à¦¨ না?","নষà§à¦ à¦
থবা হারিয়ৠà¦à§à¦à§?"],solution:"à¦à¦®à¦°à¦¾ à¦à¦ªà¦¨à¦¾à¦° E-TIN à¦à¦¿ à¦à¦¤à§à¦¤à§à¦²à¦¨ à¦à¦°à§ দিব।",color:"from-blue-500 to-indigo-500"},{icon:ij,title:"E-Trade License",problems:["à¦à¦ াতৠপারà¦à§à¦¨ না?","নষà§à¦ à¦
থবা হারিয়ৠà¦à§à¦à§?"],solution:"à¦à¦®à¦°à¦¾ à¦à¦ªà¦¨à¦¾à¦° E-Trade License à¦à¦¿ à¦à¦¤à§à¦¤à§à¦²à¦¨ à¦à¦°à§ দিব।",color:"from-purple-500 to-pink-500"},{icon:oj,title:"E-Driving License",problems:["à¦à¦ াতৠপারà¦à§à¦¨ না?","নষà§à¦ à¦
থবা হারিয়ৠà¦à§à¦à§?"],solution:"à¦à¦®à¦°à¦¾ à¦à¦ªà¦¨à¦¾à¦° E-Driving License à¦à¦¿ à¦à¦¤à§à¦¤à§à¦²à¦¨ à¦à¦°à§ দিব।",color:"from-sky-500 to-cyan-500"},{icon:Sj,title:"পà§à¦°à¦¿à¦¨à§à¦à¦¿à¦ সà§à¦¬à¦¾",problems:["ডিà¦à¦¿à¦à¦¾à¦² বà§à¦¯à¦¾à¦¨à¦¾à¦° পà§à¦°à¦¿à¦¨à§à¦","পà§à¦¸à§à¦à¦¾à¦° ঠফà§à¦¸à§à¦à§à¦¨","লিফলà§à¦ ঠà¦à¦¿à¦à¦¿à¦à¦¿à¦ à¦à¦¾à¦°à§à¦¡"],solution:"সà¦à¦² পà§à¦°à¦à¦¾à¦° পà§à¦°à¦¿à¦¨à§à¦à¦¿à¦ সà§à¦¬à¦¾ পà§à¦°à¦¦à¦¾à¦¨ à¦à¦°à¦¾ হয়।",color:"from-orange-500 to-amber-500"}],d2=[{icon:_j,title:"à¦-পাসপà§à¦°à§à¦",detail:"à¦à¦¬à¦¦à¦¨ à¦à¦°à¦¾à¦¨à§ হয়",color:"from-rose-500 to-red-500"},{icon:gj,title:"à¦-পরà§à¦à¦¾",detail:"à¦à¦¤à§à¦¤à§à¦²à¦¨ à¦à¦°à¦¾à¦¨à§ হয়",color:"from-teal-500 to-emerald-500"},{icon:jj,title:"à¦-à¦à§à¦°à§à¦¨ ঠবাস à¦à¦¿à¦à¦¿à¦",detail
288:"à¦à¦à¦¾à¦¨à§ হয়",color:"from-sky-500 to-blue-500"},{icon:lb,title:"à¦-à¦à¦¿à¦¨",detail:"রà§à¦à¦¿à¦·à§à¦à§à¦°à§à¦¶à¦¨ à¦à¦°à¦¾à¦¨à§ হয়",color:"from-indigo-500 to-violet-500"},{icon:Ej,title:"à¦à¦®à¦¿à¦° à¦à¦¾à¦à¦¨à¦¾à¦¨",detail:"দà§à¦à¦¯à¦¼à¦¾à¦¨à§ হয়",color:"from-amber-500 to-yellow-500"},{icon:pj,title:"হà§à¦²à§à¦¡à¦¿à¦ à¦à§à¦¯à¦¾à¦à§à¦¸",detail:"দà§à¦à¦¯à¦¼à¦¾à¦¨à§ হয়",color:"from-fuchsia-500 to-pink-500"}],f2=()=>d.jsxs("section",{id:"government-services",className:"py-20 md:py-32 relative overflow-hidden",children:[d.jsx("div",{className:"h-2 w-full bg-gradient-to-r from-primary via-accent to-primary absolute top-0 left-0"}),d.jsx("div",{className:"absolute inset-0 opacity-[0.02] bg-[linear-gradient(to_right,hsl(var(--foreground))_1px,transparent_1px),linear-gradient(to_bottom,hsl(var(--foreground))_1px,transparent_1px)] bg-[size:4rem_4rem]"}),d.jsx("div",{className:"absolute top-24 left-[18%] w-2 h-2 bg-emerald-500/40 rounded-full animate-bounce",style:{animationDuration:"3s"}}),d.jsx("div",{className:"absolute top-40 right-[22%] w-3 h-3 bg-blue-500/40 rounded-full animate-bounce",style:{animationDuration:"4s",animationDelay:"0.5s"}}),d.jsx("div",{className:"absolute bottom-32 left-[28%] w-2 h-2 bg-purple-500/30 rounded-full animate-bounce",style:{animationDuration:"3.5s",animationDelay:"1s"}}),d.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full glass-effect text-sm text-foreground font-medium mb-4",children:"সরà¦à¦¾à¦°à¦¿ সà§à¦¬à¦¾"}),d.jsxs("h2",{className:"font-display text-3xl md:text-4xl lg:text-5xl font-bold mb-4",children:["ডà¦à§à¦®à§à¦¨à§à¦ ",d.jsx("span",{className:"text-gradient",children:"সহায়তা সà§à¦¬à¦¾"})]}),d.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"à¦à¦¾à¦¤à§à¦¯à¦¼ পরিà¦à¦¯à¦¼à¦ªà¦¤à§à¦°, à¦-à¦à¦¿à¦¨, à¦-à¦à§à¦°à§à¦¡ লাà¦à¦¸à§à¦¨à§à¦¸ à¦à¦¬à¦ à¦-ডà§à¦°à¦¾à¦à¦à¦¿à¦ লাà¦à¦¸à§à¦¨à§à¦¸ সà¦à¦à§à¦°à¦¾à¦¨à§à¦¤ সমসà§à¦¯à¦¾à¦° সমাধান à¦à¦°à¦¤à§ à¦à¦®à¦°à¦¾ পà§à¦°à¦¸à§à¦¤à§à¦¤"})]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",children:u2.map((t,e)=>d.jsx(ir,{className:"group relative overflow-hidden border-border/50 bg-card/50 backdrop-blur-sm hover:shadow-xl hover:shadow-primary/5 transition-all duration-500 hover:-translate-y-2",children:d.jsxs(or,{className:"p-6 md:p-8",children:[d.jsx("div",{className:`w-16 h-16 rounded-2xl bg-gradient-to-br ${t.color} flex items-center justify-center mb-6 group-hover:scale-110 transition-transform duration-300`,children:d.jsx(t.icon,{className:"w-8 h-8 text-white"})}),d.jsx("h3",{className:"font-display text-2xl font-bold mb-4 group-hover:text-primary transition-colors",children:t.title}),d.jsx("div",{className:"space-y-2 mb-6",children:t.problems.map((r,n)=>d.jsxs("p",{className:"text-muted-foreground flex items-center gap-2",children:[d.jsx("span",{className:`w-1.5 h-1.5 rounded-full bg-gradient-to-r ${t.color}`}),r]},n))}),d.jsx("div",{className:`p-4 rounded-xl bg-gradient-to-r ${t.color} bg-opacity-10 border border-current/20`,style:{background:"linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1))"},children:d.jsxs("p",{className:"text-sm font-medium text-foreground",children:["â ",t.solution]})}),d.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${t.color} opacity-0 group-hover:opacity-5 transition-opacity duration-500`})]})},e))}),d.jsx(ir,{className:"mt-8 md:mt-10 border-border/50 bg-card/50 backdrop-blur-sm overflow-hidden",children:d.jsxs(or,{className:"p-6 md:p-10",children:[d.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-3 mb-8",children:[d.jsx("h3",{className:"font-display text-xl md:text-2xl font-bold",children:"à¦
নলাà¦à¦¨ সà§à¦¬à¦¾ সমà§à¦¹"}),d.jsx("span",{className:"text-sm text-muted-foreground",children:"যà§à¦à§à¦¨à§ সময় দà§à¦à¦¾à¦¨à¦¤ à¦à¦¸à§ à¦à¦°à¦¿à¦¯à¦¼à§ নিতৠপারবà§à¦¨"})]}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6",children:d2.map((t,e)=>d.jsxs("div",{className:"group flex items-center gap-4 p-4 rounded-xl border border-border/40 hover:border-primary/40 hover:bg-background/60 transition-all duration-300",children:[d.jsx("div",{className:`w-11 h-11 shrink-0 rounded-xl bg-gradient-to-br ${t.color} flex items-center justify-center group-hover:scale-110 transition-transform duration-300`,children:d.jsx(t.icon,{className:"w-5 h-5 text-white"})}),d.jsxs("div",{className:"min-w-0",children:[d.jsx("p",{className:"font-semibold text-foreground truncate",children:t.title}),d.jsx("p",{className:"text-sm text-muted-foreground",children:t.detail})]})]},e))})]})}),d.jsx("div",{className:"text-center mt-12",children:d.jsxs(qe,{size:"lg",className:"group",onClick:()=>{var t;return(t=document.getElementById("contact"))==null?void 0:t.scrollIntoView({behavior:"smooth"})},children:["যà§à¦à¦¾à¦¯à§à¦ à¦à¦°à§à¦¨",d.jsx(sb,{className:"ml-2 w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})]})]});var pl=t=>t.type==="checkbox",Hs=t=>t instanceof Date,Pt=t=>t==null;const x_=t=>typeof t=="object";var tt=t=>!Pt(t)&&!Array.isArray(t)&&x_(t)&&!Hs(t),b_=t=>tt(t)&&t.target?pl(t.target)?t.target.checked:t.target.value:t,h2=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,__=(t,e)=>t.has(h2(e)),p2=t=>{const e=t.constructor&&t.constructor.prototype;return tt(e)&&e.hasOwnProperty("isPrototypeOf")},mm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function at(t){let e;const r=Array.isArray(t),n=typeof FileList<"u"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(!(mm&&(t instanceof Blob||n))&&(r||tt(t)))if(e=r?[]:{},!r&&!p2(t))e=t;else for(const s in t)t.hasOwnProperty(s)&&(e[s]=at(t[s]));else return t;return e}var td=t=>/^\w*$/.test(t),Xe=t=>t===void 0,gm=t=>Array.isArray(t)?t.filter(Boolean):[],vm=t=>gm(t.replace(/["|']|\]/g,"").split(/\.|\[/)),q=(t,e,r)=>{if(!e||!tt(t))return r;const n=(td(e)?[e]:vm(e)).reduce((s,i)=>Pt(s)?s:s[i],t);return Xe(n)||n===t?Xe(t[e])?r:t[e]:n},qt=t=>typeof t=="boolean",Pe=(t,e,r)=>{let n=-1;const s=td(e)?[e]:vm(e),i=s.length,o=i-1;for(;++n<i;){const a=s[n];let l=r;if(n!==o){const c=t[a];
288l=tt(c)||Array.isArray(c)?c:isNaN(+s[n+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;t[a]=l,t=t[a]}};const su={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Pr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},hn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},ym=A.createContext(null);ym.displayName="HookFormContext";const rd=()=>A.useContext(ym),m2=t=>{const{children:e,...r}=t;return A.createElement(ym.Provider,{value:r},e)};var S_=(t,e,r,n=!0)=>{const s={defaultValues:e._defaultValues};for(const i in t)Object.defineProperty(s,i,{get:()=>{const o=i;return e._proxyFormState[o]!==Pr.all&&(e._proxyFormState[o]=!n||Pr.all),r&&(r[o]=!0),t[o]}});return s};const wm=typeof window<"u"?A.useLayoutEffect:A.useEffect;function g2(t){const e=rd(),{control:r=e.control,disabled:n,name:s,exact:i}=t||{},[o,a]=A.useState(r._formState),l=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return wm(()=>r._subscribe({name:s,formState:l.current,exact:i,callback:c=>{!n&&a({...r._formState,...c})}}),[s,n,i]),A.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),A.useMemo(()=>S_(o,r,l.current,!1),[o,r])}var en=t=>typeof t=="string",E_=(t,e,r,n,s)=>en(t)?(n&&e.watch.add(t),q(r,t,s)):Array.isArray(t)?t.map(i=>(n&&e.watch.add(i),q(r,i))):(n&&(e.watchAll=!0),r),Eh=t=>Pt(t)||!x_(t);function yn(t,e,r=new WeakSet){if(Eh(t)||Eh(e))return t===e;if(Hs(t)&&Hs(e))return t.getTime()===e.getTime();const n=Object.keys(t),s=Object.keys(e);if(n.length!==s.length)return!1;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);for(const i of n){const o=t[i];if(!s.includes(i))return!1;if(i!=="ref"){const a=e[i];if(Hs(o)&&Hs(a)||tt(o)&&tt(a)||Array.isArray(o)&&Array.isArray(a)?!yn(o,a,r):o!==a)return!1}}return!0}function v2(t){const e=rd(),{control:r=e.control,name:n,defaultValue:s,disabled:i,exact:o,compute:a}=t||{},l=A.useRef(s),c=A.useRef(a),u=A.useRef(void 0);c.current=a;const f=A.useMemo(()=>r._getWatch(n,l.current),[r,n]),[h,p]=A.useState(c.current?c.current(f):f);return wm(()=>r._subscribe({name:n,formState:{values:!0},exact:o,callback:b=>{if(!i){const g=E_(n,r._names,b.values||r._formValues,!1,l.current);if(c.current){const y=c.current(g);yn(y,u.current)||(p(y),u.current=y)}else p(g)}}}),[r,i,n,o]),A.useEffect(()=>r._removeUnmounted()),h}function y2(t){const e=rd(),{name:r,disabled:n,control:s=e.control,shouldUnregister:i,defaultValue:o}=t,a=__(s._names.array,r),l=A.useMemo(()=>q(s._formValues,r,q(s._defaultValues,r,o)),[s,r,o]),c=v2({control:s,name:r,defaultValue:l,exact:!0}),u=g2({control:s,name:r,exact:!0}),f=A.useRef(t),h=A.useRef(s.register(r,{...t.rules,value:c,...qt(t.disabled)?{disabled:t.disabled}:{}}));f.current=t;const p=A.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!q(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!q(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!q(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!q(u.validatingFields,r)},error:{enumerable:!0,get:()=>q(u.errors,r)}}),[u,r]),b=A.useCallback(m=>h.current.onChange({target:{value:b_(m),name:r},type:su.CHANGE}),[r]),g=A.useCallback(()=>h.current.onBlur({target:{value:q(s._formValues,r),name:r},type:su.BLUR}),[r,s._formValues]),y=A.useCallback(m=>{const v=q(s._fields,r);v&&m&&(v._f.ref={focus:()=>m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:_=>m.setCustomValidity(_),reportValidity:()=>m.reportValidity()})},[s._fields,r]),w=A.useMemo(()=>({name:r,value:c,...qt(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:b,onBlur:g,ref:y}),[r,n,u.disabled,b,g,y,c]);return A.useEffect(()=>{const m=s._options.shouldUnregister||i;s.register(r,{...f.current.rules,...qt(f.current.disabled)?{disabled:f.current.disabled}:{}});const v=(_,S)=>{const C=q(s._fields,_);C&&C._f&&(C._f.mount=S)};if(v(r,!0),m){const _=at(q(s._options.defaultValues,r));Pe(s._defaultValues,r,_),Xe(q(s._formValues,r))&&Pe(s._formValues,r,_)}return!a&&s.register(r),()=>{(a?m&&!s._state.action:m)?s.unregister(r):v(r,!1)}},[r,s,a,i]),A.useEffect(()=>{s._setDisabledField({disabled:n,name:r})},[n,r,s]),A.useMemo(()=>({field:w,formState:u,fieldState:p}),[w,u,p])}const w2=t=>t.render(y2(t));var k_=(t,e,r,n,s)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:s||!0}}:{},ba=t=>Array.isArray(t)?t:[t],zv=()=>{let t=[];return{get observers(){return t},next:s=>{for(const i of t)i.next&&i.next(s)},subscribe:s=>(t.push(s),{unsubscribe:()=>{t=t.filter(i=>i!==s)}}),unsubscribe:()=>{t=[]}}},Mt=t=>tt(t)&&!Object.keys(t).length,xm=t=>t.type==="file",Nr=t=>typeof t=="function",iu=t=>{if(!mm)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},C_=t=>t.type==="select-multiple",bm=t=>t.type==="radio",x2=t=>bm(t)||pl(t),ef=t=>iu(t)&&t.isConnected;function b2(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=Xe(t)?n++:t[e[n++]];return t}function _2(t){for(const e in t)if(t.hasOwnProperty(e)&&!Xe(t[e]))return!1;return!0}function rt(t,e){const r=Array.isArray(e)?e:td(e)?[e]:vm(e),n=r.length===1?t:b2(t,r),s=r.length-1,i=r[s];return n&&delete n[i],s!==0&&(tt(n)&&Mt(n)||Array.isArray(n)&&_2(n))&&rt(t,r.slice(0,-1)),t}var T_=t=>{for(const e in t)if(Nr(t[e]))return!0;return!1};function ou(t,e={}){const r=Array.isArray(t);if(tt(t)||r)for(const n in t)Array.isArray(t[n])||tt(t[n])&&!T_(t[n])?(e[n]=Array.isArray(t[n])?[]:{},ou(t[n],e[n])):Pt(t[n])||(e[n]=!0);return e}function j_(t,e,r){const n=Array.isArray(t);if(tt(t)||n)for(const s in t)Array.isArray(t[s])||tt(t[s])&&!T_(t[s])?Xe(e)||Eh(r[s])?r[s]=Array.isArray(t[s])?ou(t[s],[]):{...ou(t[s])}:j_(t[s],Pt(e)?{}:e[s],r[s]):r[s]=!yn(t[s],e[s]);return r}var Xo=(t,e)=>j_(t,e,ou(e));const Wv={value:!1,isValid:!1},Hv={value:!0,isValid:!0};var P_=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!Xe(t[0].attributes.value)?Xe(t[0].value)||t[0].value===""?Hv:{value:t[0].value,isValid:!0}:Hv:Wv}return Wv},N_=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>Xe(t)?t:e?t===""?NaN:t&&+t:r&&en(t)?new Date(t):n?n(t):t;const qv={isValid:!1,value:null};var O_=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,qv):qv;function Kv(t){const e=t.ref;return xm(e)?e.files:bm(e)?O_(t.refs).value:C_(e)?[...e.selectedOptions].map(({value:r})=>r):pl(e)?P_(t.refs).value:N_(Xe(e.value)?t.ref.value:e.value,t)}var S2=(t,e,r,n)=>{const s={};for(const i of t){const o=q(e,i);o&&Pe(s,i,o._f)}return{criteriaMode:r,names:[...t],fields:s,shouldUseNativeValidation:n}},au=t=>t instanceof RegExp,ea=t=>Xe(t)?t:au(t)?t.source:tt(t)?au(t.value)?t.value.source:t.value:t,Gv=t=>({isOnSubmit:!t||t===Pr.onSubmit,isOnBlur:t===Pr.onBlur,isOnChange:t===Pr.onChange,isOnAll:t===Pr.all,isOnTouch:t===Pr.onTouched});const Yv="AsyncFunction";var E2=t=>!!t&&!!t.validate&&!!(Nr(t.validate)&&t.validate.constructor.name===Yv||tt(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===Yv)),k2=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),Qv=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(n=>t.startsWith(n)&&/^\.\w+/.test(t.slice(n.length))));const _a=(t,e,r,n)=>{for(const s of r||Object.keys(t)){const i=q(t,s);if(i){const{_f:o,...a}=i;
vendor: 4,167 bytes, line 288
288if(o){if(o.refs&&o.refs[0]&&e(o.refs[0],s)&&!n)return!0;if(o.ref&&e(o.ref,o.name)&&!n)return!0;if(_a(a,e))break}else if(tt(a)&&_a(a,e))break}}};function Jv(t,e,r){const n=q(t,r);if(n||td(r))return{error:n,name:r};const s=r.split(".");for(;s.length;){const i=s.join("."),o=q(e,i),a=q(t,i);if(o&&!Array.isArray(o)&&r!==i)return{name:r};if(a&&a.type)return{name:i,error:a};if(a&&a.root&&a.root.type)return{name:`${i}.root`,error:a.root};s.pop()}return{name:r}}var C2=(t,e,r,n)=>{r(t);const{name:s,...i}=t;return Mt(i)||Object.keys(i).length>=Object.keys(e).length||Object.keys(i).find(o=>e[o]===(!n||Pr.all))},T2=(t,e,r)=>!t||!e||t===e||ba(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),j2=(t,e,r,n,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(e||t):(r?n.isOnBlur:s.isOnBlur)?!t:(r?n.isOnChange:s.isOnChange)?t:!0,P2=(t,e)=>!gm(q(t,e)).length&&rt(t,e),N2=(t,e,r)=>{const n=ba(q(t,r));return Pe(n,"root",e[r]),Pe(t,r,n),t},vc=t=>en(t);function Zv(t,e,r="validate"){if(vc(t)||Array.isArray(t)&&t.every(vc)||qt(t)&&!t)return{type:r,message:vc(t)?t:"",ref:e}}var xi=t=>tt(t)&&!au(t)?t:{value:t,message:""},Xv=async(t,e,r,n,s,i)=>{const{ref:o,refs:a,required:l,maxLength:c,minLength:u,min:f,max:h,pattern:p,validate:b,name:g,valueAsNumber:y,mount:w}=t._f,m=q(r,g);if(!w||e.has(g))return{};const v=a?a[0]:o,_=M=>{s&&v.reportValidity&&(v.setCustomValidity(qt(M)?"":M||""),v.reportValidity())},S={},C=bm(o),k=pl(o),P=C||k,j=(y||xm(o))&&Xe(o.value)&&Xe(m)||iu(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,D=k_.bind(null,g,n,S),G=(M,B,$,ee=hn.maxLength,K=hn.minLength)=>{const X=M?B:$;S[g]={type:M?ee:K,message:X,ref:o,...D(M?ee:K,X)}};if(i?!Array.isArray(m)||!m.length:l&&(!P&&(j||Pt(m))||qt(m)&&!m||k&&!P_(a).isValid||C&&!O_(a).isValid)){const{value:M,message:B}=vc(l)?{value:!!l,message:l}:xi(l);if(M&&(S[g]={type:hn.required,message:B,ref:v,...D(hn.required,B)},!n))return _(B),S}if(!j&&(!Pt(f)||!Pt(h))){let M,B;const $=xi(h),ee=xi(f);if(!Pt(m)&&!isNaN(m)){const K=o.valueAsNumber||m&&+m;Pt($.value)||(M=K>$.value),Pt(ee.value)||(B=K<ee.value)}else{const K=o.valueAsDate||new Date(m),X=z=>new Date(new Date().toDateString()+" "+z),N=o.type=="time",R=o.type=="week";en($.value)&&m&&(M=N?X(m)>X($.value):R?m>$.value:K>new Date($.value)),en(ee.value)&&m&&(B=N?X(m)<X(ee.value):R?m<ee.value:K<new Date(ee.value))}if((M||B)&&(G(!!M,$.message,ee.message,hn.max,hn.min),!n))return _(S[g].message),S}if((c||u)&&!j&&(en(m)||i&&Array.isArray(m))){const M=xi(c),B=xi(u),$=!Pt(M.value)&&m.length>+M.value,ee=!Pt(B.value)&&m.length<+B.value;if(($||ee)&&(G($,M.message,B.message),!n))return _(S[g].message),S}if(p&&!j&&en(m)){const{value:M,message:B}=xi(p);if(au(M)&&!m.match(M)&&(S[g]={type:hn.pattern,message:B,ref:o,...D(hn.pattern,B)},!n))return _(B),S}if(b){if(Nr(b)){const M=await b(m,r),B=Zv(M,v);if(B&&(S[g]={...B,...D(hn.validate,B.message)},!n))return _(B.message),S}else if(tt(b)){let M={};for(const B in b){if(!Mt(M)&&!n)break;const $=Zv(await b[B](m,r),v,B);$&&(M={...$,...D(B,$.message)},_($.message),n&&(S[g]=M))}if(!Mt(M)&&(S[g]={ref:v,...M},!n))return S}}return _(!0),S};const O2={mode:Pr.onSubmit,reValidateMode:Pr.onChange,shouldFocusError:!0};function R2(t={}){let e={...O2,...t},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Nr(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},n={},s=tt(e.defaultValues)||tt(e.values)?at(e.defaultValues||e.values)||{}:{},i=e.shouldUnregister?{}:at(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...u};const h={array:zv(),state:zv()},p=e.criteriaMode===Pr.all,b=E=>T=>{clearTimeout(c),c=setTimeout(E,T)},g=async E=>{if(!e.disabled&&(u.isValid||f.isValid||E)){const T=e.resolver?Mt((await k()).errors):await j(n,!0);T!==r.isValid&&h.state.next({isValid:T})}},y=(E,T)=>{!e.disabled&&(u.isValidating||u.validatingFields||f.isValidating||f.validatingFields)&&((E||Array.from(a.mount)).forEac
vendor: 4,234 bytes, line 288
288h(O=>{O&&(T?Pe(r.validatingFields,O,T):rt(r.validatingFields,O))}),h.state.next({validatingFields:r.validatingFields,isValidating:!Mt(r.validatingFields)}))},w=(E,T=[],O,W,V=!0,U=!0)=>{if(W&&O&&!e.disabled){if(o.action=!0,U&&Array.isArray(q(n,E))){const Q=O(q(n,E),W.argA,W.argB);V&&Pe(n,E,Q)}if(U&&Array.isArray(q(r.errors,E))){const Q=O(q(r.errors,E),W.argA,W.argB);V&&Pe(r.errors,E,Q),P2(r.errors,E)}if((u.touchedFields||f.touchedFields)&&U&&Array.isArray(q(r.touchedFields,E))){const Q=O(q(r.touchedFields,E),W.argA,W.argB);V&&Pe(r.touchedFields,E,Q)}(u.dirtyFields||f.dirtyFields)&&(r.dirtyFields=Xo(s,i)),h.state.next({name:E,isDirty:G(E,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Pe(i,E,T)},m=(E,T)=>{Pe(r.errors,E,T),h.state.next({errors:r.errors})},v=E=>{r.errors=E,h.state.next({errors:r.errors,isValid:!1})},_=(E,T,O,W)=>{const V=q(n,E);if(V){const U=q(i,E,Xe(O)?q(s,E):O);Xe(U)||W&&W.defaultChecked||T?Pe(i,E,T?U:Kv(V._f)):$(E,U),o.mount&&g()}},S=(E,T,O,W,V)=>{let U=!1,Q=!1;const we={name:E};if(!e.disabled){if(!O||W){(u.isDirty||f.isDirty)&&(Q=r.isDirty,r.isDirty=we.isDirty=G(),U=Q!==we.isDirty);const Ae=yn(q(s,E),T);Q=!!q(r.dirtyFields,E),Ae?rt(r.dirtyFields,E):Pe(r.dirtyFields,E,!0),we.dirtyFields=r.dirtyFields,U=U||(u.dirtyFields||f.dirtyFields)&&Q!==!Ae}if(O){const Ae=q(r.touchedFields,E);Ae||(Pe(r.touchedFields,E,O),we.touchedFields=r.touchedFields,U=U||(u.touchedFields||f.touchedFields)&&Ae!==O)}U&&V&&h.state.next(we)}return U?we:{}},C=(E,T,O,W)=>{const V=q(r.errors,E),U=(u.isValid||f.isValid)&&qt(T)&&r.isValid!==T;if(e.delayError&&O?(l=b(()=>m(E,O)),l(e.delayError)):(clearTimeout(c),l=null,O?Pe(r.errors,E,O):rt(r.errors,E)),(O?!yn(V,O):V)||!Mt(W)||U){const Q={...W,...U&&qt(T)?{isValid:T}:{},errors:r.errors,name:E};r={...r,...Q},h.state.next(Q)}},k=async E=>{y(E,!0);const T=await e.resolver(i,e.context,S2(E||a.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return y(E),T},P=async E=>{const{errors:T}=await k(E);if(E)for(const O of E){const W=q(T,O);W?Pe(r.errors,O,W):rt(r.errors,O)}else r.errors=T;return T},j=async(E,T,O={valid:!0})=>{for(const W in E){const V=E[W];if(V){const{_f:U,...Q}=V;if(U){const we=a.array.has(U.name),Ae=V._f&&E2(V._f);Ae&&u.validatingFields&&y([W],!0);const It=await Xv(V,a.disabled,i,p,e.shouldUseNativeValidation&&!T,we);if(Ae&&u.validatingFields&&y([W]),It[U.name]&&(O.valid=!1,T))break;!T&&(q(It,U.name)?we?N2(r.errors,It,U.name):Pe(r.errors,U.name,It[U.name]):rt(r.errors,U.name))}!Mt(Q)&&await j(Q,T,O)}}return O.valid},D=()=>{for(const E of a.unMount){const T=q(n,E);T&&(T._f.refs?T._f.refs.every(O=>!ef(O)):!ef(T._f.ref))&&H(E)}a.unMount=new Set},G=(E,T)=>!e.disabled&&(E&&T&&Pe(i,E,T),!yn(z(),s)),M=(E,T,O)=>E_(E,a,{...o.mount?i:Xe(T)?s:en(E)?{[E]:T}:T},O,T),B=E=>gm(q(o.mount?i:s,E,e.shouldUnregister?q(s,E,[]):[])),$=(E,T,O={})=>{const W=q(n,E);let V=T;if(W){const U=W._f;U&&(!U.disabled&&Pe(i,E,N_(T,U)),V=iu(U.ref)&&Pt(T)?"":T,C_(U.ref)?[...U.ref.options].forEach(Q=>Q.selected=V.includes(Q.value)):U.refs?pl(U.ref)?U.refs.forEach(Q=>{(!Q.defaultChecked||!Q.disabled)&&(Array.isArray(V)?Q.checked=!!V.find(we=>we===Q.value):Q.checked=V===Q.value||!!V)}):U.refs.forEach(Q=>Q.checked=Q.value===V):xm(U.ref)?U.ref.value="":(U.ref.value=V,U.ref.type||h.state.next({name:E,values:at(i)})))}(O.shouldDirty||O.shouldTouch)&&S(E,V,O.shouldTouch,O.shouldDirty,!0),O.shouldValidate&&R(E)},ee=(E,T,O)=>{for(const W in T){if(!T.hasOwnProperty(W))return;const V=T[W],U=E+"."+W,Q=q(n,U);(a.array.has(E)||tt(V)||Q&&!Q._f)&&!Hs(V)?ee(U,V,O):$(U,V,O)}},K=(E,T,O={})=>{const W=q(n,E),V=a.array.has(E),U=at(T);Pe(i,E,U),V?(h.array.next({name:E,values:at(i)}),(u.isDirty||u.dirtyFields||f.isDirty||f.dirtyFields)&&O.shouldDirty&&h.state.next({name:E,dirtyFields:Xo(s,i),isDirty:G(E,U)})):W&&!W._f&&!Pt(U)?ee(E,U,O):$(E,U,O),Qv(E,a)&&h.state.next({...r,name:E}),h.state.next({name:o.mount?E:void 0,values:at(i)})},X=async E=>{o.mount=!0;const T=E.target;let O=T.name,W=!0;const V=q(n,O),U=Ae=>{W=Number.isNaN(Ae)||Hs(Ae)&&isNaN(Ae.getTime())||yn(Ae,q(i,O,Ae))},Q=Gv(e.mode),we=Gv(e.reValidateMode);if(V){let Ae,It;const un=T.type?Kv(V._f):b_(E),Vr=E.type===su.BLUR||E.type===su.FOCUS_OUT,vl=!k2(V._f)&&!e.resolver&&!q(r.errors,O)&&!V._f.deps||j2
vendor: 4,181 bytes, line 288
288(Vr,q(r.touchedFields,O),r.isSubmitted,we,Q),js=Qv(O,a,Vr);Pe(i,O,un),Vr?(V._f.onBlur&&V._f.onBlur(E),l&&l(0)):V._f.onChange&&V._f.onChange(E);const zr=S(O,un,Vr),yl=!Mt(zr)||js;if(!Vr&&h.state.next({name:O,type:E.type,values:at(i)}),vl)return(u.isValid||f.isValid)&&(e.mode==="onBlur"?Vr&&g():Vr||g()),yl&&h.state.next({name:O,...js?{}:zr});if(!Vr&&js&&h.state.next({...r}),e.resolver){const{errors:dn}=await k([O]);if(U(un),W){const vd=Jv(r.errors,n,O),wl=Jv(dn,n,vd.name||O);Ae=wl.error,O=wl.name,It=Mt(dn)}}else y([O],!0),Ae=(await Xv(V,a.disabled,i,p,e.shouldUseNativeValidation))[O],y([O]),U(un),W&&(Ae?It=!1:(u.isValid||f.isValid)&&(It=await j(n,!0)));W&&(V._f.deps&&R(V._f.deps),C(O,It,Ae,zr))}},N=(E,T)=>{if(q(r.errors,T)&&E.focus)return E.focus(),1},R=async(E,T={})=>{let O,W;const V=ba(E);if(e.resolver){const U=await P(Xe(E)?E:V);O=Mt(U),W=E?!V.some(Q=>q(U,Q)):O}else E?(W=(await Promise.all(V.map(async U=>{const Q=q(n,U);return await j(Q&&Q._f?{[U]:Q}:Q)}))).every(Boolean),!(!W&&!r.isValid)&&g()):W=O=await j(n);return h.state.next({...!en(E)||(u.isValid||f.isValid)&&O!==r.isValid?{}:{name:E},...e.resolver||!E?{isValid:O}:{},errors:r.errors}),T.shouldFocus&&!W&&_a(n,N,E?V:a.mount),W},z=E=>{const T={...o.mount?i:s};return Xe(E)?T:en(E)?q(T,E):E.map(O=>q(T,O))},ie=(E,T)=>({invalid:!!q((T||r).errors,E),isDirty:!!q((T||r).dirtyFields,E),error:q((T||r).errors,E),isValidating:!!q(r.validatingFields,E),isTouched:!!q((T||r).touchedFields,E)}),se=E=>{E&&ba(E).forEach(T=>rt(r.errors,T)),h.state.next({errors:E?r.errors:{}})},le=(E,T,O)=>{const W=(q(n,E,{_f:{}})._f||{}).ref,V=q(r.errors,E)||{},{ref:U,message:Q,type:we,...Ae}=V;Pe(r.errors,E,{...Ae,...T,ref:W}),h.state.next({name:E,errors:r.errors,isValid:!1}),O&&O.shouldFocus&&W&&W.focus&&W.focus()},ae=(E,T)=>Nr(E)?h.state.subscribe({next:O=>"values"in O&&E(M(void 0,T),O)}):M(E,T,!0),Re=E=>h.state.subscribe({next:T=>{T2(E.name,T.name,E.exact)&&C2(T,E.formState||u,ln,E.reRenderRoot)&&E.callback({values:{...i},...r,...T,defaultValues:s})}}).unsubscribe,Ve=E=>(o.mount=!0,f={...f,...E.formState},Re({...E,formState:f})),H=(E,T={})=>{for(const O of E?ba(E):a.mount)a.mount.delete(O),a.array.delete(O),T.keepValue||(rt(n,O),rt(i,O)),!T.keepError&&rt(r.errors,O),!T.keepDirty&&rt(r.dirtyFields,O),!T.keepTouched&&rt(r.touchedFields,O),!T.keepIsValidating&&rt(r.validatingFields,O),!e.shouldUnregister&&!T.keepDefaultValue&&rt(s,O);h.state.next({values:at(i)}),h.state.next({...r,...T.keepDirty?{isDirty:G()}:{}}),!T.keepIsValid&&g()},Ce=({disabled:E,name:T})=>{(qt(E)&&o.mount||E||a.disabled.has(T))&&(E?a.disabled.add(T):a.disabled.delete(T))},De=(E,T={})=>{let O=q(n,E);const W=qt(T.disabled)||qt(e.disabled);return Pe(n,E,{...O||{},_f:{...O&&O._f?O._f:{ref:{name:E}},name:E,mount:!0,...T}}),a.mount.add(E),O?Ce({disabled:qt(T.disabled)?T.disabled:e.disabled,name:E}):_(E,!0,T.value),{...W?{disabled:T.disabled||e.disabled}:{},...e.progressive?{required:!!T.required,min:ea(T.min),max:ea(T.max),minLength:ea(T.minLength),maxLength:ea(T.maxLength),pattern:ea(T.pattern)}:{},name:E,onChange:X,onBlur:X,ref:V=>{if(V){De(E,T),O=q(n,E);const U=Xe(V.value)&&V.querySelectorAll&&V.querySelectorAll("input,select,textarea")[0]||V,Q=x2(U),we=O._f.refs||[];if(Q?we.find(Ae=>Ae===U):U===O._f.ref)return;Pe(n,E,{_f:{...O._f,...Q?{refs:[...we.filter(ef),U,...Array.isArray(q(s,E))?[{}]:[]],ref:{type:U.type,name:E}}:{ref:U}}}),_(E,!1,void 0,U)}else O=q(n,E,{}),O._f&&(O._f.mount=!1),(e.shouldUnregister||T.shouldUnregister)&&!(__(a.array,E)&&o.action)&&a.unMount.add(E)}}},xe=()=>e.shouldFocusError&&_a(n,N,a.mount),ye=E=>{qt(E)&&(h.state.next({disabled:E}),_a(n,(T,O)=>{const W=q(n,O);W&&(T.disabled=W._f.disabled||E,Array.isArray(W._f.refs)&&W._f.refs.forEach(V=>{V.disabled=W._f.disabled||E}))},0,!1))},be=(E,T)=>async O=>{let W;O&&(O.preventDefault&&O.preventDefault(),O.persist&&O.persist());let V=at(i);if(h.state.next({isSubmitting:!0}),e.resolver){const{errors:U,values:Q}=await k();r.errors=U,V=at(Q)}else await j(n);if(a.disabled.size)for(const U of a.disabled)rt(V,U);if(rt(r.errors,"root"),Mt(r.errors)){h.state.next({errors:{}});try{await E(V,O)}catch(U){W=U}}else T&&await T({...r.errors},O),xe(),setTimeout(xe);
288if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Mt(r.errors)&&!W,submitCount:r.submitCount+1,errors:r.errors}),W)throw W},ut=(E,T={})=>{q(n,E)&&(Xe(T.defaultValue)?K(E,at(q(s,E))):(K(E,T.defaultValue),Pe(s,E,at(T.defaultValue))),T.keepTouched||rt(r.touchedFields,E),T.keepDirty||(rt(r.dirtyFields,E),r.isDirty=T.defaultValue?G(E,at(q(s,E))):G()),T.keepError||(rt(r.errors,E),u.isValid&&g()),h.state.next({...r}))},Ct=(E,T={})=>{const O=E?at(E):s,W=at(O),V=Mt(E),U=V?s:W;if(T.keepDefaultValues||(s=O),!T.keepValues){if(T.keepDirtyValues){const Q=new Set([...a.mount,...Object.keys(Xo(s,i))]);for(const we of Array.from(Q))q(r.dirtyFields,we)?Pe(U,we,q(i,we)):K(we,q(U,we))}else{if(mm&&Xe(E))for(const Q of a.mount){const we=q(n,Q);if(we&&we._f){const Ae=Array.isArray(we._f.refs)?we._f.refs[0]:we._f.ref;if(iu(Ae)){const It=Ae.closest("form");if(It){It.reset();break}}}}if(T.keepFieldsRef)for(const Q of a.mount)K(Q,q(U,Q));else n={}}i=e.shouldUnregister?T.keepDefaultValues?at(s):{}:at(U),h.array.next({values:{...U}}),h.state.next({values:{...U}})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!T.keepIsValid||!!T.keepDirtyValues,o.watch=!!e.shouldUnregister,h.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:V?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!yn(E,s)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:V?{}:T.keepDirtyValues?T.keepDefaultValues&&i?Xo(s,i):r.dirtyFields:T.keepDefaultValues&&E?Xo(s,E):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ur=(E,T)=>Ct(Nr(E)?E(i):E,T),Br=(E,T={})=>{const O=q(n,E),W=O&&O._f;if(W){const V=W.refs?W.refs[0]:W.ref;V.focus&&(V.focus(),T.shouldSelect&&Nr(V.select)&&V.select())}},ln=E=>{r={...r,...E}},cn={control:{register:De,unregister:H,getFieldState:ie,handleSubmit:be,setError:le,_subscribe:Re,_runSchema:k,_focusError:xe,_getWatch:M,_getDirty:G,_setValid:g,_setFieldArray:w,_setDisabledField:Ce,_setErrors:v,_getFieldArray:B,_reset:Ct,_resetDefaultValues:()=>Nr(e.defaultValues)&&e.defaultValues().then(E=>{Ur(E,e.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:D,_disableForm:ye,_subjects:h,_proxyFormState:u,get _fields(){return n},get _formValues(){return i},get _state(){return o},set _state(E){o=E},get _defaultValues(){return s},get _names(){return a},set _names(E){a=E},get _formState(){return r},get _options(){return e},set _options(E){e={...e,...E}}},subscribe:Ve,trigger:R,register:De,handleSubmit:be,watch:ae,setValue:K,getValues:z,reset:Ur,resetField:ut,clearErrors:se,unregister:H,setError:le,setFocus:Br,getFieldState:ie};return{...cn,formControl:cn}}function A2(t={}){const e=A.useRef(void 0),r=A.useRef(void 0),[n,s]=A.useState({isDirty:!1,isValidating:!1,isLoading:Nr(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:Nr(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current={...t.formControl,formState:n},t.defaultValues&&!Nr(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const{formControl:o,...a}=R2(t);e.current={...a,formState:n}}const i=e.current.control;return i._options=t,wm(()=>{const o=i._subscribe({formState:i._proxyFormState,callback:()=>s({...i._formState}),reRenderRoot:!0});return s(a=>({...a,isReady:!0})),i._formState.isReady=!0,o},[i]),A.useEffect(()=>i._disableForm(t.disabled),[i,t.disabled]),A.useEffect(()=>{t.mode&&(i._options.mode=t.mode),t.reValidateMode&&(i._options.reValidateMode=t.reValidateMode)},[i,t.mode,t.reValidateMode]),A.useEffect(()=>{t.errors&&(i._setErrors(t.errors),i._focusError())},[i,t.errors]),A.useEffect(()=>{t.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,t.shouldUnregister]),A.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==n.isDirty&&i._subjects.state.next({isDirty:o})}},[i,n.isDirty]),A.useEffect(()=>{t.values&&!yn(t.values,r.current)?(i._reset(t.values,{keepFieldsRef:!0,...i._options.resetOptions}),r.current=t.values,s(o=>({...o}))):i._resetDefaultValues()},[i,t.values]),A.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),e.current.formState=S_(n,i),e.current}const ey=(t,e,r)=>{if(t&&"reportValidity"in t){const n=q(r,e);t.setCustomValidity(n&&n.message||""),t.reportValidity()}},R_=(t,e)=>{for(const r in e.fields){const n=e.fields[r];n&&n.ref&&"reportValidity"in n.ref?ey(n.ref,r,t):n.refs&&n.refs.forEac
vendor: 3,044 bytes, line 288
288h(s=>ey(s,r,t))}},I2=(t,e)=>{e.shouldUseNativeValidation&&R_(t,e);const r={};for(const n in t){const s=q(e.fields,n),i=Object.assign(t[n]||{},{ref:s&&s.ref});if(D2(e.names||Object.keys(t),n)){const o=Object.assign({},q(r,n));Pe(o,"root",i),Pe(r,n,o)}else Pe(r,n,i)}return r},D2=(t,e)=>t.some(r=>r.startsWith(e+"."));var M2=function(t,e){for(var r={};t.length;){var n=t[0],s=n.code,i=n.message,o=n.path.join(".");if(!r[o])if("unionErrors"in n){var a=n.unionErrors[0].errors[0];r[o]={message:a.message,type:a.code}}else r[o]={message:i,type:s};if("unionErrors"in n&&n.unionErrors.forEach(function(u){return u.errors.forEach(function(f){return t.push(f)})}),e){var l=r[o].types,c=l&&l[n.code];r[o]=k_(o,e,r,s,c?[].concat(c,n.message):n.message)}t.shift()}return r},$2=function(t,e,r){return r===void 0&&(r={}),function(n,s,i){try{return Promise.resolve(function(o,a){try{var l=Promise.resolve(t[r.mode==="sync"?"parse":"parseAsync"](n,e)).then(function(c){return i.shouldUseNativeValidation&&R_({},i),{errors:{},values:r.raw?n:c}})}catch(c){return a(c)}return l&&l.then?l.then(void 0,a):l}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:I2(M2(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},je;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function r(s){throw new Error}t.assertNever=r,t.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},t.getValidEnumValues=s=>{const i=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return t.objectValues(o)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},t.find=(s,i)=>{for(const o of s)if(i(o))return o},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}t.joinValues=n,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(je||(je={}));var ty;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(ty||(ty={}));const te=je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qn=t=>{switch(typeof t){case"undefined":return te.undefined;case"string":return te.string;case"number":return Number.isNaN(t)?te.nan:te.number;case"boolean":return te.boolean;case"function":return te.function;case"bigint":return te.bigint;case"symbol":return te.symbol;case"object":return Array.isArray(t)?te.array:t===null?te.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?te.promise:typeof Map<"u"&&t instanceof Map?te.map:typeof Set<"u"&&t instanceof Set?te.set:typeof Date<"u"&&t instanceof Date?te.date:te.object;default:return te.unknown}}
vendor: 5,706 bytes, line 288
288,F=je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class jn extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(i){return i.message},n={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),n}static assert(e){if(!(e instanceof jn))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},n=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];r[i]=r[i]||[],r[i].push(e(s))}else n.push(e(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}jn.create=t=>new jn(t);const kh=(t,e)=>{let r;switch(t.code){case F.invalid_type:t.received===te.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case F.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,je.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:r=`Unrecognized key(s) in object: ${je.joinValues(t.keys,", ")}`;break;case F.invalid_union:r="Invalid input";break;case F.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${je.joinValues(t.options)}`;break;case F.invalid_enum_value:r=`Invalid enum value. Expected ${je.joinValues(t.options)}, received '${t.received}'`;break;case F.invalid_arguments:r="Invalid function arguments";break;case F.invalid_return_type:r="Invalid function return type";break;case F.invalid_date:r="Invalid date";break;case F.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:je.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case F.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case F.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case F.custom:r="Invalid input";break;case F.invalid_intersection_types:r="Intersection results could not be merged";break;case F.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case F.not_finite:r="Number must be finite";break;default:r=e.defaultError,je.assertNever(t)}return{message:r}};let L2=kh;function F2(){return L2}const U2=t=>{const{data:e,path:r,errorMaps:n,issueData:s}=t,i=[...r,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:e,defaultError:a}).message;return{...s,path:i,message:a}};function Y(t,e){const r=F2(),n=U2({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===kh?void 0:kh].filter(s=>!!s)});t.common.issues.push(n)}class Xt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const s of r){if(s.status==="aborted")return ce;s.status==="dirty"&&e.dirty(),n.push(s.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const s of r){const i=await s.key,o=await s.value;n.push({key:i,value:o})}return Xt.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const s of r){const{key:i,value:o}=s;
vendor: 28,128 bytes, line 288
288if(i.status==="aborted"||o.status==="aborted")return ce;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(n[i.value]=o.value)}return{status:e.value,value:n}}}const ce=Object.freeze({status:"aborted"}),ia=t=>({status:"dirty",value:t}),fr=t=>({status:"valid",value:t}),ry=t=>t.status==="aborted",ny=t=>t.status==="dirty",ko=t=>t.status==="valid",lu=t=>typeof Promise<"u"&&t instanceof Promise;var ne;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ne||(ne={}));class ws{constructor(e,r,n,s){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const sy=(t,e)=>{if(ko(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new jn(t.common.issues);return this._error=r,this._error}}};function ge(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:s}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(o,a)=>{const{message:l}=t;return o.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:l??r??a.defaultError}},description:s}}class ke{get description(){return this._def.description}_getType(e){return qn(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Xt,ctx:{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(lu(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},s=this._parseSync({data:e,path:n.path,parent:n});return sy(n,s)}"~validate"(e){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:r});return ko(i)?{value:i.value}:{issues:r.common.issues}}catch(i){(s=(n=i==null?void 0:i.message)==null?void 0:n.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(i=>ko(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},s=this._parse({data:e,path:n.path,parent:n}),i=await(lu(s)?s:Promise.resolve(s));return sy(n,i)}refine(e,r){const n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,i)=>{const o=e(s),a=()=>i.addIssue({code:F.custom,...n(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,s)=>e(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(e){return new To({schema:this,typeName:ue.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return ps.create(this,this._def)}nullable(){return jo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return sn.create(this)}promise(){return fu.create(this,this._def)}or(e){return uu.create([this,e],this._def)}and(e){return du.create(this,e,this._def)}transform(e){return new To({...ge(this._def),schema:this,typeName:ue.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new jh({...ge(this._def),innerType:this,defaultValue:r,typeName:ue.ZodDefault})}brand(){return new cA({typeName:ue.ZodBranded,type:this,...ge(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new Ph({...ge(this._def),innerType:this,catchValue:r,typeName:ue.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return _m.create(this,e)}readonly(){return Nh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const B2=/^c[^\s-]{8,}$/i,V2=/^[0-9a-z]+$/,z2=/^[0-9A-HJKMNP-TV-Z]{26}$/i,W2=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,H2=/^[a-z0-9_-]{21}$/i,q2=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,K2=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,G2=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Y2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let tf;const Q2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,J2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Z2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,X2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,eA=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,tA=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,A_="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",rA=new RegExp(`^${A_}$`);function I_(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function nA(t){return new RegExp(`^${I_(t)}$`)}function sA(t){let e=`${A_}T${I_(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function iA(t,e){return!!((e==="v4"||!e)&&Q2.test(t)||(e==="v6"||!e)&&Z2.test(t))}function oA(t,e){if(!q2.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function aA(t,e){return!!((e==="v4"||!e)&&J2.test(t)||(e==="v6"||!e)&&X2.test(t))}class is extends ke{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==te.string){const i=this._getOrReturnCtx(e);return Y(i,{code:F.invalid_type,expected:te.string,received:i.parsedType}),ce}const n=new Xt;let s;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),Y(s,{code:F.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),Y(s,{code:F.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const o=e.data.length>i.value,a=e.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(e,s),o?Y(s,{code:F.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&Y(s,{code:F.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")G2.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"email",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")tf||(tf=new RegExp(Y2,"u")),tf.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"emoji",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")W2.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"uuid",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")H2.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"nanoid",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")B2.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"cuid",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")V2.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"cuid2",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")z2.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"ulid",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),Y(s,{validation:"url",code:F.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"regex",code:F.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),Y(s,{code:F.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),Y(s,{code:F.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),Y(s,{code:F.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?sA(i).test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{code:F.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?rA.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{code:F.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?nA(i).test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{code:F.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?K2.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"duration",code:F.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?iA(e.data,i.version)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"ip",code:F.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?oA(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"jwt",code:F.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?aA(e.data,i.version)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"cidr",code:F.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?eA.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"base64",code:F.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?tA.test(e.data)||(s=this._getOrReturnCtx(e,s),Y(s,{validation:"base64url",code:F.invalid_string,message:i.message}),n.dirty()):je.assertNever(i);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(s=>e.test(s),{validation:r,code:F.invalid_string,...ne.errToObj(n)})}_addCheck(e){return new is({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ne.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ne.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ne.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ne.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ne.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ne.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ne.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ne.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ne.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ne.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ne.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ne.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ne.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...ne.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...ne.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ne.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ne.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...ne.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ne.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ne.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ne.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ne.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ne.errToObj(r)})}nonempty(e){return this.min(1,ne.errToObj(e))}trim(){return new is({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new is({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new is({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}is.create=t=>new is({checks:[],typeName:ue.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...ge(t)});function lA(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,s=r>n?r:n,i=Number.parseInt(t.toFixed(s).replace(".","")),o=Number.parseInt(e.toFixed(s).replace(".",""));return i%o/10**s}class Ga extends ke{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==te.number){const i=this._getOrReturnCtx(e);return Y(i,{code:F.invalid_type,expected:te.number,received:i.parsedType}),ce}let n;const s=new Xt;for(const i of this._def.checks)i.kind==="int"?je.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),Y(n,{code:F.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),Y(n,{code:F.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),Y(n,{code:F.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?lA(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),Y(n,{code:F.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),Y(n,{code:F.not_finite,message:i.message}),s.dirty()):je.assertNever(i);return{status:s.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ne.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ne.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ne.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ne.toString(r))}setLimit(e,r,n,s){return new Ga({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ne.toString(s)}]})}_addCheck(e){return new Ga({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ne.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ne.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ne.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ne.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ne.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ne.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ne.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ne.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ne.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&je.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}}Ga.create=t=>new Ga({checks:[],typeName:ue.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...ge(t)});class Ya extends ke{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==te.bigint)return this._getInvalidInput(e);let n;const s=new Xt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),Y(n,{code:F.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),Y(n,{code:F.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),Y(n,{code:F.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):je.assertNever(i);return{status:s.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return Y(r,{code:F.invalid_type,expected:te.bigint,received:r.parsedType}),ce}gte(e,r){return this.setLimit("min",e,!0,ne.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ne.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ne.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ne.toString(r))}setLimit(e,r,n,s){return new Ya({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ne.toString(s)}]})}_addCheck(e){return new Ya({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ne.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ne.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ne.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ne.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ne.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Ya.create=t=>new Ya({checks:[],typeName:ue.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...ge(t)});class iy extends ke{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==te.boolean){const n=this._getOrReturnCtx(e);return Y(n,{code:F.invalid_type,expected:te.boolean,received:n.parsedType}),ce}return fr(e.data)}}iy.create=t=>new iy({typeName:ue.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...ge(t)});class cu extends ke{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==te.date){const i=this._getOrReturnCtx(e);return Y(i,{code:F.invalid_type,expected:te.date,received:i.parsedType}),ce}if(Number.isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return Y(i,{code:F.invalid_date}),ce}const n=new Xt;let s;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),Y(s,{code:F.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),Y(s,{code:F.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):je.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new cu({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ne.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ne.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}cu.create=t=>new cu({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ue.ZodDate,...ge(t)});class oy extends ke{_parse(e){if(this._getType(e)!==te.symbol){const n=this._getOrReturnCtx(e);return Y(n,{code:F.invalid_type,expected:te.symbol,received:n.parsedType}),ce}return fr(e.data)}}oy.create=t=>new oy({typeName:ue.ZodSymbol,...ge(t)});class ay extends ke{_parse(e){if(this._getType(e)!==te.undefined){const n=this._getOrReturnCtx(e);return Y(n,{code:F.invalid_type,expected:te.undefined,received:n.parsedType}),ce}return fr(e.data)}}ay.create=t=>new ay({typeName:ue.ZodUndefined,...ge(t)});class ly extends ke{_parse(e){if(this._getType(e)!==te.null){const n=this._getOrReturnCtx(e);return Y(n,{code:F.invalid_type,expected:te.null,received:n.parsedType}),ce}return fr(e.data)}}ly.create=t=>new ly({typeName:ue.ZodNull,...ge(t)});class cy extends ke{constructor(){super(...arguments),this._any=!0}_parse(e){return fr(e.data)}}cy.create=t=>new cy({typeName:ue.ZodAny,...ge(t)});class uy extends ke{constructor(){super(...arguments),this._unknown=!0}_parse(e){return fr(e.data)}}uy.create=t=>new uy({typeName:ue.ZodUnknown,...ge(t)});class xs extends ke{_parse(e){const r=this._getOrReturnCtx(e);return Y(r,{code:F.invalid_type,expected:te.never,received:r.parsedType}),ce}}xs.create=t=>new xs({typeName:ue.ZodNever,...ge(t)});class dy extends ke{_parse(e){if(this._getType(e)!==te.undefined){const n=this._getOrReturnCtx(e);return Y(n,{code:F.invalid_type,expected:te.void,received:n.parsedType}),ce}return fr(e.data)}}dy.create=t=>new dy({typeName:ue.ZodVoid,...ge(t)});class sn extends ke{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),s=this._def;if(r.parsedType!==te.array)return Y(r,{code:F.invalid_type,expected:te.array,received:r.parsedType}),ce;if(s.exactLength!==null){const o=r.data.length>s.exactLength.value,a=r.data.length<s.exactLength.value;(o||a)&&(Y(r,{code:o?F.too_big:F.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(Y(r,{code:F.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(Y(r,{code:F.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>s.type._parseAsync(new ws(r,o,r.path,a)))).then(o=>Xt.mergeArray(n,o));const i=[...r.data].map((o,a)=>s.type._parseSync(new ws(r,o,r.path,a)));return Xt.mergeArray(n,i)}
vendor: 5,082 bytes, line 288
288get element(){return this._def.type}min(e,r){return new sn({...this._def,minLength:{value:e,message:ne.toString(r)}})}max(e,r){return new sn({...this._def,maxLength:{value:e,message:ne.toString(r)}})}length(e,r){return new sn({...this._def,exactLength:{value:e,message:ne.toString(r)}})}nonempty(e){return this.min(1,e)}}sn.create=(t,e)=>new sn({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ue.ZodArray,...ge(e)});function Oi(t){if(t instanceof Je){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=ps.create(Oi(n))}return new Je({...t._def,shape:()=>e})}else return t instanceof sn?new sn({...t._def,type:Oi(t.element)}):t instanceof ps?ps.create(Oi(t.unwrap())):t instanceof jo?jo.create(Oi(t.unwrap())):t instanceof li?li.create(t.items.map(e=>Oi(e))):t}class Je extends ke{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=je.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==te.object){const c=this._getOrReturnCtx(e);return Y(c,{code:F.invalid_type,expected:te.object,received:c.parsedType}),ce}const{status:n,ctx:s}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof xs&&this._def.unknownKeys==="strip"))for(const c in s.data)o.includes(c)||a.push(c);const l=[];for(const c of o){const u=i[c],f=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ws(s,f,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof xs){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(c==="strict")a.length>0&&(Y(s,{code:F.unrecognized_keys,keys:a}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const f=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ws(s,f,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const f=await u.key,h=await u.value;c.push({key:f,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>Xt.mergeObjectSync(n,c)):Xt.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return ne.errToObj,new Je({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:ne.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new Je({...this._def,unknownKeys:"strip"})}passthrough(){return new Je({...this._def,unknownKeys:"passthrough"})}extend(e){return new Je({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Je({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ue.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Je({...this._def,catchall:e})}pick(e){const r={};for(const n of je.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new Je({...this._def,shape:()=>r})}omit(e){const r={};for(const n of je.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new Je({...this._def,shape:()=>r})}deepPartial(){return Oi(this)}partial(e){const r={};for(const n of je.objectKeys(this.shape)){const s=this.shape[n];e&&!e[n]?r[n]=s:r[n]=s.optional()}return new Je({...this._def,shape:()=>r})}required(e){const r={};for(const n of je.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof ps;)i=i._def.innerType;r[n]=i}return new Je({...this._def,shape:()=>r})}keyof(){return D_(je.objectKeys(this.shape))}}Je.create=(t,e)=>new Je({shape:()=>t,unknownKeys:"strip",catchall:xs.create(),typeName:ue.ZodObject,...ge(e)});Je.strictCreate=(t,e)=>new Je({shape:()=>t,unknownKeys:"strict",catchall:xs.create(),typeName:ue.ZodObject,...ge(e)});Je.lazycreate=(t,e)=>new Je({shape:t,unknownKeys:"strip",catchall:xs.create(),typeName:ue.ZodObject,...ge(e)});class uu extends ke{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new jn(a.ctx.common.issues));return Y(r,{code:F.invalid_union,unionErrors:o}),ce}if(r.common.async)return Promise.all(n.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;
vendor: 5,024 bytes, line 288
288const a=o.map(l=>new jn(l));return Y(r,{code:F.invalid_union,unionErrors:a}),ce}}get options(){return this._def.options}}uu.create=(t,e)=>new uu({options:t,typeName:ue.ZodUnion,...ge(e)});function Ch(t,e){const r=qn(t),n=qn(e);if(t===e)return{valid:!0,data:t};if(r===te.object&&n===te.object){const s=je.objectKeys(e),i=je.objectKeys(t).filter(a=>s.indexOf(a)!==-1),o={...t,...e};for(const a of i){const l=Ch(t[a],e[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(r===te.array&&n===te.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let i=0;i<t.length;i++){const o=t[i],a=e[i],l=Ch(o,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return r===te.date&&n===te.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class du extends ke{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),s=(i,o)=>{if(ry(i)||ry(o))return ce;const a=Ch(i.value,o.value);return a.valid?((ny(i)||ny(o))&&r.dirty(),{status:r.value,value:a.data}):(Y(n,{code:F.invalid_intersection_types}),ce)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}du.create=(t,e,r)=>new du({left:t,right:e,typeName:ue.ZodIntersection,...ge(r)});class li extends ke{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==te.array)return Y(n,{code:F.invalid_type,expected:te.array,received:n.parsedType}),ce;if(n.data.length<this._def.items.length)return Y(n,{code:F.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ce;!this._def.rest&&n.data.length>this._def.items.length&&(Y(n,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new ws(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>Xt.mergeArray(r,o)):Xt.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new li({...this._def,rest:e})}}li.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new li({items:t,typeName:ue.ZodTuple,rest:null,...ge(e)})};class fy extends ke{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==te.map)return Y(n,{code:F.invalid_type,expected:te.map,received:n.parsedType}),ce;const s=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([a,l],c)=>({key:s._parse(new ws(n,a,n.path,[c,"key"])),value:i._parse(new ws(n,l,n.path,[c,"value"]))}));if(n.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return ce;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return ce;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}}}}fy.create=(t,e,r)=>new fy({valueType:e,keyType:t,typeName:ue.ZodMap,...ge(r)});class Qa extends ke{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==te.set)return Y(n,{code:F.invalid_type,expected:te.set,received:n.parsedType}),ce;const s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(Y(n,{code:F.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(Y(n,{code:F.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const i=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return ce;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const a=[...n.data.values()].map((l,c)=>i._parse(new ws(n,l,n.path,c)));return n.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(e,r){return new Qa({...this._def,minSize:{value:e,message:ne.toString(r)}})}max(e,r){return new Qa({...this._def,maxSize:{value:e,message:ne.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}Qa.create=(t,e)=>new Qa({valueType:t,minSize:null,maxSize:null,typeName:ue.ZodSet,...ge(e)});class hy extends ke{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}hy.create=(t,e)=>new hy({getter:t,typeName:ue.ZodLazy,...ge(e)});class Th extends ke{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return Y(r,{received:r.data,code:F.invalid_literal,expected:this._def.value}),ce}
vendor: 4,570 bytes, line 288
288return{status:"valid",value:e.data}}get value(){return this._def.value}}Th.create=(t,e)=>new Th({value:t,typeName:ue.ZodLiteral,...ge(e)});function D_(t,e){return new Co({values:t,typeName:ue.ZodEnum,...ge(e)})}class Co extends ke{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return Y(r,{expected:je.joinValues(n),received:r.parsedType,code:F.invalid_type}),ce}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return Y(r,{received:r.data,code:F.invalid_enum_value,options:n}),ce}return fr(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Co.create(e,{...this._def,...r})}exclude(e,r=this._def){return Co.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}Co.create=D_;class py extends ke{_parse(e){const r=je.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==te.string&&n.parsedType!==te.number){const s=je.objectValues(r);return Y(n,{expected:je.joinValues(s),received:n.parsedType,code:F.invalid_type}),ce}if(this._cache||(this._cache=new Set(je.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const s=je.objectValues(r);return Y(n,{received:n.data,code:F.invalid_enum_value,options:s}),ce}return fr(e.data)}get enum(){return this._def.values}}py.create=(t,e)=>new py({values:t,typeName:ue.ZodNativeEnum,...ge(e)});class fu extends ke{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==te.promise&&r.common.async===!1)return Y(r,{code:F.invalid_type,expected:te.promise,received:r.parsedType}),ce;const n=r.parsedType===te.promise?r.data:Promise.resolve(r.data);return fr(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}fu.create=(t,e)=>new fu({type:t,typeName:ue.ZodPromise,...ge(e)});class To extends ke{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ue.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:o=>{Y(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return ce;const l=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return l.status==="aborted"?ce:l.status==="dirty"||r.value==="dirty"?ia(l.value):l});{if(r.value==="aborted")return ce;const a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?ce:a.status==="dirty"||r.value==="dirty"?ia(a.value):a}}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,i);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ce:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?ce:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(s.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ko(o))return ce;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ko(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:r.value,value:a})):ce);je.assertNever(s)}}To.create=(t,e,r)=>new To({schema:t,typeName:ue.ZodEffects,effect:e,...ge(r)});To.createWithPreprocess=(t,e,r)=>new To({schema:e,effect:{type:"preprocess",transform:t},typeName:ue.ZodEffects,...ge(r)});class ps extends ke{_parse(e){return this._getType(e)===te.undefined?fr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ps.create=(t,e)=>new ps({innerType:t,typeName:ue.ZodOptional,...ge(e)});
vendor: 4,339 bytes, line 288
288class jo extends ke{_parse(e){return this._getType(e)===te.null?fr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}jo.create=(t,e)=>new jo({innerType:t,typeName:ue.ZodNullable,...ge(e)});class jh extends ke{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===te.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}jh.create=(t,e)=>new jh({innerType:t,typeName:ue.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ge(e)});class Ph extends ke{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return lu(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new jn(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new jn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ph.create=(t,e)=>new Ph({innerType:t,typeName:ue.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ge(e)});class my extends ke{_parse(e){if(this._getType(e)!==te.nan){const n=this._getOrReturnCtx(e);return Y(n,{code:F.invalid_type,expected:te.nan,received:n.parsedType}),ce}return{status:"valid",value:e.data}}}my.create=t=>new my({typeName:ue.ZodNaN,...ge(t)});class cA extends ke{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class _m extends ke{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ce:i.status==="dirty"?(r.dirty(),ia(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ce:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(e,r){return new _m({in:e,out:r,typeName:ue.ZodPipeline})}}class Nh extends ke{_parse(e){const r=this._def.innerType._parse(e),n=s=>(ko(s)&&(s.value=Object.freeze(s.value)),s);return lu(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}}Nh.create=(t,e)=>new Nh({innerType:t,typeName:ue.ZodReadonly,...ge(e)});Je.lazycreate;var ue;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ue||(ue={}));const Cr=is.create;xs.create;sn.create;const M_=Je.create;Je.strictCreate;uu.create;du.create;li.create;const oa=Th.create;Co.create;fu.create;ps.create;jo.create;const Or=x.forwardRef(({className:t,type:e,...r},n)=>d.jsx("input",{type:e,className:_e("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",t),ref:n,...r}));Or.displayName="Input";const Sm=x.forwardRef(({className:t,...e},r)=>d.jsx("textarea",{className:_e("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
288ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...e}));Sm.displayName="Textarea";function gy(t,[e,r]){return Math.min(r,Math.max(e,t))}var uA=x.createContext(void 0);function dA(t){const e=x.useContext(uA);return t||e||"ltr"}var rf=0;function $_(){x.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??vy()),document.body.insertAdjacentElement("beforeend",t[1]??vy()),rf++,()=>{rf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),rf--}},[])}function vy(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var nf="focusScope.autoFocusOnMount",sf="focusScope.autoFocusOnUnmount",yy={bubbles:!1,cancelable:!0},fA="FocusScope",Em=x.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=t,[a,l]=x.useState(null),c=Dr(s),u=Dr(i),f=x.useRef(null),h=Be(e,g=>l(g)),p=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(n){let g=function(v){if(p.paused||!a)return;const _=v.target;a.contains(_)?f.current=_:Fn(f.current,{select:!0})},y=function(v){if(p.paused||!a)return;const _=v.relatedTarget;_!==null&&(a.contains(_)||Fn(f.current,{select:!0}))},w=function(v){if(document.activeElement===document.body)for(const S of v)S.removedNodes.length>0&&Fn(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const m=new MutationObserver(w);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),m.disconnect()}}},[n,a,p.paused]),x.useEffect(()=>{if(a){xy.add(p);const g=document.activeElement;if(!a.contains(g)){const w=new CustomEvent(nf,yy);a.addEventListener(nf,c),a.dispatchEvent(w),w.defaultPrevented||(hA(yA(L_(a)),{select:!0}),document.activeElement===g&&Fn(a))}return()=>{a.removeEventListener(nf,c),setTimeout(()=>{const w=new CustomEvent(sf,yy);a.addEventListener(sf,u),a.dispatchEvent(w),w.defaultPrevented||Fn(g??document.body,{select:!0}),a.removeEventListener(sf,u),xy.remove(p)},0)}}},[a,c,u,p]);const b=x.useCallback(g=>{if(!r&&!n||p.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(y&&w){const m=g.currentTarget,[v,_]=pA(m);v&&_?!g.shiftKey&&w===_?(g.preventDefault(),r&&Fn(v,{select:!0})):g.shiftKey&&w===v&&(g.preventDefault(),r&&Fn(_,{select:!0})):w===m&&g.preventDefault()}},[r,n,p.paused]);return d.jsx(Se.div,{tabIndex:-1,...o,ref:h,onKeyDown:b})});Em.displayName=fA;function hA(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Fn(n,{select:e}),document.activeElement!==r)return}function pA(t){const e=L_(t),r=wy(e,t),n=wy(e.reverse(),t);return[r,n]}function L_(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function wy(t,e){for(const r of t)if(!mA(r,{upTo:e}))return r}function mA(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function gA(t){return t instanceof HTMLInputElement&&"select"in t}function Fn(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&gA(t)&&e&&t.select()}}var xy=vA();function vA(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=by(t,e),t.unshift(e)},remove(e){var r;t=by(t,e),(r=t[0])==null||r.resume()}}}function by(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function yA(t){return t.filter(e=>e.tagName!=="A")}function wA(t){const e=x.useRef({value:t,previous:t});return x.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var xA=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},bi=new WeakMap,zl=new WeakMap,Wl={},of=0,F_=function(t){return t&&(t.host||F_(t.parentNode))},bA=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=F_(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},_A=function(t,e,r,n){var s=bA(e,Array.isArray(t)?t:[t]);Wl[r]||(Wl[r]=new WeakMap);var i=Wl[r],o=[],a=new Set,l=new Set(s),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};
vendor: 7,018 bytes, line 288
288s.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))u(h);else try{var p=h.getAttribute(n),b=p!==null&&p!=="false",g=(bi.get(h)||0)+1,y=(i.get(h)||0)+1;bi.set(h,g),i.set(h,y),o.push(h),g===1&&b&&zl.set(h,!0),y===1&&h.setAttribute(r,"true"),b||h.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",h,w)}})};return u(e),a.clear(),of++,function(){o.forEach(function(f){var h=bi.get(f)-1,p=i.get(f)-1;bi.set(f,h),i.set(f,p),h||(zl.has(f)||f.removeAttribute(n),zl.delete(f)),p||f.removeAttribute(r)}),of--,of||(bi=new WeakMap,bi=new WeakMap,zl=new WeakMap,Wl={})}},U_=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),s=xA(t);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),_A(n,s,r,"aria-hidden")):function(){return null}},Oh=function(t,e){return Oh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},Oh(t,e)};function B_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Oh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ar=function(){return ar=Object.assign||function(e){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ar.apply(this,arguments)};function Es(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function V_(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function z_(t,e){return function(r,n){e(r,n,t)}}function W_(t,e,r,n,s,i){function o(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var a=n.kind,l=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),f,h=!1,p=r.length-1;p>=0;p--){var b={};for(var g in n)b[g]=g==="access"?{}:n[g];for(var g in n.access)b.access[g]=n.access[g];b.addInitializer=function(w){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(w||null))};var y=(0,r[p])(a==="accessor"?{get:u.get,set:u.set}:u[l],b);if(a==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(f=o(y.get))&&(u.get=f),(f=o(y.set))&&(u.set=f),(f=o(y.init))&&s.unshift(f)}else(f=o(y))&&(a==="field"?s.unshift(f):u[l]=f)}c&&Object.defineProperty(c,n.name,u),h=!0}function H_(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function q_(t){return typeof t=="symbol"?t:"".concat(t)}function K_(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function G_(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Z(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function Y_(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(n=1,s&&(i=c[0]&2?s.return:c[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,c[1])).done)return i;switch(s=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,s=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],s=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var nd=Object.create?function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]};function Q_(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&nd(e,t,r)}function hu(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function km(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function J_(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(km(arguments[e]));return t}function Z_(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),s=0,e=0;e<r;e++)for(var i=arguments[e],o=0,a=i.length;o<a;o++,s++)n[s]=i[o];return n}function Cm(t,e,r){if(r||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function Po(t){return this instanceof Po?(this.v=t,this):new Po(t)}function X_(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),s,i=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),s[Symbol.asyncIterator]=function(){return this},s;function o(p){return function(b){return Promise.resolve(b).then(p,f)}}function a(p,b){n[p]&&(s[p]=function(g){return new Promise(function(y,w){i.push([p,g,
vendor: 4,234 bytes, line 288
288y,w])>1||l(p,g)})},b&&(s[p]=b(s[p])))}function l(p,b){try{c(n[p](b))}catch(g){h(i[0][3],g)}}function c(p){p.value instanceof Po?Promise.resolve(p.value.v).then(u,f):h(i[0][2],p)}function u(p){l("next",p)}function f(p){l("throw",p)}function h(p,b){p(b),i.shift(),i.length&&l(i[0][0],i[0][1])}}function e1(t){var e,r;return e={},n("next"),n("throw",function(s){throw s}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(s,i){e[s]=t[s]?function(o){return(r=!r)?{value:Po(t[s](o)),done:!1}:i?i(o):o}:i}}function t1(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof hu=="function"?hu(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,l){o=t[i](o),s(a,l,o.done,o.value)})}}function s(i,o,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},o)}}function r1(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var SA=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},Rh=function(t){return Rh=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},Rh(t)};function n1(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=Rh(t),n=0;n<r.length;n++)r[n]!=="default"&&nd(e,t,r[n]);return SA(e,t),e}function s1(t){return t&&t.__esModule?t:{default:t}}function i1(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function o1(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r}function a1(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function l1(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(s=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(i){return Promise.reject(i)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}var EA=typeof SuppressedError=="function"?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function c1(t){function e(i){t.error=t.hasError?new EA(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var r,n=0;function s(){for(;r=t.stack.pop();)try{if(!r.async&&n===1)return n=0,t.stack.push(r),Promise.resolve().then(s);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(s,function(o){return e(o),s()})}else n|=1}catch(o){e(o)}if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return s()}function u1(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,s,i,o){return n?e?".jsx":".js":s&&(!i||!o)?r:s+i+"."+o.toLowerCase()+"js"}):t}const kA={__extends:B_,__assign:ar,__rest:Es,__decorate:V_,__param:z_,__esDecorate:W_,__runInitializers:H_,__propKey:q_,__setFunctionName:K_,__metadata:G_,__awaiter:Z,__generator:Y_,__createBinding:nd,__exportStar:Q_,__values:hu,__read:km,__spread:J_,__spreadArrays:Z_,__spreadArray:Cm,__await:Po,__asyncGenerator:X_,__asyncDelegator:e1,__asyncValues:t1,__makeTemplateOb
vendor: 4,847 bytes, line 288
288ject:r1,__importStar:n1,__importDefault:s1,__classPrivateFieldGet:i1,__classPrivateFieldSet:o1,__classPrivateFieldIn:a1,__addDisposableResource:l1,__disposeResources:c1,__rewriteRelativeImportExtension:u1},CA=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:l1,get __assign(){return ar},__asyncDelegator:e1,__asyncGenerator:X_,__asyncValues:t1,__await:Po,__awaiter:Z,__classPrivateFieldGet:i1,__classPrivateFieldIn:a1,__classPrivateFieldSet:o1,__createBinding:nd,__decorate:V_,__disposeResources:c1,__esDecorate:W_,__exportStar:Q_,__extends:B_,__generator:Y_,__importDefault:s1,__importStar:n1,__makeTemplateObject:r1,__metadata:G_,__param:z_,__propKey:q_,__read:km,__rest:Es,__rewriteRelativeImportExtension:u1,__runInitializers:H_,__setFunctionName:K_,__spread:J_,__spreadArray:Cm,__spreadArrays:Z_,__values:hu,default:kA},Symbol.toStringTag,{value:"Module"}));var yc="right-scroll-bar-position",wc="width-before-scroll-bar",TA="with-scroll-bars-hidden",jA="--removed-body-scroll-bar-size";function af(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function PA(t,e){var r=x.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=e,r.facade}var NA=typeof window<"u"?x.useLayoutEffect:x.useEffect,_y=new WeakMap;function OA(t,e){var r=PA(null,function(n){return t.forEach(function(s){return af(s,n)})});return NA(function(){var n=_y.get(r);if(n){var s=new Set(n),i=new Set(t),o=r.current;s.forEach(function(a){i.has(a)||af(a,null)}),i.forEach(function(a){s.has(a)||af(a,o)})}_y.set(r,t)},[t]),r}function RA(t){return t}function AA(t,e){e===void 0&&(e=RA);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(i){var o=e(i,n);return r.push(o),function(){r=r.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var a=r;r=[],a.forEach(i),o=r}var l=function(){var u=o;o=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),r}}}};return s}function IA(t){t===void 0&&(t={});var e=AA(null);return e.options=ar({async:!0,ssr:!1},t),e}var d1=function(t){var e=t.sideCar,r=Es(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return x.createElement(n,ar({},r))};d1.isSideCarExport=!0;function DA(t,e){return t.useMedium(e),d1}var f1=IA(),lf=function(){},sd=x.forwardRef(function(t,e){var r=x.useRef(null),n=x.useState({onScrollCapture:lf,onWheelCapture:lf,onTouchMoveCapture:lf}),s=n[0],i=n[1],o=t.forwardProps,a=t.children,l=t.className,c=t.removeScrollBar,u=t.enabled,f=t.shards,h=t.sideCar,p=t.noRelative,b=t.noIsolation,g=t.inert,y=t.allowPinchZoom,w=t.as,m=w===void 0?"div":w,v=t.gapMode,_=Es(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,C=OA([r,e]),k=ar(ar({},_),s);return x.createElement(x.Fragment,null,u&&x.createElement(S,{sideCar:f1,removeScrollBar:c,shards:f,noRelative:p,noIsolation:b,inert:g,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:v}),o?x.cloneElement(x.Children.only(a),ar(ar({},k),{ref:C})):x.createElement(m,ar({},k,{className:l,ref:C}),a))});sd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sd.classNames={fullWidth:wc,zeroRight:yc};var MA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $A(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=MA();return e&&t.setAttribute("nonce",e),t}function LA(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function FA(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var UA=function(){var t=0,e=null;return{add:function(r){t==0&&(e=$A())&&(LA(e,r),FA(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},BA=function(){var t=UA();return function(e,r){x.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},h1=function(){var t=BA(),e=function(r){var n=r.styles,s=r.dynamic;return t(n,s),null};return e},VA={left:0,top:0,right:0,gap:0},cf=function(t){return parseInt(t||"",10)||0},zA=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],s=e[t==="padding"?"paddingRight":"marginRight"];
vendor: 8,783 bytes, lines 288-328
288return[cf(r),cf(n),cf(s)]},WA=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return VA;var e=zA(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},HA=h1(),ro="data-scroll-locked",qA=function(t,e,r,n){var s=t.left,i=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` 289 .`.concat(TA,` { 290 overflow: hidden `).concat(n,`; 291 padding-right: `).concat(a,"px ").concat(n,`; 292 } 293 body[`).concat(ro,`] { 294 overflow: hidden `).concat(n,`; 295 overscroll-behavior: contain; 296 `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` 297 padding-left: `.concat(s,`px; 298 padding-top: `).concat(i,`px; 299 padding-right: `).concat(o,`px; 300 margin-left:0; 301 margin-top:0; 302 margin-right: `).concat(a,"px ").concat(n,`; 303 `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` 304 } 305 306 .`).concat(yc,` { 307 right: `).concat(a,"px ").concat(n,`; 308 } 309 310 .`).concat(wc,` { 311 margin-right: `).concat(a,"px ").concat(n,`; 312 } 313 314 .`).concat(yc," .").concat(yc,` { 315 right: 0 `).concat(n,`; 316 } 317 318 .`).concat(wc," .").concat(wc,` { 319 margin-right: 0 `).concat(n,`; 320 } 321 322 body[`).concat(ro,`] { 323 `).concat(jA,": ").concat(a,`px; 324 } 325`)},Sy=function(){var t=parseInt(document.body.getAttribute(ro)||"0",10);return isFinite(t)?t:0},KA=function(){x.useEffect(function(){return document.body.setAttribute(ro,(Sy()+1).toString()),function(){var t=Sy()-1;t<=0?document.body.removeAttribute(ro):document.body.setAttribute(ro,t.toString())}},[])},GA=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,s=n===void 0?"margin":n;KA();var i=x.useMemo(function(){return WA(s)},[s]);return x.createElement(HA,{styles:qA(i,!e,s,r?"":"!important")})},Ah=!1;if(typeof window<"u")try{var Hl=Object.defineProperty({},"passive",{get:function(){return Ah=!0,!0}});window.addEventListener("test",Hl,Hl),window.removeEventListener("test",Hl,Hl)}catch{Ah=!1}var _i=Ah?{passive:!1}:!1,YA=function(t){return t.tagName==="TEXTAREA"},p1=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!YA(t)&&r[e]==="visible")},QA=function(t){return p1(t,"overflowY")},JA=function(t){return p1(t,"overflowX")},Ey=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=m1(t,n);if(s){var i=g1(t,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ZA=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},XA=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},m1=function(t,e){return t==="v"?QA(e):JA(e)},g1=function(t,e){return t==="v"?ZA(e):XA(e)},eI=function(t,e){return t==="h"&&e==="rtl"?-1:1},tI=function(t,e,r,n,s){var i=eI(t,window.getComputedStyle(e).direction),o=i*n,a=r.target,l=e.contains(a),c=!1,u=o>0,f=0,h=0;do{if(!a)break;var p=g1(t,a),b=p[0],g=p[1],y=p[2],w=g-y-i*b;(b||w)&&m1(t,a)&&(f+=w,h+=b);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(u&&(Math.abs(f)<1||!s)||!u&&(Math.abs(h)<1||!s))&&(c=!0),c},ql=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},ky=function(t){return[t.deltaX,t.deltaY]},Cy=function(t){return t&&"current"in t?t.current:t},rI=function(t,e){return t[0]===e[0]&&t[1]===e[1]},nI=function(t){return` 326 .block-interactivity-`.concat(t,` {pointer-events: none;} 327 .allow-interactivity-`).concat(t,` {pointer-events: all;} 328`)},sI=0,Si=[];function iI(t){var e=x.useRef([]),r=x.useRef([0,0]),n=x.useRef(),s=x.useState(sI++)[0],i=x.useState(h1)[0],o=x.useRef(t);x.useEffect(function(){o.current=t},[t]),x.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var g=Cm([t.lockRef.current],(t.shards||[]).map(Cy),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var a=x.useCallback(function(g,y){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var w=ql(g),m=r.current,v="deltaX"in g?g.deltaX:m[0]-w[0],_="deltaY"in g?g.deltaY:m[1]-w[1],S,C=g.target,k=Math.abs(v)>Math.abs(_)?"h":"v";if("touches"in g&&k==="h"&&C.type==="range")return!1;var P=Ey(k,C);if(!P)return!0;if(P?S=k:(S=k==="v"?"h":"v",P=Ey(k,C)),!P)return!1;if(!n.current&&"changedTouches"in g&&(v||_)&&(n.current=S),!S)return!0;var j=n.current||S;return tI(j,y,g,j==="h"?v:_,!0)},[]),l=x.useCallback(function(g){var y=g;if(!(!Si.length||Si[Si.length-1]!==i)){var w="deltaY"in y?ky(y):ql(y),m=e.current.filter(function(S){return S.name===y.type&&(S.target===y.target||y.target===S.shadowParent)&&rI(S.delta,w)})[0];if(m&&m.should){y.cancelable&&y.preventDefault();return}if(!m){var v=(o.current.shards||[]).map(Cy).filter(Boolean).filter(function(S){return S.contains(y.target)}),_=v.length>0?a(y,v[0]):!o.current.noIsolation;_&&y.cancelable&&y.preventDefault()}}},[]),c=x.useCallback(function(g,y,w,m){var v={name:g,delta:y,target:w,should:m,shadowParent:oI(w)};e.current.push(v),setTimeout(function(){e.current=e.current.filter(function(_){return _!==v})},1)},[]),u=x.useCallback(function(g){r.current=ql(g),n.current=void 0},[]),f=x.useCallback(function(g){c(g.type,ky(g),g.target,a(g,t.lockRef.current))},[]),h=x.useCallback(function(g){c(g.type,ql(g),g.target,a(g,t.lockRef.current))},[]);x.useEffect(function(){return Si.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,_i),document.addEventListener("touchmove",l,_i),document.addEventListener("touchstart",u,_i),function(){Si=Si.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,_i),document.removeEventListener("touchmove",l,_i),document.removeEventListener("touchstart",u,_i)}},[]);var p=t.removeScrollBar,b=t.inert;return x.createElement(x.Fragment,null,b?x.createElement(i,{styles:nI(s)}):null,p?x.createElement(GA,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function oI(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const aI=DA(f1,iI);var Tm=x.forwardRef(function(t,e){return x.createElement(sd,ar({},t,{ref:e,sideCar:aI}))});Tm.classNames=sd.classNames;var lI=[" ","Enter","ArrowUp","ArrowDown"],cI=[" ","Enter"],ci="Select",[id,od,uI]=Nx(ci),[Uo,B4]=Io(ci,[uI,Yu]),ad=Yu(),[dI,ks]=Uo(ci),[fI,hI]=Uo(ci),v1=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:f,disabled:h,required:p,form:b}=t,g=ad(e),[y,w]=x.useState(null),[m,v]=x.useState(null),[_,S]=x.useState(!1),C=dA(c),[k,P]=Gc({prop:n,defaultProp:s??!1,onChange:i,caller:ci}),[j,D]=Gc({prop:o,defaultProp:a,onChange:l,caller:ci}),G=x.useRef(null),M=y?b||!!y.closest("form"):!0,[B,$]=x.useState(new Set),ee=Array.from(B).map(K=>K.props.value).join(";");return d.jsx(fO,{...g,children:d.jsxs(dI,{required:p,scope:e,trigger:y,onTriggerChange:w,valueNode:m,onValueNodeChange:v,valueNodeHasChildren:_,onValueNodeHasChildrenChange:S,contentId:eo(),value:j,onValueChange:D,open:k,onOpenChange:P,dir:C,triggerPointerDownPosRef:G,disabled:h,children:[d.jsx(id.Provider,{scope:e,children:d.jsx(fI,{scope:t.__scopeSelect,onNativeOptionAdd:x.useCallback(K=>{$(X=>new Set(X).add(K))},[]),onNativeOptionRemove:x.useCallback(K=>{$(X=>{const N=new Set(X);return N.delete(K),N})},[]),children:r})}),M?d.jsxs(B1,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:f,value:j,onChange:K=>D(K.target.value),disabled:h,form:b,children:[j===void 0?d.jsx("option",{value:""}):null,Array.from(B)]},ee):null]})})};v1.displayName=ci;var y1="SelectTrigger",w1=x.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=ad(r),o=ks(y1,r),a=o.disabled||n,l=Be(e,o.onTriggerChange),c=od(r),u=x.useRef("touch"),[f,h,p]=z1(g=>{const y=c().filter(v=>!v.disabled),w=y.find(v=>v.value===o.value),m=W1(y,g,w);m!==void 0&&o.onValueChange(m.value)}),b=g=>{a||(o.onOpenChange(!0),p()),g&&(o.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return d.jsx(Vb,{asChild:!0,...i,children:d.jsx(Se.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":V1(o.value)?"":void 0,...s,ref:l,onClick:pe(s.onClick,g=>
vendor: 16,098 bytes, line 328
328{g.currentTarget.focus(),u.current!=="mouse"&&b(g)}),onPointerDown:pe(s.onPointerDown,g=>{u.current=g.pointerType;const y=g.target;y.hasPointerCapture(g.pointerId)&&y.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(b(g),g.preventDefault())}),onKeyDown:pe(s.onKeyDown,g=>{const y=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(y&&g.key===" ")&&lI.includes(g.key)&&(b(),g.preventDefault())})})})});w1.displayName=y1;var x1="SelectValue",b1=x.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:o="",...a}=t,l=ks(x1,r),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,f=Be(e,l.onValueNodeChange);return yt(()=>{c(u)},[c,u]),d.jsx(Se.span,{...a,ref:f,style:{pointerEvents:"none"},children:V1(l.value)?d.jsx(d.Fragment,{children:o}):i})});b1.displayName=x1;var pI="SelectIcon",_1=x.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...s}=t;return d.jsx(Se.span,{"aria-hidden":!0,...s,ref:e,children:n||"â¼"})});_1.displayName=pI;var mI="SelectPortal",S1=t=>d.jsx(Vu,{asChild:!0,...t});S1.displayName=mI;var ui="SelectContent",E1=x.forwardRef((t,e)=>{const r=ks(ui,t.__scopeSelect),[n,s]=x.useState();if(yt(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?mi.createPortal(d.jsx(k1,{scope:t.__scopeSelect,children:d.jsx(id.Slot,{scope:t.__scopeSelect,children:d.jsx("div",{children:t.children})})}),i):null}return d.jsx(C1,{...t,ref:e})});E1.displayName=ui;var wr=10,[k1,Cs]=Uo(ui),gI="SelectContentImpl",vI=_o("SelectContent.RemoveScroll"),C1=x.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:h,collisionPadding:p,sticky:b,hideWhenDetached:g,avoidCollisions:y,...w}=t,m=ks(ui,r),[v,_]=x.useState(null),[S,C]=x.useState(null),k=Be(e,H=>_(H)),[P,j]=x.useState(null),[D,G]=x.useState(null),M=od(r),[B,$]=x.useState(!1),ee=x.useRef(!1);x.useEffect(()=>{if(v)return U_(v)},[v]),$_();const K=x.useCallback(H=>{const[Ce,...De]=M().map(be=>be.ref.current),[xe]=De.slice(-1),ye=document.activeElement;for(const be of H)if(be===ye||(be==null||be.scrollIntoView({block:"nearest"}),be===Ce&&S&&(S.scrollTop=0),be===xe&&S&&(S.scrollTop=S.scrollHeight),be==null||be.focus(),document.activeElement!==ye))return},[M,S]),X=x.useCallback(()=>K([P,v]),[K,P,v]);x.useEffect(()=>{B&&X()},[B,X]);const{onOpenChange:N,triggerPointerDownPosRef:R}=m;x.useEffect(()=>{if(v){let H={x:0,y:0};const Ce=xe=>{var ye,be;H={x:Math.abs(Math.round(xe.pageX)-(((ye=R.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(xe.pageY)-(((be=R.current)==null?void 0:be.y)??0))}},De=xe=>{H.x<=10&&H.y<=10?xe.preventDefault():v.contains(xe.target)||N(!1),document.removeEventListener("pointermove",Ce),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",Ce),document.addEventListener("pointerup",De,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ce),document.removeEventListener("pointerup",De,{capture:!0})}}},[v,N,R]),x.useEffect(()=>{const H=()=>N(!1);return window.addEventListener("blur",H),window.addEventListener("resize",H),()=>{window.removeEventListener("blur",H),window.removeEventListener("resize",H)}},[N]);const[z,ie]=z1(H=>{const Ce=M().filter(ye=>!ye.disabled),De=Ce.find(ye=>ye.ref.current===document.activeElement),xe=W1(Ce,H,De);xe&&setTimeout(()=>xe.ref.current.focus())}),se=x.useCallback((H,Ce,De)=>{const xe=!ee.current&&!De;(m.value!==void 0&&m.value===Ce||xe)&&(j(H),xe&&(ee.current=!0))},[m.value]),le=x.useCallback(()=>v==null?void 0:v.focus(),[v]),ae=x.useCallback((H,Ce,De)=>{const xe=!ee.current&&!De;(m.value!==void 0&&m.value===Ce||xe)&&G(H)},[m.value]),Re=n==="popper"?Ih:T1,Ve=Re===Ih?{side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:h,collisionPadding:p,sticky:b,hideWhenDetached:g,avoidCollisions:y}:{};return d.jsx(k1,{scope:r,content:v,viewport:S,onViewportChange:C,itemRefCallback:se,selectedItem:P,onItemLeave:le,itemTextRefCallback:ae,focusSelectedItem:X,selectedItemText:D,position:n,isPositioned:B,searchRef:z,children:d.jsx(Tm,{as:vI,allowPinchZoom:!0,children:d.jsx(Em,{asChild:!0,trapped:m.open,onMountAutoFocus:H=>{H.preventDefault()},onUnmountAutoFocus:pe(s,H=>{var Ce;(Ce=m.trigger)==null||Ce.focus({preventScroll:!0}),H.preventDefault()}),children:d.jsx(ll,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:H=>H.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:d.jsx(Re,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:H=>H.preventDefault(),...w,...Ve,onPlaced:()=>$(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:pe(w.onKeyDown,H=>{const Ce=H.ctrlKey||H.altKey||H.metaKey;if(H.key==="Tab"&&H.preventDefault(),!Ce&&H.key.length===1&&ie(H.key),["ArrowUp","ArrowDown","Home","End"].includes(H.key)){let xe=M().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(H.key)&&(xe=xe.slice().reverse()),["ArrowUp","ArrowDown"].includes(H.key)){const ye=H.target,be=xe.indexOf(ye);xe=xe.slice(be+1)}setTimeout(()=>K(xe)),H.preventDefault()}})})})})})})});C1.displayName=gI;var yI="SelectItemAlignedPosition",T1=x.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=ks(ui,r),o=Cs(ui,r),[a,l]=x.useState(null),[c,u]=x.useState(null),f=Be(e,k=>u(k)),h=od(r),p=x.useRef(!1),b=x.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:w,focusSelectedItem:m}=o,v=x.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&g&&y&&w){const k=i.trigger.getBoundingClientRect(),P=c.getBoundingClientRect(),j=i.valueNode.getBoundingClientRect(),D=w.getBoundingClientRect();if(i.dir!=="rtl"){const ye=D.left-P.left,be=j.left-ye,ut=k.left-be,Ct=k.width+ut,Ur=Math.max(Ct,P.width),Br=window.innerWidth-wr,ln=gy(be,[wr,Math.max(wr,Br-Ur)]);a.style.minWidth=Ct+"px",a.style.left=ln+"px"}else{const ye=P.right-D.right,be=window.innerWidth-j.right-ye,ut=window.innerWidth-k.right-be,Ct=k.width+ut,Ur=Math.max(Ct,P.width),Br=window.innerWidth-wr,ln=gy(be,[wr,Math.max(wr,Br-Ur)]);a.style.minWidth=Ct+"px",a.style.right=ln+"px"}const G=h(),M=window.innerHeight-wr*2,B=g.scrollHeight,$=window.getComputedStyle(c),ee=parseInt($.borderTopWidth,10),K=parseInt($.paddingTop,10),X=parseInt($.borderBottomWidth,10),N=parseInt($.paddingBottom,10),R=ee+K+B+N+X,z=Math.min(y.offsetHeight*5,R),ie=window.getComputedStyle(g),se=parseInt(ie.paddingTop,10),le=parseInt(ie.paddingBottom,10),ae=k.top+k.height/2-wr,Re=M-ae,Ve=y.offsetHeight/2,H=y.offsetTop+Ve,Ce=ee+K+H,De=R-Ce;if(Ce<=ae){const ye=G.length>0&&y===G[G.length-1].ref.current;a.style.bottom="0px";const be=c.clientHeight-g.offsetTop-g.offsetHeight,ut=Math.max(Re,Ve+(ye?le:0)+be+X),Ct=Ce+ut;a.style.height=Ct+"px"}else{const ye=G.length>0&&y===G[0].ref.current;a.style.top="0px";const ut=Math.max(ae,ee+g.offsetTop+(ye?se:0)+Ve)+De;a.style.height=ut+"px",g.scrollTop=Ce-ae+g.offsetTop}a.style.margin=`${wr}px 0`,a.style.minHeight=z+"px",a.style.maxHeight=M+"px",n==null||n(),requestAnimationFrame(()=>p.current=!0)}},[h,i.trigger,i.valueNode,a,c,g,y,w,i.dir,n]);yt(()=>v(),[v]);const[_,S]=x.useState();yt(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);const C=x.useCallback(k=>{k&&b.current===!0&&(v(),m==null||m(),b.current=!1)},[v,m]);return d.jsx(xI,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:d.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:d.jsx(Se.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});T1.displayName=yI;var wI="SelectPopperPosition",Ih=x.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=wr,...i}=t,o=ad(r);return d.jsx(zb,{...o,...i,ref:e,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ih.displayName=wI;var[xI,jm]=Uo(ui,{}),Dh="SelectViewport",j1=x.forwardRef((t,e)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=Cs(Dh,r),o=jm(Dh,r),a=Be(e,i.onViewportChange),l=x.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),d.jsx(id.Slot,{scope:r,children:d.jsx(Se.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:pe(s.onScroll,c=>{const u=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&f){const p=Math.abs(l.current-u.scrollTop);if(p>0){const b=window.innerHeight-wr*2,g=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),w=Math.max(g,y);if(w<b){const m=w+p,v=Math.min(b,m),_=m-v;f.style.height=v+"px",f.style.bottom==="0px"&&(u.scrollTop=_>0?_:0,f.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});j1.displayName=Dh;var P1="SelectGroup",[bI,_I]=Uo(P1),SI=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=eo();return d.jsx(bI,{scope:r,id:s,children:d.jsx(Se.div,{role:"group","aria-labelledby":s,...n,ref:e})})});SI.displayName=P1;var N1="SelectLabel",O1=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=_I(N1,r);return d.jsx(Se.div,{id:s.id,...n,ref:e})});O1.displayName=N1;var pu="SelectItem",[EI,R1]=Uo(pu),A1=x.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...o}=t,a=ks(pu,r),l=Cs(pu,r),c=a.value===n,[u,f]=x.useState(i??""),[h,p]=x.useState(!1),b=Be(e,m=>{var v;return(v=l.itemRefCallback)==null?void 0:v.call(l,m,n,s)}),g=eo(),y=x.useRef("touch"),w=()=>{s||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(EI,{scope:r,value:n,disabled:s,textId:g,isSelected:c,onItemTextChange:x.useCallback(m=>{f(v=>v||((m==null?void 0:m.textContent)??"").trim())},[]),children:d.jsx(id.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:d.jsx(Se.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:b,onFocus:pe(o.onFocus,()=>p(!0)),onBlur:pe(o.onBlur,()=>p(!1)),onClick:pe(o.onClick,()=>{y.current!=="mouse"&&w()}),onPointerUp:pe(o.onPointerUp,()=>{y.current==="mouse"&&w()}),onPointerDown:pe(o.onPointerDown,m=>{y.current=m.pointerType}),onPointerMove:pe(o.onPointerMove,m=>{var v;y.current=m.pointerType,s?(v=l.onItemLeave)==null||v.call(l):y.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(o.onPointerLeave,m=>{var v;m.currentTarget===document.activeElement&&((v=l.onItemLeave)==null||v.call(l))}),onKeyDown:pe(o.onKeyDown,m=>{var _;((_=l.searchRef)==null?void 0:_.current)!==""&&m.key===" "||(cI.includes(m.key)&&w(),m.key===" "&&m.preventDefault())})})})})});A1.displayName=pu;var aa="SelectItemText",I1=x.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,o=ks(aa,r),a=Cs(aa,r),l=R1(aa,r),c=hI(aa,r),[u,f]=x.useState(null),h=Be(e,w=>f(w),l.onItemTextChange,w=>{var m;return(m=a.itemTextRefCallback)==null?void 0:m.call(a,w,l.value,l.disabled)}),p=u==null?void 0:u.textContent,b=x.useMemo(()=>d.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=c;return yt(()=>(g(b),()=>y(b)),[g,y,b]),d.jsxs(d.Fragment,{children:[d.jsx(Se.span,{id:l.textId,...i,ref:h}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?mi.createPortal(i.children,o.valueNode):null]})});I1.displayName=aa;var D1="SelectItemIndicator",M1=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return R1(D1,r).isSelected?d.jsx(Se.span,{"aria-hidden":!0,...n,ref:e}):null});M1.displayName=D1;var Mh="SelectScrollUpButton",$1=x.forwardRef((t,e)=>{const r=Cs(Mh,t.__scopeSelect),n=jm(Mh,t.__scopeSelect),[s,i]=x.useState(!1),o=Be(e,n.onScrollButtonChange);return yt(()=>{if(r.viewport&&r.isPositioned){let a=function(){const c=l.scrollTop>0;i(c)};const l=r.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?d.jsx(F1,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=r;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});$1.displayName=Mh;var $h="SelectScrollDownButton",L1=x.forwardRef((t,e)=>{const r=Cs($h,t.__scopeSelect),n=jm($h,t.__scopeSelect),[s,i]=x.useState(!1),o=Be(e,n.onScrollButtonChange);return yt(()=>{if(r.viewport&&r.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;i(u)};const l=r.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?d.jsx(F1,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=r;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});L1.displayName=$h;var F1=x.forwardRef((t,e)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=Cs("SelectScrollButton",r),o=x.useRef(null),a=od(r),l=x.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return x.useEffect(()=>()=>l(),[l]),yt(()=>{var u;const c=a().find(f=>f.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[a]),d.jsx(Se.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:pe(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:pe(s.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:pe(s.onPointerLeave,()=>{l()})})}),kI="SelectSeparator",U1=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return d.jsx(Se.div,{"aria-hidden":!0,...n,ref:e})});U1.displayName=kI;var Lh="SelectArrow",CI=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=ad(r),i=ks(Lh,r),o=Cs(Lh,r);return i.open&&o.position==="popper"?d.jsx(Wb,{...s,...n,ref:e}):null});CI.displayName=Lh;var TI="SelectBubbleInput",B1=x.forwardRef(({__scopeSelect:t,value:e,...r},n)=>{const s=x.useRef(null),i=Be(n,s),o=wA(e);return x.useEffect(()=>{const a=s.current;if(!a)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==e&&u){const f=new Event("change",{bubbles:!0});u.call(a,e),a.dispatchEvent(f)}},[o,e]),d.jsx(Se.select,{...r,style:{...Dx,...r.style},ref:i,defaultValue:e})});B1.displayName=TI;function V1(t){return t===""||t===void 0}function z1(t){const e=Dr(t),r=x.useRef(""),n=x.useRef(0),s=x.useCallback(o=>{const a=r.current+o;e(a),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(a)},[e]),i=x.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function W1(t,e,r){const s=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=jI(t,Math.max(i,0));s.length===1&&(o=o.filter(c=>c!==r));const l=o.find(c=>c.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==r?l:void 0}function jI(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var PI=v1,H1=w1,NI=b1,OI=_1,RI=S1,q1=E1,AI=j1,K1=O1,G1=A1,II=I1,DI=M1,Y1=$1,Q1=L1,J1=U1;const MI=PI,$I=NI,Z1=x.forwardRef(({className:t,children:e,...r},n)=>d.jsxs(H1,{ref:n,className:_e("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
328ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[e,d.jsx(OI,{asChild:!0,children:d.jsx(ib,{className:"h-4 w-4 opacity-50"})})]}));Z1.displayName=H1.displayName;const X1=x.forwardRef(({className:t,...e},r)=>d.jsx(Y1,{ref:r,className:_e("flex cursor-default items-center justify-center py-1",t),...e,children:d.jsx(lj,{className:"h-4 w-4"})}));X1.displayName=Y1.displayName;const eS=x.forwardRef(({className:t,...e},r)=>d.jsx(Q1,{ref:r,className:_e("flex cursor-default items-center justify-center py-1",t),...e,children:d.jsx(ib,{className:"h-4 w-4"})}));eS.displayName=Q1.displayName;const tS=x.forwardRef(({className:t,children:e,position:r="popper",...n},s)=>d.jsx(RI,{children:d.jsxs(q1,{ref:s,className:_e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...n,children:[d.jsx(X1,{}),d.jsx(AI,{className:_e("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),d.jsx(eS,{})]})}));tS.displayName=q1.displayName;const LI=x.forwardRef(({className:t,...e},r)=>d.jsx(K1,{ref:r,className:_e("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...e}));LI.displayName=K1.displayName;const rS=x.forwardRef(({className:t,children:e,...r},n)=>d.jsxs(G1,{ref:n,className:_e("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t),...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(DI,{children:d.jsx(aj,{className:"h-4 w-4"})})}),d.jsx(II,{children:e})]}));rS.displayName=G1.displayName;const FI=x.forwardRef(({className:t,...e},r)=>d.jsx(J1,{ref:r,className:_e("-mx-1 my-1 h-px bg-muted",t),...e}));FI.displayName=J1.displayName;var UI="Label",nS=x.forwardRef((t,e)=>d.jsx(Se.label,{...t,ref:e,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));nS.displayName=UI;var sS=nS;const BI=Hu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),iS=x.forwardRef(({className:t,...e},r)=>d.jsx(sS,{ref:r,className:_e(BI(),t),...e}));iS.displayName=sS.displayName;const VI=m2,oS=x.createContext({}),Ns=({...t})=>d.jsx(oS.Provider,{value:{name:t.name},children:d.jsx(w2,{...t})}),ld=()=>{const t=x.useContext(oS),e=x.useContext(aS),{getFieldState:r,formState:n}=rd(),s=r(t.name,n);if(!t)throw new Error("useFormField should be used within <FormField>");const{id:i}=e;return{id:i,name:t.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},aS=x.createContext({}),Un=x.forwardRef(({className:t,...e},r)=>{const n=x.useId();return d.jsx(aS.Provider,{value:{id:n},children:d.jsx("div",{ref:r,className:_e("space-y-2",t),...e})})});Un.displayName="FormItem";const Bn=x.forwardRef(({className:t,...e},r)=>{const{error:n,formItemId:s}=ld();return d.jsx(iS,{ref:r,className:_e(n&&"text-destructive",t),htmlFor:s,...e})});Bn.displayName="FormLabel";const Vn=x.forwardRef(({...t},e)=>{const{error:r,formItemId:n,formDescriptionId:s,formMessageId:i}=ld();return d.jsx(jx,{ref:e,id:n,"aria-describedby":r?`${s} ${i}`:`${s}`,"aria-invalid":!!r,...t})});Vn.displayName="FormControl";const zI=x.forwardRef(({className:t,...e},r)=>{const{formDescriptionId:n}=ld();return d.jsx("p",{ref:r,id:n,className:_e("text-sm text-muted-foreground",t),...e})});zI.displayName="FormDescription";const zn=x.forwardRef(({className:t,children:e,...r},n)=>{const{error:s,formMessageId:i}=ld(),o=s?String(s==null?void 0:s.message):e;return o?d.jsx("p",{ref:n,id:i,className:_e("text-sm font-medium text-destructive",t),...r,children:o}):null});zn.displayName="FormMessage";var cd="Dialog",[lS,V4]=Io(cd),[WI,Lr]=lS(cd),cS=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!0}=t,a=x.useRef(null),l=x.useRef(null),[c,u]=Gc({prop:n,defaultProp:s??!1,onChange:i,caller:cd});return d.jsx(WI,{scope:e,triggerRef:a,contentRef:l,contentId:eo(),titleId:eo(),descriptionId:eo(),open:c,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(f=>!f),[u]),modal:o,children:r})};cS.displayName=cd;var uS="DialogTrigger",dS=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Lr(uS,r),i=Be(e,s.triggerRef);return d.jsx(Se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Om(s.open),...n,ref:i,onClick:pe(t.onClick,s.onOpenToggle)})});dS.displayName=uS;var Pm="DialogPortal",[HI,fS]=lS(Pm,{forceMount:void 0}),hS=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:s}=t,i=Lr(Pm,e);return d.jsx(HI,{scope:e,forceMount:r,children:x.Children.map(n,o=>d.jsx(Do,{present:r||i.open,children:d.jsx(Vu,{asChild:!0,container:s,children:o})}))})};hS.displayName=Pm;var mu="DialogOverlay",pS=x.forwardRef((t,e)=>{const r=fS(mu,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=Lr(mu,t.__scopeDialog);return i.modal?d.jsx(Do,{present:n||i.open,children:d.jsx(KI,{...s,ref:e})}):null});pS.displayName=mu;var qI=_o("DialogOverlay.RemoveScroll"),KI=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Lr(mu,r);return d.jsx(Tm,{as:qI,allowPinchZoom:!0,shards:[s.contentRef],children:d.jsx(Se.div,{"data-state":Om(s.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),di="DialogContent",mS=x.forwardRef((t,e)=>{const r=fS(di,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=Lr(di,t.__scopeDialog);return d.jsx(Do,{present:n||i.open,children:i.modal?d.jsx(GI,{...s,ref:e}):d.jsx(YI,{...s,ref:e})})});mS.displayName=di;var GI=x.forwardRef((t,e)=>{const r=Lr(di,t.__scopeDialog),n=x.useRef(null),s=Be(e,r.contentRef,n);return x.useEffect(()=>{const i=n.current;if(i)return U_(i)},[]),d.jsx(gS,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(t.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:pe(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:pe(t.onFocusOutside,i=>i.preventDefault())})}),YI=x.forwardRef((t,e)=>{const r=Lr(di,t.__scopeDialog),n=x.useRef(!1),s=x.useRef(!1);return d.jsx(gS,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=t.onInteractOutside)==null||l.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=r.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),gS=x.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=t,a=Lr(di,r),l=x.useRef(null),c=Be(e,l);return $_(),d.jsxs(d.Fragment,{children:[d.jsx(Em,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:d.jsx(ll,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Om(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(QI,{titleId:a.titleId}),d.jsx(ZI,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Nm="DialogTitle",vS=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Lr(Nm,r);return d.jsx(Se.h2,{id:s.titleId,...n,ref:e})});vS.displayName=Nm;var yS="DialogDescription",wS=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Lr(yS,r);return d.jsx(Se.p,{id:s.descriptionId,...n,ref:e})});wS.displayName=yS;var xS="DialogClose",bS=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Lr(xS,r);return d.jsx(Se.button,{type:"button",...n,ref:e,onClick:pe(t.onClick,()=>s.onOpenChange(!1))})});bS.displayName=xS;
vendor: 1,932 bytes, lines 328-332
328function Om(t){return t?"open":"closed"}var _S="DialogTitleWarning",[z4,SS]=fT(_S,{contentName:di,titleName:Nm,docsSlug:"dialog"}),QI=({titleId:t})=>{const e=SS(_S),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. 329 330If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. 331 332For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return x.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},JI="DialogDescriptionWarning",ZI=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${SS(JI).contentName}}.`;return x.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},XI=cS,eD=dS,tD=hS,ES=pS,kS=mS,CS=vS,TS=wS,rD=bS;const Rm=XI,nD=eD,sD=tD,jS=x.forwardRef(({className:t,...e},r)=>d.jsx(ES,{ref:r,className:_e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));jS.displayName=ES.displayName;const ud=x.forwardRef(({className:t,children:e,...r},n)=>d.jsxs(sD,{children:[d.jsx(jS,{}),d.jsxs(kS,{ref:n,className:_e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r,children:[e,d.jsxs(rD,{className:"absolute right-4 top-4 roun
332ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[d.jsx(Ba,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ud.displayName=kS.displayName;const Am=({className:t,...e})=>d.jsx("div",{className:_e("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});Am.displayName="DialogHeader";const Im=x.forwardRef(({className:t,...e},r)=>d.jsx(CS,{ref:r,className:_e("text-lg font-semibold leading-none tracking-tight",t),...e}));Im.displayName=CS.displayName;const Dm=x.forwardRef(({className:t,...e},r)=>d.jsx(TS,{ref:r,className:_e("text-sm text-muted-foreground",t),...e}));Dm.displayName=TS.displayName;var Mm={},gu={};const iD=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);let dd=class extends Error{constructor(e,r="FunctionsError",n){super(e),this.name=r,this.context=n}},PS=class extends dd{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}},Fh=class extends dd{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}},Uh=class extends dd{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}};var vu;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(vu||(vu={}));class oD{constructor(e,{headers:r={},customFetch:n,region:s=vu.Any}={}){this.url=e,this.headers=r,this.region=s,this.fetch=iD(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return Z(this,arguments,void 0,function*(r,n={}){var s;let i,o;try{const{headers:a,method:l,body:c,signal:u,timeout:f}=n;let h={},{region:p}=n;p||(p=this.region);const b=new URL(`${this.url}/${r}`);p&&p!=="any"&&(h["x-region"]=p,b.searchParams.set("forceFunctionRegion",p));let g;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",g=c):typeof c=="string"?(h["Content-Type"]="text/plain",g=c):typeof FormData<"u"&&c instanceof FormData?g=c:(h["Content-Type"]="application/json",g=JSON.stringify(c)):g=c;let y=u;f&&(o=new AbortController,i=setTimeout(()=>o.abort(),f),u?(y=o.signal,u.addEventListener("abort",()=>o.abort())):y=o.signal);const w=yield this.fetch(b.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:g,signal:y}).catch(S=>{throw new PS(S)}),m=w.headers.get("x-relay-error");if(m&&m==="true")throw new Fh(w);if(!w.ok)throw new Uh(w);let v=((s=w.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return v==="application/json"?_=yield w.json():v==="application/octet-stream"||v==="application/pdf"?_=yield w.blob():v==="text/event-stream"?_=w:v==="multipart/form-data"?_=yield w.formData():_=yield w.text(),{data:_,error:null,response:w}}catch(a){return{data:null,error:a,response:a instanceof Uh||a instanceof Fh?a.context:void 0}}finally{i&&clearTimeout(i)}})}}const aD=Object.freeze(Object.defineProperty({__proto__:null,get FunctionRegion(){return vu},FunctionsClient:oD,FunctionsError:dd,FunctionsFetchError:PS,FunctionsHttpError:Uh,FunctionsRelayError:Fh},Symbol.toStringTag,{value:"Module"})),NS=rl(aD);var Et={};const Bo=rl(CA);var Kl={},Gl={},Yl={},Ql={},Jl={},Zl={},Ty;function OS(){if(Ty)return Zl;Ty=1,Object.defineProperty(Zl,"__esModule",{value:!0});class t extends Error{constructor(r){super(r.message),this.name="PostgrestError",this.details=r.details,this.hint=r.hint,this.co
332de=r.code}}return Zl.default=t,Zl}var jy;function RS(){if(jy)return Jl;jy=1,Object.defineProperty(Jl,"__esModule",{value:!0});const e=Bo.__importDefault(OS());let r=class{constructor(s){var i,o;this.shouldThrowOnError=!1,this.method=s.method,this.url=s.url,this.headers=new Headers(s.headers),this.schema=s.schema,this.body=s.body,this.shouldThrowOnError=(i=s.shouldThrowOnError)!==null&&i!==void 0?i:!1,this.signal=s.signal,this.isMaybeSingle=(o=s.isMaybeSingle)!==null&&o!==void 0?o:!1,s.fetch?this.fetch=s.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(s,i){return this.headers=new Headers(this.headers),this.headers.set(s,i),this}then(s,i){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const o=this.fetch;let a=o(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async l=>{var c,u,f,h;let p=null,b=null,g=null,y=l.status,w=l.statusText;if(l.ok){if(this.method!=="HEAD"){const S=await l.text();S===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((c=this.headers.get("Accept"))===null||c===void 0)&&c.includes("application/vnd.pgrst.plan+text"))?b=S:b=JSON.parse(S))}const v=(u=this.headers.get("Prefer"))===null||u===void 0?void 0:u.match(/count=(exact|planned|estimated)/),_=(f=l.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");v&&_&&_.length>1&&(g=parseInt(_[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(b)&&(b.length>1?(p={code:"PGRST116",details:`Results contain ${b.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},b=null,g=null,y=406,w="Not Acceptable"):b.length===1?b=b[0]:b=null)}else{const v=await l.text();try{p=JSON.parse(v),Array.isArray(p)&&l.status===404&&(b=[],p=null,y=200,w="OK")}catch{l.status===404&&v===""?(y=204,w="No Content"):p={message:v}}if(p&&this.isMaybeSingle&&(!((h=p==null?void 0:p.details)===null||h===void 0)&&h.includes("0 rows"))&&(p=null,y=200,w="OK"),p&&this.shouldThrowOnError)throw new e.default(p)}return{error:p,data:b,count:g,status:y,statusText:w}});return this.shouldThrowOnError||(a=a.catch(l=>{var c,u,f,h,p,b;let g="";const y=l==null?void 0:l.cause;if(y){const w=(c=y==null?void 0:y.message)!==null&&c!==void 0?c:"",m=(u=y==null?void 0:y.code)!==null&&u!==void 0?u:"";g=`${(f=l==null?void 0:l.name)!==null&&f!==void 0?f:"FetchError"}: ${l==null?void 0:l.message}`,g+=` 333 334Caused by: ${(h=y==null?void 0:y.name)!==null&&h!==void 0?h:"Error"}: ${w}`,m&&(g+=` (${m})`),y!=null&&y.stack&&(g+=` 335${y.stack}`)}else g=(p=l==null?void 0:l.stack)!==null&&p!==void 0?p:"";return{error:{message:`${(b=l==null?void 0:l.name)!==null&&b!==void 0?b:"FetchError"}: ${l==null?void 0:l.message}`,details:g,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),a.then(s,i)}returns(){return this}overrideTypes(){return this}};return Jl.default=r,Jl}var Py;function AS(){if(Py)return Ql;Py=1,Object.defineProperty(Ql,"__esModule",{value:!0});const e=Bo.__importDefault(RS());let r=class extends e.default{select(s){let i=!1;const o=(s??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),this.headers.append("Prefer","return=representation"),this}order(s,{ascending:i=!0,nullsFirst:o,foreignTable:a,referencedTable:l=a}={}){const c=l?`${l}.order`:"order",u=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${u?`${u},`:""}${s}.${i?"asc":"desc"}${o===void 0?"":o?".nullsfirst":".nullslast"}`),this}limit(s,{foreignTable:i,referencedTable:o=i}={}){const a=typeof o>"u"?"limit":`${o}.limit`;return this.url.searchParams.set(a,`${s}`),this}range(s,i,{foreignTable:o,referencedTable:a=o}={}){const l=typeof a>"u"?"offset":`${a}.offset`,c=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(l,`${s}`),this.url.searchParams.set(c,`${i-s+1}`),this}abortSignal(s){return this.signal=s,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
335explain({analyze:s=!1,verbose:i=!1,settings:o=!1,buffers:a=!1,wal:l=!1,format:c="text"}={}){var u;const f=[s?"analyze":null,i?"verbose":null,o?"settings":null,a?"buffers":null,l?"wal":null].filter(Boolean).join("|"),h=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${c}; for="${h}"; options=${f};`),c==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(s){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${s}`),this}};return Ql.default=r,Ql}var Ny;function $m(){if(Ny)return Yl;Ny=1,Object.defineProperty(Yl,"__esModule",{value:!0});const e=Bo.__importDefault(AS()),r=new RegExp("[,()]");let n=class extends e.default{eq(i,o){return this.url.searchParams.append(i,`eq.${o}`),this}neq(i,o){return this.url.searchParams.append(i,`neq.${o}`),this}gt(i,o){return this.url.searchParams.append(i,`gt.${o}`),this}gte(i,o){return this.url.searchParams.append(i,`gte.${o}`),this}lt(i,o){return this.url.searchParams.append(i,`lt.${o}`),this}lte(i,o){return this.url.searchParams.append(i,`lte.${o}`),this}like(i,o){return this.url.searchParams.append(i,`like.${o}`),this}likeAllOf(i,o){return this.url.searchParams.append(i,`like(all).{${o.join(",")}}`),this}likeAnyOf(i,o){return this.url.searchParams.append(i,`like(any).{${o.join(",")}}`),this}ilike(i,o){return this.url.searchParams.append(i,`ilike.${o}`),this}ilikeAllOf(i,o){return this.url.searchParams.append(i,`ilike(all).{${o.join(",")}}`),this}ilikeAnyOf(i,o){return this.url.searchParams.append(i,`ilike(any).{${o.join(",")}}`),this}regexMatch(i,o){return this.url.searchParams.append(i,`match.${o}`),this}regexIMatch(i,o){return this.url.searchParams.append(i,`imatch.${o}`),this}is(i,o){return this.url.searchParams.append(i,`is.${o}`),this}isDistinct(i,o){return this.url.searchParams.append(i,`isdistinct.${o}`),this}in(i,o){const a=Array.from(new Set(o)).map(l=>typeof l=="string"&&r.test(l)?`"${l}"`:`${l}`).join(",");return this.url.searchParams.append(i,`in.(${a})`),this}contains(i,o){return typeof o=="string"?this.url.searchParams.append(i,`cs.${o}`):Array.isArray(o)?this.url.searchParams.append(i,`cs.{${o.join(",")}}`):this.url.searchParams.append(i,`cs.${JSON.stringify(o)}`),this}containedBy(i,o){return typeof o=="string"?this.url.searchParams.append(i,`cd.${o}`):Array.isArray(o)?this.url.searchParams.append(i,`cd.{${o.join(",")}}`):this.url.searchParams.append(i,`cd.${JSON.stringify(o)}`),this}rangeGt(i,o){return this.url.searchParams.append(i,`sr.${o}`),this}rangeGte(i,o){return this.url.searchParams.append(i,`nxl.${o}`),this}rangeLt(i,o){return this.url.searchParams.append(i,`sl.${o}`),this}rangeLte(i,o){return this.url.searchParams.append(i,`nxr.${o}`),this}rangeAdjacent(i,o){return this.url.searchParams.append(i,`adj.${o}`),this}overlaps(i,o){return typeof o=="string"?this.url.searchParams.append(i,`ov.${o}`):this.url.searchParams.append(i,`ov.{${o.join(",")}}`),this}textSearch(i,o,{config:a,type:l}={}){let c="";l==="plain"?c="pl":l==="phrase"?c="ph":l==="websearch"&&(c="w");const u=a===void 0?"":`(${a})`;return this.url.searchParams.append(i,`${c}fts${u}.${o}`),this}match(i){return Object.entries(i).forEach(([o,a])=>{this.url.searchParams.append(o,`eq.${a}`)}),this}not(i,o,a){return this.url.searchParams.append(i,`not.${o}.${a}`),this}or(i,{foreignTable:o,referencedTable:a=o}={}){const l=a?`${a}.or`:"or";return this.url.searchParams.append(l,`(${i})`),this}filter(i,o,a){return this.url.searchParams.append(i,`${o}.${a}`),this}};return Yl.default=n,Yl}var Oy;function IS(){if(Oy)return Gl;Oy=1,Object.defineProperty(Gl,"__esModule",{value:!0});const e=Bo.__importDefault($m());let r=class{constructor(s,{headers:i={},schema:o,fetch:a}){this.url=s,this.headers=new Headers(i),this.schema=o,this.fetch=a}select(s,i){const{head:o=!1,count:a}=i??{},l=o?"HEAD":"GET";let c=!1;const u=(s??"*").split("").map(f=>/\s/.test(f)&&!c?"":(f==='"'&&(c=!c),f)).join("");return this.url.searchParams.set("select",u),a&&this.headers.append("Prefer",`count=${a}`),new e.default({method:l,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(s,{count:i,defaultToNull:o=!0}={}){var a;const l="POST";if(i&&this.headers.append("Prefer",`count=${i}`),o||this.headers.append("Prefer","missing=default"),Array.isArray(s)){const c=s.reduce((u,f)=>u.concat(Object.keys(f)),[]);if(c.length>0){const u=[...new Set(c)].map(f=>`"${f}"`);this.url.searchParams.set("columns",u.join(","))}}return new e.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}upsert(s,{onConflict:i,ignoreDuplicates:o=!1,count:a,defaultToNull:l=!0}={}){var c;const u="POST";if(this.headers.append("Prefer",`resolution=${o?"ignore":"merge"}-duplicates`),i!==void 0&&this.url.searchParams.set("on_conflict",i),a&&this.headers.append("Prefer",`count=${a}`),l||this.headers.append("Prefer","missing=default"),Array.isArray(s)){const f=s.reduce((h,p)=>h.concat(Object.keys(p)),[]);if(f.length>0){const h=[...new Set(f)].map(p=>`"${p}"`);this.url.searchParams.set("columns",h.join(","))}}return new e.default({method:u,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch})}update(s,{count:i}={}){var o;const a="PATCH";return i&&this.headers.append("Prefer",`count=${i}`),new e.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}delete({count:s}={}){var i;const o="DELETE";return s&&this.headers.append("Prefer",`count=${s}`),new e.default({method:o,url:this.url,headers:this.headers,schema:this.schema,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};return Gl.default=r,Gl}var Ry;function lD(){if(Ry)return Kl;
335Ry=1,Object.defineProperty(Kl,"__esModule",{value:!0});const t=Bo,e=t.__importDefault(IS()),r=t.__importDefault($m());let n=class DS{constructor(i,{headers:o={},schema:a,fetch:l}={}){this.url=i,this.headers=new Headers(o),this.schemaName=a,this.fetch=l}from(i){if(!i||typeof i!="string"||i.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");const o=new URL(`${this.url}/${i}`);return new e.default(o,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(i){return new DS(this.url,{headers:this.headers,schema:i,fetch:this.fetch})}rpc(i,o={},{head:a=!1,get:l=!1,count:c}={}){var u;let f;const h=new URL(`${this.url}/rpc/${i}`);let p;a||l?(f=a?"HEAD":"GET",Object.entries(o).filter(([g,y])=>y!==void 0).map(([g,y])=>[g,Array.isArray(y)?`{${y.join(",")}}`:`${y}`]).forEach(([g,y])=>{h.searchParams.append(g,y)})):(f="POST",p=o);const b=new Headers(this.headers);return c&&b.set("Prefer",`count=${c}`),new r.default({method:f,url:h,headers:b,schema:this.schemaName,body:p,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch})}};return Kl.default=n,Kl}Object.defineProperty(Et,"__esModule",{value:!0});Et.PostgrestError=Et.PostgrestBuilder=Et.PostgrestTransformBuilder=Et.PostgrestFilterBuilder=Et.PostgrestQueryBuilder=Et.PostgrestClient=void 0;const Vo=Bo,MS=Vo.__importDefault(lD());Et.PostgrestClient=MS.default;const $S=Vo.__importDefault(IS());Et.PostgrestQueryBuilder=$S.default;const LS=Vo.__importDefault($m());Et.PostgrestFilterBuilder=LS.default;const FS=Vo.__importDefault(AS());Et.PostgrestTransformBuilder=FS.default;const US=Vo.__importDefault(RS());Et.PostgrestBuilder=US.default;const BS=Vo.__importDefault(OS());Et.PostgrestError=BS.default;Et.default={PostgrestClient:MS.default,PostgrestQueryBuilder:$S.default,PostgrestFilterBuilder:LS.default,PostgrestTransformBuilder:FS.default,PostgrestBuilder:US.default,PostgrestError:BS.default};class VS{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,s=parseInt(n.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 336import ws from "ws" 337new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let r=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(r+=` 338 339Suggested solution: ${e.workaround}`),new Error(r)}static createWebSocket(e,r){const n=this.getWebSocketConstructor();return new n(e,r)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const cD="2.87.1",uD=`realtime-js/${cD}`,zS="1.0.0",dD="2.0.0",Ay=zS,Bh=1e4,fD=1e3,hD=100;var Us;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(Us||(Us={}));var nt;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(nt||(nt={}));var Tr;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(Tr||(Tr={}));var Vh;(function(t){t.websocket="websocket"})(Vh||(Vh={}));var Bs;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(Bs||(Bs={}));class pD{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,r){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(e));let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(e){var r;return this._isArrayBuffer((r=e.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var r,n;const s=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(e){var r,n;const s=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(e,r,n){var s,i;const o=e.topic,a=(s=e.ref)!==null&&s!==void 0?s:"",l=(i=e.join_ref)!==null&&i!==void 0?i:"",c=e.payload.event,u=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},f=Object.keys(u).length===0?"":JSON.stringify(u);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`metadata length ${f.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+f.length,p=new ArrayBuffer(this.HEADER_LENGTH+h);let b=new DataView(p),g=0;b.setUint8(g++,this.KINDS.userBroadcastPush),b.setUint8(g++,l.length),b.setUint8(g++,a.length),b.setUint8(g++,o.length),b.setUint8(g++,c.length),b.setUint8(g++,f.length),b.setUint8(g++,r),Array.from(l,w=>
339b.setUint8(g++,w.charCodeAt(0))),Array.from(a,w=>b.setUint8(g++,w.charCodeAt(0))),Array.from(o,w=>b.setUint8(g++,w.charCodeAt(0))),Array.from(c,w=>b.setUint8(g++,w.charCodeAt(0))),Array.from(f,w=>b.setUint8(g++,w.charCodeAt(0)));var y=new Uint8Array(p.byteLength+n.byteLength);return y.set(new Uint8Array(p),0),y.set(new Uint8Array(n),p.byteLength),y.buffer}decode(e,r){if(this._isArrayBuffer(e)){let n=this._binaryDecode(e);return r(n)}if(typeof e=="string"){const n=JSON.parse(e),[s,i,o,a,l]=n;return r({join_ref:s,ref:i,topic:o,event:a,payload:l})}return r({})}_binaryDecode(e){const r=new DataView(e),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,r,s)}}_decodeUserBroadcast(e,r,n){const s=r.getUint8(1),i=r.getUint8(2),o=r.getUint8(3),a=r.getUint8(4);let l=this.HEADER_LENGTH+4;const c=n.decode(e.slice(l,l+s));l=l+s;const u=n.decode(e.slice(l,l+i));l=l+i;const f=n.decode(e.slice(l,l+o));l=l+o;const h=e.slice(l,e.byteLength),p=a===this.JSON_ENCODING?JSON.parse(n.decode(h)):h,b={type:this.BROADCAST_EVENT,event:u,payload:p};return o>0&&(b.meta=JSON.parse(f)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:b}}_isArrayBuffer(e){var r;return e instanceof ArrayBuffer||((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(e,r){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([n])=>r.includes(n)))}}class WS{constructor(e,r){this.callback=e,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Me;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(Me||(Me={}));const Iy=(t,e,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return e?Object.keys(e).reduce((i,o)=>(i[o]=mD(o,t,e,s),i),{}):{}},mD=(t,e,r,n)=>{const s=e.find(a=>a.name===t),i=s==null?void 0:s.type,o=r[t];return i&&!n.includes(i)?HS(i,o):zh(o)},HS=(t,e)=>{if(t.charAt(0)==="_"){const r=t.slice(1,t.length);return wD(e,r)}switch(t){case Me.bool:return gD(e);case Me.float4:case Me.float8:case Me.int2:case Me.int4:case Me.int8:case Me.numeric:case Me.oid:return vD(e);case Me.json:case Me.jsonb:return yD(e);case Me.timestamp:return xD(e);case Me.abstime:case Me.date:case Me.daterange:case Me.int4range:case Me.int8range:case Me.money:case Me.reltime:case Me.text:case Me.time:case Me.timestamptz:case Me.timetz:case Me.tsrange:case Me.tstzrange:return zh(e);default:return zh(e)}},zh=t=>t,gD=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},vD=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},yD=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},wD=(t,e)=>{if(typeof t!="string")return t;const r=t.length-1,n=t[r];if(t[0]==="{"&&n==="}"){let i;const o=t.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>HS(e,a))}return t},xD=t=>typeof t=="string"?t.replace(" ","T"):t,qS=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class uf{constructor(e,r,n={},s=Bh){this.channel=e,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,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,j
339oin_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,r){var n;return this._hasReceived(e)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:e,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(r))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var Wh;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(Wh||(Wh={}));let KS=class xc{constructor(e,r){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=xc.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=xc.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=xc.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,r,n,s){const i=this.cloneDeep(e),o=this.transformState(r),a={},l={};return this.map(i,(c,u)=>{o[c]||(l[c]=u)}),this.map(o,(c,u)=>{const f=i[c];if(f){const h=u.map(y=>y.presence_ref),p=f.map(y=>y.presence_ref),b=u.filter(y=>p.indexOf(y.presence_ref)<0),g=f.filter(y=>h.indexOf(y.presence_ref)<0);b.length>0&&(a[c]=b),g.length>0&&(l[c]=g)}else a[c]=u}),this.syncDiff(i,{joins:a,leaves:l},n,s)}static syncDiff(e,r,n,s){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var c;const u=(c=e[a])!==null&&c!==void 0?c:[];if(e[a]=this.cloneDeep(l),u.length>0){const f=e[a].map(p=>p.presence_ref),h=u.filter(p=>f.indexOf(p.presence_ref)<0);e[a].unshift(...h)}n(a,u,l)}),this.map(o,(a,l)=>{let c=e[a];if(!c)return;const u=l.map(f=>f.presence_ref);c=c.filter(f=>u.indexOf(f.presence_ref)<0),e[a]=c,s(a,c,l),c.length===0&&delete e[a]}),e}static map(e,r){return Object.getOwnPropertyNames(e).map(n=>r(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((r,n)=>{const s=e[n];return"metas"in s?r[n]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=s,r},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}};var Hh;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(Hh||(Hh={}));var no;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(no||(no={}));var qr;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(qr||(qr={}));const bD=nt;let GS=class la{constructor(e,r={config:{}},n){var s,i;if(this.topic=e,this.params=r,this.socket=n,this.bindings={},this.state=nt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new uf(this,Tr.join,this.params,this.timeout),this.rejoinTimer=new WS(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=nt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=nt.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=nt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=nt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=nt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Tr.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new KS(this),this.broadcastEndpointURL=qS(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,r=this.timeout){var n,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==nt.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(p=>p.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[no.PRESENCE]&&this.bindings[no.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,f={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(p=>e==null?void 0:e(qr.CHANNEL_ERROR,p)),this._onClose(()=>e==null?void 0:e(qr.CLOSED)),this.updateJoinPayload(Object.assign({config:h},f)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:p})=>{var b;if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){e==null||e(qr.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,y=(b=g==null?void 0:g.length)!==null&&b!==void 0?b:0,w=[];for(let m=0;m<y;m++){const v=g[m],{filter:{event:_,schema:S,table:C,filter:k}}=v,P=p&&p[m];
339if(P&&P.event===_&&la.isFilterValueEqual(P.schema,S)&&la.isFilterValueEqual(P.table,C)&&la.isFilterValueEqual(P.filter,k))w.push(Object.assign(Object.assign({},v),{id:P.id}));else{this.unsubscribe(),this.state=nt.errored,e==null||e(qr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=w,e&&e(qr.SUBSCRIBED);return}}).receive("error",p=>{this.state=nt.errored,e==null||e(qr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(qr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,r={}){return await this.send({type:"presence",event:"track",payload:e},r.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,r,n){return this.state===nt.joined&&e===no.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(e,r,n)}async httpSend(e,r,n={}){var s;const i=this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"";if(r==null)return Promise.reject("Payload is required for httpSend()");const o={method:"POST",headers:{Authorization:i,apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:r,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(e,r={}){var n,s;if(!this._canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
339in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=e,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:i,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const c=this._push(e.type,e,r.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=nt.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Tr.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new uf(this,Tr.leave,{},e),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=nt.closed,this.bindings={}}async _fetchWithTimeout(e,r,n){const s=new AbortController,i=setTimeout(()=>s.abort(),n),o=await this.socket.fetch(e,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(i),o}_push(e,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new uf(this,e,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>hD){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(e,r,n){return r}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,r,n){var s,i;const o=e.toLocaleLowerCase(),{close:a,error:l,leave:c,join:u}=Tr;if(n&&[a,l,c,u].indexOf(o)>=0&&n!==this._joinRef())return;let h=this._onMessage(o,r,n);if(r&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(p=>{var b,g,y;return((b=p.filter)===null||b===void 0?void 0:b.event)==="*"||((y=(g=p.filter)===null||g===void 0?void 0:g.event)===null||y===void 0?void 0:y.toLocaleLowerCase())===o}).map(p=>p.callback(h,n)):(i=this.bindings[o])===null||i===void 0||i.filter(p=>{var b,g,y,w,m,v;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const _=p.id,S=(b=p.filter)===null||b===void 0?void 0:b.event;return _&&((g=r.ids)===null||g===void 0?void 0:g.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((y=r.data)===null||y===void 0?void 0:y.type.toLocaleLowerCase()))}else{const _=(m=(w=p==null?void 0:p.filter)===null||w===void 0?void 0:w.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return _==="*"||_===((v=r==null?void 0:r.event)===null||v===void 0?void 0:v.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof h=="object"&&"ids"in h){const b=h.data,{schema:g,table:y,commit_timestamp:w,type:m,errors:v}=b;h=Object.assign(Object.assign({},{schema:g,table:y,commit_timestamp:w,eventType:m,new:{},old:{},errors:v}),this._getPayloadRecords(b))}p.callback(h,n)})}_isClosed(){return this.state===nt.closed}_isJoined(){return this.state===nt.joined}_isJoining(){return this.state===nt.joining}_isLeaving(){return this.state===nt.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,r,n){const s=e.toLocaleLowerCase(),i={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(e,r){const n=e.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&la.isEqual(s.filter,r))})),this}static isEqual(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const n in e)if(e[n]!==r[n])return!1;return!0}static isFilterValueEqual(e,r){return(e??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(Tr.close,{},e)}_onError(e){this._on(Tr.error,{},r=>e(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=nt.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const r={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(r.new=Iy(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(r.old=Iy(e.columns,e.old_record)),r}};const df=()=>{},Xl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},_D=[1e3,2e3,5e3,1e4],SD=1e4,ED=` 340 addEventListener("message", (e) => { 341 if (e.data.event === "start") { 342 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 343 } 344 });`;let kD=class{constructor(e,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Bh,this.transport=null,this.heartbeatIntervalMs=Xl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=df,this.ref=0,this.reconnectTimer=null,this.vsn=Ay,this.logger=
344df,this.conn=null,this.sendBuffer=[],this.serializer=new pD,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${e}/${Vh.websocket}`,this.httpEndpoint=qS(e),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=VS.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const r=e.message;throw r.includes("Node.js")?new Error(`${r} 345 346To use Realtime in Node.js, you need to provide a WebSocket implementation: 347 348Option 1: Use Node.js 22+ which has native WebSocket support 349Option 2: Install and provide the "ws" package: 350 351 npm install ws 352 353 import ws from "ws" 354 const client = new RealtimeClient(url, { 355 ...options, 356 transport: ws 357 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(e,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(e?this.conn.close(e,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const r=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,r,n){this.logger(e,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Us.connecting:return Bs.Connecting;case Us.open:return Bs.Open;case Us.closing:return Bs.Closing;default:return Bs.Closed}}isConnected(){return this.connectionState()===Bs.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,r={config:{}}){const n=`realtime:${e}`,s=this.getChannels().find(i=>i.topic===n);if(s)return s;{const i=new GS(`realtime:${e}`,r,this);return this.channels.push(i),i}}push(e){const{topic:r,event:n,payload:s,ref:i}=e,o=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(fD,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
357heduleTimeout()},Xl.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let r=this.channels.find(n=>n.topic===e&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${e}"`),r.unsubscribe())}_remove(e){this.channels=this.channels.filter(r=>r.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:s,payload:i,ref:o}=r,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${n} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(n)).forEach(c=>c._trigger(s,i,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(e){var r;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){if(this.conn){if(this.conn.readyState===Us.open||this.conn.readyState===Us.connecting)try{this.conn.close()}catch(e){this.log("error","Error closing connection",e)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var r;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
357heduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(Tr.error))}_appendParams(e,r){if(Object.keys(r).length===0)return e;const n=e.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${e}${n}${s}`}_workerObjectUrl(e){let r;if(e)r=e;else{const n=new Blob([ED],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(e,r=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(e=null){let r,n=!1;if(e)r=e,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(s=>{const i={access_token:r,version:uD};r&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(Tr.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${e}`,r)})}_triggerStateCallbacks(e,r){try{this.stateChangeCallbacks[e].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new WS(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Xl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var r,n,s,i,o,a,l,c,u,f,h,p;switch(this.transport=(r=e==null?void 0:e.transport)!==null&&r!==void 0?r:null,this.timeout=(n=e==null?void 0:e.timeout)!==null&&n!==void 0?n:Bh,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:Xl.HEARTBEAT_INTERVAL,this.worker=(i=e==null?void 0:e.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=e==null?void 0:e.heartbeatCallback)!==null&&a!==void 0?a:df,this.vsn=(l=e==null?void 0:e.vsn)!==null&&l!==void 0?l:Ay,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=e==null?void 0:e.reconnectAfterMs)!==null&&c!==void 0?c:b=>_D[b-1]||SD,this.vsn){case zS:this.encode=(u=e==null?void 0:e.encode)!==null&&u!==void 0?u:(b,g)=>g(JSON.stringify(b)),this.decode=(f=e==null?void 0:e.decode)!==null&&f!==void 0?f:(b,g)=>g(JSON.parse(b));break;case dD:this.encode=(h=e==null?void 0:e.encode)!==null&&h!==void 0?h:this.serializer.encode.bind(this.serializer),this.decode=(p=e==null?void 0:e.decode)!==null&&p!==void 0?p:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}};const CD=Object.freeze(Object.defineProperty({__proto__:null,REALTIME_CHANNEL_STATES:bD,get REALTIME_LISTEN_TYPES(){return no},get REALTIME_POSTGRES_CHANGES_LISTEN_EVENT(){return Hh},get REALTIME_PRESENCE_LISTEN_EVENTS(){return Wh},get REALTIME_SUBSCRIBE_STATES(){return qr},RealtimeChannel:GS,RealtimeClient:kD,RealtimePresence:KS,WebSocketFactory:VS},Symbol.toStringTag,{value:"Module"})),YS=rl(CD);class ml extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function We(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class QS extends ml{constructor(e,r,n){super(e),this.name="StorageApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class yu extends ml{constructor(e,r){super(e),this.name="StorageUnknownError",this.originalError=r}}const Lm=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),TD=()=>Response,qh=t=>{if(Array.isArray(t))return t.map(r=>qh(r));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[s]=qh(n)}),e},jD=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);
357return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},PD=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),ff=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},ND=(t,e,r)=>Z(void 0,void 0,void 0,function*(){const n=yield TD();t instanceof n&&!(r!=null&&r.noResolveJson)?t.json().then(s=>{const i=t.status||500,o=(s==null?void 0:s.statusCode)||i+"";e(new QS(ff(s),i,o))}).catch(s=>{e(new yu(ff(s),s))}):e(new yu(ff(t),t))}),OD=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!n?s:(jD(n)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(n)):s.body=n,e!=null&&e.duplex&&(s.duplex=e.duplex),Object.assign(Object.assign({},s),r))};function gl(t,e,r,n,s,i){return Z(this,void 0,void 0,function*(){return new Promise((o,a)=>{t(r,OD(e,n,s,i)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>ND(l,a,n))})})}function Ja(t,e,r,n){return Z(this,void 0,void 0,function*(){return gl(t,"GET",e,r,n)})}function _r(t,e,r,n,s){return Z(this,void 0,void 0,function*(){return gl(t,"POST",e,n,s,r)})}function Kh(t,e,r,n,s){return Z(this,void 0,void 0,function*(){return gl(t,"PUT",e,n,s,r)})}function RD(t,e,r,n){return Z(this,void 0,void 0,function*(){return gl(t,"HEAD",e,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function Fm(t,e,r,n,s){return Z(this,void 0,void 0,function*(){return gl(t,"DELETE",e,n,s,r)})}class AD{constructor(e,r){this.downloadFn=e,this.shouldThrowOnError=r}then(e,r){return this.execute().then(e,r)}execute(){return Z(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(We(e))return{data:null,error:e};throw e}})}}var JS;class ID{constructor(e,r){this.downloadFn=e,this.shouldThrowOnError=r,this[JS]="BlobDownloadBuilder",this.promise=null}asStream(){return new AD(this.downloadFn,this.shouldThrowOnError)}then(e,r){return this.getPromise().then(e,r)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}execute(){return Z(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(We(e))return{data:null,error:e};throw e}})}}JS=Symbol.toStringTag;const DD={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Dy={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class MD{constructor(e,r={},n,s){this.shouldThrowOnError=!1,this.url=e,this.headers=r,this.bucketId=n,this.fetch=Lm(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(e,r,n,s){return Z(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},Dy),s);let a=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",this.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const c=this._removeEmptyFolders(r),u=this._getFinalPath(c),f=yield(e=="PUT"?Kh:_r)(this.fetch,`${this.url}/object/${u}`,i,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:c,id:f.Id,fullPath:f.Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(We(i))return{data:null,error:i};throw i}})}upload(e,r,n){return Z(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,r,n)})}uploadToSignedUrl(e,r,n,s){return Z(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(e),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",r);try{let l;const c=Object.assign({upsert:Dy.upsert},s),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType);const f=yield Kh(this.fetch,a.toString(),l,{headers:u});return{data:{path:i,fullPath:f.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(We(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,r){return Z(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e);const s=Object.assign({},this.headers);r!=null&&r.upsert&&(s["x-upsert"]="true");const i=yield _r(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:s}),o=new URL(this.url+i.url),a=o.searchParams.get("token");if(!a)throw new ml("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(We(n))return{data:null,error:n};throw n}})}update(e,r,n){return Z(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,r,n)})}move(e,r,n){return Z(this,void 0,void 0,function*(){try{return{data:yield _r(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}copy(e,r,n){return Z(this,void 0,void 0,function*(){try{return{data:{path:(yield _r(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}createSignedUrl(e,r,n){return Z(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e),i=yield _r(this.fetch,`${this.url}/object/sign/${s}
357`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}createSignedUrls(e,r,n){return Z(this,void 0,void 0,function*(){try{const s=yield _r(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:e},{headers:this.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}download(e,r){const s=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),o=i?`?${i}`:"",a=this._getFinalPath(e),l=()=>Ja(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0});return new ID(l,this.shouldThrowOnError)}info(e){return Z(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{const n=yield Ja(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:qh(n),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(We(n))return{data:null,error:n};throw n}})}exists(e){return Z(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{return yield RD(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(We(n)&&n instanceof yu){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}})}getPublicUrl(e,r){const n=this._getFinalPath(e),s=[],i=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";i!==""&&s.push(i);const a=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&s.push(l);let c=s.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${c}`)}}}remove(e){return Z(this,void 0,void 0,function*(){try{return{data:yield Fm(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}list(e,r,n){return Z(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},DD),r),{prefix:e||""});return{data:yield _r(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},n),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}listV2(e,r){return Z(this,void 0,void 0,function*(){try{const n=Object.assign({},e);return{data:yield _r(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(We(n))return{data:null,error:n};throw n}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const r=[];return e.width&&r.push(`width=${e.width}`),e.height&&r.push(`height=${e.height}`),e.resize&&r.push(`resize=${e.resize}`),e.format&&r.push(`format=${e.format}`),e.quality&&r.push(`quality=${e.quality}`),r.join("&")}}const ZS="2.87.1",XS={"X-Client-Info":`storage-js/${ZS}`};class $D{constructor(e,r={},n,s){this.shouldThrowOnError=!1;const i=new URL(e);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},XS),r),this.fetch=Lm(n)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(e){return Z(this,void 0,void 0,function*(){try{const r=this.listBucketOptionsToQueryString(e);return{data:yield Ja(this.fetch,`${this.url}/bucket${r}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}getBucket(e){return Z(this,void 0,void 0,function*(){try{return{data:yield Ja(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}createBucket(e){return Z(this,arguments,void 0,function*(r,n={public:!1}){try{return{data:yield _r(this.fetch,`${this.url}/bucket`,{id:r,name:r,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}updateBucket(e,r){return Z(this,void 0,void 0,function*(){try{return{data:yield Kh(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(We(n))return{data:null,error:n};throw n}})}emptyBucket(e){return Z(this,void 0,void 0,function*(){try{return{data:yield _r(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}deleteBucket(e){return Z(this,void 0,void 0,function*(){try{return{data:yield Fm(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}listBucketOptionsToQueryString(e){const r={};return e&&("limit"in e&&(r.limit=String(e.limit)),"offset"in e&&(r.offset=String(e.offset)),e.search&&(r.search=e.search),e.sortColumn&&(r.sortColumn=e.sortColumn),e.sortOrder&&(r.sortOrder=e.sortOrder)),Object.keys(r).length>0?"?"+new URLSearchParams(r).toString():""}}
357var Za=class extends Error{constructor(t,e){var r;super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&((r=e.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function LD(t,e,r){const n=new URL(e,t);if(r)for(const[s,i]of Object.entries(r))i!==void 0&&n.searchParams.set(s,i);return n.toString()}async function FD(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function UD(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:s,body:i,headers:o}){const a=LD(t.baseUrl,n,s),l=await FD(t.auth),c=await e(a,{method:r,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),u=await c.text(),f=(c.headers.get("content-type")||"").includes("application/json"),h=f&&u?JSON.parse(u):u;if(!c.ok){const p=f?h:void 0,b=p==null?void 0:p.error;throw new Za((b==null?void 0:b.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:b==null?void 0:b.type,icebergCode:b==null?void 0:b.code,details:p})}return{status:c.status,headers:c.headers,data:h}}}}function ec(t){return t.join("�")}var BD=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:ec(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(t,e){const r={namespace:t.namespace,properties:e==null?void 0:e.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ec(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ec(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ec(t.namespace)}`}),!0}catch(e){if(e instanceof Za&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(r){if(r instanceof Za&&r.status===409)return;throw r}}};function Ei(t){return t.join("�")}var VD=class{constructor(t,e="",r){this.client=t,this.prefix=e,this.accessDelegation=r}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables`,body:e,headers:r})).data.metadata}async updateTable(t,e){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String((e==null?void 0:e.purge)??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(r){if(r instanceof Za&&r.status===404)return!1;throw r}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(r){if(r instanceof Za&&r.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw r}}},zD=class{constructor(t){var n;let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const r=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=UD({baseUrl:r,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=(n=t.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new BD(this.client,e),this.tableOps=new VD(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}
357async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}};class eE{constructor(e,r={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},XS),r),this.fetch=Lm(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(e){return Z(this,void 0,void 0,function*(){try{return{data:yield _r(this.fetch,`${this.url}/bucket`,{name:e},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}listBuckets(e){return Z(this,void 0,void 0,function*(){try{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),s=n?`${this.url}/bucket?${n}`:`${this.url}/bucket`;return{data:yield Ja(this.fetch,s,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}deleteBucket(e){return Z(this,void 0,void 0,function*(){try{return{data:yield Fm(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}from(e){if(!PD(e))throw new ml("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new zD({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:()=>Z(this,void 0,void 0,function*(){return this.headers})},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(i,o){const a=i[o];return typeof a!="function"?a:(...l)=>Z(this,void 0,void 0,function*(){try{return{data:yield a.apply(i,l),error:null}}catch(c){if(n)throw c;return{data:null,error:c}}})}})}}const Um={"X-Client-Info":`storage-js/${ZS}`,"Content-Type":"application/json"};class Bm extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}}function Ft(t){return typeof t=="object"&&t!==null&&"__isStorageVectorsError"in t}class bc extends Bm{constructor(e,r,n){super(e),this.name="StorageVectorsApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class tE extends Bm{constructor(e,r){super(e),this.name="StorageVectorsUnknownError",this.originalError=r}}var Gh;(function(t){t.InternalError="InternalError",t.S3VectorConflictException="S3VectorConflictException",t.S3VectorNotFoundException="S3VectorNotFoundException",t.S3VectorBucketNotEmpty="S3VectorBucketNotEmpty",t.S3VectorMaxBucketsExceeded="S3VectorMaxBucketsExceeded",t.S3VectorMaxIndexesExceeded="S3VectorMaxIndexesExceeded"})(Gh||(Gh={}));const fd=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),WD=()=>Response,rE=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},HD=t=>Array.from(new Float32Array(t)),qD=(t,e)=>{if(e!==void 0&&t.float32.length!==e)throw new Error(`Vector dimension mismatch: expected ${e}, got ${t.float32.length}`)},My=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),KD=(t,e,r)=>Z(void 0,void 0,void 0,function*(){if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!(r!=null&&r.noResolveJson)){const s=t.status||500,i=t;if(typeof i.json=="function")i.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||s+"";e(new bc(My(o),s,a))}).catch(()=>{const o=s+"",a=i.statusText||`HTTP ${s} error`;e(new bc(a,s,o))});else{const o=s+"",a=i.statusText||`HTTP ${s} error`;e(new bc(a,s,o))}}else e(new tE(My(t),t))}),GD=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return n?(rE(n)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(n)):s.body=n,Object.assign(Object.assign({},s),r)):s};function YD(t,e,r,n,s,i){return Z(this,void 0,void 0,function*(){return new Promise((o,a)=>{t(r,GD(e,n,s,i)).then(l=>{if(!l.ok)throw l;if(n!=null&&n.noResolveJson)return l;const c=l.headers.get("content-type");return!c||!c.includes("application/json")?{}:l.json()}).then(l=>o(l)).catch(l=>KD(l,a,n))})})}function Gt(t,e,r,n,s){return Z(this,void 0,void 0,function*(){return YD(t,"POST",e,n,s,r)})}class nE{constructor(e,r={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Um),r),this.fetch=fd(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createIndex(e){return Z(this,void 0,void 0,function*(){try{return{data:(yield Gt(this.fetch,`${this.url}/CreateIndex`,e,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}getIndex(e,r){return Z(this,void 0,void 0,function*(){try{return{data:yield Gt(this.fetch,`${this.url}/GetIndex`,{vectorBucketName:e,indexName:r},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ft(n))return{data:null,error:n};throw n}})}listIndexes(e){return Z(this,void 0,void 0,function*(){try{return{data:yield Gt(this.fetch,`${this.url}/ListIndexes`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}deleteIndex(e,r){return Z(this,void 0,void 0,function*(){try{return{data:(yield Gt(this.fetch,`${this.url}/DeleteIndex`,{vectorBucketName:e,indexName:r},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ft(n))return{data:null,error:n};throw n}})}}class sE{constructor(e,r={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Um),r),this.fetch=fd(n)}throwOnError(){return this.shouldThrowOnError=!0,this}putVectors(e){return Z(this,void 0,void 0,function*(){try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:(yield Gt(this.fetch,`${this.url}/PutVectors`,e,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}getVectors(e){return Z(this,void 0,void 0,function*(){try{return{data:yield Gt(this.fetch,`${this.url}/GetVectors`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}listVectors(e){return Z(this,void 0,void 0,function*(){try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
357if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:yield Gt(this.fetch,`${this.url}/ListVectors`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}queryVectors(e){return Z(this,void 0,void 0,function*(){try{return{data:yield Gt(this.fetch,`${this.url}/QueryVectors`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}deleteVectors(e){return Z(this,void 0,void 0,function*(){try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:(yield Gt(this.fetch,`${this.url}/DeleteVectors`,e,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}}class iE{constructor(e,r={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Um),r),this.fetch=fd(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(e){return Z(this,void 0,void 0,function*(){try{return{data:(yield Gt(this.fetch,`${this.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}getBucket(e){return Z(this,void 0,void 0,function*(){try{return{data:yield Gt(this.fetch,`${this.url}/GetVectorBucket`,{vectorBucketName:e},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}listBuckets(){return Z(this,arguments,void 0,function*(e={}){try{return{data:yield Gt(this.fetch,`${this.url}/ListVectorBuckets`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}deleteBucket(e){return Z(this,void 0,void 0,function*(){try{return{data:(yield Gt(this.fetch,`${this.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ft(r))return{data:null,error:r};throw r}})}}class oE extends iE{constructor(e,r={}){super(e,r.headers||{},r.fetch)}from(e){return new aE(this.url,this.headers,e,this.fetch)}createBucket(e){const r=Object.create(null,{createBucket:{get:()=>super.createBucket}});return Z(this,void 0,void 0,function*(){return r.createBucket.call(this,e)})}getBucket(e){const r=Object.create(null,{getBucket:{get:()=>super.getBucket}});return Z(this,void 0,void 0,function*(){return r.getBucket.call(this,e)})}listBuckets(){const e=Object.create(null,{listBuckets:{get:()=>super.listBuckets}});return Z(this,arguments,void 0,function*(r={}){return e.listBuckets.call(this,r)})}deleteBucket(e){const r=Object.create(null,{deleteBucket:{get:()=>super.deleteBucket}});return Z(this,void 0,void 0,function*(){return r.deleteBucket.call(this,e)})}}class aE extends nE{constructor(e,r,n,s){super(e,r,s),this.vectorBucketName=n}createIndex(e){const r=Object.create(null,{createIndex:{get:()=>super.createIndex}});return Z(this,void 0,void 0,function*(){return r.createIndex.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName}))})}listIndexes(){const e=Object.create(null,{listIndexes:{get:()=>super.listIndexes}});return Z(this,arguments,void 0,function*(r={}){return e.listIndexes.call(this,Object.assign(Object.assign({},r),{vectorBucketName:this.vectorBucketName}))})}getIndex(e){const r=Object.create(null,{getIndex:{get:()=>super.getIndex}});return Z(this,void 0,void 0,function*(){return r.getIndex.call(this,this.vectorBucketName,e)})}deleteIndex(e){const r=Object.create(null,{deleteIndex:{get:()=>super.deleteIndex}});return Z(this,void 0,void 0,function*(){return r.deleteIndex.call(this,this.vectorBucketName,e)})}index(e){return new lE(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}class lE extends sE{constructor(e,r,n,s,i){super(e,r,i),this.vectorBucketName=n,this.indexName=s}putVectors(e){const r=Object.create(null,{putVectors:{get:()=>super.putVectors}});return Z(this,void 0,void 0,function*(){return r.putVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}getVectors(e){const r=Object.create(null,{getVectors:{get:()=>super.getVectors}});return Z(this,void 0,void 0,function*(){return r.getVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}listVectors(){const e=Object.create(null,{listVectors:{get:()=>super.listVectors}});return Z(this,arguments,void 0,function*(r={}){return e.listVectors.call(this,Object.assign(Object.assign({},r),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}queryVectors(e){const r=Object.create(null,{queryVectors:{get:()=>super.queryVectors}});return Z(this,void 0,void 0,function*(){return r.queryVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}deleteVectors(e){const r=Object.create(null,{deleteVectors:{get:()=>super.deleteVectors}});return Z(this,void 0,void 0,function*(){return r.deleteVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}}class QD extends $D{constructor(e,r={},n,s){super(e,r,n,s)}from(e){return new MD(this.url,this.headers,e,this.fetch)}get vectors(){return new oE(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new eE(this.url+"/iceberg",this.headers,this.fetch)}}const JD=Object.freeze(Object.defineProperty({__proto__:null,StorageAnalyticsClient:eE,StorageApiError:QS,StorageClient:QD,StorageError:ml,StorageUnknownError:yu,StorageVectorsApiError:bc,StorageVectorsClient:oE,StorageVectorsError:Bm,get StorageVectorsErrorCode(){return Gh},StorageVectorsUnknownError:tE,VectorBucketApi:iE,VectorBucketScope:aE,VectorDataApi:sE,VectorIndexApi:nE,VectorIndexScope:lE,isPlainObject:rE,isStorageError:We,isStorageVectorsError:Ft,normalizeToFloat32:HD,resolveFetch:fd,resolveResponse:WD,validateVectorDimension:qD},Symbol.toStringTag,{value:"Module"})),ZD=rl(JD);var cE={},hd={};Object.defineProperty(hd,"__esModule",{value:!0});hd.version=void 0;hd.version="2.87.1";
357(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REALTIME_OPTIONS=t.DEFAULT_AUTH_OPTIONS=t.DEFAULT_DB_OPTIONS=t.DEFAULT_GLOBAL_OPTIONS=t.DEFAULT_HEADERS=void 0;const e=hd;let r="";typeof Deno<"u"?r="deno":typeof document<"u"?r="web":typeof navigator<"u"&&navigator.product==="ReactNative"?r="react-native":r="node",t.DEFAULT_HEADERS={"X-Client-Info":`supabase-js-${r}/${e.version}`},t.DEFAULT_GLOBAL_OPTIONS={headers:t.DEFAULT_HEADERS},t.DEFAULT_DB_OPTIONS={schema:"public"},t.DEFAULT_AUTH_OPTIONS={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},t.DEFAULT_REALTIME_OPTIONS={}})(cE);var uE={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchWithAuth=t.resolveHeadersConstructor=t.resolveFetch=void 0;const e=s=>s?(...i)=>s(...i):(...i)=>fetch(...i);t.resolveFetch=e;const r=()=>Headers;t.resolveHeadersConstructor=r;const n=(s,i,o)=>{const a=(0,t.resolveFetch)(o),l=(0,t.resolveHeadersConstructor)();return async(c,u)=>{var f;const h=(f=await i())!==null&&f!==void 0?f:s;let p=new l(u==null?void 0:u.headers);return p.has("apikey")||p.set("apikey",s),p.has("Authorization")||p.set("Authorization",`Bearer ${h}`),a(c,Object.assign(Object.assign({},u),{headers:p}))}};t.fetchWithAuth=n})(uE);var Ts={};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.isBrowser=void 0;Ts.uuid=XD;Ts.ensureTrailingSlash=dE;Ts.applySettingDefaults=tM;Ts.validateSupabaseUrl=rM;function XD(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,r=t=="x"?e:e&3|8;return r.toString(16)})}function dE(t){return t.endsWith("/")?t:t+"/"}const eM=()=>typeof window<"u";Ts.isBrowser=eM;function tM(t,e){var r,n;const{db:s,auth:i,realtime:o,global:a}=t,{db:l,auth:c,realtime:u,global:f}=e,h={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},c),i),realtime:Object.assign(Object.assign({},u),o),storage:{},global:Object.assign(Object.assign(Object.assign({},f),a),{headers:Object.assign(Object.assign({},(r=f==null?void 0:f.headers)!==null&&r!==void 0?r:{}),(n=a==null?void 0:a.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return t.accessToken?h.accessToken=t.accessToken:delete h.accessToken,h}function rM(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(dE(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var pd={};const fE="2.87.1",Ri=30*1e3,Yh=3,hf=Yh*Ri,nM="http://localhost:9999",sM="supabase.auth.token",iM={"X-Client-Info":`gotrue-js/${fE}`},Qh="X-Supabase-Api-Version",hE={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},oM=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,aM=10*60*1e3;let No=class extends Error{constructor(e,r,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}};function re(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}let pE=class extends No{constructor(e,r,n){super(e,r,n),this.name="AuthApiError",this.status=r,this.code=n}};function mE(t){return re(t)&&t.name==="AuthApiError"}let Yn=class extends No{constructor(e,r){super(e),this.name="AuthUnknownError",this.originalError=r}},Nn=class extends No{constructor(e,r,n,s){super(e,n,s),this.name=r,this.status=n}},Dt=class extends Nn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}};function gE(t){return re(t)&&t.name==="AuthSessionMissingError"}let Ms=class extends Nn{constructor(){super("Auth session or user missing","AuthInvalidToken
357ResponseError",500,void 0)}},ca=class extends Nn{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}},ua=class extends Nn{constructor(e,r=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}};function vE(t){return re(t)&&t.name==="AuthImplicitGrantRedirectError"}let Jh=class extends Nn{constructor(e,r=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}},wu=class extends Nn{constructor(e,r){super(e,"AuthRetryableFetchError",r,void 0)}};function _c(t){return re(t)&&t.name==="AuthRetryableFetchError"}let Zh=class extends Nn{constructor(e,r,n){super(e,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}};function lM(t){return re(t)&&t.name==="AuthWeakPasswordError"}let xu=class extends Nn{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}};const bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),$y=` 358\r=`.split(""),cM=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<$y.length;e+=1)t[$y[e].charCodeAt(0)]=-2;for(let e=0;e<bu.length;e+=1)t[bu[e].charCodeAt(0)]=e;return t})();function Ly(t,e,r){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(bu[n]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(bu[n]),e.queuedBits-=6}}function yE(t,e,r){const n=cM[t];if(n>-1)for(e.queue=e.queue<<6|n,e.queuedBits+=6;e.queuedBits>=8;)r(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Fy(t){const e=[],r=o=>{e.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{fM(o,n,r)};for(let o=0;o<t.length;o+=1)yE(t.charCodeAt(o),s,i);return e.join("")}function uM(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function dM(t,e){for(let r=0;r<t.length;r+=1){let n=t.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(t.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}uM(n,e)}}function fM(t,e,r){if(e.utf8seq===0){if(t<=127){r(t);return}for(let n=1;n<6;n+=1)if(!(t>>7-n&1)){e.utf8seq=n;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&r(e.codepoint)}}function so(t){const e=[],r={queue:0,queuedBits:0},n=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)yE(t.charCodeAt(s),r,n);return new Uint8Array(e)}function hM(t){const e=[];return dM(t,r=>e.push(r)),new Uint8Array(e)}function qs(t){const e=[],r={queue:0,queuedBits:0},n=s=>{e.push(s)};return t.forEach(s=>Ly(s,r,n)),Ly(null,r,n),e.join("")}function pM(t){return Math.round(Date.now()/1e3)+t}function mM(){return Symbol("auth-callback")}const pt=()=>typeof window<"u"&&typeof document<"u",Os={tested:!1,writable:!1},wE=()=>{if(!pt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Os.tested)return Os.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),Os.tested=!0,Os.writable=!0}catch{Os.tested=!0,Os.writable=!1}return Os.writable};function gM(t){const e={},r=new URL(t);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((s,i)=>{e[i]=s})}catch{}return r.searchParams.forEach((n,s)=>{e[s]=n}),e}const xE=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),vM=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Ai=async(t,e,r)=>{await t.setItem(e,JSON.stringify(r))},Rs=async(t,e)=>{const r=await t.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return r}},ht=async(t,e)=>{await t.removeItem(e)};class md{constructor(){this.promise=new md.promiseConstructor((e,r)=>{this.resolve=e,this.reject=r})}}md.promiseConstructor=Promise;function pf(t){const e=t.split(".");if(e.length!==3)throw new xu("Invalid JWT structure");for(let n=0;n<e.length;n++)if(!oM.test(e[n]))throw new xu("JWT not in base64url format");return{header:JSON.parse(Fy(e[0])),payload:JSON.parse(Fy(e[1])),signature:so(e[2]),raw:{header:e[0],payload:e[1]}}}async function yM(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function wM(t,e){return new Promise((n,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await t(i);if(!e(i,null,o)){n(o);return}}catch(o){if(!e(i,o)){s(o);return}}})()})}function xM(t){return("0"+t.toString(16)).substr(-2)}function bM(){const e=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let i=0;i<56;i++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(e),Array.from(e,xM).join("")}async function _M(t){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function SM(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code
358challenge method will default to use plain instead of sha256."),t;const r=await _M(t);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ki(t,e,r=!1){const n=bM();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await Ai(t,`${e}-code-verifier`,s);const i=await SM(n);return[i,n===i?"plain":"s256"]}const EM=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function kM(t){const e=t.headers.get(Qh);if(!e||!e.match(EM))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function CM(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function TM(t){switch(t){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 jM=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Ci(t){if(!jM.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function mf(){const t={};return new Proxy(t,{get:(e,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function PM(t,e){return new Proxy(t,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const i=n.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!e.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(r,n,s)}})}function Uy(t){return JSON.parse(JSON.stringify(t))}const $s=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),NM=[502,503,504];async function By(t){var e;if(!vM(t))throw new wu($s(t),0);if(NM.includes(t.status))throw new wu($s(t),t.status);let r;try{r=await t.json()}catch(i){throw new Yn($s(i),i)}let n;const s=kM(t);if(s&&s.getTime()>=hE["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Zh($s(r),t.status,((e=r.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(n==="session_not_found")throw new Dt}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Zh($s(r),t.status,r.weak_password.reasons);throw new pE($s(r),t.status||500,n)}const OM=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function oe(t,e,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);i[Qh]||(i[Qh]=hE["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await RM(t,e,r+a,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function RM(t,e,r,n,s,i){const o=OM(e,n,s,i);let a;try{a=await t(r,Object.assign({},o))}catch(l){throw console.error(l),new wu($s(l),0)}if(a.ok||await By(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await By(l)}}function yr(t){var e;let r=null;DM(t)&&(r=Object.assign({},t),t.expires_at||(r.expires_at=pM(t.expires_in)));const n=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:r,user:n},error:null}}function Vy(t){const e=yr(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Qn(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function AM(t){return{data:t,error:null}}function IM(t){const{action_link:e,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=t,o=Es(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function zy(t){return t}function DM(t){return t.access_token&&t.refresh_token&&t.expires_in}const Sc=["global","local","others"];let Vm=class{constructor({url:e="",headers:r={},fetch:n}){this.url=e,this.headers=r,this.fetch=xE(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(e,r=Sc[0]){if(Sc.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Sc.join(", ")}`);try{return await oe(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e,r={}){try{return await oe(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Qn})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:r}=e,n=Es(e,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await oe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:IM,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(re(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(e){try{return await oe(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Qn})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async listUsers(e){var r,n,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await oe(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:zy});if(u.error)throw u.error;const f=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>
3580&&(p.forEach(b=>{const g=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(b.split(";")[1].split("=")[1]);c[`${y}Page`]=g}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(re(c))return{data:{users:[]},error:c};throw c}}async getUserById(e){Ci(e);try{return await oe(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Qn})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async updateUserById(e,r){Ci(e);try{return await oe(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:r,headers:this.headers,xform:Qn})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,r=!1){Ci(e);try{return await oe(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:r},xform:Qn})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){Ci(e.userId);try{const{data:r,error:n}=await oe(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(re(r))return{data:null,error:r};throw r}}async _deleteFactor(e){Ci(e.userId),Ci(e.id);try{return{data:await oe(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(r){if(re(r))return{data:null,error:r};throw r}}async _listOAuthClients(e){var r,n,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await oe(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:zy});if(u.error)throw u.error;const f=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(b=>{const g=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(b.split(";")[1].split("=")[1]);c[`${y}Page`]=g}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(re(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(e){try{return await oe(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(re(r))return{data:null,error:r};throw r}}async _getOAuthClient(e){try{return await oe(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(re(r))return{data:null,error:r};throw r}}async _updateOAuthClient(e,r){try{return await oe(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(e){try{return await oe(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(re(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(e){try{return await oe(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(re(r))return{data:null,error:r};throw r}}};function Wy(t={}){return{getItem:e=>t[e]||null,setItem:(e,r)=>{t[e]=r},removeItem:e=>{delete t[e]}}}const Ls={debug:!!(globalThis&&wE()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class zm extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}let bE=class extends zm{};class MM extends zm{}async function _E(t,e,r){Ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const n=new globalThis.AbortController;return e>0&&setTimeout(()=>{n.abort(),Ls.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){Ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await r()}finally{Ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw Ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new bE(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Ls.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}const Hy={};async function $M(t,e,r){var n;const s=(n=Hy[t])!==null&&n!==void 0?n:Promise.resolve(),i=Promise.race([s.catch(()=>null),e>=0?new Promise((o,a)=>{setTimeout(()=>
358{a(new MM(`Acquring process lock with name "${t}" timed out`))},e)}):null].filter(o=>o)).catch(o=>{if(o&&o.isAcquireTimeout)throw o;return null}).then(async()=>await r());return Hy[t]=i.catch(async o=>{if(o&&o.isAcquireTimeout)return await s,null;throw o}),await i}function LM(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function SE(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function FM(t){return parseInt(t,16)}function UM(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,n=>n.toString(16).padStart(2,"0")).join("")}function BM(t){var e;const{chainId:r,domain:n,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:u,uri:f,version:h}=t;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!f)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(` 359`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const p=SE(t.address),b=u?`${u}://${n}`:n,g=t.statement?`${t.statement} 360`:"",y=`${b} wants you to sign in with your Ethereum account: 361${p} 362 363${g}`;let w=`URI: ${f} 364Version: ${h} 365Chain ID: ${r}${o?` 366Nonce: ${o}`:""} 367Issued At: ${i.toISOString()}`;if(s&&(w+=` 368Expiration Time: ${s.toISOString()}`),a&&(w+=` 369Not Before: ${a.toISOString()}`),l&&(w+=` 370Request ID: ${l}`),c){let m=` 371Resources:`;for(const v of c){if(!v||typeof v!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${v}`);m+=` 372- ${v}`}w+=m}return`${y} 373${w}`}class st extends Error{constructor({message:e,code:r,cause:n,name:s}){var i;super(e,{cause:n}),this.__isWebAuthnError=!0,this.name=(i=s??(n instanceof Error?n.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=r}}class _u extends st{constructor(e,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:e}),this.name="WebAuthnUnknownError",this.originalError=r}}function VM({error:t,options:e}){var r,n,s;const{publicKey:i}=e;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new st({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((r=i.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new st({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((n=i.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new st({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new st({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new st({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new st({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new st({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new st({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const o=window.location.hostname;if(EE(o)){if(i.rp.id!==o)return new st({message:`The RP ID "${i.rp.id}
373" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new st({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new st({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new st({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new st({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function zM({error:t,options:e}){const{publicKey:r}=e;if(!r)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new st({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new st({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const n=window.location.hostname;if(EE(n)){if(r.rpId!==n)return new st({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new st({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new st({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new st({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class WM{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const HM=new WM;function qM(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:r,excludeCredentials:n}=t,s=Es(t,["challenge","user","excludeCredentials"]),i=so(e).buffer,o=Object.assign(Object.assign({},r),{id:so(r.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(n&&n.length>0){a.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const c=n[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:so(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function KM(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:r}=t,n=Es(t,["challenge","allowCredentials"]),s=so(e).buffer,i=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){i.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const a=r[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:so(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function GM(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t;return{id:t.id,rawId:t.id,response:{attestationObject:qs(new Uint8Array(t.response.attestationObject)),clientDataJSON:qs(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function YM(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t,n=t.getClientExtensionResults(),s=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:qs(new Uint8Array(s.authenticatorData)),clientDataJSON:qs(new Uint8Array(s.clientDataJSON)),signature:qs(new Uint8Array(s.signature)),userHandle:s.userHandle?qs(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function EE(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function qy(){var t,e;return!!(pt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function QM(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new _u("Browser returned unexpected credential type",e)}:{data:null,error:new _u("Empty credential response",e)}}catch(e){return{data:null,error:VM({error:e,options:t})}}}async function JM(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new _u("Browser returned unexpected credential type",e)}:{data:null,error:new _u("Empty credential response",e)}}catch(e){return{data:null,error:zM({error:e,options:t})}}}const ZM={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},XM={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Su(...t){const e=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of t)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))n[i]=o;else if(r(o))n[i]=o;else if(e(o)){const a=n[i];e(a)?n[i]=Su(a,o):n[i]=Su(o)}else n[i]=o}return n}function e$(t,e){return Su(ZM,t,e||{})}function t$(t,e){return Su(XM,t,e||{})}class r${constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:r,friendlyName:n,signal:s},i){try{const{data:o,error:a}=await this.client.mfa.challenge({factorId:e,webauthn:r});if(!o)return{data:null,error:a};const l=s??HM.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:c}=o.webauthn.credential_options.publicKey;c.name||(c.name=`${c.id}:${n}`),c.displayName||(c.displayName=c.name)}switch(o.webauthn.type){case"create":{const c=e$(o.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:u,error:f}=await QM({publicKey:c,signal:l});return u?{data:{factorId:e,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:u}},error:null}:{data:null,error:f}}case"request":{const c=t$(o.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:u,error:f}=await JM(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:c,signal:l}));return u?{data:{factorId:e,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:u}},error:null}:{data:null,error:f}}}}catch(o){return re(o)?{data:null,error:o}:{data:null,error:new Yn("Unexpected error in challenge",o)}}}async _verify({challengeId:e,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:e,webauthn:n})}async _authenticate({factorId:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new No("rpId is required for WebAuthn authentication")};try{if(!qy())return{data:null,error:new Yn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:e,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:e,challengeId:o.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(o){return re(o)?{data:null,error:o}:{data:null,error:new Yn("Unexpected error in authenticate",o)}}}async _register({friendlyName:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new No("rpId is required for WebAuthn registration")};try{if(!qy())return{data:null,error:new Yn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:e});if(!o)return await this.client.mfa.listFactors().then(u=>{var f;return(f=u.data)===null||f===void 0?void 0:f.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===e&&h.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return re(o)?{data:null,error:o}:{data:null,error:new Yn("Unexpected error in register",o)}}}}LM();const n$={url:nM,storageKey:sM,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:iM,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function Ky(t,e,r){return await r()}const Ti={};let Wm=class Xh{get jwks(){var e,r;return(r=(e=Ti[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(e){Ti[this.storageKey]=Object.assign(Object.assign({},Ti[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,r;return(r=(e=Ti[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Ti[this.storageKey]=Object.assign(Object.assign({},Ti[this.storageKey]),{cachedAt:e})}constructor(e){var r,n,s;this.userStorage=null,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;const i=Object.assign(Object.assign({},n$),e);if(this.storageKey=i.storageKey,this.instanceID=(r=Xh.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,Xh.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&pt()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new Vm({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=xE(i.fetch),this.lock=i.lock||Ky,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,i.lock?this.lock=i.lock:this.persistSession&&pt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=_E:this.lock=Ky,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new r$(this)}
373,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:wE()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Wy(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Wy(this.memoryStorage)),pt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${fE}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),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 e;try{let r={},n="none";if(pt()&&(r=gM(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),pt()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),vE(i)){const l=(e=i.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return re(r)?this._returnResult({error:r}):this._returnResult({error:new Yn("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var r,n,s;try{const i=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:yr}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(re(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(e){var r,n,s;try{let i;if("email"in e){const{email:u,password:f,options:h}=e;let p=null,b=null;this.flowType==="pkce"&&([p,b]=await ki(this.storage,this.storageKey)),i=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:u,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:p,code_challenge_method:b},xform:yr})}else if("phone"in e){const{phone:u,password:f,options:h}=e;i=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:yr})}else throw new ca("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await ht(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(await ht(this.storage,`${this.storageKey}-code-verifier`),re(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(e){try{let r;if("email"in e){const{email:i,password:o,options:a}=e;r=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Vy})}else if("phone"in e){const{phone:i,password:o,options:a}=e;r=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Vy})}else throw new ca("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const i=new Ms;return this._returnResult({data:{user:null,session:null},error:i})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(re(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(e){var r,n,s,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(r=e.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=e.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:r}=e;switch(r){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(e){var r,n,s,i,o,a,l,c,u,f,h;let p,b;if("message"in e)p=e.message,b=e.signature;else{const{chain:g,wallet:y,statement:w,options:m}=e;let v;if(pt())if(typeof y=="object")v=y;else{const j=window;if("ethereum"in j&&typeof j.ethereum=="object"&&"request"in j.ethereum&&typeof j.ethereum.request=="function")v=j.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=y}const _=new URL((r=m==null?void 0:m.url)!==null&&r!==void 0?r:window.location.href),S=await v.request({method:"eth_requestAccounts"}).then(j=>j).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const C=SE(S[0]);let k=(n=m==null?void 0:m.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!k){const j=await v.request({method:"eth_chainId"});k=FM(j)}const P={domain:_.host,address:C,statement:w,uri:_.href,version:"1",chainId:k,nonce:(s=m==null?void 0:m.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=m==null?void 0:m.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=m==null?void 0:m.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=m==null?void 0:m.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=m==null?void 0:m.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=m==null?void 0:m.signInWithEthereum)===null||u===void 0?void 0:u.resources};p=BM(P),b=await v.request({method:"personal_sign",params:[UM(p),C]})}try{const{data:g,error:y}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:b},!((f=e.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=e.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:yr});if(y)throw y;if(!g||!g.session||!g.user){const w=new Ms;return this._returnResult({data:{user:null,session:null},error:w})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:y})}catch(g){if(re(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async signInWithSolana(e){var r,n,s,i,o,a,l,c,u,f,h,p;let b,g;if("message"in e)b=e.message,g=e.signature;else{const{chain:y,wallet:w,statement:m,options:v}=e;let _;if(pt())if(typeof w=="object")_=w;else{const C=window;if("solana"in C&&typeof C.solana=="object"&&("signIn"in C.solana&&typeof C.solana.signIn=="function"||"signMessage"in C.solana&&typeof C.solana.signMessage=="function"))_=C.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 w!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=w}const S=new URL((r=v==null?void 0:v.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in _&&_.signIn){const C=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),m?{statement:m}:null));let k;if(Array.isArray(C)&&C[0]&&typeof C[0]=="object")k=C[0];else if(C&&typeof C=="object"&&"signedMessage"in C&&"signature"in C)k=C;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)b=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),g=k.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");b=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(n=v==null?void 0:v.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=v==null?void 0:v.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${v.signInWithSolana.notBefore}`]:[],...!((o=v==null?void 0:v.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...!((a=v==null?void 0:v.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...!((l=v==null?void 0:v.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...!((c=v==null?void 0:v.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((f=(u=v==null?void 0:v.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||f===void 0)&&f.length?["Resources",...v.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(` 374`);const C=await _.signMessage(new TextEncoder().encode(b),"utf8");if(!C||!(C instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=C}}try{const{data:y,error:w}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:qs(g)}
374,!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=e.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:yr});if(w)throw w;if(!y||!y.session||!y.user){const m=new Ms;return this._returnResult({data:{user:null,session:null},error:m})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:w})}catch(y){if(re(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async _exchangeCodeForSession(e){const r=await Rs(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{const{data:i,error:o}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:yr});if(await ht(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new Ms;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await ht(this.storage,`${this.storageKey}-code-verifier`),re(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(e){try{const{options:r,provider:n,token:s,access_token:i,nonce:o}=e,a=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:yr}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const u=new Ms;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(r){if(re(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(e){var r,n,s,i,o;try{if("email"in e){const{email:a,options:l}=e;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await ki(this.storage,this.storageKey));const{error:f}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in e){const{phone:a,options:l}=e,{data:c,error:u}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u})}throw new ca("You must provide either an email or phone number.")}catch(a){if(await ht(this.storage,`${this.storageKey}-code-verifier`),re(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(e){var r,n;try{let s,i;"options"in e&&(s=(r=e.options)===null||r===void 0?void 0:r.redirectTo,i=(n=e.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:a}=await oe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:yr});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(re(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(e){var r,n,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await ki(this.storage,this.storageKey));const c=await oe(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(n=(r=e.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:AM});return!((i=c.data)===null||i===void 0)&&i.url&&pt()&&!(!((o=e.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await ht(this.storage,`${this.storageKey}-code-verifier`),re(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;if(n)throw n;if(!r)throw new Dt;const{error:s}=await oe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(e){if(re(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const r=`${this.url}/resend`;if("email"in e){const{email:n,type:s,options:i}=e,{error:o}=await oe(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in e){const{phone:n,type:s,options:i}=e,{data:o,error:a}=await oe(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new ca("You must provide either an email or phone number and a type")}catch(r){if(re(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(e,r){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await e(r)}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 e=null;const r=await Rs(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?e=r:(this._debug("#getSession()","session from storage is not val
374id"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=e.expires_at?e.expires_at*1e3-Date.now()<hf:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.userStorage){const o=await Rs(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=mf()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};e.user=PM(e.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const r=await this._acquireLock(-1,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(e){try{return e?await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Qn}):await this._useSession(async r=>{var n,s,i;const{data:o,error:a}=r;if(a)throw a;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Dt}:await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Qn})})}catch(r){if(re(r))return gE(r)&&(await this._removeSession(),await ht(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(e,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,r))}async _updateUser(e,r={}){try{return await this._useSession(async n=>{const{data:s,error:i}=n;if(i)throw i;if(!s.session)throw new Dt;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await ki(this.storage,this.storageKey));const{data:c,error:u}=await oe(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Qn});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await ht(this.storage,`${this.storageKey}-code-verifier`),re(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Dt;const r=Date.now()/1e3;let n=r,s=!0,i=null;const{payload:o}=pf(e.access_token);if(o.exp&&(n=o.exp,s=n<=r),s){const{data:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)throw l;i={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(r){if(re(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async r=>{var n;if(!e){const{data:o,error:a}=r;if(a)throw a;e=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(e!=null&&e.refresh_token))throw new Dt;const{data:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(re(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(e,r){try{if(!pt())throw new ua("No browser detected.");
374if(e.error||e.error_description||e.error_code)throw new ua(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new Jh("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ua("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Jh("No code detected.");const{data:m,error:v}=await this._exchangeCodeForSession(e.code);if(v)throw v;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:m.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=e;if(!i||!a||!o||!c)throw new ua("No session defined in URL");const u=Math.round(Date.now()/1e3),f=parseInt(a);let h=u+f;l&&(h=parseInt(l));const p=h-u;p*1e3<=Ri&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${f}s`);const b=h-f;u-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,h,u):u-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,h,u);const{data:g,error:y}=await this._getUser(i);if(y)throw y;const w={provider_token:n,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:h,refresh_token:o,token_type:c,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:w,redirectType:e.type},error:null})}catch(n){if(re(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const r=await Rs(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&r)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({error:i});const o=(n=s.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:a}=await this.admin.signOut(o,e);if(a&&!(mE(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return e!=="others"&&(await this._removeSession(),await ht(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const r=mM(),n={id:r,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async r=>{var n,s;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),console.error(i)}})}async resetPasswordForEmail(e,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await ki(this.storage,this.storageKey,!0));try{return await oe(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(await ht(this.storage,`${this.storageKey}-code-verifier`),re(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var e;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(e=r.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var r;try{const{data:n,error:s}=await this._useSession(async i=>{var o,a,l,c,u;const{data:f,error:h}=i;if(h)throw h;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await oe(this.fetch,"GET",p,{headers:this.headers,jwt:(u=(c=f.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return pt()&&!(!((r=e.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:e.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(re(n))return this._returnResult({data:{provider:e.provider,url:null},error:n});throw n}}async linkIdentityIdToken(e){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:i}}=r;if(s)throw s;const{options:o,provider:a,token:l,access_token:c,nonce:u}=e,f=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=i==null?void 0:i.access_token)!==null&&n!==void 0?n:void 0,body:{provider:a,id_token:l,access_token:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:yr}),{data:h,error:p}=f;return p?this._returnResult({data:{user:null,session:null},error:p}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new Ms}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:p}))}catch(s){if(await ht(this.storage,`${this.storageKey}-code-verifier`),re(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(e){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)throw o;
374return await oe(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(e){const r=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await wM(async s=>(s>0&&await yM(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await oe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:yr})),(s,i)=>{const o=200*Math.pow(2,s);return i&&_c(i)&&Date.now()+o-n<Ri})}catch(n){if(this._debug(r,"error",n),re(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",r,"url",n),pt()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await Rs(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Rs(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Ai(this.userStorage,this.storageKey+"-user",o)),s.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:mf()}else if(s&&!s.user&&!s.user){const o=await Rs(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await ht(this.storage,this.storageKey+"-user"),await Ai(this.storage,this.storageKey,s)):s.user=mf()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const i=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<hf;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${hf}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),_c(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(e){var r,n;if(!e)throw new Dt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new md;const{data:i,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!i.session)throw new Dt;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),re(i)){const o={data:null,error:i};return _c(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,r,n=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,r)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await ht(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},e),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Ai(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const i=Uy(s);await Ai(this.storage,this.storageKey,i)}else{const s=Uy(r);await Ai(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await ht(this.storage,this.storageKey),await ht(this.storage,this.storageKey+"-code-verifier"),await ht(this.storage,this.storageKey+"-user"),this.userStorage&&await ht(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&pt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
374catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Ri);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}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 e=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-e)/Ri);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ri}ms, refresh threshold is ${Yh} ticks`),s<=Yh&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof zm)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!pt()||!(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(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const r=`#_onVisibilityChanged(${e})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"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(e,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await ki(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);s.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?this._returnResult({data:null,error:i}):await oe(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(e){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:l,error:c}=await oe(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(e.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?GM(e.webauthn.credential_response):YM(e.webauthn.credential_response)})}:{code:e.code}),{data:a,error:l}=await oe(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:o,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=await oe(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:qM(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:KM(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(e){const{data:r,error:n}=await this._challenge({factorId:e.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:e.factorId,challengeId:r.id,code:e.code})}async _listFactors(){var e;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(e=r==null?void 0:r.factors)!==null&&e!==void 0?e:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var e,r;const{data:{session:n},error:s}
374=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=pf(n.access_token);let o=null;i.aal&&(o=i.aal);let a=o;((r=(e=n.user.factors)===null||e===void 0?void 0:e.filter(u=>u.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(a="aal2");const c=i.amr||[];return{data:{currentLevel:o,nextLevel:a,currentAuthenticationMethods:c},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await oe(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Dt})})}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Dt});const o=await oe(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&pt()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Dt});const o=await oe(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&pt()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;return n?this._returnResult({data:null,error:n}):r?await oe(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Dt})})}catch(e){if(re(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?(await oe(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Dt})})}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(e,r={keys:[]}){let n=r.keys.find(a=>a.kid===e);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(a=>a.kid===e),n&&this.jwks_cached_at+aM>s)return n;const{data:i,error:o}=await oe(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,n=i.keys.find(a=>a.kid===e),!n)?null:n}async getClaims(e,r={}){try{let n=e;if(!n){const{data:p,error:b}
374=await this.getSession();if(b||!p.session)return this._returnResult({data:null,error:b});n=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=pf(n);r!=null&&r.allowExpired||CM(i.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!c){const{error:p}=await this.getUser(n);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const u=TM(s.alg),f=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,f,o,hM(`${a}.${l}`)))throw new xu("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}};Wm.nextInstanceID={};const s$=Vm,i$=Wm,o$=Object.freeze(Object.defineProperty({__proto__:null,AuthAdminApi:s$,AuthApiError:pE,AuthClient:i$,AuthError:No,AuthImplicitGrantRedirectError:ua,AuthInvalidCredentialsError:ca,AuthInvalidJwtError:xu,AuthInvalidToken
374ResponseError:Ms,AuthPKCEGrantCodeExchangeError:Jh,AuthRetryableFetchError:wu,AuthSessionMissingError:Dt,AuthUnknownError:Yn,AuthWeakPasswordError:Zh,CustomAuthError:Nn,GoTrueAdminApi:Vm,GoTrueClient:Wm,NavigatorLockAcquireTimeoutError:bE,SIGN_OUT_SCOPES:Sc,isAuthApiError:mE,isAuthError:re,isAuthImplicitGrantRedirectError:vE,isAuthRetryableFetchError:_c,isAuthSessionMissingError:gE,isAuthWeakPasswordError:lM,lockInternals:Ls,navigatorLock:_E,processLock:$M},Symbol.toStringTag,{value:"Module"})),kE=rl(o$);Object.defineProperty(pd,"__esModule",{value:!0});pd.SupabaseAuthClient=void 0;const a$=kE;class l$ extends a$.AuthClient{constructor(e){super(e)}}pd.SupabaseAuthClient=l$;Object.defineProperty(gu,"__esModule",{value:!0});const c$=NS,u$=Et,d$=YS,f$=ZD,tc=cE,h$=uE,Gy=Ts,p$=pd;let m$=class{constructor(e,r,n){var s,i,o;this.supabaseUrl=e,this.supabaseKey=r;const a=(0,Gy.validateSupabaseUrl)(e);if(!r)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const l=`sb-${a.hostname.split(".")[0]}-auth-token`,c={db:tc.DEFAULT_DB_OPTIONS,realtime:tc.DEFAULT_REALTIME_OPTIONS,auth:Object.assign(Object.assign({},tc.DEFAULT_AUTH_OPTIONS),{storageKey:l}),global:tc.DEFAULT_GLOBAL_OPTIONS},u=(0,Gy.applySettingDefaults)(n??{},c);this.storageKey=(s=u.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=u.global.headers)!==null&&i!==void 0?i:{},u.accessToken?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=u.auth)!==null&&o!==void 0?o:{},this.headers,u.global.fetch),this.fetch=(0,h$.fetchWithAuth)(r,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.accessToken&&this.accessToken().then(f=>this.realtime.setAuth(f)).catch(f=>console.warn("Failed to set initial Realtime auth token:",f)),this.rest=new u$.PostgrestClient(new URL("rest/v1",a).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),this.storage=new f$.StorageClient(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new c$.FunctionsClient(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,r={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,r,n)}channel(e,r={config:{}}){return this.realtime.channel(e,r)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e,r;if(this.accessToken)return await this.accessToken();const{data:n}=await this.auth.getSession();return(r=(e=n.session)===null||e===void 0?void 0:e.access_token)!==null&&r!==void 0?r:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:r,detectSessionInUrl:n,storage:s,userStorage:i,storageKey:o,flowType:a,lock:l,debug:c,throwOnError:u},f,h){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new p$.SupabaseAuthClient({url:this.authUrl.href,headers:Object.assign(Object.assign({},p),f),storageKey:o,autoRefreshToken:e,persistSession:r,detectSessionInUrl:n,storage:s,userStorage:i,flowType:a,lock:l,debug:c,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(b=>b.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new d$.RealtimeClient(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(e,r,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};gu.default=m$;(function(t){var e=yi&&yi.__createBinding||(Object.create?function(u,f,h,p){p===void 0&&(p=h);var b=Object.getOwnPropertyDescriptor(f,h);
374(!b||("get"in b?!f.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return f[h]}}),Object.defineProperty(u,p,b)}:function(u,f,h,p){p===void 0&&(p=h),u[p]=f[h]}),r=yi&&yi.__exportStar||function(u,f){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(f,h)&&e(f,u,h)},n=yi&&yi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=t.SupabaseClient=t.FunctionRegion=t.FunctionsError=t.FunctionsRelayError=t.FunctionsFetchError=t.FunctionsHttpError=t.PostgrestError=void 0;const s=n(gu);r(kE,t);var i=Et;Object.defineProperty(t,"PostgrestError",{enumerable:!0,get:function(){return i.PostgrestError}});var o=NS;Object.defineProperty(t,"FunctionsHttpError",{enumerable:!0,get:function(){return o.FunctionsHttpError}}),Object.defineProperty(t,"FunctionsFetchError",{enumerable:!0,get:function(){return o.FunctionsFetchError}}),Object.defineProperty(t,"FunctionsRelayError",{enumerable:!0,get:function(){return o.FunctionsRelayError}}),Object.defineProperty(t,"FunctionsError",{enumerable:!0,get:function(){return o.FunctionsError}}),Object.defineProperty(t,"FunctionRegion",{enumerable:!0,get:function(){return o.FunctionRegion}}),r(YS,t);var a=gu;Object.defineProperty(t,"SupabaseClient",{enumerable:!0,get:function(){return n(a).default}});const l=(u,f,h)=>new s.default(u,f,h);t.createClient=l;function c(){if(typeof window<"u"||typeof process>"u")return!1;const u=process.version;if(u==null)return!1;const f=u.match(/^v(\d+)\./);return f?parseInt(f[1],10)<=18:!1}c()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217")})(Mm);const CE=ep(Mm),g$=f0({__proto__:null,default:CE},[Mm]),{PostgrestError:p5,FunctionsHttpError:m5,FunctionsFetchError:g5,FunctionsRelayError:v5,FunctionsError:y5,FunctionRegion:w5,SupabaseClient:x5,createClient:v$,GoTrueAdminApi:b5,GoTrueClient:_5,AuthAdminApi:S5,AuthClient:E5,navigatorLock:k5,NavigatorLockAcquireTimeoutError:C5,lockInternals:T5,processLock:j5,SIGN_OUT_SCOPES:P5,AuthError:N5,AuthApiError:O5,AuthUnknownError:R5,CustomAuthError:A5,AuthSessionMissingError:I5,AuthInvalidToken
374ResponseError:D5,AuthInvalidCredentialsError:M5,AuthImplicitGrantRedirectError:$5,AuthPKCEGrantCodeExchangeError:L5,AuthRetryableFetchError:F5,AuthWeakPasswordError:U5,AuthInvalidJwtError:B5,isAuthError:V5,isAuthApiError:z5,isAuthSessionMissingError:W5,isAuthImplicitGrantRedirectError:H5,isAuthRetryableFetchError:q5,isAuthWeakPasswordError:K5,RealtimePresence:G5,RealtimeChannel:Y5,RealtimeClient:Q5,REALTIME_LISTEN_TYPES:J5,REALTIME_POSTGRES_CHANGES_LISTEN_EVENT:Z5,REALTIME_PRESENCE_LISTEN_EVENTS:X5,REALTIME_SUBSCRIBE_STATES:eF,REALTIME_CHANNEL_STATES:tF}=CE||g$;function y$(){var y,w;if(typeof window>"u")return;const t=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(m=>t===m||t.endsWith("."+m)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=r?((y=t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:y[1])??((w=t.match(new RegExp("^("+n+")(?=[.-])","i")))==null?void 0:w[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),a=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),c=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",f=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(m,v,_)=>new Promise(S=>{const C=h();let k=!1,P;const j=M=>{k||(k=!0,clearTimeout(P),window.removeEventListener("message",D),S(M))},D=M=>{if(c.indexOf(M.origin)<0)return;const B=M.data;B&&B.type===u&&B.requestId===C&&j(B)};window.addEventListener("message",D);const G={type:m,requestId:C,projectId:s,key:v};_!==void 0&&(G.value=_);for(const M of c)window.parent.postMessage(G,M);P=setTimeout(()=>j(null),f)}
374);let b=!0;const g=250;return{getItem:async m=>{let v=await p("lovable-preview-auth:get",m);return!v&&b&&(await new Promise(_=>setTimeout(_,g)),v=await p("lovable-preview-auth:get",m)),b=!1,v&&v.ok&&typeof v.value=="string"?v.value===""?(localStorage.removeItem(m),null):v.value:localStorage.getItem(m)},setItem:(m,v)=>(localStorage.setItem(m,v),p("lovable-preview-auth:set",m,v).then(()=>{})),removeItem:m=>(localStorage.removeItem(m),p("lovable-preview-auth:remove",m).then(()=>{}))}}const w$="https://cbprsuskbimjngntbifg.supabase.co",x$="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNicHJzdXNrYmltam5nbnRiaWZnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjU0MTg2OTUsImV4cCI6MjA4MDk5NDY5NX0.Jd7C75pjF9tzuW-kwZbwJKceT0-VZj-PeUc_FCv4Ow0",Wt=v$(w$,x$,{auth:{storage:y$(),persistSession:!0,autoRefreshToken:!0}}),Yy={"office-program":"ঠফিস পà§à¦°à§à¦à§à¦°à¦¾à¦® (ফর ঠফিস মà§à¦¯à¦¾à¦¨à§à¦à¦®à§à¦¨à§à¦)","graphics-design":"à¦à§à¦°à¦¾à¦«à¦¿à¦à§à¦¸ ডিà¦à¦¾à¦à¦¨ (ফর ফà§à¦°à¦¿à¦²à§à¦¯à¦¾à¦¨à§à¦¸à¦¿à¦)","digital-marketing":"ডিà¦à¦¿à¦à¦¾à¦² মারà§à¦à§à¦à¦¿à¦ (ফর ফà§à¦°à¦¿à¦²à§à¦¯à¦¾à¦¨à§à¦¸à¦¿à¦)"},b$=({isOpen:t,onClose:e,data:r})=>{const n=a=>new Intl.DateTimeFormat("bn-BD",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(a),s=()=>` 375 <!DOCTYPE html> 376 <html lang="bn"> 377 <head> 378 <meta charset="UTF-8"> 379 <title>à¦à¦°à§à¦¤à¦¿ রিসিঠ- নাফিয়া à¦à¦¾à¦¨à§à¦¨à¦¾à¦¤ à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦°</title> 380 <style> 381 * { margin: 0; padding: 0; box-sizing: border-box; } 382 body { 383 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 384 background: #f5f5f5; 385 padding: 20px; 386 } 387 .receipt { 388 max-width: 600px; 389 margin: 0 auto; 390 background: white; 391 border: 2px solid #10B981; 392 border-radius: 12px; 393 overflow: hidden; 394 box-shadow: 0 4px 20px rgba(0,0,0,0.1); 395 } 396 .header { 397 background: linear-gradient(135deg, #10B981, #059669); 398 color: white; 399 padding: 24px; 400 text-align: center; 401 } 402 .header h1 { 403 font-size: 24px; 404 margin-bottom: 8px; 405 } 406 .header p { 407 opacity: 0.9; 408 font-size: 14px; 409 } 410 .success-badge { 411 display: inline-flex; 412 align-items: center; 413 gap: 8px; 414 background: rgba(255,255,255,0.2); 415 padding: 8px 16px; 416 border-radius: 20px; 417 margin-top: 12px; 418 font-weight: 600; 419 } 420 .content { 421 padding: 24px; 422 } 423 .info-row { 424 display: flex; 425 border-bottom: 1px solid #e5e5e5; 426 padding: 12px 0; 427 } 428 .info-row:last-child { 429 border-bottom: none; 430 } 431 .info-label { 432 width: 140px; 433 font-weight: 600; 434 color: #374151; 435 } 436 .info-value { 437 flex: 1; 438 color: #1f2937; 439 } 440 .footer { 441 background: #f9fafb; 442 padding: 16px 24px; 443 text-align: center; 444 border-top: 1px solid #e5e5e5; 445 } 446 .footer p { 447 color: #6b7280; 448 font-size: 13px; 449 margin-bottom: 4px; 450 } 451 .contact { 452 color: #10B981; 453 font-weight: 600; 454 } 455 @media print { 456 body { background: white; padding: 0; } 457 .receipt { box-shadow: none; border: 1px solid #ccc; } 458 } 459 </style> 460 </head> 461 <body> 462 <div class="receipt"> 463 <div class="header"> 464 <h1>ð নাফিয়া à¦à¦¾à¦¨à§à¦¨à¦¾à¦¤ à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦°</h1> 465 <p>à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦° পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£ à¦à§à¦¨à§à¦¦à§à¦°</p> 466 <div class="success-badge"> 467 â à¦à¦°à§à¦¤à¦¿ à¦à¦¬à§à¦¦à¦¨ সমà§à¦ªà¦¨à§à¦¨ 468 </div> 469 </div> 470 <div class="content"> 471 <div class="info-row"> 472 <div class="info-label">নাম:</div> 473 <div class="info-value">${r.name}</div> 474 </div> 475 <div class="info-row"> 476 <div class="info-label">ফà§à¦¨ নমà§à¦¬à¦°:</div> 477 <div class="info-value">${r.phone}</div> 478 </div> 479 ${r.email?` 480 <div class="info-row"> 481 <div class="info-label">à¦à¦®à§à¦à¦²:</div> 482 <div class="info-value">${r.email}</div> 483 </div> 484 `:""} 485 <div class="info-row"> 486 <div class="info-label">à¦à§à¦°à§à¦¸:</div> 487 <div class="info-value">${Yy[r.course]||r.course}</div> 488 </div> 489 ${r.bkash_trid?` 490 <div class="info-row"> 491 <div class="info-label">bKash TRID:</div> 492 <div class="info-value">${r.bkash_trid}</div> 493 </div> 494 `:""} 495 ${r.address?` 496 <div class="info-row"> 497 <div class="info-label">ঠিà¦à¦¾à¦¨à¦¾:</div> 498 <div class="info-value">${r.address}</div> 499 </div> 500 `:""} 501 ${r.message?` 502 <div class="info-row"> 503 <div class="info-label">ঠতিরিà¦à§à¦¤ তথà§à¦¯:</div> 504 <div class="info-value">${r.message}</div> 505 </div> 506 `:""} 507 <div class="info-row"> 508 <div class="info-label">à¦à¦¬à§à¦¦à¦¨à§à¦° তারিà¦:</div> 509 <div class="info-value">${n(r.submittedAt)}</div> 510 </div> 511 </div> 512 <div class="footer"> 513 <p>à¦à¦®à¦°à¦¾ শà§à¦à§à¦°à¦ à¦à¦ªà¦¨à¦¾à¦° সাথৠযà§à¦à¦¾à¦¯à§à¦ à¦à¦°à¦¬à§à¥¤</p> 514 <p class="contact">ð ০১৯৪৮১à§à§«à§§à§«à§®</p> 515 </div> 516 </div> 517 </body> 518 </html> 519 `,i=()=>{const a=s(),l=new Blob([a],{type:"text/html"}),c=URL.createObjectURL(l),u=document.createElement("a");u.href=c,u.download=`à¦à¦°à§à¦¤à¦¿-রিসিà¦-${r.name.replace(/\s+/g,"-")}.html`,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(c)},o=()=>{const a=s(),l=window.open("","_blank");l&&(l.document.write(a),l.document.close(),l.print())};return d.jsx(Rm,{open:t,onOpenChange:e,children:d.jsxs(ud,{className:"sm:max-w-[500px] bg-card border-border",children:[d.jsxs(Am,{children:[d.jsxs(Im,{className:"font-display text-2xl text-center flex items-center justify-center gap-2 text-primary",children:[d.jsx(cj,{className:"w-7 h-7"}),"à¦à¦¬à§à¦¦à¦¨ সফল হয়à§à¦à§!"]}),d.jsx(Dm,{className:"text-center text-muted-foreground",children:"à¦à¦ªà¦¨à¦¾à¦° à¦à¦°à§à¦¤à¦¿ à¦à¦¬à§à¦¦à¦¨ সমà§à¦ªà¦¨à§à¦¨ হয়à§à¦à§à¥¤ নিà¦à§ à¦à¦ªà¦¨à¦¾à¦° রিসিঠদà§à¦à§à¦¨à¥¤"})]}),d.jsxs("div",{className:"border border-border rounded-lg overflow-hidden mt-4",children:[d.jsxs("div",{className:"bg-gradient-to-r from-primary to-primary/80 text-primary-foreground p-4 text-center",children:[d.jsxs("div",{className:"flex items-center justify-center gap-2 mb-1",children:[d.jsx("img",{src:pm,alt:"Logo",className:"w-8 h-8 object-contain"}),d.jsx("h3",{className:"font-bold text-lg",children:"নাফিয়া à¦à¦¾à¦¨à§à¦¨à¦¾à¦¤ à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦°"})]}),d.jsx("p",{className:"text-sm opacity-90",children:"à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦° পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£ à¦à§à¦¨à§à¦¦à§à¦°"})]}),d.jsxs("div",{className:"p-4 space-y-2 text-sm",children:[d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"font-semibold w-24",children:"নাম:"}),d.jsx("span",{children:r.name})]}),d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"font-semibold w-24",children:"ফà§à¦¨:"}),d.jsx("span",{children:r.phone})]}),r.email&&d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"font-semibold w-24",children:"à¦à¦®à§à¦à¦²:"}),d.jsx("span",{children:r.email})]}),d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"font-semibold w-24",children:"à¦à§à¦°à§à¦¸:"}),d.jsx("span",{children:Yy[r.course]||r.course})]}),r.bkash_trid&&d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"font-semibold w-24",children:"bKash TRID:"}),d.jsx("span",{children:r.bkash_trid})]}),d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"font-semibold w-24",children:"তারিà¦:"}),d.jsx("span",{children:n(r.submittedAt)})]})]})]}),d.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-4",children:[d.jsxs(qe,{onClick:i,className:"flex-1 bg-gradient-to-r from-primary to-primary/80",children:[d.jsx(dj,{className:"w-4 h-4 mr-2"}),"রিসিঠডাà¦à¦¨à¦²à§à¦¡ à¦à¦°à§à¦¨"]}),d.jsxs(qe,{onClick:o,variant:"outline",className:"flex-1",children:[d.jsx(Ua,{className:"w-4 h-4 mr-2"}),"পà§à¦°à¦¿à¦¨à§à¦ à¦à¦°à§à¦¨"]})]}),d.jsx(qe,{onClick:e,variant:"ghost",className:"w-full mt-2",children:"বনà§à¦§ à¦à¦°à§à¦¨"})]})})},_$=M_({name:Cr().min(1,"নাম à¦à¦¬à¦¶à§à¦¯à¦").max(100,"নাম ১০০ ঠà¦à§à¦·à¦°à§à¦° à¦à¦® হতৠহবà§"),phone:Cr().min(1,"ফà§à¦¨ নমà§à¦¬à¦° à¦à¦¬à¦¶à§à¦¯à¦").max(20,"ফà§à¦¨ নমà§à¦¬à¦° সঠিঠনয়"),email:Cr().email("সঠিঠà¦à¦®à§à¦à¦² দিন").max(255,"à¦à¦®à§à¦à¦² ২৫৫ ঠà¦à§à¦·à¦°à§à¦° à¦à¦® হতৠহবà§").optional().or(oa("")),course:Cr().min(1,"à¦à§à¦°à§à¦¸ নিরà§à¦¬à¦¾à¦à¦¨ à¦à¦°à§à¦¨"),bkash_trid:Cr().max(50,"bKash TRID ৫০ ঠà¦à§à¦·à¦°à§à¦° à¦à¦® হতৠহবà§").optional().or(oa("")),address:Cr().max(500,"ঠিà¦à¦¾à¦¨à¦¾ ৫০০ ঠà¦à§à¦·à¦°à§à¦° à¦à¦® হতৠহবà§").optional().or(oa("")),message:Cr().max(1e3,"বারà§à¦¤à¦¾ ১০০০ ঠà¦à§à¦·à¦°à§à¦° à¦à¦® হতৠহবà§").optional().or(oa(""))}),S$=[{value:"office-program",label:"ঠফিস পà§à¦°à§à¦à§à¦°à¦¾à¦® (ফর ঠফিস মà§à¦¯à¦¾à¦¨à§à¦à¦®à§à¦¨à§à¦)"},{value:"graphics-design",label:"à¦à§à¦°à¦¾à¦«à¦¿à¦à§à¦¸ ডিà¦à¦¾à¦à¦¨ (ফর ফà§à¦°à¦¿à¦²à§à¦¯à¦¾à¦¨à§à¦¸à¦¿à¦)"},{value:"digital-marketing",label:"ডিà¦à¦¿à¦à¦¾à¦² মারà§à¦à§à¦à¦¿à¦ (ফর ফà§à¦°à¦¿à¦²à§à¦¯à¦¾à¦¨à§à¦¸à¦¿à¦)"}],E$=()=>{const[t,e]=x.useState(!1),[r,n]=x.useState(!1),[s,i]=x.useState(!1),[o,a]=x.useState(null),{toast:l}=Bu(),c=A2({resolver:$2(_$),defaultValues:{name:"",phone:"",email:"",course:"",bkash_trid:"",address:"",message:""}}),u=async h=>{var p,b,g,y,w,m,v,_;n(!0);try{const{error:S}=await Wt.from("training_admissions").insert({name:h.name.trim(),phone:h.phone.trim(),email:((p=h.email)==null?void 0:p.trim())||null,course:h.course,bkash_trid:((b=h.bkash_trid)==null?void 0:b.trim())||null,address:((g=h.address)==null?void 0:g.trim())||null,message:((y=h.message)==null?void 0:y.trim())||null});if(S)throw S;a({name:h.name.trim(),phone:h.phone.trim(),email:((w=h.email)==null?void 0:w.trim())||void 0,course:h.course,bkash_trid:((m=h.bkash_trid)==null?void 0:m.trim())||void 0,address:((v=h.address)==null?void 0:v.trim())||void 0,message:((_=h.message)==null?void 0:_.trim())||void 0,submittedAt:new Date}),l({title:"à¦à¦¬à§à¦¦à¦¨ সফল হয়à§à¦à§!",description:"à¦à¦®à¦°à¦¾ শà§à¦à§à¦°à¦ à¦à¦ªà¦¨à¦¾à¦° সাথৠযà§à¦à¦¾à¦¯à§à¦ à¦à¦°à¦¬à§à¥¤"}),c.reset(),e(!1),i(!0)}
519catch{l({title:"তà§à¦°à§à¦à¦¿ হয়à§à¦à§",description:"à¦à¦¬à§à¦¦à¦¨ à¦à¦®à¦¾ দিতৠসমসà§à¦¯à¦¾ হয়à§à¦à§à¥¤ à¦à¦¬à¦¾à¦° à¦à§à¦·à§à¦à¦¾ à¦à¦°à§à¦¨à¥¤",variant:"destructive"})}finally{n(!1)}},f=()=>{i(!1),a(null)};return d.jsxs(d.Fragment,{children:[d.jsxs(Rm,{open:t,onOpenChange:e,children:[d.jsx(nD,{asChild:!0,children:d.jsxs(qe,{size:"lg",className:"bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary/70 text-primary-foreground font-semibold px-8 py-6 text-lg rounded-xl shadow-lg hover:shadow-primary/25 transition-all duration-300 animate-pulse-glow",children:[d.jsx(Ua,{className:"w-5 h-5 mr-2 animate-bounce"}),"à¦à§à¦°à§à¦¸à§ à¦à¦°à§à¦¤à¦¿ হà¦à¦¯à¦¼à¦¾à¦° à¦à¦¨à§à¦¯ à¦à¦à¦¾à¦¨à§ à¦à§à¦²à¦¿à¦ à¦à¦°à§à¦¨"]})}),d.jsxs(ud,{className:"sm:max-w-[500px] bg-card border-border",children:[d.jsxs(Am,{children:[d.jsxs(Im,{className:"font-display text-2xl text-center flex items-center justify-center gap-2",children:[d.jsx(Ua,{className:"w-6 h-6 text-primary"}),"পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£à§ à¦à¦°à§à¦¤à¦¿ ফরà§à¦®"]}),d.jsx(Dm,{className:"text-center text-muted-foreground",children:"নিà¦à§à¦° ফরà§à¦®à¦à¦¿ পà§à¦°à¦£ à¦à¦°à§à¦¨à¥¤ à¦à¦®à¦°à¦¾ শà§à¦à§à¦°à¦ যà§à¦à¦¾à¦¯à§à¦ à¦à¦°à¦¬à§à¥¤"})]}),d.jsx(VI,{...c,children:d.jsxs("form",{onSubmit:c.handleSubmit(u),className:"space-y-4 mt-4",children:[d.jsx(Ns,{control:c.control,name:"name",render:({field:h})=>d.jsxs(Un,{children:[d.jsx(Bn,{children:"নাম *"}),d.jsx(Vn,{children:d.jsx(Or,{placeholder:"à¦à¦ªà¦¨à¦¾à¦° নাম লিà¦à§à¦¨",...h})}),d.jsx(zn,{})]})}),d.jsx(Ns,{control:c.control,name:"phone",render:({field:h})=>d.jsxs(Un,{children:[d.jsx(Bn,{children:"ফà§à¦¨ নমà§à¦¬à¦° *"}),d.jsx(Vn,{children:d.jsx(Or,{placeholder:"০১XXXXXXXXX",...h})}),d.jsx(zn,{})]})}),d.jsx(Ns,{control:c.control,name:"email",render:({field:h})=>d.jsxs(Un,{children:[d.jsx(Bn,{children:"à¦à¦®à§à¦à¦² (à¦à¦à§à¦à¦¿à¦)"}),d.jsx(Vn,{children:d.jsx(Or,{type:"email",placeholder:"[email protected]",...h})}),d.jsx(zn,{})]})}),d.jsx(Ns,{control:c.control,name:"course",render:({field:h})=>d.jsxs(Un,{children:[d.jsx(Bn,{children:"à¦à§à¦°à§à¦¸ নিরà§à¦¬à¦¾à¦à¦¨ à¦à¦°à§à¦¨ *"}),d.jsxs(MI,{onValueChange:h.onChange,defaultValue:h.value,children:[d.jsx(Vn,{children:d.jsx(Z1,{children:d.jsx($I,{placeholder:"à¦à§à¦°à§à¦¸ নিরà§à¦¬à¦¾à¦à¦¨ à¦à¦°à§à¦¨"})})}),d.jsx(tS,{children:S$.map(p=>d.jsx(rS,{value:p.value,children:p.label},p.value))})]}),d.jsx(zn,{})]})}),d.jsx(Ns,{control:c.control,name:"bkash_trid",render:({field:h})=>d.jsxs(Un,{children:[d.jsx(Bn,{children:"bKash TRID (à¦à¦à§à¦à¦¿à¦)"}),d.jsx(Vn,{children:d.jsx(Or,{placeholder:"পà§à¦®à§à¦¨à§à¦ à¦à¦°à¦²à§ TRID দিন",...h})}),d.jsx(zn,{})]})}),d.jsx(Ns,{control:c.control,name:"address",render:({field:h})=>d.jsxs(Un,{children:[d.jsx(Bn,{children:"ঠিà¦à¦¾à¦¨à¦¾ (à¦à¦à§à¦à¦¿à¦)"}),d.jsx(Vn,{children:d.jsx(Or,{placeholder:"à¦à¦ªà¦¨à¦¾à¦° ঠিà¦à¦¾à¦¨à¦¾ লিà¦à§à¦¨",...h})}),d.jsx(zn,{})]})}),d.jsx(Ns,{control:c.control,name:"message",render:({field:h})=>d.jsxs(Un,{children:[d.jsx(Bn,{children:"à¦
তিরিà¦à§à¦¤ তথà§à¦¯ (à¦à¦à§à¦à¦¿à¦)"}),d.jsx(Vn,{children:d.jsx(Sm,{placeholder:"à¦à¦ªà¦¨à¦¾à¦° à¦à§à¦¨ পà§à¦°à¦¶à§à¦¨ বা মনà§à¦¤à¦¬à§à¦¯ থাà¦à¦²à§ লিà¦à§à¦¨",rows:3,...h})}),d.jsx(zn,{})]})}),d.jsx(qe,{type:"submit",className:"w-full",size:"lg",disabled:r,children:r?d.jsxs(d.Fragment,{children:[d.jsx(Zi,{className:"w-4 h-4 mr-2 animate-spin"}),"à¦à¦®à¦¾ দà§à¦à¦¯à¦¼à¦¾ হà¦à§à¦à§..."]}):d.jsxs(d.Fragment,{children:[d.jsx(ub,{className:"w-4 h-4 mr-2"}),"à¦à¦¬à§à¦¦à¦¨ à¦à¦®à¦¾ দিন"]})})]})})]})]}),o&&d.jsx(b$,{isOpen:s,onClose:f,data:o})]})},k$="/assets/bkash-logo-BOHxFhx0.png",C$=[{icon:hj,title:"à¦
ফিস পà§à¦°à§à¦à§à¦°à¦¾à¦®",subtitle:"ফর à¦
ফিস মà§à¦¯à¦¾à¦¨à§à¦à¦®à§à¦¨à§à¦",description:"MS Word, Excel, PowerPoint সহ সমà§à¦ªà§à¦°à§à¦£ à¦
ফিস সà§à¦¯à§à¦ শিà¦à
519§à¦¨à¥¤",color:"from-blue-500 to-cyan-500"},{icon:bj,title:"à¦à§à¦°à¦¾à¦«à¦¿à¦à§à¦¸ ডিà¦à¦¾à¦à¦¨",subtitle:"ফর ফà§à¦°à¦¿à¦²à§à¦¯à¦¾à¦¨à§à¦¸à¦¿à¦",description:"Photoshop, Illustrator দিয়ৠপà§à¦°à¦«à§à¦¶à¦¨à¦¾à¦² ডিà¦à¦¾à¦à¦¨ শিà¦à§à¦¨à¥¤",color:"from-pink-500 to-rose-500"},{icon:Pj,title:"ডিà¦à¦¿à¦à¦¾à¦² মারà§à¦à§à¦à¦¿à¦",subtitle:"ফর ফà§à¦°à¦¿à¦²à§à¦¯à¦¾à¦¨à§à¦¸à¦¿à¦",description:"SEO, Social Media Marketing ঠà¦
নলাà¦à¦¨ মারà§à¦à§à¦à¦¿à¦ শিà¦à§à¦¨à¥¤",color:"from-green-500 to-emerald-500"}],T$=()=>d.jsxs("section",{id:"training",className:"py-20 md:py-32 relative overflow-hidden",children:[d.jsx("div",{className:"h-2 w-full bg-gradient-to-r from-primary via-accent to-primary absolute top-0 left-0"}),d.jsx("div",{className:"absolute inset-0 opacity-[0.02] bg-[linear-gradient(to_right,hsl(var(--foreground))_1px,transparent_1px),linear-gradient(to_bottom,hsl(var(--foreground))_1px,transparent_1px)] bg-[size:4rem_4rem]"}),d.jsx("div",{className:"absolute top-24 left-[22%] w-2 h-2 bg-primary/35 rounded-full animate-bounce",style:{animationDuration:"3s"}}),d.jsx("div",{className:"absolute top-48 right-[28%] w-3 h-3 bg-accent/35 rounded-full animate-bounce",style:{animationDuration:"4s",animationDelay:"0.5s"}}),d.jsx("div",{className:"absolute bottom-40 left-[32%] w-2 h-2 bg-primary/25 rounded-full animate-bounce",style:{animationDuration:"3.5s",animationDelay:"1s"}}),d.jsx("div",{className:"absolute bottom-24 right-[18%] w-4 h-4 bg-accent/25 rounded-full animate-bounce",style:{animationDuration:"4.5s",animationDelay:"1.5s"}}),d.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[d.jsx("div",{className:"mb-10 flex justify-center",children:d.jsxs("div",{className:"relative inline-flex items-center gap-3 px-6 py-3 rounded-2xl bg-gradient-to-r from-primary/20 via-primary/10 to-primary/20 border border-primary/30 animate-pulse-glow",children:[d.jsx("span",{className:"absolute -top-2 -right-2 px-2 py-0.5 bg-destructive text-destructive-foreground text-xs font-bold rounded-full animate-bounce",children:"নতà§à¦¨"}),d.jsx(Ua,{className:"w-6 h-6 text-primary"}),d.jsx("span",{className:"font-display text-lg md:text-xl font-bold text-foreground",children:"à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦° পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£à§ à¦à¦°à§à¦¤à¦¿ à¦à¦²à¦à§!"})]})}),d.jsxs("div",{className:"text-center mb-16",children:[d.jsxs("span",{className:"inline-block px-4 py-1.5 rounded-full glass-effect text-sm text-foreground font-medium mb-4",children:[d.jsx(Ua,{className:"inline-block w-4 h-4 mr-2"}),"পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£"]}),d.jsxs("h2",{className:"font-display text-3xl md:text-4xl lg:text-5xl font-bold mb-4",children:["à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦° ",d.jsx("span",{className:"text-gradient",children:"পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£"})]}),d.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"à¦à¦®à¦°à¦¾ à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦° পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£ দিয়ৠথাà¦à¦¿à¥¤ দà¦à§à¦· পà§à¦°à¦¶à¦¿à¦à§à¦·à¦à¦¦à§à¦° মাধà§à¦¯à¦®à§ হাতà§-à¦à¦²à¦®à§ শিà¦à§à¦¨à¥¤"})]}),d.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:C$.map((t,e)=>d.jsx(ir,{className:"group border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/50 transition-all duration-300 hover:shadow-lg hover:shadow-primary/10 overflow-hidden",children:d.jsxs(or,{className:"p-6 md:p-8",children:[d.jsx("div",{className:`w-16 h-16 rounded-2xl bg-gradient-to-br ${t.color} flex items-center justify-center mb-6 group-hover:scale-110 transition-transform duration-300`,children:d.jsx(t.icon,{className:"w-8 h-8 text-white"})}),d.jsx("h3",{className:"font-display text-xl font-semibold mb-1",children:t.title}),d.jsx("p",{className:"text-foreground/90 text-sm font-medium mb-3",children:t.subtitle}),d.jsx("p",{className:"text-muted-foreground text-sm",children:t.description})]})},e))}),d.jsxs("div",{className:"mt-12 text-center space-y-4",children:[d.jsx(E$,{}),d.jsx("div",{className:"flex justify-center",children:d.jsxs("a",{href:"https://shop.bkash.com/nafia-jannat-enterprises019481/paymentlink/default-payment",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 px-8 py-4 bg-[#E2136E] hover:bg-[#C91162] text-white font-semibold text-lg rounded-xl shadow-lg hover:shadow-[#E2136E]/25 transition-all duration-300",children:[d.jsx("img",{src:k$,alt:"bKash",className:"w-7 h-7 object-contain"}),"bKash দিয়ৠপà§à¦®à§à¦¨à§à¦ à¦à¦°à§à¦¨"]})})]})]})]}),j$=M_({name:Cr().trim().min(1,"নাম দিতৠহবà§").max(100,"নাম ১০০ à¦
à¦à§à¦·à¦°à§à¦° মধà§à¦¯à§ হতৠহবà§"),phone:Cr().trim().max(20,"ফà§à¦¨ নমà§à¦¬à¦° ২০ à¦
à¦à§à¦·à¦°à§à¦° মধà§à¦¯à§ হতৠহবà§").optional(),email:Cr().trim().email("সঠিঠà¦à¦®à§à¦à¦² দিন").max(255).optional().or(oa("")),message:Cr().trim().min(1,"মà§à¦¸à§à¦ লিà¦à¦¤à§ হবà§").max(1e3,"মà§à¦¸à§à¦ ১০০০ à¦
à¦à§à¦·à¦°à§à¦° মধà§à¦¯à§ হতৠহবà§")}),P$=[{icon:xj,title:"ঠিà¦à¦¾à¦¨à¦¾",details:["à¦à§à¦¡à¦¼à¦¿à¦², à¦à§à¦¡à¦¼à¦¾à¦¤à¦²à§, à¦à¦¿à¦²à¦à§à¦·à§à¦¤, ঢাà¦à¦¾, বাà¦à¦²à¦¾à¦¦à§à¦¶"]},{icon:Yc,title:"ফà§à¦¨",details:["01948175158"]},{icon:Ni,title:"à¦à¦®à§à¦à¦²",details:["[email protected]"]},{icon:ob,title:"সময়সà§à¦à§",details:["শনি - বà§à¦¹à¦: সà¦à¦¾à¦² ১০à¦à¦¾ - রাত à§®à¦à¦¾","শà§à¦à§à¦°à¦¬à¦¾à¦°: বনà§à¦§"]},{icon:Cj,title:"বিà¦à¦¾à¦¶ পà§à¦®à§à¦¨à§à¦",details:["01948175158","পà§à¦®à§à¦¨à§à¦ à¦à¦°à§ রà§à¦«à¦¾à¦°à§à¦¨à§à¦¸ নমà§à¦¬à¦° à¦à¦¾à¦¨à¦¾à¦¨"],isBkash:!0},{icon:ab,title:"ফà§à¦¸à¦¬à§à¦",details:["facebook.com/ahmad.hossen.mojnu.2024"],link:"https://www.facebook.com/ahmad.hossen.mojnu.2024"},{icon:cb,title:"হà§à¦¯à¦¼à¦¾à¦à¦¸à¦
à§à¦¯à¦¾à¦ª",details:["01948175158"],link:"https://wa.me/8801948175158",isWhatsapp:!0}],N$=()=>{const{toast:t}
519=Bu(),[e,r]=x.useState(!1),[n,s]=x.useState({name:"",phone:"",email:"",message:""}),i=async o=>{o.preventDefault();const a=j$.safeParse(n);if(!a.success){t({title:"তà§à¦°à§à¦à¦¿",description:a.error.errors[0].message,variant:"destructive"});return}r(!0);try{const{error:l}=await Wt.from("contact_messages").insert({name:n.name.trim(),phone:n.phone.trim()||null,email:n.email.trim()||null,message:n.message.trim()});if(l)throw l;t({title:"সফল!",description:"à¦à¦ªà¦¨à¦¾à¦° মà§à¦¸à§à¦ পাঠানৠহয়à§à¦à§à¥¤ শà§à¦à§à¦°à¦ যà§à¦à¦¾à¦¯à§à¦ à¦à¦°à¦¾ হবà§à¥¤"}),s({name:"",phone:"",email:"",message:""})}catch{t({title:"তà§à¦°à§à¦à¦¿",description:"মà§à¦¸à§à¦ পাঠাতৠসমসà§à¦¯à¦¾ হয়à§à¦à§à¥¤ à¦à¦¬à¦¾à¦° à¦à§à¦·à§à¦à¦¾ à¦à¦°à§à¦¨à¥¤",variant:"destructive"})}finally{r(!1)}};return d.jsxs("section",{id:"contact",className:"py-20 md:py-32 relative overflow-hidden",children:[d.jsx("div",{className:"h-2 w-full bg-gradient-to-r from-primary via-accent to-primary absolute top-0 left-0"}),d.jsx("div",{className:"absolute inset-0 opacity-[0.02] bg-[linear-gradient(to_right,hsl(var(--foreground))_1px,transparent_1px),linear-gradient(to_bottom,hsl(var(--foreground))_1px,transparent_1px)] bg-[size:3.5rem_3.5rem]"}),d.jsx("div",{className:"absolute top-24 left-[22%] w-2 h-2 bg-primary/30 rounded-full animate-bounce",style:{animationDuration:"3s"}}),d.jsx("div",{className:"absolute top-48 right-[28%] w-3 h-3 bg-accent/30 rounded-full animate-bounce",style:{animationDuration:"4s",animationDelay:"0.5s"}}),d.jsx("div",{className:"absolute bottom-40 left-[38%] w-2 h-2 bg-primary/25 rounded-full animate-bounce",style:{animationDuration:"3.5s",animationDelay:"1s"}}),d.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full glass-effect text-sm text-foreground font-medium mb-4",children:"যà§à¦à¦¾à¦¯à§à¦"}),d.jsxs("h2",{className:"font-display text-3xl md:text-4xl lg:text-5xl font-bold mb-4",children:["à¦à¦®à¦¾à¦¦à§à¦° সাথৠ",d.jsx("span",{className:"text-gradient",children:"যà§à¦à¦¾à¦¯à§à¦ à¦à¦°à§à¦¨"})]}),d.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"যà§à¦à§à¦¨à§ পà§à¦°à¦¶à§à¦¨ বা সà§à¦¬à¦¾à¦° à¦à¦¨à§à¦¯ à¦à¦®à¦¾à¦¦à§à¦° সাথৠযà§à¦à¦¾à¦¯à§à¦ à¦à¦°à§à¦¨"})]}),d.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[d.jsx(ir,{className:"border-border/50 bg-card/50 backdrop-blur-sm",children:d.jsxs(or,{className:"p-6 md:p-8",children:[d.jsx("h3",{className:"font-display text-xl font-semibold mb-6",children:"মà§à¦¸à§à¦ পাঠান"}),d.jsxs("form",{onSubmit:i,className:"space-y-6",children:[d.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-medium mb-2 block",children:"নাম *"}),d.jsx(Or,{placeholder:"à¦à¦ªà¦¨à¦¾à¦° নাম",className:"bg-background/50",value:n.name,onChange:o=>s({...n,name:o.target.value}),required:!0})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-medium mb-2 block",children:"ফà§à¦¨"}),d.jsx(Or,{placeholder:"à¦à¦ªà¦¨à¦¾à¦° ফà§à¦¨ নমà§à¦¬à¦°",className:"bg-background/50",value:n.phone,onChange:o=>s({...n,phone:o.target.value})})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-medium mb-2 block",children:"à¦à¦®à§à¦à¦²"}),d.jsx(Or,{type:"email",placeholder:"à¦à¦ªà¦¨à¦¾à¦° à¦à¦®à§à¦à¦²",className:"bg-background/50",value:n.email,onChange:o=>s({...n,email:o.target.value})})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-medium mb-2 block",children:"মà§à¦¸à§à¦ *"}),d.jsx(Sm,{placeholder:"à¦à¦ªà¦¨à¦¾à¦° মà§à¦¸à§à¦ লিà¦à§à¦¨...",className:"bg-background/50 min-h-[120px]",value:n.message,onChange:o=>s({...n,message:o.target.value}),required:!0})]}),d.jsx(qe,{type:"submit",disabled:e,className:"w-full bg-gradient-to-r from-primary to-accent hover:opacity-90 transition-opacity font-display tracking-wide group",children:e?d.jsxs(d.Fragment,{children:[d.jsx(Zi,{className:"mr-2 w-4 h-4 animate-spin"}),"পাঠানৠহà¦à§à¦à§..."]}):d.jsxs(d.Fragment,{children:["মà§à¦¸à§à¦ পাঠান",d.jsx(ub,{className:"ml-2 w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})]})]})}),d.jsx("div",{className:"space-y-6",children:P$.map((o,a)=>{const l=d.jsx(ir,{className:`border-border/50 bg-card/50 backdrop-blur-sm hover:border-primary/30 transition-colors ${"isBkash"in o&&o.isBkash?"border-pink-500/50 bg-gradient-to-r from-pink-500/10 to-pink-600/10":""} ${"isWhatsapp"in o&&o.isWhatsapp?"border-green-500/50 bg-gradient-to-r from-green-500/10 to-green-600/10":""}`,children:d.jsxs(or,{className:"p-6 flex items-start gap-4",children:[d.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center flex-shrink-0 ${"isBkash"in o&&o.isBkash?"bg-gradient-to-br from-pink-500/30 to-pink-600/30":""} ${"isWhatsapp"in o&&o.isWhatsapp?"bg-gradient-to-br from-green-500/30 to-green-600/30":""} ${!("isBkash"in o&&o.isBkash)&&!("isWhatsapp"in o&&o.isWhatsapp)?"bg-gradient-to-br from-primary/20 to-accent/20":""}`,children:d.jsx(o.icon,{className:`w-6 h-6 ${"isBkash"in o&&o.isBkash?"text-pink-500":""} ${"isWhatsapp"in o&&o.isWhatsapp?"text-green-500":""} ${!("isBkash"in o&&o.isBkash)&&!("isWhatsapp"in o&&o.isWhatsapp)?"text-primary":""}`})}),d.jsxs("div",{children:[d.jsx("h4",{className:"font-display font-semibold mb-1 text-foreground",children:o.title}),o.details.map((c,u)=>d.jsx("p",{className:"text-muted-foreground text-sm",children:c},u))]})]})},a);return"link"in o&&o.link?d.jsx("a",{href:o.link,target:"_blank",rel:"noopener noreferrer",children:l},a):l})})]})]})]})},TE=()=>d.jsxs("footer",{className:"py-12 bg-navy-surface",children:[d.jsx("div",{className:"h-2 w-full bg-gradient-to-r from-primary via-accent to-primary mb-8"}),d.jsx("div",{className:"container mx-auto px-4",children:d.jsxs("div",{className:"grid md:grid-cols-3 gap-8 items-center",children:[d.jsxs("div",{className:"flex items-center gap-3 justify-center md:justify-start",children:[d.jsx("img",{src:pm,alt:"Nafia Jannat Computer Logo",className:"w-10 h-10 object-contain"}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-display font-bold text-lg",children:d.jsx("span",{className:"text-gradient",children:"Nafia Jannat"})}
vendor: 6,520 bytes, line 519
519),d.jsx("p",{className:"text-xs text-foreground/70 tracking-widest uppercase",children:"Computer"})]})]}),d.jsxs("p",{className:"text-center text-foreground/70 text-sm",children:["© ",new Date().getFullYear()," Nafia Jannat Computer. সরà§à¦¬à¦¸à§à¦¬à¦¤à§à¦¬ সà¦à¦°à¦à§à¦·à¦¿à¦¤à¥¤"]}),d.jsxs("div",{className:"flex items-center gap-4 justify-center md:justify-end",children:[d.jsx("a",{href:"https://www.facebook.com/ahmad.hossen.mojnu.2024",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full bg-foreground/10 hover:bg-foreground/20 flex items-center justify-center transition-colors",children:d.jsx(ab,{className:"w-5 h-5 text-foreground/80 hover:text-primary"})}),d.jsx("a",{href:"#",className:"w-10 h-10 rounded-full bg-foreground/10 hover:bg-foreground/20 flex items-center justify-center transition-colors",children:d.jsx(Nj,{className:"w-5 h-5 text-foreground/80 hover:text-primary"})}),d.jsx("a",{href:"#",className:"w-10 h-10 rounded-full bg-foreground/10 hover:bg-foreground/20 flex items-center justify-center transition-colors",children:d.jsx(cb,{className:"w-5 h-5 text-foreground/80 hover:text-primary"})})]})]})})]}),O$=Hu("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function R$({className:t,variant:e,...r}){return d.jsx("div",{className:_e(O$({variant:e}),t),...r})}function Fr(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function fi(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}const jE=6048e5,A$=864e5;let I$={};function gd(){return I$}function Xa(t,e){var a,l,c,u;const r=gd(),n=(e==null?void 0:e.weekStartsOn)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=Fr(t),i=s.getDay(),o=(i<n?7:0)+i-n;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Eu(t){return Xa(t,{weekStartsOn:1})}function PE(t){const e=Fr(t),r=e.getFullYear(),n=fi(t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const s=Eu(n),i=fi(t,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=Eu(i);return e.getTime()>=s.getTime()?r+1:e.getTime()>=o.getTime()?r:r-1}function Qy(t){const e=Fr(t);return e.setHours(0,0,0,0),e}function Jy(t){const e=Fr(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function D$(t,e){const r=Qy(t),n=Qy(e),s=+r-Jy(r),i=+n-Jy(n);return Math.round((s-i)/A$)}function M$(t){const e=PE(t),r=fi(t,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Eu(r)}function $$(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function L$(t){if(!$$(t)&&typeof t!="number")return!1;const e=Fr(t);return!isNaN(Number(e))}function F$(t){const e=Fr(t),r=fi(t,0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}const U$={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},B$=(t,e,r)=>{let n;const s=U$[t];return typeof s=="string"?n=s:e===1?n=s.one:n=s.other.replace("{{count}}",e.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function io(t){return(e={})=>{const r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const V$={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},z$={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},W$={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},H$={date:io({formats:V$,defaultWidth:"full"}),time:io({formats:z$,defaultWidth:"full"}),dateTime:io({formats:W$,defaultWidth:"full"})},q$={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},K$=(t,e,r,n)=>q$[t];function Jr(t){return(e,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let s;if(n==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=r!=null&&r.width?String(r.width):o;s=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=r!=null&&r.width?String(r.width):t.defaultWidth;s=t.values[a]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return s[i]}}const G$={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Y$={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Q$={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},J$={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
519ay","Saturday"]},Z$={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},X$={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},eL=(t,e)=>{const r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},tL={ordinalNumber:eL,era:Jr({values:G$,defaultWidth:"wide"}),quarter:Jr({values:Y$,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Jr({values:Q$,defaultWidth:"wide"}),day:Jr({values:J$,defaultWidth:"wide"}),dayPeriod:Jr({values:Z$,defaultWidth:"wide",formattingValues:X$,defaultFormattingWidth:"wide"})};function Zr(t){return(e,r={})=>{const n=r.width,s=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],i=e.match(s);if(!i)return null;const o=i[0],a=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?nL(a,f=>f.test(o)):rL(a,f=>f.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function rL(t,e){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function nL(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function NE(t){return(e,r={})=>{const n=e.match(t.matchPattern);if(!n)return null;const s=n[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;const a=e.slice(s.length);return{value:o,rest:a}}}const sL=/^(\d+)(th|st|nd|rd)?/i,iL=/\d+/i,oL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},aL={any:[/^b/i,/^(a|c)/i]},lL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cL={any:[/1/i,/2/i,/3/i,/4/i]},uL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},dL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},fL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},pL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},mL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},gL={ordinalNumber:NE({matchPattern:sL,parsePattern:iL,valueCallback:t=>parseInt(t,10)}),era:Zr({matchPatterns:oL,defaultMatchWidth:"wide",parsePatterns:aL,defaultParseWidth:"any"}),quarter:Zr({matchPatterns:lL,defaultMatchWidth:"wide",parsePatterns:cL,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Zr({matchPatterns:uL,defaultMatchWidth:"wide",parsePatterns:dL,defaultParseWidth:"any"}),day:Zr({matchPatterns:fL,defaultMatchWidth:"wide",parsePatterns:hL,defaultParseWidth:"any"}),dayPeriod:Zr({matchPatterns:pL,defaultMatchWidth:"any",parsePatterns:mL,defaultParseWidth:"any"})},vL={code:"en-US",formatDistance:B$,formatLong:H$,formatRelative:K$,localize:tL,match:gL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function yL(t){const e=Fr(t);return D$(e,F$(e))+1}function wL(t){const e=Fr(t),r=+Eu(e)-+M$(e);return Math.round(r/jE)+1}function OE(t,e){var u,f,h,p;const r=Fr(t),n=r.getFullYear(),s=gd(),i=(e==null?void 0:e.firstWeekContainsDate)??((f=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??s.firstWeekContainsDate??((p=(h=s.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,o=fi(t,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const a=Xa(o,e),l=fi(t,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const c=Xa(l,e);return r.getTime()>=a.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function xL(t,e){var a,l,c,u;const r=gd(),n=(e==null?void 0:e.firstWeekContainsDate)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,s=OE(t,e),i=fi(t,0);return i.setFullYear(s,0,n),i.setHours(0,0,0,0),Xa(i,e)}function bL(t,e){const r=Fr(t),n=+Xa(r,e)-+xL(r,e);return Math.round(n/jE)+1}function Ne(t,e){const r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}const $n={y(t,e){const r=t.getFullYear(),n=r>0?r:1-r;return Ne(e==="yy"?n%100:n,e.length)},M(t,e){const r=t.getMonth();return e==="M"?String(r+1):Ne(r+1,2)},d(t,e){return Ne(t.getDate(),e.length)},a(t,e){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,e){return Ne(t.getHours()%12||12,e.length)},H(t,e){return Ne(t.getHours(),e.length)},m(t,e){return Ne(t.getMinutes(),e.length)},s(t,e){return Ne(t.getSeconds(),e.length)},S(t,e){const r=e.length,n=t.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return Ne(s,e.length)}},ji={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Zy={G:function(t,e,r){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){const n=t.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return $n.y(t,e)},Y:function(t,e,r,n){const s=OE(t,n),i=s>0?s:1-s;if(e==="YY"){const o=i%100;return Ne(o,2)}return e==="Yo"?r.ordinalNumber(i,{unit:"year"}):Ne(i,e.length)},R:function(t,e){const r=PE(t);return Ne(r,e.length)},u:function(t,e){const r=t.getFullYear();return Ne(r,e.length)},Q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return Ne(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return Ne(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){const n=t.getMonth();switch(e){case"M":case"MM":return $n.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return Ne(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}}
vendor: 4,510 bytes, line 519
519,w:function(t,e,r,n){const s=bL(t,n);return e==="wo"?r.ordinalNumber(s,{unit:"week"}):Ne(s,e.length)},I:function(t,e,r){const n=wL(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):Ne(n,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):$n.d(t,e)},D:function(t,e,r){const n=yL(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Ne(n,e.length)},E:function(t,e,r){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){const s=t.getDay(),i=(s-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Ne(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){const s=t.getDay(),i=(s-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Ne(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,r){const n=t.getDay(),s=n===0?7:n;switch(e){case"i":return String(s);case"ii":return Ne(s,e.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,r){const n=t.getHours();let s;switch(n===12?s=ji.noon:n===0?s=ji.midnight:s=n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,r){const n=t.getHours();let s;switch(n>=17?s=ji.evening:n>=12?s=ji.afternoon:n>=4?s=ji.morning:s=ji.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return $n.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):$n.H(t,e)},K:function(t,e,r){const n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Ne(n,e.length)},k:function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):Ne(n,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):$n.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):$n.s(t,e)},S:function(t,e){return $n.S(t,e)},X:function(t,e,r){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return e0(n);case"XXXX":case"XX":return Fs(n);case"XXXXX":case"XXX":default:return Fs(n,":")}},x:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"x":return e0(n);case"xxxx":case"xx":return Fs(n);case"xxxxx":case"xxx":default:return Fs(n,":")}},O:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Xy(n,":");case"OOOO":default:return"GMT"+Fs(n,":")}},z:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Xy(n,":");
vendor: 12,577 bytes, line 519
519case"zzzz":default:return"GMT"+Fs(n,":")}},t:function(t,e,r){const n=Math.trunc(t.getTime()/1e3);return Ne(n,e.length)},T:function(t,e,r){const n=t.getTime();return Ne(n,e.length)}};function Xy(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),s=Math.trunc(n/60),i=n%60;return i===0?r+String(s):r+String(s)+e+Ne(i,2)}function e0(t,e){return t%60===0?(t>0?"-":"+")+Ne(Math.abs(t)/60,2):Fs(t,e)}function Fs(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),s=Ne(Math.trunc(n/60),2),i=Ne(n%60,2);return r+s+e+i}const t0=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},RE=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},_L=(t,e)=>{const r=t.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return t0(t,e);let i;switch(n){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",t0(n,e)).replace("{{time}}",RE(s,e))},SL={p:RE,P:_L},EL=/^D+$/,kL=/^Y+$/,CL=["D","DD","YY","YYYY"];function TL(t){return EL.test(t)}function jL(t){return kL.test(t)}function PL(t,e,r){const n=NL(t,e,r);if(console.warn(n),CL.includes(t))throw new RangeError(n)}function NL(t,e,r){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const OL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,AL=/^'([^]*?)'?$/,IL=/''/g,DL=/[a-zA-Z]/;function r0(t,e,r){var u,f,h,p,b,g,y,w;const n=gd(),s=(r==null?void 0:r.locale)??n.locale??vL,i=(r==null?void 0:r.firstWeekContainsDate)??((f=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,o=(r==null?void 0:r.weekStartsOn)??((g=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:g.weekStartsOn)??n.weekStartsOn??((w=(y=n.locale)==null?void 0:y.options)==null?void 0:w.weekStartsOn)??0,a=Fr(t);if(!L$(a))throw new RangeError("Invalid time value");let l=e.match(RL).map(m=>{const v=m[0];if(v==="p"||v==="P"){const _=SL[v];return _(m,s.formatLong)}return m}).join("").match(OL).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const v=m[0];if(v==="'")return{isToken:!1,value:ML(m)};if(Zy[v])return{isToken:!0,value:m};if(v.match(DL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:m}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(m=>{if(!m.isToken)return m.value;const v=m.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&jL(v)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&TL(v))&&PL(v,e,String(t));const _=Zy[v[0]];return _(a,v,s.localize,c)}).join("")}function ML(t){const e=t.match(AL);return e?e[1].replace(IL,"'"):t}const $L={locale:{1:"à§§",2:"২",3:"à§©",4:"৪",5:"à§«",6:"৬",7:"à§",8:"à§®",9:"৯",0:"০"},number:{"à§§":"1","২":"2","à§©":"3","৪":"4","à§«":"5","৬":"6","à§":"7","à§®":"8","৯":"9","০":"0"}},LL={narrow:["à¦à§à¦°à¦¿à¦à¦ªà§à¦","à¦à§à¦°à¦¿à¦"],abbreviated:["à¦à§à¦°à¦¿à¦à¦ªà§à¦°à§à¦¬","à¦à§à¦°à¦¿à¦"],wide:["à¦à§à¦°à¦¿à¦¸à§à¦à¦ªà§à¦°à§à¦¬","à¦à§à¦°à¦¿à¦¸à§à¦à¦¾à¦¬à§à¦¦"]},FL={narrow:["à§§","২","à§©","৪"],abbreviated:["১তà§à¦°à§","২তà§à¦°à§","৩তà§à¦°à§","৪তà§à¦°à§"],wide:["১ম তà§à¦°à§à¦®à¦¾à¦¸à¦¿à¦","২ৠতà§à¦°à§à¦®à¦¾à¦¸à¦¿à¦","৩ৠতà§à¦°à§à¦®à¦¾à¦¸à¦¿à¦","৪রà§à¦¥ তà§à¦°à§à¦®à¦¾à¦¸à¦¿à¦"]},UL={narrow:["à¦à¦¾à¦¨à§","ফà§à¦¬à§à¦°à§","মারà§à¦","à¦à¦ªà§à¦°à¦¿à¦²","মà§","à¦à§à¦¨","à¦à§à¦²à¦¾à¦","à¦à¦à¦¸à§à¦","সà§à¦ªà§à¦","à¦
à¦à§à¦à§","নà¦à§","ডিসà§"],abbreviated:["à¦à¦¾à¦¨à§","ফà§à¦¬à§à¦°à§","মারà§à¦","à¦à¦ªà§à¦°à¦¿à¦²","মà§","à¦à§à¦¨","à¦à§à¦²à¦¾à¦","à¦à¦à¦¸à§à¦","সà§à¦ªà§à¦","à¦
à¦à§à¦à§","নà¦à§","ডিসà§"],wide:["à¦à¦¾à¦¨à§à§à¦¾à¦°à¦¿","ফà§à¦¬à§à¦°à§à§à¦¾à¦°à¦¿","মারà§à¦","à¦à¦ªà§à¦°à¦¿à¦²","মà§","à¦à§à¦¨","à¦à§à¦²à¦¾à¦","à¦à¦à¦¸à§à¦","সà§à¦ªà§à¦à§à¦®à§à¦¬à¦°","à¦
à¦à§à¦à§à¦¬à¦°","নà¦à§à¦®à§à¦¬à¦°","ডিসà§à¦®à§à¦¬à¦°"]},BL={narrow:["র","সà§","ম","বà§","বà§","শà§","শ"],short:["রবি","সà§à¦®","মà¦à§à¦à¦²","বà§à¦§","বà§à¦¹","শà§à¦à§à¦°","শনি"],abbreviated:["রবি","সà§à¦®","মà¦à§à¦à¦²","বà§à¦§","বà§à¦¹","শà§à¦à§à¦°","শনি"],wide:["রবিবার","সà§à¦®à¦¬à¦¾à¦°","মà¦à§à¦à¦²à¦¬à¦¾à¦°","বà§à¦§à¦¬à¦¾à¦°","বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦° ","শà§à¦à§à¦°à¦¬à¦¾à¦°","শনিবার"]},VL={narrow:{am:"পà§",pm:"à¦
প",midnight:"মধà§à¦¯à¦°à¦¾à¦¤",noon:"মধà§à¦¯à¦¾à¦¹à§à¦¨",morning:"সà¦à¦¾à¦²",afternoon:"বিà¦à¦¾à¦²",evening:"সনà§à¦§à§à¦¯à¦¾",night:"রাত"},abbreviated:{am:"পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨",pm:"à¦
পরাহà§à¦¨",midnight:"মধà§à¦¯à¦°à¦¾à¦¤",noon:"মধà§à¦¯à¦¾à¦¹à§à¦¨",morning:"সà¦à¦¾à¦²",afternoon:"বিà¦à¦¾à¦²",evening:"সনà§à¦§à§à¦¯à¦¾",night:"রাত"},wide:{am:"পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨",pm:"à¦
পরাহà§à¦¨",midnight:"মধà§à¦¯à¦°à¦¾à¦¤",noon:"মধà§à¦¯à¦¾à¦¹à§à¦¨",morning:"সà¦à¦¾à¦²",afternoon:"বিà¦à¦¾à¦²",evening:"সনà§à¦§à§à¦¯à¦¾",night:"রাত"}},zL={narrow:{am:"পà§",pm:"à¦
প",midnight:"মধà§à¦¯à¦°à¦¾à¦¤",noon:"মধà§à¦¯à¦¾à¦¹à§à¦¨",morning:"সà¦à¦¾à¦²",afternoon:"বিà¦à¦¾à¦²",evening:"সনà§à¦§à§à¦¯à¦¾",night:"রাত"},abbreviated:{am:"পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨",pm:"à¦
পরাহà§à¦¨",midnight:"মধà§à¦¯à¦°à¦¾à¦¤",noon:"মধà§à¦¯à¦¾à¦¹à§à¦¨",morning:"সà¦à¦¾à¦²",afternoon:"বিà¦à¦¾à¦²",evening:"সনà§à¦§à§à¦¯à¦¾",night:"রাত"},wide:{am:"পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨",pm:"à¦
পরাহà§à¦¨",midnight:"মধà§à¦¯à¦°à¦¾à¦¤",noon:"মধà§à¦¯à¦¾à¦¹à§à¦¨",morning:"সà¦à¦¾à¦²",afternoon:"বিà¦à¦¾à¦²",evening:"সনà§à¦§à§à¦¯à¦¾",night:"রাত"}};function WL(t,e){if(t>18&&t<=31)return e+"শà§";switch(t){case 1:return e+"লা";case 2:case 3:return e+"রা";case 4:return e+"ঠা";default:return e+"à¦"}}const HL=(t,e)=>{const r=Number(t),n=AE(r);if((e==null?void 0:e.unit)==="date")return WL(r,n);if(r>10||r===0)return n+"তম";switch(r%10){case 2:case 3:return n+"à§";case 4:return n+"রà§à¦¥";case 6:return n+"ষà§à¦ ";default:return n+"ম"}};function AE(t){return t.toString().replace(/\d/g,function(e){return $L.locale[e]})}const qL={ordinalNumber:HL,era:Jr({values:LL,defaultWidth:"wide"}),quarter:Jr({values:FL,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Jr({values:UL,defaultWidth:"wide"}),day:Jr({values:BL,defaultWidth:"wide"}),dayPeriod:Jr({values:VL,defaultWidth:"wide",formattingValues:zL,defaultFormattingWidth:"wide"})},KL={lessThanXSeconds:{one:"পà§à¦°à¦¾à§ à§§ সà§à¦à§à¦¨à§à¦¡",other:"পà§à¦°à¦¾à§ {{count}} সà§à¦à§à¦¨à§à¦¡"},xSeconds:{one:"à§§ সà§à¦à§à¦¨à§à¦¡",other:"{{count}} সà§à¦à§à¦¨à§à¦¡"},halfAMinute:"à¦à¦§ মিনিà¦",lessThanXMinutes:{one:"পà§à¦°à¦¾à§ à§§ মিনিà¦",other:"পà§à¦°à¦¾à§ {{count}} মিনিà¦"},xMinutes:{one:"à§§ মিনিà¦",other:"{{count}} মিনিà¦"},aboutXHours:{one:"পà§à¦°à¦¾à§ à§§ à¦à¦¨à§à¦à¦¾",other:"পà§à¦°à¦¾à§ {{count}} à¦à¦¨à§à¦à¦¾"},xHours:{one:"à§§ à¦à¦¨à§à¦à¦¾",other:"{{count}} à¦à¦¨à§à¦à¦¾"},xDays:{one:"à§§ দিন",other:"{{count}} দিন"},aboutXWeeks:{one:"পà§à¦°à¦¾à§ à§§ সপà§à¦¤à¦¾à¦¹",other:"পà§à¦°à¦¾à§ {{count}} সপà§à¦¤à¦¾à¦¹"},xWeeks:{one:"à§§ সপà§à¦¤à¦¾à¦¹",other:"{{count}} সপà§à¦¤à¦¾à¦¹"},aboutXMonths:{one:"পà§à¦°à¦¾à§ à§§ মাস",other:"পà§à¦°à¦¾à§ {{count}} মাস"},xMonths:{one:"à§§ মাস",other:"{{count}} মাস"},aboutXYears:{one:"পà§à¦°à¦¾à§ à§§ বà¦à¦°",other:"পà§à¦°à¦¾à§ {{count}} বà¦à¦°"},xYears:{one:"à§§ বà¦à¦°",other:"{{count}} বà¦à¦°"},overXYears:{one:"à§§ বà¦à¦°à§à¦° বà§à¦¶à¦¿",other:"{{count}} বà¦à¦°à§à¦° বà§à¦¶à¦¿"},almostXYears:{one:"পà§à¦°à¦¾à§ à§§ বà¦à¦°",other:"পà§à¦°à¦¾à§ {{count}} বà¦à¦°"}},GL=(t,e,r)=>{let n;const s=KL[t];return typeof s=="string"?n=s:e===1?n=s.one:n=s.other.replace("{{count}}",AE(e)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?n+" à¦à¦° মধà§à¦¯à§":n+" à¦à¦à§":n},YL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},QL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},JL={full:"{{date}} {{time}} 'সমà§'",long:"{{date}} {{time}} 'সমà§'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ZL={date:io({formats:YL,defaultWidth:"full"}),time:io({formats:QL,defaultWidth:"full"}),dateTime:io({formats:JL,defaultWidth:"full"})},XL={lastWeek:"'à¦à¦¤' eeee 'সমà§' p",yesterday:"'à¦à¦¤à¦à¦¾à¦²' 'সমà§' p",today:"'à¦à¦' 'সমà§' p",tomorrow:"'à¦à¦à¦¾à¦®à§à¦à¦¾à¦²' 'সমà§' p",nextWeek:"eeee 'সমà§' p",other:"P"},e4=(t,e,r,n)=>XL[t],t4=/^(\d+)(ম|à§|রà§à¦¥|ষà§à¦ |শà§|à¦|তম)?/i,r4=/\d+/i,n4={narrow:/^(à¦à§à¦°à¦¿à¦à¦ªà§à¦|à¦à§à¦°à¦¿à¦)/i,abbreviated:/^(à¦à§à¦°à¦¿à¦à¦ªà§à¦°à§à¦¬|à¦à§à¦°à¦¿à¦)/i,wide:/^(à¦à§à¦°à¦¿à¦¸à§à¦à¦ªà§à¦°à§à¦¬|à¦à§à¦°à¦¿à¦¸à§à¦à¦¾à¦¬à§à¦¦)/i},s4={narrow:[/^à¦à§à¦°à¦¿à¦à¦ªà§à¦/i,/^à¦à§à¦°à¦¿à¦/i],abbreviated:[/^à¦à§à¦°à¦¿à¦à¦ªà§à¦°à§à¦¬/i,/^à¦à§à¦°à¦¿à¦/i],wide:[/^à¦à§à¦°à¦¿à¦¸à§à¦à¦ªà§à¦°à§à¦¬/i,/^à¦à§à¦°à¦¿à¦¸à§à¦à¦¾à¦¬à§à¦¦/i]},i4={narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]তà§à¦°à§/i,wide:/^[১২৩৪](ম|à§|রà§à¦¥)? তà§à¦°à§à¦®à¦¾à¦¸à¦¿à¦/i},o4={any:[/à§§/i,/২/i,/à§©/i,/৪/i]},a4={narrow:/^(à¦à¦¾à¦¨à§|ফà§à¦¬à§à¦°à§|মারà§à¦|à¦à¦ªà§à¦°à¦¿à¦²|মà§|à¦à§à¦¨|à¦à§à¦²à¦¾à¦|à¦à¦à¦¸à§à¦|সà§à¦ªà§à¦|à¦
à¦à§à¦à§|নà¦à§|ডিসà§)/i,abbreviated:/^(à¦à¦¾à¦¨à§|ফà§à¦¬à§à¦°à§|মারà§à¦|à¦à¦ªà§à¦°à¦¿à¦²|মà§|à¦à§à¦¨|à¦à§à¦²à¦¾à¦|à¦à¦à¦¸à§à¦|সà§à¦ªà§à¦|à¦
à¦à§à¦à§|নà¦à§|ডিসà§)/i,wide:/^(à¦à¦¾à¦¨à§à§à¦¾à¦°à¦¿|ফà§à¦¬à§à¦°à§à§à¦¾à¦°à¦¿|মারà§à¦|à¦à¦ªà§à¦°à¦¿à¦²|মà§|à¦à§à¦¨|à¦à§à¦²à¦¾à¦|à¦à¦à¦¸à§à¦|সà§à¦ªà§à¦à§à¦®à§à¦¬à¦°|à¦
à¦à§à¦à§à¦¬à¦°|নà¦à§à¦®à§à¦¬à¦°|ডিসà§à¦®à§à¦¬à¦°)/i},l4={any:[/^à¦à¦¾à¦¨à§/i,/^ফà§à¦¬à§à¦°à§/i,/^মারà§à¦/i,/^à¦à¦ªà§à¦°à¦¿à¦²/i,/^মà§/i,/^à¦à§à¦¨/i,/^à¦à§à¦²à¦¾à¦/i,/^à¦à¦à¦¸à§à¦/i,/^সà§à¦ªà§à¦/i,/^à¦
à¦à§à¦à§/i,/^নà¦à§/i,/^ডিসà§/i]},c4={narrow:/^(র|সà§|ম|বà§|বà§|শà§|শ)+/i,short:/^(রবি|সà§à¦®|মà¦à§à¦à¦²|বà§à¦§|বà§à¦¹|শà§à¦à§à¦°|শনি)+/i,abbreviated:/^(রবি|সà§à¦®|মà¦à§à¦à¦²|বà§à¦§|বà§à¦¹|শà§à¦à§à¦°|শনি)+/i,wide:/^(রবিবার|সà§à¦®à¦¬à¦¾à¦°|মà¦à§à¦à¦²à¦¬à¦¾à¦°|বà§à¦§à¦¬à¦¾à¦°|বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦° |শà§à¦à§à¦°à¦¬à¦¾à¦°|শনিবার)+/i},u4={narrow:[/^র/i,/^সà§/i,/^ম/i,/^বà§/i,/^বà§/i,/^শà§/i,/^শ/i],short:[/^রবি/i,/^সà§à¦®/i,/^মà¦à§à¦à¦²/i,/^বà§à¦§/i,/^বà§à¦¹/i,/^শà§à¦à§à¦°/i,/^শনি/i],abbreviated:[/^রবি/i,/^সà§à¦®/i,/^মà¦à§à¦à¦²/i,/^বà§à¦§/i,/^বà§à¦¹/i,/^শà§à¦à§à¦°/i,/^শনি/i],wide:[/^রবিবার/i,/^সà§à¦®à¦¬à¦¾à¦°/i,/^মà¦à§à¦à¦²à¦¬à¦¾à¦°/i,/^বà§à¦§à¦¬à¦¾à¦°/i,/^বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦° /i,/^শà§à¦à§à¦°à¦¬à¦¾à¦°/i,/^শনিবার/i]},d4={narrow:/^(পà§|à¦
প|মধà§à¦¯à¦°à¦¾à¦¤|মধà§à¦¯à¦¾à¦¹à§à¦¨|সà¦à¦¾à¦²|বিà¦à¦¾à¦²|সনà§à¦§à§à¦¯à¦¾|রাত)/i,abbreviated:/^(পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨|à¦
পরাহà§à¦¨|মধà§à¦¯à¦°à¦¾à¦¤|মধà§à¦¯à¦¾à¦¹à§à¦¨|সà¦à¦¾à¦²|বিà¦à¦¾à¦²|সনà§à¦§à§à¦¯à¦¾|রাত)/i,wide:/^(পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨|à¦
পরাহà§à¦¨|মধà§à¦¯à¦°à¦¾à¦¤|মধà§à¦¯à¦¾à¦¹à§à¦¨|সà¦à¦¾à¦²|বিà¦à¦¾à¦²|সনà§à¦§à§à¦¯à¦¾|রাত)/i},f4={any:{am:/^পà§/i,pm:/^à¦
প/i,midnight:/^মধà§à¦¯à¦°à¦¾à¦¤/i,no
519on:/^মধà§à¦¯à¦¾à¦¹à§à¦¨/i,morning:/সà¦à¦¾à¦²/i,afternoon:/বিà¦à¦¾à¦²/i,evening:/সনà§à¦§à§à¦¯à¦¾/i,night:/রাত/i}},h4={ordinalNumber:NE({matchPattern:t4,parsePattern:r4,valueCallback:t=>parseInt(t,10)}),era:Zr({matchPatterns:n4,defaultMatchWidth:"wide",parsePatterns:s4,defaultParseWidth:"wide"}),quarter:Zr({matchPatterns:i4,defaultMatchWidth:"wide",parsePatterns:o4,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Zr({matchPatterns:a4,defaultMatchWidth:"wide",parsePatterns:l4,defaultParseWidth:"any"}),day:Zr({matchPatterns:c4,defaultMatchWidth:"wide",parsePatterns:u4,defaultParseWidth:"wide"}),dayPeriod:Zr({matchPatterns:d4,defaultMatchWidth:"wide",parsePatterns:f4,defaultParseWidth:"any"})},n0={code:"bn",formatDistance:GL,formatLong:ZL,formatRelative:e4,localize:qL,match:h4,options:{weekStartsOn:0,firstWeekContainsDate:1}},p4=()=>{const{toast:t}=Bu(),[,e]=hm(),[r,n]=x.useState(null),[s,i]=x.useState(!0),[o,a]=x.useState(""),[l,c]=x.useState(""),[u,f]=x.useState(!1),[h,p]=x.useState([]),[b,g]=x.useState(!1),[y,w]=x.useState(null);x.useEffect(()=>{const{data:{subscription:j}}=Wt.auth.onAuthStateChange((D,G)=>{n(G)});return Wt.auth.getSession().then(({data:{session:D}})=>{n(D),i(!1)}),()=>j.unsubscribe()},[]),x.useEffect(()=>{if(!r)return;m();const j=Wt.channel("messages-changes").on("postgres_changes",{event:"*",schema:"public",table:"contact_messages"},()=>m()).subscribe();return()=>{Wt.removeChannel(j)}},[r]);const m=async()=>{g(!0);try{const{data:j,error:D}=await Wt.from("contact_messages").select("*").order("created_at",{ascending:!1});if(D)throw D;p(j||[])}catch{t({title:"তà§à¦°à§à¦à¦¿",description:"মà§à¦¸à§à¦ লà§à¦¡ à¦à¦°à¦¤à§ সমসà§à¦¯à¦¾ হয়à§à¦à§",variant:"destructive"})}finally{g(!1)}},v=async j=>{if(j.preventDefault(),!o||!l){t({title:"তà§à¦°à§à¦à¦¿",description:"à¦à¦®à§à¦à¦² à¦à¦¬à¦ পাসà¦à¦¯à¦¼à¦¾à¦°à§à¦¡ দিন",variant:"destructive"});return}f(!0);try{const{error:D}=await Wt.auth.signInWithPassword({email:o,password:l});if(D)throw D.message.includes("Invalid login credentials")?new Error("à¦à§à¦² à¦à¦®à§à¦à¦² বা পাসà¦à¦¯à¦¼à¦¾à¦°à§à¦¡"):D;t({title:"সফল!",description:"লà¦à¦à¦¨ সফল হয়à§à¦à§"})}catch(D){t({title:"তà§à¦°à§à¦à¦¿",description:D.message||"লà¦à¦à¦¨ à¦à¦°à¦¤à§ সমসà§à¦¯à¦¾ হয়à§à¦à§",variant:"destructive"})}finally{f(!1)}},_=async j=>{j.is_read||await Wt.from("contact_messages").update({is_read:!0}).eq("id",j.id),w(j)},S=async j=>{try{const{error:D}=await Wt.from("contact_messages").delete().eq("id",j);if(D)throw D;t({title:"সফল",description:"মà§à¦¸à§à¦ মà§à¦à§ ফà§à¦²à¦¾ হয়à§à¦à§"}),(y==null?void 0:y.id)===j&&w(null)}catch{t({title:"তà§à¦°à§à¦à¦¿",description:"মà§à¦¸à§à¦ মà§à¦à¦¤à§ সমসà§à¦¯à¦¾ হয়à§à¦à§",variant:"destructive"})}},C=async()=>{await Wt.auth.signOut(),k()},k=()=>{e({})},P=h.filter(j=>!j.is_read).length;return s?d.jsx("div",{className:"fixed inset-0 z-[100] bg-background flex items-center justify-center",children:d.jsx(Zi,{className:"w-8 h-8 animate-spin text-primary"})}):r?d.jsxs("div",{className:"fixed inset-0 z-[100] bg-background overflow-y-auto",children:[d.jsx("header",{className:"border-b border-border/50 bg-card/50 backdrop-blur-sm sticky top-0 z-50",children:d.jsxs("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(uv,{className:"w-6 h-6 text-primary"}),d.jsx("span",{className:"font-display font-bold",children:"à¦à¦¨à¦¬à¦à§à¦¸"}),P>0&&d.jsxs(R$,{variant:"destructive",children:[P," নতà§à¦¨"]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs(qe,{variant:"ghost",size:"sm",onClick:k,children:[d.jsx(Ba,{className:"w-4 h-4 mr-2"}),"হà§à¦®"]}),d.jsxs(qe,{variant:"outline",size:"sm",onClick:C,children:[d.jsx(yj,{className:"w-4 h-4 mr-2"}),"লà¦à¦à¦à¦"]})]})]})}),d.jsx("div",{className:"container mx-auto px-4 py-6",children:b?d.jsx("div",{className:"flex justify-center py-12",children:d.jsx(Zi,{className:"w-8 h-8 animate-spin text-primary"})}):d.jsxs("div",{className:"grid lg:grid-cols-3 gap-6",children:[d.jsxs("div",{className:"lg:col-span-1 space-y-3",children:[d.jsxs("h2",{className:"font-display font-semibold text-lg mb-4",children:["সব মà§à¦¸à§à¦ (",h.length,")"]}),h.length===0?d.jsx(ir,{className:"border-border/50 bg-card/50",children:d.jsxs(or,{className:"p-8 text-center",children:[d.jsx(mj,{className:"w-12 h-12 mx-auto mb-4 text-muted-foreground"}),d.jsx("p",{className:"text-muted-foreground",children:"à¦à§à¦¨à§ মà§à¦¸à§à¦ নà§à¦"})]})}):h.map(j=>d.jsx(ir,{className:`border-border/50 cursor-pointer transition-all hover:border-primary/50 ${(y==null?void 0:y.id)===j.id?"border-primary bg-primary/5":"bg-card/50"} ${j.is_read?"":"border-l-4 border-l-primary"}`,onClick:()=>_(j),children:d.jsxs(or,{className:"p-4",children:[d.jsxs("div",{className:"flex items-start justify-between gap-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[j.is_read?d.jsx(wj,{className:"w-4 h-4 text-muted-foreground"}):d.jsx(Ni,{className:"w-4 h-4 text-primary"}),d.jsx("span",{className:`font-medium ${j.is_read?"":"text-primary"}`,children:j.name})]}),d.jsx(qe,{variant:"ghost",size:"icon",className:"h-6 w-6 text-destructive hover:text-destructive",onClick:D=>{D.stopPropagation(),S(j.id)},children:d.jsx(dv,{className:"w-3 h-3"})})]}),d.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-1",children:j.message}),d.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:r0(new Date(j.created_at),"dd MMM yyyy, hh:mm a",{locale:n0})})]})},j.id))]}),d.jsx("div",{className:"lg:col-span-2",children:y?d.jsxs(ir,{className:"border-border/50 bg-card/50",children:[d.jsx(ru,{className:"border-b border-border/50",children:d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{children:[d.jsx(nu,{className:"font-display text-xl",children:y.name}),d.jsxs("div",{className:"flex flex-wrap gap-4 mt-2 text-sm text-muted-foreground",children:[y.phone&&d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(Yc,{className:"w-4 h-4"}),y.phone]}),y.email&&d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(Ni,{className:"w-4 h-4"}),y.email]}),d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(ob,{className:"w-4 h-4"}),r0(new Date(y.created_at),"dd MMMM yyyy, hh:mm a",{locale:n0})]})]})]}),d.jsxs(qe,{variant:"destructive",size:"sm",onClick:()=>S(y.id),children:[d.jsx(dv,{className:"w-4 h-4 mr-2"}),"মà§à¦à§à¦¨"]})]})}),d.jsxs(or,{className:"p-6",children:[d.jsx("p",{className:"whitespace-pre-wrap",children:y.message}),d.jsxs("div",{className:"mt-6 pt-4 border-t border-border/50 flex gap-2 flex-wrap",children:[y.phone&&d.jsx(qe,{variant:"outline",size:"sm",asChild:!0,children:d.jsxs("a",{href:`tel:${y.phone}`,children:[d.jsx(Yc,{className:"w-4 h-4 mr-2"}),"à¦à¦² à¦à¦°à§à¦¨"]})}),y.phone&&d.jsx(qe,{variant:"outline",size:"sm",className:"text-green-600 border-green-600 hover:bg-green-600/10",asChild:!0,children:d.jsx("a",{href:`https://wa.me/88${y.phone.replace(/\D/g,"")}`,target:"_blank",rel:"noopener noreferrer",children:"WhatsApp"})}),y.email&&d.jsx(qe,{variant:"outline",size:"sm",asChild:!0,children:d.jsxs("a",{href:`mailto:${y.email}`,children:[d.jsx(Ni,{className:"w-4 h-4 mr-2"}),"à¦à¦®à§à¦à¦² à¦à¦°à§à¦¨"]})})]})]})]}):d.jsx(ir,{className:"border-border/50 bg-card/50 h-full min-h-[400px] flex items-center justify-center",children:d.jsxs(or,{className:"text-center",children:[d.jsx(Ni,{className:"w-16 h-16 mx-auto mb-4 text-muted-foreground
519/50"}),d.jsx("p",{className:"text-muted-foreground",children:"à¦à¦à¦à¦¿ মà§à¦¸à§à¦ সিলà§à¦à§à¦ à¦à¦°à§à¦¨"})]})})})]})})]}):d.jsx("div",{className:"fixed inset-0 z-[100] bg-background flex items-center justify-center p-4",children:d.jsxs(ir,{className:"w-full max-w-md border-border/50 bg-card/50 backdrop-blur-sm relative",children:[d.jsx(qe,{variant:"ghost",size:"icon",className:"absolute top-2 right-2",onClick:k,children:d.jsx(Ba,{className:"w-4 h-4"})}),d.jsxs(ru,{className:"text-center",children:[d.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[d.jsx(uv,{className:"w-8 h-8 text-primary"}),d.jsx("span",{className:"font-display text-xl font-bold",children:"Nafia Jannat Computer"})]}),d.jsx(nu,{className:"font-display text-2xl",children:"à¦
à§à¦¯à¦¾à¦¡à¦®à¦¿à¦¨ লà¦à¦à¦¨"})]}),d.jsxs(or,{children:[d.jsxs("form",{onSubmit:v,className:"space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-medium mb-2 block",children:"à¦à¦®à§à¦à¦²"}),d.jsxs("div",{className:"relative",children:[d.jsx(Ni,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),d.jsx(Or,{type:"email",placeholder:"[email protected]",className:"pl-10 bg-background/50",value:o,onChange:j=>a(j.target.value),required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-medium mb-2 block",children:"পাসà¦à¦¯à¦¼à¦¾à¦°à§à¦¡"}),d.jsxs("div",{className:"relative",children:[d.jsx(vj,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),d.jsx(Or,{type:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",className:"pl-10 bg-background/50",value:l,onChange:j=>c(j.target.value),required:!0})]})]}),d.jsx(qe,{type:"submit",disabled:u,className:"w-full bg-gradient-to-r from-primary to-accent hover:opacity-90",children:u?d.jsxs(d.Fragment,{children:[d.jsx(Zi,{className:"mr-2 w-4 h-4 animate-spin"}),"লà¦à¦à¦¨ হà¦à§à¦à§..."]}):"লà¦à¦à¦¨"})]}),d.jsx("div",{className:"mt-4 text-center",children:d.jsx(qe,{variant:"link",onClick:k,children:"â হà§à¦®à¦ªà§à¦à§ ফিরৠযান"})})]})]})})},m4=()=>{const[t]=hm(),e=t.get("admin")!==null;return d.jsxs("div",{className:"min-h-screen relative",children:[e&&d.jsx(p4,{}),d.jsx("div",{className:"fixed top-0 left-0 w-2 h-full z-50 bg-gradient-to-b from-primary via-accent to-primary"}),d.jsx("div",{className:"fixed top-0 right-0 w-2 h-full z-50 bg-gradient-to-b from-accent via-primary to-accent"}),d.jsxs("div",{className:"relative z-10",children:[d.jsx(QR,{}),d.jsx(w_,{}),d.jsxs("main",{children:[d.jsx(a2,{}),d.jsx(f2,{}),d.jsx(T$,{}),d.jsx(N$,{})]}),d.jsx(TE,{})]})]})},g4="/assets/gallery-ads-B6qwHfas.jpg",v4="/assets/gallery-digital-marketing-DJOLRzQC.jpg",y4="/assets/gallery-seo-expert-BfCx4Bov.png",w4="/assets/logo-CJZSlea4.png",x4="/assets/gallery-training-banner-CRNyNMG5.jpg",b4=1,_4="2495847c-c5a7-4c8c-8cc8-269c0f40ca38",S4="940d8152-3dac-41c1-9455-48f94e0dc95a",E4="/__l5e/assets-v1/2495847c-c5a7-4c8c-8cc8-269c0f40ca38/digital-banner-print.png",k4="a/v1/940d8152-3dac-41c1-9455-48f94e0dc95a/2495847c-c5a7-4c8c-8cc8-269c0f40ca38/digital-banner-print.png",C4="digital-banner-print.png",T4=1124730,j4="image/png",P4="2026-08-23T14:36:17Z",N4={version:b4,asset_id:_4,project_id:S4,url:E4,r2_key:k4,original_filename:C4,size:T4,content_type:j4,created_at:P4},Pi=[{src:N4.url,alt:"ডিà¦à¦¿à¦à¦¾à¦² বà§à¦¯à¦¾à¦¨à¦¾à¦°, পà§à¦¸à§à¦à¦¾à¦°, ফà§à¦¸à§à¦à§à¦¨ ঠসà§à¦à¦¿à¦à¦¾à¦° পà§à¦°à¦¿à¦¨à§à¦ সà§à¦¬à¦¾ - নাফিয়া à¦à¦¾à¦¨à§à¦¨à¦¾à¦¤ à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦°",title:"ডিà¦à¦¿à¦à¦¾à¦² বà§à¦¯à¦¾à¦¨à¦¾à¦° পà§à¦°à¦¿à¦¨à§à¦",category:"পà§à¦°à¦¿à¦¨à§à¦à¦¿à¦",description:"বà§à¦¯à¦¾à¦¨à¦¾à¦°, পà§à¦¸à§à¦à¦¾à¦°, ফà§à¦¸à§à¦à§à¦¨, সà§à¦à¦¿à¦à¦¾à¦° ঠযৠà¦à§à¦¨à§ ডিà¦à¦¾à¦à¦¨ পà§à¦°à¦¿à¦¨à§à¦ â দà§à¦°à§à¦¤ ঠমানসমà§à¦®à¦¤ সà§à¦¬à¦¾",span:"md:col-span-2 md:row-span-2"},{src:x4,alt:"à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦° পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£ à¦à¦²à¦à§ - MS Office, Graphics Design, Digital Marketing",title:"à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦° পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£ বà§à¦¯à¦¾à¦¨à¦¾à¦°",category:"পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£",description:"MS Office, Graphics Design, Digital Marketing সহ সà¦à¦² à¦à§à¦°à§à¦¸",span:"md:col-span-1"},{src:v4,alt:"ডিà¦à¦¿à¦à¦¾à¦² মারà§à¦à§à¦à¦¿à¦ - ফà§à¦°à¦¿à¦²à§à¦¯à¦¾à¦¨à§à¦¸à¦¿à¦ à¦à¦° à¦à¦¨à§à¦¯",title:"ডিà¦à¦¿à¦à¦¾à¦² মারà§à¦à§à¦à¦¿à¦ à¦à§à¦°à§à¦¸",category:"à¦à§à¦°à§à¦¸",description:"ফà§à¦°à¦¿à¦²à§à¦¯à¦¾à¦¨à§à¦¸à¦¿à¦ à¦à§à¦¯à¦¾à¦°à¦¿à¦¯à¦¼à¦¾à¦° à¦à¦¡à¦¼à¦¾à¦° à¦à¦¨à§à¦¯ সমà§à¦ªà§à¦°à§à¦£ à¦à¦¾à¦à¦¡",span:""},{src:y4,alt:"ডিà¦à¦¿à¦à¦¾à¦² SEO à¦à¦à§à¦¸à¦ªà¦¾à¦°à§à¦",title:"SEO à¦à¦à§à¦¸à¦ªà¦¾à¦°à§à¦ সারà§à¦à¦¿à¦¸",category:"সারà§à¦à¦¿à¦¸",description:"à¦à¦¯à¦¼à§à¦¬à¦¸à¦¾à¦à¦ রâà§à¦¯à¦¾à¦à§à¦à¦¿à¦ বà§à¦¦à§à¦§à¦¿à¦° পà§à¦¶à¦¾à¦¦à¦¾à¦° সà§à¦¬à¦¾",span:""},{src:g4,alt:"ফà§à¦¸à¦¬à§à¦ à¦
à§à¦¯à¦¾à¦¡à¦¸, à¦à§à¦à¦² à¦
à§à¦¯à¦¾à¦¡à¦¸, বà§à¦¸à§à¦à¦¿à¦",title:"à¦
à§à¦¯à¦¾à¦¡à¦¸ ঠবà§à¦¸à§à¦à¦¿à¦ সারà§à¦à¦¿à¦¸",category:"সারà§à¦à¦¿à¦¸",description:"Facebook, Google Ads ঠপà§à¦ বà§à¦¸à§à¦à¦¿à¦",span:"md:col-span-2"},{src:w4,alt:"নাফিয়া à¦à¦¾à¦¨à§à¦¨à¦¾à¦¤ à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦° লà§à¦à§",title:"à¦à¦®à¦¾à¦¦à§à¦° বà§à¦°à§à¦¯à¦¾à¦¨à§à¦¡",category:"পরিà¦à¦¿à¦¤à¦¿",description:"নাফিয়া à¦à¦¾à¦¨à§à¦¨à¦¾à¦¤ à¦à¦®à§à¦ªà¦¿à¦à¦à¦¾à¦°",span:""}],O4=()=>{const[t,e]=x.useState(null);return d.jsxs("div",{className:"min-h-screen",children:[d.jsx(w_,{}),d.jsx("main",{className:"pt-24 pb-16",children:d.jsxs("div",{className:"container mx-auto px-4",children:[d.jsxs("div",{className:"text-center mb-12",children:[d.jsx("div",{className:"inline-block px-4 py-1.5 rounded-full glass-effect border border-primary/30 mb-4",children:d.jsx("span",{className:"text-sm font-medium text-foreground",children:"Gallery"})}),d.jsx("h1",{className:"text-4xl md:text-5xl font-display font-bold mb-4",children:d.jsx("span",{className:"text-gradient",children:"à¦à¦®à¦¾à¦¦à§à¦° à¦à§à¦¯à¦¾à¦²à¦¾à¦°à¦¿"})}),d.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:"à¦à¦®à¦¾à¦¦à§à¦° সারà§à¦à¦¿à¦¸, à¦à§à¦°à§à¦¸ à¦à¦¬à¦ পà§à¦°à¦¶à¦¿à¦à§à¦·à¦£ à¦à¦¾à¦°à§à¦¯à¦à§à¦°à¦®à§à¦° à¦à¦²à¦ দà§à¦à§à¦¨"}),d.jsx("div",{className:"mt-6 h-1 w-24 mx-auto rounded-full bg-gradient-to-r from-primary via-accent to-primary"})]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 auto-rows-[220px] gap-5 max-w-6xl mx-auto",children:Pi.map((r,n)=>d.jsxs("button",{onClick:()=>e(n),className:`group relative overflow-hidden rounded-2xl glass-effect border border-primary/20 hover:border-primary/60 transition-all duration-500 hover:shadow-2xl hover:shadow-
519primary/30 hover:-translate-y-1 text-left ${r.span}`,children:[d.jsx("img",{src:r.src,alt:r.alt,loading:"lazy",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-110 transition-transform duration-700"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/95 via-background/40 to-transparent opacity-90 group-hover:opacity-100 transition-opacity"}),d.jsx("div",{className:"absolute top-3 left-3 px-3 py-1 rounded-full bg-primary/90 backdrop-blur-sm text-xs font-semibold text-primary-foreground shadow-lg",children:r.category}),d.jsx("div",{className:"absolute top-3 right-3 w-9 h-9 rounded-full bg-background/80 backdrop-blur-sm flex items-center justify-center opacity-0 group-hover:opacity-100 transition-all duration-300 translate-y-2 group-hover:translate-y-0",children:d.jsx(fj,{className:"w-4 h-4 text-primary"})}),d.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-4 md:p-5",children:[d.jsx("h3",{className:"text-lg md:text-xl font-display font-bold text-foreground mb-1 group-hover:text-primary transition-colors",children:r.title}),d.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 opacity-0 group-hover:opacity-100 max-h-0 group-hover:max-h-20 transition-all duration-500",children:r.description})]})]},n))})]})}),d.jsx(Rm,{open:t!==null,onOpenChange:r=>!r&&e(null),children:d.jsx(ud,{className:"max-w-4xl p-0 overflow-hidden glass-effect border-primary/30",children:t!==null&&d.jsxs("div",{className:"relative",children:[d.jsx("button",{onClick:()=>e(null),className:"absolute top-3 right-3 z-10 w-9 h-9 rounded-full bg-background/80 backdrop-blur-sm flex items-center justify-center hover:bg-primary hover:text-primary-foreground transition-colors","aria-label":"বনà§à¦§ à¦à¦°à§à¦¨",children:d.jsx(Ba,{className:"w-4 h-4"})}),d.jsx("img",{src:Pi[t].src,alt:Pi[t].alt,className:"w-full max-h-[70vh] object-contain bg-background/50"}),d.jsxs("div",{className:"p-5 border-t border-border/50",children:[d.jsx("div",{className:"inline-block px-3 py-1 rounded-full bg-primary/30 text-foreground text-xs font-semibold mb-2",children:Pi[t].category}),d.jsx("h3",{className:"text-xl font-display font-bold mb-1",children:Pi[t].title}),d.jsx("p",{className:"text-muted-foreground text-sm",children:Pi[t].description})]})]})})}),d.jsx(TE,{})]})},gf=()=>Wt.auth.oauth,R4=()=>{var c;const[t]=hm(),e=t.get("authorization_id")??"",[r,n]=x.useState(null),[s,i]=x.useState(null),[o,a]=x.useState(!1);x.useEffect(()=>{let u=!0;return(async()=>{if(!e){i("authorization_id পাà¦à¦¯à¦¼à¦¾ যায়নি");return}const{data:f}=await Wt.auth.getSession();if(!f.session){const g=window.location.pathname+window.location.search;window.location.href="/?admin=1&next="+encodeURIComponent(g);return}const{data:h,error:p}=await gf().getAuthorizationDetails(e);if(!u)return;if(p){i(p.message);return}const b=(h==null?void 0:h.redirect_url)??(h==null?void 0:h.redirect_to);if(b&&!(h!=null&&h.client)){window.location.href=b;return}n(h)})(),()=>{u=!1}},[e]);const l=async u=>{a(!0);const{data:f,error:h}=u?await gf().approveAuthorization(e):await gf().denyAuthorization(e);if(h){a(!1),i(h.message);return}const p=(f==null?void 0:f.redirect_url)??(f==null?void 0:f.redirect_to);if(!p){a(!1),i("à¦
থরাà¦à¦à§à¦¶à¦¨ সারà§à¦à¦¾à¦° à¦à§à¦¨à§ রিডাà¦à¦°à§à¦à§à¦ দà§à¦¯à¦¼à¦¨à¦¿à¥¤");return}window.location.href=p};return d.jsx("main",{className:"min-h-screen flex items-center justify-center p-4 bg-background",children:d.jsxs(ir,{className:"w-full max-w-md bg-background",children:[d.jsxs(ru,{className:"text-center",children:[d.jsx(kj,{className:"w-8 h-8 mx-auto text-primary"}),d.jsx(nu,{className:"font-display",children:"à¦
à§à¦¯à¦¾à¦ª সà¦à¦¯à§à¦à§à¦° à¦
নà§à¦®à¦¤à¦¿"})]}),d.jsx(or,{className:"space-y-4 text-center",children:s?d.jsxs("p",{className:"text-destructive text-sm",children:["à¦
নà§à¦°à§à¦§à¦à¦¿ লà§à¦¡ à¦à¦°à¦¾ যায়নি: ",s]}):r?d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"text-sm text-muted-foreground",children:[d.jsx("strong",{children:((c=r.client)==null?void 0:c.name)??"à¦à¦à¦à¦¿ à¦
à§à¦¯à¦¾à¦ª"})," à¦à¦ªà¦¨à¦¾à¦° à¦
à§à¦¯à¦¾à¦à¦¾à¦à¦¨à§à¦ হিসà§à¦¬à§ à¦à¦ সাà¦à¦à§à¦° à¦à§à¦²à¦à§à¦²à§ বà§à¦¯à¦¬à¦¹à¦¾à¦° à¦à¦°à¦¤à§ à¦à¦¾à¦à¦à§à¥¤"]}),d.jsxs("div",{className:"flex gap-2 justify-center",children:[d.jsx(qe,{disabled:o,onClick:()=>l(!0),children:"à¦
নà§à¦®à§à¦¦à¦¨ à¦à¦°à§à¦¨"}),d.jsx(qe,{variant:"outline",disabled:o,onClick:()=>l(!1),children:"বাতিল"})]})]}):d.jsx("div",{className:"flex justify-center py-6",children:d.jsx(Zi,{className:"w-6 h-6 animate-spin text-primary"})})})]})})},A4=()=>{const t=hl();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),d.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background",children:d.jsxs("div",{className:"text-center",children:[d.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),d.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),d.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})}
519,I4=new eR,D4=()=>d.jsx(rR,{client:I4,children:d.jsxs(NO,{children:[d.jsx(fP,{}),d.jsx(WP,{}),d.jsx(GR,{children:d.jsxs(WR,{children:[d.jsx(Ds,{path:"/",element:d.jsx(m4,{})}),d.jsx(Ds,{path:"/gallery",element:d.jsx(O4,{})}),d.jsx(Ds,{path:"/.lovable/oauth/consent",element:d.jsx(R4,{})}),d.jsx(Ds,{path:"/auth",element:d.jsx(Fv,{to:"/?admin=1",replace:!0})}),d.jsx(Ds,{path:"/inbox",element:d.jsx(Fv,{to:"/?admin=1",replace:!0})}),d.jsx(Ds,{path:"*",element:d.jsx(A4,{})})]})})]})});Cx(document.getElementById("root")).render(d.jsx(D4,{}));
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.