From e7292ad02949c65f48f2c97c8897bef60910e411 Mon Sep 17 00:00:00 2001 From: vwh Date: Mon, 22 Jul 2024 11:30:09 +0300 Subject: [PATCH] Updates --- .../{index-BVCx4aDC.js => index-BxjtieRf.js} | 98 +++++++++---------- ...{index-BfLfaB4r.css => index-WPbId_Ps.css} | 2 +- index.html | 4 +- sw.js | 2 +- 4 files changed, 53 insertions(+), 53 deletions(-) rename assets/{index-BVCx4aDC.js => index-BxjtieRf.js} (60%) rename assets/{index-BfLfaB4r.css => index-WPbId_Ps.css} (59%) diff --git a/assets/index-BVCx4aDC.js b/assets/index-BxjtieRf.js similarity index 60% rename from assets/index-BVCx4aDC.js rename to assets/index-BxjtieRf.js index 32c518c..5bd4ad9 100644 --- a/assets/index-BVCx4aDC.js +++ b/assets/index-BxjtieRf.js @@ -1,4 +1,4 @@ -function t1(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 n1(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 Pm={exports:{}},Gs={},Nm={exports:{}},xe={};/** +function n1(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 r1(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 Tm={exports:{}},Gs={},Nm={exports:{}},xe={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function t1(e,t){for(var n=0;n>>1,ue=z[se];if(0>>1;seo(Xe,ee))_eo(J,Xe)?(z[se]=J,z[_e]=ee,se=_e):(z[se]=Xe,z[ve]=ee,se=ve);else if(_eo(J,ee))z[se]=J,z[_e]=ee,se=_e;else break e}}return B}function o(z,B){var ee=z.sortIndex-B.sortIndex;return ee!==0?ee:z.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,a=l.now();e.unstable_now=function(){return l.now()-a}}var f=[],u=[],p=1,m=null,h=3,x=!1,C=!1,E=!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 b(z){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=z)r(u),B.sortIndex=B.expirationTime,t(f,B);else break;B=n(u)}}function _(z){if(E=!1,b(z),!C)if(n(f)!==null)C=!0,le(P);else{var B=n(u);B!==null&&ne(_,B.startTime-z)}}function P(z,B){C=!1,E&&(E=!1,y(A),A=-1),x=!0;var ee=h;try{for(b(B),m=n(f);m!==null&&(!(m.expirationTime>B)||z&&!V());){var se=m.callback;if(typeof se=="function"){m.callback=null,h=m.priorityLevel;var ue=se(m.expirationTime<=B);B=e.unstable_now(),typeof ue=="function"?m.callback=ue:m===n(f)&&r(f),b(B)}else r(f);m=n(f)}if(m!==null)var qe=!0;else{var ve=n(u);ve!==null&&ne(_,ve.startTime-B),qe=!1}return qe}finally{m=null,h=ee,x=!1}}var D=!1,N=null,A=-1,j=5,I=-1;function V(){return!(e.unstable_now()-Iz||125se?(z.sortIndex=ee,t(u,z),n(f)===null&&z===n(u)&&(E?(y(A),A=-1):E=!0,ne(_,ee-se))):(z.sortIndex=ue,t(f,z),C||x||(C=!0,le(P))),z},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(z){var B=h;return function(){var ee=h;h=B;try{return z.apply(this,arguments)}finally{h=ee}}}})(Hm);$m.exports=Hm;var _1=$m.exports;/** + */(function(e){function t(z,B){var ee=z.length;z.push(B);e:for(;0>>1,ue=z[se];if(0>>1;seo(Xe,ee))_eo(J,Xe)?(z[se]=J,z[_e]=ee,se=_e):(z[se]=Xe,z[ve]=ee,se=ve);else if(_eo(J,ee))z[se]=J,z[_e]=ee,se=_e;else break e}}return B}function o(z,B){var ee=z.sortIndex-B.sortIndex;return ee!==0?ee:z.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,a=l.now();e.unstable_now=function(){return l.now()-a}}var f=[],u=[],p=1,m=null,h=3,x=!1,C=!1,E=!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 b(z){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=z)r(u),B.sortIndex=B.expirationTime,t(f,B);else break;B=n(u)}}function _(z){if(E=!1,b(z),!C)if(n(f)!==null)C=!0,le(P);else{var B=n(u);B!==null&&ne(_,B.startTime-z)}}function P(z,B){C=!1,E&&(E=!1,y(A),A=-1),x=!0;var ee=h;try{for(b(B),m=n(f);m!==null&&(!(m.expirationTime>B)||z&&!V());){var se=m.callback;if(typeof se=="function"){m.callback=null,h=m.priorityLevel;var ue=se(m.expirationTime<=B);B=e.unstable_now(),typeof ue=="function"?m.callback=ue:m===n(f)&&r(f),b(B)}else r(f);m=n(f)}if(m!==null)var qe=!0;else{var ve=n(u);ve!==null&&ne(_,ve.startTime-B),qe=!1}return qe}finally{m=null,h=ee,x=!1}}var D=!1,T=null,A=-1,j=5,I=-1;function V(){return!(e.unstable_now()-Iz||125se?(z.sortIndex=ee,t(u,z),n(f)===null&&z===n(u)&&(E?(y(A),A=-1):E=!0,ne(_,ee-se))):(z.sortIndex=ue,t(f,z),C||x||(C=!0,le(P))),z},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(z){var B=h;return function(){var ee=h;h=B;try{return z.apply(this,arguments)}finally{h=ee}}}})(Um);Hm.exports=Um;var k1=Hm.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function t1(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gu=Object.prototype.hasOwnProperty,R1=/^[: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]*$/,Dd={},Od={};function P1(e){return gu.call(Od,e)?!0:gu.call(Dd,e)?!1:R1.test(e)?Od[e]=!0:(Dd[e]=!0,!1)}function N1(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 T1(e,t,n,r){if(t===null||typeof t>"u"||N1(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 Pt(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 ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new Pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new Pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new Pt(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){ht[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new Pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ht[e]=new Pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ht[e]=new Pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ht[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oc=/[\-:]([a-z])/g;function jc(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(Oc,jc);ht[t]=new Pt(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(Oc,jc);ht[t]=new Pt(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(Oc,jc);ht[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ht[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)});ht.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ht[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mc(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gu=Object.prototype.hasOwnProperty,P1=/^[: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]*$/,Od={},jd={};function T1(e){return gu.call(jd,e)?!0:gu.call(Od,e)?!1:P1.test(e)?jd[e]=!0:(Od[e]=!0,!1)}function N1(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 A1(e,t,n,r){if(t===null||typeof t>"u"||N1(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 Pt(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 ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new Pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new Pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new Pt(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){ht[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new Pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ht[e]=new Pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ht[e]=new Pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ht[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var jc=/[\-:]([a-z])/g;function Mc(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(jc,Mc);ht[t]=new Pt(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(jc,Mc);ht[t]=new Pt(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(jc,Mc);ht[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ht[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)});ht.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ht[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ic(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==i[a]){var f=` -`+o[l].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),f}while(1<=l&&0<=a);break}}}finally{Aa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yi(e):""}function A1(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=Da(e.type,!1),e;case 11:return e=Da(e.type.render,!1),e;case 1:return e=Da(e.type,!0),e;default:return""}}function Su(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 yu:return"Profiler";case Ic:return"StrictMode";case wu:return"Suspense";case xu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bm:return(e.displayName||"Context")+".Consumer";case Wm:return(e._context.displayName||"Context")+".Provider";case Lc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fc:return t=e.displayName||null,t!==null?t:Su(e.type)||"Memo";case or:t=e._payload,e=e._init;try{return Su(e(t))}catch{}}return null}function D1(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 Su(t);case 8:return t===Ic?"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 yr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function O1(e){var t=qm(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 bl(e){e._valueTracker||(e._valueTracker=O1(e))}function Gm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cs(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 Eu(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Md(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yr(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 Km(e,t){t=t.checked,t!=null&&Mc(e,"checked",t,!1)}function bu(e,t){Km(e,t);var n=yr(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")?Cu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cu(e,t.type,yr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Id(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 Cu(e,t,n){(t!=="number"||cs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wi=Array.isArray;function Eo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Cl.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 bi={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},j1=["Webkit","ms","Moz","O"];Object.keys(bi).forEach(function(e){j1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bi[t]=bi[e]})});function Zm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bi.hasOwnProperty(e)&&bi[e]?(""+t).trim():t+"px"}function Jm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Zm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var M1=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ru(e,t){if(t){if(M1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function Pu(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 Nu=null;function zc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tu=null,bo=null,Co=null;function zd(e){if(e=nl(e)){if(typeof Tu!="function")throw Error($(280));var t=e.stateNode;t&&(t=Zs(t),Tu(e.stateNode,e.type,t))}}function eh(e){bo?Co?Co.push(e):Co=[e]:bo=e}function th(){if(bo){var e=bo,t=Co;if(Co=bo=null,zd(e),t)for(e=0;e>>=0,e===0?32:31-(q1(e)/G1|0)|0}var _l=64,kl=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 ms(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 a=l&~o;a!==0?r=xi(a):(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-dn(t),e[t]=n}function X1(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),Kd=" ",Qd=!1;function Sh(e,t){switch(e){case"keyup":return _x.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fo=!1;function Rx(e,t){switch(e){case"compositionend":return Eh(t);case"keypress":return t.which!==32?null:(Qd=!0,Kd);case"textInput":return e=t.data,e===Kd&&Qd?null:e;default:return null}}function Px(e,t){if(fo)return e==="compositionend"||!Gc&&Sh(e,t)?(e=wh(),Zl=Bc=ar=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=Jd(n)}}function kh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rh(){for(var e=window,t=cs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cs(e.document)}return t}function Kc(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 Lx(e){var t=Rh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kh(n.ownerDocument.documentElement,n)){if(r!==null&&Kc(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=ep(n,i);var l=ep(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,Iu=null,Ri=null,Lu=!1;function tp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lu||po==null||po!==cs(r)||(r=po,"selectionStart"in r&&Kc(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&&zi(Ri,r)||(Ri=r,r=gs(Iu,"onSelect"),0vo||(e.current=Wu[vo],Wu[vo]=null,vo--)}function je(e,t){vo++,Wu[vo]=e.current,e.current=t}var wr={},xt=br(wr),Mt=br(!1),Hr=wr;function Oo(e,t){var n=e.type.contextTypes;if(!n)return wr;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 It(e){return e=e.childContextTypes,e!=null}function ws(){Ue(Mt),Ue(xt)}function ap(e,t,n){if(xt.current!==wr)throw Error($(168));je(xt,t),je(Mt,n)}function Ih(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($(108,D1(e)||"Unknown",o));return Ye({},n,r)}function xs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wr,Hr=xt.current,je(xt,e),je(Mt,Mt.current),!0}function up(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Ih(e,t,Hr),r.__reactInternalMemoizedMergedChildContext=e,Ue(Mt),Ue(xt),je(xt,e)):Ue(Mt),je(Mt,n)}var In=null,Js=!1,qa=!1;function Lh(e){In===null?In=[e]:In.push(e)}function Qx(e){Js=!0,Lh(e)}function Cr(){if(!qa&&In!==null){qa=!0;var e=0,t=Ne;try{var n=In;for(Ne=1;e>=l,o-=l,Ln=1<<32-dn(t)+o|n<A?(j=N,N=null):j=N.sibling;var I=h(y,N,b[A],_);if(I===null){N===null&&(N=j);break}e&&N&&I.alternate===null&&t(y,N),g=i(I,g,A),D===null?P=I:D.sibling=I,D=I,N=j}if(A===b.length)return n(y,N),Be&&Dr(y,A),P;if(N===null){for(;AA?(j=N,N=null):j=N.sibling;var V=h(y,N,I.value,_);if(V===null){N===null&&(N=j);break}e&&N&&V.alternate===null&&t(y,N),g=i(V,g,A),D===null?P=V:D.sibling=V,D=V,N=j}if(I.done)return n(y,N),Be&&Dr(y,A),P;if(N===null){for(;!I.done;A++,I=b.next())I=m(y,I.value,_),I!==null&&(g=i(I,g,A),D===null?P=I:D.sibling=I,D=I);return Be&&Dr(y,A),P}for(N=r(y,N);!I.done;A++,I=b.next())I=x(N,y,A,I.value,_),I!==null&&(e&&I.alternate!==null&&N.delete(I.key===null?A:I.key),g=i(I,g,A),D===null?P=I:D.sibling=I,D=I);return e&&N.forEach(function(H){return t(y,H)}),Be&&Dr(y,A),P}function R(y,g,b,_){if(typeof b=="object"&&b!==null&&b.type===co&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case El:e:{for(var P=b.key,D=g;D!==null;){if(D.key===P){if(P=b.type,P===co){if(D.tag===7){n(y,D.sibling),g=o(D,b.props.children),g.return=y,y=g;break e}}else if(D.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===or&&dp(P)===D.type){n(y,D.sibling),g=o(D,b.props),g.ref=fi(y,D,b),g.return=y,y=g;break e}n(y,D);break}else t(y,D);D=D.sibling}b.type===co?(g=$r(b.props.children,y.mode,_,b.key),g.return=y,y=g):(_=ls(b.type,b.key,b.props,null,y.mode,_),_.ref=fi(y,g,b),_.return=y,y=_)}return l(y);case uo:e:{for(D=b.key;g!==null;){if(g.key===D)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(y,g.sibling),g=o(g,b.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=eu(b,y.mode,_),g.return=y,y=g}return l(y);case or:return D=b._init,R(y,g,D(b._payload),_)}if(wi(b))return C(y,g,b,_);if(li(b))return E(y,g,b,_);Ol(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(y,g.sibling),g=o(g,b),g.return=y,y=g):(n(y,g),g=Ja(b,y.mode,_),g.return=y,y=g),l(y)):n(y,g)}return R}var Mo=Hh(!0),Uh=Hh(!1),bs=br(null),Cs=null,wo=null,Zc=null;function Jc(){Zc=wo=Cs=null}function ef(e){var t=bs.current;Ue(bs),e._currentValue=t}function qu(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){Cs=e,Zc=wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(jt=!0),e.firstContext=null)}function tn(e){var t=e._currentValue;if(Zc!==e)if(e={context:e,memoizedValue:t,next:null},wo===null){if(Cs===null)throw Error($(308));wo=e,Cs.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Ir=null;function tf(e){Ir===null?Ir=[e]:Ir.push(e)}function Wh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,tf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Un(e,r)}function Un(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 ir=!1;function nf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bh(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 zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Un(e,n)}return o=r.interleaved,o===null?(t.next=t,tf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Un(e,n)}function es(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,Hc(e,n)}}function pp(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 _s(e,t,n,r){var o=e.updateQueue;ir=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var f=a,u=f.next;f.next=null,l===null?i=u:l.next=u,l=f;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==l&&(a===null?p.firstBaseUpdate=u:a.next=u,p.lastBaseUpdate=f))}if(i!==null){var m=o.baseState;l=0,p=u=f=null,a=i;do{var h=a.lane,x=a.eventTime;if((r&h)===h){p!==null&&(p=p.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var C=e,E=a;switch(h=t,x=n,E.tag){case 1:if(C=E.payload,typeof C=="function"){m=C.call(x,m,h);break e}m=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=E.payload,h=typeof C=="function"?C.call(x,m,h):C,h==null)break e;m=Ye({},m,h);break e;case 2:ir=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else x={eventTime:x,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(u=p=x,f=m):p=p.next=x,l|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(p===null&&(f=m),o.baseState=f,o.firstBaseUpdate=u,o.lastBaseUpdate=p,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);Br|=l,e.lanes=l,e.memoizedState=m}}function mp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ka.transition;Ka.transition={};try{e(!1),t()}finally{Ne=n,Ka.transition=r}}function sv(){return nn().memoizedState}function Jx(e,t,n){var r=vr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},av(e))uv(t,n);else if(n=Wh(e,t,n,r),n!==null){var o=_t();pn(n,e,r,o),cv(n,t,r)}}function eS(e,t,n){var r=vr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(av(e))uv(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,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,mn(a,l)){var f=t.interleaved;f===null?(o.next=o,tf(t)):(o.next=f.next,f.next=o),t.interleaved=o;return}}catch{}finally{}n=Wh(e,t,o,r),n!==null&&(o=_t(),pn(n,e,r,o),cv(n,t,r))}}function av(e){var t=e.alternate;return e===Qe||t!==null&&t===Qe}function uv(e,t){Pi=Rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hc(e,n)}}var Ps={readContext:tn,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useInsertionEffect:gt,useLayoutEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useMutableSource:gt,useSyncExternalStore:gt,useId:gt,unstable_isNewReconciler:!1},tS={readContext:tn,useCallback:function(e,t){return Cn().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:vp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ns(4194308,4,nv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=Cn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cn();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=Jx.bind(null,Qe,e),[r.memoizedState,e]},useRef:function(e){var t=Cn();return e={current:e},t.memoizedState=e},useState:hp,useDebugValue:ff,useDeferredValue:function(e){return Cn().memoizedState=e},useTransition:function(){var e=hp(!1),t=e[0];return e=Zx.bind(null,e[1]),Cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qe,o=Cn();if(Be){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),dt===null)throw Error($(349));Wr&30||Kh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,vp(Yh.bind(null,r,i,e),[e]),r.flags|=2048,Gi(9,Qh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Cn(),t=dt.identifierPrefix;if(Be){var n=Fn,r=Ln;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vi++,0")&&(f=f.replace("",e.displayName)),f}while(1<=l&&0<=a);break}}}finally{Aa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yi(e):""}function D1(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=Da(e.type,!1),e;case 11:return e=Da(e.type.render,!1),e;case 1:return e=Da(e.type,!0),e;default:return""}}function Su(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 yu:return"Profiler";case Lc:return"StrictMode";case wu:return"Suspense";case xu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vm:return(e.displayName||"Context")+".Consumer";case Bm:return(e._context.displayName||"Context")+".Provider";case Fc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zc:return t=e.displayName||null,t!==null?t:Su(e.type)||"Memo";case or:t=e._payload,e=e._init;try{return Su(e(t))}catch{}}return null}function O1(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 Su(t);case 8:return t===Lc?"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 yr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function j1(e){var t=Gm(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 bl(e){e._valueTracker||(e._valueTracker=j1(e))}function Km(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cs(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 Eu(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Id(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yr(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 Qm(e,t){t=t.checked,t!=null&&Ic(e,"checked",t,!1)}function bu(e,t){Qm(e,t);var n=yr(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")?Cu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cu(e,t.type,yr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ld(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 Cu(e,t,n){(t!=="number"||cs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wi=Array.isArray;function Eo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Cl.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 bi={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},M1=["Webkit","ms","Moz","O"];Object.keys(bi).forEach(function(e){M1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bi[t]=bi[e]})});function Jm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bi.hasOwnProperty(e)&&bi[e]?(""+t).trim():t+"px"}function eh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Jm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var I1=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ru(e,t){if(t){if(I1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function Pu(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 Tu=null;function $c(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nu=null,bo=null,Co=null;function $d(e){if(e=nl(e)){if(typeof Nu!="function")throw Error($(280));var t=e.stateNode;t&&(t=Zs(t),Nu(e.stateNode,e.type,t))}}function th(e){bo?Co?Co.push(e):Co=[e]:bo=e}function nh(){if(bo){var e=bo,t=Co;if(Co=bo=null,$d(e),t)for(e=0;e>>=0,e===0?32:31-(G1(e)/K1|0)|0}var _l=64,kl=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 ms(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 a=l&~o;a!==0?r=xi(a):(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-dn(t),e[t]=n}function Z1(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),Qd=" ",Yd=!1;function Eh(e,t){switch(e){case"keyup":return kx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fo=!1;function Px(e,t){switch(e){case"compositionend":return bh(t);case"keypress":return t.which!==32?null:(Yd=!0,Qd);case"textInput":return e=t.data,e===Qd&&Yd?null:e;default:return null}}function Tx(e,t){if(fo)return e==="compositionend"||!Kc&&Eh(e,t)?(e=xh(),Zl=Vc=ar=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=ep(n)}}function Rh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ph(){for(var e=window,t=cs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cs(e.document)}return t}function Qc(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 Fx(e){var t=Ph(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rh(n.ownerDocument.documentElement,n)){if(r!==null&&Qc(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=tp(n,i);var l=tp(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,Iu=null,Ri=null,Lu=!1;function np(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lu||po==null||po!==cs(r)||(r=po,"selectionStart"in r&&Qc(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&&zi(Ri,r)||(Ri=r,r=gs(Iu,"onSelect"),0vo||(e.current=Wu[vo],Wu[vo]=null,vo--)}function je(e,t){vo++,Wu[vo]=e.current,e.current=t}var wr={},xt=br(wr),Mt=br(!1),Hr=wr;function Oo(e,t){var n=e.type.contextTypes;if(!n)return wr;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 It(e){return e=e.childContextTypes,e!=null}function ws(){Ue(Mt),Ue(xt)}function up(e,t,n){if(xt.current!==wr)throw Error($(168));je(xt,t),je(Mt,n)}function Lh(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($(108,O1(e)||"Unknown",o));return Ye({},n,r)}function xs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wr,Hr=xt.current,je(xt,e),je(Mt,Mt.current),!0}function cp(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Lh(e,t,Hr),r.__reactInternalMemoizedMergedChildContext=e,Ue(Mt),Ue(xt),je(xt,e)):Ue(Mt),je(Mt,n)}var In=null,Js=!1,qa=!1;function Fh(e){In===null?In=[e]:In.push(e)}function Yx(e){Js=!0,Fh(e)}function Cr(){if(!qa&&In!==null){qa=!0;var e=0,t=Te;try{var n=In;for(Te=1;e>=l,o-=l,Ln=1<<32-dn(t)+o|n<A?(j=T,T=null):j=T.sibling;var I=h(y,T,b[A],_);if(I===null){T===null&&(T=j);break}e&&T&&I.alternate===null&&t(y,T),g=i(I,g,A),D===null?P=I:D.sibling=I,D=I,T=j}if(A===b.length)return n(y,T),Be&&Dr(y,A),P;if(T===null){for(;AA?(j=T,T=null):j=T.sibling;var V=h(y,T,I.value,_);if(V===null){T===null&&(T=j);break}e&&T&&V.alternate===null&&t(y,T),g=i(V,g,A),D===null?P=V:D.sibling=V,D=V,T=j}if(I.done)return n(y,T),Be&&Dr(y,A),P;if(T===null){for(;!I.done;A++,I=b.next())I=m(y,I.value,_),I!==null&&(g=i(I,g,A),D===null?P=I:D.sibling=I,D=I);return Be&&Dr(y,A),P}for(T=r(y,T);!I.done;A++,I=b.next())I=x(T,y,A,I.value,_),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?A:I.key),g=i(I,g,A),D===null?P=I:D.sibling=I,D=I);return e&&T.forEach(function(H){return t(y,H)}),Be&&Dr(y,A),P}function R(y,g,b,_){if(typeof b=="object"&&b!==null&&b.type===co&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case El:e:{for(var P=b.key,D=g;D!==null;){if(D.key===P){if(P=b.type,P===co){if(D.tag===7){n(y,D.sibling),g=o(D,b.props.children),g.return=y,y=g;break e}}else if(D.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===or&&pp(P)===D.type){n(y,D.sibling),g=o(D,b.props),g.ref=fi(y,D,b),g.return=y,y=g;break e}n(y,D);break}else t(y,D);D=D.sibling}b.type===co?(g=$r(b.props.children,y.mode,_,b.key),g.return=y,y=g):(_=ls(b.type,b.key,b.props,null,y.mode,_),_.ref=fi(y,g,b),_.return=y,y=_)}return l(y);case uo:e:{for(D=b.key;g!==null;){if(g.key===D)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(y,g.sibling),g=o(g,b.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=eu(b,y.mode,_),g.return=y,y=g}return l(y);case or:return D=b._init,R(y,g,D(b._payload),_)}if(wi(b))return C(y,g,b,_);if(li(b))return E(y,g,b,_);Ol(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(y,g.sibling),g=o(g,b),g.return=y,y=g):(n(y,g),g=Ja(b,y.mode,_),g.return=y,y=g),l(y)):n(y,g)}return R}var Mo=Uh(!0),Wh=Uh(!1),bs=br(null),Cs=null,wo=null,Jc=null;function ef(){Jc=wo=Cs=null}function tf(e){var t=bs.current;Ue(bs),e._currentValue=t}function qu(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){Cs=e,Jc=wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(jt=!0),e.firstContext=null)}function tn(e){var t=e._currentValue;if(Jc!==e)if(e={context:e,memoizedValue:t,next:null},wo===null){if(Cs===null)throw Error($(308));wo=e,Cs.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Ir=null;function nf(e){Ir===null?Ir=[e]:Ir.push(e)}function Bh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,nf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Un(e,r)}function Un(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 ir=!1;function rf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vh(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 zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Un(e,n)}return o=r.interleaved,o===null?(t.next=t,nf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Un(e,n)}function es(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,Uc(e,n)}}function mp(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 _s(e,t,n,r){var o=e.updateQueue;ir=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var f=a,u=f.next;f.next=null,l===null?i=u:l.next=u,l=f;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==l&&(a===null?p.firstBaseUpdate=u:a.next=u,p.lastBaseUpdate=f))}if(i!==null){var m=o.baseState;l=0,p=u=f=null,a=i;do{var h=a.lane,x=a.eventTime;if((r&h)===h){p!==null&&(p=p.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var C=e,E=a;switch(h=t,x=n,E.tag){case 1:if(C=E.payload,typeof C=="function"){m=C.call(x,m,h);break e}m=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=E.payload,h=typeof C=="function"?C.call(x,m,h):C,h==null)break e;m=Ye({},m,h);break e;case 2:ir=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else x={eventTime:x,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(u=p=x,f=m):p=p.next=x,l|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(p===null&&(f=m),o.baseState=f,o.firstBaseUpdate=u,o.lastBaseUpdate=p,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);Br|=l,e.lanes=l,e.memoizedState=m}}function hp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ka.transition;Ka.transition={};try{e(!1),t()}finally{Te=n,Ka.transition=r}}function av(){return nn().memoizedState}function eS(e,t,n){var r=vr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uv(e))cv(t,n);else if(n=Bh(e,t,n,r),n!==null){var o=_t();pn(n,e,r,o),fv(n,t,r)}}function tS(e,t,n){var r=vr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uv(e))cv(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,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,mn(a,l)){var f=t.interleaved;f===null?(o.next=o,nf(t)):(o.next=f.next,f.next=o),t.interleaved=o;return}}catch{}finally{}n=Bh(e,t,o,r),n!==null&&(o=_t(),pn(n,e,r,o),fv(n,t,r))}}function uv(e){var t=e.alternate;return e===Qe||t!==null&&t===Qe}function cv(e,t){Pi=Rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uc(e,n)}}var Ps={readContext:tn,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useInsertionEffect:gt,useLayoutEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useMutableSource:gt,useSyncExternalStore:gt,useId:gt,unstable_isNewReconciler:!1},nS={readContext:tn,useCallback:function(e,t){return Cn().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:gp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ns(4194308,4,rv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=Cn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cn();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=eS.bind(null,Qe,e),[r.memoizedState,e]},useRef:function(e){var t=Cn();return e={current:e},t.memoizedState=e},useState:vp,useDebugValue:df,useDeferredValue:function(e){return Cn().memoizedState=e},useTransition:function(){var e=vp(!1),t=e[0];return e=Jx.bind(null,e[1]),Cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qe,o=Cn();if(Be){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),dt===null)throw Error($(349));Wr&30||Qh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,gp(Xh.bind(null,r,i,e),[e]),r.flags|=2048,Gi(9,Yh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Cn(),t=dt.identifierPrefix;if(Be){var n=Fn,r=Ln;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vi++,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[_n]=t,e[Ui]=r,xv(e,t,!1,!1),t.stateNode=e;e:{switch(l=Pu(n,r),n){case"dialog":$e("cancel",e),$e("close",e),o=r;break;case"iframe":case"object":case"embed":$e("load",e),o=r;break;case"video":case"audio":for(o=0;oFo&&(t.flags|=128,r=!0,di(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Be)return yt(t),null}else 2*et()-i.renderingStartTime>Fo&&n!==1073741824&&(t.flags|=128,r=!0,di(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=et(),t.sibling=null,n=Ke.current,je(Ke,r?n&1|2:n&1),t):(yt(t),null);case 22:case 23:return gf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ht&1073741824&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function uS(e,t){switch(Yc(t),t.tag){case 1:return It(t.type)&&ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Io(),Ue(Mt),Ue(xt),lf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return of(t),null;case 13:if(Ue(Ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue(Ke),null;case 4:return Io(),null;case 10:return ef(t.type._context),null;case 22:case 23:return gf(),null;case 24:return null;default:return null}}var Ml=!1,wt=!1,cS=typeof WeakSet=="function"?WeakSet:Set,X=null;function xo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ze(e,t,r)}else n.current=null}function tc(e,t,n){try{n()}catch(r){Ze(e,t,r)}}var Rp=!1;function fS(e,t){if(Fu=hs,e=Rh(),Kc(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,a=-1,f=-1,u=0,p=0,m=e,h=null;t:for(;;){for(var x;m!==n||o!==0&&m.nodeType!==3||(a=l+o),m!==i||r!==0&&m.nodeType!==3||(f=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(x=m.firstChild)!==null;)h=m,m=x;for(;;){if(m===e)break t;if(h===n&&++u===o&&(a=l),h===i&&++p===r&&(f=l),(x=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=x}n=a===-1||f===-1?null:{start:a,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(zu={focusedElem:e,selectionRange:n},hs=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;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 E=C.memoizedProps,R=C.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?E:un(t.type,E),R);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(_){Ze(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return C=Rp,Rp=!1,C}function Ni(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&&tc(t,n,i)}o=o.next}while(o!==r)}}function na(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 nc(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 bv(e){var t=e.alternate;t!==null&&(e.alternate=null,bv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_n],delete t[Ui],delete t[Uu],delete t[Gx],delete t[Kx])),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 Cv(e){return e.tag===5||e.tag===3||e.tag===4}function Pp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cv(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 rc(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=ys));else if(r!==4&&(e=e.child,e!==null))for(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}function oc(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(oc(e,t,n),e=e.sibling;e!==null;)oc(e,t,n),e=e.sibling}var pt=null,cn=!1;function er(e,t,n){for(n=n.child;n!==null;)_v(e,t,n),n=n.sibling}function _v(e,t,n){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(Ks,n)}catch{}switch(n.tag){case 5:wt||xo(n,t);case 6:var r=pt,o=cn;pt=null,er(e,t,n),pt=r,cn=o,pt!==null&&(cn?(e=pt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pt.removeChild(n.stateNode));break;case 18:pt!==null&&(cn?(e=pt,n=n.stateNode,e.nodeType===8?Va(e.parentNode,n):e.nodeType===1&&Va(e,n),Li(e)):Va(pt,n.stateNode));break;case 4:r=pt,o=cn,pt=n.stateNode.containerInfo,cn=!0,er(e,t,n),pt=r,cn=o;break;case 0:case 11:case 14:case 15:if(!wt&&(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)&&tc(n,t,l),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!wt&&(xo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ze(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(wt=(r=wt)||n.memoizedState!==null,er(e,t,n),wt=r):er(e,t,n);break;default:er(e,t,n)}}function Np(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cS),t.forEach(function(r){var o=xS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function an(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pS(r/1960))-r,10e?16:e,ur===null)var r=!1;else{if(e=ur,ur=null,As=0,Ce&6)throw Error($(331));var o=Ce;for(Ce|=4,X=e.current;X!==null;){var i=X,l=i.child;if(X.flags&16){var a=i.deletions;if(a!==null){for(var f=0;fet()-hf?zr(e,0):mf|=n),Lt(e,t)}function Ov(e,t){t===0&&(e.mode&1?(t=kl,kl<<=1,!(kl&130023424)&&(kl=4194304)):t=1);var n=_t();e=Un(e,t),e!==null&&(el(e,t,n),Lt(e,n))}function wS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ov(e,n)}function xS(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($(314))}r!==null&&r.delete(t),Ov(e,n)}var jv;jv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mt.current)jt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jt=!1,sS(e,t,n);jt=!!(e.flags&131072)}else jt=!1,Be&&t.flags&1048576&&Fh(t,Es,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rs(e,t),e=t.pendingProps;var o=Oo(t,xt.current);ko(t,n),o=af(null,t,r,e,o,n);var i=uf();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,It(r)?(i=!0,xs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nf(t),o.updater=ta,t.stateNode=o,o._reactInternals=t,Ku(t,r,e,n),t=Xu(null,t,r,!0,i,n)):(t.tag=0,Be&&i&&Qc(t),Ct(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ES(r),e=un(r,e),o){case 0:t=Yu(null,t,r,e,n);break e;case 1:t=Cp(null,t,r,e,n);break e;case 11:t=Ep(null,t,r,e,n);break e;case 14:t=bp(null,t,r,un(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),Yu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),Cp(e,t,r,o,n);case 3:e:{if(gv(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Bh(e,t),_s(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($(423)),t),t=_p(e,t,r,n,o);break e}else if(r!==o){o=Lo(Error($(424)),t),t=_p(e,t,r,n,o);break e}else for(Wt=pr(t.stateNode.containerInfo.firstChild),Bt=t,Be=!0,fn=null,n=Uh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jo(),r===o){t=Wn(e,t,n);break e}Ct(e,t,r,n)}t=t.child}return t;case 5:return Vh(t),e===null&&Vu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,$u(r,o)?l=null:i!==null&&$u(r,i)&&(t.flags|=32),vv(e,t),Ct(e,t,l,n),t.child;case 6:return e===null&&Vu(t),null;case 13:return yv(e,t,n);case 4:return rf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mo(t,null,r,n):Ct(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),Ep(e,t,r,o,n);case 7:return Ct(e,t,t.pendingProps,n),t.child;case 8:return Ct(e,t,t.pendingProps.children,n),t.child;case 12:return Ct(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,je(bs,r._currentValue),r._currentValue=l,i!==null)if(mn(i.value,l)){if(i.children===o.children&&!Mt.current){t=Wn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var f=a.firstContext;f!==null;){if(f.context===r){if(i.tag===1){f=zn(-1,n&-n),f.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?f.next=f:(f.next=p.next,p.next=f),u.pending=f}}i.lanes|=n,f=i.alternate,f!==null&&(f.lanes|=n),qu(i.return,n,t),a.lanes|=n;break}f=f.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($(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),qu(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}Ct(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ko(t,n),o=tn(o),r=r(o),t.flags|=1,Ct(e,t,r,n),t.child;case 14:return r=t.type,o=un(r,t.pendingProps),o=un(r.type,o),bp(e,t,r,o,n);case 15:return mv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),rs(e,t),t.tag=1,It(r)?(e=!0,xs(t)):e=!1,ko(t,n),fv(t,r,o),Ku(t,r,o,n),Xu(null,t,r,!0,e,n);case 19:return wv(e,t,n);case 22:return hv(e,t,n)}throw Error($(156,t.tag))};function Mv(e,t){return ah(e,t)}function SS(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 Jt(e,t,n,r){return new SS(e,t,n,r)}function wf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ES(e){if(typeof e=="function")return wf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lc)return 11;if(e===Fc)return 14}return 2}function gr(e,t){var n=e.alternate;return n===null?(n=Jt(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 ls(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")wf(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case co:return $r(n.children,o,i,t);case Ic:l=8,o|=8;break;case yu:return e=Jt(12,n,t,o|2),e.elementType=yu,e.lanes=i,e;case wu:return e=Jt(13,n,t,o),e.elementType=wu,e.lanes=i,e;case xu:return e=Jt(19,n,t,o),e.elementType=xu,e.lanes=i,e;case Vm:return oa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wm:l=10;break e;case Bm:l=9;break e;case Lc:l=11;break e;case Fc:l=14;break e;case or:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=Jt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $r(e,t,n,r){return e=Jt(7,e,r,t),e.lanes=n,e}function oa(e,t,n,r){return e=Jt(22,e,r,t),e.elementType=Vm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ja(e,t,n){return e=Jt(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bS(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=ja(0),this.expirationTimes=ja(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ja(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function xf(e,t,n,r,o,i,l,a,f){return e=new bS(e,t,n,a,f),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nf(i),e}function CS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zv)}catch(e){console.error(e)}}zv(),zm.exports=Gt;var Zr=zm.exports;const NS=Zi(Zr);var Lp=Zr;vu.createRoot=Lp.createRoot,vu.hydrateRoot=Lp.hydrateRoot;var TS={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Fp=e=>{let t;const n=new Set,r=(p,m)=>{const h=typeof p=="function"?p(t):p;if(!Object.is(h,t)){const x=t;t=m??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(C=>C(t,x))}},o=()=>t,f={setState:r,getState:o,getInitialState:()=>u,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(TS?"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,f);return f},AS=e=>e?Fp(e):Fp;var $v={exports:{}},Hv={},Uv={exports:{}},Wv={};/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Xa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var iS=typeof WeakMap=="function"?WeakMap:Map;function pv(e,t,n){n=zn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ns||(Ns=!0,ic=r),Qu(e,t)},n}function mv(e,t,n){n=zn(-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(){Qu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Qu(e,t),typeof r!="function"&&(hr===null?hr=new Set([this]):hr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function xp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new iS;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=wS.bind(null,e,t,n),t.then(e,e))}function Sp(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 Ep(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=zn(-1,1),t.tag=2,mr(n,t,1))),n.lanes|=1),e)}var lS=Gn.ReactCurrentOwner,jt=!1;function Ct(e,t,n,r){t.child=e===null?Wh(t,null,n,r):Mo(t,e.child,n,r)}function bp(e,t,n,r,o){n=n.render;var i=t.ref;return ko(t,o),r=uf(e,t,n,r,i,o),n=cf(),e!==null&&!jt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wn(e,t,o)):(Be&&n&&Yc(t),t.flags|=1,Ct(e,t,r,o),t.child)}function Cp(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!xf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,hv(e,t,i,r,o)):(e=ls(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:zi,n(l,r)&&e.ref===t.ref)return Wn(e,t,o)}return t.flags|=1,e=gr(i,r),e.ref=t.ref,e.return=t,t.child=e}function hv(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(zi(i,r)&&e.ref===t.ref)if(jt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(jt=!0);else return t.lanes=e.lanes,Wn(e,t,o)}return Yu(e,t,n,r,o)}function vv(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},je(So,Ht),Ht|=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,je(So,Ht),Ht|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,je(So,Ht),Ht|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,je(So,Ht),Ht|=r;return Ct(e,t,o,n),t.child}function gv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,o){var i=It(n)?Hr:xt.current;return i=Oo(t,i),ko(t,o),n=uf(e,t,n,r,i,o),r=cf(),e!==null&&!jt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wn(e,t,o)):(Be&&r&&Yc(t),t.flags|=1,Ct(e,t,n,o),t.child)}function _p(e,t,n,r,o){if(It(n)){var i=!0;xs(t)}else i=!1;if(ko(t,o),t.stateNode===null)rs(e,t),dv(t,n,r),Ku(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var f=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=tn(u):(u=It(n)?Hr:xt.current,u=Oo(t,u));var p=n.getDerivedStateFromProps,m=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function";m||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||f!==u)&&wp(t,l,r,u),ir=!1;var h=t.memoizedState;l.state=h,_s(t,r,l,o),f=t.memoizedState,a!==r||h!==f||Mt.current||ir?(typeof p=="function"&&(Gu(t,n,p,r),f=t.memoizedState),(a=ir||yp(t,n,a,r,h,f,u))?(m||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=f),l.props=r,l.state=f,l.context=u,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Vh(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:un(t.type,a),l.props=u,m=t.pendingProps,h=l.context,f=n.contextType,typeof f=="object"&&f!==null?f=tn(f):(f=It(n)?Hr:xt.current,f=Oo(t,f));var x=n.getDerivedStateFromProps;(p=typeof x=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==m||h!==f)&&wp(t,l,r,f),ir=!1,h=t.memoizedState,l.state=h,_s(t,r,l,o);var C=t.memoizedState;a!==m||h!==C||Mt.current||ir?(typeof x=="function"&&(Gu(t,n,x,r),C=t.memoizedState),(u=ir||yp(t,n,u,r,h,C,f)||!1)?(p||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,C,f),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,C,f)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=C),l.props=r,l.state=C,l.context=f,r=u):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Xu(e,t,n,r,i,o)}function Xu(e,t,n,r,o,i){gv(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&cp(t,n,!1),Wn(e,t,i);r=t.stateNode,lS.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Mo(t,e.child,null,i),t.child=Mo(t,null,a,i)):Ct(e,t,a,i),t.memoizedState=r.state,o&&cp(t,n,!0),t.child}function yv(e){var t=e.stateNode;t.pendingContext?up(e,t.pendingContext,t.pendingContext!==t.context):t.context&&up(e,t.context,!1),of(e,t.containerInfo)}function kp(e,t,n,r,o){return jo(),Zc(o),t.flags|=256,Ct(e,t,n,r),t.child}var Zu={dehydrated:null,treeContext:null,retryLane:0};function Ju(e){return{baseLanes:e,cachePool:null,transitions:null}}function wv(e,t,n){var r=t.pendingProps,o=Ke.current,i=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),je(Ke,o&1),e===null)return Vu(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=oa(l,r,0,null),e=$r(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ju(n),t.memoizedState=Zu,e):pf(t,l));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return sS(e,t,l,r,a,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,a=o.sibling;var f={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=f,t.deletions=null):(r=gr(o,f),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=gr(a,i):(i=$r(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?Ju(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Zu,r}return i=e.child,e=i.sibling,r=gr(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 pf(e,t){return t=oa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jl(e,t,n,r){return r!==null&&Zc(r),Mo(t,e.child,null,n),e=pf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sS(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Xa(Error($(422))),jl(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=oa({mode:"visible",children:r.children},o,0,null),i=$r(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Mo(t,e.child,null,l),t.child.memoizedState=Ju(l),t.memoizedState=Zu,i);if(!(t.mode&1))return jl(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error($(419)),r=Xa(i,r,void 0),jl(e,t,l,r)}if(a=(l&e.childLanes)!==0,jt||a){if(r=dt,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,Un(e,o),pn(r,e,o,-1))}return wf(),r=Xa(Error($(421))),jl(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=xS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Wt=pr(o.nextSibling),Bt=t,Be=!0,fn=null,e!==null&&(Xt[Zt++]=Ln,Xt[Zt++]=Fn,Xt[Zt++]=Ur,Ln=e.id,Fn=e.overflow,Ur=t),t=pf(t,r.children),t.flags|=4096,t)}function Rp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qu(e.return,t,n)}function Za(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 xv(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ct(e,t,r.children,n),r=Ke.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&&Rp(e,n,t);else if(e.tag===19)Rp(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(je(Ke,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&&ks(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Za(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&&ks(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Za(t,!0,n,null,i);break;case"together":Za(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Br|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=gr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function aS(e,t,n){switch(t.tag){case 3:yv(t),jo();break;case 5:qh(t);break;case 1:It(t.type)&&xs(t);break;case 4:of(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;je(bs,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(je(Ke,Ke.current&1),t.flags|=128,null):n&t.child.childLanes?wv(e,t,n):(je(Ke,Ke.current&1),e=Wn(e,t,n),e!==null?e.sibling:null);je(Ke,Ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),je(Ke,Ke.current),r)break;return null;case 22:case 23:return t.lanes=0,vv(e,t,n)}return Wn(e,t,n)}var Sv,ec,Ev,bv;Sv=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}};ec=function(){};Ev=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Lr(Tn.current);var i=null;switch(n){case"input":o=Eu(e,o),r=Eu(e,r),i=[];break;case"select":o=Ye({},o,{value:void 0}),r=Ye({},r,{value:void 0}),i=[];break;case"textarea":o=_u(e,o),r=_u(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ys)}Ru(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Di.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var f=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&f!==a&&(f!=null||a!=null))if(u==="style")if(a){for(l in a)!a.hasOwnProperty(l)||f&&f.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in f)f.hasOwnProperty(l)&&a[l]!==f[l]&&(n||(n={}),n[l]=f[l])}else n||(i||(i=[]),i.push(u,n)),n=f;else u==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,a=a?a.__html:void 0,f!=null&&a!==f&&(i=i||[]).push(u,f)):u==="children"?typeof f!="string"&&typeof f!="number"||(i=i||[]).push(u,""+f):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Di.hasOwnProperty(u)?(f!=null&&u==="onScroll"&&$e("scroll",e),i||a===f||(i=[])):(i=i||[]).push(u,f))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};bv=function(e,t,n,r){n!==r&&(t.flags|=4)};function di(e,t){if(!Be)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 yt(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 uS(e,t,n){var r=t.pendingProps;switch(Xc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(t),null;case 1:return It(t.type)&&ws(),yt(t),null;case 3:return r=t.stateNode,Io(),Ue(Mt),Ue(xt),sf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,fn!==null&&(ac(fn),fn=null))),ec(e,t),yt(t),null;case 5:lf(t);var o=Lr(Bi.current);if(n=t.type,e!==null&&t.stateNode!=null)Ev(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($(166));return yt(t),null}if(e=Lr(Tn.current),Dl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[_n]=t,r[Ui]=i,e=(t.mode&1)!==0,n){case"dialog":$e("cancel",r),$e("close",r);break;case"iframe":case"object":case"embed":$e("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[_n]=t,e[Ui]=r,Sv(e,t,!1,!1),t.stateNode=e;e:{switch(l=Pu(n,r),n){case"dialog":$e("cancel",e),$e("close",e),o=r;break;case"iframe":case"object":case"embed":$e("load",e),o=r;break;case"video":case"audio":for(o=0;oFo&&(t.flags|=128,r=!0,di(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Be)return yt(t),null}else 2*et()-i.renderingStartTime>Fo&&n!==1073741824&&(t.flags|=128,r=!0,di(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=et(),t.sibling=null,n=Ke.current,je(Ke,r?n&1|2:n&1),t):(yt(t),null);case 22:case 23:return yf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ht&1073741824&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function cS(e,t){switch(Xc(t),t.tag){case 1:return It(t.type)&&ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Io(),Ue(Mt),Ue(xt),sf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lf(t),null;case 13:if(Ue(Ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue(Ke),null;case 4:return Io(),null;case 10:return tf(t.type._context),null;case 22:case 23:return yf(),null;case 24:return null;default:return null}}var Ml=!1,wt=!1,fS=typeof WeakSet=="function"?WeakSet:Set,X=null;function xo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ze(e,t,r)}else n.current=null}function tc(e,t,n){try{n()}catch(r){Ze(e,t,r)}}var Pp=!1;function dS(e,t){if(Fu=hs,e=Ph(),Qc(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,a=-1,f=-1,u=0,p=0,m=e,h=null;t:for(;;){for(var x;m!==n||o!==0&&m.nodeType!==3||(a=l+o),m!==i||r!==0&&m.nodeType!==3||(f=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(x=m.firstChild)!==null;)h=m,m=x;for(;;){if(m===e)break t;if(h===n&&++u===o&&(a=l),h===i&&++p===r&&(f=l),(x=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=x}n=a===-1||f===-1?null:{start:a,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(zu={focusedElem:e,selectionRange:n},hs=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;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 E=C.memoizedProps,R=C.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?E:un(t.type,E),R);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(_){Ze(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return C=Pp,Pp=!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&&tc(t,n,i)}o=o.next}while(o!==r)}}function na(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 nc(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 Cv(e){var t=e.alternate;t!==null&&(e.alternate=null,Cv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_n],delete t[Ui],delete t[Uu],delete t[Kx],delete t[Qx])),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 _v(e){return e.tag===5||e.tag===3||e.tag===4}function Tp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_v(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 rc(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=ys));else if(r!==4&&(e=e.child,e!==null))for(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}function oc(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(oc(e,t,n),e=e.sibling;e!==null;)oc(e,t,n),e=e.sibling}var pt=null,cn=!1;function er(e,t,n){for(n=n.child;n!==null;)kv(e,t,n),n=n.sibling}function kv(e,t,n){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(Ks,n)}catch{}switch(n.tag){case 5:wt||xo(n,t);case 6:var r=pt,o=cn;pt=null,er(e,t,n),pt=r,cn=o,pt!==null&&(cn?(e=pt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pt.removeChild(n.stateNode));break;case 18:pt!==null&&(cn?(e=pt,n=n.stateNode,e.nodeType===8?Va(e.parentNode,n):e.nodeType===1&&Va(e,n),Li(e)):Va(pt,n.stateNode));break;case 4:r=pt,o=cn,pt=n.stateNode.containerInfo,cn=!0,er(e,t,n),pt=r,cn=o;break;case 0:case 11:case 14:case 15:if(!wt&&(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)&&tc(n,t,l),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!wt&&(xo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ze(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(wt=(r=wt)||n.memoizedState!==null,er(e,t,n),wt=r):er(e,t,n);break;default:er(e,t,n)}}function Np(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fS),t.forEach(function(r){var o=SS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function an(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mS(r/1960))-r,10e?16:e,ur===null)var r=!1;else{if(e=ur,ur=null,As=0,Ce&6)throw Error($(331));var o=Ce;for(Ce|=4,X=e.current;X!==null;){var i=X,l=i.child;if(X.flags&16){var a=i.deletions;if(a!==null){for(var f=0;fet()-vf?zr(e,0):hf|=n),Lt(e,t)}function jv(e,t){t===0&&(e.mode&1?(t=kl,kl<<=1,!(kl&130023424)&&(kl=4194304)):t=1);var n=_t();e=Un(e,t),e!==null&&(el(e,t,n),Lt(e,n))}function xS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jv(e,n)}function SS(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($(314))}r!==null&&r.delete(t),jv(e,n)}var Mv;Mv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mt.current)jt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jt=!1,aS(e,t,n);jt=!!(e.flags&131072)}else jt=!1,Be&&t.flags&1048576&&zh(t,Es,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rs(e,t),e=t.pendingProps;var o=Oo(t,xt.current);ko(t,n),o=uf(null,t,r,e,o,n);var i=cf();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,It(r)?(i=!0,xs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,rf(t),o.updater=ta,t.stateNode=o,o._reactInternals=t,Ku(t,r,e,n),t=Xu(null,t,r,!0,i,n)):(t.tag=0,Be&&i&&Yc(t),Ct(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=bS(r),e=un(r,e),o){case 0:t=Yu(null,t,r,e,n);break e;case 1:t=_p(null,t,r,e,n);break e;case 11:t=bp(null,t,r,e,n);break e;case 14:t=Cp(null,t,r,un(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),Yu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),_p(e,t,r,o,n);case 3:e:{if(yv(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Vh(e,t),_s(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($(423)),t),t=kp(e,t,r,n,o);break e}else if(r!==o){o=Lo(Error($(424)),t),t=kp(e,t,r,n,o);break e}else for(Wt=pr(t.stateNode.containerInfo.firstChild),Bt=t,Be=!0,fn=null,n=Wh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jo(),r===o){t=Wn(e,t,n);break e}Ct(e,t,r,n)}t=t.child}return t;case 5:return qh(t),e===null&&Vu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,$u(r,o)?l=null:i!==null&&$u(r,i)&&(t.flags|=32),gv(e,t),Ct(e,t,l,n),t.child;case 6:return e===null&&Vu(t),null;case 13:return wv(e,t,n);case 4:return of(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mo(t,null,r,n):Ct(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),bp(e,t,r,o,n);case 7:return Ct(e,t,t.pendingProps,n),t.child;case 8:return Ct(e,t,t.pendingProps.children,n),t.child;case 12:return Ct(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,je(bs,r._currentValue),r._currentValue=l,i!==null)if(mn(i.value,l)){if(i.children===o.children&&!Mt.current){t=Wn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var f=a.firstContext;f!==null;){if(f.context===r){if(i.tag===1){f=zn(-1,n&-n),f.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?f.next=f:(f.next=p.next,p.next=f),u.pending=f}}i.lanes|=n,f=i.alternate,f!==null&&(f.lanes|=n),qu(i.return,n,t),a.lanes|=n;break}f=f.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($(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),qu(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}Ct(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ko(t,n),o=tn(o),r=r(o),t.flags|=1,Ct(e,t,r,n),t.child;case 14:return r=t.type,o=un(r,t.pendingProps),o=un(r.type,o),Cp(e,t,r,o,n);case 15:return hv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),rs(e,t),t.tag=1,It(r)?(e=!0,xs(t)):e=!1,ko(t,n),dv(t,r,o),Ku(t,r,o,n),Xu(null,t,r,!0,e,n);case 19:return xv(e,t,n);case 22:return vv(e,t,n)}throw Error($(156,t.tag))};function Iv(e,t){return uh(e,t)}function ES(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 Jt(e,t,n,r){return new ES(e,t,n,r)}function xf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bS(e){if(typeof e=="function")return xf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fc)return 11;if(e===zc)return 14}return 2}function gr(e,t){var n=e.alternate;return n===null?(n=Jt(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 ls(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")xf(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case co:return $r(n.children,o,i,t);case Lc:l=8,o|=8;break;case yu:return e=Jt(12,n,t,o|2),e.elementType=yu,e.lanes=i,e;case wu:return e=Jt(13,n,t,o),e.elementType=wu,e.lanes=i,e;case xu:return e=Jt(19,n,t,o),e.elementType=xu,e.lanes=i,e;case qm:return oa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bm:l=10;break e;case Vm:l=9;break e;case Fc:l=11;break e;case zc:l=14;break e;case or:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=Jt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $r(e,t,n,r){return e=Jt(7,e,r,t),e.lanes=n,e}function oa(e,t,n,r){return e=Jt(22,e,r,t),e.elementType=qm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ja(e,t,n){return e=Jt(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function CS(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=ja(0),this.expirationTimes=ja(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ja(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sf(e,t,n,r,o,i,l,a,f){return e=new CS(e,t,n,a,f),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rf(i),e}function _S(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($v)}catch(e){console.error(e)}}$v(),$m.exports=Gt;var Zr=$m.exports;const NS=Zi(Zr);var Fp=Zr;vu.createRoot=Fp.createRoot,vu.hydrateRoot=Fp.hydrateRoot;var AS={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const zp=e=>{let t;const n=new Set,r=(p,m)=>{const h=typeof p=="function"?p(t):p;if(!Object.is(h,t)){const x=t;t=m??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(C=>C(t,x))}},o=()=>t,f={setState:r,getState:o,getInitialState:()=>u,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(AS?"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,f);return f},DS=e=>e?zp(e):zp;var Hv={exports:{}},Uv={},Wv={exports:{}},Bv={};/** * @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 zo=v;function DS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OS=typeof Object.is=="function"?Object.is:DS,jS=zo.useState,MS=zo.useEffect,IS=zo.useLayoutEffect,LS=zo.useDebugValue;function FS(e,t){var n=t(),r=jS({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return IS(function(){o.value=n,o.getSnapshot=t,tu(o)&&i({inst:o})},[e,n,t]),MS(function(){return tu(o)&&i({inst:o}),e(function(){tu(o)&&i({inst:o})})},[e]),LS(n),n}function tu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!OS(e,n)}catch{return!0}}function zS(e,t){return t()}var $S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zS:FS;Wv.useSyncExternalStore=zo.useSyncExternalStore!==void 0?zo.useSyncExternalStore:$S;Uv.exports=Wv;var HS=Uv.exports;/** + */var zo=v;function OS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jS=typeof Object.is=="function"?Object.is:OS,MS=zo.useState,IS=zo.useEffect,LS=zo.useLayoutEffect,FS=zo.useDebugValue;function zS(e,t){var n=t(),r=MS({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return LS(function(){o.value=n,o.getSnapshot=t,tu(o)&&i({inst:o})},[e,n,t]),IS(function(){return tu(o)&&i({inst:o}),e(function(){tu(o)&&i({inst:o})})},[e]),FS(n),n}function tu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jS(e,n)}catch{return!0}}function $S(e,t){return t()}var HS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$S:zS;Bv.useSyncExternalStore=zo.useSyncExternalStore!==void 0?zo.useSyncExternalStore:HS;Wv.exports=Bv;var US=Wv.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -53,130 +53,130 @@ 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 ua=v,US=HS;function WS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var BS=typeof Object.is=="function"?Object.is:WS,VS=US.useSyncExternalStore,qS=ua.useRef,GS=ua.useEffect,KS=ua.useMemo,QS=ua.useDebugValue;Hv.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=qS(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=KS(function(){function f(x){if(!u){if(u=!0,p=x,x=r(x),o!==void 0&&l.hasValue){var C=l.value;if(o(C,x))return m=C}return m=x}if(C=m,BS(p,x))return C;var E=r(x);return o!==void 0&&o(C,E)?C:(p=x,m=E)}var u=!1,p,m,h=n===void 0?null:n;return[function(){return f(t())},h===null?void 0:function(){return f(h())}]},[t,n,r,o]);var a=VS(e,i[0],i[1]);return GS(function(){l.hasValue=!0,l.value=a},[a]),QS(a),a};$v.exports=Hv;var YS=$v.exports;const XS=Zi(YS);var Bv={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:ZS}=Q,{useSyncExternalStoreWithSelector:JS}=XS;let zp=!1;const eE=e=>e;function tE(e,t=eE,n){(Bv?"production":void 0)!=="production"&&n&&!zp&&(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"),zp=!0);const r=JS(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return ZS(r),r}const $p=e=>{(Bv?"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"?AS(e):e,n=(r,o)=>tE(t,r,o);return Object.assign(n,t),n},nE=e=>e?$p(e):$p;var Vv={exports:{}};const rE={},oE=Object.freeze(Object.defineProperty({__proto__:null,default:rE},Symbol.toStringTag,{value:"Module"})),nu=n1(oE);(function(e,t){var n=void 0,r=function(o){return n||(n=new Promise(function(i,l){var a=typeof o<"u"?o:{},f=a.onAbort;a.onAbort=function(s){l(new Error(s)),f&&f(s)},a.postRun=a.postRun||[],a.postRun.push(function(){i(a)}),e=void 0;var u;u||(u=typeof a<"u"?a:{}),u.onRuntimeInitialized=function(){function s(T,L){switch(typeof L){case"boolean":Jw(T,L?1:0);break;case"number":Yw(T,L);break;case"string":Xw(T,L,-1,-1);break;case"object":if(L===null)kd(T);else if(L.length!=null){var te=hl(L,ml);Zw(T,te,L.length,-1),yl(te)}else xl(T,"Wrong API use : tried to return a value of an unknown type ("+L+").",-1);break;default:kd(T)}}function c(T,L){for(var te=[],ce=0;ce>>0),T!=null){var L=this.filename,te="/",ce=L;if(te&&(te=typeof te=="string"?te:Zo(te),ce=L?Ft(te+"/"+L):te),L=De(!0,!0),ce=al(ce,(L!==void 0?L:438)&4095|32768,0),T){if(typeof T=="string"){te=Array(T.length);for(var we=0,Oe=T.length;we(s=_e(s)?new URL(s):_.normalize(s),b.readFileSync(s,c?void 0:"utf8")),g=s=>(s=R(s,!0),s.buffer||(s=new Uint8Array(s)),s),y=(s,c,d,S=!0)=>{s=_e(s)?new URL(s):_.normalize(s),b.readFile(s,S?void 0:"utf8",(k,O)=>{k?d(k):c(S?O.buffer:O)})},!u.thisProgram&&1"[Emscripten Module object]"}else(h||x)&&(x?E=self.location.href:typeof document<"u"&&document.currentScript&&(E=document.currentScript.src),E=E.indexOf("blob:")!==0?E.substr(0,E.replace(/[?#].*/,"").lastIndexOf("/")+1):"",R=s=>{var c=new XMLHttpRequest;return c.open("GET",s,!1),c.send(null),c.responseText},x&&(g=s=>{var c=new XMLHttpRequest;return c.open("GET",s,!1),c.responseType="arraybuffer",c.send(null),new Uint8Array(c.response)}),y=(s,c,d)=>{var S=new XMLHttpRequest;S.open("GET",s,!0),S.responseType="arraybuffer",S.onload=()=>{S.status==200||S.status==0&&S.response?c(S.response):d()},S.onerror=d,S.send(null)});var P=u.print||console.log.bind(console),D=u.printErr||console.error.bind(console);Object.assign(u,p),p=null,u.thisProgram&&(m=u.thisProgram);var N;u.wasmBinary&&(N=u.wasmBinary),typeof WebAssembly!="object"&&ve("no native wasm support detected");var A,j=!1,I,V,H,F,W,Z,le;function ne(){var s=A.buffer;u.HEAP8=I=new Int8Array(s),u.HEAP16=H=new Int16Array(s),u.HEAPU8=V=new Uint8Array(s),u.HEAPU16=new Uint16Array(s),u.HEAP32=F=new Int32Array(s),u.HEAPU32=W=new Uint32Array(s),u.HEAPF32=Z=new Float32Array(s),u.HEAPF64=le=new Float64Array(s)}var z=[],B=[],ee=[];function se(){var s=u.preRun.shift();z.unshift(s)}var ue=0,qe=null;function ve(s){var c;throw(c=u.onAbort)==null||c.call(u,s),s="Aborted("+s+")",D(s),j=!0,new WebAssembly.RuntimeError(s+". Build with -sASSERTIONS for more info.")}var Xe=s=>s.startsWith("data:application/octet-stream;base64,"),_e=s=>s.startsWith("file://"),J;if(J="sql-wasm.wasm",!Xe(J)){var ye=J;J=u.locateFile?u.locateFile(ye,E):E+ye}function Ie(s){if(s==J&&N)return new Uint8Array(N);if(g)return g(s);throw"both async and sync fetching of the wasm failed"}function K(s){if(!N&&(h||x)){if(typeof fetch=="function"&&!_e(s))return fetch(s,{credentials:"same-origin"}).then(c=>{if(!c.ok)throw"failed to load wasm binary file at '"+s+"'";return c.arrayBuffer()}).catch(()=>Ie(s));if(y)return new Promise((c,d)=>{y(s,S=>c(new Uint8Array(S)),d)})}return Promise.resolve().then(()=>Ie(s))}function ge(s,c,d){return K(s).then(S=>WebAssembly.instantiate(S,c)).then(S=>S).then(d,S=>{D(`failed to asynchronously prepare wasm: ${S}`),ve(S)})}function de(s,c){var d=J;N||typeof WebAssembly.instantiateStreaming!="function"||Xe(d)||_e(d)||C||typeof fetch!="function"?ge(d,s,c):fetch(d,{credentials:"same-origin"}).then(S=>WebAssembly.instantiateStreaming(S,s).then(c,function(k){return D(`wasm streaming compile failed: ${k}`),D("falling back to ArrayBuffer instantiation"),ge(d,s,c)}))}var Y,me,ut=s=>{for(;0>0];case"i8":return I[s>>0];case"i16":return H[s>>1];case"i32":return F[s>>2];case"i64":ve("to do getValue(i64) use WASM_BIGINT");case"float":return Z[s>>2];case"double":return le[s>>3];case"*":return W[s>>2];default:ve(`invalid type for getValue: ${c}`)}}function tt(s){var c="i32";switch(c.endsWith("*")&&(c="*"),c){case"i1":I[s>>0]=0;break;case"i8":I[s>>0]=0;break;case"i16":H[s>>1]=0;break;case"i32":F[s>>2]=0;break;case"i64":ve("to do setValue(i64) use WASM_BIGINT");case"float":Z[s>>2]=0;break;case"double":le[s>>3]=0;break;case"*":W[s>>2]=0;break;default:ve(`invalid type for setValue: ${c}`)}}var Nt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,ke=(s,c,d)=>{var S=c+d;for(d=c;s[d]&&!(d>=S);)++d;if(16k?S+=String.fromCharCode(k):(k-=65536,S+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else S+=String.fromCharCode(k)}return S},rn=(s,c)=>s?ke(V,s,c):"",eo=(s,c)=>{for(var d=0,S=s.length-1;0<=S;S--){var k=s[S];k==="."?s.splice(S,1):k===".."?(s.splice(S,1),d++):d&&(s.splice(S,1),d--)}if(c)for(;d;d--)s.unshift("..");return s},Ft=s=>{var c=s.charAt(0)==="/",d=s.substr(-1)==="/";return(s=eo(s.split("/").filter(S=>!!S),!c).join("/"))||c||(s="."),s&&d&&(s+="/"),(c?"/":"")+s},yn=s=>{var c=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(s).slice(1);return s=c[0],c=c[1],!s&&!c?".":(c&&(c=c.substr(0,c.length-1)),s+c)},G=s=>{if(s==="/")return"/";s=Ft(s),s=s.replace(/\/$/,"");var c=s.lastIndexOf("/");return c===-1?s:s.substr(c+1)},oe=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return d=>crypto.getRandomValues(d);if(C)try{var s=nu;if(s.randomFillSync)return d=>s.randomFillSync(d);var c=s.randomBytes;return d=>(d.set(c(d.byteLength)),d)}catch{}ve("initRandomDevice")},Le=s=>(Le=oe())(s);function Pe(){for(var s="",c=!1,d=arguments.length-1;-1<=d&&!c;d--){if(c=0<=d?arguments[d]:"/",typeof c!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!c)return"";s=c+"/"+s,c=c.charAt(0)==="/"}return s=eo(s.split("/").filter(S=>!!S),!c).join("/"),(c?"/":"")+s||"."}var nt=[],Tt=s=>{for(var c=0,d=0;d=S?c++:2047>=S?c+=2:55296<=S&&57343>=S?(c+=4,++d):c+=3}return c},St=(s,c,d,S)=>{if(!(0=M){var ae=s.charCodeAt(++O);M=65536+((M&1023)<<10)|ae&1023}if(127>=M){if(d>=S)break;c[d++]=M}else{if(2047>=M){if(d+1>=S)break;c[d++]=192|M>>6}else{if(65535>=M){if(d+2>=S)break;c[d++]=224|M>>12}else{if(d+3>=S)break;c[d++]=240|M>>18,c[d++]=128|M>>12&63}c[d++]=128|M>>6&63}c[d++]=128|M&63}}return c[d]=0,d-k};function on(s,c){var d=Array(Tt(s)+1);return s=St(s,d,0,d.length),c&&(d.length=s),d}var Yn=[];function Xn(s,c){Yn[s]={input:[],output:[],Xa:c},xa(s,Zn)}var Zn={open(s){var c=Yn[s.node.rdev];if(!c)throw new U(43);s.tty=c,s.seekable=!1},close(s){s.tty.Xa.fsync(s.tty)},fsync(s){s.tty.Xa.fsync(s.tty)},read(s,c,d,S){if(!s.tty||!s.tty.Xa.sb)throw new U(60);for(var k=0,O=0;Oe;function nE(e,t=tE,n){(Vv?"production":void 0)!=="production"&&n&&!$p&&(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"),$p=!0);const r=eE(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return JS(r),r}const Hp=e=>{(Vv?"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"?DS(e):e,n=(r,o)=>nE(t,r,o);return Object.assign(n,t),n},rE=e=>e?Hp(e):Hp;var qv={exports:{}};const oE={},iE=Object.freeze(Object.defineProperty({__proto__:null,default:oE},Symbol.toStringTag,{value:"Module"})),nu=r1(iE);(function(e,t){var n=void 0,r=function(o){return n||(n=new Promise(function(i,l){var a=typeof o<"u"?o:{},f=a.onAbort;a.onAbort=function(s){l(new Error(s)),f&&f(s)},a.postRun=a.postRun||[],a.postRun.push(function(){i(a)}),e=void 0;var u;u||(u=typeof a<"u"?a:{}),u.onRuntimeInitialized=function(){function s(N,L){switch(typeof L){case"boolean":e1(N,L?1:0);break;case"number":Xw(N,L);break;case"string":Zw(N,L,-1,-1);break;case"object":if(L===null)Rd(N);else if(L.length!=null){var te=hl(L,ml);Jw(N,te,L.length,-1),yl(te)}else xl(N,"Wrong API use : tried to return a value of an unknown type ("+L+").",-1);break;default:Rd(N)}}function c(N,L){for(var te=[],ce=0;ce>>0),N!=null){var L=this.filename,te="/",ce=L;if(te&&(te=typeof te=="string"?te:Zo(te),ce=L?Ft(te+"/"+L):te),L=De(!0,!0),ce=al(ce,(L!==void 0?L:438)&4095|32768,0),N){if(typeof N=="string"){te=Array(N.length);for(var we=0,Oe=N.length;we(s=_e(s)?new URL(s):_.normalize(s),b.readFileSync(s,c?void 0:"utf8")),g=s=>(s=R(s,!0),s.buffer||(s=new Uint8Array(s)),s),y=(s,c,d,S=!0)=>{s=_e(s)?new URL(s):_.normalize(s),b.readFile(s,S?void 0:"utf8",(k,O)=>{k?d(k):c(S?O.buffer:O)})},!u.thisProgram&&1"[Emscripten Module object]"}else(h||x)&&(x?E=self.location.href:typeof document<"u"&&document.currentScript&&(E=document.currentScript.src),E=E.indexOf("blob:")!==0?E.substr(0,E.replace(/[?#].*/,"").lastIndexOf("/")+1):"",R=s=>{var c=new XMLHttpRequest;return c.open("GET",s,!1),c.send(null),c.responseText},x&&(g=s=>{var c=new XMLHttpRequest;return c.open("GET",s,!1),c.responseType="arraybuffer",c.send(null),new Uint8Array(c.response)}),y=(s,c,d)=>{var S=new XMLHttpRequest;S.open("GET",s,!0),S.responseType="arraybuffer",S.onload=()=>{S.status==200||S.status==0&&S.response?c(S.response):d()},S.onerror=d,S.send(null)});var P=u.print||console.log.bind(console),D=u.printErr||console.error.bind(console);Object.assign(u,p),p=null,u.thisProgram&&(m=u.thisProgram);var T;u.wasmBinary&&(T=u.wasmBinary),typeof WebAssembly!="object"&&ve("no native wasm support detected");var A,j=!1,I,V,H,F,W,Z,le;function ne(){var s=A.buffer;u.HEAP8=I=new Int8Array(s),u.HEAP16=H=new Int16Array(s),u.HEAPU8=V=new Uint8Array(s),u.HEAPU16=new Uint16Array(s),u.HEAP32=F=new Int32Array(s),u.HEAPU32=W=new Uint32Array(s),u.HEAPF32=Z=new Float32Array(s),u.HEAPF64=le=new Float64Array(s)}var z=[],B=[],ee=[];function se(){var s=u.preRun.shift();z.unshift(s)}var ue=0,qe=null;function ve(s){var c;throw(c=u.onAbort)==null||c.call(u,s),s="Aborted("+s+")",D(s),j=!0,new WebAssembly.RuntimeError(s+". Build with -sASSERTIONS for more info.")}var Xe=s=>s.startsWith("data:application/octet-stream;base64,"),_e=s=>s.startsWith("file://"),J;if(J="sql-wasm.wasm",!Xe(J)){var ye=J;J=u.locateFile?u.locateFile(ye,E):E+ye}function Ie(s){if(s==J&&T)return new Uint8Array(T);if(g)return g(s);throw"both async and sync fetching of the wasm failed"}function K(s){if(!T&&(h||x)){if(typeof fetch=="function"&&!_e(s))return fetch(s,{credentials:"same-origin"}).then(c=>{if(!c.ok)throw"failed to load wasm binary file at '"+s+"'";return c.arrayBuffer()}).catch(()=>Ie(s));if(y)return new Promise((c,d)=>{y(s,S=>c(new Uint8Array(S)),d)})}return Promise.resolve().then(()=>Ie(s))}function ge(s,c,d){return K(s).then(S=>WebAssembly.instantiate(S,c)).then(S=>S).then(d,S=>{D(`failed to asynchronously prepare wasm: ${S}`),ve(S)})}function de(s,c){var d=J;T||typeof WebAssembly.instantiateStreaming!="function"||Xe(d)||_e(d)||C||typeof fetch!="function"?ge(d,s,c):fetch(d,{credentials:"same-origin"}).then(S=>WebAssembly.instantiateStreaming(S,s).then(c,function(k){return D(`wasm streaming compile failed: ${k}`),D("falling back to ArrayBuffer instantiation"),ge(d,s,c)}))}var Y,me,ut=s=>{for(;0>0];case"i8":return I[s>>0];case"i16":return H[s>>1];case"i32":return F[s>>2];case"i64":ve("to do getValue(i64) use WASM_BIGINT");case"float":return Z[s>>2];case"double":return le[s>>3];case"*":return W[s>>2];default:ve(`invalid type for getValue: ${c}`)}}function tt(s){var c="i32";switch(c.endsWith("*")&&(c="*"),c){case"i1":I[s>>0]=0;break;case"i8":I[s>>0]=0;break;case"i16":H[s>>1]=0;break;case"i32":F[s>>2]=0;break;case"i64":ve("to do setValue(i64) use WASM_BIGINT");case"float":Z[s>>2]=0;break;case"double":le[s>>3]=0;break;case"*":W[s>>2]=0;break;default:ve(`invalid type for setValue: ${c}`)}}var Tt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,ke=(s,c,d)=>{var S=c+d;for(d=c;s[d]&&!(d>=S);)++d;if(16k?S+=String.fromCharCode(k):(k-=65536,S+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else S+=String.fromCharCode(k)}return S},rn=(s,c)=>s?ke(V,s,c):"",eo=(s,c)=>{for(var d=0,S=s.length-1;0<=S;S--){var k=s[S];k==="."?s.splice(S,1):k===".."?(s.splice(S,1),d++):d&&(s.splice(S,1),d--)}if(c)for(;d;d--)s.unshift("..");return s},Ft=s=>{var c=s.charAt(0)==="/",d=s.substr(-1)==="/";return(s=eo(s.split("/").filter(S=>!!S),!c).join("/"))||c||(s="."),s&&d&&(s+="/"),(c?"/":"")+s},yn=s=>{var c=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(s).slice(1);return s=c[0],c=c[1],!s&&!c?".":(c&&(c=c.substr(0,c.length-1)),s+c)},G=s=>{if(s==="/")return"/";s=Ft(s),s=s.replace(/\/$/,"");var c=s.lastIndexOf("/");return c===-1?s:s.substr(c+1)},oe=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return d=>crypto.getRandomValues(d);if(C)try{var s=nu;if(s.randomFillSync)return d=>s.randomFillSync(d);var c=s.randomBytes;return d=>(d.set(c(d.byteLength)),d)}catch{}ve("initRandomDevice")},Le=s=>(Le=oe())(s);function Pe(){for(var s="",c=!1,d=arguments.length-1;-1<=d&&!c;d--){if(c=0<=d?arguments[d]:"/",typeof c!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!c)return"";s=c+"/"+s,c=c.charAt(0)==="/"}return s=eo(s.split("/").filter(S=>!!S),!c).join("/"),(c?"/":"")+s||"."}var nt=[],Nt=s=>{for(var c=0,d=0;d=S?c++:2047>=S?c+=2:55296<=S&&57343>=S?(c+=4,++d):c+=3}return c},St=(s,c,d,S)=>{if(!(0=M){var ae=s.charCodeAt(++O);M=65536+((M&1023)<<10)|ae&1023}if(127>=M){if(d>=S)break;c[d++]=M}else{if(2047>=M){if(d+1>=S)break;c[d++]=192|M>>6}else{if(65535>=M){if(d+2>=S)break;c[d++]=224|M>>12}else{if(d+3>=S)break;c[d++]=240|M>>18,c[d++]=128|M>>12&63}c[d++]=128|M>>6&63}c[d++]=128|M&63}}return c[d]=0,d-k};function on(s,c){var d=Array(Nt(s)+1);return s=St(s,d,0,d.length),c&&(d.length=s),d}var Yn=[];function Xn(s,c){Yn[s]={input:[],output:[],Xa:c},xa(s,Zn)}var Zn={open(s){var c=Yn[s.node.rdev];if(!c)throw new U(43);s.tty=c,s.seekable=!1},close(s){s.tty.Xa.fsync(s.tty)},fsync(s){s.tty.Xa.fsync(s.tty)},read(s,c,d,S){if(!s.tty||!s.tty.Xa.sb)throw new U(60);for(var k=0,O=0;O=c||(c=Math.max(c,d*(1048576>d?2:1.125)>>>0),d!=0&&(c=Math.max(c,256)),d=s.Ia,s.Ia=new Uint8Array(c),0=s.node.Ma)return 0;if(s=Math.min(s.node.Ma-k,S),8c)throw new U(28);return c},lb(s,c,d){Re(s.node,c+d),s.node.Ma=Math.max(s.node.Ma,c+d)},bb(s,c,d,S,k){if((s.node.mode&61440)!==32768)throw new U(43);if(s=s.node.Ia,k&2||s.buffer!==I.buffer){if((0{var d=0;return s&&(d|=365),c&&(d|=146),d},We=null,Et={},vt=[],wn=1,zt=null,xn=!0,U=null,to={};function At(s,c={}){if(s=Pe(s),!s)return{path:"",node:null};if(c=Object.assign({qb:!0,kb:0},c),8!!M);for(var d=We,S="/",k=0;k>>0)%zt.length}function Xf(s){var c=wa(s.parent.id,s.name);if(zt[c]===s)zt[c]=s.Wa;else for(c=zt[c];c;){if(c.Wa===s){c.Wa=s.Wa;break}c=c.Wa}}function Rr(s,c){var d;if(d=(d=no(s,"x"))?d:s.Ga.lookup?0:2)throw new U(d,s);for(d=zt[wa(s.id,c)];d;d=d.Wa){var S=d.name;if(d.parent.id===s.id&&S===c)return d}return s.Ga.lookup(s,c)}function Zf(s,c,d,S){return s=new gd(s,c,d,S),c=wa(s.parent.id,s.name),s.Wa=zt[c],zt[c]=s}function Qt(s){return(s&61440)===16384}function Jf(s){var c=["r","w","rw"][s&3];return s&512&&(c+="w"),c}function no(s,c){if(xn)return 0;if(!c.includes("r")||s.mode&292){if(c.includes("w")&&!(s.mode&146)||c.includes("x")&&!(s.mode&73))return 2}else return 2;return 0}function ed(s,c){try{return Rr(s,c),20}catch{}return no(s,"wx")}function td(s,c,d){try{var S=Rr(s,c)}catch(k){return k.Ka}if(s=no(s,"wx"))return s;if(d){if(!Qt(S.mode))return 54;if(S===S.parent||Zo(S)==="/")return 10}else if(Qt(S.mode))return 31;return 0}function Sw(){for(var s=0;4096>=s;s++)if(!vt[s])return s;throw new U(33)}function bt(s){if(s=vt[s],!s)throw new U(8);return s}function nd(s,c=-1){return ti||(ti=function(){this.$a={}},ti.prototype={},Object.defineProperties(ti.prototype,{object:{get(){return this.node},set(d){this.node=d}},flags:{get(){return this.$a.flags},set(d){this.$a.flags=d}},position:{get(){return this.$a.position},set(d){this.$a.position=d}}})),s=Object.assign(new ti,s),c==-1&&(c=Sw()),s.fd=c,vt[c]=s}var Ew={open(s){var c,d;s.Ha=Et[s.node.rdev].Ha,(d=(c=s.Ha).open)==null||d.call(c,s)},Ta(){throw new U(70)}};function xa(s,c){Et[s]={Ha:c}}function rd(s,c){var d=c==="/",S=!c;if(d&&We)throw new U(10);if(!d&&!S){var k=At(c,{qb:!1});if(c=k.path,k=k.node,k.Va)throw new U(10);if(!Qt(k.mode))throw new U(54)}c={type:s,Pb:{},tb:c,Cb:[]},s=s.Ra(c),s.Ra=c,c.root=s,d?We=s:k&&(k.Va=c,k.Ra&&k.Ra.Cb.push(c))}function al(s,c,d){var S=At(s,{parent:!0}).node;if(s=G(s),!s||s==="."||s==="..")throw new U(28);var k=ed(S,s);if(k)throw new U(k);if(!S.Ga.ab)throw new U(63);return S.Ga.ab(S,s,c,d)}function Sn(s,c){return al(s,(c!==void 0?c:511)&1023|16384,0)}function ul(s,c,d){typeof d>"u"&&(d=c,c=438),al(s,c|8192,d)}function Sa(s,c){if(!Pe(s))throw new U(44);var d=At(c,{parent:!0}).node;if(!d)throw new U(44);c=G(c);var S=ed(d,c);if(S)throw new U(S);if(!d.Ga.symlink)throw new U(63);d.Ga.symlink(d,c,s)}function od(s){var c=At(s,{parent:!0}).node;s=G(s);var d=Rr(c,s),S=td(c,s,!0);if(S)throw new U(S);if(!c.Ga.rmdir)throw new U(63);if(d.Va)throw new U(10);c.Ga.rmdir(c,s),Xf(d)}function id(s){var c=At(s,{parent:!0}).node;if(!c)throw new U(44);s=G(s);var d=Rr(c,s),S=td(c,s,!1);if(S)throw new U(S);if(!c.Ga.unlink)throw new U(63);if(d.Va)throw new U(10);c.Ga.unlink(c,s),Xf(d)}function ld(s){if(s=At(s).node,!s)throw new U(44);if(!s.Ga.readlink)throw new U(28);return Pe(Zo(s.parent),s.Ga.readlink(s))}function Jo(s,c){if(s=At(s,{Sa:!c}).node,!s)throw new U(44);if(!s.Ga.Pa)throw new U(63);return s.Ga.Pa(s)}function sd(s){return Jo(s,!0)}function cl(s,c){if(s=typeof s=="string"?At(s,{Sa:!0}).node:s,!s.Ga.Oa)throw new U(63);s.Ga.Oa(s,{mode:c&4095|s.mode&-4096,timestamp:Date.now()})}function ad(s,c){if(0>c)throw new U(28);if(s=typeof s=="string"?At(s,{Sa:!0}).node:s,!s.Ga.Oa)throw new U(63);if(Qt(s.mode))throw new U(31);if((s.mode&61440)!==32768)throw new U(28);var d=no(s,"w");if(d)throw new U(d);s.Ga.Oa(s,{size:c,timestamp:Date.now()})}function ro(s,c,d){if(s==="")throw new U(44);if(typeof c=="string"){var S={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[c];if(typeof S>"u")throw Error(`Unknown file open mode: ${c}`);c=S}if(d=c&64?(typeof d>"u"?438:d)&4095|32768:0,typeof s=="object")var k=s;else{s=Ft(s);try{k=At(s,{Sa:!(c&131072)}).node}catch{}}if(S=!1,c&64)if(k){if(c&128)throw new U(20)}else k=al(s,d,0),S=!0;if(!k)throw new U(44);if((k.mode&61440)===8192&&(c&=-513),c&65536&&!Qt(k.mode))throw new U(54);if(!S&&(d=k?(k.mode&61440)===40960?32:Qt(k.mode)&&(Jf(c)!=="r"||c&512)?31:no(k,Jf(c)):44))throw new U(d);return c&512&&!S&&ad(k,0),c&=-131713,k=nd({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||(ba||(ba={}),s in ba||(ba[s]=1)),k}function Ea(s){if(s.fd===null)throw new U(8);s.hb&&(s.hb=null);try{s.Ha.close&&s.Ha.close(s)}catch(c){throw c}finally{vt[s.fd]=null}s.fd=null}function ud(s,c,d){if(s.fd===null)throw new U(8);if(!s.seekable||!s.Ha.Ta)throw new U(70);if(d!=0&&d!=1&&d!=2)throw new U(28);s.position=s.Ha.Ta(s,c,d),s.Fb=[]}function cd(s,c,d,S,k){if(0>S||0>k)throw new U(28);if(s.fd===null)throw new U(8);if((s.flags&2097155)===1)throw new U(8);if(Qt(s.node.mode))throw new U(31);if(!s.Ha.read)throw new U(28);var O=typeof k<"u";if(!O)k=s.position;else if(!s.seekable)throw new U(70);return c=s.Ha.read(s,c,d,S,k),O||(s.position+=c),c}function fd(s,c,d,S,k){if(0>S||0>k)throw new U(28);if(s.fd===null)throw new U(8);if(!(s.flags&2097155))throw new U(8);if(Qt(s.node.mode))throw new U(31);if(!s.Ha.write)throw new U(28);s.seekable&&s.flags&1024&&ud(s,0,2);var O=typeof k<"u";if(!O)k=s.position;else if(!s.seekable)throw new U(70);return c=s.Ha.write(s,c,d,S,k,void 0),O||(s.position+=c),c}function bw(s){var c,d=ro(s,d||0);s=Jo(s).size;var S=new Uint8Array(s);return cd(d,S,0,s,0),c=S,Ea(d),c}function dd(){U||(U=function(s,c){this.name="ErrnoError",this.node=c,this.Eb=function(d){this.Ka=d},this.Eb(s),this.message="FS error"},U.prototype=Error(),U.prototype.constructor=U,[44].forEach(s=>{to[s]=new U(s),to[s].stack=""}))}var pd;function ei(s,c,d){s=Ft("/dev/"+s);var S=De(!!c,!!d);md||(md=64);var k=md++<<8|0;xa(k,{open(O){O.seekable=!1},close(){var O;(O=d==null?void 0:d.buffer)!=null&&O.length&&d(10)},read(O,M,ae,Ee){for(var he=0,rt=0;rt>2]=S.dev,F[d+4>>2]=S.mode,W[d+8>>2]=S.nlink,F[d+12>>2]=S.uid,F[d+16>>2]=S.gid,F[d+20>>2]=S.rdev,me=[S.size>>>0,(Y=S.size,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+24>>2]=me[0],F[d+28>>2]=me[1],F[d+32>>2]=4096,F[d+36>>2]=S.blocks,s=S.atime.getTime(),c=S.mtime.getTime();var k=S.ctime.getTime();return me=[Math.floor(s/1e3)>>>0,(Y=Math.floor(s/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+40>>2]=me[0],F[d+44>>2]=me[1],W[d+48>>2]=s%1e3*1e3,me=[Math.floor(c/1e3)>>>0,(Y=Math.floor(c/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+56>>2]=me[0],F[d+60>>2]=me[1],W[d+64>>2]=c%1e3*1e3,me=[Math.floor(k/1e3)>>>0,(Y=Math.floor(k/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+72>>2]=me[0],F[d+76>>2]=me[1],W[d+80>>2]=k%1e3*1e3,me=[S.ino>>>0,(Y=S.ino,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+88>>2]=me[0],F[d+92>>2]=me[1],0}var dl=void 0;function pl(){var s=F[+dl>>2];return dl+=4,s}var ni=(s,c)=>c+2097152>>>0<4194305-!!s?(s>>>0)+4294967296*c:NaN,Cw=[0,31,60,91,121,152,182,213,244,274,305,335],_w=[0,31,59,90,120,151,181,212,243,273,304,334],hd=s=>{var c=Tt(s)+1,d=gl(c);return d&&St(s,V,d,c),d},Ca={},vd=()=>{if(!_a){var s={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",_:m||"./this.program"},c;for(c in Ca)Ca[c]===void 0?delete s[c]:s[c]=Ca[c];var d=[];for(c in s)d.push(`${c}=${s[c]}`);_a=d}return _a},_a,ka=s=>{var c=Tt(s)+1,d=Jn(c);return St(s,V,d,c),d},kw=(s,c,d,S)=>{var k={string:he=>{var rt=0;return he!=null&&he!==0&&(rt=ka(he)),rt},array:he=>{var rt=Jn(he.length);return I.set(he,rt),rt}};s=u["_"+s];var O=[],M=0;if(S)for(var ae=0;ae(c=c==1?Jn(s.length):gl(s.length),s.subarray||s.slice||(s=new Uint8Array(s)),V.set(s,c),c),Nr,Ra=[],Dn,oo=s=>{Nr.delete(Dn.get(s)),Dn.set(s,null),Ra.push(s)},vl=(s,c)=>{if(!Nr){Nr=new WeakMap;var d=Dn.length;if(Nr)for(var S=0;S<0+d;S++){var k=Dn.get(S);k&&Nr.set(k,S)}}if(d=Nr.get(s)||0)return d;if(Ra.length)d=Ra.pop();else{try{Dn.grow(1)}catch(ae){throw ae instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":ae}d=Dn.length-1}try{Dn.set(d,s)}catch(ae){if(!(ae instanceof TypeError))throw ae;if(typeof WebAssembly.Function=="function"){S=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]]]},M=1;MM?S.push(M):S.push(M%128|128,M>>7),M=0;Mk?c.push(k):c.push(k%128|128,k>>7),c.push.apply(c,S),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:s}}).exports.f}Dn.set(d,c)}return Nr.set(s,d),d};function gd(s,c,d,S){s||(s=this),this.parent=s,this.Ra=s.Ra,this.Va=null,this.id=wn++,this.name=c,this.mode=d,this.Ga={},this.Ha={},this.rdev=S}Object.defineProperties(gd.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(s){s?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(s){s?this.mode|=146:this.mode&=-147}}}),dd(),zt=Array(4096),rd(q,"/"),Sn("/tmp"),Sn("/home"),Sn("/home/web_user"),function(){Sn("/dev"),xa(259,{read:()=>0,write:(S,k,O,M)=>M}),ul("/dev/null",259),Xn(1280,ie),Xn(1536,fe),ul("/dev/tty",1280),ul("/dev/tty1",1536);var s=new Uint8Array(1024),c=0,d=()=>(c===0&&(c=Le(s).byteLength),s[--c]);ei("random",d),ei("urandom",d),Sn("/dev/shm"),Sn("/dev/shm/tmp")}(),function(){Sn("/proc");var s=Sn("/proc/self");Sn("/proc/self/fd"),rd({Ra(){var c=Zf(s,"fd",16895,73);return c.Ga={lookup(d,S){var k=bt(+S);return d={parent:null,Ra:{tb:"fake"},Ga:{readlink:()=>k.path}},d.parent=d}},c}},"/proc/self/fd")}();var Rw={a:(s,c,d,S)=>{ve(`Assertion failed: ${s?ke(V,s):""}, at: `+[c?c?ke(V,c):"":"unknown filename",d,S?S?ke(V,S):"":"unknown function"])},h:function(s,c){try{return s=s?ke(V,s):"",cl(s,c),0}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},H:function(s,c,d){try{if(c=c?ke(V,c):"",c=Pr(s,c),d&-8)return-28;var S=At(c,{Sa:!0}).node;return S?(s="",d&4&&(s+="r"),d&2&&(s+="w"),d&1&&(s+="x"),s&&no(S,s)?-2:0):-44}catch(k){if(typeof Fe>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},i:function(s,c){try{var d=bt(s);return cl(d.node,c),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},g:function(s){try{var c=bt(s).node,d=typeof c=="string"?At(c,{Sa:!0}).node:c;if(!d.Ga.Oa)throw new U(63);return d.Ga.Oa(d,{timestamp:Date.now()}),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},b:function(s,c,d){dl=d;try{var S=bt(s);switch(c){case 0:var k=pl();if(0>k)return-28;for(;vt[k];)k++;return nd(S,k).fd;case 1:case 2:return 0;case 3:return S.flags;case 4:return k=pl(),S.flags|=k,0;case 5:return k=pl(),H[k+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return F[yd()>>2]=28,-1;default:return-28}}catch(O){if(typeof Fe>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},f:function(s,c){try{var d=bt(s);return fl(Jo,d.path,c)}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},n:function(s,c,d){c=ni(c,d);try{if(isNaN(c))return 61;var S=bt(s);if(!(S.flags&2097155))throw new U(28);return ad(S.node,c),0}catch(k){if(typeof Fe>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},C:function(s,c){try{if(c===0)return-28;var d=Tt("/")+1;return c"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},F:function(s,c){try{return s=s?ke(V,s):"",fl(sd,s,c)}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},z:function(s,c,d){try{return c=c?ke(V,c):"",c=Pr(s,c),c=Ft(c),c[c.length-1]==="/"&&(c=c.substr(0,c.length-1)),Sn(c,d),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},E:function(s,c,d,S){try{c=c?ke(V,c):"";var k=S&256;return c=Pr(s,c,S&4096),fl(k?sd:Jo,c,d)}catch(O){if(typeof Fe>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},y:function(s,c,d,S){dl=S;try{c=c?ke(V,c):"",c=Pr(s,c);var k=S?pl():0;return ro(c,d,k).fd}catch(O){if(typeof Fe>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},w:function(s,c,d,S){try{if(c=c?ke(V,c):"",c=Pr(s,c),0>=S)return-28;var k=ld(c),O=Math.min(S,Tt(k)),M=I[d+O];return St(k,V,d,S+1),I[d+O]=M,O}catch(ae){if(typeof Fe>"u"||ae.name!=="ErrnoError")throw ae;return-ae.Ka}},v:function(s){try{return s=s?ke(V,s):"",od(s),0}catch(c){if(typeof Fe>"u"||c.name!=="ErrnoError")throw c;return-c.Ka}},G:function(s,c){try{return s=s?ke(V,s):"",fl(Jo,s,c)}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},r:function(s,c,d){try{return c=c?ke(V,c):"",c=Pr(s,c),d===0?id(c):d===512?od(c):ve("Invalid flags passed to unlinkat"),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},q:function(s,c,d){try{if(c=c?ke(V,c):"",c=Pr(s,c,!0),d){var S=W[d>>2]+4294967296*F[d+4>>2],k=F[d+8>>2];O=1e3*S+k/1e6,d+=16,S=W[d>>2]+4294967296*F[d+4>>2],k=F[d+8>>2],M=1e3*S+k/1e6}else var O=Date.now(),M=O;s=O;var ae=At(c,{Sa:!0}).node;return ae.Ga.Oa(ae,{timestamp:Math.max(s,M)}),0}catch(Ee){if(typeof Fe>"u"||Ee.name!=="ErrnoError")throw Ee;return-Ee.Ka}},l:function(s,c,d){s=new Date(1e3*ni(s,c)),F[d>>2]=s.getSeconds(),F[d+4>>2]=s.getMinutes(),F[d+8>>2]=s.getHours(),F[d+12>>2]=s.getDate(),F[d+16>>2]=s.getMonth(),F[d+20>>2]=s.getFullYear()-1900,F[d+24>>2]=s.getDay(),c=s.getFullYear(),F[d+28>>2]=(c%4!==0||c%100===0&&c%400!==0?_w:Cw)[s.getMonth()]+s.getDate()-1|0,F[d+36>>2]=-(60*s.getTimezoneOffset()),c=new Date(s.getFullYear(),6,1).getTimezoneOffset();var S=new Date(s.getFullYear(),0,1).getTimezoneOffset();F[d+32>>2]=(c!=S&&s.getTimezoneOffset()==Math.min(S,c))|0},j:function(s,c,d,S,k,O,M,ae){k=ni(k,O);try{if(isNaN(k))return 61;var Ee=bt(S);if(c&2&&!(d&2)&&(Ee.flags&2097155)!==2)throw new U(2);if((Ee.flags&2097155)===1)throw new U(2);if(!Ee.Ha.bb)throw new U(43);var he=Ee.Ha.bb(Ee,s,k,c,d),rt=he.Db;return F[M>>2]=he.ub,W[ae>>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return-ct.Ka}},k:function(s,c,d,S,k,O,M){O=ni(O,M);try{if(isNaN(O))return 61;var ae=bt(k);if(d&2){if((ae.node.mode&61440)!==32768)throw new U(43);if(!(S&2)){var Ee=V.slice(s,s+c);ae.Ha.cb&&ae.Ha.cb(ae,Ee,O,c,S)}}}catch(he){if(typeof Fe>"u"||he.name!=="ErrnoError")throw he;return-he.Ka}},s:(s,c,d)=>{function S(Ee){return(Ee=Ee.toTimeString().match(/\(([A-Za-z ]+)\)$/))?Ee[1]:"GMT"}var k=new Date().getFullYear(),O=new Date(k,0,1),M=new Date(k,6,1);k=O.getTimezoneOffset();var ae=M.getTimezoneOffset();W[s>>2]=60*Math.max(k,ae),F[c>>2]=+(k!=ae),s=S(O),c=S(M),s=hd(s),c=hd(c),ae>2]=s,W[d+4>>2]=c):(W[d>>2]=c,W[d+4>>2]=s)},d:()=>Date.now(),t:()=>2147483648,c:()=>performance.now(),o:s=>{var c=V.length;if(s>>>=0,2147483648=d;d*=2){var S=c*(1+.2/d);S=Math.min(S,s+100663296);var k=Math;S=Math.max(s,S);e:{k=(k.min.call(k,2147483648,S+(65536-S%65536)%65536)-A.buffer.byteLength+65535)/65536;try{A.grow(k),ne();var O=1;break e}catch{}O=void 0}if(O)return!0}return!1},A:(s,c)=>{var d=0;return vd().forEach((S,k)=>{var O=c+d;for(k=W[s+4*k>>2]=O,O=0;O>0]=S.charCodeAt(O);I[k>>0]=0,d+=S.length+1}),0},B:(s,c)=>{var d=vd();W[s>>2]=d.length;var S=0;return d.forEach(k=>S+=k.length+1),W[c>>2]=S,0},e:function(s){try{var c=bt(s);return Ea(c),0}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return d.Ka}},p:function(s,c){try{var d=bt(s);return I[c>>0]=d.tty?2:Qt(d.mode)?3:(d.mode&61440)===40960?7:4,H[c+2>>1]=0,me=[0,(Y=0,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[c+8>>2]=me[0],F[c+12>>2]=me[1],me=[0,(Y=0,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[c+16>>2]=me[0],F[c+20>>2]=me[1],0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return S.Ka}},x:function(s,c,d,S){try{e:{var k=bt(s);s=c;for(var O,M=c=0;M>2],Ee=W[s+4>>2];s+=8;var he=cd(k,I,ae,Ee,O);if(0>he){var rt=-1;break e}if(c+=he,he>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return ct.Ka}},m:function(s,c,d,S,k){c=ni(c,d);try{if(isNaN(c))return 61;var O=bt(s);return ud(O,c,S),me=[O.position>>>0,(Y=O.position,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[k>>2]=me[0],F[k+4>>2]=me[1],O.hb&&c===0&&S===0&&(O.hb=null),0}catch(M){if(typeof Fe>"u"||M.name!=="ErrnoError")throw M;return M.Ka}},D:function(s){var d;try{var c=bt(s);return(d=c.Ha)!=null&&d.fsync?c.Ha.fsync(c):0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return S.Ka}},u:function(s,c,d,S){try{e:{var k=bt(s);s=c;for(var O,M=c=0;M>2],Ee=W[s+4>>2];s+=8;var he=fd(k,I,ae,Ee,O);if(0>he){var rt=-1;break e}c+=he,typeof O<"u"&&(O+=he)}rt=c}return W[S>>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return ct.Ka}}},re=function(){var d;function s(S){var k;return re=S.exports,A=re.I,ne(),Dn=re.Aa,B.unshift(re.J),ue--,(k=u.monitorRunDependencies)==null||k.call(u,ue),ue==0&&qe&&(S=qe,qe=null,S()),re}var c={a:Rw};if(ue++,(d=u.monitorRunDependencies)==null||d.call(u,ue),u.instantiateWasm)try{return u.instantiateWasm(c,s)}catch(S){return D(`Module.instantiateWasm callback failed with error: ${S}`),!1}return de(c,function(S){s(S.instance)}),{}}();u._sqlite3_free=s=>(u._sqlite3_free=re.K)(s),u._sqlite3_value_text=s=>(u._sqlite3_value_text=re.L)(s);var yd=()=>(yd=re.M)();u._sqlite3_prepare_v2=(s,c,d,S,k)=>(u._sqlite3_prepare_v2=re.N)(s,c,d,S,k),u._sqlite3_step=s=>(u._sqlite3_step=re.O)(s),u._sqlite3_reset=s=>(u._sqlite3_reset=re.P)(s),u._sqlite3_exec=(s,c,d,S,k)=>(u._sqlite3_exec=re.Q)(s,c,d,S,k),u._sqlite3_finalize=s=>(u._sqlite3_finalize=re.R)(s),u._sqlite3_column_name=(s,c)=>(u._sqlite3_column_name=re.S)(s,c),u._sqlite3_column_text=(s,c)=>(u._sqlite3_column_text=re.T)(s,c),u._sqlite3_column_type=(s,c)=>(u._sqlite3_column_type=re.U)(s,c),u._sqlite3_errmsg=s=>(u._sqlite3_errmsg=re.V)(s),u._sqlite3_clear_bindings=s=>(u._sqlite3_clear_bindings=re.W)(s),u._sqlite3_value_blob=s=>(u._sqlite3_value_blob=re.X)(s),u._sqlite3_value_bytes=s=>(u._sqlite3_value_bytes=re.Y)(s),u._sqlite3_value_double=s=>(u._sqlite3_value_double=re.Z)(s),u._sqlite3_value_int=s=>(u._sqlite3_value_int=re._)(s),u._sqlite3_value_type=s=>(u._sqlite3_value_type=re.$)(s),u._sqlite3_result_blob=(s,c,d,S)=>(u._sqlite3_result_blob=re.aa)(s,c,d,S),u._sqlite3_result_double=(s,c)=>(u._sqlite3_result_double=re.ba)(s,c),u._sqlite3_result_error=(s,c,d)=>(u._sqlite3_result_error=re.ca)(s,c,d),u._sqlite3_result_int=(s,c)=>(u._sqlite3_result_int=re.da)(s,c),u._sqlite3_result_int64=(s,c,d)=>(u._sqlite3_result_int64=re.ea)(s,c,d),u._sqlite3_result_null=s=>(u._sqlite3_result_null=re.fa)(s),u._sqlite3_result_text=(s,c,d,S)=>(u._sqlite3_result_text=re.ga)(s,c,d,S),u._sqlite3_aggregate_context=(s,c)=>(u._sqlite3_aggregate_context=re.ha)(s,c),u._sqlite3_column_count=s=>(u._sqlite3_column_count=re.ia)(s),u._sqlite3_data_count=s=>(u._sqlite3_data_count=re.ja)(s),u._sqlite3_column_blob=(s,c)=>(u._sqlite3_column_blob=re.ka)(s,c),u._sqlite3_column_bytes=(s,c)=>(u._sqlite3_column_bytes=re.la)(s,c),u._sqlite3_column_double=(s,c)=>(u._sqlite3_column_double=re.ma)(s,c),u._sqlite3_bind_blob=(s,c,d,S,k)=>(u._sqlite3_bind_blob=re.na)(s,c,d,S,k),u._sqlite3_bind_double=(s,c,d)=>(u._sqlite3_bind_double=re.oa)(s,c,d),u._sqlite3_bind_int=(s,c,d)=>(u._sqlite3_bind_int=re.pa)(s,c,d),u._sqlite3_bind_text=(s,c,d,S,k)=>(u._sqlite3_bind_text=re.qa)(s,c,d,S,k),u._sqlite3_bind_parameter_index=(s,c)=>(u._sqlite3_bind_parameter_index=re.ra)(s,c),u._sqlite3_sql=s=>(u._sqlite3_sql=re.sa)(s),u._sqlite3_normalized_sql=s=>(u._sqlite3_normalized_sql=re.ta)(s),u._sqlite3_changes=s=>(u._sqlite3_changes=re.ua)(s),u._sqlite3_close_v2=s=>(u._sqlite3_close_v2=re.va)(s),u._sqlite3_create_function_v2=(s,c,d,S,k,O,M,ae,Ee)=>(u._sqlite3_create_function_v2=re.wa)(s,c,d,S,k,O,M,ae,Ee),u._sqlite3_open=(s,c)=>(u._sqlite3_open=re.xa)(s,c);var gl=u._malloc=s=>(gl=u._malloc=re.ya)(s),yl=u._free=s=>(yl=u._free=re.za)(s);u._RegisterExtensionFunctions=s=>(u._RegisterExtensionFunctions=re.Ba)(s);var wd=(s,c)=>(wd=re.Ca)(s,c),ri=()=>(ri=re.Da)(),oi=s=>(oi=re.Ea)(s),Jn=s=>(Jn=re.Fa)(s);u.stackAlloc=Jn,u.stackSave=ri,u.stackRestore=oi,u.cwrap=(s,c,d,S)=>{var k=!d||d.every(O=>O==="number"||O==="boolean");return c!=="string"&&k&&!S?u["_"+s]:function(){return kw(s,c,d,arguments)}},u.addFunction=vl,u.removeFunction=oo,u.UTF8ToString=rn,u.ALLOC_NORMAL=ml,u.allocate=hl,u.allocateUTF8OnStack=ka;var wl;qe=function s(){wl||xd(),wl||(qe=s)};function xd(){function s(){if(!wl&&(wl=!0,u.calledRun=!0,!j)){if(u.noFSInit||pd||(pd=!0,dd(),u.stdin=u.stdin,u.stdout=u.stdout,u.stderr=u.stderr,u.stdin?ei("stdin",u.stdin):Sa("/dev/tty","/dev/stdin"),u.stdout?ei("stdout",null,u.stdout):Sa("/dev/tty","/dev/stdout"),u.stderr?ei("stderr",null,u.stderr):Sa("/dev/tty1","/dev/stderr"),ro("/dev/stdin",0),ro("/dev/stdout",1),ro("/dev/stderr",1)),xn=!1,ut(B),u.onRuntimeInitialized&&u.onRuntimeInitialized(),u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;){var c=u.postRun.shift();ee.unshift(c)}ut(ee)}}if(!(0"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.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,p,m){var h=new XMLHttpRequest;h.open("GET",u),h.responseType="blob",h.onload=function(){f(h.response,p,m)},h.onerror=function(){console.error("could not download file")},h.send()}function o(u){var p=new XMLHttpRequest;p.open("HEAD",u,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function i(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(p)}}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,a=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(u,p,m){var h=l.URL||l.webkitURL,x=document.createElement("a");p=p||u.name||"download",x.download=p,x.rel="noopener",typeof u=="string"?(x.href=u,x.origin===location.origin?i(x):o(x.href)?r(u,p,m):i(x,x.target="_blank")):(x.href=h.createObjectURL(u),setTimeout(function(){h.revokeObjectURL(x.href)},4e4),setTimeout(function(){i(x)},0))}:"msSaveOrOpenBlob"in navigator?function(u,p,m){if(p=p||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,m),p);else if(o(u))r(u,p,m);else{var h=document.createElement("a");h.href=u,h.target="_blank",setTimeout(function(){i(h)})}}:function(u,p,m,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof u=="string")return r(u,p,m);var x=u.type==="application/octet-stream",C=/constructor/i.test(l.HTMLElement)||l.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||x&&C||a)&&typeof FileReader<"u"){var R=new FileReader;R.onloadend=function(){var b=R.result;b=E?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=b:location=b,h=null},R.readAsDataURL(u)}else{var y=l.URL||l.webkitURL,g=y.createObjectURL(u);h?h.location=g:location.href=g,h=null,setTimeout(function(){y.revokeObjectURL(g)},4e4)}});l.saveAs=f.saveAs=f,e.exports=f})})(qv);var Gv=qv.exports;const sE=async e=>{try{const t=await e.arrayBuffer(),n=await lE({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}},Cf=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),[]}},aE=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 js(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 uE=e=>{try{return e.export()}catch(t){throw console.error("Failed to export database:",t),t}},Kv=(e,t)=>{const n=e.join(","),r=t.map(o=>e.map(i=>`"${o[i]}"`).join(","));return[n,...r].join(` -`)},cE=(e,t)=>{const r=Cf(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}=js(o),a=Kv(l,i),f=new Blob([a],{type:"text/csv;charset=utf-8;"});Gv.saveAs(f,`${r}.csv`)}catch(o){throw console.error(`Failed to export table "${r}" as CSV:`,o),o}},fE=e=>{Cf(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}=js(r),l=Kv(i,o),a=new Blob([l],{type:"text/csv;charset=utf-8;"});Gv.saveAs(a,`${n}.csv`)}catch(r){console.error(`Failed to export table "${n}" as CSV:`,r)}})},Jr=nE((e,t)=>({db:null,isLoading:!1,queryError:null,tables:[],selectedTable:"0",tableSchemas:{},loadDatabase:async n=>{e({isLoading:!0,queryError:null});try{const r=await sE(n);e({db:r});const i=Cf(r).map(async u=>{const p=r.exec(`SELECT COUNT(*) FROM "${u}"`),m=parseInt(p[0].values[0][0],10),h=await aE(r,u);return{name:u,count:m,schema:h}}),l=await Promise.all(i),a=l.map(({name:u,count:p})=>({name:u,count:p})),f=l.reduce((u,{name:p,schema:m})=>(u[p]=m,u),{});e({tables:a,tableSchemas:f,isLoading:!1})}catch(r){console.error("Failed to load database:",r),e({isLoading:!1,queryError:"Failed to load database"})}},query:n=>{const r=t().db;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}),rowPerPageOrAuto:"auto",setRowPerPageOrAuto:n=>e({rowPerPageOrAuto:n}),downloadDatabase:()=>{const n=t().db;if(n){const r=uE(n),o=new Blob([r],{type:"application/octet-stream"}),i=URL.createObjectURL(o),l=document.createElement("a");l.href=i,l.download="database.sqlite",l.click(),URL.revokeObjectURL(i)}else console.warn("Database is not loaded.")},exportTableAsCSV:n=>{const r=t().db;r?cE(r,n):console.warn("Database is not loaded.")},exportAllTablesAsCSV:()=>{const n=t().db;return n?(fE(n),{}):(console.warn("Database is not loaded."),{})},isCustomQuery:!1,setIsCustomQuery:n=>e({isCustomQuery:n})}));function Qv(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;ta(i)))==null?void 0:l.classGroupId}const Hp=/^\[(.+)\]$/;function mE(e){if(Hp.test(e)){const t=Hp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function hE(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return gE(Object.entries(e.classGroups),n).forEach(([i,l])=>{uc(l,r,i,t)}),r}function uc(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Up(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(vE(o)){uc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{uc(l,Up(t,i),n,r)})})}function Up(e,t){let n=e;return t.split(_f).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function vE(e){return e.isThemeGetter}function gE(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,a])=>[t+l,a])):i);return[n,o]}):e}function yE(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 Xv="!";function wE(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(l){const a=[];let f=0,u=0,p;for(let E=0;Eu?p-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:C}}}function xE(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 SE(e){return{cache:yE(e.cacheSize),splitModifiers:wE(e),...pE(e)}}const EE=/\s+/;function bE(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(EE).map(l=>{const{modifiers:a,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:p}=n(l);let m=r(p?u.substring(0,p):u),h=!!p;if(!m){if(!p)return{isTailwindClass:!1,originalClassName:l};if(m=r(u),!m)return{isTailwindClass:!1,originalClassName:l};h=!1}const x=xE(a).join(":");return{isTailwindClass:!0,modifierId:f?x+Xv:x,classGroupId:m,originalClassName:l,hasPostfixModifier:h}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:a,classGroupId:f,hasPostfixModifier:u}=l,p=a+f;return i.has(p)?!1:(i.add(p),o(f,u).forEach(m=>i.add(a+m)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function CE(){let e=0,t,n,r="";for(;em(p),e());return n=SE(u),r=n.cache.get,o=n.cache.set,i=a,a(f)}function a(f){const u=r(f);if(u)return u;const p=bE(f,n);return o(f,p),p}return function(){return i(CE.apply(null,arguments))}}function ze(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Jv=/^\[(?:([a-z-]+):)?(.+)\]$/i,kE=/^\d+\/\d+$/,RE=new Set(["px","full","screen"]),PE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NE=/\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$/,TE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,AE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,DE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function On(e){return Fr(e)||RE.has(e)||kE.test(e)}function tr(e){return Bo(e,"length",$E)}function Fr(e){return!!e&&!Number.isNaN(Number(e))}function Fl(e){return Bo(e,"number",Fr)}function mi(e){return!!e&&Number.isInteger(Number(e))}function OE(e){return e.endsWith("%")&&Fr(e.slice(0,-1))}function pe(e){return Jv.test(e)}function nr(e){return PE.test(e)}const jE=new Set(["length","size","percentage"]);function ME(e){return Bo(e,jE,eg)}function IE(e){return Bo(e,"position",eg)}const LE=new Set(["image","url"]);function FE(e){return Bo(e,LE,UE)}function zE(e){return Bo(e,"",HE)}function hi(){return!0}function Bo(e,t,n){const r=Jv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function $E(e){return NE.test(e)&&!TE.test(e)}function eg(){return!1}function HE(e){return AE.test(e)}function UE(e){return DE.test(e)}function WE(){const e=ze("colors"),t=ze("spacing"),n=ze("blur"),r=ze("brightness"),o=ze("borderColor"),i=ze("borderRadius"),l=ze("borderSpacing"),a=ze("borderWidth"),f=ze("contrast"),u=ze("grayscale"),p=ze("hueRotate"),m=ze("invert"),h=ze("gap"),x=ze("gradientColorStops"),C=ze("gradientColorStopPositions"),E=ze("inset"),R=ze("margin"),y=ze("opacity"),g=ze("padding"),b=ze("saturate"),_=ze("scale"),P=ze("sepia"),D=ze("skew"),N=ze("space"),A=ze("translate"),j=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",pe,t],H=()=>[pe,t],F=()=>["",On,tr],W=()=>["auto",Fr,pe],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",pe],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[Fr,Fl],ue=()=>[Fr,pe];return{cacheSize:500,separator:":",theme:{colors:[hi],spacing:[On,tr],blur:["none","",nr,pe],brightness:se(),borderColor:[e],borderRadius:["none","","full",nr,pe],borderSpacing:H(),borderWidth:F(),contrast:se(),grayscale:B(),hueRotate:ue(),invert:B(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[OE,tr],inset:V(),margin:V(),opacity:se(),padding:H(),saturate:se(),scale:se(),sepia:B(),skew:ue(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[nr]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"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(),pe]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mi,pe]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",mi,pe]}],"grid-cols":[{"grid-cols":[hi]}],"col-start-end":[{col:["auto",{span:["full",mi,pe]},pe]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[hi]}],"row-start-end":[{row:["auto",{span:[mi,pe]},pe]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"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":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,t]}],"min-w":[{"min-w":[pe,t,"min","max","fit"]}],"max-w":[{"max-w":[pe,t,"none","full","min","max","fit","prose",{screen:[nr]},nr]}],h:[{h:[pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",nr,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fl]}],"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",pe]}],"line-clamp":[{"line-clamp":["none",Fr,Fl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",On,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"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:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",On,tr]}],"underline-offset":[{"underline-offset":["auto",On,pe]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],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",pe]}],"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(),IE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ME]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},FE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:le()}],"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:["",...le()]}],"outline-offset":[{"outline-offset":[On,pe]}],"outline-w":[{outline:[On,tr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[On,tr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nr,zE]}],"shadow-color":[{shadow:[hi]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",nr,pe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],saturate:[{saturate:[b]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"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",pe]}],duration:[{duration:ue()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[mi,pe]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"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",pe]}],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",pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[On,tr,Fl]}],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 BE=_E(WE);function Se(...e){return BE(dE(e))}const kf=v.forwardRef(({className:e,type:t,...n},r)=>w.jsx("input",{type:t,className:Se("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}));kf.displayName="Input";function VE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function tg(...e){return t=>e.forEach(n=>VE(n,t))}function Ve(...e){return v.useCallback(tg(...e),e)}var qr=v.forwardRef((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(qE);if(i){const l=i.props.children,a=o.map(f=>f===i?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:f);return w.jsx(cc,{...r,ref:t,children:v.isValidElement(l)?v.cloneElement(l,void 0,a):null})}return w.jsx(cc,{...r,ref:t,children:n})});qr.displayName="Slot";var cc=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const o=KE(n);return v.cloneElement(n,{...GE(r,n.props),ref:t?tg(t,o):o})}return v.Children.count(n)>1?v.Children.only(null):null});cc.displayName="SlotClone";var ng=({children:e})=>w.jsx(w.Fragment,{children:e});function qE(e){return v.isValidElement(e)&&e.type===ng}function GE(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]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function KE(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 rg(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,Bp=QE,og=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Bp(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 p=n==null?void 0:n[u],m=i==null?void 0:i[u];if(p===null)return null;const h=Wp(p)||Wp(m);return o[u][h]}),a=n&&Object.entries(n).reduce((u,p)=>{let[m,h]=p;return h===void 0||(u[m]=h),u},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:m,className:h,...x}=p;return Object.entries(x).every(C=>{let[E,R]=C;return Array.isArray(R)?R.includes({...i,...a}[E]):{...i,...a}[E]===R})?[...u,m,h]:u},[]);return Bp(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},Rf=og("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"}}),Dt=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?qr:"button";return w.jsx(l,{className:Se(Rf({variant:t,size:n,className:e})),ref:i,...o})});Dt.displayName="Button";/** +`));if(!s){s=null;break e}nt=on(s,!0)}s=nt.shift()}return s},jb(s,c){c===null||c===10?(P(ke(s.output,0)),s.output=[]):c!=0&&s.output.push(c)},fsync(s){s.output&&0=c||(c=Math.max(c,d*(1048576>d?2:1.125)>>>0),d!=0&&(c=Math.max(c,256)),d=s.Ia,s.Ia=new Uint8Array(c),0=s.node.Ma)return 0;if(s=Math.min(s.node.Ma-k,S),8c)throw new U(28);return c},lb(s,c,d){Re(s.node,c+d),s.node.Ma=Math.max(s.node.Ma,c+d)},bb(s,c,d,S,k){if((s.node.mode&61440)!==32768)throw new U(43);if(s=s.node.Ia,k&2||s.buffer!==I.buffer){if((0{var d=0;return s&&(d|=365),c&&(d|=146),d},We=null,Et={},vt=[],wn=1,zt=null,xn=!0,U=null,to={};function At(s,c={}){if(s=Pe(s),!s)return{path:"",node:null};if(c=Object.assign({qb:!0,kb:0},c),8!!M);for(var d=We,S="/",k=0;k>>0)%zt.length}function Zf(s){var c=wa(s.parent.id,s.name);if(zt[c]===s)zt[c]=s.Wa;else for(c=zt[c];c;){if(c.Wa===s){c.Wa=s.Wa;break}c=c.Wa}}function Rr(s,c){var d;if(d=(d=no(s,"x"))?d:s.Ga.lookup?0:2)throw new U(d,s);for(d=zt[wa(s.id,c)];d;d=d.Wa){var S=d.name;if(d.parent.id===s.id&&S===c)return d}return s.Ga.lookup(s,c)}function Jf(s,c,d,S){return s=new yd(s,c,d,S),c=wa(s.parent.id,s.name),s.Wa=zt[c],zt[c]=s}function Qt(s){return(s&61440)===16384}function ed(s){var c=["r","w","rw"][s&3];return s&512&&(c+="w"),c}function no(s,c){if(xn)return 0;if(!c.includes("r")||s.mode&292){if(c.includes("w")&&!(s.mode&146)||c.includes("x")&&!(s.mode&73))return 2}else return 2;return 0}function td(s,c){try{return Rr(s,c),20}catch{}return no(s,"wx")}function nd(s,c,d){try{var S=Rr(s,c)}catch(k){return k.Ka}if(s=no(s,"wx"))return s;if(d){if(!Qt(S.mode))return 54;if(S===S.parent||Zo(S)==="/")return 10}else if(Qt(S.mode))return 31;return 0}function Ew(){for(var s=0;4096>=s;s++)if(!vt[s])return s;throw new U(33)}function bt(s){if(s=vt[s],!s)throw new U(8);return s}function rd(s,c=-1){return ti||(ti=function(){this.$a={}},ti.prototype={},Object.defineProperties(ti.prototype,{object:{get(){return this.node},set(d){this.node=d}},flags:{get(){return this.$a.flags},set(d){this.$a.flags=d}},position:{get(){return this.$a.position},set(d){this.$a.position=d}}})),s=Object.assign(new ti,s),c==-1&&(c=Ew()),s.fd=c,vt[c]=s}var bw={open(s){var c,d;s.Ha=Et[s.node.rdev].Ha,(d=(c=s.Ha).open)==null||d.call(c,s)},Ta(){throw new U(70)}};function xa(s,c){Et[s]={Ha:c}}function od(s,c){var d=c==="/",S=!c;if(d&&We)throw new U(10);if(!d&&!S){var k=At(c,{qb:!1});if(c=k.path,k=k.node,k.Va)throw new U(10);if(!Qt(k.mode))throw new U(54)}c={type:s,Pb:{},tb:c,Cb:[]},s=s.Ra(c),s.Ra=c,c.root=s,d?We=s:k&&(k.Va=c,k.Ra&&k.Ra.Cb.push(c))}function al(s,c,d){var S=At(s,{parent:!0}).node;if(s=G(s),!s||s==="."||s==="..")throw new U(28);var k=td(S,s);if(k)throw new U(k);if(!S.Ga.ab)throw new U(63);return S.Ga.ab(S,s,c,d)}function Sn(s,c){return al(s,(c!==void 0?c:511)&1023|16384,0)}function ul(s,c,d){typeof d>"u"&&(d=c,c=438),al(s,c|8192,d)}function Sa(s,c){if(!Pe(s))throw new U(44);var d=At(c,{parent:!0}).node;if(!d)throw new U(44);c=G(c);var S=td(d,c);if(S)throw new U(S);if(!d.Ga.symlink)throw new U(63);d.Ga.symlink(d,c,s)}function id(s){var c=At(s,{parent:!0}).node;s=G(s);var d=Rr(c,s),S=nd(c,s,!0);if(S)throw new U(S);if(!c.Ga.rmdir)throw new U(63);if(d.Va)throw new U(10);c.Ga.rmdir(c,s),Zf(d)}function ld(s){var c=At(s,{parent:!0}).node;if(!c)throw new U(44);s=G(s);var d=Rr(c,s),S=nd(c,s,!1);if(S)throw new U(S);if(!c.Ga.unlink)throw new U(63);if(d.Va)throw new U(10);c.Ga.unlink(c,s),Zf(d)}function sd(s){if(s=At(s).node,!s)throw new U(44);if(!s.Ga.readlink)throw new U(28);return Pe(Zo(s.parent),s.Ga.readlink(s))}function Jo(s,c){if(s=At(s,{Sa:!c}).node,!s)throw new U(44);if(!s.Ga.Pa)throw new U(63);return s.Ga.Pa(s)}function ad(s){return Jo(s,!0)}function cl(s,c){if(s=typeof s=="string"?At(s,{Sa:!0}).node:s,!s.Ga.Oa)throw new U(63);s.Ga.Oa(s,{mode:c&4095|s.mode&-4096,timestamp:Date.now()})}function ud(s,c){if(0>c)throw new U(28);if(s=typeof s=="string"?At(s,{Sa:!0}).node:s,!s.Ga.Oa)throw new U(63);if(Qt(s.mode))throw new U(31);if((s.mode&61440)!==32768)throw new U(28);var d=no(s,"w");if(d)throw new U(d);s.Ga.Oa(s,{size:c,timestamp:Date.now()})}function ro(s,c,d){if(s==="")throw new U(44);if(typeof c=="string"){var S={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[c];if(typeof S>"u")throw Error(`Unknown file open mode: ${c}`);c=S}if(d=c&64?(typeof d>"u"?438:d)&4095|32768:0,typeof s=="object")var k=s;else{s=Ft(s);try{k=At(s,{Sa:!(c&131072)}).node}catch{}}if(S=!1,c&64)if(k){if(c&128)throw new U(20)}else k=al(s,d,0),S=!0;if(!k)throw new U(44);if((k.mode&61440)===8192&&(c&=-513),c&65536&&!Qt(k.mode))throw new U(54);if(!S&&(d=k?(k.mode&61440)===40960?32:Qt(k.mode)&&(ed(c)!=="r"||c&512)?31:no(k,ed(c)):44))throw new U(d);return c&512&&!S&&ud(k,0),c&=-131713,k=rd({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||(ba||(ba={}),s in ba||(ba[s]=1)),k}function Ea(s){if(s.fd===null)throw new U(8);s.hb&&(s.hb=null);try{s.Ha.close&&s.Ha.close(s)}catch(c){throw c}finally{vt[s.fd]=null}s.fd=null}function cd(s,c,d){if(s.fd===null)throw new U(8);if(!s.seekable||!s.Ha.Ta)throw new U(70);if(d!=0&&d!=1&&d!=2)throw new U(28);s.position=s.Ha.Ta(s,c,d),s.Fb=[]}function fd(s,c,d,S,k){if(0>S||0>k)throw new U(28);if(s.fd===null)throw new U(8);if((s.flags&2097155)===1)throw new U(8);if(Qt(s.node.mode))throw new U(31);if(!s.Ha.read)throw new U(28);var O=typeof k<"u";if(!O)k=s.position;else if(!s.seekable)throw new U(70);return c=s.Ha.read(s,c,d,S,k),O||(s.position+=c),c}function dd(s,c,d,S,k){if(0>S||0>k)throw new U(28);if(s.fd===null)throw new U(8);if(!(s.flags&2097155))throw new U(8);if(Qt(s.node.mode))throw new U(31);if(!s.Ha.write)throw new U(28);s.seekable&&s.flags&1024&&cd(s,0,2);var O=typeof k<"u";if(!O)k=s.position;else if(!s.seekable)throw new U(70);return c=s.Ha.write(s,c,d,S,k,void 0),O||(s.position+=c),c}function Cw(s){var c,d=ro(s,d||0);s=Jo(s).size;var S=new Uint8Array(s);return fd(d,S,0,s,0),c=S,Ea(d),c}function pd(){U||(U=function(s,c){this.name="ErrnoError",this.node=c,this.Eb=function(d){this.Ka=d},this.Eb(s),this.message="FS error"},U.prototype=Error(),U.prototype.constructor=U,[44].forEach(s=>{to[s]=new U(s),to[s].stack=""}))}var md;function ei(s,c,d){s=Ft("/dev/"+s);var S=De(!!c,!!d);hd||(hd=64);var k=hd++<<8|0;xa(k,{open(O){O.seekable=!1},close(){var O;(O=d==null?void 0:d.buffer)!=null&&O.length&&d(10)},read(O,M,ae,Ee){for(var he=0,rt=0;rt>2]=S.dev,F[d+4>>2]=S.mode,W[d+8>>2]=S.nlink,F[d+12>>2]=S.uid,F[d+16>>2]=S.gid,F[d+20>>2]=S.rdev,me=[S.size>>>0,(Y=S.size,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+24>>2]=me[0],F[d+28>>2]=me[1],F[d+32>>2]=4096,F[d+36>>2]=S.blocks,s=S.atime.getTime(),c=S.mtime.getTime();var k=S.ctime.getTime();return me=[Math.floor(s/1e3)>>>0,(Y=Math.floor(s/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+40>>2]=me[0],F[d+44>>2]=me[1],W[d+48>>2]=s%1e3*1e3,me=[Math.floor(c/1e3)>>>0,(Y=Math.floor(c/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+56>>2]=me[0],F[d+60>>2]=me[1],W[d+64>>2]=c%1e3*1e3,me=[Math.floor(k/1e3)>>>0,(Y=Math.floor(k/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+72>>2]=me[0],F[d+76>>2]=me[1],W[d+80>>2]=k%1e3*1e3,me=[S.ino>>>0,(Y=S.ino,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+88>>2]=me[0],F[d+92>>2]=me[1],0}var dl=void 0;function pl(){var s=F[+dl>>2];return dl+=4,s}var ni=(s,c)=>c+2097152>>>0<4194305-!!s?(s>>>0)+4294967296*c:NaN,_w=[0,31,60,91,121,152,182,213,244,274,305,335],kw=[0,31,59,90,120,151,181,212,243,273,304,334],vd=s=>{var c=Nt(s)+1,d=gl(c);return d&&St(s,V,d,c),d},Ca={},gd=()=>{if(!_a){var s={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",_:m||"./this.program"},c;for(c in Ca)Ca[c]===void 0?delete s[c]:s[c]=Ca[c];var d=[];for(c in s)d.push(`${c}=${s[c]}`);_a=d}return _a},_a,ka=s=>{var c=Nt(s)+1,d=Jn(c);return St(s,V,d,c),d},Rw=(s,c,d,S)=>{var k={string:he=>{var rt=0;return he!=null&&he!==0&&(rt=ka(he)),rt},array:he=>{var rt=Jn(he.length);return I.set(he,rt),rt}};s=u["_"+s];var O=[],M=0;if(S)for(var ae=0;ae(c=c==1?Jn(s.length):gl(s.length),s.subarray||s.slice||(s=new Uint8Array(s)),V.set(s,c),c),Tr,Ra=[],Dn,oo=s=>{Tr.delete(Dn.get(s)),Dn.set(s,null),Ra.push(s)},vl=(s,c)=>{if(!Tr){Tr=new WeakMap;var d=Dn.length;if(Tr)for(var S=0;S<0+d;S++){var k=Dn.get(S);k&&Tr.set(k,S)}}if(d=Tr.get(s)||0)return d;if(Ra.length)d=Ra.pop();else{try{Dn.grow(1)}catch(ae){throw ae instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":ae}d=Dn.length-1}try{Dn.set(d,s)}catch(ae){if(!(ae instanceof TypeError))throw ae;if(typeof WebAssembly.Function=="function"){S=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]]]},M=1;MM?S.push(M):S.push(M%128|128,M>>7),M=0;Mk?c.push(k):c.push(k%128|128,k>>7),c.push.apply(c,S),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:s}}).exports.f}Dn.set(d,c)}return Tr.set(s,d),d};function yd(s,c,d,S){s||(s=this),this.parent=s,this.Ra=s.Ra,this.Va=null,this.id=wn++,this.name=c,this.mode=d,this.Ga={},this.Ha={},this.rdev=S}Object.defineProperties(yd.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(s){s?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(s){s?this.mode|=146:this.mode&=-147}}}),pd(),zt=Array(4096),od(q,"/"),Sn("/tmp"),Sn("/home"),Sn("/home/web_user"),function(){Sn("/dev"),xa(259,{read:()=>0,write:(S,k,O,M)=>M}),ul("/dev/null",259),Xn(1280,ie),Xn(1536,fe),ul("/dev/tty",1280),ul("/dev/tty1",1536);var s=new Uint8Array(1024),c=0,d=()=>(c===0&&(c=Le(s).byteLength),s[--c]);ei("random",d),ei("urandom",d),Sn("/dev/shm"),Sn("/dev/shm/tmp")}(),function(){Sn("/proc");var s=Sn("/proc/self");Sn("/proc/self/fd"),od({Ra(){var c=Jf(s,"fd",16895,73);return c.Ga={lookup(d,S){var k=bt(+S);return d={parent:null,Ra:{tb:"fake"},Ga:{readlink:()=>k.path}},d.parent=d}},c}},"/proc/self/fd")}();var Pw={a:(s,c,d,S)=>{ve(`Assertion failed: ${s?ke(V,s):""}, at: `+[c?c?ke(V,c):"":"unknown filename",d,S?S?ke(V,S):"":"unknown function"])},h:function(s,c){try{return s=s?ke(V,s):"",cl(s,c),0}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},H:function(s,c,d){try{if(c=c?ke(V,c):"",c=Pr(s,c),d&-8)return-28;var S=At(c,{Sa:!0}).node;return S?(s="",d&4&&(s+="r"),d&2&&(s+="w"),d&1&&(s+="x"),s&&no(S,s)?-2:0):-44}catch(k){if(typeof Fe>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},i:function(s,c){try{var d=bt(s);return cl(d.node,c),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},g:function(s){try{var c=bt(s).node,d=typeof c=="string"?At(c,{Sa:!0}).node:c;if(!d.Ga.Oa)throw new U(63);return d.Ga.Oa(d,{timestamp:Date.now()}),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},b:function(s,c,d){dl=d;try{var S=bt(s);switch(c){case 0:var k=pl();if(0>k)return-28;for(;vt[k];)k++;return rd(S,k).fd;case 1:case 2:return 0;case 3:return S.flags;case 4:return k=pl(),S.flags|=k,0;case 5:return k=pl(),H[k+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return F[wd()>>2]=28,-1;default:return-28}}catch(O){if(typeof Fe>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},f:function(s,c){try{var d=bt(s);return fl(Jo,d.path,c)}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},n:function(s,c,d){c=ni(c,d);try{if(isNaN(c))return 61;var S=bt(s);if(!(S.flags&2097155))throw new U(28);return ud(S.node,c),0}catch(k){if(typeof Fe>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},C:function(s,c){try{if(c===0)return-28;var d=Nt("/")+1;return c"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},F:function(s,c){try{return s=s?ke(V,s):"",fl(ad,s,c)}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},z:function(s,c,d){try{return c=c?ke(V,c):"",c=Pr(s,c),c=Ft(c),c[c.length-1]==="/"&&(c=c.substr(0,c.length-1)),Sn(c,d),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},E:function(s,c,d,S){try{c=c?ke(V,c):"";var k=S&256;return c=Pr(s,c,S&4096),fl(k?ad:Jo,c,d)}catch(O){if(typeof Fe>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},y:function(s,c,d,S){dl=S;try{c=c?ke(V,c):"",c=Pr(s,c);var k=S?pl():0;return ro(c,d,k).fd}catch(O){if(typeof Fe>"u"||O.name!=="ErrnoError")throw O;return-O.Ka}},w:function(s,c,d,S){try{if(c=c?ke(V,c):"",c=Pr(s,c),0>=S)return-28;var k=sd(c),O=Math.min(S,Nt(k)),M=I[d+O];return St(k,V,d,S+1),I[d+O]=M,O}catch(ae){if(typeof Fe>"u"||ae.name!=="ErrnoError")throw ae;return-ae.Ka}},v:function(s){try{return s=s?ke(V,s):"",id(s),0}catch(c){if(typeof Fe>"u"||c.name!=="ErrnoError")throw c;return-c.Ka}},G:function(s,c){try{return s=s?ke(V,s):"",fl(Jo,s,c)}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},r:function(s,c,d){try{return c=c?ke(V,c):"",c=Pr(s,c),d===0?ld(c):d===512?id(c):ve("Invalid flags passed to unlinkat"),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},q:function(s,c,d){try{if(c=c?ke(V,c):"",c=Pr(s,c,!0),d){var S=W[d>>2]+4294967296*F[d+4>>2],k=F[d+8>>2];O=1e3*S+k/1e6,d+=16,S=W[d>>2]+4294967296*F[d+4>>2],k=F[d+8>>2],M=1e3*S+k/1e6}else var O=Date.now(),M=O;s=O;var ae=At(c,{Sa:!0}).node;return ae.Ga.Oa(ae,{timestamp:Math.max(s,M)}),0}catch(Ee){if(typeof Fe>"u"||Ee.name!=="ErrnoError")throw Ee;return-Ee.Ka}},l:function(s,c,d){s=new Date(1e3*ni(s,c)),F[d>>2]=s.getSeconds(),F[d+4>>2]=s.getMinutes(),F[d+8>>2]=s.getHours(),F[d+12>>2]=s.getDate(),F[d+16>>2]=s.getMonth(),F[d+20>>2]=s.getFullYear()-1900,F[d+24>>2]=s.getDay(),c=s.getFullYear(),F[d+28>>2]=(c%4!==0||c%100===0&&c%400!==0?kw:_w)[s.getMonth()]+s.getDate()-1|0,F[d+36>>2]=-(60*s.getTimezoneOffset()),c=new Date(s.getFullYear(),6,1).getTimezoneOffset();var S=new Date(s.getFullYear(),0,1).getTimezoneOffset();F[d+32>>2]=(c!=S&&s.getTimezoneOffset()==Math.min(S,c))|0},j:function(s,c,d,S,k,O,M,ae){k=ni(k,O);try{if(isNaN(k))return 61;var Ee=bt(S);if(c&2&&!(d&2)&&(Ee.flags&2097155)!==2)throw new U(2);if((Ee.flags&2097155)===1)throw new U(2);if(!Ee.Ha.bb)throw new U(43);var he=Ee.Ha.bb(Ee,s,k,c,d),rt=he.Db;return F[M>>2]=he.ub,W[ae>>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return-ct.Ka}},k:function(s,c,d,S,k,O,M){O=ni(O,M);try{if(isNaN(O))return 61;var ae=bt(k);if(d&2){if((ae.node.mode&61440)!==32768)throw new U(43);if(!(S&2)){var Ee=V.slice(s,s+c);ae.Ha.cb&&ae.Ha.cb(ae,Ee,O,c,S)}}}catch(he){if(typeof Fe>"u"||he.name!=="ErrnoError")throw he;return-he.Ka}},s:(s,c,d)=>{function S(Ee){return(Ee=Ee.toTimeString().match(/\(([A-Za-z ]+)\)$/))?Ee[1]:"GMT"}var k=new Date().getFullYear(),O=new Date(k,0,1),M=new Date(k,6,1);k=O.getTimezoneOffset();var ae=M.getTimezoneOffset();W[s>>2]=60*Math.max(k,ae),F[c>>2]=+(k!=ae),s=S(O),c=S(M),s=vd(s),c=vd(c),ae>2]=s,W[d+4>>2]=c):(W[d>>2]=c,W[d+4>>2]=s)},d:()=>Date.now(),t:()=>2147483648,c:()=>performance.now(),o:s=>{var c=V.length;if(s>>>=0,2147483648=d;d*=2){var S=c*(1+.2/d);S=Math.min(S,s+100663296);var k=Math;S=Math.max(s,S);e:{k=(k.min.call(k,2147483648,S+(65536-S%65536)%65536)-A.buffer.byteLength+65535)/65536;try{A.grow(k),ne();var O=1;break e}catch{}O=void 0}if(O)return!0}return!1},A:(s,c)=>{var d=0;return gd().forEach((S,k)=>{var O=c+d;for(k=W[s+4*k>>2]=O,O=0;O>0]=S.charCodeAt(O);I[k>>0]=0,d+=S.length+1}),0},B:(s,c)=>{var d=gd();W[s>>2]=d.length;var S=0;return d.forEach(k=>S+=k.length+1),W[c>>2]=S,0},e:function(s){try{var c=bt(s);return Ea(c),0}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return d.Ka}},p:function(s,c){try{var d=bt(s);return I[c>>0]=d.tty?2:Qt(d.mode)?3:(d.mode&61440)===40960?7:4,H[c+2>>1]=0,me=[0,(Y=0,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[c+8>>2]=me[0],F[c+12>>2]=me[1],me=[0,(Y=0,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[c+16>>2]=me[0],F[c+20>>2]=me[1],0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return S.Ka}},x:function(s,c,d,S){try{e:{var k=bt(s);s=c;for(var O,M=c=0;M>2],Ee=W[s+4>>2];s+=8;var he=fd(k,I,ae,Ee,O);if(0>he){var rt=-1;break e}if(c+=he,he>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return ct.Ka}},m:function(s,c,d,S,k){c=ni(c,d);try{if(isNaN(c))return 61;var O=bt(s);return cd(O,c,S),me=[O.position>>>0,(Y=O.position,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[k>>2]=me[0],F[k+4>>2]=me[1],O.hb&&c===0&&S===0&&(O.hb=null),0}catch(M){if(typeof Fe>"u"||M.name!=="ErrnoError")throw M;return M.Ka}},D:function(s){var d;try{var c=bt(s);return(d=c.Ha)!=null&&d.fsync?c.Ha.fsync(c):0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return S.Ka}},u:function(s,c,d,S){try{e:{var k=bt(s);s=c;for(var O,M=c=0;M>2],Ee=W[s+4>>2];s+=8;var he=dd(k,I,ae,Ee,O);if(0>he){var rt=-1;break e}c+=he,typeof O<"u"&&(O+=he)}rt=c}return W[S>>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return ct.Ka}}},re=function(){var d;function s(S){var k;return re=S.exports,A=re.I,ne(),Dn=re.Aa,B.unshift(re.J),ue--,(k=u.monitorRunDependencies)==null||k.call(u,ue),ue==0&&qe&&(S=qe,qe=null,S()),re}var c={a:Pw};if(ue++,(d=u.monitorRunDependencies)==null||d.call(u,ue),u.instantiateWasm)try{return u.instantiateWasm(c,s)}catch(S){return D(`Module.instantiateWasm callback failed with error: ${S}`),!1}return de(c,function(S){s(S.instance)}),{}}();u._sqlite3_free=s=>(u._sqlite3_free=re.K)(s),u._sqlite3_value_text=s=>(u._sqlite3_value_text=re.L)(s);var wd=()=>(wd=re.M)();u._sqlite3_prepare_v2=(s,c,d,S,k)=>(u._sqlite3_prepare_v2=re.N)(s,c,d,S,k),u._sqlite3_step=s=>(u._sqlite3_step=re.O)(s),u._sqlite3_reset=s=>(u._sqlite3_reset=re.P)(s),u._sqlite3_exec=(s,c,d,S,k)=>(u._sqlite3_exec=re.Q)(s,c,d,S,k),u._sqlite3_finalize=s=>(u._sqlite3_finalize=re.R)(s),u._sqlite3_column_name=(s,c)=>(u._sqlite3_column_name=re.S)(s,c),u._sqlite3_column_text=(s,c)=>(u._sqlite3_column_text=re.T)(s,c),u._sqlite3_column_type=(s,c)=>(u._sqlite3_column_type=re.U)(s,c),u._sqlite3_errmsg=s=>(u._sqlite3_errmsg=re.V)(s),u._sqlite3_clear_bindings=s=>(u._sqlite3_clear_bindings=re.W)(s),u._sqlite3_value_blob=s=>(u._sqlite3_value_blob=re.X)(s),u._sqlite3_value_bytes=s=>(u._sqlite3_value_bytes=re.Y)(s),u._sqlite3_value_double=s=>(u._sqlite3_value_double=re.Z)(s),u._sqlite3_value_int=s=>(u._sqlite3_value_int=re._)(s),u._sqlite3_value_type=s=>(u._sqlite3_value_type=re.$)(s),u._sqlite3_result_blob=(s,c,d,S)=>(u._sqlite3_result_blob=re.aa)(s,c,d,S),u._sqlite3_result_double=(s,c)=>(u._sqlite3_result_double=re.ba)(s,c),u._sqlite3_result_error=(s,c,d)=>(u._sqlite3_result_error=re.ca)(s,c,d),u._sqlite3_result_int=(s,c)=>(u._sqlite3_result_int=re.da)(s,c),u._sqlite3_result_int64=(s,c,d)=>(u._sqlite3_result_int64=re.ea)(s,c,d),u._sqlite3_result_null=s=>(u._sqlite3_result_null=re.fa)(s),u._sqlite3_result_text=(s,c,d,S)=>(u._sqlite3_result_text=re.ga)(s,c,d,S),u._sqlite3_aggregate_context=(s,c)=>(u._sqlite3_aggregate_context=re.ha)(s,c),u._sqlite3_column_count=s=>(u._sqlite3_column_count=re.ia)(s),u._sqlite3_data_count=s=>(u._sqlite3_data_count=re.ja)(s),u._sqlite3_column_blob=(s,c)=>(u._sqlite3_column_blob=re.ka)(s,c),u._sqlite3_column_bytes=(s,c)=>(u._sqlite3_column_bytes=re.la)(s,c),u._sqlite3_column_double=(s,c)=>(u._sqlite3_column_double=re.ma)(s,c),u._sqlite3_bind_blob=(s,c,d,S,k)=>(u._sqlite3_bind_blob=re.na)(s,c,d,S,k),u._sqlite3_bind_double=(s,c,d)=>(u._sqlite3_bind_double=re.oa)(s,c,d),u._sqlite3_bind_int=(s,c,d)=>(u._sqlite3_bind_int=re.pa)(s,c,d),u._sqlite3_bind_text=(s,c,d,S,k)=>(u._sqlite3_bind_text=re.qa)(s,c,d,S,k),u._sqlite3_bind_parameter_index=(s,c)=>(u._sqlite3_bind_parameter_index=re.ra)(s,c),u._sqlite3_sql=s=>(u._sqlite3_sql=re.sa)(s),u._sqlite3_normalized_sql=s=>(u._sqlite3_normalized_sql=re.ta)(s),u._sqlite3_changes=s=>(u._sqlite3_changes=re.ua)(s),u._sqlite3_close_v2=s=>(u._sqlite3_close_v2=re.va)(s),u._sqlite3_create_function_v2=(s,c,d,S,k,O,M,ae,Ee)=>(u._sqlite3_create_function_v2=re.wa)(s,c,d,S,k,O,M,ae,Ee),u._sqlite3_open=(s,c)=>(u._sqlite3_open=re.xa)(s,c);var gl=u._malloc=s=>(gl=u._malloc=re.ya)(s),yl=u._free=s=>(yl=u._free=re.za)(s);u._RegisterExtensionFunctions=s=>(u._RegisterExtensionFunctions=re.Ba)(s);var xd=(s,c)=>(xd=re.Ca)(s,c),ri=()=>(ri=re.Da)(),oi=s=>(oi=re.Ea)(s),Jn=s=>(Jn=re.Fa)(s);u.stackAlloc=Jn,u.stackSave=ri,u.stackRestore=oi,u.cwrap=(s,c,d,S)=>{var k=!d||d.every(O=>O==="number"||O==="boolean");return c!=="string"&&k&&!S?u["_"+s]:function(){return Rw(s,c,d,arguments)}},u.addFunction=vl,u.removeFunction=oo,u.UTF8ToString=rn,u.ALLOC_NORMAL=ml,u.allocate=hl,u.allocateUTF8OnStack=ka;var wl;qe=function s(){wl||Sd(),wl||(qe=s)};function Sd(){function s(){if(!wl&&(wl=!0,u.calledRun=!0,!j)){if(u.noFSInit||md||(md=!0,pd(),u.stdin=u.stdin,u.stdout=u.stdout,u.stderr=u.stderr,u.stdin?ei("stdin",u.stdin):Sa("/dev/tty","/dev/stdin"),u.stdout?ei("stdout",null,u.stdout):Sa("/dev/tty","/dev/stdout"),u.stderr?ei("stderr",null,u.stderr):Sa("/dev/tty1","/dev/stderr"),ro("/dev/stdin",0),ro("/dev/stdout",1),ro("/dev/stderr",1)),xn=!1,ut(B),u.onRuntimeInitialized&&u.onRuntimeInitialized(),u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;){var c=u.postRun.shift();ee.unshift(c)}ut(ee)}}if(!(0"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.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,p,m){var h=new XMLHttpRequest;h.open("GET",u),h.responseType="blob",h.onload=function(){f(h.response,p,m)},h.onerror=function(){console.error("could not download file")},h.send()}function o(u){var p=new XMLHttpRequest;p.open("HEAD",u,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function i(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(p)}}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,a=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(u,p,m){var h=l.URL||l.webkitURL,x=document.createElement("a");p=p||u.name||"download",x.download=p,x.rel="noopener",typeof u=="string"?(x.href=u,x.origin===location.origin?i(x):o(x.href)?r(u,p,m):i(x,x.target="_blank")):(x.href=h.createObjectURL(u),setTimeout(function(){h.revokeObjectURL(x.href)},4e4),setTimeout(function(){i(x)},0))}:"msSaveOrOpenBlob"in navigator?function(u,p,m){if(p=p||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,m),p);else if(o(u))r(u,p,m);else{var h=document.createElement("a");h.href=u,h.target="_blank",setTimeout(function(){i(h)})}}:function(u,p,m,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof u=="string")return r(u,p,m);var x=u.type==="application/octet-stream",C=/constructor/i.test(l.HTMLElement)||l.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||x&&C||a)&&typeof FileReader<"u"){var R=new FileReader;R.onloadend=function(){var b=R.result;b=E?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=b:location=b,h=null},R.readAsDataURL(u)}else{var y=l.URL||l.webkitURL,g=y.createObjectURL(u);h?h.location=g:location.href=g,h=null,setTimeout(function(){y.revokeObjectURL(g)},4e4)}});l.saveAs=f.saveAs=f,e.exports=f})})(Gv);var Kv=Gv.exports;const aE=async e=>{try{const t=await e.arrayBuffer(),n=await sE({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}},_f=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),[]}},uE=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 js(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 cE=e=>{try{return e.export()}catch(t){throw console.error("Failed to export database:",t),t}},Qv=(e,t)=>{const n=e.join(","),r=t.map(o=>e.map(i=>`"${o[i]}"`).join(","));return[n,...r].join(` +`)},fE=(e,t)=>{const r=_f(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}=js(o),a=Qv(l,i),f=new Blob([a],{type:"text/csv;charset=utf-8;"});Kv.saveAs(f,`${r}.csv`)}catch(o){throw console.error(`Failed to export table "${r}" as CSV:`,o),o}},dE=e=>{_f(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}=js(r),l=Qv(i,o),a=new Blob([l],{type:"text/csv;charset=utf-8;"});Kv.saveAs(a,`${n}.csv`)}catch(r){console.error(`Failed to export table "${n}" as CSV:`,r)}})},Jr=rE((e,t)=>({db:null,isLoading:!1,queryError:null,tables:[],selectedTable:"0",tableSchemas:{},loadDatabase:async n=>{e({isLoading:!0,queryError:null});try{const r=await aE(n);e({db:r});const i=_f(r).map(async u=>{const p=r.exec(`SELECT COUNT(*) FROM "${u}"`),m=parseInt(p[0].values[0][0],10),h=await uE(r,u);return{name:u,count:m,schema:h}}),l=await Promise.all(i),a=l.map(({name:u,count:p})=>({name:u,count:p})),f=l.reduce((u,{name:p,schema:m})=>(u[p]=m,u),{});e({tables:a,tableSchemas:f,isLoading:!1})}catch(r){console.error("Failed to load database:",r),e({isLoading:!1,queryError:"Failed to load database"})}},query:n=>{const r=t().db;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}),rowPerPageOrAuto:"auto",setRowPerPageOrAuto:n=>e({rowPerPageOrAuto:n}),downloadDatabase:()=>{const n=t().db;if(n){const r=cE(n),o=new Blob([r],{type:"application/octet-stream"}),i=URL.createObjectURL(o),l=document.createElement("a");l.href=i,l.download="database.sqlite",l.click(),URL.revokeObjectURL(i)}else console.warn("Database is not loaded.")},exportTableAsCSV:n=>{const r=t().db;r?fE(r,n):console.warn("Database is not loaded.")},exportAllTablesAsCSV:()=>{const n=t().db;return n?(dE(n),{}):(console.warn("Database is not loaded."),{})},isCustomQuery:!1,setIsCustomQuery:n=>e({isCustomQuery:n})}));function Yv(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;ta(i)))==null?void 0:l.classGroupId}const Up=/^\[(.+)\]$/;function hE(e){if(Up.test(e)){const t=Up.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function vE(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return yE(Object.entries(e.classGroups),n).forEach(([i,l])=>{uc(l,r,i,t)}),r}function uc(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Wp(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(gE(o)){uc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{uc(l,Wp(t,i),n,r)})})}function Wp(e,t){let n=e;return t.split(kf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function gE(e){return e.isThemeGetter}function yE(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,a])=>[t+l,a])):i);return[n,o]}):e}function wE(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 Zv="!";function xE(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(l){const a=[];let f=0,u=0,p;for(let E=0;Eu?p-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:C}}}function SE(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 EE(e){return{cache:wE(e.cacheSize),splitModifiers:xE(e),...mE(e)}}const bE=/\s+/;function CE(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(bE).map(l=>{const{modifiers:a,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:p}=n(l);let m=r(p?u.substring(0,p):u),h=!!p;if(!m){if(!p)return{isTailwindClass:!1,originalClassName:l};if(m=r(u),!m)return{isTailwindClass:!1,originalClassName:l};h=!1}const x=SE(a).join(":");return{isTailwindClass:!0,modifierId:f?x+Zv:x,classGroupId:m,originalClassName:l,hasPostfixModifier:h}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:a,classGroupId:f,hasPostfixModifier:u}=l,p=a+f;return i.has(p)?!1:(i.add(p),o(f,u).forEach(m=>i.add(a+m)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function _E(){let e=0,t,n,r="";for(;em(p),e());return n=EE(u),r=n.cache.get,o=n.cache.set,i=a,a(f)}function a(f){const u=r(f);if(u)return u;const p=CE(f,n);return o(f,p),p}return function(){return i(_E.apply(null,arguments))}}function ze(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const eg=/^\[(?:([a-z-]+):)?(.+)\]$/i,RE=/^\d+\/\d+$/,PE=new Set(["px","full","screen"]),TE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NE=/\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$/,AE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,DE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function On(e){return Fr(e)||PE.has(e)||RE.test(e)}function tr(e){return Bo(e,"length",HE)}function Fr(e){return!!e&&!Number.isNaN(Number(e))}function Fl(e){return Bo(e,"number",Fr)}function mi(e){return!!e&&Number.isInteger(Number(e))}function jE(e){return e.endsWith("%")&&Fr(e.slice(0,-1))}function pe(e){return eg.test(e)}function nr(e){return TE.test(e)}const ME=new Set(["length","size","percentage"]);function IE(e){return Bo(e,ME,tg)}function LE(e){return Bo(e,"position",tg)}const FE=new Set(["image","url"]);function zE(e){return Bo(e,FE,WE)}function $E(e){return Bo(e,"",UE)}function hi(){return!0}function Bo(e,t,n){const r=eg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function HE(e){return NE.test(e)&&!AE.test(e)}function tg(){return!1}function UE(e){return DE.test(e)}function WE(e){return OE.test(e)}function BE(){const e=ze("colors"),t=ze("spacing"),n=ze("blur"),r=ze("brightness"),o=ze("borderColor"),i=ze("borderRadius"),l=ze("borderSpacing"),a=ze("borderWidth"),f=ze("contrast"),u=ze("grayscale"),p=ze("hueRotate"),m=ze("invert"),h=ze("gap"),x=ze("gradientColorStops"),C=ze("gradientColorStopPositions"),E=ze("inset"),R=ze("margin"),y=ze("opacity"),g=ze("padding"),b=ze("saturate"),_=ze("scale"),P=ze("sepia"),D=ze("skew"),T=ze("space"),A=ze("translate"),j=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",pe,t],H=()=>[pe,t],F=()=>["",On,tr],W=()=>["auto",Fr,pe],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",pe],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[Fr,Fl],ue=()=>[Fr,pe];return{cacheSize:500,separator:":",theme:{colors:[hi],spacing:[On,tr],blur:["none","",nr,pe],brightness:se(),borderColor:[e],borderRadius:["none","","full",nr,pe],borderSpacing:H(),borderWidth:F(),contrast:se(),grayscale:B(),hueRotate:ue(),invert:B(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[jE,tr],inset:V(),margin:V(),opacity:se(),padding:H(),saturate:se(),scale:se(),sepia:B(),skew:ue(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[nr]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"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(),pe]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mi,pe]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",mi,pe]}],"grid-cols":[{"grid-cols":[hi]}],"col-start-end":[{col:["auto",{span:["full",mi,pe]},pe]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[hi]}],"row-start-end":[{row:["auto",{span:[mi,pe]},pe]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"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":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,t]}],"min-w":[{"min-w":[pe,t,"min","max","fit"]}],"max-w":[{"max-w":[pe,t,"none","full","min","max","fit","prose",{screen:[nr]},nr]}],h:[{h:[pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",nr,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fl]}],"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",pe]}],"line-clamp":[{"line-clamp":["none",Fr,Fl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",On,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"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:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",On,tr]}],"underline-offset":[{"underline-offset":["auto",On,pe]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],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",pe]}],"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(),LE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",IE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:le()}],"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:["",...le()]}],"outline-offset":[{"outline-offset":[On,pe]}],"outline-w":[{outline:[On,tr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[On,tr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nr,$E]}],"shadow-color":[{shadow:[hi]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",nr,pe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],saturate:[{saturate:[b]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"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",pe]}],duration:[{duration:ue()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[mi,pe]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"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",pe]}],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",pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[On,tr,Fl]}],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 VE=kE(BE);function Se(...e){return VE(pE(e))}const Rf=v.forwardRef(({className:e,type:t,...n},r)=>w.jsx("input",{type:t,className:Se("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}));Rf.displayName="Input";function qE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ng(...e){return t=>e.forEach(n=>qE(n,t))}function Ve(...e){return v.useCallback(ng(...e),e)}var qr=v.forwardRef((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(GE);if(i){const l=i.props.children,a=o.map(f=>f===i?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:f);return w.jsx(cc,{...r,ref:t,children:v.isValidElement(l)?v.cloneElement(l,void 0,a):null})}return w.jsx(cc,{...r,ref:t,children:n})});qr.displayName="Slot";var cc=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const o=QE(n);return v.cloneElement(n,{...KE(r,n.props),ref:t?ng(t,o):o})}return v.Children.count(n)>1?v.Children.only(null):null});cc.displayName="SlotClone";var rg=({children:e})=>w.jsx(w.Fragment,{children:e});function GE(e){return v.isValidElement(e)&&e.type===rg}function KE(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]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function QE(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 og(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,Vp=YE,ig=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Vp(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 p=n==null?void 0:n[u],m=i==null?void 0:i[u];if(p===null)return null;const h=Bp(p)||Bp(m);return o[u][h]}),a=n&&Object.entries(n).reduce((u,p)=>{let[m,h]=p;return h===void 0||(u[m]=h),u},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:m,className:h,...x}=p;return Object.entries(x).every(C=>{let[E,R]=C;return Array.isArray(R)?R.includes({...i,...a}[E]):{...i,...a}[E]===R})?[...u,m,h]:u},[]);return Vp(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},Pf=ig("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"}}),Dt=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?qr:"button";return w.jsx(l,{className:Se(Pf({variant:t,size:n,className:e})),ref:i,...o})});Dt.displayName="Button";/** * @license lucide-react v0.396.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=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ig=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** + */const XE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lg=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var XE={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 ZE={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.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ZE=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...a},f)=>v.createElement("svg",{ref:f,...XE,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ig("lucide",o),...a},[...l.map(([u,p])=>v.createElement(u,p)),...Array.isArray(i)?i:[i]]));/** + */const JE=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...a},f)=>v.createElement("svg",{ref:f,...ZE,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:lg("lucide",o),...a},[...l.map(([u,p])=>v.createElement(u,p)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const at=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(ZE,{ref:i,iconNode:t,className:ig(`lucide-${YE(e)}`,r),...o}));return n.displayName=`${e}`,n};/** + */const at=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(JE,{ref:i,iconNode:t,className:lg(`lucide-${XE(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const JE=at("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + */const eb=at("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const lg=at("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + */const sg=at("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const eb=at("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** + */const tb=at("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const tb=at("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + */const nb=at("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const nb=at("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + */const rb=at("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const rb=at("Clock9",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 7.5 12",key:"1k60p0"}]]);/** + */const ob=at("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.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ob=at("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 ib=at("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.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ib=at("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** + */const lb=at("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const lb=at("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + */const sb=at("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const sb=at("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 ab=at("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.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ab=at("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** + */const ub=at("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ub=at("KeySquare",[["path",{d:"M12.4 2.7c.9-.9 2.5-.9 3.4 0l5.5 5.5c.9.9.9 2.5 0 3.4l-3.7 3.7c-.9.9-2.5.9-3.4 0L8.7 9.8c-.9-.9-.9-2.5 0-3.4Z",key:"9li5bk"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M9.4 10.6 2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4",key:"1ym3zm"}]]);/** + */const cb=at("KeySquare",[["path",{d:"M12.4 2.7c.9-.9 2.5-.9 3.4 0l5.5 5.5c.9.9.9 2.5 0 3.4l-3.7 3.7c-.9.9-2.5.9-3.4 0L8.7 9.8c-.9-.9-.9-2.5 0-3.4Z",key:"9li5bk"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M9.4 10.6 2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4",key:"1ym3zm"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const cb=at("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 fb=at("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.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const fb=at("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 db=at("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.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const db=at("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** + */const pb=at("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const pb=at("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** + */const mb=at("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** * @license lucide-react v0.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const mb=at("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 hb=at("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.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const hb=at("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 vb=at("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.396.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const vb=at("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 gb({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 w.jsx("section",{className:"fixed bottom-[8px] left-0 right-0 w-[270px] mx-auto z-10",children:w.jsxs("div",{className:"flex justify-between gap-2 bg-secondary p-[6px] border rounded",children:[w.jsx(Dt,{onClick:a,disabled:i===1,children:w.jsx(eb,{className:"h-4 w-4"})}),w.jsxs("span",{className:"text-sm flex items-center justify-center",children:["Page ",i," of ",o]}),w.jsx(Dt,{onClick:l,disabled:i>=o,children:w.jsx(tb,{className:"h-4 w-4"})})]})})}function Vp(e,[t,n]){return Math.min(n,Math.max(t,e))}function be(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 yb(e,t){const n=v.createContext(t);function r(i){const{children:l,...a}=i,f=v.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:f,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 a=v.createContext(l),f=n.length;n=[...n,l];function u(m){const{scope:h,children:x,...C}=m,E=(h==null?void 0:h[e][f])||a,R=v.useMemo(()=>C,Object.values(C));return w.jsx(E.Provider,{value:R,children:x})}function p(m,h){const x=(h==null?void 0:h[e][f])||a,C=v.useContext(x);if(C)return C;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,p]}const o=()=>{const i=n.map(l=>v.createContext(l));return function(a){const f=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:f}}),[a,f])}};return o.scopeName=e,[r,wb(o,...t)]}function wb(...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((a,{useScope:f,scopeName:u})=>{const m=f(i)[`__scope${u}`];return{...a,...m}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function xb(e){const t=e+"CollectionProvider",[n,r]=Vo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=x=>{const{scope:C,children:E}=x,R=Q.useRef(null),y=Q.useRef(new Map).current;return w.jsx(o,{scope:C,itemMap:y,collectionRef:R,children:E})};l.displayName=t;const a=e+"CollectionSlot",f=Q.forwardRef((x,C)=>{const{scope:E,children:R}=x,y=i(a,E),g=Ve(C,y.collectionRef);return w.jsx(qr,{ref:g,children:R})});f.displayName=a;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=Q.forwardRef((x,C)=>{const{scope:E,children:R,...y}=x,g=Q.useRef(null),b=Ve(C,g),_=i(u,E);return Q.useEffect(()=>(_.itemMap.set(g,{ref:g,...y}),()=>void _.itemMap.delete(g))),w.jsx(qr,{[p]:"",ref:b,children:R})});m.displayName=u;function h(x){const C=i(e+"CollectionConsumer",x);return Q.useCallback(()=>{const R=C.collectionRef.current;if(!R)return[];const y=Array.from(R.querySelectorAll(`[${p}]`));return Array.from(C.itemMap.values()).sort((_,P)=>y.indexOf(_.ref.current)-y.indexOf(P.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:l,Slot:f,ItemSlot:m},h,r]}var Sb=v.createContext(void 0);function Eb(e){const t=v.useContext(Sb);return e||t||"ltr"}var bb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Me=bb.reduce((e,t)=>{const n=v.forwardRef((r,o)=>{const{asChild:i,...l}=r,a=i?qr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(a,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Cb(e,t){e&&Zr.flushSync(()=>e.dispatchEvent(t))}function Bn(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 _b(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(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 kb="DismissableLayer",fc="dismissableLayer.update",Rb="dismissableLayer.pointerDownOutside",Pb="dismissableLayer.focusOutside",qp,sg=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ca=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:a,...f}=e,u=v.useContext(sg),[p,m]=v.useState(null),h=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=v.useState({}),C=Ve(t,N=>m(N)),E=Array.from(u.layers),[R]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=E.indexOf(R),g=p?E.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,_=g>=y,P=Ab(N=>{const A=N.target,j=[...u.branches].some(I=>I.contains(A));!_||j||(o==null||o(N),l==null||l(N),N.defaultPrevented||a==null||a())},h),D=Db(N=>{const A=N.target;[...u.branches].some(I=>I.contains(A))||(i==null||i(N),l==null||l(N),N.defaultPrevented||a==null||a())},h);return _b(N=>{g===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&a&&(N.preventDefault(),a()))},h),v.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Gp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=qp)}},[p,h,n,u]),v.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Gp())},[p,u]),v.useEffect(()=>{const N=()=>x({});return document.addEventListener(fc,N),()=>document.removeEventListener(fc,N)},[]),w.jsx(Me.div,{...f,ref:C,style:{pointerEvents:b?_?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,D.onFocusCapture),onBlurCapture:be(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,P.onPointerDownCapture)})});ca.displayName=kb;var Nb="DismissableLayerBranch",Tb=v.forwardRef((e,t)=>{const n=v.useContext(sg),r=v.useRef(null),o=Ve(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(Me.div,{...e,ref:o})});Tb.displayName=Nb;function Ab(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let f=function(){ag(Rb,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}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 Db(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&ag(Pb,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 Gp(){const e=new CustomEvent(fc);document.dispatchEvent(e)}function ag(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?Cb(o,i):o.dispatchEvent(i)}var ru=0;function ug(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Kp()),document.body.insertAdjacentElement("beforeend",e[1]??Kp()),ru++,()=>{ru===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ru--}},[])}function Kp(){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 ou="focusScope.autoFocusOnMount",iu="focusScope.autoFocusOnUnmount",Qp={bubbles:!1,cancelable:!0},Ob="FocusScope",Pf=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,f]=v.useState(null),u=Bn(o),p=Bn(i),m=v.useRef(null),h=Ve(t,E=>f(E)),x=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let E=function(b){if(x.paused||!a)return;const _=b.target;a.contains(_)?m.current=_:rr(m.current,{select:!0})},R=function(b){if(x.paused||!a)return;const _=b.relatedTarget;_!==null&&(a.contains(_)||rr(m.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const P of b)P.removedNodes.length>0&&rr(a)};document.addEventListener("focusin",E),document.addEventListener("focusout",R);const g=new MutationObserver(y);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",R),g.disconnect()}}},[r,a,x.paused]),v.useEffect(()=>{if(a){Xp.add(x);const E=document.activeElement;if(!a.contains(E)){const y=new CustomEvent(ou,Qp);a.addEventListener(ou,u),a.dispatchEvent(y),y.defaultPrevented||(jb(zb(cg(a)),{select:!0}),document.activeElement===E&&rr(a))}return()=>{a.removeEventListener(ou,u),setTimeout(()=>{const y=new CustomEvent(iu,Qp);a.addEventListener(iu,p),a.dispatchEvent(y),y.defaultPrevented||rr(E??document.body,{select:!0}),a.removeEventListener(iu,p),Xp.remove(x)},0)}}},[a,u,p,x]);const C=v.useCallback(E=>{if(!n&&!r||x.paused)return;const R=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,y=document.activeElement;if(R&&y){const g=E.currentTarget,[b,_]=Mb(g);b&&_?!E.shiftKey&&y===_?(E.preventDefault(),n&&rr(b,{select:!0})):E.shiftKey&&y===b&&(E.preventDefault(),n&&rr(_,{select:!0})):y===g&&E.preventDefault()}},[n,r,x.paused]);return w.jsx(Me.div,{tabIndex:-1,...l,ref:h,onKeyDown:C})});Pf.displayName=Ob;function jb(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rr(r,{select:t}),document.activeElement!==n)return}function Mb(e){const t=cg(e),n=Yp(t,e),r=Yp(t.reverse(),e);return[n,r]}function cg(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 Yp(e,t){for(const n of e)if(!Ib(n,{upTo:t}))return n}function Ib(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 Lb(e){return e instanceof HTMLInputElement&&"select"in e}function rr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Lb(e)&&t&&e.select()}}var Xp=Fb();function Fb(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zp(e,t),e.unshift(t)},remove(t){var n;e=Zp(e,t),(n=e[0])==null||n.resume()}}}function Zp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zb(e){return e.filter(t=>t.tagName!=="A")}var kt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},$b=y1.useId||(()=>{}),Hb=0;function Po(e){const[t,n]=v.useState($b());return kt(()=>{n(r=>r??String(Hb++))},[e]),t?`radix-${t}`:""}const Ub=["top","right","bottom","left"],Rn=Math.min,Ut=Math.max,Ms=Math.round,zl=Math.floor,xr=e=>({x:e,y:e}),Wb={left:"right",right:"left",bottom:"top",top:"bottom"},Bb={start:"end",end:"start"};function dc(e,t,n){return Ut(e,Rn(t,n))}function Vn(e,t){return typeof e=="function"?e(t):e}function qn(e){return e.split("-")[0]}function qo(e){return e.split("-")[1]}function Nf(e){return e==="x"?"y":"x"}function Tf(e){return e==="y"?"height":"width"}function Go(e){return["top","bottom"].includes(qn(e))?"y":"x"}function Af(e){return Nf(Go(e))}function Vb(e,t,n){n===void 0&&(n=!1);const r=qo(e),o=Af(e),i=Tf(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Is(l)),[l,Is(l)]}function qb(e){const t=Is(e);return[pc(e),t,pc(t)]}function pc(e){return e.replace(/start|end/g,t=>Bb[t])}function Gb(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 Kb(e,t,n,r){const o=qo(e);let i=Gb(qn(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(pc)))),i}function Is(e){return e.replace(/left|right|bottom|top/g,t=>Wb[t])}function Qb(e){return{top:0,right:0,bottom:0,left:0,...e}}function fg(e){return typeof e!="number"?Qb(e):{top:e,right:e,bottom:e,left:e}}function Ls(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 Jp(e,t,n){let{reference:r,floating:o}=e;const i=Go(t),l=Af(t),a=Tf(l),f=qn(t),u=i==="y",p=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let x;switch(f){case"top":x={x:p,y:r.y-o.height};break;case"bottom":x={x:p,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:m};break;case"left":x={x:r.x-o.width,y:m};break;default:x={x:r.x,y:r.y}}switch(qo(t)){case"start":x[l]-=h*(n&&u?-1:1);break;case"end":x[l]+=h*(n&&u?-1:1);break}return x}const Yb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:m}=Jp(u,r,f),h=r,x={},C=0;for(let E=0;E({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:f}=t,{element:u,padding:p=0}=Vn(e,t)||{};if(u==null)return{};const m=fg(p),h={x:n,y:r},x=Af(o),C=Tf(x),E=await l.getDimensions(u),R=x==="y",y=R?"top":"left",g=R?"bottom":"right",b=R?"clientHeight":"clientWidth",_=i.reference[C]+i.reference[x]-h[x]-i.floating[C],P=h[x]-i.reference[x],D=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let N=D?D[b]:0;(!N||!await(l.isElement==null?void 0:l.isElement(D)))&&(N=a.floating[b]||i.floating[C]);const A=_/2-P/2,j=N/2-E[C]/2-1,I=Rn(m[y],j),V=Rn(m[g],j),H=I,F=N-E[C]-V,W=N/2-E[C]/2+A,Z=dc(H,W,F),le=!f.arrow&&qo(o)!=null&&W!==Z&&i.reference[C]/2-(WH<=0)){var j,I;const H=(((j=i.flip)==null?void 0:j.index)||0)+1,F=P[H];if(F)return{data:{index:H,overflows:A},reset:{placement:F}};let W=(I=A.filter(Z=>Z.overflows[0]<=0).sort((Z,le)=>Z.overflows[1]-le.overflows[1])[0])==null?void 0:I.placement;if(!W)switch(x){case"bestFit":{var V;const Z=(V=A.map(le=>[le.placement,le.overflows.filter(ne=>ne>0).reduce((ne,z)=>ne+z,0)]).sort((le,ne)=>le[1]-ne[1])[0])==null?void 0:V[0];Z&&(W=Z);break}case"initialPlacement":W=a;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function em(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tm(e){return Ub.some(t=>e[t]>=0)}const Jb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Vn(e,t);switch(r){case"referenceHidden":{const i=await Qi(t,{...o,elementContext:"reference"}),l=em(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:tm(l)}}}case"escaped":{const i=await Qi(t,{...o,altBoundary:!0}),l=em(i,n.floating);return{data:{escapedOffsets:l,escaped:tm(l)}}}default:return{}}}}};async function e2(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=qn(n),a=qo(n),f=Go(n)==="y",u=["left","top"].includes(l)?-1:1,p=i&&f?-1:1,m=Vn(t,e);let{mainAxis:h,crossAxis:x,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return a&&typeof C=="number"&&(x=a==="end"?C*-1:C),f?{x:x*p,y:h*u}:{x:h*u,y:x*p}}const t2=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:a}=t,f=await e2(t,e);return l===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:l}}}}},n2=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:a={fn:R=>{let{x:y,y:g}=R;return{x:y,y:g}}},...f}=Vn(e,t),u={x:n,y:r},p=await Qi(t,f),m=Go(qn(o)),h=Nf(m);let x=u[h],C=u[m];if(i){const R=h==="y"?"top":"left",y=h==="y"?"bottom":"right",g=x+p[R],b=x-p[y];x=dc(g,x,b)}if(l){const R=m==="y"?"top":"left",y=m==="y"?"bottom":"right",g=C+p[R],b=C-p[y];C=dc(g,C,b)}const E=a.fn({...t,[h]:x,[m]:C});return{...E,data:{x:E.x-n,y:E.y-r}}}}},r2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:f=!0,crossAxis:u=!0}=Vn(e,t),p={x:n,y:r},m=Go(o),h=Nf(m);let x=p[h],C=p[m];const E=Vn(a,t),R=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(f){const b=h==="y"?"height":"width",_=i.reference[h]-i.floating[b]+R.mainAxis,P=i.reference[h]+i.reference[b]-R.mainAxis;x<_?x=_:x>P&&(x=P)}if(u){var y,g;const b=h==="y"?"width":"height",_=["top","left"].includes(qn(o)),P=i.reference[m]-i.floating[b]+(_&&((y=l.offset)==null?void 0:y[m])||0)+(_?0:R.crossAxis),D=i.reference[m]+i.reference[b]+(_?0:((g=l.offset)==null?void 0:g[m])||0)-(_?R.crossAxis:0);CD&&(C=D)}return{[h]:x,[m]:C}}}},o2=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=()=>{},...a}=Vn(e,t),f=await Qi(t,a),u=qn(n),p=qo(n),m=Go(n)==="y",{width:h,height:x}=r.floating;let C,E;u==="top"||u==="bottom"?(C=u,E=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(E=u,C=p==="end"?"top":"bottom");const R=x-f.top-f.bottom,y=h-f.left-f.right,g=Rn(x-f[C],R),b=Rn(h-f[E],y),_=!t.middlewareData.shift;let P=g,D=b;if(m?D=p||_?Rn(b,y):y:P=p||_?Rn(g,R):R,_&&!p){const A=Ut(f.left,0),j=Ut(f.right,0),I=Ut(f.top,0),V=Ut(f.bottom,0);m?D=h-2*(A!==0||j!==0?A+j:Ut(f.left,f.right)):P=x-2*(I!==0||V!==0?I+V:Ut(f.top,f.bottom))}await l({...t,availableWidth:D,availableHeight:P});const N=await o.getDimensions(i.floating);return h!==N.width||x!==N.height?{reset:{rects:!0}}:{}}}};function Ko(e){return dg(e)?(e.nodeName||"").toLowerCase():"#document"}function Vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kn(e){var t;return(t=(dg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dg(e){return e instanceof Node||e instanceof Vt(e).Node}function Tn(e){return e instanceof Element||e instanceof Vt(e).Element}function An(e){return e instanceof HTMLElement||e instanceof Vt(e).HTMLElement}function nm(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vt(e).ShadowRoot}function ol(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function i2(e){return["table","td","th"].includes(Ko(e))}function Df(e){const t=Of(),n=hn(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 l2(e){let t=Sr(e);for(;An(t)&&!$o(t);){if(Df(t))return t;t=Sr(t)}return null}function Of(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $o(e){return["html","body","#document"].includes(Ko(e))}function hn(e){return Vt(e).getComputedStyle(e)}function fa(e){return Tn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sr(e){if(Ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nm(e)&&e.host||Kn(e);return nm(t)?t.host:t}function pg(e){const t=Sr(e);return $o(t)?e.ownerDocument?e.ownerDocument.body:e.body:An(t)&&ol(t)?t:pg(t)}function Yi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=pg(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Vt(o);return i?t.concat(l,l.visualViewport||[],ol(o)?o:[],l.frameElement&&n?Yi(l.frameElement):[]):t.concat(o,Yi(o,[],n))}function mg(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=An(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=Ms(n)!==i||Ms(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function jf(e){return Tn(e)?e:e.contextElement}function No(e){const t=jf(e);if(!An(t))return xr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=mg(t);let l=(i?Ms(n.width):n.width)/r,a=(i?Ms(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const s2=xr(0);function hg(e){const t=Vt(e);return!Of()||!t.visualViewport?s2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function a2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vt(e)?!1:t}function Gr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=jf(e);let l=xr(1);t&&(r?Tn(r)&&(l=No(r)):l=No(e));const a=a2(i,n,r)?hg(i):xr(0);let f=(o.left+a.x)/l.x,u=(o.top+a.y)/l.y,p=o.width/l.x,m=o.height/l.y;if(i){const h=Vt(i),x=r&&Tn(r)?Vt(r):r;let C=h,E=C.frameElement;for(;E&&r&&x!==C;){const R=No(E),y=E.getBoundingClientRect(),g=hn(E),b=y.left+(E.clientLeft+parseFloat(g.paddingLeft))*R.x,_=y.top+(E.clientTop+parseFloat(g.paddingTop))*R.y;f*=R.x,u*=R.y,p*=R.x,m*=R.y,f+=b,u+=_,C=Vt(E),E=C.frameElement}}return Ls({width:p,height:m,x:f,y:u})}const u2=[":popover-open",":modal"];function Mf(e){return u2.some(t=>{try{return e.matches(t)}catch{return!1}})}function c2(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=Kn(r),a=t?Mf(t.floating):!1;if(r===l||a&&i)return n;let f={scrollLeft:0,scrollTop:0},u=xr(1);const p=xr(0),m=An(r);if((m||!m&&!i)&&((Ko(r)!=="body"||ol(l))&&(f=fa(r)),An(r))){const h=Gr(r);u=No(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+p.x,y:n.y*u.y-f.scrollTop*u.y+p.y}}function f2(e){return Array.from(e.getClientRects())}function vg(e){return Gr(Kn(e)).left+fa(e).scrollLeft}function d2(e){const t=Kn(e),n=fa(e),r=e.ownerDocument.body,o=Ut(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ut(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+vg(e);const a=-n.scrollTop;return hn(r).direction==="rtl"&&(l+=Ut(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}function p2(e,t){const n=Vt(e),r=Kn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,f=0;if(o){i=o.width,l=o.height;const u=Of();(!u||u&&t==="fixed")&&(a=o.offsetLeft,f=o.offsetTop)}return{width:i,height:l,x:a,y:f}}function m2(e,t){const n=Gr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=An(e)?No(e):xr(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,f=o*i.x,u=r*i.y;return{width:l,height:a,x:f,y:u}}function rm(e,t,n){let r;if(t==="viewport")r=p2(e,n);else if(t==="document")r=d2(Kn(e));else if(Tn(t))r=m2(t,n);else{const o=hg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ls(r)}function gg(e,t){const n=Sr(e);return n===t||!Tn(n)||$o(n)?!1:hn(n).position==="fixed"||gg(n,t)}function h2(e,t){const n=t.get(e);if(n)return n;let r=Yi(e,[],!1).filter(a=>Tn(a)&&Ko(a)!=="body"),o=null;const i=hn(e).position==="fixed";let l=i?Sr(e):e;for(;Tn(l)&&!$o(l);){const a=hn(l),f=Df(l);!f&&a.position==="fixed"&&(o=null),(i?!f&&!o:!f&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ol(l)&&!f&&gg(e,l))?r=r.filter(p=>p!==l):o=a,l=Sr(l)}return t.set(e,r),r}function v2(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Mf(t)?[]:h2(t,this._c):[].concat(n),r],a=l[0],f=l.reduce((u,p)=>{const m=rm(t,p,o);return u.top=Ut(m.top,u.top),u.right=Rn(m.right,u.right),u.bottom=Rn(m.bottom,u.bottom),u.left=Ut(m.left,u.left),u},rm(t,a,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function g2(e){const{width:t,height:n}=mg(e);return{width:t,height:n}}function y2(e,t,n){const r=An(t),o=Kn(t),i=n==="fixed",l=Gr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const f=xr(0);if(r||!r&&!i)if((Ko(t)!=="body"||ol(o))&&(a=fa(t)),r){const m=Gr(t,!0,i,t);f.x=m.x+t.clientLeft,f.y=m.y+t.clientTop}else o&&(f.x=vg(o));const u=l.left+a.scrollLeft-f.x,p=l.top+a.scrollTop-f.y;return{x:u,y:p,width:l.width,height:l.height}}function lu(e){return hn(e).position==="static"}function om(e,t){return!An(e)||hn(e).position==="fixed"?null:t?t(e):e.offsetParent}function yg(e,t){const n=Vt(e);if(Mf(e))return n;if(!An(e)){let o=Sr(e);for(;o&&!$o(o);){if(Tn(o)&&!lu(o))return o;o=Sr(o)}return n}let r=om(e,t);for(;r&&i2(r)&&lu(r);)r=om(r,t);return r&&$o(r)&&lu(r)&&!Df(r)?n:r||l2(e)||n}const w2=async function(e){const t=this.getOffsetParent||yg,n=this.getDimensions,r=await n(e.floating);return{reference:y2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function x2(e){return hn(e).direction==="rtl"}const S2={convertOffsetParentRelativeRectToViewportRelativeRect:c2,getDocumentElement:Kn,getClippingRect:v2,getOffsetParent:yg,getElementRects:w2,getClientRects:f2,getDimensions:g2,getScale:No,isElement:Tn,isRTL:x2};function E2(e,t){let n=null,r;const o=Kn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function l(a,f){a===void 0&&(a=!1),f===void 0&&(f=1),i();const{left:u,top:p,width:m,height:h}=e.getBoundingClientRect();if(a||t(),!m||!h)return;const x=zl(p),C=zl(o.clientWidth-(u+m)),E=zl(o.clientHeight-(p+h)),R=zl(u),g={rootMargin:-x+"px "+-C+"px "+-E+"px "+-R+"px",threshold:Ut(0,Rn(1,f))||1};let b=!0;function _(P){const D=P[0].intersectionRatio;if(D!==f){if(!b)return l();D?l(!1,D):r=setTimeout(()=>{l(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return l(!0),i}function b2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=jf(e),p=o||i?[...u?Yi(u):[],...Yi(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const m=u&&a?E2(u,n):null;let h=-1,x=null;l&&(x=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&x&&(x.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=x)==null||b.observe(t)})),n()}),u&&!f&&x.observe(u),x.observe(t));let C,E=f?Gr(e):null;f&&R();function R(){const y=Gr(e);E&&(y.x!==E.x||y.y!==E.y||y.width!==E.width||y.height!==E.height)&&n(),E=y,C=requestAnimationFrame(R)}return n(),()=>{var y;p.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),m==null||m(),(y=x)==null||y.disconnect(),x=null,f&&cancelAnimationFrame(C)}}const C2=t2,_2=n2,k2=Zb,R2=o2,P2=Jb,im=Xb,N2=r2,T2=(e,t,n)=>{const r=new Map,o={platform:S2,...n},i={...o.platform,_c:r};return Yb(e,t,{...o,platform:i})};var ss=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Fs(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(!Fs(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)&&!Fs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lm(e,t){const n=wg(e);return Math.round(t*n)/n}function sm(e){const t=v.useRef(e);return ss(()=>{t.current=e}),t}function A2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:f,open:u}=e,[p,m]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,x]=v.useState(r);Fs(h,r)||x(r);const[C,E]=v.useState(null),[R,y]=v.useState(null),g=v.useCallback(ne=>{ne!==D.current&&(D.current=ne,E(ne))},[]),b=v.useCallback(ne=>{ne!==N.current&&(N.current=ne,y(ne))},[]),_=i||C,P=l||R,D=v.useRef(null),N=v.useRef(null),A=v.useRef(p),j=f!=null,I=sm(f),V=sm(o),H=v.useCallback(()=>{if(!D.current||!N.current)return;const ne={placement:t,strategy:n,middleware:h};V.current&&(ne.platform=V.current),T2(D.current,N.current,ne).then(z=>{const B={...z,isPositioned:!0};F.current&&!Fs(A.current,B)&&(A.current=B,Zr.flushSync(()=>{m(B)}))})},[h,t,n,V]);ss(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,m(ne=>({...ne,isPositioned:!1})))},[u]);const F=v.useRef(!1);ss(()=>(F.current=!0,()=>{F.current=!1}),[]),ss(()=>{if(_&&(D.current=_),P&&(N.current=P),_&&P){if(I.current)return I.current(_,P,H);H()}},[_,P,H,I,j]);const W=v.useMemo(()=>({reference:D,floating:N,setReference:g,setFloating:b}),[g,b]),Z=v.useMemo(()=>({reference:_,floating:P}),[_,P]),le=v.useMemo(()=>{const ne={position:n,left:0,top:0};if(!Z.floating)return ne;const z=lm(Z.floating,p.x),B=lm(Z.floating,p.y);return a?{...ne,transform:"translate("+z+"px, "+B+"px)",...wg(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:B}},[n,a,Z.floating,p.x,p.y]);return v.useMemo(()=>({...p,update:H,refs:W,elements:Z,floatingStyles:le}),[p,H,W,Z,le])}const D2=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?im({element:r.current,padding:o}).fn(n):{}:r?im({element:r,padding:o}).fn(n):{}}}},O2=(e,t)=>({...C2(e),options:[e,t]}),j2=(e,t)=>({..._2(e),options:[e,t]}),M2=(e,t)=>({...N2(e),options:[e,t]}),I2=(e,t)=>({...k2(e),options:[e,t]}),L2=(e,t)=>({...R2(e),options:[e,t]}),F2=(e,t)=>({...P2(e),options:[e,t]}),z2=(e,t)=>({...D2(e),options:[e,t]});var $2="Arrow",xg=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return w.jsx(Me.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});xg.displayName=$2;var H2=xg;function U2(e){const[t,n]=v.useState(void 0);return kt(()=>{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,a;if("borderBoxSize"in i){const f=i.borderBoxSize,u=Array.isArray(f)?f[0]:f;l=u.inlineSize,a=u.blockSize}else l=e.offsetWidth,a=e.offsetHeight;n({width:l,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var If="Popper",[Sg,da]=Vo(If),[W2,Eg]=Sg(If),bg=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return w.jsx(W2,{scope:t,anchor:r,onAnchorChange:o,children:n})};bg.displayName=If;var Cg="PopperAnchor",_g=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Eg(Cg,n),l=v.useRef(null),a=Ve(t,l);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:w.jsx(Me.div,{...o,ref:a})});_g.displayName=Cg;var Lf="PopperContent",[B2,V2]=Sg(Lf),kg=v.forwardRef((e,t)=>{var J,ye,Ie,K,ge,de;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:a=0,avoidCollisions:f=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:x="optimized",onPlaced:C,...E}=e,R=Eg(Lf,n),[y,g]=v.useState(null),b=Ve(t,Y=>g(Y)),[_,P]=v.useState(null),D=U2(_),N=(D==null?void 0:D.width)??0,A=(D==null?void 0:D.height)??0,j=r+(i!=="center"?"-"+i:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},V=Array.isArray(u)?u:[u],H=V.length>0,F={padding:I,boundary:V.filter(G2),altBoundary:H},{refs:W,floatingStyles:Z,placement:le,isPositioned:ne,middlewareData:z}=A2({strategy:"fixed",placement:j,whileElementsMounted:(...Y)=>b2(...Y,{animationFrame:x==="always"}),elements:{reference:R.anchor},middleware:[O2({mainAxis:o+A,alignmentAxis:l}),f&&j2({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?M2():void 0,...F}),f&&I2({...F}),L2({...F,apply:({elements:Y,rects:me,availableWidth:ut,availableHeight:Je})=>{const{width:tt,height:Nt}=me.reference,ke=Y.floating.style;ke.setProperty("--radix-popper-available-width",`${ut}px`),ke.setProperty("--radix-popper-available-height",`${Je}px`),ke.setProperty("--radix-popper-anchor-width",`${tt}px`),ke.setProperty("--radix-popper-anchor-height",`${Nt}px`)}}),_&&z2({element:_,padding:a}),K2({arrowWidth:N,arrowHeight:A}),h&&F2({strategy:"referenceHidden",...F})]}),[B,ee]=Ng(le),se=Bn(C);kt(()=>{ne&&(se==null||se())},[ne,se]);const ue=(J=z.arrow)==null?void 0:J.x,qe=(ye=z.arrow)==null?void 0:ye.y,ve=((Ie=z.arrow)==null?void 0:Ie.centerOffset)!==0,[Xe,_e]=v.useState();return kt(()=>{y&&_e(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:ne?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Xe,"--radix-popper-transform-origin":[(K=z.transformOrigin)==null?void 0:K.x,(ge=z.transformOrigin)==null?void 0:ge.y].join(" "),...((de=z.hide)==null?void 0:de.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(B2,{scope:n,placedSide:B,onArrowChange:P,arrowX:ue,arrowY:qe,shouldHideArrow:ve,children:w.jsx(Me.div,{"data-side":B,"data-align":ee,...E,ref:b,style:{...E.style,animation:ne?void 0:"none"}})})})});kg.displayName=Lf;var Rg="PopperArrow",q2={top:"bottom",right:"left",bottom:"top",left:"right"},Pg=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=V2(Rg,r),l=q2[i.placedSide];return w.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:w.jsx(H2,{...o,ref:n,style:{...o.style,display:"block"}})})});Pg.displayName=Rg;function G2(e){return e!==null}var K2=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,a=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[u,p]=Ng(n),m={start:"0%",center:"50%",end:"100%"}[p],h=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,x=(((g=o.arrow)==null?void 0:g.y)??0)+f/2;let C="",E="";return u==="bottom"?(C=l?m:`${h}px`,E=`${-f}px`):u==="top"?(C=l?m:`${h}px`,E=`${r.floating.height+f}px`):u==="right"?(C=`${-f}px`,E=l?m:`${x}px`):u==="left"&&(C=`${r.floating.width+f}px`,E=l?m:`${x}px`),{data:{x:C,y:E}}}});function Ng(e){const[t,n="center"]=e.split("-");return[t,n]}var Tg=bg,Ag=_g,Dg=kg,Og=Pg,Q2="Portal",Ff=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);kt(()=>i(!0),[]);const l=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?NS.createPortal(w.jsx(Me.div,{...r,ref:t}),l):null});Ff.displayName=Q2;function zs({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Y2({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,a=Bn(n),f=v.useCallback(u=>{if(i){const m=typeof u=="function"?u(e):u;m!==e&&a(m)}else o(u)},[i,e,o,a]);return[l,f]}function Y2({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,o=v.useRef(r),i=Bn(t);return v.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function X2(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 Z2="VisuallyHidden",jg=v.forwardRef((e,t)=>w.jsx(Me.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}}));jg.displayName=Z2;var J2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lo=new WeakMap,$l=new WeakMap,Hl={},su=0,Mg=function(e){return e&&(e.host||Mg(e.parentNode))},eC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Mg(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})},tC=function(e,t,n,r){var o=eC(t,Array.isArray(e)?e:[e]);Hl[n]||(Hl[n]=new WeakMap);var i=Hl[n],l=[],a=new Set,f=new Set(o),u=function(m){!m||a.has(m)||(a.add(m),u(m.parentNode))};o.forEach(u);var p=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(h){if(a.has(h))p(h);else try{var x=h.getAttribute(r),C=x!==null&&x!=="false",E=(lo.get(h)||0)+1,R=(i.get(h)||0)+1;lo.set(h,E),i.set(h,R),l.push(h),E===1&&C&&$l.set(h,!0),R===1&&h.setAttribute(n,"true"),C||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return p(t),a.clear(),su++,function(){l.forEach(function(m){var h=lo.get(m)-1,x=i.get(m)-1;lo.set(m,h),i.set(m,x),h||($l.has(m)||m.removeAttribute(r),$l.delete(m)),x||m.removeAttribute(n)}),su--,su||(lo=new WeakMap,lo=new WeakMap,$l=new WeakMap,Hl={})}},Ig=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=J2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),tC(r,o,n,"aria-hidden")):function(){return null}},kn=function(){return kn=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(a){l={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i}function mc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r"u")return gC;var t=yC(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])}},xC=$g(),To="data-scroll-locked",SC=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(nC,` { + */const gb=at("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 yb({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 w.jsx("section",{className:"fixed bottom-[8px] left-0 right-0 w-[270px] mx-auto z-10",children:w.jsxs("div",{className:"flex justify-between gap-2 bg-secondary p-[6px] border rounded",children:[w.jsx(Dt,{onClick:a,disabled:i===1,children:w.jsx(tb,{className:"h-4 w-4"})}),w.jsxs("span",{className:"text-sm flex items-center justify-center",children:["Page ",i," of ",o]}),w.jsx(Dt,{onClick:l,disabled:i>=o,children:w.jsx(nb,{className:"h-4 w-4"})})]})})}function qp(e,[t,n]){return Math.min(n,Math.max(t,e))}function be(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 wb(e,t){const n=v.createContext(t);function r(i){const{children:l,...a}=i,f=v.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:f,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 a=v.createContext(l),f=n.length;n=[...n,l];function u(m){const{scope:h,children:x,...C}=m,E=(h==null?void 0:h[e][f])||a,R=v.useMemo(()=>C,Object.values(C));return w.jsx(E.Provider,{value:R,children:x})}function p(m,h){const x=(h==null?void 0:h[e][f])||a,C=v.useContext(x);if(C)return C;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,p]}const o=()=>{const i=n.map(l=>v.createContext(l));return function(a){const f=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:f}}),[a,f])}};return o.scopeName=e,[r,xb(o,...t)]}function xb(...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((a,{useScope:f,scopeName:u})=>{const m=f(i)[`__scope${u}`];return{...a,...m}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Sb(e){const t=e+"CollectionProvider",[n,r]=Vo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=x=>{const{scope:C,children:E}=x,R=Q.useRef(null),y=Q.useRef(new Map).current;return w.jsx(o,{scope:C,itemMap:y,collectionRef:R,children:E})};l.displayName=t;const a=e+"CollectionSlot",f=Q.forwardRef((x,C)=>{const{scope:E,children:R}=x,y=i(a,E),g=Ve(C,y.collectionRef);return w.jsx(qr,{ref:g,children:R})});f.displayName=a;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=Q.forwardRef((x,C)=>{const{scope:E,children:R,...y}=x,g=Q.useRef(null),b=Ve(C,g),_=i(u,E);return Q.useEffect(()=>(_.itemMap.set(g,{ref:g,...y}),()=>void _.itemMap.delete(g))),w.jsx(qr,{[p]:"",ref:b,children:R})});m.displayName=u;function h(x){const C=i(e+"CollectionConsumer",x);return Q.useCallback(()=>{const R=C.collectionRef.current;if(!R)return[];const y=Array.from(R.querySelectorAll(`[${p}]`));return Array.from(C.itemMap.values()).sort((_,P)=>y.indexOf(_.ref.current)-y.indexOf(P.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:l,Slot:f,ItemSlot:m},h,r]}var Eb=v.createContext(void 0);function bb(e){const t=v.useContext(Eb);return e||t||"ltr"}var Cb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Me=Cb.reduce((e,t)=>{const n=v.forwardRef((r,o)=>{const{asChild:i,...l}=r,a=i?qr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(a,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _b(e,t){e&&Zr.flushSync(()=>e.dispatchEvent(t))}function Bn(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 kb(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(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 Rb="DismissableLayer",fc="dismissableLayer.update",Pb="dismissableLayer.pointerDownOutside",Tb="dismissableLayer.focusOutside",Gp,ag=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ca=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:a,...f}=e,u=v.useContext(ag),[p,m]=v.useState(null),h=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=v.useState({}),C=Ve(t,T=>m(T)),E=Array.from(u.layers),[R]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=E.indexOf(R),g=p?E.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,_=g>=y,P=Db(T=>{const A=T.target,j=[...u.branches].some(I=>I.contains(A));!_||j||(o==null||o(T),l==null||l(T),T.defaultPrevented||a==null||a())},h),D=Ob(T=>{const A=T.target;[...u.branches].some(I=>I.contains(A))||(i==null||i(T),l==null||l(T),T.defaultPrevented||a==null||a())},h);return kb(T=>{g===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},h),v.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Kp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Gp)}},[p,h,n,u]),v.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Kp())},[p,u]),v.useEffect(()=>{const T=()=>x({});return document.addEventListener(fc,T),()=>document.removeEventListener(fc,T)},[]),w.jsx(Me.div,{...f,ref:C,style:{pointerEvents:b?_?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,D.onFocusCapture),onBlurCapture:be(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,P.onPointerDownCapture)})});ca.displayName=Rb;var Nb="DismissableLayerBranch",Ab=v.forwardRef((e,t)=>{const n=v.useContext(ag),r=v.useRef(null),o=Ve(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(Me.div,{...e,ref:o})});Ab.displayName=Nb;function Db(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let f=function(){ug(Pb,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}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 Ob(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&ug(Tb,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 Kp(){const e=new CustomEvent(fc);document.dispatchEvent(e)}function ug(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?_b(o,i):o.dispatchEvent(i)}var ru=0;function cg(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qp()),document.body.insertAdjacentElement("beforeend",e[1]??Qp()),ru++,()=>{ru===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ru--}},[])}function Qp(){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 ou="focusScope.autoFocusOnMount",iu="focusScope.autoFocusOnUnmount",Yp={bubbles:!1,cancelable:!0},jb="FocusScope",Tf=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,f]=v.useState(null),u=Bn(o),p=Bn(i),m=v.useRef(null),h=Ve(t,E=>f(E)),x=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let E=function(b){if(x.paused||!a)return;const _=b.target;a.contains(_)?m.current=_:rr(m.current,{select:!0})},R=function(b){if(x.paused||!a)return;const _=b.relatedTarget;_!==null&&(a.contains(_)||rr(m.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const P of b)P.removedNodes.length>0&&rr(a)};document.addEventListener("focusin",E),document.addEventListener("focusout",R);const g=new MutationObserver(y);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",R),g.disconnect()}}},[r,a,x.paused]),v.useEffect(()=>{if(a){Zp.add(x);const E=document.activeElement;if(!a.contains(E)){const y=new CustomEvent(ou,Yp);a.addEventListener(ou,u),a.dispatchEvent(y),y.defaultPrevented||(Mb($b(fg(a)),{select:!0}),document.activeElement===E&&rr(a))}return()=>{a.removeEventListener(ou,u),setTimeout(()=>{const y=new CustomEvent(iu,Yp);a.addEventListener(iu,p),a.dispatchEvent(y),y.defaultPrevented||rr(E??document.body,{select:!0}),a.removeEventListener(iu,p),Zp.remove(x)},0)}}},[a,u,p,x]);const C=v.useCallback(E=>{if(!n&&!r||x.paused)return;const R=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,y=document.activeElement;if(R&&y){const g=E.currentTarget,[b,_]=Ib(g);b&&_?!E.shiftKey&&y===_?(E.preventDefault(),n&&rr(b,{select:!0})):E.shiftKey&&y===b&&(E.preventDefault(),n&&rr(_,{select:!0})):y===g&&E.preventDefault()}},[n,r,x.paused]);return w.jsx(Me.div,{tabIndex:-1,...l,ref:h,onKeyDown:C})});Tf.displayName=jb;function Mb(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rr(r,{select:t}),document.activeElement!==n)return}function Ib(e){const t=fg(e),n=Xp(t,e),r=Xp(t.reverse(),e);return[n,r]}function fg(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 Xp(e,t){for(const n of e)if(!Lb(n,{upTo:t}))return n}function Lb(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 Fb(e){return e instanceof HTMLInputElement&&"select"in e}function rr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Fb(e)&&t&&e.select()}}var Zp=zb();function zb(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Jp(e,t),e.unshift(t)},remove(t){var n;e=Jp(e,t),(n=e[0])==null||n.resume()}}}function Jp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $b(e){return e.filter(t=>t.tagName!=="A")}var kt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Hb=w1.useId||(()=>{}),Ub=0;function Po(e){const[t,n]=v.useState(Hb());return kt(()=>{n(r=>r??String(Ub++))},[e]),t?`radix-${t}`:""}const Wb=["top","right","bottom","left"],Rn=Math.min,Ut=Math.max,Ms=Math.round,zl=Math.floor,xr=e=>({x:e,y:e}),Bb={left:"right",right:"left",bottom:"top",top:"bottom"},Vb={start:"end",end:"start"};function dc(e,t,n){return Ut(e,Rn(t,n))}function Vn(e,t){return typeof e=="function"?e(t):e}function qn(e){return e.split("-")[0]}function qo(e){return e.split("-")[1]}function Nf(e){return e==="x"?"y":"x"}function Af(e){return e==="y"?"height":"width"}function Go(e){return["top","bottom"].includes(qn(e))?"y":"x"}function Df(e){return Nf(Go(e))}function qb(e,t,n){n===void 0&&(n=!1);const r=qo(e),o=Df(e),i=Af(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Is(l)),[l,Is(l)]}function Gb(e){const t=Is(e);return[pc(e),t,pc(t)]}function pc(e){return e.replace(/start|end/g,t=>Vb[t])}function Kb(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 Qb(e,t,n,r){const o=qo(e);let i=Kb(qn(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(pc)))),i}function Is(e){return e.replace(/left|right|bottom|top/g,t=>Bb[t])}function Yb(e){return{top:0,right:0,bottom:0,left:0,...e}}function dg(e){return typeof e!="number"?Yb(e):{top:e,right:e,bottom:e,left:e}}function Ls(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 em(e,t,n){let{reference:r,floating:o}=e;const i=Go(t),l=Df(t),a=Af(l),f=qn(t),u=i==="y",p=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let x;switch(f){case"top":x={x:p,y:r.y-o.height};break;case"bottom":x={x:p,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:m};break;case"left":x={x:r.x-o.width,y:m};break;default:x={x:r.x,y:r.y}}switch(qo(t)){case"start":x[l]-=h*(n&&u?-1:1);break;case"end":x[l]+=h*(n&&u?-1:1);break}return x}const Xb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:m}=em(u,r,f),h=r,x={},C=0;for(let E=0;E({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:f}=t,{element:u,padding:p=0}=Vn(e,t)||{};if(u==null)return{};const m=dg(p),h={x:n,y:r},x=Df(o),C=Af(x),E=await l.getDimensions(u),R=x==="y",y=R?"top":"left",g=R?"bottom":"right",b=R?"clientHeight":"clientWidth",_=i.reference[C]+i.reference[x]-h[x]-i.floating[C],P=h[x]-i.reference[x],D=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let T=D?D[b]:0;(!T||!await(l.isElement==null?void 0:l.isElement(D)))&&(T=a.floating[b]||i.floating[C]);const A=_/2-P/2,j=T/2-E[C]/2-1,I=Rn(m[y],j),V=Rn(m[g],j),H=I,F=T-E[C]-V,W=T/2-E[C]/2+A,Z=dc(H,W,F),le=!f.arrow&&qo(o)!=null&&W!==Z&&i.reference[C]/2-(WH<=0)){var j,I;const H=(((j=i.flip)==null?void 0:j.index)||0)+1,F=P[H];if(F)return{data:{index:H,overflows:A},reset:{placement:F}};let W=(I=A.filter(Z=>Z.overflows[0]<=0).sort((Z,le)=>Z.overflows[1]-le.overflows[1])[0])==null?void 0:I.placement;if(!W)switch(x){case"bestFit":{var V;const Z=(V=A.map(le=>[le.placement,le.overflows.filter(ne=>ne>0).reduce((ne,z)=>ne+z,0)]).sort((le,ne)=>le[1]-ne[1])[0])==null?void 0:V[0];Z&&(W=Z);break}case"initialPlacement":W=a;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function tm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nm(e){return Wb.some(t=>e[t]>=0)}const e2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Vn(e,t);switch(r){case"referenceHidden":{const i=await Qi(t,{...o,elementContext:"reference"}),l=tm(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:nm(l)}}}case"escaped":{const i=await Qi(t,{...o,altBoundary:!0}),l=tm(i,n.floating);return{data:{escapedOffsets:l,escaped:nm(l)}}}default:return{}}}}};async function t2(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=qn(n),a=qo(n),f=Go(n)==="y",u=["left","top"].includes(l)?-1:1,p=i&&f?-1:1,m=Vn(t,e);let{mainAxis:h,crossAxis:x,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return a&&typeof C=="number"&&(x=a==="end"?C*-1:C),f?{x:x*p,y:h*u}:{x:h*u,y:x*p}}const n2=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:a}=t,f=await t2(t,e);return l===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:l}}}}},r2=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:a={fn:R=>{let{x:y,y:g}=R;return{x:y,y:g}}},...f}=Vn(e,t),u={x:n,y:r},p=await Qi(t,f),m=Go(qn(o)),h=Nf(m);let x=u[h],C=u[m];if(i){const R=h==="y"?"top":"left",y=h==="y"?"bottom":"right",g=x+p[R],b=x-p[y];x=dc(g,x,b)}if(l){const R=m==="y"?"top":"left",y=m==="y"?"bottom":"right",g=C+p[R],b=C-p[y];C=dc(g,C,b)}const E=a.fn({...t,[h]:x,[m]:C});return{...E,data:{x:E.x-n,y:E.y-r}}}}},o2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:f=!0,crossAxis:u=!0}=Vn(e,t),p={x:n,y:r},m=Go(o),h=Nf(m);let x=p[h],C=p[m];const E=Vn(a,t),R=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(f){const b=h==="y"?"height":"width",_=i.reference[h]-i.floating[b]+R.mainAxis,P=i.reference[h]+i.reference[b]-R.mainAxis;x<_?x=_:x>P&&(x=P)}if(u){var y,g;const b=h==="y"?"width":"height",_=["top","left"].includes(qn(o)),P=i.reference[m]-i.floating[b]+(_&&((y=l.offset)==null?void 0:y[m])||0)+(_?0:R.crossAxis),D=i.reference[m]+i.reference[b]+(_?0:((g=l.offset)==null?void 0:g[m])||0)-(_?R.crossAxis:0);CD&&(C=D)}return{[h]:x,[m]:C}}}},i2=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=()=>{},...a}=Vn(e,t),f=await Qi(t,a),u=qn(n),p=qo(n),m=Go(n)==="y",{width:h,height:x}=r.floating;let C,E;u==="top"||u==="bottom"?(C=u,E=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(E=u,C=p==="end"?"top":"bottom");const R=x-f.top-f.bottom,y=h-f.left-f.right,g=Rn(x-f[C],R),b=Rn(h-f[E],y),_=!t.middlewareData.shift;let P=g,D=b;if(m?D=p||_?Rn(b,y):y:P=p||_?Rn(g,R):R,_&&!p){const A=Ut(f.left,0),j=Ut(f.right,0),I=Ut(f.top,0),V=Ut(f.bottom,0);m?D=h-2*(A!==0||j!==0?A+j:Ut(f.left,f.right)):P=x-2*(I!==0||V!==0?I+V:Ut(f.top,f.bottom))}await l({...t,availableWidth:D,availableHeight:P});const T=await o.getDimensions(i.floating);return h!==T.width||x!==T.height?{reset:{rects:!0}}:{}}}};function Ko(e){return pg(e)?(e.nodeName||"").toLowerCase():"#document"}function Vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kn(e){var t;return(t=(pg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pg(e){return e instanceof Node||e instanceof Vt(e).Node}function Nn(e){return e instanceof Element||e instanceof Vt(e).Element}function An(e){return e instanceof HTMLElement||e instanceof Vt(e).HTMLElement}function rm(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vt(e).ShadowRoot}function ol(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function l2(e){return["table","td","th"].includes(Ko(e))}function Of(e){const t=jf(),n=hn(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 s2(e){let t=Sr(e);for(;An(t)&&!$o(t);){if(Of(t))return t;t=Sr(t)}return null}function jf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $o(e){return["html","body","#document"].includes(Ko(e))}function hn(e){return Vt(e).getComputedStyle(e)}function fa(e){return Nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sr(e){if(Ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rm(e)&&e.host||Kn(e);return rm(t)?t.host:t}function mg(e){const t=Sr(e);return $o(t)?e.ownerDocument?e.ownerDocument.body:e.body:An(t)&&ol(t)?t:mg(t)}function Yi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=mg(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Vt(o);return i?t.concat(l,l.visualViewport||[],ol(o)?o:[],l.frameElement&&n?Yi(l.frameElement):[]):t.concat(o,Yi(o,[],n))}function hg(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=An(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=Ms(n)!==i||Ms(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Mf(e){return Nn(e)?e:e.contextElement}function To(e){const t=Mf(e);if(!An(t))return xr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=hg(t);let l=(i?Ms(n.width):n.width)/r,a=(i?Ms(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const a2=xr(0);function vg(e){const t=Vt(e);return!jf()||!t.visualViewport?a2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function u2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vt(e)?!1:t}function Gr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Mf(e);let l=xr(1);t&&(r?Nn(r)&&(l=To(r)):l=To(e));const a=u2(i,n,r)?vg(i):xr(0);let f=(o.left+a.x)/l.x,u=(o.top+a.y)/l.y,p=o.width/l.x,m=o.height/l.y;if(i){const h=Vt(i),x=r&&Nn(r)?Vt(r):r;let C=h,E=C.frameElement;for(;E&&r&&x!==C;){const R=To(E),y=E.getBoundingClientRect(),g=hn(E),b=y.left+(E.clientLeft+parseFloat(g.paddingLeft))*R.x,_=y.top+(E.clientTop+parseFloat(g.paddingTop))*R.y;f*=R.x,u*=R.y,p*=R.x,m*=R.y,f+=b,u+=_,C=Vt(E),E=C.frameElement}}return Ls({width:p,height:m,x:f,y:u})}const c2=[":popover-open",":modal"];function If(e){return c2.some(t=>{try{return e.matches(t)}catch{return!1}})}function f2(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=Kn(r),a=t?If(t.floating):!1;if(r===l||a&&i)return n;let f={scrollLeft:0,scrollTop:0},u=xr(1);const p=xr(0),m=An(r);if((m||!m&&!i)&&((Ko(r)!=="body"||ol(l))&&(f=fa(r)),An(r))){const h=Gr(r);u=To(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+p.x,y:n.y*u.y-f.scrollTop*u.y+p.y}}function d2(e){return Array.from(e.getClientRects())}function gg(e){return Gr(Kn(e)).left+fa(e).scrollLeft}function p2(e){const t=Kn(e),n=fa(e),r=e.ownerDocument.body,o=Ut(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ut(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+gg(e);const a=-n.scrollTop;return hn(r).direction==="rtl"&&(l+=Ut(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}function m2(e,t){const n=Vt(e),r=Kn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,f=0;if(o){i=o.width,l=o.height;const u=jf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,f=o.offsetTop)}return{width:i,height:l,x:a,y:f}}function h2(e,t){const n=Gr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=An(e)?To(e):xr(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,f=o*i.x,u=r*i.y;return{width:l,height:a,x:f,y:u}}function om(e,t,n){let r;if(t==="viewport")r=m2(e,n);else if(t==="document")r=p2(Kn(e));else if(Nn(t))r=h2(t,n);else{const o=vg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ls(r)}function yg(e,t){const n=Sr(e);return n===t||!Nn(n)||$o(n)?!1:hn(n).position==="fixed"||yg(n,t)}function v2(e,t){const n=t.get(e);if(n)return n;let r=Yi(e,[],!1).filter(a=>Nn(a)&&Ko(a)!=="body"),o=null;const i=hn(e).position==="fixed";let l=i?Sr(e):e;for(;Nn(l)&&!$o(l);){const a=hn(l),f=Of(l);!f&&a.position==="fixed"&&(o=null),(i?!f&&!o:!f&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ol(l)&&!f&&yg(e,l))?r=r.filter(p=>p!==l):o=a,l=Sr(l)}return t.set(e,r),r}function g2(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?If(t)?[]:v2(t,this._c):[].concat(n),r],a=l[0],f=l.reduce((u,p)=>{const m=om(t,p,o);return u.top=Ut(m.top,u.top),u.right=Rn(m.right,u.right),u.bottom=Rn(m.bottom,u.bottom),u.left=Ut(m.left,u.left),u},om(t,a,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function y2(e){const{width:t,height:n}=hg(e);return{width:t,height:n}}function w2(e,t,n){const r=An(t),o=Kn(t),i=n==="fixed",l=Gr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const f=xr(0);if(r||!r&&!i)if((Ko(t)!=="body"||ol(o))&&(a=fa(t)),r){const m=Gr(t,!0,i,t);f.x=m.x+t.clientLeft,f.y=m.y+t.clientTop}else o&&(f.x=gg(o));const u=l.left+a.scrollLeft-f.x,p=l.top+a.scrollTop-f.y;return{x:u,y:p,width:l.width,height:l.height}}function lu(e){return hn(e).position==="static"}function im(e,t){return!An(e)||hn(e).position==="fixed"?null:t?t(e):e.offsetParent}function wg(e,t){const n=Vt(e);if(If(e))return n;if(!An(e)){let o=Sr(e);for(;o&&!$o(o);){if(Nn(o)&&!lu(o))return o;o=Sr(o)}return n}let r=im(e,t);for(;r&&l2(r)&&lu(r);)r=im(r,t);return r&&$o(r)&&lu(r)&&!Of(r)?n:r||s2(e)||n}const x2=async function(e){const t=this.getOffsetParent||wg,n=this.getDimensions,r=await n(e.floating);return{reference:w2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function S2(e){return hn(e).direction==="rtl"}const E2={convertOffsetParentRelativeRectToViewportRelativeRect:f2,getDocumentElement:Kn,getClippingRect:g2,getOffsetParent:wg,getElementRects:x2,getClientRects:d2,getDimensions:y2,getScale:To,isElement:Nn,isRTL:S2};function b2(e,t){let n=null,r;const o=Kn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function l(a,f){a===void 0&&(a=!1),f===void 0&&(f=1),i();const{left:u,top:p,width:m,height:h}=e.getBoundingClientRect();if(a||t(),!m||!h)return;const x=zl(p),C=zl(o.clientWidth-(u+m)),E=zl(o.clientHeight-(p+h)),R=zl(u),g={rootMargin:-x+"px "+-C+"px "+-E+"px "+-R+"px",threshold:Ut(0,Rn(1,f))||1};let b=!0;function _(P){const D=P[0].intersectionRatio;if(D!==f){if(!b)return l();D?l(!1,D):r=setTimeout(()=>{l(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return l(!0),i}function C2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=Mf(e),p=o||i?[...u?Yi(u):[],...Yi(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const m=u&&a?b2(u,n):null;let h=-1,x=null;l&&(x=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&x&&(x.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=x)==null||b.observe(t)})),n()}),u&&!f&&x.observe(u),x.observe(t));let C,E=f?Gr(e):null;f&&R();function R(){const y=Gr(e);E&&(y.x!==E.x||y.y!==E.y||y.width!==E.width||y.height!==E.height)&&n(),E=y,C=requestAnimationFrame(R)}return n(),()=>{var y;p.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),m==null||m(),(y=x)==null||y.disconnect(),x=null,f&&cancelAnimationFrame(C)}}const _2=n2,k2=r2,R2=Jb,P2=i2,T2=e2,lm=Zb,N2=o2,A2=(e,t,n)=>{const r=new Map,o={platform:E2,...n},i={...o.platform,_c:r};return Xb(e,t,{...o,platform:i})};var ss=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Fs(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(!Fs(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)&&!Fs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sm(e,t){const n=xg(e);return Math.round(t*n)/n}function am(e){const t=v.useRef(e);return ss(()=>{t.current=e}),t}function D2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:f,open:u}=e,[p,m]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,x]=v.useState(r);Fs(h,r)||x(r);const[C,E]=v.useState(null),[R,y]=v.useState(null),g=v.useCallback(ne=>{ne!==D.current&&(D.current=ne,E(ne))},[]),b=v.useCallback(ne=>{ne!==T.current&&(T.current=ne,y(ne))},[]),_=i||C,P=l||R,D=v.useRef(null),T=v.useRef(null),A=v.useRef(p),j=f!=null,I=am(f),V=am(o),H=v.useCallback(()=>{if(!D.current||!T.current)return;const ne={placement:t,strategy:n,middleware:h};V.current&&(ne.platform=V.current),A2(D.current,T.current,ne).then(z=>{const B={...z,isPositioned:!0};F.current&&!Fs(A.current,B)&&(A.current=B,Zr.flushSync(()=>{m(B)}))})},[h,t,n,V]);ss(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,m(ne=>({...ne,isPositioned:!1})))},[u]);const F=v.useRef(!1);ss(()=>(F.current=!0,()=>{F.current=!1}),[]),ss(()=>{if(_&&(D.current=_),P&&(T.current=P),_&&P){if(I.current)return I.current(_,P,H);H()}},[_,P,H,I,j]);const W=v.useMemo(()=>({reference:D,floating:T,setReference:g,setFloating:b}),[g,b]),Z=v.useMemo(()=>({reference:_,floating:P}),[_,P]),le=v.useMemo(()=>{const ne={position:n,left:0,top:0};if(!Z.floating)return ne;const z=sm(Z.floating,p.x),B=sm(Z.floating,p.y);return a?{...ne,transform:"translate("+z+"px, "+B+"px)",...xg(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:B}},[n,a,Z.floating,p.x,p.y]);return v.useMemo(()=>({...p,update:H,refs:W,elements:Z,floatingStyles:le}),[p,H,W,Z,le])}const O2=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?lm({element:r.current,padding:o}).fn(n):{}:r?lm({element:r,padding:o}).fn(n):{}}}},j2=(e,t)=>({..._2(e),options:[e,t]}),M2=(e,t)=>({...k2(e),options:[e,t]}),I2=(e,t)=>({...N2(e),options:[e,t]}),L2=(e,t)=>({...R2(e),options:[e,t]}),F2=(e,t)=>({...P2(e),options:[e,t]}),z2=(e,t)=>({...T2(e),options:[e,t]}),$2=(e,t)=>({...O2(e),options:[e,t]});var H2="Arrow",Sg=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return w.jsx(Me.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});Sg.displayName=H2;var U2=Sg;function W2(e){const[t,n]=v.useState(void 0);return kt(()=>{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,a;if("borderBoxSize"in i){const f=i.borderBoxSize,u=Array.isArray(f)?f[0]:f;l=u.inlineSize,a=u.blockSize}else l=e.offsetWidth,a=e.offsetHeight;n({width:l,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Lf="Popper",[Eg,da]=Vo(Lf),[B2,bg]=Eg(Lf),Cg=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return w.jsx(B2,{scope:t,anchor:r,onAnchorChange:o,children:n})};Cg.displayName=Lf;var _g="PopperAnchor",kg=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=bg(_g,n),l=v.useRef(null),a=Ve(t,l);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:w.jsx(Me.div,{...o,ref:a})});kg.displayName=_g;var Ff="PopperContent",[V2,q2]=Eg(Ff),Rg=v.forwardRef((e,t)=>{var J,ye,Ie,K,ge,de;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:a=0,avoidCollisions:f=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:x="optimized",onPlaced:C,...E}=e,R=bg(Ff,n),[y,g]=v.useState(null),b=Ve(t,Y=>g(Y)),[_,P]=v.useState(null),D=W2(_),T=(D==null?void 0:D.width)??0,A=(D==null?void 0:D.height)??0,j=r+(i!=="center"?"-"+i:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},V=Array.isArray(u)?u:[u],H=V.length>0,F={padding:I,boundary:V.filter(K2),altBoundary:H},{refs:W,floatingStyles:Z,placement:le,isPositioned:ne,middlewareData:z}=D2({strategy:"fixed",placement:j,whileElementsMounted:(...Y)=>C2(...Y,{animationFrame:x==="always"}),elements:{reference:R.anchor},middleware:[j2({mainAxis:o+A,alignmentAxis:l}),f&&M2({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?I2():void 0,...F}),f&&L2({...F}),F2({...F,apply:({elements:Y,rects:me,availableWidth:ut,availableHeight:Je})=>{const{width:tt,height:Tt}=me.reference,ke=Y.floating.style;ke.setProperty("--radix-popper-available-width",`${ut}px`),ke.setProperty("--radix-popper-available-height",`${Je}px`),ke.setProperty("--radix-popper-anchor-width",`${tt}px`),ke.setProperty("--radix-popper-anchor-height",`${Tt}px`)}}),_&&$2({element:_,padding:a}),Q2({arrowWidth:T,arrowHeight:A}),h&&z2({strategy:"referenceHidden",...F})]}),[B,ee]=Ng(le),se=Bn(C);kt(()=>{ne&&(se==null||se())},[ne,se]);const ue=(J=z.arrow)==null?void 0:J.x,qe=(ye=z.arrow)==null?void 0:ye.y,ve=((Ie=z.arrow)==null?void 0:Ie.centerOffset)!==0,[Xe,_e]=v.useState();return kt(()=>{y&&_e(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:ne?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Xe,"--radix-popper-transform-origin":[(K=z.transformOrigin)==null?void 0:K.x,(ge=z.transformOrigin)==null?void 0:ge.y].join(" "),...((de=z.hide)==null?void 0:de.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(V2,{scope:n,placedSide:B,onArrowChange:P,arrowX:ue,arrowY:qe,shouldHideArrow:ve,children:w.jsx(Me.div,{"data-side":B,"data-align":ee,...E,ref:b,style:{...E.style,animation:ne?void 0:"none"}})})})});Rg.displayName=Ff;var Pg="PopperArrow",G2={top:"bottom",right:"left",bottom:"top",left:"right"},Tg=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=q2(Pg,r),l=G2[i.placedSide];return w.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:w.jsx(U2,{...o,ref:n,style:{...o.style,display:"block"}})})});Tg.displayName=Pg;function K2(e){return e!==null}var Q2=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,a=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[u,p]=Ng(n),m={start:"0%",center:"50%",end:"100%"}[p],h=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,x=(((g=o.arrow)==null?void 0:g.y)??0)+f/2;let C="",E="";return u==="bottom"?(C=l?m:`${h}px`,E=`${-f}px`):u==="top"?(C=l?m:`${h}px`,E=`${r.floating.height+f}px`):u==="right"?(C=`${-f}px`,E=l?m:`${x}px`):u==="left"&&(C=`${r.floating.width+f}px`,E=l?m:`${x}px`),{data:{x:C,y:E}}}});function Ng(e){const[t,n="center"]=e.split("-");return[t,n]}var Ag=Cg,Dg=kg,Og=Rg,jg=Tg,Y2="Portal",zf=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);kt(()=>i(!0),[]);const l=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?NS.createPortal(w.jsx(Me.div,{...r,ref:t}),l):null});zf.displayName=Y2;function zs({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=X2({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,a=Bn(n),f=v.useCallback(u=>{if(i){const m=typeof u=="function"?u(e):u;m!==e&&a(m)}else o(u)},[i,e,o,a]);return[l,f]}function X2({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,o=v.useRef(r),i=Bn(t);return v.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function Z2(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 J2="VisuallyHidden",Mg=v.forwardRef((e,t)=>w.jsx(Me.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}}));Mg.displayName=J2;var eC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lo=new WeakMap,$l=new WeakMap,Hl={},su=0,Ig=function(e){return e&&(e.host||Ig(e.parentNode))},tC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ig(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})},nC=function(e,t,n,r){var o=tC(t,Array.isArray(e)?e:[e]);Hl[n]||(Hl[n]=new WeakMap);var i=Hl[n],l=[],a=new Set,f=new Set(o),u=function(m){!m||a.has(m)||(a.add(m),u(m.parentNode))};o.forEach(u);var p=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(h){if(a.has(h))p(h);else try{var x=h.getAttribute(r),C=x!==null&&x!=="false",E=(lo.get(h)||0)+1,R=(i.get(h)||0)+1;lo.set(h,E),i.set(h,R),l.push(h),E===1&&C&&$l.set(h,!0),R===1&&h.setAttribute(n,"true"),C||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return p(t),a.clear(),su++,function(){l.forEach(function(m){var h=lo.get(m)-1,x=i.get(m)-1;lo.set(m,h),i.set(m,x),h||($l.has(m)||m.removeAttribute(r),$l.delete(m)),x||m.removeAttribute(n)}),su--,su||(lo=new WeakMap,lo=new WeakMap,$l=new WeakMap,Hl={})}},Lg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=eC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),nC(r,o,n,"aria-hidden")):function(){return null}},kn=function(){return kn=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(a){l={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i}function mc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r"u")return yC;var t=wC(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])}},SC=Hg(),No="data-scroll-locked",EC=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(rC,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } - body[`).concat(To,`] { + body[`).concat(No,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` @@ -205,24 +205,24 @@ Error generating stack: `+i.message+` margin-right: 0 `).concat(r,`; } - body[`).concat(To,`] { - `).concat(rC,": ").concat(a,`px; + body[`).concat(No,`] { + `).concat(oC,": ").concat(a,`px; } -`)},cm=function(){var e=parseInt(document.body.getAttribute(To)||"0",10);return isFinite(e)?e:0},EC=function(){v.useEffect(function(){return document.body.setAttribute(To,(cm()+1).toString()),function(){var e=cm()-1;e<=0?document.body.removeAttribute(To):document.body.setAttribute(To,e.toString())}},[])},bC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;EC();var i=v.useMemo(function(){return wC(o)},[o]);return v.createElement(xC,{styles:SC(i,!t,o,n?"":"!important")})},hc=!1;if(typeof window<"u")try{var Ul=Object.defineProperty({},"passive",{get:function(){return hc=!0,!0}});window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{hc=!1}var so=hc?{passive:!1}:!1,CC=function(e){return e.tagName==="TEXTAREA"},Hg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!CC(e)&&n[t]==="visible")},_C=function(e){return Hg(e,"overflowY")},kC=function(e){return Hg(e,"overflowX")},fm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ug(e,r);if(o){var i=Wg(e,r),l=i[1],a=i[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},RC=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},PC=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ug=function(e,t){return e==="v"?_C(t):kC(t)},Wg=function(e,t){return e==="v"?RC(t):PC(t)},NC=function(e,t){return e==="h"&&t==="rtl"?-1:1},TC=function(e,t,n,r,o){var i=NC(e,window.getComputedStyle(t).direction),l=i*r,a=n.target,f=t.contains(a),u=!1,p=l>0,m=0,h=0;do{var x=Wg(e,a),C=x[0],E=x[1],R=x[2],y=E-R-i*C;(C||y)&&Ug(e,a)&&(m+=y,h+=C),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!f&&a!==document.body||f&&(t.contains(a)||t===a));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(h)<1||!o))&&(u=!0),u},Wl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},dm=function(e){return[e.deltaX,e.deltaY]},pm=function(e){return e&&"current"in e?e.current:e},AC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},DC=function(e){return` +`)},fm=function(){var e=parseInt(document.body.getAttribute(No)||"0",10);return isFinite(e)?e:0},bC=function(){v.useEffect(function(){return document.body.setAttribute(No,(fm()+1).toString()),function(){var e=fm()-1;e<=0?document.body.removeAttribute(No):document.body.setAttribute(No,e.toString())}},[])},CC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;bC();var i=v.useMemo(function(){return xC(o)},[o]);return v.createElement(SC,{styles:EC(i,!t,o,n?"":"!important")})},hc=!1;if(typeof window<"u")try{var Ul=Object.defineProperty({},"passive",{get:function(){return hc=!0,!0}});window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{hc=!1}var so=hc?{passive:!1}:!1,_C=function(e){return e.tagName==="TEXTAREA"},Ug=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_C(e)&&n[t]==="visible")},kC=function(e){return Ug(e,"overflowY")},RC=function(e){return Ug(e,"overflowX")},dm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Wg(e,r);if(o){var i=Bg(e,r),l=i[1],a=i[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},PC=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},TC=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wg=function(e,t){return e==="v"?kC(t):RC(t)},Bg=function(e,t){return e==="v"?PC(t):TC(t)},NC=function(e,t){return e==="h"&&t==="rtl"?-1:1},AC=function(e,t,n,r,o){var i=NC(e,window.getComputedStyle(t).direction),l=i*r,a=n.target,f=t.contains(a),u=!1,p=l>0,m=0,h=0;do{var x=Bg(e,a),C=x[0],E=x[1],R=x[2],y=E-R-i*C;(C||y)&&Wg(e,a)&&(m+=y,h+=C),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!f&&a!==document.body||f&&(t.contains(a)||t===a));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(h)<1||!o))&&(u=!0),u},Wl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pm=function(e){return[e.deltaX,e.deltaY]},mm=function(e){return e&&"current"in e?e.current:e},DC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},OC=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},OC=0,ao=[];function jC(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(OC++)[0],i=v.useState($g)[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 E=mc([e.lockRef.current],(e.shards||[]).map(pm),!0).filter(Boolean);return E.forEach(function(R){return R.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),E.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(E,R){if("touches"in E&&E.touches.length===2)return!l.current.allowPinchZoom;var y=Wl(E),g=n.current,b="deltaX"in E?E.deltaX:g[0]-y[0],_="deltaY"in E?E.deltaY:g[1]-y[1],P,D=E.target,N=Math.abs(b)>Math.abs(_)?"h":"v";if("touches"in E&&N==="h"&&D.type==="range")return!1;var A=fm(N,D);if(!A)return!0;if(A?P=N:(P=N==="v"?"h":"v",A=fm(N,D)),!A)return!1;if(!r.current&&"changedTouches"in E&&(b||_)&&(r.current=P),!P)return!0;var j=r.current||P;return TC(j,R,E,j==="h"?b:_,!0)},[]),f=v.useCallback(function(E){var R=E;if(!(!ao.length||ao[ao.length-1]!==i)){var y="deltaY"in R?dm(R):Wl(R),g=t.current.filter(function(P){return P.name===R.type&&(P.target===R.target||R.target===P.shadowParent)&&AC(P.delta,y)})[0];if(g&&g.should){R.cancelable&&R.preventDefault();return}if(!g){var b=(l.current.shards||[]).map(pm).filter(Boolean).filter(function(P){return P.contains(R.target)}),_=b.length>0?a(R,b[0]):!l.current.noIsolation;_&&R.cancelable&&R.preventDefault()}}},[]),u=v.useCallback(function(E,R,y,g){var b={name:E,delta:R,target:y,should:g,shadowParent:MC(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(_){return _!==b})},1)},[]),p=v.useCallback(function(E){n.current=Wl(E),r.current=void 0},[]),m=v.useCallback(function(E){u(E.type,dm(E),E.target,a(E,e.lockRef.current))},[]),h=v.useCallback(function(E){u(E.type,Wl(E),E.target,a(E,e.lockRef.current))},[]);v.useEffect(function(){return ao.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",f,so),document.addEventListener("touchmove",f,so),document.addEventListener("touchstart",p,so),function(){ao=ao.filter(function(E){return E!==i}),document.removeEventListener("wheel",f,so),document.removeEventListener("touchmove",f,so),document.removeEventListener("touchstart",p,so)}},[]);var x=e.removeScrollBar,C=e.inert;return v.createElement(v.Fragment,null,C?v.createElement(i,{styles:DC(o)}):null,x?v.createElement(bC,{gapMode:e.gapMode}):null)}function MC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const IC=cC(zg,jC);var zf=v.forwardRef(function(e,t){return v.createElement(pa,kn({},e,{ref:t,sideCar:IC}))});zf.classNames=pa.classNames;var LC=[" ","Enter","ArrowUp","ArrowDown"],FC=[" ","Enter"],il="Select",[ma,ha,zC]=xb(il),[Xo,DR]=Vo(il,[zC,da]),va=da(),[$C,_r]=Xo(il),[HC,UC]=Xo(il),Bg=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:a,onValueChange:f,dir:u,name:p,autoComplete:m,disabled:h,required:x}=e,C=va(t),[E,R]=v.useState(null),[y,g]=v.useState(null),[b,_]=v.useState(!1),P=Eb(u),[D=!1,N]=zs({prop:r,defaultProp:o,onChange:i}),[A,j]=zs({prop:l,defaultProp:a,onChange:f}),I=v.useRef(null),V=E?!!E.closest("form"):!0,[H,F]=v.useState(new Set),W=Array.from(H).map(Z=>Z.props.value).join(";");return w.jsx(Tg,{...C,children:w.jsxs($C,{required:x,scope:t,trigger:E,onTriggerChange:R,valueNode:y,onValueNodeChange:g,valueNodeHasChildren:b,onValueNodeHasChildrenChange:_,contentId:Po(),value:A,onValueChange:j,open:D,onOpenChange:N,dir:P,triggerPointerDownPosRef:I,disabled:h,children:[w.jsx(ma.Provider,{scope:t,children:w.jsx(HC,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(Z=>{F(le=>new Set(le).add(Z))},[]),onNativeOptionRemove:v.useCallback(Z=>{F(le=>{const ne=new Set(le);return ne.delete(Z),ne})},[]),children:n})}),V?w.jsxs(vy,{"aria-hidden":!0,required:x,tabIndex:-1,name:p,autoComplete:m,value:A,onChange:Z=>j(Z.target.value),disabled:h,children:[A===void 0?w.jsx("option",{value:""}):null,Array.from(H)]},W):null]})})};Bg.displayName=il;var Vg="SelectTrigger",qg=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=va(n),l=_r(Vg,n),a=l.disabled||r,f=Ve(t,l.onTriggerChange),u=ha(n),[p,m,h]=gy(C=>{const E=u().filter(g=>!g.disabled),R=E.find(g=>g.value===l.value),y=yy(E,C,R);y!==void 0&&l.onValueChange(y.value)}),x=()=>{a||(l.onOpenChange(!0),h())};return w.jsx(Ag,{asChild:!0,...i,children:w.jsx(Me.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:a,"data-disabled":a?"":void 0,"data-placeholder":hy(l.value)?"":void 0,...o,ref:f,onClick:be(o.onClick,C=>{C.currentTarget.focus()}),onPointerDown:be(o.onPointerDown,C=>{const E=C.target;E.hasPointerCapture(C.pointerId)&&E.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&(x(),l.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)},C.preventDefault())}),onKeyDown:be(o.onKeyDown,C=>{const E=p.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&m(C.key),!(E&&C.key===" ")&&LC.includes(C.key)&&(x(),C.preventDefault())})})})});qg.displayName=Vg;var Gg="SelectValue",Kg=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,f=_r(Gg,n),{onValueNodeHasChildrenChange:u}=f,p=i!==void 0,m=Ve(t,f.onValueNodeChange);return kt(()=>{u(p)},[u,p]),w.jsx(Me.span,{...a,ref:m,style:{pointerEvents:"none"},children:hy(f.value)?w.jsx(w.Fragment,{children:l}):i})});Kg.displayName=Gg;var WC="SelectIcon",Qg=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(Me.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Qg.displayName=WC;var BC="SelectPortal",Yg=e=>w.jsx(Ff,{asChild:!0,...e});Yg.displayName=BC;var Kr="SelectContent",Xg=v.forwardRef((e,t)=>{const n=_r(Kr,e.__scopeSelect),[r,o]=v.useState();if(kt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Zr.createPortal(w.jsx(Zg,{scope:e.__scopeSelect,children:w.jsx(ma.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),i):null}return w.jsx(Jg,{...e,ref:t})});Xg.displayName=Kr;var Mn=10,[Zg,kr]=Xo(Kr),VC="SelectContentImpl",Jg=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:a,sideOffset:f,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:x,sticky:C,hideWhenDetached:E,avoidCollisions:R,...y}=e,g=_r(Kr,n),[b,_]=v.useState(null),[P,D]=v.useState(null),N=Ve(t,J=>_(J)),[A,j]=v.useState(null),[I,V]=v.useState(null),H=ha(n),[F,W]=v.useState(!1),Z=v.useRef(!1);v.useEffect(()=>{if(b)return Ig(b)},[b]),ug();const le=v.useCallback(J=>{const[ye,...Ie]=H().map(de=>de.ref.current),[K]=Ie.slice(-1),ge=document.activeElement;for(const de of J)if(de===ge||(de==null||de.scrollIntoView({block:"nearest"}),de===ye&&P&&(P.scrollTop=0),de===K&&P&&(P.scrollTop=P.scrollHeight),de==null||de.focus(),document.activeElement!==ge))return},[H,P]),ne=v.useCallback(()=>le([A,b]),[le,A,b]);v.useEffect(()=>{F&&ne()},[F,ne]);const{onOpenChange:z,triggerPointerDownPosRef:B}=g;v.useEffect(()=>{if(b){let J={x:0,y:0};const ye=K=>{var ge,de;J={x:Math.abs(Math.round(K.pageX)-(((ge=B.current)==null?void 0:ge.x)??0)),y:Math.abs(Math.round(K.pageY)-(((de=B.current)==null?void 0:de.y)??0))}},Ie=K=>{J.x<=10&&J.y<=10?K.preventDefault():b.contains(K.target)||z(!1),document.removeEventListener("pointermove",ye),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",Ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",Ie,{capture:!0})}}},[b,z,B]),v.useEffect(()=>{const J=()=>z(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[z]);const[ee,se]=gy(J=>{const ye=H().filter(ge=>!ge.disabled),Ie=ye.find(ge=>ge.ref.current===document.activeElement),K=yy(ye,J,Ie);K&&setTimeout(()=>K.ref.current.focus())}),ue=v.useCallback((J,ye,Ie)=>{const K=!Z.current&&!Ie;(g.value!==void 0&&g.value===ye||K)&&(j(J),K&&(Z.current=!0))},[g.value]),qe=v.useCallback(()=>b==null?void 0:b.focus(),[b]),ve=v.useCallback((J,ye,Ie)=>{const K=!Z.current&&!Ie;(g.value!==void 0&&g.value===ye||K)&&V(J)},[g.value]),Xe=r==="popper"?vc:ey,_e=Xe===vc?{side:a,sideOffset:f,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:x,sticky:C,hideWhenDetached:E,avoidCollisions:R}:{};return w.jsx(Zg,{scope:n,content:b,viewport:P,onViewportChange:D,itemRefCallback:ue,selectedItem:A,onItemLeave:qe,itemTextRefCallback:ve,focusSelectedItem:ne,selectedItemText:I,position:r,isPositioned:F,searchRef:ee,children:w.jsx(zf,{as:qr,allowPinchZoom:!0,children:w.jsx(Pf,{asChild:!0,trapped:g.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:be(o,J=>{var ye;(ye=g.trigger)==null||ye.focus({preventScroll:!0}),J.preventDefault()}),children:w.jsx(ca,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:w.jsx(Xe,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:J=>J.preventDefault(),...y,..._e,onPlaced:()=>W(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:be(y.onKeyDown,J=>{const ye=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ye&&J.key.length===1&&se(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let K=H().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);if(["ArrowUp","End"].includes(J.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const ge=J.target,de=K.indexOf(ge);K=K.slice(de+1)}setTimeout(()=>le(K)),J.preventDefault()}})})})})})})});Jg.displayName=VC;var qC="SelectItemAlignedPosition",ey=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=_r(Kr,n),l=kr(Kr,n),[a,f]=v.useState(null),[u,p]=v.useState(null),m=Ve(t,N=>p(N)),h=ha(n),x=v.useRef(!1),C=v.useRef(!0),{viewport:E,selectedItem:R,selectedItemText:y,focusSelectedItem:g}=l,b=v.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&E&&R&&y){const N=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),j=i.valueNode.getBoundingClientRect(),I=y.getBoundingClientRect();if(i.dir!=="rtl"){const ge=I.left-A.left,de=j.left-ge,Y=N.left-de,me=N.width+Y,ut=Math.max(me,A.width),Je=window.innerWidth-Mn,tt=Vp(de,[Mn,Je-ut]);a.style.minWidth=me+"px",a.style.left=tt+"px"}else{const ge=A.right-I.right,de=window.innerWidth-j.right-ge,Y=window.innerWidth-N.right-de,me=N.width+Y,ut=Math.max(me,A.width),Je=window.innerWidth-Mn,tt=Vp(de,[Mn,Je-ut]);a.style.minWidth=me+"px",a.style.right=tt+"px"}const V=h(),H=window.innerHeight-Mn*2,F=E.scrollHeight,W=window.getComputedStyle(u),Z=parseInt(W.borderTopWidth,10),le=parseInt(W.paddingTop,10),ne=parseInt(W.borderBottomWidth,10),z=parseInt(W.paddingBottom,10),B=Z+le+F+z+ne,ee=Math.min(R.offsetHeight*5,B),se=window.getComputedStyle(E),ue=parseInt(se.paddingTop,10),qe=parseInt(se.paddingBottom,10),ve=N.top+N.height/2-Mn,Xe=H-ve,_e=R.offsetHeight/2,J=R.offsetTop+_e,ye=Z+le+J,Ie=B-ye;if(ye<=ve){const ge=R===V[V.length-1].ref.current;a.style.bottom="0px";const de=u.clientHeight-E.offsetTop-E.offsetHeight,Y=Math.max(Xe,_e+(ge?qe:0)+de+ne),me=ye+Y;a.style.height=me+"px"}else{const ge=R===V[0].ref.current;a.style.top="0px";const Y=Math.max(ve,Z+E.offsetTop+(ge?ue:0)+_e)+Ie;a.style.height=Y+"px",E.scrollTop=ye-ve+E.offsetTop}a.style.margin=`${Mn}px 0`,a.style.minHeight=ee+"px",a.style.maxHeight=H+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[h,i.trigger,i.valueNode,a,u,E,R,y,i.dir,r]);kt(()=>b(),[b]);const[_,P]=v.useState();kt(()=>{u&&P(window.getComputedStyle(u).zIndex)},[u]);const D=v.useCallback(N=>{N&&C.current===!0&&(b(),g==null||g(),C.current=!1)},[b,g]);return w.jsx(KC,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:x,onScrollButtonChange:D,children:w.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:w.jsx(Me.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ey.displayName=qC;var GC="SelectPopperPosition",vc=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Mn,...i}=e,l=va(n);return w.jsx(Dg,{...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)"}})});vc.displayName=GC;var[KC,$f]=Xo(Kr,{}),gc="SelectViewport",ty=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=kr(gc,n),l=$f(gc,n),a=Ve(t,i.onViewportChange),f=v.useRef(0);return w.jsxs(w.Fragment,{children:[w.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}),w.jsx(ma.Slot,{scope:n,children:w.jsx(Me.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:be(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:h}=l;if(h!=null&&h.current&&m){const x=Math.abs(f.current-p.scrollTop);if(x>0){const C=window.innerHeight-Mn*2,E=parseFloat(m.style.minHeight),R=parseFloat(m.style.height),y=Math.max(E,R);if(y0?_:0,m.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});ty.displayName=gc;var ny="SelectGroup",[QC,YC]=Xo(ny),ry=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Po();return w.jsx(QC,{scope:n,id:o,children:w.jsx(Me.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ry.displayName=ny;var oy="SelectLabel",iy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=YC(oy,n);return w.jsx(Me.div,{id:o.id,...r,ref:t})});iy.displayName=oy;var $s="SelectItem",[XC,ly]=Xo($s),sy=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,a=_r($s,n),f=kr($s,n),u=a.value===r,[p,m]=v.useState(i??""),[h,x]=v.useState(!1),C=Ve(t,y=>{var g;return(g=f.itemRefCallback)==null?void 0:g.call(f,y,r,o)}),E=Po(),R=()=>{o||(a.onValueChange(r),a.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 w.jsx(XC,{scope:n,value:r,disabled:o,textId:E,isSelected:u,onItemTextChange:v.useCallback(y=>{m(g=>g||((y==null?void 0:y.textContent)??"").trim())},[]),children:w.jsx(ma.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:w.jsx(Me.div,{role:"option","aria-labelledby":E,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:C,onFocus:be(l.onFocus,()=>x(!0)),onBlur:be(l.onBlur,()=>x(!1)),onPointerUp:be(l.onPointerUp,R),onPointerMove:be(l.onPointerMove,y=>{var g;o?(g=f.onItemLeave)==null||g.call(f):y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:be(l.onPointerLeave,y=>{var g;y.currentTarget===document.activeElement&&((g=f.onItemLeave)==null||g.call(f))}),onKeyDown:be(l.onKeyDown,y=>{var b;((b=f.searchRef)==null?void 0:b.current)!==""&&y.key===" "||(FC.includes(y.key)&&R(),y.key===" "&&y.preventDefault())})})})})});sy.displayName=$s;var Ei="SelectItemText",ay=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=_r(Ei,n),a=kr(Ei,n),f=ly(Ei,n),u=UC(Ei,n),[p,m]=v.useState(null),h=Ve(t,y=>m(y),f.onItemTextChange,y=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,y,f.value,f.disabled)}),x=p==null?void 0:p.textContent,C=v.useMemo(()=>w.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:E,onNativeOptionRemove:R}=u;return kt(()=>(E(C),()=>R(C)),[E,R,C]),w.jsxs(w.Fragment,{children:[w.jsx(Me.span,{id:f.textId,...i,ref:h}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Zr.createPortal(i.children,l.valueNode):null]})});ay.displayName=Ei;var uy="SelectItemIndicator",cy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ly(uy,n).isSelected?w.jsx(Me.span,{"aria-hidden":!0,...r,ref:t}):null});cy.displayName=uy;var yc="SelectScrollUpButton",fy=v.forwardRef((e,t)=>{const n=kr(yc,e.__scopeSelect),r=$f(yc,e.__scopeSelect),[o,i]=v.useState(!1),l=Ve(t,r.onScrollButtonChange);return kt(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=f.scrollTop>0;i(u)};const f=n.viewport;return a(),f.addEventListener("scroll",a),()=>f.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(py,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:f}=n;a&&f&&(a.scrollTop=a.scrollTop-f.offsetHeight)}}):null});fy.displayName=yc;var wc="SelectScrollDownButton",dy=v.forwardRef((e,t)=>{const n=kr(wc,e.__scopeSelect),r=$f(wc,e.__scopeSelect),[o,i]=v.useState(!1),l=Ve(t,r.onScrollButtonChange);return kt(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=f.scrollHeight-f.clientHeight,p=Math.ceil(f.scrollTop)f.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(py,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:f}=n;a&&f&&(a.scrollTop=a.scrollTop+f.offsetHeight)}}):null});dy.displayName=wc;var py=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=kr("SelectScrollButton",n),l=v.useRef(null),a=ha(n),f=v.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return v.useEffect(()=>()=>f(),[f]),kt(()=>{var p;const u=a().find(m=>m.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[a]),w.jsx(Me.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:be(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:be(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:be(o.onPointerLeave,()=>{f()})})}),ZC="SelectSeparator",my=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return w.jsx(Me.div,{"aria-hidden":!0,...r,ref:t})});my.displayName=ZC;var xc="SelectArrow",JC=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=va(n),i=_r(xc,n),l=kr(xc,n);return i.open&&l.position==="popper"?w.jsx(Og,{...o,...r,ref:t}):null});JC.displayName=xc;function hy(e){return e===""||e===void 0}var vy=v.forwardRef((e,t)=>{const{value:n,...r}=e,o=v.useRef(null),i=Ve(t,o),l=X2(n);return v.useEffect(()=>{const a=o.current,f=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==n&&p){const m=new Event("change",{bubbles:!0});p.call(a,n),a.dispatchEvent(m)}},[l,n]),w.jsx(jg,{asChild:!0,children:w.jsx("select",{...r,ref:i,defaultValue:n})})});vy.displayName="BubbleSelect";function gy(e){const t=Bn(e),n=v.useRef(""),r=v.useRef(0),o=v.useCallback(l=>{const a=n.current+l;t(a),function f(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}(a)},[t]),i=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function yy(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=e_(e,Math.max(i,0));o.length===1&&(l=l.filter(u=>u!==n));const f=l.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function e_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var t_=Bg,wy=qg,n_=Kg,r_=Qg,o_=Yg,xy=Xg,i_=ty,l_=ry,Sy=iy,Ey=sy,s_=ay,a_=cy,by=fy,Cy=dy,_y=my;const u_=t_,c_=l_,f_=n_,ky=v.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(wy,{ref:r,className:Se("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,w.jsx(r_,{asChild:!0,children:w.jsx(lg,{className:"h-4 w-4 opacity-50"})})]}));ky.displayName=wy.displayName;const Ry=v.forwardRef(({className:e,...t},n)=>w.jsx(by,{ref:n,className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsx(nb,{className:"h-4 w-4"})}));Ry.displayName=by.displayName;const Py=v.forwardRef(({className:e,...t},n)=>w.jsx(Cy,{ref:n,className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsx(lg,{className:"h-4 w-4"})}));Py.displayName=Cy.displayName;const Ny=v.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>w.jsx(o_,{children:w.jsxs(xy,{ref:o,className:Se("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:[w.jsx(Ry,{}),w.jsx(i_,{className:Se("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),w.jsx(Py,{})]})}));Ny.displayName=xy.displayName;const Ty=v.forwardRef(({className:e,...t},n)=>w.jsx(Sy,{ref:n,className:Se("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Ty.displayName=Sy.displayName;const Ay=v.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(Ey,{ref:r,className:Se("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:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(a_,{children:w.jsx(JE,{className:"h-4 w-4"})})}),w.jsx(s_,{children:t})]}));Ay.displayName=Ey.displayName;const d_=v.forwardRef(({className:e,...t},n)=>w.jsx(_y,{ref:n,className:Se("-mx-1 my-1 h-px bg-muted",e),...t}));d_.displayName=_y.displayName;const p_=og("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 Dy({className:e,variant:t,...n}){return w.jsx("div",{className:Se(p_({variant:t}),e),...n})}function m_(){const{tables:e,selectedTable:t,setSelectedTable:n}=Jr();return w.jsxs("section",{className:"flex justify-center items-center gap-2",children:[w.jsxs(u_,{value:t,onValueChange:n,children:[w.jsx(ky,{className:"w-[200px] md:w-[300px]",children:w.jsx(f_,{placeholder:"Select a table"})}),w.jsx(Ny,{children:w.jsxs(c_,{children:[w.jsx(Ty,{children:"Tables"}),e.map((r,o)=>w.jsx(Ay,{value:`${o}`,children:r.name},r.name))]})})]}),w.jsxs(Dy,{className:"text-sm",children:[e[parseInt(t)].count," rows"]})]})}function h_(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var ll=e=>{const{present:t,children:n}=e,r=v_(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Ve(r.ref,g_(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};ll.displayName="Presence";function v_(e){const[t,n]=v.useState(),r=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),l=e?"mounted":"unmounted",[a,f]=h_(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Bl(r.current);i.current=a==="mounted"?u:"none"},[a]),kt(()=>{const u=r.current,p=o.current;if(p!==e){const h=i.current,x=Bl(u);e?f("MOUNT"):x==="none"||(u==null?void 0:u.display)==="none"?f("UNMOUNT"):f(p&&h!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),kt(()=>{if(t){const u=m=>{const x=Bl(r.current).includes(m.animationName);m.target===t&&x&&Zr.flushSync(()=>f("ANIMATION_END"))},p=m=>{m.target===t&&(i.current=Bl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Bl(e){return(e==null?void 0:e.animationName)||"none"}function g_(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 fu,Hf="HoverCard",[Oy,OR]=Vo(Hf,[da]),ga=da(),[y_,Uf]=Oy(Hf),jy=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:l=700,closeDelay:a=300}=e,f=ga(t),u=v.useRef(0),p=v.useRef(0),m=v.useRef(!1),h=v.useRef(!1),[x=!1,C]=zs({prop:r,defaultProp:o,onChange:i}),E=v.useCallback(()=>{clearTimeout(p.current),u.current=window.setTimeout(()=>C(!0),l)},[l,C]),R=v.useCallback(()=>{clearTimeout(u.current),!m.current&&!h.current&&(p.current=window.setTimeout(()=>C(!1),a))},[a,C]),y=v.useCallback(()=>C(!1),[C]);return v.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(p.current)},[]),w.jsx(y_,{scope:t,open:x,onOpenChange:C,onOpen:E,onClose:R,onDismiss:y,hasSelectionRef:m,isPointerDownOnContentRef:h,children:w.jsx(Tg,{...f,children:n})})};jy.displayName=Hf;var My="HoverCardTrigger",Iy=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Uf(My,n),i=ga(n);return w.jsx(Ag,{asChild:!0,...i,children:w.jsx(Me.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:be(e.onPointerEnter,Us(o.onOpen)),onPointerLeave:be(e.onPointerLeave,Us(o.onClose)),onFocus:be(e.onFocus,o.onOpen),onBlur:be(e.onBlur,o.onClose),onTouchStart:be(e.onTouchStart,l=>l.preventDefault())})})});Iy.displayName=My;var w_="HoverCardPortal",[jR,x_]=Oy(w_,{forceMount:void 0}),Hs="HoverCardContent",Ly=v.forwardRef((e,t)=>{const n=x_(Hs,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=Uf(Hs,e.__scopeHoverCard);return w.jsx(ll,{present:r||i.open,children:w.jsx(S_,{"data-state":i.open?"open":"closed",...o,onPointerEnter:be(e.onPointerEnter,Us(i.onOpen)),onPointerLeave:be(e.onPointerLeave,Us(i.onClose)),ref:t})})});Ly.displayName=Hs;var S_=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,...a}=e,f=Uf(Hs,n),u=ga(n),p=v.useRef(null),m=Ve(t,p),[h,x]=v.useState(!1);return v.useEffect(()=>{if(h){const C=document.body;return fu=C.style.userSelect||C.style.webkitUserSelect,C.style.userSelect="none",C.style.webkitUserSelect="none",()=>{C.style.userSelect=fu,C.style.webkitUserSelect=fu}}},[h]),v.useEffect(()=>{if(p.current){const C=()=>{x(!1),f.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var R;((R=document.getSelection())==null?void 0:R.toString())!==""&&(f.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",C),()=>{document.removeEventListener("pointerup",C),f.hasSelectionRef.current=!1,f.isPointerDownOnContentRef.current=!1}}},[f.isPointerDownOnContentRef,f.hasSelectionRef]),v.useEffect(()=>{p.current&&C_(p.current).forEach(E=>E.setAttribute("tabindex","-1"))}),w.jsx(ca,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:be(i,C=>{C.preventDefault()}),onDismiss:f.onDismiss,children:w.jsx(Dg,{...u,...a,onPointerDown:be(a.onPointerDown,C=>{C.currentTarget.contains(C.target)&&x(!0),f.hasSelectionRef.current=!1,f.isPointerDownOnContentRef.current=!0}),ref:m,style:{...a.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"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)"}})})}),E_="HoverCardArrow",b_=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ga(n);return w.jsx(Og,{...o,...r,ref:t})});b_.displayName=E_;function Us(e){return t=>t.pointerType==="touch"?void 0:e()}function C_(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 __=jy,k_=Iy,Fy=Ly;const zy=__,$y=k_,Wf=v.forwardRef(({className:e,align:t="start",side:n="bottom",sideOffset:r=4,...o},i)=>w.jsx(Fy,{ref:i,align:t,side:n,sideOffset:r,className:Se("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}));Wf.displayName=Fy.displayName;const Hy=v.forwardRef(({className:e,...t},n)=>w.jsx("div",{className:"relative w-full overflow-auto",children:w.jsx("table",{ref:n,className:Se("w-full caption-bottom text-sm",e),...t})}));Hy.displayName="Table";const Uy=v.forwardRef(({className:e,...t},n)=>w.jsx("thead",{ref:n,className:Se("[&_tr]:border-b",e),...t}));Uy.displayName="TableHeader";const Wy=v.forwardRef(({className:e,...t},n)=>w.jsx("tbody",{ref:n,className:Se("[&_tr:last-child]:border-0",e),...t}));Wy.displayName="TableBody";const R_=v.forwardRef(({className:e,...t},n)=>w.jsx("tfoot",{ref:n,className:Se("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));R_.displayName="TableFooter";const Sc=v.forwardRef(({className:e,...t},n)=>w.jsx("tr",{ref:n,className:Se("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Sc.displayName="TableRow";const By=v.forwardRef(({className:e,...t},n)=>w.jsx("th",{ref:n,className:Se("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));By.displayName="TableHead";const Vy=v.forwardRef(({className:e,children:t,dataType:n,...r},o)=>w.jsx("td",{ref:o,className:Se("p-4 align-middle [&:has([role=checkbox])]:pr-0 truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",e),...r,children:w.jsxs(zy,{children:[w.jsx($y,{asChild:!0,children:w.jsx("span",{className:"hover:underline cursor-pointer",children:t})}),w.jsx(Wf,{side:"bottom",align:"start",children:w.jsxs("div",{className:"flex flex-col gap-1",children:[n==="BLOB"?w.jsx("span",{className:"truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",children:t}):t,n&&w.jsx(Dy,{className:"text-xs",children:n})]})})]})}));Vy.displayName="TableCell";const P_=v.forwardRef(({className:e,...t},n)=>w.jsx("caption",{ref:n,className:Se("mt-4 text-sm text-muted-foreground",e),...t}));P_.displayName="TableCaption";function N_({data:e,columns:t,tableName:n,tableSchemas:r}){return w.jsxs(Hy,{children:[w.jsx(Uy,{children:w.jsx(Sc,{children:t.map((o,i)=>{var l,a,f,u,p,m;return w.jsx(By,{children:w.jsxs(zy,{children:[w.jsx($y,{asChild:!0,children:w.jsx("span",{className:"hover:underline cursor-pointer",children:w.jsxs("div",{className:"flex gap-1",children:[o,((l=r[n][o])==null?void 0:l.isPrimaryKey)&&w.jsx(ab,{className:"h-4 w-4"}),((a=r[n][o])==null?void 0:a.isForeignKey)&&w.jsx(ub,{className:"h-4 w-4"}),((f=r[n][o])==null?void 0:f.type)==="BLOB"&&w.jsx(ob,{className:"h-4 w-4"}),((u=r[n][o])==null?void 0:u.type)==="DATETIME"&&w.jsx(rb,{className:"h-4 w-4"})]})})}),w.jsx(Wf,{side:"bottom",align:"start",children:((p=r[n][o])==null?void 0:p.type.length)==0?"Unknown":(m=r[n][o])==null?void 0:m.type})]})},i)})})}),w.jsx(Wy,{children:e.map((o,i)=>w.jsx(Sc,{children:t.map((l,a)=>{var f;return w.jsx(Vy,{dataType:(f=r[n][l])==null?void 0:f.type,children:o[l]?o[l]:w.jsx("span",{className:"italic opacity-40",children:"NULL"})},a)})},i))})]})}function T_(){const{query:e,db:t,tables:n,selectedTable:r,tableSchemas:o,queryError:i,setQueryError:l,rowPerPageOrAuto:a,isCustomQuery:f,setIsCustomQuery:u}=Jr(),[p,m]=v.useState([]),[h,x]=v.useState([]),[C,E]=v.useState(0),[R,y]=v.useState(""),g=v.useMemo(()=>{var A;return(A=n[parseInt(r)])==null?void 0:A.name},[n,r]),b=v.useMemo(()=>{var A;return((A=n[parseInt(r)])==null?void 0:A.count)||0},[n,r]);let _=30;if(a==="auto"){let A=110;const j=window.innerHeight,I=j>1500,V=j>1e3,H=j<750;I?A=75:V?A=90:H&&(A=130),_=Math.max(1,Math.floor(j/A))}else _=a;v.useEffect(()=>{E(0),u(!1)},[g]),v.useEffect(()=>{if(t&&g&&!f)try{const A=`SELECT * FROM "${g}" LIMIT ${_} OFFSET ${C};`,j=e(A),{data:I,columns:V}=js(j);x(V),m(I),l(null),y(A)}catch(A){A instanceof Error&&l(A.message)}},[g,C,_]);const P=v.useCallback(()=>{l(null),y(""),u(!1)},[u,l]),D=v.useCallback(()=>{E(0),l(null),y(""),u(!1)},[u,l]),N=v.useCallback(()=>{if(R.trim()===""){l(null);return}if(t&&R.trim()!=="")try{const A=e(R),{data:j,columns:I}=js(A);x(I),m(j),u(!0),l(null)}catch(A){A instanceof Error&&l(A.message)}},[R,t,e,l]);return w.jsxs("div",{className:"flex flex-col gap-3 mb-2",children:[w.jsxs("section",{className:"flex flex-col gap-2 p-3 pb-1 border rounded",children:[w.jsx(m_,{}),w.jsxs("div",{className:"flex gap-1",children:[w.jsx(kf,{type:"text",value:R,onChange:A=>y(A.target.value),placeholder:"Enter your custom query",className:"w-full"}),w.jsx(Dt,{onClick:N,title:"Run custom query",children:w.jsx(pb,{className:"h-5 w-5"})}),w.jsx(Dt,{onClick:P,title:"Reset query",children:w.jsx(vb,{className:"h-5 w-5"})}),w.jsx(Dt,{onClick:D,title:"Reset to first page",disabled:C===0,children:w.jsx(cb,{className:"h-5 w-5"})})]}),w.jsx("p",{className:"text-xs text-red-500 capitalize text-center",children:i})]}),p.length>0?w.jsx("div",{className:"border rounded",children:w.jsx(N_,{data:p,columns:h,tableName:g,tableSchemas:o})}):w.jsxs("p",{className:"text-center font-semibold md:text-2xl p-10 border rounded",children:["Table ",g," is empty"]}),!f&&w.jsx(gb,{page:C,setPage:E,rowsPerPage:_,rowCount:b})]})}var qy={exports:{}},A_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",D_=A_,O_=D_;function Gy(){}function Ky(){}Ky.resetWarningCache=Gy;var j_=function(){function e(r,o,i,l,a,f){if(f!==O_){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:Ky,resetWarningCache:Gy};return n.PropTypes=n,n};qy.exports=j_();var M_=qy.exports;const Te=Zi(M_);var I_=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=L_(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 L_(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=I_.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var F_=[".DS_Store","Thumbs.db"];function z_(e){return Qo(this,void 0,void 0,function(){return Yo(this,function(t){return Ws(e)&&$_(e.dataTransfer)?[2,B_(e.dataTransfer,e.type)]:H_(e)?[2,U_(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,W_(e)]:[2,[]]})})}function $_(e){return Ws(e)}function H_(e){return Ws(e)&&Ws(e.target)}function Ws(e){return typeof e=="object"&&e!==null}function U_(e){return Ec(e.target.files).map(function(t){return sl(t)})}function W_(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 B_(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=Ec(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(V_))]):[3,2];case 1:return r=o.sent(),[2,mm(Qy(r))];case 2:return[2,mm(Ec(e.files).map(function(i){return sl(i)}))]}})})}function mm(e){return e.filter(function(t){return F_.indexOf(t.name)===-1})}function Ec(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,wm(n)];if(e.sizen)return[!1,wm(n)]}return[!0,null]}function jr(e){return e!=null}function sk(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,l=e.maxFiles,a=e.validator;return!i&&t.length>1||i&&l>=1&&t.length>l?!1:t.every(function(f){var u=Jy(f,n),p=Xi(u,1),m=p[0],h=e0(f,r,o),x=Xi(h,1),C=x[0],E=a?a(f):null;return m&&C&&!E})}function Bs(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Vl(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 Sm(e){e.preventDefault()}function ak(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function uk(e){return e.indexOf("Edge/")!==-1}function ck(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return ak(e)||uk(e)}function bn(){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 Rk(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 Bf=v.forwardRef(function(e,t){var n=e.children,r=Vs(e,vk),o=i0(r),i=o.open,l=Vs(o,gk);return v.useImperativeHandle(t,function(){return{open:i}},[i]),Q.createElement(v.Fragment,null,n(Ge(Ge({},l),{},{open:i})))});Bf.displayName="Dropzone";var o0={disabled:!1,getFilesFromEvent:z_,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};Bf.defaultProps=o0;Bf.propTypes={children:Te.func,accept:Te.objectOf(Te.arrayOf(Te.string)),multiple:Te.bool,preventDropOnDocument:Te.bool,noClick:Te.bool,noKeyboard:Te.bool,noDrag:Te.bool,noDragEventsBubbling:Te.bool,minSize:Te.number,maxSize:Te.number,maxFiles:Te.number,disabled:Te.bool,getFilesFromEvent:Te.func,onFileDialogCancel:Te.func,onFileDialogOpen:Te.func,useFsAccessApi:Te.bool,autoFocus:Te.bool,onDragEnter:Te.func,onDragLeave:Te.func,onDragOver:Te.func,onDrop:Te.func,onDropAccepted:Te.func,onDropRejected:Te.func,onError:Te.func,validator:Te.func};var kc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function i0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ge(Ge({},o0),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,l=t.minSize,a=t.multiple,f=t.maxFiles,u=t.onDragEnter,p=t.onDragLeave,m=t.onDragOver,h=t.onDrop,x=t.onDropAccepted,C=t.onDropRejected,E=t.onFileDialogCancel,R=t.onFileDialogOpen,y=t.useFsAccessApi,g=t.autoFocus,b=t.preventDropOnDocument,_=t.noClick,P=t.noKeyboard,D=t.noDrag,N=t.noDragEventsBubbling,A=t.onError,j=t.validator,I=v.useMemo(function(){return pk(n)},[n]),V=v.useMemo(function(){return dk(n)},[n]),H=v.useMemo(function(){return typeof R=="function"?R:bm},[R]),F=v.useMemo(function(){return typeof E=="function"?E:bm},[E]),W=v.useRef(null),Z=v.useRef(null),le=v.useReducer(Pk,kc),ne=du(le,2),z=ne[0],B=ne[1],ee=z.isFocused,se=z.isFileDialogActive,ue=v.useRef(typeof window<"u"&&window.isSecureContext&&y&&fk()),qe=function(){!ue.current&&se&&setTimeout(function(){if(Z.current){var oe=Z.current.files;oe.length||(B({type:"closeDialog"}),F())}},300)};v.useEffect(function(){return window.addEventListener("focus",qe,!1),function(){window.removeEventListener("focus",qe,!1)}},[Z,se,F,ue]);var ve=v.useRef([]),Xe=function(oe){W.current&&W.current.contains(oe.target)||(oe.preventDefault(),ve.current=[])};v.useEffect(function(){return b&&(document.addEventListener("dragover",Sm,!1),document.addEventListener("drop",Xe,!1)),function(){b&&(document.removeEventListener("dragover",Sm),document.removeEventListener("drop",Xe))}},[W,b]),v.useEffect(function(){return!r&&g&&W.current&&W.current.focus(),function(){}},[W,g,r]);var _e=v.useCallback(function(G){A?A(G):console.error(G)},[A]),J=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G),ve.current=[].concat(xk(ve.current),[G.target]),Vl(G)&&Promise.resolve(o(G)).then(function(oe){if(!(Bs(G)&&!N)){var Le=oe.length,Pe=Le>0&&sk({files:oe,accept:I,minSize:l,maxSize:i,multiple:a,maxFiles:f,validator:j}),nt=Le>0&&!Pe;B({isDragAccept:Pe,isDragReject:nt,isDragActive:!0,type:"setDraggedFiles"}),u&&u(G)}}).catch(function(oe){return _e(oe)})},[o,u,_e,N,I,l,i,a,f,j]),ye=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G);var oe=Vl(G);if(oe&&G.dataTransfer)try{G.dataTransfer.dropEffect="copy"}catch{}return oe&&m&&m(G),!1},[m,N]),Ie=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G);var oe=ve.current.filter(function(Pe){return W.current&&W.current.contains(Pe)}),Le=oe.indexOf(G.target);Le!==-1&&oe.splice(Le,1),ve.current=oe,!(oe.length>0)&&(B({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Vl(G)&&p&&p(G))},[W,p,N]),K=v.useCallback(function(G,oe){var Le=[],Pe=[];G.forEach(function(nt){var Tt=Jy(nt,I),St=du(Tt,2),on=St[0],Yn=St[1],Xn=e0(nt,l,i),Zn=du(Xn,2),ie=Zn[0],fe=Zn[1],Re=j?j(nt):null;if(on&&ie&&!Re)Le.push(nt);else{var q=[Yn,fe];Re&&(q=q.concat(Re)),Pe.push({file:nt,errors:q.filter(function(De){return De})})}}),(!a&&Le.length>1||a&&f>=1&&Le.length>f)&&(Le.forEach(function(nt){Pe.push({file:nt,errors:[lk]})}),Le.splice(0)),B({acceptedFiles:Le,fileRejections:Pe,type:"setFiles"}),h&&h(Le,Pe,oe),Pe.length>0&&C&&C(Pe,oe),Le.length>0&&x&&x(Le,oe)},[B,a,I,l,i,f,h,x,C,j]),ge=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G),ve.current=[],Vl(G)&&Promise.resolve(o(G)).then(function(oe){Bs(G)&&!N||K(oe,G)}).catch(function(oe){return _e(oe)}),B({type:"reset"})},[o,K,_e,N]),de=v.useCallback(function(){if(ue.current){B({type:"openDialog"}),H();var G={multiple:a,types:V};window.showOpenFilePicker(G).then(function(oe){return o(oe)}).then(function(oe){K(oe,null),B({type:"closeDialog"})}).catch(function(oe){mk(oe)?(F(oe),B({type:"closeDialog"})):hk(oe)?(ue.current=!1,Z.current?(Z.current.value=null,Z.current.click()):_e(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."))):_e(oe)});return}Z.current&&(B({type:"openDialog"}),H(),Z.current.value=null,Z.current.click())},[B,H,F,y,K,_e,V,a]),Y=v.useCallback(function(G){!W.current||!W.current.isEqualNode(G.target)||(G.key===" "||G.key==="Enter"||G.keyCode===32||G.keyCode===13)&&(G.preventDefault(),de())},[W,de]),me=v.useCallback(function(){B({type:"focus"})},[]),ut=v.useCallback(function(){B({type:"blur"})},[]),Je=v.useCallback(function(){_||(ck()?setTimeout(de,0):de())},[_,de]),tt=function(oe){return r?null:oe},Nt=function(oe){return P?null:tt(oe)},ke=function(oe){return D?null:tt(oe)},rn=function(oe){N&&oe.stopPropagation()},eo=v.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=G.refKey,Le=oe===void 0?"ref":oe,Pe=G.role,nt=G.onKeyDown,Tt=G.onFocus,St=G.onBlur,on=G.onClick,Yn=G.onDragEnter,Xn=G.onDragOver,Zn=G.onDragLeave,ie=G.onDrop,fe=Vs(G,yk);return Ge(Ge(_c({onKeyDown:Nt(bn(nt,Y)),onFocus:Nt(bn(Tt,me)),onBlur:Nt(bn(St,ut)),onClick:tt(bn(on,Je)),onDragEnter:ke(bn(Yn,J)),onDragOver:ke(bn(Xn,ye)),onDragLeave:ke(bn(Zn,Ie)),onDrop:ke(bn(ie,ge)),role:typeof Pe=="string"&&Pe!==""?Pe:"presentation"},Le,W),!r&&!P?{tabIndex:0}:{}),fe)}},[W,Y,me,ut,Je,J,ye,Ie,ge,P,D,r]),Ft=v.useCallback(function(G){G.stopPropagation()},[]),yn=v.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=G.refKey,Le=oe===void 0?"ref":oe,Pe=G.onChange,nt=G.onClick,Tt=Vs(G,wk),St=_c({accept:I,multiple:a,type:"file",style:{display:"none"},onChange:tt(bn(Pe,ge)),onClick:tt(bn(nt,Ft)),tabIndex:-1},Le,Z);return Ge(Ge({},St),Tt)}},[Z,n,a,ge,r]);return Ge(Ge({},z),{},{isFocused:ee&&!r,getRootProps:eo,getInputProps:yn,rootRef:W,inputRef:Z,open:tt(de)})}function Pk(e,t){switch(t.type){case"focus":return Ge(Ge({},e),{},{isFocused:!0});case"blur":return Ge(Ge({},e),{},{isFocused:!1});case"openDialog":return Ge(Ge({},kc),{},{isFileDialogActive:!0});case"closeDialog":return Ge(Ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ge(Ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ge(Ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ge({},kc);default:return e}}function bm(){}const Nk=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];function Tk(e){if(e===0)return"0 Byte";const t=Math.floor(Math.log(e)/Math.log(1024)),n=Nk[t];return`${(e/Math.pow(1024,t)).toFixed(2)} ${n}`}function Ak({file:e}){return w.jsx(w.Fragment,{children:w.jsxs("li",{className:"flex w-full items-center justify-center gap-2 font-mono text-sm",title:e.name,children:[w.jsx("p",{className:"max-w-[250px] truncate",children:e.name}),w.jsx("span",{className:"text-xs font-semibold",children:Tk(e.size)})]})})}function Dk({errors:e}){return e?w.jsx(w.Fragment,{children:e.map(t=>w.jsxs("div",{className:"flex items-center justify-center text-sm text-red-600 gap-2 rounded border border-red-600 p-4 mb-2",children:[w.jsx(lb,{}),t.message]},t.code))}):w.jsxs("li",{className:"flex w-full items-center justify-center text-sm text-green-600",children:[w.jsx(ib,{className:"mr-2"}),"Uploaded successfully"]})}function Ok(){const{loadDatabase:e,setTables:t,setSelectedTable:n,db:r}=Jr(),[o,i]=v.useState(null),[l,a]=v.useState([]),f=v.useCallback(async(m,h)=>{if(a([]),t([]),n("0"),m.length>0){const x=m[0];i(x),await e(x)}if(h.length>0){const x=h.flatMap(C=>C.errors);a(x)}},[e,t,n]),{getRootProps:u,getInputProps:p}=i0({onDrop:f,multiple:!1,accept:{"application/vnd.sqlite3":[".sqlite",".sqlite3"],"application/x-sqlite3":[".sqlite",".sqlite3"],"application/octet-stream":[".db"],"application/sql":[".sql"]}});return w.jsxs("section",{children:[r?w.jsxs("div",{...u(),className:"border p-6 rounded cursor-pointer text-center",children:[w.jsx("input",{id:"file-upload",...p()}),w.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),w.jsx("p",{className:"hidden sm:block",children:"Drag drop a SQLite file here, or click to select one"}),w.jsx("p",{className:"block sm:hidden",children:"Click to select a SQLite file"})]}):w.jsxs("div",{...u(),className:"border p-6 py-24 rounded cursor-pointer text-center",children:[w.jsx("input",{id:"file-upload",...p()}),w.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),w.jsx("p",{className:"hidden sm:block",children:"Drag drop a SQLite file here, or click to select one"}),w.jsx("p",{className:"block sm:hidden",children:"Click to select a SQLite file"}),w.jsx("a",{href:"https://github.com/vwh/sqlite-viewer/raw/main/examples/chinook.db",className:"text-sm text-link hover:underline",title:"Download sample file",children:"Or download & try this sample file"})]}),w.jsxs("div",{className:"mt-2",children:[o&&w.jsx(Ak,{file:o}),w.jsx(Dk,{errors:l})]})]})}function jk(){const{isLoading:e}=Jr();return w.jsx(w.Fragment,{children:e&&w.jsxs("div",{className:"flex items-center justify-center mb-2 font-semibold p-4 border rounded",children:[w.jsx(fb,{className:"w-5 h-5 animate-spin"}),w.jsx("span",{className:"ml-2",children:"Reading SQLite file"})]})})}function Mk(){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()},[]),w.jsx("section",{className:"flex justify-center border rounded py-3",children:w.jsxs("div",{className:"flex flex-col items-center gap-3",children:[w.jsx("img",{ref:e,id:"logo",title:"SQLite Logo",src:"./sqlite-light.webp",alt:"SQLite Logo",width:"160",height:"80",draggable:"false"}),w.jsx("p",{className:"text-sm",children:"View SQLite file online"})]})})}var Vf="Dialog",[l0,s0]=Vo(Vf),[Ik,vn]=l0(Vf),a0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,a=v.useRef(null),f=v.useRef(null),[u=!1,p]=zs({prop:r,defaultProp:o,onChange:i});return w.jsx(Ik,{scope:t,triggerRef:a,contentRef:f,contentId:Po(),titleId:Po(),descriptionId:Po(),open:u,onOpenChange:p,onOpenToggle:v.useCallback(()=>p(m=>!m),[p]),modal:l,children:n})};a0.displayName=Vf;var u0="DialogTrigger",c0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(u0,n),i=Ve(t,o.triggerRef);return w.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Kf(o.open),...r,ref:i,onClick:be(e.onClick,o.onOpenToggle)})});c0.displayName=u0;var qf="DialogPortal",[Lk,f0]=l0(qf,{forceMount:void 0}),d0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=vn(qf,t);return w.jsx(Lk,{scope:t,forceMount:n,children:v.Children.map(r,l=>w.jsx(ll,{present:n||i.open,children:w.jsx(Ff,{asChild:!0,container:o,children:l})}))})};d0.displayName=qf;var qs="DialogOverlay",p0=v.forwardRef((e,t)=>{const n=f0(qs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=vn(qs,e.__scopeDialog);return i.modal?w.jsx(ll,{present:r||i.open,children:w.jsx(Fk,{...o,ref:t})}):null});p0.displayName=qs;var Fk=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(qs,n);return w.jsx(zf,{as:qr,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(Me.div,{"data-state":Kf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Qr="DialogContent",m0=v.forwardRef((e,t)=>{const n=f0(Qr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=vn(Qr,e.__scopeDialog);return w.jsx(ll,{present:r||i.open,children:i.modal?w.jsx(zk,{...o,ref:t}):w.jsx($k,{...o,ref:t})})});m0.displayName=Qr;var zk=v.forwardRef((e,t)=>{const n=vn(Qr,e.__scopeDialog),r=v.useRef(null),o=Ve(t,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return Ig(i)},[]),w.jsx(h0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&i.preventDefault()}),onFocusOutside:be(e.onFocusOutside,i=>i.preventDefault())})}),$k=v.forwardRef((e,t)=>{const n=vn(Qr,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return w.jsx(h0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,a;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var f,u;(f=e.onInteractOutside)==null||f.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()}})}),h0=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,a=vn(Qr,n),f=v.useRef(null),u=Ve(t,f);return ug(),w.jsxs(w.Fragment,{children:[w.jsx(Pf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(ca,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Kf(a.open),...l,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(Uk,{titleId:a.titleId}),w.jsx(Bk,{contentRef:f,descriptionId:a.descriptionId})]})]})}),Gf="DialogTitle",v0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(Gf,n);return w.jsx(Me.h2,{id:o.titleId,...r,ref:t})});v0.displayName=Gf;var g0="DialogDescription",y0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(g0,n);return w.jsx(Me.p,{id:o.descriptionId,...r,ref:t})});y0.displayName=g0;var w0="DialogClose",x0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(w0,n);return w.jsx(Me.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>o.onOpenChange(!1))})});x0.displayName=w0;function Kf(e){return e?"open":"closed"}var S0="DialogTitleWarning",[Hk,E0]=yb(S0,{contentName:Qr,titleName:Gf,docsSlug:"dialog"}),Uk=({titleId:e})=>{const t=E0(S0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +`)},jC=0,ao=[];function MC(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(jC++)[0],i=v.useState(Hg)[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 E=mc([e.lockRef.current],(e.shards||[]).map(mm),!0).filter(Boolean);return E.forEach(function(R){return R.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),E.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(E,R){if("touches"in E&&E.touches.length===2)return!l.current.allowPinchZoom;var y=Wl(E),g=n.current,b="deltaX"in E?E.deltaX:g[0]-y[0],_="deltaY"in E?E.deltaY:g[1]-y[1],P,D=E.target,T=Math.abs(b)>Math.abs(_)?"h":"v";if("touches"in E&&T==="h"&&D.type==="range")return!1;var A=dm(T,D);if(!A)return!0;if(A?P=T:(P=T==="v"?"h":"v",A=dm(T,D)),!A)return!1;if(!r.current&&"changedTouches"in E&&(b||_)&&(r.current=P),!P)return!0;var j=r.current||P;return AC(j,R,E,j==="h"?b:_,!0)},[]),f=v.useCallback(function(E){var R=E;if(!(!ao.length||ao[ao.length-1]!==i)){var y="deltaY"in R?pm(R):Wl(R),g=t.current.filter(function(P){return P.name===R.type&&(P.target===R.target||R.target===P.shadowParent)&&DC(P.delta,y)})[0];if(g&&g.should){R.cancelable&&R.preventDefault();return}if(!g){var b=(l.current.shards||[]).map(mm).filter(Boolean).filter(function(P){return P.contains(R.target)}),_=b.length>0?a(R,b[0]):!l.current.noIsolation;_&&R.cancelable&&R.preventDefault()}}},[]),u=v.useCallback(function(E,R,y,g){var b={name:E,delta:R,target:y,should:g,shadowParent:IC(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(_){return _!==b})},1)},[]),p=v.useCallback(function(E){n.current=Wl(E),r.current=void 0},[]),m=v.useCallback(function(E){u(E.type,pm(E),E.target,a(E,e.lockRef.current))},[]),h=v.useCallback(function(E){u(E.type,Wl(E),E.target,a(E,e.lockRef.current))},[]);v.useEffect(function(){return ao.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",f,so),document.addEventListener("touchmove",f,so),document.addEventListener("touchstart",p,so),function(){ao=ao.filter(function(E){return E!==i}),document.removeEventListener("wheel",f,so),document.removeEventListener("touchmove",f,so),document.removeEventListener("touchstart",p,so)}},[]);var x=e.removeScrollBar,C=e.inert;return v.createElement(v.Fragment,null,C?v.createElement(i,{styles:OC(o)}):null,x?v.createElement(CC,{gapMode:e.gapMode}):null)}function IC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const LC=fC($g,MC);var $f=v.forwardRef(function(e,t){return v.createElement(pa,kn({},e,{ref:t,sideCar:LC}))});$f.classNames=pa.classNames;var FC=[" ","Enter","ArrowUp","ArrowDown"],zC=[" ","Enter"],il="Select",[ma,ha,$C]=Sb(il),[Xo,OR]=Vo(il,[$C,da]),va=da(),[HC,_r]=Xo(il),[UC,WC]=Xo(il),Vg=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:a,onValueChange:f,dir:u,name:p,autoComplete:m,disabled:h,required:x}=e,C=va(t),[E,R]=v.useState(null),[y,g]=v.useState(null),[b,_]=v.useState(!1),P=bb(u),[D=!1,T]=zs({prop:r,defaultProp:o,onChange:i}),[A,j]=zs({prop:l,defaultProp:a,onChange:f}),I=v.useRef(null),V=E?!!E.closest("form"):!0,[H,F]=v.useState(new Set),W=Array.from(H).map(Z=>Z.props.value).join(";");return w.jsx(Ag,{...C,children:w.jsxs(HC,{required:x,scope:t,trigger:E,onTriggerChange:R,valueNode:y,onValueNodeChange:g,valueNodeHasChildren:b,onValueNodeHasChildrenChange:_,contentId:Po(),value:A,onValueChange:j,open:D,onOpenChange:T,dir:P,triggerPointerDownPosRef:I,disabled:h,children:[w.jsx(ma.Provider,{scope:t,children:w.jsx(UC,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(Z=>{F(le=>new Set(le).add(Z))},[]),onNativeOptionRemove:v.useCallback(Z=>{F(le=>{const ne=new Set(le);return ne.delete(Z),ne})},[]),children:n})}),V?w.jsxs(gy,{"aria-hidden":!0,required:x,tabIndex:-1,name:p,autoComplete:m,value:A,onChange:Z=>j(Z.target.value),disabled:h,children:[A===void 0?w.jsx("option",{value:""}):null,Array.from(H)]},W):null]})})};Vg.displayName=il;var qg="SelectTrigger",Gg=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=va(n),l=_r(qg,n),a=l.disabled||r,f=Ve(t,l.onTriggerChange),u=ha(n),[p,m,h]=yy(C=>{const E=u().filter(g=>!g.disabled),R=E.find(g=>g.value===l.value),y=wy(E,C,R);y!==void 0&&l.onValueChange(y.value)}),x=()=>{a||(l.onOpenChange(!0),h())};return w.jsx(Dg,{asChild:!0,...i,children:w.jsx(Me.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:a,"data-disabled":a?"":void 0,"data-placeholder":vy(l.value)?"":void 0,...o,ref:f,onClick:be(o.onClick,C=>{C.currentTarget.focus()}),onPointerDown:be(o.onPointerDown,C=>{const E=C.target;E.hasPointerCapture(C.pointerId)&&E.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&(x(),l.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)},C.preventDefault())}),onKeyDown:be(o.onKeyDown,C=>{const E=p.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&m(C.key),!(E&&C.key===" ")&&FC.includes(C.key)&&(x(),C.preventDefault())})})})});Gg.displayName=qg;var Kg="SelectValue",Qg=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,f=_r(Kg,n),{onValueNodeHasChildrenChange:u}=f,p=i!==void 0,m=Ve(t,f.onValueNodeChange);return kt(()=>{u(p)},[u,p]),w.jsx(Me.span,{...a,ref:m,style:{pointerEvents:"none"},children:vy(f.value)?w.jsx(w.Fragment,{children:l}):i})});Qg.displayName=Kg;var BC="SelectIcon",Yg=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(Me.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Yg.displayName=BC;var VC="SelectPortal",Xg=e=>w.jsx(zf,{asChild:!0,...e});Xg.displayName=VC;var Kr="SelectContent",Zg=v.forwardRef((e,t)=>{const n=_r(Kr,e.__scopeSelect),[r,o]=v.useState();if(kt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Zr.createPortal(w.jsx(Jg,{scope:e.__scopeSelect,children:w.jsx(ma.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),i):null}return w.jsx(ey,{...e,ref:t})});Zg.displayName=Kr;var Mn=10,[Jg,kr]=Xo(Kr),qC="SelectContentImpl",ey=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:a,sideOffset:f,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:x,sticky:C,hideWhenDetached:E,avoidCollisions:R,...y}=e,g=_r(Kr,n),[b,_]=v.useState(null),[P,D]=v.useState(null),T=Ve(t,J=>_(J)),[A,j]=v.useState(null),[I,V]=v.useState(null),H=ha(n),[F,W]=v.useState(!1),Z=v.useRef(!1);v.useEffect(()=>{if(b)return Lg(b)},[b]),cg();const le=v.useCallback(J=>{const[ye,...Ie]=H().map(de=>de.ref.current),[K]=Ie.slice(-1),ge=document.activeElement;for(const de of J)if(de===ge||(de==null||de.scrollIntoView({block:"nearest"}),de===ye&&P&&(P.scrollTop=0),de===K&&P&&(P.scrollTop=P.scrollHeight),de==null||de.focus(),document.activeElement!==ge))return},[H,P]),ne=v.useCallback(()=>le([A,b]),[le,A,b]);v.useEffect(()=>{F&&ne()},[F,ne]);const{onOpenChange:z,triggerPointerDownPosRef:B}=g;v.useEffect(()=>{if(b){let J={x:0,y:0};const ye=K=>{var ge,de;J={x:Math.abs(Math.round(K.pageX)-(((ge=B.current)==null?void 0:ge.x)??0)),y:Math.abs(Math.round(K.pageY)-(((de=B.current)==null?void 0:de.y)??0))}},Ie=K=>{J.x<=10&&J.y<=10?K.preventDefault():b.contains(K.target)||z(!1),document.removeEventListener("pointermove",ye),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",Ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",Ie,{capture:!0})}}},[b,z,B]),v.useEffect(()=>{const J=()=>z(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[z]);const[ee,se]=yy(J=>{const ye=H().filter(ge=>!ge.disabled),Ie=ye.find(ge=>ge.ref.current===document.activeElement),K=wy(ye,J,Ie);K&&setTimeout(()=>K.ref.current.focus())}),ue=v.useCallback((J,ye,Ie)=>{const K=!Z.current&&!Ie;(g.value!==void 0&&g.value===ye||K)&&(j(J),K&&(Z.current=!0))},[g.value]),qe=v.useCallback(()=>b==null?void 0:b.focus(),[b]),ve=v.useCallback((J,ye,Ie)=>{const K=!Z.current&&!Ie;(g.value!==void 0&&g.value===ye||K)&&V(J)},[g.value]),Xe=r==="popper"?vc:ty,_e=Xe===vc?{side:a,sideOffset:f,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:x,sticky:C,hideWhenDetached:E,avoidCollisions:R}:{};return w.jsx(Jg,{scope:n,content:b,viewport:P,onViewportChange:D,itemRefCallback:ue,selectedItem:A,onItemLeave:qe,itemTextRefCallback:ve,focusSelectedItem:ne,selectedItemText:I,position:r,isPositioned:F,searchRef:ee,children:w.jsx($f,{as:qr,allowPinchZoom:!0,children:w.jsx(Tf,{asChild:!0,trapped:g.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:be(o,J=>{var ye;(ye=g.trigger)==null||ye.focus({preventScroll:!0}),J.preventDefault()}),children:w.jsx(ca,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:w.jsx(Xe,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:J=>J.preventDefault(),...y,..._e,onPlaced:()=>W(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:be(y.onKeyDown,J=>{const ye=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ye&&J.key.length===1&&se(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let K=H().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);if(["ArrowUp","End"].includes(J.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const ge=J.target,de=K.indexOf(ge);K=K.slice(de+1)}setTimeout(()=>le(K)),J.preventDefault()}})})})})})})});ey.displayName=qC;var GC="SelectItemAlignedPosition",ty=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=_r(Kr,n),l=kr(Kr,n),[a,f]=v.useState(null),[u,p]=v.useState(null),m=Ve(t,T=>p(T)),h=ha(n),x=v.useRef(!1),C=v.useRef(!0),{viewport:E,selectedItem:R,selectedItemText:y,focusSelectedItem:g}=l,b=v.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&E&&R&&y){const T=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),j=i.valueNode.getBoundingClientRect(),I=y.getBoundingClientRect();if(i.dir!=="rtl"){const ge=I.left-A.left,de=j.left-ge,Y=T.left-de,me=T.width+Y,ut=Math.max(me,A.width),Je=window.innerWidth-Mn,tt=qp(de,[Mn,Je-ut]);a.style.minWidth=me+"px",a.style.left=tt+"px"}else{const ge=A.right-I.right,de=window.innerWidth-j.right-ge,Y=window.innerWidth-T.right-de,me=T.width+Y,ut=Math.max(me,A.width),Je=window.innerWidth-Mn,tt=qp(de,[Mn,Je-ut]);a.style.minWidth=me+"px",a.style.right=tt+"px"}const V=h(),H=window.innerHeight-Mn*2,F=E.scrollHeight,W=window.getComputedStyle(u),Z=parseInt(W.borderTopWidth,10),le=parseInt(W.paddingTop,10),ne=parseInt(W.borderBottomWidth,10),z=parseInt(W.paddingBottom,10),B=Z+le+F+z+ne,ee=Math.min(R.offsetHeight*5,B),se=window.getComputedStyle(E),ue=parseInt(se.paddingTop,10),qe=parseInt(se.paddingBottom,10),ve=T.top+T.height/2-Mn,Xe=H-ve,_e=R.offsetHeight/2,J=R.offsetTop+_e,ye=Z+le+J,Ie=B-ye;if(ye<=ve){const ge=R===V[V.length-1].ref.current;a.style.bottom="0px";const de=u.clientHeight-E.offsetTop-E.offsetHeight,Y=Math.max(Xe,_e+(ge?qe:0)+de+ne),me=ye+Y;a.style.height=me+"px"}else{const ge=R===V[0].ref.current;a.style.top="0px";const Y=Math.max(ve,Z+E.offsetTop+(ge?ue:0)+_e)+Ie;a.style.height=Y+"px",E.scrollTop=ye-ve+E.offsetTop}a.style.margin=`${Mn}px 0`,a.style.minHeight=ee+"px",a.style.maxHeight=H+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[h,i.trigger,i.valueNode,a,u,E,R,y,i.dir,r]);kt(()=>b(),[b]);const[_,P]=v.useState();kt(()=>{u&&P(window.getComputedStyle(u).zIndex)},[u]);const D=v.useCallback(T=>{T&&C.current===!0&&(b(),g==null||g(),C.current=!1)},[b,g]);return w.jsx(QC,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:x,onScrollButtonChange:D,children:w.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:w.jsx(Me.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ty.displayName=GC;var KC="SelectPopperPosition",vc=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Mn,...i}=e,l=va(n);return w.jsx(Og,{...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)"}})});vc.displayName=KC;var[QC,Hf]=Xo(Kr,{}),gc="SelectViewport",ny=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=kr(gc,n),l=Hf(gc,n),a=Ve(t,i.onViewportChange),f=v.useRef(0);return w.jsxs(w.Fragment,{children:[w.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}),w.jsx(ma.Slot,{scope:n,children:w.jsx(Me.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:be(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:h}=l;if(h!=null&&h.current&&m){const x=Math.abs(f.current-p.scrollTop);if(x>0){const C=window.innerHeight-Mn*2,E=parseFloat(m.style.minHeight),R=parseFloat(m.style.height),y=Math.max(E,R);if(y0?_:0,m.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});ny.displayName=gc;var ry="SelectGroup",[YC,XC]=Xo(ry),oy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Po();return w.jsx(YC,{scope:n,id:o,children:w.jsx(Me.div,{role:"group","aria-labelledby":o,...r,ref:t})})});oy.displayName=ry;var iy="SelectLabel",ly=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=XC(iy,n);return w.jsx(Me.div,{id:o.id,...r,ref:t})});ly.displayName=iy;var $s="SelectItem",[ZC,sy]=Xo($s),ay=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,a=_r($s,n),f=kr($s,n),u=a.value===r,[p,m]=v.useState(i??""),[h,x]=v.useState(!1),C=Ve(t,y=>{var g;return(g=f.itemRefCallback)==null?void 0:g.call(f,y,r,o)}),E=Po(),R=()=>{o||(a.onValueChange(r),a.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 w.jsx(ZC,{scope:n,value:r,disabled:o,textId:E,isSelected:u,onItemTextChange:v.useCallback(y=>{m(g=>g||((y==null?void 0:y.textContent)??"").trim())},[]),children:w.jsx(ma.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:w.jsx(Me.div,{role:"option","aria-labelledby":E,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:C,onFocus:be(l.onFocus,()=>x(!0)),onBlur:be(l.onBlur,()=>x(!1)),onPointerUp:be(l.onPointerUp,R),onPointerMove:be(l.onPointerMove,y=>{var g;o?(g=f.onItemLeave)==null||g.call(f):y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:be(l.onPointerLeave,y=>{var g;y.currentTarget===document.activeElement&&((g=f.onItemLeave)==null||g.call(f))}),onKeyDown:be(l.onKeyDown,y=>{var b;((b=f.searchRef)==null?void 0:b.current)!==""&&y.key===" "||(zC.includes(y.key)&&R(),y.key===" "&&y.preventDefault())})})})})});ay.displayName=$s;var Ei="SelectItemText",uy=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=_r(Ei,n),a=kr(Ei,n),f=sy(Ei,n),u=WC(Ei,n),[p,m]=v.useState(null),h=Ve(t,y=>m(y),f.onItemTextChange,y=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,y,f.value,f.disabled)}),x=p==null?void 0:p.textContent,C=v.useMemo(()=>w.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:E,onNativeOptionRemove:R}=u;return kt(()=>(E(C),()=>R(C)),[E,R,C]),w.jsxs(w.Fragment,{children:[w.jsx(Me.span,{id:f.textId,...i,ref:h}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Zr.createPortal(i.children,l.valueNode):null]})});uy.displayName=Ei;var cy="SelectItemIndicator",fy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return sy(cy,n).isSelected?w.jsx(Me.span,{"aria-hidden":!0,...r,ref:t}):null});fy.displayName=cy;var yc="SelectScrollUpButton",dy=v.forwardRef((e,t)=>{const n=kr(yc,e.__scopeSelect),r=Hf(yc,e.__scopeSelect),[o,i]=v.useState(!1),l=Ve(t,r.onScrollButtonChange);return kt(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=f.scrollTop>0;i(u)};const f=n.viewport;return a(),f.addEventListener("scroll",a),()=>f.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(my,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:f}=n;a&&f&&(a.scrollTop=a.scrollTop-f.offsetHeight)}}):null});dy.displayName=yc;var wc="SelectScrollDownButton",py=v.forwardRef((e,t)=>{const n=kr(wc,e.__scopeSelect),r=Hf(wc,e.__scopeSelect),[o,i]=v.useState(!1),l=Ve(t,r.onScrollButtonChange);return kt(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=f.scrollHeight-f.clientHeight,p=Math.ceil(f.scrollTop)f.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(my,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:f}=n;a&&f&&(a.scrollTop=a.scrollTop+f.offsetHeight)}}):null});py.displayName=wc;var my=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=kr("SelectScrollButton",n),l=v.useRef(null),a=ha(n),f=v.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return v.useEffect(()=>()=>f(),[f]),kt(()=>{var p;const u=a().find(m=>m.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[a]),w.jsx(Me.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:be(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:be(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:be(o.onPointerLeave,()=>{f()})})}),JC="SelectSeparator",hy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return w.jsx(Me.div,{"aria-hidden":!0,...r,ref:t})});hy.displayName=JC;var xc="SelectArrow",e_=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=va(n),i=_r(xc,n),l=kr(xc,n);return i.open&&l.position==="popper"?w.jsx(jg,{...o,...r,ref:t}):null});e_.displayName=xc;function vy(e){return e===""||e===void 0}var gy=v.forwardRef((e,t)=>{const{value:n,...r}=e,o=v.useRef(null),i=Ve(t,o),l=Z2(n);return v.useEffect(()=>{const a=o.current,f=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==n&&p){const m=new Event("change",{bubbles:!0});p.call(a,n),a.dispatchEvent(m)}},[l,n]),w.jsx(Mg,{asChild:!0,children:w.jsx("select",{...r,ref:i,defaultValue:n})})});gy.displayName="BubbleSelect";function yy(e){const t=Bn(e),n=v.useRef(""),r=v.useRef(0),o=v.useCallback(l=>{const a=n.current+l;t(a),function f(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}(a)},[t]),i=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function wy(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=t_(e,Math.max(i,0));o.length===1&&(l=l.filter(u=>u!==n));const f=l.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function t_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var n_=Vg,xy=Gg,r_=Qg,o_=Yg,i_=Xg,Sy=Zg,l_=ny,s_=oy,Ey=ly,by=ay,a_=uy,u_=fy,Cy=dy,_y=py,ky=hy;const c_=n_,f_=s_,d_=r_,Ry=v.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(xy,{ref:r,className:Se("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,w.jsx(o_,{asChild:!0,children:w.jsx(sg,{className:"h-4 w-4 opacity-50"})})]}));Ry.displayName=xy.displayName;const Py=v.forwardRef(({className:e,...t},n)=>w.jsx(Cy,{ref:n,className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsx(rb,{className:"h-4 w-4"})}));Py.displayName=Cy.displayName;const Ty=v.forwardRef(({className:e,...t},n)=>w.jsx(_y,{ref:n,className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsx(sg,{className:"h-4 w-4"})}));Ty.displayName=_y.displayName;const Ny=v.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>w.jsx(i_,{children:w.jsxs(Sy,{ref:o,className:Se("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:[w.jsx(Py,{}),w.jsx(l_,{className:Se("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),w.jsx(Ty,{})]})}));Ny.displayName=Sy.displayName;const Ay=v.forwardRef(({className:e,...t},n)=>w.jsx(Ey,{ref:n,className:Se("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Ay.displayName=Ey.displayName;const Dy=v.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(by,{ref:r,className:Se("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:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(u_,{children:w.jsx(eb,{className:"h-4 w-4"})})}),w.jsx(a_,{children:t})]}));Dy.displayName=by.displayName;const p_=v.forwardRef(({className:e,...t},n)=>w.jsx(ky,{ref:n,className:Se("-mx-1 my-1 h-px bg-muted",e),...t}));p_.displayName=ky.displayName;const m_=ig("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 Oy({className:e,variant:t,...n}){return w.jsx("div",{className:Se(m_({variant:t}),e),...n})}function h_(){const{tables:e,selectedTable:t,setSelectedTable:n}=Jr();return w.jsxs("section",{className:"flex justify-center items-center gap-2",children:[w.jsxs(c_,{value:t,onValueChange:n,children:[w.jsx(Ry,{className:"w-[200px] md:w-[300px]",children:w.jsx(d_,{placeholder:"Select a table"})}),w.jsx(Ny,{children:w.jsxs(f_,{children:[w.jsx(Ay,{children:"Tables"}),e.map((r,o)=>w.jsx(Dy,{value:`${o}`,children:r.name},r.name))]})})]}),w.jsxs(Oy,{className:"text-sm",children:[e[parseInt(t)].count," rows"]})]})}function v_(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var ll=e=>{const{present:t,children:n}=e,r=g_(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Ve(r.ref,y_(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};ll.displayName="Presence";function g_(e){const[t,n]=v.useState(),r=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),l=e?"mounted":"unmounted",[a,f]=v_(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Bl(r.current);i.current=a==="mounted"?u:"none"},[a]),kt(()=>{const u=r.current,p=o.current;if(p!==e){const h=i.current,x=Bl(u);e?f("MOUNT"):x==="none"||(u==null?void 0:u.display)==="none"?f("UNMOUNT"):f(p&&h!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),kt(()=>{if(t){const u=m=>{const x=Bl(r.current).includes(m.animationName);m.target===t&&x&&Zr.flushSync(()=>f("ANIMATION_END"))},p=m=>{m.target===t&&(i.current=Bl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Bl(e){return(e==null?void 0:e.animationName)||"none"}function y_(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 fu,Uf="HoverCard",[jy,jR]=Vo(Uf,[da]),ga=da(),[w_,Wf]=jy(Uf),My=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:l=700,closeDelay:a=300}=e,f=ga(t),u=v.useRef(0),p=v.useRef(0),m=v.useRef(!1),h=v.useRef(!1),[x=!1,C]=zs({prop:r,defaultProp:o,onChange:i}),E=v.useCallback(()=>{clearTimeout(p.current),u.current=window.setTimeout(()=>C(!0),l)},[l,C]),R=v.useCallback(()=>{clearTimeout(u.current),!m.current&&!h.current&&(p.current=window.setTimeout(()=>C(!1),a))},[a,C]),y=v.useCallback(()=>C(!1),[C]);return v.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(p.current)},[]),w.jsx(w_,{scope:t,open:x,onOpenChange:C,onOpen:E,onClose:R,onDismiss:y,hasSelectionRef:m,isPointerDownOnContentRef:h,children:w.jsx(Ag,{...f,children:n})})};My.displayName=Uf;var Iy="HoverCardTrigger",Ly=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Wf(Iy,n),i=ga(n);return w.jsx(Dg,{asChild:!0,...i,children:w.jsx(Me.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:be(e.onPointerEnter,Us(o.onOpen)),onPointerLeave:be(e.onPointerLeave,Us(o.onClose)),onFocus:be(e.onFocus,o.onOpen),onBlur:be(e.onBlur,o.onClose),onTouchStart:be(e.onTouchStart,l=>l.preventDefault())})})});Ly.displayName=Iy;var x_="HoverCardPortal",[MR,S_]=jy(x_,{forceMount:void 0}),Hs="HoverCardContent",Fy=v.forwardRef((e,t)=>{const n=S_(Hs,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=Wf(Hs,e.__scopeHoverCard);return w.jsx(ll,{present:r||i.open,children:w.jsx(E_,{"data-state":i.open?"open":"closed",...o,onPointerEnter:be(e.onPointerEnter,Us(i.onOpen)),onPointerLeave:be(e.onPointerLeave,Us(i.onClose)),ref:t})})});Fy.displayName=Hs;var E_=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,...a}=e,f=Wf(Hs,n),u=ga(n),p=v.useRef(null),m=Ve(t,p),[h,x]=v.useState(!1);return v.useEffect(()=>{if(h){const C=document.body;return fu=C.style.userSelect||C.style.webkitUserSelect,C.style.userSelect="none",C.style.webkitUserSelect="none",()=>{C.style.userSelect=fu,C.style.webkitUserSelect=fu}}},[h]),v.useEffect(()=>{if(p.current){const C=()=>{x(!1),f.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var R;((R=document.getSelection())==null?void 0:R.toString())!==""&&(f.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",C),()=>{document.removeEventListener("pointerup",C),f.hasSelectionRef.current=!1,f.isPointerDownOnContentRef.current=!1}}},[f.isPointerDownOnContentRef,f.hasSelectionRef]),v.useEffect(()=>{p.current&&__(p.current).forEach(E=>E.setAttribute("tabindex","-1"))}),w.jsx(ca,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:be(i,C=>{C.preventDefault()}),onDismiss:f.onDismiss,children:w.jsx(Og,{...u,...a,onPointerDown:be(a.onPointerDown,C=>{C.currentTarget.contains(C.target)&&x(!0),f.hasSelectionRef.current=!1,f.isPointerDownOnContentRef.current=!0}),ref:m,style:{...a.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"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)"}})})}),b_="HoverCardArrow",C_=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ga(n);return w.jsx(jg,{...o,...r,ref:t})});C_.displayName=b_;function Us(e){return t=>t.pointerType==="touch"?void 0:e()}function __(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 k_=My,R_=Ly,zy=Fy;const $y=k_,Hy=R_,Bf=v.forwardRef(({className:e,align:t="start",side:n="bottom",sideOffset:r=4,...o},i)=>w.jsx(zy,{ref:i,align:t,side:n,sideOffset:r,className:Se("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}));Bf.displayName=zy.displayName;const Uy=v.forwardRef(({className:e,...t},n)=>w.jsx("div",{className:"relative w-full overflow-auto",children:w.jsx("table",{ref:n,className:Se("w-full caption-bottom text-sm",e),...t})}));Uy.displayName="Table";const Wy=v.forwardRef(({className:e,...t},n)=>w.jsx("thead",{ref:n,className:Se("[&_tr]:border-b",e),...t}));Wy.displayName="TableHeader";const By=v.forwardRef(({className:e,...t},n)=>w.jsx("tbody",{ref:n,className:Se("[&_tr:last-child]:border-0",e),...t}));By.displayName="TableBody";const P_=v.forwardRef(({className:e,...t},n)=>w.jsx("tfoot",{ref:n,className:Se("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));P_.displayName="TableFooter";const Sc=v.forwardRef(({className:e,...t},n)=>w.jsx("tr",{ref:n,className:Se("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Sc.displayName="TableRow";const Vy=v.forwardRef(({className:e,...t},n)=>w.jsx("th",{ref:n,className:Se("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Vy.displayName="TableHead";const qy=v.forwardRef(({className:e,children:t,dataType:n,...r},o)=>w.jsx("td",{ref:o,className:Se("p-4 align-middle [&:has([role=checkbox])]:pr-0 truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",e),...r,children:w.jsxs($y,{children:[w.jsx(Hy,{asChild:!0,children:w.jsx("span",{className:"hover:underline cursor-pointer",children:t})}),w.jsx(Bf,{side:"bottom",align:"start",children:w.jsxs("div",{className:"flex flex-col gap-1",children:[n==="BLOB"?w.jsx("span",{className:"truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",children:t}):t,n&&w.jsx(Oy,{className:"text-xs",children:n})]})})]})}));qy.displayName="TableCell";const T_=v.forwardRef(({className:e,...t},n)=>w.jsx("caption",{ref:n,className:Se("mt-4 text-sm text-muted-foreground",e),...t}));T_.displayName="TableCaption";function N_({data:e,columns:t,tableName:n,tableSchemas:r}){return w.jsxs(Uy,{children:[w.jsx(Wy,{children:w.jsx(Sc,{children:t.map((o,i)=>{var l,a,f,u,p,m;return w.jsx(Vy,{children:w.jsxs($y,{children:[w.jsx(Hy,{asChild:!0,children:w.jsx("span",{className:"hover:underline cursor-pointer",children:w.jsxs("div",{className:"flex gap-1",children:[o,((l=r[n][o])==null?void 0:l.isPrimaryKey)&&w.jsx(ub,{className:"h-4 w-4"}),((a=r[n][o])==null?void 0:a.isForeignKey)&&w.jsx(cb,{className:"h-4 w-4"}),((f=r[n][o])==null?void 0:f.type)==="BLOB"&&w.jsx(ib,{className:"h-4 w-4"}),((u=r[n][o])==null?void 0:u.type)==="DATETIME"&&w.jsx(ob,{className:"h-4 w-4"})]})})}),w.jsx(Bf,{side:"bottom",align:"start",children:((p=r[n][o])==null?void 0:p.type.length)==0?"Unknown":(m=r[n][o])==null?void 0:m.type})]})},i)})})}),w.jsx(By,{children:e.map((o,i)=>w.jsx(Sc,{children:t.map((l,a)=>{var f;return w.jsx(qy,{dataType:(f=r[n][l])==null?void 0:f.type,children:o[l]?o[l]:w.jsx("span",{className:"italic opacity-40",children:"NULL"})},a)})},i))})]})}function Ec({children:e}){return w.jsx("div",{className:"text-center text-red-400 font-semibold md:text-2xl p-10 border rounded mb-2",children:e})}function A_(){const{query:e,db:t,tables:n,selectedTable:r,tableSchemas:o,queryError:i,setQueryError:l,rowPerPageOrAuto:a,isCustomQuery:f,setIsCustomQuery:u}=Jr(),[p,m]=v.useState([]),[h,x]=v.useState([]),[C,E]=v.useState(0),[R,y]=v.useState(""),g=v.useMemo(()=>{var A;return(A=n[parseInt(r)])==null?void 0:A.name},[n,r]),b=v.useMemo(()=>{var A;return((A=n[parseInt(r)])==null?void 0:A.count)||0},[n,r]);let _=30;if(a==="auto"){let A=110;const j=window.innerHeight,I=j>1500,V=j>1e3,H=j<750;I?A=75:V?A=90:H&&(A=130),_=Math.max(1,Math.floor(j/A))}else _=a;v.useEffect(()=>{E(0),u(!1)},[g]),v.useEffect(()=>{if(t&&g&&!f)try{const A=`SELECT * FROM "${g}" LIMIT ${_} OFFSET ${C};`,j=e(A),{data:I,columns:V}=js(j);x(V),m(I),l(null),y(A)}catch(A){A instanceof Error&&l(A.message)}},[g,C,_]);const P=v.useCallback(()=>{l(null),y(""),u(!1)},[u,l]),D=v.useCallback(()=>{E(0),l(null),y(""),u(!1)},[u,l]),T=v.useCallback(()=>{if(R.trim()===""){l(null);return}if(t&&R.trim()!=="")try{const A=e(R),{data:j,columns:I}=js(A);x(I),m(j),u(!0),l(null)}catch(A){A instanceof Error&&l(A.message)}},[R,t,e,l]);return w.jsxs("div",{className:"flex flex-col gap-3 mb-2",children:[w.jsxs("section",{className:"flex flex-col gap-2 p-3 pb-1 border rounded",children:[w.jsx(h_,{}),w.jsxs("div",{className:"flex gap-1",children:[w.jsx(Rf,{type:"text",value:R,onChange:A=>y(A.target.value),placeholder:"Enter your custom query",className:"w-full"}),w.jsx(Dt,{onClick:T,title:"Run custom query",children:w.jsx(mb,{className:"h-5 w-5"})}),w.jsx(Dt,{onClick:P,title:"Reset query",children:w.jsx(gb,{className:"h-5 w-5"})}),w.jsx(Dt,{onClick:D,title:"Reset to first page",disabled:C===0,children:w.jsx(fb,{className:"h-5 w-5"})})]}),w.jsx("p",{className:"text-xs text-red-500 capitalize text-center",children:i})]}),p.length>0?w.jsx("div",{className:"border rounded",children:w.jsx(N_,{data:p,columns:h,tableName:g,tableSchemas:o})}):w.jsxs(Ec,{children:["Table ",g," is empty"]}),!f&&w.jsx(yb,{page:C,setPage:E,rowsPerPage:_,rowCount:b})]})}var Gy={exports:{}},D_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",O_=D_,j_=O_;function Ky(){}function Qy(){}Qy.resetWarningCache=Ky;var M_=function(){function e(r,o,i,l,a,f){if(f!==j_){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:Qy,resetWarningCache:Ky};return n.PropTypes=n,n};Gy.exports=M_();var I_=Gy.exports;const Ne=Zi(I_);var L_=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=F_(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 F_(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=L_.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var z_=[".DS_Store","Thumbs.db"];function $_(e){return Qo(this,void 0,void 0,function(){return Yo(this,function(t){return Ws(e)&&H_(e.dataTransfer)?[2,V_(e.dataTransfer,e.type)]:U_(e)?[2,W_(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,B_(e)]:[2,[]]})})}function H_(e){return Ws(e)}function U_(e){return Ws(e)&&Ws(e.target)}function Ws(e){return typeof e=="object"&&e!==null}function W_(e){return bc(e.target.files).map(function(t){return sl(t)})}function B_(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 V_(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=bc(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(q_))]):[3,2];case 1:return r=o.sent(),[2,hm(Yy(r))];case 2:return[2,hm(bc(e.files).map(function(i){return sl(i)}))]}})})}function hm(e){return e.filter(function(t){return z_.indexOf(t.name)===-1})}function bc(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,xm(n)];if(e.sizen)return[!1,xm(n)]}return[!0,null]}function jr(e){return e!=null}function ak(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,l=e.maxFiles,a=e.validator;return!i&&t.length>1||i&&l>=1&&t.length>l?!1:t.every(function(f){var u=e0(f,n),p=Xi(u,1),m=p[0],h=t0(f,r,o),x=Xi(h,1),C=x[0],E=a?a(f):null;return m&&C&&!E})}function Bs(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Vl(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 Em(e){e.preventDefault()}function uk(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function ck(e){return e.indexOf("Edge/")!==-1}function fk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return uk(e)||ck(e)}function bn(){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 Pk(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 Vf=v.forwardRef(function(e,t){var n=e.children,r=Vs(e,gk),o=l0(r),i=o.open,l=Vs(o,yk);return v.useImperativeHandle(t,function(){return{open:i}},[i]),Q.createElement(v.Fragment,null,n(Ge(Ge({},l),{},{open:i})))});Vf.displayName="Dropzone";var i0={disabled:!1,getFilesFromEvent:$_,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};Vf.defaultProps=i0;Vf.propTypes={children:Ne.func,accept:Ne.objectOf(Ne.arrayOf(Ne.string)),multiple:Ne.bool,preventDropOnDocument:Ne.bool,noClick:Ne.bool,noKeyboard:Ne.bool,noDrag:Ne.bool,noDragEventsBubbling:Ne.bool,minSize:Ne.number,maxSize:Ne.number,maxFiles:Ne.number,disabled:Ne.bool,getFilesFromEvent:Ne.func,onFileDialogCancel:Ne.func,onFileDialogOpen:Ne.func,useFsAccessApi:Ne.bool,autoFocus:Ne.bool,onDragEnter:Ne.func,onDragLeave:Ne.func,onDragOver:Ne.func,onDrop:Ne.func,onDropAccepted:Ne.func,onDropRejected:Ne.func,onError:Ne.func,validator:Ne.func};var Rc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function l0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ge(Ge({},i0),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,l=t.minSize,a=t.multiple,f=t.maxFiles,u=t.onDragEnter,p=t.onDragLeave,m=t.onDragOver,h=t.onDrop,x=t.onDropAccepted,C=t.onDropRejected,E=t.onFileDialogCancel,R=t.onFileDialogOpen,y=t.useFsAccessApi,g=t.autoFocus,b=t.preventDropOnDocument,_=t.noClick,P=t.noKeyboard,D=t.noDrag,T=t.noDragEventsBubbling,A=t.onError,j=t.validator,I=v.useMemo(function(){return mk(n)},[n]),V=v.useMemo(function(){return pk(n)},[n]),H=v.useMemo(function(){return typeof R=="function"?R:Cm},[R]),F=v.useMemo(function(){return typeof E=="function"?E:Cm},[E]),W=v.useRef(null),Z=v.useRef(null),le=v.useReducer(Tk,Rc),ne=du(le,2),z=ne[0],B=ne[1],ee=z.isFocused,se=z.isFileDialogActive,ue=v.useRef(typeof window<"u"&&window.isSecureContext&&y&&dk()),qe=function(){!ue.current&&se&&setTimeout(function(){if(Z.current){var oe=Z.current.files;oe.length||(B({type:"closeDialog"}),F())}},300)};v.useEffect(function(){return window.addEventListener("focus",qe,!1),function(){window.removeEventListener("focus",qe,!1)}},[Z,se,F,ue]);var ve=v.useRef([]),Xe=function(oe){W.current&&W.current.contains(oe.target)||(oe.preventDefault(),ve.current=[])};v.useEffect(function(){return b&&(document.addEventListener("dragover",Em,!1),document.addEventListener("drop",Xe,!1)),function(){b&&(document.removeEventListener("dragover",Em),document.removeEventListener("drop",Xe))}},[W,b]),v.useEffect(function(){return!r&&g&&W.current&&W.current.focus(),function(){}},[W,g,r]);var _e=v.useCallback(function(G){A?A(G):console.error(G)},[A]),J=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G),ve.current=[].concat(Sk(ve.current),[G.target]),Vl(G)&&Promise.resolve(o(G)).then(function(oe){if(!(Bs(G)&&!T)){var Le=oe.length,Pe=Le>0&&ak({files:oe,accept:I,minSize:l,maxSize:i,multiple:a,maxFiles:f,validator:j}),nt=Le>0&&!Pe;B({isDragAccept:Pe,isDragReject:nt,isDragActive:!0,type:"setDraggedFiles"}),u&&u(G)}}).catch(function(oe){return _e(oe)})},[o,u,_e,T,I,l,i,a,f,j]),ye=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G);var oe=Vl(G);if(oe&&G.dataTransfer)try{G.dataTransfer.dropEffect="copy"}catch{}return oe&&m&&m(G),!1},[m,T]),Ie=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G);var oe=ve.current.filter(function(Pe){return W.current&&W.current.contains(Pe)}),Le=oe.indexOf(G.target);Le!==-1&&oe.splice(Le,1),ve.current=oe,!(oe.length>0)&&(B({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Vl(G)&&p&&p(G))},[W,p,T]),K=v.useCallback(function(G,oe){var Le=[],Pe=[];G.forEach(function(nt){var Nt=e0(nt,I),St=du(Nt,2),on=St[0],Yn=St[1],Xn=t0(nt,l,i),Zn=du(Xn,2),ie=Zn[0],fe=Zn[1],Re=j?j(nt):null;if(on&&ie&&!Re)Le.push(nt);else{var q=[Yn,fe];Re&&(q=q.concat(Re)),Pe.push({file:nt,errors:q.filter(function(De){return De})})}}),(!a&&Le.length>1||a&&f>=1&&Le.length>f)&&(Le.forEach(function(nt){Pe.push({file:nt,errors:[sk]})}),Le.splice(0)),B({acceptedFiles:Le,fileRejections:Pe,type:"setFiles"}),h&&h(Le,Pe,oe),Pe.length>0&&C&&C(Pe,oe),Le.length>0&&x&&x(Le,oe)},[B,a,I,l,i,f,h,x,C,j]),ge=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G),ve.current=[],Vl(G)&&Promise.resolve(o(G)).then(function(oe){Bs(G)&&!T||K(oe,G)}).catch(function(oe){return _e(oe)}),B({type:"reset"})},[o,K,_e,T]),de=v.useCallback(function(){if(ue.current){B({type:"openDialog"}),H();var G={multiple:a,types:V};window.showOpenFilePicker(G).then(function(oe){return o(oe)}).then(function(oe){K(oe,null),B({type:"closeDialog"})}).catch(function(oe){hk(oe)?(F(oe),B({type:"closeDialog"})):vk(oe)?(ue.current=!1,Z.current?(Z.current.value=null,Z.current.click()):_e(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."))):_e(oe)});return}Z.current&&(B({type:"openDialog"}),H(),Z.current.value=null,Z.current.click())},[B,H,F,y,K,_e,V,a]),Y=v.useCallback(function(G){!W.current||!W.current.isEqualNode(G.target)||(G.key===" "||G.key==="Enter"||G.keyCode===32||G.keyCode===13)&&(G.preventDefault(),de())},[W,de]),me=v.useCallback(function(){B({type:"focus"})},[]),ut=v.useCallback(function(){B({type:"blur"})},[]),Je=v.useCallback(function(){_||(fk()?setTimeout(de,0):de())},[_,de]),tt=function(oe){return r?null:oe},Tt=function(oe){return P?null:tt(oe)},ke=function(oe){return D?null:tt(oe)},rn=function(oe){T&&oe.stopPropagation()},eo=v.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=G.refKey,Le=oe===void 0?"ref":oe,Pe=G.role,nt=G.onKeyDown,Nt=G.onFocus,St=G.onBlur,on=G.onClick,Yn=G.onDragEnter,Xn=G.onDragOver,Zn=G.onDragLeave,ie=G.onDrop,fe=Vs(G,wk);return Ge(Ge(kc({onKeyDown:Tt(bn(nt,Y)),onFocus:Tt(bn(Nt,me)),onBlur:Tt(bn(St,ut)),onClick:tt(bn(on,Je)),onDragEnter:ke(bn(Yn,J)),onDragOver:ke(bn(Xn,ye)),onDragLeave:ke(bn(Zn,Ie)),onDrop:ke(bn(ie,ge)),role:typeof Pe=="string"&&Pe!==""?Pe:"presentation"},Le,W),!r&&!P?{tabIndex:0}:{}),fe)}},[W,Y,me,ut,Je,J,ye,Ie,ge,P,D,r]),Ft=v.useCallback(function(G){G.stopPropagation()},[]),yn=v.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=G.refKey,Le=oe===void 0?"ref":oe,Pe=G.onChange,nt=G.onClick,Nt=Vs(G,xk),St=kc({accept:I,multiple:a,type:"file",style:{display:"none"},onChange:tt(bn(Pe,ge)),onClick:tt(bn(nt,Ft)),tabIndex:-1},Le,Z);return Ge(Ge({},St),Nt)}},[Z,n,a,ge,r]);return Ge(Ge({},z),{},{isFocused:ee&&!r,getRootProps:eo,getInputProps:yn,rootRef:W,inputRef:Z,open:tt(de)})}function Tk(e,t){switch(t.type){case"focus":return Ge(Ge({},e),{},{isFocused:!0});case"blur":return Ge(Ge({},e),{},{isFocused:!1});case"openDialog":return Ge(Ge({},Rc),{},{isFileDialogActive:!0});case"closeDialog":return Ge(Ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ge(Ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ge(Ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ge({},Rc);default:return e}}function Cm(){}const Nk=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];function Ak(e){if(e===0)return"0 Byte";const t=Math.floor(Math.log(e)/Math.log(1024)),n=Nk[t];return`${(e/Math.pow(1024,t)).toFixed(2)} ${n}`}function Dk({file:e}){return w.jsx(w.Fragment,{children:w.jsxs("li",{className:"flex w-full items-center justify-center gap-2 font-mono text-sm",title:e.name,children:[w.jsx("p",{className:"max-w-[250px] truncate",children:e.name}),w.jsx("span",{className:"text-xs font-semibold",children:Ak(e.size)})]})})}function Ok({errors:e}){return e?w.jsx(w.Fragment,{children:e.map(t=>w.jsxs("div",{className:"flex items-center justify-center text-sm text-red-600 gap-2 rounded border border-red-600 p-4 mb-2",children:[w.jsx(sb,{}),t.message]},t.code))}):w.jsxs("li",{className:"flex w-full items-center justify-center text-sm text-green-600",children:[w.jsx(lb,{className:"mr-2"}),"Uploaded successfully"]})}function jk(){const{loadDatabase:e,setTables:t,setSelectedTable:n,db:r}=Jr(),[o,i]=v.useState(null),[l,a]=v.useState([]),f=v.useCallback(async(m,h)=>{if(a([]),t([]),n("0"),m.length>0){const x=m[0];i(x),await e(x)}if(h.length>0){const x=h.flatMap(C=>C.errors);a(x)}},[e,t,n]),{getRootProps:u,getInputProps:p}=l0({onDrop:f,multiple:!1,accept:{"application/vnd.sqlite3":[".sqlite",".sqlite3"],"application/x-sqlite3":[".sqlite",".sqlite3"],"application/octet-stream":[".db"],"application/sql":[".sql"]}});return w.jsxs("section",{children:[r?w.jsxs("div",{...u(),className:"border p-6 rounded cursor-pointer text-center",children:[w.jsx("input",{id:"file-upload",...p()}),w.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),w.jsx("p",{className:"hidden sm:block",children:"Drag drop a SQLite file here, or click to select one"}),w.jsx("p",{className:"block sm:hidden",children:"Click to select a SQLite file"})]}):w.jsxs("div",{...u(),className:"border p-6 py-24 rounded cursor-pointer text-center",children:[w.jsx("input",{id:"file-upload",...p()}),w.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),w.jsx("p",{className:"hidden sm:block",children:"Drag drop a SQLite file here, or click to select one"}),w.jsx("p",{className:"block sm:hidden",children:"Click to select a SQLite file"}),w.jsx("a",{href:"https://github.com/vwh/sqlite-viewer/raw/main/examples/chinook.db",className:"text-sm text-link hover:underline",title:"Download sample file",children:"Or download & try this sample file"})]}),w.jsxs("div",{className:"mt-2",children:[o&&w.jsx(Dk,{file:o}),w.jsx(Ok,{errors:l})]})]})}function Mk(){const{isLoading:e}=Jr();return w.jsx(w.Fragment,{children:e&&w.jsxs("div",{className:"flex items-center justify-center mb-2 font-semibold p-4 border rounded",children:[w.jsx(db,{className:"w-5 h-5 animate-spin"}),w.jsx("span",{className:"ml-2",children:"Reading SQLite file"})]})})}function Ik(){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()},[]),w.jsx("section",{className:"flex justify-center border rounded py-3",children:w.jsxs("div",{className:"flex flex-col items-center gap-3",children:[w.jsx("img",{ref:e,id:"logo",title:"SQLite Logo",src:"./sqlite-light.webp",alt:"SQLite Logo",width:"160",height:"80",draggable:"false"}),w.jsx("p",{className:"text-sm",children:"View SQLite file online"})]})})}var qf="Dialog",[s0,a0]=Vo(qf),[Lk,vn]=s0(qf),u0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,a=v.useRef(null),f=v.useRef(null),[u=!1,p]=zs({prop:r,defaultProp:o,onChange:i});return w.jsx(Lk,{scope:t,triggerRef:a,contentRef:f,contentId:Po(),titleId:Po(),descriptionId:Po(),open:u,onOpenChange:p,onOpenToggle:v.useCallback(()=>p(m=>!m),[p]),modal:l,children:n})};u0.displayName=qf;var c0="DialogTrigger",f0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(c0,n),i=Ve(t,o.triggerRef);return w.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Qf(o.open),...r,ref:i,onClick:be(e.onClick,o.onOpenToggle)})});f0.displayName=c0;var Gf="DialogPortal",[Fk,d0]=s0(Gf,{forceMount:void 0}),p0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=vn(Gf,t);return w.jsx(Fk,{scope:t,forceMount:n,children:v.Children.map(r,l=>w.jsx(ll,{present:n||i.open,children:w.jsx(zf,{asChild:!0,container:o,children:l})}))})};p0.displayName=Gf;var qs="DialogOverlay",m0=v.forwardRef((e,t)=>{const n=d0(qs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=vn(qs,e.__scopeDialog);return i.modal?w.jsx(ll,{present:r||i.open,children:w.jsx(zk,{...o,ref:t})}):null});m0.displayName=qs;var zk=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(qs,n);return w.jsx($f,{as:qr,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(Me.div,{"data-state":Qf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Qr="DialogContent",h0=v.forwardRef((e,t)=>{const n=d0(Qr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=vn(Qr,e.__scopeDialog);return w.jsx(ll,{present:r||i.open,children:i.modal?w.jsx($k,{...o,ref:t}):w.jsx(Hk,{...o,ref:t})})});h0.displayName=Qr;var $k=v.forwardRef((e,t)=>{const n=vn(Qr,e.__scopeDialog),r=v.useRef(null),o=Ve(t,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return Lg(i)},[]),w.jsx(v0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&i.preventDefault()}),onFocusOutside:be(e.onFocusOutside,i=>i.preventDefault())})}),Hk=v.forwardRef((e,t)=>{const n=vn(Qr,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return w.jsx(v0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,a;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var f,u;(f=e.onInteractOutside)==null||f.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()}})}),v0=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,a=vn(Qr,n),f=v.useRef(null),u=Ve(t,f);return cg(),w.jsxs(w.Fragment,{children:[w.jsx(Tf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(ca,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Qf(a.open),...l,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(Wk,{titleId:a.titleId}),w.jsx(Vk,{contentRef:f,descriptionId:a.descriptionId})]})]})}),Kf="DialogTitle",g0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(Kf,n);return w.jsx(Me.h2,{id:o.titleId,...r,ref:t})});g0.displayName=Kf;var y0="DialogDescription",w0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(y0,n);return w.jsx(Me.p,{id:o.descriptionId,...r,ref:t})});w0.displayName=y0;var x0="DialogClose",S0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(x0,n);return w.jsx(Me.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>o.onOpenChange(!1))})});S0.displayName=x0;function Qf(e){return e?"open":"closed"}var E0="DialogTitleWarning",[Uk,b0]=wb(E0,{contentName:Qr,titleName:Kf,docsSlug:"dialog"}),Wk=({titleId:e})=>{const t=b0(E0),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},Wk="DialogDescriptionWarning",Bk=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${E0(Wk).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},b0=a0,C0=c0,_0=d0,k0=p0,R0=m0,P0=v0,N0=y0,Qf=x0,T0="AlertDialog",[Vk,MR]=Vo(T0,[s0]),Qn=s0(),A0=e=>{const{__scopeAlertDialog:t,...n}=e,r=Qn(t);return w.jsx(b0,{...r,...n,modal:!0})};A0.displayName=T0;var qk="AlertDialogTrigger",Gk=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return w.jsx(C0,{...o,...r,ref:t})});Gk.displayName=qk;var Kk="AlertDialogPortal",D0=e=>{const{__scopeAlertDialog:t,...n}=e,r=Qn(t);return w.jsx(_0,{...r,...n})};D0.displayName=Kk;var Qk="AlertDialogOverlay",O0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return w.jsx(k0,{...o,...r,ref:t})});O0.displayName=Qk;var Ao="AlertDialogContent",[Yk,Xk]=Vk(Ao),j0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Qn(n),l=v.useRef(null),a=Ve(t,l),f=v.useRef(null);return w.jsx(Hk,{contentName:Ao,titleName:M0,docsSlug:"alert-dialog",children:w.jsx(Yk,{scope:n,cancelRef:f,children:w.jsxs(R0,{role:"alertdialog",...i,...o,ref:a,onOpenAutoFocus:be(o.onOpenAutoFocus,u=>{var p;u.preventDefault(),(p=f.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[w.jsx(ng,{children:r}),w.jsx(Jk,{contentRef:l})]})})})});j0.displayName=Ao;var M0="AlertDialogTitle",I0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return w.jsx(P0,{...o,...r,ref:t})});I0.displayName=M0;var L0="AlertDialogDescription",F0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return w.jsx(N0,{...o,...r,ref:t})});F0.displayName=L0;var Zk="AlertDialogAction",z0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return w.jsx(Qf,{...o,...r,ref:t})});z0.displayName=Zk;var $0="AlertDialogCancel",H0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Xk($0,n),i=Qn(n),l=Ve(t,o);return w.jsx(Qf,{...i,...r,ref:l})});H0.displayName=$0;var Jk=({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 v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Bk="DialogDescriptionWarning",Vk=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${b0(Bk).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},C0=u0,_0=f0,k0=p0,R0=m0,P0=h0,T0=g0,N0=w0,Yf=S0,A0="AlertDialog",[qk,IR]=Vo(A0,[a0]),Qn=a0(),D0=e=>{const{__scopeAlertDialog:t,...n}=e,r=Qn(t);return w.jsx(C0,{...r,...n,modal:!0})};D0.displayName=A0;var Gk="AlertDialogTrigger",Kk=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return w.jsx(_0,{...o,...r,ref:t})});Kk.displayName=Gk;var Qk="AlertDialogPortal",O0=e=>{const{__scopeAlertDialog:t,...n}=e,r=Qn(t);return w.jsx(k0,{...r,...n})};O0.displayName=Qk;var Yk="AlertDialogOverlay",j0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return w.jsx(R0,{...o,...r,ref:t})});j0.displayName=Yk;var Ao="AlertDialogContent",[Xk,Zk]=qk(Ao),M0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Qn(n),l=v.useRef(null),a=Ve(t,l),f=v.useRef(null);return w.jsx(Uk,{contentName:Ao,titleName:I0,docsSlug:"alert-dialog",children:w.jsx(Xk,{scope:n,cancelRef:f,children:w.jsxs(P0,{role:"alertdialog",...i,...o,ref:a,onOpenAutoFocus:be(o.onOpenAutoFocus,u=>{var p;u.preventDefault(),(p=f.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[w.jsx(rg,{children:r}),w.jsx(eR,{contentRef:l})]})})})});M0.displayName=Ao;var I0="AlertDialogTitle",L0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return w.jsx(T0,{...o,...r,ref:t})});L0.displayName=I0;var F0="AlertDialogDescription",z0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return w.jsx(N0,{...o,...r,ref:t})});z0.displayName=F0;var Jk="AlertDialogAction",$0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return w.jsx(Yf,{...o,...r,ref:t})});$0.displayName=Jk;var H0="AlertDialogCancel",U0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Zk(H0,n),i=Qn(n),l=Ve(t,o);return w.jsx(Yf,{...i,...r,ref:l})});U0.displayName=H0;var eR=({contentRef:e})=>{const t=`\`${Ao}\` requires a description for the component to be accessible for screen reader users. -You can add a description to the \`${Ao}\` by passing a \`${L0}\` component as a child, which also benefits sighted users by adding visible context to the dialog. +You can add a description to the \`${Ao}\` by passing a \`${F0}\` 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. -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},eR=A0,tR=D0,U0=O0,W0=j0,B0=z0,V0=H0,q0=I0,G0=F0;const nR=eR,rR=tR,K0=v.forwardRef(({className:e,...t},n)=>w.jsx(U0,{className:Se("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}));K0.displayName=U0.displayName;const Q0=v.forwardRef(({className:e,...t},n)=>w.jsxs(rR,{children:[w.jsx(K0,{}),w.jsx(W0,{ref:n,className:Se("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})]}));Q0.displayName=W0.displayName;const Y0=({className:e,...t})=>w.jsx("div",{className:Se("flex flex-col space-y-2 text-center sm:text-left",e),...t});Y0.displayName="AlertDialogHeader";const X0=({className:e,...t})=>w.jsx("div",{className:Se("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});X0.displayName="AlertDialogFooter";const Z0=v.forwardRef(({className:e,...t},n)=>w.jsx(q0,{ref:n,className:Se("text-lg font-semibold",e),...t}));Z0.displayName=q0.displayName;const J0=v.forwardRef(({className:e,...t},n)=>w.jsx(G0,{ref:n,className:Se("text-sm",e),...t}));J0.displayName=G0.displayName;const ew=v.forwardRef(({className:e,...t},n)=>w.jsx(B0,{ref:n,className:Se(Rf(),e),...t}));ew.displayName=B0.displayName;const tw=v.forwardRef(({className:e,...t},n)=>w.jsx(V0,{ref:n,className:Se(Rf({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));tw.displayName=V0.displayName;function oR(){const{db:e,tables:t,isLoading:n,loadDatabase:r}=Jr(),[o,i]=v.useState(null),[l,a]=v.useState(!1),[f,u]=v.useState(null),p=v.useRef(!1),m=async(x,C=!1)=>{try{const E=C?`https://corsproxy.io/?${x}`:x,R=await fetch(E);if(!R.ok)i(`URL not found or invalid: ( ${R.status} )`);else{const y=await R.blob(),g=new File([y],"database.sqlite");await r(g),i(null)}}catch(E){E instanceof Error&&(C?i(`Error fetching database from URL (with proxy): ${x} - ${E.message}`):(u(x),a(!0)))}};v.useEffect(()=>{if(p.current)return;const x=new URLSearchParams(window.location.search),C=decodeURIComponent(x.get("url")||"");C&&(m(C),p.current=!0)},[]);const h=()=>{f&&(m(f,!0),a(!1))};return w.jsxs("div",{className:"flex flex-col gap-3",children:[!e&&w.jsx(Mk,{}),w.jsx(Ok,{}),w.jsx(jk,{}),o&&!e&&w.jsx("div",{className:"text-center text-red-500 font-semibold md:text-2xl p-10 border rounded mb-2",children:o}),!n&&e&&(t.length>0?w.jsx(T_,{}):w.jsx("div",{className:"text-center font-semibold md:text-2xl p-10 border rounded mb-2",children:"Your database is empty, no tables found"})),w.jsx(nR,{open:l,onOpenChange:a,children:w.jsxs(Q0,{children:[w.jsxs(Y0,{children:[w.jsx(Z0,{children:"Retry using a proxy?"}),w.jsx(J0,{children:"Failed to load the database from the provided URL due to possible CORS restrictions. Retry using a proxy?"})]}),w.jsx("div",{className:"text-sm font-semibold",children:"Using the proxy may expose your database to the corsproxy.io service."}),w.jsxs(X0,{children:[w.jsx(tw,{onClick:()=>a(!1),children:"Cancel"}),w.jsx(ew,{onClick:h,children:"Confirm"})]})]})})]})}function iR(){const[e,t]=v.useState(!1);v.useEffect(()=>{const r=()=>{const l=window.matchMedia("(prefers-color-scheme: dark)").matches;t(l),document.body.classList.toggle("dark",l)},o=localStorage.getItem("darkMode");if(o!==null){const l=o==="true";t(l),document.body.classList.toggle("dark",l)}else r();const i=window.matchMedia("(prefers-color-scheme: dark)");return i.addEventListener("change",r),()=>{i.removeEventListener("change",r)}},[]);const n=()=>{const r=!e;t(r),localStorage.setItem("darkMode",r.toString()),document.body.classList.toggle("dark",r)};return w.jsx(Dt,{onClick:n,className:"relative",variant:"outline",children:e?w.jsx(hb,{className:"h-5 w-5"}):w.jsx(db,{className:"h-5 w-5"})})}function lR(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 nw=Q.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"}),ya=()=>{const e=Q.useContext(nw);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};lR("[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 sR=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Rc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function aR(){return Yf(/^Mac/)}function uR(){return Yf(/^iPhone/)}function cR(){return Yf(/^iPad/)||aR()&&navigator.maxTouchPoints>1}function rw(){return uR()||cR()}function Yf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const pu=typeof document<"u"&&window.visualViewport;function Cm(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function ow(e){for(Cm(e)&&(e=e.parentElement);e&&!Cm(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const fR=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ql=0,mu;function dR(e={}){let{isDisabled:t}=e;sR(()=>{if(!t)return ql++,ql===1&&(rw()?mu=mR():mu=pR()),()=>{ql--,ql===0&&mu()}},[t])}function pR(){return Rc(iw(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function mR(){let e,t=0,n=m=>{e=ow(m.target),!(e===document.documentElement&&e===document.body)&&(t=m.changedTouches[0].pageY)},r=m=>{if(!e||e===document.documentElement||e===document.body){m.preventDefault();return}let h=m.changedTouches[0].pageY,x=e.scrollTop,C=e.scrollHeight-e.clientHeight;C!==0&&((x<=0&&h>t||x>=C&&h{let h=m.target;Pc(h)&&h!==document.activeElement&&(m.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},i=m=>{let h=m.target;Pc(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",pu&&(pu.height{_m(h)}):pu.addEventListener("resize",()=>_m(h),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},a=window.pageXOffset,f=window.pageYOffset,u=Rc(iw(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=Rc(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(),p(),window.scrollTo(a,f)}}function iw(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 _m(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=ow(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 Pc(e){return e instanceof HTMLInputElement&&!fR.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function hR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function vR(...e){return t=>e.forEach(n=>hR(n,t))}function lw(...e){return v.useCallback(vR(...e),e)}let gi=null;function gR({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[l,a]=Q.useState(()=>typeof window<"u"?window.location.href:""),f=Q.useRef(0),u=Q.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:m,innerHeight:h}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-f.current}px`,left:`${-m}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const x=h-window.innerHeight;x&&f.current>=h&&(document.body.style.top=`${-(f.current+x)}px`)}),300)}},[e]),p=Q.useCallback(()=>{if(gi!==null&&!i){const m=-parseInt(document.body.style.top,10),h=-parseInt(document.body.style.left,10);Object.assign(document.body.style,gi),window.requestAnimationFrame(()=>{if(o&&l!==window.location.href){a(window.location.href);return}window.scrollTo(h,m)}),gi=null}},[l]);return Q.useEffect(()=>{function m(){f.current=window.scrollY}return m(),window.addEventListener("scroll",m),()=>{window.removeEventListener("scroll",m)}},[]),Q.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{p()},500)):p())},[e,r,l,t,n,u,p]),{restorePositionSetting:p}}const sw=new WeakMap;function He(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&&sw.set(e,r)}function Gl(e,t){if(!e||!(e instanceof HTMLElement))return;let n=sw.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}const ot=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Kl(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(", ")[ot(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[ot(t)?5:4]):null)}function yR(e){return 8*(Math.log(e+1)-2)}const Ae={DURATION:.5,EASE:[.32,.72,0,1]},aw=.4;function uw(e){const t=Q.useRef(e);return Q.useEffect(()=>{t.current=e}),Q.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function wR({defaultProp:e,onChange:t}){const n=Q.useState(e),[r]=n,o=Q.useRef(r),i=uw(t);return Q.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function xR({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=wR({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,a=uw(n),f=Q.useCallback(u=>{if(i){const m=typeof u=="function"?u(e):u;m!==e&&a(m)}else o(u)},[i,e,o,a]);return[l,f]}function SR({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:l,direction:a="bottom"}){const[f,u]=xR({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),p=Q.useMemo(()=>f===(n==null?void 0:n[n.length-1])||null,[n,f]),m=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===f||!n,h=Q.useMemo(()=>n==null?void 0:n.findIndex(b=>b===f),[n,f]),x=Q.useMemo(()=>{var b;return(b=n==null?void 0:n.map(_=>{const P=typeof window<"u",D=typeof _=="string";let N=0;if(D&&(N=parseInt(_,10)),ot(a)){const j=D?N:P?_*window.innerHeight:0;return P?a==="bottom"?window.innerHeight-j:-window.innerHeight+j:j}const A=D?N:P?_*window.innerWidth:0;return P?a==="right"?window.innerWidth-A:-window.innerWidth+A:A}))!=null?b:[]},[n]),C=Q.useMemo(()=>h!==null?x==null?void 0:x[h]:null,[x,h]),E=Q.useCallback(b=>{var _;const P=(_=x==null?void 0:x.findIndex(D=>D===b))!=null?_:null;l(P),He(r.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:ot(a)?`translate3d(0, ${b}px, 0)`:`translate3d(${b}px, 0, 0)`}),x&&P!==x.length-1&&P!==i?He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"0"}):He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"1"}),u(P!==null?n==null?void 0:n[P]:null)},[r.current,n,x,i,o,u]);Q.useEffect(()=>{if(f||e){var b;const _=(b=n==null?void 0:n.findIndex(P=>P===e||P===f))!=null?b:-1;x&&_!==-1&&typeof x[_]=="number"&&E(x[_])}},[f,e,n,x,E]);function R({draggedDistance:b,closeDrawer:_,velocity:P,dismissible:D}){if(i===void 0)return;const N=a==="bottom"||a==="right"?(C??0)-b:(C??0)+b,A=h===i-1,j=h===0,I=b>0;if(A&&He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),P>2&&!I){D?_():E(x[0]);return}if(P>2&&I&&x&&n){E(x[n.length-1]);return}const V=x==null?void 0:x.reduce((F,W)=>typeof F!="number"||typeof W!="number"?F:Math.abs(W-N)aw&&Math.abs(b)0&&p){E(x[n.length-1]);return}if(j&&F<0&&D&&_(),h===null)return;E(x[h+F]);return}E(V)}function y({draggedDistance:b}){if(C===null)return;const _=a==="bottom"||a==="right"?C-b:C+b;(a==="bottom"||a==="right")&&_x[x.length-1]||He(r.current,{transform:ot(a)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function g(b,_){if(!n||typeof h!="number"||!x||i===void 0)return null;const P=h===i-1;if(h>=i&&_)return 0;if(P&&!_)return 1;if(!m&&!P)return null;const N=P?h+1:h-1,A=P?x[N]-x[N-1]:x[N+1]-x[N],j=b/Math.abs(A);return P?1-j:j}return{isLastSnapPoint:p,activeSnapPoint:f,shouldFade:m,getPercentageDragged:g,setActiveSnapPoint:u,activeSnapPointIndex:h,onRelease:R,onDrag:y,snapPointsOffset:x}}const ER=.25,bR=100,km=8,Ar=16,Rm=26,hu="vaul-dragging";function cw({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:i,snapPoints:l,nested:a=!1,setBackgroundColorOnScale:f=!0,closeThreshold:u=ER,scrollLockTimeout:p=bR,dismissible:m=!0,handleOnly:h=!1,fadeFromIndex:x=l&&l.length-1,activeSnapPoint:C,setActiveSnapPoint:E,fixed:R,modal:y=!0,onClose:g,noBodyStyles:b,direction:_="bottom",preventScrollRestoration:P=!0,disablePreventScroll:D=!1}){var N;const[A=!1,j]=Q.useState(!1),[I,V]=Q.useState(!1),[H,F]=Q.useState(!1),[W,Z]=Q.useState(!1),[le,ne]=Q.useState(!1),[z,B]=Q.useState(!1),ee=Q.useRef(null),se=Q.useRef(null),ue=Q.useRef(null),qe=Q.useRef(null),ve=Q.useRef(null),Xe=Q.useRef(!1),_e=Q.useRef(null),J=Q.useRef(0),ye=Q.useRef(!1),Ie=Q.useRef(0),K=Q.useRef(null),ge=Q.useRef(((N=K.current)==null?void 0:N.getBoundingClientRect().height)||0),de=Q.useRef(0),Y=Q.useCallback(ie=>{l&&ie===Nt.length-1&&(se.current=new Date)},[]),{activeSnapPoint:me,activeSnapPointIndex:ut,setActiveSnapPoint:Je,onRelease:tt,snapPointsOffset:Nt,onDrag:ke,shouldFade:rn,getPercentageDragged:eo}=SR({snapPoints:l,activeSnapPointProp:C,setActiveSnapPointProp:E,drawerRef:K,fadeFromIndex:x,overlayRef:ee,onSnapPointChange:Y,direction:_});dR({isDisabled:!A||le||!y||z||!I||D});const{restorePositionSetting:Ft}=gR({isOpen:A,modal:y,nested:a,hasBeenOpened:I,preventScrollRestoration:P,noBodyStyles:b});function yn(){return(window.innerWidth-Rm)/window.innerWidth}function G(ie){var fe;!m&&!l||K.current&&!K.current.contains(ie.target)||(ge.current=((fe=K.current)==null?void 0:fe.getBoundingClientRect().height)||0,ne(!0),ue.current=new Date,rw()&&window.addEventListener("touchend",()=>Xe.current=!1,{once:!0}),ie.target.setPointerCapture(ie.pointerId),J.current=ot(_)?ie.clientY:ie.clientX)}function oe(ie,fe){var Re;let q=ie;const De=(Re=window.getSelection())==null?void 0:Re.toString(),We=K.current?Kl(K.current,_):null,Et=new Date;if(q.hasAttribute("data-vaul-no-drag")||q.closest("[data-vaul-no-drag]"))return!1;if(_==="right"||_==="left")return!0;if(se.current&&Et.getTime()-se.current.getTime()<500)return!1;if(We!==null&&(_==="bottom"?We>0:We<0))return!0;if(De&&De.length>0)return!1;if(ve.current&&Et.getTime()-ve.current.getTime()q.clientHeight){if(q.scrollTop!==0)return ve.current=new Date,!1;if(q.getAttribute("role")==="dialog")return!0}q=q.parentNode}return!0}function Le(ie){if(K.current&&le){const fe=_==="bottom"||_==="right"?1:-1,Re=(J.current-(ot(_)?ie.clientY:ie.clientX))*fe,q=Re>0,De=l&&!m&&!q;if(De&&ut===0)return;const We=Math.abs(Re),Et=document.querySelector("[vaul-drawer-wrapper]");let vt=We/ge.current;const wn=eo(We,q);if(wn!==null&&(vt=wn),De&&vt>=1||!Xe.current&&!oe(ie.target,q))return;if(K.current.classList.add(hu),Xe.current=!0,He(K.current,{transition:"none"}),He(ee.current,{transition:"none"}),l&&ke({draggedDistance:Re}),q&&!l){const xn=yR(Re),U=Math.min(xn*-1,0)*fe;He(K.current,{transform:ot(_)?`translate3d(0, ${U}px, 0)`:`translate3d(${U}px, 0, 0)`});return}const zt=1-vt;if((rn||x&&ut===x-1)&&(o==null||o(ie,vt),He(ee.current,{opacity:`${zt}`,transition:"none"},!0)),Et&&ee.current&&r){const xn=Math.min(yn()+vt*(1-yn()),1),U=8-vt*8,to=Math.max(0,14-vt*14);He(Et,{borderRadius:`${U}px`,transform:ot(_)?`scale(${xn}) translate3d(0, ${to}px, 0)`:`scale(${xn}) translate3d(${to}px, 0, 0)`,transition:"none"},!0)}if(!l){const xn=We*fe;He(K.current,{transform:ot(_)?`translate3d(0, ${xn}px, 0)`:`translate3d(${xn}px, 0, 0)`})}}}Q.useEffect(()=>()=>{on(!1),Ft()},[]),Q.useEffect(()=>{var ie;function fe(){if(!K.current)return;const Re=document.activeElement;if(Pc(Re)||ye.current){var q;const De=((q=window.visualViewport)==null?void 0:q.height)||0;let We=window.innerHeight-De;const Et=K.current.getBoundingClientRect().height||0;de.current||(de.current=Et);const vt=K.current.getBoundingClientRect().top;if(Math.abs(Ie.current-We)>60&&(ye.current=!ye.current),l&&l.length>0&&Nt&&ut){const wn=Nt[ut]||0;We+=wn}if(Ie.current=We,Et>De||ye.current){const wn=K.current.getBoundingClientRect().height;let zt=wn;wn>De&&(zt=De-Rm),R?K.current.style.height=`${wn-Math.max(We,0)}px`:K.current.style.height=`${Math.max(zt,De-vt)}px`}else K.current.style.height=`${de.current}px`;l&&l.length>0&&!ye.current?K.current.style.bottom="0px":K.current.style.bottom=`${Math.max(We,0)}px`}}return(ie=window.visualViewport)==null||ie.addEventListener("resize",fe),()=>{var Re;return(Re=window.visualViewport)==null?void 0:Re.removeEventListener("resize",fe)}},[ut,l,Nt]);function Pe(){K.current&&(Tt(),g==null||g(),He(K.current,{transform:ot(_)?`translate3d(0, ${_==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${_==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),He(ee.current,{opacity:"0",transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),on(!1),setTimeout(()=>{F(!1),j(!1)},300),setTimeout(()=>{l&&Je(l[0])},Ae.DURATION*1e3))}Q.useEffect(()=>{if(!A&&r){const ie=setTimeout(()=>{Gl(document.body)},200);return()=>clearTimeout(ie)}},[A,r]),Q.useLayoutEffect(()=>{e?(j(!0),V(!0)):Pe()},[e]),Q.useEffect(()=>{W&&(t==null||t(A))},[A]),Q.useEffect(()=>{Z(!0)},[]);function nt(){if(!K.current)return;const ie=document.querySelector("[vaul-drawer-wrapper]"),fe=Kl(K.current,_);He(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),He(ee.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"1"}),r&&fe&&fe>0&&A&&He(ie,{borderRadius:`${km}px`,overflow:"hidden",...ot(_)?{transform:`scale(${yn()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yn()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`},!0)}function Tt(){!le||!K.current||(K.current.classList.remove(hu),Xe.current=!1,ne(!1),qe.current=new Date)}function St(ie){if(!le||!K.current)return;K.current.classList.remove(hu),Xe.current=!1,ne(!1),qe.current=new Date;const fe=Kl(K.current,_);if(!oe(ie.target,!1)||!fe||Number.isNaN(fe)||ue.current===null)return;const Re=qe.current.getTime()-ue.current.getTime(),q=J.current-(ot(_)?ie.clientY:ie.clientX),De=Math.abs(q)/Re;if(De>.05&&(B(!0),setTimeout(()=>{B(!1)},200)),l){tt({draggedDistance:q*(_==="bottom"||_==="right"?1:-1),closeDrawer:Pe,velocity:De,dismissible:m}),i==null||i(ie,!0);return}if(_==="bottom"||_==="right"?q>0:q<0){nt(),i==null||i(ie,!0);return}if(De>aw){Pe(),i==null||i(ie,!1);return}var We;const Et=Math.min((We=K.current.getBoundingClientRect().height)!=null?We:0,window.innerHeight);if(fe>=Et*u){Pe(),i==null||i(ie,!1);return}i==null||i(ie,!0),nt()}Q.useEffect(()=>{A&&(He(document.documentElement,{scrollBehavior:"auto"}),se.current=new Date,on(!0))},[A]),Q.useEffect(()=>{if(K.current&&H){var ie;const fe=K==null||(ie=K.current)==null?void 0:ie.querySelectorAll("*");fe==null||fe.forEach(Re=>{const q=Re;(q.scrollHeight>q.clientHeight||q.scrollWidth>q.clientWidth)&&q.classList.add("vaul-scrollable")})}},[H]);function on(ie){const fe=document.querySelector("[vaul-drawer-wrapper]");!fe||!r||(ie?(f&&(b||(He(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),He(document.body,{background:"black"},!0))),He(fe,{borderRadius:`${km}px`,overflow:"hidden",...ot(_)?{transform:`scale(${yn()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yn()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`})):(Gl(fe,"overflow"),Gl(fe,"transform"),Gl(fe,"borderRadius"),He(fe,{transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`})))}function Yn(ie){const fe=ie?(window.innerWidth-Ar)/window.innerWidth:1,Re=ie?-Ar:0;_e.current&&window.clearTimeout(_e.current),He(K.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:`scale(${fe}) translate3d(0, ${Re}px, 0)`}),!ie&&K.current&&(_e.current=setTimeout(()=>{const q=Kl(K.current,_);He(K.current,{transition:"none",transform:ot(_)?`translate3d(0, ${q}px, 0)`:`translate3d(${q}px, 0, 0)`})},500))}function Xn(ie,fe){if(fe<0)return;const Re=ot(_)?window.innerHeight:window.innerWidth,q=(Re-Ar)/Re,De=q+fe*(1-q),We=-Ar+fe*Ar;He(K.current,{transform:ot(_)?`scale(${De}) translate3d(0, ${We}px, 0)`:`scale(${De}) translate3d(${We}px, 0, 0)`,transition:"none"})}function Zn(ie,fe){const Re=ot(_)?window.innerHeight:window.innerWidth,q=fe?(Re-Ar)/Re:1,De=fe?-Ar:0;fe&&He(K.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:ot(_)?`scale(${q}) translate3d(0, ${De}px, 0)`:`scale(${q}) translate3d(${De}px, 0, 0)`})}return Q.createElement(b0,{modal:y,onOpenChange:ie=>{if(e!==void 0){t==null||t(ie);return}ie?(V(!0),j(ie)):Pe()},open:A},Q.createElement(nw.Provider,{value:{visible:H,activeSnapPoint:me,snapPoints:l,setActiveSnapPoint:Je,drawerRef:K,overlayRef:ee,scaleBackground:on,onOpenChange:t,onPress:G,setVisible:F,onRelease:St,onDrag:Le,dismissible:m,handleOnly:h,isOpen:A,isDragging:le,shouldFade:rn,closeDrawer:Pe,onNestedDrag:Xn,onNestedOpenChange:Yn,onNestedRelease:Zn,keyboardIsOpen:ye,openProp:e,modal:y,snapPointsOffset:Nt,direction:_}},n))}const CR=250,_R=120,fw=Q.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{visible:o,closeDrawer:i,isDragging:l,snapPoints:a,activeSnapPoint:f,setActiveSnapPoint:u,dismissible:p,handleOnly:m,onPress:h,onDrag:x}=ya(),C=Q.useRef(null),E=Q.useRef(!1);function R(){if(E.current){b();return}window.setTimeout(()=>{y()},_R)}function y(){if(l||e||E.current){b();return}if(b(),(!a||a.length===0)&&p){i();return}if(f===a[a.length-1]&&p){i();return}const P=a.findIndex(N=>N===f);if(P===-1)return;const D=a[P+1];u(D)}function g(){C.current=window.setTimeout(()=>{E.current=!0},CR)}function b(){window.clearTimeout(C.current),E.current=!1}return Q.createElement("div",{onClick:R,onDoubleClick:()=>{E.current=!0,i()},onPointerCancel:b,onPointerDown:_=>{m&&h(_),g()},onPointerMove:_=>{m&&x(_)},ref:r,"vaul-drawer-visible":o?"true":"false","vaul-handle":"","aria-hidden":"true",...n},Q.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},t))});fw.displayName="Drawer.Handle";const dw=Q.forwardRef(function({children:e,...t},n){const{overlayRef:r,snapPoints:o,onRelease:i,shouldFade:l,isOpen:a,visible:f}=ya(),u=lw(n,r),p=o&&o.length>0;return Q.createElement(k0,{onMouseUp:i,ref:u,"vaul-drawer-visible":f?"true":"false","vaul-overlay":"","vaul-snap-points":a&&p?"true":"false","vaul-snap-points-overlay":a&&l?"true":"false",...t})});dw.displayName="Drawer.Overlay";const pw=Q.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:n,style:r,...o},i){const{drawerRef:l,onPress:a,onRelease:f,onDrag:u,dismissible:p,keyboardIsOpen:m,snapPointsOffset:h,visible:x,closeDrawer:C,modal:E,openProp:R,onOpenChange:y,setVisible:g,handleOnly:b,direction:_}=ya(),P=lw(i,l),D=Q.useRef(null),N=Q.useRef(!1),A=(j,I,V=0)=>{if(N.current)return!0;const H=Math.abs(j.y),F=Math.abs(j.x),W=F>H,Z=["bottom","right"].includes(I)?1:-1;if(I==="left"||I==="right"){if(!(j.x*Z<0)&&F>=0&&F<=V)return W}else if(!(j.y*Z<0)&&H>=0&&H<=V)return!W;return N.current=!0,!0};return Q.useEffect(()=>{g(!0)},[]),Q.createElement(R0,{"vaul-drawer":"","vaul-drawer-direction":_,"vaul-drawer-visible":x?"true":"false",...o,ref:P,style:h&&h.length>0?{"--snap-point-height":`${h[0]}px`,...r}:r,onOpenAutoFocus:j=>{if(e)e(j);else{var I;j.preventDefault(),(I=l.current)==null||I.focus()}},onPointerDown:j=>{b||(o.onPointerDown==null||o.onPointerDown.call(o,j),D.current={x:j.clientX,y:j.clientY},a(j))},onPointerDownOutside:j=>{if(t==null||t(j),!E||j.defaultPrevented){j.preventDefault();return}m.current&&(m.current=!1),j.preventDefault(),y==null||y(!1),!(!p||R!==void 0)&&C()},onFocusOutside:j=>{if(!E){j.preventDefault();return}},onEscapeKeyDown:j=>{if(!E){j.preventDefault();return}},onPointerMove:j=>{if(b||(o.onPointerMove==null||o.onPointerMove.call(o,j),!D.current))return;const I=j.clientY-D.current.y,V=j.clientX-D.current.x,H=j.pointerType==="touch"?10:2;A({x:V,y:I},_,H)?u(j):(Math.abs(V)>H||Math.abs(I)>H)&&(D.current=null)},onPointerUp:j=>{o.onPointerUp==null||o.onPointerUp.call(o,j),D.current=null,N.current=!1,f(j)}})});pw.displayName="Drawer.Content";function kR({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=ya();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return Q.createElement(cw,{nested:!0,onClose:()=>{o(!1)},onDrag:(l,a)=>{r(l,a),e==null||e(l,a)},onOpenChange:l=>{l&&o(l),t==null||t(l)},onRelease:i,...n})}const gn={Root:cw,NestedRoot:kR,Content:pw,Handle:fw,Overlay:dw,Trigger:C0,Portal:_0,Close:Qf,Title:P0,Description:N0},mw=({shouldScaleBackground:e=!0,...t})=>w.jsx(gn.Root,{shouldScaleBackground:e,...t});mw.displayName="Drawer";const RR=gn.Trigger,PR=gn.Portal,NR=gn.Close,hw=v.forwardRef(({className:e,...t},n)=>w.jsx(gn.Overlay,{ref:n,className:Se("fixed inset-0 z-50 bg-black/80",e),...t}));hw.displayName=gn.Overlay.displayName;const vw=v.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(PR,{children:[w.jsx(hw,{}),w.jsxs(gn.Content,{ref:r,className:Se("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[w.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));vw.displayName="DrawerContent";const gw=({className:e,...t})=>w.jsx("div",{className:Se("grid gap-1.5 p-4 text-center sm:text-left",e),...t});gw.displayName="DrawerHeader";const yw=({className:e,...t})=>w.jsx("div",{className:Se("mt-auto flex flex-col gap-2 p-4",e),...t});yw.displayName="DrawerFooter";const ww=v.forwardRef(({className:e,...t},n)=>w.jsx(gn.Title,{ref:n,className:Se("text-lg font-semibold leading-none tracking-tight",e),...t}));ww.displayName=gn.Title.displayName;const xw=v.forwardRef(({className:e,...t},n)=>w.jsx(gn.Description,{ref:n,className:Se("text-sm text-muted-foreground",e),...t}));xw.displayName=gn.Description.displayName;function TR(){const{setRowPerPageOrAuto:e,downloadDatabase:t,exportAllTablesAsCSV:n,exportTableAsCSV:r,selectedTable:o,setIsCustomQuery:i}=Jr(),[l,a]=v.useState(30),[f,u]=v.useState(!1);v.useEffect(()=>{f&&a(30)},[f]);const p=x=>{const C=Number(x.target.value);isNaN(C)||(a(C),u(!1))},m=()=>{u(x=>!x)},h=()=>{i(!1),e(f?"auto":l)};return w.jsxs(mw,{children:[w.jsx(RR,{asChild:!0,children:w.jsx(Dt,{variant:"outline",children:w.jsx(mb,{className:"h-5 w-5"})})}),w.jsx(vw,{children:w.jsxs("div",{className:"mx-auto w-full max-w-md",children:[w.jsxs(gw,{children:[w.jsx(ww,{children:"Settings"}),w.jsx(xw,{children:"Personalize your site experience here."})]}),w.jsxs("div",{className:"p-4 pb-0 flex flex-col gap-4",children:[w.jsxs("div",{children:[w.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Rows Per Page"}),w.jsxs("div",{className:"border rounded p-2 flex gap-1 justify-center items-center",children:[w.jsx(kf,{min:"3",max:"500",value:l,onChange:p,disabled:f,placeholder:"30",type:"number",name:"rowsPerPage"}),w.jsx("span",{className:"text-sm text-muted-foreground h-full text-center",children:"OR"}),w.jsx(Dt,{onClick:m,variant:"outline",className:f?"border border-primary":void 0,children:"Auto calculate"})]}),w.jsx(Dt,{className:"w-full mt-2",onClick:h,variant:"outline",children:w.jsx("span",{children:"Save"})})]}),w.jsxs("div",{children:[w.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Exports Settings"}),w.jsxs("div",{className:"border rounded p-2 flex flex-col gap-1",children:[w.jsx(Dt,{variant:"outline",onClick:t,children:w.jsx("span",{className:"ml-2",children:"Export as SQLite"})}),w.jsx(Dt,{variant:"outline",onClick:()=>r(parseInt(o)),children:w.jsx("span",{className:"ml-2",children:"Export selected table as CSV"})}),w.jsx(Dt,{variant:"outline",onClick:n,children:w.jsx("span",{className:"ml-2",children:"Export all tables as CSV"})})]})]})]}),w.jsx(yw,{children:w.jsx(NR,{asChild:!0,children:w.jsx(Dt,{variant:"outline",children:"Close"})})})]})})]})}function AR(){const{db:e}=Jr();return w.jsxs("footer",{className:"flex items-center justify-between my-1 p-4 border rounded",children:[w.jsxs("div",{children:[w.jsx("p",{className:"hidden sm:block text-xs",children:"No file will be uploaded to server. using JavaScript, sql.js"}),w.jsx("p",{className:"block sm:hidden text-xs",children:"No file uploads to server."}),w.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:[w.jsx(sb,{className:"h-4 w-4"}),w.jsx("span",{children:"Star us on GitHub"})]})]}),w.jsxs("div",{className:"flex gap-1",children:[w.jsx(iR,{}),e&&w.jsx(TR,{})]})]})}vu.createRoot(document.getElementById("root")).render(w.jsx(Q.StrictMode,{children:w.jsxs("main",{className:"container mx-auto p-4",children:[w.jsx(oR,{}),w.jsx(AR,{})]})})); +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},tR=D0,nR=O0,W0=j0,B0=M0,V0=$0,q0=U0,G0=L0,K0=z0;const rR=tR,oR=nR,Q0=v.forwardRef(({className:e,...t},n)=>w.jsx(W0,{className:Se("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}));Q0.displayName=W0.displayName;const Y0=v.forwardRef(({className:e,...t},n)=>w.jsxs(oR,{children:[w.jsx(Q0,{}),w.jsx(B0,{ref:n,className:Se("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})]}));Y0.displayName=B0.displayName;const X0=({className:e,...t})=>w.jsx("div",{className:Se("flex flex-col space-y-2 text-center sm:text-left",e),...t});X0.displayName="AlertDialogHeader";const Z0=({className:e,...t})=>w.jsx("div",{className:Se("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Z0.displayName="AlertDialogFooter";const J0=v.forwardRef(({className:e,...t},n)=>w.jsx(G0,{ref:n,className:Se("text-lg font-semibold",e),...t}));J0.displayName=G0.displayName;const ew=v.forwardRef(({className:e,...t},n)=>w.jsx(K0,{ref:n,className:Se("text-sm",e),...t}));ew.displayName=K0.displayName;const tw=v.forwardRef(({className:e,...t},n)=>w.jsx(V0,{ref:n,className:Se(Pf(),e),...t}));tw.displayName=V0.displayName;const nw=v.forwardRef(({className:e,...t},n)=>w.jsx(q0,{ref:n,className:Se(Pf({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));nw.displayName=q0.displayName;function iR(){const{db:e,tables:t,isLoading:n,loadDatabase:r}=Jr(),[o,i]=v.useState(null),[l,a]=v.useState(!1),[f,u]=v.useState(null),p=v.useRef(!1),m=async(x,C=!1)=>{try{const E=C?`https://corsproxy.io/?${x}`:x,R=await fetch(E);if(!R.ok)i(`URL not found or invalid: ( ${R.status} )`);else{const y=await R.blob(),g=new File([y],"database.sqlite");await r(g),i(null)}}catch(E){E instanceof Error&&(C?i(`Error fetching database from URL (with proxy): ${x} - ${E.message}`):(u(x),a(!0)))}};v.useEffect(()=>{if(p.current)return;const x=new URLSearchParams(window.location.search),C=decodeURIComponent(x.get("url")||"");C&&(m(C),p.current=!0)},[]);const h=()=>{f&&(m(f,!0),a(!1))};return w.jsxs("div",{className:"flex flex-col gap-3",children:[!e&&w.jsx(Ik,{}),w.jsx(jk,{}),w.jsx(Mk,{}),o&&!e&&w.jsx(Ec,{children:o}),!n&&e&&(t.length>0?w.jsx(A_,{}):w.jsx(Ec,{children:"Your database is empty, no tables found"})),w.jsx(rR,{open:l,onOpenChange:a,children:w.jsxs(Y0,{children:[w.jsxs(X0,{children:[w.jsx(J0,{children:"Retry using a proxy?"}),w.jsx(ew,{children:"Failed to load the database from the provided URL due to possible CORS restrictions."})]}),w.jsx("div",{className:"text-sm font-semibold",children:"Using the proxy may expose your database to corsproxy.io services."}),w.jsxs(Z0,{children:[w.jsx(nw,{onClick:()=>a(!1),children:"Cancel"}),w.jsx(tw,{onClick:h,children:"Confirm"})]})]})})]})}function lR(){const[e,t]=v.useState(!1);v.useEffect(()=>{const r=()=>{const l=window.matchMedia("(prefers-color-scheme: dark)").matches;t(l),document.body.classList.toggle("dark",l)},o=localStorage.getItem("darkMode");if(o!==null){const l=o==="true";t(l),document.body.classList.toggle("dark",l)}else r();const i=window.matchMedia("(prefers-color-scheme: dark)");return i.addEventListener("change",r),()=>{i.removeEventListener("change",r)}},[]);const n=()=>{const r=!e;t(r),localStorage.setItem("darkMode",r.toString()),document.body.classList.toggle("dark",r)};return w.jsx(Dt,{onClick:n,className:"relative",variant:"outline",children:e?w.jsx(vb,{className:"h-5 w-5"}):w.jsx(pb,{className:"h-5 w-5"})})}function sR(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 rw=Q.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"}),ya=()=>{const e=Q.useContext(rw);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};sR("[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 aR=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Pc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function uR(){return Xf(/^Mac/)}function cR(){return Xf(/^iPhone/)}function fR(){return Xf(/^iPad/)||uR()&&navigator.maxTouchPoints>1}function ow(){return cR()||fR()}function Xf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const pu=typeof document<"u"&&window.visualViewport;function _m(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function iw(e){for(_m(e)&&(e=e.parentElement);e&&!_m(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const dR=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ql=0,mu;function pR(e={}){let{isDisabled:t}=e;aR(()=>{if(!t)return ql++,ql===1&&(ow()?mu=hR():mu=mR()),()=>{ql--,ql===0&&mu()}},[t])}function mR(){return Pc(lw(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function hR(){let e,t=0,n=m=>{e=iw(m.target),!(e===document.documentElement&&e===document.body)&&(t=m.changedTouches[0].pageY)},r=m=>{if(!e||e===document.documentElement||e===document.body){m.preventDefault();return}let h=m.changedTouches[0].pageY,x=e.scrollTop,C=e.scrollHeight-e.clientHeight;C!==0&&((x<=0&&h>t||x>=C&&h{let h=m.target;Tc(h)&&h!==document.activeElement&&(m.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},i=m=>{let h=m.target;Tc(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",pu&&(pu.height{km(h)}):pu.addEventListener("resize",()=>km(h),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},a=window.pageXOffset,f=window.pageYOffset,u=Pc(lw(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=Pc(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(),p(),window.scrollTo(a,f)}}function lw(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 km(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=iw(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 Tc(e){return e instanceof HTMLInputElement&&!dR.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function vR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function gR(...e){return t=>e.forEach(n=>vR(n,t))}function sw(...e){return v.useCallback(gR(...e),e)}let gi=null;function yR({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[l,a]=Q.useState(()=>typeof window<"u"?window.location.href:""),f=Q.useRef(0),u=Q.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:m,innerHeight:h}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-f.current}px`,left:`${-m}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const x=h-window.innerHeight;x&&f.current>=h&&(document.body.style.top=`${-(f.current+x)}px`)}),300)}},[e]),p=Q.useCallback(()=>{if(gi!==null&&!i){const m=-parseInt(document.body.style.top,10),h=-parseInt(document.body.style.left,10);Object.assign(document.body.style,gi),window.requestAnimationFrame(()=>{if(o&&l!==window.location.href){a(window.location.href);return}window.scrollTo(h,m)}),gi=null}},[l]);return Q.useEffect(()=>{function m(){f.current=window.scrollY}return m(),window.addEventListener("scroll",m),()=>{window.removeEventListener("scroll",m)}},[]),Q.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{p()},500)):p())},[e,r,l,t,n,u,p]),{restorePositionSetting:p}}const aw=new WeakMap;function He(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&&aw.set(e,r)}function Gl(e,t){if(!e||!(e instanceof HTMLElement))return;let n=aw.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}const ot=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Kl(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(", ")[ot(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[ot(t)?5:4]):null)}function wR(e){return 8*(Math.log(e+1)-2)}const Ae={DURATION:.5,EASE:[.32,.72,0,1]},uw=.4;function cw(e){const t=Q.useRef(e);return Q.useEffect(()=>{t.current=e}),Q.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function xR({defaultProp:e,onChange:t}){const n=Q.useState(e),[r]=n,o=Q.useRef(r),i=cw(t);return Q.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function SR({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=xR({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,a=cw(n),f=Q.useCallback(u=>{if(i){const m=typeof u=="function"?u(e):u;m!==e&&a(m)}else o(u)},[i,e,o,a]);return[l,f]}function ER({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:l,direction:a="bottom"}){const[f,u]=SR({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),p=Q.useMemo(()=>f===(n==null?void 0:n[n.length-1])||null,[n,f]),m=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===f||!n,h=Q.useMemo(()=>n==null?void 0:n.findIndex(b=>b===f),[n,f]),x=Q.useMemo(()=>{var b;return(b=n==null?void 0:n.map(_=>{const P=typeof window<"u",D=typeof _=="string";let T=0;if(D&&(T=parseInt(_,10)),ot(a)){const j=D?T:P?_*window.innerHeight:0;return P?a==="bottom"?window.innerHeight-j:-window.innerHeight+j:j}const A=D?T:P?_*window.innerWidth:0;return P?a==="right"?window.innerWidth-A:-window.innerWidth+A:A}))!=null?b:[]},[n]),C=Q.useMemo(()=>h!==null?x==null?void 0:x[h]:null,[x,h]),E=Q.useCallback(b=>{var _;const P=(_=x==null?void 0:x.findIndex(D=>D===b))!=null?_:null;l(P),He(r.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:ot(a)?`translate3d(0, ${b}px, 0)`:`translate3d(${b}px, 0, 0)`}),x&&P!==x.length-1&&P!==i?He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"0"}):He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"1"}),u(P!==null?n==null?void 0:n[P]:null)},[r.current,n,x,i,o,u]);Q.useEffect(()=>{if(f||e){var b;const _=(b=n==null?void 0:n.findIndex(P=>P===e||P===f))!=null?b:-1;x&&_!==-1&&typeof x[_]=="number"&&E(x[_])}},[f,e,n,x,E]);function R({draggedDistance:b,closeDrawer:_,velocity:P,dismissible:D}){if(i===void 0)return;const T=a==="bottom"||a==="right"?(C??0)-b:(C??0)+b,A=h===i-1,j=h===0,I=b>0;if(A&&He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),P>2&&!I){D?_():E(x[0]);return}if(P>2&&I&&x&&n){E(x[n.length-1]);return}const V=x==null?void 0:x.reduce((F,W)=>typeof F!="number"||typeof W!="number"?F:Math.abs(W-T)uw&&Math.abs(b)0&&p){E(x[n.length-1]);return}if(j&&F<0&&D&&_(),h===null)return;E(x[h+F]);return}E(V)}function y({draggedDistance:b}){if(C===null)return;const _=a==="bottom"||a==="right"?C-b:C+b;(a==="bottom"||a==="right")&&_x[x.length-1]||He(r.current,{transform:ot(a)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function g(b,_){if(!n||typeof h!="number"||!x||i===void 0)return null;const P=h===i-1;if(h>=i&&_)return 0;if(P&&!_)return 1;if(!m&&!P)return null;const T=P?h+1:h-1,A=P?x[T]-x[T-1]:x[T+1]-x[T],j=b/Math.abs(A);return P?1-j:j}return{isLastSnapPoint:p,activeSnapPoint:f,shouldFade:m,getPercentageDragged:g,setActiveSnapPoint:u,activeSnapPointIndex:h,onRelease:R,onDrag:y,snapPointsOffset:x}}const bR=.25,CR=100,Rm=8,Ar=16,Pm=26,hu="vaul-dragging";function fw({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:i,snapPoints:l,nested:a=!1,setBackgroundColorOnScale:f=!0,closeThreshold:u=bR,scrollLockTimeout:p=CR,dismissible:m=!0,handleOnly:h=!1,fadeFromIndex:x=l&&l.length-1,activeSnapPoint:C,setActiveSnapPoint:E,fixed:R,modal:y=!0,onClose:g,noBodyStyles:b,direction:_="bottom",preventScrollRestoration:P=!0,disablePreventScroll:D=!1}){var T;const[A=!1,j]=Q.useState(!1),[I,V]=Q.useState(!1),[H,F]=Q.useState(!1),[W,Z]=Q.useState(!1),[le,ne]=Q.useState(!1),[z,B]=Q.useState(!1),ee=Q.useRef(null),se=Q.useRef(null),ue=Q.useRef(null),qe=Q.useRef(null),ve=Q.useRef(null),Xe=Q.useRef(!1),_e=Q.useRef(null),J=Q.useRef(0),ye=Q.useRef(!1),Ie=Q.useRef(0),K=Q.useRef(null),ge=Q.useRef(((T=K.current)==null?void 0:T.getBoundingClientRect().height)||0),de=Q.useRef(0),Y=Q.useCallback(ie=>{l&&ie===Tt.length-1&&(se.current=new Date)},[]),{activeSnapPoint:me,activeSnapPointIndex:ut,setActiveSnapPoint:Je,onRelease:tt,snapPointsOffset:Tt,onDrag:ke,shouldFade:rn,getPercentageDragged:eo}=ER({snapPoints:l,activeSnapPointProp:C,setActiveSnapPointProp:E,drawerRef:K,fadeFromIndex:x,overlayRef:ee,onSnapPointChange:Y,direction:_});pR({isDisabled:!A||le||!y||z||!I||D});const{restorePositionSetting:Ft}=yR({isOpen:A,modal:y,nested:a,hasBeenOpened:I,preventScrollRestoration:P,noBodyStyles:b});function yn(){return(window.innerWidth-Pm)/window.innerWidth}function G(ie){var fe;!m&&!l||K.current&&!K.current.contains(ie.target)||(ge.current=((fe=K.current)==null?void 0:fe.getBoundingClientRect().height)||0,ne(!0),ue.current=new Date,ow()&&window.addEventListener("touchend",()=>Xe.current=!1,{once:!0}),ie.target.setPointerCapture(ie.pointerId),J.current=ot(_)?ie.clientY:ie.clientX)}function oe(ie,fe){var Re;let q=ie;const De=(Re=window.getSelection())==null?void 0:Re.toString(),We=K.current?Kl(K.current,_):null,Et=new Date;if(q.hasAttribute("data-vaul-no-drag")||q.closest("[data-vaul-no-drag]"))return!1;if(_==="right"||_==="left")return!0;if(se.current&&Et.getTime()-se.current.getTime()<500)return!1;if(We!==null&&(_==="bottom"?We>0:We<0))return!0;if(De&&De.length>0)return!1;if(ve.current&&Et.getTime()-ve.current.getTime()q.clientHeight){if(q.scrollTop!==0)return ve.current=new Date,!1;if(q.getAttribute("role")==="dialog")return!0}q=q.parentNode}return!0}function Le(ie){if(K.current&&le){const fe=_==="bottom"||_==="right"?1:-1,Re=(J.current-(ot(_)?ie.clientY:ie.clientX))*fe,q=Re>0,De=l&&!m&&!q;if(De&&ut===0)return;const We=Math.abs(Re),Et=document.querySelector("[vaul-drawer-wrapper]");let vt=We/ge.current;const wn=eo(We,q);if(wn!==null&&(vt=wn),De&&vt>=1||!Xe.current&&!oe(ie.target,q))return;if(K.current.classList.add(hu),Xe.current=!0,He(K.current,{transition:"none"}),He(ee.current,{transition:"none"}),l&&ke({draggedDistance:Re}),q&&!l){const xn=wR(Re),U=Math.min(xn*-1,0)*fe;He(K.current,{transform:ot(_)?`translate3d(0, ${U}px, 0)`:`translate3d(${U}px, 0, 0)`});return}const zt=1-vt;if((rn||x&&ut===x-1)&&(o==null||o(ie,vt),He(ee.current,{opacity:`${zt}`,transition:"none"},!0)),Et&&ee.current&&r){const xn=Math.min(yn()+vt*(1-yn()),1),U=8-vt*8,to=Math.max(0,14-vt*14);He(Et,{borderRadius:`${U}px`,transform:ot(_)?`scale(${xn}) translate3d(0, ${to}px, 0)`:`scale(${xn}) translate3d(${to}px, 0, 0)`,transition:"none"},!0)}if(!l){const xn=We*fe;He(K.current,{transform:ot(_)?`translate3d(0, ${xn}px, 0)`:`translate3d(${xn}px, 0, 0)`})}}}Q.useEffect(()=>()=>{on(!1),Ft()},[]),Q.useEffect(()=>{var ie;function fe(){if(!K.current)return;const Re=document.activeElement;if(Tc(Re)||ye.current){var q;const De=((q=window.visualViewport)==null?void 0:q.height)||0;let We=window.innerHeight-De;const Et=K.current.getBoundingClientRect().height||0;de.current||(de.current=Et);const vt=K.current.getBoundingClientRect().top;if(Math.abs(Ie.current-We)>60&&(ye.current=!ye.current),l&&l.length>0&&Tt&&ut){const wn=Tt[ut]||0;We+=wn}if(Ie.current=We,Et>De||ye.current){const wn=K.current.getBoundingClientRect().height;let zt=wn;wn>De&&(zt=De-Pm),R?K.current.style.height=`${wn-Math.max(We,0)}px`:K.current.style.height=`${Math.max(zt,De-vt)}px`}else K.current.style.height=`${de.current}px`;l&&l.length>0&&!ye.current?K.current.style.bottom="0px":K.current.style.bottom=`${Math.max(We,0)}px`}}return(ie=window.visualViewport)==null||ie.addEventListener("resize",fe),()=>{var Re;return(Re=window.visualViewport)==null?void 0:Re.removeEventListener("resize",fe)}},[ut,l,Tt]);function Pe(){K.current&&(Nt(),g==null||g(),He(K.current,{transform:ot(_)?`translate3d(0, ${_==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${_==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),He(ee.current,{opacity:"0",transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),on(!1),setTimeout(()=>{F(!1),j(!1)},300),setTimeout(()=>{l&&Je(l[0])},Ae.DURATION*1e3))}Q.useEffect(()=>{if(!A&&r){const ie=setTimeout(()=>{Gl(document.body)},200);return()=>clearTimeout(ie)}},[A,r]),Q.useLayoutEffect(()=>{e?(j(!0),V(!0)):Pe()},[e]),Q.useEffect(()=>{W&&(t==null||t(A))},[A]),Q.useEffect(()=>{Z(!0)},[]);function nt(){if(!K.current)return;const ie=document.querySelector("[vaul-drawer-wrapper]"),fe=Kl(K.current,_);He(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),He(ee.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"1"}),r&&fe&&fe>0&&A&&He(ie,{borderRadius:`${Rm}px`,overflow:"hidden",...ot(_)?{transform:`scale(${yn()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yn()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`},!0)}function Nt(){!le||!K.current||(K.current.classList.remove(hu),Xe.current=!1,ne(!1),qe.current=new Date)}function St(ie){if(!le||!K.current)return;K.current.classList.remove(hu),Xe.current=!1,ne(!1),qe.current=new Date;const fe=Kl(K.current,_);if(!oe(ie.target,!1)||!fe||Number.isNaN(fe)||ue.current===null)return;const Re=qe.current.getTime()-ue.current.getTime(),q=J.current-(ot(_)?ie.clientY:ie.clientX),De=Math.abs(q)/Re;if(De>.05&&(B(!0),setTimeout(()=>{B(!1)},200)),l){tt({draggedDistance:q*(_==="bottom"||_==="right"?1:-1),closeDrawer:Pe,velocity:De,dismissible:m}),i==null||i(ie,!0);return}if(_==="bottom"||_==="right"?q>0:q<0){nt(),i==null||i(ie,!0);return}if(De>uw){Pe(),i==null||i(ie,!1);return}var We;const Et=Math.min((We=K.current.getBoundingClientRect().height)!=null?We:0,window.innerHeight);if(fe>=Et*u){Pe(),i==null||i(ie,!1);return}i==null||i(ie,!0),nt()}Q.useEffect(()=>{A&&(He(document.documentElement,{scrollBehavior:"auto"}),se.current=new Date,on(!0))},[A]),Q.useEffect(()=>{if(K.current&&H){var ie;const fe=K==null||(ie=K.current)==null?void 0:ie.querySelectorAll("*");fe==null||fe.forEach(Re=>{const q=Re;(q.scrollHeight>q.clientHeight||q.scrollWidth>q.clientWidth)&&q.classList.add("vaul-scrollable")})}},[H]);function on(ie){const fe=document.querySelector("[vaul-drawer-wrapper]");!fe||!r||(ie?(f&&(b||(He(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),He(document.body,{background:"black"},!0))),He(fe,{borderRadius:`${Rm}px`,overflow:"hidden",...ot(_)?{transform:`scale(${yn()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yn()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`})):(Gl(fe,"overflow"),Gl(fe,"transform"),Gl(fe,"borderRadius"),He(fe,{transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`})))}function Yn(ie){const fe=ie?(window.innerWidth-Ar)/window.innerWidth:1,Re=ie?-Ar:0;_e.current&&window.clearTimeout(_e.current),He(K.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:`scale(${fe}) translate3d(0, ${Re}px, 0)`}),!ie&&K.current&&(_e.current=setTimeout(()=>{const q=Kl(K.current,_);He(K.current,{transition:"none",transform:ot(_)?`translate3d(0, ${q}px, 0)`:`translate3d(${q}px, 0, 0)`})},500))}function Xn(ie,fe){if(fe<0)return;const Re=ot(_)?window.innerHeight:window.innerWidth,q=(Re-Ar)/Re,De=q+fe*(1-q),We=-Ar+fe*Ar;He(K.current,{transform:ot(_)?`scale(${De}) translate3d(0, ${We}px, 0)`:`scale(${De}) translate3d(${We}px, 0, 0)`,transition:"none"})}function Zn(ie,fe){const Re=ot(_)?window.innerHeight:window.innerWidth,q=fe?(Re-Ar)/Re:1,De=fe?-Ar:0;fe&&He(K.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:ot(_)?`scale(${q}) translate3d(0, ${De}px, 0)`:`scale(${q}) translate3d(${De}px, 0, 0)`})}return Q.createElement(C0,{modal:y,onOpenChange:ie=>{if(e!==void 0){t==null||t(ie);return}ie?(V(!0),j(ie)):Pe()},open:A},Q.createElement(rw.Provider,{value:{visible:H,activeSnapPoint:me,snapPoints:l,setActiveSnapPoint:Je,drawerRef:K,overlayRef:ee,scaleBackground:on,onOpenChange:t,onPress:G,setVisible:F,onRelease:St,onDrag:Le,dismissible:m,handleOnly:h,isOpen:A,isDragging:le,shouldFade:rn,closeDrawer:Pe,onNestedDrag:Xn,onNestedOpenChange:Yn,onNestedRelease:Zn,keyboardIsOpen:ye,openProp:e,modal:y,snapPointsOffset:Tt,direction:_}},n))}const _R=250,kR=120,dw=Q.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{visible:o,closeDrawer:i,isDragging:l,snapPoints:a,activeSnapPoint:f,setActiveSnapPoint:u,dismissible:p,handleOnly:m,onPress:h,onDrag:x}=ya(),C=Q.useRef(null),E=Q.useRef(!1);function R(){if(E.current){b();return}window.setTimeout(()=>{y()},kR)}function y(){if(l||e||E.current){b();return}if(b(),(!a||a.length===0)&&p){i();return}if(f===a[a.length-1]&&p){i();return}const P=a.findIndex(T=>T===f);if(P===-1)return;const D=a[P+1];u(D)}function g(){C.current=window.setTimeout(()=>{E.current=!0},_R)}function b(){window.clearTimeout(C.current),E.current=!1}return Q.createElement("div",{onClick:R,onDoubleClick:()=>{E.current=!0,i()},onPointerCancel:b,onPointerDown:_=>{m&&h(_),g()},onPointerMove:_=>{m&&x(_)},ref:r,"vaul-drawer-visible":o?"true":"false","vaul-handle":"","aria-hidden":"true",...n},Q.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},t))});dw.displayName="Drawer.Handle";const pw=Q.forwardRef(function({children:e,...t},n){const{overlayRef:r,snapPoints:o,onRelease:i,shouldFade:l,isOpen:a,visible:f}=ya(),u=sw(n,r),p=o&&o.length>0;return Q.createElement(R0,{onMouseUp:i,ref:u,"vaul-drawer-visible":f?"true":"false","vaul-overlay":"","vaul-snap-points":a&&p?"true":"false","vaul-snap-points-overlay":a&&l?"true":"false",...t})});pw.displayName="Drawer.Overlay";const mw=Q.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:n,style:r,...o},i){const{drawerRef:l,onPress:a,onRelease:f,onDrag:u,dismissible:p,keyboardIsOpen:m,snapPointsOffset:h,visible:x,closeDrawer:C,modal:E,openProp:R,onOpenChange:y,setVisible:g,handleOnly:b,direction:_}=ya(),P=sw(i,l),D=Q.useRef(null),T=Q.useRef(!1),A=(j,I,V=0)=>{if(T.current)return!0;const H=Math.abs(j.y),F=Math.abs(j.x),W=F>H,Z=["bottom","right"].includes(I)?1:-1;if(I==="left"||I==="right"){if(!(j.x*Z<0)&&F>=0&&F<=V)return W}else if(!(j.y*Z<0)&&H>=0&&H<=V)return!W;return T.current=!0,!0};return Q.useEffect(()=>{g(!0)},[]),Q.createElement(P0,{"vaul-drawer":"","vaul-drawer-direction":_,"vaul-drawer-visible":x?"true":"false",...o,ref:P,style:h&&h.length>0?{"--snap-point-height":`${h[0]}px`,...r}:r,onOpenAutoFocus:j=>{if(e)e(j);else{var I;j.preventDefault(),(I=l.current)==null||I.focus()}},onPointerDown:j=>{b||(o.onPointerDown==null||o.onPointerDown.call(o,j),D.current={x:j.clientX,y:j.clientY},a(j))},onPointerDownOutside:j=>{if(t==null||t(j),!E||j.defaultPrevented){j.preventDefault();return}m.current&&(m.current=!1),j.preventDefault(),y==null||y(!1),!(!p||R!==void 0)&&C()},onFocusOutside:j=>{if(!E){j.preventDefault();return}},onEscapeKeyDown:j=>{if(!E){j.preventDefault();return}},onPointerMove:j=>{if(b||(o.onPointerMove==null||o.onPointerMove.call(o,j),!D.current))return;const I=j.clientY-D.current.y,V=j.clientX-D.current.x,H=j.pointerType==="touch"?10:2;A({x:V,y:I},_,H)?u(j):(Math.abs(V)>H||Math.abs(I)>H)&&(D.current=null)},onPointerUp:j=>{o.onPointerUp==null||o.onPointerUp.call(o,j),D.current=null,T.current=!1,f(j)}})});mw.displayName="Drawer.Content";function RR({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=ya();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return Q.createElement(fw,{nested:!0,onClose:()=>{o(!1)},onDrag:(l,a)=>{r(l,a),e==null||e(l,a)},onOpenChange:l=>{l&&o(l),t==null||t(l)},onRelease:i,...n})}const gn={Root:fw,NestedRoot:RR,Content:mw,Handle:dw,Overlay:pw,Trigger:_0,Portal:k0,Close:Yf,Title:T0,Description:N0},hw=({shouldScaleBackground:e=!0,...t})=>w.jsx(gn.Root,{shouldScaleBackground:e,...t});hw.displayName="Drawer";const PR=gn.Trigger,TR=gn.Portal,NR=gn.Close,vw=v.forwardRef(({className:e,...t},n)=>w.jsx(gn.Overlay,{ref:n,className:Se("fixed inset-0 z-50 bg-black/80",e),...t}));vw.displayName=gn.Overlay.displayName;const gw=v.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(TR,{children:[w.jsx(vw,{}),w.jsxs(gn.Content,{ref:r,className:Se("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[w.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));gw.displayName="DrawerContent";const yw=({className:e,...t})=>w.jsx("div",{className:Se("grid gap-1.5 p-4 text-center sm:text-left",e),...t});yw.displayName="DrawerHeader";const ww=({className:e,...t})=>w.jsx("div",{className:Se("mt-auto flex flex-col gap-2 p-4",e),...t});ww.displayName="DrawerFooter";const xw=v.forwardRef(({className:e,...t},n)=>w.jsx(gn.Title,{ref:n,className:Se("text-lg font-semibold leading-none tracking-tight",e),...t}));xw.displayName=gn.Title.displayName;const Sw=v.forwardRef(({className:e,...t},n)=>w.jsx(gn.Description,{ref:n,className:Se("text-sm text-muted-foreground",e),...t}));Sw.displayName=gn.Description.displayName;function AR(){const{setRowPerPageOrAuto:e,downloadDatabase:t,exportAllTablesAsCSV:n,exportTableAsCSV:r,selectedTable:o,setIsCustomQuery:i}=Jr(),[l,a]=v.useState(30),[f,u]=v.useState(!1);v.useEffect(()=>{f&&a(30)},[f]);const p=x=>{const C=Number(x.target.value);isNaN(C)||(a(C),u(!1))},m=()=>{u(x=>!x)},h=()=>{i(!1),e(f?"auto":l)};return w.jsxs(hw,{children:[w.jsx(PR,{asChild:!0,children:w.jsx(Dt,{variant:"outline",children:w.jsx(hb,{className:"h-5 w-5"})})}),w.jsx(gw,{children:w.jsxs("div",{className:"mx-auto w-full max-w-md",children:[w.jsxs(yw,{children:[w.jsx(xw,{children:"Settings"}),w.jsx(Sw,{children:"Personalize your site experience here."})]}),w.jsxs("div",{className:"p-4 pb-0 flex flex-col gap-4",children:[w.jsxs("div",{children:[w.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Rows Per Page"}),w.jsxs("div",{className:"border rounded p-2 flex gap-1 justify-center items-center",children:[w.jsx(Rf,{min:"3",max:"500",value:l,onChange:p,disabled:f,placeholder:"30",type:"number",name:"rowsPerPage"}),w.jsx("span",{className:"text-sm text-muted-foreground h-full text-center",children:"OR"}),w.jsx(Dt,{onClick:m,variant:"outline",className:f?"border border-primary":void 0,children:"Auto calculate"})]}),w.jsx(Dt,{className:"w-full mt-2",onClick:h,variant:"outline",children:w.jsx("span",{children:"Save"})})]}),w.jsxs("div",{children:[w.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Exports Settings"}),w.jsxs("div",{className:"border rounded p-2 flex flex-col gap-1",children:[w.jsx(Dt,{variant:"outline",onClick:t,children:w.jsx("span",{className:"ml-2",children:"Export as SQLite"})}),w.jsx(Dt,{variant:"outline",onClick:()=>r(parseInt(o)),children:w.jsx("span",{className:"ml-2",children:"Export selected table as CSV"})}),w.jsx(Dt,{variant:"outline",onClick:n,children:w.jsx("span",{className:"ml-2",children:"Export all tables as CSV"})})]})]})]}),w.jsx(ww,{children:w.jsx(NR,{asChild:!0,children:w.jsx(Dt,{variant:"outline",children:"Close"})})})]})})]})}function DR(){const{db:e}=Jr();return w.jsxs("footer",{className:"flex items-center justify-between my-1 p-4 border rounded",children:[w.jsxs("div",{children:[w.jsx("p",{className:"hidden sm:block text-xs",children:"No file will be uploaded to server. using JavaScript, sql.js"}),w.jsx("p",{className:"block sm:hidden text-xs",children:"No file uploads to server."}),w.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:[w.jsx(ab,{className:"h-4 w-4"}),w.jsx("span",{children:"Star us on GitHub"})]})]}),w.jsxs("div",{className:"flex gap-1",children:[w.jsx(lR,{}),e&&w.jsx(AR,{})]})]})}vu.createRoot(document.getElementById("root")).render(w.jsx(Q.StrictMode,{children:w.jsxs("main",{className:"container mx-auto p-4",children:[w.jsx(iR,{}),w.jsx(DR,{})]})})); diff --git a/assets/index-BfLfaB4r.css b/assets/index-WPbId_Ps.css similarity index 59% rename from assets/index-BfLfaB4r.css rename to assets/index-WPbId_Ps.css index 3ec0e65..c85999a 100644 --- a/assets/index-BfLfaB4r.css +++ b/assets/index-WPbId_Ps.css @@ -1 +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, 56%, 40%;--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}.mr-2{margin-right:.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{height:.75rem}.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}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-3{width:.75rem}.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-\[200px\]{width:200px}.w-\[270px\]{width:270px}.w-full{width:100%}.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}.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 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-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.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{padding-left:.5rem;padding-right:.5rem}.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{padding-top:0;padding-bottom:0}.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-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.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-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.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-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / 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}.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\:w-\[300px\]{width:300px}.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} +*,: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, 56%, 40%;--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}.mr-2{margin-right:.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{height:.75rem}.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}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-3{width:.75rem}.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-\[200px\]{width:200px}.w-\[270px\]{width:270px}.w-full{width:100%}.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}.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 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-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.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{padding-left:.5rem;padding-right:.5rem}.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{padding-top:0;padding-bottom:0}.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-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.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-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.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-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / 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}.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\:w-\[300px\]{width:300px}.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 39e433a..09078a5 100644 --- a/index.html +++ b/index.html @@ -56,8 +56,8 @@ font-size: 2rem; } - - + + diff --git a/sw.js b/sw.js index dd1582a..2768787 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,i={};const n=(n,s)=>(n=new URL(n+".js",s).href,i[n]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=i,document.head.appendChild(e)}else e=n,importScripts(n),i()})).then((()=>{let e=i[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(s,r)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(i[o])return;let t={};const d=e=>n(e,o),l={module:{uri:o},exports:t,require:d};i[o]=Promise.all(s.map((e=>l[e]||d(e)))).then((e=>(r(...e),t)))}}define(["./workbox-3e911b1d"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-BfLfaB4r.css",revision:null},{url:"assets/index-BVCx4aDC.js",revision:null},{url:"index.html",revision:"4721be47bbc7073216f308f75c7b2719"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"icon512_maskable.png",revision:"3d290f6a5aaab33e10193a7ae6363fdc"},{url:"icon512_rounded.png",revision:"b106306874aab167a6e6fca03440dcfb"},{url:"manifest.webmanifest",revision:"ce6def5658bea734d75f655c3d98523f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,i={};const n=(n,s)=>(n=new URL(n+".js",s).href,i[n]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=i,document.head.appendChild(e)}else e=n,importScripts(n),i()})).then((()=>{let e=i[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(s,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(i[t])return;let o={};const d=e=>n(e,t),c={module:{uri:t},exports:o,require:d};i[t]=Promise.all(s.map((e=>c[e]||d(e)))).then((e=>(r(...e),o)))}}define(["./workbox-3e911b1d"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-BxjtieRf.js",revision:null},{url:"assets/index-WPbId_Ps.css",revision:null},{url:"index.html",revision:"7dd01578c9ec5c28570cb6d4507c0342"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"icon512_maskable.png",revision:"3d290f6a5aaab33e10193a7ae6363fdc"},{url:"icon512_rounded.png",revision:"b106306874aab167a6e6fca03440dcfb"},{url:"manifest.webmanifest",revision:"ce6def5658bea734d75f655c3d98523f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));