From a483a9b6d58a5854d549595b360787191968cd0e Mon Sep 17 00:00:00 2001 From: vwh Date: Thu, 25 Jul 2024 10:02:00 +0300 Subject: [PATCH] Updates --- .../{index-C6RzUi-C.js => index-D_iuDlfB.js} | 101 +++++++++--------- assets/index-HwuRW0DC.css | 1 + assets/index-kroWZl5K.css | 1 - index.html | 4 +- sw.js | 2 +- 5 files changed, 57 insertions(+), 52 deletions(-) rename assets/{index-C6RzUi-C.js => index-D_iuDlfB.js} (54%) create mode 100644 assets/index-HwuRW0DC.css delete mode 100644 assets/index-kroWZl5K.css diff --git a/assets/index-C6RzUi-C.js b/assets/index-D_iuDlfB.js similarity index 54% rename from assets/index-C6RzUi-C.js rename to assets/index-D_iuDlfB.js index 8e9ad1e..4563539 100644 --- a/assets/index-C6RzUi-C.js +++ b/assets/index-D_iuDlfB.js @@ -1,4 +1,4 @@ -function d1(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Im={exports:{}},Qa={},Lm={exports:{}},_e={};/** +function d1(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var li=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Im={exports:{}},Qa={},Lm={exports:{}},_e={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function d1(e,t){for(var n=0;n>>1,X=I[Y];if(0>>1;Yo(Oe,ne))ceo(ee,Oe)?(I[Y]=ee,I[ce]=ne,Y=ce):(I[Y]=Oe,I[pe]=ne,Y=pe);else if(ceo(ee,ne))I[Y]=ee,I[ce]=ne,Y=ce;else break e}}return U}function o(I,U){var ne=I.sortIndex-U.sortIndex;return ne!==0?ne:I.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var d=[],u=[],m=1,h=null,f=3,w=!1,C=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(I){for(var U=n(u);U!==null;){if(U.callback===null)r(u);else if(U.startTime<=I)r(u),U.sortIndex=U.expirationTime,t(d,U);else break;U=n(u)}}function _(I){if(S=!1,x(I),!C)if(n(d)!==null)C=!0,oe(N);else{var U=n(u);U!==null&&re(_,U.startTime-I)}}function N(I,U){C=!1,S&&(S=!1,y(j),j=-1),w=!0;var ne=f;try{for(x(U),h=n(d);h!==null&&(!(h.expirationTime>U)||I&&!B());){var Y=h.callback;if(typeof Y=="function"){h.callback=null,f=h.priorityLevel;var X=Y(h.expirationTime<=U);U=e.unstable_now(),typeof X=="function"?h.callback=X:h===n(d)&&r(d),x(U)}else r(d);h=n(d)}if(h!==null)var me=!0;else{var pe=n(u);pe!==null&&re(_,pe.startTime-U),me=!1}return me}finally{h=null,f=ne,w=!1}}var A=!1,P=null,j=-1,F=5,M=-1;function B(){return!(e.unstable_now()-MI||125Y?(I.sortIndex=ne,t(u,I),n(d)===null&&I===n(u)&&(S?(y(j),j=-1):S=!0,re(_,ne-Y))):(I.sortIndex=X,t(d,I),C||w||(C=!0,oe(N))),I},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(I){var U=f;return function(){var ne=f;f=U;try{return I.apply(this,arguments)}finally{f=ne}}}})(Qm);Km.exports=Qm;var M1=Km.exports;/** + */(function(e){function t(M,B){var ne=M.length;M.push(B);e:for(;0>>1,X=M[Y];if(0>>1;Yo(Oe,ne))ceo(ee,Oe)?(M[Y]=ee,M[ce]=ne,Y=ce):(M[Y]=Oe,M[pe]=ne,Y=pe);else if(ceo(ee,ne))M[Y]=ee,M[ce]=ne,Y=ce;else break e}}return B}function o(M,B){var ne=M.sortIndex-B.sortIndex;return ne!==0?ne:M.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var d=[],u=[],m=1,h=null,f=3,w=!1,C=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(M){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=M)r(u),B.sortIndex=B.expirationTime,t(d,B);else break;B=n(u)}}function _(M){if(S=!1,x(M),!C)if(n(d)!==null)C=!0,oe(N);else{var B=n(u);B!==null&&re(_,B.startTime-M)}}function N(M,B){C=!1,S&&(S=!1,y(j),j=-1),w=!0;var ne=f;try{for(x(B),h=n(d);h!==null&&(!(h.expirationTime>B)||M&&!q());){var Y=h.callback;if(typeof Y=="function"){h.callback=null,f=h.priorityLevel;var X=Y(h.expirationTime<=B);B=e.unstable_now(),typeof X=="function"?h.callback=X:h===n(d)&&r(d),x(B)}else r(d);h=n(d)}if(h!==null)var me=!0;else{var pe=n(u);pe!==null&&re(_,pe.startTime-B),me=!1}return me}finally{h=null,f=ne,w=!1}}var D=!1,P=null,j=-1,z=5,F=-1;function q(){return!(e.unstable_now()-FM||125Y?(M.sortIndex=ne,t(u,M),n(d)===null&&M===n(u)&&(S?(y(j),j=-1):S=!0,re(_,ne-Y))):(M.sortIndex=X,t(d,M),C||w||(C=!0,oe(N))),M},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(M){var B=f;return function(){var ne=f;f=B;try{return M.apply(this,arguments)}finally{f=ne}}}})(Qm);Km.exports=Qm;var M1=Km.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function d1(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wu=Object.prototype.hasOwnProperty,L1=/^[: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]*$/,Ff={},$f={};function F1(e){return wu.call($f,e)?!0:wu.call(Ff,e)?!1:L1.test(e)?$f[e]=!0:(Ff[e]=!0,!1)}function $1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function z1(e,t,n,r){if(t===null||typeof t>"u"||$1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mt(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var wt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wt[e]=new Mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wt[t]=new Mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wt[e]=new Mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wt[e]=new Mt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){wt[e]=new Mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wt[e]=new Mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wt[e]=new Mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wt[e]=new Mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wt[e]=new Mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fc=/[\-:]([a-z])/g;function $c(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Fc,$c);wt[t]=new Mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Fc,$c);wt[t]=new Mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Fc,$c);wt[t]=new Mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!1,!1)});wt.xlinkHref=new Mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function zc(e,t,n,r){var o=wt.hasOwnProperty(t)?wt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wu=Object.prototype.hasOwnProperty,L1=/^[: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]*$/,Ff={},zf={};function F1(e){return wu.call(zf,e)?!0:wu.call(Ff,e)?!1:L1.test(e)?zf[e]=!0:(Ff[e]=!0,!1)}function z1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $1(e,t,n,r){if(t===null||typeof t>"u"||z1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mt(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xt[e]=new Mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xt[t]=new Mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xt[e]=new Mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xt[e]=new Mt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xt[e]=new Mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xt[e]=new Mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xt[e]=new Mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xt[e]=new Mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xt[e]=new Mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fc=/[\-:]([a-z])/g;function zc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Fc,zc);xt[t]=new Mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Fc,zc);xt[t]=new Mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Fc,zc);xt[t]=new Mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!1,!1)});xt.xlinkHref=new Mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function $c(e,t,n,r){var o=xt.hasOwnProperty(t)?xt[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var d=` -`+o[l].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),d}while(1<=l&&0<=s);break}}}finally{Os=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yi(e):""}function H1(e){switch(e.tag){case 5:return yi(e.type);case 16:return yi("Lazy");case 13:return yi("Suspense");case 19:return yi("SuspenseList");case 0:case 2:case 15:return e=js(e.type,!1),e;case 11:return e=js(e.type.render,!1),e;case 1:return e=js(e.type,!0),e;default:return""}}function Eu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case co:return"Fragment";case uo:return"Portal";case xu:return"Profiler";case Hc:return"StrictMode";case bu:return"Suspense";case Su:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zm:return(e.displayName||"Context")+".Consumer";case Xm:return(e._context.displayName||"Context")+".Provider";case Bc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uc:return t=e.displayName||null,t!==null?t:Eu(e.type)||"Memo";case lr:t=e._payload,e=e._init;try{return Eu(e(t))}catch{}}return null}function B1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Eu(t);case 8:return t===Hc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U1(e){var t=eh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cl(e){e._valueTracker||(e._valueTracker=U1(e))}function th(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Cu(e,t){var n=t.checked;return tt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nh(e,t){t=t.checked,t!=null&&zc(e,"checked",t,!1)}function _u(e,t){nh(e,t);var n=xr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ku(e,t.type,n):t.hasOwnProperty("defaultValue")&&ku(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ku(e,t,n){(t!=="number"||fa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wi=Array.isArray;function So(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=_l.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Oi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ei={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},W1=["Webkit","ms","Moz","O"];Object.keys(Ei).forEach(function(e){W1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ei[t]=Ei[e]})});function lh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ei.hasOwnProperty(e)&&Ei[e]?(""+t).trim():t+"px"}function ah(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var V1=tt({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 Pu(e,t){if(t){if(V1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function Tu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Au=null;function Wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Du=null,Eo=null,Co=null;function Vf(e){if(e=nl(e)){if(typeof Du!="function")throw Error(q(280));var t=e.stateNode;t&&(t=es(t),Du(e.stateNode,e.type,t))}}function sh(e){Eo?Co?Co.push(e):Co=[e]:Eo=e}function uh(){if(Eo){var e=Eo,t=Co;if(Co=Eo=null,Vf(e),t)for(e=0;e>>=0,e===0?32:31-(nx(e)/rx|0)|0}var kl=64,Rl=4194304;function xi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function va(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=xi(s):(i&=l,i!==0&&(r=xi(i)))}else l=n&~o,l!==0?r=xi(l):i!==0&&(r=xi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function el(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gn(t),e[t]=n}function ax(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_i),ep=" ",tp=!1;function Ph(e,t){switch(e){case"keyup":return Mx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fo=!1;function Lx(e,t){switch(e){case"compositionend":return Th(t);case"keypress":return t.which!==32?null:(tp=!0,ep);case"textInput":return e=t.data,e===ep&&tp?null:e;default:return null}}function Fx(e,t){if(fo)return e==="compositionend"||!Zc&&Ph(e,t)?(e=Rh(),ea=Qc=cr=null,fo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ip(n)}}function jh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mh(){for(var e=window,t=fa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fa(e.document)}return t}function Jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gx(e){var t=Mh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jh(n.ownerDocument.documentElement,n)){if(r!==null&&Jc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=lp(n,i);var l=lp(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,po=null,Fu=null,Ri=null,$u=!1;function ap(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$u||po==null||po!==fa(r)||(r=po,"selectionStart"in r&&Jc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ri&&$i(Ri,r)||(Ri=r,r=wa(Fu,"onSelect"),0vo||(e.current=Vu[vo],Vu[vo]=null,vo--)}function Be(e,t){vo++,Vu[vo]=e.current,e.current=t}var br={},_t=_r(br),$t=_r(!1),Ur=br;function Oo(e,t){var n=e.type.contextTypes;if(!n)return br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function zt(e){return e=e.childContextTypes,e!=null}function ba(){Ke($t),Ke(_t)}function mp(e,t,n){if(_t.current!==br)throw Error(q(168));Be(_t,t),Be($t,n)}function Wh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(q(108,B1(e)||"Unknown",o));return tt({},n,r)}function Sa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||br,Ur=_t.current,Be(_t,e),Be($t,$t.current),!0}function hp(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=Wh(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,Ke($t),Ke(_t),Be(_t,e)):Ke($t),Be($t,n)}var zn=null,ts=!1,Ks=!1;function Vh(e){zn===null?zn=[e]:zn.push(e)}function ib(e){ts=!0,Vh(e)}function kr(){if(!Ks&&zn!==null){Ks=!0;var e=0,t=Me;try{var n=zn;for(Me=1;e>=l,o-=l,Hn=1<<32-gn(t)+o|n<j?(F=P,P=null):F=P.sibling;var M=f(y,P,x[j],_);if(M===null){P===null&&(P=F);break}e&&P&&M.alternate===null&&t(y,P),g=i(M,g,j),A===null?N=M:A.sibling=M,A=M,P=F}if(j===x.length)return n(y,P),Qe&&jr(y,j),N;if(P===null){for(;jj?(F=P,P=null):F=P.sibling;var B=f(y,P,M.value,_);if(B===null){P===null&&(P=F);break}e&&P&&B.alternate===null&&t(y,P),g=i(B,g,j),A===null?N=B:A.sibling=B,A=B,P=F}if(M.done)return n(y,P),Qe&&jr(y,j),N;if(P===null){for(;!M.done;j++,M=x.next())M=h(y,M.value,_),M!==null&&(g=i(M,g,j),A===null?N=M:A.sibling=M,A=M);return Qe&&jr(y,j),N}for(P=r(y,P);!M.done;j++,M=x.next())M=w(P,y,j,M.value,_),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?j:M.key),g=i(M,g,j),A===null?N=M:A.sibling=M,A=M);return e&&P.forEach(function(W){return t(y,W)}),Qe&&jr(y,j),N}function R(y,g,x,_){if(typeof x=="object"&&x!==null&&x.type===co&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case El:e:{for(var N=x.key,A=g;A!==null;){if(A.key===N){if(N=x.type,N===co){if(A.tag===7){n(y,A.sibling),g=o(A,x.props.children),g.return=y,y=g;break e}}else if(A.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===lr&&yp(N)===A.type){n(y,A.sibling),g=o(A,x.props),g.ref=di(y,A,x),g.return=y,y=g;break e}n(y,A);break}else t(y,A);A=A.sibling}x.type===co?(g=Br(x.props.children,y.mode,_,x.key),g.return=y,y=g):(_=sa(x.type,x.key,x.props,null,y.mode,_),_.ref=di(y,g,x),_.return=y,y=_)}return l(y);case uo:e:{for(A=x.key;g!==null;){if(g.key===A)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(y,g.sibling),g=o(g,x.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=nu(x,y.mode,_),g.return=y,y=g}return l(y);case lr:return A=x._init,R(y,g,A(x._payload),_)}if(wi(x))return C(y,g,x,_);if(li(x))return S(y,g,x,_);jl(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(y,g.sibling),g=o(g,x),g.return=y,y=g):(n(y,g),g=tu(x,y.mode,_),g.return=y,y=g),l(y)):n(y,g)}return R}var Mo=Qh(!0),Yh=Qh(!1),_a=_r(null),ka=null,wo=null,rd=null;function od(){rd=wo=ka=null}function id(e){var t=_a.current;Ke(_a),e._currentValue=t}function Ku(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ko(e,t){ka=e,rd=wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ft=!0),e.firstContext=null)}function an(e){var t=e._currentValue;if(rd!==e)if(e={context:e,memoizedValue:t,next:null},wo===null){if(ka===null)throw Error(q(308));wo=e,ka.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Fr=null;function ld(e){Fr===null?Fr=[e]:Fr.push(e)}function Xh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ld(t)):(n.next=o.next,o.next=n),t.interleaved=n,qn(e,r)}function qn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ar=!1;function ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ae&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,qn(e,n)}return o=r.interleaved,o===null?(t.next=t,ld(r)):(t.next=o.next,o.next=t),r.interleaved=t,qn(e,n)}function na(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qc(e,n)}}function wp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ra(e,t,n,r){var o=e.updateQueue;ar=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var d=s,u=d.next;d.next=null,l===null?i=u:l.next=u,l=d;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==l&&(s===null?m.firstBaseUpdate=u:s.next=u,m.lastBaseUpdate=d))}if(i!==null){var h=o.baseState;l=0,m=u=d=null,s=i;do{var f=s.lane,w=s.eventTime;if((r&f)===f){m!==null&&(m=m.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var C=e,S=s;switch(f=t,w=n,S.tag){case 1:if(C=S.payload,typeof C=="function"){h=C.call(w,h,f);break e}h=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=S.payload,f=typeof C=="function"?C.call(w,h,f):C,f==null)break e;h=tt({},h,f);break e;case 2:ar=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else w={eventTime:w,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(u=m=w,d=h):m=m.next=w,l|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(m===null&&(d=h),o.baseState=d,o.firstBaseUpdate=u,o.lastBaseUpdate=m,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);qr|=l,e.lanes=l,e.memoizedState=h}}function xp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ys.transition;Ys.transition={};try{e(!1),t()}finally{Me=n,Ys.transition=r}}function hv(){return sn().memoizedState}function ub(e,t,n){var r=yr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vv(e))gv(t,n);else if(n=Xh(e,t,n,r),n!==null){var o=Dt();yn(n,e,r,o),yv(n,t,r)}}function cb(e,t,n){var r=yr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vv(e))gv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,wn(s,l)){var d=t.interleaved;d===null?(o.next=o,ld(t)):(o.next=d.next,d.next=o),t.interleaved=o;return}}catch{}finally{}n=Xh(e,t,o,r),n!==null&&(o=Dt(),yn(n,e,r,o),yv(n,t,r))}}function vv(e){var t=e.alternate;return e===et||t!==null&&t===et}function gv(e,t){Ni=Pa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qc(e,n)}}var Ta={readContext:an,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},db={readContext:an,useCallback:function(e,t){return Nn().memoizedState=[e,t===void 0?null:t],e},useContext:an,useEffect:Sp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oa(4194308,4,cv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var n=Nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ub.bind(null,et,e),[r.memoizedState,e]},useRef:function(e){var t=Nn();return e={current:e},t.memoizedState=e},useState:bp,useDebugValue:hd,useDeferredValue:function(e){return Nn().memoizedState=e},useTransition:function(){var e=bp(!1),t=e[0];return e=sb.bind(null,e[1]),Nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=et,o=Nn();if(Qe){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),vt===null)throw Error(q(349));Vr&30||nv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Sp(ov.bind(null,r,i,e),[e]),r.flags|=2048,Gi(9,rv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Nn(),t=vt.identifierPrefix;if(Qe){var n=Bn,r=Hn;n=(r&~(1<<32-gn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vi++,0")&&(d=d.replace("",e.displayName)),d}while(1<=l&&0<=s);break}}}finally{Os=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wi(e):""}function H1(e){switch(e.tag){case 5:return wi(e.type);case 16:return wi("Lazy");case 13:return wi("Suspense");case 19:return wi("SuspenseList");case 0:case 2:case 15:return e=js(e.type,!1),e;case 11:return e=js(e.type.render,!1),e;case 1:return e=js(e.type,!0),e;default:return""}}function Eu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fo:return"Fragment";case co:return"Portal";case xu:return"Profiler";case Hc:return"StrictMode";case bu:return"Suspense";case Su:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zm:return(e.displayName||"Context")+".Consumer";case Xm:return(e._context.displayName||"Context")+".Provider";case Bc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uc:return t=e.displayName||null,t!==null?t:Eu(e.type)||"Memo";case lr:t=e._payload,e=e._init;try{return Eu(e(t))}catch{}}return null}function B1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Eu(t);case 8:return t===Hc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U1(e){var t=eh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cl(e){e._valueTracker||(e._valueTracker=U1(e))}function th(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Cu(e,t){var n=t.checked;return tt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nh(e,t){t=t.checked,t!=null&&$c(e,"checked",t,!1)}function _u(e,t){nh(e,t);var n=xr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ku(e,t.type,n):t.hasOwnProperty("defaultValue")&&ku(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ku(e,t,n){(t!=="number"||fa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xi=Array.isArray;function Eo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=_l.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ji(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ci={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},W1=["Webkit","ms","Moz","O"];Object.keys(Ci).forEach(function(e){W1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ci[t]=Ci[e]})});function lh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ci.hasOwnProperty(e)&&Ci[e]?(""+t).trim():t+"px"}function ah(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var V1=tt({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 Pu(e,t){if(t){if(V1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Tu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Au=null;function Wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Du=null,Co=null,_o=null;function Vf(e){if(e=rl(e)){if(typeof Du!="function")throw Error(U(280));var t=e.stateNode;t&&(t=es(t),Du(e.stateNode,e.type,t))}}function sh(e){Co?_o?_o.push(e):_o=[e]:Co=e}function uh(){if(Co){var e=Co,t=_o;if(_o=Co=null,Vf(e),t)for(e=0;e>>=0,e===0?32:31-(nx(e)/rx|0)|0}var kl=64,Rl=4194304;function bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function va(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=bi(s):(i&=l,i!==0&&(r=bi(i)))}else l=n&~o,l!==0?r=bi(l):i!==0&&(r=bi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function tl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gn(t),e[t]=n}function ax(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ki),ep=" ",tp=!1;function Ph(e,t){switch(e){case"keyup":return Mx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var po=!1;function Lx(e,t){switch(e){case"compositionend":return Th(t);case"keypress":return t.which!==32?null:(tp=!0,ep);case"textInput":return e=t.data,e===ep&&tp?null:e;default:return null}}function Fx(e,t){if(po)return e==="compositionend"||!Zc&&Ph(e,t)?(e=Rh(),ea=Qc=cr=null,po=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ip(n)}}function jh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mh(){for(var e=window,t=fa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fa(e.document)}return t}function Jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gx(e){var t=Mh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jh(n.ownerDocument.documentElement,n)){if(r!==null&&Jc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=lp(n,i);var l=lp(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,mo=null,Fu=null,Ni=null,zu=!1;function ap(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zu||mo==null||mo!==fa(r)||(r=mo,"selectionStart"in r&&Jc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ni&&$i(Ni,r)||(Ni=r,r=wa(Fu,"onSelect"),0go||(e.current=Vu[go],Vu[go]=null,go--)}function Be(e,t){go++,Vu[go]=e.current,e.current=t}var br={},_t=_r(br),zt=_r(!1),Ur=br;function jo(e,t){var n=e.type.contextTypes;if(!n)return br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $t(e){return e=e.childContextTypes,e!=null}function ba(){Ke(zt),Ke(_t)}function mp(e,t,n){if(_t.current!==br)throw Error(U(168));Be(_t,t),Be(zt,n)}function Wh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,B1(e)||"Unknown",o));return tt({},n,r)}function Sa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||br,Ur=_t.current,Be(_t,e),Be(zt,zt.current),!0}function hp(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=Wh(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,Ke(zt),Ke(_t),Be(_t,e)):Ke(zt),Be(zt,n)}var $n=null,ts=!1,Ks=!1;function Vh(e){$n===null?$n=[e]:$n.push(e)}function ib(e){ts=!0,Vh(e)}function kr(){if(!Ks&&$n!==null){Ks=!0;var e=0,t=Me;try{var n=$n;for(Me=1;e>=l,o-=l,Hn=1<<32-gn(t)+o|n<j?(z=P,P=null):z=P.sibling;var F=f(y,P,x[j],_);if(F===null){P===null&&(P=z);break}e&&P&&F.alternate===null&&t(y,P),v=i(F,v,j),D===null?N=F:D.sibling=F,D=F,P=z}if(j===x.length)return n(y,P),Qe&&jr(y,j),N;if(P===null){for(;jj?(z=P,P=null):z=P.sibling;var q=f(y,P,F.value,_);if(q===null){P===null&&(P=z);break}e&&P&&q.alternate===null&&t(y,P),v=i(q,v,j),D===null?N=q:D.sibling=q,D=q,P=z}if(F.done)return n(y,P),Qe&&jr(y,j),N;if(P===null){for(;!F.done;j++,F=x.next())F=h(y,F.value,_),F!==null&&(v=i(F,v,j),D===null?N=F:D.sibling=F,D=F);return Qe&&jr(y,j),N}for(P=r(y,P);!F.done;j++,F=x.next())F=w(P,y,j,F.value,_),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?j:F.key),v=i(F,v,j),D===null?N=F:D.sibling=F,D=F);return e&&P.forEach(function(W){return t(y,W)}),Qe&&jr(y,j),N}function R(y,v,x,_){if(typeof x=="object"&&x!==null&&x.type===fo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case El:e:{for(var N=x.key,D=v;D!==null;){if(D.key===N){if(N=x.type,N===fo){if(D.tag===7){n(y,D.sibling),v=o(D,x.props.children),v.return=y,y=v;break e}}else if(D.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===lr&&yp(N)===D.type){n(y,D.sibling),v=o(D,x.props),v.ref=fi(y,D,x),v.return=y,y=v;break e}n(y,D);break}else t(y,D);D=D.sibling}x.type===fo?(v=Br(x.props.children,y.mode,_,x.key),v.return=y,y=v):(_=sa(x.type,x.key,x.props,null,y.mode,_),_.ref=fi(y,v,x),_.return=y,y=_)}return l(y);case co:e:{for(D=x.key;v!==null;){if(v.key===D)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(y,v.sibling),v=o(v,x.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=nu(x,y.mode,_),v.return=y,y=v}return l(y);case lr:return D=x._init,R(y,v,D(x._payload),_)}if(xi(x))return C(y,v,x,_);if(ai(x))return S(y,v,x,_);jl(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(y,v.sibling),v=o(v,x),v.return=y,y=v):(n(y,v),v=tu(x,y.mode,_),v.return=y,y=v),l(y)):n(y,v)}return R}var Io=Qh(!0),Yh=Qh(!1),_a=_r(null),ka=null,xo=null,rd=null;function od(){rd=xo=ka=null}function id(e){var t=_a.current;Ke(_a),e._currentValue=t}function Ku(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ro(e,t){ka=e,rd=xo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ft=!0),e.firstContext=null)}function an(e){var t=e._currentValue;if(rd!==e)if(e={context:e,memoizedValue:t,next:null},xo===null){if(ka===null)throw Error(U(308));xo=e,ka.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Fr=null;function ld(e){Fr===null?Fr=[e]:Fr.push(e)}function Xh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ld(t)):(n.next=o.next,o.next=n),t.interleaved=n,qn(e,r)}function qn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ar=!1;function ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ae&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,qn(e,n)}return o=r.interleaved,o===null?(t.next=t,ld(r)):(t.next=o.next,o.next=t),r.interleaved=t,qn(e,n)}function na(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qc(e,n)}}function wp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ra(e,t,n,r){var o=e.updateQueue;ar=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var d=s,u=d.next;d.next=null,l===null?i=u:l.next=u,l=d;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==l&&(s===null?m.firstBaseUpdate=u:s.next=u,m.lastBaseUpdate=d))}if(i!==null){var h=o.baseState;l=0,m=u=d=null,s=i;do{var f=s.lane,w=s.eventTime;if((r&f)===f){m!==null&&(m=m.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var C=e,S=s;switch(f=t,w=n,S.tag){case 1:if(C=S.payload,typeof C=="function"){h=C.call(w,h,f);break e}h=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=S.payload,f=typeof C=="function"?C.call(w,h,f):C,f==null)break e;h=tt({},h,f);break e;case 2:ar=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else w={eventTime:w,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(u=m=w,d=h):m=m.next=w,l|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(m===null&&(d=h),o.baseState=d,o.firstBaseUpdate=u,o.lastBaseUpdate=m,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);qr|=l,e.lanes=l,e.memoizedState=h}}function xp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ys.transition;Ys.transition={};try{e(!1),t()}finally{Me=n,Ys.transition=r}}function hv(){return sn().memoizedState}function ub(e,t,n){var r=yr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vv(e))gv(t,n);else if(n=Xh(e,t,n,r),n!==null){var o=Dt();yn(n,e,r,o),yv(n,t,r)}}function cb(e,t,n){var r=yr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vv(e))gv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,wn(s,l)){var d=t.interleaved;d===null?(o.next=o,ld(t)):(o.next=d.next,d.next=o),t.interleaved=o;return}}catch{}finally{}n=Xh(e,t,o,r),n!==null&&(o=Dt(),yn(n,e,r,o),yv(n,t,r))}}function vv(e){var t=e.alternate;return e===et||t!==null&&t===et}function gv(e,t){Pi=Pa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qc(e,n)}}var Ta={readContext:an,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},db={readContext:an,useCallback:function(e,t){return Nn().memoizedState=[e,t===void 0?null:t],e},useContext:an,useEffect:Sp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oa(4194308,4,cv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var n=Nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ub.bind(null,et,e),[r.memoizedState,e]},useRef:function(e){var t=Nn();return e={current:e},t.memoizedState=e},useState:bp,useDebugValue:hd,useDeferredValue:function(e){return Nn().memoizedState=e},useTransition:function(){var e=bp(!1),t=e[0];return e=sb.bind(null,e[1]),Nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=et,o=Nn();if(Qe){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),vt===null)throw Error(U(349));Vr&30||nv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Sp(ov.bind(null,r,i,e),[e]),r.flags|=2048,Ki(9,rv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Nn(),t=vt.identifierPrefix;if(Qe){var n=Bn,r=Hn;n=(r&~(1<<32-gn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Pn]=t,e[Bi]=r,Nv(e,t,!1,!1),t.stateNode=e;e:{switch(l=Tu(n,r),n){case"dialog":qe("cancel",e),qe("close",e),o=r;break;case"iframe":case"object":case"embed":qe("load",e),o=r;break;case"video":case"audio":for(o=0;oFo&&(t.flags|=128,r=!0,fi(i,!1),t.lanes=4194304)}else{if(!r)if(e=Na(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Qe)return Et(t),null}else 2*lt()-i.renderingStartTime>Fo&&n!==1073741824&&(t.flags|=128,r=!0,fi(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=lt(),t.sibling=null,n=Je.current,Be(Je,r?n&1|2:n&1),t):(Et(t),null);case 22:case 23:return bd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Vt&1073741824&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function wb(e,t){switch(td(t),t.tag){case 1:return zt(t.type)&&ba(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Io(),Ke($t),Ke(_t),cd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ud(t),null;case 13:if(Ke(Je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(Je),null;case 4:return Io(),null;case 10:return id(t.type._context),null;case 22:case 23:return bd(),null;case 24:return null;default:return null}}var Il=!1,Ct=!1,xb=typeof WeakSet=="function"?WeakSet:Set,te=null;function xo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){rt(e,t,r)}else n.current=null}function rc(e,t,n){try{n()}catch(r){rt(e,t,r)}}var Op=!1;function bb(e,t){if(zu=ga,e=Mh(),Jc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,d=-1,u=0,m=0,h=e,f=null;t:for(;;){for(var w;h!==n||o!==0&&h.nodeType!==3||(s=l+o),h!==i||r!==0&&h.nodeType!==3||(d=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(w=h.firstChild)!==null;)f=h,h=w;for(;;){if(h===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++m===r&&(d=l),(w=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=w}n=s===-1||d===-1?null:{start:s,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hu={focusedElem:e,selectionRange:n},ga=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var S=C.memoizedProps,R=C.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?S:mn(t.type,S),R);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(_){rt(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return C=Op,Op=!1,C}function Pi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&rc(t,n,i)}o=o.next}while(o!==r)}}function os(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Av(e){var t=e.alternate;t!==null&&(e.alternate=null,Av(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pn],delete t[Bi],delete t[Wu],delete t[rb],delete t[ob])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Dv(e){return e.tag===5||e.tag===3||e.tag===4}function jp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ic(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xa));else if(r!==4&&(e=e.child,e!==null))for(ic(e,t,n),e=e.sibling;e!==null;)ic(e,t,n),e=e.sibling}function lc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}var gt=null,hn=!1;function nr(e,t,n){for(n=n.child;n!==null;)Ov(e,t,n),n=n.sibling}function Ov(e,t,n){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(Ya,n)}catch{}switch(n.tag){case 5:Ct||xo(n,t);case 6:var r=gt,o=hn;gt=null,nr(e,t,n),gt=r,hn=o,gt!==null&&(hn?(e=gt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):gt.removeChild(n.stateNode));break;case 18:gt!==null&&(hn?(e=gt,n=n.stateNode,e.nodeType===8?Gs(e.parentNode,n):e.nodeType===1&&Gs(e,n),Li(e)):Gs(gt,n.stateNode));break;case 4:r=gt,o=hn,gt=n.stateNode.containerInfo,hn=!0,nr(e,t,n),gt=r,hn=o;break;case 0:case 11:case 14:case 15:if(!Ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&rc(n,t,l),o=o.next}while(o!==r)}nr(e,t,n);break;case 1:if(!Ct&&(xo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){rt(n,t,s)}nr(e,t,n);break;case 21:nr(e,t,n);break;case 22:n.mode&1?(Ct=(r=Ct)||n.memoizedState!==null,nr(e,t,n),Ct=r):nr(e,t,n);break;default:nr(e,t,n)}}function Mp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xb),t.forEach(function(r){var o=Tb.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=lt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eb(r/1960))-r,10e?16:e,dr===null)var r=!1;else{if(e=dr,dr=null,Oa=0,Ae&6)throw Error(q(331));var o=Ae;for(Ae|=4,te=e.current;te!==null;){var i=te,l=i.child;if(te.flags&16){var s=i.deletions;if(s!==null){for(var d=0;dlt()-wd?Hr(e,0):yd|=n),Ht(e,t)}function Hv(e,t){t===0&&(e.mode&1?(t=Rl,Rl<<=1,!(Rl&130023424)&&(Rl=4194304)):t=1);var n=Dt();e=qn(e,t),e!==null&&(el(e,t,n),Ht(e,n))}function Pb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hv(e,n)}function Tb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(q(314))}r!==null&&r.delete(t),Hv(e,n)}var Bv;Bv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$t.current)Ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ft=!1,gb(e,t,n);Ft=!!(e.flags&131072)}else Ft=!1,Qe&&t.flags&1048576&&qh(t,Ca,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ia(e,t),e=t.pendingProps;var o=Oo(t,_t.current);ko(t,n),o=fd(null,t,r,e,o,n);var i=pd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zt(r)?(i=!0,Sa(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ad(t),o.updater=rs,t.stateNode=o,o._reactInternals=t,Yu(t,r,e,n),t=Ju(null,t,r,!0,i,n)):(t.tag=0,Qe&&i&&ed(t),At(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ia(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Db(r),e=mn(r,e),o){case 0:t=Zu(null,t,r,e,n);break e;case 1:t=Tp(null,t,r,e,n);break e;case 11:t=Np(null,t,r,e,n);break e;case 14:t=Pp(null,t,r,mn(r.type,e),n);break e}throw Error(q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Zu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Tp(e,t,r,o,n);case 3:e:{if(_v(t),e===null)throw Error(q(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Zh(e,t),Ra(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lo(Error(q(423)),t),t=Ap(e,t,r,n,o);break e}else if(r!==o){o=Lo(Error(q(424)),t),t=Ap(e,t,r,n,o);break e}else for(Gt=hr(t.stateNode.containerInfo.firstChild),Kt=t,Qe=!0,vn=null,n=Yh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jo(),r===o){t=Gn(e,t,n);break e}At(e,t,r,n)}t=t.child}return t;case 5:return Jh(t),e===null&&Gu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Bu(r,o)?l=null:i!==null&&Bu(r,i)&&(t.flags|=32),Cv(e,t),At(e,t,l,n),t.child;case 6:return e===null&&Gu(t),null;case 13:return kv(e,t,n);case 4:return sd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mo(t,null,r,n):At(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Np(e,t,r,o,n);case 7:return At(e,t,t.pendingProps,n),t.child;case 8:return At(e,t,t.pendingProps.children,n),t.child;case 12:return At(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Be(_a,r._currentValue),r._currentValue=l,i!==null)if(wn(i.value,l)){if(i.children===o.children&&!$t.current){t=Gn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var d=s.firstContext;d!==null;){if(d.context===r){if(i.tag===1){d=Un(-1,n&-n),d.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var m=u.pending;m===null?d.next=d:(d.next=m.next,m.next=d),u.pending=d}}i.lanes|=n,d=i.alternate,d!==null&&(d.lanes|=n),Ku(i.return,n,t),s.lanes|=n;break}d=d.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(q(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ku(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}At(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ko(t,n),o=an(o),r=r(o),t.flags|=1,At(e,t,r,n),t.child;case 14:return r=t.type,o=mn(r,t.pendingProps),o=mn(r.type,o),Pp(e,t,r,o,n);case 15:return Sv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),ia(e,t),t.tag=1,zt(r)?(e=!0,Sa(t)):e=!1,ko(t,n),wv(t,r,o),Yu(t,r,o,n),Ju(null,t,r,!0,e,n);case 19:return Rv(e,t,n);case 22:return Ev(e,t,n)}throw Error(q(156,t.tag))};function Uv(e,t){return vh(e,t)}function Ab(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(e,t,n,r){return new Ab(e,t,n,r)}function Ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Db(e){if(typeof e=="function")return Ed(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bc)return 11;if(e===Uc)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=on(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sa(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Ed(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case co:return Br(n.children,o,i,t);case Hc:l=8,o|=8;break;case xu:return e=on(12,n,t,o|2),e.elementType=xu,e.lanes=i,e;case bu:return e=on(13,n,t,o),e.elementType=bu,e.lanes=i,e;case Su:return e=on(19,n,t,o),e.elementType=Su,e.lanes=i,e;case Jm:return ls(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xm:l=10;break e;case Zm:l=9;break e;case Bc:l=11;break e;case Uc:l=14;break e;case lr:l=16,r=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=on(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=on(7,e,r,t),e.lanes=n,e}function ls(e,t,n,r){return e=on(22,e,r,t),e.elementType=Jm,e.lanes=n,e.stateNode={isHidden:!1},e}function tu(e,t,n){return e=on(6,e,null,t),e.lanes=n,e}function nu(e,t,n){return t=on(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ob(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Is(0),this.expirationTimes=Is(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Is(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cd(e,t,n,r,o,i,l,s,d){return e=new Ob(e,t,n,s,d),t===1?(t=1,i===!0&&(t|=8)):t=0,i=on(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ad(i),e}function jb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gv)}catch(e){console.error(e)}}Gv(),Gm.exports=Xt;var eo=Gm.exports;const Kv=Zi(eo);var Up=eo;yu.createRoot=Up.createRoot,yu.hydrateRoot=Up.hydrateRoot;var $b={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Wp=e=>{let t;const n=new Set,r=(m,h)=>{const f=typeof m=="function"?m(t):m;if(!Object.is(f,t)){const w=t;t=h??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(C=>C(t,w))}},o=()=>t,d={setState:r,getState:o,getInitialState:()=>u,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{($b?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,d);return d},zb=e=>e?Wp(e):Wp;var Qv={exports:{}},Yv={},Xv={exports:{}},Zv={};/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Js(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var mb=typeof WeakMap=="function"?WeakMap:Map;function xv(e,t,n){n=Un(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Da||(Da=!0,ac=r),Xu(e,t)},n}function bv(e,t,n){n=Un(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Xu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Xu(e,t),typeof r!="function"&&(gr===null?gr=new Set([this]):gr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function _p(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new mb;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Nb.bind(null,e,t,n),t.then(e,e))}function kp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Rp(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Un(-1,1),t.tag=2,vr(n,t,1))),n.lanes|=1),e)}var hb=Xn.ReactCurrentOwner,Ft=!1;function At(e,t,n,r){t.child=e===null?Yh(t,null,n,r):Io(t,e.child,n,r)}function Np(e,t,n,r,o){n=n.render;var i=t.ref;return Ro(t,o),r=fd(e,t,n,r,i,o),n=pd(),e!==null&&!Ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gn(e,t,o)):(Qe&&n&&ed(t),t.flags|=1,At(e,t,r,o),t.child)}function Pp(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Ed(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Sv(e,t,i,r,o)):(e=sa(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:$i,n(l,r)&&e.ref===t.ref)return Gn(e,t,o)}return t.flags|=1,e=wr(i,r),e.ref=t.ref,e.return=t,t.child=e}function Sv(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if($i(i,r)&&e.ref===t.ref)if(Ft=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ft=!0);else return t.lanes=e.lanes,Gn(e,t,o)}return Zu(e,t,n,r,o)}function Ev(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Be(So,Vt),Vt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Be(So,Vt),Vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Be(So,Vt),Vt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Be(So,Vt),Vt|=r;return At(e,t,o,n),t.child}function Cv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zu(e,t,n,r,o){var i=$t(n)?Ur:_t.current;return i=jo(t,i),Ro(t,o),n=fd(e,t,n,r,i,o),r=pd(),e!==null&&!Ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gn(e,t,o)):(Qe&&r&&ed(t),t.flags|=1,At(e,t,n,o),t.child)}function Tp(e,t,n,r,o){if($t(n)){var i=!0;Sa(t)}else i=!1;if(Ro(t,o),t.stateNode===null)ia(e,t),wv(t,n,r),Yu(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var d=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=an(u):(u=$t(n)?Ur:_t.current,u=jo(t,u));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||d!==u)&&Cp(t,l,r,u),ar=!1;var f=t.memoizedState;l.state=f,Ra(t,r,l,o),d=t.memoizedState,s!==r||f!==d||zt.current||ar?(typeof m=="function"&&(Qu(t,n,m,r),d=t.memoizedState),(s=ar||Ep(t,n,s,r,f,d,u))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=d),l.props=r,l.state=d,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Zh(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:mn(t.type,s),l.props=u,h=t.pendingProps,f=l.context,d=n.contextType,typeof d=="object"&&d!==null?d=an(d):(d=$t(n)?Ur:_t.current,d=jo(t,d));var w=n.getDerivedStateFromProps;(m=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==h||f!==d)&&Cp(t,l,r,d),ar=!1,f=t.memoizedState,l.state=f,Ra(t,r,l,o);var C=t.memoizedState;s!==h||f!==C||zt.current||ar?(typeof w=="function"&&(Qu(t,n,w,r),C=t.memoizedState),(u=ar||Ep(t,n,u,r,f,C,d)||!1)?(m||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,C,d),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,C,d)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=C),l.props=r,l.state=C,l.context=d,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ju(e,t,n,r,i,o)}function Ju(e,t,n,r,o,i){Cv(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&hp(t,n,!1),Gn(e,t,i);r=t.stateNode,hb.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Io(t,e.child,null,i),t.child=Io(t,null,s,i)):At(e,t,s,i),t.memoizedState=r.state,o&&hp(t,n,!0),t.child}function _v(e){var t=e.stateNode;t.pendingContext?mp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mp(e,t.context,!1),sd(e,t.containerInfo)}function Ap(e,t,n,r,o){return Mo(),nd(o),t.flags|=256,At(e,t,n,r),t.child}var ec={dehydrated:null,treeContext:null,retryLane:0};function tc(e){return{baseLanes:e,cachePool:null,transitions:null}}function kv(e,t,n){var r=t.pendingProps,o=Je.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Be(Je,o&1),e===null)return Gu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=ls(l,r,0,null),e=Br(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=tc(n),t.memoizedState=ec,e):vd(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return vb(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var d={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=d,t.deletions=null):(r=wr(o,d),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=wr(s,i):(i=Br(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?tc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=ec,r}return i=e.child,e=i.sibling,r=wr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function vd(e,t){return t=ls({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ml(e,t,n,r){return r!==null&&nd(r),Io(t,e.child,null,n),e=vd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vb(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Js(Error(U(422))),Ml(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ls({mode:"visible",children:r.children},o,0,null),i=Br(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Io(t,e.child,null,l),t.child.memoizedState=tc(l),t.memoizedState=ec,i);if(!(t.mode&1))return Ml(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(U(419)),r=Js(i,r,void 0),Ml(e,t,l,r)}if(s=(l&e.childLanes)!==0,Ft||s){if(r=vt,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,qn(e,o),yn(r,e,o,-1))}return Sd(),r=Js(Error(U(421))),Ml(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Pb.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Gt=hr(o.nextSibling),Kt=t,Qe=!0,vn=null,e!==null&&(tn[nn++]=Hn,tn[nn++]=Bn,tn[nn++]=Wr,Hn=e.id,Bn=e.overflow,Wr=t),t=vd(t,r.children),t.flags|=4096,t)}function Dp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ku(e.return,t,n)}function eu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Rv(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(At(e,t,r.children,n),r=Je.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dp(e,n,t);else if(e.tag===19)Dp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Be(Je,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Na(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),eu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Na(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}eu(t,!0,n,null,i);break;case"together":eu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ia(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=wr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gb(e,t,n){switch(t.tag){case 3:_v(t),Mo();break;case 5:Jh(t);break;case 1:$t(t.type)&&Sa(t);break;case 4:sd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Be(_a,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Be(Je,Je.current&1),t.flags|=128,null):n&t.child.childLanes?kv(e,t,n):(Be(Je,Je.current&1),e=Gn(e,t,n),e!==null?e.sibling:null);Be(Je,Je.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Be(Je,Je.current),r)break;return null;case 22:case 23:return t.lanes=0,Ev(e,t,n)}return Gn(e,t,n)}var Nv,nc,Pv,Tv;Nv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};nc=function(){};Pv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,zr(On.current);var i=null;switch(n){case"input":o=Cu(e,o),r=Cu(e,r),i=[];break;case"select":o=tt({},o,{value:void 0}),r=tt({},r,{value:void 0}),i=[];break;case"textarea":o=Ru(e,o),r=Ru(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xa)}Pu(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Oi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var d=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&d!==s&&(d!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||d&&d.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in d)d.hasOwnProperty(l)&&s[l]!==d[l]&&(n||(n={}),n[l]=d[l])}else n||(i||(i=[]),i.push(u,n)),n=d;else u==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,s=s?s.__html:void 0,d!=null&&s!==d&&(i=i||[]).push(u,d)):u==="children"?typeof d!="string"&&typeof d!="number"||(i=i||[]).push(u,""+d):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Oi.hasOwnProperty(u)?(d!=null&&u==="onScroll"&&qe("scroll",e),i||s===d||(i=[])):(i=i||[]).push(u,d))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Tv=function(e,t,n,r){n!==r&&(t.flags|=4)};function pi(e,t){if(!Qe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function yb(e,t,n){var r=t.pendingProps;switch(td(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(t),null;case 1:return $t(t.type)&&ba(),Et(t),null;case 3:return r=t.stateNode,Lo(),Ke(zt),Ke(_t),cd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ol(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,vn!==null&&(cc(vn),vn=null))),nc(e,t),Et(t),null;case 5:ud(t);var o=zr(Vi.current);if(n=t.type,e!==null&&t.stateNode!=null)Pv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Et(t),null}if(e=zr(On.current),Ol(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Pn]=t,r[Ui]=i,e=(t.mode&1)!==0,n){case"dialog":qe("cancel",r),qe("close",r);break;case"iframe":case"object":case"embed":qe("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Pn]=t,e[Ui]=r,Nv(e,t,!1,!1),t.stateNode=e;e:{switch(l=Tu(n,r),n){case"dialog":qe("cancel",e),qe("close",e),o=r;break;case"iframe":case"object":case"embed":qe("load",e),o=r;break;case"video":case"audio":for(o=0;ozo&&(t.flags|=128,r=!0,pi(i,!1),t.lanes=4194304)}else{if(!r)if(e=Na(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Qe)return Et(t),null}else 2*lt()-i.renderingStartTime>zo&&n!==1073741824&&(t.flags|=128,r=!0,pi(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=lt(),t.sibling=null,n=Je.current,Be(Je,r?n&1|2:n&1),t):(Et(t),null);case 22:case 23:return bd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Vt&1073741824&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function wb(e,t){switch(td(t),t.tag){case 1:return $t(t.type)&&ba(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lo(),Ke(zt),Ke(_t),cd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ud(t),null;case 13:if(Ke(Je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Mo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(Je),null;case 4:return Lo(),null;case 10:return id(t.type._context),null;case 22:case 23:return bd(),null;case 24:return null;default:return null}}var Il=!1,Ct=!1,xb=typeof WeakSet=="function"?WeakSet:Set,te=null;function bo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){rt(e,t,r)}else n.current=null}function rc(e,t,n){try{n()}catch(r){rt(e,t,r)}}var Op=!1;function bb(e,t){if($u=ga,e=Mh(),Jc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,d=-1,u=0,m=0,h=e,f=null;t:for(;;){for(var w;h!==n||o!==0&&h.nodeType!==3||(s=l+o),h!==i||r!==0&&h.nodeType!==3||(d=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(w=h.firstChild)!==null;)f=h,h=w;for(;;){if(h===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++m===r&&(d=l),(w=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=w}n=s===-1||d===-1?null:{start:s,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hu={focusedElem:e,selectionRange:n},ga=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var S=C.memoizedProps,R=C.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?S:mn(t.type,S),R);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(_){rt(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return C=Op,Op=!1,C}function Ti(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&rc(t,n,i)}o=o.next}while(o!==r)}}function os(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Av(e){var t=e.alternate;t!==null&&(e.alternate=null,Av(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pn],delete t[Ui],delete t[Wu],delete t[rb],delete t[ob])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Dv(e){return e.tag===5||e.tag===3||e.tag===4}function jp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ic(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xa));else if(r!==4&&(e=e.child,e!==null))for(ic(e,t,n),e=e.sibling;e!==null;)ic(e,t,n),e=e.sibling}function lc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}var yt=null,hn=!1;function nr(e,t,n){for(n=n.child;n!==null;)Ov(e,t,n),n=n.sibling}function Ov(e,t,n){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(Ya,n)}catch{}switch(n.tag){case 5:Ct||bo(n,t);case 6:var r=yt,o=hn;yt=null,nr(e,t,n),yt=r,hn=o,yt!==null&&(hn?(e=yt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):yt.removeChild(n.stateNode));break;case 18:yt!==null&&(hn?(e=yt,n=n.stateNode,e.nodeType===8?Gs(e.parentNode,n):e.nodeType===1&&Gs(e,n),Fi(e)):Gs(yt,n.stateNode));break;case 4:r=yt,o=hn,yt=n.stateNode.containerInfo,hn=!0,nr(e,t,n),yt=r,hn=o;break;case 0:case 11:case 14:case 15:if(!Ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&rc(n,t,l),o=o.next}while(o!==r)}nr(e,t,n);break;case 1:if(!Ct&&(bo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){rt(n,t,s)}nr(e,t,n);break;case 21:nr(e,t,n);break;case 22:n.mode&1?(Ct=(r=Ct)||n.memoizedState!==null,nr(e,t,n),Ct=r):nr(e,t,n);break;default:nr(e,t,n)}}function Mp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xb),t.forEach(function(r){var o=Tb.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=lt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eb(r/1960))-r,10e?16:e,dr===null)var r=!1;else{if(e=dr,dr=null,Oa=0,Ae&6)throw Error(U(331));var o=Ae;for(Ae|=4,te=e.current;te!==null;){var i=te,l=i.child;if(te.flags&16){var s=i.deletions;if(s!==null){for(var d=0;dlt()-wd?Hr(e,0):yd|=n),Ht(e,t)}function Hv(e,t){t===0&&(e.mode&1?(t=Rl,Rl<<=1,!(Rl&130023424)&&(Rl=4194304)):t=1);var n=Dt();e=qn(e,t),e!==null&&(tl(e,t,n),Ht(e,n))}function Pb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hv(e,n)}function Tb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Hv(e,n)}var Bv;Bv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||zt.current)Ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ft=!1,gb(e,t,n);Ft=!!(e.flags&131072)}else Ft=!1,Qe&&t.flags&1048576&&qh(t,Ca,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ia(e,t),e=t.pendingProps;var o=jo(t,_t.current);Ro(t,n),o=fd(null,t,r,e,o,n);var i=pd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(r)?(i=!0,Sa(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ad(t),o.updater=rs,t.stateNode=o,o._reactInternals=t,Yu(t,r,e,n),t=Ju(null,t,r,!0,i,n)):(t.tag=0,Qe&&i&&ed(t),At(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ia(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Db(r),e=mn(r,e),o){case 0:t=Zu(null,t,r,e,n);break e;case 1:t=Tp(null,t,r,e,n);break e;case 11:t=Np(null,t,r,e,n);break e;case 14:t=Pp(null,t,r,mn(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Zu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Tp(e,t,r,o,n);case 3:e:{if(_v(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Zh(e,t),Ra(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Fo(Error(U(423)),t),t=Ap(e,t,r,n,o);break e}else if(r!==o){o=Fo(Error(U(424)),t),t=Ap(e,t,r,n,o);break e}else for(Gt=hr(t.stateNode.containerInfo.firstChild),Kt=t,Qe=!0,vn=null,n=Yh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mo(),r===o){t=Gn(e,t,n);break e}At(e,t,r,n)}t=t.child}return t;case 5:return Jh(t),e===null&&Gu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Bu(r,o)?l=null:i!==null&&Bu(r,i)&&(t.flags|=32),Cv(e,t),At(e,t,l,n),t.child;case 6:return e===null&&Gu(t),null;case 13:return kv(e,t,n);case 4:return sd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Io(t,null,r,n):At(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Np(e,t,r,o,n);case 7:return At(e,t,t.pendingProps,n),t.child;case 8:return At(e,t,t.pendingProps.children,n),t.child;case 12:return At(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Be(_a,r._currentValue),r._currentValue=l,i!==null)if(wn(i.value,l)){if(i.children===o.children&&!zt.current){t=Gn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var d=s.firstContext;d!==null;){if(d.context===r){if(i.tag===1){d=Un(-1,n&-n),d.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var m=u.pending;m===null?d.next=d:(d.next=m.next,m.next=d),u.pending=d}}i.lanes|=n,d=i.alternate,d!==null&&(d.lanes|=n),Ku(i.return,n,t),s.lanes|=n;break}d=d.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(U(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ku(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}At(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ro(t,n),o=an(o),r=r(o),t.flags|=1,At(e,t,r,n),t.child;case 14:return r=t.type,o=mn(r,t.pendingProps),o=mn(r.type,o),Pp(e,t,r,o,n);case 15:return Sv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),ia(e,t),t.tag=1,$t(r)?(e=!0,Sa(t)):e=!1,Ro(t,n),wv(t,r,o),Yu(t,r,o,n),Ju(null,t,r,!0,e,n);case 19:return Rv(e,t,n);case 22:return Ev(e,t,n)}throw Error(U(156,t.tag))};function Uv(e,t){return vh(e,t)}function Ab(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(e,t,n,r){return new Ab(e,t,n,r)}function Ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Db(e){if(typeof e=="function")return Ed(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bc)return 11;if(e===Uc)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=on(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sa(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Ed(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fo:return Br(n.children,o,i,t);case Hc:l=8,o|=8;break;case xu:return e=on(12,n,t,o|2),e.elementType=xu,e.lanes=i,e;case bu:return e=on(13,n,t,o),e.elementType=bu,e.lanes=i,e;case Su:return e=on(19,n,t,o),e.elementType=Su,e.lanes=i,e;case Jm:return ls(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xm:l=10;break e;case Zm:l=9;break e;case Bc:l=11;break e;case Uc:l=14;break e;case lr:l=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=on(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=on(7,e,r,t),e.lanes=n,e}function ls(e,t,n,r){return e=on(22,e,r,t),e.elementType=Jm,e.lanes=n,e.stateNode={isHidden:!1},e}function tu(e,t,n){return e=on(6,e,null,t),e.lanes=n,e}function nu(e,t,n){return t=on(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ob(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Is(0),this.expirationTimes=Is(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Is(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cd(e,t,n,r,o,i,l,s,d){return e=new Ob(e,t,n,s,d),t===1?(t=1,i===!0&&(t|=8)):t=0,i=on(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ad(i),e}function jb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gv)}catch(e){console.error(e)}}Gv(),Gm.exports=Xt;var eo=Gm.exports;const Kv=Ji(eo);var Up=eo;yu.createRoot=Up.createRoot,yu.hydrateRoot=Up.hydrateRoot;var zb={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Wp=e=>{let t;const n=new Set,r=(m,h)=>{const f=typeof m=="function"?m(t):m;if(!Object.is(f,t)){const w=t;t=h??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(C=>C(t,w))}},o=()=>t,d={setState:r,getState:o,getInitialState:()=>u,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(zb?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,d);return d},$b=e=>e?Wp(e):Wp;var Qv={exports:{}},Yv={},Xv={exports:{}},Zv={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -45,7 +45,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $o=v;function Hb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bb=typeof Object.is=="function"?Object.is:Hb,Ub=$o.useState,Wb=$o.useEffect,Vb=$o.useLayoutEffect,qb=$o.useDebugValue;function Gb(e,t){var n=t(),r=Ub({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Vb(function(){o.value=n,o.getSnapshot=t,ru(o)&&i({inst:o})},[e,n,t]),Wb(function(){return ru(o)&&i({inst:o}),e(function(){ru(o)&&i({inst:o})})},[e]),qb(n),n}function ru(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bb(e,n)}catch{return!0}}function Kb(e,t){return t()}var Qb=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Kb:Gb;Zv.useSyncExternalStore=$o.useSyncExternalStore!==void 0?$o.useSyncExternalStore:Qb;Xv.exports=Zv;var Yb=Xv.exports;/** + */var $o=g;function Hb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bb=typeof Object.is=="function"?Object.is:Hb,Ub=$o.useState,Wb=$o.useEffect,Vb=$o.useLayoutEffect,qb=$o.useDebugValue;function Gb(e,t){var n=t(),r=Ub({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Vb(function(){o.value=n,o.getSnapshot=t,ru(o)&&i({inst:o})},[e,n,t]),Wb(function(){return ru(o)&&i({inst:o}),e(function(){ru(o)&&i({inst:o})})},[e]),qb(n),n}function ru(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bb(e,n)}catch{return!0}}function Kb(e,t){return t()}var Qb=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Kb:Gb;Zv.useSyncExternalStore=$o.useSyncExternalStore!==void 0?$o.useSyncExternalStore:Qb;Xv.exports=Zv;var Yb=Xv.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -53,120 +53,125 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ds=v,Xb=Yb;function Zb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jb=typeof Object.is=="function"?Object.is:Zb,eS=Xb.useSyncExternalStore,tS=ds.useRef,nS=ds.useEffect,rS=ds.useMemo,oS=ds.useDebugValue;Yv.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=tS(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=rS(function(){function d(w){if(!u){if(u=!0,m=w,w=r(w),o!==void 0&&l.hasValue){var C=l.value;if(o(C,w))return h=C}return h=w}if(C=h,Jb(m,w))return C;var S=r(w);return o!==void 0&&o(C,S)?C:(m=w,h=S)}var u=!1,m,h,f=n===void 0?null:n;return[function(){return d(t())},f===null?void 0:function(){return d(f())}]},[t,n,r,o]);var s=eS(e,i[0],i[1]);return nS(function(){l.hasValue=!0,l.value=s},[s]),oS(s),s};Qv.exports=Yv;var iS=Qv.exports;const lS=Zi(iS);var Jv={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:aS}=D,{useSyncExternalStoreWithSelector:sS}=lS;let Vp=!1;const uS=e=>e;function cS(e,t=uS,n){(Jv?"production":void 0)!=="production"&&n&&!Vp&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Vp=!0);const r=sS(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return aS(r),r}const qp=e=>{(Jv?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?zb(e):e,n=(r,o)=>cS(t,r,o);return Object.assign(n,t),n},dS=e=>e?qp(e):qp;var eg={exports:{}};const fS={},pS=Object.freeze(Object.defineProperty({__proto__:null,default:fS},Symbol.toStringTag,{value:"Module"})),ou=f1(pS);(function(e,t){var n=void 0,r=function(o){return n||(n=new Promise(function(i,l){var s=typeof o<"u"?o:{},d=s.onAbort;s.onAbort=function(a){l(new Error(a)),d&&d(a)},s.postRun=s.postRun||[],s.postRun.push(function(){i(s)}),e=void 0;var u;u||(u=typeof s<"u"?s:{}),u.onRuntimeInitialized=function(){function a(T,H){switch(typeof H){case"boolean":u1(T,H?1:0);break;case"number":l1(T,H);break;case"string":a1(T,H,-1,-1);break;case"object":if(H===null)Df(T);else if(H.length!=null){var ie=vl(H,hl);s1(T,ie,H.length,-1),wl(ie)}else bl(T,"Wrong API use : tried to return a value of an unknown type ("+H+").",-1);break;default:Df(T)}}function c(T,H){for(var ie=[],ye=0;ye>>0),T!=null){var H=this.filename,ie="/",ye=H;if(ie&&(ie=typeof ie=="string"?ie:Zo(ie),ye=H?kt(ie+"/"+H):ie),H=de(!0,!0),ye=ul(ye,(H!==void 0?H:438)&4095|32768,0),T){if(typeof T=="string"){ie=Array(T.length);for(var Ce=0,He=T.length;Ce(a=ce(a)?new URL(a):_.normalize(a),x.readFileSync(a,c?void 0:"utf8")),g=a=>(a=R(a,!0),a.buffer||(a=new Uint8Array(a)),a),y=(a,c,p,E=!0)=>{a=ce(a)?new URL(a):_.normalize(a),x.readFile(a,E?void 0:"utf8",(k,O)=>{k?p(k):c(E?O.buffer:O)})},!u.thisProgram&&1"[Emscripten Module object]"}else(f||w)&&(w?S=self.location.href:typeof document<"u"&&document.currentScript&&(S=document.currentScript.src),S=S.indexOf("blob:")!==0?S.substr(0,S.replace(/[?#].*/,"").lastIndexOf("/")+1):"",R=a=>{var c=new XMLHttpRequest;return c.open("GET",a,!1),c.send(null),c.responseText},w&&(g=a=>{var c=new XMLHttpRequest;return c.open("GET",a,!1),c.responseType="arraybuffer",c.send(null),new Uint8Array(c.response)}),y=(a,c,p)=>{var E=new XMLHttpRequest;E.open("GET",a,!0),E.responseType="arraybuffer",E.onload=()=>{E.status==200||E.status==0&&E.response?c(E.response):p()},E.onerror=p,E.send(null)});var N=u.print||console.log.bind(console),A=u.printErr||console.error.bind(console);Object.assign(u,m),m=null,u.thisProgram&&(h=u.thisProgram);var P;u.wasmBinary&&(P=u.wasmBinary),typeof WebAssembly!="object"&&pe("no native wasm support detected");var j,F=!1,M,B,W,z,V,Z,oe;function re(){var a=j.buffer;u.HEAP8=M=new Int8Array(a),u.HEAP16=W=new Int16Array(a),u.HEAPU8=B=new Uint8Array(a),u.HEAPU16=new Uint16Array(a),u.HEAP32=z=new Int32Array(a),u.HEAPU32=V=new Uint32Array(a),u.HEAPF32=Z=new Float32Array(a),u.HEAPF64=oe=new Float64Array(a)}var I=[],U=[],ne=[];function Y(){var a=u.preRun.shift();I.unshift(a)}var X=0,me=null;function pe(a){var c;throw(c=u.onAbort)==null||c.call(u,a),a="Aborted("+a+")",A(a),F=!0,new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.")}var Oe=a=>a.startsWith("data:application/octet-stream;base64,"),ce=a=>a.startsWith("file://"),ee;if(ee="sql-wasm.wasm",!Oe(ee)){var we=ee;ee=u.locateFile?u.locateFile(we,S):S+we}function De(a){if(a==ee&&P)return new Uint8Array(P);if(g)return g(a);throw"both async and sync fetching of the wasm failed"}function K(a){if(!P&&(f||w)){if(typeof fetch=="function"&&!ce(a))return fetch(a,{credentials:"same-origin"}).then(c=>{if(!c.ok)throw"failed to load wasm binary file at '"+a+"'";return c.arrayBuffer()}).catch(()=>De(a));if(y)return new Promise((c,p)=>{y(a,E=>c(new Uint8Array(E)),p)})}return Promise.resolve().then(()=>De(a))}function be(a,c,p){return K(a).then(E=>WebAssembly.instantiate(E,c)).then(E=>E).then(p,E=>{A(`failed to asynchronously prepare wasm: ${E}`),pe(E)})}function ve(a,c){var p=ee;P||typeof WebAssembly.instantiateStreaming!="function"||Oe(p)||ce(p)||C||typeof fetch!="function"?be(p,a,c):fetch(p,{credentials:"same-origin"}).then(E=>WebAssembly.instantiateStreaming(E,a).then(c,function(k){return A(`wasm streaming compile failed: ${k}`),A("falling back to ArrayBuffer instantiation"),be(p,a,c)}))}var J,xe,ot=a=>{for(;0>0];case"i8":return M[a>>0];case"i16":return W[a>>1];case"i32":return z[a>>2];case"i64":pe("to do getValue(i64) use WASM_BIGINT");case"float":return Z[a>>2];case"double":return oe[a>>3];case"*":return V[a>>2];default:pe(`invalid type for getValue: ${c}`)}}function nt(a){var c="i32";switch(c.endsWith("*")&&(c="*"),c){case"i1":M[a>>0]=0;break;case"i8":M[a>>0]=0;break;case"i16":W[a>>1]=0;break;case"i32":z[a>>2]=0;break;case"i64":pe("to do setValue(i64) use WASM_BIGINT");case"float":Z[a>>2]=0;break;case"double":oe[a>>3]=0;break;case"*":V[a>>2]=0;break;default:pe(`invalid type for setValue: ${c}`)}}var bt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,ge=(a,c,p)=>{var E=c+p;for(p=c;a[p]&&!(p>=E);)++p;if(16k?E+=String.fromCharCode(k):(k-=65536,E+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else E+=String.fromCharCode(k)}return E},ft=(a,c)=>a?ge(B,a,c):"",er=(a,c)=>{for(var p=0,E=a.length-1;0<=E;E--){var k=a[E];k==="."?a.splice(E,1):k===".."?(a.splice(E,1),p++):p&&(a.splice(E,1),p--)}if(c)for(;p;p--)a.unshift("..");return a},kt=a=>{var c=a.charAt(0)==="/",p=a.substr(-1)==="/";return(a=er(a.split("/").filter(E=>!!E),!c).join("/"))||c||(a="."),a&&p&&(a+="/"),(c?"/":"")+a},Rt=a=>{var c=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);return a=c[0],c=c[1],!a&&!c?".":(c&&(c=c.substr(0,c.length-1)),a+c)},Q=a=>{if(a==="/")return"/";a=kt(a),a=a.replace(/\/$/,"");var c=a.lastIndexOf("/");return c===-1?a:a.substr(c+1)},le=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return p=>crypto.getRandomValues(p);if(C)try{var a=ou;if(a.randomFillSync)return p=>a.randomFillSync(p);var c=a.randomBytes;return p=>(p.set(c(p.byteLength)),p)}catch{}pe("initRandomDevice")},je=a=>(je=le())(a);function ke(){for(var a="",c=!1,p=arguments.length-1;-1<=p&&!c;p--){if(c=0<=p?arguments[p]:"/",typeof c!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!c)return"";a=c+"/"+a,c=c.charAt(0)==="/"}return a=er(a.split("/").filter(E=>!!E),!c).join("/"),(c?"/":"")+a||"."}var Xe=[],it=a=>{for(var c=0,p=0;p=E?c++:2047>=E?c+=2:55296<=E&&57343>=E?(c+=4,++p):c+=3}return c},pt=(a,c,p,E)=>{if(!(0=$){var he=a.charCodeAt(++O);$=65536+(($&1023)<<10)|he&1023}if(127>=$){if(p>=E)break;c[p++]=$}else{if(2047>=$){if(p+1>=E)break;c[p++]=192|$>>6}else{if(65535>=$){if(p+2>=E)break;c[p++]=224|$>>12}else{if(p+3>=E)break;c[p++]=240|$>>18,c[p++]=128|$>>12&63}c[p++]=128|$>>6&63}c[p++]=128|$&63}}return c[p]=0,p-k};function Bt(a,c){var p=Array(it(a)+1);return a=pt(a,p,0,p.length),c&&(p.length=a),p}var un=[];function cn(a,c){un[a]={input:[],output:[],Xa:c},Ss(a,En)}var En={open(a){var c=un[a.node.rdev];if(!c)throw new G(43);a.tty=c,a.seekable=!1},close(a){a.tty.Xa.fsync(a.tty)},fsync(a){a.tty.Xa.fsync(a.tty)},read(a,c,p,E){if(!a.tty||!a.tty.Xa.sb)throw new G(60);for(var k=0,O=0;Oe;function cS(e,t=uS,n){(Jv?"production":void 0)!=="production"&&n&&!Vp&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Vp=!0);const r=sS(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return aS(r),r}const qp=e=>{(Jv?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?$b(e):e,n=(r,o)=>cS(t,r,o);return Object.assign(n,t),n},dS=e=>e?qp(e):qp;var eg={exports:{}};const fS={},pS=Object.freeze(Object.defineProperty({__proto__:null,default:fS},Symbol.toStringTag,{value:"Module"})),ou=f1(pS);(function(e,t){var n=void 0,r=function(o){return n||(n=new Promise(function(i,l){var s=typeof o<"u"?o:{},d=s.onAbort;s.onAbort=function(a){l(new Error(a)),d&&d(a)},s.postRun=s.postRun||[],s.postRun.push(function(){i(s)}),e=void 0;var u;u||(u=typeof s<"u"?s:{}),u.onRuntimeInitialized=function(){function a(T,H){switch(typeof H){case"boolean":u1(T,H?1:0);break;case"number":l1(T,H);break;case"string":a1(T,H,-1,-1);break;case"object":if(H===null)Df(T);else if(H.length!=null){var ie=vl(H,hl);s1(T,ie,H.length,-1),wl(ie)}else bl(T,"Wrong API use : tried to return a value of an unknown type ("+H+").",-1);break;default:Df(T)}}function c(T,H){for(var ie=[],ye=0;ye>>0),T!=null){var H=this.filename,ie="/",ye=H;if(ie&&(ie=typeof ie=="string"?ie:Jo(ie),ye=H?kt(ie+"/"+H):ie),H=de(!0,!0),ye=ul(ye,(H!==void 0?H:438)&4095|32768,0),T){if(typeof T=="string"){ie=Array(T.length);for(var Ce=0,He=T.length;Ce(a=ce(a)?new URL(a):_.normalize(a),x.readFileSync(a,c?void 0:"utf8")),v=a=>(a=R(a,!0),a.buffer||(a=new Uint8Array(a)),a),y=(a,c,p,E=!0)=>{a=ce(a)?new URL(a):_.normalize(a),x.readFile(a,E?void 0:"utf8",(k,O)=>{k?p(k):c(E?O.buffer:O)})},!u.thisProgram&&1"[Emscripten Module object]"}else(f||w)&&(w?S=self.location.href:typeof document<"u"&&document.currentScript&&(S=document.currentScript.src),S=S.indexOf("blob:")!==0?S.substr(0,S.replace(/[?#].*/,"").lastIndexOf("/")+1):"",R=a=>{var c=new XMLHttpRequest;return c.open("GET",a,!1),c.send(null),c.responseText},w&&(v=a=>{var c=new XMLHttpRequest;return c.open("GET",a,!1),c.responseType="arraybuffer",c.send(null),new Uint8Array(c.response)}),y=(a,c,p)=>{var E=new XMLHttpRequest;E.open("GET",a,!0),E.responseType="arraybuffer",E.onload=()=>{E.status==200||E.status==0&&E.response?c(E.response):p()},E.onerror=p,E.send(null)});var N=u.print||console.log.bind(console),D=u.printErr||console.error.bind(console);Object.assign(u,m),m=null,u.thisProgram&&(h=u.thisProgram);var P;u.wasmBinary&&(P=u.wasmBinary),typeof WebAssembly!="object"&&pe("no native wasm support detected");var j,z=!1,F,q,W,$,V,Z,oe;function re(){var a=j.buffer;u.HEAP8=F=new Int8Array(a),u.HEAP16=W=new Int16Array(a),u.HEAPU8=q=new Uint8Array(a),u.HEAPU16=new Uint16Array(a),u.HEAP32=$=new Int32Array(a),u.HEAPU32=V=new Uint32Array(a),u.HEAPF32=Z=new Float32Array(a),u.HEAPF64=oe=new Float64Array(a)}var M=[],B=[],ne=[];function Y(){var a=u.preRun.shift();M.unshift(a)}var X=0,me=null;function pe(a){var c;throw(c=u.onAbort)==null||c.call(u,a),a="Aborted("+a+")",D(a),z=!0,new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.")}var Oe=a=>a.startsWith("data:application/octet-stream;base64,"),ce=a=>a.startsWith("file://"),ee;if(ee="sql-wasm.wasm",!Oe(ee)){var we=ee;ee=u.locateFile?u.locateFile(we,S):S+we}function De(a){if(a==ee&&P)return new Uint8Array(P);if(v)return v(a);throw"both async and sync fetching of the wasm failed"}function K(a){if(!P&&(f||w)){if(typeof fetch=="function"&&!ce(a))return fetch(a,{credentials:"same-origin"}).then(c=>{if(!c.ok)throw"failed to load wasm binary file at '"+a+"'";return c.arrayBuffer()}).catch(()=>De(a));if(y)return new Promise((c,p)=>{y(a,E=>c(new Uint8Array(E)),p)})}return Promise.resolve().then(()=>De(a))}function be(a,c,p){return K(a).then(E=>WebAssembly.instantiate(E,c)).then(E=>E).then(p,E=>{D(`failed to asynchronously prepare wasm: ${E}`),pe(E)})}function ve(a,c){var p=ee;P||typeof WebAssembly.instantiateStreaming!="function"||Oe(p)||ce(p)||C||typeof fetch!="function"?be(p,a,c):fetch(p,{credentials:"same-origin"}).then(E=>WebAssembly.instantiateStreaming(E,a).then(c,function(k){return D(`wasm streaming compile failed: ${k}`),D("falling back to ArrayBuffer instantiation"),be(p,a,c)}))}var J,xe,ot=a=>{for(;0>0];case"i8":return F[a>>0];case"i16":return W[a>>1];case"i32":return $[a>>2];case"i64":pe("to do getValue(i64) use WASM_BIGINT");case"float":return Z[a>>2];case"double":return oe[a>>3];case"*":return V[a>>2];default:pe(`invalid type for getValue: ${c}`)}}function nt(a){var c="i32";switch(c.endsWith("*")&&(c="*"),c){case"i1":F[a>>0]=0;break;case"i8":F[a>>0]=0;break;case"i16":W[a>>1]=0;break;case"i32":$[a>>2]=0;break;case"i64":pe("to do setValue(i64) use WASM_BIGINT");case"float":Z[a>>2]=0;break;case"double":oe[a>>3]=0;break;case"*":V[a>>2]=0;break;default:pe(`invalid type for setValue: ${c}`)}}var bt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,ge=(a,c,p)=>{var E=c+p;for(p=c;a[p]&&!(p>=E);)++p;if(16k?E+=String.fromCharCode(k):(k-=65536,E+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else E+=String.fromCharCode(k)}return E},ft=(a,c)=>a?ge(q,a,c):"",er=(a,c)=>{for(var p=0,E=a.length-1;0<=E;E--){var k=a[E];k==="."?a.splice(E,1):k===".."?(a.splice(E,1),p++):p&&(a.splice(E,1),p--)}if(c)for(;p;p--)a.unshift("..");return a},kt=a=>{var c=a.charAt(0)==="/",p=a.substr(-1)==="/";return(a=er(a.split("/").filter(E=>!!E),!c).join("/"))||c||(a="."),a&&p&&(a+="/"),(c?"/":"")+a},Rt=a=>{var c=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);return a=c[0],c=c[1],!a&&!c?".":(c&&(c=c.substr(0,c.length-1)),a+c)},Q=a=>{if(a==="/")return"/";a=kt(a),a=a.replace(/\/$/,"");var c=a.lastIndexOf("/");return c===-1?a:a.substr(c+1)},le=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return p=>crypto.getRandomValues(p);if(C)try{var a=ou;if(a.randomFillSync)return p=>a.randomFillSync(p);var c=a.randomBytes;return p=>(p.set(c(p.byteLength)),p)}catch{}pe("initRandomDevice")},je=a=>(je=le())(a);function ke(){for(var a="",c=!1,p=arguments.length-1;-1<=p&&!c;p--){if(c=0<=p?arguments[p]:"/",typeof c!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!c)return"";a=c+"/"+a,c=c.charAt(0)==="/"}return a=er(a.split("/").filter(E=>!!E),!c).join("/"),(c?"/":"")+a||"."}var Xe=[],it=a=>{for(var c=0,p=0;p=E?c++:2047>=E?c+=2:55296<=E&&57343>=E?(c+=4,++p):c+=3}return c},pt=(a,c,p,E)=>{if(!(0=L){var he=a.charCodeAt(++O);L=65536+((L&1023)<<10)|he&1023}if(127>=L){if(p>=E)break;c[p++]=L}else{if(2047>=L){if(p+1>=E)break;c[p++]=192|L>>6}else{if(65535>=L){if(p+2>=E)break;c[p++]=224|L>>12}else{if(p+3>=E)break;c[p++]=240|L>>18,c[p++]=128|L>>12&63}c[p++]=128|L>>6&63}c[p++]=128|L&63}}return c[p]=0,p-k};function Bt(a,c){var p=Array(it(a)+1);return a=pt(a,p,0,p.length),c&&(p.length=a),p}var un=[];function cn(a,c){un[a]={input:[],output:[],Xa:c},Ss(a,En)}var En={open(a){var c=un[a.node.rdev];if(!c)throw new G(43);a.tty=c,a.seekable=!1},close(a){a.tty.Xa.fsync(a.tty)},fsync(a){a.tty.Xa.fsync(a.tty)},read(a,c,p,E){if(!a.tty||!a.tty.Xa.sb)throw new G(60);for(var k=0,O=0;O=c||(c=Math.max(c,p*(1048576>p?2:1.125)>>>0),p!=0&&(c=Math.max(c,256)),p=a.Ia,a.Ia=new Uint8Array(c),0=a.node.Ma)return 0;if(a=Math.min(a.node.Ma-k,E),8c)throw new G(28);return c},lb(a,c,p){Ne(a.node,c+p),a.node.Ma=Math.max(a.node.Ma,c+p)},bb(a,c,p,E,k){if((a.node.mode&61440)!==32768)throw new G(43);if(a=a.node.Ia,k&2||a.buffer!==M.buffer){if((0{var p=0;return a&&(p|=365),c&&(p|=146),p},fe=null,ze={},Le=[],Nt=1,Pt=null,Cn=!0,G=null,to={};function It(a,c={}){if(a=ke(a),!a)return{path:"",node:null};if(c=Object.assign({qb:!0,kb:0},c),8!!$);for(var p=fe,E="/",k=0;k>>0)%Pt.length}function nf(a){var c=bs(a.parent.id,a.name);if(Pt[c]===a)Pt[c]=a.Wa;else for(c=Pt[c];c;){if(c.Wa===a){c.Wa=a.Wa;break}c=c.Wa}}function Pr(a,c){var p;if(p=(p=no(a,"x"))?p:a.Ga.lookup?0:2)throw new G(p,a);for(p=Pt[bs(a.id,c)];p;p=p.Wa){var E=p.name;if(p.parent.id===a.id&&E===c)return p}return a.Ga.lookup(a,c)}function rf(a,c,p,E){return a=new Ef(a,c,p,E),c=bs(a.parent.id,a.name),a.Wa=Pt[c],Pt[c]=a}function Jt(a){return(a&61440)===16384}function of(a){var c=["r","w","rw"][a&3];return a&512&&(c+="w"),c}function no(a,c){if(Cn)return 0;if(!c.includes("r")||a.mode&292){if(c.includes("w")&&!(a.mode&146)||c.includes("x")&&!(a.mode&73))return 2}else return 2;return 0}function lf(a,c){try{return Pr(a,c),20}catch{}return no(a,"wx")}function af(a,c,p){try{var E=Pr(a,c)}catch(k){return k.Ka}if(a=no(a,"wx"))return a;if(p){if(!Jt(E.mode))return 54;if(E===E.parent||Zo(E)==="/")return 10}else if(Jt(E.mode))return 31;return 0}function Aw(){for(var a=0;4096>=a;a++)if(!Le[a])return a;throw new G(33)}function Tt(a){if(a=Le[a],!a)throw new G(8);return a}function sf(a,c=-1){return ti||(ti=function(){this.$a={}},ti.prototype={},Object.defineProperties(ti.prototype,{object:{get(){return this.node},set(p){this.node=p}},flags:{get(){return this.$a.flags},set(p){this.$a.flags=p}},position:{get(){return this.$a.position},set(p){this.$a.position=p}}})),a=Object.assign(new ti,a),c==-1&&(c=Aw()),a.fd=c,Le[c]=a}var Dw={open(a){var c,p;a.Ha=ze[a.node.rdev].Ha,(p=(c=a.Ha).open)==null||p.call(c,a)},Ta(){throw new G(70)}};function Ss(a,c){ze[a]={Ha:c}}function uf(a,c){var p=c==="/",E=!c;if(p&&fe)throw new G(10);if(!p&&!E){var k=It(c,{qb:!1});if(c=k.path,k=k.node,k.Va)throw new G(10);if(!Jt(k.mode))throw new G(54)}c={type:a,Pb:{},tb:c,Cb:[]},a=a.Ra(c),a.Ra=c,c.root=a,p?fe=a:k&&(k.Va=c,k.Ra&&k.Ra.Cb.push(c))}function ul(a,c,p){var E=It(a,{parent:!0}).node;if(a=Q(a),!a||a==="."||a==="..")throw new G(28);var k=lf(E,a);if(k)throw new G(k);if(!E.Ga.ab)throw new G(63);return E.Ga.ab(E,a,c,p)}function _n(a,c){return ul(a,(c!==void 0?c:511)&1023|16384,0)}function cl(a,c,p){typeof p>"u"&&(p=c,c=438),ul(a,c|8192,p)}function Es(a,c){if(!ke(a))throw new G(44);var p=It(c,{parent:!0}).node;if(!p)throw new G(44);c=Q(c);var E=lf(p,c);if(E)throw new G(E);if(!p.Ga.symlink)throw new G(63);p.Ga.symlink(p,c,a)}function cf(a){var c=It(a,{parent:!0}).node;a=Q(a);var p=Pr(c,a),E=af(c,a,!0);if(E)throw new G(E);if(!c.Ga.rmdir)throw new G(63);if(p.Va)throw new G(10);c.Ga.rmdir(c,a),nf(p)}function df(a){var c=It(a,{parent:!0}).node;if(!c)throw new G(44);a=Q(a);var p=Pr(c,a),E=af(c,a,!1);if(E)throw new G(E);if(!c.Ga.unlink)throw new G(63);if(p.Va)throw new G(10);c.Ga.unlink(c,a),nf(p)}function ff(a){if(a=It(a).node,!a)throw new G(44);if(!a.Ga.readlink)throw new G(28);return ke(Zo(a.parent),a.Ga.readlink(a))}function Jo(a,c){if(a=It(a,{Sa:!c}).node,!a)throw new G(44);if(!a.Ga.Pa)throw new G(63);return a.Ga.Pa(a)}function pf(a){return Jo(a,!0)}function dl(a,c){if(a=typeof a=="string"?It(a,{Sa:!0}).node:a,!a.Ga.Oa)throw new G(63);a.Ga.Oa(a,{mode:c&4095|a.mode&-4096,timestamp:Date.now()})}function mf(a,c){if(0>c)throw new G(28);if(a=typeof a=="string"?It(a,{Sa:!0}).node:a,!a.Ga.Oa)throw new G(63);if(Jt(a.mode))throw new G(31);if((a.mode&61440)!==32768)throw new G(28);var p=no(a,"w");if(p)throw new G(p);a.Ga.Oa(a,{size:c,timestamp:Date.now()})}function ro(a,c,p){if(a==="")throw new G(44);if(typeof c=="string"){var E={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[c];if(typeof E>"u")throw Error(`Unknown file open mode: ${c}`);c=E}if(p=c&64?(typeof p>"u"?438:p)&4095|32768:0,typeof a=="object")var k=a;else{a=kt(a);try{k=It(a,{Sa:!(c&131072)}).node}catch{}}if(E=!1,c&64)if(k){if(c&128)throw new G(20)}else k=ul(a,p,0),E=!0;if(!k)throw new G(44);if((k.mode&61440)===8192&&(c&=-513),c&65536&&!Jt(k.mode))throw new G(54);if(!E&&(p=k?(k.mode&61440)===40960?32:Jt(k.mode)&&(of(c)!=="r"||c&512)?31:no(k,of(c)):44))throw new G(p);return c&512&&!E&&mf(k,0),c&=-131713,k=sf({node:k,path:Zo(k),flags:c,seekable:!0,position:0,Ha:k.Ha,Fb:[],error:!1}),k.Ha.open&&k.Ha.open(k),!u.logReadFiles||c&1||(_s||(_s={}),a in _s||(_s[a]=1)),k}function Cs(a){if(a.fd===null)throw new G(8);a.hb&&(a.hb=null);try{a.Ha.close&&a.Ha.close(a)}catch(c){throw c}finally{Le[a.fd]=null}a.fd=null}function hf(a,c,p){if(a.fd===null)throw new G(8);if(!a.seekable||!a.Ha.Ta)throw new G(70);if(p!=0&&p!=1&&p!=2)throw new G(28);a.position=a.Ha.Ta(a,c,p),a.Fb=[]}function vf(a,c,p,E,k){if(0>E||0>k)throw new G(28);if(a.fd===null)throw new G(8);if((a.flags&2097155)===1)throw new G(8);if(Jt(a.node.mode))throw new G(31);if(!a.Ha.read)throw new G(28);var O=typeof k<"u";if(!O)k=a.position;else if(!a.seekable)throw new G(70);return c=a.Ha.read(a,c,p,E,k),O||(a.position+=c),c}function gf(a,c,p,E,k){if(0>E||0>k)throw new G(28);if(a.fd===null)throw new G(8);if(!(a.flags&2097155))throw new G(8);if(Jt(a.node.mode))throw new G(31);if(!a.Ha.write)throw new G(28);a.seekable&&a.flags&1024&&hf(a,0,2);var O=typeof k<"u";if(!O)k=a.position;else if(!a.seekable)throw new G(70);return c=a.Ha.write(a,c,p,E,k,void 0),O||(a.position+=c),c}function Ow(a){var c,p=ro(a,p||0);a=Jo(a).size;var E=new Uint8Array(a);return vf(p,E,0,a,0),c=E,Cs(p),c}function yf(){G||(G=function(a,c){this.name="ErrnoError",this.node=c,this.Eb=function(p){this.Ka=p},this.Eb(a),this.message="FS error"},G.prototype=Error(),G.prototype.constructor=G,[44].forEach(a=>{to[a]=new G(a),to[a].stack=""}))}var wf;function ei(a,c,p){a=kt("/dev/"+a);var E=de(!!c,!!p);xf||(xf=64);var k=xf++<<8|0;Ss(k,{open(O){O.seekable=!1},close(){var O;(O=p==null?void 0:p.buffer)!=null&&O.length&&p(10)},read(O,$,he,Pe){for(var Ee=0,at=0;at>2]=E.dev,z[p+4>>2]=E.mode,V[p+8>>2]=E.nlink,z[p+12>>2]=E.uid,z[p+16>>2]=E.gid,z[p+20>>2]=E.rdev,xe=[E.size>>>0,(J=E.size,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],z[p+24>>2]=xe[0],z[p+28>>2]=xe[1],z[p+32>>2]=4096,z[p+36>>2]=E.blocks,a=E.atime.getTime(),c=E.mtime.getTime();var k=E.ctime.getTime();return xe=[Math.floor(a/1e3)>>>0,(J=Math.floor(a/1e3),1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],z[p+40>>2]=xe[0],z[p+44>>2]=xe[1],V[p+48>>2]=a%1e3*1e3,xe=[Math.floor(c/1e3)>>>0,(J=Math.floor(c/1e3),1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],z[p+56>>2]=xe[0],z[p+60>>2]=xe[1],V[p+64>>2]=c%1e3*1e3,xe=[Math.floor(k/1e3)>>>0,(J=Math.floor(k/1e3),1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],z[p+72>>2]=xe[0],z[p+76>>2]=xe[1],V[p+80>>2]=k%1e3*1e3,xe=[E.ino>>>0,(J=E.ino,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],z[p+88>>2]=xe[0],z[p+92>>2]=xe[1],0}var pl=void 0;function ml(){var a=z[+pl>>2];return pl+=4,a}var ni=(a,c)=>c+2097152>>>0<4194305-!!a?(a>>>0)+4294967296*c:NaN,jw=[0,31,60,91,121,152,182,213,244,274,305,335],Mw=[0,31,59,90,120,151,181,212,243,273,304,334],bf=a=>{var c=it(a)+1,p=yl(c);return p&&pt(a,B,p,c),p},ks={},Sf=()=>{if(!Rs){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:h||"./this.program"},c;for(c in ks)ks[c]===void 0?delete a[c]:a[c]=ks[c];var p=[];for(c in a)p.push(`${c}=${a[c]}`);Rs=p}return Rs},Rs,Ns=a=>{var c=it(a)+1,p=tr(c);return pt(a,B,p,c),p},Iw=(a,c,p,E)=>{var k={string:Ee=>{var at=0;return Ee!=null&&Ee!==0&&(at=Ns(Ee)),at},array:Ee=>{var at=tr(Ee.length);return M.set(Ee,at),at}};a=u["_"+a];var O=[],$=0;if(E)for(var he=0;he(c=c==1?tr(a.length):yl(a.length),a.subarray||a.slice||(a=new Uint8Array(a)),B.set(a,c),c),Ar,Ps=[],In,oo=a=>{Ar.delete(In.get(a)),In.set(a,null),Ps.push(a)},gl=(a,c)=>{if(!Ar){Ar=new WeakMap;var p=In.length;if(Ar)for(var E=0;E<0+p;E++){var k=In.get(E);k&&Ar.set(k,E)}}if(p=Ar.get(a)||0)return p;if(Ps.length)p=Ps.pop();else{try{In.grow(1)}catch(he){throw he instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":he}p=In.length-1}try{In.set(p,a)}catch(he){if(!(he instanceof TypeError))throw he;if(typeof WebAssembly.Function=="function"){E=WebAssembly.Function,k={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var O={parameters:[],results:c[0]=="v"?[]:[k[c[0]]]},$=1;$$?E.push($):E.push($%128|128,$>>7),$=0;$k?c.push(k):c.push(k%128|128,k>>7),c.push.apply(c,E),c.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),c=new WebAssembly.Module(new Uint8Array(c)),c=new WebAssembly.Instance(c,{e:{f:a}}).exports.f}In.set(p,c)}return Ar.set(a,p),p};function Ef(a,c,p,E){a||(a=this),this.parent=a,this.Ra=a.Ra,this.Va=null,this.id=Nt++,this.name=c,this.mode=p,this.Ga={},this.Ha={},this.rdev=E}Object.defineProperties(Ef.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(a){a?this.mode|=146:this.mode&=-147}}}),yf(),Pt=Array(4096),uf(L,"/"),_n("/tmp"),_n("/home"),_n("/home/web_user"),function(){_n("/dev"),Ss(259,{read:()=>0,write:(E,k,O,$)=>$}),cl("/dev/null",259),cn(1280,ae),cn(1536,ue),cl("/dev/tty",1280),cl("/dev/tty1",1536);var a=new Uint8Array(1024),c=0,p=()=>(c===0&&(c=je(a).byteLength),a[--c]);ei("random",p),ei("urandom",p),_n("/dev/shm"),_n("/dev/shm/tmp")}(),function(){_n("/proc");var a=_n("/proc/self");_n("/proc/self/fd"),uf({Ra(){var c=rf(a,"fd",16895,73);return c.Ga={lookup(p,E){var k=Tt(+E);return p={parent:null,Ra:{tb:"fake"},Ga:{readlink:()=>k.path}},p.parent=p}},c}},"/proc/self/fd")}();var Lw={a:(a,c,p,E)=>{pe(`Assertion failed: ${a?ge(B,a):""}, at: `+[c?c?ge(B,c):"":"unknown filename",p,E?E?ge(B,E):"":"unknown function"])},h:function(a,c){try{return a=a?ge(B,a):"",dl(a,c),0}catch(p){if(typeof We>"u"||p.name!=="ErrnoError")throw p;return-p.Ka}},H:function(a,c,p){try{if(c=c?ge(B,c):"",c=Tr(a,c),p&-8)return-28;var E=It(c,{Sa:!0}).node;return E?(a="",p&4&&(a+="r"),p&2&&(a+="w"),p&1&&(a+="x"),a&&no(E,a)?-2:0):-44}catch(k){if(typeof We>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},i:function(a,c){try{var p=Tt(a);return dl(p.node,c),0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},g:function(a){try{var c=Tt(a).node,p=typeof c=="string"?It(c,{Sa:!0}).node:c;if(!p.Ga.Oa)throw new G(63);return p.Ga.Oa(p,{timestamp:Date.now()}),0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},b:function(a,c,p){pl=p;try{var E=Tt(a);switch(c){case 0:var k=ml();if(0>k)return-28;for(;Le[k];)k++;return sf(E,k).fd;case 1:case 2:return 0;case 3:return E.flags;case 4:return k=ml(),E.flags|=k,0;case 5:return k=ml(),W[k+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return z[Cf()>>2]=28,-1;default:return-28}}catch(O){if(typeof We>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},f:function(a,c){try{var p=Tt(a);return fl(Jo,p.path,c)}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},n:function(a,c,p){c=ni(c,p);try{if(isNaN(c))return 61;var E=Tt(a);if(!(E.flags&2097155))throw new G(28);return mf(E.node,c),0}catch(k){if(typeof We>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},C:function(a,c){try{if(c===0)return-28;var p=it("/")+1;return c"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},F:function(a,c){try{return a=a?ge(B,a):"",fl(pf,a,c)}catch(p){if(typeof We>"u"||p.name!=="ErrnoError")throw p;return-p.Ka}},z:function(a,c,p){try{return c=c?ge(B,c):"",c=Tr(a,c),c=kt(c),c[c.length-1]==="/"&&(c=c.substr(0,c.length-1)),_n(c,p),0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},E:function(a,c,p,E){try{c=c?ge(B,c):"";var k=E&256;return c=Tr(a,c,E&4096),fl(k?pf:Jo,c,p)}catch(O){if(typeof We>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},y:function(a,c,p,E){pl=E;try{c=c?ge(B,c):"",c=Tr(a,c);var k=E?ml():0;return ro(c,p,k).fd}catch(O){if(typeof We>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},w:function(a,c,p,E){try{if(c=c?ge(B,c):"",c=Tr(a,c),0>=E)return-28;var k=ff(c),O=Math.min(E,it(k)),$=M[p+O];return pt(k,B,p,E+1),M[p+O]=$,O}catch(he){if(typeof We>"u"||he.name!=="ErrnoError")throw he;return-he.Ka}},v:function(a){try{return a=a?ge(B,a):"",cf(a),0}catch(c){if(typeof We>"u"||c.name!=="ErrnoError")throw c;return-c.Ka}},G:function(a,c){try{return a=a?ge(B,a):"",fl(Jo,a,c)}catch(p){if(typeof We>"u"||p.name!=="ErrnoError")throw p;return-p.Ka}},r:function(a,c,p){try{return c=c?ge(B,c):"",c=Tr(a,c),p===0?df(c):p===512?cf(c):pe("Invalid flags passed to unlinkat"),0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},q:function(a,c,p){try{if(c=c?ge(B,c):"",c=Tr(a,c,!0),p){var E=V[p>>2]+4294967296*z[p+4>>2],k=z[p+8>>2];O=1e3*E+k/1e6,p+=16,E=V[p>>2]+4294967296*z[p+4>>2],k=z[p+8>>2],$=1e3*E+k/1e6}else var O=Date.now(),$=O;a=O;var he=It(c,{Sa:!0}).node;return he.Ga.Oa(he,{timestamp:Math.max(a,$)}),0}catch(Pe){if(typeof We>"u"||Pe.name!=="ErrnoError")throw Pe;return-Pe.Ka}},l:function(a,c,p){a=new Date(1e3*ni(a,c)),z[p>>2]=a.getSeconds(),z[p+4>>2]=a.getMinutes(),z[p+8>>2]=a.getHours(),z[p+12>>2]=a.getDate(),z[p+16>>2]=a.getMonth(),z[p+20>>2]=a.getFullYear()-1900,z[p+24>>2]=a.getDay(),c=a.getFullYear(),z[p+28>>2]=(c%4!==0||c%100===0&&c%400!==0?Mw:jw)[a.getMonth()]+a.getDate()-1|0,z[p+36>>2]=-(60*a.getTimezoneOffset()),c=new Date(a.getFullYear(),6,1).getTimezoneOffset();var E=new Date(a.getFullYear(),0,1).getTimezoneOffset();z[p+32>>2]=(c!=E&&a.getTimezoneOffset()==Math.min(E,c))|0},j:function(a,c,p,E,k,O,$,he){k=ni(k,O);try{if(isNaN(k))return 61;var Pe=Tt(E);if(c&2&&!(p&2)&&(Pe.flags&2097155)!==2)throw new G(2);if((Pe.flags&2097155)===1)throw new G(2);if(!Pe.Ha.bb)throw new G(43);var Ee=Pe.Ha.bb(Pe,a,k,c,p),at=Ee.Db;return z[$>>2]=Ee.ub,V[he>>2]=at,0}catch(mt){if(typeof We>"u"||mt.name!=="ErrnoError")throw mt;return-mt.Ka}},k:function(a,c,p,E,k,O,$){O=ni(O,$);try{if(isNaN(O))return 61;var he=Tt(k);if(p&2){if((he.node.mode&61440)!==32768)throw new G(43);if(!(E&2)){var Pe=B.slice(a,a+c);he.Ha.cb&&he.Ha.cb(he,Pe,O,c,E)}}}catch(Ee){if(typeof We>"u"||Ee.name!=="ErrnoError")throw Ee;return-Ee.Ka}},s:(a,c,p)=>{function E(Pe){return(Pe=Pe.toTimeString().match(/\(([A-Za-z ]+)\)$/))?Pe[1]:"GMT"}var k=new Date().getFullYear(),O=new Date(k,0,1),$=new Date(k,6,1);k=O.getTimezoneOffset();var he=$.getTimezoneOffset();V[a>>2]=60*Math.max(k,he),z[c>>2]=+(k!=he),a=E(O),c=E($),a=bf(a),c=bf(c),he>2]=a,V[p+4>>2]=c):(V[p>>2]=c,V[p+4>>2]=a)},d:()=>Date.now(),t:()=>2147483648,c:()=>performance.now(),o:a=>{var c=B.length;if(a>>>=0,2147483648=p;p*=2){var E=c*(1+.2/p);E=Math.min(E,a+100663296);var k=Math;E=Math.max(a,E);e:{k=(k.min.call(k,2147483648,E+(65536-E%65536)%65536)-j.buffer.byteLength+65535)/65536;try{j.grow(k),re();var O=1;break e}catch{}O=void 0}if(O)return!0}return!1},A:(a,c)=>{var p=0;return Sf().forEach((E,k)=>{var O=c+p;for(k=V[a+4*k>>2]=O,O=0;O>0]=E.charCodeAt(O);M[k>>0]=0,p+=E.length+1}),0},B:(a,c)=>{var p=Sf();V[a>>2]=p.length;var E=0;return p.forEach(k=>E+=k.length+1),V[c>>2]=E,0},e:function(a){try{var c=Tt(a);return Cs(c),0}catch(p){if(typeof We>"u"||p.name!=="ErrnoError")throw p;return p.Ka}},p:function(a,c){try{var p=Tt(a);return M[c>>0]=p.tty?2:Jt(p.mode)?3:(p.mode&61440)===40960?7:4,W[c+2>>1]=0,xe=[0,(J=0,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],z[c+8>>2]=xe[0],z[c+12>>2]=xe[1],xe=[0,(J=0,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],z[c+16>>2]=xe[0],z[c+20>>2]=xe[1],0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return E.Ka}},x:function(a,c,p,E){try{e:{var k=Tt(a);a=c;for(var O,$=c=0;$>2],Pe=V[a+4>>2];a+=8;var Ee=vf(k,M,he,Pe,O);if(0>Ee){var at=-1;break e}if(c+=Ee,Ee>2]=at,0}catch(mt){if(typeof We>"u"||mt.name!=="ErrnoError")throw mt;return mt.Ka}},m:function(a,c,p,E,k){c=ni(c,p);try{if(isNaN(c))return 61;var O=Tt(a);return hf(O,c,E),xe=[O.position>>>0,(J=O.position,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],z[k>>2]=xe[0],z[k+4>>2]=xe[1],O.hb&&c===0&&E===0&&(O.hb=null),0}catch($){if(typeof We>"u"||$.name!=="ErrnoError")throw $;return $.Ka}},D:function(a){var p;try{var c=Tt(a);return(p=c.Ha)!=null&&p.fsync?c.Ha.fsync(c):0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return E.Ka}},u:function(a,c,p,E){try{e:{var k=Tt(a);a=c;for(var O,$=c=0;$>2],Pe=V[a+4>>2];a+=8;var Ee=gf(k,M,he,Pe,O);if(0>Ee){var at=-1;break e}c+=Ee,typeof O<"u"&&(O+=Ee)}at=c}return V[E>>2]=at,0}catch(mt){if(typeof We>"u"||mt.name!=="ErrnoError")throw mt;return mt.Ka}}},se=function(){var p;function a(E){var k;return se=E.exports,j=se.I,re(),In=se.Aa,U.unshift(se.J),X--,(k=u.monitorRunDependencies)==null||k.call(u,X),X==0&&me&&(E=me,me=null,E()),se}var c={a:Lw};if(X++,(p=u.monitorRunDependencies)==null||p.call(u,X),u.instantiateWasm)try{return u.instantiateWasm(c,a)}catch(E){return A(`Module.instantiateWasm callback failed with error: ${E}`),!1}return ve(c,function(E){a(E.instance)}),{}}();u._sqlite3_free=a=>(u._sqlite3_free=se.K)(a),u._sqlite3_value_text=a=>(u._sqlite3_value_text=se.L)(a);var Cf=()=>(Cf=se.M)();u._sqlite3_prepare_v2=(a,c,p,E,k)=>(u._sqlite3_prepare_v2=se.N)(a,c,p,E,k),u._sqlite3_step=a=>(u._sqlite3_step=se.O)(a),u._sqlite3_reset=a=>(u._sqlite3_reset=se.P)(a),u._sqlite3_exec=(a,c,p,E,k)=>(u._sqlite3_exec=se.Q)(a,c,p,E,k),u._sqlite3_finalize=a=>(u._sqlite3_finalize=se.R)(a),u._sqlite3_column_name=(a,c)=>(u._sqlite3_column_name=se.S)(a,c),u._sqlite3_column_text=(a,c)=>(u._sqlite3_column_text=se.T)(a,c),u._sqlite3_column_type=(a,c)=>(u._sqlite3_column_type=se.U)(a,c),u._sqlite3_errmsg=a=>(u._sqlite3_errmsg=se.V)(a),u._sqlite3_clear_bindings=a=>(u._sqlite3_clear_bindings=se.W)(a),u._sqlite3_value_blob=a=>(u._sqlite3_value_blob=se.X)(a),u._sqlite3_value_bytes=a=>(u._sqlite3_value_bytes=se.Y)(a),u._sqlite3_value_double=a=>(u._sqlite3_value_double=se.Z)(a),u._sqlite3_value_int=a=>(u._sqlite3_value_int=se._)(a),u._sqlite3_value_type=a=>(u._sqlite3_value_type=se.$)(a),u._sqlite3_result_blob=(a,c,p,E)=>(u._sqlite3_result_blob=se.aa)(a,c,p,E),u._sqlite3_result_double=(a,c)=>(u._sqlite3_result_double=se.ba)(a,c),u._sqlite3_result_error=(a,c,p)=>(u._sqlite3_result_error=se.ca)(a,c,p),u._sqlite3_result_int=(a,c)=>(u._sqlite3_result_int=se.da)(a,c),u._sqlite3_result_int64=(a,c,p)=>(u._sqlite3_result_int64=se.ea)(a,c,p),u._sqlite3_result_null=a=>(u._sqlite3_result_null=se.fa)(a),u._sqlite3_result_text=(a,c,p,E)=>(u._sqlite3_result_text=se.ga)(a,c,p,E),u._sqlite3_aggregate_context=(a,c)=>(u._sqlite3_aggregate_context=se.ha)(a,c),u._sqlite3_column_count=a=>(u._sqlite3_column_count=se.ia)(a),u._sqlite3_data_count=a=>(u._sqlite3_data_count=se.ja)(a),u._sqlite3_column_blob=(a,c)=>(u._sqlite3_column_blob=se.ka)(a,c),u._sqlite3_column_bytes=(a,c)=>(u._sqlite3_column_bytes=se.la)(a,c),u._sqlite3_column_double=(a,c)=>(u._sqlite3_column_double=se.ma)(a,c),u._sqlite3_bind_blob=(a,c,p,E,k)=>(u._sqlite3_bind_blob=se.na)(a,c,p,E,k),u._sqlite3_bind_double=(a,c,p)=>(u._sqlite3_bind_double=se.oa)(a,c,p),u._sqlite3_bind_int=(a,c,p)=>(u._sqlite3_bind_int=se.pa)(a,c,p),u._sqlite3_bind_text=(a,c,p,E,k)=>(u._sqlite3_bind_text=se.qa)(a,c,p,E,k),u._sqlite3_bind_parameter_index=(a,c)=>(u._sqlite3_bind_parameter_index=se.ra)(a,c),u._sqlite3_sql=a=>(u._sqlite3_sql=se.sa)(a),u._sqlite3_normalized_sql=a=>(u._sqlite3_normalized_sql=se.ta)(a),u._sqlite3_changes=a=>(u._sqlite3_changes=se.ua)(a),u._sqlite3_close_v2=a=>(u._sqlite3_close_v2=se.va)(a),u._sqlite3_create_function_v2=(a,c,p,E,k,O,$,he,Pe)=>(u._sqlite3_create_function_v2=se.wa)(a,c,p,E,k,O,$,he,Pe),u._sqlite3_open=(a,c)=>(u._sqlite3_open=se.xa)(a,c);var yl=u._malloc=a=>(yl=u._malloc=se.ya)(a),wl=u._free=a=>(wl=u._free=se.za)(a);u._RegisterExtensionFunctions=a=>(u._RegisterExtensionFunctions=se.Ba)(a);var _f=(a,c)=>(_f=se.Ca)(a,c),ri=()=>(ri=se.Da)(),oi=a=>(oi=se.Ea)(a),tr=a=>(tr=se.Fa)(a);u.stackAlloc=tr,u.stackSave=ri,u.stackRestore=oi,u.cwrap=(a,c,p,E)=>{var k=!p||p.every(O=>O==="number"||O==="boolean");return c!=="string"&&k&&!E?u["_"+a]:function(){return Iw(a,c,p,arguments)}},u.addFunction=gl,u.removeFunction=oo,u.UTF8ToString=ft,u.ALLOC_NORMAL=hl,u.allocate=vl,u.allocateUTF8OnStack=Ns;var xl;me=function a(){xl||kf(),xl||(me=a)};function kf(){function a(){if(!xl&&(xl=!0,u.calledRun=!0,!F)){if(u.noFSInit||wf||(wf=!0,yf(),u.stdin=u.stdin,u.stdout=u.stdout,u.stderr=u.stderr,u.stdin?ei("stdin",u.stdin):Es("/dev/tty","/dev/stdin"),u.stdout?ei("stdout",null,u.stdout):Es("/dev/tty","/dev/stdout"),u.stderr?ei("stderr",null,u.stderr):Es("/dev/tty1","/dev/stderr"),ro("/dev/stdin",0),ro("/dev/stdout",1),ro("/dev/stderr",1)),Cn=!1,ot(U),u.onRuntimeInitialized&&u.onRuntimeInitialized(),u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;){var c=u.postRun.shift();ne.unshift(c)}ot(ne)}}if(!(0"u"?m={autoBom:!1}:typeof m!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function r(u,m,h){var f=new XMLHttpRequest;f.open("GET",u),f.responseType="blob",f.onload=function(){d(f.response,m,h)},f.onerror=function(){console.error("could not download file")},f.send()}function o(u){var m=new XMLHttpRequest;m.open("HEAD",u,!1);try{m.send()}catch{}return 200<=m.status&&299>=m.status}function i(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var m=document.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(m)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ii=="object"&&ii.global===ii?ii:void 0,s=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),d=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(u,m,h){var f=l.URL||l.webkitURL,w=document.createElement("a");m=m||u.name||"download",w.download=m,w.rel="noopener",typeof u=="string"?(w.href=u,w.origin===location.origin?i(w):o(w.href)?r(u,m,h):i(w,w.target="_blank")):(w.href=f.createObjectURL(u),setTimeout(function(){f.revokeObjectURL(w.href)},4e4),setTimeout(function(){i(w)},0))}:"msSaveOrOpenBlob"in navigator?function(u,m,h){if(m=m||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,h),m);else if(o(u))r(u,m,h);else{var f=document.createElement("a");f.href=u,f.target="_blank",setTimeout(function(){i(f)})}}:function(u,m,h,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof u=="string")return r(u,m,h);var w=u.type==="application/octet-stream",C=/constructor/i.test(l.HTMLElement)||l.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||w&&C||s)&&typeof FileReader<"u"){var R=new FileReader;R.onloadend=function(){var x=R.result;x=S?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=x:location=x,f=null},R.readAsDataURL(u)}else{var y=l.URL||l.webkitURL,g=y.createObjectURL(u);f?f.location=g:location.href=g,f=null,setTimeout(function(){y.revokeObjectURL(g)},4e4)}});l.saveAs=d.saveAs=d,e.exports=d})})(tg);var ng=tg.exports;const vS=async e=>{try{const t=await e.arrayBuffer(),n=await hS({locateFile:r=>`https://sql.js.org/dist/${r}`});return new n.Database(new Uint8Array(t))}catch(t){throw console.error("Failed to load database:",t),t}},Nd=e=>{var t;try{return((t=e.exec("SELECT name FROM sqlite_master WHERE type='table';")[0])==null?void 0:t.values.map(r=>r[0]))||[]}catch(n){return console.error("Failed to get table names:",n),[]}},gS=async(e,t)=>{try{const r=e.exec(`PRAGMA table_info("${t}")`)[0].values.reduce((i,l)=>(i[l[1]]={type:l[2],isPrimaryKey:l[5]===1,isForeignKey:!1},i),{}),o=e.exec(`PRAGMA foreign_key_list("${t}")`);return o.length>0&&o[0].values.forEach(i=>{const l=i[3];r[l]&&(r[l].isForeignKey=!0)}),r}catch(n){throw console.error(`Failed to get schema for table "${t}":`,n),n}};function Ia(e){if(e.length>0){const t=e[0].columns;return{data:e[0].values.map(r=>t.reduce((o,i,l)=>(o[i]=r[l],o),{})),columns:t}}return{data:[],columns:[]}}const yS=e=>{try{return e.export()}catch(t){throw console.error("Failed to export database:",t),t}},wS=e=>{const t=yS(e),n=new Blob([t],{type:"application/octet-stream"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download="database.sqlite",o.click(),URL.revokeObjectURL(r)},rg=(e,t)=>{const n=e.join(","),r=t.map(o=>e.map(i=>`"${o[i]}"`).join(","));return[n,...r].join(` -`)},xS=(e,t)=>{const r=Nd(e)[t];try{const o=e.exec(`SELECT * FROM ${r}`);if(o.length===0)throw new Error(`Table ${r} is empty or does not exist.`);const{data:i,columns:l}=Ia(o),s=rg(l,i),d=new Blob([s],{type:"text/csv;charset=utf-8;"});ng.saveAs(d,`${r}.csv`)}catch(o){throw console.error(`Failed to export table "${r}" as CSV:`,o),o}},bS=e=>{Nd(e).forEach(n=>{try{const r=e.exec(`SELECT * FROM ${n}`);if(r.length===0)throw new Error(`Table ${n} is empty or does not exist.`);const{data:o,columns:i}=Ia(r),l=rg(i,o),s=new Blob([l],{type:"text/csv;charset=utf-8;"});ng.saveAs(s,`${n}.csv`)}catch(r){console.error(`Failed to export table "${n}" as CSV:`,r)}})},ol=dS((e,t)=>({db:null,isLoading:!1,queryError:null,tables:[],selectedTable:"0",tableSchemas:{},rowPerPageOrAuto:"auto",isCustomQuery:!1,loadDatabase:async n=>{e({isLoading:!0,queryError:null});try{const r=await vS(n),o=Nd(r),i=await Promise.all(o.map(async d=>{const u=r.exec(`SELECT COUNT(*) FROM "${d}"`),m=parseInt(u[0].values[0][0],10),h=await gS(r,d);return{name:d,count:m,schema:h}})),l=i.map(({name:d,count:u})=>({name:d,count:u})),s=i.reduce((d,{name:u,schema:m})=>(d[u]=m,d),{});e({db:r,tables:l,tableSchemas:s,isLoading:!1})}catch(r){console.error("Failed to load database:",r),e({isLoading:!1,queryError:"Failed to load database"})}},query:n=>{const{db:r}=t();return r?r.exec(n):(console.warn("Database is not loaded."),[])},setQueryError:n=>e({queryError:n}),setTables:n=>e({tables:n}),setSelectedTable:n=>e({selectedTable:n}),setTableSchemas:n=>e({tableSchemas:n}),setRowPerPageOrAuto:n=>e({rowPerPageOrAuto:n}),setIsCustomQuery:n=>e({isCustomQuery:n})}));function og(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts(i)))==null?void 0:l.classGroupId}const Gp=/^\[(.+)\]$/;function CS(e){if(Gp.test(e)){const t=Gp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function _S(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return RS(Object.entries(e.classGroups),n).forEach(([i,l])=>{dc(l,r,i,t)}),r}function dc(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Kp(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(kS(o)){dc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{dc(l,Kp(t,i),n,r)})})}function Kp(e,t){let n=e;return t.split(Pd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function kS(e){return e.isThemeGetter}function RS(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[n,o]}):e}function NS(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const lg="!";function PS(e){const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length;function l(s){const d=[];let u=0,m=0,h;for(let R=0;Rm?h-m:void 0;return{modifiers:d,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:S}}return n?function(d){return n({className:d,parseClassName:l})}:l}function TS(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function AS(e){return{cache:NS(e.cacheSize),parseClassName:PS(e),...ES(e)}}const DS=/\s+/;function OS(e,t){const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(DS).map(l=>{const{modifiers:s,hasImportantModifier:d,baseClassName:u,maybePostfixModifierPosition:m}=n(l);let h=!!m,f=r(h?u.substring(0,m):u);if(!f){if(!h)return{isTailwindClass:!1,originalClassName:l};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:l};h=!1}const w=TS(s).join(":");return{isTailwindClass:!0,modifierId:d?w+lg:w,classGroupId:f,originalClassName:l,hasPostfixModifier:h}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:d,hasPostfixModifier:u}=l,m=s+d;return i.has(m)?!1:(i.add(m),o(d,u).forEach(h=>i.add(s+h)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function jS(){let e=0,t,n,r="";for(;eh(m),e());return n=AS(u),r=n.cache.get,o=n.cache.set,i=s,s(d)}function s(d){const u=r(d);if(u)return u;const m=OS(d,n);return o(d,m),m}return function(){return i(jS.apply(null,arguments))}}function Ve(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const sg=/^\[(?:([a-z-]+):)?(.+)\]$/i,IS=/^\d+\/\d+$/,LS=new Set(["px","full","screen"]),FS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$S=/\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$/,zS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,HS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,BS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Ln(e){return zr(e)||LS.has(e)||IS.test(e)}function rr(e){return Wo(e,"length",YS)}function zr(e){return!!e&&!Number.isNaN(Number(e))}function $l(e){return Wo(e,"number",zr)}function mi(e){return!!e&&Number.isInteger(Number(e))}function US(e){return e.endsWith("%")&&zr(e.slice(0,-1))}function Se(e){return sg.test(e)}function or(e){return FS.test(e)}const WS=new Set(["length","size","percentage"]);function VS(e){return Wo(e,WS,ug)}function qS(e){return Wo(e,"position",ug)}const GS=new Set(["image","url"]);function KS(e){return Wo(e,GS,ZS)}function QS(e){return Wo(e,"",XS)}function hi(){return!0}function Wo(e,t,n){const r=sg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function YS(e){return $S.test(e)&&!zS.test(e)}function ug(){return!1}function XS(e){return HS.test(e)}function ZS(e){return BS.test(e)}function JS(){const e=Ve("colors"),t=Ve("spacing"),n=Ve("blur"),r=Ve("brightness"),o=Ve("borderColor"),i=Ve("borderRadius"),l=Ve("borderSpacing"),s=Ve("borderWidth"),d=Ve("contrast"),u=Ve("grayscale"),m=Ve("hueRotate"),h=Ve("invert"),f=Ve("gap"),w=Ve("gradientColorStops"),C=Ve("gradientColorStopPositions"),S=Ve("inset"),R=Ve("margin"),y=Ve("opacity"),g=Ve("padding"),x=Ve("saturate"),_=Ve("scale"),N=Ve("sepia"),A=Ve("skew"),P=Ve("space"),j=Ve("translate"),F=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Se,t],W=()=>[Se,t],z=()=>["",Ln,rr],V=()=>["auto",zr,Se],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",Se],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[zr,$l],X=()=>[zr,Se];return{cacheSize:500,separator:":",theme:{colors:[hi],spacing:[Ln,rr],blur:["none","",or,Se],brightness:Y(),borderColor:[e],borderRadius:["none","","full",or,Se],borderSpacing:W(),borderWidth:z(),contrast:Y(),grayscale:U(),hueRotate:X(),invert:U(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[US,rr],inset:B(),margin:B(),opacity:Y(),padding:W(),saturate:Y(),scale:Y(),sepia:U(),skew:X(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",Se]}],container:["container"],columns:[{columns:[or]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),Se]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mi,Se]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Se]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",mi,Se]}],"grid-cols":[{"grid-cols":[hi]}],"col-start-end":[{col:["auto",{span:["full",mi,Se]},Se]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[hi]}],"row-start-end":[{row:["auto",{span:[mi,Se]},Se]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Se]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Se]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Se,t]}],"min-w":[{"min-w":[Se,t,"min","max","fit"]}],"max-w":[{"max-w":[Se,t,"none","full","min","max","fit","prose",{screen:[or]},or]}],h:[{h:[Se,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Se,t,"auto","min","max","fit"]}],"font-size":[{text:["base",or,rr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$l]}],"font-family":[{font:[hi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Se]}],"line-clamp":[{"line-clamp":["none",zr,$l]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ln,Se]}],"list-image":[{"list-image":["none",Se]}],"list-style-type":[{list:["none","disc","decimal",Se]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ln,rr]}],"underline-offset":[{"underline-offset":["auto",Ln,Se]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se]}],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",Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),qS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",VS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},KS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...oe(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:oe()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...oe()]}],"outline-offset":[{"outline-offset":[Ln,Se]}],"outline-w":[{outline:[Ln,rr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ln,rr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",or,QS]}],"shadow-color":[{shadow:[hi]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",or,Se]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Se]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",Se]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",Se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[mi,Se]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Se]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Se]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"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"]}],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",Se]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ln,rr,$l]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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"]}}}const eE=MS(JS);function Re(...e){return eE(SS(e))}const Td=v.forwardRef(({className:e,type:t,...n},r)=>b.jsx("input",{type:t,className:Re("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Td.displayName="Input";function tE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function cg(...e){return t=>e.forEach(n=>tE(n,t))}function Ye(...e){return v.useCallback(cg(...e),e)}var Kr=v.forwardRef((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(nE);if(i){const l=i.props.children,s=o.map(d=>d===i?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:d);return b.jsx(fc,{...r,ref:t,children:v.isValidElement(l)?v.cloneElement(l,void 0,s):null})}return b.jsx(fc,{...r,ref:t,children:n})});Kr.displayName="Slot";var fc=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const o=oE(n);return v.cloneElement(n,{...rE(r,n.props),ref:t?cg(t,o):o})}return v.Children.count(n)>1?v.Children.only(null):null});fc.displayName="SlotClone";var dg=({children:e})=>b.jsx(b.Fragment,{children:e});function nE(e){return v.isValidElement(e)&&e.type===dg}function rE(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function oE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function fg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,Yp=iE,pg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Yp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const m=n==null?void 0:n[u],h=i==null?void 0:i[u];if(m===null)return null;const f=Qp(m)||Qp(h);return o[u][f]}),s=n&&Object.entries(n).reduce((u,m)=>{let[h,f]=m;return f===void 0||(u[h]=f),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,m)=>{let{class:h,className:f,...w}=m;return Object.entries(w).every(C=>{let[S,R]=C;return Array.isArray(R)?R.includes({...i,...s}[S]):{...i,...s}[S]===R})?[...u,h,f]:u},[]);return Yp(e,l,d,n==null?void 0:n.class,n==null?void 0:n.className)},Ad=pg("inline-flex items-center justify-center 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",{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"}}),rn=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?Kr:"button";return b.jsx(l,{className:Re(Ad({variant:t,size:n,className:e})),ref:i,...o})});rn.displayName="Button";/** +`));if(!a){a=null;break e}Xe=Bt(a,!0)}a=Xe.shift()}return a},jb(a,c){c===null||c===10?(N(ge(a.output,0)),a.output=[]):c!=0&&a.output.push(c)},fsync(a){a.output&&0=c||(c=Math.max(c,p*(1048576>p?2:1.125)>>>0),p!=0&&(c=Math.max(c,256)),p=a.Ia,a.Ia=new Uint8Array(c),0=a.node.Ma)return 0;if(a=Math.min(a.node.Ma-k,E),8c)throw new G(28);return c},lb(a,c,p){Ne(a.node,c+p),a.node.Ma=Math.max(a.node.Ma,c+p)},bb(a,c,p,E,k){if((a.node.mode&61440)!==32768)throw new G(43);if(a=a.node.Ia,k&2||a.buffer!==F.buffer){if((0{var p=0;return a&&(p|=365),c&&(p|=146),p},fe=null,$e={},Le=[],Nt=1,Pt=null,Cn=!0,G=null,no={};function It(a,c={}){if(a=ke(a),!a)return{path:"",node:null};if(c=Object.assign({qb:!0,kb:0},c),8!!L);for(var p=fe,E="/",k=0;k>>0)%Pt.length}function nf(a){var c=bs(a.parent.id,a.name);if(Pt[c]===a)Pt[c]=a.Wa;else for(c=Pt[c];c;){if(c.Wa===a){c.Wa=a.Wa;break}c=c.Wa}}function Pr(a,c){var p;if(p=(p=ro(a,"x"))?p:a.Ga.lookup?0:2)throw new G(p,a);for(p=Pt[bs(a.id,c)];p;p=p.Wa){var E=p.name;if(p.parent.id===a.id&&E===c)return p}return a.Ga.lookup(a,c)}function rf(a,c,p,E){return a=new Ef(a,c,p,E),c=bs(a.parent.id,a.name),a.Wa=Pt[c],Pt[c]=a}function Jt(a){return(a&61440)===16384}function of(a){var c=["r","w","rw"][a&3];return a&512&&(c+="w"),c}function ro(a,c){if(Cn)return 0;if(!c.includes("r")||a.mode&292){if(c.includes("w")&&!(a.mode&146)||c.includes("x")&&!(a.mode&73))return 2}else return 2;return 0}function lf(a,c){try{return Pr(a,c),20}catch{}return ro(a,"wx")}function af(a,c,p){try{var E=Pr(a,c)}catch(k){return k.Ka}if(a=ro(a,"wx"))return a;if(p){if(!Jt(E.mode))return 54;if(E===E.parent||Jo(E)==="/")return 10}else if(Jt(E.mode))return 31;return 0}function Aw(){for(var a=0;4096>=a;a++)if(!Le[a])return a;throw new G(33)}function Tt(a){if(a=Le[a],!a)throw new G(8);return a}function sf(a,c=-1){return ni||(ni=function(){this.$a={}},ni.prototype={},Object.defineProperties(ni.prototype,{object:{get(){return this.node},set(p){this.node=p}},flags:{get(){return this.$a.flags},set(p){this.$a.flags=p}},position:{get(){return this.$a.position},set(p){this.$a.position=p}}})),a=Object.assign(new ni,a),c==-1&&(c=Aw()),a.fd=c,Le[c]=a}var Dw={open(a){var c,p;a.Ha=$e[a.node.rdev].Ha,(p=(c=a.Ha).open)==null||p.call(c,a)},Ta(){throw new G(70)}};function Ss(a,c){$e[a]={Ha:c}}function uf(a,c){var p=c==="/",E=!c;if(p&&fe)throw new G(10);if(!p&&!E){var k=It(c,{qb:!1});if(c=k.path,k=k.node,k.Va)throw new G(10);if(!Jt(k.mode))throw new G(54)}c={type:a,Pb:{},tb:c,Cb:[]},a=a.Ra(c),a.Ra=c,c.root=a,p?fe=a:k&&(k.Va=c,k.Ra&&k.Ra.Cb.push(c))}function ul(a,c,p){var E=It(a,{parent:!0}).node;if(a=Q(a),!a||a==="."||a==="..")throw new G(28);var k=lf(E,a);if(k)throw new G(k);if(!E.Ga.ab)throw new G(63);return E.Ga.ab(E,a,c,p)}function _n(a,c){return ul(a,(c!==void 0?c:511)&1023|16384,0)}function cl(a,c,p){typeof p>"u"&&(p=c,c=438),ul(a,c|8192,p)}function Es(a,c){if(!ke(a))throw new G(44);var p=It(c,{parent:!0}).node;if(!p)throw new G(44);c=Q(c);var E=lf(p,c);if(E)throw new G(E);if(!p.Ga.symlink)throw new G(63);p.Ga.symlink(p,c,a)}function cf(a){var c=It(a,{parent:!0}).node;a=Q(a);var p=Pr(c,a),E=af(c,a,!0);if(E)throw new G(E);if(!c.Ga.rmdir)throw new G(63);if(p.Va)throw new G(10);c.Ga.rmdir(c,a),nf(p)}function df(a){var c=It(a,{parent:!0}).node;if(!c)throw new G(44);a=Q(a);var p=Pr(c,a),E=af(c,a,!1);if(E)throw new G(E);if(!c.Ga.unlink)throw new G(63);if(p.Va)throw new G(10);c.Ga.unlink(c,a),nf(p)}function ff(a){if(a=It(a).node,!a)throw new G(44);if(!a.Ga.readlink)throw new G(28);return ke(Jo(a.parent),a.Ga.readlink(a))}function ei(a,c){if(a=It(a,{Sa:!c}).node,!a)throw new G(44);if(!a.Ga.Pa)throw new G(63);return a.Ga.Pa(a)}function pf(a){return ei(a,!0)}function dl(a,c){if(a=typeof a=="string"?It(a,{Sa:!0}).node:a,!a.Ga.Oa)throw new G(63);a.Ga.Oa(a,{mode:c&4095|a.mode&-4096,timestamp:Date.now()})}function mf(a,c){if(0>c)throw new G(28);if(a=typeof a=="string"?It(a,{Sa:!0}).node:a,!a.Ga.Oa)throw new G(63);if(Jt(a.mode))throw new G(31);if((a.mode&61440)!==32768)throw new G(28);var p=ro(a,"w");if(p)throw new G(p);a.Ga.Oa(a,{size:c,timestamp:Date.now()})}function oo(a,c,p){if(a==="")throw new G(44);if(typeof c=="string"){var E={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[c];if(typeof E>"u")throw Error(`Unknown file open mode: ${c}`);c=E}if(p=c&64?(typeof p>"u"?438:p)&4095|32768:0,typeof a=="object")var k=a;else{a=kt(a);try{k=It(a,{Sa:!(c&131072)}).node}catch{}}if(E=!1,c&64)if(k){if(c&128)throw new G(20)}else k=ul(a,p,0),E=!0;if(!k)throw new G(44);if((k.mode&61440)===8192&&(c&=-513),c&65536&&!Jt(k.mode))throw new G(54);if(!E&&(p=k?(k.mode&61440)===40960?32:Jt(k.mode)&&(of(c)!=="r"||c&512)?31:ro(k,of(c)):44))throw new G(p);return c&512&&!E&&mf(k,0),c&=-131713,k=sf({node:k,path:Jo(k),flags:c,seekable:!0,position:0,Ha:k.Ha,Fb:[],error:!1}),k.Ha.open&&k.Ha.open(k),!u.logReadFiles||c&1||(_s||(_s={}),a in _s||(_s[a]=1)),k}function Cs(a){if(a.fd===null)throw new G(8);a.hb&&(a.hb=null);try{a.Ha.close&&a.Ha.close(a)}catch(c){throw c}finally{Le[a.fd]=null}a.fd=null}function hf(a,c,p){if(a.fd===null)throw new G(8);if(!a.seekable||!a.Ha.Ta)throw new G(70);if(p!=0&&p!=1&&p!=2)throw new G(28);a.position=a.Ha.Ta(a,c,p),a.Fb=[]}function vf(a,c,p,E,k){if(0>E||0>k)throw new G(28);if(a.fd===null)throw new G(8);if((a.flags&2097155)===1)throw new G(8);if(Jt(a.node.mode))throw new G(31);if(!a.Ha.read)throw new G(28);var O=typeof k<"u";if(!O)k=a.position;else if(!a.seekable)throw new G(70);return c=a.Ha.read(a,c,p,E,k),O||(a.position+=c),c}function gf(a,c,p,E,k){if(0>E||0>k)throw new G(28);if(a.fd===null)throw new G(8);if(!(a.flags&2097155))throw new G(8);if(Jt(a.node.mode))throw new G(31);if(!a.Ha.write)throw new G(28);a.seekable&&a.flags&1024&&hf(a,0,2);var O=typeof k<"u";if(!O)k=a.position;else if(!a.seekable)throw new G(70);return c=a.Ha.write(a,c,p,E,k,void 0),O||(a.position+=c),c}function Ow(a){var c,p=oo(a,p||0);a=ei(a).size;var E=new Uint8Array(a);return vf(p,E,0,a,0),c=E,Cs(p),c}function yf(){G||(G=function(a,c){this.name="ErrnoError",this.node=c,this.Eb=function(p){this.Ka=p},this.Eb(a),this.message="FS error"},G.prototype=Error(),G.prototype.constructor=G,[44].forEach(a=>{no[a]=new G(a),no[a].stack=""}))}var wf;function ti(a,c,p){a=kt("/dev/"+a);var E=de(!!c,!!p);xf||(xf=64);var k=xf++<<8|0;Ss(k,{open(O){O.seekable=!1},close(){var O;(O=p==null?void 0:p.buffer)!=null&&O.length&&p(10)},read(O,L,he,Pe){for(var Ee=0,at=0;at>2]=E.dev,$[p+4>>2]=E.mode,V[p+8>>2]=E.nlink,$[p+12>>2]=E.uid,$[p+16>>2]=E.gid,$[p+20>>2]=E.rdev,xe=[E.size>>>0,(J=E.size,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[p+24>>2]=xe[0],$[p+28>>2]=xe[1],$[p+32>>2]=4096,$[p+36>>2]=E.blocks,a=E.atime.getTime(),c=E.mtime.getTime();var k=E.ctime.getTime();return xe=[Math.floor(a/1e3)>>>0,(J=Math.floor(a/1e3),1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[p+40>>2]=xe[0],$[p+44>>2]=xe[1],V[p+48>>2]=a%1e3*1e3,xe=[Math.floor(c/1e3)>>>0,(J=Math.floor(c/1e3),1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[p+56>>2]=xe[0],$[p+60>>2]=xe[1],V[p+64>>2]=c%1e3*1e3,xe=[Math.floor(k/1e3)>>>0,(J=Math.floor(k/1e3),1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[p+72>>2]=xe[0],$[p+76>>2]=xe[1],V[p+80>>2]=k%1e3*1e3,xe=[E.ino>>>0,(J=E.ino,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[p+88>>2]=xe[0],$[p+92>>2]=xe[1],0}var pl=void 0;function ml(){var a=$[+pl>>2];return pl+=4,a}var ri=(a,c)=>c+2097152>>>0<4194305-!!a?(a>>>0)+4294967296*c:NaN,jw=[0,31,60,91,121,152,182,213,244,274,305,335],Mw=[0,31,59,90,120,151,181,212,243,273,304,334],bf=a=>{var c=it(a)+1,p=yl(c);return p&&pt(a,q,p,c),p},ks={},Sf=()=>{if(!Rs){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:h||"./this.program"},c;for(c in ks)ks[c]===void 0?delete a[c]:a[c]=ks[c];var p=[];for(c in a)p.push(`${c}=${a[c]}`);Rs=p}return Rs},Rs,Ns=a=>{var c=it(a)+1,p=tr(c);return pt(a,q,p,c),p},Iw=(a,c,p,E)=>{var k={string:Ee=>{var at=0;return Ee!=null&&Ee!==0&&(at=Ns(Ee)),at},array:Ee=>{var at=tr(Ee.length);return F.set(Ee,at),at}};a=u["_"+a];var O=[],L=0;if(E)for(var he=0;he(c=c==1?tr(a.length):yl(a.length),a.subarray||a.slice||(a=new Uint8Array(a)),q.set(a,c),c),Ar,Ps=[],In,io=a=>{Ar.delete(In.get(a)),In.set(a,null),Ps.push(a)},gl=(a,c)=>{if(!Ar){Ar=new WeakMap;var p=In.length;if(Ar)for(var E=0;E<0+p;E++){var k=In.get(E);k&&Ar.set(k,E)}}if(p=Ar.get(a)||0)return p;if(Ps.length)p=Ps.pop();else{try{In.grow(1)}catch(he){throw he instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":he}p=In.length-1}try{In.set(p,a)}catch(he){if(!(he instanceof TypeError))throw he;if(typeof WebAssembly.Function=="function"){E=WebAssembly.Function,k={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var O={parameters:[],results:c[0]=="v"?[]:[k[c[0]]]},L=1;LL?E.push(L):E.push(L%128|128,L>>7),L=0;Lk?c.push(k):c.push(k%128|128,k>>7),c.push.apply(c,E),c.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),c=new WebAssembly.Module(new Uint8Array(c)),c=new WebAssembly.Instance(c,{e:{f:a}}).exports.f}In.set(p,c)}return Ar.set(a,p),p};function Ef(a,c,p,E){a||(a=this),this.parent=a,this.Ra=a.Ra,this.Va=null,this.id=Nt++,this.name=c,this.mode=p,this.Ga={},this.Ha={},this.rdev=E}Object.defineProperties(Ef.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(a){a?this.mode|=146:this.mode&=-147}}}),yf(),Pt=Array(4096),uf(I,"/"),_n("/tmp"),_n("/home"),_n("/home/web_user"),function(){_n("/dev"),Ss(259,{read:()=>0,write:(E,k,O,L)=>L}),cl("/dev/null",259),cn(1280,ae),cn(1536,ue),cl("/dev/tty",1280),cl("/dev/tty1",1536);var a=new Uint8Array(1024),c=0,p=()=>(c===0&&(c=je(a).byteLength),a[--c]);ti("random",p),ti("urandom",p),_n("/dev/shm"),_n("/dev/shm/tmp")}(),function(){_n("/proc");var a=_n("/proc/self");_n("/proc/self/fd"),uf({Ra(){var c=rf(a,"fd",16895,73);return c.Ga={lookup(p,E){var k=Tt(+E);return p={parent:null,Ra:{tb:"fake"},Ga:{readlink:()=>k.path}},p.parent=p}},c}},"/proc/self/fd")}();var Lw={a:(a,c,p,E)=>{pe(`Assertion failed: ${a?ge(q,a):""}, at: `+[c?c?ge(q,c):"":"unknown filename",p,E?E?ge(q,E):"":"unknown function"])},h:function(a,c){try{return a=a?ge(q,a):"",dl(a,c),0}catch(p){if(typeof We>"u"||p.name!=="ErrnoError")throw p;return-p.Ka}},H:function(a,c,p){try{if(c=c?ge(q,c):"",c=Tr(a,c),p&-8)return-28;var E=It(c,{Sa:!0}).node;return E?(a="",p&4&&(a+="r"),p&2&&(a+="w"),p&1&&(a+="x"),a&&ro(E,a)?-2:0):-44}catch(k){if(typeof We>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},i:function(a,c){try{var p=Tt(a);return dl(p.node,c),0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},g:function(a){try{var c=Tt(a).node,p=typeof c=="string"?It(c,{Sa:!0}).node:c;if(!p.Ga.Oa)throw new G(63);return p.Ga.Oa(p,{timestamp:Date.now()}),0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},b:function(a,c,p){pl=p;try{var E=Tt(a);switch(c){case 0:var k=ml();if(0>k)return-28;for(;Le[k];)k++;return sf(E,k).fd;case 1:case 2:return 0;case 3:return E.flags;case 4:return k=ml(),E.flags|=k,0;case 5:return k=ml(),W[k+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return $[Cf()>>2]=28,-1;default:return-28}}catch(O){if(typeof We>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},f:function(a,c){try{var p=Tt(a);return fl(ei,p.path,c)}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},n:function(a,c,p){c=ri(c,p);try{if(isNaN(c))return 61;var E=Tt(a);if(!(E.flags&2097155))throw new G(28);return mf(E.node,c),0}catch(k){if(typeof We>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},C:function(a,c){try{if(c===0)return-28;var p=it("/")+1;return c"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},F:function(a,c){try{return a=a?ge(q,a):"",fl(pf,a,c)}catch(p){if(typeof We>"u"||p.name!=="ErrnoError")throw p;return-p.Ka}},z:function(a,c,p){try{return c=c?ge(q,c):"",c=Tr(a,c),c=kt(c),c[c.length-1]==="/"&&(c=c.substr(0,c.length-1)),_n(c,p),0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},E:function(a,c,p,E){try{c=c?ge(q,c):"";var k=E&256;return c=Tr(a,c,E&4096),fl(k?pf:ei,c,p)}catch(O){if(typeof We>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},y:function(a,c,p,E){pl=E;try{c=c?ge(q,c):"",c=Tr(a,c);var k=E?ml():0;return oo(c,p,k).fd}catch(O){if(typeof We>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},w:function(a,c,p,E){try{if(c=c?ge(q,c):"",c=Tr(a,c),0>=E)return-28;var k=ff(c),O=Math.min(E,it(k)),L=F[p+O];return pt(k,q,p,E+1),F[p+O]=L,O}catch(he){if(typeof We>"u"||he.name!=="ErrnoError")throw he;return-he.Ka}},v:function(a){try{return a=a?ge(q,a):"",cf(a),0}catch(c){if(typeof We>"u"||c.name!=="ErrnoError")throw c;return-c.Ka}},G:function(a,c){try{return a=a?ge(q,a):"",fl(ei,a,c)}catch(p){if(typeof We>"u"||p.name!=="ErrnoError")throw p;return-p.Ka}},r:function(a,c,p){try{return c=c?ge(q,c):"",c=Tr(a,c),p===0?df(c):p===512?cf(c):pe("Invalid flags passed to unlinkat"),0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return-E.Ka}},q:function(a,c,p){try{if(c=c?ge(q,c):"",c=Tr(a,c,!0),p){var E=V[p>>2]+4294967296*$[p+4>>2],k=$[p+8>>2];O=1e3*E+k/1e6,p+=16,E=V[p>>2]+4294967296*$[p+4>>2],k=$[p+8>>2],L=1e3*E+k/1e6}else var O=Date.now(),L=O;a=O;var he=It(c,{Sa:!0}).node;return he.Ga.Oa(he,{timestamp:Math.max(a,L)}),0}catch(Pe){if(typeof We>"u"||Pe.name!=="ErrnoError")throw Pe;return-Pe.Ka}},l:function(a,c,p){a=new Date(1e3*ri(a,c)),$[p>>2]=a.getSeconds(),$[p+4>>2]=a.getMinutes(),$[p+8>>2]=a.getHours(),$[p+12>>2]=a.getDate(),$[p+16>>2]=a.getMonth(),$[p+20>>2]=a.getFullYear()-1900,$[p+24>>2]=a.getDay(),c=a.getFullYear(),$[p+28>>2]=(c%4!==0||c%100===0&&c%400!==0?Mw:jw)[a.getMonth()]+a.getDate()-1|0,$[p+36>>2]=-(60*a.getTimezoneOffset()),c=new Date(a.getFullYear(),6,1).getTimezoneOffset();var E=new Date(a.getFullYear(),0,1).getTimezoneOffset();$[p+32>>2]=(c!=E&&a.getTimezoneOffset()==Math.min(E,c))|0},j:function(a,c,p,E,k,O,L,he){k=ri(k,O);try{if(isNaN(k))return 61;var Pe=Tt(E);if(c&2&&!(p&2)&&(Pe.flags&2097155)!==2)throw new G(2);if((Pe.flags&2097155)===1)throw new G(2);if(!Pe.Ha.bb)throw new G(43);var Ee=Pe.Ha.bb(Pe,a,k,c,p),at=Ee.Db;return $[L>>2]=Ee.ub,V[he>>2]=at,0}catch(mt){if(typeof We>"u"||mt.name!=="ErrnoError")throw mt;return-mt.Ka}},k:function(a,c,p,E,k,O,L){O=ri(O,L);try{if(isNaN(O))return 61;var he=Tt(k);if(p&2){if((he.node.mode&61440)!==32768)throw new G(43);if(!(E&2)){var Pe=q.slice(a,a+c);he.Ha.cb&&he.Ha.cb(he,Pe,O,c,E)}}}catch(Ee){if(typeof We>"u"||Ee.name!=="ErrnoError")throw Ee;return-Ee.Ka}},s:(a,c,p)=>{function E(Pe){return(Pe=Pe.toTimeString().match(/\(([A-Za-z ]+)\)$/))?Pe[1]:"GMT"}var k=new Date().getFullYear(),O=new Date(k,0,1),L=new Date(k,6,1);k=O.getTimezoneOffset();var he=L.getTimezoneOffset();V[a>>2]=60*Math.max(k,he),$[c>>2]=+(k!=he),a=E(O),c=E(L),a=bf(a),c=bf(c),he>2]=a,V[p+4>>2]=c):(V[p>>2]=c,V[p+4>>2]=a)},d:()=>Date.now(),t:()=>2147483648,c:()=>performance.now(),o:a=>{var c=q.length;if(a>>>=0,2147483648=p;p*=2){var E=c*(1+.2/p);E=Math.min(E,a+100663296);var k=Math;E=Math.max(a,E);e:{k=(k.min.call(k,2147483648,E+(65536-E%65536)%65536)-j.buffer.byteLength+65535)/65536;try{j.grow(k),re();var O=1;break e}catch{}O=void 0}if(O)return!0}return!1},A:(a,c)=>{var p=0;return Sf().forEach((E,k)=>{var O=c+p;for(k=V[a+4*k>>2]=O,O=0;O>0]=E.charCodeAt(O);F[k>>0]=0,p+=E.length+1}),0},B:(a,c)=>{var p=Sf();V[a>>2]=p.length;var E=0;return p.forEach(k=>E+=k.length+1),V[c>>2]=E,0},e:function(a){try{var c=Tt(a);return Cs(c),0}catch(p){if(typeof We>"u"||p.name!=="ErrnoError")throw p;return p.Ka}},p:function(a,c){try{var p=Tt(a);return F[c>>0]=p.tty?2:Jt(p.mode)?3:(p.mode&61440)===40960?7:4,W[c+2>>1]=0,xe=[0,(J=0,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[c+8>>2]=xe[0],$[c+12>>2]=xe[1],xe=[0,(J=0,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[c+16>>2]=xe[0],$[c+20>>2]=xe[1],0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return E.Ka}},x:function(a,c,p,E){try{e:{var k=Tt(a);a=c;for(var O,L=c=0;L>2],Pe=V[a+4>>2];a+=8;var Ee=vf(k,F,he,Pe,O);if(0>Ee){var at=-1;break e}if(c+=Ee,Ee>2]=at,0}catch(mt){if(typeof We>"u"||mt.name!=="ErrnoError")throw mt;return mt.Ka}},m:function(a,c,p,E,k){c=ri(c,p);try{if(isNaN(c))return 61;var O=Tt(a);return hf(O,c,E),xe=[O.position>>>0,(J=O.position,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],$[k>>2]=xe[0],$[k+4>>2]=xe[1],O.hb&&c===0&&E===0&&(O.hb=null),0}catch(L){if(typeof We>"u"||L.name!=="ErrnoError")throw L;return L.Ka}},D:function(a){var p;try{var c=Tt(a);return(p=c.Ha)!=null&&p.fsync?c.Ha.fsync(c):0}catch(E){if(typeof We>"u"||E.name!=="ErrnoError")throw E;return E.Ka}},u:function(a,c,p,E){try{e:{var k=Tt(a);a=c;for(var O,L=c=0;L>2],Pe=V[a+4>>2];a+=8;var Ee=gf(k,F,he,Pe,O);if(0>Ee){var at=-1;break e}c+=Ee,typeof O<"u"&&(O+=Ee)}at=c}return V[E>>2]=at,0}catch(mt){if(typeof We>"u"||mt.name!=="ErrnoError")throw mt;return mt.Ka}}},se=function(){var p;function a(E){var k;return se=E.exports,j=se.I,re(),In=se.Aa,B.unshift(se.J),X--,(k=u.monitorRunDependencies)==null||k.call(u,X),X==0&&me&&(E=me,me=null,E()),se}var c={a:Lw};if(X++,(p=u.monitorRunDependencies)==null||p.call(u,X),u.instantiateWasm)try{return u.instantiateWasm(c,a)}catch(E){return D(`Module.instantiateWasm callback failed with error: ${E}`),!1}return ve(c,function(E){a(E.instance)}),{}}();u._sqlite3_free=a=>(u._sqlite3_free=se.K)(a),u._sqlite3_value_text=a=>(u._sqlite3_value_text=se.L)(a);var Cf=()=>(Cf=se.M)();u._sqlite3_prepare_v2=(a,c,p,E,k)=>(u._sqlite3_prepare_v2=se.N)(a,c,p,E,k),u._sqlite3_step=a=>(u._sqlite3_step=se.O)(a),u._sqlite3_reset=a=>(u._sqlite3_reset=se.P)(a),u._sqlite3_exec=(a,c,p,E,k)=>(u._sqlite3_exec=se.Q)(a,c,p,E,k),u._sqlite3_finalize=a=>(u._sqlite3_finalize=se.R)(a),u._sqlite3_column_name=(a,c)=>(u._sqlite3_column_name=se.S)(a,c),u._sqlite3_column_text=(a,c)=>(u._sqlite3_column_text=se.T)(a,c),u._sqlite3_column_type=(a,c)=>(u._sqlite3_column_type=se.U)(a,c),u._sqlite3_errmsg=a=>(u._sqlite3_errmsg=se.V)(a),u._sqlite3_clear_bindings=a=>(u._sqlite3_clear_bindings=se.W)(a),u._sqlite3_value_blob=a=>(u._sqlite3_value_blob=se.X)(a),u._sqlite3_value_bytes=a=>(u._sqlite3_value_bytes=se.Y)(a),u._sqlite3_value_double=a=>(u._sqlite3_value_double=se.Z)(a),u._sqlite3_value_int=a=>(u._sqlite3_value_int=se._)(a),u._sqlite3_value_type=a=>(u._sqlite3_value_type=se.$)(a),u._sqlite3_result_blob=(a,c,p,E)=>(u._sqlite3_result_blob=se.aa)(a,c,p,E),u._sqlite3_result_double=(a,c)=>(u._sqlite3_result_double=se.ba)(a,c),u._sqlite3_result_error=(a,c,p)=>(u._sqlite3_result_error=se.ca)(a,c,p),u._sqlite3_result_int=(a,c)=>(u._sqlite3_result_int=se.da)(a,c),u._sqlite3_result_int64=(a,c,p)=>(u._sqlite3_result_int64=se.ea)(a,c,p),u._sqlite3_result_null=a=>(u._sqlite3_result_null=se.fa)(a),u._sqlite3_result_text=(a,c,p,E)=>(u._sqlite3_result_text=se.ga)(a,c,p,E),u._sqlite3_aggregate_context=(a,c)=>(u._sqlite3_aggregate_context=se.ha)(a,c),u._sqlite3_column_count=a=>(u._sqlite3_column_count=se.ia)(a),u._sqlite3_data_count=a=>(u._sqlite3_data_count=se.ja)(a),u._sqlite3_column_blob=(a,c)=>(u._sqlite3_column_blob=se.ka)(a,c),u._sqlite3_column_bytes=(a,c)=>(u._sqlite3_column_bytes=se.la)(a,c),u._sqlite3_column_double=(a,c)=>(u._sqlite3_column_double=se.ma)(a,c),u._sqlite3_bind_blob=(a,c,p,E,k)=>(u._sqlite3_bind_blob=se.na)(a,c,p,E,k),u._sqlite3_bind_double=(a,c,p)=>(u._sqlite3_bind_double=se.oa)(a,c,p),u._sqlite3_bind_int=(a,c,p)=>(u._sqlite3_bind_int=se.pa)(a,c,p),u._sqlite3_bind_text=(a,c,p,E,k)=>(u._sqlite3_bind_text=se.qa)(a,c,p,E,k),u._sqlite3_bind_parameter_index=(a,c)=>(u._sqlite3_bind_parameter_index=se.ra)(a,c),u._sqlite3_sql=a=>(u._sqlite3_sql=se.sa)(a),u._sqlite3_normalized_sql=a=>(u._sqlite3_normalized_sql=se.ta)(a),u._sqlite3_changes=a=>(u._sqlite3_changes=se.ua)(a),u._sqlite3_close_v2=a=>(u._sqlite3_close_v2=se.va)(a),u._sqlite3_create_function_v2=(a,c,p,E,k,O,L,he,Pe)=>(u._sqlite3_create_function_v2=se.wa)(a,c,p,E,k,O,L,he,Pe),u._sqlite3_open=(a,c)=>(u._sqlite3_open=se.xa)(a,c);var yl=u._malloc=a=>(yl=u._malloc=se.ya)(a),wl=u._free=a=>(wl=u._free=se.za)(a);u._RegisterExtensionFunctions=a=>(u._RegisterExtensionFunctions=se.Ba)(a);var _f=(a,c)=>(_f=se.Ca)(a,c),oi=()=>(oi=se.Da)(),ii=a=>(ii=se.Ea)(a),tr=a=>(tr=se.Fa)(a);u.stackAlloc=tr,u.stackSave=oi,u.stackRestore=ii,u.cwrap=(a,c,p,E)=>{var k=!p||p.every(O=>O==="number"||O==="boolean");return c!=="string"&&k&&!E?u["_"+a]:function(){return Iw(a,c,p,arguments)}},u.addFunction=gl,u.removeFunction=io,u.UTF8ToString=ft,u.ALLOC_NORMAL=hl,u.allocate=vl,u.allocateUTF8OnStack=Ns;var xl;me=function a(){xl||kf(),xl||(me=a)};function kf(){function a(){if(!xl&&(xl=!0,u.calledRun=!0,!z)){if(u.noFSInit||wf||(wf=!0,yf(),u.stdin=u.stdin,u.stdout=u.stdout,u.stderr=u.stderr,u.stdin?ti("stdin",u.stdin):Es("/dev/tty","/dev/stdin"),u.stdout?ti("stdout",null,u.stdout):Es("/dev/tty","/dev/stdout"),u.stderr?ti("stderr",null,u.stderr):Es("/dev/tty1","/dev/stderr"),oo("/dev/stdin",0),oo("/dev/stdout",1),oo("/dev/stderr",1)),Cn=!1,ot(B),u.onRuntimeInitialized&&u.onRuntimeInitialized(),u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;){var c=u.postRun.shift();ne.unshift(c)}ot(ne)}}if(!(0"u"?m={autoBom:!1}:typeof m!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function r(u,m,h){var f=new XMLHttpRequest;f.open("GET",u),f.responseType="blob",f.onload=function(){d(f.response,m,h)},f.onerror=function(){console.error("could not download file")},f.send()}function o(u){var m=new XMLHttpRequest;m.open("HEAD",u,!1);try{m.send()}catch{}return 200<=m.status&&299>=m.status}function i(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var m=document.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(m)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof li=="object"&&li.global===li?li:void 0,s=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),d=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(u,m,h){var f=l.URL||l.webkitURL,w=document.createElement("a");m=m||u.name||"download",w.download=m,w.rel="noopener",typeof u=="string"?(w.href=u,w.origin===location.origin?i(w):o(w.href)?r(u,m,h):i(w,w.target="_blank")):(w.href=f.createObjectURL(u),setTimeout(function(){f.revokeObjectURL(w.href)},4e4),setTimeout(function(){i(w)},0))}:"msSaveOrOpenBlob"in navigator?function(u,m,h){if(m=m||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,h),m);else if(o(u))r(u,m,h);else{var f=document.createElement("a");f.href=u,f.target="_blank",setTimeout(function(){i(f)})}}:function(u,m,h,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof u=="string")return r(u,m,h);var w=u.type==="application/octet-stream",C=/constructor/i.test(l.HTMLElement)||l.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||w&&C||s)&&typeof FileReader<"u"){var R=new FileReader;R.onloadend=function(){var x=R.result;x=S?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=x:location=x,f=null},R.readAsDataURL(u)}else{var y=l.URL||l.webkitURL,v=y.createObjectURL(u);f?f.location=v:location.href=v,f=null,setTimeout(function(){y.revokeObjectURL(v)},4e4)}});l.saveAs=d.saveAs=d,e.exports=d})})(tg);var ng=tg.exports;const vS=async e=>{try{const t=await e.arrayBuffer(),n=await hS({locateFile:r=>`https://sql.js.org/dist/${r}`});return new n.Database(new Uint8Array(t))}catch(t){throw console.error("Failed to load database:",t),t}},Nd=e=>{var t;try{return((t=e.exec("SELECT name FROM sqlite_master WHERE type='table';")[0])==null?void 0:t.values.map(r=>r[0]))||[]}catch(n){return console.error("Failed to get table names:",n),[]}},gS=async(e,t)=>{try{const r=e.exec(`PRAGMA table_info("${t}")`)[0].values.reduce((i,l)=>(i[l[1]]={type:l[2],isPrimaryKey:l[5]===1,isForeignKey:!1},i),{}),o=e.exec(`PRAGMA foreign_key_list("${t}")`);return o.length>0&&o[0].values.forEach(i=>{const l=i[3];r[l]&&(r[l].isForeignKey=!0)}),r}catch(n){throw console.error(`Failed to get schema for table "${t}":`,n),n}};function Ia(e){if(e.length>0){const t=e[0].columns;return{data:e[0].values.map(r=>t.reduce((o,i,l)=>(o[i]=r[l],o),{})),columns:t}}return{data:[],columns:[]}}const yS=e=>{try{return e.export()}catch(t){throw console.error("Failed to export database:",t),t}},wS=e=>{const t=yS(e),n=new Blob([t],{type:"application/octet-stream"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download="database.sqlite",o.click(),URL.revokeObjectURL(r)},rg=(e,t)=>{const n=e.join(","),r=t.map(o=>e.map(i=>`"${o[i]}"`).join(","));return[n,...r].join(` +`)},xS=(e,t)=>{const r=Nd(e)[t];try{const o=e.exec(`SELECT * FROM ${r}`);if(o.length===0)throw new Error(`Table ${r} is empty or does not exist.`);const{data:i,columns:l}=Ia(o),s=rg(l,i),d=new Blob([s],{type:"text/csv;charset=utf-8;"});ng.saveAs(d,`${r}.csv`)}catch(o){throw console.error(`Failed to export table "${r}" as CSV:`,o),o}},bS=e=>{Nd(e).forEach(n=>{try{const r=e.exec(`SELECT * FROM ${n}`);if(r.length===0)throw new Error(`Table ${n} is empty or does not exist.`);const{data:o,columns:i}=Ia(r),l=rg(i,o),s=new Blob([l],{type:"text/csv;charset=utf-8;"});ng.saveAs(s,`${n}.csv`)}catch(r){console.error(`Failed to export table "${n}" as CSV:`,r)}})},to=dS((e,t)=>({db:null,isLoading:!1,queryError:null,tables:[],selectedTable:"0",tableSchemas:{},rowPerPageOrAuto:"auto",isCustomQuery:!1,loadDatabase:async n=>{e({isLoading:!0,queryError:null});try{const r=await vS(n),o=Nd(r),i=await Promise.all(o.map(async d=>{const u=r.exec(`SELECT COUNT(*) FROM "${d}"`),m=parseInt(u[0].values[0][0],10),h=await gS(r,d);return{name:d,count:m,schema:h}})),l=i.map(({name:d,count:u})=>({name:d,count:u})),s=i.reduce((d,{name:u,schema:m})=>(d[u]=m,d),{});e({db:r,tables:l,tableSchemas:s,isLoading:!1})}catch(r){console.error("Failed to load database:",r),e({isLoading:!1,queryError:"Failed to load database"})}},query:n=>{const{db:r}=t();return r?r.exec(n):(console.warn("Database is not loaded."),[])},setQueryError:n=>e({queryError:n}),setTables:n=>e({tables:n}),setSelectedTable:n=>e({selectedTable:n}),setTableSchemas:n=>e({tableSchemas:n}),setRowPerPageOrAuto:n=>e({rowPerPageOrAuto:n}),setIsCustomQuery:n=>e({isCustomQuery:n})}));function SS(e,t,n,r){const{db:o,setQueryError:i,setIsCustomQuery:l,query:s}=to(),[d,u]=g.useState([]),[m,h]=g.useState([]),[f,w]=g.useState(""),[C,S]=g.useState(!0);g.useEffect(()=>{if(o&&e&&!r){S(!0);const y=`SELECT * FROM "${e}" LIMIT ${t} OFFSET ${n};`;(async()=>{try{const v=s(y),{data:x,columns:_}=Ia(v);h(_),u(x),i(null),w(y)}catch(v){v instanceof Error&&i(v.message)}finally{S(!1)}})()}},[o,e,n,t,r,i,s]);const R=g.useCallback(()=>{if(f.trim()===""){i(null);return}S(!0),(async()=>{try{const y=s(f),{data:v,columns:x}=Ia(y);h(x),u(v),l(!0),i(null)}catch(y){y instanceof Error&&i(y.message)}finally{S(!1)}})()},[f,s,i,l]);return{data:d,columns:m,customQuery:f,setCustomQuery:w,isQueryLoading:C,handleCustomQuery:R}}function ES(e){const{setIsCustomQuery:t}=to(),[n,r]=g.useState(0);g.useEffect(()=>{r(0),t(!1)},[t]);let o=30;if(e==="auto"){const i=window.innerHeight,l=[{height:1700,rowHeight:65},{height:1300,rowHeight:70},{height:1200,rowHeight:75},{height:1100,rowHeight:75},{height:1e3,rowHeight:80},{height:950,rowHeight:85},{height:900,rowHeight:90},{height:850,rowHeight:95},{height:800,rowHeight:100},{height:750,rowHeight:105},{height:700,rowHeight:110},{height:600,rowHeight:120},{height:550,rowHeight:150},{height:500,rowHeight:190},{height:0,rowHeight:280}];let d=120;for(const u of l)if(i>u.height){d=u.rowHeight;break}o=Math.max(1,Math.floor(i/d))}else o=e;return{page:n,setPage:r,rowsPerPage:o}}function og(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts(i)))==null?void 0:l.classGroupId}const Gp=/^\[(.+)\]$/;function kS(e){if(Gp.test(e)){const t=Gp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function RS(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return PS(Object.entries(e.classGroups),n).forEach(([i,l])=>{dc(l,r,i,t)}),r}function dc(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Kp(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(NS(o)){dc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{dc(l,Kp(t,i),n,r)})})}function Kp(e,t){let n=e;return t.split(Pd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function NS(e){return e.isThemeGetter}function PS(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[n,o]}):e}function TS(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const lg="!";function AS(e){const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length;function l(s){const d=[];let u=0,m=0,h;for(let R=0;Rm?h-m:void 0;return{modifiers:d,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:S}}return n?function(d){return n({className:d,parseClassName:l})}:l}function DS(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function OS(e){return{cache:TS(e.cacheSize),parseClassName:AS(e),..._S(e)}}const jS=/\s+/;function MS(e,t){const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(jS).map(l=>{const{modifiers:s,hasImportantModifier:d,baseClassName:u,maybePostfixModifierPosition:m}=n(l);let h=!!m,f=r(h?u.substring(0,m):u);if(!f){if(!h)return{isTailwindClass:!1,originalClassName:l};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:l};h=!1}const w=DS(s).join(":");return{isTailwindClass:!0,modifierId:d?w+lg:w,classGroupId:f,originalClassName:l,hasPostfixModifier:h}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:d,hasPostfixModifier:u}=l,m=s+d;return i.has(m)?!1:(i.add(m),o(d,u).forEach(h=>i.add(s+h)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function IS(){let e=0,t,n,r="";for(;eh(m),e());return n=OS(u),r=n.cache.get,o=n.cache.set,i=s,s(d)}function s(d){const u=r(d);if(u)return u;const m=MS(d,n);return o(d,m),m}return function(){return i(IS.apply(null,arguments))}}function Ve(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const sg=/^\[(?:([a-z-]+):)?(.+)\]$/i,FS=/^\d+\/\d+$/,zS=new Set(["px","full","screen"]),$S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HS=/\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$/,BS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,US=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,WS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Ln(e){return $r(e)||zS.has(e)||FS.test(e)}function rr(e){return Vo(e,"length",ZS)}function $r(e){return!!e&&!Number.isNaN(Number(e))}function zl(e){return Vo(e,"number",$r)}function hi(e){return!!e&&Number.isInteger(Number(e))}function VS(e){return e.endsWith("%")&&$r(e.slice(0,-1))}function Se(e){return sg.test(e)}function or(e){return $S.test(e)}const qS=new Set(["length","size","percentage"]);function GS(e){return Vo(e,qS,ug)}function KS(e){return Vo(e,"position",ug)}const QS=new Set(["image","url"]);function YS(e){return Vo(e,QS,eE)}function XS(e){return Vo(e,"",JS)}function vi(){return!0}function Vo(e,t,n){const r=sg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function ZS(e){return HS.test(e)&&!BS.test(e)}function ug(){return!1}function JS(e){return US.test(e)}function eE(e){return WS.test(e)}function tE(){const e=Ve("colors"),t=Ve("spacing"),n=Ve("blur"),r=Ve("brightness"),o=Ve("borderColor"),i=Ve("borderRadius"),l=Ve("borderSpacing"),s=Ve("borderWidth"),d=Ve("contrast"),u=Ve("grayscale"),m=Ve("hueRotate"),h=Ve("invert"),f=Ve("gap"),w=Ve("gradientColorStops"),C=Ve("gradientColorStopPositions"),S=Ve("inset"),R=Ve("margin"),y=Ve("opacity"),v=Ve("padding"),x=Ve("saturate"),_=Ve("scale"),N=Ve("sepia"),D=Ve("skew"),P=Ve("space"),j=Ve("translate"),z=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",Se,t],W=()=>[Se,t],$=()=>["",Ln,rr],V=()=>["auto",$r,Se],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",Se],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[$r,zl],X=()=>[$r,Se];return{cacheSize:500,separator:":",theme:{colors:[vi],spacing:[Ln,rr],blur:["none","",or,Se],brightness:Y(),borderColor:[e],borderRadius:["none","","full",or,Se],borderSpacing:W(),borderWidth:$(),contrast:Y(),grayscale:B(),hueRotate:X(),invert:B(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[VS,rr],inset:q(),margin:q(),opacity:Y(),padding:W(),saturate:Y(),scale:Y(),sepia:B(),skew:X(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",Se]}],container:["container"],columns:[{columns:[or]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),Se]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",hi,Se]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Se]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",hi,Se]}],"grid-cols":[{"grid-cols":[vi]}],"col-start-end":[{col:["auto",{span:["full",hi,Se]},Se]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[vi]}],"row-start-end":[{row:["auto",{span:[hi,Se]},Se]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Se]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Se]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Se,t]}],"min-w":[{"min-w":[Se,t,"min","max","fit"]}],"max-w":[{"max-w":[Se,t,"none","full","min","max","fit","prose",{screen:[or]},or]}],h:[{h:[Se,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Se,t,"auto","min","max","fit"]}],"font-size":[{text:["base",or,rr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zl]}],"font-family":[{font:[vi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Se]}],"line-clamp":[{"line-clamp":["none",$r,zl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ln,Se]}],"list-image":[{"list-image":["none",Se]}],"list-style-type":[{list:["none","disc","decimal",Se]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ln,rr]}],"underline-offset":[{"underline-offset":["auto",Ln,Se]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se]}],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",Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),KS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",GS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},YS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...oe(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:oe()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...oe()]}],"outline-offset":[{"outline-offset":[Ln,Se]}],"outline-w":[{outline:[Ln,rr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ln,rr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",or,XS]}],"shadow-color":[{shadow:[vi]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",or,Se]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Se]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",Se]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",Se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[hi,Se]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Se]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Se]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"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"]}],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",Se]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ln,rr,zl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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"]}}}const nE=LS(tE);function Re(...e){return nE(CS(e))}const Td=g.forwardRef(({className:e,type:t,...n},r)=>b.jsx("input",{type:t,className:Re("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Td.displayName="Input";function rE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function cg(...e){return t=>e.forEach(n=>rE(n,t))}function Ye(...e){return g.useCallback(cg(...e),e)}var Kr=g.forwardRef((e,t)=>{const{children:n,...r}=e,o=g.Children.toArray(n),i=o.find(oE);if(i){const l=i.props.children,s=o.map(d=>d===i?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:d);return b.jsx(fc,{...r,ref:t,children:g.isValidElement(l)?g.cloneElement(l,void 0,s):null})}return b.jsx(fc,{...r,ref:t,children:n})});Kr.displayName="Slot";var fc=g.forwardRef((e,t)=>{const{children:n,...r}=e;if(g.isValidElement(n)){const o=lE(n);return g.cloneElement(n,{...iE(r,n.props),ref:t?cg(t,o):o})}return g.Children.count(n)>1?g.Children.only(null):null});fc.displayName="SlotClone";var dg=({children:e})=>b.jsx(b.Fragment,{children:e});function oE(e){return g.isValidElement(e)&&e.type===dg}function iE(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function lE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function fg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,Yp=aE,pg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Yp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const m=n==null?void 0:n[u],h=i==null?void 0:i[u];if(m===null)return null;const f=Qp(m)||Qp(h);return o[u][f]}),s=n&&Object.entries(n).reduce((u,m)=>{let[h,f]=m;return f===void 0||(u[h]=f),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,m)=>{let{class:h,className:f,...w}=m;return Object.entries(w).every(C=>{let[S,R]=C;return Array.isArray(R)?R.includes({...i,...s}[S]):{...i,...s}[S]===R})?[...u,h,f]:u},[]);return Yp(e,l,d,n==null?void 0:n.class,n==null?void 0:n.className)},Ad=pg("inline-flex items-center justify-center 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",{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"}}),rn=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?Kr:"button";return b.jsx(l,{className:Re(Ad({variant:t,size:n,className:e})),ref:i,...o})});rn.displayName="Button";/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const lE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mg=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** + */const sE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mg=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var aE={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"};/** + */var uE={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"};/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const sE=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...s},d)=>v.createElement("svg",{ref:d,...aE,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:mg("lucide",o),...s},[...l.map(([u,m])=>v.createElement(u,m)),...Array.isArray(i)?i:[i]]));/** + */const cE=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...s},d)=>g.createElement("svg",{ref:d,...uE,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:mg("lucide",o),...s},[...l.map(([u,m])=>g.createElement(u,m)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const xt=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(sE,{ref:i,iconNode:t,className:mg(`lucide-${lE(e)}`,r),...o}));return n.displayName=`${e}`,n};/** + */const gt=(e,t)=>{const n=g.forwardRef(({className:r,...o},i)=>g.createElement(cE,{ref:i,iconNode:t,className:mg(`lucide-${sE(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const uE=xt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + */const dE=gt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const hg=xt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + */const hg=gt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const cE=xt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** + */const fE=gt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const dE=xt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + */const pE=gt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const fE=xt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + */const mE=gt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const pE=xt("Clock9",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 7.5 12",key:"1k60p0"}]]);/** + */const hE=gt("Clock9",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 7.5 12",key:"1k60p0"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const mE=xt("Cuboid",[["path",{d:"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z",key:"1u2ovd"}],["path",{d:"M10 22v-8L2.25 9.15",key:"11pn4q"}],["path",{d:"m10 14 11.77-6.87",key:"1kt1wh"}]]);/** + */const vE=gt("Cuboid",[["path",{d:"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z",key:"1u2ovd"}],["path",{d:"M10 22v-8L2.25 9.15",key:"11pn4q"}],["path",{d:"m10 14 11.77-6.87",key:"1kt1wh"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const hE=xt("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** + */const gE=gt("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const vE=xt("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** + */const yE=gt("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const gE=xt("KeySquare",[["path",{d:"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z",key:"165ttr"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814",key:"1ubxi2"}]]);/** + */const wE=gt("KeySquare",[["path",{d:"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z",key:"165ttr"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814",key:"1ubxi2"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const yE=xt("ListRestart",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 18H3",key:"1sijw9"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]]);/** + */const xE=gt("ListRestart",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 18H3",key:"1sijw9"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const wE=xt("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/** + */const bE=gt("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const xE=xt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** + */const SE=gt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const bE=xt("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** + */const EE=gt("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const SE=xt("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** + */const CE=gt("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const EE=xt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** + */const _E=gt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const CE=xt("Trash",[["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"}]]);function _E({page:e,setPage:t,rowsPerPage:n,rowCount:r}){const o=Math.ceil(r/n),i=Math.floor(e/n)+1,l=()=>{i{i>1&&t(e-n)};return b.jsx("section",{className:"fixed bottom-[8px] left-0 right-0 w-[270px] mx-auto z-10",children:b.jsxs("div",{className:"flex justify-between gap-2 bg-secondary p-[6px] border rounded",children:[b.jsx(rn,{onClick:s,disabled:i===1,children:b.jsx(cE,{className:"h-4 w-4"})}),b.jsxs("span",{className:"text-sm flex items-center justify-center",children:["Page ",i," of ",o]}),b.jsx(rn,{onClick:l,disabled:i>=o,children:b.jsx(dE,{className:"h-4 w-4"})})]})})}function Xp(e,[t,n]){return Math.min(n,Math.max(t,e))}function Te(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function kE(e,t){const n=v.createContext(t);function r(i){const{children:l,...s}=i,d=v.useMemo(()=>s,Object.values(s));return b.jsx(n.Provider,{value:d,children:l})}function o(i){const l=v.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function Vo(e,t=[]){let n=[];function r(i,l){const s=v.createContext(l),d=n.length;n=[...n,l];function u(h){const{scope:f,children:w,...C}=h,S=(f==null?void 0:f[e][d])||s,R=v.useMemo(()=>C,Object.values(C));return b.jsx(S.Provider,{value:R,children:w})}function m(h,f){const w=(f==null?void 0:f[e][d])||s,C=v.useContext(w);if(C)return C;if(l!==void 0)return l;throw new Error(`\`${h}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,m]}const o=()=>{const i=n.map(l=>v.createContext(l));return function(s){const d=(s==null?void 0:s[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:d}}),[s,d])}};return o.scopeName=e,[r,RE(o,...t)]}function RE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:d,scopeName:u})=>{const h=d(i)[`__scope${u}`];return{...s,...h}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function NE(e){const t=e+"CollectionProvider",[n,r]=Vo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:C,children:S}=w,R=D.useRef(null),y=D.useRef(new Map).current;return b.jsx(o,{scope:C,itemMap:y,collectionRef:R,children:S})};l.displayName=t;const s=e+"CollectionSlot",d=D.forwardRef((w,C)=>{const{scope:S,children:R}=w,y=i(s,S),g=Ye(C,y.collectionRef);return b.jsx(Kr,{ref:g,children:R})});d.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",h=D.forwardRef((w,C)=>{const{scope:S,children:R,...y}=w,g=D.useRef(null),x=Ye(C,g),_=i(u,S);return D.useEffect(()=>(_.itemMap.set(g,{ref:g,...y}),()=>void _.itemMap.delete(g))),b.jsx(Kr,{[m]:"",ref:x,children:R})});h.displayName=u;function f(w){const C=i(e+"CollectionConsumer",w);return D.useCallback(()=>{const R=C.collectionRef.current;if(!R)return[];const y=Array.from(R.querySelectorAll(`[${m}]`));return Array.from(C.itemMap.values()).sort((_,N)=>y.indexOf(_.ref.current)-y.indexOf(N.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:l,Slot:d,ItemSlot:h},f,r]}var PE=v.createContext(void 0);function TE(e){const t=v.useContext(PE);return e||t||"ltr"}var AE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ue=AE.reduce((e,t)=>{const n=v.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Kr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function DE(e,t){e&&eo.flushSync(()=>e.dispatchEvent(t))}function Kn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function OE(e,t=globalThis==null?void 0:globalThis.document){const n=Kn(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var jE="DismissableLayer",pc="dismissableLayer.update",ME="dismissableLayer.pointerDownOutside",IE="dismissableLayer.focusOutside",Zp,vg=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fs=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...d}=e,u=v.useContext(vg),[m,h]=v.useState(null),f=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=v.useState({}),C=Ye(t,P=>h(P)),S=Array.from(u.layers),[R]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=S.indexOf(R),g=m?S.indexOf(m):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,_=g>=y,N=$E(P=>{const j=P.target,F=[...u.branches].some(M=>M.contains(j));!_||F||(o==null||o(P),l==null||l(P),P.defaultPrevented||s==null||s())},f),A=zE(P=>{const j=P.target;[...u.branches].some(M=>M.contains(j))||(i==null||i(P),l==null||l(P),P.defaultPrevented||s==null||s())},f);return OE(P=>{g===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&s&&(P.preventDefault(),s()))},f),v.useEffect(()=>{if(m)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Zp=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),Jp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Zp)}},[m,f,n,u]),v.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),Jp())},[m,u]),v.useEffect(()=>{const P=()=>w({});return document.addEventListener(pc,P),()=>document.removeEventListener(pc,P)},[]),b.jsx(Ue.div,{...d,ref:C,style:{pointerEvents:x?_?"auto":"none":void 0,...e.style},onFocusCapture:Te(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Te(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Te(e.onPointerDownCapture,N.onPointerDownCapture)})});fs.displayName=jE;var LE="DismissableLayerBranch",FE=v.forwardRef((e,t)=>{const n=v.useContext(vg),r=v.useRef(null),o=Ye(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(Ue.div,{...e,ref:o})});FE.displayName=LE;function $E(e,t=globalThis==null?void 0:globalThis.document){const n=Kn(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){gg(ME,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function zE(e,t=globalThis==null?void 0:globalThis.document){const n=Kn(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&gg(IE,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jp(){const e=new CustomEvent(pc);document.dispatchEvent(e)}function gg(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?DE(o,i):o.dispatchEvent(i)}var iu=0;function yg(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??em()),document.body.insertAdjacentElement("beforeend",e[1]??em()),iu++,()=>{iu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),iu--}},[])}function em(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var lu="focusScope.autoFocusOnMount",au="focusScope.autoFocusOnUnmount",tm={bubbles:!1,cancelable:!0},HE="FocusScope",Dd=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[s,d]=v.useState(null),u=Kn(o),m=Kn(i),h=v.useRef(null),f=Ye(t,S=>d(S)),w=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let S=function(x){if(w.paused||!s)return;const _=x.target;s.contains(_)?h.current=_:ir(h.current,{select:!0})},R=function(x){if(w.paused||!s)return;const _=x.relatedTarget;_!==null&&(s.contains(_)||ir(h.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const N of x)N.removedNodes.length>0&&ir(s)};document.addEventListener("focusin",S),document.addEventListener("focusout",R);const g=new MutationObserver(y);return s&&g.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",R),g.disconnect()}}},[r,s,w.paused]),v.useEffect(()=>{if(s){rm.add(w);const S=document.activeElement;if(!s.contains(S)){const y=new CustomEvent(lu,tm);s.addEventListener(lu,u),s.dispatchEvent(y),y.defaultPrevented||(BE(GE(wg(s)),{select:!0}),document.activeElement===S&&ir(s))}return()=>{s.removeEventListener(lu,u),setTimeout(()=>{const y=new CustomEvent(au,tm);s.addEventListener(au,m),s.dispatchEvent(y),y.defaultPrevented||ir(S??document.body,{select:!0}),s.removeEventListener(au,m),rm.remove(w)},0)}}},[s,u,m,w]);const C=v.useCallback(S=>{if(!n&&!r||w.paused)return;const R=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,y=document.activeElement;if(R&&y){const g=S.currentTarget,[x,_]=UE(g);x&&_?!S.shiftKey&&y===_?(S.preventDefault(),n&&ir(x,{select:!0})):S.shiftKey&&y===x&&(S.preventDefault(),n&&ir(_,{select:!0})):y===g&&S.preventDefault()}},[n,r,w.paused]);return b.jsx(Ue.div,{tabIndex:-1,...l,ref:f,onKeyDown:C})});Dd.displayName=HE;function BE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ir(r,{select:t}),document.activeElement!==n)return}function UE(e){const t=wg(e),n=nm(t,e),r=nm(t.reverse(),e);return[n,r]}function wg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nm(e,t){for(const n of e)if(!WE(n,{upTo:t}))return n}function WE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function VE(e){return e instanceof HTMLInputElement&&"select"in e}function ir(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&VE(e)&&t&&e.select()}}var rm=qE();function qE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=om(e,t),e.unshift(t)},remove(t){var n;e=om(e,t),(n=e[0])==null||n.resume()}}}function om(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function GE(e){return e.filter(t=>t.tagName!=="A")}var Ot=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},KE=N1.useId||(()=>{}),QE=0;function No(e){const[t,n]=v.useState(KE());return Ot(()=>{n(r=>r??String(QE++))},[e]),t?`radix-${t}`:""}const YE=["top","right","bottom","left"],An=Math.min,qt=Math.max,La=Math.round,zl=Math.floor,Sr=e=>({x:e,y:e}),XE={left:"right",right:"left",bottom:"top",top:"bottom"},ZE={start:"end",end:"start"};function mc(e,t,n){return qt(e,An(t,n))}function Qn(e,t){return typeof e=="function"?e(t):e}function Yn(e){return e.split("-")[0]}function qo(e){return e.split("-")[1]}function Od(e){return e==="x"?"y":"x"}function jd(e){return e==="y"?"height":"width"}function Go(e){return["top","bottom"].includes(Yn(e))?"y":"x"}function Md(e){return Od(Go(e))}function JE(e,t,n){n===void 0&&(n=!1);const r=qo(e),o=Md(e),i=jd(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Fa(l)),[l,Fa(l)]}function e2(e){const t=Fa(e);return[hc(e),t,hc(t)]}function hc(e){return e.replace(/start|end/g,t=>ZE[t])}function t2(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function n2(e,t,n,r){const o=qo(e);let i=t2(Yn(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(hc)))),i}function Fa(e){return e.replace(/left|right|bottom|top/g,t=>XE[t])}function r2(e){return{top:0,right:0,bottom:0,left:0,...e}}function xg(e){return typeof e!="number"?r2(e):{top:e,right:e,bottom:e,left:e}}function $a(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function im(e,t,n){let{reference:r,floating:o}=e;const i=Go(t),l=Md(t),s=jd(l),d=Yn(t),u=i==="y",m=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let w;switch(d){case"top":w={x:m,y:r.y-o.height};break;case"bottom":w={x:m,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:h};break;case"left":w={x:r.x-o.width,y:h};break;default:w={x:r.x,y:r.y}}switch(qo(t)){case"start":w[l]-=f*(n&&u?-1:1);break;case"end":w[l]+=f*(n&&u?-1:1);break}return w}const o2=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:h}=im(u,r,d),f=r,w={},C=0;for(let S=0;S({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:d}=t,{element:u,padding:m=0}=Qn(e,t)||{};if(u==null)return{};const h=xg(m),f={x:n,y:r},w=Md(o),C=jd(w),S=await l.getDimensions(u),R=w==="y",y=R?"top":"left",g=R?"bottom":"right",x=R?"clientHeight":"clientWidth",_=i.reference[C]+i.reference[w]-f[w]-i.floating[C],N=f[w]-i.reference[w],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let P=A?A[x]:0;(!P||!await(l.isElement==null?void 0:l.isElement(A)))&&(P=s.floating[x]||i.floating[C]);const j=_/2-N/2,F=P/2-S[C]/2-1,M=An(h[y],F),B=An(h[g],F),W=M,z=P-S[C]-B,V=P/2-S[C]/2+j,Z=mc(W,V,z),oe=!d.arrow&&qo(o)!=null&&V!==Z&&i.reference[C]/2-(VW<=0)){var F,M;const W=(((F=i.flip)==null?void 0:F.index)||0)+1,z=N[W];if(z)return{data:{index:W,overflows:j},reset:{placement:z}};let V=(M=j.filter(Z=>Z.overflows[0]<=0).sort((Z,oe)=>Z.overflows[1]-oe.overflows[1])[0])==null?void 0:M.placement;if(!V)switch(w){case"bestFit":{var B;const Z=(B=j.map(oe=>[oe.placement,oe.overflows.filter(re=>re>0).reduce((re,I)=>re+I,0)]).sort((oe,re)=>oe[1]-re[1])[0])==null?void 0:B[0];Z&&(V=Z);break}case"initialPlacement":V=s;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function lm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function am(e){return YE.some(t=>e[t]>=0)}const a2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Qn(e,t);switch(r){case"referenceHidden":{const i=await Qi(t,{...o,elementContext:"reference"}),l=lm(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:am(l)}}}case"escaped":{const i=await Qi(t,{...o,altBoundary:!0}),l=lm(i,n.floating);return{data:{escapedOffsets:l,escaped:am(l)}}}default:return{}}}}};async function s2(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Yn(n),s=qo(n),d=Go(n)==="y",u=["left","top"].includes(l)?-1:1,m=i&&d?-1:1,h=Qn(t,e);let{mainAxis:f,crossAxis:w,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&typeof C=="number"&&(w=s==="end"?C*-1:C),d?{x:w*m,y:f*u}:{x:f*u,y:w*m}}const u2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,d=await s2(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:l}}}}},c2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:R=>{let{x:y,y:g}=R;return{x:y,y:g}}},...d}=Qn(e,t),u={x:n,y:r},m=await Qi(t,d),h=Go(Yn(o)),f=Od(h);let w=u[f],C=u[h];if(i){const R=f==="y"?"top":"left",y=f==="y"?"bottom":"right",g=w+m[R],x=w-m[y];w=mc(g,w,x)}if(l){const R=h==="y"?"top":"left",y=h==="y"?"bottom":"right",g=C+m[R],x=C-m[y];C=mc(g,C,x)}const S=s.fn({...t,[f]:w,[h]:C});return{...S,data:{x:S.x-n,y:S.y-r}}}}},d2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:d=!0,crossAxis:u=!0}=Qn(e,t),m={x:n,y:r},h=Go(o),f=Od(h);let w=m[f],C=m[h];const S=Qn(s,t),R=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(d){const x=f==="y"?"height":"width",_=i.reference[f]-i.floating[x]+R.mainAxis,N=i.reference[f]+i.reference[x]-R.mainAxis;w<_?w=_:w>N&&(w=N)}if(u){var y,g;const x=f==="y"?"width":"height",_=["top","left"].includes(Yn(o)),N=i.reference[h]-i.floating[x]+(_&&((y=l.offset)==null?void 0:y[h])||0)+(_?0:R.crossAxis),A=i.reference[h]+i.reference[x]+(_?0:((g=l.offset)==null?void 0:g[h])||0)-(_?R.crossAxis:0);CA&&(C=A)}return{[f]:w,[h]:C}}}},f2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...s}=Qn(e,t),d=await Qi(t,s),u=Yn(n),m=qo(n),h=Go(n)==="y",{width:f,height:w}=r.floating;let C,S;u==="top"||u==="bottom"?(C=u,S=m===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(S=u,C=m==="end"?"top":"bottom");const R=w-d.top-d.bottom,y=f-d.left-d.right,g=An(w-d[C],R),x=An(f-d[S],y),_=!t.middlewareData.shift;let N=g,A=x;if(h?A=m||_?An(x,y):y:N=m||_?An(g,R):R,_&&!m){const j=qt(d.left,0),F=qt(d.right,0),M=qt(d.top,0),B=qt(d.bottom,0);h?A=f-2*(j!==0||F!==0?j+F:qt(d.left,d.right)):N=w-2*(M!==0||B!==0?M+B:qt(d.top,d.bottom))}await l({...t,availableWidth:A,availableHeight:N});const P=await o.getDimensions(i.floating);return f!==P.width||w!==P.height?{reset:{rects:!0}}:{}}}};function Ko(e){return bg(e)?(e.nodeName||"").toLowerCase():"#document"}function Qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zn(e){var t;return(t=(bg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bg(e){return e instanceof Node||e instanceof Qt(e).Node}function jn(e){return e instanceof Element||e instanceof Qt(e).Element}function Mn(e){return e instanceof HTMLElement||e instanceof Qt(e).HTMLElement}function sm(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qt(e).ShadowRoot}function il(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function p2(e){return["table","td","th"].includes(Ko(e))}function Id(e){const t=Ld(),n=xn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function m2(e){let t=Er(e);for(;Mn(t)&&!zo(t);){if(Id(t))return t;t=Er(t)}return null}function Ld(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zo(e){return["html","body","#document"].includes(Ko(e))}function xn(e){return Qt(e).getComputedStyle(e)}function ps(e){return jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Er(e){if(Ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sm(e)&&e.host||Zn(e);return sm(t)?t.host:t}function Sg(e){const t=Er(e);return zo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mn(t)&&il(t)?t:Sg(t)}function Yi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Sg(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Qt(o);return i?t.concat(l,l.visualViewport||[],il(o)?o:[],l.frameElement&&n?Yi(l.frameElement):[]):t.concat(o,Yi(o,[],n))}function Eg(e){const t=xn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Mn(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=La(n)!==i||La(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Fd(e){return jn(e)?e:e.contextElement}function Po(e){const t=Fd(e);if(!Mn(t))return Sr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Eg(t);let l=(i?La(n.width):n.width)/r,s=(i?La(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const h2=Sr(0);function Cg(e){const t=Qt(e);return!Ld()||!t.visualViewport?h2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function v2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qt(e)?!1:t}function Qr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Fd(e);let l=Sr(1);t&&(r?jn(r)&&(l=Po(r)):l=Po(e));const s=v2(i,n,r)?Cg(i):Sr(0);let d=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,m=o.width/l.x,h=o.height/l.y;if(i){const f=Qt(i),w=r&&jn(r)?Qt(r):r;let C=f,S=C.frameElement;for(;S&&r&&w!==C;){const R=Po(S),y=S.getBoundingClientRect(),g=xn(S),x=y.left+(S.clientLeft+parseFloat(g.paddingLeft))*R.x,_=y.top+(S.clientTop+parseFloat(g.paddingTop))*R.y;d*=R.x,u*=R.y,m*=R.x,h*=R.y,d+=x,u+=_,C=Qt(S),S=C.frameElement}}return $a({width:m,height:h,x:d,y:u})}const g2=[":popover-open",":modal"];function $d(e){return g2.some(t=>{try{return e.matches(t)}catch{return!1}})}function y2(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=Zn(r),s=t?$d(t.floating):!1;if(r===l||s&&i)return n;let d={scrollLeft:0,scrollTop:0},u=Sr(1);const m=Sr(0),h=Mn(r);if((h||!h&&!i)&&((Ko(r)!=="body"||il(l))&&(d=ps(r)),Mn(r))){const f=Qr(r);u=Po(r),m.x=f.x+r.clientLeft,m.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+m.x,y:n.y*u.y-d.scrollTop*u.y+m.y}}function w2(e){return Array.from(e.getClientRects())}function _g(e){return Qr(Zn(e)).left+ps(e).scrollLeft}function x2(e){const t=Zn(e),n=ps(e),r=e.ownerDocument.body,o=qt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=qt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+_g(e);const s=-n.scrollTop;return xn(r).direction==="rtl"&&(l+=qt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function b2(e,t){const n=Qt(e),r=Zn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,d=0;if(o){i=o.width,l=o.height;const u=Ld();(!u||u&&t==="fixed")&&(s=o.offsetLeft,d=o.offsetTop)}return{width:i,height:l,x:s,y:d}}function S2(e,t){const n=Qr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Mn(e)?Po(e):Sr(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,d=o*i.x,u=r*i.y;return{width:l,height:s,x:d,y:u}}function um(e,t,n){let r;if(t==="viewport")r=b2(e,n);else if(t==="document")r=x2(Zn(e));else if(jn(t))r=S2(t,n);else{const o=Cg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return $a(r)}function kg(e,t){const n=Er(e);return n===t||!jn(n)||zo(n)?!1:xn(n).position==="fixed"||kg(n,t)}function E2(e,t){const n=t.get(e);if(n)return n;let r=Yi(e,[],!1).filter(s=>jn(s)&&Ko(s)!=="body"),o=null;const i=xn(e).position==="fixed";let l=i?Er(e):e;for(;jn(l)&&!zo(l);){const s=xn(l),d=Id(l);!d&&s.position==="fixed"&&(o=null),(i?!d&&!o:!d&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||il(l)&&!d&&kg(e,l))?r=r.filter(m=>m!==l):o=s,l=Er(l)}return t.set(e,r),r}function C2(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?$d(t)?[]:E2(t,this._c):[].concat(n),r],s=l[0],d=l.reduce((u,m)=>{const h=um(t,m,o);return u.top=qt(h.top,u.top),u.right=An(h.right,u.right),u.bottom=An(h.bottom,u.bottom),u.left=qt(h.left,u.left),u},um(t,s,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function _2(e){const{width:t,height:n}=Eg(e);return{width:t,height:n}}function k2(e,t,n){const r=Mn(t),o=Zn(t),i=n==="fixed",l=Qr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const d=Sr(0);if(r||!r&&!i)if((Ko(t)!=="body"||il(o))&&(s=ps(t)),r){const h=Qr(t,!0,i,t);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else o&&(d.x=_g(o));const u=l.left+s.scrollLeft-d.x,m=l.top+s.scrollTop-d.y;return{x:u,y:m,width:l.width,height:l.height}}function su(e){return xn(e).position==="static"}function cm(e,t){return!Mn(e)||xn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Rg(e,t){const n=Qt(e);if($d(e))return n;if(!Mn(e)){let o=Er(e);for(;o&&!zo(o);){if(jn(o)&&!su(o))return o;o=Er(o)}return n}let r=cm(e,t);for(;r&&p2(r)&&su(r);)r=cm(r,t);return r&&zo(r)&&su(r)&&!Id(r)?n:r||m2(e)||n}const R2=async function(e){const t=this.getOffsetParent||Rg,n=this.getDimensions,r=await n(e.floating);return{reference:k2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function N2(e){return xn(e).direction==="rtl"}const P2={convertOffsetParentRelativeRectToViewportRelativeRect:y2,getDocumentElement:Zn,getClippingRect:C2,getOffsetParent:Rg,getElementRects:R2,getClientRects:w2,getDimensions:_2,getScale:Po,isElement:jn,isRTL:N2};function T2(e,t){let n=null,r;const o=Zn(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,d){s===void 0&&(s=!1),d===void 0&&(d=1),i();const{left:u,top:m,width:h,height:f}=e.getBoundingClientRect();if(s||t(),!h||!f)return;const w=zl(m),C=zl(o.clientWidth-(u+h)),S=zl(o.clientHeight-(m+f)),R=zl(u),g={rootMargin:-w+"px "+-C+"px "+-S+"px "+-R+"px",threshold:qt(0,An(1,d))||1};let x=!0;function _(N){const A=N[0].intersectionRatio;if(A!==d){if(!x)return l();A?l(!1,A):r=setTimeout(()=>{l(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return l(!0),i}function A2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=Fd(e),m=o||i?[...u?Yi(u):[],...Yi(t)]:[];m.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const h=u&&s?T2(u,n):null;let f=-1,w=null;l&&(w=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&w&&(w.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=w)==null||x.observe(t)})),n()}),u&&!d&&w.observe(u),w.observe(t));let C,S=d?Qr(e):null;d&&R();function R(){const y=Qr(e);S&&(y.x!==S.x||y.y!==S.y||y.width!==S.width||y.height!==S.height)&&n(),S=y,C=requestAnimationFrame(R)}return n(),()=>{var y;m.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),h==null||h(),(y=w)==null||y.disconnect(),w=null,d&&cancelAnimationFrame(C)}}const D2=u2,O2=c2,j2=l2,M2=f2,I2=a2,dm=i2,L2=d2,F2=(e,t,n)=>{const r=new Map,o={platform:P2,...n},i={...o.platform,_c:r};return o2(e,t,{...o,platform:i})};var ua=typeof document<"u"?v.useLayoutEffect:v.useEffect;function za(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!za(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!za(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ng(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fm(e,t){const n=Ng(e);return Math.round(t*n)/n}function pm(e){const t=v.useRef(e);return ua(()=>{t.current=e}),t}function $2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:d,open:u}=e,[m,h]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,w]=v.useState(r);za(f,r)||w(r);const[C,S]=v.useState(null),[R,y]=v.useState(null),g=v.useCallback(re=>{re!==A.current&&(A.current=re,S(re))},[]),x=v.useCallback(re=>{re!==P.current&&(P.current=re,y(re))},[]),_=i||C,N=l||R,A=v.useRef(null),P=v.useRef(null),j=v.useRef(m),F=d!=null,M=pm(d),B=pm(o),W=v.useCallback(()=>{if(!A.current||!P.current)return;const re={placement:t,strategy:n,middleware:f};B.current&&(re.platform=B.current),F2(A.current,P.current,re).then(I=>{const U={...I,isPositioned:!0};z.current&&!za(j.current,U)&&(j.current=U,eo.flushSync(()=>{h(U)}))})},[f,t,n,B]);ua(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,h(re=>({...re,isPositioned:!1})))},[u]);const z=v.useRef(!1);ua(()=>(z.current=!0,()=>{z.current=!1}),[]),ua(()=>{if(_&&(A.current=_),N&&(P.current=N),_&&N){if(M.current)return M.current(_,N,W);W()}},[_,N,W,M,F]);const V=v.useMemo(()=>({reference:A,floating:P,setReference:g,setFloating:x}),[g,x]),Z=v.useMemo(()=>({reference:_,floating:N}),[_,N]),oe=v.useMemo(()=>{const re={position:n,left:0,top:0};if(!Z.floating)return re;const I=fm(Z.floating,m.x),U=fm(Z.floating,m.y);return s?{...re,transform:"translate("+I+"px, "+U+"px)",...Ng(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:U}},[n,s,Z.floating,m.x,m.y]);return v.useMemo(()=>({...m,update:W,refs:V,elements:Z,floatingStyles:oe}),[m,W,V,Z,oe])}const z2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?dm({element:r.current,padding:o}).fn(n):{}:r?dm({element:r,padding:o}).fn(n):{}}}},H2=(e,t)=>({...D2(e),options:[e,t]}),B2=(e,t)=>({...O2(e),options:[e,t]}),U2=(e,t)=>({...L2(e),options:[e,t]}),W2=(e,t)=>({...j2(e),options:[e,t]}),V2=(e,t)=>({...M2(e),options:[e,t]}),q2=(e,t)=>({...I2(e),options:[e,t]}),G2=(e,t)=>({...z2(e),options:[e,t]});var K2="Arrow",Pg=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(Ue.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Pg.displayName=K2;var Q2=Pg;function Y2(e){const[t,n]=v.useState(void 0);return Ot(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const d=i.borderBoxSize,u=Array.isArray(d)?d[0]:d;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zd="Popper",[Tg,ms]=Vo(zd),[X2,Ag]=Tg(zd),Dg=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return b.jsx(X2,{scope:t,anchor:r,onAnchorChange:o,children:n})};Dg.displayName=zd;var Og="PopperAnchor",jg=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ag(Og,n),l=v.useRef(null),s=Ye(t,l);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:b.jsx(Ue.div,{...o,ref:s})});jg.displayName=Og;var Hd="PopperContent",[Z2,J2]=Tg(Hd),Mg=v.forwardRef((e,t)=>{var ee,we,De,K,be,ve;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:w="optimized",onPlaced:C,...S}=e,R=Ag(Hd,n),[y,g]=v.useState(null),x=Ye(t,J=>g(J)),[_,N]=v.useState(null),A=Y2(_),P=(A==null?void 0:A.width)??0,j=(A==null?void 0:A.height)??0,F=r+(i!=="center"?"-"+i:""),M=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(u)?u:[u],W=B.length>0,z={padding:M,boundary:B.filter(tC),altBoundary:W},{refs:V,floatingStyles:Z,placement:oe,isPositioned:re,middlewareData:I}=$2({strategy:"fixed",placement:F,whileElementsMounted:(...J)=>A2(...J,{animationFrame:w==="always"}),elements:{reference:R.anchor},middleware:[H2({mainAxis:o+j,alignmentAxis:l}),d&&B2({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?U2():void 0,...z}),d&&W2({...z}),V2({...z,apply:({elements:J,rects:xe,availableWidth:ot,availableHeight:Ie})=>{const{width:nt,height:bt}=xe.reference,ge=J.floating.style;ge.setProperty("--radix-popper-available-width",`${ot}px`),ge.setProperty("--radix-popper-available-height",`${Ie}px`),ge.setProperty("--radix-popper-anchor-width",`${nt}px`),ge.setProperty("--radix-popper-anchor-height",`${bt}px`)}}),_&&G2({element:_,padding:s}),nC({arrowWidth:P,arrowHeight:j}),f&&q2({strategy:"referenceHidden",...z})]}),[U,ne]=Fg(oe),Y=Kn(C);Ot(()=>{re&&(Y==null||Y())},[re,Y]);const X=(ee=I.arrow)==null?void 0:ee.x,me=(we=I.arrow)==null?void 0:we.y,pe=((De=I.arrow)==null?void 0:De.centerOffset)!==0,[Oe,ce]=v.useState();return Ot(()=>{y&&ce(window.getComputedStyle(y).zIndex)},[y]),b.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:re?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oe,"--radix-popper-transform-origin":[(K=I.transformOrigin)==null?void 0:K.x,(be=I.transformOrigin)==null?void 0:be.y].join(" "),...((ve=I.hide)==null?void 0:ve.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(Z2,{scope:n,placedSide:U,onArrowChange:N,arrowX:X,arrowY:me,shouldHideArrow:pe,children:b.jsx(Ue.div,{"data-side":U,"data-align":ne,...S,ref:x,style:{...S.style,animation:re?void 0:"none"}})})})});Mg.displayName=Hd;var Ig="PopperArrow",eC={top:"bottom",right:"left",bottom:"top",left:"right"},Lg=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=J2(Ig,r),l=eC[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]: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:b.jsx(Q2,{...o,ref:n,style:{...o.style,display:"block"}})})});Lg.displayName=Ig;function tC(e){return e!==null}var nC=e=>({name:"transformOrigin",options:e,fn(t){var R,y,g;const{placement:n,rects:r,middlewareData:o}=t,l=((R=o.arrow)==null?void 0:R.centerOffset)!==0,s=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[u,m]=Fg(n),h={start:"0%",center:"50%",end:"100%"}[m],f=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,w=(((g=o.arrow)==null?void 0:g.y)??0)+d/2;let C="",S="";return u==="bottom"?(C=l?h:`${f}px`,S=`${-d}px`):u==="top"?(C=l?h:`${f}px`,S=`${r.floating.height+d}px`):u==="right"?(C=`${-d}px`,S=l?h:`${w}px`):u==="left"&&(C=`${r.floating.width+d}px`,S=l?h:`${w}px`),{data:{x:C,y:S}}}});function Fg(e){const[t,n="center"]=e.split("-");return[t,n]}var $g=Dg,zg=jg,Hg=Mg,Bg=Lg,rC="Portal",Bd=v.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=v.useState(!1);Ot(()=>i(!0),[]);const l=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return l?Kv.createPortal(b.jsx(Ue.div,{...r,ref:t}),l):null});Bd.displayName=rC;function Ha({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=oC({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=Kn(n),d=v.useCallback(u=>{if(i){const h=typeof u=="function"?u(e):u;h!==e&&s(h)}else o(u)},[i,e,o,s]);return[l,d]}function oC({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,o=v.useRef(r),i=Kn(t);return v.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function iC(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var lC="VisuallyHidden",Ug=v.forwardRef((e,t)=>b.jsx(Ue.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Ug.displayName=lC;var aC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lo=new WeakMap,Hl=new WeakMap,Bl={},uu=0,Wg=function(e){return e&&(e.host||Wg(e.parentNode))},sC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Wg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},uC=function(e,t,n,r){var o=sC(t,Array.isArray(e)?e:[e]);Bl[n]||(Bl[n]=new WeakMap);var i=Bl[n],l=[],s=new Set,d=new Set(o),u=function(h){!h||s.has(h)||(s.add(h),u(h.parentNode))};o.forEach(u);var m=function(h){!h||d.has(h)||Array.prototype.forEach.call(h.children,function(f){if(s.has(f))m(f);else try{var w=f.getAttribute(r),C=w!==null&&w!=="false",S=(lo.get(f)||0)+1,R=(i.get(f)||0)+1;lo.set(f,S),i.set(f,R),l.push(f),S===1&&C&&Hl.set(f,!0),R===1&&f.setAttribute(n,"true"),C||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return m(t),s.clear(),uu++,function(){l.forEach(function(h){var f=lo.get(h)-1,w=i.get(h)-1;lo.set(h,f),i.set(h,w),f||(Hl.has(h)||h.removeAttribute(r),Hl.delete(h)),w||h.removeAttribute(n)}),uu--,uu||(lo=new WeakMap,lo=new WeakMap,Hl=new WeakMap,Bl={})}},Vg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=aC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),uC(r,o,n,"aria-hidden")):function(){return null}},Tn=function(){return Tn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){l={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i}function vc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r"u")return _C;var t=kC(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},NC=Qg(),To="data-scroll-locked",PC=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(cC,` { + */const kE=gt("Trash",[["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"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const RE=gt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);function NE({page:e,setPage:t,rowsPerPage:n,rowCount:r}){const o=Math.ceil(r/n),i=Math.floor(e/n)+1,l=()=>{i{i>1&&t(e-n)};return b.jsx("section",{className:"fixed bottom-[8px] left-0 right-0 w-[270px] mx-auto z-10",children:b.jsxs("div",{className:"flex justify-between gap-2 bg-secondary p-[6px] border rounded",children:[b.jsx(rn,{onClick:s,disabled:i===1,children:b.jsx(fE,{className:"h-4 w-4"})}),b.jsxs("span",{className:"text-sm flex items-center justify-center",children:["Page ",i," of ",o]}),b.jsx(rn,{onClick:l,disabled:i>=o,children:b.jsx(pE,{className:"h-4 w-4"})})]})})}function Xp(e,[t,n]){return Math.min(n,Math.max(t,e))}function Te(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function PE(e,t){const n=g.createContext(t);function r(i){const{children:l,...s}=i,d=g.useMemo(()=>s,Object.values(s));return b.jsx(n.Provider,{value:d,children:l})}function o(i){const l=g.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function qo(e,t=[]){let n=[];function r(i,l){const s=g.createContext(l),d=n.length;n=[...n,l];function u(h){const{scope:f,children:w,...C}=h,S=(f==null?void 0:f[e][d])||s,R=g.useMemo(()=>C,Object.values(C));return b.jsx(S.Provider,{value:R,children:w})}function m(h,f){const w=(f==null?void 0:f[e][d])||s,C=g.useContext(w);if(C)return C;if(l!==void 0)return l;throw new Error(`\`${h}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,m]}const o=()=>{const i=n.map(l=>g.createContext(l));return function(s){const d=(s==null?void 0:s[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...s,[e]:d}}),[s,d])}};return o.scopeName=e,[r,TE(o,...t)]}function TE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:d,scopeName:u})=>{const h=d(i)[`__scope${u}`];return{...s,...h}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function AE(e){const t=e+"CollectionProvider",[n,r]=qo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:C,children:S}=w,R=A.useRef(null),y=A.useRef(new Map).current;return b.jsx(o,{scope:C,itemMap:y,collectionRef:R,children:S})};l.displayName=t;const s=e+"CollectionSlot",d=A.forwardRef((w,C)=>{const{scope:S,children:R}=w,y=i(s,S),v=Ye(C,y.collectionRef);return b.jsx(Kr,{ref:v,children:R})});d.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",h=A.forwardRef((w,C)=>{const{scope:S,children:R,...y}=w,v=A.useRef(null),x=Ye(C,v),_=i(u,S);return A.useEffect(()=>(_.itemMap.set(v,{ref:v,...y}),()=>void _.itemMap.delete(v))),b.jsx(Kr,{[m]:"",ref:x,children:R})});h.displayName=u;function f(w){const C=i(e+"CollectionConsumer",w);return A.useCallback(()=>{const R=C.collectionRef.current;if(!R)return[];const y=Array.from(R.querySelectorAll(`[${m}]`));return Array.from(C.itemMap.values()).sort((_,N)=>y.indexOf(_.ref.current)-y.indexOf(N.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:l,Slot:d,ItemSlot:h},f,r]}var DE=g.createContext(void 0);function OE(e){const t=g.useContext(DE);return e||t||"ltr"}var jE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ue=jE.reduce((e,t)=>{const n=g.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Kr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ME(e,t){e&&eo.flushSync(()=>e.dispatchEvent(t))}function Kn(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function IE(e,t=globalThis==null?void 0:globalThis.document){const n=Kn(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var LE="DismissableLayer",pc="dismissableLayer.update",FE="dismissableLayer.pointerDownOutside",zE="dismissableLayer.focusOutside",Zp,vg=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fs=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...d}=e,u=g.useContext(vg),[m,h]=g.useState(null),f=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=g.useState({}),C=Ye(t,P=>h(P)),S=Array.from(u.layers),[R]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=S.indexOf(R),v=m?S.indexOf(m):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,_=v>=y,N=BE(P=>{const j=P.target,z=[...u.branches].some(F=>F.contains(j));!_||z||(o==null||o(P),l==null||l(P),P.defaultPrevented||s==null||s())},f),D=UE(P=>{const j=P.target;[...u.branches].some(F=>F.contains(j))||(i==null||i(P),l==null||l(P),P.defaultPrevented||s==null||s())},f);return IE(P=>{v===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&s&&(P.preventDefault(),s()))},f),g.useEffect(()=>{if(m)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Zp=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),Jp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Zp)}},[m,f,n,u]),g.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),Jp())},[m,u]),g.useEffect(()=>{const P=()=>w({});return document.addEventListener(pc,P),()=>document.removeEventListener(pc,P)},[]),b.jsx(Ue.div,{...d,ref:C,style:{pointerEvents:x?_?"auto":"none":void 0,...e.style},onFocusCapture:Te(e.onFocusCapture,D.onFocusCapture),onBlurCapture:Te(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:Te(e.onPointerDownCapture,N.onPointerDownCapture)})});fs.displayName=LE;var $E="DismissableLayerBranch",HE=g.forwardRef((e,t)=>{const n=g.useContext(vg),r=g.useRef(null),o=Ye(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(Ue.div,{...e,ref:o})});HE.displayName=$E;function BE(e,t=globalThis==null?void 0:globalThis.document){const n=Kn(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){gg(FE,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function UE(e,t=globalThis==null?void 0:globalThis.document){const n=Kn(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&gg(zE,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jp(){const e=new CustomEvent(pc);document.dispatchEvent(e)}function gg(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ME(o,i):o.dispatchEvent(i)}var iu=0;function yg(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??em()),document.body.insertAdjacentElement("beforeend",e[1]??em()),iu++,()=>{iu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),iu--}},[])}function em(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var lu="focusScope.autoFocusOnMount",au="focusScope.autoFocusOnUnmount",tm={bubbles:!1,cancelable:!0},WE="FocusScope",Dd=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[s,d]=g.useState(null),u=Kn(o),m=Kn(i),h=g.useRef(null),f=Ye(t,S=>d(S)),w=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let S=function(x){if(w.paused||!s)return;const _=x.target;s.contains(_)?h.current=_:ir(h.current,{select:!0})},R=function(x){if(w.paused||!s)return;const _=x.relatedTarget;_!==null&&(s.contains(_)||ir(h.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const N of x)N.removedNodes.length>0&&ir(s)};document.addEventListener("focusin",S),document.addEventListener("focusout",R);const v=new MutationObserver(y);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",R),v.disconnect()}}},[r,s,w.paused]),g.useEffect(()=>{if(s){rm.add(w);const S=document.activeElement;if(!s.contains(S)){const y=new CustomEvent(lu,tm);s.addEventListener(lu,u),s.dispatchEvent(y),y.defaultPrevented||(VE(YE(wg(s)),{select:!0}),document.activeElement===S&&ir(s))}return()=>{s.removeEventListener(lu,u),setTimeout(()=>{const y=new CustomEvent(au,tm);s.addEventListener(au,m),s.dispatchEvent(y),y.defaultPrevented||ir(S??document.body,{select:!0}),s.removeEventListener(au,m),rm.remove(w)},0)}}},[s,u,m,w]);const C=g.useCallback(S=>{if(!n&&!r||w.paused)return;const R=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,y=document.activeElement;if(R&&y){const v=S.currentTarget,[x,_]=qE(v);x&&_?!S.shiftKey&&y===_?(S.preventDefault(),n&&ir(x,{select:!0})):S.shiftKey&&y===x&&(S.preventDefault(),n&&ir(_,{select:!0})):y===v&&S.preventDefault()}},[n,r,w.paused]);return b.jsx(Ue.div,{tabIndex:-1,...l,ref:f,onKeyDown:C})});Dd.displayName=WE;function VE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ir(r,{select:t}),document.activeElement!==n)return}function qE(e){const t=wg(e),n=nm(t,e),r=nm(t.reverse(),e);return[n,r]}function wg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nm(e,t){for(const n of e)if(!GE(n,{upTo:t}))return n}function GE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function KE(e){return e instanceof HTMLInputElement&&"select"in e}function ir(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&KE(e)&&t&&e.select()}}var rm=QE();function QE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=om(e,t),e.unshift(t)},remove(t){var n;e=om(e,t),(n=e[0])==null||n.resume()}}}function om(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function YE(e){return e.filter(t=>t.tagName!=="A")}var Ot=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},XE=N1.useId||(()=>{}),ZE=0;function Po(e){const[t,n]=g.useState(XE());return Ot(()=>{n(r=>r??String(ZE++))},[e]),t?`radix-${t}`:""}const JE=["top","right","bottom","left"],An=Math.min,qt=Math.max,La=Math.round,$l=Math.floor,Sr=e=>({x:e,y:e}),e2={left:"right",right:"left",bottom:"top",top:"bottom"},t2={start:"end",end:"start"};function mc(e,t,n){return qt(e,An(t,n))}function Qn(e,t){return typeof e=="function"?e(t):e}function Yn(e){return e.split("-")[0]}function Go(e){return e.split("-")[1]}function Od(e){return e==="x"?"y":"x"}function jd(e){return e==="y"?"height":"width"}function Ko(e){return["top","bottom"].includes(Yn(e))?"y":"x"}function Md(e){return Od(Ko(e))}function n2(e,t,n){n===void 0&&(n=!1);const r=Go(e),o=Md(e),i=jd(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Fa(l)),[l,Fa(l)]}function r2(e){const t=Fa(e);return[hc(e),t,hc(t)]}function hc(e){return e.replace(/start|end/g,t=>t2[t])}function o2(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function i2(e,t,n,r){const o=Go(e);let i=o2(Yn(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(hc)))),i}function Fa(e){return e.replace(/left|right|bottom|top/g,t=>e2[t])}function l2(e){return{top:0,right:0,bottom:0,left:0,...e}}function xg(e){return typeof e!="number"?l2(e):{top:e,right:e,bottom:e,left:e}}function za(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function im(e,t,n){let{reference:r,floating:o}=e;const i=Ko(t),l=Md(t),s=jd(l),d=Yn(t),u=i==="y",m=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let w;switch(d){case"top":w={x:m,y:r.y-o.height};break;case"bottom":w={x:m,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:h};break;case"left":w={x:r.x-o.width,y:h};break;default:w={x:r.x,y:r.y}}switch(Go(t)){case"start":w[l]-=f*(n&&u?-1:1);break;case"end":w[l]+=f*(n&&u?-1:1);break}return w}const a2=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:h}=im(u,r,d),f=r,w={},C=0;for(let S=0;S({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:d}=t,{element:u,padding:m=0}=Qn(e,t)||{};if(u==null)return{};const h=xg(m),f={x:n,y:r},w=Md(o),C=jd(w),S=await l.getDimensions(u),R=w==="y",y=R?"top":"left",v=R?"bottom":"right",x=R?"clientHeight":"clientWidth",_=i.reference[C]+i.reference[w]-f[w]-i.floating[C],N=f[w]-i.reference[w],D=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let P=D?D[x]:0;(!P||!await(l.isElement==null?void 0:l.isElement(D)))&&(P=s.floating[x]||i.floating[C]);const j=_/2-N/2,z=P/2-S[C]/2-1,F=An(h[y],z),q=An(h[v],z),W=F,$=P-S[C]-q,V=P/2-S[C]/2+j,Z=mc(W,V,$),oe=!d.arrow&&Go(o)!=null&&V!==Z&&i.reference[C]/2-(VW<=0)){var z,F;const W=(((z=i.flip)==null?void 0:z.index)||0)+1,$=N[W];if($)return{data:{index:W,overflows:j},reset:{placement:$}};let V=(F=j.filter(Z=>Z.overflows[0]<=0).sort((Z,oe)=>Z.overflows[1]-oe.overflows[1])[0])==null?void 0:F.placement;if(!V)switch(w){case"bestFit":{var q;const Z=(q=j.map(oe=>[oe.placement,oe.overflows.filter(re=>re>0).reduce((re,M)=>re+M,0)]).sort((oe,re)=>oe[1]-re[1])[0])==null?void 0:q[0];Z&&(V=Z);break}case"initialPlacement":V=s;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function lm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function am(e){return JE.some(t=>e[t]>=0)}const c2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Qn(e,t);switch(r){case"referenceHidden":{const i=await Yi(t,{...o,elementContext:"reference"}),l=lm(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:am(l)}}}case"escaped":{const i=await Yi(t,{...o,altBoundary:!0}),l=lm(i,n.floating);return{data:{escapedOffsets:l,escaped:am(l)}}}default:return{}}}}};async function d2(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Yn(n),s=Go(n),d=Ko(n)==="y",u=["left","top"].includes(l)?-1:1,m=i&&d?-1:1,h=Qn(t,e);let{mainAxis:f,crossAxis:w,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&typeof C=="number"&&(w=s==="end"?C*-1:C),d?{x:w*m,y:f*u}:{x:f*u,y:w*m}}const f2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,d=await d2(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:l}}}}},p2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:R=>{let{x:y,y:v}=R;return{x:y,y:v}}},...d}=Qn(e,t),u={x:n,y:r},m=await Yi(t,d),h=Ko(Yn(o)),f=Od(h);let w=u[f],C=u[h];if(i){const R=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=w+m[R],x=w-m[y];w=mc(v,w,x)}if(l){const R=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=C+m[R],x=C-m[y];C=mc(v,C,x)}const S=s.fn({...t,[f]:w,[h]:C});return{...S,data:{x:S.x-n,y:S.y-r}}}}},m2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:d=!0,crossAxis:u=!0}=Qn(e,t),m={x:n,y:r},h=Ko(o),f=Od(h);let w=m[f],C=m[h];const S=Qn(s,t),R=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(d){const x=f==="y"?"height":"width",_=i.reference[f]-i.floating[x]+R.mainAxis,N=i.reference[f]+i.reference[x]-R.mainAxis;w<_?w=_:w>N&&(w=N)}if(u){var y,v;const x=f==="y"?"width":"height",_=["top","left"].includes(Yn(o)),N=i.reference[h]-i.floating[x]+(_&&((y=l.offset)==null?void 0:y[h])||0)+(_?0:R.crossAxis),D=i.reference[h]+i.reference[x]+(_?0:((v=l.offset)==null?void 0:v[h])||0)-(_?R.crossAxis:0);CD&&(C=D)}return{[f]:w,[h]:C}}}},h2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...s}=Qn(e,t),d=await Yi(t,s),u=Yn(n),m=Go(n),h=Ko(n)==="y",{width:f,height:w}=r.floating;let C,S;u==="top"||u==="bottom"?(C=u,S=m===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(S=u,C=m==="end"?"top":"bottom");const R=w-d.top-d.bottom,y=f-d.left-d.right,v=An(w-d[C],R),x=An(f-d[S],y),_=!t.middlewareData.shift;let N=v,D=x;if(h?D=m||_?An(x,y):y:N=m||_?An(v,R):R,_&&!m){const j=qt(d.left,0),z=qt(d.right,0),F=qt(d.top,0),q=qt(d.bottom,0);h?D=f-2*(j!==0||z!==0?j+z:qt(d.left,d.right)):N=w-2*(F!==0||q!==0?F+q:qt(d.top,d.bottom))}await l({...t,availableWidth:D,availableHeight:N});const P=await o.getDimensions(i.floating);return f!==P.width||w!==P.height?{reset:{rects:!0}}:{}}}};function Qo(e){return bg(e)?(e.nodeName||"").toLowerCase():"#document"}function Qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zn(e){var t;return(t=(bg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bg(e){return e instanceof Node||e instanceof Qt(e).Node}function jn(e){return e instanceof Element||e instanceof Qt(e).Element}function Mn(e){return e instanceof HTMLElement||e instanceof Qt(e).HTMLElement}function sm(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qt(e).ShadowRoot}function il(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function v2(e){return["table","td","th"].includes(Qo(e))}function Id(e){const t=Ld(),n=xn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function g2(e){let t=Er(e);for(;Mn(t)&&!Ho(t);){if(Id(t))return t;t=Er(t)}return null}function Ld(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ho(e){return["html","body","#document"].includes(Qo(e))}function xn(e){return Qt(e).getComputedStyle(e)}function ps(e){return jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Er(e){if(Qo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sm(e)&&e.host||Zn(e);return sm(t)?t.host:t}function Sg(e){const t=Er(e);return Ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mn(t)&&il(t)?t:Sg(t)}function Xi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Sg(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Qt(o);return i?t.concat(l,l.visualViewport||[],il(o)?o:[],l.frameElement&&n?Xi(l.frameElement):[]):t.concat(o,Xi(o,[],n))}function Eg(e){const t=xn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Mn(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=La(n)!==i||La(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Fd(e){return jn(e)?e:e.contextElement}function To(e){const t=Fd(e);if(!Mn(t))return Sr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Eg(t);let l=(i?La(n.width):n.width)/r,s=(i?La(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const y2=Sr(0);function Cg(e){const t=Qt(e);return!Ld()||!t.visualViewport?y2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function w2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qt(e)?!1:t}function Qr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Fd(e);let l=Sr(1);t&&(r?jn(r)&&(l=To(r)):l=To(e));const s=w2(i,n,r)?Cg(i):Sr(0);let d=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,m=o.width/l.x,h=o.height/l.y;if(i){const f=Qt(i),w=r&&jn(r)?Qt(r):r;let C=f,S=C.frameElement;for(;S&&r&&w!==C;){const R=To(S),y=S.getBoundingClientRect(),v=xn(S),x=y.left+(S.clientLeft+parseFloat(v.paddingLeft))*R.x,_=y.top+(S.clientTop+parseFloat(v.paddingTop))*R.y;d*=R.x,u*=R.y,m*=R.x,h*=R.y,d+=x,u+=_,C=Qt(S),S=C.frameElement}}return za({width:m,height:h,x:d,y:u})}const x2=[":popover-open",":modal"];function zd(e){return x2.some(t=>{try{return e.matches(t)}catch{return!1}})}function b2(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=Zn(r),s=t?zd(t.floating):!1;if(r===l||s&&i)return n;let d={scrollLeft:0,scrollTop:0},u=Sr(1);const m=Sr(0),h=Mn(r);if((h||!h&&!i)&&((Qo(r)!=="body"||il(l))&&(d=ps(r)),Mn(r))){const f=Qr(r);u=To(r),m.x=f.x+r.clientLeft,m.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+m.x,y:n.y*u.y-d.scrollTop*u.y+m.y}}function S2(e){return Array.from(e.getClientRects())}function _g(e){return Qr(Zn(e)).left+ps(e).scrollLeft}function E2(e){const t=Zn(e),n=ps(e),r=e.ownerDocument.body,o=qt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=qt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+_g(e);const s=-n.scrollTop;return xn(r).direction==="rtl"&&(l+=qt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function C2(e,t){const n=Qt(e),r=Zn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,d=0;if(o){i=o.width,l=o.height;const u=Ld();(!u||u&&t==="fixed")&&(s=o.offsetLeft,d=o.offsetTop)}return{width:i,height:l,x:s,y:d}}function _2(e,t){const n=Qr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Mn(e)?To(e):Sr(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,d=o*i.x,u=r*i.y;return{width:l,height:s,x:d,y:u}}function um(e,t,n){let r;if(t==="viewport")r=C2(e,n);else if(t==="document")r=E2(Zn(e));else if(jn(t))r=_2(t,n);else{const o=Cg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return za(r)}function kg(e,t){const n=Er(e);return n===t||!jn(n)||Ho(n)?!1:xn(n).position==="fixed"||kg(n,t)}function k2(e,t){const n=t.get(e);if(n)return n;let r=Xi(e,[],!1).filter(s=>jn(s)&&Qo(s)!=="body"),o=null;const i=xn(e).position==="fixed";let l=i?Er(e):e;for(;jn(l)&&!Ho(l);){const s=xn(l),d=Id(l);!d&&s.position==="fixed"&&(o=null),(i?!d&&!o:!d&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||il(l)&&!d&&kg(e,l))?r=r.filter(m=>m!==l):o=s,l=Er(l)}return t.set(e,r),r}function R2(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?zd(t)?[]:k2(t,this._c):[].concat(n),r],s=l[0],d=l.reduce((u,m)=>{const h=um(t,m,o);return u.top=qt(h.top,u.top),u.right=An(h.right,u.right),u.bottom=An(h.bottom,u.bottom),u.left=qt(h.left,u.left),u},um(t,s,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function N2(e){const{width:t,height:n}=Eg(e);return{width:t,height:n}}function P2(e,t,n){const r=Mn(t),o=Zn(t),i=n==="fixed",l=Qr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const d=Sr(0);if(r||!r&&!i)if((Qo(t)!=="body"||il(o))&&(s=ps(t)),r){const h=Qr(t,!0,i,t);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else o&&(d.x=_g(o));const u=l.left+s.scrollLeft-d.x,m=l.top+s.scrollTop-d.y;return{x:u,y:m,width:l.width,height:l.height}}function su(e){return xn(e).position==="static"}function cm(e,t){return!Mn(e)||xn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Rg(e,t){const n=Qt(e);if(zd(e))return n;if(!Mn(e)){let o=Er(e);for(;o&&!Ho(o);){if(jn(o)&&!su(o))return o;o=Er(o)}return n}let r=cm(e,t);for(;r&&v2(r)&&su(r);)r=cm(r,t);return r&&Ho(r)&&su(r)&&!Id(r)?n:r||g2(e)||n}const T2=async function(e){const t=this.getOffsetParent||Rg,n=this.getDimensions,r=await n(e.floating);return{reference:P2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function A2(e){return xn(e).direction==="rtl"}const D2={convertOffsetParentRelativeRectToViewportRelativeRect:b2,getDocumentElement:Zn,getClippingRect:R2,getOffsetParent:Rg,getElementRects:T2,getClientRects:S2,getDimensions:N2,getScale:To,isElement:jn,isRTL:A2};function O2(e,t){let n=null,r;const o=Zn(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,d){s===void 0&&(s=!1),d===void 0&&(d=1),i();const{left:u,top:m,width:h,height:f}=e.getBoundingClientRect();if(s||t(),!h||!f)return;const w=$l(m),C=$l(o.clientWidth-(u+h)),S=$l(o.clientHeight-(m+f)),R=$l(u),v={rootMargin:-w+"px "+-C+"px "+-S+"px "+-R+"px",threshold:qt(0,An(1,d))||1};let x=!0;function _(N){const D=N[0].intersectionRatio;if(D!==d){if(!x)return l();D?l(!1,D):r=setTimeout(()=>{l(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(_,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,v)}n.observe(e)}return l(!0),i}function j2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=Fd(e),m=o||i?[...u?Xi(u):[],...Xi(t)]:[];m.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const h=u&&s?O2(u,n):null;let f=-1,w=null;l&&(w=new ResizeObserver(y=>{let[v]=y;v&&v.target===u&&w&&(w.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=w)==null||x.observe(t)})),n()}),u&&!d&&w.observe(u),w.observe(t));let C,S=d?Qr(e):null;d&&R();function R(){const y=Qr(e);S&&(y.x!==S.x||y.y!==S.y||y.width!==S.width||y.height!==S.height)&&n(),S=y,C=requestAnimationFrame(R)}return n(),()=>{var y;m.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h==null||h(),(y=w)==null||y.disconnect(),w=null,d&&cancelAnimationFrame(C)}}const M2=f2,I2=p2,L2=u2,F2=h2,z2=c2,dm=s2,$2=m2,H2=(e,t,n)=>{const r=new Map,o={platform:D2,...n},i={...o.platform,_c:r};return a2(e,t,{...o,platform:i})};var ua=typeof document<"u"?g.useLayoutEffect:g.useEffect;function $a(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!$a(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!$a(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ng(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fm(e,t){const n=Ng(e);return Math.round(t*n)/n}function pm(e){const t=g.useRef(e);return ua(()=>{t.current=e}),t}function B2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:d,open:u}=e,[m,h]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,w]=g.useState(r);$a(f,r)||w(r);const[C,S]=g.useState(null),[R,y]=g.useState(null),v=g.useCallback(re=>{re!==D.current&&(D.current=re,S(re))},[]),x=g.useCallback(re=>{re!==P.current&&(P.current=re,y(re))},[]),_=i||C,N=l||R,D=g.useRef(null),P=g.useRef(null),j=g.useRef(m),z=d!=null,F=pm(d),q=pm(o),W=g.useCallback(()=>{if(!D.current||!P.current)return;const re={placement:t,strategy:n,middleware:f};q.current&&(re.platform=q.current),H2(D.current,P.current,re).then(M=>{const B={...M,isPositioned:!0};$.current&&!$a(j.current,B)&&(j.current=B,eo.flushSync(()=>{h(B)}))})},[f,t,n,q]);ua(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,h(re=>({...re,isPositioned:!1})))},[u]);const $=g.useRef(!1);ua(()=>($.current=!0,()=>{$.current=!1}),[]),ua(()=>{if(_&&(D.current=_),N&&(P.current=N),_&&N){if(F.current)return F.current(_,N,W);W()}},[_,N,W,F,z]);const V=g.useMemo(()=>({reference:D,floating:P,setReference:v,setFloating:x}),[v,x]),Z=g.useMemo(()=>({reference:_,floating:N}),[_,N]),oe=g.useMemo(()=>{const re={position:n,left:0,top:0};if(!Z.floating)return re;const M=fm(Z.floating,m.x),B=fm(Z.floating,m.y);return s?{...re,transform:"translate("+M+"px, "+B+"px)",...Ng(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:B}},[n,s,Z.floating,m.x,m.y]);return g.useMemo(()=>({...m,update:W,refs:V,elements:Z,floatingStyles:oe}),[m,W,V,Z,oe])}const U2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?dm({element:r.current,padding:o}).fn(n):{}:r?dm({element:r,padding:o}).fn(n):{}}}},W2=(e,t)=>({...M2(e),options:[e,t]}),V2=(e,t)=>({...I2(e),options:[e,t]}),q2=(e,t)=>({...$2(e),options:[e,t]}),G2=(e,t)=>({...L2(e),options:[e,t]}),K2=(e,t)=>({...F2(e),options:[e,t]}),Q2=(e,t)=>({...z2(e),options:[e,t]}),Y2=(e,t)=>({...U2(e),options:[e,t]});var X2="Arrow",Pg=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(Ue.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Pg.displayName=X2;var Z2=Pg;function J2(e){const[t,n]=g.useState(void 0);return Ot(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const d=i.borderBoxSize,u=Array.isArray(d)?d[0]:d;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var $d="Popper",[Tg,ms]=qo($d),[eC,Ag]=Tg($d),Dg=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return b.jsx(eC,{scope:t,anchor:r,onAnchorChange:o,children:n})};Dg.displayName=$d;var Og="PopperAnchor",jg=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ag(Og,n),l=g.useRef(null),s=Ye(t,l);return g.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:b.jsx(Ue.div,{...o,ref:s})});jg.displayName=Og;var Hd="PopperContent",[tC,nC]=Tg(Hd),Mg=g.forwardRef((e,t)=>{var ee,we,De,K,be,ve;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:w="optimized",onPlaced:C,...S}=e,R=Ag(Hd,n),[y,v]=g.useState(null),x=Ye(t,J=>v(J)),[_,N]=g.useState(null),D=J2(_),P=(D==null?void 0:D.width)??0,j=(D==null?void 0:D.height)??0,z=r+(i!=="center"?"-"+i:""),F=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},q=Array.isArray(u)?u:[u],W=q.length>0,$={padding:F,boundary:q.filter(oC),altBoundary:W},{refs:V,floatingStyles:Z,placement:oe,isPositioned:re,middlewareData:M}=B2({strategy:"fixed",placement:z,whileElementsMounted:(...J)=>j2(...J,{animationFrame:w==="always"}),elements:{reference:R.anchor},middleware:[W2({mainAxis:o+j,alignmentAxis:l}),d&&V2({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?q2():void 0,...$}),d&&G2({...$}),K2({...$,apply:({elements:J,rects:xe,availableWidth:ot,availableHeight:Ie})=>{const{width:nt,height:bt}=xe.reference,ge=J.floating.style;ge.setProperty("--radix-popper-available-width",`${ot}px`),ge.setProperty("--radix-popper-available-height",`${Ie}px`),ge.setProperty("--radix-popper-anchor-width",`${nt}px`),ge.setProperty("--radix-popper-anchor-height",`${bt}px`)}}),_&&Y2({element:_,padding:s}),iC({arrowWidth:P,arrowHeight:j}),f&&Q2({strategy:"referenceHidden",...$})]}),[B,ne]=Fg(oe),Y=Kn(C);Ot(()=>{re&&(Y==null||Y())},[re,Y]);const X=(ee=M.arrow)==null?void 0:ee.x,me=(we=M.arrow)==null?void 0:we.y,pe=((De=M.arrow)==null?void 0:De.centerOffset)!==0,[Oe,ce]=g.useState();return Ot(()=>{y&&ce(window.getComputedStyle(y).zIndex)},[y]),b.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:re?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oe,"--radix-popper-transform-origin":[(K=M.transformOrigin)==null?void 0:K.x,(be=M.transformOrigin)==null?void 0:be.y].join(" "),...((ve=M.hide)==null?void 0:ve.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(tC,{scope:n,placedSide:B,onArrowChange:N,arrowX:X,arrowY:me,shouldHideArrow:pe,children:b.jsx(Ue.div,{"data-side":B,"data-align":ne,...S,ref:x,style:{...S.style,animation:re?void 0:"none"}})})})});Mg.displayName=Hd;var Ig="PopperArrow",rC={top:"bottom",right:"left",bottom:"top",left:"right"},Lg=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=nC(Ig,r),l=rC[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]: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:b.jsx(Z2,{...o,ref:n,style:{...o.style,display:"block"}})})});Lg.displayName=Ig;function oC(e){return e!==null}var iC=e=>({name:"transformOrigin",options:e,fn(t){var R,y,v;const{placement:n,rects:r,middlewareData:o}=t,l=((R=o.arrow)==null?void 0:R.centerOffset)!==0,s=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[u,m]=Fg(n),h={start:"0%",center:"50%",end:"100%"}[m],f=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,w=(((v=o.arrow)==null?void 0:v.y)??0)+d/2;let C="",S="";return u==="bottom"?(C=l?h:`${f}px`,S=`${-d}px`):u==="top"?(C=l?h:`${f}px`,S=`${r.floating.height+d}px`):u==="right"?(C=`${-d}px`,S=l?h:`${w}px`):u==="left"&&(C=`${r.floating.width+d}px`,S=l?h:`${w}px`),{data:{x:C,y:S}}}});function Fg(e){const[t,n="center"]=e.split("-");return[t,n]}var zg=Dg,$g=jg,Hg=Mg,Bg=Lg,lC="Portal",Bd=g.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=g.useState(!1);Ot(()=>i(!0),[]);const l=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return l?Kv.createPortal(b.jsx(Ue.div,{...r,ref:t}),l):null});Bd.displayName=lC;function Ha({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=aC({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=Kn(n),d=g.useCallback(u=>{if(i){const h=typeof u=="function"?u(e):u;h!==e&&s(h)}else o(u)},[i,e,o,s]);return[l,d]}function aC({defaultProp:e,onChange:t}){const n=g.useState(e),[r]=n,o=g.useRef(r),i=Kn(t);return g.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function sC(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var uC="VisuallyHidden",Ug=g.forwardRef((e,t)=>b.jsx(Ue.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Ug.displayName=uC;var cC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ao=new WeakMap,Hl=new WeakMap,Bl={},uu=0,Wg=function(e){return e&&(e.host||Wg(e.parentNode))},dC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Wg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},fC=function(e,t,n,r){var o=dC(t,Array.isArray(e)?e:[e]);Bl[n]||(Bl[n]=new WeakMap);var i=Bl[n],l=[],s=new Set,d=new Set(o),u=function(h){!h||s.has(h)||(s.add(h),u(h.parentNode))};o.forEach(u);var m=function(h){!h||d.has(h)||Array.prototype.forEach.call(h.children,function(f){if(s.has(f))m(f);else try{var w=f.getAttribute(r),C=w!==null&&w!=="false",S=(ao.get(f)||0)+1,R=(i.get(f)||0)+1;ao.set(f,S),i.set(f,R),l.push(f),S===1&&C&&Hl.set(f,!0),R===1&&f.setAttribute(n,"true"),C||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return m(t),s.clear(),uu++,function(){l.forEach(function(h){var f=ao.get(h)-1,w=i.get(h)-1;ao.set(h,f),i.set(h,w),f||(Hl.has(h)||h.removeAttribute(r),Hl.delete(h)),w||h.removeAttribute(n)}),uu--,uu||(ao=new WeakMap,ao=new WeakMap,Hl=new WeakMap,Bl={})}},Vg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=cC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),fC(r,o,n,"aria-hidden")):function(){return null}},Tn=function(){return Tn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){l={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i}function vc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r"u")return NC;var t=PC(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},AC=Qg(),Ao="data-scroll-locked",DC=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(pC,` { overflow: hidden `).concat(r,`; padding-right: `).concat(s,"px ").concat(r,`; } - body[`).concat(To,`] { + body[`).concat(Ao,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` @@ -195,25 +200,25 @@ Error generating stack: `+i.message+` margin-right: 0 `).concat(r,`; } - body[`).concat(To,`] { - `).concat(dC,": ").concat(s,`px; + body[`).concat(Ao,`] { + `).concat(mC,": ").concat(s,`px; } -`)},vm=function(){var e=parseInt(document.body.getAttribute(To)||"0",10);return isFinite(e)?e:0},TC=function(){v.useEffect(function(){return document.body.setAttribute(To,(vm()+1).toString()),function(){var e=vm()-1;e<=0?document.body.removeAttribute(To):document.body.setAttribute(To,e.toString())}},[])},AC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;TC();var i=v.useMemo(function(){return RC(o)},[o]);return v.createElement(NC,{styles:PC(i,!t,o,n?"":"!important")})},gc=!1;if(typeof window<"u")try{var Ul=Object.defineProperty({},"passive",{get:function(){return gc=!0,!0}});window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{gc=!1}var ao=gc?{passive:!1}:!1,DC=function(e){return e.tagName==="TEXTAREA"},Yg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!DC(e)&&n[t]==="visible")},OC=function(e){return Yg(e,"overflowY")},jC=function(e){return Yg(e,"overflowX")},gm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Xg(e,r);if(o){var i=Zg(e,r),l=i[1],s=i[2];if(l>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},MC=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},IC=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Xg=function(e,t){return e==="v"?OC(t):jC(t)},Zg=function(e,t){return e==="v"?MC(t):IC(t)},LC=function(e,t){return e==="h"&&t==="rtl"?-1:1},FC=function(e,t,n,r,o){var i=LC(e,window.getComputedStyle(t).direction),l=i*r,s=n.target,d=t.contains(s),u=!1,m=l>0,h=0,f=0;do{var w=Zg(e,s),C=w[0],S=w[1],R=w[2],y=S-R-i*C;(C||y)&&Xg(e,s)&&(h+=y,f+=C),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!d&&s!==document.body||d&&(t.contains(s)||t===s));return(m&&(Math.abs(h)<1||!o)||!m&&(Math.abs(f)<1||!o))&&(u=!0),u},Wl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ym=function(e){return[e.deltaX,e.deltaY]},wm=function(e){return e&&"current"in e?e.current:e},$C=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zC=function(e){return` +`)},vm=function(){var e=parseInt(document.body.getAttribute(Ao)||"0",10);return isFinite(e)?e:0},OC=function(){g.useEffect(function(){return document.body.setAttribute(Ao,(vm()+1).toString()),function(){var e=vm()-1;e<=0?document.body.removeAttribute(Ao):document.body.setAttribute(Ao,e.toString())}},[])},jC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;OC();var i=g.useMemo(function(){return TC(o)},[o]);return g.createElement(AC,{styles:DC(i,!t,o,n?"":"!important")})},gc=!1;if(typeof window<"u")try{var Ul=Object.defineProperty({},"passive",{get:function(){return gc=!0,!0}});window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{gc=!1}var so=gc?{passive:!1}:!1,MC=function(e){return e.tagName==="TEXTAREA"},Yg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!MC(e)&&n[t]==="visible")},IC=function(e){return Yg(e,"overflowY")},LC=function(e){return Yg(e,"overflowX")},gm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Xg(e,r);if(o){var i=Zg(e,r),l=i[1],s=i[2];if(l>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},FC=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},zC=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Xg=function(e,t){return e==="v"?IC(t):LC(t)},Zg=function(e,t){return e==="v"?FC(t):zC(t)},$C=function(e,t){return e==="h"&&t==="rtl"?-1:1},HC=function(e,t,n,r,o){var i=$C(e,window.getComputedStyle(t).direction),l=i*r,s=n.target,d=t.contains(s),u=!1,m=l>0,h=0,f=0;do{var w=Zg(e,s),C=w[0],S=w[1],R=w[2],y=S-R-i*C;(C||y)&&Xg(e,s)&&(h+=y,f+=C),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!d&&s!==document.body||d&&(t.contains(s)||t===s));return(m&&(Math.abs(h)<1||!o)||!m&&(Math.abs(f)<1||!o))&&(u=!0),u},Wl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ym=function(e){return[e.deltaX,e.deltaY]},wm=function(e){return e&&"current"in e?e.current:e},BC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},UC=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},HC=0,so=[];function BC(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(HC++)[0],i=v.useState(Qg)[0],l=v.useRef(e);v.useEffect(function(){l.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=vc([e.lockRef.current],(e.shards||[]).map(wm),!0).filter(Boolean);return S.forEach(function(R){return R.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback(function(S,R){if("touches"in S&&S.touches.length===2)return!l.current.allowPinchZoom;var y=Wl(S),g=n.current,x="deltaX"in S?S.deltaX:g[0]-y[0],_="deltaY"in S?S.deltaY:g[1]-y[1],N,A=S.target,P=Math.abs(x)>Math.abs(_)?"h":"v";if("touches"in S&&P==="h"&&A.type==="range")return!1;var j=gm(P,A);if(!j)return!0;if(j?N=P:(N=P==="v"?"h":"v",j=gm(P,A)),!j)return!1;if(!r.current&&"changedTouches"in S&&(x||_)&&(r.current=N),!N)return!0;var F=r.current||N;return FC(F,R,S,F==="h"?x:_,!0)},[]),d=v.useCallback(function(S){var R=S;if(!(!so.length||so[so.length-1]!==i)){var y="deltaY"in R?ym(R):Wl(R),g=t.current.filter(function(N){return N.name===R.type&&(N.target===R.target||R.target===N.shadowParent)&&$C(N.delta,y)})[0];if(g&&g.should){R.cancelable&&R.preventDefault();return}if(!g){var x=(l.current.shards||[]).map(wm).filter(Boolean).filter(function(N){return N.contains(R.target)}),_=x.length>0?s(R,x[0]):!l.current.noIsolation;_&&R.cancelable&&R.preventDefault()}}},[]),u=v.useCallback(function(S,R,y,g){var x={name:S,delta:R,target:y,should:g,shadowParent:UC(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(_){return _!==x})},1)},[]),m=v.useCallback(function(S){n.current=Wl(S),r.current=void 0},[]),h=v.useCallback(function(S){u(S.type,ym(S),S.target,s(S,e.lockRef.current))},[]),f=v.useCallback(function(S){u(S.type,Wl(S),S.target,s(S,e.lockRef.current))},[]);v.useEffect(function(){return so.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,ao),document.addEventListener("touchmove",d,ao),document.addEventListener("touchstart",m,ao),function(){so=so.filter(function(S){return S!==i}),document.removeEventListener("wheel",d,ao),document.removeEventListener("touchmove",d,ao),document.removeEventListener("touchstart",m,ao)}},[]);var w=e.removeScrollBar,C=e.inert;return v.createElement(v.Fragment,null,C?v.createElement(i,{styles:zC(o)}):null,w?v.createElement(AC,{gapMode:e.gapMode}):null)}function UC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const WC=yC(Kg,BC);var Ud=v.forwardRef(function(e,t){return v.createElement(hs,Tn({},e,{ref:t,sideCar:WC}))});Ud.classNames=hs.classNames;var VC=[" ","Enter","ArrowUp","ArrowDown"],qC=[" ","Enter"],ll="Select",[vs,gs,GC]=NE(ll),[Xo,mN]=Vo(ll,[GC,ms]),ys=ms(),[KC,Rr]=Xo(ll),[QC,YC]=Xo(ll),Jg=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:s,onValueChange:d,dir:u,name:m,autoComplete:h,disabled:f,required:w}=e,C=ys(t),[S,R]=v.useState(null),[y,g]=v.useState(null),[x,_]=v.useState(!1),N=TE(u),[A=!1,P]=Ha({prop:r,defaultProp:o,onChange:i}),[j,F]=Ha({prop:l,defaultProp:s,onChange:d}),M=v.useRef(null),B=S?!!S.closest("form"):!0,[W,z]=v.useState(new Set),V=Array.from(W).map(Z=>Z.props.value).join(";");return b.jsx($g,{...C,children:b.jsxs(KC,{required:w,scope:t,trigger:S,onTriggerChange:R,valueNode:y,onValueNodeChange:g,valueNodeHasChildren:x,onValueNodeHasChildrenChange:_,contentId:No(),value:j,onValueChange:F,open:A,onOpenChange:P,dir:N,triggerPointerDownPosRef:M,disabled:f,children:[b.jsx(vs.Provider,{scope:t,children:b.jsx(QC,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(Z=>{z(oe=>new Set(oe).add(Z))},[]),onNativeOptionRemove:v.useCallback(Z=>{z(oe=>{const re=new Set(oe);return re.delete(Z),re})},[]),children:n})}),B?b.jsxs(_0,{"aria-hidden":!0,required:w,tabIndex:-1,name:m,autoComplete:h,value:j,onChange:Z=>F(Z.target.value),disabled:f,children:[j===void 0?b.jsx("option",{value:""}):null,Array.from(W)]},V):null]})})};Jg.displayName=ll;var e0="SelectTrigger",t0=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=ys(n),l=Rr(e0,n),s=l.disabled||r,d=Ye(t,l.onTriggerChange),u=gs(n),[m,h,f]=k0(C=>{const S=u().filter(g=>!g.disabled),R=S.find(g=>g.value===l.value),y=R0(S,C,R);y!==void 0&&l.onValueChange(y.value)}),w=()=>{s||(l.onOpenChange(!0),f())};return b.jsx(zg,{asChild:!0,...i,children:b.jsx(Ue.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":C0(l.value)?"":void 0,...o,ref:d,onClick:Te(o.onClick,C=>{C.currentTarget.focus()}),onPointerDown:Te(o.onPointerDown,C=>{const S=C.target;S.hasPointerCapture(C.pointerId)&&S.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&(w(),l.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)},C.preventDefault())}),onKeyDown:Te(o.onKeyDown,C=>{const S=m.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&h(C.key),!(S&&C.key===" ")&&VC.includes(C.key)&&(w(),C.preventDefault())})})})});t0.displayName=e0;var n0="SelectValue",r0=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...s}=e,d=Rr(n0,n),{onValueNodeHasChildrenChange:u}=d,m=i!==void 0,h=Ye(t,d.onValueNodeChange);return Ot(()=>{u(m)},[u,m]),b.jsx(Ue.span,{...s,ref:h,style:{pointerEvents:"none"},children:C0(d.value)?b.jsx(b.Fragment,{children:l}):i})});r0.displayName=n0;var XC="SelectIcon",o0=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return b.jsx(Ue.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});o0.displayName=XC;var ZC="SelectPortal",i0=e=>b.jsx(Bd,{asChild:!0,...e});i0.displayName=ZC;var Yr="SelectContent",l0=v.forwardRef((e,t)=>{const n=Rr(Yr,e.__scopeSelect),[r,o]=v.useState();if(Ot(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?eo.createPortal(b.jsx(a0,{scope:e.__scopeSelect,children:b.jsx(vs.Slot,{scope:e.__scopeSelect,children:b.jsx("div",{children:e.children})})}),i):null}return b.jsx(s0,{...e,ref:t})});l0.displayName=Yr;var $n=10,[a0,Nr]=Xo(Yr),JC="SelectContentImpl",s0=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:s,sideOffset:d,align:u,alignOffset:m,arrowPadding:h,collisionBoundary:f,collisionPadding:w,sticky:C,hideWhenDetached:S,avoidCollisions:R,...y}=e,g=Rr(Yr,n),[x,_]=v.useState(null),[N,A]=v.useState(null),P=Ye(t,ee=>_(ee)),[j,F]=v.useState(null),[M,B]=v.useState(null),W=gs(n),[z,V]=v.useState(!1),Z=v.useRef(!1);v.useEffect(()=>{if(x)return Vg(x)},[x]),yg();const oe=v.useCallback(ee=>{const[we,...De]=W().map(ve=>ve.ref.current),[K]=De.slice(-1),be=document.activeElement;for(const ve of ee)if(ve===be||(ve==null||ve.scrollIntoView({block:"nearest"}),ve===we&&N&&(N.scrollTop=0),ve===K&&N&&(N.scrollTop=N.scrollHeight),ve==null||ve.focus(),document.activeElement!==be))return},[W,N]),re=v.useCallback(()=>oe([j,x]),[oe,j,x]);v.useEffect(()=>{z&&re()},[z,re]);const{onOpenChange:I,triggerPointerDownPosRef:U}=g;v.useEffect(()=>{if(x){let ee={x:0,y:0};const we=K=>{var be,ve;ee={x:Math.abs(Math.round(K.pageX)-(((be=U.current)==null?void 0:be.x)??0)),y:Math.abs(Math.round(K.pageY)-(((ve=U.current)==null?void 0:ve.y)??0))}},De=K=>{ee.x<=10&&ee.y<=10?K.preventDefault():x.contains(K.target)||I(!1),document.removeEventListener("pointermove",we),U.current=null};return U.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",De,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",De,{capture:!0})}}},[x,I,U]),v.useEffect(()=>{const ee=()=>I(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[I]);const[ne,Y]=k0(ee=>{const we=W().filter(be=>!be.disabled),De=we.find(be=>be.ref.current===document.activeElement),K=R0(we,ee,De);K&&setTimeout(()=>K.ref.current.focus())}),X=v.useCallback((ee,we,De)=>{const K=!Z.current&&!De;(g.value!==void 0&&g.value===we||K)&&(F(ee),K&&(Z.current=!0))},[g.value]),me=v.useCallback(()=>x==null?void 0:x.focus(),[x]),pe=v.useCallback((ee,we,De)=>{const K=!Z.current&&!De;(g.value!==void 0&&g.value===we||K)&&B(ee)},[g.value]),Oe=r==="popper"?yc:u0,ce=Oe===yc?{side:s,sideOffset:d,align:u,alignOffset:m,arrowPadding:h,collisionBoundary:f,collisionPadding:w,sticky:C,hideWhenDetached:S,avoidCollisions:R}:{};return b.jsx(a0,{scope:n,content:x,viewport:N,onViewportChange:A,itemRefCallback:X,selectedItem:j,onItemLeave:me,itemTextRefCallback:pe,focusSelectedItem:re,selectedItemText:M,position:r,isPositioned:z,searchRef:ne,children:b.jsx(Ud,{as:Kr,allowPinchZoom:!0,children:b.jsx(Dd,{asChild:!0,trapped:g.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:Te(o,ee=>{var we;(we=g.trigger)==null||we.focus({preventScroll:!0}),ee.preventDefault()}),children:b.jsx(fs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:b.jsx(Oe,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:ee=>ee.preventDefault(),...y,...ce,onPlaced:()=>V(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Te(y.onKeyDown,ee=>{const we=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!we&&ee.key.length===1&&Y(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let K=W().filter(be=>!be.disabled).map(be=>be.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const be=ee.target,ve=K.indexOf(be);K=K.slice(ve+1)}setTimeout(()=>oe(K)),ee.preventDefault()}})})})})})})});s0.displayName=JC;var e_="SelectItemAlignedPosition",u0=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Rr(Yr,n),l=Nr(Yr,n),[s,d]=v.useState(null),[u,m]=v.useState(null),h=Ye(t,P=>m(P)),f=gs(n),w=v.useRef(!1),C=v.useRef(!0),{viewport:S,selectedItem:R,selectedItemText:y,focusSelectedItem:g}=l,x=v.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&S&&R&&y){const P=i.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),F=i.valueNode.getBoundingClientRect(),M=y.getBoundingClientRect();if(i.dir!=="rtl"){const be=M.left-j.left,ve=F.left-be,J=P.left-ve,xe=P.width+J,ot=Math.max(xe,j.width),Ie=window.innerWidth-$n,nt=Xp(ve,[$n,Ie-ot]);s.style.minWidth=xe+"px",s.style.left=nt+"px"}else{const be=j.right-M.right,ve=window.innerWidth-F.right-be,J=window.innerWidth-P.right-ve,xe=P.width+J,ot=Math.max(xe,j.width),Ie=window.innerWidth-$n,nt=Xp(ve,[$n,Ie-ot]);s.style.minWidth=xe+"px",s.style.right=nt+"px"}const B=f(),W=window.innerHeight-$n*2,z=S.scrollHeight,V=window.getComputedStyle(u),Z=parseInt(V.borderTopWidth,10),oe=parseInt(V.paddingTop,10),re=parseInt(V.borderBottomWidth,10),I=parseInt(V.paddingBottom,10),U=Z+oe+z+I+re,ne=Math.min(R.offsetHeight*5,U),Y=window.getComputedStyle(S),X=parseInt(Y.paddingTop,10),me=parseInt(Y.paddingBottom,10),pe=P.top+P.height/2-$n,Oe=W-pe,ce=R.offsetHeight/2,ee=R.offsetTop+ce,we=Z+oe+ee,De=U-we;if(we<=pe){const be=R===B[B.length-1].ref.current;s.style.bottom="0px";const ve=u.clientHeight-S.offsetTop-S.offsetHeight,J=Math.max(Oe,ce+(be?me:0)+ve+re),xe=we+J;s.style.height=xe+"px"}else{const be=R===B[0].ref.current;s.style.top="0px";const J=Math.max(pe,Z+S.offsetTop+(be?X:0)+ce)+De;s.style.height=J+"px",S.scrollTop=we-pe+S.offsetTop}s.style.margin=`${$n}px 0`,s.style.minHeight=ne+"px",s.style.maxHeight=W+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[f,i.trigger,i.valueNode,s,u,S,R,y,i.dir,r]);Ot(()=>x(),[x]);const[_,N]=v.useState();Ot(()=>{u&&N(window.getComputedStyle(u).zIndex)},[u]);const A=v.useCallback(P=>{P&&C.current===!0&&(x(),g==null||g(),C.current=!1)},[x,g]);return b.jsx(n_,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:w,onScrollButtonChange:A,children:b.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:b.jsx(Ue.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});u0.displayName=e_;var t_="SelectPopperPosition",yc=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=$n,...i}=e,l=ys(n);return b.jsx(Hg,{...l,...i,ref:t,align:r,collisionPadding:o,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)"}})});yc.displayName=t_;var[n_,Wd]=Xo(Yr,{}),wc="SelectViewport",c0=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Nr(wc,n),l=Wd(wc,n),s=Ye(t,i.onViewportChange),d=v.useRef(0);return b.jsxs(b.Fragment,{children:[b.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:r}),b.jsx(vs.Slot,{scope:n,children:b.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:Te(o.onScroll,u=>{const m=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=l;if(f!=null&&f.current&&h){const w=Math.abs(d.current-m.scrollTop);if(w>0){const C=window.innerHeight-$n*2,S=parseFloat(h.style.minHeight),R=parseFloat(h.style.height),y=Math.max(S,R);if(y0?_:0,h.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});c0.displayName=wc;var d0="SelectGroup",[r_,o_]=Xo(d0),f0=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=No();return b.jsx(r_,{scope:n,id:o,children:b.jsx(Ue.div,{role:"group","aria-labelledby":o,...r,ref:t})})});f0.displayName=d0;var p0="SelectLabel",m0=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=o_(p0,n);return b.jsx(Ue.div,{id:o.id,...r,ref:t})});m0.displayName=p0;var Ba="SelectItem",[i_,h0]=Xo(Ba),v0=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,s=Rr(Ba,n),d=Nr(Ba,n),u=s.value===r,[m,h]=v.useState(i??""),[f,w]=v.useState(!1),C=Ye(t,y=>{var g;return(g=d.itemRefCallback)==null?void 0:g.call(d,y,r,o)}),S=No(),R=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A 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 b.jsx(i_,{scope:n,value:r,disabled:o,textId:S,isSelected:u,onItemTextChange:v.useCallback(y=>{h(g=>g||((y==null?void 0:y.textContent)??"").trim())},[]),children:b.jsx(vs.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:b.jsx(Ue.div,{role:"option","aria-labelledby":S,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:C,onFocus:Te(l.onFocus,()=>w(!0)),onBlur:Te(l.onBlur,()=>w(!1)),onPointerUp:Te(l.onPointerUp,R),onPointerMove:Te(l.onPointerMove,y=>{var g;o?(g=d.onItemLeave)==null||g.call(d):y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Te(l.onPointerLeave,y=>{var g;y.currentTarget===document.activeElement&&((g=d.onItemLeave)==null||g.call(d))}),onKeyDown:Te(l.onKeyDown,y=>{var x;((x=d.searchRef)==null?void 0:x.current)!==""&&y.key===" "||(qC.includes(y.key)&&R(),y.key===" "&&y.preventDefault())})})})})});v0.displayName=Ba;var Si="SelectItemText",g0=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=Rr(Si,n),s=Nr(Si,n),d=h0(Si,n),u=YC(Si,n),[m,h]=v.useState(null),f=Ye(t,y=>h(y),d.onItemTextChange,y=>{var g;return(g=s.itemTextRefCallback)==null?void 0:g.call(s,y,d.value,d.disabled)}),w=m==null?void 0:m.textContent,C=v.useMemo(()=>b.jsx("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:S,onNativeOptionRemove:R}=u;return Ot(()=>(S(C),()=>R(C)),[S,R,C]),b.jsxs(b.Fragment,{children:[b.jsx(Ue.span,{id:d.textId,...i,ref:f}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?eo.createPortal(i.children,l.valueNode):null]})});g0.displayName=Si;var y0="SelectItemIndicator",w0=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return h0(y0,n).isSelected?b.jsx(Ue.span,{"aria-hidden":!0,...r,ref:t}):null});w0.displayName=y0;var xc="SelectScrollUpButton",x0=v.forwardRef((e,t)=>{const n=Nr(xc,e.__scopeSelect),r=Wd(xc,e.__scopeSelect),[o,i]=v.useState(!1),l=Ye(t,r.onScrollButtonChange);return Ot(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=d.scrollTop>0;i(u)};const d=n.viewport;return s(),d.addEventListener("scroll",s),()=>d.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?b.jsx(S0,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:d}=n;s&&d&&(s.scrollTop=s.scrollTop-d.offsetHeight)}}):null});x0.displayName=xc;var bc="SelectScrollDownButton",b0=v.forwardRef((e,t)=>{const n=Nr(bc,e.__scopeSelect),r=Wd(bc,e.__scopeSelect),[o,i]=v.useState(!1),l=Ye(t,r.onScrollButtonChange);return Ot(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)d.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?b.jsx(S0,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:d}=n;s&&d&&(s.scrollTop=s.scrollTop+d.offsetHeight)}}):null});b0.displayName=bc;var S0=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Nr("SelectScrollButton",n),l=v.useRef(null),s=gs(n),d=v.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return v.useEffect(()=>()=>d(),[d]),Ot(()=>{var m;const u=s().find(h=>h.ref.current===document.activeElement);(m=u==null?void 0:u.ref.current)==null||m.scrollIntoView({block:"nearest"})},[s]),b.jsx(Ue.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Te(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Te(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Te(o.onPointerLeave,()=>{d()})})}),l_="SelectSeparator",E0=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return b.jsx(Ue.div,{"aria-hidden":!0,...r,ref:t})});E0.displayName=l_;var Sc="SelectArrow",a_=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ys(n),i=Rr(Sc,n),l=Nr(Sc,n);return i.open&&l.position==="popper"?b.jsx(Bg,{...o,...r,ref:t}):null});a_.displayName=Sc;function C0(e){return e===""||e===void 0}var _0=v.forwardRef((e,t)=>{const{value:n,...r}=e,o=v.useRef(null),i=Ye(t,o),l=iC(n);return v.useEffect(()=>{const s=o.current,d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==n&&m){const h=new Event("change",{bubbles:!0});m.call(s,n),s.dispatchEvent(h)}},[l,n]),b.jsx(Ug,{asChild:!0,children:b.jsx("select",{...r,ref:i,defaultValue:n})})});_0.displayName="BubbleSelect";function k0(e){const t=Kn(e),n=v.useRef(""),r=v.useRef(0),o=v.useCallback(l=>{const s=n.current+l;t(s),function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(s)},[t]),i=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function R0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=s_(e,Math.max(i,0));o.length===1&&(l=l.filter(u=>u!==n));const d=l.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function s_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var u_=Jg,N0=t0,c_=r0,d_=o0,f_=i0,P0=l0,p_=c0,m_=f0,T0=m0,A0=v0,h_=g0,v_=w0,D0=x0,O0=b0,j0=E0;const g_=u_,y_=m_,w_=c_,M0=v.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(N0,{ref:r,className:Re("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-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",e),...n,children:[t,b.jsx(d_,{asChild:!0,children:b.jsx(hg,{className:"h-4 w-4 opacity-50"})})]}));M0.displayName=N0.displayName;const I0=v.forwardRef(({className:e,...t},n)=>b.jsx(D0,{ref:n,className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(fE,{className:"h-4 w-4"})}));I0.displayName=D0.displayName;const L0=v.forwardRef(({className:e,...t},n)=>b.jsx(O0,{ref:n,className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(hg,{className:"h-4 w-4"})}));L0.displayName=O0.displayName;const F0=v.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>b.jsx(f_,{children:b.jsxs(P0,{ref:o,className:Re("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",n==="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",e),position:n,...r,children:[b.jsx(I0,{}),b.jsx(p_,{className:Re("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),b.jsx(L0,{})]})}));F0.displayName=P0.displayName;const $0=v.forwardRef(({className:e,...t},n)=>b.jsx(T0,{ref:n,className:Re("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));$0.displayName=T0.displayName;const z0=v.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(A0,{ref:r,className:Re("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(v_,{children:b.jsx(uE,{className:"h-4 w-4"})})}),b.jsx(h_,{children:t})]}));z0.displayName=A0.displayName;const x_=v.forwardRef(({className:e,...t},n)=>b.jsx(j0,{ref:n,className:Re("-mx-1 my-1 h-px bg-muted",e),...t}));x_.displayName=j0.displayName;const b_=pg("inline-flex items-center rounded 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 H0({className:e,variant:t,...n}){return b.jsx("div",{className:Re(b_({variant:t}),e),...n})}function S_(){const{tables:e,selectedTable:t,setSelectedTable:n}=ol();return b.jsxs("section",{className:"flex justify-center items-center gap-2",children:[b.jsxs(g_,{value:t,onValueChange:n,children:[b.jsx(M0,{className:"grow",children:b.jsx(w_,{placeholder:"Select a table"})}),b.jsx(F0,{children:b.jsxs(y_,{children:[b.jsx($0,{children:"Tables"}),e.map((r,o)=>b.jsx(z0,{value:`${o}`,children:r.name},r.name))]})})]}),b.jsx(H0,{title:"Rows",className:"text-sm grow min-w-[100px] md:min-w-[200px] py-2",variant:"outline",children:b.jsx("span",{className:"text-center w-full",children:e[parseInt(t)].count})})]})}function E_(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var al=e=>{const{present:t,children:n}=e,r=C_(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Ye(r.ref,__(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};al.displayName="Presence";function C_(e){const[t,n]=v.useState(),r=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),l=e?"mounted":"unmounted",[s,d]=E_(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Vl(r.current);i.current=s==="mounted"?u:"none"},[s]),Ot(()=>{const u=r.current,m=o.current;if(m!==e){const f=i.current,w=Vl(u);e?d("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(m&&f!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ot(()=>{if(t){const u=h=>{const w=Vl(r.current).includes(h.animationName);h.target===t&&w&&eo.flushSync(()=>d("ANIMATION_END"))},m=h=>{h.target===t&&(i.current=Vl(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Vl(e){return(e==null?void 0:e.animationName)||"none"}function __(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var pu,Vd="HoverCard",[B0,hN]=Vo(Vd,[ms]),ws=ms(),[k_,qd]=B0(Vd),U0=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:l=700,closeDelay:s=300}=e,d=ws(t),u=v.useRef(0),m=v.useRef(0),h=v.useRef(!1),f=v.useRef(!1),[w=!1,C]=Ha({prop:r,defaultProp:o,onChange:i}),S=v.useCallback(()=>{clearTimeout(m.current),u.current=window.setTimeout(()=>C(!0),l)},[l,C]),R=v.useCallback(()=>{clearTimeout(u.current),!h.current&&!f.current&&(m.current=window.setTimeout(()=>C(!1),s))},[s,C]),y=v.useCallback(()=>C(!1),[C]);return v.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(m.current)},[]),b.jsx(k_,{scope:t,open:w,onOpenChange:C,onOpen:S,onClose:R,onDismiss:y,hasSelectionRef:h,isPointerDownOnContentRef:f,children:b.jsx($g,{...d,children:n})})};U0.displayName=Vd;var W0="HoverCardTrigger",V0=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=qd(W0,n),i=ws(n);return b.jsx(zg,{asChild:!0,...i,children:b.jsx(Ue.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:Te(e.onPointerEnter,Wa(o.onOpen)),onPointerLeave:Te(e.onPointerLeave,Wa(o.onClose)),onFocus:Te(e.onFocus,o.onOpen),onBlur:Te(e.onBlur,o.onClose),onTouchStart:Te(e.onTouchStart,l=>l.preventDefault())})})});V0.displayName=W0;var R_="HoverCardPortal",[vN,N_]=B0(R_,{forceMount:void 0}),Ua="HoverCardContent",q0=v.forwardRef((e,t)=>{const n=N_(Ua,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=qd(Ua,e.__scopeHoverCard);return b.jsx(al,{present:r||i.open,children:b.jsx(P_,{"data-state":i.open?"open":"closed",...o,onPointerEnter:Te(e.onPointerEnter,Wa(i.onOpen)),onPointerLeave:Te(e.onPointerLeave,Wa(i.onClose)),ref:t})})});q0.displayName=Ua;var P_=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,...s}=e,d=qd(Ua,n),u=ws(n),m=v.useRef(null),h=Ye(t,m),[f,w]=v.useState(!1);return v.useEffect(()=>{if(f){const C=document.body;return pu=C.style.userSelect||C.style.webkitUserSelect,C.style.userSelect="none",C.style.webkitUserSelect="none",()=>{C.style.userSelect=pu,C.style.webkitUserSelect=pu}}},[f]),v.useEffect(()=>{if(m.current){const C=()=>{w(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var R;((R=document.getSelection())==null?void 0:R.toString())!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",C),()=>{document.removeEventListener("pointerup",C),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),v.useEffect(()=>{m.current&&D_(m.current).forEach(S=>S.setAttribute("tabindex","-1"))}),b.jsx(fs,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Te(i,C=>{C.preventDefault()}),onDismiss:d.onDismiss,children:b.jsx(Hg,{...u,...s,onPointerDown:Te(s.onPointerDown,C=>{C.currentTarget.contains(C.target)&&w(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:h,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),T_="HoverCardArrow",A_=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ws(n);return b.jsx(Bg,{...o,...r,ref:t})});A_.displayName=T_;function Wa(e){return t=>t.pointerType==="touch"?void 0:e()}function D_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var O_=U0,j_=V0,G0=q0;const K0=O_,Q0=j_,Gd=v.forwardRef(({className:e,align:t="start",side:n="bottom",sideOffset:r=4,...o},i)=>b.jsx(G0,{ref:i,align:t,side:n,sideOffset:r,className:Re("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 text-balance break-words",e),...o}));Gd.displayName=G0.displayName;const Y0=v.forwardRef(({className:e,...t},n)=>b.jsx("div",{className:"relative w-full overflow-auto",children:b.jsx("table",{ref:n,className:Re("w-full caption-bottom text-sm",e),...t})}));Y0.displayName="Table";const X0=v.forwardRef(({className:e,...t},n)=>b.jsx("thead",{ref:n,className:Re("[&_tr]:border-b",e),...t}));X0.displayName="TableHeader";const Z0=v.forwardRef(({className:e,...t},n)=>b.jsx("tbody",{ref:n,className:Re("[&_tr:last-child]:border-0",e),...t}));Z0.displayName="TableBody";const M_=v.forwardRef(({className:e,...t},n)=>b.jsx("tfoot",{ref:n,className:Re("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));M_.displayName="TableFooter";const Kd=v.forwardRef(({className:e,...t},n)=>b.jsx("tr",{ref:n,className:Re("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Kd.displayName="TableRow";const J0=v.forwardRef(({className:e,...t},n)=>b.jsx("th",{ref:n,className:Re("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));J0.displayName="TableHead";const ey=v.forwardRef(({className:e,children:t,dataType:n,...r},o)=>b.jsx("td",{ref:o,className:Re("p-4 align-middle [&:has([role=checkbox])]:pr-0 truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",e),...r,children:b.jsxs(K0,{children:[b.jsx(Q0,{asChild:!0,children:b.jsx("span",{className:"hover:underline cursor-pointer",children:t})}),b.jsx(Gd,{side:"bottom",align:"start",children:b.jsxs("div",{className:"flex flex-col gap-1",children:[n==="BLOB"?b.jsx("span",{className:"truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",children:t}):t,n&&b.jsx(H0,{className:"text-xs",children:n})]})})]})}));ey.displayName="TableCell";const I_=v.forwardRef(({className:e,...t},n)=>b.jsx("caption",{ref:n,className:Re("mt-4 text-sm text-muted-foreground",e),...t}));I_.displayName="TableCaption";const L_=e=>e!=null&&e.isPrimaryKey?b.jsx(vE,{className:"h-4 w-4"}):e!=null&&e.isForeignKey?b.jsx(gE,{className:"h-4 w-4"}):(e==null?void 0:e.type)==="BLOB"?b.jsx(mE,{className:"h-4 w-4"}):(e==null?void 0:e.type)==="DATETIME"?b.jsx(pE,{className:"h-4 w-4"}):null,F_=(e,t,n)=>b.jsx(X0,{children:b.jsx(Kd,{children:e.map((r,o)=>{var i;return b.jsx(J0,{children:b.jsxs(K0,{children:[b.jsx(Q0,{asChild:!0,children:b.jsx("span",{className:"hover:underline cursor-pointer",children:b.jsxs("div",{className:"flex gap-1",children:[r,L_(t[n][r])]})})}),b.jsx(Gd,{side:"bottom",align:"start",children:((i=t[n][r])==null?void 0:i.type)||"Unknown"})]})},o)})})}),$_=(e,t,n,r)=>b.jsx(Z0,{children:e.map((o,i)=>b.jsx(Kd,{children:t.map((l,s)=>{var d;return b.jsx(ey,{dataType:(d=n[r][l])==null?void 0:d.type,children:o[l]?o[l]:b.jsx("span",{className:"italic opacity-40",children:"NULL"})},s)})},i))});function z_({data:e,columns:t,tableName:n,tableSchemas:r}){return b.jsxs(Y0,{children:[F_(t,r,n),$_(e,t,r,n)]})}function Ec({children:e}){return b.jsx("div",{className:"text-center text-red-400 font-semibold md:text-2xl p-10 border rounded mb-2",children:e})}function Cc({children:e}){return b.jsxs("div",{className:"flex items-center justify-center mb-2 font-semibold p-4 border rounded",children:[b.jsx(wE,{className:"w-5 h-5 animate-spin"}),b.jsx("span",{className:"ml-2",children:e})]})}function H_(){const{query:e,db:t,tables:n,selectedTable:r,tableSchemas:o,queryError:i,setQueryError:l,rowPerPageOrAuto:s,isCustomQuery:d,setIsCustomQuery:u}=ol(),[m,h]=v.useState([]),[f,w]=v.useState([]),[C,S]=v.useState(0),[R,y]=v.useState(""),[g,x]=v.useState(!0),_=v.useMemo(()=>{var M;return(M=n[parseInt(r)])==null?void 0:M.name},[n,r]),N=v.useMemo(()=>{var M;return((M=n[parseInt(r)])==null?void 0:M.count)||0},[n,r]);v.useEffect(()=>{S(0),u(!1)},[_]),v.useEffect(()=>{if(t&&_&&!d){x(!0);const M=`SELECT * FROM "${_}" LIMIT ${F} OFFSET ${C};`;(async()=>{try{const B=e(M),{data:W,columns:z}=Ia(B);w(z),h(W),l(null),y(M)}catch(B){B instanceof Error&&l(B.message)}finally{x(!1)}})()}},[t,_,C,s]);const A=v.useCallback(()=>{l(null),y(""),u(!1)},[u,l]),P=v.useCallback(()=>{S(0),A()},[A]),j=v.useCallback(()=>{if(R.trim()===""){l(null);return}x(!0),(async()=>{try{const M=e(R),{data:B,columns:W}=Ia(M);w(W),h(B),u(!0),l(null)}catch(M){M instanceof Error&&l(M.message)}finally{x(!1)}})()},[R,t,e,l,u]);let F=30;if(s==="auto"){const M=window.innerHeight,B=[{height:1700,rowHeight:65},{height:1300,rowHeight:70},{height:1200,rowHeight:75},{height:1100,rowHeight:75},{height:1e3,rowHeight:80},{height:950,rowHeight:85},{height:900,rowHeight:90},{height:850,rowHeight:95},{height:800,rowHeight:100},{height:750,rowHeight:105},{height:700,rowHeight:110},{height:600,rowHeight:120},{height:550,rowHeight:150},{height:500,rowHeight:190},{height:0,rowHeight:280}];let z=120;for(const V of B)if(M>V.height){z=V.rowHeight;break}F=Math.max(1,Math.floor(M/z))}else F=s;return b.jsxs("div",{className:"flex flex-col gap-3 pb-8",children:[b.jsxs("section",{className:"flex flex-col gap-2 p-3 border rounded pb-2",children:[b.jsx(S_,{}),b.jsxs("div",{className:"flex flex-col md:flex-row gap-2",children:[b.jsx(Td,{type:"text",value:R,onChange:M=>y(M.target.value),placeholder:"Enter your custom query",className:"w-full"}),b.jsxs("div",{className:"flex gap-1",children:[b.jsx(rn,{className:"w-full",onClick:j,title:"Run custom query",children:b.jsx(bE,{className:"h-5 w-5"})}),b.jsx(rn,{className:"w-full",onClick:A,title:"Reset query",children:b.jsx(CE,{className:"h-5 w-5"})}),b.jsx(rn,{className:"w-full",onClick:P,title:"Reset to first page",disabled:C===0,children:b.jsx(yE,{className:"h-5 w-5"})})]})]}),i&&b.jsx("p",{className:"text-xs text-red-500 capitalize text-center",children:i})]}),g?b.jsxs(Cc,{children:["Loading ",_]}):m.length>0?b.jsx("div",{className:"border rounded",children:b.jsx(z_,{data:m,columns:f,tableName:_,tableSchemas:o})}):b.jsxs(Ec,{children:["Table ",_," is empty"]}),!d&&b.jsx(_E,{page:C,setPage:S,rowsPerPage:F,rowCount:N})]})}var ty={exports:{}},B_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",U_=B_,W_=U_;function ny(){}function ry(){}ry.resetWarningCache=ny;var V_=function(){function e(r,o,i,l,s,d){if(d!==W_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ry,resetWarningCache:ny};return n.PropTypes=n,n};ty.exports=V_();var q_=ty.exports;const Fe=Zi(q_);var G_=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function sl(e,t){var n=K_(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function K_(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=G_.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Q_=[".DS_Store","Thumbs.db"];function Y_(e){return Qo(this,void 0,void 0,function(){return Yo(this,function(t){return Va(e)&&X_(e.dataTransfer)?[2,tk(e.dataTransfer,e.type)]:Z_(e)?[2,J_(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,ek(e)]:[2,[]]})})}function X_(e){return Va(e)}function Z_(e){return Va(e)&&Va(e.target)}function Va(e){return typeof e=="object"&&e!==null}function J_(e){return _c(e.target.files).map(function(t){return sl(t)})}function ek(e){return Qo(this,void 0,void 0,function(){var t;return Yo(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return sl(r)})]}})})}function tk(e,t){return Qo(this,void 0,void 0,function(){var n,r;return Yo(this,function(o){switch(o.label){case 0:return e.items?(n=_c(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(nk))]):[3,2];case 1:return r=o.sent(),[2,xm(oy(r))];case 2:return[2,xm(_c(e.files).map(function(i){return sl(i)}))]}})})}function xm(e){return e.filter(function(t){return Q_.indexOf(t.name)===-1})}function _c(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,_m(n)];if(e.sizen)return[!1,_m(n)]}return[!0,null]}function Ir(e){return e!=null}function yk(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,l=e.maxFiles,s=e.validator;return!i&&t.length>1||i&&l>=1&&t.length>l?!1:t.every(function(d){var u=sy(d,n),m=Xi(u,1),h=m[0],f=uy(d,r,o),w=Xi(f,1),C=w[0],S=s?s(d):null;return h&&C&&!S})}function qa(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function ql(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Rm(e){e.preventDefault()}function wk(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function xk(e){return e.indexOf("Edge/")!==-1}function bk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return wk(e)||xk(e)}function Rn(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),l=1;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Qd=v.forwardRef(function(e,t){var n=e.children,r=Ga(e,Rk),o=my(r),i=o.open,l=Ga(o,Nk);return v.useImperativeHandle(t,function(){return{open:i}},[i]),D.createElement(v.Fragment,null,n(Ze(Ze({},l),{},{open:i})))});Qd.displayName="Dropzone";var py={disabled:!1,getFilesFromEvent:Y_,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Qd.defaultProps=py;Qd.propTypes={children:Fe.func,accept:Fe.objectOf(Fe.arrayOf(Fe.string)),multiple:Fe.bool,preventDropOnDocument:Fe.bool,noClick:Fe.bool,noKeyboard:Fe.bool,noDrag:Fe.bool,noDragEventsBubbling:Fe.bool,minSize:Fe.number,maxSize:Fe.number,maxFiles:Fe.number,disabled:Fe.bool,getFilesFromEvent:Fe.func,onFileDialogCancel:Fe.func,onFileDialogOpen:Fe.func,useFsAccessApi:Fe.bool,autoFocus:Fe.bool,onDragEnter:Fe.func,onDragLeave:Fe.func,onDragOver:Fe.func,onDrop:Fe.func,onDropAccepted:Fe.func,onDropRejected:Fe.func,onError:Fe.func,validator:Fe.func};var Pc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function my(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ze(Ze({},py),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,l=t.minSize,s=t.multiple,d=t.maxFiles,u=t.onDragEnter,m=t.onDragLeave,h=t.onDragOver,f=t.onDrop,w=t.onDropAccepted,C=t.onDropRejected,S=t.onFileDialogCancel,R=t.onFileDialogOpen,y=t.useFsAccessApi,g=t.autoFocus,x=t.preventDropOnDocument,_=t.noClick,N=t.noKeyboard,A=t.noDrag,P=t.noDragEventsBubbling,j=t.onError,F=t.validator,M=v.useMemo(function(){return Ck(n)},[n]),B=v.useMemo(function(){return Ek(n)},[n]),W=v.useMemo(function(){return typeof R=="function"?R:Pm},[R]),z=v.useMemo(function(){return typeof S=="function"?S:Pm},[S]),V=v.useRef(null),Z=v.useRef(null),oe=v.useReducer($k,Pc),re=mu(oe,2),I=re[0],U=re[1],ne=I.isFocused,Y=I.isFileDialogActive,X=v.useRef(typeof window<"u"&&window.isSecureContext&&y&&Sk()),me=function(){!X.current&&Y&&setTimeout(function(){if(Z.current){var le=Z.current.files;le.length||(U({type:"closeDialog"}),z())}},300)};v.useEffect(function(){return window.addEventListener("focus",me,!1),function(){window.removeEventListener("focus",me,!1)}},[Z,Y,z,X]);var pe=v.useRef([]),Oe=function(le){V.current&&V.current.contains(le.target)||(le.preventDefault(),pe.current=[])};v.useEffect(function(){return x&&(document.addEventListener("dragover",Rm,!1),document.addEventListener("drop",Oe,!1)),function(){x&&(document.removeEventListener("dragover",Rm),document.removeEventListener("drop",Oe))}},[V,x]),v.useEffect(function(){return!r&&g&&V.current&&V.current.focus(),function(){}},[V,g,r]);var ce=v.useCallback(function(Q){j?j(Q):console.error(Q)},[j]),ee=v.useCallback(function(Q){Q.preventDefault(),Q.persist(),ft(Q),pe.current=[].concat(Ak(pe.current),[Q.target]),ql(Q)&&Promise.resolve(o(Q)).then(function(le){if(!(qa(Q)&&!P)){var je=le.length,ke=je>0&&yk({files:le,accept:M,minSize:l,maxSize:i,multiple:s,maxFiles:d,validator:F}),Xe=je>0&&!ke;U({isDragAccept:ke,isDragReject:Xe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(Q)}}).catch(function(le){return ce(le)})},[o,u,ce,P,M,l,i,s,d,F]),we=v.useCallback(function(Q){Q.preventDefault(),Q.persist(),ft(Q);var le=ql(Q);if(le&&Q.dataTransfer)try{Q.dataTransfer.dropEffect="copy"}catch{}return le&&h&&h(Q),!1},[h,P]),De=v.useCallback(function(Q){Q.preventDefault(),Q.persist(),ft(Q);var le=pe.current.filter(function(ke){return V.current&&V.current.contains(ke)}),je=le.indexOf(Q.target);je!==-1&&le.splice(je,1),pe.current=le,!(le.length>0)&&(U({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ql(Q)&&m&&m(Q))},[V,m,P]),K=v.useCallback(function(Q,le){var je=[],ke=[];Q.forEach(function(Xe){var it=sy(Xe,M),pt=mu(it,2),Bt=pt[0],un=pt[1],cn=uy(Xe,l,i),En=mu(cn,2),ae=En[0],ue=En[1],Ne=F?F(Xe):null;if(Bt&&ae&&!Ne)je.push(Xe);else{var L=[un,ue];Ne&&(L=L.concat(Ne)),ke.push({file:Xe,errors:L.filter(function(de){return de})})}}),(!s&&je.length>1||s&&d>=1&&je.length>d)&&(je.forEach(function(Xe){ke.push({file:Xe,errors:[gk]})}),je.splice(0)),U({acceptedFiles:je,fileRejections:ke,type:"setFiles"}),f&&f(je,ke,le),ke.length>0&&C&&C(ke,le),je.length>0&&w&&w(je,le)},[U,s,M,l,i,d,f,w,C,F]),be=v.useCallback(function(Q){Q.preventDefault(),Q.persist(),ft(Q),pe.current=[],ql(Q)&&Promise.resolve(o(Q)).then(function(le){qa(Q)&&!P||K(le,Q)}).catch(function(le){return ce(le)}),U({type:"reset"})},[o,K,ce,P]),ve=v.useCallback(function(){if(X.current){U({type:"openDialog"}),W();var Q={multiple:s,types:B};window.showOpenFilePicker(Q).then(function(le){return o(le)}).then(function(le){K(le,null),U({type:"closeDialog"})}).catch(function(le){_k(le)?(z(le),U({type:"closeDialog"})):kk(le)?(X.current=!1,Z.current?(Z.current.value=null,Z.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ce(le)});return}Z.current&&(U({type:"openDialog"}),W(),Z.current.value=null,Z.current.click())},[U,W,z,y,K,ce,B,s]),J=v.useCallback(function(Q){!V.current||!V.current.isEqualNode(Q.target)||(Q.key===" "||Q.key==="Enter"||Q.keyCode===32||Q.keyCode===13)&&(Q.preventDefault(),ve())},[V,ve]),xe=v.useCallback(function(){U({type:"focus"})},[]),ot=v.useCallback(function(){U({type:"blur"})},[]),Ie=v.useCallback(function(){_||(bk()?setTimeout(ve,0):ve())},[_,ve]),nt=function(le){return r?null:le},bt=function(le){return N?null:nt(le)},ge=function(le){return A?null:nt(le)},ft=function(le){P&&le.stopPropagation()},er=v.useMemo(function(){return function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=Q.refKey,je=le===void 0?"ref":le,ke=Q.role,Xe=Q.onKeyDown,it=Q.onFocus,pt=Q.onBlur,Bt=Q.onClick,un=Q.onDragEnter,cn=Q.onDragOver,En=Q.onDragLeave,ae=Q.onDrop,ue=Ga(Q,Pk);return Ze(Ze(Nc({onKeyDown:bt(Rn(Xe,J)),onFocus:bt(Rn(it,xe)),onBlur:bt(Rn(pt,ot)),onClick:nt(Rn(Bt,Ie)),onDragEnter:ge(Rn(un,ee)),onDragOver:ge(Rn(cn,we)),onDragLeave:ge(Rn(En,De)),onDrop:ge(Rn(ae,be)),role:typeof ke=="string"&&ke!==""?ke:"presentation"},je,V),!r&&!N?{tabIndex:0}:{}),ue)}},[V,J,xe,ot,Ie,ee,we,De,be,N,A,r]),kt=v.useCallback(function(Q){Q.stopPropagation()},[]),Rt=v.useMemo(function(){return function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=Q.refKey,je=le===void 0?"ref":le,ke=Q.onChange,Xe=Q.onClick,it=Ga(Q,Tk),pt=Nc({accept:M,multiple:s,type:"file",style:{display:"none"},onChange:nt(Rn(ke,be)),onClick:nt(Rn(Xe,kt)),tabIndex:-1},je,Z);return Ze(Ze({},pt),it)}},[Z,n,s,be,r]);return Ze(Ze({},I),{},{isFocused:ne&&!r,getRootProps:er,getInputProps:Rt,rootRef:V,inputRef:Z,open:nt(ve)})}function $k(e,t){switch(t.type){case"focus":return Ze(Ze({},e),{},{isFocused:!0});case"blur":return Ze(Ze({},e),{},{isFocused:!1});case"openDialog":return Ze(Ze({},Pc),{},{isFileDialogActive:!0});case"closeDialog":return Ze(Ze({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ze(Ze({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ze(Ze({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ze({},Pc);default:return e}}function Pm(){}var zk=e=>{switch(e){case"success":return Uk;case"info":return Vk;case"warning":return Wk;case"error":return qk;default:return null}},Hk=Array(12).fill(0),Bk=({visible:e})=>D.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},D.createElement("div",{className:"sonner-spinner"},Hk.map((t,n)=>D.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Uk=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),Wk=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},D.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"})),Vk=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),qk=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),Gk=()=>{let[e,t]=D.useState(document.hidden);return D.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Tc=1,Kk=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Tc++,i=this.toasts.find(s=>s.id===o),l=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...e,id:o,title:n}),{...s,...e,id:o,dismissible:l,title:n}):s):this.addToast({title:n,...r,dismissible:l,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async i=>{if(Yk(i)&&!i.ok){o=!1;let l=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,s=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:l,description:s})}else if(t.success!==void 0){o=!1;let l=typeof t.success=="function"?await t.success(i):t.success,s=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"success",message:l,description:s})}}).catch(async i=>{if(t.error!==void 0){o=!1;let l=typeof t.error=="function"?await t.error(i):t.error,s=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"error",message:l,description:s})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Tc++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Wt=new Kk,Qk=(e,t)=>{let n=(t==null?void 0:t.id)||Tc++;return Wt.addToast({title:e,...t,id:n}),n},Yk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Xk=Qk,Zk=()=>Wt.toasts,Ac=Object.assign(Xk,{success:Wt.success,info:Wt.info,warning:Wt.warning,error:Wt.error,custom:Wt.custom,message:Wt.message,promise:Wt.promise,dismiss:Wt.dismiss,loading:Wt.loading},{getHistory:Zk});function Jk(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Jk(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} -`);function Gl(e){return e.label!==void 0}var eR=3,tR="32px",nR=4e3,rR=356,oR=14,iR=20,lR=200;function aR(...e){return e.filter(Boolean).join(" ")}var sR=e=>{var t,n,r,o,i,l,s,d,u,m;let{invert:h,toast:f,unstyled:w,interacting:C,setHeights:S,visibleToasts:R,heights:y,index:g,toasts:x,expanded:_,removeToast:N,defaultRichColors:A,closeButton:P,style:j,cancelButtonStyle:F,actionButtonStyle:M,className:B="",descriptionClassName:W="",duration:z,position:V,gap:Z,loadingIcon:oe,expandByDefault:re,classNames:I,icons:U,closeButtonAriaLabel:ne="Close toast",pauseWhenPageIsHidden:Y,cn:X}=e,[me,pe]=D.useState(!1),[Oe,ce]=D.useState(!1),[ee,we]=D.useState(!1),[De,K]=D.useState(!1),[be,ve]=D.useState(0),[J,xe]=D.useState(0),ot=D.useRef(null),Ie=D.useRef(null),nt=g===0,bt=g+1<=R,ge=f.type,ft=f.dismissible!==!1,er=f.className||"",kt=f.descriptionClassName||"",Rt=D.useMemo(()=>y.findIndex(L=>L.toastId===f.id)||0,[y,f.id]),Q=D.useMemo(()=>{var L;return(L=f.closeButton)!=null?L:P},[f.closeButton,P]),le=D.useMemo(()=>f.duration||z||nR,[f.duration,z]),je=D.useRef(0),ke=D.useRef(0),Xe=D.useRef(0),it=D.useRef(null),[pt,Bt]=V.split("-"),un=D.useMemo(()=>y.reduce((L,de,fe)=>fe>=Rt?L:L+de.height,0),[y,Rt]),cn=Gk(),En=f.invert||h,ae=ge==="loading";ke.current=D.useMemo(()=>Rt*Z+un,[Rt,un]),D.useEffect(()=>{pe(!0)},[]),D.useLayoutEffect(()=>{if(!me)return;let L=Ie.current,de=L.style.height;L.style.height="auto";let fe=L.getBoundingClientRect().height;L.style.height=de,xe(fe),S(ze=>ze.find(Le=>Le.toastId===f.id)?ze.map(Le=>Le.toastId===f.id?{...Le,height:fe}:Le):[{toastId:f.id,height:fe,position:f.position},...ze])},[me,f.title,f.description,S,f.id]);let ue=D.useCallback(()=>{ce(!0),ve(ke.current),S(L=>L.filter(de=>de.toastId!==f.id)),setTimeout(()=>{N(f)},lR)},[f,N,S,ke]);D.useEffect(()=>{if(f.promise&&ge==="loading"||f.duration===1/0||f.type==="loading")return;let L,de=le;return _||C||Y&&cn?(()=>{if(Xe.current{var fe;(fe=f.onAutoClose)==null||fe.call(f,f),ue()},de)),()=>clearTimeout(L)},[_,C,re,f,le,ue,f.promise,ge,Y,cn]),D.useEffect(()=>{let L=Ie.current;if(L){let de=L.getBoundingClientRect().height;return xe(de),S(fe=>[{toastId:f.id,height:de,position:f.position},...fe]),()=>S(fe=>fe.filter(ze=>ze.toastId!==f.id))}},[S,f.id]),D.useEffect(()=>{f.delete&&ue()},[ue,f.delete]);function Ne(){return U!=null&&U.loading?D.createElement("div",{className:"sonner-loader","data-visible":ge==="loading"},U.loading):oe?D.createElement("div",{className:"sonner-loader","data-visible":ge==="loading"},oe):D.createElement(Bk,{visible:ge==="loading"})}return D.createElement("li",{"aria-live":f.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Ie,className:X(B,er,I==null?void 0:I.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,I==null?void 0:I.default,I==null?void 0:I[ge],(n=f==null?void 0:f.classNames)==null?void 0:n[ge]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:A,"data-styled":!(f.jsx||f.unstyled||w),"data-mounted":me,"data-promise":!!f.promise,"data-removed":Oe,"data-visible":bt,"data-y-position":pt,"data-x-position":Bt,"data-index":g,"data-front":nt,"data-swiping":ee,"data-dismissible":ft,"data-type":ge,"data-invert":En,"data-swipe-out":De,"data-expanded":!!(_||re&&me),style:{"--index":g,"--toasts-before":g,"--z-index":x.length-g,"--offset":`${Oe?be:ke.current}px`,"--initial-height":re?"auto":`${J}px`,...j,...f.style},onPointerDown:L=>{ae||!ft||(ot.current=new Date,ve(ke.current),L.target.setPointerCapture(L.pointerId),L.target.tagName!=="BUTTON"&&(we(!0),it.current={x:L.clientX,y:L.clientY}))},onPointerUp:()=>{var L,de,fe,ze;if(De||!ft)return;it.current=null;let Le=Number(((L=Ie.current)==null?void 0:L.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Nt=new Date().getTime()-((de=ot.current)==null?void 0:de.getTime()),Pt=Math.abs(Le)/Nt;if(Math.abs(Le)>=iR||Pt>.11){ve(ke.current),(fe=f.onDismiss)==null||fe.call(f,f),ue(),K(!0);return}(ze=Ie.current)==null||ze.style.setProperty("--swipe-amount","0px"),we(!1)},onPointerMove:L=>{var de;if(!it.current||!ft)return;let fe=L.clientY-it.current.y,ze=L.clientX-it.current.x,Le=(pt==="top"?Math.min:Math.max)(0,fe),Nt=L.pointerType==="touch"?10:2;Math.abs(Le)>Nt?(de=Ie.current)==null||de.style.setProperty("--swipe-amount",`${fe}px`):Math.abs(ze)>Nt&&(it.current=null)}},Q&&!f.jsx?D.createElement("button",{"aria-label":ne,"data-disabled":ae,"data-close-button":!0,onClick:ae||!ft?()=>{}:()=>{var L;ue(),(L=f.onDismiss)==null||L.call(f,f)},className:X(I==null?void 0:I.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},D.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"},D.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),D.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,f.jsx||D.isValidElement(f.title)?f.jsx||f.title:D.createElement(D.Fragment,null,ge||f.icon||f.promise?D.createElement("div",{"data-icon":"",className:X(I==null?void 0:I.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ne():null,f.type!=="loading"?f.icon||(U==null?void 0:U[ge])||zk(ge):null):null,D.createElement("div",{"data-content":"",className:X(I==null?void 0:I.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},D.createElement("div",{"data-title":"",className:X(I==null?void 0:I.title,(s=f==null?void 0:f.classNames)==null?void 0:s.title)},f.title),f.description?D.createElement("div",{"data-description":"",className:X(W,kt,I==null?void 0:I.description,(d=f==null?void 0:f.classNames)==null?void 0:d.description)},f.description):null),D.isValidElement(f.cancel)?f.cancel:f.cancel&&Gl(f.cancel)?D.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||F,onClick:L=>{var de,fe;Gl(f.cancel)&&ft&&((fe=(de=f.cancel).onClick)==null||fe.call(de,L),ue())},className:X(I==null?void 0:I.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,D.isValidElement(f.action)?f.action:f.action&&Gl(f.action)?D.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||M,onClick:L=>{var de,fe;Gl(f.action)&&(L.defaultPrevented||((fe=(de=f.action).onClick)==null||fe.call(de,L),ue()))},className:X(I==null?void 0:I.actionButton,(m=f==null?void 0:f.classNames)==null?void 0:m.actionButton)},f.action.label):null))};function Tm(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var uR=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:s,theme:d="light",richColors:u,duration:m,style:h,visibleToasts:f=eR,toastOptions:w,dir:C=Tm(),gap:S=oR,loadingIcon:R,icons:y,containerAriaLabel:g="Notifications",pauseWhenPageIsHidden:x,cn:_=aR}=e,[N,A]=D.useState([]),P=D.useMemo(()=>Array.from(new Set([n].concat(N.filter(Y=>Y.position).map(Y=>Y.position)))),[N,n]),[j,F]=D.useState([]),[M,B]=D.useState(!1),[W,z]=D.useState(!1),[V,Z]=D.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),oe=D.useRef(null),re=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=D.useRef(null),U=D.useRef(!1),ne=D.useCallback(Y=>{var X;(X=N.find(me=>me.id===Y.id))!=null&&X.delete||Wt.dismiss(Y.id),A(me=>me.filter(({id:pe})=>pe!==Y.id))},[N]);return D.useEffect(()=>Wt.subscribe(Y=>{if(Y.dismiss){A(X=>X.map(me=>me.id===Y.id?{...me,delete:!0}:me));return}setTimeout(()=>{Kv.flushSync(()=>{A(X=>{let me=X.findIndex(pe=>pe.id===Y.id);return me!==-1?[...X.slice(0,me),{...X[me],...Y},...X.slice(me+1)]:[Y,...X]})})})}),[]),D.useEffect(()=>{if(d!=="system"){Z(d);return}d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:Y})=>{Z(Y?"dark":"light")})},[d]),D.useEffect(()=>{N.length<=1&&B(!1)},[N]),D.useEffect(()=>{let Y=X=>{var me,pe;r.every(Oe=>X[Oe]||X.code===Oe)&&(B(!0),(me=oe.current)==null||me.focus()),X.code==="Escape"&&(document.activeElement===oe.current||(pe=oe.current)!=null&&pe.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[r]),D.useEffect(()=>{if(oe.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,U.current=!1)}},[oe.current]),N.length?D.createElement("section",{"aria-label":`${g} ${re}`,tabIndex:-1},P.map((Y,X)=>{var me;let[pe,Oe]=Y.split("-");return D.createElement("ol",{key:Y,dir:C==="auto"?Tm():C,tabIndex:-1,ref:oe,className:l,"data-sonner-toaster":!0,"data-theme":V,"data-y-position":pe,"data-x-position":Oe,style:{"--front-toast-height":`${((me=j[0])==null?void 0:me.height)||0}px`,"--offset":typeof s=="number"?`${s}px`:s||tR,"--width":`${rR}px`,"--gap":`${S}px`,...h},onBlur:ce=>{U.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(U.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||U.current||(U.current=!0,I.current=ce.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{W||B(!1)},onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||z(!0)},onPointerUp:()=>z(!1)},N.filter(ce=>!ce.position&&X===0||ce.position===Y).map((ce,ee)=>{var we,De;return D.createElement(sR,{key:ce.id,icons:y,index:ee,toast:ce,defaultRichColors:u,duration:(we=w==null?void 0:w.duration)!=null?we:m,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:t,visibleToasts:f,closeButton:(De=w==null?void 0:w.closeButton)!=null?De:i,interacting:W,position:Y,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,removeToast:ne,toasts:N.filter(K=>K.position==ce.position),heights:j.filter(K=>K.position==ce.position),setHeights:F,expandByDefault:o,gap:S,loadingIcon:R,expanded:M,pauseWhenPageIsHidden:x,cn:_})}))})):null};function cR({errors:e}){return e&&(b.Fragment,e.map(t=>Ac(t.message,{position:"bottom-right"}))),b.jsx(b.Fragment,{})}var Yd="Dialog",[hy,vy]=Vo(Yd),[dR,bn]=hy(Yd),gy=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,s=v.useRef(null),d=v.useRef(null),[u=!1,m]=Ha({prop:r,defaultProp:o,onChange:i});return b.jsx(dR,{scope:t,triggerRef:s,contentRef:d,contentId:No(),titleId:No(),descriptionId:No(),open:u,onOpenChange:m,onOpenToggle:v.useCallback(()=>m(h=>!h),[m]),modal:l,children:n})};gy.displayName=Yd;var yy="DialogTrigger",wy=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(yy,n),i=Ye(t,o.triggerRef);return b.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Jd(o.open),...r,ref:i,onClick:Te(e.onClick,o.onOpenToggle)})});wy.displayName=yy;var Xd="DialogPortal",[fR,xy]=hy(Xd,{forceMount:void 0}),by=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=bn(Xd,t);return b.jsx(fR,{scope:t,forceMount:n,children:v.Children.map(r,l=>b.jsx(al,{present:n||i.open,children:b.jsx(Bd,{asChild:!0,container:o,children:l})}))})};by.displayName=Xd;var Ka="DialogOverlay",Sy=v.forwardRef((e,t)=>{const n=xy(Ka,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=bn(Ka,e.__scopeDialog);return i.modal?b.jsx(al,{present:r||i.open,children:b.jsx(pR,{...o,ref:t})}):null});Sy.displayName=Ka;var pR=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(Ka,n);return b.jsx(Ud,{as:Kr,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(Ue.div,{"data-state":Jd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Xr="DialogContent",Ey=v.forwardRef((e,t)=>{const n=xy(Xr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=bn(Xr,e.__scopeDialog);return b.jsx(al,{present:r||i.open,children:i.modal?b.jsx(mR,{...o,ref:t}):b.jsx(hR,{...o,ref:t})})});Ey.displayName=Xr;var mR=v.forwardRef((e,t)=>{const n=bn(Xr,e.__scopeDialog),r=v.useRef(null),o=Ye(t,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return Vg(i)},[]),b.jsx(Cy,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Te(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Te(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0;(l.button===2||s)&&i.preventDefault()}),onFocusOutside:Te(e.onFocusOutside,i=>i.preventDefault())})}),hR=v.forwardRef((e,t)=>{const n=bn(Xr,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return b.jsx(Cy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,s;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Cy=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,s=bn(Xr,n),d=v.useRef(null),u=Ye(t,d);return yg(),b.jsxs(b.Fragment,{children:[b.jsx(Dd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(fs,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Jd(s.open),...l,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(gR,{titleId:s.titleId}),b.jsx(wR,{contentRef:d,descriptionId:s.descriptionId})]})]})}),Zd="DialogTitle",_y=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(Zd,n);return b.jsx(Ue.h2,{id:o.titleId,...r,ref:t})});_y.displayName=Zd;var ky="DialogDescription",Ry=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(ky,n);return b.jsx(Ue.p,{id:o.descriptionId,...r,ref:t})});Ry.displayName=ky;var Ny="DialogClose",Py=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(Ny,n);return b.jsx(Ue.button,{type:"button",...r,ref:t,onClick:Te(e.onClick,()=>o.onOpenChange(!1))})});Py.displayName=Ny;function Jd(e){return e?"open":"closed"}var Ty="DialogTitleWarning",[vR,Ay]=kE(Ty,{contentName:Xr,titleName:Zd,docsSlug:"dialog"}),gR=({titleId:e})=>{const t=Ay(Ty),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +`)},WC=0,uo=[];function VC(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(WC++)[0],i=g.useState(Qg)[0],l=g.useRef(e);g.useEffect(function(){l.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=vc([e.lockRef.current],(e.shards||[]).map(wm),!0).filter(Boolean);return S.forEach(function(R){return R.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=g.useCallback(function(S,R){if("touches"in S&&S.touches.length===2)return!l.current.allowPinchZoom;var y=Wl(S),v=n.current,x="deltaX"in S?S.deltaX:v[0]-y[0],_="deltaY"in S?S.deltaY:v[1]-y[1],N,D=S.target,P=Math.abs(x)>Math.abs(_)?"h":"v";if("touches"in S&&P==="h"&&D.type==="range")return!1;var j=gm(P,D);if(!j)return!0;if(j?N=P:(N=P==="v"?"h":"v",j=gm(P,D)),!j)return!1;if(!r.current&&"changedTouches"in S&&(x||_)&&(r.current=N),!N)return!0;var z=r.current||N;return HC(z,R,S,z==="h"?x:_,!0)},[]),d=g.useCallback(function(S){var R=S;if(!(!uo.length||uo[uo.length-1]!==i)){var y="deltaY"in R?ym(R):Wl(R),v=t.current.filter(function(N){return N.name===R.type&&(N.target===R.target||R.target===N.shadowParent)&&BC(N.delta,y)})[0];if(v&&v.should){R.cancelable&&R.preventDefault();return}if(!v){var x=(l.current.shards||[]).map(wm).filter(Boolean).filter(function(N){return N.contains(R.target)}),_=x.length>0?s(R,x[0]):!l.current.noIsolation;_&&R.cancelable&&R.preventDefault()}}},[]),u=g.useCallback(function(S,R,y,v){var x={name:S,delta:R,target:y,should:v,shadowParent:qC(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(_){return _!==x})},1)},[]),m=g.useCallback(function(S){n.current=Wl(S),r.current=void 0},[]),h=g.useCallback(function(S){u(S.type,ym(S),S.target,s(S,e.lockRef.current))},[]),f=g.useCallback(function(S){u(S.type,Wl(S),S.target,s(S,e.lockRef.current))},[]);g.useEffect(function(){return uo.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,so),document.addEventListener("touchmove",d,so),document.addEventListener("touchstart",m,so),function(){uo=uo.filter(function(S){return S!==i}),document.removeEventListener("wheel",d,so),document.removeEventListener("touchmove",d,so),document.removeEventListener("touchstart",m,so)}},[]);var w=e.removeScrollBar,C=e.inert;return g.createElement(g.Fragment,null,C?g.createElement(i,{styles:UC(o)}):null,w?g.createElement(jC,{gapMode:e.gapMode}):null)}function qC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const GC=bC(Kg,VC);var Ud=g.forwardRef(function(e,t){return g.createElement(hs,Tn({},e,{ref:t,sideCar:GC}))});Ud.classNames=hs.classNames;var KC=[" ","Enter","ArrowUp","ArrowDown"],QC=[" ","Enter"],ll="Select",[vs,gs,YC]=AE(ll),[Zo,gN]=qo(ll,[YC,ms]),ys=ms(),[XC,Rr]=Zo(ll),[ZC,JC]=Zo(ll),Jg=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:s,onValueChange:d,dir:u,name:m,autoComplete:h,disabled:f,required:w}=e,C=ys(t),[S,R]=g.useState(null),[y,v]=g.useState(null),[x,_]=g.useState(!1),N=OE(u),[D=!1,P]=Ha({prop:r,defaultProp:o,onChange:i}),[j,z]=Ha({prop:l,defaultProp:s,onChange:d}),F=g.useRef(null),q=S?!!S.closest("form"):!0,[W,$]=g.useState(new Set),V=Array.from(W).map(Z=>Z.props.value).join(";");return b.jsx(zg,{...C,children:b.jsxs(XC,{required:w,scope:t,trigger:S,onTriggerChange:R,valueNode:y,onValueNodeChange:v,valueNodeHasChildren:x,onValueNodeHasChildrenChange:_,contentId:Po(),value:j,onValueChange:z,open:D,onOpenChange:P,dir:N,triggerPointerDownPosRef:F,disabled:f,children:[b.jsx(vs.Provider,{scope:t,children:b.jsx(ZC,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(Z=>{$(oe=>new Set(oe).add(Z))},[]),onNativeOptionRemove:g.useCallback(Z=>{$(oe=>{const re=new Set(oe);return re.delete(Z),re})},[]),children:n})}),q?b.jsxs(_0,{"aria-hidden":!0,required:w,tabIndex:-1,name:m,autoComplete:h,value:j,onChange:Z=>z(Z.target.value),disabled:f,children:[j===void 0?b.jsx("option",{value:""}):null,Array.from(W)]},V):null]})})};Jg.displayName=ll;var e0="SelectTrigger",t0=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=ys(n),l=Rr(e0,n),s=l.disabled||r,d=Ye(t,l.onTriggerChange),u=gs(n),[m,h,f]=k0(C=>{const S=u().filter(v=>!v.disabled),R=S.find(v=>v.value===l.value),y=R0(S,C,R);y!==void 0&&l.onValueChange(y.value)}),w=()=>{s||(l.onOpenChange(!0),f())};return b.jsx($g,{asChild:!0,...i,children:b.jsx(Ue.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":C0(l.value)?"":void 0,...o,ref:d,onClick:Te(o.onClick,C=>{C.currentTarget.focus()}),onPointerDown:Te(o.onPointerDown,C=>{const S=C.target;S.hasPointerCapture(C.pointerId)&&S.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&(w(),l.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)},C.preventDefault())}),onKeyDown:Te(o.onKeyDown,C=>{const S=m.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&h(C.key),!(S&&C.key===" ")&&KC.includes(C.key)&&(w(),C.preventDefault())})})})});t0.displayName=e0;var n0="SelectValue",r0=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...s}=e,d=Rr(n0,n),{onValueNodeHasChildrenChange:u}=d,m=i!==void 0,h=Ye(t,d.onValueNodeChange);return Ot(()=>{u(m)},[u,m]),b.jsx(Ue.span,{...s,ref:h,style:{pointerEvents:"none"},children:C0(d.value)?b.jsx(b.Fragment,{children:l}):i})});r0.displayName=n0;var e_="SelectIcon",o0=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return b.jsx(Ue.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});o0.displayName=e_;var t_="SelectPortal",i0=e=>b.jsx(Bd,{asChild:!0,...e});i0.displayName=t_;var Yr="SelectContent",l0=g.forwardRef((e,t)=>{const n=Rr(Yr,e.__scopeSelect),[r,o]=g.useState();if(Ot(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?eo.createPortal(b.jsx(a0,{scope:e.__scopeSelect,children:b.jsx(vs.Slot,{scope:e.__scopeSelect,children:b.jsx("div",{children:e.children})})}),i):null}return b.jsx(s0,{...e,ref:t})});l0.displayName=Yr;var zn=10,[a0,Nr]=Zo(Yr),n_="SelectContentImpl",s0=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:s,sideOffset:d,align:u,alignOffset:m,arrowPadding:h,collisionBoundary:f,collisionPadding:w,sticky:C,hideWhenDetached:S,avoidCollisions:R,...y}=e,v=Rr(Yr,n),[x,_]=g.useState(null),[N,D]=g.useState(null),P=Ye(t,ee=>_(ee)),[j,z]=g.useState(null),[F,q]=g.useState(null),W=gs(n),[$,V]=g.useState(!1),Z=g.useRef(!1);g.useEffect(()=>{if(x)return Vg(x)},[x]),yg();const oe=g.useCallback(ee=>{const[we,...De]=W().map(ve=>ve.ref.current),[K]=De.slice(-1),be=document.activeElement;for(const ve of ee)if(ve===be||(ve==null||ve.scrollIntoView({block:"nearest"}),ve===we&&N&&(N.scrollTop=0),ve===K&&N&&(N.scrollTop=N.scrollHeight),ve==null||ve.focus(),document.activeElement!==be))return},[W,N]),re=g.useCallback(()=>oe([j,x]),[oe,j,x]);g.useEffect(()=>{$&&re()},[$,re]);const{onOpenChange:M,triggerPointerDownPosRef:B}=v;g.useEffect(()=>{if(x){let ee={x:0,y:0};const we=K=>{var be,ve;ee={x:Math.abs(Math.round(K.pageX)-(((be=B.current)==null?void 0:be.x)??0)),y:Math.abs(Math.round(K.pageY)-(((ve=B.current)==null?void 0:ve.y)??0))}},De=K=>{ee.x<=10&&ee.y<=10?K.preventDefault():x.contains(K.target)||M(!1),document.removeEventListener("pointermove",we),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",De,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",De,{capture:!0})}}},[x,M,B]),g.useEffect(()=>{const ee=()=>M(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[M]);const[ne,Y]=k0(ee=>{const we=W().filter(be=>!be.disabled),De=we.find(be=>be.ref.current===document.activeElement),K=R0(we,ee,De);K&&setTimeout(()=>K.ref.current.focus())}),X=g.useCallback((ee,we,De)=>{const K=!Z.current&&!De;(v.value!==void 0&&v.value===we||K)&&(z(ee),K&&(Z.current=!0))},[v.value]),me=g.useCallback(()=>x==null?void 0:x.focus(),[x]),pe=g.useCallback((ee,we,De)=>{const K=!Z.current&&!De;(v.value!==void 0&&v.value===we||K)&&q(ee)},[v.value]),Oe=r==="popper"?yc:u0,ce=Oe===yc?{side:s,sideOffset:d,align:u,alignOffset:m,arrowPadding:h,collisionBoundary:f,collisionPadding:w,sticky:C,hideWhenDetached:S,avoidCollisions:R}:{};return b.jsx(a0,{scope:n,content:x,viewport:N,onViewportChange:D,itemRefCallback:X,selectedItem:j,onItemLeave:me,itemTextRefCallback:pe,focusSelectedItem:re,selectedItemText:F,position:r,isPositioned:$,searchRef:ne,children:b.jsx(Ud,{as:Kr,allowPinchZoom:!0,children:b.jsx(Dd,{asChild:!0,trapped:v.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:Te(o,ee=>{var we;(we=v.trigger)==null||we.focus({preventScroll:!0}),ee.preventDefault()}),children:b.jsx(fs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:b.jsx(Oe,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:ee=>ee.preventDefault(),...y,...ce,onPlaced:()=>V(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Te(y.onKeyDown,ee=>{const we=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!we&&ee.key.length===1&&Y(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let K=W().filter(be=>!be.disabled).map(be=>be.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const be=ee.target,ve=K.indexOf(be);K=K.slice(ve+1)}setTimeout(()=>oe(K)),ee.preventDefault()}})})})})})})});s0.displayName=n_;var r_="SelectItemAlignedPosition",u0=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Rr(Yr,n),l=Nr(Yr,n),[s,d]=g.useState(null),[u,m]=g.useState(null),h=Ye(t,P=>m(P)),f=gs(n),w=g.useRef(!1),C=g.useRef(!0),{viewport:S,selectedItem:R,selectedItemText:y,focusSelectedItem:v}=l,x=g.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&S&&R&&y){const P=i.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),z=i.valueNode.getBoundingClientRect(),F=y.getBoundingClientRect();if(i.dir!=="rtl"){const be=F.left-j.left,ve=z.left-be,J=P.left-ve,xe=P.width+J,ot=Math.max(xe,j.width),Ie=window.innerWidth-zn,nt=Xp(ve,[zn,Ie-ot]);s.style.minWidth=xe+"px",s.style.left=nt+"px"}else{const be=j.right-F.right,ve=window.innerWidth-z.right-be,J=window.innerWidth-P.right-ve,xe=P.width+J,ot=Math.max(xe,j.width),Ie=window.innerWidth-zn,nt=Xp(ve,[zn,Ie-ot]);s.style.minWidth=xe+"px",s.style.right=nt+"px"}const q=f(),W=window.innerHeight-zn*2,$=S.scrollHeight,V=window.getComputedStyle(u),Z=parseInt(V.borderTopWidth,10),oe=parseInt(V.paddingTop,10),re=parseInt(V.borderBottomWidth,10),M=parseInt(V.paddingBottom,10),B=Z+oe+$+M+re,ne=Math.min(R.offsetHeight*5,B),Y=window.getComputedStyle(S),X=parseInt(Y.paddingTop,10),me=parseInt(Y.paddingBottom,10),pe=P.top+P.height/2-zn,Oe=W-pe,ce=R.offsetHeight/2,ee=R.offsetTop+ce,we=Z+oe+ee,De=B-we;if(we<=pe){const be=R===q[q.length-1].ref.current;s.style.bottom="0px";const ve=u.clientHeight-S.offsetTop-S.offsetHeight,J=Math.max(Oe,ce+(be?me:0)+ve+re),xe=we+J;s.style.height=xe+"px"}else{const be=R===q[0].ref.current;s.style.top="0px";const J=Math.max(pe,Z+S.offsetTop+(be?X:0)+ce)+De;s.style.height=J+"px",S.scrollTop=we-pe+S.offsetTop}s.style.margin=`${zn}px 0`,s.style.minHeight=ne+"px",s.style.maxHeight=W+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[f,i.trigger,i.valueNode,s,u,S,R,y,i.dir,r]);Ot(()=>x(),[x]);const[_,N]=g.useState();Ot(()=>{u&&N(window.getComputedStyle(u).zIndex)},[u]);const D=g.useCallback(P=>{P&&C.current===!0&&(x(),v==null||v(),C.current=!1)},[x,v]);return b.jsx(i_,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:w,onScrollButtonChange:D,children:b.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:b.jsx(Ue.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});u0.displayName=r_;var o_="SelectPopperPosition",yc=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=zn,...i}=e,l=ys(n);return b.jsx(Hg,{...l,...i,ref:t,align:r,collisionPadding:o,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)"}})});yc.displayName=o_;var[i_,Wd]=Zo(Yr,{}),wc="SelectViewport",c0=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Nr(wc,n),l=Wd(wc,n),s=Ye(t,i.onViewportChange),d=g.useRef(0);return b.jsxs(b.Fragment,{children:[b.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:r}),b.jsx(vs.Slot,{scope:n,children:b.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:Te(o.onScroll,u=>{const m=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=l;if(f!=null&&f.current&&h){const w=Math.abs(d.current-m.scrollTop);if(w>0){const C=window.innerHeight-zn*2,S=parseFloat(h.style.minHeight),R=parseFloat(h.style.height),y=Math.max(S,R);if(y0?_:0,h.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});c0.displayName=wc;var d0="SelectGroup",[l_,a_]=Zo(d0),f0=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Po();return b.jsx(l_,{scope:n,id:o,children:b.jsx(Ue.div,{role:"group","aria-labelledby":o,...r,ref:t})})});f0.displayName=d0;var p0="SelectLabel",m0=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=a_(p0,n);return b.jsx(Ue.div,{id:o.id,...r,ref:t})});m0.displayName=p0;var Ba="SelectItem",[s_,h0]=Zo(Ba),v0=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,s=Rr(Ba,n),d=Nr(Ba,n),u=s.value===r,[m,h]=g.useState(i??""),[f,w]=g.useState(!1),C=Ye(t,y=>{var v;return(v=d.itemRefCallback)==null?void 0:v.call(d,y,r,o)}),S=Po(),R=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A 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 b.jsx(s_,{scope:n,value:r,disabled:o,textId:S,isSelected:u,onItemTextChange:g.useCallback(y=>{h(v=>v||((y==null?void 0:y.textContent)??"").trim())},[]),children:b.jsx(vs.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:b.jsx(Ue.div,{role:"option","aria-labelledby":S,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:C,onFocus:Te(l.onFocus,()=>w(!0)),onBlur:Te(l.onBlur,()=>w(!1)),onPointerUp:Te(l.onPointerUp,R),onPointerMove:Te(l.onPointerMove,y=>{var v;o?(v=d.onItemLeave)==null||v.call(d):y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Te(l.onPointerLeave,y=>{var v;y.currentTarget===document.activeElement&&((v=d.onItemLeave)==null||v.call(d))}),onKeyDown:Te(l.onKeyDown,y=>{var x;((x=d.searchRef)==null?void 0:x.current)!==""&&y.key===" "||(QC.includes(y.key)&&R(),y.key===" "&&y.preventDefault())})})})})});v0.displayName=Ba;var Ei="SelectItemText",g0=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=Rr(Ei,n),s=Nr(Ei,n),d=h0(Ei,n),u=JC(Ei,n),[m,h]=g.useState(null),f=Ye(t,y=>h(y),d.onItemTextChange,y=>{var v;return(v=s.itemTextRefCallback)==null?void 0:v.call(s,y,d.value,d.disabled)}),w=m==null?void 0:m.textContent,C=g.useMemo(()=>b.jsx("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:S,onNativeOptionRemove:R}=u;return Ot(()=>(S(C),()=>R(C)),[S,R,C]),b.jsxs(b.Fragment,{children:[b.jsx(Ue.span,{id:d.textId,...i,ref:f}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?eo.createPortal(i.children,l.valueNode):null]})});g0.displayName=Ei;var y0="SelectItemIndicator",w0=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return h0(y0,n).isSelected?b.jsx(Ue.span,{"aria-hidden":!0,...r,ref:t}):null});w0.displayName=y0;var xc="SelectScrollUpButton",x0=g.forwardRef((e,t)=>{const n=Nr(xc,e.__scopeSelect),r=Wd(xc,e.__scopeSelect),[o,i]=g.useState(!1),l=Ye(t,r.onScrollButtonChange);return Ot(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=d.scrollTop>0;i(u)};const d=n.viewport;return s(),d.addEventListener("scroll",s),()=>d.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?b.jsx(S0,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:d}=n;s&&d&&(s.scrollTop=s.scrollTop-d.offsetHeight)}}):null});x0.displayName=xc;var bc="SelectScrollDownButton",b0=g.forwardRef((e,t)=>{const n=Nr(bc,e.__scopeSelect),r=Wd(bc,e.__scopeSelect),[o,i]=g.useState(!1),l=Ye(t,r.onScrollButtonChange);return Ot(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)d.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?b.jsx(S0,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:d}=n;s&&d&&(s.scrollTop=s.scrollTop+d.offsetHeight)}}):null});b0.displayName=bc;var S0=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Nr("SelectScrollButton",n),l=g.useRef(null),s=gs(n),d=g.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return g.useEffect(()=>()=>d(),[d]),Ot(()=>{var m;const u=s().find(h=>h.ref.current===document.activeElement);(m=u==null?void 0:u.ref.current)==null||m.scrollIntoView({block:"nearest"})},[s]),b.jsx(Ue.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Te(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Te(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Te(o.onPointerLeave,()=>{d()})})}),u_="SelectSeparator",E0=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return b.jsx(Ue.div,{"aria-hidden":!0,...r,ref:t})});E0.displayName=u_;var Sc="SelectArrow",c_=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ys(n),i=Rr(Sc,n),l=Nr(Sc,n);return i.open&&l.position==="popper"?b.jsx(Bg,{...o,...r,ref:t}):null});c_.displayName=Sc;function C0(e){return e===""||e===void 0}var _0=g.forwardRef((e,t)=>{const{value:n,...r}=e,o=g.useRef(null),i=Ye(t,o),l=sC(n);return g.useEffect(()=>{const s=o.current,d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==n&&m){const h=new Event("change",{bubbles:!0});m.call(s,n),s.dispatchEvent(h)}},[l,n]),b.jsx(Ug,{asChild:!0,children:b.jsx("select",{...r,ref:i,defaultValue:n})})});_0.displayName="BubbleSelect";function k0(e){const t=Kn(e),n=g.useRef(""),r=g.useRef(0),o=g.useCallback(l=>{const s=n.current+l;t(s),function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(s)},[t]),i=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function R0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=d_(e,Math.max(i,0));o.length===1&&(l=l.filter(u=>u!==n));const d=l.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function d_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var f_=Jg,N0=t0,p_=r0,m_=o0,h_=i0,P0=l0,v_=c0,g_=f0,T0=m0,A0=v0,y_=g0,w_=w0,D0=x0,O0=b0,j0=E0;const x_=f_,b_=g_,S_=p_,M0=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(N0,{ref:r,className:Re("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-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",e),...n,children:[t,b.jsx(m_,{asChild:!0,children:b.jsx(hg,{className:"h-4 w-4 opacity-50"})})]}));M0.displayName=N0.displayName;const I0=g.forwardRef(({className:e,...t},n)=>b.jsx(D0,{ref:n,className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(mE,{className:"h-4 w-4"})}));I0.displayName=D0.displayName;const L0=g.forwardRef(({className:e,...t},n)=>b.jsx(O0,{ref:n,className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(hg,{className:"h-4 w-4"})}));L0.displayName=O0.displayName;const F0=g.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>b.jsx(h_,{children:b.jsxs(P0,{ref:o,className:Re("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",n==="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",e),position:n,...r,children:[b.jsx(I0,{}),b.jsx(v_,{className:Re("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),b.jsx(L0,{})]})}));F0.displayName=P0.displayName;const z0=g.forwardRef(({className:e,...t},n)=>b.jsx(T0,{ref:n,className:Re("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));z0.displayName=T0.displayName;const $0=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(A0,{ref:r,className:Re("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(w_,{children:b.jsx(dE,{className:"h-4 w-4"})})}),b.jsx(y_,{children:t})]}));$0.displayName=A0.displayName;const E_=g.forwardRef(({className:e,...t},n)=>b.jsx(j0,{ref:n,className:Re("-mx-1 my-1 h-px bg-muted",e),...t}));E_.displayName=j0.displayName;const C_=pg("inline-flex items-center rounded 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 H0({className:e,variant:t,...n}){return b.jsx("div",{className:Re(C_({variant:t}),e),...n})}function __(){const{tables:e,selectedTable:t,setSelectedTable:n}=to();return b.jsxs("section",{className:"flex justify-center items-center gap-2",children:[b.jsxs(x_,{value:t,onValueChange:n,children:[b.jsx(M0,{className:"grow",children:b.jsx(S_,{placeholder:"Select a table"})}),b.jsx(F0,{children:b.jsxs(b_,{children:[b.jsx(z0,{children:"Tables"}),e.map((r,o)=>b.jsx($0,{value:`${o}`,children:r.name},r.name))]})})]}),b.jsx(H0,{title:"Rows",className:"text-sm grow min-w-[100px] md:min-w-[200px] py-2",variant:"outline",children:b.jsx("span",{className:"text-center w-full",children:e[parseInt(t)].count})})]})}function k_(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var al=e=>{const{present:t,children:n}=e,r=R_(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=Ye(r.ref,N_(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};al.displayName="Presence";function R_(e){const[t,n]=g.useState(),r=g.useRef({}),o=g.useRef(e),i=g.useRef("none"),l=e?"mounted":"unmounted",[s,d]=k_(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=Vl(r.current);i.current=s==="mounted"?u:"none"},[s]),Ot(()=>{const u=r.current,m=o.current;if(m!==e){const f=i.current,w=Vl(u);e?d("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(m&&f!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ot(()=>{if(t){const u=h=>{const w=Vl(r.current).includes(h.animationName);h.target===t&&w&&eo.flushSync(()=>d("ANIMATION_END"))},m=h=>{h.target===t&&(i.current=Vl(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:g.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Vl(e){return(e==null?void 0:e.animationName)||"none"}function N_(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var pu,Vd="HoverCard",[B0,yN]=qo(Vd,[ms]),ws=ms(),[P_,qd]=B0(Vd),U0=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:l=700,closeDelay:s=300}=e,d=ws(t),u=g.useRef(0),m=g.useRef(0),h=g.useRef(!1),f=g.useRef(!1),[w=!1,C]=Ha({prop:r,defaultProp:o,onChange:i}),S=g.useCallback(()=>{clearTimeout(m.current),u.current=window.setTimeout(()=>C(!0),l)},[l,C]),R=g.useCallback(()=>{clearTimeout(u.current),!h.current&&!f.current&&(m.current=window.setTimeout(()=>C(!1),s))},[s,C]),y=g.useCallback(()=>C(!1),[C]);return g.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(m.current)},[]),b.jsx(P_,{scope:t,open:w,onOpenChange:C,onOpen:S,onClose:R,onDismiss:y,hasSelectionRef:h,isPointerDownOnContentRef:f,children:b.jsx(zg,{...d,children:n})})};U0.displayName=Vd;var W0="HoverCardTrigger",V0=g.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=qd(W0,n),i=ws(n);return b.jsx($g,{asChild:!0,...i,children:b.jsx(Ue.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:Te(e.onPointerEnter,Wa(o.onOpen)),onPointerLeave:Te(e.onPointerLeave,Wa(o.onClose)),onFocus:Te(e.onFocus,o.onOpen),onBlur:Te(e.onBlur,o.onClose),onTouchStart:Te(e.onTouchStart,l=>l.preventDefault())})})});V0.displayName=W0;var T_="HoverCardPortal",[wN,A_]=B0(T_,{forceMount:void 0}),Ua="HoverCardContent",q0=g.forwardRef((e,t)=>{const n=A_(Ua,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=qd(Ua,e.__scopeHoverCard);return b.jsx(al,{present:r||i.open,children:b.jsx(D_,{"data-state":i.open?"open":"closed",...o,onPointerEnter:Te(e.onPointerEnter,Wa(i.onOpen)),onPointerLeave:Te(e.onPointerLeave,Wa(i.onClose)),ref:t})})});q0.displayName=Ua;var D_=g.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,...s}=e,d=qd(Ua,n),u=ws(n),m=g.useRef(null),h=Ye(t,m),[f,w]=g.useState(!1);return g.useEffect(()=>{if(f){const C=document.body;return pu=C.style.userSelect||C.style.webkitUserSelect,C.style.userSelect="none",C.style.webkitUserSelect="none",()=>{C.style.userSelect=pu,C.style.webkitUserSelect=pu}}},[f]),g.useEffect(()=>{if(m.current){const C=()=>{w(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var R;((R=document.getSelection())==null?void 0:R.toString())!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",C),()=>{document.removeEventListener("pointerup",C),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),g.useEffect(()=>{m.current&&M_(m.current).forEach(S=>S.setAttribute("tabindex","-1"))}),b.jsx(fs,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Te(i,C=>{C.preventDefault()}),onDismiss:d.onDismiss,children:b.jsx(Hg,{...u,...s,onPointerDown:Te(s.onPointerDown,C=>{C.currentTarget.contains(C.target)&&w(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:h,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),O_="HoverCardArrow",j_=g.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ws(n);return b.jsx(Bg,{...o,...r,ref:t})});j_.displayName=O_;function Wa(e){return t=>t.pointerType==="touch"?void 0:e()}function M_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var I_=U0,L_=V0,G0=q0;const K0=I_,Q0=L_,Gd=g.forwardRef(({className:e,align:t="start",side:n="bottom",sideOffset:r=4,...o},i)=>b.jsx(G0,{ref:i,align:t,side:n,sideOffset:r,className:Re("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 text-balance break-words",e),...o}));Gd.displayName=G0.displayName;const Y0=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{className:"relative w-full overflow-auto",children:b.jsx("table",{ref:n,className:Re("w-full caption-bottom text-sm",e),...t})}));Y0.displayName="Table";const X0=g.forwardRef(({className:e,...t},n)=>b.jsx("thead",{ref:n,className:Re("[&_tr]:border-b",e),...t}));X0.displayName="TableHeader";const Z0=g.forwardRef(({className:e,...t},n)=>b.jsx("tbody",{ref:n,className:Re("[&_tr:last-child]:border-0",e),...t}));Z0.displayName="TableBody";const F_=g.forwardRef(({className:e,...t},n)=>b.jsx("tfoot",{ref:n,className:Re("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));F_.displayName="TableFooter";const Kd=g.forwardRef(({className:e,...t},n)=>b.jsx("tr",{ref:n,className:Re("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Kd.displayName="TableRow";const J0=g.forwardRef(({className:e,...t},n)=>b.jsx("th",{ref:n,className:Re("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));J0.displayName="TableHead";const ey=g.forwardRef(({className:e,children:t,dataType:n,...r},o)=>b.jsx("td",{ref:o,className:Re("p-4 align-middle [&:has([role=checkbox])]:pr-0 truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",e),...r,children:b.jsxs(K0,{children:[b.jsx(Q0,{asChild:!0,children:b.jsx("span",{className:"hover:underline cursor-pointer",children:t})}),b.jsx(Gd,{side:"bottom",align:"start",children:b.jsxs("div",{className:"flex flex-col gap-1",children:[n==="BLOB"?b.jsx("span",{className:"truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",children:t}):t,n&&b.jsx(H0,{className:"text-xs",children:n})]})})]})}));ey.displayName="TableCell";const z_=g.forwardRef(({className:e,...t},n)=>b.jsx("caption",{ref:n,className:Re("mt-4 text-sm text-muted-foreground",e),...t}));z_.displayName="TableCaption";const $_=e=>e!=null&&e.isPrimaryKey?b.jsx(yE,{className:"h-4 w-4"}):e!=null&&e.isForeignKey?b.jsx(wE,{className:"h-4 w-4"}):(e==null?void 0:e.type)==="BLOB"?b.jsx(vE,{className:"h-4 w-4"}):(e==null?void 0:e.type)==="DATETIME"?b.jsx(hE,{className:"h-4 w-4"}):null,H_=(e,t,n)=>b.jsx(X0,{children:b.jsx(Kd,{children:e.map((r,o)=>{var i;return b.jsx(J0,{children:b.jsxs(K0,{children:[b.jsx(Q0,{asChild:!0,children:b.jsx("span",{className:"hover:underline cursor-pointer",children:b.jsxs("div",{className:"flex gap-1",children:[r,$_(t[n][r])]})})}),b.jsx(Gd,{side:"bottom",align:"start",children:((i=t[n][r])==null?void 0:i.type)||"Unknown"})]})},o)})})}),B_=(e,t,n,r)=>b.jsx(Z0,{children:e.map((o,i)=>b.jsx(Kd,{children:t.map((l,s)=>{var d;return b.jsx(ey,{dataType:(d=n[r][l])==null?void 0:d.type,children:o[l]?o[l]:b.jsx("span",{className:"italic opacity-40",children:"NULL"})},s)})},i))});function U_({data:e,columns:t,tableName:n,tableSchemas:r}){return b.jsxs(Y0,{children:[H_(t,r,n),B_(e,t,r,n)]})}function Ec({children:e}){return b.jsxs("div",{className:"flex items-center justify-center gap-5 font-semibold p-4 border rounded",children:[b.jsx(RE,{className:"w-6 h-6"}),e]})}function Cc({children:e}){return b.jsxs("div",{className:"flex items-center justify-center gap-5 font-semibold p-4 border rounded",children:[b.jsx(bE,{className:"w-6 h-6 animate-spin"}),b.jsx("span",{className:"ml-2 font-semibold",children:e})]})}function W_(){const{tables:e,selectedTable:t,tableSchemas:n,queryError:r,setQueryError:o,rowPerPageOrAuto:i,isCustomQuery:l,setIsCustomQuery:s}=to(),{page:d,setPage:u,rowsPerPage:m}=ES(i),h=g.useMemo(()=>{var N;return(N=e[parseInt(t)])==null?void 0:N.name},[e,t]),f=g.useMemo(()=>{var N;return((N=e[parseInt(t)])==null?void 0:N.count)||0},[e,t]),{data:w,columns:C,customQuery:S,setCustomQuery:R,isQueryLoading:y,handleCustomQuery:v}=SS(h,m,d,l),x=g.useCallback(()=>{o(null),R(""),s(!1)},[s,o,R]),_=g.useCallback(()=>{u(0),x()},[x,u]);return b.jsxs("div",{className:"flex flex-col gap-3 pb-8",children:[b.jsxs("section",{className:"flex flex-col gap-2 p-3 border rounded pb-2",children:[b.jsx(__,{}),b.jsxs("div",{className:"flex flex-col md:flex-row gap-2",children:[b.jsx(Td,{type:"text",value:S,onChange:N=>R(N.target.value),placeholder:"Enter your custom query",className:"w-full"}),b.jsxs("div",{className:"flex gap-1",children:[b.jsx(rn,{className:"w-full",onClick:v,title:"Run custom query",children:b.jsx(EE,{className:"h-5 w-5"})}),b.jsx(rn,{className:"w-full",onClick:x,title:"Reset query",children:b.jsx(kE,{className:"h-5 w-5"})}),b.jsx(rn,{className:"w-full",onClick:_,title:"Reset to first page",disabled:d===0,children:b.jsx(xE,{className:"h-5 w-5"})})]})]}),r&&b.jsx("p",{className:"text-xs text-red-500 capitalize text-center",children:r})]}),y?b.jsxs(Cc,{children:["Loading ",h]}):w.length>0?b.jsx("div",{className:"border rounded",children:b.jsx(U_,{data:w,columns:C,tableName:h,tableSchemas:n})}):b.jsxs(Ec,{children:["Table ",h," is empty"]}),!l&&b.jsx(NE,{page:d,setPage:u,rowsPerPage:m,rowCount:f})]})}var ty={exports:{}},V_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",q_=V_,G_=q_;function ny(){}function ry(){}ry.resetWarningCache=ny;var K_=function(){function e(r,o,i,l,s,d){if(d!==G_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ry,resetWarningCache:ny};return n.PropTypes=n,n};ty.exports=K_();var Q_=ty.exports;const Fe=Ji(Q_);var Y_=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function sl(e,t){var n=X_(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function X_(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Y_.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Z_=[".DS_Store","Thumbs.db"];function J_(e){return Yo(this,void 0,void 0,function(){return Xo(this,function(t){return Va(e)&&ek(e.dataTransfer)?[2,ok(e.dataTransfer,e.type)]:tk(e)?[2,nk(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,rk(e)]:[2,[]]})})}function ek(e){return Va(e)}function tk(e){return Va(e)&&Va(e.target)}function Va(e){return typeof e=="object"&&e!==null}function nk(e){return _c(e.target.files).map(function(t){return sl(t)})}function rk(e){return Yo(this,void 0,void 0,function(){var t;return Xo(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return sl(r)})]}})})}function ok(e,t){return Yo(this,void 0,void 0,function(){var n,r;return Xo(this,function(o){switch(o.label){case 0:return e.items?(n=_c(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(ik))]):[3,2];case 1:return r=o.sent(),[2,xm(oy(r))];case 2:return[2,xm(_c(e.files).map(function(i){return sl(i)}))]}})})}function xm(e){return e.filter(function(t){return Z_.indexOf(t.name)===-1})}function _c(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,_m(n)];if(e.sizen)return[!1,_m(n)]}return[!0,null]}function Ir(e){return e!=null}function bk(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,l=e.maxFiles,s=e.validator;return!i&&t.length>1||i&&l>=1&&t.length>l?!1:t.every(function(d){var u=sy(d,n),m=Zi(u,1),h=m[0],f=uy(d,r,o),w=Zi(f,1),C=w[0],S=s?s(d):null;return h&&C&&!S})}function qa(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function ql(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Rm(e){e.preventDefault()}function Sk(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ek(e){return e.indexOf("Edge/")!==-1}function Ck(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Sk(e)||Ek(e)}function Rn(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),l=1;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Qd=g.forwardRef(function(e,t){var n=e.children,r=Ga(e,Tk),o=my(r),i=o.open,l=Ga(o,Ak);return g.useImperativeHandle(t,function(){return{open:i}},[i]),A.createElement(g.Fragment,null,n(Ze(Ze({},l),{},{open:i})))});Qd.displayName="Dropzone";var py={disabled:!1,getFilesFromEvent:J_,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Qd.defaultProps=py;Qd.propTypes={children:Fe.func,accept:Fe.objectOf(Fe.arrayOf(Fe.string)),multiple:Fe.bool,preventDropOnDocument:Fe.bool,noClick:Fe.bool,noKeyboard:Fe.bool,noDrag:Fe.bool,noDragEventsBubbling:Fe.bool,minSize:Fe.number,maxSize:Fe.number,maxFiles:Fe.number,disabled:Fe.bool,getFilesFromEvent:Fe.func,onFileDialogCancel:Fe.func,onFileDialogOpen:Fe.func,useFsAccessApi:Fe.bool,autoFocus:Fe.bool,onDragEnter:Fe.func,onDragLeave:Fe.func,onDragOver:Fe.func,onDrop:Fe.func,onDropAccepted:Fe.func,onDropRejected:Fe.func,onError:Fe.func,validator:Fe.func};var Pc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function my(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ze(Ze({},py),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,l=t.minSize,s=t.multiple,d=t.maxFiles,u=t.onDragEnter,m=t.onDragLeave,h=t.onDragOver,f=t.onDrop,w=t.onDropAccepted,C=t.onDropRejected,S=t.onFileDialogCancel,R=t.onFileDialogOpen,y=t.useFsAccessApi,v=t.autoFocus,x=t.preventDropOnDocument,_=t.noClick,N=t.noKeyboard,D=t.noDrag,P=t.noDragEventsBubbling,j=t.onError,z=t.validator,F=g.useMemo(function(){return Rk(n)},[n]),q=g.useMemo(function(){return kk(n)},[n]),W=g.useMemo(function(){return typeof R=="function"?R:Pm},[R]),$=g.useMemo(function(){return typeof S=="function"?S:Pm},[S]),V=g.useRef(null),Z=g.useRef(null),oe=g.useReducer(Bk,Pc),re=mu(oe,2),M=re[0],B=re[1],ne=M.isFocused,Y=M.isFileDialogActive,X=g.useRef(typeof window<"u"&&window.isSecureContext&&y&&_k()),me=function(){!X.current&&Y&&setTimeout(function(){if(Z.current){var le=Z.current.files;le.length||(B({type:"closeDialog"}),$())}},300)};g.useEffect(function(){return window.addEventListener("focus",me,!1),function(){window.removeEventListener("focus",me,!1)}},[Z,Y,$,X]);var pe=g.useRef([]),Oe=function(le){V.current&&V.current.contains(le.target)||(le.preventDefault(),pe.current=[])};g.useEffect(function(){return x&&(document.addEventListener("dragover",Rm,!1),document.addEventListener("drop",Oe,!1)),function(){x&&(document.removeEventListener("dragover",Rm),document.removeEventListener("drop",Oe))}},[V,x]),g.useEffect(function(){return!r&&v&&V.current&&V.current.focus(),function(){}},[V,v,r]);var ce=g.useCallback(function(Q){j?j(Q):console.error(Q)},[j]),ee=g.useCallback(function(Q){Q.preventDefault(),Q.persist(),ft(Q),pe.current=[].concat(jk(pe.current),[Q.target]),ql(Q)&&Promise.resolve(o(Q)).then(function(le){if(!(qa(Q)&&!P)){var je=le.length,ke=je>0&&bk({files:le,accept:F,minSize:l,maxSize:i,multiple:s,maxFiles:d,validator:z}),Xe=je>0&&!ke;B({isDragAccept:ke,isDragReject:Xe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(Q)}}).catch(function(le){return ce(le)})},[o,u,ce,P,F,l,i,s,d,z]),we=g.useCallback(function(Q){Q.preventDefault(),Q.persist(),ft(Q);var le=ql(Q);if(le&&Q.dataTransfer)try{Q.dataTransfer.dropEffect="copy"}catch{}return le&&h&&h(Q),!1},[h,P]),De=g.useCallback(function(Q){Q.preventDefault(),Q.persist(),ft(Q);var le=pe.current.filter(function(ke){return V.current&&V.current.contains(ke)}),je=le.indexOf(Q.target);je!==-1&&le.splice(je,1),pe.current=le,!(le.length>0)&&(B({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ql(Q)&&m&&m(Q))},[V,m,P]),K=g.useCallback(function(Q,le){var je=[],ke=[];Q.forEach(function(Xe){var it=sy(Xe,F),pt=mu(it,2),Bt=pt[0],un=pt[1],cn=uy(Xe,l,i),En=mu(cn,2),ae=En[0],ue=En[1],Ne=z?z(Xe):null;if(Bt&&ae&&!Ne)je.push(Xe);else{var I=[un,ue];Ne&&(I=I.concat(Ne)),ke.push({file:Xe,errors:I.filter(function(de){return de})})}}),(!s&&je.length>1||s&&d>=1&&je.length>d)&&(je.forEach(function(Xe){ke.push({file:Xe,errors:[xk]})}),je.splice(0)),B({acceptedFiles:je,fileRejections:ke,type:"setFiles"}),f&&f(je,ke,le),ke.length>0&&C&&C(ke,le),je.length>0&&w&&w(je,le)},[B,s,F,l,i,d,f,w,C,z]),be=g.useCallback(function(Q){Q.preventDefault(),Q.persist(),ft(Q),pe.current=[],ql(Q)&&Promise.resolve(o(Q)).then(function(le){qa(Q)&&!P||K(le,Q)}).catch(function(le){return ce(le)}),B({type:"reset"})},[o,K,ce,P]),ve=g.useCallback(function(){if(X.current){B({type:"openDialog"}),W();var Q={multiple:s,types:q};window.showOpenFilePicker(Q).then(function(le){return o(le)}).then(function(le){K(le,null),B({type:"closeDialog"})}).catch(function(le){Nk(le)?($(le),B({type:"closeDialog"})):Pk(le)?(X.current=!1,Z.current?(Z.current.value=null,Z.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ce(le)});return}Z.current&&(B({type:"openDialog"}),W(),Z.current.value=null,Z.current.click())},[B,W,$,y,K,ce,q,s]),J=g.useCallback(function(Q){!V.current||!V.current.isEqualNode(Q.target)||(Q.key===" "||Q.key==="Enter"||Q.keyCode===32||Q.keyCode===13)&&(Q.preventDefault(),ve())},[V,ve]),xe=g.useCallback(function(){B({type:"focus"})},[]),ot=g.useCallback(function(){B({type:"blur"})},[]),Ie=g.useCallback(function(){_||(Ck()?setTimeout(ve,0):ve())},[_,ve]),nt=function(le){return r?null:le},bt=function(le){return N?null:nt(le)},ge=function(le){return D?null:nt(le)},ft=function(le){P&&le.stopPropagation()},er=g.useMemo(function(){return function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=Q.refKey,je=le===void 0?"ref":le,ke=Q.role,Xe=Q.onKeyDown,it=Q.onFocus,pt=Q.onBlur,Bt=Q.onClick,un=Q.onDragEnter,cn=Q.onDragOver,En=Q.onDragLeave,ae=Q.onDrop,ue=Ga(Q,Dk);return Ze(Ze(Nc({onKeyDown:bt(Rn(Xe,J)),onFocus:bt(Rn(it,xe)),onBlur:bt(Rn(pt,ot)),onClick:nt(Rn(Bt,Ie)),onDragEnter:ge(Rn(un,ee)),onDragOver:ge(Rn(cn,we)),onDragLeave:ge(Rn(En,De)),onDrop:ge(Rn(ae,be)),role:typeof ke=="string"&&ke!==""?ke:"presentation"},je,V),!r&&!N?{tabIndex:0}:{}),ue)}},[V,J,xe,ot,Ie,ee,we,De,be,N,D,r]),kt=g.useCallback(function(Q){Q.stopPropagation()},[]),Rt=g.useMemo(function(){return function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=Q.refKey,je=le===void 0?"ref":le,ke=Q.onChange,Xe=Q.onClick,it=Ga(Q,Ok),pt=Nc({accept:F,multiple:s,type:"file",style:{display:"none"},onChange:nt(Rn(ke,be)),onClick:nt(Rn(Xe,kt)),tabIndex:-1},je,Z);return Ze(Ze({},pt),it)}},[Z,n,s,be,r]);return Ze(Ze({},M),{},{isFocused:ne&&!r,getRootProps:er,getInputProps:Rt,rootRef:V,inputRef:Z,open:nt(ve)})}function Bk(e,t){switch(t.type){case"focus":return Ze(Ze({},e),{},{isFocused:!0});case"blur":return Ze(Ze({},e),{},{isFocused:!1});case"openDialog":return Ze(Ze({},Pc),{},{isFileDialogActive:!0});case"closeDialog":return Ze(Ze({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ze(Ze({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ze(Ze({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ze({},Pc);default:return e}}function Pm(){}var Uk=e=>{switch(e){case"success":return qk;case"info":return Kk;case"warning":return Gk;case"error":return Qk;default:return null}},Wk=Array(12).fill(0),Vk=({visible:e})=>A.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},A.createElement("div",{className:"sonner-spinner"},Wk.map((t,n)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),qk=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"})),Gk=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"})),Kk=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"})),Qk=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"})),Yk=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Tc=1,Xk=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Tc++,i=this.toasts.find(s=>s.id===o),l=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...e,id:o,title:n}),{...s,...e,id:o,dismissible:l,title:n}):s):this.addToast({title:n,...r,dismissible:l,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async i=>{if(Jk(i)&&!i.ok){o=!1;let l=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,s=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:l,description:s})}else if(t.success!==void 0){o=!1;let l=typeof t.success=="function"?await t.success(i):t.success,s=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"success",message:l,description:s})}}).catch(async i=>{if(t.error!==void 0){o=!1;let l=typeof t.error=="function"?await t.error(i):t.error,s=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"error",message:l,description:s})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Tc++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Wt=new Xk,Zk=(e,t)=>{let n=(t==null?void 0:t.id)||Tc++;return Wt.addToast({title:e,...t,id:n}),n},Jk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",eR=Zk,tR=()=>Wt.toasts,Ac=Object.assign(eR,{success:Wt.success,info:Wt.info,warning:Wt.warning,error:Wt.error,custom:Wt.custom,message:Wt.message,promise:Wt.promise,dismiss:Wt.dismiss,loading:Wt.loading},{getHistory:tR});function nR(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}nR(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} +`);function Gl(e){return e.label!==void 0}var rR=3,oR="32px",iR=4e3,lR=356,aR=14,sR=20,uR=200;function cR(...e){return e.filter(Boolean).join(" ")}var dR=e=>{var t,n,r,o,i,l,s,d,u,m;let{invert:h,toast:f,unstyled:w,interacting:C,setHeights:S,visibleToasts:R,heights:y,index:v,toasts:x,expanded:_,removeToast:N,defaultRichColors:D,closeButton:P,style:j,cancelButtonStyle:z,actionButtonStyle:F,className:q="",descriptionClassName:W="",duration:$,position:V,gap:Z,loadingIcon:oe,expandByDefault:re,classNames:M,icons:B,closeButtonAriaLabel:ne="Close toast",pauseWhenPageIsHidden:Y,cn:X}=e,[me,pe]=A.useState(!1),[Oe,ce]=A.useState(!1),[ee,we]=A.useState(!1),[De,K]=A.useState(!1),[be,ve]=A.useState(0),[J,xe]=A.useState(0),ot=A.useRef(null),Ie=A.useRef(null),nt=v===0,bt=v+1<=R,ge=f.type,ft=f.dismissible!==!1,er=f.className||"",kt=f.descriptionClassName||"",Rt=A.useMemo(()=>y.findIndex(I=>I.toastId===f.id)||0,[y,f.id]),Q=A.useMemo(()=>{var I;return(I=f.closeButton)!=null?I:P},[f.closeButton,P]),le=A.useMemo(()=>f.duration||$||iR,[f.duration,$]),je=A.useRef(0),ke=A.useRef(0),Xe=A.useRef(0),it=A.useRef(null),[pt,Bt]=V.split("-"),un=A.useMemo(()=>y.reduce((I,de,fe)=>fe>=Rt?I:I+de.height,0),[y,Rt]),cn=Yk(),En=f.invert||h,ae=ge==="loading";ke.current=A.useMemo(()=>Rt*Z+un,[Rt,un]),A.useEffect(()=>{pe(!0)},[]),A.useLayoutEffect(()=>{if(!me)return;let I=Ie.current,de=I.style.height;I.style.height="auto";let fe=I.getBoundingClientRect().height;I.style.height=de,xe(fe),S($e=>$e.find(Le=>Le.toastId===f.id)?$e.map(Le=>Le.toastId===f.id?{...Le,height:fe}:Le):[{toastId:f.id,height:fe,position:f.position},...$e])},[me,f.title,f.description,S,f.id]);let ue=A.useCallback(()=>{ce(!0),ve(ke.current),S(I=>I.filter(de=>de.toastId!==f.id)),setTimeout(()=>{N(f)},uR)},[f,N,S,ke]);A.useEffect(()=>{if(f.promise&&ge==="loading"||f.duration===1/0||f.type==="loading")return;let I,de=le;return _||C||Y&&cn?(()=>{if(Xe.current{var fe;(fe=f.onAutoClose)==null||fe.call(f,f),ue()},de)),()=>clearTimeout(I)},[_,C,re,f,le,ue,f.promise,ge,Y,cn]),A.useEffect(()=>{let I=Ie.current;if(I){let de=I.getBoundingClientRect().height;return xe(de),S(fe=>[{toastId:f.id,height:de,position:f.position},...fe]),()=>S(fe=>fe.filter($e=>$e.toastId!==f.id))}},[S,f.id]),A.useEffect(()=>{f.delete&&ue()},[ue,f.delete]);function Ne(){return B!=null&&B.loading?A.createElement("div",{className:"sonner-loader","data-visible":ge==="loading"},B.loading):oe?A.createElement("div",{className:"sonner-loader","data-visible":ge==="loading"},oe):A.createElement(Vk,{visible:ge==="loading"})}return A.createElement("li",{"aria-live":f.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Ie,className:X(q,er,M==null?void 0:M.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[ge],(n=f==null?void 0:f.classNames)==null?void 0:n[ge]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:D,"data-styled":!(f.jsx||f.unstyled||w),"data-mounted":me,"data-promise":!!f.promise,"data-removed":Oe,"data-visible":bt,"data-y-position":pt,"data-x-position":Bt,"data-index":v,"data-front":nt,"data-swiping":ee,"data-dismissible":ft,"data-type":ge,"data-invert":En,"data-swipe-out":De,"data-expanded":!!(_||re&&me),style:{"--index":v,"--toasts-before":v,"--z-index":x.length-v,"--offset":`${Oe?be:ke.current}px`,"--initial-height":re?"auto":`${J}px`,...j,...f.style},onPointerDown:I=>{ae||!ft||(ot.current=new Date,ve(ke.current),I.target.setPointerCapture(I.pointerId),I.target.tagName!=="BUTTON"&&(we(!0),it.current={x:I.clientX,y:I.clientY}))},onPointerUp:()=>{var I,de,fe,$e;if(De||!ft)return;it.current=null;let Le=Number(((I=Ie.current)==null?void 0:I.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Nt=new Date().getTime()-((de=ot.current)==null?void 0:de.getTime()),Pt=Math.abs(Le)/Nt;if(Math.abs(Le)>=sR||Pt>.11){ve(ke.current),(fe=f.onDismiss)==null||fe.call(f,f),ue(),K(!0);return}($e=Ie.current)==null||$e.style.setProperty("--swipe-amount","0px"),we(!1)},onPointerMove:I=>{var de;if(!it.current||!ft)return;let fe=I.clientY-it.current.y,$e=I.clientX-it.current.x,Le=(pt==="top"?Math.min:Math.max)(0,fe),Nt=I.pointerType==="touch"?10:2;Math.abs(Le)>Nt?(de=Ie.current)==null||de.style.setProperty("--swipe-amount",`${fe}px`):Math.abs($e)>Nt&&(it.current=null)}},Q&&!f.jsx?A.createElement("button",{"aria-label":ne,"data-disabled":ae,"data-close-button":!0,onClick:ae||!ft?()=>{}:()=>{var I;ue(),(I=f.onDismiss)==null||I.call(f,f)},className:X(M==null?void 0:M.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,f.jsx||A.isValidElement(f.title)?f.jsx||f.title:A.createElement(A.Fragment,null,ge||f.icon||f.promise?A.createElement("div",{"data-icon":"",className:X(M==null?void 0:M.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ne():null,f.type!=="loading"?f.icon||(B==null?void 0:B[ge])||Uk(ge):null):null,A.createElement("div",{"data-content":"",className:X(M==null?void 0:M.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},A.createElement("div",{"data-title":"",className:X(M==null?void 0:M.title,(s=f==null?void 0:f.classNames)==null?void 0:s.title)},f.title),f.description?A.createElement("div",{"data-description":"",className:X(W,kt,M==null?void 0:M.description,(d=f==null?void 0:f.classNames)==null?void 0:d.description)},f.description):null),A.isValidElement(f.cancel)?f.cancel:f.cancel&&Gl(f.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||z,onClick:I=>{var de,fe;Gl(f.cancel)&&ft&&((fe=(de=f.cancel).onClick)==null||fe.call(de,I),ue())},className:X(M==null?void 0:M.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,A.isValidElement(f.action)?f.action:f.action&&Gl(f.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||F,onClick:I=>{var de,fe;Gl(f.action)&&(I.defaultPrevented||((fe=(de=f.action).onClick)==null||fe.call(de,I),ue()))},className:X(M==null?void 0:M.actionButton,(m=f==null?void 0:f.classNames)==null?void 0:m.actionButton)},f.action.label):null))};function Tm(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var fR=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:s,theme:d="light",richColors:u,duration:m,style:h,visibleToasts:f=rR,toastOptions:w,dir:C=Tm(),gap:S=aR,loadingIcon:R,icons:y,containerAriaLabel:v="Notifications",pauseWhenPageIsHidden:x,cn:_=cR}=e,[N,D]=A.useState([]),P=A.useMemo(()=>Array.from(new Set([n].concat(N.filter(Y=>Y.position).map(Y=>Y.position)))),[N,n]),[j,z]=A.useState([]),[F,q]=A.useState(!1),[W,$]=A.useState(!1),[V,Z]=A.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),oe=A.useRef(null),re=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=A.useRef(null),B=A.useRef(!1),ne=A.useCallback(Y=>{var X;(X=N.find(me=>me.id===Y.id))!=null&&X.delete||Wt.dismiss(Y.id),D(me=>me.filter(({id:pe})=>pe!==Y.id))},[N]);return A.useEffect(()=>Wt.subscribe(Y=>{if(Y.dismiss){D(X=>X.map(me=>me.id===Y.id?{...me,delete:!0}:me));return}setTimeout(()=>{Kv.flushSync(()=>{D(X=>{let me=X.findIndex(pe=>pe.id===Y.id);return me!==-1?[...X.slice(0,me),{...X[me],...Y},...X.slice(me+1)]:[Y,...X]})})})}),[]),A.useEffect(()=>{if(d!=="system"){Z(d);return}d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:Y})=>{Z(Y?"dark":"light")})},[d]),A.useEffect(()=>{N.length<=1&&q(!1)},[N]),A.useEffect(()=>{let Y=X=>{var me,pe;r.every(Oe=>X[Oe]||X.code===Oe)&&(q(!0),(me=oe.current)==null||me.focus()),X.code==="Escape"&&(document.activeElement===oe.current||(pe=oe.current)!=null&&pe.contains(document.activeElement))&&q(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[r]),A.useEffect(()=>{if(oe.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,B.current=!1)}},[oe.current]),N.length?A.createElement("section",{"aria-label":`${v} ${re}`,tabIndex:-1},P.map((Y,X)=>{var me;let[pe,Oe]=Y.split("-");return A.createElement("ol",{key:Y,dir:C==="auto"?Tm():C,tabIndex:-1,ref:oe,className:l,"data-sonner-toaster":!0,"data-theme":V,"data-y-position":pe,"data-x-position":Oe,style:{"--front-toast-height":`${((me=j[0])==null?void 0:me.height)||0}px`,"--offset":typeof s=="number"?`${s}px`:s||oR,"--width":`${lR}px`,"--gap":`${S}px`,...h},onBlur:ce=>{B.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(B.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||B.current||(B.current=!0,M.current=ce.relatedTarget)},onMouseEnter:()=>q(!0),onMouseMove:()=>q(!0),onMouseLeave:()=>{W||q(!1)},onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},N.filter(ce=>!ce.position&&X===0||ce.position===Y).map((ce,ee)=>{var we,De;return A.createElement(dR,{key:ce.id,icons:y,index:ee,toast:ce,defaultRichColors:u,duration:(we=w==null?void 0:w.duration)!=null?we:m,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:t,visibleToasts:f,closeButton:(De=w==null?void 0:w.closeButton)!=null?De:i,interacting:W,position:Y,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,removeToast:ne,toasts:N.filter(K=>K.position==ce.position),heights:j.filter(K=>K.position==ce.position),setHeights:z,expandByDefault:o,gap:S,loadingIcon:R,expanded:F,pauseWhenPageIsHidden:x,cn:_})}))})):null};function pR({errors:e}){return e&&(b.Fragment,e.map(t=>Ac(t.message,{position:"bottom-right"}))),b.jsx(b.Fragment,{})}var Yd="Dialog",[hy,vy]=qo(Yd),[mR,bn]=hy(Yd),gy=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,s=g.useRef(null),d=g.useRef(null),[u=!1,m]=Ha({prop:r,defaultProp:o,onChange:i});return b.jsx(mR,{scope:t,triggerRef:s,contentRef:d,contentId:Po(),titleId:Po(),descriptionId:Po(),open:u,onOpenChange:m,onOpenToggle:g.useCallback(()=>m(h=>!h),[m]),modal:l,children:n})};gy.displayName=Yd;var yy="DialogTrigger",wy=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(yy,n),i=Ye(t,o.triggerRef);return b.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Jd(o.open),...r,ref:i,onClick:Te(e.onClick,o.onOpenToggle)})});wy.displayName=yy;var Xd="DialogPortal",[hR,xy]=hy(Xd,{forceMount:void 0}),by=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=bn(Xd,t);return b.jsx(hR,{scope:t,forceMount:n,children:g.Children.map(r,l=>b.jsx(al,{present:n||i.open,children:b.jsx(Bd,{asChild:!0,container:o,children:l})}))})};by.displayName=Xd;var Ka="DialogOverlay",Sy=g.forwardRef((e,t)=>{const n=xy(Ka,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=bn(Ka,e.__scopeDialog);return i.modal?b.jsx(al,{present:r||i.open,children:b.jsx(vR,{...o,ref:t})}):null});Sy.displayName=Ka;var vR=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(Ka,n);return b.jsx(Ud,{as:Kr,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(Ue.div,{"data-state":Jd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Xr="DialogContent",Ey=g.forwardRef((e,t)=>{const n=xy(Xr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=bn(Xr,e.__scopeDialog);return b.jsx(al,{present:r||i.open,children:i.modal?b.jsx(gR,{...o,ref:t}):b.jsx(yR,{...o,ref:t})})});Ey.displayName=Xr;var gR=g.forwardRef((e,t)=>{const n=bn(Xr,e.__scopeDialog),r=g.useRef(null),o=Ye(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return Vg(i)},[]),b.jsx(Cy,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Te(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Te(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0;(l.button===2||s)&&i.preventDefault()}),onFocusOutside:Te(e.onFocusOutside,i=>i.preventDefault())})}),yR=g.forwardRef((e,t)=>{const n=bn(Xr,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return b.jsx(Cy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,s;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Cy=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,s=bn(Xr,n),d=g.useRef(null),u=Ye(t,d);return yg(),b.jsxs(b.Fragment,{children:[b.jsx(Dd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(fs,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Jd(s.open),...l,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(xR,{titleId:s.titleId}),b.jsx(SR,{contentRef:d,descriptionId:s.descriptionId})]})]})}),Zd="DialogTitle",_y=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(Zd,n);return b.jsx(Ue.h2,{id:o.titleId,...r,ref:t})});_y.displayName=Zd;var ky="DialogDescription",Ry=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(ky,n);return b.jsx(Ue.p,{id:o.descriptionId,...r,ref:t})});Ry.displayName=ky;var Ny="DialogClose",Py=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bn(Ny,n);return b.jsx(Ue.button,{type:"button",...r,ref:t,onClick:Te(e.onClick,()=>o.onOpenChange(!1))})});Py.displayName=Ny;function Jd(e){return e?"open":"closed"}var Ty="DialogTitleWarning",[wR,Ay]=PE(Ty,{contentName:Xr,titleName:Zd,docsSlug:"dialog"}),xR=({titleId:e})=>{const t=Ay(Ty),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},yR="DialogDescriptionWarning",wR=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ay(yR).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Dy=gy,Oy=wy,jy=by,My=Sy,Iy=Ey,Ly=_y,Fy=Ry,ef=Py;function xR(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const $y=D.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),xs=()=>{const e=D.useContext($y);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};xR("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");const bR=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Dc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function SR(){return tf(/^Mac/)}function ER(){return tf(/^iPhone/)}function CR(){return tf(/^iPad/)||SR()&&navigator.maxTouchPoints>1}function zy(){return ER()||CR()}function tf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const hu=typeof document<"u"&&window.visualViewport;function Am(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Hy(e){for(Am(e)&&(e=e.parentElement);e&&!Am(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const _R=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Kl=0,vu;function kR(e={}){let{isDisabled:t}=e;bR(()=>{if(!t)return Kl++,Kl===1&&(zy()?vu=NR():vu=RR()),()=>{Kl--,Kl===0&&vu()}},[t])}function RR(){return Dc(By(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function NR(){let e,t=0,n=h=>{e=Hy(h.target),!(e===document.documentElement&&e===document.body)&&(t=h.changedTouches[0].pageY)},r=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}let f=h.changedTouches[0].pageY,w=e.scrollTop,C=e.scrollHeight-e.clientHeight;C!==0&&((w<=0&&f>t||w>=C&&f{let f=h.target;Oc(f)&&f!==document.activeElement&&(h.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},i=h=>{let f=h.target;Oc(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",hu&&(hu.height{Dm(f)}):hu.addEventListener("resize",()=>Dm(f),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},s=window.pageXOffset,d=window.pageYOffset,u=Dc(By(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let m=Dc(vi(document,"touchstart",n,{passive:!1,capture:!0}),vi(document,"touchmove",r,{passive:!1,capture:!0}),vi(document,"touchend",o,{passive:!1,capture:!0}),vi(document,"focus",i,!0),vi(window,"scroll",l));return()=>{u(),m(),window.scrollTo(s,d)}}function By(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function vi(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Dm(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Hy(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;const l=n.getBoundingClientRect().bottom;i>l&&(n.scrollTop+=o-r)}e=n.parentElement}}function Oc(e){return e instanceof HTMLInputElement&&!_R.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function PR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function TR(...e){return t=>e.forEach(n=>PR(n,t))}function Uy(...e){return v.useCallback(TR(...e),e)}let gi=null;function AR({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[l,s]=D.useState(()=>typeof window<"u"?window.location.href:""),d=D.useRef(0),u=D.useCallback(()=>{if(gi===null&&e&&!i){gi={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:h,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-d.current}px`,left:`${-h}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const w=f-window.innerHeight;w&&d.current>=f&&(document.body.style.top=`${-(d.current+w)}px`)}),300)}},[e]),m=D.useCallback(()=>{if(gi!==null&&!i){const h=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,gi),window.requestAnimationFrame(()=>{if(o&&l!==window.location.href){s(window.location.href);return}window.scrollTo(f,h)}),gi=null}},[l]);return D.useEffect(()=>{function h(){d.current=window.scrollY}return h(),window.addEventListener("scroll",h),()=>{window.removeEventListener("scroll",h)}},[]),D.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{m()},500)):m())},[e,r,l,t,n,u,m]),{restorePositionSetting:m}}const Wy=new WeakMap;function Ge(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,i])=>{if(o.startsWith("--")){e.style.setProperty(o,i);return}r[o]=e.style[o],e.style[o]=i}),!n&&Wy.set(e,r)}function Ql(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Wy.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}const st=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Yl(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[st(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[st(t)?5:4]):null)}function DR(e){return 8*(Math.log(e+1)-2)}const $e={DURATION:.5,EASE:[.32,.72,0,1]},Vy=.4;function qy(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function OR({defaultProp:e,onChange:t}){const n=D.useState(e),[r]=n,o=D.useRef(r),i=qy(t);return D.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function jR({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=OR({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=qy(n),d=D.useCallback(u=>{if(i){const h=typeof u=="function"?u(e):u;h!==e&&s(h)}else o(u)},[i,e,o,s]);return[l,d]}function MR({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:l,direction:s="bottom"}){const[d,u]=jR({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),m=D.useMemo(()=>d===(n==null?void 0:n[n.length-1])||null,[n,d]),h=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===d||!n,f=D.useMemo(()=>n==null?void 0:n.findIndex(x=>x===d),[n,d]),w=D.useMemo(()=>{var x;return(x=n==null?void 0:n.map(_=>{const N=typeof window<"u",A=typeof _=="string";let P=0;if(A&&(P=parseInt(_,10)),st(s)){const F=A?P:N?_*window.innerHeight:0;return N?s==="bottom"?window.innerHeight-F:-window.innerHeight+F:F}const j=A?P:N?_*window.innerWidth:0;return N?s==="right"?window.innerWidth-j:-window.innerWidth+j:j}))!=null?x:[]},[n]),C=D.useMemo(()=>f!==null?w==null?void 0:w[f]:null,[w,f]),S=D.useCallback(x=>{var _;const N=(_=w==null?void 0:w.findIndex(A=>A===x))!=null?_:null;l(N),Ge(r.current,{transition:`transform ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`,transform:st(s)?`translate3d(0, ${x}px, 0)`:`translate3d(${x}px, 0, 0)`}),w&&N!==w.length-1&&N!==i?Ge(o.current,{transition:`opacity ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`,opacity:"0"}):Ge(o.current,{transition:`opacity ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`,opacity:"1"}),u(N!==null?n==null?void 0:n[N]:null)},[r.current,n,w,i,o,u]);D.useEffect(()=>{if(d||e){var x;const _=(x=n==null?void 0:n.findIndex(N=>N===e||N===d))!=null?x:-1;w&&_!==-1&&typeof w[_]=="number"&&S(w[_])}},[d,e,n,w,S]);function R({draggedDistance:x,closeDrawer:_,velocity:N,dismissible:A}){if(i===void 0)return;const P=s==="bottom"||s==="right"?(C??0)-x:(C??0)+x,j=f===i-1,F=f===0,M=x>0;if(j&&Ge(o.current,{transition:`opacity ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`}),N>2&&!M){A?_():S(w[0]);return}if(N>2&&M&&w&&n){S(w[n.length-1]);return}const B=w==null?void 0:w.reduce((z,V)=>typeof z!="number"||typeof V!="number"?z:Math.abs(V-P)Vy&&Math.abs(x)0&&m){S(w[n.length-1]);return}if(F&&z<0&&A&&_(),f===null)return;S(w[f+z]);return}S(B)}function y({draggedDistance:x}){if(C===null)return;const _=s==="bottom"||s==="right"?C-x:C+x;(s==="bottom"||s==="right")&&_w[w.length-1]||Ge(r.current,{transform:st(s)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function g(x,_){if(!n||typeof f!="number"||!w||i===void 0)return null;const N=f===i-1;if(f>=i&&_)return 0;if(N&&!_)return 1;if(!h&&!N)return null;const P=N?f+1:f-1,j=N?w[P]-w[P-1]:w[P+1]-w[P],F=x/Math.abs(j);return N?1-F:F}return{isLastSnapPoint:m,activeSnapPoint:d,shouldFade:h,getPercentageDragged:g,setActiveSnapPoint:u,activeSnapPointIndex:f,onRelease:R,onDrag:y,snapPointsOffset:w}}const IR=.25,LR=100,Om=8,Or=16,jm=26,gu="vaul-dragging";function Gy({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:i,snapPoints:l,nested:s=!1,setBackgroundColorOnScale:d=!0,closeThreshold:u=IR,scrollLockTimeout:m=LR,dismissible:h=!0,handleOnly:f=!1,fadeFromIndex:w=l&&l.length-1,activeSnapPoint:C,setActiveSnapPoint:S,fixed:R,modal:y=!0,onClose:g,noBodyStyles:x,direction:_="bottom",preventScrollRestoration:N=!0,disablePreventScroll:A=!1}){var P;const[j=!1,F]=D.useState(!1),[M,B]=D.useState(!1),[W,z]=D.useState(!1),[V,Z]=D.useState(!1),[oe,re]=D.useState(!1),[I,U]=D.useState(!1),ne=D.useRef(null),Y=D.useRef(null),X=D.useRef(null),me=D.useRef(null),pe=D.useRef(null),Oe=D.useRef(!1),ce=D.useRef(null),ee=D.useRef(0),we=D.useRef(!1),De=D.useRef(0),K=D.useRef(null),be=D.useRef(((P=K.current)==null?void 0:P.getBoundingClientRect().height)||0),ve=D.useRef(0),J=D.useCallback(ae=>{l&&ae===bt.length-1&&(Y.current=new Date)},[]),{activeSnapPoint:xe,activeSnapPointIndex:ot,setActiveSnapPoint:Ie,onRelease:nt,snapPointsOffset:bt,onDrag:ge,shouldFade:ft,getPercentageDragged:er}=MR({snapPoints:l,activeSnapPointProp:C,setActiveSnapPointProp:S,drawerRef:K,fadeFromIndex:w,overlayRef:ne,onSnapPointChange:J,direction:_});kR({isDisabled:!j||oe||!y||I||!M||A});const{restorePositionSetting:kt}=AR({isOpen:j,modal:y,nested:s,hasBeenOpened:M,preventScrollRestoration:N,noBodyStyles:x});function Rt(){return(window.innerWidth-jm)/window.innerWidth}function Q(ae){var ue;!h&&!l||K.current&&!K.current.contains(ae.target)||(be.current=((ue=K.current)==null?void 0:ue.getBoundingClientRect().height)||0,re(!0),X.current=new Date,zy()&&window.addEventListener("touchend",()=>Oe.current=!1,{once:!0}),ae.target.setPointerCapture(ae.pointerId),ee.current=st(_)?ae.clientY:ae.clientX)}function le(ae,ue){var Ne;let L=ae;const de=(Ne=window.getSelection())==null?void 0:Ne.toString(),fe=K.current?Yl(K.current,_):null,ze=new Date;if(L.hasAttribute("data-vaul-no-drag")||L.closest("[data-vaul-no-drag]"))return!1;if(_==="right"||_==="left")return!0;if(Y.current&&ze.getTime()-Y.current.getTime()<500)return!1;if(fe!==null&&(_==="bottom"?fe>0:fe<0))return!0;if(de&&de.length>0)return!1;if(pe.current&&ze.getTime()-pe.current.getTime()L.clientHeight){if(L.scrollTop!==0)return pe.current=new Date,!1;if(L.getAttribute("role")==="dialog")return!0}L=L.parentNode}return!0}function je(ae){if(K.current&&oe){const ue=_==="bottom"||_==="right"?1:-1,Ne=(ee.current-(st(_)?ae.clientY:ae.clientX))*ue,L=Ne>0,de=l&&!h&&!L;if(de&&ot===0)return;const fe=Math.abs(Ne),ze=document.querySelector("[vaul-drawer-wrapper]");let Le=fe/be.current;const Nt=er(fe,L);if(Nt!==null&&(Le=Nt),de&&Le>=1||!Oe.current&&!le(ae.target,L))return;if(K.current.classList.add(gu),Oe.current=!0,Ge(K.current,{transition:"none"}),Ge(ne.current,{transition:"none"}),l&&ge({draggedDistance:Ne}),L&&!l){const Cn=DR(Ne),G=Math.min(Cn*-1,0)*ue;Ge(K.current,{transform:st(_)?`translate3d(0, ${G}px, 0)`:`translate3d(${G}px, 0, 0)`});return}const Pt=1-Le;if((ft||w&&ot===w-1)&&(o==null||o(ae,Le),Ge(ne.current,{opacity:`${Pt}`,transition:"none"},!0)),ze&&ne.current&&r){const Cn=Math.min(Rt()+Le*(1-Rt()),1),G=8-Le*8,to=Math.max(0,14-Le*14);Ge(ze,{borderRadius:`${G}px`,transform:st(_)?`scale(${Cn}) translate3d(0, ${to}px, 0)`:`scale(${Cn}) translate3d(${to}px, 0, 0)`,transition:"none"},!0)}if(!l){const Cn=fe*ue;Ge(K.current,{transform:st(_)?`translate3d(0, ${Cn}px, 0)`:`translate3d(${Cn}px, 0, 0)`})}}}D.useEffect(()=>()=>{Bt(!1),kt()},[]),D.useEffect(()=>{var ae;function ue(){if(!K.current)return;const Ne=document.activeElement;if(Oc(Ne)||we.current){var L;const de=((L=window.visualViewport)==null?void 0:L.height)||0;let fe=window.innerHeight-de;const ze=K.current.getBoundingClientRect().height||0;ve.current||(ve.current=ze);const Le=K.current.getBoundingClientRect().top;if(Math.abs(De.current-fe)>60&&(we.current=!we.current),l&&l.length>0&&bt&&ot){const Nt=bt[ot]||0;fe+=Nt}if(De.current=fe,ze>de||we.current){const Nt=K.current.getBoundingClientRect().height;let Pt=Nt;Nt>de&&(Pt=de-jm),R?K.current.style.height=`${Nt-Math.max(fe,0)}px`:K.current.style.height=`${Math.max(Pt,de-Le)}px`}else K.current.style.height=`${ve.current}px`;l&&l.length>0&&!we.current?K.current.style.bottom="0px":K.current.style.bottom=`${Math.max(fe,0)}px`}}return(ae=window.visualViewport)==null||ae.addEventListener("resize",ue),()=>{var Ne;return(Ne=window.visualViewport)==null?void 0:Ne.removeEventListener("resize",ue)}},[ot,l,bt]);function ke(){K.current&&(it(),g==null||g(),Ge(K.current,{transform:st(_)?`translate3d(0, ${_==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${_==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`}),Ge(ne.current,{opacity:"0",transition:`opacity ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`}),Bt(!1),setTimeout(()=>{z(!1),F(!1)},300),setTimeout(()=>{l&&Ie(l[0])},$e.DURATION*1e3))}D.useEffect(()=>{if(!j&&r){const ae=setTimeout(()=>{Ql(document.body)},200);return()=>clearTimeout(ae)}},[j,r]),D.useLayoutEffect(()=>{e?(F(!0),B(!0)):ke()},[e]),D.useEffect(()=>{V&&(t==null||t(j))},[j]),D.useEffect(()=>{Z(!0)},[]);function Xe(){if(!K.current)return;const ae=document.querySelector("[vaul-drawer-wrapper]"),ue=Yl(K.current,_);Ge(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`}),Ge(ne.current,{transition:`opacity ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`,opacity:"1"}),r&&ue&&ue>0&&j&&Ge(ae,{borderRadius:`${Om}px`,overflow:"hidden",...st(_)?{transform:`scale(${Rt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Rt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${$e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${$e.EASE.join(",")})`},!0)}function it(){!oe||!K.current||(K.current.classList.remove(gu),Oe.current=!1,re(!1),me.current=new Date)}function pt(ae){if(!oe||!K.current)return;K.current.classList.remove(gu),Oe.current=!1,re(!1),me.current=new Date;const ue=Yl(K.current,_);if(!le(ae.target,!1)||!ue||Number.isNaN(ue)||X.current===null)return;const Ne=me.current.getTime()-X.current.getTime(),L=ee.current-(st(_)?ae.clientY:ae.clientX),de=Math.abs(L)/Ne;if(de>.05&&(U(!0),setTimeout(()=>{U(!1)},200)),l){nt({draggedDistance:L*(_==="bottom"||_==="right"?1:-1),closeDrawer:ke,velocity:de,dismissible:h}),i==null||i(ae,!0);return}if(_==="bottom"||_==="right"?L>0:L<0){Xe(),i==null||i(ae,!0);return}if(de>Vy){ke(),i==null||i(ae,!1);return}var fe;const ze=Math.min((fe=K.current.getBoundingClientRect().height)!=null?fe:0,window.innerHeight);if(ue>=ze*u){ke(),i==null||i(ae,!1);return}i==null||i(ae,!0),Xe()}D.useEffect(()=>{j&&(Ge(document.documentElement,{scrollBehavior:"auto"}),Y.current=new Date,Bt(!0))},[j]),D.useEffect(()=>{if(K.current&&W){var ae;const ue=K==null||(ae=K.current)==null?void 0:ae.querySelectorAll("*");ue==null||ue.forEach(Ne=>{const L=Ne;(L.scrollHeight>L.clientHeight||L.scrollWidth>L.clientWidth)&&L.classList.add("vaul-scrollable")})}},[W]);function Bt(ae){const ue=document.querySelector("[vaul-drawer-wrapper]");!ue||!r||(ae?(d&&(x||(Ge(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),Ge(document.body,{background:"black"},!0))),Ge(ue,{borderRadius:`${Om}px`,overflow:"hidden",...st(_)?{transform:`scale(${Rt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Rt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${$e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${$e.EASE.join(",")})`})):(Ql(ue,"overflow"),Ql(ue,"transform"),Ql(ue,"borderRadius"),Ge(ue,{transitionProperty:"transform, border-radius",transitionDuration:`${$e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${$e.EASE.join(",")})`})))}function un(ae){const ue=ae?(window.innerWidth-Or)/window.innerWidth:1,Ne=ae?-Or:0;ce.current&&window.clearTimeout(ce.current),Ge(K.current,{transition:`transform ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`,transform:`scale(${ue}) translate3d(0, ${Ne}px, 0)`}),!ae&&K.current&&(ce.current=setTimeout(()=>{const L=Yl(K.current,_);Ge(K.current,{transition:"none",transform:st(_)?`translate3d(0, ${L}px, 0)`:`translate3d(${L}px, 0, 0)`})},500))}function cn(ae,ue){if(ue<0)return;const Ne=st(_)?window.innerHeight:window.innerWidth,L=(Ne-Or)/Ne,de=L+ue*(1-L),fe=-Or+ue*Or;Ge(K.current,{transform:st(_)?`scale(${de}) translate3d(0, ${fe}px, 0)`:`scale(${de}) translate3d(${fe}px, 0, 0)`,transition:"none"})}function En(ae,ue){const Ne=st(_)?window.innerHeight:window.innerWidth,L=ue?(Ne-Or)/Ne:1,de=ue?-Or:0;ue&&Ge(K.current,{transition:`transform ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`,transform:st(_)?`scale(${L}) translate3d(0, ${de}px, 0)`:`scale(${L}) translate3d(${de}px, 0, 0)`})}return D.createElement(Dy,{modal:y,onOpenChange:ae=>{if(e!==void 0){t==null||t(ae);return}ae?(B(!0),F(ae)):ke()},open:j},D.createElement($y.Provider,{value:{visible:W,activeSnapPoint:xe,snapPoints:l,setActiveSnapPoint:Ie,drawerRef:K,overlayRef:ne,scaleBackground:Bt,onOpenChange:t,onPress:Q,setVisible:z,onRelease:pt,onDrag:je,dismissible:h,handleOnly:f,isOpen:j,isDragging:oe,shouldFade:ft,closeDrawer:ke,onNestedDrag:cn,onNestedOpenChange:un,onNestedRelease:En,keyboardIsOpen:we,openProp:e,modal:y,snapPointsOffset:bt,direction:_}},n))}const FR=250,$R=120,Ky=D.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{visible:o,closeDrawer:i,isDragging:l,snapPoints:s,activeSnapPoint:d,setActiveSnapPoint:u,dismissible:m,handleOnly:h,onPress:f,onDrag:w}=xs(),C=D.useRef(null),S=D.useRef(!1);function R(){if(S.current){x();return}window.setTimeout(()=>{y()},$R)}function y(){if(l||e||S.current){x();return}if(x(),(!s||s.length===0)&&m){i();return}if(d===s[s.length-1]&&m){i();return}const N=s.findIndex(P=>P===d);if(N===-1)return;const A=s[N+1];u(A)}function g(){C.current=window.setTimeout(()=>{S.current=!0},FR)}function x(){window.clearTimeout(C.current),S.current=!1}return D.createElement("div",{onClick:R,onDoubleClick:()=>{S.current=!0,i()},onPointerCancel:x,onPointerDown:_=>{h&&f(_),g()},onPointerMove:_=>{h&&w(_)},ref:r,"vaul-drawer-visible":o?"true":"false","vaul-handle":"","aria-hidden":"true",...n},D.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},t))});Ky.displayName="Drawer.Handle";const Qy=D.forwardRef(function({children:e,...t},n){const{overlayRef:r,snapPoints:o,onRelease:i,shouldFade:l,isOpen:s,visible:d}=xs(),u=Uy(n,r),m=o&&o.length>0;return D.createElement(My,{onMouseUp:i,ref:u,"vaul-drawer-visible":d?"true":"false","vaul-overlay":"","vaul-snap-points":s&&m?"true":"false","vaul-snap-points-overlay":s&&l?"true":"false",...t})});Qy.displayName="Drawer.Overlay";const Yy=D.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:n,style:r,...o},i){const{drawerRef:l,onPress:s,onRelease:d,onDrag:u,dismissible:m,keyboardIsOpen:h,snapPointsOffset:f,visible:w,closeDrawer:C,modal:S,openProp:R,onOpenChange:y,setVisible:g,handleOnly:x,direction:_}=xs(),N=Uy(i,l),A=D.useRef(null),P=D.useRef(!1),j=(F,M,B=0)=>{if(P.current)return!0;const W=Math.abs(F.y),z=Math.abs(F.x),V=z>W,Z=["bottom","right"].includes(M)?1:-1;if(M==="left"||M==="right"){if(!(F.x*Z<0)&&z>=0&&z<=B)return V}else if(!(F.y*Z<0)&&W>=0&&W<=B)return!V;return P.current=!0,!0};return D.useEffect(()=>{g(!0)},[]),D.createElement(Iy,{"vaul-drawer":"","vaul-drawer-direction":_,"vaul-drawer-visible":w?"true":"false",...o,ref:N,style:f&&f.length>0?{"--snap-point-height":`${f[0]}px`,...r}:r,onOpenAutoFocus:F=>{if(e)e(F);else{var M;F.preventDefault(),(M=l.current)==null||M.focus()}},onPointerDown:F=>{x||(o.onPointerDown==null||o.onPointerDown.call(o,F),A.current={x:F.clientX,y:F.clientY},s(F))},onPointerDownOutside:F=>{if(t==null||t(F),!S||F.defaultPrevented){F.preventDefault();return}h.current&&(h.current=!1),F.preventDefault(),y==null||y(!1),!(!m||R!==void 0)&&C()},onFocusOutside:F=>{if(!S){F.preventDefault();return}},onEscapeKeyDown:F=>{if(!S){F.preventDefault();return}},onPointerMove:F=>{if(x||(o.onPointerMove==null||o.onPointerMove.call(o,F),!A.current))return;const M=F.clientY-A.current.y,B=F.clientX-A.current.x,W=F.pointerType==="touch"?10:2;j({x:B,y:M},_,W)?u(F):(Math.abs(B)>W||Math.abs(M)>W)&&(A.current=null)},onPointerUp:F=>{o.onPointerUp==null||o.onPointerUp.call(o,F),A.current=null,P.current=!1,d(F)}})});Yy.displayName="Drawer.Content";function zR({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=xs();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return D.createElement(Gy,{nested:!0,onClose:()=>{o(!1)},onDrag:(l,s)=>{r(l,s),e==null||e(l,s)},onOpenChange:l=>{l&&o(l),t==null||t(l)},onRelease:i,...n})}const Sn={Root:Gy,NestedRoot:zR,Content:Yy,Handle:Ky,Overlay:Qy,Trigger:Oy,Portal:jy,Close:ef,Title:Ly,Description:Fy},Xy=({shouldScaleBackground:e=!0,...t})=>b.jsx(Sn.Root,{shouldScaleBackground:e,...t});Xy.displayName="Drawer";const HR=Sn.Trigger,BR=Sn.Portal,UR=Sn.Close,Zy=v.forwardRef(({className:e,...t},n)=>b.jsx(Sn.Overlay,{ref:n,className:Re("fixed inset-0 z-50 bg-black/80",e),...t}));Zy.displayName=Sn.Overlay.displayName;const Jy=v.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(BR,{children:[b.jsx(Zy,{}),b.jsxs(Sn.Content,{ref:r,className:Re("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[b.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Jy.displayName="DrawerContent";const ew=({className:e,...t})=>b.jsx("div",{className:Re("grid gap-1.5 p-4 text-center sm:text-left",e),...t});ew.displayName="DrawerHeader";const tw=({className:e,...t})=>b.jsx("div",{className:Re("mt-auto flex flex-col gap-2 p-4",e),...t});tw.displayName="DrawerFooter";const nw=v.forwardRef(({className:e,...t},n)=>b.jsx(Sn.Title,{ref:n,className:Re("text-lg font-semibold leading-none tracking-tight",e),...t}));nw.displayName=Sn.Title.displayName;const rw=v.forwardRef(({className:e,...t},n)=>b.jsx(Sn.Description,{ref:n,className:Re("text-sm text-muted-foreground",e),...t}));rw.displayName=Sn.Description.displayName;function WR(){const{setRowPerPageOrAuto:e,selectedTable:t,setIsCustomQuery:n,db:r}=ol(),[o,i]=v.useState(null),[l,s]=v.useState(!1);v.useEffect(()=>{const f=localStorage.getItem("rowsPerPage");f&&(f==="auto"?s(!0):(i(Number(f)),e(Number(f))))},[]),v.useEffect(()=>{console.log(o)},[o]);const d=f=>{const w=Number(f.target.value);isNaN(w)||(i(w),s(!1))},u=()=>{s(f=>!f)},m=()=>{if(n(!1),o===null)return Ac.error("Please provide a number of rows per page or set it to auto.");if(o<1)return Ac.error("Please provide a positive number of rows per page.");localStorage.setItem("rowsPerPage",l?"auto":o.toString()),e(l?"auto":o)},h=(f,w,C)=>b.jsx(rn,{variant:"outline",onClick:f,className:C,children:b.jsx("span",{className:"ml-2",children:w})});return b.jsxs(Xy,{children:[b.jsx(HR,{asChild:!0,children:b.jsx(rn,{className:"grow",children:b.jsx(SE,{className:"h-5 w-5"})})}),b.jsx(Jy,{children:b.jsxs("div",{className:"mx-auto w-full max-w-md",children:[b.jsxs(ew,{children:[b.jsx(nw,{children:"Settings"}),b.jsx(rw,{children:"Personalize your site experience here."})]}),b.jsxs("div",{className:"p-4 pb-0 flex flex-col gap-4",children:[b.jsxs("div",{children:[b.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Rows Per Page"}),b.jsxs("div",{className:"border rounded p-2 flex gap-1 justify-center items-center",children:[b.jsx(Td,{value:o||"",onChange:d,disabled:l,placeholder:"Number of rows",type:"number",name:"rowsPerPage"}),b.jsx("span",{className:"text-sm text-muted-foreground h-full text-center",children:"OR"}),b.jsx(rn,{onClick:u,variant:"outline",className:l?"border border-primary":void 0,children:"Auto calculate"})]}),b.jsx(rn,{className:"w-full mt-2",onClick:m,variant:"outline",children:b.jsx("span",{children:"Save"})})]}),b.jsxs("div",{children:[b.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Exports Settings"}),r&&b.jsxs("div",{className:"border rounded p-2 flex flex-col gap-1",children:[h(()=>wS(r),"Export as SQLite"),h(()=>xS(r,parseInt(t)),"Export selected table as CSV"),h(()=>bS(r),"Export all tables as CSV")]})]})]}),b.jsx(tw,{children:b.jsx(UR,{asChild:!0,children:b.jsx(rn,{variant:"outline",children:"Close"})})})]})})]})}function ow(){const[e,t]=v.useState(!1),n=v.useCallback(r=>{t(r),document.body.classList.toggle("dark",r),localStorage.setItem("darkMode",r.toString()),document.body.classList.add("animate-circular-reveal"),setTimeout(()=>{document.body.classList.remove("animate-circular-reveal")},500)},[]);return v.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)").matches,o=localStorage.getItem("darkMode");n(o!==null?o==="true":r);const i=s=>{n(s.matches)},l=window.matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",i),()=>{l.removeEventListener("change",i)}},[]),b.jsx(rn,{title:e?"Enable light mode":"Enable dark mode",onClick:()=>{n(!e)},className:"relative grow",children:e?b.jsx(EE,{className:"h-5 w-5"}):b.jsx(xE,{className:"h-5 w-5"})})}function VR(){const{loadDatabase:e,setTables:t,setSelectedTable:n,db:r}=ol(),[o,i]=v.useState([]),l=v.useCallback(async(m,h)=>{if(i([]),t([]),n("0"),m.length>0){const f=m[0];await e(f)}if(h.length>0){const f=h.flatMap(w=>w.errors);i(f)}},[e,t,n]),{getRootProps:s,getInputProps:d}=my({onDrop:l,multiple:!1,accept:{"application/vnd.sqlite3":[".sqlite",".sqlite3"],"application/x-sqlite3":[".sqlite",".sqlite3"],"application/octet-stream":[".db"],"application/sql":[".sql"]}}),u=m=>b.jsxs("div",{className:"flex items-center gap-2 justify-center h-full",children:[b.jsxs("div",{...s(),className:`grow h-full border p-6 rounded cursor-pointer text-center flex flex-col items-center justify-center ${m?"":"py-32"}`,children:[b.jsx("input",{id:"file-upload",...d()}),b.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),b.jsx("p",{className:"hidden sm:block",children:"Drag and drop a SQLite file here, or click to select one"}),b.jsx("p",{className:"block sm:hidden",children:m?"Click to select a file":"Click to select a SQLite file"}),!m&&b.jsx("a",{href:"https://github.com/vwh/sqlite-viewer/raw/main/db_examples/chinook.db",className:"text-sm text-link hover:underline",title:"Download sample file",children:"Or download & try this sample file"})]}),m&&b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx(ow,{}),b.jsx(WR,{})]})]});return b.jsxs("section",{children:[u(!!r),b.jsx("div",{children:b.jsx(cR,{errors:o})})]})}function qR(){const e=v.useRef(null);return v.useEffect(()=>{const t=e.current;if(!t)return;const n=()=>{document.body.classList.contains("dark")?t.src="/sqlite-dark.webp":t.src="/sqlite-light.webp"};n();const r=new MutationObserver(n);return r.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),b.jsx("section",{className:"flex justify-center border rounded py-3",children:b.jsxs("div",{className:"flex flex-col items-center gap-3",children:[b.jsx("img",{ref:e,id:"logo",title:"SQLite Logo",src:"./sqlite-light.webp",alt:"SQLite Logo",width:"170",height:"80",draggable:"false"}),b.jsx("p",{className:"text-sm",children:"View SQLite files in the browser"})]})})}var iw="AlertDialog",[GR,gN]=Vo(iw,[vy]),Jn=vy(),lw=e=>{const{__scopeAlertDialog:t,...n}=e,r=Jn(t);return b.jsx(Dy,{...r,...n,modal:!0})};lw.displayName=iw;var KR="AlertDialogTrigger",QR=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return b.jsx(Oy,{...o,...r,ref:t})});QR.displayName=KR;var YR="AlertDialogPortal",aw=e=>{const{__scopeAlertDialog:t,...n}=e,r=Jn(t);return b.jsx(jy,{...r,...n})};aw.displayName=YR;var XR="AlertDialogOverlay",sw=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return b.jsx(My,{...o,...r,ref:t})});sw.displayName=XR;var Ao="AlertDialogContent",[ZR,JR]=GR(Ao),uw=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Jn(n),l=v.useRef(null),s=Ye(t,l),d=v.useRef(null);return b.jsx(vR,{contentName:Ao,titleName:cw,docsSlug:"alert-dialog",children:b.jsx(ZR,{scope:n,cancelRef:d,children:b.jsxs(Iy,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:Te(o.onOpenAutoFocus,u=>{var m;u.preventDefault(),(m=d.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[b.jsx(dg,{children:r}),b.jsx(tN,{contentRef:l})]})})})});uw.displayName=Ao;var cw="AlertDialogTitle",dw=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return b.jsx(Ly,{...o,...r,ref:t})});dw.displayName=cw;var fw="AlertDialogDescription",pw=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return b.jsx(Fy,{...o,...r,ref:t})});pw.displayName=fw;var eN="AlertDialogAction",mw=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return b.jsx(ef,{...o,...r,ref:t})});mw.displayName=eN;var hw="AlertDialogCancel",vw=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=JR(hw,n),i=Jn(n),l=Ye(t,o);return b.jsx(ef,{...i,...r,ref:l})});vw.displayName=hw;var tN=({contentRef:e})=>{const t=`\`${Ao}\` requires a description for the component to be accessible for screen reader users. +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},bR="DialogDescriptionWarning",SR=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ay(bR).contentName}}.`;return g.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Dy=gy,Oy=wy,jy=by,My=Sy,Iy=Ey,Ly=_y,Fy=Ry,ef=Py;function ER(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const zy=A.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),xs=()=>{const e=A.useContext(zy);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};ER("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");const CR=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Dc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function _R(){return tf(/^Mac/)}function kR(){return tf(/^iPhone/)}function RR(){return tf(/^iPad/)||_R()&&navigator.maxTouchPoints>1}function $y(){return kR()||RR()}function tf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const hu=typeof document<"u"&&window.visualViewport;function Am(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Hy(e){for(Am(e)&&(e=e.parentElement);e&&!Am(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const NR=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Kl=0,vu;function PR(e={}){let{isDisabled:t}=e;CR(()=>{if(!t)return Kl++,Kl===1&&($y()?vu=AR():vu=TR()),()=>{Kl--,Kl===0&&vu()}},[t])}function TR(){return Dc(By(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function AR(){let e,t=0,n=h=>{e=Hy(h.target),!(e===document.documentElement&&e===document.body)&&(t=h.changedTouches[0].pageY)},r=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}let f=h.changedTouches[0].pageY,w=e.scrollTop,C=e.scrollHeight-e.clientHeight;C!==0&&((w<=0&&f>t||w>=C&&f{let f=h.target;Oc(f)&&f!==document.activeElement&&(h.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},i=h=>{let f=h.target;Oc(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",hu&&(hu.height{Dm(f)}):hu.addEventListener("resize",()=>Dm(f),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},s=window.pageXOffset,d=window.pageYOffset,u=Dc(By(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let m=Dc(gi(document,"touchstart",n,{passive:!1,capture:!0}),gi(document,"touchmove",r,{passive:!1,capture:!0}),gi(document,"touchend",o,{passive:!1,capture:!0}),gi(document,"focus",i,!0),gi(window,"scroll",l));return()=>{u(),m(),window.scrollTo(s,d)}}function By(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function gi(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Dm(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Hy(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;const l=n.getBoundingClientRect().bottom;i>l&&(n.scrollTop+=o-r)}e=n.parentElement}}function Oc(e){return e instanceof HTMLInputElement&&!NR.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function DR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function OR(...e){return t=>e.forEach(n=>DR(n,t))}function Uy(...e){return g.useCallback(OR(...e),e)}let yi=null;function jR({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[l,s]=A.useState(()=>typeof window<"u"?window.location.href:""),d=A.useRef(0),u=A.useCallback(()=>{if(yi===null&&e&&!i){yi={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:h,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-d.current}px`,left:`${-h}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const w=f-window.innerHeight;w&&d.current>=f&&(document.body.style.top=`${-(d.current+w)}px`)}),300)}},[e]),m=A.useCallback(()=>{if(yi!==null&&!i){const h=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,yi),window.requestAnimationFrame(()=>{if(o&&l!==window.location.href){s(window.location.href);return}window.scrollTo(f,h)}),yi=null}},[l]);return A.useEffect(()=>{function h(){d.current=window.scrollY}return h(),window.addEventListener("scroll",h),()=>{window.removeEventListener("scroll",h)}},[]),A.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{m()},500)):m())},[e,r,l,t,n,u,m]),{restorePositionSetting:m}}const Wy=new WeakMap;function Ge(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,i])=>{if(o.startsWith("--")){e.style.setProperty(o,i);return}r[o]=e.style[o],e.style[o]=i}),!n&&Wy.set(e,r)}function Ql(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Wy.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}const st=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Yl(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[st(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[st(t)?5:4]):null)}function MR(e){return 8*(Math.log(e+1)-2)}const ze={DURATION:.5,EASE:[.32,.72,0,1]},Vy=.4;function qy(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e}),A.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function IR({defaultProp:e,onChange:t}){const n=A.useState(e),[r]=n,o=A.useRef(r),i=qy(t);return A.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function LR({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=IR({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=qy(n),d=A.useCallback(u=>{if(i){const h=typeof u=="function"?u(e):u;h!==e&&s(h)}else o(u)},[i,e,o,s]);return[l,d]}function FR({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:l,direction:s="bottom"}){const[d,u]=LR({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),m=A.useMemo(()=>d===(n==null?void 0:n[n.length-1])||null,[n,d]),h=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===d||!n,f=A.useMemo(()=>n==null?void 0:n.findIndex(x=>x===d),[n,d]),w=A.useMemo(()=>{var x;return(x=n==null?void 0:n.map(_=>{const N=typeof window<"u",D=typeof _=="string";let P=0;if(D&&(P=parseInt(_,10)),st(s)){const z=D?P:N?_*window.innerHeight:0;return N?s==="bottom"?window.innerHeight-z:-window.innerHeight+z:z}const j=D?P:N?_*window.innerWidth:0;return N?s==="right"?window.innerWidth-j:-window.innerWidth+j:j}))!=null?x:[]},[n]),C=A.useMemo(()=>f!==null?w==null?void 0:w[f]:null,[w,f]),S=A.useCallback(x=>{var _;const N=(_=w==null?void 0:w.findIndex(D=>D===x))!=null?_:null;l(N),Ge(r.current,{transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,transform:st(s)?`translate3d(0, ${x}px, 0)`:`translate3d(${x}px, 0, 0)`}),w&&N!==w.length-1&&N!==i?Ge(o.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,opacity:"0"}):Ge(o.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,opacity:"1"}),u(N!==null?n==null?void 0:n[N]:null)},[r.current,n,w,i,o,u]);A.useEffect(()=>{if(d||e){var x;const _=(x=n==null?void 0:n.findIndex(N=>N===e||N===d))!=null?x:-1;w&&_!==-1&&typeof w[_]=="number"&&S(w[_])}},[d,e,n,w,S]);function R({draggedDistance:x,closeDrawer:_,velocity:N,dismissible:D}){if(i===void 0)return;const P=s==="bottom"||s==="right"?(C??0)-x:(C??0)+x,j=f===i-1,z=f===0,F=x>0;if(j&&Ge(o.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`}),N>2&&!F){D?_():S(w[0]);return}if(N>2&&F&&w&&n){S(w[n.length-1]);return}const q=w==null?void 0:w.reduce(($,V)=>typeof $!="number"||typeof V!="number"?$:Math.abs(V-P)Vy&&Math.abs(x)0&&m){S(w[n.length-1]);return}if(z&&$<0&&D&&_(),f===null)return;S(w[f+$]);return}S(q)}function y({draggedDistance:x}){if(C===null)return;const _=s==="bottom"||s==="right"?C-x:C+x;(s==="bottom"||s==="right")&&_w[w.length-1]||Ge(r.current,{transform:st(s)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function v(x,_){if(!n||typeof f!="number"||!w||i===void 0)return null;const N=f===i-1;if(f>=i&&_)return 0;if(N&&!_)return 1;if(!h&&!N)return null;const P=N?f+1:f-1,j=N?w[P]-w[P-1]:w[P+1]-w[P],z=x/Math.abs(j);return N?1-z:z}return{isLastSnapPoint:m,activeSnapPoint:d,shouldFade:h,getPercentageDragged:v,setActiveSnapPoint:u,activeSnapPointIndex:f,onRelease:R,onDrag:y,snapPointsOffset:w}}const zR=.25,$R=100,Om=8,Or=16,jm=26,gu="vaul-dragging";function Gy({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:i,snapPoints:l,nested:s=!1,setBackgroundColorOnScale:d=!0,closeThreshold:u=zR,scrollLockTimeout:m=$R,dismissible:h=!0,handleOnly:f=!1,fadeFromIndex:w=l&&l.length-1,activeSnapPoint:C,setActiveSnapPoint:S,fixed:R,modal:y=!0,onClose:v,noBodyStyles:x,direction:_="bottom",preventScrollRestoration:N=!0,disablePreventScroll:D=!1}){var P;const[j=!1,z]=A.useState(!1),[F,q]=A.useState(!1),[W,$]=A.useState(!1),[V,Z]=A.useState(!1),[oe,re]=A.useState(!1),[M,B]=A.useState(!1),ne=A.useRef(null),Y=A.useRef(null),X=A.useRef(null),me=A.useRef(null),pe=A.useRef(null),Oe=A.useRef(!1),ce=A.useRef(null),ee=A.useRef(0),we=A.useRef(!1),De=A.useRef(0),K=A.useRef(null),be=A.useRef(((P=K.current)==null?void 0:P.getBoundingClientRect().height)||0),ve=A.useRef(0),J=A.useCallback(ae=>{l&&ae===bt.length-1&&(Y.current=new Date)},[]),{activeSnapPoint:xe,activeSnapPointIndex:ot,setActiveSnapPoint:Ie,onRelease:nt,snapPointsOffset:bt,onDrag:ge,shouldFade:ft,getPercentageDragged:er}=FR({snapPoints:l,activeSnapPointProp:C,setActiveSnapPointProp:S,drawerRef:K,fadeFromIndex:w,overlayRef:ne,onSnapPointChange:J,direction:_});PR({isDisabled:!j||oe||!y||M||!F||D});const{restorePositionSetting:kt}=jR({isOpen:j,modal:y,nested:s,hasBeenOpened:F,preventScrollRestoration:N,noBodyStyles:x});function Rt(){return(window.innerWidth-jm)/window.innerWidth}function Q(ae){var ue;!h&&!l||K.current&&!K.current.contains(ae.target)||(be.current=((ue=K.current)==null?void 0:ue.getBoundingClientRect().height)||0,re(!0),X.current=new Date,$y()&&window.addEventListener("touchend",()=>Oe.current=!1,{once:!0}),ae.target.setPointerCapture(ae.pointerId),ee.current=st(_)?ae.clientY:ae.clientX)}function le(ae,ue){var Ne;let I=ae;const de=(Ne=window.getSelection())==null?void 0:Ne.toString(),fe=K.current?Yl(K.current,_):null,$e=new Date;if(I.hasAttribute("data-vaul-no-drag")||I.closest("[data-vaul-no-drag]"))return!1;if(_==="right"||_==="left")return!0;if(Y.current&&$e.getTime()-Y.current.getTime()<500)return!1;if(fe!==null&&(_==="bottom"?fe>0:fe<0))return!0;if(de&&de.length>0)return!1;if(pe.current&&$e.getTime()-pe.current.getTime()I.clientHeight){if(I.scrollTop!==0)return pe.current=new Date,!1;if(I.getAttribute("role")==="dialog")return!0}I=I.parentNode}return!0}function je(ae){if(K.current&&oe){const ue=_==="bottom"||_==="right"?1:-1,Ne=(ee.current-(st(_)?ae.clientY:ae.clientX))*ue,I=Ne>0,de=l&&!h&&!I;if(de&&ot===0)return;const fe=Math.abs(Ne),$e=document.querySelector("[vaul-drawer-wrapper]");let Le=fe/be.current;const Nt=er(fe,I);if(Nt!==null&&(Le=Nt),de&&Le>=1||!Oe.current&&!le(ae.target,I))return;if(K.current.classList.add(gu),Oe.current=!0,Ge(K.current,{transition:"none"}),Ge(ne.current,{transition:"none"}),l&&ge({draggedDistance:Ne}),I&&!l){const Cn=MR(Ne),G=Math.min(Cn*-1,0)*ue;Ge(K.current,{transform:st(_)?`translate3d(0, ${G}px, 0)`:`translate3d(${G}px, 0, 0)`});return}const Pt=1-Le;if((ft||w&&ot===w-1)&&(o==null||o(ae,Le),Ge(ne.current,{opacity:`${Pt}`,transition:"none"},!0)),$e&&ne.current&&r){const Cn=Math.min(Rt()+Le*(1-Rt()),1),G=8-Le*8,no=Math.max(0,14-Le*14);Ge($e,{borderRadius:`${G}px`,transform:st(_)?`scale(${Cn}) translate3d(0, ${no}px, 0)`:`scale(${Cn}) translate3d(${no}px, 0, 0)`,transition:"none"},!0)}if(!l){const Cn=fe*ue;Ge(K.current,{transform:st(_)?`translate3d(0, ${Cn}px, 0)`:`translate3d(${Cn}px, 0, 0)`})}}}A.useEffect(()=>()=>{Bt(!1),kt()},[]),A.useEffect(()=>{var ae;function ue(){if(!K.current)return;const Ne=document.activeElement;if(Oc(Ne)||we.current){var I;const de=((I=window.visualViewport)==null?void 0:I.height)||0;let fe=window.innerHeight-de;const $e=K.current.getBoundingClientRect().height||0;ve.current||(ve.current=$e);const Le=K.current.getBoundingClientRect().top;if(Math.abs(De.current-fe)>60&&(we.current=!we.current),l&&l.length>0&&bt&&ot){const Nt=bt[ot]||0;fe+=Nt}if(De.current=fe,$e>de||we.current){const Nt=K.current.getBoundingClientRect().height;let Pt=Nt;Nt>de&&(Pt=de-jm),R?K.current.style.height=`${Nt-Math.max(fe,0)}px`:K.current.style.height=`${Math.max(Pt,de-Le)}px`}else K.current.style.height=`${ve.current}px`;l&&l.length>0&&!we.current?K.current.style.bottom="0px":K.current.style.bottom=`${Math.max(fe,0)}px`}}return(ae=window.visualViewport)==null||ae.addEventListener("resize",ue),()=>{var Ne;return(Ne=window.visualViewport)==null?void 0:Ne.removeEventListener("resize",ue)}},[ot,l,bt]);function ke(){K.current&&(it(),v==null||v(),Ge(K.current,{transform:st(_)?`translate3d(0, ${_==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${_==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`}),Ge(ne.current,{opacity:"0",transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`}),Bt(!1),setTimeout(()=>{$(!1),z(!1)},300),setTimeout(()=>{l&&Ie(l[0])},ze.DURATION*1e3))}A.useEffect(()=>{if(!j&&r){const ae=setTimeout(()=>{Ql(document.body)},200);return()=>clearTimeout(ae)}},[j,r]),A.useLayoutEffect(()=>{e?(z(!0),q(!0)):ke()},[e]),A.useEffect(()=>{V&&(t==null||t(j))},[j]),A.useEffect(()=>{Z(!0)},[]);function Xe(){if(!K.current)return;const ae=document.querySelector("[vaul-drawer-wrapper]"),ue=Yl(K.current,_);Ge(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`}),Ge(ne.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,opacity:"1"}),r&&ue&&ue>0&&j&&Ge(ae,{borderRadius:`${Om}px`,overflow:"hidden",...st(_)?{transform:`scale(${Rt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Rt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ze.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ze.EASE.join(",")})`},!0)}function it(){!oe||!K.current||(K.current.classList.remove(gu),Oe.current=!1,re(!1),me.current=new Date)}function pt(ae){if(!oe||!K.current)return;K.current.classList.remove(gu),Oe.current=!1,re(!1),me.current=new Date;const ue=Yl(K.current,_);if(!le(ae.target,!1)||!ue||Number.isNaN(ue)||X.current===null)return;const Ne=me.current.getTime()-X.current.getTime(),I=ee.current-(st(_)?ae.clientY:ae.clientX),de=Math.abs(I)/Ne;if(de>.05&&(B(!0),setTimeout(()=>{B(!1)},200)),l){nt({draggedDistance:I*(_==="bottom"||_==="right"?1:-1),closeDrawer:ke,velocity:de,dismissible:h}),i==null||i(ae,!0);return}if(_==="bottom"||_==="right"?I>0:I<0){Xe(),i==null||i(ae,!0);return}if(de>Vy){ke(),i==null||i(ae,!1);return}var fe;const $e=Math.min((fe=K.current.getBoundingClientRect().height)!=null?fe:0,window.innerHeight);if(ue>=$e*u){ke(),i==null||i(ae,!1);return}i==null||i(ae,!0),Xe()}A.useEffect(()=>{j&&(Ge(document.documentElement,{scrollBehavior:"auto"}),Y.current=new Date,Bt(!0))},[j]),A.useEffect(()=>{if(K.current&&W){var ae;const ue=K==null||(ae=K.current)==null?void 0:ae.querySelectorAll("*");ue==null||ue.forEach(Ne=>{const I=Ne;(I.scrollHeight>I.clientHeight||I.scrollWidth>I.clientWidth)&&I.classList.add("vaul-scrollable")})}},[W]);function Bt(ae){const ue=document.querySelector("[vaul-drawer-wrapper]");!ue||!r||(ae?(d&&(x||(Ge(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),Ge(document.body,{background:"black"},!0))),Ge(ue,{borderRadius:`${Om}px`,overflow:"hidden",...st(_)?{transform:`scale(${Rt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Rt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ze.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ze.EASE.join(",")})`})):(Ql(ue,"overflow"),Ql(ue,"transform"),Ql(ue,"borderRadius"),Ge(ue,{transitionProperty:"transform, border-radius",transitionDuration:`${ze.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ze.EASE.join(",")})`})))}function un(ae){const ue=ae?(window.innerWidth-Or)/window.innerWidth:1,Ne=ae?-Or:0;ce.current&&window.clearTimeout(ce.current),Ge(K.current,{transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,transform:`scale(${ue}) translate3d(0, ${Ne}px, 0)`}),!ae&&K.current&&(ce.current=setTimeout(()=>{const I=Yl(K.current,_);Ge(K.current,{transition:"none",transform:st(_)?`translate3d(0, ${I}px, 0)`:`translate3d(${I}px, 0, 0)`})},500))}function cn(ae,ue){if(ue<0)return;const Ne=st(_)?window.innerHeight:window.innerWidth,I=(Ne-Or)/Ne,de=I+ue*(1-I),fe=-Or+ue*Or;Ge(K.current,{transform:st(_)?`scale(${de}) translate3d(0, ${fe}px, 0)`:`scale(${de}) translate3d(${fe}px, 0, 0)`,transition:"none"})}function En(ae,ue){const Ne=st(_)?window.innerHeight:window.innerWidth,I=ue?(Ne-Or)/Ne:1,de=ue?-Or:0;ue&&Ge(K.current,{transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,transform:st(_)?`scale(${I}) translate3d(0, ${de}px, 0)`:`scale(${I}) translate3d(${de}px, 0, 0)`})}return A.createElement(Dy,{modal:y,onOpenChange:ae=>{if(e!==void 0){t==null||t(ae);return}ae?(q(!0),z(ae)):ke()},open:j},A.createElement(zy.Provider,{value:{visible:W,activeSnapPoint:xe,snapPoints:l,setActiveSnapPoint:Ie,drawerRef:K,overlayRef:ne,scaleBackground:Bt,onOpenChange:t,onPress:Q,setVisible:$,onRelease:pt,onDrag:je,dismissible:h,handleOnly:f,isOpen:j,isDragging:oe,shouldFade:ft,closeDrawer:ke,onNestedDrag:cn,onNestedOpenChange:un,onNestedRelease:En,keyboardIsOpen:we,openProp:e,modal:y,snapPointsOffset:bt,direction:_}},n))}const HR=250,BR=120,Ky=A.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{visible:o,closeDrawer:i,isDragging:l,snapPoints:s,activeSnapPoint:d,setActiveSnapPoint:u,dismissible:m,handleOnly:h,onPress:f,onDrag:w}=xs(),C=A.useRef(null),S=A.useRef(!1);function R(){if(S.current){x();return}window.setTimeout(()=>{y()},BR)}function y(){if(l||e||S.current){x();return}if(x(),(!s||s.length===0)&&m){i();return}if(d===s[s.length-1]&&m){i();return}const N=s.findIndex(P=>P===d);if(N===-1)return;const D=s[N+1];u(D)}function v(){C.current=window.setTimeout(()=>{S.current=!0},HR)}function x(){window.clearTimeout(C.current),S.current=!1}return A.createElement("div",{onClick:R,onDoubleClick:()=>{S.current=!0,i()},onPointerCancel:x,onPointerDown:_=>{h&&f(_),v()},onPointerMove:_=>{h&&w(_)},ref:r,"vaul-drawer-visible":o?"true":"false","vaul-handle":"","aria-hidden":"true",...n},A.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},t))});Ky.displayName="Drawer.Handle";const Qy=A.forwardRef(function({children:e,...t},n){const{overlayRef:r,snapPoints:o,onRelease:i,shouldFade:l,isOpen:s,visible:d}=xs(),u=Uy(n,r),m=o&&o.length>0;return A.createElement(My,{onMouseUp:i,ref:u,"vaul-drawer-visible":d?"true":"false","vaul-overlay":"","vaul-snap-points":s&&m?"true":"false","vaul-snap-points-overlay":s&&l?"true":"false",...t})});Qy.displayName="Drawer.Overlay";const Yy=A.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:n,style:r,...o},i){const{drawerRef:l,onPress:s,onRelease:d,onDrag:u,dismissible:m,keyboardIsOpen:h,snapPointsOffset:f,visible:w,closeDrawer:C,modal:S,openProp:R,onOpenChange:y,setVisible:v,handleOnly:x,direction:_}=xs(),N=Uy(i,l),D=A.useRef(null),P=A.useRef(!1),j=(z,F,q=0)=>{if(P.current)return!0;const W=Math.abs(z.y),$=Math.abs(z.x),V=$>W,Z=["bottom","right"].includes(F)?1:-1;if(F==="left"||F==="right"){if(!(z.x*Z<0)&&$>=0&&$<=q)return V}else if(!(z.y*Z<0)&&W>=0&&W<=q)return!V;return P.current=!0,!0};return A.useEffect(()=>{v(!0)},[]),A.createElement(Iy,{"vaul-drawer":"","vaul-drawer-direction":_,"vaul-drawer-visible":w?"true":"false",...o,ref:N,style:f&&f.length>0?{"--snap-point-height":`${f[0]}px`,...r}:r,onOpenAutoFocus:z=>{if(e)e(z);else{var F;z.preventDefault(),(F=l.current)==null||F.focus()}},onPointerDown:z=>{x||(o.onPointerDown==null||o.onPointerDown.call(o,z),D.current={x:z.clientX,y:z.clientY},s(z))},onPointerDownOutside:z=>{if(t==null||t(z),!S||z.defaultPrevented){z.preventDefault();return}h.current&&(h.current=!1),z.preventDefault(),y==null||y(!1),!(!m||R!==void 0)&&C()},onFocusOutside:z=>{if(!S){z.preventDefault();return}},onEscapeKeyDown:z=>{if(!S){z.preventDefault();return}},onPointerMove:z=>{if(x||(o.onPointerMove==null||o.onPointerMove.call(o,z),!D.current))return;const F=z.clientY-D.current.y,q=z.clientX-D.current.x,W=z.pointerType==="touch"?10:2;j({x:q,y:F},_,W)?u(z):(Math.abs(q)>W||Math.abs(F)>W)&&(D.current=null)},onPointerUp:z=>{o.onPointerUp==null||o.onPointerUp.call(o,z),D.current=null,P.current=!1,d(z)}})});Yy.displayName="Drawer.Content";function UR({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=xs();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return A.createElement(Gy,{nested:!0,onClose:()=>{o(!1)},onDrag:(l,s)=>{r(l,s),e==null||e(l,s)},onOpenChange:l=>{l&&o(l),t==null||t(l)},onRelease:i,...n})}const Sn={Root:Gy,NestedRoot:UR,Content:Yy,Handle:Ky,Overlay:Qy,Trigger:Oy,Portal:jy,Close:ef,Title:Ly,Description:Fy},Xy=({shouldScaleBackground:e=!0,...t})=>b.jsx(Sn.Root,{shouldScaleBackground:e,...t});Xy.displayName="Drawer";const WR=Sn.Trigger,VR=Sn.Portal,qR=Sn.Close,Zy=g.forwardRef(({className:e,...t},n)=>b.jsx(Sn.Overlay,{ref:n,className:Re("fixed inset-0 z-50 bg-black/80",e),...t}));Zy.displayName=Sn.Overlay.displayName;const Jy=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(VR,{children:[b.jsx(Zy,{}),b.jsxs(Sn.Content,{ref:r,className:Re("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[b.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Jy.displayName="DrawerContent";const ew=({className:e,...t})=>b.jsx("div",{className:Re("grid gap-1.5 p-4 text-center sm:text-left",e),...t});ew.displayName="DrawerHeader";const tw=({className:e,...t})=>b.jsx("div",{className:Re("mt-auto flex flex-col gap-2 p-4",e),...t});tw.displayName="DrawerFooter";const nw=g.forwardRef(({className:e,...t},n)=>b.jsx(Sn.Title,{ref:n,className:Re("text-lg font-semibold leading-none tracking-tight",e),...t}));nw.displayName=Sn.Title.displayName;const rw=g.forwardRef(({className:e,...t},n)=>b.jsx(Sn.Description,{ref:n,className:Re("text-sm text-muted-foreground",e),...t}));rw.displayName=Sn.Description.displayName;function GR(){const{setRowPerPageOrAuto:e,selectedTable:t,setIsCustomQuery:n,db:r}=to(),[o,i]=g.useState(null),[l,s]=g.useState(!1);g.useEffect(()=>{const f=localStorage.getItem("rowsPerPage");f&&(f==="auto"?s(!0):(i(Number(f)),e(Number(f))))},[e]);const d=f=>{const w=Number(f.target.value);isNaN(w)||(i(w),s(!1))},u=()=>{s(f=>!f)},m=()=>{if(n(!1),o===null)return Ac.error("Please provide a number of rows per page or set it to auto.");if(o<1)return Ac.error("Please provide a positive number of rows per page.");localStorage.setItem("rowsPerPage",l?"auto":o.toString()),e(l?"auto":o)},h=(f,w,C)=>b.jsx(rn,{variant:"outline",onClick:f,className:C,children:b.jsx("span",{className:"ml-2",children:w})});return b.jsxs(Xy,{children:[b.jsx(WR,{asChild:!0,children:b.jsx(rn,{className:"grow",children:b.jsx(CE,{className:"h-5 w-5"})})}),b.jsx(Jy,{children:b.jsxs("div",{className:"mx-auto w-full max-w-md",children:[b.jsxs(ew,{children:[b.jsx(nw,{children:"Settings"}),b.jsx(rw,{children:"Personalize your site experience here."})]}),b.jsxs("div",{className:"p-4 pb-0 flex flex-col gap-4",children:[b.jsxs("div",{children:[b.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Rows Per Page"}),b.jsxs("div",{className:"border rounded p-2 flex gap-1 justify-center items-center",children:[b.jsx(Td,{value:o||"",onChange:d,disabled:l,placeholder:"Number of rows",type:"number",name:"rowsPerPage"}),b.jsx("span",{className:"text-sm text-muted-foreground h-full text-center",children:"OR"}),b.jsx(rn,{onClick:u,variant:"outline",className:l?"border border-primary":"",children:"Auto calculate"})]}),b.jsx(rn,{className:"w-full mt-2",onClick:m,variant:"outline",children:b.jsx("span",{children:"Save"})})]}),b.jsxs("div",{children:[b.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Exports Settings"}),r&&b.jsxs("div",{className:"border rounded p-2 flex flex-col gap-1",children:[h(()=>wS(r),"Export as SQLite"),h(()=>xS(r,parseInt(t)),"Export selected table as CSV"),h(()=>bS(r),"Export all tables as CSV")]})]})]}),b.jsx(tw,{children:b.jsx(qR,{asChild:!0,children:b.jsx(rn,{variant:"outline",children:"Close"})})})]})})]})}function ow(){const[e,t]=g.useState(!1),n=g.useCallback(r=>{t(r),document.body.classList.toggle("dark",r),localStorage.setItem("darkMode",r.toString()),document.body.classList.add("animate-circular-reveal"),setTimeout(()=>{document.body.classList.remove("animate-circular-reveal")},500)},[]);return g.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)").matches,o=localStorage.getItem("darkMode");n(o!==null?o==="true":r);const i=s=>{n(s.matches)},l=window.matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",i),()=>{l.removeEventListener("change",i)}},[]),b.jsx(rn,{title:e?"Enable light mode":"Enable dark mode",onClick:()=>{n(!e)},className:"relative grow",children:e?b.jsx(_E,{className:"h-5 w-5"}):b.jsx(SE,{className:"h-5 w-5"})})}function KR(){const{loadDatabase:e,setTables:t,setSelectedTable:n,db:r}=to(),[o,i]=g.useState([]),l=g.useCallback(async(m,h)=>{if(i([]),t([]),n("0"),m.length>0){const f=m[0];await e(f)}if(h.length>0){const f=h.flatMap(w=>w.errors);i(f)}},[e,t,n]),{getRootProps:s,getInputProps:d}=my({onDrop:l,multiple:!1,accept:{"application/vnd.sqlite3":[".sqlite",".sqlite3"],"application/x-sqlite3":[".sqlite",".sqlite3"],"application/octet-stream":[".db"],"application/sql":[".sql"]}}),u=m=>b.jsxs("div",{className:"flex items-center gap-2 justify-center h-full",children:[b.jsxs("div",{...s(),className:`grow h-full border p-6 rounded cursor-pointer text-center flex flex-col items-center justify-center ${m?"":"py-32"}`,children:[b.jsx("input",{id:"file-upload",...d()}),b.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),b.jsx("p",{className:"hidden sm:block",children:"Drag and drop a SQLite file here, or click to select one"}),b.jsx("p",{className:"block sm:hidden",children:m?"Click to select a file":"Click to select a SQLite file"}),!m&&b.jsx("a",{href:"https://github.com/vwh/sqlite-viewer/raw/main/db_examples/chinook.db",className:"text-sm text-link hover:underline",title:"Download sample file",children:"Or download & try this sample file"})]}),m&&b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx(ow,{}),b.jsx(GR,{})]})]});return b.jsxs("section",{children:[u(!!r),b.jsx("div",{children:b.jsx(pR,{errors:o})})]})}function QR(){const e=g.useRef(null);return g.useEffect(()=>{const t=e.current;if(!t)return;const n=()=>{document.body.classList.contains("dark")?t.src="/sqlite-dark.webp":t.src="/sqlite-light.webp"};n();const r=new MutationObserver(n);return r.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),b.jsx("section",{className:"flex justify-center border rounded py-3",children:b.jsxs("div",{className:"flex flex-col items-center gap-3",children:[b.jsx("img",{ref:e,id:"logo",title:"SQLite Logo",src:"./sqlite-light.webp",alt:"SQLite Logo",width:"170",height:"80",draggable:"false"}),b.jsx("p",{className:"text-sm",children:"View SQLite files in the browser"})]})})}var iw="AlertDialog",[YR,xN]=qo(iw,[vy]),Jn=vy(),lw=e=>{const{__scopeAlertDialog:t,...n}=e,r=Jn(t);return b.jsx(Dy,{...r,...n,modal:!0})};lw.displayName=iw;var XR="AlertDialogTrigger",ZR=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return b.jsx(Oy,{...o,...r,ref:t})});ZR.displayName=XR;var JR="AlertDialogPortal",aw=e=>{const{__scopeAlertDialog:t,...n}=e,r=Jn(t);return b.jsx(jy,{...r,...n})};aw.displayName=JR;var eN="AlertDialogOverlay",sw=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return b.jsx(My,{...o,...r,ref:t})});sw.displayName=eN;var Do="AlertDialogContent",[tN,nN]=YR(Do),uw=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Jn(n),l=g.useRef(null),s=Ye(t,l),d=g.useRef(null);return b.jsx(wR,{contentName:Do,titleName:cw,docsSlug:"alert-dialog",children:b.jsx(tN,{scope:n,cancelRef:d,children:b.jsxs(Iy,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:Te(o.onOpenAutoFocus,u=>{var m;u.preventDefault(),(m=d.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[b.jsx(dg,{children:r}),b.jsx(oN,{contentRef:l})]})})})});uw.displayName=Do;var cw="AlertDialogTitle",dw=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return b.jsx(Ly,{...o,...r,ref:t})});dw.displayName=cw;var fw="AlertDialogDescription",pw=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return b.jsx(Fy,{...o,...r,ref:t})});pw.displayName=fw;var rN="AlertDialogAction",mw=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return b.jsx(ef,{...o,...r,ref:t})});mw.displayName=rN;var hw="AlertDialogCancel",vw=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=nN(hw,n),i=Jn(n),l=Ye(t,o);return b.jsx(ef,{...i,...r,ref:l})});vw.displayName=hw;var oN=({contentRef:e})=>{const t=`\`${Do}\` requires a description for the component to be accessible for screen reader users. -You can add a description to the \`${Ao}\` by passing a \`${fw}\` component as a child, which also benefits sighted users by adding visible context to the dialog. +You can add a description to the \`${Do}\` by passing a \`${fw}\` component as a child, which also benefits sighted users by adding visible context to the dialog. -Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ao}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Do}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. -For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},nN=lw,rN=aw,gw=sw,yw=uw,ww=mw,xw=vw,bw=dw,Sw=pw;const oN=nN,iN=rN,Ew=v.forwardRef(({className:e,...t},n)=>b.jsx(gw,{className:Re("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Ew.displayName=gw.displayName;const Cw=v.forwardRef(({className:e,...t},n)=>b.jsxs(iN,{children:[b.jsx(Ew,{}),b.jsx(yw,{ref:n,className:Re("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",e),...t})]}));Cw.displayName=yw.displayName;const _w=({className:e,...t})=>b.jsx("div",{className:Re("flex flex-col space-y-2 text-left",e),...t});_w.displayName="AlertDialogHeader";const kw=({className:e,...t})=>b.jsx("div",{className:Re("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});kw.displayName="AlertDialogFooter";const Rw=v.forwardRef(({className:e,...t},n)=>b.jsx(bw,{ref:n,className:Re("text-lg font-semibold",e),...t}));Rw.displayName=bw.displayName;const Nw=v.forwardRef(({className:e,...t},n)=>b.jsx(Sw,{ref:n,className:Re("text-sm",e),...t}));Nw.displayName=Sw.displayName;const Pw=v.forwardRef(({className:e,...t},n)=>b.jsx(ww,{ref:n,className:Re(Ad(),e),...t}));Pw.displayName=ww.displayName;const Tw=v.forwardRef(({className:e,...t},n)=>b.jsx(xw,{ref:n,className:Re(Ad({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Tw.displayName=xw.displayName;function lN({showDialog:e,setShowDialog:t,fn:n}){return b.jsx(oN,{open:e,onOpenChange:t,children:b.jsxs(Cw,{children:[b.jsxs(_w,{children:[b.jsx(Rw,{children:"Retry using a proxy?"}),b.jsx(Nw,{children:"Failed to load the database from the provided URL due to possible CORS restrictions."})]}),b.jsx("div",{className:"text-sm font-semibold",children:"Using the proxy may expose your database to corsproxy.io services."}),b.jsxs(kw,{children:[b.jsx(Tw,{onClick:()=>t(!1),children:"Cancel"}),b.jsx(Pw,{onClick:n,children:"Confirm"})]})]})})}function aN(){return b.jsxs("footer",{className:"flex items-center justify-between p-4 border rounded",children:[b.jsxs("div",{children:[b.jsx("p",{className:"hidden sm:block text-xs",children:"No file will be uploaded to server. using JavaScript, sql.js"}),b.jsx("p",{className:"block sm:hidden text-xs",children:"No file uploads to server."}),b.jsxs("a",{href:"https://github.com/vwh/sqlite-viewer",target:"_blank",className:"text-sm text-link hover:underline flex gap-1 items-center",title:"Star on GitHub",children:[b.jsx(hE,{className:"h-4 w-4"}),b.jsx("span",{children:"Star us on GitHub"})]})]}),b.jsx("div",{className:"flex gap-1",children:b.jsx(ow,{})})]})}function sN(){const{db:e,tables:t,isLoading:n,loadDatabase:r}=ol(),[o,i]=v.useState(null),[l,s]=v.useState(!1),[d,u]=v.useState(null),[m,h]=v.useState(!1),f=v.useRef(!1),w=async(S,R=!1)=>{try{h(!0);const y=R?`https://corsproxy.io/?${S}`:S,g=await fetch(y);if(!g.ok)i(`URL not found or invalid: ( ${g.status} )`);else{const x=await g.blob(),_=new File([x],"database.sqlite");await r(_),i(null)}}catch(y){y instanceof Error&&(R?i(`Error fetching database from URL (with proxy): ${S} - ${y.message}`):(u(S),s(!0)))}finally{h(!1)}};v.useEffect(()=>{if(f.current)return;const S=new URLSearchParams(window.location.search),R=decodeURIComponent(S.get("url")||"");R&&(w(R),f.current=!0)},[]);const C=()=>{d&&(w(d,!0),s(!1))};return b.jsxs(b.Fragment,{children:[!e&&b.jsx(qR,{}),b.jsx(VR,{}),n?b.jsx(Cc,{children:"Loading SQLite file"}):m?b.jsx(Cc,{children:"Fetching SQLite file"}):null,o&&!e&&b.jsx(Ec,{children:o}),!n&&e&&(t.length>0?b.jsx(H_,{}):b.jsx(Ec,{children:"Your database is empty, no tables found"})),b.jsx(lN,{showDialog:l,setShowDialog:s,fn:C}),!e&&b.jsx(aN,{})]})}var Mm=["light","dark"],uN="(prefers-color-scheme: dark)",cN=v.createContext(void 0),dN={setTheme:e=>{},themes:[]},fN=()=>{var e;return(e=v.useContext(cN))!=null?e:dN};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:l,attrs:s,nonce:d})=>{let u=i==="system",m=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(C=>`'${C}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=o?Mm.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(C,S=!1,R=!0)=>{let y=l?l[C]:C,g=S?C+"|| ''":`'${y}'`,x="";return o&&R&&!S&&Mm.includes(C)&&(x+=`d.style.colorScheme = '${C}';`),n==="class"?S||y?x+=`c.add(${g})`:x+="null":y&&(x+=`d[s](n,${g})`),x},w=e?`!function(){${m}${f(e)}}()`:r?`!function(){try{${m}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${uN}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${f(l?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${m}var e=localStorage.getItem('${t}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${f(l?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return v.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:w}})});const pN=({...e})=>{const{theme:t="system"}=fN();return b.jsx(uR,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-primary group-[.toaster]:text-background group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};yu.createRoot(document.getElementById("root")).render(b.jsxs(D.StrictMode,{children:[b.jsx("main",{className:"container mx-auto p-4 h-screen flex flex-col gap-3",children:b.jsx(sN,{})}),b.jsx(pN,{})]})); +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},iN=lw,lN=aw,gw=sw,yw=uw,ww=mw,xw=vw,bw=dw,Sw=pw;const aN=iN,sN=lN,Ew=g.forwardRef(({className:e,...t},n)=>b.jsx(gw,{className:Re("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Ew.displayName=gw.displayName;const Cw=g.forwardRef(({className:e,...t},n)=>b.jsxs(sN,{children:[b.jsx(Ew,{}),b.jsx(yw,{ref:n,className:Re("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",e),...t})]}));Cw.displayName=yw.displayName;const _w=({className:e,...t})=>b.jsx("div",{className:Re("flex flex-col space-y-2 text-left",e),...t});_w.displayName="AlertDialogHeader";const kw=({className:e,...t})=>b.jsx("div",{className:Re("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});kw.displayName="AlertDialogFooter";const Rw=g.forwardRef(({className:e,...t},n)=>b.jsx(bw,{ref:n,className:Re("text-lg font-semibold",e),...t}));Rw.displayName=bw.displayName;const Nw=g.forwardRef(({className:e,...t},n)=>b.jsx(Sw,{ref:n,className:Re("text-sm",e),...t}));Nw.displayName=Sw.displayName;const Pw=g.forwardRef(({className:e,...t},n)=>b.jsx(ww,{ref:n,className:Re(Ad(),e),...t}));Pw.displayName=ww.displayName;const Tw=g.forwardRef(({className:e,...t},n)=>b.jsx(xw,{ref:n,className:Re(Ad({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Tw.displayName=xw.displayName;function uN({showDialog:e,setShowDialog:t,fn:n}){return b.jsx(aN,{open:e,onOpenChange:t,children:b.jsxs(Cw,{children:[b.jsxs(_w,{children:[b.jsx(Rw,{children:"Retry using a proxy?"}),b.jsx(Nw,{children:"Failed to load the database from the provided URL due to possible CORS restrictions."})]}),b.jsx("div",{className:"text-sm font-semibold",children:"Using the proxy may expose your database to corsproxy.io services."}),b.jsxs(kw,{children:[b.jsx(Tw,{onClick:()=>t(!1),children:"Cancel"}),b.jsx(Pw,{onClick:n,children:"Confirm"})]})]})})}function cN(){return b.jsxs("footer",{className:"flex items-center justify-between p-4 border rounded",children:[b.jsxs("div",{children:[b.jsx("p",{className:"hidden sm:block text-xs",children:"No file will be uploaded to server. using JavaScript, sql.js"}),b.jsx("p",{className:"block sm:hidden text-xs",children:"No file uploads to server."}),b.jsxs("a",{href:"https://github.com/vwh/sqlite-viewer",target:"_blank",className:"text-sm text-link hover:underline flex gap-1 items-center",title:"Star on GitHub",children:[b.jsx(gE,{className:"h-4 w-4"}),b.jsx("span",{children:"Star us on GitHub"})]})]}),b.jsx("div",{className:"flex gap-1",children:b.jsx(ow,{})})]})}function dN(){const{db:e,tables:t,isLoading:n,loadDatabase:r}=to(),[o,i]=g.useState(null),[l,s]=g.useState(!1),[d,u]=g.useState(null),[m,h]=g.useState(!1),f=g.useRef(!1),w=async(S,R=!1)=>{try{h(!0);const y=R?`https://corsproxy.io/?${S}`:S,v=await fetch(y);if(!v.ok)i("URL not found or invalid");else{const x=await v.blob(),_=new File([x],"database.sqlite");await r(_),i(null)}}catch(y){y instanceof Error&&(R?i(`Error fetching database from URL (with proxy): ${S} - ${y.message}`):(u(S),s(!0)))}finally{h(!1)}};g.useEffect(()=>{if(f.current)return;const S=new URLSearchParams(window.location.search),R=decodeURIComponent(S.get("url")||"");R&&(w(R),f.current=!0)},[]);const C=()=>{d&&(w(d,!0),s(!1))};return b.jsxs(b.Fragment,{children:[!e&&b.jsx(QR,{}),b.jsx(KR,{}),n?b.jsx(Cc,{children:"Loading SQLite file"}):m?b.jsx(Cc,{children:"Fetching SQLite file"}):null,o&&!e&&b.jsx(Ec,{children:o}),!n&&e&&(t.length>0?b.jsx(W_,{}):b.jsx(Ec,{children:"Your database is empty, no tables found"})),b.jsx(uN,{showDialog:l,setShowDialog:s,fn:C}),!e&&b.jsx(cN,{})]})}var Mm=["light","dark"],fN="(prefers-color-scheme: dark)",pN=g.createContext(void 0),mN={setTheme:e=>{},themes:[]},hN=()=>{var e;return(e=g.useContext(pN))!=null?e:mN};g.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:l,attrs:s,nonce:d})=>{let u=i==="system",m=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(C=>`'${C}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=o?Mm.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(C,S=!1,R=!0)=>{let y=l?l[C]:C,v=S?C+"|| ''":`'${y}'`,x="";return o&&R&&!S&&Mm.includes(C)&&(x+=`d.style.colorScheme = '${C}';`),n==="class"?S||y?x+=`c.add(${v})`:x+="null":y&&(x+=`d[s](n,${v})`),x},w=e?`!function(){${m}${f(e)}}()`:r?`!function(){try{${m}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${fN}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${f(l?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${m}var e=localStorage.getItem('${t}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${f(l?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return g.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:w}})});const vN=({...e})=>{const{theme:t="system"}=hN();return b.jsx(fR,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-primary group-[.toaster]:text-background group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};yu.createRoot(document.getElementById("root")).render(b.jsxs(A.StrictMode,{children:[b.jsx("main",{className:"container mx-auto p-4 h-screen flex flex-col gap-3",children:b.jsx(dN,{})}),b.jsx(vN,{})]})); diff --git a/assets/index-HwuRW0DC.css b/assets/index-HwuRW0DC.css new file mode 100644 index 0000000..3fa2785 --- /dev/null +++ b/assets/index-HwuRW0DC.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 87%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 80%;--input: 240 5.9% 80%;--link: 198, 100%, 16%;--ring: 240 5.9% 10%;--radius: .5rem}.dark{--background: 0 0% 5.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--link: 198, 100%, 60%;--ring: 0 0% 83.1%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-\[8px\]{bottom:8px}.left-0{left:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.ml-2{margin-left:.5rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-\[270px\]{width:270px}.w-full{width:100%}.min-w-\[100px\]{min-width:100px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-\[200px\]{max-width:200px}.max-w-\[250px\]{max-width:250px}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes circular-reveal{0%{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(150% at 50% 50%)}}.animate-circular-reveal{animation:circular-reveal .3s ease-in-out}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[6px\]{padding:6px}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-32{padding-top:8rem;padding-bottom:8rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-8{padding-bottom:2rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-link{color:hsl(var(--link))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary,.group.toaster .group-\[\.toaster\]\:bg-primary{background-color:hsl(var(--primary))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-background{color:hsl(var(--background))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:min-w-\[200px\]{min-width:200px}.md\:flex-row{flex-direction:row}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/index-kroWZl5K.css b/assets/index-kroWZl5K.css deleted file mode 100644 index cbf3daf..0000000 --- a/assets/index-kroWZl5K.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 87%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 80%;--input: 240 5.9% 80%;--link: 198, 100%, 16%;--ring: 240 5.9% 10%;--radius: .5rem}.dark{--background: 0 0% 5.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--link: 198, 100%, 60%;--ring: 0 0% 83.1%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-\[8px\]{bottom:8px}.left-0{left:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-\[270px\]{width:270px}.w-full{width:100%}.min-w-\[100px\]{min-width:100px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-\[200px\]{max-width:200px}.max-w-\[250px\]{max-width:250px}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes circular-reveal{0%{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(150% at 50% 50%)}}.animate-circular-reveal{animation:circular-reveal .3s ease-in-out}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[6px\]{padding:6px}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-32{padding-top:8rem;padding-bottom:8rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-8{padding-bottom:2rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-link{color:hsl(var(--link))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary,.group.toaster .group-\[\.toaster\]\:bg-primary{background-color:hsl(var(--primary))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-background{color:hsl(var(--background))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:min-w-\[200px\]{min-width:200px}.md\:flex-row{flex-direction:row}.md\:text-2xl{font-size:1.5rem;line-height:2rem}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/index.html b/index.html index 14ae177..72892c0 100644 --- a/index.html +++ b/index.html @@ -58,8 +58,8 @@ font-size: 2rem; } - - + + diff --git a/sw.js b/sw.js index d3368cf..f513b8f 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),c={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map((e=>c[e]||l(e)))).then((e=>(r(...e),o)))}}define(["./workbox-7cfec069"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/index-C6RzUi-C.js",revision:null},{url:"assets/index-kroWZl5K.css",revision:null},{url:"index.html",revision:"44e6415fe30d4466499345a91d61527a"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"662c9ac5fe5300a257a596b0ad6130ea"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),c={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map((e=>c[e]||l(e)))).then((e=>(r(...e),o)))}}define(["./workbox-7cfec069"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/index-D_iuDlfB.js",revision:null},{url:"assets/index-HwuRW0DC.css",revision:null},{url:"index.html",revision:"770315c1ebe5c48a8cd0ca69318ed928"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"662c9ac5fe5300a257a596b0ad6130ea"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));