PageSourceSearch

https://kiosk-amc.base44.app/assets/index-DYdCyXcC.js

js kiosk-amc.base44.app collected 2026-10-03 03:14:55 UTC 883,175 bytes, 658 lines download raw bytes

vendor: 6,692 bytes, lines 1-9
1var uv=e=>{throw TypeError(e)};var Oh=(e,t,r)=>t.has(e)||uv("Cannot "+r);var D=(e,t,r)=>(Oh(e,t,"read from private field"),r?r.call(e):t.get(e)),Le=(e,t,r)=>t.has(e)?uv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),je=(e,t,r,i)=>(Oh(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),Ge=(e,t,r)=>(Oh(e,t,"access private method"),r);var fd=(e,t,r,i)=>({set _(a){je(e,t,a,r)},get _(){return D(e,t,i)}});function H_(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function r(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=r(a);fetch(a.href,l)}})();function dm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function V_(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var Ih={exports:{}},rl={},Mh={exports:{}},Ve={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var fv;function q_(){if(fv)return Ve;fv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,N={};function j(A,X,ge){this.props=A,this.context=X,this.refs=N,this.updater=ge||C}j.prototype.isReactComponent={},j.prototype.setState=function(A,X){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,X,"setState")},j.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function b(){}b.prototype=j.prototype;function S(A,X,ge){this.props=A,this.context=X,this.refs=N,this.updater=ge||C}var E=S.prototype=new b;E.constructor=S,k(E,j.prototype),E.isPureReactComponent=!0;var R=Array.isArray,O=Object.prototype.hasOwnProperty,$={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function M(A,X,ge){var pe,me={},B=null,T=null;if(X!=null)for(pe in X.ref!==void 0&&(T=X.ref),X.key!==void 0&&(B=""+X.key),X)O.call(X,pe)&&!V.hasOwnProperty(pe)&&(me[pe]=X[pe]);var re=arguments.length-2;if(re===1)me.children=ge;else if(1<re){for(var se=Array(re),de=0;de<re;de++)se[de]=arguments[de+2];me.children=se}if(A&&A.defaultProps)for(pe in re=A.defaultProps,re)me[pe]===void 0&&(me[pe]=re[pe]);return{$$typeof:e,type:A,key:B,ref:T,props:me,_owner:$.current}}function ne(A,X){return{$$typeof:e,type:A.type,key:X,ref:A.ref,props:A.props,_owner:A._owner}}function Q(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function ie(A){var X={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ge){return X[ge]})}var ee=/\/+/g;function Z(A,X){return typeof A=="object"&&A!==null&&A.key!=null?ie(""+A.key):X.toString(36)}function L(A,X,ge,pe,me){var B=typeof A;(B==="undefined"||B==="boolean")&&(A=null);var T=!1;if(A===null)T=!0;else switch(B){case"string":case"number":T=!0;break;case"object":switch(A.$$typeof){case e:case t:T=!0}}if(T)return T=A,me=me(T),A=pe===""?"."+Z(T,0):pe,R(me)?(ge="",A!=null&&(ge=A.replace(ee,"$&/")+"/"),L(me,X,ge,"",function(de){return de})):me!=null&&(Q(me)&&(me=ne(me,ge+(!me.key||T&&T.key===me.key?"":(""+me.key).replace(ee,"$&/")+"/")+A)),X.push(me)),1;if(T=0,pe=pe===""?".":pe+":",R(A))for(var re=0;re<A.length;re++){B=A[re];var se=pe+Z(B,re);T+=L(B,X,ge,se,me)}else if(se=w(A),typeof se=="function")for(A=se.call(A),re=0;!(B=A.next()).done;)B=B.value,se=pe+Z(B,re++),T+=L(B,X,ge,se,me);else if(B==="object")throw X=String(A),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.");return T}function W(A,X,ge){if(A==null)return A;var pe=[],me=0;return L(A,pe,"","",function(B){return X.call(ge,B,me++)}),pe}function te(A){if(A._status===-1){var X=A._result;X=X(),X.then(function(ge){(A._status===0||A._status===-1)&&(A._status=1,A._result=ge)},function(ge){(A._status===0||A._status===-1)&&(A._status=2,A._result=ge)}),A._status===-1&&(A._status=0,A._result=X)}if(A._status===1)return A._result.default;throw A._result}var le={current:null},G={transition:null},q={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:G,ReactCurrentOwner:$};function U(){throw Error("act(...) is not supported in production builds of React.")}return Ve.Children={map:W,forEach:function(A,X,ge){W(A,function(){X.apply(this,arguments)},ge)},count:function(A){var X=0;return W(A,function(){X++}),X},toArray:function(A){return W(A,function(X){return X})||[]},only:function(A){if(!Q(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Ve.Component=j,Ve.Fragment=r,Ve.Profiler=a,Ve.PureComponent=S,Ve.StrictMode=i,Ve.Suspense=h,Ve.__SECRET_INT
vendor: 7,909 bytes, lines 9-33
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,Ve.act=U,Ve.cloneElement=function(A,X,ge){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var pe=k({},A.props),me=A.key,B=A.ref,T=A._owner;if(X!=null){if(X.ref!==void 0&&(B=X.ref,T=$.current),X.key!==void 0&&(me=""+X.key),A.type&&A.type.defaultProps)var re=A.type.defaultProps;for(se in X)O.call(X,se)&&!V.hasOwnProperty(se)&&(pe[se]=X[se]===void 0&&re!==void 0?re[se]:X[se])}var se=arguments.length-2;if(se===1)pe.children=ge;else if(1<se){re=Array(se);for(var de=0;de<se;de++)re[de]=arguments[de+2];pe.children=re}return{$$typeof:e,type:A.type,key:me,ref:B,props:pe,_owner:T}},Ve.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:l,_context:A},A.Consumer=A},Ve.createElement=M,Ve.createFactory=function(A){var X=M.bind(null,A);return X.type=A,X},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(A){return{$$typeof:u,render:A}},Ve.isValidElement=Q,Ve.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:te}},Ve.memo=function(A,X){return{$$typeof:m,type:A,compare:X===void 0?null:X}},Ve.startTransition=function(A){var X=G.transition;G.transition={};try{A()}finally{G.transition=X}},Ve.unstable_act=U,Ve.useCallback=function(A,X){return le.current.useCallback(A,X)},Ve.useContext=function(A){return le.current.useContext(A)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(A){return le.current.useDeferredValue(A)},Ve.useEffect=function(A,X){return le.current.useEffect(A,X)},Ve.useId=function(){return le.current.useId()},Ve.useImperativeHandle=function(A,X,ge){return le.current.useImperativeHandle(A,X,ge)},Ve.useInsertionEffect=function(A,X){return le.current.useInsertionEffect(A,X)},Ve.useLayoutEffect=function(A,X){return le.current.useLayoutEffect(A,X)},Ve.useMemo=function(A,X){return le.current.useMemo(A,X)},Ve.useReducer=function(A,X,ge){return le.current.useReducer(A,X,ge)},Ve.useRef=function(A){return le.current.useRef(A)},Ve.useState=function(A){return le.current.useState(A)},Ve.useSyncExternalStore=function(A,X,ge){return le.current.useSyncExternalStore(A,X,ge)},Ve.useTransition=function(){return le.current.useTransition()},Ve.version="18.3.1",Ve}var hv;function um(){return hv||(hv=1,Mh.exports=q_()),Mh.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var pv;function K_(){if(pv)return rl;pv=1;var e=um(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(u,h,m){var g,y={},w=null,C=null;m!==void 0&&(w=""+m),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(C=h.ref);for(g in h)i.call(h,g)&&!l.hasOwnProperty(g)&&(y[g]=h[g]);if(u&&u.defaultProps)for(g in h=u.defaultProps,h)y[g]===void 0&&(y[g]=h[g]);return{$$typeof:t,type:u,key:w,ref:C,props:y,_owner:a.current}}return rl.Fragment=r,rl.jsx=d,rl.jsxs=d,rl}var mv;function G_(){return mv||(mv=1,Ih.exports=K_()),Ih.exports}var n=G_(),p=um();const ft=dm(p),fu=H_({__proto__:null,default:ft},[p]);var hd={},Dh={exports:{}},fn={},Lh={exports:{}},Fh={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var xv;function Y_(){return xv||(xv=1,(function(e){function t(G,q){var U=G.length;G.push(q);e:for(;0<U;){var A=U-1>>>1,X=G[A];if(0<a(X,q))G[A]=q,G[U]=X,U=A;else break e}}function r(G){return G.length===0?null:G[0]}function i(G){if(G.length===0)return null;var q=G[0],U=G.pop();if(U!==q){G[0]=U;e:for(var A=0,X=G.length,ge=X>>>1;A<ge;){var pe=2*(A+1)-1,me=G[pe],B=pe+1,T=G[B];if(0>a(me,U))B<X&&0>a(T,me)?(G[A]=T,G[B]=U,A=B):(G[A]=me,G[pe]=U,A=pe);else if(B<X&&0>a(T,U))G[A]=T,G[B]=U,A=B;else break e}}return q}function a(G,q){var U=G.sortIndex-q.sortIndex;return U!==0?U:G.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var d=Date,u=d.now();e.unstable_now=function(){return d.now()-u}}var h=[],m=[],g=1,y=null,w=3,C=!1,k=!1,N=!1,j=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(G){for(var q=r(m);q!==null;){if(q.callback===null)i(m);else if(q.startTime<=G)i(m),q.sortIndex=q.expirationTime,t(h,q);else break;q=r(m)}}function R(G){if(N=!1,E(G),!k)if(r(h)!==null)k=!0,te(O);else{var q=r(m);q!==null&&le(R,q.startTime-G)}}function O(G,q){k=!1,N&&(N=!1,b(M),M=-1),C=!0;var U=w;try{for(E(q),y=r(h);y!==null&&(!(y.expirationTime>q)||G&&!ie());){var A=y.callback;if(typeof A=="function"){y.callback=null,w=y.priorityLevel;var X=A(y.expirationTime<=q);q=e.unstable_now(),typeof X=="function"?y.callback=X:y===r(h)&&i(h),E(q)}else i(h);y=r(h)}if(y!==null)var ge=!0;else{var pe=r(m);pe!==null&&le(R,pe.startTime-q),ge=!1}return ge}finally{y=null,w=U,C=!1}}var $=!1,V=null,M=-1,ne=5,Q=-1;function ie(){return!(e.unstable_now()-Q<ne)}function ee(){if(V!==null){var G=e.unstable_now();Q=G;var q=!0;try{q=V(!0,G)}finally{q?Z():($=!1,V=null)}}else $=!1}var Z;if(typeof S=="function")Z=function(){S(ee)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,W=L.port2;L.port1.onmessage=ee,Z=function(){W.postMessage(null)}}else Z=function(){j(ee,0)};function te(G){V=G,$||($=!0,Z())}function le(G,q){M=j(function(){G(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){k||C||(k=!0,te(O))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function(G){switch(w){case 1:case 2:case 3:var q=3;break;default:q=w}var U=w;w=q;try{return G()}finally{w=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,q){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var U=w;w=G;try{return q()}finally{w=U}},e.unstable_scheduleCallback=function(G,q,U){var A=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?A+U:A):U=A,G){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=U+X,G={id:g++,callback:q,priorityLevel:G,startTime:U,expirationTime:X,sortIndex:-1},U>A?(G.sortIndex=U,t(m,G),r(h)===null&&G===r(m)&&(N?(b(M),M=-1):N=!0,le(R,U-A))):(G.sortIndex=X,t(h,G),k||C||(k=!0,te(O))),G},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(G){var q=w;return function(){var U=w;w=q;try{return G.apply(this,arguments)}finally{w=U}}}})(Fh)),Fh}var gv;function Q_(){return gv||(gv=1,Lh.exports=Y_()),Lh.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var yv;
vendor: 14,954 bytes, lines 33-37
33function X_(){if(yv)return fn;yv=1;var e=um(),t=Q_();function r(s){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+s,c=1;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+s+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(s,o){d(s,o),d(s+"Capture",o)}function d(s,o){for(a[s]=o,s=0;s<o.length;s++)i.add(o[s])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[: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]*$/,g={},y={};function w(s){return h.call(y,s)?!0:h.call(g,s)?!1:m.test(s)?y[s]=!0:(g[s]=!0,!1)}function C(s,o,c,f){if(c!==null&&c.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return f?!1:c!==null?!c.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function k(s,o,c,f){if(o===null||typeof o>"u"||C(s,o,c,f))return!0;if(f)return!1;if(c!==null)switch(c.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function N(s,o,c,f,x,v,_){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=f,this.attributeNamespace=x,this.mustUseProperty=c,this.propertyName=s,this.type=o,this.sanitizeURL=v,this.removeEmptyString=_}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){j[s]=new N(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var o=s[0];j[o]=new N(o,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){j[s]=new N(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){j[s]=new N(s,2,!1,s,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(s){j[s]=new N(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){j[s]=new N(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){j[s]=new N(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){j[s]=new N(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){j[s]=new N(s,5,!1,s.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function S(s){return s[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(s){var o=s.replace(b,S);j[o]=new N(o,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var o=s.replace(b,S);j[o]=new N(o,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var o=s.replace(b,S);j[o]=new N(o,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){j[s]=new N(s,1,!1,s.toLowerCase(),null,!1,!1)}),j.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){j[s]=new N(s,1,!1,s.toLowerCase(),null,!0,!0)});function E(s,o,c,f){var x=j.hasOwnProperty(o)?j[o]:null;(x!==null?x.type!==0:f||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(k(o,c,x,f)&&(c=null),f||x===null?w(o)&&(c===null?s.removeAttribute(o):s.setAttribute(o,""+c)):x.mustUseProperty?s[x.propertyName]=c===null?x.type===3?!1:"":c:(o=x.attributeName,f=x.attributeNamespace,c===null?s.removeAttribute(o):(x=x.type,c=x===3||x===4&&c===!0?"":""+c,f?s.setAttributeNS(f,o,c):s.setAttribute(o,c))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),$=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),ie=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),le=Symbol.for("react.offscreen"),G=Symbol.iterator;function q(s){return s===null||typeof s!="object"?null:(s=G&&s[G]||s["@@iterator"],typeof s=="function"?s:null)}var U=Object.assign,A;function X(s){if(A===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);A=o&&o[1]||""}return`
34`+A+s}var ge=!1;function pe(s,o){if(!s||ge)return"";ge=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(Y){var f=Y}Reflect.construct(s,[],o)}else{try{o.call()}catch(Y){f=Y}s.call(o.prototype)}else{try{throw Error()}catch(Y){f=Y}s()}}catch(Y){if(Y&&f&&typeof Y.stack=="string"){for(var x=Y.stack.split(`
35`),v=f.stack.split(`
36`),_=x.length-1,P=v.length-1;1<=_&&0<=P&&x[_]!==v[P];)P--;for(;1<=_&&0<=P;_--,P--)if(x[_]!==v[P]){if(_!==1||P!==1)do if(_--,P--,0>P||x[_]!==v[P]){var I=`
37`+x[_].replace(" at new "," at ");return s.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",s.displayName)),I}while(1<=_&&0<=P);break}}}finally{ge=!1,Error.prepareStackTrace=c}return(s=s?s.displayName||s.name:"")?X(s):""}function me(s){switch(s.tag){case 5:return X(s.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return s=pe(s.type,!1),s;case 11:return s=pe(s.type.render,!1),s;case 1:return s=pe(s.type,!0),s;default:return""}}function B(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case V:return"Fragment";case $:return"Portal";case ne:return"Profiler";case M:return"StrictMode";case Z:return"Suspense";case L:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ie:return(s.displayName||"Context")+".Consumer";case Q:return(s._context.displayName||"Context")+".Provider";case ee:var o=s.render;return s=s.displayName,s||(s=o.displayName||o.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case W:return o=s.displayName||null,o!==null?o:B(s.type)||"Memo";case te:o=s._payload,s=s._init;try{return B(s(o))}catch{}}return null}function T(s){var o=s.type;switch(s.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=o.render,s=s.displayName||s.name||"",o.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(o);case 8:return o===M?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function re(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function se(s){var o=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function de(s){var o=se(s)?"checked":"value",c=Object.getOwnPropertyDescriptor(s.constructor.prototype,o),f=""+s[o];if(!s.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var x=c.get,v=c.set;return Object.defineProperty(s,o,{configurable:!0,get:function(){return x.call(this)},set:function(_){f=""+_,v.call(this,_)}}),Object.defineProperty(s,o,{enumerable:c.enumerable}),{getValue:function(){return f},setValue:function(_){f=""+_},stopTracking:function(){s._valueTracker=null,delete s[o]}}}}function be(s){s._valueTracker||(s._valueTracker=de(s))}function Ae(s){if(!s)return!1;var o=s._valueTracker;if(!o)return!0;var c=o.getValue(),f="";return s&&(f=se(s)?s.checked?"true":"false":s.value),s=f,s!==c?(o.setValue(s),!0):!1}function Ze(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function nt(s,o){var c=o.checked;return U({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??s._wrapperState.initialChecked})}function J(s,o){var c=o.defaultValue==null?"":o.defaultValue,f=o.checked!=null?o.checked:o.defaultChecked;c=re(o.value!=null?o.value:c),s._wrapperState={initialChecked:f,initialValue:c,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function ue(s,o){o=o.checked,o!=null&&E(s,"checked",o,!1)}function Je(s,o){ue(s,o);var c=re(o.value),f=o.type;if(c!=null)f==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+c):s.value!==""+c&&(s.value=""+c);else if(f==="submit"||f==="reset"){s.removeAttribute("value");return}o.hasOwnProperty("value")?lt(s,o.type,c):o.hasOwnProperty("defaultValue")&&lt(s,o.type,re(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(s.defaultChecked=!!o.defaultChecked)}function dt(s,o,c){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var f=o.type;if(!(f!=="submit"&&f!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+s._wrapperState.initialValue,c||o===s.value||(s.value=o),s.defaultValue=o}c=s.name,c!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,c!==""&&(s.name=c)}function lt(s,o,c){(o!=="number"||Ze(s.ownerDocument)!==s)&&(c==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+c&&(s.defaultValue=""+c))}var dr=Array.isArray;function gt(s,o,c,f){if(s=s.options,o){o={};for(var x=0;x<c.length;x++)o["$"+c[x]]=!0;for(c=0;c<s.length;c++)x=o.hasOwnProperty("$"+s[c].value),s[c].selected!==x&&(s[c].selected=x),x&&f&&(s[c].defaultSelected=!0)}else{for(c=""+re(c),o=null,x=0;x<s.length;x++){if(s[x].value===c){s[x].selected=!0,f&&(s[x].defaultSelected=!0);return}o!==null||s[x].disabled||(o=s[x])}o!==null&&(o.selected=!0)}}function xn(s,o){if(o.dangerouslySetInnerHTML!=null)throw Error(r(91));return U({},o,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function io(s,o){var c=o.value;if(c==null){if(c=o.children,o=o.defaultValue,c!=null){if(o!=null)throw Error(r(92));if(dr(c)){if(1<c.length)throw Error(r(93));c=c[0]}o=c}o==null&&(o=""),c=o}s._wrapperState={initialValue:re(c)}}function nc(s,o){var c=re(o.value),f=re(o.defaultValue);c!=null&&(c=""+c,c!==s.value&&(s.value=c),o.defaultValue==null&&s.defaultValue!==c&&(s.defaultValue=c)),f!=null&&(s.defaultValue=""+f)}function rc(s){var o=s.textContent;o===s._wrapperState.initialValue&&o!==""&&o!==null&&(s.value=o)}function oo(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function va(s,o){return s==null||s==="http://www.w3.org/1999/xhtml"?oo(o):s==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var ao,sc=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,c,f,x){MSApp.execUnsafeLocalFunction(function(){return s(o,c,f,x)})}:s})(function(s,o){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=o;else{for(ao=ao||document.createElement("div"),ao.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=ao.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;o.firstChild;)s.appendChild(o.firstChild)}});function ns(s,o){if(o){var c=s.firstChild;if(c&&c===s.lastChild&&c.nodeType===3){c.nodeValue=o;return}}s.textContent=o}var rs={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},Hu=["Webkit","ms","Moz","O"];Object.keys(rs).forEach(function(s){Hu.forEach(function(o){o=o+s.charAt(0).toUpperCase()+s.substring(1),rs[o]=rs[s]})});function Ue(s,o,c){return o==null||typeof o=="boolean"||o===""?"":c||typeof o!="number"||o===0||rs.hasOwnProperty(s)&&rs[s]?(""+o).trim():o+"px"}function mt(s,o){s=s.style;for(var c in o)if(o.hasOwnProperty(c)){var f=c.indexOf("--")===0,x=Ue(c,o[c],f);c==="float"&&(c="cssFloat"),f?s.setProperty(c,x):s[c]=x}}var Tr=U({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 ba(s,o){if(o){if(Tr[s]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function Vu(s,o){if(s.indexOf("-")===-1)return typeof o.is=="str
37ing";switch(s){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 qu=null;function Ku(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Gu=null,lo=null,co=null;function Ex(s){if(s=Ua(s)){if(typeof Gu!="function")throw Error(r(280));var o=s.stateNode;o&&(o=kc(o),Gu(s.stateNode,s.type,o))}}function Rx(s){lo?co?co.push(s):co=[s]:lo=s}function Tx(){if(lo){var s=lo,o=co;if(co=lo=null,Ex(s),o)for(s=0;s<o.length;s++)Ex(o[s])}}function Px(s,o){return s(o)}function Ax(){}var Yu=!1;function Ox(s,o,c){if(Yu)return s(o,c);Yu=!0;try{return Px(s,o,c)}finally{Yu=!1,(lo!==null||co!==null)&&(Ax(),Tx())}}function wa(s,o){var c=s.stateNode;if(c===null)return null;var f=kc(c);if(f===null)return null;c=f[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(s=s.type,f=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!f;break e;default:s=!1}if(s)return null;if(c&&typeof c!="function")throw Error(r(231,o,typeof c));return c}var Qu=!1;if(u)try{var ja={};Object.defineProperty(ja,"passive",{get:function(){Qu=!0}}),window.addEventListener("test",ja,ja),window.removeEventListener("test",ja,ja)}catch{Qu=!1}function QS(s,o,c,f,x,v,_,P,I){var Y=Array.prototype.slice.call(arguments,3);try{o.apply(c,Y)}catch(ce){this.onError(ce)}}var Na=!1,ic=null,oc=!1,Xu=null,XS={onError:function(s){Na=!0,ic=s}};function JS(s,o,c,f,x,v,_,P,I){Na=!1,ic=null,QS.apply(XS,arguments)}function ZS(s,o,c,f,x,v,_,P,I){if(JS.apply(this,arguments),Na){if(Na){var Y=ic;Na=!1,ic=null}else throw Error(r(198));oc||(oc=!0,Xu=Y)}}function ci(s){var o=s,c=s;if(s.alternate)for(;o.return;)o=o.return;else{s=o;do o=s,(o.flags&4098)!==0&&(c=o.return),s=o.return;while(s)}return o.tag===3?c:null}function Ix(s){if(s.tag===13){var o=s.memoizedState;if(o===null&&(s=s.alternate,s!==null&&(o=s.memoizedState)),o!==null)return o.dehydrated}return null}function Mx(s){if(ci(s)!==s)throw Error(r(188))}function eC(s){var o=s.alternate;if(!o){if(o=ci(s),o===null)throw Error(r(188));return o!==s?null:s}for(var c=s,f=o;;){var x=c.return;if(x===null)break;var v=x.alternate;if(v===null){if(f=x.return,f!==null){c=f;continue}break}if(x.child===v.child){for(v=x.child;v;){if(v===c)return Mx(x),s;if(v===f)return Mx(x),o;v=v.sibling}throw Error(r(188))}if(c.return!==f.return)c=x,f=v;else{for(var _=!1,P=x.child;P;){if(P===c){_=!0,c=x,f=v;break}if(P===f){_=!0,f=x,c=v;break}P=P.sibling}if(!_){for(P=v.child;P;){if(P===c){_=!0,c=v,f=x;break}if(P===f){_=!0,f=v,c=x;break}P=P.sibling}if(!_)throw Error(r(189))}}if(c.alternate!==f)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?s:o}function Dx(s){return s=eC(s),s!==null?Lx(s):null}function Lx(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var o=Lx(s);if(o!==null)return o;s=s.sibling}return null}var Fx=t.unstable_scheduleCallback,Bx=t.unstable_cancelCallback,tC=t.unstable_shouldYield,nC=t.unstable_requestPaint,St=t.unstable_now,rC=t.unstable_getCurrentPriorityLevel,Ju=t.unstable_ImmediatePriority,zx=t.unstable_UserBlockingPriority,ac=t.unstable_NormalPriority,sC=t.unstable_LowPriority,$x=t.unstable_IdlePriority,lc=null,ur=null;function iC(s){if(ur&&typeof ur.onCommitFiberRoot=="function")try{ur.onCommitFiberRoot(lc,s,void 0,(s.current.flags&128)===128)}catch{}}var Un=Math.clz32?Math.clz32:lC,oC=Math.log,aC=Math.LN2;function lC(s){return s>>>=0,s===0?32:31-(oC(s)/aC|0)|0}var cc=64,dc=4194304;function Sa(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function uc(s,o){var c=s.pendingLanes;if(c===0)return 0;var f=0,x=s.suspendedLanes,v=s.pingedLanes,_=c&268435455;if(_!==0){var P=_&~x;P!==0?f=Sa(P):(v&=_,v!==0&&(f=Sa(v)))}else _=c&~x,_!==0?f=Sa(_):v!==0&&(f=Sa(v));if(f===0)return 0;if(o!==0&&o!==f&&(o&x)===0&&(x=f&-f,v=o&-o,x>=v||x===16&&(v&4194240)!==0))return o;if((f&4)!==0&&(f|=c&16),o=s.entangledLanes,o!==0)for(s=s.entanglements,o&=f;0<o;)c=31-Un(o),x=1<<c,f|=s[c],o&=~x;return f}function cC(s,o){switch(s){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function dC(s,o){for(var c=s.suspendedLanes,f=s.pingedLanes,x=s.expirationTimes,v=s.pendingLanes;0<v;){var _=31-Un(v),P=1<<_,I=x[_];I===-1?((P&c)===0||(P&f)!==0)&&(x[_]=cC(P,o)):I<=o&&(s.expiredLanes|=P),v&=~P}}function Zu(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Ux(){var s=cc;return cc<<=1,(cc&4194240)===0&&(cc=64),s}function ef(s){for(var o=[],c=0;31>c;c++)o.push(s);return o}function Ca(s,o,c){s.pendingLanes|=o,o!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,o=31-Un(o),s[o]=c}function uC(s,o){var c=s.pendingLanes&~o;s.pendingLanes=o,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=o,s.mutableReadLanes&=o,s.entangledLanes&=o,o=s.entanglements;var f=s.eventTimes;for(s=s.expirationTimes;0<c;){var x=31-Un(c),v=1<<x;o[x]=0,f[x]=-1,s[x]=-1,c&=~v}}function tf(s,o){var c=s.entangledLanes|=o;for(s=s.entanglements;c;){var f=31-Un(c),x=1<<f;x&o|s[f]&o&&(s[f]|=o),c&=~x}}var it=0;function Wx(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Hx,nf,Vx,qx,Kx,rf=!1,fc=[],ss=null,is=null,os=null,_a=new Map,ka=new Map,as=[],fC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Gx(s,o){switch(s){case"focusin":case"focusout":ss=null;break;case"dragenter":case"dragleave":is=null;break;case"mouseover":case"mouseout":os=null;break;case"pointerover":case"pointerout":_a.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ka.delete(o.pointerId)}}function Ea(s,o,c,f,x,v){return s===null||s.nativeEvent!==v?(s={blockedOn:o,domEventName:c,eventSystemFlags:f,nativeEvent:v,targetContainers:[x]},o!==null&&(o=Ua(o),o!==null&&nf(o)),s):(s.eventSystemFlags|=f,o=s.targetContainers,x!==null&&o.indexOf(x)===-1&&o.push(x),s)}function hC(s,o,c,f,x){switch(o){case"focusin":return ss=Ea(ss,s,o,c,f,x),!0;case"dragenter":return is=Ea(is,s,o,c,f,x),!0;case"mouseover":return os=Ea(os,s,o,c,f,x),!0;case"pointerover":var v=x.pointerId;return _a.set(v,Ea(_a.get(v)||null,s,o,c,f,x)),!0;case"gotpointercapture":return v=x.pointerId,ka.set(v,Ea(ka.get(v)||null,s,o,c,f,x)),!0}return!1}function Yx(s){var o=di(s.target);if(o!==null){var c=ci(o);if(c!==null){if(o=c.tag,o===13){if(o=Ix(c),o!==null){s.blockedOn=o,Kx(s.priority,function(){Vx(c)});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){s.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}s.blockedOn=null}function hc(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var c=of(s.domEventName,s.eventSystemFlags,o[0],s.nativeEvent);if(c===null){c=s.nativeEvent;var f=new c.constructor(c.type,c);qu=f,c.target.dispatchEvent(f),qu=null}else return o=Ua(c),o!==null&&nf(o),s.blockedOn=c,!1;o.shift()}return!0}function Qx(s,o,c){hc(s)&&c.delete(o)}function pC(){rf=!1,ss!==null&&hc(ss)&&(ss=null),is!==null&&hc(is)&&(is=null),os!==null&&hc(os)&&(os=null),_a.forEach(Qx),ka.forEac
vendor: 5,690 bytes, line 37
37h(Qx)}function Ra(s,o){s.blockedOn===o&&(s.blockedOn=null,rf||(rf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,pC)))}function Ta(s){function o(x){return Ra(x,s)}if(0<fc.length){Ra(fc[0],s);for(var c=1;c<fc.length;c++){var f=fc[c];f.blockedOn===s&&(f.blockedOn=null)}}for(ss!==null&&Ra(ss,s),is!==null&&Ra(is,s),os!==null&&Ra(os,s),_a.forEach(o),ka.forEach(o),c=0;c<as.length;c++)f=as[c],f.blockedOn===s&&(f.blockedOn=null);for(;0<as.length&&(c=as[0],c.blockedOn===null);)Yx(c),c.blockedOn===null&&as.shift()}var uo=R.ReactCurrentBatchConfig,pc=!0;function mC(s,o,c,f){var x=it,v=uo.transition;uo.transition=null;try{it=1,sf(s,o,c,f)}finally{it=x,uo.transition=v}}function xC(s,o,c,f){var x=it,v=uo.transition;uo.transition=null;try{it=4,sf(s,o,c,f)}finally{it=x,uo.transition=v}}function sf(s,o,c,f){if(pc){var x=of(s,o,c,f);if(x===null)Nf(s,o,f,mc,c),Gx(s,f);else if(hC(x,s,o,c,f))f.stopPropagation();else if(Gx(s,f),o&4&&-1<fC.indexOf(s)){for(;x!==null;){var v=Ua(x);if(v!==null&&Hx(v),v=of(s,o,c,f),v===null&&Nf(s,o,f,mc,c),v===x)break;x=v}x!==null&&f.stopPropagation()}else Nf(s,o,f,null,c)}}var mc=null;function of(s,o,c,f){if(mc=null,s=Ku(f),s=di(s),s!==null)if(o=ci(s),o===null)s=null;else if(c=o.tag,c===13){if(s=Ix(o),s!==null)return s;s=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null);return mc=s,null}function Xx(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(rC()){case Ju:return 1;case zx:return 4;case ac:case sC:return 16;case $x:return 536870912;default:return 16}default:return 16}}var ls=null,af=null,xc=null;function Jx(){if(xc)return xc;var s,o=af,c=o.length,f,x="value"in ls?ls.value:ls.textContent,v=x.length;for(s=0;s<c&&o[s]===x[s];s++);var _=c-s;for(f=1;f<=_&&o[c-f]===x[v-f];f++);return xc=x.slice(s,1<f?1-f:void 0)}function gc(s){var o=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&o===13&&(s=13)):s=o,s===10&&(s=13),32<=s||s===13?s:0}function yc(){return!0}function Zx(){return!1}function gn(s){function o(c,f,x,v,_){this._reactName=c,this._targetInst=x,this.type=f,this.nativeEvent=v,this.target=_,this.currentTarget=null;for(var P in s)s.hasOwnProperty(P)&&(c=s[P],this[P]=c?c(v):v[P]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?yc:Zx,this.isPropagationStopped=Zx,this}return U(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=yc)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=yc)},persist:function(){},isPersistent:yc}),o}var fo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lf=gn(fo),Pa=U({},fo,{view:0,detail:0}),gC=gn(Pa),cf,df,Aa,vc=U({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ff,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Aa&&(Aa&&s.type==="mousemove"?(cf=s.screenX-Aa.screenX,df=s.screenY-Aa.screenY):df=cf=0,Aa=s),cf)},movementY:function(s){return"movementY"in s?s.movementY:df}}),eg=gn(vc),yC=U({},vc,{dataTransfer:0}),vC=gn(yC),bC=U({},Pa,{relatedTarget:0}),uf=gn(bC),wC=U({},fo,{animationName:0,elapsedTime:0,pseudoElement:0}),jC=gn(wC),NC=U({},fo,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),SC=gn(NC),CC=U({},fo,{data:0}),tg=gn(CC),_C={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},EC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RC(s){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(s):(s=EC[s])?!!o[s]:!1}function ff(){return RC}
vendor: 18,422 bytes, lines 37-38
37var TC=U({},Pa,{key:function(s){if(s.key){var o=_C[s.key]||s.key;if(o!=="Unidentified")return o}return s.type==="keypress"?(s=gc(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?kC[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ff,charCode:function(s){return s.type==="keypress"?gc(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?gc(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),PC=gn(TC),AC=U({},vc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ng=gn(AC),OC=U({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ff}),IC=gn(OC),MC=U({},fo,{propertyName:0,elapsedTime:0,pseudoElement:0}),DC=gn(MC),LC=U({},vc,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),FC=gn(LC),BC=[9,13,27,32],hf=u&&"CompositionEvent"in window,Oa=null;u&&"documentMode"in document&&(Oa=document.documentMode);var zC=u&&"TextEvent"in window&&!Oa,rg=u&&(!hf||Oa&&8<Oa&&11>=Oa),sg=" ",ig=!1;function og(s,o){switch(s){case"keyup":return BC.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ag(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ho=!1;function $C(s,o){switch(s){case"compositionend":return ag(o);case"keypress":return o.which!==32?null:(ig=!0,sg);case"textInput":return s=o.data,s===sg&&ig?null:s;default:return null}}function UC(s,o){if(ho)return s==="compositionend"||!hf&&og(s,o)?(s=Jx(),xc=af=ls=null,ho=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return rg&&o.locale!=="ko"?null:o.data;default:return null}}var WC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lg(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o==="input"?!!WC[s.type]:o==="textarea"}function cg(s,o,c,f){Rx(f),o=Sc(o,"onChange"),0<o.length&&(c=new lf("onChange","change",null,c,f),s.push({event:c,listeners:o}))}var Ia=null,Ma=null;function HC(s){kg(s,0)}function bc(s){var o=yo(s);if(Ae(o))return s}function VC(s,o){if(s==="change")return o}var dg=!1;if(u){var pf;if(u){var mf="oninput"in document;if(!mf){var ug=document.createElement("div");ug.setAttribute("oninput","return;"),mf=typeof ug.oninput=="function"}pf=mf}else pf=!1;dg=pf&&(!document.documentMode||9<document.documentMode)}function fg(){Ia&&(Ia.detachEvent("onpropertychange",hg),Ma=Ia=null)}function hg(s){if(s.propertyName==="value"&&bc(Ma)){var o=[];cg(o,Ma,s,Ku(s)),Ox(HC,o)}}function qC(s,o,c){s==="focusin"?(fg(),Ia=o,Ma=c,Ia.attachEvent("onpropertychange",hg)):s==="focusout"&&fg()}function KC(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return bc(Ma)}function GC(s,o){if(s==="click")return bc(o)}function YC(s,o){if(s==="input"||s==="change")return bc(o)}function QC(s,o){return s===o&&(s!==0||1/s===1/o)||s!==s&&o!==o}var Wn=typeof Object.is=="function"?Object.is:QC;function Da(s,o){if(Wn(s,o))return!0;if(typeof s!="object"||s===null||typeof o!="object"||o===null)return!1;var c=Object.keys(s),f=Object.keys(o);if(c.length!==f.length)return!1;for(f=0;f<c.length;f++){var x=c[f];if(!h.call(o,x)||!Wn(s[x],o[x]))return!1}return!0}function pg(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function mg(s,o){var c=pg(s);s=0;for(var f;c;){if(c.nodeType===3){if(f=s+c.textContent.length,s<=o&&f>=o)return{node:c,offset:o-s};s=f}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=pg(c)}}function xg(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?xg(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function gg(){for(var s=window,o=Ze();o instanceof s.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)s=o.contentWindow;else break;o=Ze(s.document)}return o}function xf(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}function XC(s){var o=gg(),c=s.focusedElem,f=s.selectionRange;if(o!==c&&c&&c.ownerDocument&&xg(c.ownerDocument.documentElement,c)){if(f!==null&&xf(c)){if(o=f.start,s=f.end,s===void 0&&(s=o),"selectionStart"in c)c.selectionStart=o,c.selectionEnd=Math.min(s,c.value.length);else if(s=(o=c.ownerDocument||document)&&o.defaultView||window,s.getSelection){s=s.getSelection();var x=c.textContent.length,v=Math.min(f.start,x);f=f.end===void 0?v:Math.min(f.end,x),!s.extend&&v>f&&(x=f,f=v,v=x),x=mg(c,v);var _=mg(c,f);x&&_&&(s.rangeCount!==1||s.anchorNode!==x.node||s.anchorOffset!==x.offset||s.focusNode!==_.node||s.focusOffset!==_.offset)&&(o=o.createRange(),o.setStart(x.node,x.offset),s.removeAllRanges(),v>f?(s.addRange(o),s.extend(_.node,_.offset)):(o.setEnd(_.node,_.offset),s.addRange(o)))}}for(o=[],s=c;s=s.parentNode;)s.nodeType===1&&o.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<o.length;c++)s=o[c],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var JC=u&&"documentMode"in document&&11>=document.documentMode,po=null,gf=null,La=null,yf=!1;function yg(s,o,c){var f=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;yf||po==null||po!==Ze(f)||(f=po,"selectionStart"in f&&xf(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),La&&Da(La,f)||(La=f,f=Sc(gf,"onSelect"),0<f.length&&(o=new lf("onSelect","select",null,o,c),s.push({event:o,listeners:f}),o.target=po)))}function wc(s,o){var c={};return c[s.toLowerCase()]=o.toLowerCase(),c["Webkit"+s]="webkit"+o,c["Moz"+s]="moz"+o,c}var mo={animationend:wc("Animation","AnimationEnd"),animationiteration:wc("Animation","AnimationIteration"),animationstart:wc("Animation","AnimationStart"),transitionend:wc("Transition","TransitionEnd")},vf={},vg={};u&&(vg=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);function jc(s){if(vf[s])return vf[s];if(!mo[s])return s;var o=mo[s],c;for(c in o)if(o.hasOwnProperty(c)&&c in vg)return vf[s]=o[c];return s}var bg=jc("animationend"),wg=jc("animationiteration"),jg=jc("animationstart"),Ng=jc("transitionend"),Sg=new Map,Cg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function cs(s,o){Sg.set(s,o),l(o,[s])}for(var bf=0;bf<Cg.length;bf++){var wf=Cg[bf],ZC=wf.toLowerCase(),e_=wf[0].toUpperCase()+wf.slice(1);cs(ZC,"on"+e_)}cs(bg,"onAnimationEnd"),cs(wg,"onAnimationIteration"),cs(jg,"onAnimationStart"),cs("dblclick","onDoubleClick"),cs("focusin","onFocus"),cs("focusout","onBlur"),cs(Ng,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),t_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fa));function _g(s,o,c){var f=s.type||"unknown-event";s.currentTarget=c,ZS(f,o,void 0,s),s.currentTarget=null}function kg(s,o){o=(o&4)!==0;for(var c=0;c<s.length;c++){var f=s[c],x=f.event;f=f.listeners;e:{var v=void 0;if(o)for(var _=f.length-1;0<=_;_--){var P=f[_],I=P.instance,Y=P.currentTarget;if(P=P.listener,I!==v&&x.isPropagationStopped())break e;_g(x,P,Y),v=I}else for(_=0;_<f.length;_++){if(P=f[_],I=P.instance,Y=P.currentTarget,P=P.listener,I!==v&&x.isPropagationStopped())break e;_g(x,P,Y),v=I}}}if(oc)throw s=Xu,oc=!1,Xu=null,s}function ht(s,o){var c=o[Rf];c===void 0&&(c=o[Rf]=new Set);var f=s+"__bubble";c.has(f)||(Eg(o,s,2,!1),c.add(f))}function jf(s,o,c){var f=0;o&&(f|=4),Eg(c,s,f,o)}var Nc="_reactListening"+Math.random().toString(36).slice(2);function Ba(s){if(!s[Nc]){s[Nc]=!0,i.forEach(function(c){c!=="selectionchange"&&(t_.has(c)||jf(c,!1,s),jf(c,!0,s))});var o=s.nodeType===9?s:s.ownerDocument;o===null||o[Nc]||(o[Nc]=!0,jf("selectionchange",!1,o))}}function Eg(s,o,c,f){switch(Xx(o)){case 1:var x=mC;break;case 4:x=xC;break;default:x=sf}c=x.bind(null,o,c,s),x=void 0,!Qu||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(x=!0),f?x!==void 0?s.addEventListener(o,c,{capture:!0,passive:x}):s.addEventListener(o,c,!0):x!==void 0?s.addEventListener(o,c,{passive:x}):s.addEventListener(o,c,!1)}function Nf(s,o,c,f,x){var v=f;if((o&1)===0&&(o&2)===0&&f!==null)e:for(;;){if(f===null)return;var _=f.tag;if(_===3||_===4){var P=f.stateNode.containerInfo;if(P===x||P.nodeType===8&&P.parentNode===x)break;if(_===4)for(_=f.return;_!==null;){var I=_.tag;if((I===3||I===4)&&(I=_.stateNode.containerInfo,I===x||I.nodeType===8&&I.parentNode===x))return;_=_.return}for(;P!==null;){if(_=di(P),_===null)return;if(I=_.tag,I===5||I===6){f=v=_;continue e}P=P.parentNode}}f=f.return}Ox(function(){var Y=v,ce=Ku(c),fe=[];e:{var ae=Sg.get(s);if(ae!==void 0){var ye=lf,Ce=s;switch(s){case"keypress":if(gc(c)===0)break e;case"keydown":case"keyup":ye=PC;break;case"focusin":Ce="focus",ye=uf;break;case"focusout":Ce="blur",ye=uf;break;case"beforeblur":case"afterblur":ye=uf;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ye=eg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=vC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=IC;break;case bg:case wg:case jg:ye=jC;break;case Ng:ye=DC;break;case"scroll":ye=gC;break;case"wheel":ye=FC;break;case"copy":case"cut":case"paste":ye=SC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=ng}var Te=(o&4)!==0,Ct=!Te&&s==="scroll",H=Te?ae!==null?ae+"Capture":null:ae;Te=[];for(var F=Y,K;F!==null;){K=F;var he=K.stateNode;if(K.tag===5&&he!==null&&(K=he,H!==null&&(he=wa(F,H),he!=null&&Te.push(za(F,he,K)))),Ct)break;F=F.return}0<Te.length&&(ae=new ye(ae,Ce,null,c,ce),fe.push({event:ae,listeners:Te}))}}if((o&7)===0){e:{if(ae=s==="mouseover"||s==="pointerover",ye=s==="mouseout"||s==="pointerout",ae&&c!==qu&&(Ce=c.relatedTarget||c.fromElement)&&(di(Ce)||Ce[Pr]))break e;if((ye||ae)&&(ae=ce.window===ce?ce:(ae=ce.ownerDocument)?ae.defaultView||ae.parentWindow:window,ye?(Ce=c.relatedTarget||c.toElement,ye=Y,Ce=Ce?di(Ce):null,Ce!==null&&(Ct=ci(Ce),Ce!==Ct||Ce.tag!==5&&Ce.tag!==6)&&(Ce=null)):(ye=null,Ce=Y),ye!==Ce)){if(Te=eg,he="onMouseLeave",H="onMouseEnter",F="mouse",(s==="pointerout"||s==="pointerover")&&(Te=ng,he="onPointerLeave",H="onPointerEnter",F="pointer"),Ct=ye==null?ae:yo(ye),K=Ce==null?ae:yo(Ce),ae=new Te(he,F+"leave",ye,c,ce),ae.target=Ct,ae.relatedTarget=K,he=null,di(ce)===Y&&(Te=new Te(H,F+"enter",Ce,c,ce),Te.target=K,Te.relatedTarget=Ct,he=Te),Ct=he,ye&&Ce)t:{for(Te=ye,H=Ce,F=0,K=Te;K;K=xo(K))F++;for(K=0,he=H;he;he=xo(he))K++;for(;0<F-K;)Te=xo(Te),F--;for(;0<K-F;)H=xo(H),K--;for(;F--;){if(Te===H||H!==null&&Te===H.alternate)break t;Te=xo(Te),H=xo(H)}Te=null}else Te=null;ye!==null&&Rg(fe,ae,ye,Te,!1),Ce!==null&&Ct!==null&&Rg(fe,Ct,Ce,Te,!0)}}e:{if(ae=Y?yo(Y):window,ye=ae.nodeName&&ae.nodeName.toLowerCase(),ye==="select"||ye==="input"&&ae.type==="file")var Oe=VC;else if(lg(ae))if(dg)Oe=YC;else{Oe=KC;var Me=qC}else(ye=ae.nodeName)&&ye.toLowerCase()==="input"&&(ae.type==="checkbox"||ae.type==="radio")&&(Oe=GC);if(Oe&&(Oe=Oe(s,Y))){cg(fe,Oe,c,ce);break e}Me&&Me(s,ae,Y),s==="focusout"&&(Me=ae._wrapperState)&&Me.controlled&&ae.type==="number"&&lt(ae,"number",ae.value)}switch(Me=Y?yo(Y):window,s){case"focusin":(lg(Me)||Me.contentEditable==="true")&&(po=Me,gf=Y,La=null);break;case"focusout":La=gf=po=null;break;case"mousedown":yf=!0;break;case"contextmenu":case"mouseup":case"dragend":yf=!1,yg(fe,c,ce);break;case"selectionchange":if(JC)break;case"keydown":case"keyup":yg(fe,c,ce)}var De;if(hf)e:{switch(s){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else ho?og(s,c)&&(Be="onCompositionEnd"):s==="keydown"&&c.keyCode===229&&(Be="onCompositionStart");Be&&(rg&&c.locale!=="ko"&&(ho||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&ho&&(De=Jx()):(ls=ce,af="value"in ls?ls.value:ls.textContent,ho=!0)),Me=Sc(Y,Be),0<Me.length&&(Be=new tg(Be,s,null,c,ce),fe.push({event:Be,listeners:Me}),De?Be.data=De:(De=ag(c),De!==null&&(Be.data=De)))),(De=zC?$C(s,c):UC(s,c))&&(Y=Sc(Y,"onBeforeInput"),0<Y.length&&(ce=new tg("onBeforeInput","beforeinput",null,c,ce),fe.push({event:ce,listeners:Y}),ce.data=De))}kg(fe,o)})}function za(s,o,c){return{instance:s,listener:o,currentTarget:c}}function Sc(s,o){for(var c=o+"Capture",f=[];s!==null;){var x=s,v=x.stateNode;x.tag===5&&v!==null&&(x=v,v=wa(s,c),v!=null&&f.unshift(za(s,v,x)),v=wa(s,o),v!=null&&f.push(za(s,v,x))),s=s.return}return f}function xo(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Rg(s,o,c,f,x){for(var v=o._reactName,_=[];c!==null&&c!==f;){var P=c,I=P.alternate,Y=P.stateNode;if(I!==null&&I===f)break;P.tag===5&&Y!==null&&(P=Y,x?(I=wa(c,v),I!=null&&_.unshift(za(c,I,P))):x||(I=wa(c,v),I!=null&&_.push(za(c,I,P)))),c=c.return}_.length!==0&&s.push({event:o,listeners:_})}var n_=/\r\n?/g,r_=/\u0000|\uFFFD/g;function Tg(s){return(typeof s=="string"?s:""+s).replace(n_,`
38`).replace(r_,"")}function Cc(s,o,c){if(o=Tg(o),Tg(s)!==o&&c)throw Error(r(425))}function _c(){}var Sf=null,Cf=null;function _f(s,o){return s==="textarea"||s==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var kf=typeof setTimeout=="function"?setTimeout:void 0,s_=typeof clearTimeout=="function"?clearTimeout:void 0,Pg=typeof Promise=="function"?Promise:void 0,i_=typeof queueMicrotask=="function"?queueMicrotask:typeof Pg<"u"?function(s){return Pg.resolve(null).then(s).catch(o_)}:kf;function o_(s){setTimeout(function(){throw s})}function Ef(s,o){var c=o,f=0;do{var x=c.nextSibling;if(s.removeChild(c),x&&x.nodeType===8)if(c=x.data,c==="/$"){if(f===0){s.removeChild(x),Ta(o);return}f--}else c!=="$"&&c!=="$?"&&c!=="$!"||f++;c=x}while(c);Ta(o)}function ds(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return s}function Ag(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var c=s.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return s;o--}else c==="/$"&&o++}s=s.previousSibling}return null}var go=Math.random().toString(36).slice(2),fr="__reactFiber$"+go,$a="__reactProps$"+go,Pr="__reactContainer$"+go,Rf="__reactEvents$"+go,a_="__reactListeners$"+go,l_="__reactHandles$"+go;function di(s){var o=s[fr];if(o)return o;for(var c=s.parentNode;c;){if(o=c[Pr]||c[fr]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(s=Ag(s);s!==null;){if(c=s[fr])return c;s=Ag(s)}return o}s=c,c=s.parentNode}return null}function Ua(s){return s=s[fr]||s[Pr],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function yo(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(r(33))}function kc(s){return s[$a]||null}var Tf=[],vo=-1;function us(s){return{current:s}}function pt(s){0>vo||(s.current=Tf[vo],Tf[vo]=null,vo--)}function ut(s,o){vo++,Tf[vo]=s.current,s.current=o}var fs={},Kt=us(fs),an=us(!1),ui=fs;function bo(s,o){var c=s.type.contextTypes;if(!c)return fs;var f=s.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===o)return f.__reactInternalMemoizedMaskedChildContext;var x={},v;for(v in c)x[v]=o[v];return f&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=o,s.__reactInternalMemoizedMaskedChildContext=x),x}function ln(s){return s=s.childContextTypes,s!=null}function Ec(){pt(an),pt(Kt)}function Og(s,o,c){if(Kt.current!==fs)throw Error(r(168));ut(Kt,o),ut(an,c)}function Ig(s,o,c){var f=s.stateNode;if(o=o.childContextTypes,typeof f.getChildContext!="function")return c;f=f.getChildContext();for(var x in f)if(!(x in o))throw Error(r(108,T(s)||"Unknown",x));return U({},c,f)}function Rc(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||fs,ui=Kt.current,ut(Kt,s),ut(an,an.
vendor: 6,199 bytes, line 38
38current),!0}function Mg(s,o,c){var f=s.stateNode;if(!f)throw Error(r(169));c?(s=Ig(s,o,ui),f.__reactInternalMemoizedMergedChildContext=s,pt(an),pt(Kt),ut(Kt,s)):pt(an),ut(an,c)}var Ar=null,Tc=!1,Pf=!1;function Dg(s){Ar===null?Ar=[s]:Ar.push(s)}function c_(s){Tc=!0,Dg(s)}function hs(){if(!Pf&&Ar!==null){Pf=!0;var s=0,o=it;try{var c=Ar;for(it=1;s<c.length;s++){var f=c[s];do f=f(!0);while(f!==null)}Ar=null,Tc=!1}catch(x){throw Ar!==null&&(Ar=Ar.slice(s+1)),Fx(Ju,hs),x}finally{it=o,Pf=!1}}return null}var wo=[],jo=0,Pc=null,Ac=0,En=[],Rn=0,fi=null,Or=1,Ir="";function hi(s,o){wo[jo++]=Ac,wo[jo++]=Pc,Pc=s,Ac=o}function Lg(s,o,c){En[Rn++]=Or,En[Rn++]=Ir,En[Rn++]=fi,fi=s;var f=Or;s=Ir;var x=32-Un(f)-1;f&=~(1<<x),c+=1;var v=32-Un(o)+x;if(30<v){var _=x-x%5;v=(f&(1<<_)-1).toString(32),f>>=_,x-=_,Or=1<<32-Un(o)+x|c<<x|f,Ir=v+s}else Or=1<<v|c<<x|f,Ir=s}function Af(s){s.return!==null&&(hi(s,1),Lg(s,1,0))}function Of(s){for(;s===Pc;)Pc=wo[--jo],wo[jo]=null,Ac=wo[--jo],wo[jo]=null;for(;s===fi;)fi=En[--Rn],En[Rn]=null,Ir=En[--Rn],En[Rn]=null,Or=En[--Rn],En[Rn]=null}var yn=null,vn=null,xt=!1,Hn=null;function Fg(s,o){var c=On(5,null,null,0);c.elementType="DELETED",c.stateNode=o,c.return=s,o=s.deletions,o===null?(s.deletions=[c],s.flags|=16):o.push(c)}function Bg(s,o){switch(s.tag){case 5:var c=s.type;return o=o.nodeType!==1||c.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(s.stateNode=o,yn=s,vn=ds(o.firstChild),!0):!1;case 6:return o=s.pendingProps===""||o.nodeType!==3?null:o,o!==null?(s.stateNode=o,yn=s,vn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(c=fi!==null?{id:Or,overflow:Ir}:null,s.memoizedState={dehydrated:o,treeContext:c,retryLane:1073741824},c=On(18,null,null,0),c.stateNode=o,c.return=s,s.child=c,yn=s,vn=null,!0):!1;default:return!1}}function If(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Mf(s){if(xt){var o=vn;if(o){var c=o;if(!Bg(s,o)){if(If(s))throw Error(r(418));o=ds(c.nextSibling);var f=yn;o&&Bg(s,o)?Fg(f,c):(s.flags=s.flags&-4097|2,xt=!1,yn=s)}}else{if(If(s))throw Error(r(418));s.flags=s.flags&-4097|2,xt=!1,yn=s}}}function zg(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;yn=s}function Oc(s){if(s!==yn)return!1;if(!xt)return zg(s),xt=!0,!1;var o;if((o=s.tag!==3)&&!(o=s.tag!==5)&&(o=s.type,o=o!=="head"&&o!=="body"&&!_f(s.type,s.memoizedProps)),o&&(o=vn)){if(If(s))throw $g(),Error(r(418));for(;o;)Fg(s,o),o=ds(o.nextSibling)}if(zg(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,o=0;s;){if(s.nodeType===8){var c=s.data;if(c==="/$"){if(o===0){vn=ds(s.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++}s=s.nextSibling}vn=null}}else vn=yn?ds(s.stateNode.nextSibling):null;return!0}function $g(){for(var s=vn;s;)s=ds(s.nextSibling)}function No(){vn=yn=null,xt=!1}function Df(s){Hn===null?Hn=[s]:Hn.push(s)}var d_=R.ReactCurrentBatchConfig;function Wa(s,o,c){if(s=c.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(r(309));var f=c.stateNode}if(!f)throw Error(r(147,s));var x=f,v=""+s;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===v?o.ref:(o=function(_){var P=x.refs;_===null?delete P[v]:P[v]=_},o._stringRef=v,o)}if(typeof s!="string")throw Error(r(284));if(!c._owner)throw Error(r(290,s))}return s}function Ic(s,o){throw s=Object.prototype.toString.call(o),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s))}function Ug(s){var o=s._init;return o(s._payload)}function Wg(s){function o(H,F){if(s){var K=H.deletions;K===null?(H.deletions=[F],H.flags|=16):K.push(F)}}function c(H,F){if(!s)return null;for(;F!==null;)o(H,F),F=F.sibling;return null}function f(H,F){for(H=new Map;F!==null;)F.key!==null?H.set(F.key,F):H.set(F.index,F),F=F.sibling;return H}function x(H,F){return H=ws(H,F),H.index=0,H.sibling=null,H}function v(H,F,K){return H.index=K,s?(K=H.alternate,K!==null?(K=K.index,K<F?(H.flags|=2,F):K):(H.flags|=2,F)):(H.flags|=1048576,F)}function _(H){return s&&H.alternate===null&&(H.flags|=2),H}function P(H,F,K,he){return F===null||F.tag!==6?(F=kh(K,H.mode,he),F.return=H,F):(F=x(F,K),F.return=H,F)}function I(H,F,K,he){var Oe=K.type;return Oe===V?ce(H,F,K.props.children,he,K.key):F!==null&&(F.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===te&&Ug(Oe)===F.type)?(he=x(F,K.props),he.ref=Wa(H,F,K),he.return=H,he):(he=sd(K.type,K.key,K.props,null,H.mode,he),he.ref=Wa(H,F,K),he.return=H,he)}function Y(H,F,K,he){return F===null||F.tag!==4||F.stateNode.containerInfo!==K.containerInfo||F.stateNode.implementation!==K.implementation?(F=Eh(K,H.mode,he),F.return=H,F):(F=x(F,K.children||[]),F.return=H,F)}function ce(H,F,K,he,Oe){return F===null||F.tag!==7?(F=wi(K,H.mode,he,Oe),F.return=H,F):(F=x(F,K),F.return=H,F)}function fe(H,F,K){if(typeof F=="string"&&F!==""||typeof F=="number")return F=kh(""+F,H.mode,K),F.return=H,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case O:return K=sd(F.type,F.key,F.props,null,H.mode,K),K.ref=Wa(H,null,F),K.return=H,K;case $:return F=Eh(F,H.mode,K),F.return=H,F;case te:var he=F._init;return fe(H,he(F._payload),K)}if(dr(F)||q(F))return F=wi(F,H.mode,K,null),F.return=H,F;Ic(H,F)}return null}function ae(H,F,K,he){var Oe=F!==null?F.key:null;if(typeof K=="string"&&K!==""||typeof K=="number")return Oe!==null?null:P(H,F,""+K,he);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case O:return K.key===Oe?I(H,F,K,he):null;case $:return K.key===Oe?Y(H,F,K,he):null;case te:return Oe=K._init,ae(H,F,Oe(K._payload),he)}if(dr(K)||q(K))return Oe!==null?null:ce(H,F,K,he,null);Ic(H,K)}return null}function ye(H,F,K,he,Oe){if(typeof he=="string"&&he!==""||typeof he=="number")return H=H.get(K)||null,P(F,H,""+he,Oe);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case O:return H=H.get(he.key===null?K:he.key)||null,I(F,H,he,Oe);case $:return H=H.get(he.key===null?K:he.key)||null,Y(F,H,he,Oe);case te:var Me=he._init;return ye(H,F,K,Me(he._payload),Oe)}if(dr(he)||q(he))return H=H.get(K)||null,ce(F,H,he,Oe,null);Ic(F,he)}return null}function Ce(H,F,K,he){for(var Oe=null,Me=null,De=F,Be=F=0,Lt=null;De!==null&&Be<K.length;Be++){De.index>
vendor: 11,012 bytes, line 38
38Be?(Lt=De,De=null):Lt=De.sibling;var rt=ae(H,De,K[Be],he);if(rt===null){De===null&&(De=Lt);break}s&&De&&rt.alternate===null&&o(H,De),F=v(rt,F,Be),Me===null?Oe=rt:Me.sibling=rt,Me=rt,De=Lt}if(Be===K.length)return c(H,De),xt&&hi(H,Be),Oe;if(De===null){for(;Be<K.length;Be++)De=fe(H,K[Be],he),De!==null&&(F=v(De,F,Be),Me===null?Oe=De:Me.sibling=De,Me=De);return xt&&hi(H,Be),Oe}for(De=f(H,De);Be<K.length;Be++)Lt=ye(De,H,Be,K[Be],he),Lt!==null&&(s&&Lt.alternate!==null&&De.delete(Lt.key===null?Be:Lt.key),F=v(Lt,F,Be),Me===null?Oe=Lt:Me.sibling=Lt,Me=Lt);return s&&De.forEach(function(js){return o(H,js)}),xt&&hi(H,Be),Oe}function Te(H,F,K,he){var Oe=q(K);if(typeof Oe!="function")throw Error(r(150));if(K=Oe.call(K),K==null)throw Error(r(151));for(var Me=Oe=null,De=F,Be=F=0,Lt=null,rt=K.next();De!==null&&!rt.done;Be++,rt=K.next()){De.index>Be?(Lt=De,De=null):Lt=De.sibling;var js=ae(H,De,rt.value,he);if(js===null){De===null&&(De=Lt);break}s&&De&&js.alternate===null&&o(H,De),F=v(js,F,Be),Me===null?Oe=js:Me.sibling=js,Me=js,De=Lt}if(rt.done)return c(H,De),xt&&hi(H,Be),Oe;if(De===null){for(;!rt.done;Be++,rt=K.next())rt=fe(H,rt.value,he),rt!==null&&(F=v(rt,F,Be),Me===null?Oe=rt:Me.sibling=rt,Me=rt);return xt&&hi(H,Be),Oe}for(De=f(H,De);!rt.done;Be++,rt=K.next())rt=ye(De,H,Be,rt.value,he),rt!==null&&(s&&rt.alternate!==null&&De.delete(rt.key===null?Be:rt.key),F=v(rt,F,Be),Me===null?Oe=rt:Me.sibling=rt,Me=rt);return s&&De.forEach(function(W_){return o(H,W_)}),xt&&hi(H,Be),Oe}function Ct(H,F,K,he){if(typeof K=="object"&&K!==null&&K.type===V&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case O:e:{for(var Oe=K.key,Me=F;Me!==null;){if(Me.key===Oe){if(Oe=K.type,Oe===V){if(Me.tag===7){c(H,Me.sibling),F=x(Me,K.props.children),F.return=H,H=F;break e}}else if(Me.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===te&&Ug(Oe)===Me.type){c(H,Me.sibling),F=x(Me,K.props),F.ref=Wa(H,Me,K),F.return=H,H=F;break e}c(H,Me);break}else o(H,Me);Me=Me.sibling}K.type===V?(F=wi(K.props.children,H.mode,he,K.key),F.return=H,H=F):(he=sd(K.type,K.key,K.props,null,H.mode,he),he.ref=Wa(H,F,K),he.return=H,H=he)}return _(H);case $:e:{for(Me=K.key;F!==null;){if(F.key===Me)if(F.tag===4&&F.stateNode.containerInfo===K.containerInfo&&F.stateNode.implementation===K.implementation){c(H,F.sibling),F=x(F,K.children||[]),F.return=H,H=F;break e}else{c(H,F);break}else o(H,F);F=F.sibling}F=Eh(K,H.mode,he),F.return=H,H=F}return _(H);case te:return Me=K._init,Ct(H,F,Me(K._payload),he)}if(dr(K))return Ce(H,F,K,he);if(q(K))return Te(H,F,K,he);Ic(H,K)}return typeof K=="string"&&K!==""||typeof K=="number"?(K=""+K,F!==null&&F.tag===6?(c(H,F.sibling),F=x(F,K),F.return=H,H=F):(c(H,F),F=kh(K,H.mode,he),F.return=H,H=F),_(H)):c(H,F)}return Ct}var So=Wg(!0),Hg=Wg(!1),Mc=us(null),Dc=null,Co=null,Lf=null;function Ff(){Lf=Co=Dc=null}function Bf(s){var o=Mc.current;pt(Mc),s._currentValue=o}function zf(s,o,c){for(;s!==null;){var f=s.alternate;if((s.childLanes&o)!==o?(s.childLanes|=o,f!==null&&(f.childLanes|=o)):f!==null&&(f.childLanes&o)!==o&&(f.childLanes|=o),s===c)break;s=s.return}}function _o(s,o){Dc=s,Lf=Co=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&o)!==0&&(cn=!0),s.firstContext=null)}function Tn(s){var o=s._currentValue;if(Lf!==s)if(s={context:s,memoizedValue:o,next:null},Co===null){if(Dc===null)throw Error(r(308));Co=s,Dc.dependencies={lanes:0,firstContext:s}}else Co=Co.next=s;return o}var pi=null;function $f(s){pi===null?pi=[s]:pi.push(s)}function Vg(s,o,c,f){var x=o.interleaved;return x===null?(c.next=c,$f(o)):(c.next=x.next,x.next=c),o.interleaved=c,Mr(s,f)}function Mr(s,o){s.lanes|=o;var c=s.alternate;for(c!==null&&(c.lanes|=o),c=s,s=s.return;s!==null;)s.childLanes|=o,c=s.alternate,c!==null&&(c.childLanes|=o),c=s,s=s.return;return c.tag===3?c.stateNode:null}var ps=!1;function Uf(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qg(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Dr(s,o){return{eventTime:s,lane:o,tag:0,payload:null,callback:null,next:null}}function ms(s,o,c){var f=s.updateQueue;if(f===null)return null;if(f=f.shared,(et&2)!==0){var x=f.pending;return x===null?o.next=o:(o.next=x.next,x.next=o),f.pending=o,Mr(s,c)}return x=f.interleaved,x===null?(o.next=o,$f(f)):(o.next=x.next,x.next=o),f.interleaved=o,Mr(s,c)}function Lc(s,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194240)!==0)){var f=o.lanes;f&=s.pendingLanes,c|=f,o.lanes=c,tf(s,c)}}function Kg(s,o){var c=s.updateQueue,f=s.alternate;if(f!==null&&(f=f.updateQueue,c===f)){var x=null,v=null;if(c=c.firstBaseUpdate,c!==null){do{var _={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};v===null?x=v=_:v=v.next=_,c=c.next}while(c!==null);v===null?x=v=o:v=v.next=o}else x=v=o;c={baseState:f.baseState,firstBaseUpdate:x,lastBaseUpdate:v,shared:f.shared,effects:f.effects},s.updateQueue=c;return}s=c.lastBaseUpdate,s===null?c.firstBaseUpdate=o:s.next=o,c.lastBaseUpdate=o}function Fc(s,o,c,f){var x=s.updateQueue;ps=!1;var v=x.firstBaseUpdate,_=x.lastBaseUpdate,P=x.shared.pending;if(P!==null){x.shared.pending=null;var I=P,Y=I.next;I.next=null,_===null?v=Y:_.next=Y,_=I;var ce=s.alternate;ce!==null&&(ce=ce.updateQueue,P=ce.lastBaseUpdate,P!==_&&(P===null?ce.firstBaseUpdate=Y:P.next=Y,ce.lastBaseUpdate=I))}if(v!==null){var fe=x.baseState;_=0,ce=Y=I=null,P=v;do{var ae=P.lane,ye=P.eventTime;if((f&ae)===ae){ce!==null&&(ce=ce.next={eventTime:ye,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var Ce=s,Te=P;switch(ae=o,ye=c,Te.tag){case 1:if(Ce=Te.payload,typeof Ce=="function"){fe=Ce.call(ye,fe,ae);break e}fe=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Te.payload,ae=typeof Ce=="function"?Ce.call(ye,fe,ae):Ce,ae==null)break e;fe=U({},fe,ae);break e;case 2:ps=!0}}P.callback!==null&&P.lane!==0&&(s.flags|=64,ae=x.effects,ae===null?x.effects=[P]:ae.push(P))}else ye={eventTime:ye,lane:ae,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ce===null?(Y=ce=ye,I=fe):ce=ce.next=ye,_|=ae;if(P=P.next,P===null){if(P=x.shared.pending,P===null)break;ae=P,P=ae.next,ae.next=null,x.lastBaseUpdate=ae,x.shared.pending=null}}while(!0);if(ce===null&&(I=fe),x.baseState=I,x.firstBaseUpdate=Y,x.lastBaseUpdate=ce,o=x.shared.interleaved,o!==null){x=o;do _|=x.lane,x=x.next;while(x!==o)}else v===null&&(x.shared.lanes=0);gi|=_,s.lanes=_,s.memoizedState=fe}}function Gg(s,o,c){if(s=o.effects,o.effects=null,s!==null)for(o=0;o<s.length;o++){var f=s[o],x=f.callback;if(x!==null){if(f.callback=null,f=c,typeof x!="function")throw Error(r(191,x));x.call(f)}}}var Ha={},hr=us(Ha),Va=us(Ha),qa=us(Ha);function mi(s){if(s===Ha)throw Error(r(174));return s}function Wf(s,o){switch(ut(qa,o),ut(Va,s),ut(hr,Ha),s=o.nodeType,s){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:va(null,"");break;default:s=s===8?o.parentNode:o,o=s.namespaceURI||null,s=s.tagName,o=va(o,s)}pt(hr),ut(hr,o)}function ko(){pt(hr),pt(Va),pt(qa)}function Yg(s){mi(qa.current);var o=mi(hr.current),c=va(o,s.type);o!==c&&(ut(Va,s),ut(hr,c))}function Hf(s){Va.current===s&&(pt(hr),pt(Va))}var yt=us(0);function Bc(s){for(var o=s;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Vf=[];function qf(){for(var s=0;s<Vf.length;s++)Vf[s]._workInProgressVersionPrimary=null;Vf.length=0}var zc=R.ReactCurrentDispatcher,Kf=R.ReactCurrentBatchConfig,xi=0,vt=null,Tt=null,Mt=null,$c=!1,Ka=!1,Ga=0,u_=0;function Gt(){throw Error(r(321))}function Gf(s,o){if(o===null)return!1;for(var c=0;c<o.length&&c<s.length;c++)if(!Wn(s[c],o[c]))return!1;return!0}function Yf(s,o,c,f,x,v){if(xi=v,vt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,zc.current=s===null||s.memoizedState===null?m_:x_,s=c(f,x),Ka){v=0;do{if(Ka=!1,Ga=0,25<=v)throw Error(r(301));v+=1,Mt=Tt=null,o.updateQueue=null,zc.current=g_,s=c(f,x)}while(Ka)}if(zc.current=Hc,o=Tt!==null&&Tt.next!==null,xi=0,Mt=Tt=vt=null,$c=!1,o)throw Error(r(300));return s}function Qf(){var s=Ga!==0;return Ga=0,s}function pr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?vt.memoizedState=Mt=s:Mt=Mt.next=s,Mt}function Pn(){if(Tt===null){var s=vt.alternate;s=s!==null?s.memoizedState:null}else s=Tt.next;var o=Mt===null?vt.memoizedState:Mt.next;if(o!==null)Mt=o,Tt=s;else{if(s===null)throw Error(r(310));Tt=s,s={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},Mt===null?vt.memoizedState=Mt=s:Mt=Mt.next=s}return Mt}function Ya(s,o){return typeof o=="function"?o(s):o}function Xf(s){var o=Pn(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=s;var f=Tt,x=f.baseQueue,v=c.pending;if(v!==null){if(x!==null){var _=x.next;x.next=v.next,v.next=_}f.baseQueue=x=v,c.pending=null}if(x!==null){v=x.next,f=f.baseState;var P=_=null,I=null,Y=v;do{var ce=Y.lane;if((xi&ce)===ce)I!==null&&(I=I.next={lane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),f=Y.hasEagerState?Y.eagerState:s(f,Y.action);else{var fe={lane:ce,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null};I===null?(P=I=fe,_=f):I=I.next=fe,vt.lanes|=ce,gi|=ce}Y=Y.next}while(Y!==null&&Y!==v);I===null?_=f:I.next=P,Wn(f,o.memoizedState)||(cn=!0),o.memoizedState=f,o.baseState=_,o.baseQueue=I,c.lastRenderedState=f}if(s=c.interleaved,s!==null){x=s;do v=x.lane,vt.lanes|=v,gi|=v,x=x.next;while(x!==s)}else x===null&&(c.lanes=0);return[o.memoizedState,c.dispatch]}function Jf(s){var o=Pn(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=s;var f=c.dispatch,x=c.pending,v=o.memoizedState;if(x!==null){c.pending=null;var _=x=x.next;do v=s(v,_.action),_=_.next;while(_!==x);Wn(v,o.memoizedState)||(cn=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),c.lastRenderedState=v}return[v,f]}function Qg(){}function Xg(s,o){var c=vt,f=Pn(),x=o(),v=!Wn(f.memoizedState,x);if(v&&(f.memoizedState=x,cn=!0),f=f.queue,Zf(ey.bind(null,c,f,s),[s]),f.getSnapshot!==o||v||Mt!==null&&Mt.memoizedState.tag&1){if(c.flags|=2048,Qa(9,Zg.bind(null,c,f,x,o),void 0,null),Dt===null)throw Error(r(349));(xi&30)!==0||Jg(c,o,x)}return x}function Jg(s,o,c){s.flags|=16384,s={getSnapshot:o,value:c},o=vt.updateQueue,o===null?(o={lastEffect:null,stores:null},vt.updateQueue=o,o.stores=[s]):(c=o.stores,c===null?o.stores=[s]:c.push(s))}function Zg(s,o,c,f){o.value=c,o.getSnapshot=f,ty(o)&&ny(s)}function ey(s,o,c){return c(function(){ty(o)&&ny(s)})}
vendor: 1,761 bytes, line 38
38function ty(s){var o=s.getSnapshot;s=s.value;try{var c=o();return!Wn(s,c)}catch{return!0}}function ny(s){var o=Mr(s,1);o!==null&&Gn(o,s,1,-1)}function ry(s){var o=pr();return typeof s=="function"&&(s=s()),o.memoizedState=o.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:s},o.queue=s,s=s.dispatch=p_.bind(null,vt,s),[o.memoizedState,s]}function Qa(s,o,c,f){return s={tag:s,create:o,destroy:c,deps:f,next:null},o=vt.updateQueue,o===null?(o={lastEffect:null,stores:null},vt.updateQueue=o,o.lastEffect=s.next=s):(c=o.lastEffect,c===null?o.lastEffect=s.next=s:(f=c.next,c.next=s,s.next=f,o.lastEffect=s)),s}function sy(){return Pn().memoizedState}function Uc(s,o,c,f){var x=pr();vt.flags|=s,x.memoizedState=Qa(1|o,c,void 0,f===void 0?null:f)}function Wc(s,o,c,f){var x=Pn();f=f===void 0?null:f;var v=void 0;if(Tt!==null){var _=Tt.memoizedState;if(v=_.destroy,f!==null&&Gf(f,_.deps)){x.memoizedState=Qa(o,c,v,f);return}}vt.flags|=s,x.memoizedState=Qa(1|o,c,v,f)}function iy(s,o){return Uc(8390656,8,s,o)}function Zf(s,o){return Wc(2048,8,s,o)}function oy(s,o){return Wc(4,2,s,o)}function ay(s,o){return Wc(4,4,s,o)}function ly(s,o){if(typeof o=="function")return s=s(),o(s),function(){o(null)};if(o!=null)return s=s(),o.current=s,function(){o.current=null}}function cy(s,o,c){return c=c!=null?c.concat([s]):null,Wc(4,4,ly.bind(null,o,s),c)}function eh(){}function dy(s,o){var c=Pn();o=o===void 0?null:o;var f=c.memoizedState;return f!==null&&o!==null&&Gf(o,f[1])?f[0]:(c.memoizedState=[s,o],s)}function uy(s,o){var c=Pn();o=o===void 0?null:o;var f=c.memoizedState;return f!==null&&o!==null&&Gf(o,f[1])?f[0]:(s=s(),c.memoizedState=[s,o],s)}function fy(s,o,c){return(xi&21)===0?(s.baseState&&(s.baseState=!1,
vendor: 4,253 bytes, line 38
38cn=!0),s.memoizedState=c):(Wn(c,o)||(c=Ux(),vt.lanes|=c,gi|=c,s.baseState=!0),o)}function f_(s,o){var c=it;it=c!==0&&4>c?c:4,s(!0);var f=Kf.transition;Kf.transition={};try{s(!1),o()}finally{it=c,Kf.transition=f}}function hy(){return Pn().memoizedState}function h_(s,o,c){var f=vs(s);if(c={lane:f,action:c,hasEagerState:!1,eagerState:null,next:null},py(s))my(o,c);else if(c=Vg(s,o,c,f),c!==null){var x=nn();Gn(c,s,f,x),xy(c,o,f)}}function p_(s,o,c){var f=vs(s),x={lane:f,action:c,hasEagerState:!1,eagerState:null,next:null};if(py(s))my(o,x);else{var v=s.alternate;if(s.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var _=o.lastRenderedState,P=v(_,c);if(x.hasEagerState=!0,x.eagerState=P,Wn(P,_)){var I=o.interleaved;I===null?(x.next=x,$f(o)):(x.next=I.next,I.next=x),o.interleaved=x;return}}catch{}finally{}c=Vg(s,o,x,f),c!==null&&(x=nn(),Gn(c,s,f,x),xy(c,o,f))}}function py(s){var o=s.alternate;return s===vt||o!==null&&o===vt}function my(s,o){Ka=$c=!0;var c=s.pending;c===null?o.next=o:(o.next=c.next,c.next=o),s.pending=o}function xy(s,o,c){if((c&4194240)!==0){var f=o.lanes;f&=s.pendingLanes,c|=f,o.lanes=c,tf(s,c)}}var Hc={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},m_={readContext:Tn,useCallback:function(s,o){return pr().memoizedState=[s,o===void 0?null:o],s},useContext:Tn,useEffect:iy,useImperativeHandle:function(s,o,c){return c=c!=null?c.concat([s]):null,Uc(4194308,4,ly.bind(null,o,s),c)},useLayoutEffect:function(s,o){return Uc(4194308,4,s,o)},useInsertionEffect:function(s,o){return Uc(4,2,s,o)},useMemo:function(s,o){var c=pr();return o=o===void 0?null:o,s=s(),c.memoizedState=[s,o],s},useReducer:function(s,o,c){var f=pr();return o=c!==void 0?c(o):o,f.memoizedState=f.baseState=o,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:o},f.queue=s,s=s.dispatch=h_.bind(null,vt,s),[f.memoizedState,s]},useRef:function(s){var o=pr();return s={current:s},o.memoizedState=s},useState:ry,useDebugValue:eh,useDeferredValue:function(s){return pr().memoizedState=s},useTransition:function(){var s=ry(!1),o=s[0];return s=f_.bind(null,s[1]),pr().memoizedState=s,[o,s]},useMutableSource:function(){},useSyncExternalStore:function(s,o,c){var f=vt,x=pr();if(xt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),Dt===null)throw Error(r(349));(xi&30)!==0||Jg(f,o,c)}x.memoizedState=c;var v={value:c,getSnapshot:o};return x.queue=v,iy(ey.bind(null,f,v,s),[s]),f.flags|=2048,Qa(9,Zg.bind(null,f,v,c,o),void 0,null),c},useId:function(){var s=pr(),o=Dt.identifierPrefix;if(xt){var c=Ir,f=Or;c=(f&~(1<<32-Un(f)-1)).toString(32)+c,o=":"+o+"R"+c,c=Ga++,0<c&&(o+="H"+c.toString(32)),o+=":"}else c=u_++,o=":"+o+"r"+c.toString(32)+":";return s.memoizedState=o},unstable_isNewReconciler:!1},x_={readContext:Tn,useCallback:dy,useContext:Tn,useEffect:Zf,useImperativeHandle:cy,useInsertionEffect:oy,useLayoutEffect:ay,useMemo:uy,useReducer:Xf,useRef:sy,useState:function(){return Xf(Ya)},useDebugValue:eh,useDeferredValue:function(s){var o=Pn();return fy(o,Tt.memoizedState,s)},useTransition:function(){var s=Xf(Ya)[0],o=Pn().memoizedState;return[s,o]},useMutableSource:Qg,useSyncExternalStore:Xg,useId:hy,unstable_isNewReconciler:!1},g_={readContext:Tn,useCallback:dy,useContext:Tn,useEffect:Zf,useImperativeHandle:cy,useInsertionEffect:oy,useLayoutEffect:ay,useMemo:uy,useReducer:Jf,useRef:sy,useState:function(){return Jf(Ya)},useDebugValue:eh,useDeferredValue:function(s){var o=Pn();return Tt===null?o.memoizedState=s:fy(o,Tt.memoizedState,s)},useTransition:function(){var s=Jf(Ya)[0],o=Pn().memoizedState;return[s,o]},useMutableSource:Qg,useSyncExternalStore:Xg,useId:hy,unstable_isNewReconciler:!1};function Vn(s,o){if(s&&s.defaultProps){o=U({},o),s=s.defaultProps;for(var c in s)o[c]===void 0&&(o[c]=s[c]);return o}return o}function th(s,o,c,f){o=s.memoizedState,c=c(f,o),c=c==null?o:U({},o,c),s.memoizedState=c,s.lanes===0&&(s.updateQueue.baseState=c)}var Vc={isMounted:function(s){return(s=s._reactInternals)?ci(s)===s:!1}
vendor: 5,346 bytes, lines 38-40
38,enqueueSetState:function(s,o,c){s=s._reactInternals;var f=nn(),x=vs(s),v=Dr(f,x);v.payload=o,c!=null&&(v.callback=c),o=ms(s,v,x),o!==null&&(Gn(o,s,x,f),Lc(o,s,x))},enqueueReplaceState:function(s,o,c){s=s._reactInternals;var f=nn(),x=vs(s),v=Dr(f,x);v.tag=1,v.payload=o,c!=null&&(v.callback=c),o=ms(s,v,x),o!==null&&(Gn(o,s,x,f),Lc(o,s,x))},enqueueForceUpdate:function(s,o){s=s._reactInternals;var c=nn(),f=vs(s),x=Dr(c,f);x.tag=2,o!=null&&(x.callback=o),o=ms(s,x,f),o!==null&&(Gn(o,s,f,c),Lc(o,s,f))}};function gy(s,o,c,f,x,v,_){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(f,v,_):o.prototype&&o.prototype.isPureReactComponent?!Da(c,f)||!Da(x,v):!0}function yy(s,o,c){var f=!1,x=fs,v=o.contextType;return typeof v=="object"&&v!==null?v=Tn(v):(x=ln(o)?ui:Kt.current,f=o.contextTypes,v=(f=f!=null)?bo(s,x):fs),o=new o(c,v),s.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Vc,s.stateNode=o,o._reactInternals=s,f&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=x,s.__reactInternalMemoizedMaskedChildContext=v),o}function vy(s,o,c,f){s=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,f),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,f),o.state!==s&&Vc.enqueueReplaceState(o,o.state,null)}function nh(s,o,c,f){var x=s.stateNode;x.props=c,x.state=s.memoizedState,x.refs={},Uf(s);var v=o.contextType;typeof v=="object"&&v!==null?x.context=Tn(v):(v=ln(o)?ui:Kt.current,x.context=bo(s,v)),x.state=s.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(th(s,o,v,c),x.state=s.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(o=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),o!==x.state&&Vc.enqueueReplaceState(x,x.state,null),Fc(s,c,x,f),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308)}function Eo(s,o){try{var c="",f=o;do c+=me(f),f=f.return;while(f);var x=c}catch(v){x=`
39Error generating stack: `+v.message+`
40`+v.stack}return{value:s,source:o,stack:x,digest:null}}function rh(s,o,c){return{value:s,source:null,stack:c??null,digest:o??null}}function sh(s,o){try{console.error(o.value)}catch(c){setTimeout(function(){throw c})}}var y_=typeof WeakMap=="function"?WeakMap:Map;function by(s,o,c){c=Dr(-1,c),c.tag=3,c.payload={element:null};var f=o.value;return c.callback=function(){Jc||(Jc=!0,vh=f),sh(s,o)},c}function wy(s,o,c){c=Dr(-1,c),c.tag=3;var f=s.type.getDerivedStateFromError;if(typeof f=="function"){var x=o.value;c.payload=function(){return f(x)},c.callback=function(){sh(s,o)}}var v=s.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(c.callback=function(){sh(s,o),typeof f!="function"&&(gs===null?gs=new Set([this]):gs.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})}),c}function jy(s,o,c){var f=s.pingCache;if(f===null){f=s.pingCache=new y_;var x=new Set;f.set(o,x)}else x=f.get(o),x===void 0&&(x=new Set,f.set(o,x));x.has(c)||(x.add(c),s=A_.bind(null,s,o,c),o.then(s,s))}function Ny(s){do{var o;if((o=s.tag===13)&&(o=s.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return s;s=s.return}while(s!==null);return null}function Sy(s,o,c,f,x){return(s.mode&1)===0?(s===o?s.flags|=65536:(s.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(o=Dr(-1,1),o.tag=2,ms(c,o,1))),c.lanes|=1),s):(s.flags|=65536,s.lanes=x,s)}var v_=R.ReactCurrentOwner,cn=!1;function tn(s,o,c,f){o.child=s===null?Hg(o,null,c,f):So(o,s.child,c,f)}function Cy(s,o,c,f,x){c=c.render;var v=o.ref;return _o(o,x),f=Yf(s,o,c,f,v,x),c=Qf(),s!==null&&!cn?(o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~x,Lr(s,o,x)):(xt&&c&&Af(o),o.flags|=1,tn(s,o,f,x),o.child)}function _y(s,o,c,f,x){if(s===null){var v=c.type;return typeof v=="function"&&!_h(v)&&v.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(o.tag=15,o.type=v,ky(s,o,v,f,x)):(s=sd(c.type,null,f,o,o.mode,x),s.ref=o.ref,s.return=o,o.child=s)}if(v=s.child,(s.lanes&x)===0){var _=v.memoizedProps;if(c=c.compare,c=c!==null?c:Da,c(_,f)&&s.ref===o.ref)return Lr(s,o,x)}return o.flags|=1,s=ws(v,f),s.ref=o.ref,s.return=o,o.child=s}function ky(s,o,c,f,x){if(s!==null){var v=s.memoizedProps;if(Da(v,f)&&s.ref===o.ref)if(cn=!1,o.pendingProps=f=v,(s.lanes&x)!==0)(s.flags&131072)!==0&&(cn=!0);else return o.lanes=s.lanes,Lr(s,o,x)}return ih(s,o,c,f,x)}function Ey(s,o,c){var f=o.pendingProps,x=f.children,v=s!==null?s.memoizedState:null;if(f.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut(To,bn),bn|=c;else{if((c&1073741824)===0)return s=v!==null?v.baseLanes|c:c,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:s,cachePool:null,transitions:null},o.updateQueue=null,ut(To,bn),bn|=s,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=v!==null?v.baseLanes:c,ut(To,bn),bn|=f}else v!==null?(f=v.baseLanes|c,o.memoizedState=null):f=c,ut(To,bn),bn|=f;return tn(s,o,x,c),o.child}function Ry(s,o){var c=o.ref;(s===null&&c!==null||s!==null&&s.ref!==c)&&(o.flags|=512,o.flags|=2097152)}
vendor: 39,117 bytes, line 40
40function ih(s,o,c,f,x){var v=ln(c)?ui:Kt.current;return v=bo(o,v),_o(o,x),c=Yf(s,o,c,f,v,x),f=Qf(),s!==null&&!cn?(o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~x,Lr(s,o,x)):(xt&&f&&Af(o),o.flags|=1,tn(s,o,c,x),o.child)}function Ty(s,o,c,f,x){if(ln(c)){var v=!0;Rc(o)}else v=!1;if(_o(o,x),o.stateNode===null)Kc(s,o),yy(o,c,f),nh(o,c,f,x),f=!0;else if(s===null){var _=o.stateNode,P=o.memoizedProps;_.props=P;var I=_.context,Y=c.contextType;typeof Y=="object"&&Y!==null?Y=Tn(Y):(Y=ln(c)?ui:Kt.current,Y=bo(o,Y));var ce=c.getDerivedStateFromProps,fe=typeof ce=="function"||typeof _.getSnapshotBeforeUpdate=="function";fe||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(P!==f||I!==Y)&&vy(o,_,f,Y),ps=!1;var ae=o.memoizedState;_.state=ae,Fc(o,f,_,x),I=o.memoizedState,P!==f||ae!==I||an.current||ps?(typeof ce=="function"&&(th(o,c,ce,f),I=o.memoizedState),(P=ps||gy(o,c,P,f,ae,I,Y))?(fe||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=f,o.memoizedState=I),_.props=f,_.state=I,_.context=Y,f=P):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),f=!1)}else{_=o.stateNode,qg(s,o),P=o.memoizedProps,Y=o.type===o.elementType?P:Vn(o.type,P),_.props=Y,fe=o.pendingProps,ae=_.context,I=c.contextType,typeof I=="object"&&I!==null?I=Tn(I):(I=ln(c)?ui:Kt.current,I=bo(o,I));var ye=c.getDerivedStateFromProps;(ce=typeof ye=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(P!==fe||ae!==I)&&vy(o,_,f,I),ps=!1,ae=o.memoizedState,_.state=ae,Fc(o,f,_,x);var Ce=o.memoizedState;P!==fe||ae!==Ce||an.current||ps?(typeof ye=="function"&&(th(o,c,ye,f),Ce=o.memoizedState),(Y=ps||gy(o,c,Y,f,ae,Ce,I)||!1)?(ce||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(f,Ce,I),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(f,Ce,I)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||P===s.memoizedProps&&ae===s.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||P===s.memoizedProps&&ae===s.memoizedState||(o.flags|=1024),o.memoizedProps=f,o.memoizedState=Ce),_.props=f,_.state=Ce,_.context=I,f=Y):(typeof _.componentDidUpdate!="function"||P===s.memoizedProps&&ae===s.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||P===s.memoizedProps&&ae===s.memoizedState||(o.flags|=1024),f=!1)}return oh(s,o,c,f,v,x)}function oh(s,o,c,f,x,v){Ry(s,o);var _=(o.flags&128)!==0;if(!f&&!_)return x&&Mg(o,c,!1),Lr(s,o,v);f=o.stateNode,v_.current=o;var P=_&&typeof c.getDerivedStateFromError!="function"?null:f.render();return o.flags|=1,s!==null&&_?(o.child=So(o,s.child,null,v),o.child=So(o,null,P,v)):tn(s,o,P,v),o.memoizedState=f.state,x&&Mg(o,c,!0),o.child}function Py(s){var o=s.stateNode;o.pendingContext?Og(s,o.pendingContext,o.pendingContext!==o.context):o.context&&Og(s,o.context,!1),Wf(s,o.containerInfo)}function Ay(s,o,c,f,x){return No(),Df(x),o.flags|=256,tn(s,o,c,f),o.child}var ah={dehydrated:null,treeContext:null,retryLane:0};function lh(s){return{baseLanes:s,cachePool:null,transitions:null}}function Oy(s,o,c){var f=o.pendingProps,x=yt.current,v=!1,_=(o.flags&128)!==0,P;if((P=_)||(P=s!==null&&s.memoizedState===null?!1:(x&2)!==0),P?(v=!0,o.flags&=-129):(s===null||s.memoizedState!==null)&&(x|=1),ut(yt,x&1),s===null)return Mf(o),s=o.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((o.mode&1)===0?o.lanes=1:s.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(_=f.children,s=f.fallback,v?(f=o.mode,v=o.child,_={mode:"hidden",children:_},(f&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=_):v=id(_,f,0,null),s=wi(s,f,c,null),v.return=o,s.return=o,v.sibling=s,o.child=v,o.child.memoizedState=lh(c),o.memoizedState=ah,s):ch(o,_));if(x=s.memoizedState,x!==null&&(P=x.dehydrated,P!==null))return b_(s,o,_,f,P,x,c);if(v){v=f.fallback,_=o.mode,x=s.child,P=x.sibling;var I={mode:"hidden",children:f.children};return(_&1)===0&&o.child!==x?(f=o.child,f.childLanes=0,f.pendingProps=I,o.deletions=null):(f=ws(x,I),f.subtreeFlags=x.subtreeFlags&14680064),P!==null?v=ws(P,v):(v=wi(v,_,c,null),v.flags|=2),v.return=o,f.return=o,f.sibling=v,o.child=f,f=v,v=o.child,_=s.child.memoizedState,_=_===null?lh(c):{baseLanes:_.baseLanes|c,cachePool:null,transitions:_.transitions},v.memoizedState=_,v.childLanes=s.childLanes&~c,o.memoizedState=ah,f}return v=s.child,s=v.sibling,f=ws(v,{mode:"visible",children:f.children}),(o.mode&1)===0&&(f.lanes=c),f.return=o,f.sibling=null,s!==null&&(c=o.deletions,c===null?(o.deletions=[s],o.flags|=16):c.push(s)),o.child=f,o.memoizedState=null,f}function ch(s,o){return o=id({mode:"visible",children:o},s.mode,0,null),o.return=s,s.child=o}function qc(s,o,c,f){return f!==null&&Df(f),So(o,s.child,null,c),s=ch(o,o.pendingProps.children),s.flags|=2,o.memoizedState=null,s}function b_(s,o,c,f,x,v,_){if(c)return o.flags&256?(o.flags&=-257,f=rh(Error(r(422))),qc(s,o,_,f)):o.memoizedState!==null?(o.child=s.child,o.flags|=128,null):(v=f.fallback,x=o.mode,f=id({mode:"visible",children:f.children},x,0,null),v=wi(v,x,_,null),v.flags|=2,f.return=o,v.return=o,f.sibling=v,o.child=f,(o.mode&1)!==0&&So(o,s.child,null,_),o.child.memoizedState=lh(_),o.memoizedState=ah,v);if((o.mode&1)===0)return qc(s,o,_,null);if(x.data==="$!"){if(f=x.nextSibling&&x.nextSibling.dataset,f)var P=f.dgst;return f=P,v=Error(r(419)),f=rh(v,f,void 0),qc(s,o,_,f)}if(P=(_&s.childLanes)!==0,cn||P){if(f=Dt,f!==null){switch(_&-_){case 4:x=2;break;case 16:x=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:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(f.suspendedLanes|_))!==0?0:x,x!==0&&x!==v.retryLane&&(v.retryLane=x,Mr(s,x),Gn(f,s,x,-1))}return Ch(),f=rh(Error(r(421))),qc(s,o,_,f)}return x.data==="$?"?(o.flags|=128,o.child=s.child,o=O_.bind(null,s),x._reactRetry=o,null):(s=v.treeContext,vn=ds(x.nextSibling),yn=o,xt=!0,Hn=null,s!==null&&(En[Rn++]=Or,En[Rn++]=Ir,En[Rn++]=fi,Or=s.id,Ir=s.overflow,fi=o),o=ch(o,f.children),o.flags|=4096,o)}function Iy(s,o,c){s.lanes|=o;var f=s.alternate;f!==null&&(f.lanes|=o),zf(s.return,o,c)}function dh(s,o,c,f,x){var v=s.memoizedState;v===null?s.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:f,tail:c,tailMode:x}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=f,v.tail=c,v.tailMode=x)}function My(s,o,c){var f=o.pendingProps,x=f.revealOrder,v=f.tail;if(tn(s,o,f.children,c),f=yt.current,(f&2)!==0)f=f&1|2,o.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=o.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Iy(s,c,o);else if(s.tag===19)Iy(s,c,o);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}f&=1}if(ut(yt,f),(o.mode&1)===0)o.memoizedState=null;else switch(x){case"forwards":for(c=o.child,x=null;c!==null;)s=c.alternate,s!==null&&Bc(s)===null&&(x=c),c=c.sibling;c=x,c===null?(x=o.child,o.child=null):(x=c.sibling,c.sibling=null),dh(o,!1,x,c,v);break;case"backwards":for(c=null,x=o.child,o.child=null;x!==null;){if(s=x.alternate,s!==null&&Bc(s)===null){o.child=x;break}s=x.sibling,x.sibling=c,c=x,x=s}dh(o,!0,c,null,v);break;case"together":dh(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Kc(s,o){(o.mode&1)===0&&s!==null&&(s.alternate=null,o.alternate=null,o.flags|=2)}function Lr(s,o,c){if(s!==null&&(o.dependencies=s.dependencies),gi|=o.lanes,(c&o.childLanes)===0)return null;if(s!==null&&o.child!==s.child)throw Error(r(153));if(o.child!==null){for(s=o.child,c=ws(s,s.pendingProps),o.child=c,c.return=o;s.sibling!==null;)s=s.sibling,c=c.sibling=ws(s,s.pendingProps),c.return=o;c.sibling=null}return o.child}function w_(s,o,c){switch(o.tag){case 3:Py(o),No();break;case 5:Yg(o);break;case 1:ln(o.type)&&Rc(o);break;case 4:Wf(o,o.stateNode.containerInfo);break;case 10:var f=o.type._context,x=o.memoizedProps.value;ut(Mc,f._currentValue),f._currentValue=x;break;case 13:if(f=o.memoizedState,f!==null)return f.dehydrated!==null?(ut(yt,yt.current&1),o.flags|=128,null):(c&o.child.childLanes)!==0?Oy(s,o,c):(ut(yt,yt.current&1),s=Lr(s,o,c),s!==null?s.sibling:null);ut(yt,yt.current&1);break;case 19:if(f=(c&o.childLanes)!==0,(s.flags&128)!==0){if(f)return My(s,o,c);o.flags|=128}if(x=o.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),ut(yt,yt.current),f)break;return null;case 22:case 23:return o.lanes=0,Ey(s,o,c)}return Lr(s,o,c)}var Dy,uh,Ly,Fy;Dy=function(s,o){for(var c=o.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===o)break;for(;c.sibling===null;){if(c.return===null||c.return===o)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},uh=function(){},Ly=function(s,o,c,f){var x=s.memoizedProps;if(x!==f){s=o.stateNode,mi(hr.current);var v=null;switch(c){case"input":x=nt(s,x),f=nt(s,f),v=[];break;case"select":x=U({},x,{value:void 0}),f=U({},f,{value:void 0}),v=[];break;case"textarea":x=xn(s,x),f=xn(s,f),v=[];break;default:typeof x.onClick!="function"&&typeof f.onClick=="function"&&(s.onclick=_c)}ba(c,f);var _;c=null;for(Y in x)if(!f.hasOwnProperty(Y)&&x.hasOwnProperty(Y)&&x[Y]!=null)if(Y==="style"){var P=x[Y];for(_ in P)P.hasOwnProperty(_)&&(c||(c={}),c[_]="")}else Y!=="dangerouslySetInnerHTML"&&Y!=="children"&&Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&Y!=="autoFocus"&&(a.hasOwnProperty(Y)?v||(v=[]):(v=v||[]).push(Y,null));for(Y in f){var I=f[Y];if(P=x!=null?x[Y]:void 0,f.hasOwnProperty(Y)&&I!==P&&(I!=null||P!=null))if(Y==="style")if(P){for(_ in P)!P.hasOwnProperty(_)||I&&I.hasOwnProperty(_)||(c||(c={}),c[_]="");for(_ in I)I.hasOwnProperty(_)&&P[_]!==I[_]&&(c||(c={}),c[_]=I[_])}else c||(v||(v=[]),v.push(Y,c)),c=I;else Y==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,P=P?P.__html:void 0,I!=null&&P!==I&&(v=v||[]).push(Y,I)):Y==="children"?typeof I!="string"&&typeof I!="number"||(v=v||[]).push(Y,""+I):Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&(a.hasOwnProperty(Y)?(I!=null&&Y==="onScroll"&&ht("scroll",s),v||P===I||(v=[])):(v=v||[]).push(Y,I))}c&&(v=v||[]).push("style",c);var Y=v;(o.updateQueue=Y)&&(o.flags|=4)}},Fy=function(s,o,c,f){c!==f&&(o.flags|=4)};function Xa(s,o){if(!xt)switch(s.tailMode){case"hidden":o=s.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s.tail=null:c.sibling=null;break;case"collapsed":c=s.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?o||s.tail===null?s.tail=null:s.tail.sibling=null:f.sibling=null}}function Yt(s){var o=s.alternate!==null&&s.alternate.child===s.child,c=0,f=0;if(o)for(var x=s.child;x!==null;)c|=x.lanes|x.childLanes,f|=x.subtreeFlags&14680064,f|=x.flags&14680064,x.return=s,x=x.sibling;else for(x=s.child;x!==null;)c|=x.lanes|x.childLanes,f|=x.subtreeFlags,f|=x.flags,x.return=s,x=x.sibling;return s.subtreeFlags|=f,s.childLanes=c,o}function j_(s,o,c){var f=o.pendingProps;switch(Of(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(o),null;case 1:return ln(o.type)&&Ec(),Yt(o),null;case 3:return f=o.stateNode,ko(),pt(an),pt(Kt),qf(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(s===null||s.child===null)&&(Oc(o)?o.flags|=4:s===null||s.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Hn!==null&&(jh(Hn),Hn=null))),uh(s,o),Yt(o),null;case 5:Hf(o);var x=mi(qa.current);if(c=o.type,s!==null&&o.stateNode!=null)Ly(s,o,c,f,x),s.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!f){if(o.stateNode===null)throw Error(r(166));return Yt(o),null}if(s=mi(hr.current),Oc(o)){f=o.stateNode,c=o.type;var v=o.memoizedProps;switch(f[fr]=o,f[$a]=v,s=(o.mode&1)!==0,c){case"dialog":ht("cancel",f),ht("close",f);break;case"iframe":case"object":case"embed":ht("load",f);break;case"video":case"audio":for(x=0;x<Fa.length;x++)ht(Fa[x],f);break;case"source":ht("error",f);break;case"img":case"image":case"link":ht("error",f),ht("load",f);break;case"details":ht("toggle",f);break;case"input":J(f,v),ht("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!v.multiple},ht("invalid",f);break;case"textarea":io(f,v),ht("invalid",f)}ba(c,v),x=null;for(var _ in v)if(v.hasOwnProperty(_)){var P=v[_];_==="children"?typeof P=="string"?f.textContent!==P&&(v.suppressHydrationWarning!==!0&&Cc(f.textContent,P,s),x=["children",P]):typeof P=="number"&&f.textContent!==""+P&&(v.suppressHydrationWarning!==!0&&Cc(f.textContent,P,s),x=["children",""+P]):a.hasOwnProperty(_)&&P!=null&&_==="onScroll"&&ht("scroll",f)}switch(c){case"input":be(f),dt(f,v,!0);break;case"textarea":be(f),rc(f);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(f.onclick=_c)}f=x,o.updateQueue=f,f!==null&&(o.flags|=4)}else{_=x.nodeType===9?x:x.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=oo(c)),s==="http://www.w3.org/1999/xhtml"?c==="script"?(s=_.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof f.is=="string"?s=_.createElement(c,{is:f.is}):(s=_.createElement(c),c==="select"&&(_=s,f.multiple?_.multiple=!0:f.size&&(_.size=f.size))):s=_.createElementNS(s,c),s[fr]=o,s[$a]=f,Dy(s,o,!1,!1),o.stateNode=s;e:{switch(_=Vu(c,f),c){case"dialog":ht("cancel",s),ht("close",s),x=f;break;case"iframe":case"object":case"embed":ht("load",s),x=f;break;case"video":case"audio":for(x=0;x<Fa.length;x++)ht(Fa[x],s);x=f;break;case"source":ht("error",s),x=f;break;case"img":case"image":case"link":ht("error",s),ht("load",s),x=f;break;case"details":ht("toggle",s),x=f;break;case"input":J(s,f),x=nt(s,f),ht("invalid",s);break;case"option":x=f;break;case"select":s._wrapperState={wasMultiple:!!f.multiple},x=U({},f,{value:void 0}),ht("invalid",s);break;case"textarea":io(s,f),x=xn(s,f),ht("invalid",s);break;default:x=f}ba(c,x),P=x;for(v in P)if(P.hasOwnProperty(v)){var I=P[v];v==="style"?mt(s,I):v==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,I!=null&&sc(s,I)):v==="children"?typeof I=="string"?(c!=="textarea"||I!=="")&&ns(s,I):typeof I=="number"&&ns(s,""+I):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(a.hasOwnProperty(v)?I!=null&&v==="onScroll"&&ht("scroll",s):I!=null&&E(s,v,I,_))}switch(c){case"input":be(s),dt(s,f,!1);break;case"textarea":be(s),rc(s);break;case"option":f.value!=null&&s.setAttribute("value",""+re(f.value));break;case"select":s.multiple=!!f.multiple,v=f.value,v!=null?gt(s,!!f.multiple,v,!1):f.defaultValue!=null&&gt(s,!!f.multiple,f.defaultValue,!0);break;default:typeof x.onClick=="function"&&(s.onclick=_c)}switch(c){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Yt(o),null;case 6:if(s&&o.stateNode!=null)Fy(s,o,s.memoizedProps,f);else{if(typeof f!="string"&&o.stateNode===null)throw Error(r(166));if(c=mi(qa.current),mi(hr.current),Oc(o)){if(f=o.stateNode,c=o.memoizedProps,f[fr]=o,(v=f.nodeValue!==c)&&(s=yn,s!==null))switch(s.tag){case 3:Cc(f.nodeValue,c,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&Cc(f.nodeValue,c,(s.mode&1)!==0)}v&&(o.flags|=4)}else f=(c.nodeType===9?c:c.ownerDocument).createTextNode(f),f[fr]=o,o.stateNode=f}return Yt(o),null;case 13:if(pt(yt),f=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(xt&&vn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)$g(),No(),o.flags|=98560,v=!1;else if(v=Oc(o),f!==null&&f.dehydrated!==null){if(s===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[fr]=o}else No(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Yt(o),v=!1}else Hn!==null&&(jh(Hn),Hn=null),v=!0;if(!v)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=c,o):(f=f!==null,f!==(s!==null&&s.memoizedState!==null)&&f&&(o.child.flags|=8192,(o.mode&1)!==0&&(s===null||(yt.current&1)!==0?Pt===0&&(Pt=3):Ch())),o.updateQueue!==null&&(o.flags|=4),Yt(o),null);case 4:return ko(),uh(s,o),s===null&&Ba(o.stateNode.containerInfo),Yt(o),null;case 10:return Bf(o.type._context),Yt(o),null;case 17:return ln(o.type)&&Ec(),Yt(o),null;case 19:if(pt(yt),v=o.memoizedState,v===null)return Yt(o),null;if(f=(o.flags&128)!==0,_=v.rendering,_===null)if(f)Xa(v,!1);else{if(Pt!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(_=Bc(s),_!==null){for(o.flags|=128,Xa(v,!1),f=_.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),o.subtreeFlags=0,f=c,c=o.child;c!==null;)v=c,s=f,v.flags&=14680066,_=v.alternate,_===null?(v.childLanes=0,v.lanes=s,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=_.childLanes,v.lanes=_.lanes,v.child=_.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=_.memoizedProps,v.memoizedState=_.memoizedState,v.updateQueue=_.updateQueue,v.type=_.type,s=_.dependencies,v.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),c=c.sibling;return ut(yt,yt.current&1|2),o.child}s=s.sibling}v.tail!==null&&St()>Po&&(o.flags|=128,f=!0,Xa(v,!1),o.lanes=4194304)}else{if(!f)if(s=Bc(_),s!==null){if(o.flags|=128,f=!0,c=s.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),Xa(v,!0),v.tail===null&&v.tailMode==="hidden"&&!_.alternate&&!xt)return Yt(o),null}else 2*St()-v.renderingStartTime>Po&&c!==1073741824&&(o.flags|=128,f=!0,Xa(v,!1),o.lanes=4194304);v.isBackwards?(_.sibling=o.child,o.child=_):(c=v.last,c!==null?c.sibling=_:o.child=_,v.last=_)}return v.tail!==null?(o=v.tail,v.rendering=o,v.tail=o.sibling,v.renderingStartTime=St(),o.sibling=null,c=yt.current,ut(yt,f?c&1|2:c&1),o):(Yt(o),null);case 22:case 23:return Sh(),f=o.memoizedState!==null,s!==null&&s.memoizedState!==null!==f&&(o.flags|=8192),f&&(o.mode&1)!==0?(bn&1073741824)!==0&&(Yt(o),o.subtreeFlags&6&&(o.flags|=8192)):Yt(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function N_(s,o){switch(Of(o),o.tag){case 1:return ln(o.type)&&Ec(),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return ko(),pt(an),pt(Kt),qf(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 5:return Hf(o),null;case 13:if(pt(yt),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));No()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return pt(yt),null;case 4:return ko(),null;case 10:return Bf(o.type._context),null;case 22:case 23:return Sh(),null;case 24:return null;default:return null}}var Gc=!1,Qt=!1,S_=typeof WeakSet=="function"?WeakSet:Set,Se=null;function Ro(s,o){var c=s.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(f){jt(s,o,f)}else c.current=null}function fh(s,o,c){try{c()}catch(f){jt(s,o,f)}}var By=!1;function C_(s,o){if(Sf=pc,s=gg(),xf(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{c=(c=s.ownerDocument)&&c.defaultView||window;var f=c.getSelection&&c.getSelection();if(f&&f.rangeCount!==0){c=f.anchorNode;var x=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{c.nodeType,v.nodeType}catch{c=null;break e}var _=0,P=-1,I=-1,Y=0,ce=0,fe=s,ae=null;t:for(;;){for(var ye;fe!==c||x!==0&&fe.nodeType!==3||(P=_+x),fe!==v||f!==0&&fe.nodeType!==3||(I=_+f),fe.nodeType===3&&(_+=fe.nodeValue.length),(ye=fe.firstChild)!==null;)ae=fe,fe=ye;for(;;){if(fe===s)break t;if(ae===c&&++Y===x&&(P=_),ae===v&&++ce===f&&(I=_),(ye=fe.nextSibling)!==null)break;fe=ae,ae=fe.parentNode}fe=ye}c=P===-1||I===-1?null:{start:P,end:I}}else c=null}c=c||{start:0,end:0}}else c=null;for(Cf={focusedElem:s,selectionRange:c},pc=!1,Se=o;Se!==null;)if(o=Se,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,Se=s;else for(;Se!==null;){o=Se;try{var Ce=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(Ce!==null){var Te=Ce.memoizedProps,Ct=Ce.memoizedState,H=o.stateNode,F=H.getSnapshotBeforeUpdate(o.elementType===o.type?Te:Vn(o.type,Te),Ct);H.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var K=o.stateNode.containerInfo;K.nodeType===1?K.textContent="":K.nodeType===9&&K.documentElement&&K.removeChild(K.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(he){jt(o,o.return,he)}if(s=o.sibling,s!==null){s.return=o.return,Se=s;break}Se=o.return}return Ce=By,By=!1,Ce}function Ja(s,o,c){var f=o.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var x=f=f.next;do{if((x.tag&s)===s){var v=x.destroy;x.destroy=void 0,v!==void 0&&fh(o,c,v)}x=x.next}while(x!==f)}}function Yc(s,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var c=o=o.next;do{if((c.tag&s)===s){var f=c.create;c.destroy=f()}c=c.next}while(c!==o)}}function hh(s){var o=s.ref;if(o!==null){var c=s.stateNode;switch(s.tag){case 5:s=c;break;default:s=c}typeof o=="function"?o(s):o.current=s}}function zy(s){var o=s.alternate;o!==null&&(s.alternate=null,zy(o)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(o=s.stateNode,o!==null&&(delete o[fr],delete o[$a],delete o[Rf],delete o[a_],delete o[l_])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function $y(s){return s.tag===5||s.tag===3||s.tag===4}function Uy(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||$y(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function ph(s,o,c){var f=s.tag;if(f===5||f===6)s=s.stateNode,o?c.nodeType===8?c.parentNode.insertBefore(s,o):c.insertBefore(s,o):(c.nodeType===8?(o=c.parentNode,o.insertBefore(s,c)):(o=c,o.appendChild(s)),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=_c));else if(f!==4&&(s=s.child,s!==null))for(ph(s,o,c),s=s.sibling;s!==null;)ph(s,o,c),s=s.sibling}function mh(s,o,c){var f=s.tag;if(f===5||f===6)s=s.stateNode,o?c.insertBefore(s,o):c.appendChild(s);else if(f!==4&&(s=s.child,s!==null))for(mh(s,o,c),s=s.sibling;s!==null;)mh(s,o,c),s=s.sibling}var Bt=null,qn=!1;function xs(s,o,c){for(c=c.child;c!==null;)Wy(s,o,c),c=c.sibling}function Wy(s,o,c){if(ur&&typeof ur.onCommitFiberUnmount=="function")try{ur.onCommitFiberUnmount(lc,c)}catch{}switch(c.tag){case 5:Qt||Ro(c,o);case 6:var f=Bt,x=qn;Bt=null,xs(s,o,c),Bt=f,qn=x,Bt!==null&&(qn?(s=Bt,c=c.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):Bt.removeChild(c.stateNode));break;case 18:Bt!==null&&(qn?(s=Bt,c=c.stateNode,s.nodeType===8?Ef(s.parentNode,c):s.nodeType===1&&Ef(s,c),Ta(s)):Ef(Bt,c.stateNode));break;case 4:f=Bt,x=qn,Bt=c.stateNode.containerInfo,qn=!0,xs(s,o,c),Bt=f,qn=x;break;case 0:case 11:case 14:case 15:if(!Qt&&(f=c.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){x=f=f.next;do{var v=x,_=v.destroy;v=v.tag,_!==void 0&&((v&2)!==0||(v&4)!==0)&&fh(c,o,_),x=x.next}while(x!==f)}xs(s,o,c);break;case 1:if(!Qt&&(Ro(c,o),f=c.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=c.memoizedProps,f.state=c.memoizedState,f.componentWillUnmount()}catch(P){jt(c,o,P)}xs(s,o,c);break;case 21:xs(s,o,c);break;case 22:c.mode&1?(Qt=(f=Qt)||c.memoizedState!==null,xs(s,o,c),Qt=f):xs(s,o,c);break;default:xs(s,o,c)}}function Hy(s){var o=s.updateQueue;if(o!==null){s.updateQueue=null;var c=s.stateNode;c===null&&(c=s.stateNode=new S_),o.forEach(function(f){var x=I_.bind(null,s,f);c.has(f)||(c.add(f),f.then(x,x))})}}function Kn(s,o){var c=o.deletions;if(c!==null)for(var f=0;f<c.length;f++){var x=c[f];try{var v=s,_=o,P=_;e:for(;P!==null;){switch(P.tag){case 5:Bt=P.stateNode,qn=!1;break e;case 3:Bt=P.stateNode.containerInfo,qn=!0;break e;case 4:Bt=P.stateNode.containerInfo,qn=!0;break e}P=P.return}if(Bt===null)throw Error(r(160));Wy(v,_,x),Bt=null,qn=!1;var I=x.alternate;I!==null&&(I.return=null),x.return=null}catch(Y){jt(x,o,Y)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Vy(o,s),o=o.sibling}function Vy(s,o){var c=s.alternate,f=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Kn(o,s),mr(s),f&4){try{Ja(3,s,s.return),Yc(3,s)}catch(Te){jt(s,s.return,Te)}try{Ja(5,s,s.return)}catch(Te){jt(s,s.return,Te)}}break;case 1:Kn(o,s),mr(s),f&512&&c!==null&&Ro(c,c.return);break;case 5:if(Kn(o,s),mr(s),f&512&&c!==null&&Ro(c,c.return),s.flags&32){var x=s.stateNode;try{ns(x,"")}catch(Te){jt(s,s.return,Te)}}if(f&4&&(x=s.stateNode,x!=null)){var v=s.memoizedProps,_=c!==null?c.memoizedProps:v,P=s.type,I=s.updateQueue;if(s.updateQueue=null,I!==null)try{P==="input"&&v.type==="radio"&&v.name!=null&&ue(x,v),Vu(P,_);var Y=Vu(P,v);for(_=0;_<I.length;_+=2){var ce=I[_],fe=I[_+1];ce==="style"?mt(x,fe):ce==="dangerouslySetInnerHTML"?sc(x,fe):ce==="children"?ns(x,fe):E(x,ce,fe,Y)}switch(P){case"input":Je(x,v);break;case"textarea":nc(x,v);break;case"select":var ae=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!v.multiple;var ye=v.value;ye!=null?gt(x,!!v.multiple,ye,!1):ae!==!!v.multiple&&(v.defaultValue!=null?gt(x,!!v.multiple,v.defaultValue,!0):gt(x,!!v.multiple,v.multiple?[]:"",!1))}x[$a]=v}catch(Te){jt(s,s.return,Te)}}break;case 6:if(Kn(o,s),mr(s),f&4){if(s.stateNode===null)throw Error(r(162));x=s.stateNode,v=s.memoizedProps;try{x.nodeValue=v}catch(Te){jt(s,s.return,Te)}}break;case 3:if(Kn(o,s),mr(s),f&4&&c!==null&&c.memoizedState.isDehydrated)try{Ta(o.containerInfo)}catch(Te){jt(s,s.return,Te)}break;case 4:Kn(o,s),mr(s);break;case 13:Kn(o,s),mr(s),x=s.child,x.flags&8192&&(v=x.memoizedState!==null,x.stateNode.isHidden=v,!v||x.alternate!==null&&x.alternate.memoizedState!==null||(yh=St())),f&4&&Hy(s);break;case 22:if(ce=c!==null&&c.memoizedState!==null,s.mode&1?(Qt=(Y=Qt)||ce,Kn(o,s),Qt=Y):Kn(o,s),mr(s),f&8192){if(Y=s.memoizedState!==null,(s.stateNode.isHidden=Y)&&!ce&&(s.mode&1)!==0)for(Se=s,ce=s.child;ce!==null;){for(fe=Se=ce;Se!==null;){switch(ae=Se,ye=ae.child,ae.tag){case 0:case 11:case 14:case 15:Ja(4,ae,ae.return);break;case 1:Ro(ae,ae.return);var Ce=ae.stateNode;if(typeof Ce.componentWillUnmount=="function"){f=ae,c=ae.return;try{o=f,Ce.props=o.memoizedProps,Ce.state=o.memoizedState,Ce.componentWillUnmount()}catch(Te){jt(f,c,Te)}}break;case 5:Ro(ae,ae.return);break;case 22:if(ae.memoizedState!==null){Gy(fe);continue}}ye!==null?(ye.return=ae,Se=ye):Gy(fe)}ce=ce.sibling}e:for(ce=null,fe=s;;){if(fe.tag===5){if(ce===null){ce=fe;try{x=fe.stateNode,Y?(v=x.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(P=fe.stateNode,I=fe.memoizedProps.style,_=I!=null&&I.hasOwnProperty("display")?I.display:null,P.style.display=Ue("display",_))}catch(Te){jt(s,s.return,Te)}}}else if(fe.tag===6){if(ce===null)try{fe.stateNode.nodeValue=Y?"":fe.memoizedProps}catch(Te){jt(s,s.return,Te)}}else if((fe.tag!==22&&fe.tag!==23||fe.memoizedState===null||fe===s)&&fe.child!==null){fe.child.return=fe,fe=fe.child;continue}if(fe===s)break e;for(;fe.sibling===null;){if(fe.return===null||fe.return===s)break e;ce===fe&&(ce=null),fe=fe.return}ce===fe&&(ce=null),fe.sibling.return=fe.return,fe=fe.sibling}}break;case 19:Kn(o,s),mr(s),f&4&&Hy(s);break;case 21:break;default:Kn(o,s),mr(s)}}function mr(s){var o=s.flags;if(o&2){try{e:{for(var c=s.return;c!==null;){if($y(c)){var f=c;break e}c=c.return}throw Error(r(160))}switch(f.tag){case 5:var x=f.stateNode;f.flags&32&&(ns(x,""),f.flags&=-33);var v=Uy(s);mh(s,v,x);break;case 3:case 4:var _=f.stateNode.containerInfo,P=Uy(s);ph(s,P,_);break;default:throw Error(r(161))}}catch(I){jt(s,s.return,I)}s.flags&=-3}o&4096&&(s.flags&=-4097)}function __(s,o,c){Se=s,qy(s)}function qy(s,o,c){for(var f=(s.mode&1)!==0;Se!==null;){var x=Se,v=x.child;if(x.tag===22&&f){var _=x.memoizedState!==null||Gc;if(!_){var P=x.alternate,I=P!==null&&P.memoizedState!==null||Qt;P=Gc;var Y=Qt;if(Gc=_,(Qt=I)&&!Y)for(Se=x;Se!==null;)_=Se,I=_.child,_.tag===22&&_.memoizedState!==null?Yy(x):I!==null?(I.return=_,Se=I):Yy(x);for(;v!==null;)Se=v,qy(v),v=v.sibling;Se=x,Gc=P,Qt=Y}Ky(s)}else(x.subtreeFlags&8772)!==0&&v!==null?(v.return=x,Se=v):Ky(s)}}function Ky(s){for(;Se!==null;){var o=Se;if((o.flags&8772)!==0){var c=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:Qt||Yc(5,o);break;case 1:var f=o.stateNode;if(o.flags&4&&!Qt)if(c===null)f.componentDidMount();else{var x=o.elementType===o.type?c.memoizedProps:Vn(o.type,c.memoizedProps);f.componentDidUpdate(x,c.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var v=o.updateQueue;v!==null&&Gg(o,v,f);break;case 3:var _=o.updateQueue;if(_!==null){if(c=null,o.child!==null)switch(o.child.tag){case 5:c=o.child.stateNode;break;case 1:c=o.child.stateNode}Gg(o,_,c)}break;case 5:var P=o.stateNode;if(c===null&&o.flags&4){c=P;var I=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":I.autoFocus&&c.focus();break;case"img":I.src&&(c.src=I.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var Y=o.alternate;if(Y!==null){var ce=Y.memoizedState;if(ce!==null){var fe=ce.dehydrated;fe!==null&&Ta(fe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Qt||o.flags&512&&hh(o)}catch(ae){jt(o,o.return,ae)}}if(o===s){Se=null;break}if(c=o.sibling,c!==null){c.return=o.return,Se=c;break}Se=o.return}}function Gy(s){for(;Se!==null;){var o=Se;if(o===s){Se=null;break}var c=o.sibling;if(c!==null){c.return=o.return,Se=c;break}Se=o.return}}function Yy(s){for(;Se!==null;){var o=Se;try{switch(o.tag){case 0:case 11:case 15:var c=o.return;try{Yc(4,o)}catch(I){jt(o,c,I)}break;case 1:var f=o.stateNode;if(typeof f.componentDidMount=="function"){var x=o.return;try{f.componentDidMount()}catch(I){jt(o,x,I)}}var v=o.return;try{hh(o)}catch(I){jt(o,v,I)}break;case 5:var _=o.return;try{hh(o)}catch(I){jt(o,_,I)}}}catch(I){jt(o,o.return,I)}if(o===s){Se=null;break}var P=o.sibling;if(P!==null){P.return=o.return,Se=P;break}Se=o.return}}var k_=Math.ceil,Qc=R.ReactCurrentDispatcher,xh=R.ReactCurrentOwner,An=R.ReactCurrentBatchConfig,et=0,Dt=null,kt=null,zt=0,bn=0,To=us(0),Pt=0,Za=null,gi=0,Xc=0,gh=0,el=null,dn=null,yh=0,Po=1/0,Fr=null,Jc=!1,vh=null,gs=null,Zc=!1,ys=null,ed=0,tl=0,bh=null,td=-1,nd=0;function nn(){return(et&6)!==0?St():td!==-1?td:td=St()}function vs(s){return(s.mode&1)===0?1:(et&2)!==0&&zt!==0?zt&-zt:d_.transition!==null?(nd===0&&(nd=Ux()),nd):(s=it,s!==0||(s=window.event,s=s===void 0?16:Xx(s.type)),s)}function Gn(s,o,c,f){if(50<tl)throw tl=0,bh=null,Error(r(185));Ca(s,c,f),((et&2)===0||s!==Dt)&&(s===Dt&&((et&2)===0&&(Xc|=c),Pt===4&&bs(s,zt)),un(s,f),c===1&&et===0&&(o.mode&1)===0&&(Po=St()+500,Tc&&hs()))}function un(s,o){var c=s.callbackNode;dC(s,o);var f=uc(s,s===Dt?zt:0);if(f===0)c!==null&&Bx(c),s.callbackNode=null,s.callbackPriority=0;else if(o=f&-f,s.callbackPriority!==o){if(c!=null&&Bx(c),o===1)s.tag===0?c_(Xy.bind(null,s)):Dg(Xy.bind(null,s)),i_(function(){(et&6)===0&&hs()}),c=null;else{switch(Wx(f)){case 1:c=Ju;break;case 4:c=zx;break;case 16:c=ac;break;case 536870912:c=$x;break;default:c=ac}c=iv(c,Qy.bind(null,s))}s.callbackPriority=o,s.callbackNode=c}}function Qy(s,o){if(td=-1,nd=0,(et&6)!==0)throw Error(r(327));var c=s.callbackNode;if(Ao()&&s.callbackNode!==c)return null;var f=uc(s,s===Dt?zt:0);if(f===0)return null;if((f&30)!==0||(f&s.expiredLanes)!==0||o)o=rd(s,f);else{o=f;var x=et;et|=2;var v=Zy();(Dt!==s||zt!==o)&&(Fr=null,Po=St()+500,vi(s,o));do try{T_();break}catch(P){Jy(s,P)}while(!0);Ff(),Qc.current=v,et=x,kt!==null?o=0:(Dt=null,zt=0,o=Pt)}if(o!==0){if(o===2&&(x=Zu(s),x!==0&&(f=x,o=wh(s,x))),o===1)throw c=Za,vi(s,0),bs(s,f),un(s,St()),c;if(o===6)bs(s,f);else{if(x=s.current.alternate,(f&30)===0&&!E_(x)&&(o=rd(s,f),o===2&&(v=Zu(s),v!==0&&(f=v,o=wh(s,v))),o===1))throw c=Za,vi(s,0),bs(s,f),un(s,St()),c;switch(s.finishedWork=x,s.finishedLanes=f,o){case 0:case 1:throw Error(r(345));case 2:bi(s,dn,Fr);break;case 3:if(bs(s,f),(f&130023424)===f&&(o=yh+500-St(),10<o)){if(uc(s,0)!==0)break;if(x=s.suspendedLanes,(x&f)!==f){nn(),s.pingedLanes|=s.suspendedLanes&x;break}s.timeoutHandle=kf(bi.bind(null,s,dn,Fr),o);break}bi(s,dn,Fr);break;case 4:if(bs(s,f),(f&4194240)===f)break;for(o=s.eventTimes,x=-1;0<f;){var _=31-Un(f);v=1<<_,_=o[_],_>x&&(x=_),f&=~v}if(f=x,f=St()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*k_(f/1960))-f,10<f){s.timeoutHandle=kf(bi.bind(null,s,dn,Fr),f);break}bi(s,dn,Fr);break;case 5:bi(s,dn,Fr);break;default:throw Error(r(329))}}}return un(s,St()),s.callbackNode===c?Qy.bind(null,s):null}function wh(s,o){var c=el;return s.current.memoizedState.isDehydrated&&(vi(s,o).flags|=256),s=rd(s,o),s!==2&&(o=dn,dn=c,o!==null&&jh(o)),s}function jh(s){dn===null?dn=s:dn.push.apply(dn,s)}function E_(s){for(var o=s;;){if(o.flags&16384){var c=o.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var f=0;f<c.length;f++){var x=c[f],v=x.getSnapshot;x=x.value;try{if(!Wn(v(),x))return!1}catch{return!1}}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function bs(s,o){for(o&=~gh,o&=~Xc,s.suspendedLanes|=o,s.pingedLanes&=~o,s=s.expirationTimes;0<o;){var c=31-Un(o),f=1<<c;s[c]=-1,o&=~f}}function Xy(s){if((et&6)!==0)throw Error(r(327));Ao();var o=uc(s,0);if((o&1)===0)return un(s,St()),null;var c=rd(s,o);if(s.tag!==0&&c===2){var f=Zu(s);f!==0&&(o=f,c=wh(s,f))}if(c===1)throw c=Za,vi(s,0),bs(s,o),un(s,St()),c;if(c===6)throw Error(r(345));return s.finishedWork=s.current.alternate,s.finishedLanes=o,bi(s,dn,Fr),un(s,St()),null}function Nh(s,o){var c=et;et|=1;try{return s(o)}finally{et=c,et===0&&(Po=St()+500,Tc&&hs())}}function yi(s){ys!==null&&ys.tag===0&&(et&6)===0&&Ao();var o=et;et|=1;var c=An.transition,f=it;try{if(An.transition=null,it=1,s)return s()}finally{it=f,An.transition=c,et=o,(et&6)===0&&hs()}}function Sh(){bn=To.current,pt(To)}function vi(s,o){s.finishedWork=null,s.finishedLanes=0;var c=s.timeoutHandle;if(c!==-1&&(s.timeoutHandle=-1,s_(c)),kt!==null)for(c=kt.return;c!==null;){var f=c;switch(Of(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&Ec();break;case 3:ko(),pt(an),pt(Kt),qf();break;case 5:Hf(f);break;case 4:ko();break;case 13:pt(yt);break;case 19:pt(yt);break;case 10:Bf(f.type._context);break;case 22:case 23:Sh()}c=c.return}if(Dt=s,kt=s=ws(s.current,null),zt=bn=o,Pt=0,Za=null,gh=Xc=gi=0,dn=el=null,pi!==null){for(o=0;o<pi.length;o++)if(c=pi[o],f=c.interleaved,f!==null){c.interleaved=null;var x=f.next,v=c.pending;if(v!==null){var _=v.next;v.next=x,f.next=_}c.pending=f}pi=null}return s}function Jy(s,o){do{var c=kt;try{if(Ff(),zc.current=Hc,$c){for(var f=vt.memoizedState;f!==null;){var x=f.queue;x!==null&&(x.pending=null),f=f.next}$c=!1}if(xi=0,Mt=Tt=vt=null,Ka=!1,Ga=0,xh.current=null,c===null||c.return===null){Pt=1,Za=o,kt=null;break}e:{var v=s,_=c.return,P=c,I=o;if(o=zt,P.flags|=32768,I!==null&&typeof I=="object"&&typeof I.then=="function"){var Y=I,ce=P,fe=ce.tag;if((ce.mode&1)===0&&(fe===0||fe===11||fe===15)){var ae=ce.alternate;ae?(ce.updateQueue=ae.updateQueue,ce.memoizedState=ae.memoizedState,ce.lanes=ae.lanes):(ce.updateQueue=null,ce.memoizedState=null)}var ye=Ny(_);if(ye!==null){ye.flags&=-257,Sy(ye,_,P,v,o),ye.mode&1&&jy(v,Y,o),o=ye,I=Y;var Ce=o.updateQueue;if(Ce===null){var Te=new Set;Te.add(I),o.updateQueue=Te}else Ce.add(I);break e}else{if((o&1)===0){jy(v,Y,o),Ch();break e}I=Error(r(426))}}else if(xt&&P.mode&1){var Ct=Ny(_);if(Ct!==null){(Ct.flags&65536)===0&&(Ct.flags|=256),Sy(Ct,_,P,v,o),Df(Eo(I,P));break e}}v=I=Eo(I,P),Pt!==4&&(Pt=2),el===null?el=[v]:el.push(v),v=_;do{switch(v.tag){case 3:v.flags|=65536,o&=-o,v.lanes|=o;var H=by(v,I,o);Kg(v,H);break e;case 1:P=I;var F=v.type,K=v.stateNode;if((v.flags&128)===0&&(typeof F.getDerivedStateFromError=="function"||K!==null&&typeof K.componentDidCatch=="function"&&(gs===null||!gs.has(K)))){v.flags|=65536,o&=-o,v.lanes|=o;var he=wy(v,P,o);Kg(v,he);break e}}v=v.return}while(v!==null)}tv(c)}catch(Oe){o=Oe,kt===c&&c!==null&&(kt=c=c.return);continue}break}while(!0)}function Zy(){var s=Qc.current;return Qc.current=Hc,s===null?Hc:s}function Ch(){(Pt===0||Pt===3||Pt===2)&&(Pt=4),Dt===null||(gi&268435455)===0&&(Xc&268435455)===0||bs(Dt,zt)}function rd(s,o){var c=et;et|=2;var f=Zy();(Dt!==s||zt!==o)&&(Fr=null,vi(s,o));do try{R_();break}catch(x){Jy(s,x)}while(!0);if(Ff(),et=c,Qc.current=f,kt!==null)throw Error(r(261));return Dt=null,zt=0,Pt}function R_(){for(;kt!==null;)ev(kt)}function T_(){for(;kt!==null&&!tC();)ev(kt)}function ev(s){var o=sv(s.alternate,s,bn);s.memoizedProps=s.pendingProps,o===null?tv(s):kt=o,xh.current=null}function tv(s){var o=s;do{var c=o.alternate;if(s=o.return,(o.flags&32768)===0){if(c=j_(c,o,bn),c!==null){kt=c;return}}else{if(c=N_(c,o),c!==null){c.flags&=32767,kt=c;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Pt=6,kt=null;return}}if(o=o.sibling,o!==null){kt=o;return}kt=o=s}while(o!==null);Pt===0&&(Pt=5)}function bi(s,o,c){var f=it,x=An.transition;try{An.transition=null,it=1,P_(s,o,c,f)}finally{An.transition=x,it=f}return null}function P_(s,o,c,f){do Ao();while(ys!==null);if((et&6)!==0)throw Error(r(327));c=s.finishedWork;var x=s.finishedLanes;if(c===null)return null;if(s.finishedWork=null,s.finishedLanes=0,c===s.current)throw Error(r(177));s.callbackNode=null,s.callbackPriority=0;var v=c.lanes|c.childLanes;if(uC(s,v),s===Dt&&(kt=Dt=null,zt=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||Zc||(Zc=!0,iv(ac,function(){return Ao(),null})),v=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||v){v=An.transition,An.transition=null;var _=it;it=1;var P=et;et|=4,xh.current=null,C_(s,c),Vy(c,s),XC(Cf),pc=!!Sf,Cf=Sf=null,s.current=c,__(c),nC(),et=P,it=_,An.transition=v}else s.current=c;if(Zc&&(Zc=!1,ys=s,ed=x),v=s.pendingLanes,v===0&&(gs=null),iC(c.stateNode),un(s,St()),o!==null)for(f=s.onRecoverableError,c=0;c<o.length;c++)x=o[c],f(x.value,{componentStack:x.stack,digest:x.digest});if(Jc)throw Jc=!1,s=vh,vh=null,s;return(ed&1)!==0&&s.tag!==0&&Ao(),v=s.pendingLanes,(v&1)!==0?s===bh?tl++:(tl=0,bh=s):tl=0,hs(),null}function Ao(){if(ys!==null){var s=Wx(ed),o=An.transition,c=it;try{if(An.transition=null,it=16>s?16:s,ys===null)var f=!1;else{if(s=ys,ys=null,ed=0,(et&6)!==0)throw Error(r(331));var x=et;for(et|=4,Se=s.current;Se!==null;){var v=Se,_=v.child;if((Se.flags&16)!==0){var P=v.deletions;if(P!==null){for(var I=0;I<P.length;I++){var Y=P[I];for(Se=Y;Se!==null;){var ce=Se;switch(ce.tag){case 0:case 11:case 15:Ja(8,ce,v)}
vendor: 4,591 bytes, line 40
40var fe=ce.child;if(fe!==null)fe.return=ce,Se=fe;else for(;Se!==null;){ce=Se;var ae=ce.sibling,ye=ce.return;if(zy(ce),ce===Y){Se=null;break}if(ae!==null){ae.return=ye,Se=ae;break}Se=ye}}}var Ce=v.alternate;if(Ce!==null){var Te=Ce.child;if(Te!==null){Ce.child=null;do{var Ct=Te.sibling;Te.sibling=null,Te=Ct}while(Te!==null)}}Se=v}}if((v.subtreeFlags&2064)!==0&&_!==null)_.return=v,Se=_;else e:for(;Se!==null;){if(v=Se,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:Ja(9,v,v.return)}var H=v.sibling;if(H!==null){H.return=v.return,Se=H;break e}Se=v.return}}var F=s.current;for(Se=F;Se!==null;){_=Se;var K=_.child;if((_.subtreeFlags&2064)!==0&&K!==null)K.return=_,Se=K;else e:for(_=F;Se!==null;){if(P=Se,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:Yc(9,P)}}catch(Oe){jt(P,P.return,Oe)}if(P===_){Se=null;break e}var he=P.sibling;if(he!==null){he.return=P.return,Se=he;break e}Se=P.return}}if(et=x,hs(),ur&&typeof ur.onPostCommitFiberRoot=="function")try{ur.onPostCommitFiberRoot(lc,s)}catch{}f=!0}return f}finally{it=c,An.transition=o}}return!1}function nv(s,o,c){o=Eo(c,o),o=by(s,o,1),s=ms(s,o,1),o=nn(),s!==null&&(Ca(s,1,o),un(s,o))}function jt(s,o,c){if(s.tag===3)nv(s,s,c);else for(;o!==null;){if(o.tag===3){nv(o,s,c);break}else if(o.tag===1){var f=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(gs===null||!gs.has(f))){s=Eo(c,s),s=wy(o,s,1),o=ms(o,s,1),s=nn(),o!==null&&(Ca(o,1,s),un(o,s));break}}o=o.return}}function A_(s,o,c){var f=s.pingCache;f!==null&&f.delete(o),o=nn(),s.pingedLanes|=s.suspendedLanes&c,Dt===s&&(zt&c)===c&&(Pt===4||Pt===3&&(zt&130023424)===zt&&500>St()-yh?vi(s,0):gh|=c),un(s,o)}function rv(s,o){o===0&&((s.mode&1)===0?o=1:(o=dc,dc<<=1,(dc&130023424)===0&&(dc=4194304)));var c=nn();s=Mr(s,o),s!==null&&(Ca(s,o,c),un(s,c))}function O_(s){var o=s.memoizedState,c=0;o!==null&&(c=o.retryLane),rv(s,c)}function I_(s,o){var c=0;switch(s.tag){case 13:var f=s.stateNode,x=s.memoizedState;x!==null&&(c=x.retryLane);break;case 19:f=s.stateNode;break;default:throw Error(r(314))}f!==null&&f.delete(o),rv(s,c)}var sv;sv=function(s,o,c){if(s!==null)if(s.memoizedProps!==o.pendingProps||an.current)cn=!0;else{if((s.lanes&c)===0&&(o.flags&128)===0)return cn=!1,w_(s,o,c);cn=(s.flags&131072)!==0}else cn=!1,xt&&(o.flags&1048576)!==0&&Lg(o,Ac,o.index);switch(o.lanes=0,o.tag){case 2:var f=o.type;Kc(s,o),s=o.pendingProps;var x=bo(o,Kt.current);_o(o,c),x=Yf(null,o,f,s,x,c);var v=Qf();return o.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,ln(f)?(v=!0,Rc(o)):v=!1,o.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Uf(o),x.updater=Vc,o.stateNode=x,x._reactInternals=o,nh(o,f,s,c),o=oh(null,o,f,!0,v,c)):(o.tag=0,xt&&v&&Af(o),tn(null,o,x,c),o=o.child),o;case 16:f=o.elementType;e:{switch(Kc(s,o),s=o.pendingProps,x=f._init,f=x(f._payload),o.type=f,x=o.tag=D_(f),s=Vn(f,s),x){case 0:o=ih(null,o,f,s,c);break e;case 1:o=Ty(null,o,f,s,c);break e;case 11:o=Cy(null,o,f,s,c);break e;case 14:o=_y(null,o,f,Vn(f.type,s),c);break e}throw Error(r(306,f,""))}return o;case 0:return f=o.type,x=o.pendingProps,x=o.elementType===f?x:Vn(f,x),ih(s,o,f,x,c);case 1:return f=o.type,x=o.pendingProps,x=o.elementType===f?x:Vn(f,x),Ty(s,o,f,x,c);case 3:e:{if(Py(o),s===null)throw Error(r(387));f=o.pendingProps,v=o.memoizedState,x=v.element,qg(s,o),Fc(o,f,null,c);var _=o.memoizedState;if(f=_.element,v.isDehydrated)if(v={element:f,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){x=Eo(Error(r(423)),o),o=Ay(s,o,f,c,x);break e}else if(f!==x){x=Eo(Error(r(424)),o),o=Ay(s,o,f,c,x);break e}else for(vn=ds(o.stateNode.containerInfo.firstChild),yn=o,xt=!0,Hn=null,c=Hg(o,null,f,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(No(),f===x){o=Lr(s,o,c);break e}tn(s,o,f,c)}o=o.child}return o;case 5:return Yg(o),s===null&&Mf(o),f=o.type,x=o.pendingProps,v=s!==null?s.memoizedProps:null,_=x.children,_f(f,x)?_=null:v!==null&&_f(f,v)&&(o.flags|=32),Ry(s,o),tn(s,o,_,c),o.child;case 6:return s===null&&Mf(o),null;case 13:return Oy(s,o,c);case 4:return Wf(o,o.stateNode.containerInfo),f=o.pendingProps,s===null?o.child=So(o,null,f,c):tn(s,o,f,c),o.child;case 11:return f=o.type,x=o.pendingProps,x=o.elementType===f?x:Vn(f,x),Cy(s,o,f,x,c);case 7:return tn(s,o,o.pendingProps,c),o.child;case 8:return tn(s,o,o.pendingProps.children,c),o.child;case 12:return tn(s,o,o.pendingProps.children,c),o.child;
vendor: 8,880 bytes, line 40
40case 10:e:{if(f=o.type._context,x=o.pendingProps,v=o.memoizedProps,_=x.value,ut(Mc,f._currentValue),f._currentValue=_,v!==null)if(Wn(v.value,_)){if(v.children===x.children&&!an.current){o=Lr(s,o,c);break e}}else for(v=o.child,v!==null&&(v.return=o);v!==null;){var P=v.dependencies;if(P!==null){_=v.child;for(var I=P.firstContext;I!==null;){if(I.context===f){if(v.tag===1){I=Dr(-1,c&-c),I.tag=2;var Y=v.updateQueue;if(Y!==null){Y=Y.shared;var ce=Y.pending;ce===null?I.next=I:(I.next=ce.next,ce.next=I),Y.pending=I}}v.lanes|=c,I=v.alternate,I!==null&&(I.lanes|=c),zf(v.return,c,o),P.lanes|=c;break}I=I.next}}else if(v.tag===10)_=v.type===o.type?null:v.child;else if(v.tag===18){if(_=v.return,_===null)throw Error(r(341));_.lanes|=c,P=_.alternate,P!==null&&(P.lanes|=c),zf(_,c,o),_=v.sibling}else _=v.child;if(_!==null)_.return=v;else for(_=v;_!==null;){if(_===o){_=null;break}if(v=_.sibling,v!==null){v.return=_.return,_=v;break}_=_.return}v=_}tn(s,o,x.children,c),o=o.child}return o;case 9:return x=o.type,f=o.pendingProps.children,_o(o,c),x=Tn(x),f=f(x),o.flags|=1,tn(s,o,f,c),o.child;case 14:return f=o.type,x=Vn(f,o.pendingProps),x=Vn(f.type,x),_y(s,o,f,x,c);case 15:return ky(s,o,o.type,o.pendingProps,c);case 17:return f=o.type,x=o.pendingProps,x=o.elementType===f?x:Vn(f,x),Kc(s,o),o.tag=1,ln(f)?(s=!0,Rc(o)):s=!1,_o(o,c),yy(o,f,x),nh(o,f,x,c),oh(null,o,f,!0,s,c);case 19:return My(s,o,c);case 22:return Ey(s,o,c)}throw Error(r(156,o.tag))};function iv(s,o){return Fx(s,o)}function M_(s,o,c,f){this.tag=s,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(s,o,c,f){return new M_(s,o,c,f)}function _h(s){return s=s.prototype,!(!s||!s.isReactComponent)}function D_(s){if(typeof s=="function")return _h(s)?1:0;if(s!=null){if(s=s.$$typeof,s===ee)return 11;if(s===W)return 14}return 2}function ws(s,o){var c=s.alternate;return c===null?(c=On(s.tag,o,s.key,s.mode),c.elementType=s.elementType,c.type=s.type,c.stateNode=s.stateNode,c.alternate=s,s.alternate=c):(c.pendingProps=o,c.type=s.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=s.flags&14680064,c.childLanes=s.childLanes,c.lanes=s.lanes,c.child=s.child,c.memoizedProps=s.memoizedProps,c.memoizedState=s.memoizedState,c.updateQueue=s.updateQueue,o=s.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=s.sibling,c.index=s.index,c.ref=s.ref,c}function sd(s,o,c,f,x,v){var _=2;if(f=s,typeof s=="function")_h(s)&&(_=1);else if(typeof s=="string")_=5;else e:switch(s){case V:return wi(c.children,x,v,o);case M:_=8,x|=8;break;case ne:return s=On(12,c,o,x|2),s.elementType=ne,s.lanes=v,s;case Z:return s=On(13,c,o,x),s.elementType=Z,s.lanes=v,s;case L:return s=On(19,c,o,x),s.elementType=L,s.lanes=v,s;case le:return id(c,x,v,o);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Q:_=10;break e;case ie:_=9;break e;case ee:_=11;break e;case W:_=14;break e;case te:_=16,f=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return o=On(_,c,o,x),o.elementType=s,o.type=f,o.lanes=v,o}function wi(s,o,c,f){return s=On(7,s,f,o),s.lanes=c,s}function id(s,o,c,f){return s=On(22,s,f,o),s.elementType=le,s.lanes=c,s.stateNode={isHidden:!1},s}function kh(s,o,c){return s=On(6,s,null,o),s.lanes=c,s}function Eh(s,o,c){return o=On(4,s.children!==null?s.children:[],s.key,o),o.lanes=c,o.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},o}function L_(s,o,c,f,x){this.tag=o,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ef(0),this.expirationTimes=ef(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ef(0),this.identifierPrefix=f,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function Rh(s,o,c,f,x,v,_,P,I){return s=new L_(s,o,c,P,I),o===1?(o=1,v===!0&&(o|=8)):o=0,v=On(3,null,null,o),s.current=v,v.stateNode=s,v.memoizedState={element:f,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uf(v),s}function F_(s,o,c){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:f==null?null:""+f,children:s,containerInfo:o,implementation:c}}function ov(s){if(!s)return fs;s=s._reactInternals;e:{if(ci(s)!==s||s.tag!==1)throw Error(r(170));var o=s;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(ln(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(r(171))}if(s.tag===1){var c=s.type;if(ln(c))return Ig(s,c,o)}return o}function av(s,o,c,f,x,v,_,P,I){return s=Rh(c,f,!0,s,x,v,_,P,I),s.context=ov(null),c=s.current,f=nn(),x=vs(c),v=Dr(f,x),v.callback=o??null,ms(c,v,x),s.current.lanes=x,Ca(s,x,f),un(s,f),s}function od(s,o,c,f){var x=o.current,v=nn(),_=vs(x);return c=ov(c),o.context===null?o.context=c:o.pendingContext=c,o=Dr(v,_),o.payload={element:s},f=f===void 0?null:f,f!==null&&(o.callback=f),s=ms(x,o,_),s!==null&&(Gn(s,x,_,v),Lc(s,x,_)),_}function ad(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function lv(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var c=s.retryLane;s.retryLane=c!==0&&c<o?c:o}}function Th(s,o){lv(s,o),(s=s.alternate)&&lv(s,o)}function B_(){return null}var cv=typeof reportError=="function"?reportError:function(s){console.error(s)};function Ph(s){this._internalRoot=s}ld.prototype.render=Ph.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(r(409));od(s,o,null,null)},ld.prototype.unmount=Ph.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;yi(function(){od(null,s,null,null)}),o[Pr]=null}};function ld(s){this._internalRoot=s}ld.prototype.unstable_scheduleHydration=function(s){if(s){var o=qx();s={blockedOn:null,target:s,priority:o};for(var c=0;c<as.length&&o!==0&&o<as[c].priority;c++);as.splice(c,0,s),c===0&&Yx(s)}};function Ah(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function cd(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function dv(){}function z_(s,o,c,f,x){if(x){if(typeof f=="function"){var v=f;f=function(){var Y=ad(_);v.call(Y)}}var _=av(o,f,s,0,null,!1,!1,"",dv);return s._reactRootContainer=_,s[Pr]=_.current,Ba(s.nodeType===8?s.parentNode:s),yi(),_}for(;x=s.lastChild;)s.removeChild(x);if(typeof f=="function"){var P=f;f=function(){var Y=ad(I);P.call(Y)}}var I=Rh(s,0,!1,null,null,!1,!1,"",dv);return s._reactRootContainer=I,s[Pr]=I.current,Ba(s.nodeType===8?s.parentNode:s),yi(function(){od(o,I,c,f)}),I}function dd(s,o,c,f,x){var v=c._reactRootContainer;if(v){var _=v;if(typeof x=="function"){var P=x;x=function(){var I=ad(_);P.call(I)}}od(o,_,s,x)}else _=z_(c,o,s,x,f);return ad(_)}Hx=function(s){switch(s.tag){case 3:var o=s.stateNode;if(o.current.memoizedState.isDehydrated){var c=Sa(o.pendingLanes);c!==0&&(tf(o,c|1),un(o,St()),(et&6)===0&&(Po=St()+500,hs()))}break;case 13:yi(function(){var f=Mr(s,1);if(f!==null){var x=nn();Gn(f,s,1,x)}}),Th(s,1)}},nf=function(s){if(s.tag===13){var o=Mr(s,134217728);if(o!==null){var c=nn();Gn(o,s,134217728,c)}Th(s,134217728)}},Vx=function(s){if(s.tag===13){var o=vs(s),c=Mr(s,o);if(c!==null){var f=nn();Gn(c,s,o,f)}Th(s,o)}},qx=function(){return it},Kx=function(s,o){var c=it;try{return it=s,o()}finally{it=c}},Gu=function(s,o,c){switch(o){case"input":if(Je(s,c),o=c.name,c.type==="radio"&&o!=null){for(c=s;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<c.length;o++){var f=c[o];if(f!==s&&f.form===s.form){var x=kc(f);if(!x)throw Error(r(90));Ae(f),Je(f,x)}}}break;case"textarea":nc(s,c);break;case"select":o=c.value,o!=null&&gt(s,!!c.multiple,o,!1)}},Px=Nh,Ax=yi;var $_={usingClientEntryPoint:!1,Events:[Ua,yo,kc,Rx,Tx,Nh]},nl={findFiberByHostInstance:di,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},U_={bundleType:nl.bundleType,version:nl.version,rendererPackageName:nl.rendererPackageName,rendererConfig:nl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=D
40x(s),s===null?null:s.stateNode},findFiberByHostInstance:nl.findFiberByHostInstance||B_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ud=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ud.isDisabled&&ud.supportsFiber)try{lc=ud.inject(U_),ur=ud}catch{}}return fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$_,fn.createPortal=function(s,o){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ah(o))throw Error(r(200));return F_(s,o,null,c)},fn.createRoot=function(s,o){if(!Ah(s))throw Error(r(299));var c=!1,f="",x=cv;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(x=o.onRecoverableError)),o=Rh(s,1,!1,null,null,c,!1,f,x),s[Pr]=o.current,Ba(s.nodeType===8?s.parentNode:s),new Ph(o)},fn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=Dx(o),s=s===null?null:s.stateNode,s},fn.flushSync=function(s){return yi(s)},fn.hydrate=function(s,o,c){if(!cd(o))throw Error(r(200));return dd(null,s,o,!0,c)},fn.hydrateRoot=function(s,o,c){if(!Ah(s))throw Error(r(405));var f=c!=null&&c.hydratedSources||null,x=!1,v="",_=cv;if(c!=null&&(c.unstable_strictMode===!0&&(x=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onRecoverableError!==void 0&&(_=c.onRecoverableError)),o=av(o,null,s,1,c??null,x,!1,v,_),s[Pr]=o.current,Ba(s),f)for(s=0;s<f.length;s++)c=f[s],x=c._getVersion,x=x(c._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[c,x]:o.mutableSourceEagerHydrationData.push(c,x);return new ld(o)},fn.render=function(s,o,c){if(!cd(o))throw Error(r(200));return dd(null,s,o,!1,c)},fn.unmountComponentAtNode=function(s){if(!cd(s))throw Error(r(40));return s._reactRootContainer?(yi(function(){dd(null,null,s,!1,function(){s._reactRootContainer=null,s[Pr]=null})}),!0):!1},fn.unstable_batchedUpdates=Nh,fn.unstable_renderSubtreeIntoContainer=function(s,o,c,f){if(!cd(c))throw Error(r(200));if(s==null||s._reactInternals===void 0)throw Error(r(38));return dd(s,o,c,!1,f)},fn.version="18.3.1-next-f1338f8080-20240426",fn}var vv;function Bb(){if(vv)return Dh.exports;vv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Dh.exports=X_(),Dh.exports}var bv;function J_(){if(bv)return hd;bv=1;var e=Bb();return hd.createRoot=e.createRoot,hd.hydrateRoot=e.hydrateRoot,hd}var Z_=J_();const ek=dm(Z_),tk=20,nk=1e6,Wr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Bh=0;function rk(){return Bh=(Bh+1)%Number.MAX_VALUE,Bh.toString()}const zh=new Map,wv=e=>{if(zh.has(e))return;const t=setTimeout(()=>{zh.delete(e),gl({type:Wr.REMOVE_TOAST,toastId:e})},nk);zh.set(e,t)},sk=(e,t)=>{switch(t.type){case Wr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,tk)};case Wr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case Wr.DISMISS_TOAST:{const{toastId:r}=t;return r?wv(r):e.toasts.forEach(i=>{wv(i.id)}),{...e,toasts:e.toasts.map(i=>
40i.id===r||r===void 0?{...i,open:!1}:i)}}case Wr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Rd=[];let Td={toasts:[]};function gl(e){Td=sk(Td,e),Rd.forEach(t=>{t(Td)})}function ik({...e}){const t=rk(),r=a=>gl({type:Wr.UPDATE_TOAST,toast:{...a,id:t}}),i=()=>gl({type:Wr.DISMISS_TOAST,toastId:t});return gl({type:Wr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:a=>{a||i()}}}),{id:t,dismiss:i,update:r}}function ok(){const[e,t]=p.useState(Td);return p.useEffect(()=>(Rd.push(t),()=>{const r=Rd.indexOf(t);r>-1&&Rd.splice(r,1)}),[e]),{...e,toast:ik,dismiss:r=>gl({type:Wr.DISMISS_TOAST,toastId:r})}}function zb(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=zb(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function $b(){for(var e,t,r=0,i="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=zb(e))&&(i&&(i+=" "),i+=t);return i}const jv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Nv=$b,ca=(e,t)=>r=>{var i;if((t==null?void 0:t.variants)==null)return Nv(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:l}=t,d=Object.keys(a).map(m=>{const g=r==null?void 0:r[m],y=l==null?void 0:l[m];if(g===null)return null;const w=jv(g)||jv(y);return a[m][w]}),u=r&&Object.entries(r).reduce((m,g)=>{let[y,w]=g;return w===void 0||(m[y]=w),m},{}),h=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((m,g)=>{let{class:y,className:w,...C}=g;return Object.entries(C).every(k=>{let[N,j]=k;return Array.isArray(j)?j.includes({...l,...u}[N]):{...l,...u}[N]===j})?[...m,y,w]:m},[]);return Nv(e,d,h,r==null?void 0:r.class,r==null?void 0:r.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const ak=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var lk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const ck=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:d,...u},h)=>p.createElement("svg",{ref:h,...lk,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:Ub("lucide",a),...u},[...d.map(([m,g])=>p.createElement(m,g)),...Array.isArray(l)?l:[l]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const we=(e,t)=>{const r=p.forwardRef(({className:i,...a},l)=>p.createElement(ck,{ref:l,iconNode:t,className:Ub(`lucide-${ak(e)}`,i),...a}));return r.displayName=`${e}`,r};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const dk=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],jr=we("ArrowLeft",dk);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const uk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ui=we("ArrowRight",uk);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const fk=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],Sv=we("Award",fk);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const hk=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Gr=we("BookOpen",hk);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const pk=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Cv=we("Bot",pk);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const mk=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}
90]],vl=we("Briefcase",mk);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const xk=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],bt=we("Building2",xk);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const gk=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],jn=we("Calculator",gk);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const yk=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],er=we("Calendar",yk);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const vk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Yr=we("Check",vk);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const bk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ml=we("ChevronDown",bk);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const wk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Wb=we("ChevronLeft",wk);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const jk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ti=we("ChevronRight",jk);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const Nk=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],fm=we("ChevronUp",Nk);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const Sk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],sn=we("CircleAlert",Sk);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const Ck=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ht=we("CircleCheckBig",Ck);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const _k=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_v=we("CircleHelp",_k);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const kk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9 17V7h4a3 3 0 0 1 0 6H9",key:"1dfk2c"}]],Ek=we("CircleParking",kk);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const Rk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Tk=we("Circle",Rk);/**
156 * @license lucide-react v0.475.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const Pk=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Ak=we("ClipboardList",Pk);/**
161 * @license lucide-react v0.475.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const Ok=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Zt=we("Clock",Ok);/**
166 * @license lucide-react v0.475.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const Ik=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Mk=we("Copy",Ik);/**
171 * @license lucide-react v0.475.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const Dk=[["path",{d:"M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",key:"1yo7s0"}],["path",{d:"m12 9 6 6",key:"anjzzh"}],["path",{d:"m18 9-6 6",key:"1fp51s"}]],$h=we("Delete",Dk);/**
176 * @license lucide-react v0.475.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const Lk=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Dl=we("DollarSign",Lk);/**
181 * @license lucide-react v0.475.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const Fk=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Hb=we("Download",Fk);/**
186 * @license lucide-react v0.475.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const Bk=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],zk=we("EllipsisVertical",Bk);/**
191 * @license lucide-react v0.475.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const $k=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Wi=we("ExternalLink",$k);/**
196 * @license lucide-react v0.475.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const Uk=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Pd=we("EyeOff",Uk);/**
201 * @license lucide-react v0.475.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const Wk=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Bi=we("Eye",Wk);/**
206 * @license lucide-react v0.475.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const Hk=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Nn=we("FileText",Hk);/**
211 * @license lucide-react v0.475.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const Vk=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],qk=we("Filter",Vk);/**
216 * @license lucide-react v0.475.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const Kk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Vb=we("Globe",Kk);/**
221 * @license lucide-react v0.475.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const Gk=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],qb=we("Heart",Gk);/**
226 * @license lucide-react v0.475.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const Yk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Qk=we("Image",Yk);/**
231 * @license lucide-react v0.475.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const Xk=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],kv=we("Inbox",Xk);/**
236 * @license lucide-react v0.475.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const Jk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Kb=we("Info",Jk);/**
241 * @license lucide-react v0.475.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const Zk=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Hd=we("Lightbulb",Zk);/**
246 * @license lucide-react v0.475.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const e5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vd=we("LoaderCircle",e5);/**
251 * @license lucide-react v0.475.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const t5=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Ad=we("Lock",t5);/**
256 * @license lucide-react v0.475.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const n5=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",ke
260y:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],qd=we("LogIn",n5);/**
261 * @license lucide-react v0.475.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const r5=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],Ev=we("LogOut",r5);/**
266 * @license lucide-react v0.475.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const s5=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Bn=we("Mail",s5);/**
271 * @license lucide-react v0.475.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const i5=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ni=we("MapPin",i5);/**
276 * @license lucide-react v0.475.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const o5=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],a5=we("Menu",o5);/**
281 * @license lucide-react v0.475.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const l5=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],c5=we("MessageCircle",l5);/**
286 * @license lucide-react v0.475.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const d5=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],hm=we("MessageSquare",d5);/**
291 * @license lucide-react v0.475.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const u5=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Gb=we("Monitor",u5);/**
296 * @license lucide-react v0.475.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const f5=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Rv=we("Pencil",f5);/**
301 * @license lucide-react v0.475.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const h5=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],Vt=we("Phone",h5);/**
306 * @license lucide-react v0.475.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const p5=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Nr=we("Plus",p5);/**
311 * @license lucide-react v0.475.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const m5=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],Uh=we("QrCode",m5);/**
316 * @license lucide-react v0.475.0 - ISC
317 *
318 * This source code is licensed under the ISC license.
319 * See the LICENSE file in the root directory of this source tree.
320 */const x5=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],g5=we("Quote",x5);/**
321 * @license lucide-react v0.475.0 - ISC
322 *
323 * This source code is licensed under the ISC license.
324 * See the LICENSE file in the root directory of this source tree.
325 */const y5=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],v5=we("Save",y5);/**
326 * @license lucide-react v0.475.0 - ISC
327 *
328 * This source code is licensed under the ISC license.
329 * See the LICENSE file in the root directory of this source tree.
330 */const b5=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],ra=we("Search",b5);/**
331 * @license lucide-react v0.475.0 - ISC
332 *
333 * This source code is licensed under the ISC license.
334 * See the LICENSE file in the root directory of this source tree.
335 */const w5=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Yb=we("Send",w5);/**
336 * @license lucide-react v0.475.0 - ISC
337 *
338 * This source code is licensed under the ISC license.
339 * See the LICENSE file in the root directory of this source tree.
340 */const j5=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
340y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],N5=we("ShieldCheck",j5);/**
341 * @license lucide-react v0.475.0 - ISC
342 *
343 * This source code is licensed under the ISC license.
344 * See the LICENSE file in the root directory of this source tree.
345 */const S5=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],sa=we("Shield",S5);/**
346 * @license lucide-react v0.475.0 - ISC
347 *
348 * This source code is licensed under the ISC license.
349 * See the LICENSE file in the root directory of this source tree.
350 */const C5=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],zo=we("Sparkles",C5);/**
351 * @license lucide-react v0.475.0 - ISC
352 *
353 * This source code is licensed under the ISC license.
354 * See the LICENSE file in the root directory of this source tree.
355 */const _5=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],k5=we("SquarePen",_5);/**
356 * @license lucide-react v0.475.0 - ISC
357 *
358 * This source code is licensed under the ISC license.
359 * See the LICENSE file in the root directory of this source tree.
360 */const E5=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Zn=we("Star",E5);/**
361 * @license lucide-react v0.475.0 - ISC
362 *
363 * This source code is licensed under the ISC license.
364 * See the LICENSE file in the root directory of this source tree.
365 */const R5=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Bs=we("Trash2",R5);/**
366 * @license lucide-react v0.475.0 - ISC
367 *
368 * This source code is licensed under the ISC license.
369 * See the LICENSE file in the root directory of this source tree.
370 */const T5=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Kd=we("TrendingUp",T5);/**
371 * @license lucide-react v0.475.0 - ISC
372 *
373 * This source code is licensed under the ISC license.
374 * See the LICENSE file in the root directory of this source tree.
375 */const P5=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],pm=we("TriangleAlert",P5);/**
376 * @license lucide-react v0.475.0 - ISC
377 *
378 * This source code is licensed under the ISC license.
379 * See the LICENSE file in the root directory of this source tree.
380 */const A5=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],Hr=we("Upload",A5);/**
381 * @license lucide-react v0.475.0 - ISC
382 *
383 * This source code is licensed under the ISC license.
384 * See the LICENSE file in the root directory of this source tree.
385 */const O5=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]],mm=we("UserCheck",O5);/**
386 * @license lucide-react v0.475.0 - ISC
387 *
388 * This source code is licensed under the ISC license.
389 * See the LICENSE file in the root directory of this source tree.
390 */const I5=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],M5=we("UserPlus",I5);/**
391 * @license lucide-react v0.475.0 - ISC
392 *
393 * This source code is licensed under the ISC license.
394 * See the LICENSE file in the root directory of this source tree.
395 */const D5=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],$o=we("User",D5);/**
396 * @license lucide-react v0.475.0 - ISC
397 *
398 * This source code is licensed under the ISC license.
399 * See the LICENSE file in the root directory of this source tree.
400 */const L5=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Hi=we("Users",L5);/**
401 * @license lucide-react v0.475.0 - ISC
402 *
403 * This source code is licensed under the ISC license.
404 * See the LICENSE file in the root directory of this source tree.
405 */const F5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 4,026 bytes, line 405
405],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ii=we("X",F5),B5=(e,t)=>{const r=new Array(e.length+t.length);for(let i=0;i<e.length;i++)r[i]=e[i];for(let i=0;i<t.length;i++)r[e.length+i]=t[i];return r},z5=(e,t)=>({classGroupId:e,validator:t}),Qb=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Gd="-",Tv=[],$5="arbitrary..",U5=e=>{const t=H5(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return W5(d);const u=d.split(Gd),h=u[0]===""&&u.length>1?1:0;return Xb(u,h,t)},getConflictingClassGroupIds:(d,u)=>{if(u){const h=i[d],m=r[d];return h?m?B5(m,h):h:m||Tv}return r[d]||Tv}}},Xb=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const a=e[t],l=r.nextPart.get(a);if(l){const m=Xb(e,t+1,l);if(m)return m}const d=r.validators;if(d===null)return;const u=t===0?e.join(Gd):e.slice(t).join(Gd),h=d.length;for(let m=0;m<h;m++){const g=d[m];if(g.validator(u))return g.classGroupId}},W5=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?$5+i:void 0})(),H5=e=>{const{theme:t,classGroups:r}=e;return V5(r,t)},V5=(e,t)=>{const r=Qb();for(const i in e){const a=e[i];xm(a,r,i,t)}return r},xm=(e,t,r,i)=>{const a=e.length;for(let l=0;l<a;l++){const d=e[l];q5(d,t,r,i)}},q5=(e,t,r,i)=>{if(typeof e=="string"){K5(e,t,r);return}if(typeof e=="function"){G5(e,t,r,i);return}Y5(e,t,r,i)},K5=(e,t,r)=>{const i=e===""?t:Jb(t,e);i.classGroupId=r},G5=(e,t,r,i)=>{if(Q5(e)){xm(e(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(z5(r,e))},Y5=(e,t,r,i)=>{const a=Object.entries(e),l=a.length;for(let d=0;d<l;d++){const[u,h]=a[d];xm(h,Jb(t,u),r,i)}},Jb=(e,t)=>{let r=e;const i=t.split(Gd),a=i.length;for(let l=0;l<a;l++){const d=i[l];let u=r.nextPart.get(d);u||(u=Qb(),r.nextPart.set(d,u)),r=u}return r},Q5=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,X5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const a=(l,d)=>{r[l]=d,t++,t>e&&(t=0,i=r,r=Object.create(null))};return{get(l){let d=r[l];if(d!==void 0)return d;if((d=i[l])!==void 0)return a(l,d),d},set(l,d){l in r?r[l]=d:a(l,d)}}},vp="!",Pv=":",J5=[],Av=(e,t,r,i,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:a}),Z5=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=a=>{const l=[];let d=0,u=0,h=0,m;const g=a.length;for(let N=0;N<g;N++){const j=a[N];if(d===0&&u===0){if(j===Pv){l.push(a.slice(h,N)),h=N+1;continue}if(j==="/"){m=N;continue}}j==="["?d++:j==="]"?d--:j==="("?u++:j===")"&&u--}const y=l.length===0?a:a.slice(h);let w=y,C=!1;y.endsWith(vp)?(w=y.slice(0,-1),C=!0):y.startsWith(vp)&&(w=y.slice(1),C=!0);const k=m&&m>h?m-h:void 0;return Av(l,C,w,k)};if(t){const a=t+Pv,l=i;i=d=>d.startsWith(a)?l(d.slice(a.length)):Av(J5,!1,d,void 0,!0)}if(r){const a=i;i=l=>r({className:l,parseClassName:a})}return i},eE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let a=[];for(let l=0;l<r.length;l++){const d=r[l],u=d[0]==="[",h=t.has(d);u||h?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(d)):a.push(d)}return a.length>0&&(a.sort(),i.push(...a)),i}},tE=e=>({cache:X5(e.cacheSize),parseClassName:Z5(e),sortModifiers:eE(e),...U5(e)}),nE=/\s+/,rE=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=t,d=[],u=e.trim().split(nE);let h="";for(let m=u.length-1;m>=0;m-=1){const g=u[m],{isExternal:y,modifiers:w,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:N}=r(g);if(y){h=g+(h.length>0?" "+h:h);continue}let j=!!N,b=i(j?k.substring(0,N):k);if(!b){if(!j){h=g+(h.length>0?" "+h:h);continue}if(b=i(k),!b){h=g+(h.length>0?" "+h:h);continue}j=!1}const S=w.length===0?"":w.length===1?w[0]:l(w).join(":"),E=C?S+vp:S,R=E+b;if(d.indexOf(R)>-1)continue;d.push(R);const O=a(b,j);for(let $=0;$<O.length;++$){const V=O[$];d.push(E+V)}h=g+(h.length>0?" "+h:h)}return h},sE=(...e)=>{let t=0,r,i,a="";for(;t<e.length;
vendor: 4,376 bytes, line 405
405)(r=e[t++])&&(i=Zb(r))&&(a&&(a+=" "),a+=i);return a},Zb=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=Zb(e[i]))&&(r&&(r+=" "),r+=t);return r},iE=(e,...t)=>{let r,i,a,l;const d=h=>{const m=t.reduce((g,y)=>y(g),e());return r=tE(m),i=r.cache.get,a=r.cache.set,l=u,u(h)},u=h=>{const m=i(h);if(m)return m;const g=rE(h,r);return a(h,g),g};return l=d,(...h)=>l(sE(...h))},oE=[],At=e=>{const t=r=>r[e]||oE;return t.isThemeGetter=!0,t},ew=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,lE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cE=/\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$/,dE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ns=e=>aE.test(e),He=e=>!!e&&!Number.isNaN(Number(e)),Ss=e=>!!e&&Number.isInteger(Number(e)),Wh=e=>e.endsWith("%")&&He(e.slice(0,-1)),Br=e=>lE.test(e),nw=()=>!0,hE=e=>cE.test(e)&&!dE.test(e),gm=()=>!1,pE=e=>uE.test(e),mE=e=>fE.test(e),xE=e=>!_e(e)&&!Ee(e),gE=e=>oi(e,iw,gm),_e=e=>ew.test(e),ji=e=>oi(e,ow,hE),Ov=e=>oi(e,CE,He),yE=e=>oi(e,lw,nw),vE=e=>oi(e,aw,gm),Iv=e=>oi(e,rw,gm),bE=e=>oi(e,sw,mE),pd=e=>oi(e,cw,pE),Ee=e=>tw.test(e),sl=e=>eo(e,ow),wE=e=>eo(e,aw),Mv=e=>eo(e,rw),jE=e=>eo(e,iw),NE=e=>eo(e,sw),md=e=>eo(e,cw,!0),SE=e=>eo(e,lw,!0),oi=(e,t,r)=>{const i=ew.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},eo=(e,t,r=!1)=>{const i=tw.exec(e);return i?i[1]?t(i[1]):r:!1},rw=e=>e==="position"||e==="percentage",sw=e=>e==="image"||e==="url",iw=e=>e==="length"||e==="size"||e==="bg-size",ow=e=>e==="length",CE=e=>e==="number",aw=e=>e==="family-name",lw=e=>e==="number"||e==="weight",cw=e=>e==="shadow",_E=()=>{const e=At("color"),t=At("font"),r=At("text"),i=At("font-weight"),a=At("tracking"),l=At("leading"),d=At("breakpoint"),u=At("container"),h=At("spacing"),m=At("radius"),g=At("shadow"),y=At("inset-shadow"),w=At("text-shadow"),C=At("drop-shadow"),k=At("blur"),N=At("perspective"),j=At("aspect"),b=At("ease"),S=At("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...R(),Ee,_e],$=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],M=()=>[Ee,_e,h],ne=()=>[Ns,"full","auto",...M()],Q=()=>[Ss,"none","subgrid",Ee,_e],ie=()=>["auto",{span:["full",Ss,Ee,_e]},Ss,Ee,_e],ee=()=>[Ss,"auto",Ee,_e],Z=()=>["auto","min","max","fr",Ee,_e],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],te=()=>["auto",...M()],le=()=>[Ns,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],G=()=>[Ns,"screen","full","dvw","lvw","svw","min","max","fit",...M()],q=()=>[Ns,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],U=()=>[e,Ee,_e],A=()=>[...R(),Mv,Iv,{position:[Ee,_e]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",jE,gE,{size:[Ee,_e]}],pe=()=>[Wh,sl,ji],me=()=>["","none","full",m,Ee,_e],B=()=>["",He,sl,ji],T=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[He,Wh,Mv,Iv],de=()=>["","none",k,Ee,_e],be=()=>["none",He,Ee,_e],Ae=()=>["none",He,Ee,_e],Ze=()=>[He,Ee,_e],nt=()=>[Ns,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Br],breakpoint:[Br],color:[nw],container:[Br],"drop-shadow":[Br],ease:["in","out","in-out"],font:[xE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Br],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Br],shadow:[Br],spacing:["px",He],text:[Br],"text-shadow":[Br],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ns,_e,Ee,j]}
vendor: 6,129 bytes, line 405
405],container:["container"],columns:[{columns:[He,_e,Ee,u]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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"],sr:["sr-only","not-sr-only"],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:O()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{"inset-s":ne(),start:ne()}],end:[{"inset-e":ne(),end:ne()}],"inset-bs":[{"inset-bs":ne()}],"inset-be":[{"inset-be":ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[Ss,"auto",Ee,_e]}],basis:[{basis:[Ns,"full","auto",u,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[He,Ns,"auto","initial","none",_e]}],grow:[{grow:["",He,Ee,_e]}],shrink:[{shrink:["",He,Ee,_e]}],order:[{order:[Ss,"first","last","none",Ee,_e]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mbs:[{mbs:te()}],mbe:[{mbe:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...q()]}],"min-block-size":[{"min-block":["auto",...q()]}],"max-block-size":[{"max-block":["none",...q()]}],w:[{w:[u,"screen",...le()]}],"min-w":[{"min-w":[u,"screen","none",...le()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[d]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh",...le()]}],"font-size":[{text:["base",r,sl,ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,SE,yE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wh,_e]}],"font-family":[{font:[wE,vE,t]}],"font-features":[{"font-features":[_e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Ee,_e]}],"line-clamp":[{"line-clamp":[He,"none",Ee,Ov]}],leading:[{leading:[l,...M()]}],"list-image":[{"list-image":["none",Ee,_e]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ee,_e]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:[He,"from-font","auto",Ee,ji]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[He,"auto",Ee,_e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee,_e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee,_e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ss,Ee,_e],radial:["",Ee,_e],conic:[Ss,Ee,_e]},NE,bE]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:pe()}
405],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}
vendor: 11,011 bytes, line 405
405],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...T(),"hidden","none"]}],"divide-style":[{divide:[...T(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-bs":[{"border-bs":U()}],"border-color-be":[{"border-be":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...T(),"none","hidden"]}],"outline-offset":[{"outline-offset":[He,Ee,_e]}],"outline-w":[{outline:["",He,sl,ji]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",g,md,pd]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",y,md,pd]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[He,ji]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",w,md,pd]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[He,Ee,_e]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[He]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[Ee,_e]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[He]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ee,_e]}],filter:[{filter:["","none",Ee,_e]}],blur:[{blur:de()}],brightness:[{brightness:[He,Ee,_e]}],contrast:[{contrast:[He,Ee,_e]}],"drop-shadow":[{"drop-shadow":["","none",C,md,pd]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",He,Ee,_e]}],"hue-rotate":[{"hue-rotate":[He,Ee,_e]}],invert:[{invert:["",He,Ee,_e]}],saturate:[{saturate:[He,Ee,_e]}],sepia:[{sepia:["",He,Ee,_e]}],"backdrop-filter":[{"backdrop-filter":["","none",Ee,_e]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[He,Ee,_e]}],"backdrop-contrast":[{"backdrop-contrast":[He,Ee,_e]}],"backdrop-grayscale":[{"backdrop-grayscale":["",He,Ee,_e]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[He,Ee,_e]}],"backdrop-invert":[{"backdrop-invert":["",He,Ee,_e]}],"backdrop-opacity":[{"backdrop-opacity":[He,Ee,_e]}],"backdrop-saturate":[{"backdrop-saturate":[He,Ee,_e]}],"backdrop-sepia":[{"backdrop-sepia":["",He,Ee,_e]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ee,_e]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[He,"initial",Ee,_e]}],ease:[{ease:["linear","initial",b,Ee,_e]}],delay:[{delay:[He,Ee,_e]}],animate:[{animate:["none",S,Ee,_e]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Ee,_e]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Ze()}],"skew-x":[{"skew-x":Ze()}],"skew-y":[{"skew-y":Ze()}],transform:[{transform:[Ee,_e,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:nt()}],"translate-x":[{"translate-x":nt()}],"translate-y":[{"translate-y":nt()}],"translate-z":[{"translate-z":nt()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Ee,_e]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],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",Ee,_e]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[He,sl,ji,Ov]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}
405,kE=iE(_E);function Pe(...e){return kE($b(e))}const dw=p.forwardRef(({...e},t)=>n.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));dw.displayName="ToastProvider";const uw=p.forwardRef(({...e},t)=>n.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));uw.displayName="ToastViewport";const EE=ca("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),fw=p.forwardRef(({className:e,variant:t,...r},i)=>n.jsx("div",{ref:i,className:Pe(EE({variant:t}),e),...r}));fw.displayName="Toast";const RE=p.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Pe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));RE.displayName="ToastAction";const hw=p.forwardRef(({className:e,...t},r)=>n.jsx("button",{ref:r,className:Pe("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:n.jsx(ii,{className:"h-4 w-4"})}));hw.displayName="ToastClose";const pw=p.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Pe("text-sm font-semibold",e),...t}));pw.displayName="ToastTitle";const mw=p.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Pe("text-sm opacity-90",e),...t}));mw.displayName="ToastDescription";function TE(){const{toasts:e}=ok();return n.jsxs(dw,{children:[e.map(function({id:t,title:r,description:i,action:a,...l}){return n.jsxs(fw,{...l,children:[n.jsxs("div",{className:"grid gap-1",children:[r&&n.jsx(pw,{children:r}),i&&n.jsx(mw,{children:i})]}),a,n.jsx(hw,{})]},t)}),n.jsx(uw,{})]})}var Ll=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},PE={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ps,cm,Rb,AE=(Rb=class{constructor(){Le(this,Ps,PE);Le(this,cm,!1)}setTimeoutProvider(e){je(this,Ps,e)}setTimeout(e,t){return D(this,Ps).setTimeout(e,t)}clearTimeout(e){D(this,Ps).clearTimeout(e)}setInterval(e,t){return D(this,Ps).setInterval(e,t)}clearInterval(e){D(this,Ps).clearInterval(e)}},Ps=new WeakMap,cm=new WeakMap,Rb),_i=new AE;function OE(e){setTimeout(e,0)}var Vi=typeof window>"u"||"Deno"in globalThis;function pn(){}function IE(e,t){return typeof e=="function"?e(t):e}function bp(e){return typeof e=="number"&&e>=0&&e!==1/0}function xw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ys(e,t){return typeof e=="function"?e(t):e}function Dn(e,t){return typeof e=="function"?e(t):e}function Dv(e,t){const{type:r="all",exact:i,fetchStatus:a,predicate:l,queryKey:d,stale:u}=e;if(d){if(i){if(t.queryHash!==ym(d,t.options))return!1}else if(!wl(t.queryKey,d))return!1}if(r!=="all"){const h=t.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||l&&!l(t))}function Lv(e,t){const{exact:r,status:i,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(bl(t.options.mutationKey)!==bl(l))return!1}else if(!wl(t.options.mutationKey,l))return!1}return!(i&&t.state.status!==i||a&&!a(t))}function ym(e,t){return((t==null?void 0:t.queryKeyHashFn)||bl)(e)}function bl(e){return JSON.stringify(e,(t,r)=>jp(r)?Object.keys(r).sort().reduce((i,a)=>(i[a]=r[a],i),{}):r)}function wl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>wl(e[r],t[r])):!1}var ME=Object.prototype.hasOwnProperty;function gw(e,t,r=0){if(e===t)return e;if(r>500)return t;const i=Fv(e)&&Fv(t);if(!i&&!(jp(e)&&jp(t)))return t;const l=(i?e:Object.keys(e)).length,d=i?t:Object.keys(t),u=d.length,h=i?new Array(u):{};let m=0;for(let g=0;g<u;g++){const y=i?g:d[g],w=e[y],C=t[y];if(w===C){h[y]=w,(i?g<l:ME.call(e,y))&&m++;continue}if(w===null||C===null||typeof w!="object"||typeof C!="object"){h[y]=C;continue}const k=gw(w,C,r+1);h[y]=k,k===w&&m++}return l===u&&m===l?e:h}function wp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Fv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jp(e){if(!Bv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Bv(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Bv(e){return Object.prototype.toString.call(e)==="[object Object]"}function DE(e){return new Promise(t=>{_i.setTimeout(t,e)})}function Np(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?gw(e,t):t}function LE(e,t,r=0){const i=[...e,t];return r&&i.length>r?i.slice(1):i}function FE(e,t,r=0){const i=[t,...e];return r&&i.length>r?i.slice(0,-1):i}var vm=Symbol();function yw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function vw(e,t){return typeof e=="function"?e(...t):!!e}function BE(e,t,r){let i=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),i||(i=!0,a.aborted?r():a.addEventListener("abort",r,{once:!0})),a)}),e}var Ti,As,Vo,Tb,zE=(Tb=class extends Ll{constructor(){super();Le(this,Ti);Le(this,As);Le(this,Vo);je(this,Vo,t=>{if(!Vi&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}
vendor: 5,409 bytes, line 405
405onSubscribe(){D(this,As)||this.setEventListener(D(this,Vo))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,As))==null||t.call(this),je(this,As,void 0))}setEventListener(t){var r;je(this,Vo,t),(r=D(this,As))==null||r.call(this),je(this,As,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){D(this,Ti)!==t&&(je(this,Ti,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof D(this,Ti)=="boolean"?D(this,Ti):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ti=new WeakMap,As=new WeakMap,Vo=new WeakMap,Tb),bm=new zE;function Sp(){let e,t;const r=new Promise((a,l)=>{e=a,t=l});r.status="pending",r.catch(()=>{});function i(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{i({status:"fulfilled",value:a}),e(a)},r.reject=a=>{i({status:"rejected",reason:a}),t(a)},r}var $E=OE;function UE(){let e=[],t=0,r=u=>{u()},i=u=>{u()},a=$E;const l=u=>{t?e.push(u):a(()=>{r(u)})},d=()=>{const u=e;e=[],u.length&&a(()=>{i(()=>{u.forEach(h=>{r(h)})})})};return{batch:u=>{let h;t++;try{h=u()}finally{t--,t||d()}return h},batchCalls:u=>(...h)=>{l(()=>{u(...h)})},schedule:l,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{a=u}}}var Ut=UE(),qo,Os,Ko,Pb,WE=(Pb=class extends Ll{constructor(){super();Le(this,qo,!0);Le(this,Os);Le(this,Ko);je(this,Ko,t=>{if(!Vi&&window.addEventListener){const r=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){D(this,Os)||this.setEventListener(D(this,Ko))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,Os))==null||t.call(this),je(this,Os,void 0))}setEventListener(t){var r;je(this,Ko,t),(r=D(this,Os))==null||r.call(this),je(this,Os,t(this.setOnline.bind(this)))}setOnline(t){D(this,qo)!==t&&(je(this,qo,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return D(this,qo)}},qo=new WeakMap,Os=new WeakMap,Ko=new WeakMap,Pb),Yd=new WE;function HE(e){return Math.min(1e3*2**e,3e4)}function bw(e){return(e??"online")==="online"?Yd.isOnline():!0}var Cp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ww(e){let t=!1,r=0,i;const a=Sp(),l=()=>a.status!=="pending",d=N=>{var j;if(!l()){const b=new Cp(N);w(b),(j=e.onCancel)==null||j.call(e,b)}},u=()=>{t=!0},h=()=>{t=!1},m=()=>bm.isFocused()&&(e.networkMode==="always"||Yd.isOnline())&&e.canRun(),g=()=>bw(e.networkMode)&&e.canRun(),y=N=>{l()||(i==null||i(),a.resolve(N))},w=N=>{l()||(i==null||i(),a.reject(N))},C=()=>new Promise(N=>{var j;i=b=>{(l()||m())&&N(b)},(j=e.onPause)==null||j.call(e)}).then(()=>{var N;i=void 0,l()||(N=e.onContinue)==null||N.call(e)}),k=()=>{if(l())return;let N;const j=r===0?e.initialPromise:void 0;try{N=j??e.fn()}catch(b){N=Promise.reject(b)}Promise.resolve(N).then(y).catch(b=>{var $;if(l())return;const S=e.retry??(Vi?0:3),E=e.retryDelay??HE,R=typeof E=="function"?E(r,b):E,O=S===!0||typeof S=="number"&&r<S||typeof S=="function"&&S(r,b);if(t||!O){w(b);return}r++,($=e.onFail)==null||$.call(e,r,b),DE(R).then(()=>m()?void 0:C()).then(()=>{t?w(b):k()})})};return{promise:a,status:()=>a.status,cancel:d,continue:()=>(i==null||i(),a),cancelRetry:u,continueRetry:h,canStart:g,start:()=>(g()?k():C().then(k),a)}}var Pi,Ab,jw=(Ab=class{constructor(){Le(this,Pi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bp(this.gcTime)&&je(this,Pi,_i.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vi?1/0:300*1e3))}clearGcTimeout(){D(this,Pi)&&(_i.clearTimeout(D(this,Pi)),je(this,Pi,void 0))}},Pi=new WeakMap,Ab),Ai,Go,Mn,Oi,Ft,Tl,Ii,Qn,zr,Ob,VE=(Ob=class extends jw{constructor(t){super();Le(this,Qn);Le(this,Ai);Le(this,Go);Le(this,Mn);Le(this,Oi);Le(this,Ft);Le(this,Tl);Le(this,Ii);je(this,Ii,!1),je(this,Tl,t.defaultOptions),this.setOptions(t.options),this.observers=[],je(this,Oi,t.client),je(this,Mn,D(this,Oi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,je(this,Ai,$v(this.options)),this.state=t.state??D(this,Ai),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=D(this,Ft))==null?void 0:t.promise}setOptions(t){if(this.options={...D(this,Tl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=$v(this.options);r.data!==void 0&&(this.setState(zv(r.data,r.dataUpdatedAt)),je(this,Ai,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,Mn).remove(this)}setData(t,r){const i=Np(this.state.data,t,this.options);return Ge(this,Qn,zr).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(t,r){Ge(this,Qn,zr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var i,a;const r=(i=D(this,Ft))==null?void 0:i.promise;return(a=D(this,Ft))==null||a.cancel(t),r?r.then(pn).catch(pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,Ai))}isActive(){return this.observers.some(t=>Dn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vm||this.state.dataUpdateCount+this.state.errorUpdate
405Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ys(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!xw(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=D(this,Ft))==null||r.continue()}onOnline(){var r;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=D(this,Ft))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),D(this,Mn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(D(this,Ft)&&(D(this,Ii)?D(this,Ft).cancel({revert:!0}):D(this,Ft).cancelRetry()),this.scheduleGc()),D(this,Mn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ge(this,Qn,zr).call(this,{type:"invalidate"})}async fetch(t,r){var h,m,g,y,w,C,k,N,j,b,S,E;if(this.state.fetchStatus!=="idle"&&((h=D(this,Ft))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(D(this,Ft))return D(this,Ft).continueRetry(),D(this,Ft).promise}if(t&&this.setOptions(t),!this.options.queryFn){const R=this.observers.find(O=>O.options.queryFn);R&&this.setOptions(R.options)}const i=new AbortController,a=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(je(this,Ii,!0),i.signal)})},l=()=>{const R=yw(this.options,r),$=(()=>{const V={client:D(this,Oi),queryKey:this.queryKey,meta:this.meta};return a(V),V})();return je(this,Ii,!1),this.options.persister?this.options.persister(R,$,this):R($)},u=(()=>{const R={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:D(this,Oi),state:this.state,fetchFn:l};return a(R),R})();(m=this.options.behavior)==null||m.onFetch(u,this),je(this,Go,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=u.fetchOptions)==null?void 0:g.meta))&&Ge(this,Qn,zr).call(this,{type:"fetch",meta:(y=u.fetchOptions)==null?void 0:y.meta}),je(this,Ft,ww({initialPromise:r==null?void 0:r.initialPromise,fn:u.fetchFn,onCancel:R=>{R instanceof Cp&&R.revert&&this.setState({...D(this,Go),fetchStatus:"idle"}),i.abort()},onFail:(R,O)=>{Ge(this,Qn,zr).call(this,{type:"failed",failureCount:R,error:O})},onPause:()=>{Ge(this,Qn,zr).call(this,{type:"pause"})},onContinue:()=>{Ge(this,Qn,zr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const R=await D(this,Ft).start();if(R===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(R),(C=(w=D(this,Mn).config).onSuccess)==null||C.call(w,R,this),(N=(k=D(this,Mn).config).onSettled)==null||N.call(k,R,this.state.error,this),R}catch(R){if(R instanceof Cp){if(R.silent)return D(this,Ft).promise;if(R.revert){if(this.state.data===void 0)throw R;return this.state.data}}throw Ge(this,Qn,zr).call(this,{type:"error",error:R}),(b=(j=D(this,Mn).config).onError)==null||b.call(j,R,this),(E=(S=D(this,Mn).config).onSettled)==null||E.call(S,this.state.data,R,this),R}finally{this.scheduleGc()}}},Ai=new WeakMap,Go=new WeakMap,Mn=new WeakMap,Oi=new WeakMap,Ft=new WeakMap,Tl=new WeakMap,Ii=new WeakMap,Qn=new WeakSet,zr=function(t){const r=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Nw(i.data,this.options),fetchMeta:t.meta??null};case"success":const a={...i,...zv(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return je(this,Go,t.manual?a:void 0),a;case"error":const l=t.error;
vendor: 13,146 bytes, line 405
405return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=r(this.state),Ut.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),D(this,Mn).notify({query:this,type:"updated",action:t})})},Ob);function Nw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zv(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function $v(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var hn,Ye,Pl,rn,Mi,Yo,$r,Is,Al,Qo,Xo,Di,Li,Ms,Jo,st,dl,_p,kp,Ep,Rp,Tp,Pp,Ap,Sw,Ib,qE=(Ib=class extends Ll{constructor(t,r){super();Le(this,st);Le(this,hn);Le(this,Ye);Le(this,Pl);Le(this,rn);Le(this,Mi);Le(this,Yo);Le(this,$r);Le(this,Is);Le(this,Al);Le(this,Qo);Le(this,Xo);Le(this,Di);Le(this,Li);Le(this,Ms);Le(this,Jo,new Set);this.options=r,je(this,hn,t),je(this,Is,null),je(this,$r,Sp()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Ye).addObserver(this),Uv(D(this,Ye),this.options)?Ge(this,st,dl).call(this):this.updateResult(),Ge(this,st,Rp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Op(D(this,Ye),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Op(D(this,Ye),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ge(this,st,Tp).call(this),Ge(this,st,Pp).call(this),D(this,Ye).removeObserver(this)}setOptions(t){const r=this.options,i=D(this,Ye);if(this.options=D(this,hn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,D(this,Ye))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ge(this,st,Ap).call(this),D(this,Ye).setOptions(this.options),r._defaulted&&!wp(this.options,r)&&D(this,hn).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Ye),observer:this});const a=this.hasListeners();a&&Wv(D(this,Ye),i,this.options,r)&&Ge(this,st,dl).call(this),this.updateResult(),a&&(D(this,Ye)!==i||Dn(this.options.enabled,D(this,Ye))!==Dn(r.enabled,D(this,Ye))||Ys(this.options.staleTime,D(this,Ye))!==Ys(r.staleTime,D(this,Ye)))&&Ge(this,st,_p).call(this);const l=Ge(this,st,kp).call(this);a&&(D(this,Ye)!==i||Dn(this.options.enabled,D(this,Ye))!==Dn(r.enabled,D(this,Ye))||l!==D(this,Ms))&&Ge(this,st,Ep).call(this,l)}getOptimisticResult(t){const r=D(this,hn).getQueryCache().build(D(this,hn),t),i=this.createResult(r,t);return GE(this,i)&&(je(this,rn,i),je(this,Yo,this.options),je(this,Mi,D(this,Ye).state)),i}getCurrentResult(){return D(this,rn)}trackResult(t,r){return new Proxy(t,{get:(i,a)=>(this.trackProp(a),r==null||r(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&D(this,$r).status==="pending"&&D(this,$r).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(t){D(this,Jo).add(t)}getCurrentQuery(){return D(this,Ye)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=D(this,hn).defaultQueryOptions(t),i=D(this,hn).getQueryCache().build(D(this,hn),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(t){return Ge(this,st,dl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,rn)))}createResult(t,r){var ne;const i=D(this,Ye),a=this.options,l=D(this,rn),d=D(this,Mi),u=D(this,Yo),m=t!==i?t.state:D(this,Pl),{state:g}=t;let y={...g},w=!1,C;if(r._optimisticResults){const Q=this.hasListeners(),ie=!Q&&Uv(t,r),ee=Q&&Wv(t,i,r,a);(ie||ee)&&(y={...y,...Nw(g.data,t.options)}),r._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:k,errorUpdatedAt:N,status:j}=y;C=y.data;let b=!1;if(r.placeholderData!==void 0&&C===void 0&&j==="pending"){let Q;l!=null&&l.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData)?(Q=l.data,b=!0):Q=typeof r.placeholderData=="function"?r.placeholderData((ne=D(this,Xo))==null?void 0:ne.state.data,D(this,Xo)):r.placeholderData,Q!==void 0&&(j="success",C=Np(l==null?void 0:l.data,Q,r),w=!0)}if(r.select&&C!==void 0&&!b)if(l&&C===(d==null?void 0:d.data)&&r.select===D(this,Al))C=D(this,Qo);else try{je(this,Al,r.select),C=r.select(C),C=Np(l==null?void 0:l.data,C,r),je(this,Qo,C),je(this,Is,null)}catch(Q){je(this,Is,Q)}D(this,Is)&&(k=D(this,Is),C=D(this,Qo),N=Date.now(),j="error");const S=y.fetchStatus==="fetching",E=j==="pending",R=j==="error",O=E&&S,$=C!==void 0,M={status:j,fetchStatus:y.fetchStatus,isPending:E,isSuccess:j==="success",isError:R,isInitialLoading:O,isLoading:O,data:C,dataUpdatedAt:y.dataUpdatedAt,error:k,errorUpdatedAt:N,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:S,isRefetching:S&&!E,isLoadingError:R&&!$,isPaused:y.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:R&&$,isStale:wm(t,r),refetch:this.refetch,promise:D(this,$r),isEnabled:Dn(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Q=M.data!==void 0,ie=M.status==="error"&&!Q,ee=W=>{ie?W.reject(M.error):Q&&W.resolve(M.data)},Z=()=>{const W=je(this,$r,M.promise=Sp());ee(W)},L=D(this,$r);switch(L.status){case"pending":t.queryHash===i.queryHash&&ee(L);break;case"fulfilled":(ie||M.data!==L.value)&&Z();break;case"rejected":(!ie||M.error!==L.reason)&&Z();break}}return M}updateResult(){const t=D(this,rn),r=this.createResult(D(this,Ye),this.options);if(je(this,Mi,D(this,Ye).state),je(this,Yo,this.options),D(this,Mi).data!==void 0&&je(this,Xo,D(this,Ye)),wp(r,t))return;je(this,rn,r);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!D(this,Jo).size)return!0;const d=new Set(l??D(this,Jo));return this.options.throwOnError&&d.add("error"),Object.keys(D(this,rn)).some(u=>{const h=u;return D(this,rn)[h]!==t[h]&&d.has(h)})};Ge(this,st,Sw).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ge(this,st,Rp).call(this)}},hn=new WeakMap,Ye=new WeakMap,Pl=new WeakMap,rn=new WeakMap,Mi=new WeakMap,Yo=new WeakMap,$r=new WeakMap,Is=new WeakMap,Al=new WeakMap,Qo=new WeakMap,Xo=new WeakMap,Di=new WeakMap,Li=new WeakMap,Ms=new WeakMap,Jo=new WeakMap,st=new WeakSet,dl=function(t){Ge(this,st,Ap).call(this);let r=D(this,Ye).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(pn)),r},_p=function(){Ge(this,st,Tp).call(this);const t=Ys(this.options.staleTime,D(this,Ye));if(Vi||D(this,rn).isStale||!bp(t))return;const i=xw(D(this,rn).dataUpdatedAt,t)+1;je(this,Di,_i.setTimeout(()=>{D(this,rn).isStale||this.updateResult()},i))},kp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,Ye)):this.options.refetchInterval)??!1},Ep=function(t){Ge(this,st,Pp).call(this),je(this,Ms,t),!(Vi||Dn(this.options.enabled,D(this,Ye))===!1||!bp(D(this,Ms))||D(this,Ms)===0)&&je(this,Li,_i.setInterval(()=>{(this.options.refetchIntervalInBackground||bm.isFocused())&&Ge(this,st,dl).call(this)},D(this,Ms)))},Rp=function(){Ge(this,st,_p).call(this),Ge(this,st,Ep).call(this,Ge(this,st,kp).call(this))},Tp=function(){D(this,Di)&&(_i.clearTimeout(D(this,Di)),je(this,Di,void 0))},Pp=function(){D(this,Li)&&(_i.clearInterval(D(this,Li)),je(this,Li,void 0))},Ap=function(){const t=D(this,hn).getQueryCache().build(D(this,hn),this.options);if(t===D(this,Ye))return;const r=D(this,Ye);je(this,Ye,t),je(this,Pl,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Sw=function(t){Ut.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(D(this,rn))}),D(this,hn).getQueryCache().notify({query:D(this,Ye),type:"observerResultsUpdated"})})},Ib);function KE(e,t){return Dn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Uv(e,t){return KE(e,t)||e.state.data!==void 0&&Op(e,t,t.refetchOnMount)}function Op(e,t,r){if(Dn(t.enabled,e)!==!1&&Ys(t.staleTime,e)!=="static"){const i=typeof r=="function"?r(e):r;return i==="always"||i!==!1&&wm(e,t)}return!1}function Wv(e,t,r,i){return(e!==t||Dn(i.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&wm(e,r)}function wm(e,t){return Dn(t.enabled,e)!==!1&&e.isStaleByTime(Ys(t.staleTime,e))}function GE(e,t){return!wp(e.getCurrentResult(),t)}function Hv(e){return{onFetch:(t,r)=>{var g,y,w,C,k;const i=t.options,a=(w=(y=(g=t.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:w.direction,l=((C=t.state.data)==null?void 0:C.pages)||[],d=((k=t.state.data)==null?void 0:k.pageParams)||[];let u={pages:[],pageParams:[]},h=0;const m=async()=>{let N=!1;const j=E=>{BE(E,()=>t.signal,()=>N=!0)},b=yw(t.options,t.fetchOptions),S=async(E,R,O)=>{if(N)return Promise.reject();if(R==null&&E.pages.length)return Promise.resolve(E);const V=(()=>{const ie={client:t.client,queryKey:t.queryKey,pageParam:R,direction:O?"backward":"forward",meta:t.options.meta};return j(ie),ie})(),M=await b(V),{maxPages:ne}=t.options,Q=O?FE:LE;return{pages:Q(E.pages,M,ne),pageParams:Q(E.pageParams,R,ne)}};if(a&&l.length){const E=a==="backward",R=E?YE:Vv,O={pages:l,pageParams:d},$=R(i,O);u=await S(O,$,E)}else{const E=e??l.length;do{const R=h===0?d[0]??i.initialPageParam:Vv(i,u);if(h>0&&R==null)break;u=await S(u,R),h++}while(h<E)}return u};t.options.persister?t.fetchFn=()=>{var N,j;return(j=(N=t.options).persister)==null?void 0:j.call(N,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=m}}}function Vv(e,{pages:t,pageParams:r}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function YE(e,{pages:t,pageParams:r}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,r[0],r):void 0}var Ol,xr,Jt,Fi,gr,ks,Mb,QE=(Mb=class extends jw{constructor(t){super();Le(this,gr);Le(this,Ol);Le(this,xr);Le(this,Jt);Le(this,Fi);je(this,Ol,t.client),this.mutationId=t.mutationId,je(this,Jt,t.mutationCache),je(this,xr,[]),this.state=t.state||XE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){D(this,xr).includes(t)||(D(this,xr).push(t),this.clearGcTimeout(),D(this,Jt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){je(this,xr,D(this,xr).filter(r=>r!==t)),this.scheduleGc(),D(this,Jt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){D(this,xr).length||(this.state.status==="pending"?this.scheduleGc():D(this,Jt).remove(this))}continue(){var t;return((t=D(this,Fi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var d,u,h,m,g,y,w,C,k,N,j,b,S,E,R,O,$,V;const r=()=>{Ge(this,gr,ks).call(this,{type:"continue"})},i={client:D(this,Ol),meta:this.options.meta,mutationKey:this.options.mutationKey};je(this,Fi,ww({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(M,ne)=>{Ge(this,gr,ks).call(this,{type:"failed",failureCount:M,error:ne})},onPause:()=>{Ge(this,gr,ks).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,Jt).canRun(this)}));const a=this.state.status==="pending",l=!D(this,Fi).canStart();try{if(a)r();else{Ge(this,gr,ks).call(this,{type:"pending",variables:t,isPaused:l}),D(this,Jt).config.onMutate&&await D(this,Jt).config.onMutate(t,this,i);const ne=await((u=(d=this.options).onMutate)==null?void 0:u.call(d,t,i));ne!==this.state.context&&Ge(this,gr,ks).call(this,{type:"pending",context:ne,variables:t,isPaused:l})}const M=await D(this,Fi).start();return await((m=(h=D(this,Jt).config).onSuccess)==null?void 0:m.call(h,M,t,this.state.context,this,i)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,M,t,this.state.context,i)),await((C=(w=D(this,Jt).config).onSettled)==null?void 0:C.call(w,M,null,this.state.variables,this.state.context,this,i)),await((N=(k=this.options).onSettled)==null?void 0:N.call(k,M,null,t,this.state.context,i)),Ge(this,gr,ks).call(this,{type:"success",data:M}),M}catch(M){try{await((b=(j=D(this,Jt).config).onError)==null?void 0:b.call(j,M,t,this.state.context,this,i))}catch(ne){Promise.reject(ne)}
405try{await((E=(S=this.options).onError)==null?void 0:E.call(S,M,t,this.state.context,i))}catch(ne){Promise.reject(ne)}try{await((O=(R=D(this,Jt).config).onSettled)==null?void 0:O.call(R,void 0,M,this.state.variables,this.state.context,this,i))}catch(ne){Promise.reject(ne)}try{await((V=($=this.options).onSettled)==null?void 0:V.call($,void 0,M,t,this.state.context,i))}catch(ne){Promise.reject(ne)}throw Ge(this,gr,ks).call(this,{type:"error",error:M}),M}finally{D(this,Jt).runNext(this)}}},Ol=new WeakMap,xr=new WeakMap,Jt=new WeakMap,Fi=new WeakMap,gr=new WeakSet,ks=function(t){const r=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ut.batch(()=>{D(this,xr).forEach(i=>{i.onMutationUpdate(t)}),D(this,Jt).notify({mutation:this,type:"updated",action:t})})},Mb);function XE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ur,Xn,Il,Db,JE=(Db=class extends Ll{constructor(t={}){super();Le(this,Ur);Le(this,Xn);Le(this,Il);this.config=t,je(this,Ur,new Set),je(this,Xn,new Map),je(this,Il,0)}build(t,r,i){const a=new QE({client:t,mutationCache:this,mutationId:++fd(this,Il)._,options:t.defaultMutationOptions(r),state:i});return this.add(a),a}add(t){D(this,Ur).add(t);const r=xd(t);if(typeof r=="string"){const i=D(this,Xn).get(r);i?i.push(t):D(this,Xn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(D(this,Ur).delete(t)){const r=xd(t);if(typeof r=="string"){const i=D(this,Xn).get(r);if(i)if(i.length>1){const a=i.indexOf(t);a!==-1&&i.splice(a,1)}else i[0]===t&&D(this,Xn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=xd(t);if(typeof r=="string"){const i=D(this,Xn).get(r),a=i==null?void 0:i.find(l=>l.state.status==="pending");return!a||a===t}else return!0}runNext(t){var i;const r=xd(t);if(typeof r=="string"){const a=(i=D(this,Xn).get(r))==null?void 0:i.find(l=>
vendor: 5,415 bytes, line 405
405l!==t&&l.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ut.batch(()=>{D(this,Ur).forEach(t=>{this.notify({type:"removed",mutation:t})}),D(this,Ur).clear(),D(this,Xn).clear()})}getAll(){return Array.from(D(this,Ur))}find(t){const r={exact:!0,...t};return this.getAll().find(i=>Lv(r,i))}findAll(t={}){return this.getAll().filter(r=>Lv(t,r))}notify(t){Ut.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Ut.batch(()=>Promise.all(t.map(r=>r.continue().catch(pn))))}},Ur=new WeakMap,Xn=new WeakMap,Il=new WeakMap,Db);function xd(e){var t;return(t=e.options.scope)==null?void 0:t.id}var yr,Lb,ZE=(Lb=class extends Ll{constructor(t={}){super();Le(this,yr);this.config=t,je(this,yr,new Map)}build(t,r,i){const a=r.queryKey,l=r.queryHash??ym(a,r);let d=this.get(l);return d||(d=new VE({client:t,queryKey:a,queryHash:l,options:t.defaultQueryOptions(r),state:i,defaultOptions:t.getQueryDefaults(a)}),this.add(d)),d}add(t){D(this,yr).has(t.queryHash)||(D(this,yr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=D(this,yr).get(t.queryHash);r&&(t.destroy(),r===t&&D(this,yr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ut.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return D(this,yr).get(t)}getAll(){return[...D(this,yr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(i=>Dv(r,i))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(i=>Dv(t,i)):r}notify(t){Ut.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ut.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ut.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},yr=new WeakMap,Lb),Nt,Ds,Ls,Zo,ea,Fs,ta,na,Fb,eR=(Fb=class{constructor(e={}){Le(this,Nt);Le(this,Ds);Le(this,Ls);Le(this,Zo);Le(this,ea);Le(this,Fs);Le(this,ta);Le(this,na);je(this,Nt,e.queryCache||new ZE),je(this,Ds,e.mutationCache||new JE),je(this,Ls,e.defaultOptions||{}),je(this,Zo,new Map),je(this,ea,new Map),je(this,Fs,0)}mount(){fd(this,Fs)._++,D(this,Fs)===1&&(je(this,ta,bm.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Nt).onFocus())})),je(this,na,Yd.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Nt).onOnline())})))}unmount(){var e,t;fd(this,Fs)._--,D(this,Fs)===0&&((e=D(this,ta))==null||e.call(this),je(this,ta,void 0),(t=D(this,na))==null||t.call(this),je(this,na,void 0))}isFetching(e){return D(this,Nt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,Ds).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=D(this,Nt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=D(this,Nt).build(this,t),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Ys(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return D(this,Nt).findAll(e).map(({queryKey:t,state:r})=>{const i=r.data;return[t,i]})}setQueryData(e,t,r){const i=this.defaultQueryOptions({queryKey:e}),a=D(this,Nt).get(i.queryHash),l=a==null?void 0:a.state.data,d=IE(t,l);if(d!==void 0)return D(this,Nt).build(this,i).setData(d,{...r,manual:!0})}setQueriesData(e,t,r){return Ut.batch(()=>D(this,Nt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=D(this,Nt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=D(this,Nt);Ut.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=D(this,Nt);return Ut.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},i=Ut.batch(()=>D(this,Nt).findAll(e).map(a=>a.cancel(r)));return Promise.all(i).then(pn).catch(pn)}invalidateQueries(e,t={}){return Ut.batch(()=>(D(this,Nt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},i=Ut.batch(()=>D(this,Nt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,r);return r.throwOnError||(l=l.catch(pn)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(pn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=D(this,Nt).build(this,t);return r.isStaleByTime(Ys(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pn).catch(pn)}fetchInfiniteQuery(e){return e.behavior=Hv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pn).catch(pn)}ensureInfiniteQueryData(e){return e.behavior=Hv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Yd.isOnline()?D(this,Ds).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Nt)}getMutationCache(){return D(this,Ds)}getDefaultOptions(){return D(this,Ls)}setDefaultOptions(e){je(this,Ls,e)}setQueryDefaults(e,t){D(this,Zo).set(bl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...D(this,Zo).values()],r={};return t.forEach(i=>
405{wl(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,t){D(this,ea).set(bl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...D(this,ea).values()],r={};return t.forEach(i=>{wl(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...D(this,Ls).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ym(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===vm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...D(this,Ls).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,Nt).clear(),D(this,Ds).clear()}},Nt=new WeakMap,Ds=new WeakMap,Ls=new WeakMap,Zo=new WeakMap,ea=new WeakMap,Fs=new WeakMap,ta=new WeakMap,na=new WeakMap,Fb),Cw=p.createContext(void 0),tR=e=>{const t=p.useContext(Cw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},nR=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),n.jsx(Cw.Provider,{value:e,children:t})),_w=p.createContext(!1),rR=()=>p.useContext(_w);_w.Provider;function sR(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var iR=p.createContext(sR()),oR=()=>p.useContext(iR),aR=(e,t,r)=>{const i=r!=null&&r.state.error&&typeof e.throwOnError=="function"?vw(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},lR=e=>{p.useEffect(()=>{e.clearReset()},[e])},cR=({result:e,errorResetBoundary:t,throwOnError:r,query:i,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(a&&e.data===void 0||vw(r,[e.error,i])),dR=e=>{if(e.suspense){const r=a=>a==="static"?a:Math.max(a??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...a)=>r(i(...a)):r(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},uR=(e,t)=>e.isLoading&&e.isFetching&&!t,fR=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,qv=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function hR(e,t,r){var w,C,k,N;const i=rR(),a=oR(),l=tR(),d=l.defaultQueryOptions(e);(C=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||C.call(w,d);const u=l.getQueryCache().get(d.queryHash);d._optimisticResults=i?"isRestoring":"optimistic",dR(d),aR(d,a,u),lR(a);const h=!l.getQueryCache().get(d.queryHash),[m]=p.useState(()=>new t(l,d)),g=m.getOptimisticResult(d),y=!i&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(j=>{const b=y?m.subscribe(Ut.batchCalls(j)):pn;return m.updateResult(),b},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),p.useEffect(()=>{m.setOptions(d)},[d,m]),fR(d,g))throw qv(d,m,a);if(cR({result:g,errorResetBoundary:a,throwOnError:d.throwOnError,query:u,suspense:d.suspense}))throw g.error;if((N=(k=l.getDefaultOptions().queries)==null?void 0:k._experimental_afterQuery)==null||N.call(k,d,g),d.experimental_prefetchInRender&&!Vi&&uR(g,i)){const j=h?qv(d,m,a):u==null?void 0:u.promise;j==null||j.catch(pn).finally(()=>{m.updateResult()})}return d.notifyOnChangeProps?g:m.trackResult(g)}function pR(e,t){return hR(e,qE)}const mR=new eR({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var Fl=Bb();const xR=dm(Fl);/**
406 * @remix-run/router v1.23.2
407 *
408 * Copyright (c) Remix Software Inc.
409 *
410 * This source code is licensed under the MIT license found in the
411 * LICENSE.md file in the root directory of this source tree.
412 *
413 * @license MIT
414 */function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},jl.apply(this,arguments)}var zs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(zs||(zs={}));const Kv="popstate";function gR(e){e===void 0&&(e={});function t(i,a){let{pathname:l,search:d,hash:u}=i.location;return Ip("",{pathname:l,search:d,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
vendor: 11,602 bytes, lines 414-423
414function r(i,a){return typeof a=="string"?a:Qd(a)}return vR(t,r,null,e)}function Rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yR(){return Math.random().toString(36).substr(2,8)}function Gv(e,t){return{usr:e.state,key:e.key,idx:t}}function Ip(e,t,r,i){return r===void 0&&(r=null),jl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?da(t):t,{state:r,key:t&&t.key||i||yR()})}function Qd(e){let{pathname:t="/",search:r="",hash:i=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function da(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function vR(e,t,r,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:l=!1}=i,d=a.history,u=zs.Pop,h=null,m=g();m==null&&(m=0,d.replaceState(jl({},d.state,{idx:m}),""));function g(){return(d.state||{idx:null}).idx}function y(){u=zs.Pop;let j=g(),b=j==null?null:j-m;m=j,h&&h({action:u,location:N.location,delta:b})}function w(j,b){u=zs.Push;let S=Ip(N.location,j,b);m=g()+1;let E=Gv(S,m),R=N.createHref(S);try{d.pushState(E,"",R)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(R)}l&&h&&h({action:u,location:N.location,delta:1})}function C(j,b){u=zs.Replace;let S=Ip(N.location,j,b);m=g();let E=Gv(S,m),R=N.createHref(S);d.replaceState(E,"",R),l&&h&&h({action:u,location:N.location,delta:0})}function k(j){let b=a.location.origin!=="null"?a.location.origin:a.location.href,S=typeof j=="string"?j:Qd(j);return S=S.replace(/ $/,"%20"),Rt(b,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,b)}let N={get action(){return u},get location(){return e(a,d)},listen(j){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(Kv,y),h=j,()=>{a.removeEventListener(Kv,y),h=null}},createHref(j){return t(a,j)},createURL:k,encodeLocation(j){let b=k(j);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:w,replace:C,go(j){return d.go(j)}};return N}var Yv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yv||(Yv={}));function bR(e,t,r){return r===void 0&&(r="/"),wR(e,t,r)}function wR(e,t,r,i){let a=typeof t=="string"?da(t):t,l=Nm(a.pathname||"/",r);if(l==null)return null;let d=kw(e);jR(d);let u=null;for(let h=0;u==null&&h<d.length;++h){let m=IR(l);u=PR(d[h],m)}return u}function kw(e,t,r,i){t===void 0&&(t=[]),r===void 0&&(r=[]),i===void 0&&(i="");let a=(l,d,u)=>{let h={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:d,route:l};h.relativePath.startsWith("/")&&(Rt(h.relativePath.startsWith(i),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(i.length));let m=Qs([i,h.relativePath]),g=r.concat(h);l.children&&l.children.length>0&&(Rt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),kw(l.children,t,g,m)),!(l.path==null&&!l.index)&&t.push({path:m,score:RR(m,l.index),routesMeta:g})};return e.forEach((l,d)=>{var u;if(l.path===""||!((u=l.path)!=null&&u.includes("?")))a(l,d);else for(let h of Ew(l.path))a(l,d,h)}),t}function Ew(e){let t=e.split("/");if(t.length===0)return[];let[r,...i]=t,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(i.length===0)return a?[l,""]:[l];let d=Ew(i.join("/")),u=[];return u.push(...d.map(h=>h===""?l:[l,h].join("/"))),a&&u.push(...d),u.map(h=>e.startsWith("/")&&h===""?"/":h)}function jR(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:TR(t.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}const NR=/^:[\w-]+$/,SR=3,CR=2,_R=1,kR=10,ER=-2,Qv=e=>e==="*";function RR(e,t){let r=e.split("/"),i=r.length;return r.some(Qv)&&(i+=ER),t&&(i+=CR),r.filter(a=>!Qv(a)).reduce((a,l)=>a+(NR.test(l)?SR:l===""?_R:kR),i)}function TR(e,t){return e.length===t.length&&e.slice(0,-1).every((i,a)=>i===t[a])?e[e.length-1]-t[t.length-1]:0}function PR(e,t,r){let{routesMeta:i}=e,a={},l="/",d=[];for(let u=0;u<i.length;++u){let h=i[u],m=u===i.length-1,g=l==="/"?t:t.slice(l.length)||"/",y=AR({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},g),w=h.route;if(!y)return null;Object.assign(a,y.params),d.push({params:a,pathname:Qs([l,y.pathname]),pathnameBase:BR(Qs([l,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(l=Qs([l,y.pathnameBase]))}return d}function AR(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=OR(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let l=a[0],d=l.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:i.reduce((m,g,y)=>{let{paramName:w,isOptional:C}=g;if(w==="*"){let N=u[y]||"";d=l.slice(0,l.length-N.length).replace(/(.)\/+$/,"$1")}const k=u[y];return C&&!k?m[w]=void 0:m[w]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:d,pattern:e}}function OR(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),jm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,u,h)=>(i.push({paramName:u,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),i]}function IR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Nm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}const MR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,DR=e=>MR.test(e);function LR(e,t){t===void 0&&(t="/");let{pathname:r,search:i="",hash:a=""}=typeof e=="string"?da(e):e,l;if(r)if(DR(r))l=r;else{if(r.includes("//")){let d=r;r=r.replace(/\/\/+/g,"/"),jm(!1,"Pathnames cannot have embedded double slashes - normalizing "+(d+" -> "+r))}r.startsWith("/")?l=Xv(r.substring(1),"/"):l=Xv(r,t)}else l=t;return{pathname:l,search:zR(i),hash:$R(a)}}function Xv(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Hh(e,t,r,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function FR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Rw(e,t){let r=FR(e);return t?r.map((i,a)=>a===r.length-1?i.pathname:i.pathnameBase):r.map(i=>i.pathnameBase)}function Tw(e,t,r,i){i===void 0&&(i=!1);let a;typeof e=="string"?a=da(e):(a=jl({},e),Rt(!a.pathname||!a.pathname.includes("?"),Hh("?","pathname","search",a)),Rt(!a.pathname||!a.pathname.includes("#"),Hh("#","pathname","hash",a)),Rt(!a.search||!a.search.includes("#"),Hh("#","search","hash",a)));let l=e===""||a.pathname==="",d=l?"/":a.pathname,u;if(d==null)u=r;else{let y=t.length-1;if(!i&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),y-=1;a.pathname=w.join("/")}u=y>=0?t[y]:"/"}let h=LR(a,u),m=d&&d!=="/"&&d.endsWith("/"),g=(l||d===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(m||g)&&(h.pathname+="/"),h}const Qs=e=>e.join("/").replace(/\/\/+/g,"/"),BR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$R=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function UR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Pw=["post","put","patch","delete"];new Set(Pw);const WR=["get",...Pw];new Set(WR);/**
415 * React Router v6.30.3
416 *
417 * Copyright (c) Remix Software Inc.
418 *
419 * This source code is licensed under the MIT license found in the
420 * LICENSE.md file in the root directory of this source tree.
421 *
422 * @license MIT
423 */function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Nl.apply(this,arguments)}const Sm=p.createContext(null),HR=p.createContext(null),to=p.createContext(null),hu=p.createContext(null),no=p.createContext({outlet:null,matches:[],isDataRoute:!1}),Aw=p.createContext(null);function VR(e,t){let{relative:r}=t===void 0?{}:t;Bl()||Rt(!1);let{basename:i,navigator:a}=p.useContext(to),{hash:l,pathname:d,search:u}=Iw(e,{relative:r}),h=d;return i!=="/"&&(h=d==="/"?i:Qs([i,d])),a.createHref({pathname:h,search:u,hash:l})}function Bl(){return p.useContext(hu)!=null}function ua(){return Bl()||Rt(!1),p.useContext(hu).location}function Ow(e){p.useContext(to).static||p.useLayoutEffect(e)}function qR(){let{isDataRoute:e}=p.useContext(no);return e?i4():KR()}function KR(){Bl()||Rt(!1);let e=p.useContext(Sm),{basename:t,future:r,navigator:i}=p.useContext(to),{matches:a}=p.useContext(no),{pathname:l}=ua(),d=JSON.stringify(Rw(a,r.v7_relativeSplatPath)),u=p.useRef(!1);return Ow(()=>{u.current=!0}),p.useCallback(function(m,g){if(g===void 0&&(g={}),!u.current)return;if(typeof m=="number"){i.go(m);return}let y=Tw(m,JSON.parse(d),l,g.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:Qs([t,y.pathname])),(g.replace?i.replace:i.push)(y,g.state,g)},[t,i,d,l,e])}function Iw(e,t){let{relative:r}=t===void 0?{}:t,{future:i}=p.useContext(to),{matches:a}=p.useContext(no),{pathname:l}=ua(),d=JSON.stringify(Rw(a,i.v7_relativeSplatPath));return p.useMemo(()=>Tw(e,JSON.parse(d),l,r==="path"),[e,d,l,r])}function GR(e,t){return YR(e,t)}function YR(e,t,r,i){Bl()||Rt(!1);let{navigator:a}=p.useContext(to),{matches:l}=p.useContext(no),d=l[l.length-1],u=d?d.params:{};d&&d.pathname;let h=d?d.pathnameBase:"/";d&&d.route;let m=ua(),g;if(t){var y;let j=typeof t=="string"?da(t):t;h==="/"||(y=j.pathname)!=null&&y.startsWith(h)||Rt(!1),g=j}else g=m;let w=g.pathname||"/",C=w;if(h!=="/"){let j=h.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(j.length).join("/")}let k=bR(e,{pathname:C}),N=e4(k&&k.map(j=>Object.assign({},j,{params:Object.assign({},u,j.params),pathname:Qs([h,a.encodeLocation?a.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?h:Qs([h,a.encodeLocation?a.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),l,r,i);return t&&N?p.createElement(hu.Provider,{value:{location:Nl({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:zs.Pop}},N):N}function QR(){let e=s4(),t=UR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application 
423Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:a},r):null,null)}const XR=p.createElement(QR,null);class JR extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?p.createElement(no.Provider,{value:this.props.routeContext},p.createElement(Aw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ZR(e){let{routeContext:t,match:r,children:i}=e,a=p.useContext(Sm);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(no.Provider,{value:t},i)}function e4(e,t,r,i){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),i===void 0&&(i=null),e==null){var l;if(!r)return null;if(r.errors)e=r.matches;else if((l=i)!=null&&l.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let d=e,u=(a=r)==null?void 0:a.errors;if(u!=null){let g=d.findIndex(y=>y.route.id&&(u==null?void 0:u[y.route.id])!==void 0);g>=0||Rt(!1),d=d.slice(0,Math.min(d.length,g+1))}let h=!1,m=-1;if(r&&i&&i.v7_partialHydration)for(let g=0;g<d.length;g++){let y=d[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(m=g),y.route.id){let{loaderData:w,errors:C}=r,k=y.route.loader&&w[y.route.id]===void 0&&(!C||C[y.route.id]===void 0);if(y.route.lazy||k){h=!0,m>=0?d=d.slice(0,m+1):d=[d[0]];break}}}return d.reduceRight((g,y,w)=>{let C,k=!1,N=null,j=null;r&&(C=u&&y.route.id?u[y.route.id]:void 0,N=y.route.errorElement||XR,h&&(m<0&&w===0?(o4("route-fallback"),k=!0,j=null):m===w&&(k=!0,j=y.route.hydrateFallbackElement||null)));let b=t.concat(d.slice(0,w+1)),S=()=>{let E;return C?E=N:k?E=j:y.route.Component?E=p.createElement(y.route.Component,null):y.route.element?E=y.route.element:E=g,p.createElement(ZR,{match:y,routeContext:{outlet:g,matches:b,isDataRoute:r!=null},children:E})};return r&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?p.createElement(JR,{location:r.location,revalidation:r.revalidation,component:N,error:C,children:S(),routeC
423ontext:{outlet:null,matches:b,isDataRoute:!0}}):S()},null)}var Mw=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Mw||{}),Dw=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Dw||{});function t4(e){let t=p.useContext(Sm);return t||Rt(!1),t}function n4(e){let t=p.useContext(HR);return t||Rt(!1),t}function r4(e){let t=p.useContext(no);return t||Rt(!1),t}function Lw(e){let t=r4(),r=t.matches[t.matches.length-1];return r.route.id||Rt(!1),r.route.id}function s4(){var e;let t=p.useContext(Aw),r=n4(),i=Lw();return t!==void 0?t:(e=r.errors)==null?void 0:e[i]}function i4(){let{router:e}=t4(Mw.UseNavigateStable),t=Lw(Dw.UseNavigateStable),r=p.useRef(!1);return Ow(()=>{r.current=!0}),p.useCallback(function(a,l){l===void 0&&(l={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Nl({fromRouteId:t},l)))},[e,t])}const Jv={};function o4(e,t,r){Jv[e]||(Jv[e]=!0)}function a4(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Bo(e){Rt(!1)}function l4(e){let{basename:t="/",children:r=null,location:i,navigationType:a=zs.Pop,navigator:l,static:d=!1,future:u}=e;Bl()&&Rt(!1);let h=t.replace(/^\/*/,"/"),m=p.useMemo(()=>({basename:h,navigator:l,static:d,future:Nl({v7_relativeSplatPath:!1},u)}),[h,u,l,d]);typeof i=="string"&&(i=da(i));let{pathname:g="/",search:y="",hash:w="",state:C=null,key:k="default"}=i,N=p.useMemo(()=>{let j=Nm(g,h);return j==null?null:{location:{pathname:j,search:y,hash:w,state:C,key:k},navigationType:a}},[h,g,y,w,C,k,a]);return N==null?null:p.createElement(to.Provider,{value:m},p.createElement(hu.Provider,{children:r,value:N}))}function c4(e){let{children:t,location:r}=e;return GR(Mp(t),r)}new Promise(()=>{});function Mp(e,t){t===void 0&&(t=[]);let r=[];return p.Children.forEach(e,(i,a)=>{if(!p.isValidElement(i))return;let l=[...t,a];if(i.type===p.Fragment){r.push.apply(r,Mp(i.props.children,l));return}i.type!==Bo&&Rt(!1),!i.props.index||!i.props.children||Rt(!1);let d={id:i.props.id||l.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=Mp(i.props.children,l)),r.push(d)}),r}/**
424 * React Router DOM v6.30.3
425 *
426 * Copyright (c) Remix Software Inc.
427 *
428 * This source code is licensed under the MIT license found in the
429 * LICENSE.md file in the root directory of this source tree.
430 *
431 * @license MIT
432 */function Dp(){return Dp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Dp.apply(this,arguments)}function d4(e,t){if(e==null)return{};var r={},i=Object.keys(e),a,l;for(l=0;l<i.length;l++)a=i[l],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function u4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function f4(e,t){return e.button===0&&(!t||t==="_self")&&!u4(e)}const h4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],p4="6";try{window.__reactRouterVersion=p4}catch{}const m4="startTransition",Zv=fu[m4];function x4(e){let{basename:t,children:r,future:i,window:a}=e,l=p.useRef();l.current==null&&(l.current=gR({window:a,v5Compat:!0}));let d=l.current,[u,h]=p.useState({action:d.action,location:d.location}),{v7_startTransition:m}=i||{},g=p.useCallback(y=>{m&&Zv?Zv(()=>h(y)):h(y)},[h,m]);return p.useLayoutEffect(()=>d.listen(g),[d,g]),p.useEffect(()=>a4(i),[i]),p.createElement(l4,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:d,future:i})}const g4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,We=p.forwardRef(function(t,r){let{onClick:i,relative:a,reloadDocument:l,replace:d,state:u,target:h,to:m,preventScrollReset:g,viewTransition:y}
432=t,w=d4(t,h4),{basename:C}=p.useContext(to),k,N=!1;if(typeof m=="string"&&y4.test(m)&&(k=m,g4))try{let E=new URL(window.location.href),R=m.startsWith("//")?new URL(E.protocol+m):new URL(m),O=Nm(R.pathname,C);R.origin===E.origin&&O!=null?m=O+R.search+R.hash:N=!0}catch{}let j=VR(m,{relative:a}),b=v4(m,{replace:d,state:u,target:h,preventScrollReset:g,relative:a,viewTransition:y});function S(E){i&&i(E),E.defaultPrevented||b(E)}return p.createElement("a",Dp({},w,{href:k||j,onClick:N||l?i:S,ref:r,target:h}))});var e0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(e0||(e0={}));var t0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(t0||(t0={}));function v4(e,t){let{target:r,replace:i,state:a,preventScrollReset:l,relative:d,viewTransition:u}=t===void 0?{}:t,h=qR(),m=ua(),g=Iw(e,{relative:d});return p.useCallback(y=>{if(f4(y,r)){y.preventDefault();let w=i!==void 0?i:Qd(m)===Qd(g);h(e,{replace:w,state:a,preventScrollReset:l,relative:d,viewTransition:u})}},[m,h,g,i,a,r,e,l,d,u])}function ze(e){return"/"+e.replace(/ /g,"-")}function n0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jr(...e){return t=>{let r=!1;const i=e.map(a=>{const l=n0(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():n0(e[a],null)}}}}function Xe(...e){return p.useCallback(Jr(...e),e)}var b4=Symbol.for("react.lazy"),Xd=fu[" use ".trim().toString()];function w4(e){return typeof e=="object"&&e!==null&&"then"in e}function Fw(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===b4&&"_payload"in e&&w4(e._payload)}function Bw(e){const t=N4(e),r=p.forwardRef((i,a)=>{let{children:l,...d}=i;Fw(l)&&typeof Xd=="function"&&(l=Xd(l._payload));const u=p.Children.toArray(l),h=u.find(C4);if(h){const m=h.props.children,g=u.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return n.jsx(t,{...d,ref:a,children:p.isValidElement(m)?p.cloneElement(m,void 0,g):null})}return n.jsx(t,{...d,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}var j4=Bw("Slot");function N4(e){const t=p.forwardRef((r,i)=>{let{children:a,...l}=r;if(Fw(a)&&typeof Xd=="function"&&(a=Xd(a._payload)),p.isValidElement(a)){const d=k4(a),u=_4(l,a.props);return a.type!==p.Fragment&&(u.ref=i?Jr(i,d):d),p.cloneElement(a,u)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var S4=Symbol("radix.slottable");function C4(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===S4}function _4(e,t){const r={...t};for(const i in t){const a=e[i],l=t[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...u)=>{const h=l(...u);return a(...u),h}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function k4(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Cm=ca("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),oe=p.forwardRef(({className:e,variant:t,size:r,asChild:i=!1,...a},l)=>{const d=i?j4:"button";return n.jsx(d,{className:Pe(Cm({variant:t,size:r,className:e})),ref:l,...a})});oe.displayName="Button";function E4(){return n.jsxs("section",{className:"relative bg-gradient-to-br from-gray-50 to-blue-50 overflow-hidden",children:[n.jsxs("div",{className:"absolute inset-0",children:[n.jsx("div",{className:"absolute top-0 left-0 w-96 h-96 bg-[var(--brand-light-blue)] opacity-10 rounded-full blur-3xl -translate-x-1/2 -translate-y-1/2"}),n.jsx("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-[var(--brand-navy)] opacity-10 rounded-full blur-3xl translate-x-1/2 translate-y-1/2"})]}),n.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 lg:py-28",children:n.jsxs("div",{className:"text-center",children:[n.jsxs("div",{className:"inline-flex items-center bg-white rounded-full px-4 py-2 mb-8 shadow-sm",children:[n.jsx(Sv,{className:"w-4 h-4 text-[var(--brand-light-blue)] mr-2"}),n.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Trusted by 500+ Local Businesses"})]}),n.jsxs("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-bold text-black leading-tight mb-6",children:["Reliable, Local, and",n.jsx("br",{}),n.jsx("span",{className:"brand-text-gradient",children:"Professional Tax Services"})]}),n.jsx("p",{className:"text-xl md:text-2xl text-gray-600 max-w-3xl mx-auto mb-12 leading-relaxed",children:"AMC Tax Services provides comprehensive tax solutions and business consulting to help you maximize returns and minimize stress. Your financial success is our priority."}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-16",children:[n.jsx(We,{to:ze("Consultation"),children:n.jsxs(oe,{size:"lg",className:"brand-gradient text-white px-8 py-4 text-lg font-semibold rounded-xl hover:opacity-90 transition-all duration-300 transform hover:scale-105 shadow-lg",children:["Book a Free Consultation",n.jsx(Ui,{className:"w-5 h-5 ml-2"})]})}),n.jsx(We,{to:ze("Services"),children:n.jsx(oe,{variant:"outline",size:"lg",className:"px-8 py-4 text-lg font-semibold rounded-xl border-2 border-[var(--brand-navy)] text-[var(--brand-navy)] hover:bg-[var(--brand-navy)] hover:text-white transition-all duration-300",children:"View Our Services"})})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto",children:[n.jsxs("div",{className:"flex flex-col items-center text-center",children:[n.jsx("div",{className:"w-16 h-16 bg-white rounded-2xl shadow-lg flex items-center justify-center mb-4",children:n.jsx(sa,{className:"w-8 h-8 text-[var(--brand-light-blue)]"})}),n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"100% Secure"}),n.jsx("p",{className:"text-gray-600",children:"Your documents and data are protected with bank-level encryption"})]}),n.jsxs("div",{className:"flex flex-col items-center text-center",children:[n.jsx("div",{className:"w-16 h-16 bg-white rounded-2xl shadow-lg flex items-center justify-center mb-4",children:n.jsx(Zt,{className:"w-8 h-8 text-[var(--brand-light-blue)]"})}),n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Fast Turnaround"}),n.jsx("p",{className:"text-gray-600",children:"Most tax returns are submitted to the IRS right away and acknowledged within 24–48 hours."})]}),n.jsxs("div",{className:"flex flex-col items-center text-center",children:[n.jsx("div",{className:"w-16 h-16 bg-white rounded-2xl shadow-lg flex items-center justify-center mb-4",children:n.jsx(Sv,{className:"w-8 h-8 text-[var(--brand-light-blue)]"})}),n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Expert Team"}),n.jsx("p",{className:"text-gray-600",children:"Certified professionals with 15+ years of tax experience"})]})]})]})})]})}const ke=p.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Pe("rounded-xl border bg-card text-card-foreground shadow",e),...t}));
432ke.displayName="Card";const qe=p.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Pe("flex flex-col space-y-1.5 p-6",e),...t}));qe.displayName="CardHeader";const Ke=p.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Pe("font-semibold leading-none tracking-tight",e),...t}));Ke.displayName="CardTitle";const R4=p.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Pe("text-sm text-muted-foreground",e),...t}));R4.displayName="CardDescription";const Re=p.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Pe("p-6 pt-0",e),...t}));Re.displayName="CardContent";const T4=p.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Pe("flex items-center p-6 pt-0",e),...t}));T4.displayName="CardFooter";const P4=[{icon:jn,title:"Individual Tax Returns",description:"Expert preparation of personal tax returns with maximum deduction optimization and accurate filing.",color:"text-blue-600"},{icon:bt,title:"Business Tax Services",description:"Comprehensive tax solutions for corporations, S-Corps, LLCs, and sole proprietorships.",color:"text-green-600"},{icon:Nn,title:"Tax Planning & Strategy",description:"Proactive planning to minimize tax liabilities and optimize your financial future.",color:"text-purple-600"},{icon:Hi,title:"IRS Representation",description:"Professional representation during audits and negotiations with tax authorities.",color:"text-orange-600"}];function A4(){return n.jsx("section",{className:"py-20 lg:py-28 bg-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-black mb-6",children:"Comprehensive Tax & Business Solutions"}),n.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed",children:"From individual returns to complex business tax strategies, we provide the expertise and personalized service you need to achieve financial success."})]}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12",children:P4.map((e,t)=>n.jsx(ke,{className:"group hover:shadow-xl transition-all duration-300 transform hover:-translate-y-2 border-0 shadow-lg",children:n.jsxs(Re,{className:"p-8 text-center",children:[n.jsx("div",{className:"w-16 h-16 mx-auto mb-6 bg-gray-50 rounded-2xl flex items-center justify-center group-hover:bg-gradient-to-br group-hover:from-[var(--brand-light-blue)] group-hover:to-[var(--brand-navy)] transition-all duration-300",children:n.jsx(e.icon,{className:`w-8 h-8 ${e.color} group-hover:text-white transition-colors duration-300`})}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:e.title}),n.jsx("p",{className:"text-gray-600 leading-relaxed",children:e.description})]})},t))}),n.jsx("div",{className:"text-center",children:n.jsx(We,{to:ze("Services"),children:n.jsxs(oe,{size:"lg",variant:"outline",className:"px-8 py-4 text-lg font-semibold rounded-xl border-2 border-[var(--brand-navy)] text-[var(--brand-navy)] hover:bg-[var(--brand-navy)] hover:text-white transition-all duration-300",children:["View All Services",n.jsx(Ui,{className:"w-5 h-5 ml-2"})]})})})]})})}const O4=[{name:"Sarah Johnson",business:"Local Restaurant Owner",content:"AMC Tax Services has been handling our business taxes for 3 years. Their expertise saved us thousands in tax liabilities and their service is always professional and timely.",rating:5,avatar:"SJ"},{name:"Michael Chen",business:"Freelance Consultant",content:"As a gig worker, my taxes were complicated. AMC made the process simple and found deductions I didn't even know existed. Highly recommended!",rating:5,avatar:"MC"},{name:"Jennifer Davis",business:"Small Business Owner",content:"The team at AMC is knowledgeable, responsive, and truly cares about their clients. They've helped streamline our financial processes and save money.",rating:5,avatar:"JD"}];function I4(){return n.jsx("section",{className:"py-20 lg:py-28 bg-gradient-to-br from-gray-50 to-blue-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsxs("div",{className:"inline-flex items-center bg-white rounded-full px-4 py-2 mb-6 shadow-sm",children:[n.jsx(Zn,{className:"w-4 h-4 text-yellow-500 mr-2"}),n.jsx("span",{className:"text-sm font-medium text-gray-700",children:"4.9/5 Rating from 200+ Reviews"})]}),n.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-black mb-6",children:"What Our Clients Say"}),n.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Don't just take our word for it. Here's what our satisfied clients have to say about our services."})]}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:O4.map((e,t)=>n.jsx(ke,{className:"bg-white border-0 shadow-lg hover:shadow-xl transition-shadow duration-300",children:n.jsxs(Re,{className:"p-8",children:[n.jsxs("div",{className:"flex items-center mb-6",children:[n.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] rounded-full flex items-center justify-center mr-4",children:n.jsx("span",{className:"text-white font-semibold",children:e.avatar})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-semibold text-gray-900",children:e.name}),n.jsx("p",{className:"text-sm text-gray-600",children:e.business})]})]}),n.jsx("div",{className:"flex items-center mb-4",children:[...Array(e.rating)].map((r,i)=>n.jsx(Zn,{className:"w-5 h-5 text-yellow-500 fill-current"},i))}),n.jsxs("div",{className:"relative",children:[n.jsx(g5,{className:"w-8 h-8 text-[var(--brand-light-blue)] opacity-20 absolute -top-2 -left-2"}),n.jsx("p",{className:"text-gray-700 leading-relaxed pl-6",children:e.content})]})]})},t))})]})})}var Vh={};function zw(e,t){return function(){return e.apply(t,arguments)}}const{toString:M4}=Object.prototype,{getPrototypeOf:ia}=Object,{iterator:zl,toStringTag:$w}=Symbol,Jd=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Sl=(e,t)=>{let r=e;const i=[];for(;r!=null&&r!==Object.prototype;){if(i.indexOf(r)!==-1)return!1;if(i.push(r),Jd(r,t))return!0;r=ia(r)}return!1},D4=(e,t)=>
vendor: 9,057 bytes, lines 432-433
432e!=null&&Sl(e,t)?e[t]:void 0,_m=(e=>t=>{const r=M4.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),or=e=>(e=e.toLowerCase(),t=>_m(t)===e),pu=e=>t=>typeof t===e,{isArray:qi}=Array,oa=pu("undefined");function fa(e){return e!==null&&!oa(e)&&e.constructor!==null&&!oa(e.constructor)&&mn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uw=or("ArrayBuffer");function L4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Uw(e.buffer),t}const F4=pu("string"),mn=pu("function"),Ww=pu("number"),ha=e=>e!==null&&typeof e=="object",B4=e=>e===!0||e===!1,Od=e=>{if(!ha(e))return!1;const t=ia(e);return(t===null||t===Object.prototype||ia(t)===null)&&!Sl(e,$w)&&!Sl(e,zl)},z4=e=>{if(!ha(e)||fa(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$4=or("Date"),U4=or("File"),W4=e=>!!(e&&typeof e.uri<"u"),H4=e=>e&&typeof e.getParts<"u",V4=or("Blob"),q4=or("FileList"),K4=e=>ha(e)&&mn(e.pipe);function G4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const r0=G4(),s0=typeof r0.FormData<"u"?r0.FormData:void 0,Y4=e=>{if(!e)return!1;if(s0&&e instanceof s0)return!0;const t=ia(e);if(!t||t===Object.prototype||!mn(e.append))return!1;const r=_m(e);return r==="formdata"||r==="object"&&mn(e.toString)&&e.toString()==="[object FormData]"},Q4=or("URLSearchParams"),[X4,J4,Z4,eT]=["ReadableStream","Request","Response","Headers"].map(or),tT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $l(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let i,a;if(typeof e!="object"&&(e=[e]),qi(e))for(i=0,a=e.length;i<a;i++)t.call(null,e[i],i,e);else{if(fa(e))return;const l=r?Object.getOwnPropertyNames(e):Object.keys(e),d=l.length;let u;for(i=0;i<d;i++)u=l[i],t.call(null,e[u],u,e)}}function Hw(e,t){if(fa(e))return null;t=t.toLowerCase();const r=Object.keys(e);let i=r.length,a;for(;i-- >0;)if(a=r[i],t===a.toLowerCase())return a;return null}const ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vw=e=>!oa(e)&&e!==ki;function Lp(...e){const{caseless:t,skipUndefined:r}=Vw(this)&&this||{},i={},a=(l,d)=>{if(d==="__proto__"||d==="constructor"||d==="prototype")return;const u=t&&typeof d=="string"&&Hw(i,d)||d,h=Jd(i,u)?i[u]:void 0;Od(h)&&Od(l)?i[u]=Lp(h,l):Od(l)?i[u]=Lp({},l):qi(l)?i[u]=l.slice():(!r||!oa(l))&&(i[u]=l)};for(let l=0,d=e.length;l<d;l++){const u=e[l];if(!u||fa(u)||($l(u,a),typeof u!="object"||qi(u)))continue;const h=Object.getOwnPropertySymbols(u);for(let m=0;m<h.length;m++){const g=h[m];hT.call(u,g)&&a(u[g],g)}}return i}const nT=(e,t,r,{allOwnKeys:i}={})=>($l(t,(a,l)=>{r&&mn(a)?Object.defineProperty(e,l,{__proto__:null,value:zw(a,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),rT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sT=(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},iT=(e,t,r,i)=>{let a,l,d;const u={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),l=a.length;l-- >0;)d=a[l],(!i||i(d,e,t))&&!u[d]&&(t[d]=e[d],u[d]=!0);e=r!==!1&&ia(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},oT=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return i!==-1&&i===r},aT=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Ww(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},lT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ia(Uint8Array)),cT=(e,t)=>{const i=(e&&e[zl]).call(e);let a;for(;(a=i.next())&&!a.done;){const l=a.value;t.call(e,l[0],l[1])}},dT=(e,t)=>{let r;const i=[];for(;(r=e.exec(t))!==null;)i.push(r);return i},uT=or("HTMLFormElement"),fT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,a){return i.toUpperCase()+a}),{propertyIsEnumerable:hT}=Object.prototype,pT=or("RegExp"),qw=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};$l(r,(a,l)=>{let d;(d=t(a,l,e))!==!1&&(i[l]=d||a)}),Object.defineProperties(e,i)},mT=e=>{qw(e,(t,r)=>{if(mn(e)&&["arguments","caller","callee"].includes(r))return!1;const i=e[r];if(mn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},xT=(e,t)=>{const r={},i=a=>{a.forEach(l=>{r[l]=!0})};return qi(e)?i(e):i(String(e).split(t)),r},gT=()=>{},yT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vT(e){return!!(e&&mn(e.append)&&e[$w]==="FormData"&&e[zl])}const bT=e=>{const t=new WeakSet,r=i=>{if(ha(i)){if(t.has(i))return;if(fa(i))return i;if(!("toJSON"in i)){t.add(i);const a=qi(i)?[]:{};return $l(i,(l,d)=>{const u=r(l);!oa(u)&&(a[d]=u)}),t.delete(i),a}}return i};return r(e)},wT=or("AsyncFunction"),jT=e=>e&&(ha(e)||mn(e))&&mn(e.then)&&mn(e.catch),Kw=((e,t)=>e?setImmediate:t?((r,i)=>(ki.addEventListener("message",({source:a,data:l})=>{a===ki&&l===r&&i.length&&i.shift()()},!1),a=>{i.push(a),ki.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",mn(ki.postMessage)),NT=typeof queueMicrotask<"u"?queueMicrotask.bind(ki):typeof process<"u"&&process.nextTick||Kw,Gw=e=>e!=null&&mn(e[zl]),ST=e=>e!=null&&Sl(e,zl)&&Gw(e),z={isArray:qi,isArrayBuffer:Uw,isBuffer:fa,isFormData:Y4,isArrayBufferView:L4,isString:F4,isNumber:Ww,isBoolean:B4,isObject:ha,isPlainObject:Od,isEmptyObject:z4,isReadableStream:X4,isRequest:J4,isResponse:Z4,isHeaders:eT,isUndefined:oa,isDate:$4,isFile:U4,isReactNativeBlob:W4,isReactNative:H4,isBlob:V4,isRegExp:pT,isFunction:mn,isStream:K4,isURLSearchParams:Q4,isTypedArray:lT,isFileList:q4,forEach:$l,merge:Lp,extend:nT,trim:tT,stripBOM:rT,inherits:sT,toFlatObject:iT,kindOf:_m,kindOfTest:or,endsWith:oT,toArray:aT,forEachEntry:cT,matchAll:dT,isHTMLForm:uT,hasOwnProperty:Jd,hasOwnProp:Jd,hasOwnInPrototypeChain:Sl,getSafeProp:D4,reduceDescriptors:qw,freezeMethods:mT,toObjectSet:xT,toCamelCase:fT,noop:gT,toFiniteNumber:yT,findKey:Hw,global:ki,isContextDefined:Vw,isSpecCompliantForm:vT,toJSONObject:bT,isAsyncFn:wT,isThenable:jT,setImmediate:Kw,asap:NT,isIterable:Gw,isSafeIterable:ST},CT=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_T=e=>{const t={};let r,i,a;return e&&e.split(`
433`).forEach(function(d){a=d.indexOf(":"),r=d.substring(0,a).trim().toLowerCase(),i=d.substring(a+1).trim(),!(!r||t[r]&&CT[r])&&(r==="set-cookie"?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t};function kT(e){let t=0,r=e.length;for(;t<r;){const i=e.charCodeAt(t);if(i!==9&&i!==32)break;t+=1}for(;r>t;){const i=e.charCodeAt(r-1);if(i!==9&&i!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}const ET=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),RT=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function km(e,t){return z.isArray(e)?e.map(r=>km(r,t)):kT(String(e).replace(t,""))}const TT=e=>km(e,ET),PT=e=>km(e,RT);function Yw(e){const t=Object.create(null);return z.forEach(e.toJSON(),(r,i)=>{t[i]=PT(r)}),t}const i0=Symbol("internals");function il(e){return e&&String(e).trim().toLowerCase()}function Id(e){return e===!1||e==null?e:z.isArray(e)?e.map(Id):TT(String(e))}function AT(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}const OT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qh(e,t,r,i,a){if(z.isFunction(i))return i.call(this,t,r);if(a&&(t=r),!!z.isString(t)){if(z.isString(i))return t.indexOf(i)!==-1;if(z.isRegExp(i))return i.test(t)}}function IT(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,i)=>r.toUpperCase()+i)}function MT(e,t){const r=z.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{__proto__:null,value:function(a,l,d){return this[i].call(this,t,a,l,d)},configurable:!0})})}let en=class{constructor(t){t&&this.set(t)}set(t,r,i){const a=this;function l(u,h,m){const g=il(h);if(!g)return;const y=z.findKey(a,g);(!y||a[y]===void 0||m===!0||m===void 0&&a[y]!==!1)&&(a[y||h]=Id(u))}const d=(u,h)=>z.forEach(u,(m,g)=>l(m,g,h));if(z.isPlainObject(t)||t instanceof this.constructor)d(t,r);else if(z.isString(t)&&(t=t.trim())&&!OT(t))d(_T(t),r);else if(z.isObject(t)&&z.isSafeIterable(t)){let u=Object.create(null),h,m;for(const g of t){if(!z.isArray(g))throw new TypeError("Object iterator must return a key-value pair");m=g[0],z.hasOwnProp(u,m)?(h=u[m],u[m]=z.isArray(h)?[...h,g[1]]:[h,g[1]]):u[m]=g[1]}d(u,r)}else t!=null&&l(r,t,i);return this}get(t,r){if(t=il(t),t){const i=z.findKey(this,t);if(i){const a=this[i];if(!r)return a;
vendor: 5,301 bytes, lines 433-434
433if(r===!0)return AT(a);if(z.isFunction(r))return r.call(this,a,i);if(z.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=il(t),t){const i=z.findKey(this,t);return!!(i&&this[i]!==void 0&&(!r||qh(this,this[i],i,r)))}return!1}delete(t,r){const i=this;let a=!1;function l(d){if(d=il(d),d){const u=z.findKey(i,d);u&&(!r||qh(i,i[u],u,r))&&(delete i[u],a=!0)}}return z.isArray(t)?t.forEach(l):l(t),a}clear(t){const r=Object.keys(this);let i=r.length,a=!1;for(;i--;){const l=r[i];(!t||qh(this,this[l],l,t,!0))&&(delete this[l],a=!0)}return a}normalize(t){const r=this,i={};return z.forEach(this,(a,l)=>{const d=z.findKey(i,l);if(d){r[d]=Id(a),delete r[l];return}const u=t?IT(l):String(l).trim();u!==l&&delete r[l],r[u]=Id(a),i[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return z.forEach(this,(i,a)=>{i!=null&&i!==!1&&(r[a]=t&&z.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
434`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const i=new this(t);return r.forEach(a=>i.set(a)),i}static accessor(t){const i=(this[i0]=this[i0]={accessors:{}}).accessors,a=this.prototype;function l(d){const u=il(d);i[u]||(MT(a,d),i[u]=!0)}return z.isArray(t)?t.forEach(l):l(t),this}};en.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(en.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[r]=i}}});z.freezeMethods(en);const DT="[REDACTED ****]";function LT(e){if(z.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(z.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function FT(e,t){const r=new Set(t.map(l=>String(l).toLowerCase())),i=[],a=l=>{if(l===null||typeof l!="object"||z.isBuffer(l))return l;if(i.indexOf(l)!==-1)return;l instanceof en&&(l=l.toJSON()),i.push(l);let d;if(z.isArray(l))d=[],l.forEach((u,h)=>{const m=a(u);z.isUndefined(m)||(d[h]=m)});else{if(!z.isPlainObject(l)&&LT(l))return i.pop(),l;d=Object.create(null);for(const[u,h]of Object.entries(l)){const m=r.has(u.toLowerCase())?DT:a(h);z.isUndefined(m)||(d[u]=m)}}return i.pop(),d};return a(e)}let xe=class Qw extends Error{static from(t,r,i,a,l,d){const u=new Qw(t.message,r||t.code,i,a,l);return Object.defineProperty(u,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),d&&Object.assign(u,d),u}constructor(t,r,i,a,l){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),i&&(this.config=i),a&&(this.request=a),l&&(this.response=l,this.status=l.status)}toJSON(){const t=this.config,r=t&&z.hasOwnProp(t,"redact")?t.redact:void 0,i=z.isArray(r)&&r.length>0?FT(t,r):z.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}};xe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";xe.ERR_BAD_OPTION="ERR_BAD_OPTION";xe.ECONNABORTED="ECONNABORTED";xe.ETIMEDOUT="ETIMEDOUT";xe.ECONNREFUSED="ECONNREFUSED";xe.ERR_NETWORK="ERR_NETWORK";xe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";xe.ERR_DEPRECATED="ERR_DEPRECATED";xe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";xe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";xe.ERR_CANCELED="ERR_CANCELED";xe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";xe.ERR_INVALID_URL="ERR_INVALID_URL";xe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const BT=null,Xw=100;function Fp(e){return z.isPlainObject(e)||z.isArray(e)}function Jw(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Kh(e,t,r){return e?e.concat(t).map(function(a,l){return a=Jw(a),!r&&l?"["+a+"]":a}).join(r?".":""):t}function zT(e){return z.isArray(e)&&!e.some(Fp)}const $T=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function mu(e,t,r){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,E){return!z.isUndefined(E[S])});const i=r.metaTokens,a=r.visitor||k,l=r.dots,d=r.indexes,u=r.Blob||typeof Blob<"u"&&Blob,h=r.maxDepth===void 0?Xw:r.maxDepth,m=u&&z.isSpecCompliantForm(t),g=[];if(!z.isFunction(a))throw new TypeError("visitor must be a function");function y(b){if(b===null)return"";if(z.isDate(b))return b.toISOString();if(z.isBoolean(b))return b.toString();if(!m&&z.isBlob(b))throw new xe("Blob is not supported. Use a Buffer instead.");if(z.isArrayBuffer(b)||z.isTypedArray(b)){if(m&&typeof u=="function")return new u([b]);if(typeof Buffer<"u")return Buffer.from(b);throw new xe("Blob is not supported. Use a Buffer instead.",xe.ERR_NOT_SUPPORT)}return b}function w(b){if(b>h)throw new xe("Object is too deeply nested ("+b+" levels). Max depth: "+h,xe.ERR_FORM_DATA_DEPTH_EXCEEDED)}
vendor: 4,678 bytes, line 434
434function C(b,S){if(h===1/0)return JSON.stringify(b);const E=[];return JSON.stringify(b,function(O,$){if(!z.isObject($))return $;for(;E.length&&E[E.length-1]!==this;)E.pop();return E.push($),w(S+E.length-1),$})}function k(b,S,E){let R=b;if(z.isReactNative(t)&&z.isReactNativeBlob(b))return t.append(Kh(E,S,l),y(b)),!1;if(b&&!E&&typeof b=="object"){if(z.endsWith(S,"{}"))S=i?S:S.slice(0,-2),b=C(b,1);else if(z.isArray(b)&&zT(b)||(z.isFileList(b)||z.endsWith(S,"[]"))&&(R=z.toArray(b)))return S=Jw(S),R.forEach(function($,V){!(z.isUndefined($)||$===null)&&t.append(d===!0?Kh([S],V,l):d===null?S:S+"[]",y($))}),!1}return Fp(b)?!0:(t.append(Kh(E,S,l),y(b)),!1)}const N=Object.assign($T,{defaultVisitor:k,convertValue:y,isVisitable:Fp});function j(b,S,E=0){if(!z.isUndefined(b)){if(w(E),g.indexOf(b)!==-1)throw new Error("Circular reference detected in "+S.join("."));g.push(b),z.forEach(b,function(O,$){(!(z.isUndefined(O)||O===null)&&a.call(t,O,z.isString($)?$.trim():$,S,N))===!0&&j(O,S?S.concat($):[$],E+1)}),g.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return j(e),t}function o0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(i){return t[i]})}function Em(e,t){this._pairs=[],e&&mu(e,this,t)}const Zw=Em.prototype;Zw.append=function(t,r){this._pairs.push([t,r])};Zw.toString=function(t){const r=t?i=>t.call(this,i,o0):o0;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function UT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function e1(e,t,r){if(!t)return e;e=e||"";const i=z.isFunction(r)?{serialize:r}:r,a=z.getSafeProp(i,"encode")||UT,l=z.getSafeProp(i,"serialize");let d;if(l?d=l(t,i):d=z.isURLSearchParams(t)?t.toString():new Em(t,i).toString(a),d){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}class a0{constructor(){this.handlers=[]}use(t,r,i){return this.handlers.push({fulfilled:t,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Rm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},WT=typeof URLSearchParams<"u"?URLSearchParams:Em,HT=typeof FormData<"u"?FormData:null,VT=typeof Blob<"u"?Blob:null,qT={isBrowser:!0,classes:{URLSearchParams:WT,FormData:HT,Blob:VT},protocols:["http","https","file","blob","url","data"]},Tm=typeof window<"u"&&typeof document<"u",Bp=typeof navigator=="object"&&navigator||void 0,KT=Tm&&(!Bp||["ReactNative","NativeScript","NS"].indexOf(Bp.product)<0),GT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",YT=Tm&&window.location.href||"http://localhost",QT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tm,hasStandardBrowserEnv:KT,hasStandardBrowserWebWorkerEnv:GT,navigator:Bp,origin:YT},Symbol.toStringTag,{value:"Module"})),Wt={...QT,...qT};function XT(e,t){return mu(e,new Wt.classes.URLSearchParams,{visitor:function(r,i,a,l){return Wt.isNode&&z.isBuffer(r)?(this.append(i,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}const l0=Xw;function t1(e){if(e>l0)throw new xe("FormData field is too deeply nested ("+e+" levels). Max depth: "+l0,xe.ERR_FORM_DATA_DEPTH_EXCEEDED)}function JT(e){const t=[],r=/\w+|\[(\w*)]/g;let i;for(;(i=r.exec(e))!==null;)t1(t.length),t.push(i[0]==="[]"?"":i[1]||i[0]);return t}function ZT(e){const t={},r=Object.keys(e);let i;const a=r.length;let l;for(i=0;i<a;i++)l=r[i],t[l]=e[l];return t}function n1(e){function t(r,i,a,l){t1(l);let d=r[l++];if(d==="__proto__")return!0;const u=Number.isFinite(+d),h=l>=r.length;return d=!d&&z.isArray(a)?a.length:d,h?(z.hasOwnProp(a,d)?a[d]=z.isArray(a[d])?a[d].concat(i):[a[d],i]:a[d]=i,!u):((!z.hasOwnProp(a,d)||!z.isObject(a[d]))&&(a[d]=[]),t(r,i,a[d],l)&&z.isArray(a[d])&&(a[d]=ZT(a[d])),!u)}if(z.isFormData(e)&&z.isFunction(e.entries)){const r={};return z.forEachEntry(e,(i,a)=>{t(JT(i),a,r,0)}),r}return null}const Oo=(e,t)=>e!=null&&z.hasOwnProp(e,t)?e[t]:void 0;function eP(e,t,r){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}const Ul={transitional:Rm,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const i=r.getContentType()||"",a=i.indexOf("application/json")>-1,l=z.isObject(t);
vendor: 11,607 bytes, line 434
434if(l&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return a?JSON.stringify(n1(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(l){const h=Oo(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return XT(t,h).toString();if((u=z.isFileList(t))||i.indexOf("multipart/form-data")>-1){const m=Oo(this,"env"),g=m&&m.FormData;return mu(u?{"files[]":t}:t,g&&new g,h)}}return l||a?(r.setContentType("application/json",!1),eP(t)):t}],transformResponse:[function(t){const r=Oo(this,"transitional")||Ul.transitional,i=r&&r.forcedJSONParsing,a=Oo(this,"responseType"),l=a==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(i&&!a||l)){const u=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t,Oo(this,"parseReviver"))}catch(h){if(u)throw h.name==="SyntaxError"?xe.from(h,xe.ERR_BAD_RESPONSE,this,null,Oo(this,"response")):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wt.classes.FormData,Blob:Wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch","query"],e=>{Ul.headers[e]={}});function Gh(e,t){const r=this||Ul,i=t||r,a=en.from(i.headers);let l=i.data;return z.forEach(e,function(u){l=u.call(r,l,a.normalize(),t?t.status:void 0)}),a.normalize(),l}function r1(e){return!!(e&&e.__CANCEL__)}let Wl=class extends xe{constructor(t,r,i){super(t??"canceled",xe.ERR_CANCELED,r,i),this.name="CanceledError",this.__CANCEL__=!0}};function s1(e,t,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new xe("Request failed with status code "+r.status,r.status>=400&&r.status<500?xe.ERR_BAD_REQUEST:xe.ERR_BAD_RESPONSE,r.config,r.request,r))}function tP(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function nP(e,t){e=e||10;const r=new Array(e),i=new Array(e);let a=0,l=0,d;return t=t!==void 0?t:1e3,function(h){const m=Date.now(),g=i[l];d||(d=m),r[a]=h,i[a]=m;let y=l,w=0;for(;y!==a;)w+=r[y++],y=y%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),m-d<t)return;const C=g&&m-g;return C?Math.round(w*1e3/C):void 0}}function rP(e,t){let r=0,i=1e3/t,a,l;const d=(m,g=Date.now())=>{r=g,a=null,l&&(clearTimeout(l),l=null),e(...m)};return[(...m)=>{const g=Date.now(),y=g-r;y>=i?d(m,g):(a=m,l||(l=setTimeout(()=>{l=null,d(a)},i-y)))},()=>a&&d(a)]}const Zd=(e,t,r=3)=>{let i=0;const a=nP(50,250);return rP(l=>{if(!l||typeof l.loaded!="number")return;const d=l.loaded,u=l.lengthComputable?l.total:void 0,h=u!=null?Math.min(d,u):d,m=Math.max(0,h-i),g=a(m);i=Math.max(i,h);const y={loaded:h,total:u,progress:u?h/u:void 0,bytes:m,rate:g||void 0,estimated:g&&u?(u-h)/g:void 0,event:l,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(y)},r)},c0=(e,t)=>{const r=e!=null;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},d0=e=>(...t)=>z.asap(()=>e(...t)),sP=Wt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Wt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Wt.origin),Wt.navigator&&/(msie|trident)/i.test(Wt.navigator.userAgent)):()=>!0,iP=Wt.hasStandardBrowserEnv?{write(e,t,r,i,a,l,d){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];z.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),z.isString(i)&&u.push(`path=${i}`),z.isString(a)&&u.push(`domain=${a}`),l===!0&&u.push("secure"),z.isString(d)&&u.push(`SameSite=${d}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const i=t[r].replace(/^\s+/,""),a=i.indexOf("=");if(a!==-1&&i.slice(0,a)===e)try{return decodeURIComponent(i.slice(a+1))}catch{return i.slice(a+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function oP(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const lP=/^https?:(?!\/\/)/i,cP=/[\t\n\r]/g;function dP(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function uP(e){return dP(e).replace(cP,"")}function u0(e,t){if(typeof e=="string"&&lP.test(uP(e)))throw new xe('Invalid URL: missing "//" after protocol',xe.ERR_INVALID_URL,t)}function i1(e,t,r,i){u0(t,i);let a=!oP(t);return e&&(a||r===!1)?(u0(e,i),aP(e,t)):t}const f0=e=>e instanceof en?{...e}:e;function Ki(e,t){e=e||{},t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(g,y,w,C){return z.isPlainObject(g)&&z.isPlainObject(y)?z.merge.call({caseless:C},g,y):z.isPlainObject(y)?z.merge({},y):z.isArray(y)?y.slice():y}function a(g,y,w,C){if(z.isUndefined(y)){if(!z.isUndefined(g))return i(void 0,g,w,C)}else return i(g,y,w,C)}function l(g,y){if(!z.isUndefined(y))return i(void 0,y)}function d(g,y){if(z.isUndefined(y)){if(!z.isUndefined(g))return i(void 0,g)}else return i(void 0,y)}function u(g){const y=z.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!z.isUndefined(y))if(z.isPlainObject(y)){if(z.hasOwnProp(y,g))return y[g]}else return;const w=z.hasOwnProp(e,"transitional")?e.transitional:void 0;if(z.isPlainObject(w)&&z.hasOwnProp(w,g))return w[g]}function h(g,y,w){if(z.hasOwnProp(t,w))return i(g,y);if(z.hasOwnProp(e,w))return i(void 0,g)}const m={url:l,method:l,data:l,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,allowedSocketPaths:d,responseEncoding:d,validateStatus:h,headers:(g,y,w)=>a(f0(g),f0(y),w,!0)};return z.forEach(Object.keys({...e,...t}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const w=z.hasOwnProp(m,y)?m[y]:a,C=z.hasOwnProp(e,y)?e[y]:void 0,k=z.hasOwnProp(t,y)?t[y]:void 0,N=w(C,k,y);z.isUndefined(N)&&w!==h||(r[y]=N)}),z.hasOwnProp(t,"validateStatus")&&z.isUndefined(t.validateStatus)&&u("validateStatusUndefinedResolves")===!1&&(z.hasOwnProp(e,"validateStatus")?r.validateStatus=i(void 0,e.validateStatus):delete r.validateStatus),r}const fP=["content-type","content-length"];function hP(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([i,a])=>{fP.includes(i.toLowerCase())&&e.set(i,a)})}const pP=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function o1(e){const t=Ki({},e),r=w=>z.hasOwnProp(t,w)?t[w]:void 0,i=r("data");let a=r("withXSRFToken");const l=r("xsrfHeaderName"),d=r("xsrfCookieName");let u=r("headers");const h=r("auth"),m=r("baseURL"),g=r("allowAbsoluteUrls"),y=r("url");if(t.headers=u=en.from(u),t.url=e1(i1(m,y,g,t),r("params"),r("paramsSerializer")),h){const w=z.getSafeProp(h,"username")||"",C=z.getSafeProp(h,"password")||"";try{u.set("Authorization","Basic "+btoa(w+":"+(C?pP(C):"")))}catch(k){throw xe.from(k,xe.ERR_BAD_OPTION_VALUE,e)}}if(z.isFormData(i)&&(Wt.hasStandardBrowserEnv||Wt.hasStandardBrowserWebWorkerEnv||z.isReactNative(i)?u.setContentType(void 0):z.isFunction(i.getHeaders)&&hP(u,i.getHeaders(),r("formDataHeaderPolicy"))),Wt.hasStandardBrowserEnv&&(z.isFunction(a)&&(a=a(t)),a===!0||a==null&&sP(t.url))){const C=l&&d&&iP.read(d);C&&u.set(l,C)}return t}const mP=typeof XMLHttpRequest<"u",xP=mP&&function(e){return new Promise(function(r,i){const a=o1(e);let l=a.data;const d=en.from(a.headers).normalize();let{responseType:u,onUploadProgress:h,onDownloadProgress:m}=a,g,y,w,C,k;function N(){C&&C(),k&&k(),a.cancelToken&&a.cancelToken.unsubscribe(g),a.signal&&a.signal.removeEventListener("abort",g)}let j=new XMLHttpRequest;j.open(a.method.toUpperCase(),a.url,!0),j.timeout=a.timeout;function b(){if(!j)return;const E=en.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),O={data:!u||u==="text"||u==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:E,config:e,request:j};s1(function(V){r(V),N()},function(V){i(V),N()},O),j=null}"onloadend"in j?j.onloadend=b:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.startsWith("file:"))||setTimeout(b)},j.onabort=function(){j&&(i(new xe("Request aborted",xe.ECONNABORTED,e,j)),N(),j=null)},j.onerror=function(R){const O=R&&R.message?R.message:"Network Error",$=new xe(O,xe.ERR_NETWORK,e,j);$.event=R||null,i($),N(),j=null},j.ontimeout=function(){let R=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const O=a.transitional||Rm;a.timeoutErrorMessage&&(R=a.timeoutErrorMessage),i(new xe(R,O.clarifyTimeoutError?xe.ETIMEDOUT:xe.ECONNABORTED,e,j)),N(),j=null},l===void 0&&d.setContentType(null),"setRequestHeader"in j&&z.forEach(Yw(d),function(R,O){j.setRequestHeader(O,R)}),z.isUndefined(a.withCredentials)||(j.withCredentials=!!a.withCredentials),u&&u!=="json"&&(j.responseType=a.responseType),m&&([w,k]=Zd(m,!0),j.addEventListener("progress",w)),h&&j.upload&&([y,C]=Zd(h),j.upload.addEventListener("progress",y),j.upload.addEventListener("loadend",C)),(a.cancelToken||a.signal)&&(g=E=>{j&&(i(!E||E.type?new Wl(null,e,j):E),j.abort(),N(),j=null)},a.cancelToken&&a.cancelToken.subscribe(g),a.signal&&(a.signal.aborted?g():a.signal.addEventListener("abort",g)));const S=tP(a.url);if(S&&!Wt.protocols.includes(S)){i(new xe("Unsupported protocol "+S+":",xe.ERR_BAD_REQUEST,e)),N();return}j.send(l||null)})},gP=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let i=!1;const a=function(h){if(!i){i=!0,d();const m=h instanceof Error?h:this.reason;r.abort(m instanceof xe?m:new Wl(m instanceof Error?m.message:m))}};let l=t&&setTimeout(()=>{l=null,a(new xe(`timeout of ${t}ms exceeded`,xe.ETIMEDOUT))},t);const d=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a,{once:!0}));const{signal:u}=r;return u.unsubscribe=()=>z.asap(d),u},yP=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let i=0,a;for(;i<r;)a=i+t,yield e.slice(i,a),i=a},vP=async function*(e,t){for await(const r of bP(e))yield*yP(r,t)},bP=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:i}=await t.read();if(r)break;yield i}}finally{await t.cancel()}},h0=(e,t,r,i)=>{const a=vP(e,t);let l=0,d,u=h=>{d||(d=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:m,value:g}=await a.next();if(m){u(),h.close();return}let y=g.byteLength;if(r){let w=l+=y;r(w)}h.enqueue(new Uint8Array(g))}catch(m){throw u(m),m}},cancel(h){return u(h),a.return()}},{highWaterMark:2})},eu=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,wP=(e,t,r)=>t+2<r&&eu(e.charCodeAt(t+1))&&eu(e.charCodeAt(t+2));function jP(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(r)){let d=i.length;const u=i.length;for(let C=0;C<u;C++)if(i.charCodeAt(C)===37&&C+2<u){const k=i.charCodeAt(C+1),N=i.charCodeAt(C+2);eu(k)&&eu(N)&&(d-=2,C+=2)}let h=0,m=u-1;const g=C=>C>
vendor: 4,135 bytes, line 434
434=2&&i.charCodeAt(C-2)===37&&i.charCodeAt(C-1)===51&&(i.charCodeAt(C)===68||i.charCodeAt(C)===100);m>=0&&(i.charCodeAt(m)===61?(h++,m--):g(m)&&(h++,m-=3)),h===1&&m>=0&&(i.charCodeAt(m)===61||g(m))&&h++;const w=Math.floor(d/4)*3-(h||0);return w>0?w:0}let l=0;for(let d=0,u=i.length;d<u;d++){const h=i.charCodeAt(d);if(h===37&&wP(i,d,u))l+=1,d+=2;else if(h<128)l+=1;else if(h<2048)l+=2;else if(h>=55296&&h<=56319&&d+1<u){const m=i.charCodeAt(d+1);m>=56320&&m<=57343?(l+=4,d++):l+=3}else l+=3}return l}const Pm="1.18.1",p0=64*1024,{isFunction:gd}=z,NP=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),m0=e=>{if(!z.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},x0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},SP=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},CP=e=>{const t=z.global!==void 0&&z.global!==null?z.global:globalThis,{ReadableStream:r,TextEncoder:i}=t;e=z.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:l,Response:d}=e,u=a?gd(a):typeof fetch=="function",h=gd(l),m=gd(d);if(!u)return!1;const g=u&&gd(r),y=u&&(typeof i=="function"?(b=>S=>b.encode(S))(new i):async b=>new Uint8Array(await new l(b).arrayBuffer())),w=h&&g&&x0(()=>{let b=!1;const S=new l(Wt.origin,{body:new r,method:"POST",get duplex(){return b=!0,"half"}}),E=S.headers.has("Content-Type");return S.body!=null&&S.body.cancel(),b&&!E}),C=m&&g&&x0(()=>z.isReadableStream(new d("").body)),k={stream:C&&(b=>b.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!k[b]&&(k[b]=(S,E)=>{let R=S&&S[b];if(R)return R.call(S);throw new xe(`Response type '${b}' is not supported`,xe.ERR_NOT_SUPPORT,E)})});const N=async b=>{if(b==null)return 0;if(z.isBlob(b))return b.size;if(z.isSpecCompliantForm(b))return(await new l(Wt.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(z.isArrayBufferView(b)||z.isArrayBuffer(b))return b.byteLength;if(z.isURLSearchParams(b)&&(b=b+""),z.isString(b))return(await y(b)).byteLength},j=async(b,S)=>{const E=z.toFiniteNumber(b.getContentLength());return E??N(S)};return async b=>{let{url:S,method:E,data:R,signal:O,cancelToken:$,timeout:V,onDownloadProgress:M,onUploadProgress:ne,responseType:Q,headers:ie,withCredentials:ee="same-origin",fetchOptions:Z,maxContentLength:L,maxBodyLength:W}=o1(b);const te=z.isNumber(L)&&L>-1,le=z.isNumber(W)&&W>-1,G=B=>z.hasOwnProp(b,B)?b[B]:void 0;let q=a||fetch;Q=Q?(Q+"").toLowerCase():"text";let U=gP([O,$&&$.toAbortSignal()],V),A=null;const X=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let ge,pe=null;const me=()=>new xe("Request body larger than maxBodyLength limit",xe.ERR_BAD_REQUEST,b,A);try{let B;const T=G("auth");if(T){const ue=z.getSafeProp(T,"username")||"",Je=z.getSafeProp(T,"password")||"";B={username:ue,password:Je}}if(SP(S)){const ue=new URL(S,Wt.origin);if(!B&&(ue.username||ue.password)){const Je=m0(ue.username),dt=m0(ue.password);B={username:Je,password:dt}}(ue.username||ue.password)&&(ue.username="",ue.password="",S=ue.href)}if(B&&(ie.delete("authorization"),ie.set("Authorization","Basic "+btoa(NP((B.username||"")+":"+(B.password||""))))),te&&typeof S=="string"&&S.startsWith("data:")&&jP(S)>L)throw new xe("maxContentLength size of "+L+" exceeded",xe.ERR_BAD_RESPONSE,b,A);if(le&&E!=="get"&&E!=="head"){const ue=await N(R);if(typeof ue=="number"&&isFinite(ue)&&(ge=ue,ue>W))throw me()}const re=le&&(z.isReadableStream(R)||z.isStream(R)),se=(ue,Je,dt)=>h0(ue,p0,lt=>{if(le&&lt>W)throw pe=me();Je&&Je(lt)},dt);if(w&&E!=="get"&&E!=="head"&&(ne||re)){if(ge=ge??await j(ie,R),ge!==0||re){let ue=new l(S,{method:"POST",body:R,duplex:"half"}),Je;if(z.isFormData(R)&&(Je=ue.headers.get("content-type"))&&ie.setContentType(Je),ue.body){const[dt,lt]=ne&&c0(ge,Zd(d0(ne)))||[];R=se(ue.body,dt,lt)}}}else if(re&&!h&&g&&E!=="get"&&E!=="head")R=se(R);else if(re&&h&&!w&&E!=="get"&&E!=="head")throw new xe("Stream request bodies are not supported by the current fetch implementation",xe.ERR_NOT_SUPPORT,b,A);z.isString(ee)||(ee=ee?"include":"omit");const de=h&&"credentials"in l.prototype;
vendor: 2,754 bytes, line 434
434if(z.isFormData(R)){const ue=ie.getContentType();ue&&/^multipart\/form-data/i.test(ue)&&!/boundary=/i.test(ue)&&ie.delete("content-type")}ie.set("User-Agent","axios/"+Pm,!1);const be={...Z,signal:U,method:E.toUpperCase(),headers:Yw(ie.normalize()),body:R,duplex:"half",credentials:de?ee:void 0};A=h&&new l(S,be);let Ae=await(h?q(A,Z):q(S,be));const Ze=en.from(Ae.headers);if(te){const ue=z.toFiniteNumber(Ze.getContentLength());if(ue!=null&&ue>L)throw new xe("maxContentLength size of "+L+" exceeded",xe.ERR_BAD_RESPONSE,b,A)}const nt=C&&(Q==="stream"||Q==="response");if(C&&Ae.body&&(M||te||nt&&X)){const ue={};["status","statusText","headers"].forEach(xn=>{ue[xn]=Ae[xn]});const Je=z.toFiniteNumber(Ze.getContentLength()),[dt,lt]=M&&c0(Je,Zd(d0(M),!0))||[];let dr=0;const gt=xn=>{if(te&&(dr=xn,dr>L))throw new xe("maxContentLength size of "+L+" exceeded",xe.ERR_BAD_RESPONSE,b,A);dt&&dt(xn)};Ae=new d(h0(Ae.body,p0,gt,()=>{lt&&lt(),X&&X()}),ue)}Q=Q||"text";let J=await k[z.findKey(k,Q)||"text"](Ae,b);if(te&&!C&&!nt){let ue;if(J!=null&&(typeof J.byteLength=="number"?ue=J.byteLength:typeof J.size=="number"?ue=J.size:typeof J=="string"&&(ue=typeof i=="function"?new i().encode(J).byteLength:J.length)),typeof ue=="number"&&ue>L)throw new xe("maxContentLength size of "+L+" exceeded",xe.ERR_BAD_RESPONSE,b,A)}return!nt&&X&&X(),await new Promise((ue,Je)=>{s1(ue,Je,{data:J,headers:en.from(Ae.headers),status:Ae.status,statusText:Ae.statusText,config:b,request:A})})}catch(B){if(X&&X(),U&&U.aborted&&U.reason instanceof xe){const T=U.reason;throw T.config=b,A&&(T.request=A),B!==T&&Object.defineProperty(T,"cause",{__proto__:null,value:B,writable:!0,enumerable:!1,configurable:!0}),T}if(pe)throw A&&!pe.request&&(pe.request=A),pe;if(B instanceof xe)throw A&&!B.request&&(B.request=A),B;if(B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)){const T=new xe("Network Error",xe.ERR_NETWORK,b,A,B&&B.response);throw Object.defineProperty(T,"cause",{__proto__:null,value:B.cause||B,writable:!0,enumerable:!1,configurable:!0}),T}throw xe.from(B,B&&B.code,b,A,B&&B.response)}}},_P=new Map,a1=e=>{let t=e&&e.env||{};const{fetch:r,Request:i,Response:a}=t,l=[i,a,r];let d=l.length,u=d,h,m,g=_P;for(;u--;)h=l[u],m=g.get(h),m===void 0&&g.set(h,m=u?new Map:CP(t)),g=m;return m};a1();const Am={http:BT,xhr:xP,fetch:{get:a1}};z.forEach(Am,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const g0=e=>`- ${e}`,kP=e=>z.isFunction(e)||e===null||e===!1;function EP(e,t){e=z.isArray(e)?e:[e];const{length:r}=e;let i,a;const l={};for(let d=0;d<r;d++){i=e[d];let u;if(a=i,!kP(i)&&(a=Am[(u=String(i)).toLowerCase()],a===void 0))throw new xe(`Unknown adapter '${u}'`);
vendor: 5,721 bytes, lines 434-440
434if(a&&(z.isFunction(a)||(a=a.get(t))))break;l[u||"#"+d]=a}if(!a){const d=Object.entries(l).map(([h,m])=>`adapter ${h} `+(m===!1?"is not supported by the environment":"is not available in the build"));let u=r?d.length>1?`since :
435`+d.map(g0).join(`
436`):" "+g0(d[0]):"as no adapter specified";throw new xe("There is no suitable adapter to dispatch the request "+u,xe.ERR_NOT_SUPPORT)}return a}const l1={getAdapter:EP,adapters:Am};function Yh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wl(null,e)}function y0(e){return Yh(e),e.headers=en.from(e.headers),e.data=Gh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),l1.getAdapter(e.adapter||Ul.adapter,e)(e).then(function(i){Yh(e),e.response=i;try{i.data=Gh.call(e,e.transformResponse,i)}finally{delete e.response}return i.headers=en.from(i.headers),i},function(i){if(!r1(i)&&(Yh(e),i&&i.response)){e.response=i.response;try{i.response.data=Gh.call(e,e.transformResponse,i.response)}finally{delete e.response}i.response.headers=en.from(i.response.headers)}return Promise.reject(i)})}const xu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const v0={};xu.transitional=function(t,r,i){function a(l,d){return"[Axios v"+Pm+"] Transitional option '"+l+"'"+d+(i?". "+i:"")}return(l,d,u)=>{if(t===!1)throw new xe(a(d," has been removed"+(r?" in "+r:"")),xe.ERR_DEPRECATED);return r&&!v0[d]&&(v0[d]=!0,console.warn(a(d," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,d,u):!0}};xu.spelling=function(t){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function RP(e,t,r){if(typeof e!="object"||e===null)throw new xe("options must be an object",xe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let a=i.length;for(;a-- >0;){const l=i[a],d=Object.prototype.hasOwnProperty.call(t,l)?t[l]:void 0;if(d){const u=e[l],h=u===void 0||d(u,l,e);if(h!==!0)throw new xe("option "+l+" must be "+h,xe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new xe("Unknown option "+l,xe.ERR_BAD_OPTION)}}const Md={assertOptions:RP,validators:xu},Xt=Md.validators;let zi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new a0,response:new a0}}async request(t,r){try{return await this._request(t,r)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=(()=>{if(!a.stack)return"";const d=a.stack.indexOf(`
437`);return d===-1?"":a.stack.slice(d+1)})();try{if(!i.stack)i.stack=l;else if(l){const d=l.indexOf(`
438`),u=d===-1?-1:l.indexOf(`
439`,d+1),h=u===-1?"":l.slice(u+1);String(i.stack).endsWith(h)||(i.stack+=`
440`+l)}}catch{}}throw i}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ki(this.defaults,r);const{transitional:i,paramsSerializer:a,headers:l}=r;i!==void 0&&Md.assertOptions(i,{silentJSONParsing:Xt.transitional(Xt.boolean),forcedJSONParsing:Xt.transitional(Xt.boolean),clarifyTimeoutError:Xt.transitional(Xt.boolean),legacyInterceptorReqResOrdering:Xt.transitional(Xt.boolean),advertiseZstdAcceptEncoding:Xt.transitional(Xt.boolean),validateStatusUndefinedResolves:Xt.transitional(Xt.boolean)},!1),a!=null&&(z.isFunction(a)?r.paramsSerializer={serialize:a}:Md.assertOptions(a,{encode:Xt.function,serialize:Xt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Md.assertOptions(r,{baseUrl:Xt.spelling("baseURL"),withXsrfToken:Xt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let d=l&&z.merge(l.common,l[r.method]);l&&z.forEach(["delete","get","head","post","put","patch","query","common"],k=>{delete l[k]}),r.headers=en.concat(d,l);const u=[];let h=!0;this.interceptors.request.forEach(function(N){if(typeof N.runWhen=="function"&&N.runWhen(r)===!1)return;h=h&&N.synchronous;const j=r.transitional||Rm;j&&j.legacyInterceptorReqResOrdering?u.unshift(N.fulfilled,N.rejected):u.push(N.fulfilled,N.rejected)});const m=[];this.interceptors.response.forEach(function(N){m.push(N.fulfilled,N.rejected)});let g,y=0,w;if(!h){const k=[y0.bind(this),void 0];for(k.unshift(...u),k.push(...m),w=k.length,g=Promise.resolve(r);y<w;)g=g.then(k[y++],k[y++]);return g}w=u.length;let C=r;for(;y<w;){const k=u[y++],N=u[y++];try{C=k(C)}catch(j){N.call(this,j);break}}try{g=y0.call(this,C)}catch(k){return Promise.reject(k)}for(y=0,w=m.length;y<w;)g=g.then(m[y++],m[y++]);return g}getUri(t){t=Ki(this.defaults,t);const r=i1(t.baseURL,t.url,t.allowAbsoluteUrls,t);return e1(r,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){zi.prototype[t]=function(r,i){return this.request(Ki(i||{},{method:t,url:r,data:i&&z.hasOwnProp(i,"data")?i.data:void 0}))}});z.forEach(["post","put","patch","query"],function(t){function r(i){return function(l,d,u){return this.request(Ki(u||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:d}))}}zi.prototype[t]=r(),t!=="query"&&(zi.prototype[t+"Form"]=r(!0))});let TP=class c1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const i=this;this.promise.then(a=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](a);i._listeners=null}),this.promise.then=a=>{let l;const d=new Promise(u=>{i.subscribe(u),l=u}).then(a);return d.cancel=function(){i.unsubscribe(l)},d},t(function(l,d,u){i.reason||(i.reason=new Wl(l,d,u),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
440subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=i=>{t.abort(i)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new c1(function(a){t=a}),cancel:t}}};function PP(e){return function(r){return e.apply(null,r)}}function AP(e){return z.isObject(e)&&e.isAxiosError===!0}const zp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zp).forEach(([e,t])=>{zp[t]=e});function d1(e){const t=new zi(e),r=zw(zi.prototype.request,t);return z.extend(r,zi.prototype,t,{allOwnKeys:!0}),z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return d1(Ki(e,a))},r}const _t=d1(Ul);_t.Axios=zi;_t.CanceledError=Wl;_t.CancelToken=TP;_t.isCancel=r1;_t.VERSION=Pm;_t.toFormData=mu;_t.AxiosError=xe;_t.Cancel=_t.CanceledError;_t.all=function(t){return Promise.all(t)};_t.spread=PP;_t.isAxiosError=AP;_t.mergeConfig=Ki;_t.AxiosHeaders=en;_t.formToJSON=e=>n1(z.isHTMLForm(e)?new FormData(e):e);_t.getAdapter=l1.getAdapter;_t.HttpStatusCode=zp;_t.default=_t;const{Axios:BB,AxiosError:zB,CanceledError:$B,isCancel:UB,CancelToken:WB,VERSION:HB,all:VB,Cancel:qB,isAxiosError:KB,spread:GB,toFormData:YB,AxiosHeaders:QB,HttpStatusCode:XB,formToJSON:JB,getAdapter:ZB,mergeConfig:ez,create:tz}=_t,u1=typeof window>"u",b0=!u1&&window.self!==window.top,OP=!u1&&typeof document>"u",Qh=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),$t=[];for(let e=0;e<256;++e)$t.push((e+256).toString(16).slice(1));function IP(e,t=0){return($t[e[t+0]]+$t[e[t+1]]+$t[e[t+2]]+$t[e[t+3]]+"-"+$t[e[t+4]]+$t[e[t+5]]+"-"+$t[e[t+6]]+$t[e[t+7]]+"-"+$t[e[t+8]]+$t[e[t+9]]+"-"+$t[e[t+10]]+$t[e[t+11]]+$t[e[t+12]]+$t[e[t+13]]+$t[e[t+14]]+$t[e[t+15]]).toLowerCase()}let Xh;const MP=new Uint8Array(16);function DP(){if(!Xh){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Xh=crypto.getRandomValues.bind(crypto)}return Xh(MP)}const LP=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),w0={randomUUID:LP};function FP(e,t,r){var a;e=e||{};const i=e.random??((a=e.rng)==null?void 0:a.call(e))??DP();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,IP(i)}function BP(e,t,r){return w0.randomUUID&&!e?w0.randomUUID():FP(e)}const ol=typeof window<"u"?window:{base44SharedInstances:{}};function zP(e,t){return ol.base44SharedInstances||(ol.base44SharedInstances={}),ol.base44SharedInstances[e]||(ol.base44SharedInstances[e]={instance:t()}),ol.base44SharedInstances[e].instance}const $P="__user_heartbeat_event__",UP="__initialization_event__",WP="__session_duration_event__",j0="analytics-enable",N0="base44_analytics_session_id",HP={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},VP="analytics",ct=zP(VP,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...HP,...ZP()}})),qP=({axiosClient:e,serverUrl:t,appId:r,userAuthModule:i})=>{var a;const{maxQueueSize:l,throttleTime:d,batchSize:u}=ct.config;if(!(!((a=ct.config)===null||a===void 0)&&a.enabled)||OP)return{track:()=>{},cleanup:()=>{}};let h;const m=`${t}/api/apps/${r}/analytics/track/batch`,g=async E=>{await e.request({method:"POST",url:`/apps/${r}/analytics/track/batch`,data:{events:E}})},y=E=>{try{const R=JSON.stringify({events:E}),O=new Blob([R],{type:"application/json"});return typeof navigator>"u"||R.length>6e4||!navigator.sendBeacon(m,O)}catch{return!1}},w=async(E,R={})=>
440{if(E.length===0)return;const O=await JP(i),$=E.map(XP(O));try{(!R.isBeacon||!y($))&&await g($)}catch{}},C=()=>{C0(w,{throttleTime:d,batchSize:u})},k=E=>{if(ct.requestsQueue.length>=l)return;const R=QP();ct.requestsQueue.push({...E,...R}),C()},N=()=>{C0(w,{throttleTime:d,batchSize:u}),h=_0(k),GP()},j=()=>{S0(),h==null||h(),YP(k);const E=ct.requestsQueue.splice(0);w(E,{isBeacon:!0})},b=()=>{typeof window>"u"||(document.visibilityState==="hidden"?j():document.visibilityState==="visible"&&N())},S=()=>{S0(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",b)};return C(),h=_0(k),KP(k),typeof window<"u"&&window.addEventListener("visibilitychange",b),{track:k,cleanup:S}};function S0(){ct.isProcessing=!1}async function C0(e,t){if(ct.isProcessing)return;ct.isProcessing=!0;const{throttleTime:r=1e3,batchSize:i=30}=t??{};for(;ct.isProcessing&&ct.requestsQueue.length>0;){const a=ct.requestsQueue.splice(0,i);a.length&&await e(a),await new Promise(l=>setTimeout(l,r))}ct.isProcessing=!1}function _0(e){var t;if(ct.isHeartBeatProcessing||((t=ct.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};ct.isHeartBeatProcessing=!0;const r=setInterval(()=>{e({eventName:$P})},ct.config.heartBeatInterval);return()=>{clearInterval(r),ct.isHeartBeatProcessing=!1}}function KP(e){typeof window>"u"||ct.wasInitializationTracked||(ct.wasInitializationTracked=!0,e({eventName:UP,properties:{referrer:document==null?void 0:document.referrer}}))}function GP(){typeof window>"u"||ct.sessionStartTime!==null||(ct.sessionStartTime=new Date().toISOString())}function YP(e){if(typeof window>"u"||ct.sessionStartTime===null)return;const t=new Date().getTime()-new Date(ct.sessionStartTime).getTime();ct.sessionStartTime=null,e({eventName:WP,properties:{sessionDuration:t}})}function QP(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function XP(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Jh=null;async function JP(e){if(!ct.sessionContext){if(!Jh){const t=Om();Jh=e.me().then(r=>({user_id:r.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}ct.sessionContext=await Jh}return ct.sessionContext}function ZP(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(j0);if(t==null||!t.length)return;const r=new URLSearchParams(window.location.search);r.delete(j0);const i=window.location.pathname+(r.toString()?"?"+r.toString():"");return window.history.replaceState({},"",i),{enabled:t==="true"}}function Om(){if(typeof window>"u")return Qh();try{const e=localStorage.getItem(N0);if(!e){const t=Qh();return localStorage.setItem(N0,t),t}return e}catch{return Qh()}}class f1 extends Error{constructor(t,r,i,a,l){super(t),this.name="Base44Error",this.status=r,this.code=i,this.data=a,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function ul({baseURL:e,headers:t={},token:r,interceptResponses:i=!0,onError:a}){const l=_t.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return r&&(l.defaults.headers.common.Authorization=`Bearer ${r}`),l.interceptors.request.use(d=>{typeof window<"u"&&window.location&&(d.headers.set("X-Origin-URL",window.location.href),d.headers.get("Authorization")||d.headers.set("X-Base44-Anonymous-Id",Om()));const u=BP();if(d.requestId=u,b0)try{window.parent.postMessage({type:"api-request-start",requestId:u,data:{url:e+d.url,method:d.method,body:d.data instanceof FormData?"[FormData object]":d.data}},"*")}catch{}return d}),i&&l.interceptors.response.use(d=>{var u;const h=(u=d.config)===null||u===void 0?void 0:u.requestId;try{b0&&h&&window.parent.postMessage({type:"api-request-end",requestId:h,data:{statusCode:d.status,response:d.data}},"*")}catch{}return d.data},d=>{var u,h,m,g,y,w,C,k;const N=((h=(u=d.response)===null||u===void 0?void 0:u.data)===null||h===void 0?void 0:h.message)||((g=(m=d.response)===null||m===void 0?void 0:m.data)===null||g===void 0?void 0:g.detail)||d.message,j=new f1(N,(y=d.response)===null||y===void 0?void 0:y.status,(C=(w=d.response)===null||w===void 0?void 0:w.data)===null||C===void 0?void 0:C.code,(k=d.response)===null||k===void 0?void 0:k.data,d);return a==null||a(j),Promise.reject(j)}),l}function k0(e){const{axios:t,appId:r,getSocket:i}=e;return new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return tA(t,r,l,i)}})}function eA(e){var t;try{const r=JSON.parse(e);return{type:r.type,data:r.data,id:r.id||((t=r.data)===null||t===void 0?void 0:t.id),timestamp:r.timestamp||new Date().toISOString()}}catch(r){return console.warn("[Base44 SDK] Failed to parse realtime message:",r),null}}
440function tA(e,t,r,i){const a=`/apps/${t}/entities/${r}`;return{async list(l,d,u,h){const m={};return l&&(m.sort=l),d&&(m.limit=d),u&&(m.skip=u),h&&(m.fields=Array.isArray(h)?h.join(","):h),e.get(a,{params:m})},async filter(l,d,u,h,m){const g={q:JSON.stringify(l)};return d&&(g.sort=d),u&&(g.limit=u),h&&(g.skip=h),m&&(g.fields=Array.isArray(m)?m.join(","):m),e.get(a,{params:g})},async get(l){return e.get(`${a}/${l}`)},async create(l){return e.post(a,l)},async update(l,d){return e.put(`${a}/${l}`,d)},async delete(l){return e.delete(`${a}/${l}`)},async deleteMany(l){return e.delete(a,{data:l})},async bulkCreate(l){return e.post(`${a}/bulk`,l)},async updateMany(l,d){return e.patch(`${a}/update-many`,{query:l,data:d})},async bulkUpdate(l){return e.put(`${a}/bulk`,l)},async importEntities(l){const d=new FormData;return d.append("file",l,l.name),e.post(`${a}/import`,d,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const d=`entities:${t}:${r}`;return i().subscribeToRoom(d,{update_model:m=>{var g;const y=eA(m.data);if(y){y.type!=="delete"&&(!((g=y.data)===null||g===void 0)&&g._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${r}#${y.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${r}.get("${y.id}")\` to fetch the full record.`);try{l(y)}catch(w){console.error("[Base44 SDK] Subscription callback error:",w)}}}})}}}function nA(e,t){return{async call(r,i,a){if(!(r!=null&&r.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:d,...u}=a??{},h={...u,...l&&{path_params:l},...d&&{query_params:d}};return await e.post(`/apps/${t}/integrations/custom/${r}/${i}`,h)}}}function E0(e,t){const r=nA(e,t);return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return a==="custom"?r:new Proxy({},{get(l,d){if(!(typeof d!="string"||d==="then"||d.startsWith("_")))return async u=>{if(typeof u=="string")throw new Error(`Integration ${d} must receive an object with named parameters, received: ${u}`);let h,m;return u instanceof FormData||u&&Object.values(u).some(g=>g instanceof File)?(h=new FormData,Object.keys(u).forEach(g=>{u[g]instanceof File?h.append(g,u[g],u[g].name):typeof u[g]=="object"&&u[g]!==null?h.append(g,JSON.stringify(u[g])):h.append(g,u[g])}),m="multipart/form-data"):(h=u,m="application/json"),a==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${d}`,h||u,{headers:{"Content-Type":m}}):e.post(`/apps/${t}/integration-endpoints/installable/${a}/integration-endpoints/${d}`,h||u,{headers:{"Content-Type":m}})}}})}})}function rA(){return typeof window>"u"?!1:window!==window.parent}function sA(e,t,r){const l=Math.round(window.screenX+(window.outerWidth-500)/2),d=Math.round(window.screenY+(window.outerHeight-600)/2),u=window.open(e,"base44_auth",`width=500,height=600,left=${l},top=${d},resizable=yes,scrollbars=yes`);if(!u)return;const h=()=>{window.removeEventListener("message",m),clearInterval(g),u.closed||u.close()},m=y=>{var w;if(y.origin!==r||y.source!==u||!(!((w=y.data)===null||w===void 0)&&w.access_token))return;h();const C=new URL(t),{access_token:k,is_new_user:N}=y.data;C.searchParams.set("access_token",k),N!=null&&C.searchParams.set("is_new_user",String(N)),window.location.href=C.toString()},g=setInterval(()=>{u.closed&&h()},500);window.addEventListener("message",m)}function iA(e,t,r,i){return{async me(){return e.get(`/apps/${r}/entities/User/me`)},async updateMe(a){return e.put(`/apps/${r}/entities/User/me`,a)},redirectToLogin(a){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const l=a?new URL(a,window.location.origin).toString():window.location.href,d=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(l)}`;window.location.href=d},loginWithProvider(a,l="/"){const d=new URL(l,window.location.origin).toString(),u=`app_id=${r}&from_url=${encodeURIComponent(d)}`;let h;a==="sso"?h=`/apps/${r}/auth/sso/login`:h=`/apps/auth${a==="google"?"":`/${a}`}/login`;const m=`${i.appBaseUrl}/api${h}?${u}`;if(rA()){const g=`${m}&popup_origin=${encodeURIComponent(window.location.origin)}`;return sA(g,d,window.location.origin)}window.location.href=m}
440,logout(a){if(delete e.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(u){console.error("Failed to remove token from localStorage:",u)}const l=a||window.location.href,d=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(l)}`;window.location.href=d}},setToken(a,l=!0){if(a&&(e.defaults.headers.common.Authorization=`Bearer ${a}`,t.defaults.headers.common.Authorization=`Bearer ${a}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",a),window.localStorage.setItem("token",a)}catch(d){console.error("Failed to save token to localStorage:",d)}},async loginViaEmailPassword(a,l,d){var u;try{const h=await e.post(`/apps/${r}/auth/login`,{email:a,password:l,...d&&{turnstile_token:d}}),{access_token:m,user:g}=h;return m&&this.setToken(m),{access_token:m,user:g}}catch(h){throw((u=h.response)===null||u===void 0?void 0:u.status)===401&&await this.logout(),h}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(a,l){return e.post(`/apps/${r}/users/invite-user`,{user_email:a,role:l})},register(a){return e.post(`/apps/${r}/auth/register`,a)},verifyOtp({email:a,otpCode:l}){return e.post(`/apps/${r}/auth/verify-otp`,{email:a,otp_code:l})},resendOtp(a){return e.post(`/apps/${r}/auth/resend-otp`,{email:a})},resetPasswordRequest(a){return e.post(`/apps/${r}/auth/reset-password-request`,{email:a})},resetPassword({resetToken:a,newPassword:l}){return e.post(`/apps/${r}/auth/reset-password`,{reset_token:a,new_password:l})},changePassword({userId:a,currentPassword:l,newPassword:d}){return e.post(`/apps/${r}/auth/change-password`,{user_id:a,current_password:l,new_password:d})}}}function oA(e,t){return{async getAccessToken(r){const i=`/apps/${t}/auth/sso/accesstoken/${r}`;return e.get(i)},async getIdToken(r){const i=`/apps/${t}/auth/sso/idtoken/${r}`;return e.get(i)}}}function aA(e,t){return{async getAccessToken(r){if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${r}`)).access_token},async getConnection(r){var i;if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");const l=await e.get(`/apps/${t}/external-auth/tokens/${r}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getWorkspaceConnection(r){var i;if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");const l=await e.get(`/apps/${t}/external-auth/tokens/connectors/${r}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${r}/token`)).access_token},async getCurrentAppUserConnection(r){var i;if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");const l=await e.get(`/apps/${t}/app-user-auth/connectors/${r}/token`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}}}}function lA(e,t){return{async connectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${r}/initiate`)).redirect_url},async disconnectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${r}`)}}}function Gi(e={}){const{storageKey:t="base44_access_token",paramName:r="access_token",saveToStorage:i=!0,removeFromUrl:a=!0}=e;let l=null;if(typeof window<"u"&&window.location)try{const d=new URLSearchParams(window.location.search);if(l=d.get(r),l){if(i&&h1(l,{storageKey:t}),a){d.delete(r);const u=`${window.location.pathname}${d.toString()?`?${d.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,u)}return l}}catch(d){console.error("Error retrieving token from URL:",d)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(t),l}catch(d){console.error("Error retrieving token from local storage:",d)}return null}function h1(e,t){const{storageKey:r="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(r,e),window.localStorage.setItem("token",e),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function cA(e){const{storageKey:t="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage)return!1;try{return window.localStorage.removeItem(t),!0}catch(r){return console.error("Error removing token from local storage:",r),!1}}function dA(e,t){const{serverUrl:r,appId:i,loginPath:a="/login"}=t;if(!r||!i)throw new Error("serverUrl and appId are required to construct login URL");const l=encodeURIComponent(e||(typeof window<"u"?window.location.href:""));return`${r}${a}?from_url=${l}&app_id=${i}`}function R0(e,t,r){const i=(l,d)=>l?`${String(l).replace(/\/$/,"")}${d}`:d,a=l=>{const d=new Headers;if(r!=null&&r.getAuthHeaders){const u=r.getAuthHeaders();Object.entries(u).forEach(([h,m])=>{m!=null&&d.set(h,String(m))})}return l&&new Headers(l).forEach((u,h)=>{d.set(h,u)}),d};
440return{async invoke(l,d){if(typeof d=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${d}`);let u,h;return d instanceof FormData||d&&Object.values(d).some(m=>m instanceof File)?(u=new FormData,Object.keys(d).forEach(m=>{d[m]instanceof File?u.append(m,d[m],d[m].name):typeof d[m]=="object"&&d[m]!==null?u.append(m,JSON.stringify(d[m])):u.append(m,d[m])}),h="multipart/form-data"):(u=d,h="application/json"),e.post(`/apps/${t}/functions/${l}`,u||d,{headers:{"Content-Type":h}})},async fetch(l,d={}){const h=`/functions${l.startsWith("/")?l:`/${l}`}`,m=a(d.headers),g={...d,headers:m};return await fetch(i(r==null?void 0:r.baseURL,h),g)}}}function T0({axios:e,getSocket:t,appId:r,serverUrl:i,token:a}){const l=`/apps/${r}/agents`,d={},u=()=>e.get(`${l}/conversations`),h=N=>e.get(`${l}/conversations/${N}`);return{getConversations:u,getConversation:h,listConversations:N=>e.get(`${l}/conversations`,{params:N}),createConversation:N=>e.post(`${l}/conversations`,N),addMessage:async(N,j)=>e.post(`${l}/conversations/v2/${N.id}/messages`,j),subscribeToConversation:(N,j)=>{const b=`/agent-conversations/${N}`,S=t(),E=h(N).then(R=>(d[N]=R,R));return S.subscribeToRoom(b,{connect:()=>{},update_model:async({data:R})=>{const O=JSON.parse(R);if(O._message){await E;const $=O._message,V=d[N];if(V){const M=V.messages||[],ne=M.findIndex(ie=>ie.id===$.id),Q=ne!==-1?M.map((ie,ee)=>ee===ne?$:ie):[...M,$];d[N]={...V,messages:Q},j==null||j(d[N])}}}})},getWhatsAppConnectURL:N=>{const j=`${i}/api/apps/${r}/agents/${encodeURIComponent(N)}/whatsapp`,b=a??Gi();return b?`${j}?token=${b}`:j},getTelegramConnectURL:N=>{const j=`${i}/api/apps/${r}/agents/${encodeURIComponent(N)}/telegram`,b=a??Gi();return b?`${j}?token=${b}`:j}}}function P0({serverUrl:e,token:t,appId:r}){return{connection:()=>{var a;return{baseURL:`${e}/api/apps/${r}/ai/openai/v1`,token:(a=t??Gi())!==null&&a!==void 0?a:""}}}}function A0(e,t){const r=`/app-logs/${t}`;return{async logUserInApp(i){await e.post(`${r}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await e.get(r,{params:i})},async getStats(i={}){return await e.get(`${r}/stats`,{params:i})}}}function uA(e,t){return{async inviteUser(r,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:r,role:i})}}}const _r=Object.create(null);_r.open="0";_r.close="1";_r.ping="2";_r.pong="3";_r.message="4";_r.upgrade="5";_r.noop="6";const Dd=Object.create(null);Object.keys(_r).forEach(e=>{Dd[_r[e]]=e});const $p={type:"error",data:"parser error"},p1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",m1=typeof ArrayBuffer=="function",x1=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Im=({type:e,data:t},r,i)=>p1&&t instanceof Blob?r?i(t):O0(t,i):m1&&(t instanceof ArrayBuffer||x1(t))?r?i(t):O0(new Blob([t]),i):i(_r[e]+(t||"")),O0=(e,t)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];t("b"+(i||""))},r.readAsDataURL(e)};function I0(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Zh;function fA(e,t){if(p1&&e.data instanceof Blob)return e.data.arrayBuffer().then(I0).then(t);if(m1&&(e.data instanceof ArrayBuffer||x1(e.data)))return t(I0(e.data));Im(e,!1,r=>{Zh||(Zh=new TextEncoder),t(Zh.encode(r))})}const M0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<M0.length;e++)fl[M0.charCodeAt(e)]=e;const hA=e=>{let t=e.length*.75,r=e.length,i,a=0,l,d,u,h;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const m=new ArrayBuffer(t),g=new Uint8Array(m);for(i=0;i<r;i+=4)l=fl[e.charCodeAt(i)],d=fl[e.charCodeAt(i+1)],u=fl[e.charCodeAt(i+2)],h=fl[e.charCodeAt(i+3)],g[a++]=l<<2|d>>4,g[a++]=(d&15)<<4|u>>2,g[a++]=(u&3)<<6|h&63;return m},pA=typeof ArrayBuffer=="function",Mm=(e,t)=>{if(typeof e!="string")return{type:"message",data:g1(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:mA(e.substring(1),t)}:Dd[r]?e.length>1?{type:Dd[r],data:e.substring(1)}:{type:Dd[r]}:$p},mA=(e,t)=>
vendor: 4,246 bytes, line 440
440{if(pA){const r=hA(e);return g1(r,t)}else return{base64:!0,data:e}},g1=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},y1="�",xA=(e,t)=>{const r=e.length,i=new Array(r);let a=0;e.forEach((l,d)=>{Im(l,!1,u=>{i[d]=u,++a===r&&t(i.join(y1))})})},gA=(e,t)=>{const r=e.split(y1),i=[];for(let a=0;a<r.length;a++){const l=Mm(r[a],t);if(i.push(l),l.type==="error")break}return i};function yA(){return new TransformStream({transform(e,t){fA(e,r=>{const i=r.length;let a;if(i<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,i);else if(i<65536){a=new Uint8Array(3);const l=new DataView(a.buffer);l.setUint8(0,126),l.setUint16(1,i)}else{a=new Uint8Array(9);const l=new DataView(a.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(i))}e.data&&typeof e.data!="string"&&(a[0]|=128),t.enqueue(a),t.enqueue(r)})}})}let ep;function yd(e){return e.reduce((t,r)=>t+r.length,0)}function vd(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let i=0;for(let a=0;a<t;a++)r[a]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),r}function vA(e,t){ep||(ep=new TextDecoder);const r=[];let i=0,a=-1,l=!1;return new TransformStream({transform(d,u){for(r.push(d);;){if(i===0){if(yd(r)<1)break;const h=vd(r,1);l=(h[0]&128)===128,a=h[0]&127,a<126?i=3:a===126?i=1:i=2}else if(i===1){if(yd(r)<2)break;const h=vd(r,2);a=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),i=3}else if(i===2){if(yd(r)<8)break;const h=vd(r,8),m=new DataView(h.buffer,h.byteOffset,h.length),g=m.getUint32(0);if(g>Math.pow(2,21)-1){u.enqueue($p);break}a=g*Math.pow(2,32)+m.getUint32(4),i=3}else{if(yd(r)<a)break;const h=vd(r,a);u.enqueue(Mm(l?h:ep.decode(h),t)),i=0}if(a===0||a>e){u.enqueue($p);break}}}})}const v1=4;function Et(e){if(e)return bA(e)}function bA(e){for(var t in Et.prototype)e[t]=Et.prototype[t];return e}Et.prototype.on=Et.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Et.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Et.prototype.off=Et.prototype.removeListener=Et.prototype.removeAllListeners=Et.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,a=0;a<r.length;a++)if(i=r[a],i===t||i.fn===t){r.splice(a,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Et.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,a=r.length;i<a;++i)r[i].apply(this,t)}return this};Et.prototype.emitReserved=Et.prototype.emit;Et.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Et.prototype.hasListeners=function(e){return!!this.listeners(e).length};const gu=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Ln=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),wA="arraybuffer";function b1(e,...t){return t.reduce((r,i)=>(e.hasOwnProperty(i)&&(r[i]=e[i]),r),{})}const jA=Ln.setTimeout,NA=Ln.clearTimeout;function yu(e,t){t.useNativeTimers?(e.setTimeoutFn=jA.bind(Ln),e.clearTimeoutFn=NA.bind(Ln)):(e.setTimeoutFn=Ln.setTimeout.bind(Ln),e.clearTimeoutFn=Ln.clearTimeout.bind(Ln))}const SA=1.33;function CA(e){return typeof e=="string"?_A(e):Math.ceil((e.byteLength||e.size)*SA)}function _A(e){let t=0,r=0;for(let i=0,a=e.length;i<a;i++)t=e.charCodeAt(i),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(i++,r+=4);return r}function w1(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function kA(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function EA(e){let t={},r=e.split("&");for(let i=0,a=r.length;i<a;i++){let l=r[i].split("=");
vendor: 6,261 bytes, line 440
440t[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return t}class RA extends Error{constructor(t,r,i){super(t),this.description=r,this.context=i,this.type="TransportError"}}class Dm extends Et{constructor(t){super(),this.writable=!1,yu(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,i){return super.emitReserved("error",new RA(t,r,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=Mm(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const r=kA(t);return r.length?"?"+r:""}}class TA extends Dm{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};gA(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,xA(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=w1()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}}let j1=!1;try{j1=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const PA=j1;function AA(){}class OA extends TA{constructor(t){if(super(t),typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,r){const i=this.request({method:"POST",data:t});i.on("success",r),i.on("error",(a,l)=>{this.onError("xhr post error",a,l)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=t}}class Sr extends Et{constructor(t,r,i){super(),this.createRequest=t,yu(this,i),this._opts=i,this._method=i.method||"GET",this._uri=r,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;const r=b1(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(r);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&i.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var a;i.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=Sr.requestsCount++,Sr.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=AA,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Sr.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Sr.requestsCount=0;Sr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",D0);else if(typeof addEventListener=="function"){const e="onpagehide"in Ln?"pagehide":"unload";addEventListener(e,D0,!1)}}function D0(){for(let e in Sr.requests)Sr.requests.hasOwnProperty(e)&&Sr.requests[e].abort()}const IA=(function(){const e=N1({xdomain:!1});return e&&e.responseType!==null})();class MA extends OA{constructor(t){super(t);const r=t&&t.forceBase64;this.supportsBinary=IA&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Sr(N1,this.uri(),t)}}function N1(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||PA))return new XMLHttpRequest}catch{}if(!t)try{return new Ln[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const S1=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class DA extends Dm{get name(){return"websocket"}doOpen(){const t=this.uri(),r=this.opts.protocols,i=S1?{}:b1(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,i)}catch(a){return this.emitReserved("error",a)}
vendor: 19,425 bytes, line 440
440this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const i=t[r],a=r===t.length-1;Im(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch{}a&&gu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=w1()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}}const tp=Ln.WebSocket||Ln.MozWebSocket;class LA extends DA{createSocket(t,r,i){return S1?new tp(t,r,i):r?new tp(t,r):new tp(t)}doWrite(t,r){this.ws.send(r)}}class FA extends Dm{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const r=vA(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=t.readable.pipeThrough(r).getReader(),a=yA();a.readable.pipeTo(t.writable),this._writer=a.writable.getWriter();const l=()=>{i.read().then(({done:u,value:h})=>{u||(this.onPacket(h),l())}).catch(u=>{})};l();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const i=t[r],a=r===t.length-1;this._writer.write(i).then(()=>{a&&gu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const BA={websocket:LA,webtransport:FA,polling:MA},zA=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$A=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Up(e){if(e.length>8e3)throw"URI too long";const t=e,r=e.indexOf("["),i=e.indexOf("]");r!=-1&&i!=-1&&(e=e.substring(0,r)+e.substring(r,i).replace(/:/g,";")+e.substring(i,e.length));let a=zA.exec(e||""),l={},d=14;for(;d--;)l[$A[d]]=a[d]||"";return r!=-1&&i!=-1&&(l.source=t,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=UA(l,l.path),l.queryKey=WA(l,l.query),l}function UA(e,t){const r=/\/{2,9}/g,i=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&i.splice(0,1),t.slice(-1)=="/"&&i.splice(i.length-1,1),i}function WA(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,a,l){a&&(r[a]=l)}),r}const Wp=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ld=[];Wp&&addEventListener("offline",()=>{Ld.forEach(e=>e())},!1);class Xs extends Et{constructor(t,r){if(super(),this.binaryType=wA,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){const i=Up(t);r.hostname=i.host,r.secure=i.protocol==="https"||i.protocol==="wss",r.port=i.port,i.query&&(r.query=i.query)}else r.host&&(r.hostname=Up(r.host).host);yu(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(i=>{const a=i.prototype.name;this.transports.push(a),this._transportsByName[a]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=EA(this.opts.query)),Wp&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ld.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=v1,r.transport=t,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Xs.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Xs.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const a=this.writeBuffer[i].data;if(a&&(r+=CA(a)),i>0&&r>this._maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,gu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,i){return this._sendPacket("message",t,r,i),this}send(t,r,i){return this._sendPacket("message",t,r,i),this}_sendPacket(t,r,i,a){if(typeof r=="function"&&(a=r,r=void 0),typeof i=="function"&&(a=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const l={type:t,data:r,options:i};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),a&&this.once("flush",a),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(Xs.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Wp&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Ld.indexOf(this._offlineEventListener);i!==-1&&Ld.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}}Xs.protocol=v1;class HA extends Xs{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),i=!1;Xs.priorWebsocketSuccess=!1;const a=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",y=>{if(!i)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Xs.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(g(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=r.name,this.emitReserved("upgradeError",w)}}))};function l(){i||(i=!0,g(),r.close(),r=null)}const d=y=>{const w=new Error("probe error: "+y);w.transport=r.name,l(),this.emitReserved("upgradeError",w)};function u(){d("transport closed")}function h(){d("socket closed")}function m(y){r&&y.name!==r.name&&l()}const g=()=>{r.removeListener("open",a),r.removeListener("error",d),r.removeListener("close",u),this.off("close",h),this.off("upgrading",m)};r.once("open",a),r.once("error",d),r.once("close",u),this.once("close",h),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{i||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const r=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&r.push(t[i]);return r}}let VA=class extends HA{constructor(t,r={}){const i=typeof t=="object"?t:r;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(a=>BA[a]).filter(a=>!!a)),super(t,i)}};function qA(e,t="",r){let i=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),i=Up(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const l=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+l+":"+i.port+t,i.href=i.protocol+"://"+l+(r&&r.port===i.port?"":":"+i.port),i}const KA=typeof ArrayBuffer=="function",GA=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,C1=Object.prototype.toString,YA=typeof Blob=="function"||typeof Blob<"u"&&C1.call(Blob)==="[object BlobConstructor]",QA=typeof File=="function"||typeof File<"u"&&C1.call(File)==="[object FileConstructor]";function Lm(e){return KA&&(e instanceof ArrayBuffer||GA(e))||YA&&e instanceof Blob||QA&&e instanceof File}function Fd(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,i=e.length;r<i;r++)if(Fd(e[r]))return!0;return!1}if(Lm(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Fd(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Fd(e[r]))return!0;return!1}function XA(e){const t=[],r=e.data,i=e;return i.data=Hp(r,t),i.attachments=t.length,{packet:i,buffers:t}}function Hp(e,t){if(!e)return e;if(Lm(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let i=0;i<e.length;i++)r[i]=Hp(e[i],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=Hp(e[i],t));return r}return e}function JA(e,t){return e.data=Vp(e.data,t),delete e.attachments,e}function Vp(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Vp(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Vp(e[r],t));return e}const ZA=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Qe;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Qe||(Qe={}));class eO{constructor(t){this.replacer=t}encode(t){return(t.type===Qe.EVENT||t.type===Qe.ACK)&&Fd(t)?this.encodeAsBinary({type:t.type===Qe.EVENT?Qe.BINARY_EVENT:Qe.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Qe.BINARY_EVENT||t.type===Qe.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=XA(t),i=this.encodeAsString(r.packet),a=r.buffers;return a.unshift(i),a}}class Fm extends Et{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);const i=r.type===Qe.BINARY_EVENT;i||r.type===Qe.BINARY_ACK?(r.type=i?Qe.EVENT:Qe.ACK,this.reconstructor=new tO(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Lm(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const i={type:Number(t.charAt(0))};if(Qe[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Qe.BINARY_EVENT||i.type===Qe.BINARY_ACK){const l=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const d=t.substring(l,r);if(d!=Number(d)||t.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(d)}if(t.charAt(r+1)==="/"){const l=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););i.nsp=t.substring(l,r)}else i.nsp="/";const a=t.charAt(r+1);if(a!==""&&Number(a)==a){const l=r+1;for(;++r;){const d=t.charAt(r);if(d==null||Number(d)!=d){--r;break}if(r===t.length)break}i.id=Number(t.substring(l,r+1))}if(t.charAt(++r)){const l=this.tryParse(t.substr(r));if(Fm.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Qe.CONNECT:return L0(r);case Qe.DISCONNECT:return r===void 0;case Qe.CONNECT_ERROR:return typeof r=="string"||L0(r);case Qe.EVENT:case Qe.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&ZA.indexOf(r[0])===-1);case Qe.ACK:case Qe.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class tO{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=JA(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function L0(e){return Object.prototype.toString.call(e)==="[object Object]"}const nO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Fm,Encoder:eO,get PacketType(){return Qe}},Symbol.toStringTag,{value:"Module"}));function Jn(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const rO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class _1 extends Et{constructor(t,r,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Jn(t,"open",this.onopen.bind(this)),Jn(t,"packet",this.onpacket.bind(this)),Jn(t,"error",this.onerror.bind(this)),Jn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var i,a,l;if(rO.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const d={type:Qe.EVENT,data:r};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const g=this.ids++,y=r.pop();this._registerAckCallback(g,y),d.id=g}const u=(a=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||a===void 0?void 0:a.writable,h=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!u||(h?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(t,r){var i;const a=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(a===void 0){this.acks[t]=r;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let u=0;u<this.sendBuffer.length;u++)this.sendBuffer[u].id===t&&this.sendBuffer.splice(u,1);r.call(this,new Error("operation has timed out"))},a),d=(...u)=>{this.io.clearTimeoutFn(l),r.apply(this,u)};d.withError=!0,this.acks[t]=d}emitWithAck(t,...r){return new Promise((i,a)=>{const l=(d,u)=>d?a(d):i(u);
vendor: 1,065 bytes, line 440
440l.withError=!0,r.push(l),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((a,...l)=>(this._queue[0],a!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(a)):(this._queue.shift(),r&&r(null,...l)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Qe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}
vendor: 7,087 bytes, line 440
440_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(i=>String(i.id)===t)){const i=this.acks[t];delete this.acks[t],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Qe.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Qe.EVENT:case Qe.BINARY_EVENT:this.onevent(t);break;case Qe.ACK:case Qe.BINARY_ACK:this.onack(t);break;case Qe.DISCONNECT:this.ondisconnect();break;case Qe.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const r=this;let i=!1;return function(...a){i||(i=!0,r.packet({type:Qe.ACK,id:t,data:a}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Qe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const r=this._anyListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,t.data)}}}function pa(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}pa.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};pa.prototype.reset=function(){this.attempts=0};pa.prototype.setMin=function(e){this.ms=e};pa.prototype.setMax=function(e){this.max=e};pa.prototype.setJitter=function(e){this.jitter=e};class qp extends Et{constructor(t,r){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,yu(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new pa({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const a=r.parser||nO;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new VA(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const a=Jn(r,"open",function(){i.onopen(),t&&t()}),l=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},d=Jn(r,"error",l);if(this._timeout!==!1){const u=this._timeout,h=this.setTimeoutFn(()=>{a(),l(new Error("timeout")),r.close()},u);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(a),this.subs.push(d),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Jn(t,"ping",this.onping.bind(this)),Jn(t,"data",this.ondata.bind(this)),Jn(t,"error",this.onerror.bind(this)),Jn(t,"close",this.onclose.bind(this)),Jn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){gu(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let i=this.nsps[t];return i?this._autoConnect&&!i.active&&i.connect():(i=new _1(this,t,r),this.nsps[t]=i),i}_destroy(t){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let i=0;i<r.length;i++)this.engine.write(r[i],t.options)}
440cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(a=>{a?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",a)):t.onreconnect()}))},r);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const al={};function Bd(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=qA(e,t.path||"/socket.io"),i=r.source,a=r.id,l=r.path,d=al[a]&&l in al[a].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||d;let h;return u?h=new qp(i,t):(al[a]||(al[a]=new qp(i,t)),h=al[a]),r.query&&!t.query&&(t.query=r.queryKey),h.socket(r.path,t)}Object.assign(Bd,{Manager:qp,Socket:_1,io:Bd,connect:Bd});const sO=250;function F0(e,t){var r;const i=(r=e.token)!==null&&r!==void 0?r:Gi(),a={app_id:e.appId,token:i};i||(a.anonymous_id=Om());const l=Bd(e.serverUrl,{path:e.mountPath,transports:e.transports,query:a});return l.on("connect",async()=>{var d;return console.log("connect",l.id),(d=t.connect)===null||d===void 0?void 0:d.call(t)}),l.on("update_model",async d=>{var u;return(u=t.update_model)===null||u===void 0?void 0:u.call(t,d)}),l.on("error",async d=>{var u;return(u=t.error)===null||u===void 0?void 0:u.call(t,d)}),l.on("connect_error",async d=>{var u;return console.error("connect_error",d),(u=t.error)===null||u===void 0?void 0:u.call(t,d)}),l}function iO({config:e}){let t={...e};const r={},i={},a={connect:async()=>{const b=[];Object.keys(r).forEach(S=>{const E=w(S);E.length!==0&&(m(S),E.forEach(({connect:R})=>{const O=async()=>R==null?void 0:R();b.push(O())}))}),await Promise.all(b)},update_model:async b=>{const E=w(b.room).map(R=>{var O;return(O=R.update_model)===null||O===void 0?void 0:O.call(R,b)});await Promise.all(E)},error:async b=>{console.error("error",b);const S=Object.values(r).flat().map(E=>{var R;return(R=E.error)===null||R===void 0?void 0:R.call(E,b)});await Promise.all(S)}};let l=F0(e,a);function d(){u()}function u(){k(),l&&l.disconnect()}function h(b){d(),t={...t,...b},l=F0(t,a)}function m(b){l.emit("join",b)}function g(b){l.emit("leave",b)}async function y(b,S){var E;const R=JSON.stringify(S);return(E=a.update_model)===null||E===void 0?void 0:E.call(a,{room:b,data:R})}function w(b){var S;return(S=r[b])!==null&&S!==void 0?S:[]}function C(b){const S=i[b];S&&(clearTimeout(S),delete i[b])}
440function k(){Object.keys(i).forEach(b=>{var S,E;clearTimeout(i[b]),delete i[b],((E=(S=r[b])===null||S===void 0?void 0:S.length)!==null&&E!==void 0?E:0)===0&&delete r[b]})}function N(b){C(b),i[b]=setTimeout(()=>{var S,E;delete i[b],!(((E=(S=r[b])===null||S===void 0?void 0:S.length)!==null&&E!==void 0?E:0)>0)&&(g(b),delete r[b])},sO)}return{socket:l,subscribeToRoom:(b,S)=>{r[b]?C(b):(m(b),r[b]=[]),r[b].push(S);let E=!1;return()=>{var R,O;E||(E=!0,r[b]=(O=(R=r[b])===null||R===void 0?void 0:R.filter($=>$!==S))!==null&&O!==void 0?O:[],r[b].length===0&&N(b))}},updateConfig:h,updateModel:y,disconnect:u}}function Bm(e){var t,r;const{serverUrl:i="https://base44.app",appId:a,token:l,serviceToken:d,requiresAuth:u=!1,appBaseUrl:h,options:m,functionsVersion:g,headers:y}=e,w=typeof h=="string"?h:"",C={serverUrl:i,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:a,token:l};let k=null;const N=()=>(k||(k=iO({config:C})),k),j={...y,"X-App-Id":String(a)},b=g?{...j,"Base44-Functions-Version":g}:j,S=ul({baseURL:`${i}/api`,headers:j,token:l,onError:m==null?void 0:m.onError}),E=ul({baseURL:`${i}/api`,headers:b,token:l,interceptResponses:!1,onError:m==null?void 0:m.onError}),R={...j,...l?{"on-behalf-of":`Bearer ${l}`}:{}},O=ul({baseURL:`${i}/api`,headers:R,token:d,onError:m==null?void 0:m.onError}),$=ul({baseURL:`${i}/api`,headers:b,token:d,interceptResponses:!1}),V=iA(S,E,a,{appBaseUrl:w});if(typeof window<"u"){const ie=l||Gi();ie&&V.setToken(ie)}const M={entities:k0({axios:S,appId:a,getSocket:N}),integrations:E0(S,a),connectors:lA(S,a),auth:V,functions:R0(E,a,{getAuthHeaders:()=>{const ie={},ee=l||Gi();return ee&&(ie.Authorization=`Bearer ${ee}`),ie},baseURL:(t=E.defaults)===null||t===void 0?void 0:t.baseURL}),agents:T0({axios:S,getSocket:N,appId:a,serverUrl:i,token:l}),aiGateway:P0({serverUrl:i,token:l,appId:a}),appLogs:A0(S,a),users:uA(S,a),analytics:qP({axiosClient:S,serverUrl:i,appId:a,userAuthModule:V}),cleanup:()=>{M.analytics.cleanup(),k&&k.disconnect()}},ne={entities:k0({axios:O,appId:a,getSocket:N}),integrations:E0(O,a),sso:oA(O,a),connectors:aA(O,a),functions:R0($,a,{getAuthHeaders:()=>{const ie={};return d&&(ie.Authorization=`Bearer ${d}`),ie},baseURL:(r=$.defaults)===null||r===void 0?void 0:r.baseURL}),agents:T0({axios:O,getSocket:N,appId:a,serverUrl:i,token:l}),aiGateway:P0({serverUrl:i,token:d,appId:a}),appLogs:A0(O,a),cleanup:()=>{k&&k.disconnect()}};return u&&typeof window<"u"&&setTimeout(async()=>{try{await M.auth.isAuthenticated()||M.auth.redirectToLogin(window.location.href)}catch(ie){console.error("Authentication check failed:",ie),M.auth.redirectToLogin(window.location.href)}},0),{...M,setToken(ie){M.auth.setToken(ie),k&&k.updateConfig({token:ie}),C.token=ie},getConfig(){return{serverUrl:i,appId:a,requiresAuth:u}},get asServiceRole(){if(!d)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return ne}}}function oO(e){const t=e.headers.get("Authorization"),r=e.headers.get("Base44-Service-Authorization"),i=e.headers.get("Base44-App-Id"),a=e.headers.get("Base44-Api-Url"),l=e.headers.get("Base44-Functions-Version"),d=e.headers.get("Base44-State"),u=e.headers.get("X-Data-Env");if(!i)throw new Error("Base44-App-Id header is required, but is was not found on the request");let h,m;if(r!==null){if(r===""||!r.startsWith("Bearer ")||r.split(" ").length!==2)throw new Error('Invalid authorization header format. Expected "Bearer <token>"');h=r.split(" ")[1]}if(t!==null){if(t===""||!t.startsWith("Bearer ")||t.split(" ").length!==2)throw new Error('Invalid authorization header format. Expected "Bearer <token>"');m=t.split(" ")[1]}const g={};return d&&(g["Base44-State"]=d),(u==="dev"||u==="prod")&&(g["X-Data-Env"]=u),Bm({serverUrl:a||"https://base44.app",appId:i,token:m,serviceToken:h,functionsVersion:l??void 0,headers:g})}const aO=Object.freeze(Object.defineProperty({__proto__:null,Base44Error:f1,createClient:Bm,createClientFromRequest:oO,getAccessToken:Gi,getLoginUrl:dA,removeAccessToken:cA,saveAccessToken:h1},Symbol.toStringTag,{value:"Module"})),lO=V_(aO);var B0;function zm(){if(B0)return Vh;B0=1;const{createClient:e}=lO;return Vh.base44=e({appId:"6894fed1c3072e9c04a69dda",serverUrl:"https://base44.app"}),Vh}var np,z0;function cO(){if(z0)return np;z0=1;const{base44:e}=zm();return np=new Proxy({},{get:(t,r)=>new Proxy({},{get:(i,a)=>
vendor: 15,707 bytes, line 440
440{if(r==="User"){if(a==="me")return e.auth.me;if(a==="loginWithRedirect"||a==="login")return e.auth.loginWithRedirect;if(a==="logout")return e.auth.logout;if(a==="updateMyUserData")return e.auth.updateMe}return e.entities[r][a]}})}),np}var tt=cO(),rp,$0;function dO(){if($0)return rp;$0=1;const{base44:e}=zm();return rp=new Proxy({},{get:(t,r)=>(...i)=>e.integrations.Core[r](...i)}),rp}var Js=dO();const It=p.forwardRef(({className:e,...t},r)=>n.jsx("textarea",{className:Pe("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));It.displayName="Textarea";function U0(e,[t,r]){return Math.min(r,Math.max(t,e))}function ve(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function uO(e,t){const r=p.createContext(t),i=l=>{const{children:d,...u}=l,h=p.useMemo(()=>u,Object.values(u));return n.jsx(r.Provider,{value:h,children:d})};i.displayName=e+"Provider";function a(l){const d=p.useContext(r);if(d)return d;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[i,a]}function _n(e,t=[]){let r=[];function i(l,d){const u=p.createContext(d),h=r.length;r=[...r,d];const m=y=>{var b;const{scope:w,children:C,...k}=y,N=((b=w==null?void 0:w[e])==null?void 0:b[h])||u,j=p.useMemo(()=>k,Object.values(k));return n.jsx(N.Provider,{value:j,children:C})};m.displayName=l+"Provider";function g(y,w){var N;const C=((N=w==null?void 0:w[e])==null?void 0:N[h])||u,k=p.useContext(C);if(k)return k;if(d!==void 0)return d;throw new Error(`\`${y}\` must be used within \`${l}\``)}return[m,g]}const a=()=>{const l=r.map(d=>p.createContext(d));return function(u){const h=(u==null?void 0:u[e])||l;return p.useMemo(()=>({[`__scope${e}`]:{...u,[e]:h}}),[u,h])}};return a.scopeName=e,[i,fO(a,...t)]}function fO(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const d=i.reduce((u,{useScope:h,scopeName:m})=>{const y=h(l)[`__scope${m}`];return{...u,...y}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:d}),[d])}};return r.scopeName=t.scopeName,r}function W0(e){const t=hO(e),r=p.forwardRef((i,a)=>{const{children:l,...d}=i,u=p.Children.toArray(l),h=u.find(mO);if(h){const m=h.props.children,g=u.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return n.jsx(t,{...d,ref:a,children:p.isValidElement(m)?p.cloneElement(m,void 0,g):null})}return n.jsx(t,{...d,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}function hO(e){const t=p.forwardRef((r,i)=>{const{children:a,...l}=r;if(p.isValidElement(a)){const d=gO(a),u=xO(l,a.props);return a.type!==p.Fragment&&(u.ref=i?Jr(i,d):d),p.cloneElement(a,u)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pO=Symbol("radix.slottable");function mO(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pO}function xO(e,t){const r={...t};for(const i in t){const a=e[i],l=t[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...u)=>{const h=l(...u);return a(...u),h}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function gO(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function vu(e){const t=e+"CollectionProvider",[r,i]=_n(t),[a,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=N=>{const{scope:j,children:b}=N,S=ft.useRef(null),E=ft.useRef(new Map).current;return n.jsx(a,{scope:j,itemMap:E,collectionRef:S,children:b})};d.displayName=t;const u=e+"CollectionSlot",h=W0(u),m=ft.forwardRef((N,j)=>{const{scope:b,children:S}=N,E=l(u,b),R=Xe(j,E.collectionRef);return n.jsx(h,{ref:R,children:S})});m.displayName=u;const g=e+"CollectionItemSlot",y="data-radix-collection-item",w=W0(g),C=ft.forwardRef((N,j)=>{const{scope:b,children:S,...E}=N,R=ft.useRef(null),O=Xe(j,R),$=l(g,b);return ft.useEffect(()=>($.itemMap.set(R,{ref:R,...E}),()=>void $.itemMap.delete(R))),n.jsx(w,{[y]:"",ref:O,children:S})});C.displayName=g;function k(N){const j=l(e+"CollectionConsumer",N);return ft.useCallback(()=>{const S=j.collectionRef.current;if(!S)return[];const E=Array.from(S.querySelectorAll(`[${y}]`));return Array.from(j.itemMap.values()).sort(($,V)=>E.indexOf($.ref.current)-E.indexOf(V.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:d,Slot:m,ItemSlot:C},k,i]}var yO=p.createContext(void 0);function Hl(e){const t=p.useContext(yO);return e||t||"ltr"}function vO(e){const t=bO(e),r=p.forwardRef((i,a)=>{const{children:l,...d}=i,u=p.Children.toArray(l),h=u.find(jO);if(h){const m=h.props.children,g=u.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return n.jsx(t,{...d,ref:a,children:p.isValidElement(m)?p.cloneElement(m,void 0,g):null})}return n.jsx(t,{...d,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}function bO(e){const t=p.forwardRef((r,i)=>{const{children:a,...l}=r;if(p.isValidElement(a)){const d=SO(a),u=NO(l,a.props);return a.type!==p.Fragment&&(u.ref=i?Jr(i,d):d),p.cloneElement(a,u)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wO=Symbol("radix.slottable");function jO(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wO}function NO(e,t){const r={...t};for(const i in t){const a=e[i],l=t[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...u)=>{const h=l(...u);return a(...u),h}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function SO(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var CO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=CO.reduce((e,t)=>{const r=vO(`Primitive.${t}`),i=p.forwardRef((a,l)=>{const{asChild:d,...u}=a,h=d?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(h,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function k1(e,t){e&&Fl.flushSync(()=>e.dispatchEvent(t))}function kr(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>{var i;return(i=t.current)==null?void 0:i.call(t,...r)},[])}function _O(e,t=globalThis==null?void 0:globalThis.document){const r=kr(e);p.useEffect(()=>{const i=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[r,t])}var kO="DismissableLayer",Kp="dismissableLayer.update",EO="dismissableLayer.pointerDownOutside",RO="dismissableLayer.focusOutside",H0,E1=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vl=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:d,onDismiss:u,...h}=e,m=p.useContext(E1),[g,y]=p.useState(null),w=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=p.useState({}),k=Xe(t,V=>y(V)),N=Array.from(m.layers),[j]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),b=N.indexOf(j),S=g?N.indexOf(g):-1,E=m.layersWithOutsidePointerEventsDisabled.size>0,R=S>=b,O=AO(V=>{const M=V.target,ne=[...m.branches].some(Q=>Q.contains(M));!R||ne||(a==null||a(V),d==null||d(V),V.defaultPrevented||u==null||u())},w),$=OO(V=>{const M=V.target;[...m.branches].some(Q=>Q.contains(M))||(l==null||l(V),d==null||d(V),V.defaultPrevented||u==null||u())},w);return _O(V=>{S===m.layers.size-1&&(i==null||i(V),!V.defaultPrevented&&u&&(V.preventDefault(),u()))},w),p.useEffect(()=>{if(g)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(H0=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),V0(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=H0)}},[g,w,r,m]),p.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),V0())},[g,m]),p.useEffect(()=>{const V=()=>C({});return document.addEventListener(Kp,V),()=>document.removeEventListener(Kp,V)},[]),n.jsx($e.div,{...h,ref:k,style:{pointerEvents:E?R?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,$.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,O.onPointerDownCapture)})});Vl.displayName=kO;var TO="DismissableLayerBranch",PO=p.forwardRef((e,t)=>{const r=p.useContext(E1),i=p.useRef(null),a=Xe(t,i);return p.useEffect(()=>{const l=i.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),n.jsx($e.div,{...e,ref:a})});PO.displayName=TO;function AO(e,t=globalThis==null?void 0:globalThis.document){const r=kr(e),i=p.useRef(!1),a=p.useRef(()=>{});return p.useEffect(()=>{const l=u=>{if(u.target&&!i.current){let h=function(){R1(EO,r,m,{discrete:!0})};const m={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=h,t.addEventListener("click",a.current,{once:!0})):h()}else t.removeEventListener("click",a.current);i.current=!1},d=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(d),t.removeEventListener("pointerdown",l),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}function OO(e,t=globalThis==null?void 0:globalThis.document){const r=kr(e),i=p.useRef(!1);return p.useEffect(()=>{const a=l=>{l.target&&!i.current&&R1(RO,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function V0(){const e=new CustomEvent(Kp);document.dispatchEvent(e)}function R1(e,t,r,{discrete:i}){const a=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),i?k1(a,l):a.dispatchEvent(l)}var sp=0;function $m(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??q0()),document.body.insertAdjacentElement("beforeend",e[1]??q0()),sp++,()=>{sp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),sp--}},[])}function q0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ip="focusScope.autoFocusOnMount",op="focusScope.autoFocusOnUnmount",K0={bubbles:!1,cancelable:!0},IO="FocusScope",bu=p.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...d}=e,[u,h]=p.useState(null),m=kr(a),g=kr(l),y=p.useRef(null),w=Xe(t,N=>h(N)),C=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(i){let N=function(E){if(C.paused||!u)return;const R=E.target;u.contains(R)?y.current=R:Es(y.current,{select:!0})},j=function(E){if(C.paused||!u)return;const R=E.relatedTarget;R!==null&&(u.contains(R)||Es(y.current,{select:!0}))},b=function(E){if(document.activeElement===document.body)for(const O of E)O.removedNodes.length>0&&Es(u)};document.addEventListener("focusin",N),document.addEventListener("focusout",j);const S=new MutationObserver(b);return u&&S.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",j),S.disconnect()}}},[i,u,C.paused]),p.useEffect(()=>{if(u){Y0.add(C);const N=document.activeElement;if(!u.contains(N)){const b=new CustomEvent(ip,K0);u.addEventListener(ip,m),u.dispatchEvent(b),b.defaultPrevented||(MO(zO(T1(u)),{select:!0}),document.activeElement===N&&Es(u))}return()=>{u.removeEventListener(ip,m),setTimeout(()=>{const b=new CustomEvent(op,K0);u.addEventListener(op,g),u.dispatchEvent(b),b.defaultPrevented||Es(N??document.body,{select:!0}),u.removeEventListener(op,g),Y0.remove(C)},0)}}},[u,m,g,C]);const k=p.useCallback(N=>{if(!r&&!i||C.paused)return;const j=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,b=document.activeElement;if(j&&b){const S=N.currentTarget,[E,R]=DO(S);E&&R?!N.shiftKey&&b===R?(N.preventDefault(),r&&Es(E,{select:!0})):N.shiftKey&&b===E&&(N.preventDefault(),r&&Es(R,{select:!0})):b===S&&N.preventDefault()}},[r,i,C.paused]);return n.jsx($e.div,{tabIndex:-1,...d,ref:w,onKeyDown:k})});bu.displayName=IO;function MO(e,{select:t=!1}={}){const r=document.activeElement;for(const i of e)if(Es(i,{select:t}),document.activeElement!==r)return}function DO(e){const t=T1(e),r=G0(t,e),i=G0(t.reverse(),e);return[r,i]}function T1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function G0(e,t){for(const r of e)if(!LO(r,{upTo:t}))return r}function LO(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 FO(e){return e instanceof HTMLInputElement&&"select"in e}function Es(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&FO(e)&&t&&e.select()}}var Y0=BO();function BO(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Q0(e,t),e.unshift(t)},remove(t){var r;e=Q0(e,t),(r=e[0])==null||r.resume()}}}function Q0(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function zO(e){return e.filter(t=>t.tagName!=="A")}var qt=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},$O=fu[" useId ".trim().toString()]||(()=>{}),UO=0;function Sn(e){const[t,r]=p.useState($O());return qt(()=>{r(i=>i??String(UO++))},[e]),t?`radix-${t}`:""}const WO=["top","right","bottom","left"],ri=Math.min,wn=Math.max,tu=Math.round,bd=Math.floor,Cr=e=>({x:e,y:e}),HO={left:"right",right:"left",bottom:"top",top:"bottom"},VO={start:"end",end:"start"};function Gp(e,t,r){return wn(e,ri(t,r))}function Qr(e,t){return typeof e=="function"?e(t):e}function Xr(e){return e.split("-")[0]}function ma(e){return e.split("-")[1]}function Um(e){return e==="x"?"y":"x"}function Wm(e){return e==="y"?"height":"width"}const qO=new Set(["top","bottom"]);function wr(e){return qO.has(Xr(e))?"y":"x"}function Hm(e){return Um(wr(e))}function KO(e,t,r){r===void 0&&(r=!1);const i=ma(e),a=Hm(e),l=Wm(a);let d=a==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(d=nu(d)),[d,nu(d)]}function GO(e){const t=nu(e);return[Yp(e),t,Yp(t)]}function Yp(e){return e.replace(/start|end/g,t=>VO[t])}const X0=["left","right"],J0=["right","left"],YO=["top","bottom"],QO=["bottom","top"];function XO(e,t,r){switch(e){case"top":case"bottom":return r?t?J0:X0:t?X0:J0;case"left":case"right":return t?YO:QO;default:return[]}}
vendor: 11,127 bytes, line 440
440function JO(e,t,r,i){const a=ma(e);let l=XO(Xr(e),r==="start",i);return a&&(l=l.map(d=>d+"-"+a),t&&(l=l.concat(l.map(Yp)))),l}function nu(e){return e.replace(/left|right|bottom|top/g,t=>HO[t])}function ZO(e){return{top:0,right:0,bottom:0,left:0,...e}}function P1(e){return typeof e!="number"?ZO(e):{top:e,right:e,bottom:e,left:e}}function ru(e){const{x:t,y:r,width:i,height:a}=e;return{width:i,height:a,top:r,left:t,right:t+i,bottom:r+a,x:t,y:r}}function Z0(e,t,r){let{reference:i,floating:a}=e;const l=wr(t),d=Hm(t),u=Wm(d),h=Xr(t),m=l==="y",g=i.x+i.width/2-a.width/2,y=i.y+i.height/2-a.height/2,w=i[u]/2-a[u]/2;let C;switch(h){case"top":C={x:g,y:i.y-a.height};break;case"bottom":C={x:g,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y};break;case"left":C={x:i.x-a.width,y};break;default:C={x:i.x,y:i.y}}switch(ma(t)){case"start":C[d]-=w*(r&&m?-1:1);break;case"end":C[d]+=w*(r&&m?-1:1);break}return C}async function eI(e,t){var r;t===void 0&&(t={});const{x:i,y:a,platform:l,rects:d,elements:u,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:w=!1,padding:C=0}=Qr(t,e),k=P1(C),j=u[w?y==="floating"?"reference":"floating":y],b=ru(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(j)))==null||r?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(u.floating)),boundary:m,rootBoundary:g,strategy:h})),S=y==="floating"?{x:i,y:a,width:d.floating.width,height:d.floating.height}:d.reference,E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u.floating)),R=await(l.isElement==null?void 0:l.isElement(E))?await(l.getScale==null?void 0:l.getScale(E))||{x:1,y:1}:{x:1,y:1},O=ru(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:S,offsetParent:E,strategy:h}):S);return{top:(b.top-O.top+k.top)/R.y,bottom:(O.bottom-b.bottom+k.bottom)/R.y,left:(b.left-O.left+k.left)/R.x,right:(O.right-b.right+k.right)/R.x}}const tI=async(e,t,r)=>{const{placement:i="bottom",strategy:a="absolute",middleware:l=[],platform:d}=r,u=l.filter(Boolean),h=await(d.isRTL==null?void 0:d.isRTL(t));let m=await d.getElementRects({reference:e,floating:t,strategy:a}),{x:g,y}=Z0(m,i,h),w=i,C={},k=0;for(let j=0;j<u.length;j++){var N;const{name:b,fn:S}=u[j],{x:E,y:R,data:O,reset:$}=await S({x:g,y,initialPlacement:i,placement:w,strategy:a,middlewareData:C,rects:m,platform:{...d,detectOverflow:(N=d.detectOverflow)!=null?N:eI},elements:{reference:e,floating:t}});g=E??g,y=R??y,C={...C,[b]:{...C[b],...O}},$&&k<=50&&(k++,typeof $=="object"&&($.placement&&(w=$.placement),$.rects&&(m=$.rects===!0?await d.getElementRects({reference:e,floating:t,strategy:a}):$.rects),{x:g,y}=Z0(m,w,h)),j=-1)}return{x:g,y,placement:w,strategy:a,middlewareData:C}},nI=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:i,placement:a,rects:l,platform:d,elements:u,middlewareData:h}=t,{element:m,padding:g=0}=Qr(e,t)||{};if(m==null)return{};const y=P1(g),w={x:r,y:i},C=Hm(a),k=Wm(C),N=await d.getDimensions(m),j=C==="y",b=j?"top":"left",S=j?"bottom":"right",E=j?"clientHeight":"clientWidth",R=l.reference[k]+l.reference[C]-w[C]-l.floating[k],O=w[C]-l.reference[C],$=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m));let V=$?$[E]:0;(!V||!await(d.isElement==null?void 0:d.isElement($)))&&(V=u.floating[E]||l.floating[k]);const M=R/2-O/2,ne=V/2-N[k]/2-1,Q=ri(y[b],ne),ie=ri(y[S],ne),ee=Q,Z=V-N[k]-ie,L=V/2-N[k]/2+M,W=Gp(ee,L,Z),te=!h.arrow&&ma(a)!=null&&L!==W&&l.reference[k]/2-(L<ee?Q:ie)-N[k]/2<0,le=te?L<ee?L-ee:L-Z:0;return{[C]:w[C]+le,data:{[C]:W,centerOffset:L-W-le,...te&&{alignmentOffset:le}},reset:te}}}),rI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,i;const{placement:a,middlewareData:l,rects:d,initialPlacement:u,platform:h,elements:m}=t,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:N=!0,...j}=Qr(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const b=Xr(a),S=wr(u),E=Xr(u)===u,R=await(h.isRTL==null?void 0:h.isRTL(m.floating)),O=w||(E||!N?[nu(u)]:GO(u)),$=k!=="none";!w&&$&&O.push(...JO(u,N,k,R));const V=[u,...O],M=await h.detectOverflow(t,j),ne=[];let Q=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&ne.push(M[b]),y){const L=KO(a,d,R);ne.push(M[L[0]],M[L[1]])}if(Q=[...Q,{placement:a,overflows:ne}],!ne.every(L=>L<=0)){var ie,ee;const L=(((ie=l.flip)==null?void 0:ie.index)||0)+1,W=V[L];if(W&&(!(y==="alignment"?S!==wr(W):!1)||Q.every(G=>wr(G.placement)===S?G.overflows[0]>0:!0)))return{data:{index:L,overflows:Q},reset:{placement:W}};let te=(ee=Q.filter(le=>le.overflows[0]<=0).sort((le,G)=>le.overflows[1]-G.overflows[1])[0])==null?void 0:ee.placement;if(!te)switch(C){case"bestFit":{var Z;const le=(Z=Q.filter(G=>{if($){const q=wr(G.placement);return q===S||q==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(q=>q>0).reduce((q,U)=>q+U,0)]).sort((G,q)=>G[1]-q[1])[0])==null?void 0:Z[0];le&&(te=le);break}case"initialPlacement":te=u;break}if(a!==te)return{reset:{placement:te}}}return{}}}};function eb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tb(e){return WO.some(t=>e[t]>=0)}const sI=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:i}=t,{strategy:a="referenceHidden",...l}=Qr(e,t);switch(a){case"referenceHidden":{const d=await i.detectOverflow(t,{...l,elementContext:"reference"}),u=eb(d,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:tb(u)}}}case"escaped":{const d=await i.detectOverflow(t,{...l,altBoundary:!0}),u=eb(d,r.floating);return{data:{escapedOffsets:u,escaped:tb(u)}}}default:return{}}}}},A1=new Set(["left","top"]);async function iI(e,t){const{placement:r,platform:i,elements:a}=e,l=await(i.isRTL==null?void 0:i.isRTL(a.floating)),d=Xr(r),u=ma(r),h=wr(r)==="y",m=A1.has(d)?-1:1,g=l&&h?-1:1,y=Qr(t,e);let{mainAxis:w,crossAxis:C,alignmentAxis:k}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return u&&typeof k=="number"&&(C=u==="end"?k*-1:k),h?{x:C*g,y:w*m}:{x:w*m,y:C*g}}const oI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,i;const{x:a,y:l,placement:d,middlewareData:u}=t,h=await iI(t,e);return d===((r=u.offset)==null?void 0:r.placement)&&(i=u.arrow)!=null&&i.alignmentOffset?{}:{x:a+h.x,y:l+h.y,data:{...h,placement:d}}}}},aI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:i,placement:a,platform:l}=t,{mainAxis:d=!0,crossAxis:u=!1,limiter:h={fn:b=>{let{x:S,y:E}=b;return{x:S,y:E}}},...m}=Qr(e,t),g={x:r,y:i},y=await l.detectOverflow(t,m),w=wr(Xr(a)),C=Um(w);let k=g[C],N=g[w];if(d){const b=C==="y"?"top":"left",S=C==="y"?"bottom":"right",E=k+y[b],R=k-y[S];k=Gp(E,k,R)}if(u){const b=w==="y"?"top":"left",S=w==="y"?"bottom":"right",E=N+y[b],R=N-y[S];N=Gp(E,N,R)}const j=h.fn({...t,[C]:k,[w]:N});return{...j,data:{x:j.x-r,y:j.y-i,enabled:{[C]:d,[w]:u}}}}}},lI=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:i,placement:a,rects:l,middlewareData:d}=t,{offset:u=0,mainAxis:h=!0,crossAxis:m=!0}=Qr(e,t),g={x:r,y:i},y=wr(a),w=Um(y);let C=g[w],k=g[y];const N=Qr(u,t),j=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(h){const E=w==="y"?"height":"width",R=l.reference[w]-l.floating[E]+j.mainAxis,O=l.reference[w]+l.reference[E]-j.mainAxis;C<R?C=R:C>O&&(C=O)}if(m){var b,S;const E=w==="y"?"width":"height",R=A1.has(Xr(a)),O=l.reference[y]-l.floating[E]+(R&&((b=d.offset)==null?void 0:b[y])||0)+(R?0:j.crossAxis),$=l.reference[y]+l.reference[E]+(R?0:((S=d.offset)==null?void 0:S[y])||0)-(R?j.crossAxis:0);k<O?k=O:k>$&&(k=$)}return{[w]:C,[y]:k}}}},cI=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,i;const{placement:a,rects:l,platform:d,elements:u}=t,{apply:h=()=>{},...m}=Qr(e,t),g=await d.detectOverflow(t,m),y=Xr(a),w=ma(a),C=wr(a)==="y",{width:k,height:N}=l.floating;let j,b;y==="top"||y==="bottom"?(j=y,b=w===(await(d.isRTL==null?void 0:d.isRTL(u.floating))?"start":"end")?"left":"right"):(b=y,j=w==="end"?"top":"bottom");const S=N-g.top-g.bottom,E=k-g.left-g.right,R=ri(N-g[j],S),O=ri(k-g[b],E),$=!t.middlewareData.shift;let V=R,M=O;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(M=E),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(V=S),$&&!w){const Q=wn(g.left,0),ie=wn(g.right,0),ee=wn(g.top,0),Z=wn(g.bottom,0);C?M=k-2*(Q!==0||ie!==0?Q+ie:wn(g.left,g.right)):V=N-2*(ee!==0||Z!==0?ee+Z:wn(g.top,g.bottom))}await h({...t,availableWidth:M,availableHeight:V});const ne=await d.getDimensions(u.floating);return k!==ne.width||N!==ne.height?{reset:{rects:!0}}:{}}}};function wu(){return typeof window<"u"}function xa(e){return O1(e)?(e.nodeName||"").toLowerCase():"#document"}function Cn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rr(e){var t;return(t=(O1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function O1(e){return wu()?e instanceof Node||e instanceof Cn(e).Node:!1}function tr(e){return wu()?e instanceof Element||e instanceof Cn(e).Element:!1}function Er(e){return wu()?e instanceof HTMLElement||e instanceof Cn(e).HTMLElement:!1}function nb(e){return!wu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Cn(e).ShadowRoot}const dI=new Set(["inline","contents"]);function ql(e){const{overflow:t,overflowX:r,overflowY:i,display:a}=nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!dI.has(a)}const uI=new Set(["table","td","th"]);function fI(e){return uI.has(xa(e))}const hI=[":popover-open",":modal"];function ju(e){return hI.some(t=>{try{return e.matches(t)}catch{return!1}})}const pI=["transform","translate","scale","rotate","perspective"],mI=["transform","translate","scale","rotate","perspective","filter"],xI=["paint","layout","strict","content"];function Vm(e){const t=qm(),r=tr(e)?nr(e):e;return pI.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||mI.some(i=>(r.willChange||"").includes(i))||xI.some(i=>(r.contain||"").includes(i))}function gI(e){let t=si(e);for(;Er(t)&&!aa(t);){if(Vm(t))return t;if(ju(t))return null;t=si(t)}return null}function qm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const yI=new Set(["html","body","#document"]);function aa(e){return yI.has(xa(e))}function nr(e){return Cn(e).getComputedStyle(e)}function Nu(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function si(e){if(xa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nb(e)&&e.host||Rr(e);return nb(t)?t.host:t}function I1(e){const t=si(e);return aa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Er(t)&&ql(t)?t:I1(t)}function Cl(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=I1(e),l=a===((i=e.ownerDocument)==null?void 0:i.body),d=Cn(a);if(l){const u=Qp(d);
vendor: 22,716 bytes, line 440
440return t.concat(d,d.visualViewport||[],ql(a)?a:[],u&&r?Cl(u):[])}return t.concat(a,Cl(a,[],r))}function Qp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function M1(e){const t=nr(e);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Er(e),l=a?e.offsetWidth:r,d=a?e.offsetHeight:i,u=tu(r)!==l||tu(i)!==d;return u&&(r=l,i=d),{width:r,height:i,$:u}}function Km(e){return tr(e)?e:e.contextElement}function Uo(e){const t=Km(e);if(!Er(t))return Cr(1);const r=t.getBoundingClientRect(),{width:i,height:a,$:l}=M1(t);let d=(l?tu(r.width):r.width)/i,u=(l?tu(r.height):r.height)/a;return(!d||!Number.isFinite(d))&&(d=1),(!u||!Number.isFinite(u))&&(u=1),{x:d,y:u}}const vI=Cr(0);function D1(e){const t=Cn(e);return!qm()||!t.visualViewport?vI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bI(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Cn(e)?!1:t}function Yi(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),l=Km(e);let d=Cr(1);t&&(i?tr(i)&&(d=Uo(i)):d=Uo(e));const u=bI(l,r,i)?D1(l):Cr(0);let h=(a.left+u.x)/d.x,m=(a.top+u.y)/d.y,g=a.width/d.x,y=a.height/d.y;if(l){const w=Cn(l),C=i&&tr(i)?Cn(i):i;let k=w,N=Qp(k);for(;N&&i&&C!==k;){const j=Uo(N),b=N.getBoundingClientRect(),S=nr(N),E=b.left+(N.clientLeft+parseFloat(S.paddingLeft))*j.x,R=b.top+(N.clientTop+parseFloat(S.paddingTop))*j.y;h*=j.x,m*=j.y,g*=j.x,y*=j.y,h+=E,m+=R,k=Cn(N),N=Qp(k)}}return ru({width:g,height:y,x:h,y:m})}function Su(e,t){const r=Nu(e).scrollLeft;return t?t.left+r:Yi(Rr(e)).left+r}function L1(e,t){const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-Su(e,r),a=r.top+t.scrollTop;return{x:i,y:a}}function wI(e){let{elements:t,rect:r,offsetParent:i,strategy:a}=e;const l=a==="fixed",d=Rr(i),u=t?ju(t.floating):!1;if(i===d||u&&l)return r;let h={scrollLeft:0,scrollTop:0},m=Cr(1);const g=Cr(0),y=Er(i);if((y||!y&&!l)&&((xa(i)!=="body"||ql(d))&&(h=Nu(i)),Er(i))){const C=Yi(i);m=Uo(i),g.x=C.x+i.clientLeft,g.y=C.y+i.clientTop}const w=d&&!y&&!l?L1(d,h):Cr(0);return{width:r.width*m.x,height:r.height*m.y,x:r.x*m.x-h.scrollLeft*m.x+g.x+w.x,y:r.y*m.y-h.scrollTop*m.y+g.y+w.y}}function jI(e){return Array.from(e.getClientRects())}function NI(e){const t=Rr(e),r=Nu(e),i=e.ownerDocument.body,a=wn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=wn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let d=-r.scrollLeft+Su(e);const u=-r.scrollTop;return nr(i).direction==="rtl"&&(d+=wn(t.clientWidth,i.clientWidth)-a),{width:a,height:l,x:d,y:u}}const rb=25;function SI(e,t){const r=Cn(e),i=Rr(e),a=r.visualViewport;let l=i.clientWidth,d=i.clientHeight,u=0,h=0;if(a){l=a.width,d=a.height;const g=qm();(!g||g&&t==="fixed")&&(u=a.offsetLeft,h=a.offsetTop)}const m=Su(i);if(m<=0){const g=i.ownerDocument,y=g.body,w=getComputedStyle(y),C=g.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,k=Math.abs(i.clientWidth-y.clientWidth-C);k<=rb&&(l-=k)}else m<=rb&&(l+=m);return{width:l,height:d,x:u,y:h}}const CI=new Set(["absolute","fixed"]);function _I(e,t){const r=Yi(e,!0,t==="fixed"),i=r.top+e.clientTop,a=r.left+e.clientLeft,l=Er(e)?Uo(e):Cr(1),d=e.clientWidth*l.x,u=e.clientHeight*l.y,h=a*l.x,m=i*l.y;return{width:d,height:u,x:h,y:m}}function sb(e,t,r){let i;if(t==="viewport")i=SI(e,r);else if(t==="document")i=NI(Rr(e));else if(tr(t))i=_I(t,r);else{const a=D1(e);i={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return ru(i)}function F1(e,t){const r=si(e);return r===t||!tr(r)||aa(r)?!1:nr(r).position==="fixed"||F1(r,t)}function kI(e,t){const r=t.get(e);if(r)return r;let i=Cl(e,[],!1).filter(u=>tr(u)&&xa(u)!=="body"),a=null;const l=nr(e).position==="fixed";let d=l?si(e):e;for(;tr(d)&&!aa(d);){const u=nr(d),h=Vm(d);!h&&u.position==="fixed"&&(a=null),(l?!h&&!a:!h&&u.position==="static"&&!!a&&CI.has(a.position)||ql(d)&&!h&&F1(e,d))?i=i.filter(g=>g!==d):a=u,d=si(d)}return t.set(e,i),i}function EI(e){let{element:t,boundary:r,rootBoundary:i,strategy:a}=e;const d=[...r==="clippingAncestors"?ju(t)?[]:kI(t,this._c):[].concat(r),i],u=d[0],h=d.reduce((m,g)=>{const y=sb(t,g,a);return m.top=wn(y.top,m.top),m.right=ri(y.right,m.right),m.bottom=ri(y.bottom,m.bottom),m.left=wn(y.left,m.left),m},sb(t,u,a));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function RI(e){const{width:t,height:r}=M1(e);return{width:t,height:r}}function TI(e,t,r){const i=Er(t),a=Rr(t),l=r==="fixed",d=Yi(e,!0,l,t);let u={scrollLeft:0,scrollTop:0};const h=Cr(0);function m(){h.x=Su(a)}if(i||!i&&!l)if((xa(t)!=="body"||ql(a))&&(u=Nu(t)),i){const C=Yi(t,!0,l,t);h.x=C.x+t.clientLeft,h.y=C.y+t.clientTop}else a&&m();l&&!i&&a&&m();const g=a&&!i&&!l?L1(a,u):Cr(0),y=d.left+u.scrollLeft-h.x-g.x,w=d.top+u.scrollTop-h.y-g.y;return{x:y,y:w,width:d.width,height:d.height}}function ap(e){return nr(e).position==="static"}function ib(e,t){if(!Er(e)||nr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Rr(e)===r&&(r=r.ownerDocument.body),r}function B1(e,t){const r=Cn(e);if(ju(e))return r;if(!Er(e)){let a=si(e);for(;a&&!aa(a);){if(tr(a)&&!ap(a))return a;a=si(a)}return r}let i=ib(e,t);for(;i&&fI(i)&&ap(i);)i=ib(i,t);return i&&aa(i)&&ap(i)&&!Vm(i)?r:i||gI(e)||r}const PI=async function(e){const t=this.getOffsetParent||B1,r=this.getDimensions,i=await r(e.floating);return{reference:TI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function AI(e){return nr(e).direction==="rtl"}const OI={convertOffsetParentRelativeRectToViewportRelativeRect:wI,getDocumentElement:Rr,getClippingRect:EI,getOffsetParent:B1,getElementRects:PI,getClientRects:jI,getDimensions:RI,getScale:Uo,isElement:tr,isRTL:AI};function z1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function II(e,t){let r=null,i;const a=Rr(e);function l(){var u;clearTimeout(i),(u=r)==null||u.disconnect(),r=null}function d(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),l();const m=e.getBoundingClientRect(),{left:g,top:y,width:w,height:C}=m;if(u||t(),!w||!C)return;const k=bd(y),N=bd(a.clientWidth-(g+w)),j=bd(a.clientHeight-(y+C)),b=bd(g),E={rootMargin:-k+"px "+-N+"px "+-j+"px "+-b+"px",threshold:wn(0,ri(1,h))||1};let R=!0;function O($){const V=$[0].intersectionRatio;if(V!==h){if(!R)return d();V?d(!1,V):i=setTimeout(()=>{d(!1,1e-7)},1e3)}V===1&&!z1(m,e.getBoundingClientRect())&&d(),R=!1}try{r=new IntersectionObserver(O,{...E,root:a.ownerDocument})}catch{r=new IntersectionObserver(O,E)}r.observe(e)}return d(!0),l}function MI(e,t,r,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,m=Km(e),g=a||l?[...m?Cl(m):[],...Cl(t)]:[];g.forEach(b=>{a&&b.addEventListener("scroll",r,{passive:!0}),l&&b.addEventListener("resize",r)});const y=m&&u?II(m,r):null;let w=-1,C=null;d&&(C=new ResizeObserver(b=>{let[S]=b;S&&S.target===m&&C&&(C.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var E;(E=C)==null||E.observe(t)})),r()}),m&&!h&&C.observe(m),C.observe(t));let k,N=h?Yi(e):null;h&&j();function j(){const b=Yi(e);N&&!z1(N,b)&&r(),N=b,k=requestAnimationFrame(j)}return r(),()=>{var b;g.forEach(S=>{a&&S.removeEventListener("scroll",r),l&&S.removeEventListener("resize",r)}),y==null||y(),(b=C)==null||b.disconnect(),C=null,h&&cancelAnimationFrame(k)}}const DI=oI,LI=aI,FI=rI,BI=cI,zI=sI,ob=nI,$I=lI,UI=(e,t,r)=>{const i=new Map,a={platform:OI,...r},l={...a.platform,_c:i};return tI(e,t,{...a,platform:l})};var WI=typeof document<"u",HI=function(){},zd=WI?p.useLayoutEffect:HI;function su(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 r,i,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(i=r;i--!==0;)if(!su(e[i],t[i]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(t,a[i]))return!1;for(i=r;i--!==0;){const l=a[i];if(!(l==="_owner"&&e.$$typeof)&&!su(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function $1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ab(e,t){const r=$1(e);return Math.round(t*r)/r}function lp(e){const t=p.useRef(e);return zd(()=>{t.current=e}),t}function VI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:d}={},transform:u=!0,whileElementsMounted:h,open:m}=e,[g,y]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[w,C]=p.useState(i);su(w,i)||C(i);const[k,N]=p.useState(null),[j,b]=p.useState(null),S=p.useCallback(G=>{G!==$.current&&($.current=G,N(G))},[]),E=p.useCallback(G=>{G!==V.current&&(V.current=G,b(G))},[]),R=l||k,O=d||j,$=p.useRef(null),V=p.useRef(null),M=p.useRef(g),ne=h!=null,Q=lp(h),ie=lp(a),ee=lp(m),Z=p.useCallback(()=>{if(!$.current||!V.current)return;const G={placement:t,strategy:r,middleware:w};ie.current&&(G.platform=ie.current),UI($.current,V.current,G).then(q=>{const U={...q,isPositioned:ee.current!==!1};L.current&&!su(M.current,U)&&(M.current=U,Fl.flushSync(()=>{y(U)}))})},[w,t,r,ie,ee]);zd(()=>{m===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,y(G=>({...G,isPositioned:!1})))},[m]);const L=p.useRef(!1);zd(()=>(L.current=!0,()=>{L.current=!1}),[]),zd(()=>{if(R&&($.current=R),O&&(V.current=O),R&&O){if(Q.current)return Q.current(R,O,Z);Z()}},[R,O,Z,Q,ne]);const W=p.useMemo(()=>({reference:$,floating:V,setReference:S,setFloating:E}),[S,E]),te=p.useMemo(()=>({reference:R,floating:O}),[R,O]),le=p.useMemo(()=>{const G={position:r,left:0,top:0};if(!te.floating)return G;const q=ab(te.floating,g.x),U=ab(te.floating,g.y);return u?{...G,transform:"translate("+q+"px, "+U+"px)",...$1(te.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:q,top:U}},[r,u,te.floating,g.x,g.y]);return p.useMemo(()=>({...g,update:Z,refs:W,elements:te,floatingStyles:le}),[g,Z,W,te,le])}const qI=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:a}=typeof e=="function"?e(r):e;return i&&t(i)?i.current!=null?ob({element:i.current,padding:a}).fn(r):{}:i?ob({element:i,padding:a}).fn(r):{}}}},KI=(e,t)=>({...DI(e),options:[e,t]}),GI=(e,t)=>({...LI(e),options:[e,t]}),YI=(e,t)=>({...$I(e),options:[e,t]}),QI=(e,t)=>({...FI(e),options:[e,t]}),XI=(e,t)=>({...BI(e),options:[e,t]}),JI=(e,t)=>({...zI(e),options:[e,t]}),ZI=(e,t)=>({...qI(e),options:[e,t]});var e3="Arrow",U1=p.forwardRef((e,t)=>{const{children:r,width:i=10,height:a=5,...l}=e;return n.jsx($e.svg,{...l,ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:n.jsx("polygon",{points:"0,0 30,0 15,10"})})});U1.displayName=e3;var t3=U1;function W1(e){const[t,r]=p.useState(void 0);return qt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let d,u;if("borderBoxSize"in l){const h=l.borderBoxSize,m=Array.isArray(h)?h[0]:h;d=m.inlineSize,u=m.blockSize}else d=e.offsetWidth,u=e.offsetHeight;r({width:d,height:u})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}var Gm="Popper",[H1,ga]=_n(Gm),[n3,V1]=H1(Gm),q1=e=>{const{__scopePopper:t,children:r}=e,[i,a]=p.useState(null);return n.jsx(n3,{scope:t,anchor:i,onAnchorChange:a,children:r})};q1.displayName=Gm;var K1="PopperAnchor",G1=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,l=V1(K1,r),d=p.useRef(null),u=Xe(t,d),h=p.useRef(null);return p.useEffect(()=>{const m=h.current;h.current=(i==null?void 0:i.current)||d.current,m!==h.current&&l.onAnchorChange(h.current)}),i?null:n.jsx($e.div,{...a,ref:u})});G1.displayName=K1;var Ym="PopperContent",[r3,s3]=H1(Ym),Y1=p.forwardRef((e,t)=>{var T,re,se,de,be,Ae;const{__scopePopper:r,side:i="bottom",sideOffset:a=0,align:l="center",alignOffset:d=0,arrowPadding:u=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:k,...N}=e,j=V1(Ym,r),[b,S]=p.useState(null),E=Xe(t,Ze=>S(Ze)),[R,O]=p.useState(null),$=W1(R),V=($==null?void 0:$.width)??0,M=($==null?void 0:$.height)??0,ne=i+(l!=="center"?"-"+l:""),Q=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},ie=Array.isArray(m)?m:[m],ee=ie.length>0,Z={padding:Q,boundary:ie.filter(o3),altBoundary:ee},{refs:L,floatingStyles:W,placement:te,isPositioned:le,middlewareData:G}=VI({strategy:"fixed",placement:ne,whileElementsMounted:(...Ze)=>MI(...Ze,{animationFrame:C==="always"}),elements:{reference:j.anchor},middleware:[KI({mainAxis:a+M,alignmentAxis:d}),h&&GI({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?YI():void 0,...Z}),h&&QI({...Z}),XI({...Z,apply:({elements:Ze,rects:nt,availableWidth:J,availableHeight:ue})=>{const{width:Je,height:dt}=nt.reference,lt=Ze.floating.style;lt.setProperty("--radix-popper-available-width",`${J}px`),lt.setProperty("--radix-popper-available-height",`${ue}px`),lt.setProperty("--radix-popper-anchor-width",`${Je}px`),lt.setProperty("--radix-popper-anchor-height",`${dt}px`)}}),R&&ZI({element:R,padding:u}),a3({arrowWidth:V,arrowHeight:M}),w&&JI({strategy:"referenceHidden",...Z})]}),[q,U]=J1(te),A=kr(k);qt(()=>{le&&(A==null||A())},[le,A]);const X=(T=G.arrow)==null?void 0:T.x,ge=(re=G.arrow)==null?void 0:re.y,pe=((se=G.arrow)==null?void 0:se.centerOffset)!==0,[me,B]=p.useState();return qt(()=>{b&&B(window.getComputedStyle(b).zIndex)},[b]),n.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:le?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(de=G.transformOrigin)==null?void 0:de.x,(be=G.transformOrigin)==null?void 0:be.y].join(" "),...((Ae=G.hide)==null?void 0:Ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:n.jsx(r3,{scope:r,placedSide:q,onArrowChange:O,arrowX:X,arrowY:ge,shouldHideArrow:pe,children:n.jsx($e.div,{"data-side":q,"data-align":U,...N,ref:E,style:{...N.style,animation:le?void 0:"none"}})})})});Y1.displayName=Ym;var Q1="PopperArrow",i3={top:"bottom",right:"left",bottom:"top",left:"right"},X1=p.forwardRef(function(t,r){const{__scopePopper:i,...a}=t,l=s3(Q1,i),d=i3[l.placedSide];return n.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:n.jsx(t3,{...a,ref:r,style:{...a.style,display:"block"}})})});X1.displayName=Q1;function o3(e){return e!==null}var a3=e=>({name:"transformOrigin",options:e,fn(t){var j,b,S;const{placement:r,rects:i,middlewareData:a}=t,d=((j=a.arrow)==null?void 0:j.centerOffset)!==0,u=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,g]=J1(r),y={start:"0%",center:"50%",end:"100%"}[g],w=(((b=a.arrow)==null?void 0:b.x)??0)+u/2,C=(((S=a.arrow)==null?void 0:S.y)??0)+h/2;let k="",N="";return m==="bottom"?(k=d?y:`${w}px`,N=`${-h}px`):m==="top"?(k=d?y:`${w}px`,N=`${i.floating.height+h}px`):m==="right"?(k=`${-h}px`,N=d?y:`${C}px`):m==="left"&&(k=`${i.floating.width+h}px`,N=d?y:`${C}px`),{data:{x:k,y:N}}}});function J1(e){const[t,r="center"]=e.split("-");return[t,r]}var Qm=q1,Xm=G1,Jm=Y1,Zm=X1,l3="Portal",Kl=p.forwardRef((e,t)=>{var u;const{container:r,...i}=e,[a,l]=p.useState(!1);qt(()=>l(!0),[]);const d=r||a&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return d?xR.createPortal(n.jsx($e.div,{...i,ref:t}),d):null});Kl.displayName=l3;function c3(e){const t=d3(e),r=p.forwardRef((i,a)=>{const{children:l,...d}=i,u=p.Children.toArray(l),h=u.find(f3);if(h){const m=h.props.children,g=u.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return n.jsx(t,{...d,ref:a,children:p.isValidElement(m)?p.cloneElement(m,void 0,g):null})}return n.jsx(t,{...d,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}function d3(e){const t=p.forwardRef((r,i)=>{const{children:a,...l}=r;if(p.isValidElement(a)){const d=p3(a),u=h3(l,a.props);return a.type!==p.Fragment&&(u.ref=i?Jr(i,d):d),p.cloneElement(a,u)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u3=Symbol("radix.slottable");function f3(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u3}function h3(e,t){const r={...t};for(const i in t){const a=e[i],l=t[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...u)=>{const h=l(...u);return a(...u),h}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function p3(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var m3=fu[" useInsertionEffect ".trim().toString()]||qt;function rr({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[a,l,d]=x3({defaultProp:t,onChange:r}),u=e!==void 0,h=u?e:a;{const g=p.useRef(e!==void 0);p.useEffect(()=>{const y=g.current;y!==u&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=u},[u,i])}const m=p.useCallback(g=>{var y;if(u){const w=g3(g)?g(e):g;w!==e&&((y=d.current)==null||y.call(d,w))}else l(g)},[u,e,l,d]);return[h,m]}function x3({defaultProp:e,onChange:t}){const[r,i]=p.useState(e),a=p.useRef(r),l=p.useRef(t);return m3(()=>{l.current=t},[t]),p.useEffect(()=>{var d;a.current!==r&&((d=l.current)==null||d.call(l,r),a.current=r)},[r,a]),[r,i,l]}function g3(e){return typeof e=="function"}function Z1(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ej=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),y3="VisuallyHidden",tj=p.forwardRef((e,t)=>n.jsx($e.span,{...e,ref:t,style:{...ej,...e.style}}));tj.displayName=y3;var v3=tj,b3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Io=new WeakMap,wd=new WeakMap,jd={},cp=0,nj=function(e){return e&&(e.host||nj(e.parentNode))},w3=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=nj(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},j3=function(e,t,r,i){var a=w3(t,Array.isArray(e)?e:[e]);jd[r]||(jd[r]=new WeakMap);var l=jd[r],d=[],u=new Set,h=new Set(a),m=function(y){!y||u.has(y)||(u.add(y),m(y.parentNode))};a.forEach(m);var g=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(w){if(u.has(w))g(w);else try{var C=w.getAttribute(i),k=C!==null&&C!=="false",N=(Io.get(w)||0)+1,j=(l.get(w)||0)+1;Io.set(w,N),l.set(w,j),d.push(w),N===1&&k&&wd.set(w,!0),j===1&&w.setAttribute(r,"true"),k||w.setAttribute(i,"true")}catch(b){console.error("aria-hidden: cannot operate on ",w,b)}})};return g(t),u.clear(),cp++,function(){d.forEach(function(y){var w=Io.get(y)-1,C=l.get(y)-1;Io.set(y,w),l.set(y,C),w||(wd.has(y)||y.removeAttribute(i),wd.delete(y)),C||y.removeAttribute(r)}),cp--,cp||(Io=new WeakMap,Io=new WeakMap,wd=new WeakMap,jd={})}},ex=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=b3(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),j3(i,a,r,"aria-hidden")):function(){return null}},vr=function(){return vr=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},vr.apply(this,arguments)};function rj(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function N3(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,l;i<a;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}var $d="right-scroll-bar-position",Ud="width-before-scroll-bar",S3="with-scroll-bars-hidden",C3="--removed-body-scroll-bar-size";function dp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _3(e,t){var r=p.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=t,r.facade}var k3=typeof window<"u"?p.useLayoutEffect:p.useEffect,lb=new WeakMap;function E3(e,t){var r=_3(null,function(i){return e.forEach(function(a){return dp(a,i)})});return k3(function(){var i=lb.get(r);if(i){var a=new Set(i),l=new Set(e),d=r.current;a.forEach(function(u){l.has(u)||dp(u,null)}),l.forEach(function(u){a.has(u)||dp(u,d)})}lb.set(r,e)},[e]),r}function R3(e){return e}function T3(e,t){t===void 0&&(t=R3);var r=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var d=t(l,i);return r.push(d),function(){r=r.filter(function(u){return u!==d})}},assignSyncMedium:function(l){for(i=!0;r.length;){var d=r;r=[],d.forEach(l)}r={push:function(u){return l(u)},filter:function(){return r}}},assignMedium:function(l){i=!0;var d=[];if(r.length){var u=r;r=[],u.forEach(l),d=r}var h=function(){var g=d;d=[],g.forEach(l)},m=function(){return Promise.resolve().then(h)};m(),r={push:function(g){d.push(g),m()},filter:function(g){return d=d.filter(g),r}}}};return a}function P3(e){e===void 0&&(e={});var t=T3(null);return t.options=vr({async:!0,ssr:!1},e),t}var sj=function(e){var t=e.sideCar,r=rj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return p.createElement(i,vr({},r))};
vendor: 10,242 bytes, lines 440-480
440sj.isSideCarExport=!0;function A3(e,t){return e.useMedium(t),sj}var ij=P3(),up=function(){},Cu=p.forwardRef(function(e,t){var r=p.useRef(null),i=p.useState({onScrollCapture:up,onWheelCapture:up,onTouchMoveCapture:up}),a=i[0],l=i[1],d=e.forwardProps,u=e.children,h=e.className,m=e.removeScrollBar,g=e.enabled,y=e.shards,w=e.sideCar,C=e.noRelative,k=e.noIsolation,N=e.inert,j=e.allowPinchZoom,b=e.as,S=b===void 0?"div":b,E=e.gapMode,R=rj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=w,$=E3([r,t]),V=vr(vr({},R),a);return p.createElement(p.Fragment,null,g&&p.createElement(O,{sideCar:ij,removeScrollBar:m,shards:y,noRelative:C,noIsolation:k,inert:N,setCallbacks:l,allowPinchZoom:!!j,lockRef:r,gapMode:E}),d?p.cloneElement(p.Children.only(u),vr(vr({},V),{ref:$})):p.createElement(S,vr({},V,{className:h,ref:$}),u))});Cu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cu.classNames={fullWidth:Ud,zeroRight:$d};var O3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function I3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=O3();return t&&e.setAttribute("nonce",t),e}function M3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function D3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var L3=function(){var e=0,t=null;return{add:function(r){e==0&&(t=I3())&&(M3(t,r),D3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},F3=function(){var e=L3();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},oj=function(){var e=F3(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},B3={left:0,top:0,right:0,gap:0},fp=function(e){return parseInt(e||"",10)||0},z3=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[fp(r),fp(i),fp(a)]},$3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return B3;var t=z3(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},U3=oj(),Wo="data-scroll-locked",W3=function(e,t,r,i){var a=e.left,l=e.top,d=e.right,u=e.gap;return r===void 0&&(r="margin"),`
441  .`.concat(S3,` {
442   overflow: hidden `).concat(i,`;
443   padding-right: `).concat(u,"px ").concat(i,`;
444  }
445  body[`).concat(Wo,`] {
446    overflow: hidden `).concat(i,`;
447    overscroll-behavior: contain;
448    `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
449    padding-left: `.concat(a,`px;
450    padding-top: `).concat(l,`px;
451    padding-right: `).concat(d,`px;
452    margin-left:0;
453    margin-top:0;
454    margin-right: `).concat(u,"px ").concat(i,`;
455    `),r==="padding"&&"padding-right: ".concat(u,"px ").concat(i,";")].filter(Boolean).join(""),`
456  }
457  
458  .`).concat($d,` {
459    right: `).concat(u,"px ").concat(i,`;
460  }
461  
462  .`).concat(Ud,` {
463    margin-right: `).concat(u,"px ").concat(i,`;
464  }
465  
466  .`).concat($d," .").concat($d,` {
467    right: 0 `).concat(i,`;
468  }
469  
470  .`).concat(Ud," .").concat(Ud,` {
471    margin-right: 0 `).concat(i,`;
472  }
473  
474  body[`).concat(Wo,`] {
475    `).concat(C3,": ").concat(u,`px;
476  }
477`)},cb=function(){var e=parseInt(document.body.getAttribute(Wo)||"0",10);return isFinite(e)?e:0},H3=function(){p.useEffect(function(){return document.body.setAttribute(Wo,(cb()+1).toString()),function(){var e=cb()-1;e<=0?document.body.removeAttribute(Wo):document.body.setAttribute(Wo,e.toString())}},[])},V3=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;H3();var l=p.useMemo(function(){return $3(a)},[a]);return p.createElement(U3,{styles:W3(l,!t,a,r?"":"!important")})},Xp=!1;if(typeof window<"u")try{var Nd=Object.defineProperty({},"passive",{get:function(){return Xp=!0,!0}});window.addEventListener("test",Nd,Nd),window.removeEventListener("test",Nd,Nd)}catch{Xp=!1}var Mo=Xp?{passive:!1}:!1,q3=function(e){return e.tagName==="TEXTAREA"},aj=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!q3(e)&&r[t]==="visible")},K3=function(e){return aj(e,"overflowY")},G3=function(e){return aj(e,"overflowX")},db=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=lj(e,i);if(a){var l=cj(e,i),d=l[1],u=l[2];if(d>u)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},Y3=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},Q3=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},lj=function(e,t){return e==="v"?K3(t):G3(t)},cj=function(e,t){return e==="v"?Y3(t):Q3(t)},X3=function(e,t){return e==="h"&&t==="rtl"?-1:1},J3=function(e,t,r,i,a){var l=X3(e,window.getComputedStyle(t).direction),d=l*i,u=r.target,h=t.contains(u),m=!1,g=d>0,y=0,w=0;do{if(!u)break;var C=cj(e,u),k=C[0],N=C[1],j=C[2],b=N-j-l*k;(k||b)&&lj(e,u)&&(y+=b,w+=k);var S=u.parentNode;u=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!h&&u!==document.body||h&&(t.contains(u)||t===u));return(g&&Math.abs(y)<1||!g&&Math.abs(w)<1)&&(m=!0),m},Sd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ub=function(e){return[e.deltaX,e.deltaY]},fb=function(e){return e&&"current"in e?e.current:e},Z3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eM=function(e){return`
478  .block-interactivity-`.concat(e,` {pointer-events: none;}
479  .allow-interactivity-`).concat(e,` {pointer-events: all;}
480`)},tM=0,Do=[];function nM(e){var t=p.useRef([]),r=p.useRef([0,0]),i=p.useRef(),a=p.useState(tM++)[0],l=p.useState(oj)[0],d=p.useRef(e);p.useEffect(function(){d.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var N=N3([e.lockRef.current],(e.shards||[]).map(fb),!0).filter(Boolean);return N.forEach(function(j){return j.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),N.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=p.useCallback(function(N,j){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!d.current.allowPinchZoom;var b=Sd(N),S=r.current,E="deltaX"in N?N.deltaX:S[0]-b[0],R="deltaY"in N?N.deltaY:S[1]-b[1],O,$=N.target,V=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in N&&V==="h"&&$.type==="range")return!1;var M=window.getSelection(),ne=M&&M.anchorNode,Q=ne?ne===$||ne.contains($):!1;if(Q)return!1;var ie=db(V,$);if(!ie)return!0;if(ie?O=V:(O=V==="v"?"h":"v",ie=db(V,$)),!ie)return!1;if(!i.current&&"changedTouches"in N&&(E||R)&&(i.current=O),!O)return!0;var ee=i.current||O;return J3(ee,j,N,ee==="h"?E:R)},[]),h=p.useCallback(function(N){var j=N;if(!(!Do.length||Do[Do.length-1]!==l)){var b="deltaY"in j?ub(j):Sd(j),S=t.current.filter(function(O){return O.name===j.type&&(O.target===j.target||j.target===O.shadowParent)&&Z3(O.delta,b)})[0];if(S&&S.should){j.cancelable&&j.preventDefault();return}if(!S){var E=(d.current.shards||[]).map(fb).filter(Boolean).filter(function(O){return O.contains(j.target)}),R=E.length>0?u(j,E[0]):!d.current.noIsolation;R&&j.cancelable&&j.preventDefault()}}},[]),m=p.useCallback(function(N,j,b,S){var E={name:N,delta:j,target:b,should:S,shadowParent:rM(b)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),g=p.useCallback(function(N){r.current=Sd(N),i.current=void 0},[]),y=p.useCallback(function(N){m(N.type,ub(N),N.target,u(N,e.lockRef.current))},[]),w=p.useCallback(function(N){m(N.type,Sd(N),N.target,u(N,e.lockRef.current))},[]);p.useEffect(function(){return Do.push(l),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",h,Mo),document.addEventListener("touchmove",h,Mo),document.addEventListener("touchstart",g,Mo),function(){Do=Do.filter(function(N){return N!==l}),document.removeEventListener("wheel",h,Mo),document.removeEventListener("touchmove",h,Mo),document.removeEventListener("touchstart",g,Mo)}},[]);var C=e.removeScrollBar,k=e.inert;return p.createElement(p.Fragment,null,k?p.createElement(l,{styles:eM(a)}):null,C?p.createElement(V3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sM=A3(ij,nM);var _u=p.forwardRef(function(e,t){return p.createElement(Cu,vr({},e,{ref:t,sideCar:sM}))});_u.classNames=Cu.classNames;var iM=[" ","Enter","ArrowUp","ArrowDown"],oM=[" ","Enter"],Qi="Select",[ku,Eu,aM]=vu(Qi),[ya]=_n(Qi,[aM,ga]),Ru=ga(),[lM,ai]=ya(Qi),[cM,dM]=ya(Qi),dj=e=>{const{__scopeSelect:t,children:r,open:i,defaultOpen:a,onOpenChange:l,value:d,defaultValue:u,onValueChange:h,dir:m,name:g,autoComplete:y,disabled:w,required:C,form:k}=e,N=Ru(t),[j,b]=p.useState(null),[S,E]=p.useState(null),[R,O]=p.useState(!1),$=Hl(m),[V,M]=rr({prop:i,defaultProp:a??!1,onChange:l,caller:Qi}),[ne,Q]=rr({prop:d,defaultProp:u,onChange:h,caller:Qi}),ie=p.useRef(null),ee=j?k||!!j.closest("form"):!0,[Z,L]=p.useState(new Set),W=Array.from(Z).map(te=>te.props.value).join(";");return n.jsx(Qm,{...N,children:n.jsxs(lM,{required:C,scope:t,trigger:j,onTriggerChange:b,valueNode:S,onValueNodeChange:E,valueNodeHasChildren:R,onValueNodeHasChildrenChange:O,contentId:Sn(),value:ne,onValueChange:Q,open:V,onOpenChange:M,dir:$,triggerPointerDownPosRef:ie,disabled:w,children:[n.jsx(ku.Provider,{scope:t,children:n.jsx(cM,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(te=>{L(le=>new Set(le).add(te))},[]),onNativeOptionRemove:p.useCallback(te=>{L(le=>{const G=new Set(le);return G.delete(te),G})},[]),children:r})}),ee?n.jsxs(Ij,{"aria-hidden":!0,required:C,tabIndex:-1,name:g,autoComplete:y,value:ne,onChange:te=>Q(te.target.value),disabled:w,form:k,children:[ne===void 0?n.jsx("option",{value:""}):null,Array.from(Z)]},W):null]})})};dj.displayName=Qi;var uj="SelectTrigger",fj=p.forwardRef((e,t)=>
vendor: 28,952 bytes, lines 480-484
480{const{__scopeSelect:r,disabled:i=!1,...a}=e,l=Ru(r),d=ai(uj,r),u=d.disabled||i,h=Xe(t,d.onTriggerChange),m=Eu(r),g=p.useRef("touch"),[y,w,C]=Dj(N=>{const j=m().filter(E=>!E.disabled),b=j.find(E=>E.value===d.value),S=Lj(j,N,b);S!==void 0&&d.onValueChange(S.value)}),k=N=>{u||(d.onOpenChange(!0),C()),N&&(d.triggerPointerDownPosRef.current={x:Math.round(N.pageX),y:Math.round(N.pageY)})};return n.jsx(Xm,{asChild:!0,...l,children:n.jsx($e.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":Mj(d.value)?"":void 0,...a,ref:h,onClick:ve(a.onClick,N=>{N.currentTarget.focus(),g.current!=="mouse"&&k(N)}),onPointerDown:ve(a.onPointerDown,N=>{g.current=N.pointerType;const j=N.target;j.hasPointerCapture(N.pointerId)&&j.releasePointerCapture(N.pointerId),N.button===0&&N.ctrlKey===!1&&N.pointerType==="mouse"&&(k(N),N.preventDefault())}),onKeyDown:ve(a.onKeyDown,N=>{const j=y.current!=="";!(N.ctrlKey||N.altKey||N.metaKey)&&N.key.length===1&&w(N.key),!(j&&N.key===" ")&&iM.includes(N.key)&&(k(),N.preventDefault())})})})});fj.displayName=uj;var hj="SelectValue",pj=p.forwardRef((e,t)=>{const{__scopeSelect:r,className:i,style:a,children:l,placeholder:d="",...u}=e,h=ai(hj,r),{onValueNodeHasChildrenChange:m}=h,g=l!==void 0,y=Xe(t,h.onValueNodeChange);return qt(()=>{m(g)},[m,g]),n.jsx($e.span,{...u,ref:y,style:{pointerEvents:"none"},children:Mj(h.value)?n.jsx(n.Fragment,{children:d}):l})});pj.displayName=hj;var uM="SelectIcon",mj=p.forwardRef((e,t)=>{const{__scopeSelect:r,children:i,...a}=e;return n.jsx($e.span,{"aria-hidden":!0,...a,ref:t,children:i||"▼"})});mj.displayName=uM;var fM="SelectPortal",xj=e=>n.jsx(Kl,{asChild:!0,...e});xj.displayName=fM;var Xi="SelectContent",gj=p.forwardRef((e,t)=>{const r=ai(Xi,e.__scopeSelect),[i,a]=p.useState();if(qt(()=>{a(new DocumentFragment)},[]),!r.open){const l=i;return l?Fl.createPortal(n.jsx(yj,{scope:e.__scopeSelect,children:n.jsx(ku.Slot,{scope:e.__scopeSelect,children:n.jsx("div",{children:e.children})})}),l):null}return n.jsx(vj,{...e,ref:t})});gj.displayName=Xi;var Yn=10,[yj,li]=ya(Xi),hM="SelectContentImpl",pM=c3("SelectContent.RemoveScroll"),vj=p.forwardRef((e,t)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:l,onPointerDownOutside:d,side:u,sideOffset:h,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:w,collisionPadding:C,sticky:k,hideWhenDetached:N,avoidCollisions:j,...b}=e,S=ai(Xi,r),[E,R]=p.useState(null),[O,$]=p.useState(null),V=Xe(t,T=>R(T)),[M,ne]=p.useState(null),[Q,ie]=p.useState(null),ee=Eu(r),[Z,L]=p.useState(!1),W=p.useRef(!1);p.useEffect(()=>{if(E)return ex(E)},[E]),$m();const te=p.useCallback(T=>{const[re,...se]=ee().map(Ae=>Ae.ref.current),[de]=se.slice(-1),be=document.activeElement;for(const Ae of T)if(Ae===be||(Ae==null||Ae.scrollIntoView({block:"nearest"}),Ae===re&&O&&(O.scrollTop=0),Ae===de&&O&&(O.scrollTop=O.scrollHeight),Ae==null||Ae.focus(),document.activeElement!==be))return},[ee,O]),le=p.useCallback(()=>te([M,E]),[te,M,E]);p.useEffect(()=>{Z&&le()},[Z,le]);const{onOpenChange:G,triggerPointerDownPosRef:q}=S;p.useEffect(()=>{if(E){let T={x:0,y:0};const re=de=>{var be,Ae;T={x:Math.abs(Math.round(de.pageX)-(((be=q.current)==null?void 0:be.x)??0)),y:Math.abs(Math.round(de.pageY)-(((Ae=q.current)==null?void 0:Ae.y)??0))}},se=de=>{T.x<=10&&T.y<=10?de.preventDefault():E.contains(de.target)||G(!1),document.removeEventListener("pointermove",re),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",se,{capture:!0})}}},[E,G,q]),p.useEffect(()=>{const T=()=>G(!1);return window.addEventListener("blur",T),window.addEventListener("resize",T),()=>{window.removeEventListener("blur",T),window.removeEventListener("resize",T)}},[G]);const[U,A]=Dj(T=>{const re=ee().filter(be=>!be.disabled),se=re.find(be=>be.ref.current===document.activeElement),de=Lj(re,T,se);de&&setTimeout(()=>de.ref.current.focus())}),X=p.useCallback((T,re,se)=>{const de=!W.current&&!se;(S.value!==void 0&&S.value===re||de)&&(ne(T),de&&(W.current=!0))},[S.value]),ge=p.useCallback(()=>E==null?void 0:E.focus(),[E]),pe=p.useCallback((T,re,se)=>{const de=!W.current&&!se;(S.value!==void 0&&S.value===re||de)&&ie(T)},[S.value]),me=i==="popper"?Jp:bj,B=me===Jp?{side:u,sideOffset:h,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:w,collisionPadding:C,sticky:k,hideWhenDetached:N,avoidCollisions:j}:{};return n.jsx(yj,{scope:r,content:E,viewport:O,onViewportChange:$,itemRefCallback:X,selectedItem:M,onItemLeave:ge,itemTextRefCallback:pe,focusSelectedItem:le,selectedItemText:Q,position:i,isPositioned:Z,searchRef:U,children:n.jsx(_u,{as:pM,allowPinchZoom:!0,children:n.jsx(bu,{asChild:!0,trapped:S.open,onMountAutoFocus:T=>{T.preventDefault()},onUnmountAutoFocus:ve(a,T=>{var re;(re=S.trigger)==null||re.focus({preventScroll:!0}),T.preventDefault()}),children:n.jsx(Vl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:T=>T.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:n.jsx(me,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:T=>T.preventDefault(),...b,...B,onPlaced:()=>L(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:ve(b.onKeyDown,T=>{const re=T.ctrlKey||T.altKey||T.metaKey;if(T.key==="Tab"&&T.preventDefault(),!re&&T.key.length===1&&A(T.key),["ArrowUp","ArrowDown","Home","End"].includes(T.key)){let de=ee().filter(be=>!be.disabled).map(be=>be.ref.current);if(["ArrowUp","End"].includes(T.key)&&(de=de.slice().reverse()),["ArrowUp","ArrowDown"].includes(T.key)){const be=T.target,Ae=de.indexOf(be);de=de.slice(Ae+1)}setTimeout(()=>te(de)),T.preventDefault()}})})})})})})});vj.displayName=hM;var mM="SelectItemAlignedPosition",bj=p.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:i,...a}=e,l=ai(Xi,r),d=li(Xi,r),[u,h]=p.useState(null),[m,g]=p.useState(null),y=Xe(t,V=>g(V)),w=Eu(r),C=p.useRef(!1),k=p.useRef(!0),{viewport:N,selectedItem:j,selectedItemText:b,focusSelectedItem:S}=d,E=p.useCallback(()=>{if(l.trigger&&l.valueNode&&u&&m&&N&&j&&b){const V=l.trigger.getBoundingClientRect(),M=m.getBoundingClientRect(),ne=l.valueNode.getBoundingClientRect(),Q=b.getBoundingClientRect();if(l.dir!=="rtl"){const be=Q.left-M.left,Ae=ne.left-be,Ze=V.left-Ae,nt=V.width+Ze,J=Math.max(nt,M.width),ue=window.innerWidth-Yn,Je=U0(Ae,[Yn,Math.max(Yn,ue-J)]);u.style.minWidth=nt+"px",u.style.left=Je+"px"}else{const be=M.right-Q.right,Ae=window.innerWidth-ne.right-be,Ze=window.innerWidth-V.right-Ae,nt=V.width+Ze,J=Math.max(nt,M.width),ue=window.innerWidth-Yn,Je=U0(Ae,[Yn,Math.max(Yn,ue-J)]);u.style.minWidth=nt+"px",u.style.right=Je+"px"}const ie=w(),ee=window.innerHeight-Yn*2,Z=N.scrollHeight,L=window.getComputedStyle(m),W=parseInt(L.borderTopWidth,10),te=parseInt(L.paddingTop,10),le=parseInt(L.borderBottomWidth,10),G=parseInt(L.paddingBottom,10),q=W+te+Z+G+le,U=Math.min(j.offsetHeight*5,q),A=window.getComputedStyle(N),X=parseInt(A.paddingTop,10),ge=parseInt(A.paddingBottom,10),pe=V.top+V.height/2-Yn,me=ee-pe,B=j.offsetHeight/2,T=j.offsetTop+B,re=W+te+T,se=q-re;if(re<=pe){const be=ie.length>0&&j===ie[ie.length-1].ref.current;u.style.bottom="0px";const Ae=m.clientHeight-N.offsetTop-N.offsetHeight,Ze=Math.max(me,B+(be?ge:0)+Ae+le),nt=re+Ze;u.style.height=nt+"px"}else{const be=ie.length>0&&j===ie[0].ref.current;u.style.top="0px";const Ze=Math.max(pe,W+N.offsetTop+(be?X:0)+B)+se;u.style.height=Ze+"px",N.scrollTop=re-pe+N.offsetTop}u.style.margin=`${Yn}px 0`,u.style.minHeight=U+"px",u.style.maxHeight=ee+"px",i==null||i(),requestAnimationFrame(()=>C.current=!0)}},[w,l.trigger,l.valueNode,u,m,N,j,b,l.dir,i]);qt(()=>E(),[E]);const[R,O]=p.useState();qt(()=>{m&&O(window.getComputedStyle(m).zIndex)},[m]);const $=p.useCallback(V=>{V&&k.current===!0&&(E(),S==null||S(),k.current=!1)},[E,S]);return n.jsx(gM,{scope:r,contentWrapper:u,shouldExpandOnScrollRef:C,onScrollButtonChange:$,children:n.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:n.jsx($e.div,{...a,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});bj.displayName=mM;var xM="SelectPopperPosition",Jp=p.forwardRef((e,t)=>{const{__scopeSelect:r,align:i="start",collisionPadding:a=Yn,...l}=e,d=Ru(r);return n.jsx(Jm,{...d,...l,ref:t,align:i,collisionPadding:a,style:{boxSizing:"border-box",...l.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)"}})});Jp.displayName=xM;var[gM,tx]=ya(Xi,{}),Zp="SelectViewport",wj=p.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:i,...a}=e,l=li(Zp,r),d=tx(Zp,r),u=Xe(t,l.onViewportChange),h=p.useRef(0);return n.jsxs(n.Fragment,{children:[n.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:i}),n.jsx(ku.Slot,{scope:r,children:n.jsx($e.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ve(a.onScroll,m=>{const g=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:w}=d;if(w!=null&&w.current&&y){const C=Math.abs(h.current-g.scrollTop);if(C>0){const k=window.innerHeight-Yn*2,N=parseFloat(y.style.minHeight),j=parseFloat(y.style.height),b=Math.max(N,j);if(b<k){const S=b+C,E=Math.min(k,S),R=S-E;y.style.height=E+"px",y.style.bottom==="0px"&&(g.scrollTop=R>0?R:0,y.style.justifyContent="flex-end")}}}h.current=g.scrollTop})})})]})});wj.displayName=Zp;var jj="SelectGroup",[yM,vM]=ya(jj),bM=p.forwardRef((e,t)=>{const{__scopeSelect:r,...i}=e,a=Sn();return n.jsx(yM,{scope:r,id:a,children:n.jsx($e.div,{role:"group","aria-labelledby":a,...i,ref:t})})});bM.displayName=jj;var Nj="SelectLabel",Sj=p.forwardRef((e,t)=>{const{__scopeSelect:r,...i}=e,a=vM(Nj,r);return n.jsx($e.div,{id:a.id,...i,ref:t})});Sj.displayName=Nj;var iu="SelectItem",[wM,Cj]=ya(iu),_j=p.forwardRef((e,t)=>{const{__scopeSelect:r,value:i,disabled:a=!1,textValue:l,...d}=e,u=ai(iu,r),h=li(iu,r),m=u.value===i,[g,y]=p.useState(l??""),[w,C]=p.useState(!1),k=Xe(t,S=>{var E;return(E=h.itemRefCallback)==null?void 0:E.call(h,S,i,a)}),N=Sn(),j=p.useRef("touch"),b=()=>{a||(u.onValueChange(i),u.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return n.jsx(wM,{scope:r,value:i,disabled:a,textId:N,isSelected:m,onItemTextChange:p.useCallback(S=>{y(E=>E||((S==null?void 0:S.textContent)??"").trim())},[]),children:n.jsx(ku.ItemSlot,{scope:r,value:i,disabled:a,textValue:g,children:n.jsx($e.div,{role:"option","aria-labelledby":N,"data-highlighted":w?"":void 0,"aria-selected":m&&w,"data-state":m?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...d,ref:k,onFocus:ve(d.onFocus,()=>C(!0)),onBlur:ve(d.onBlur,()=>C(!1)),onClick:ve(d.onClick,()=>{j.current!=="mouse"&&b()}),onPointerUp:ve(d.onPointerUp,()=>{j.current==="mouse"&&b()}),onPointerDown:ve(d.onPointerDown,S=>{j.current=S.pointerType}),onPointerMove:ve(d.onPointerMove,S=>{var E;j.current=S.pointerType,a?(E=h.onItemLeave)==null||E.call(h):j.current==="mouse"&&S.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ve(d.onPointerLeave,S=>{var E;S.currentTarget===document.activeElement&&((E=h.onItemLeave)==null||E.call(h))}),onKeyDown:ve(d.onKeyDown,S=>{var R;((R=h.searchRef)==null?void 0:R.current)!==""&&S.key===" "||(oM.includes(S.key)&&b(),S.key===" "&&S.preventDefault())})})})})});_j.displayName=iu;var hl="SelectItemText",kj=p.forwardRef((e,t)=>{const{__scopeSelect:r,className:i,style:a,...l}=e,d=ai(hl,r),u=li(hl,r),h=Cj(hl,r),m=dM(hl,r),[g,y]=p.useState(null),w=Xe(t,b=>y(b),h.onItemTextChange,b=>{var S;return(S=u.itemTextRefCallback)==null?void 0:S.call(u,b,h.value,h.disabled)}),C=g==null?void 0:g.textContent,k=p.useMemo(()=>n.jsx("option",{value:h.value,disabled:h.disabled,children:C},h.value),[h.disabled,h.value,C]),{onNativeOptionAdd:N,onNativeOptionRemove:j}=m;return qt(()=>(N(k),()=>j(k)),[N,j,k]),n.jsxs(n.Fragment,{children:[n.jsx($e.span,{id:h.textId,...l,ref:w}),h.isSelected&&d.valueNode&&!d.valueNodeHasChildren?Fl.createPortal(l.children,d.valueNode):null]})});kj.displayName=hl;var Ej="SelectItemIndicator",Rj=p.forwardRef((e,t)=>{const{__scopeSelect:r,...i}=e;return Cj(Ej,r).isSelected?n.jsx($e.span,{"aria-hidden":!0,...i,ref:t}):null});Rj.displayName=Ej;var em="SelectScrollUpButton",Tj=p.forwardRef((e,t)=>{const r=li(em,e.__scopeSelect),i=tx(em,e.__scopeSelect),[a,l]=p.useState(!1),d=Xe(t,i.onScrollButtonChange);return qt(()=>{if(r.viewport&&r.isPositioned){let u=function(){const m=h.scrollTop>0;l(m)};const h=r.viewport;return u(),h.addEventListener("scroll",u),()=>h.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),a?n.jsx(Aj,{...e,ref:d,onAutoScroll:()=>{const{viewport:u,selectedItem:h}=r;u&&h&&(u.scrollTop=u.scrollTop-h.offsetHeight)}}):null});Tj.displayName=em;var tm="SelectScrollDownButton",Pj=p.forwardRef((e,t)=>{const r=li(tm,e.__scopeSelect),i=tx(tm,e.__scopeSelect),[a,l]=p.useState(!1),d=Xe(t,i.onScrollButtonChange);return qt(()=>{if(r.viewport&&r.isPositioned){let u=function(){const m=h.scrollHeight-h.clientHeight,g=Math.ceil(h.scrollTop)<m;l(g)};const h=r.viewport;return u(),h.addEventListener("scroll",u),()=>h.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),a?n.jsx(Aj,{...e,ref:d,onAutoScroll:()=>{const{viewport:u,selectedItem:h}=r;u&&h&&(u.scrollTop=u.scrollTop+h.offsetHeight)}}):null});Pj.displayName=tm;var Aj=p.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:i,...a}=e,l=li("SelectScrollButton",r),d=p.useRef(null),u=Eu(r),h=p.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return p.useEffect(()=>()=>h(),[h]),qt(()=>{var g;const m=u().find(y=>y.ref.current===document.activeElement);(g=m==null?void 0:m.ref.current)==null||g.scrollIntoView({block:"nearest"})},[u]),n.jsx($e.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:ve(a.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(i,50))}),onPointerMove:ve(a.onPointerMove,()=>{var m;(m=l.onItemLeave)==null||m.call(l),d.current===null&&(d.current=window.setInterval(i,50))}),onPointerLeave:ve(a.onPointerLeave,()=>{h()})})}),jM="SelectSeparator",Oj=p.forwardRef((e,t)=>{const{__scopeSelect:r,...i}=e;return n.jsx($e.div,{"aria-hidden":!0,...i,ref:t})});Oj.displayName=jM;var nm="SelectArrow",NM=p.forwardRef((e,t)=>{const{__scopeSelect:r,...i}=e,a=Ru(r),l=ai(nm,r),d=li(nm,r);return l.open&&d.position==="popper"?n.jsx(Zm,{...a,...i,ref:t}):null});NM.displayName=nm;var SM="SelectBubbleInput",Ij=p.forwardRef(({__scopeSelect:e,value:t,...r},i)=>{const a=p.useRef(null),l=Xe(i,a),d=Z1(t);return p.useEffect(()=>{const u=a.current;if(!u)return;const h=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(h,"value").set;if(d!==t&&g){const y=new Event("change",{bubbles:!0});g.call(u,t),u.dispatchEvent(y)}},[d,t]),n.jsx($e.select,{...r,style:{...ej,...r.style},ref:l,defaultValue:t})});Ij.displayName=SM;function Mj(e){return e===""||e===void 0}function Dj(e){const t=kr(e),r=p.useRef(""),i=p.useRef(0),a=p.useCallback(d=>{const u=r.current+d;t(u),(function h(m){r.current=m,window.clearTimeout(i.current),m!==""&&(i.current=window.setTimeout(()=>h(""),1e3))})(u)},[t]),l=p.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,a,l]}function Lj(e,t,r){const a=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,l=r?e.indexOf(r):-1;let d=CM(e,Math.max(l,0));a.length===1&&(d=d.filter(m=>m!==r));const h=d.find(m=>m.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==r?h:void 0}function CM(e,t){return e.map((r,i)=>e[(t+i)%e.length])}var _M=dj,Fj=fj,kM=pj,EM=mj,RM=xj,Bj=gj,TM=wj,zj=Sj,$j=_j,PM=kj,AM=Rj,Uj=Tj,Wj=Pj,Hj=Oj;const sr=_M,ir=kM,zn=p.forwardRef(({className:e,children:t,...r},i)=>n.jsxs(Fj,{ref:i,className:Pe("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,n.jsx(EM,{asChild:!0,children:n.jsx(Ml,{className:"h-4 w-4 opacity-50"})})]}));zn.displayName=Fj.displayName;const Vj=p.forwardRef(({className:e,...t},r)=>n.jsx(Uj,{ref:r,className:Pe("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(fm,{className:"h-4 w-4"})}));Vj.displayName=Uj.displayName;const qj=p.forwardRef(({className:e,...t},r)=>n.jsx(Wj,{ref:r,className:Pe("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(Ml,{className:"h-4 w-4"})}));qj.displayName=Wj.displayName;const $n=p.forwardRef(({className:e,children:t,position:r="popper",...i},a)=>n.jsx(RM,{children:n.jsxs(Bj,{ref:a,className:Pe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...i,children:[n.jsx(Vj,{}),n.jsx(TM,{className:Pe("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),n.jsx(qj,{})]})}));$n.displayName=Bj.displayName;const OM=p.forwardRef(({className:e,...t},r)=>n.jsx(zj,{ref:r,className:Pe("px-2 py-1.5 text-sm font-semibold",e),...t}));OM.displayName=zj.displayName;const at=p.forwardRef(({className:e,children:t,...r},i)=>n.jsxs($j,{ref:i,className:Pe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[n.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(AM,{children:n.jsx(Yr,{className:"h-4 w-4"})})}),n.jsx(PM,{children:t})]}));at.displayName=$j.displayName;const IM=p.forwardRef(({className:e,...t},r)=>n.jsx(Hj,{ref:r,className:Pe("-mx-1 my-1 h-px bg-muted",e),...t}));IM.displayName=Hj.displayName;function MM(e,t){return p.useReducer((r,i)=>t[r][i]??r,e)}var kn=e=>{const{present:t,children:r}=e,i=DM(t),a=typeof r=="function"?r({present:i.isPresent}):p.Children.only(r),l=Xe(i.ref,LM(a));return typeof r=="function"||i.isPresent?p.cloneElement(a,{ref:l}):null};kn.displayName="Presence";function DM(e){const[t,r]=p.useState(),i=p.useRef(null),a=p.useRef(e),l=p.useRef("none"),d=e?"mounted":"unmounted",[u,h]=MM(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const m=Cd(i.current);l.current=u==="mounted"?m:"none"},[u]),qt(()=>{const m=i.current,g=a.current;if(g!==e){const w=l.current,C=Cd(m);e?h("MOUNT"):C==="none"||(m==null?void 0:m.display)==="none"?h("UNMOUNT"):h(g&&w!==C?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,h]),qt(()=>{if(t){let m;const g=t.ownerDocument.defaultView??window,y=C=>{const N=Cd(i.current).includes(CSS.escape(C.animationName));if(C.target===t&&N&&(h("ANIMATION_END"),!a.current)){const j=t.style.animationFillMode;t.style.animationFillMode="forwards",m=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=j)})}},w=C=>{C.target===t&&(l.current=Cd(i.current))};return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{g.clearTimeout(m),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:p.useCallback(m=>{i.current=m?getComputedStyle(m):null,r(m)},[])}}function Cd(e){return(e==null?void 0:e.animationName)||"none"}function LM(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function FM(e){const t=BM(e),r=p.forwardRef((i,a)=>{const{children:l,...d}=i,u=p.Children.toArray(l),h=u.find($M);if(h){const m=h.props.children,g=u.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return n.jsx(t,{...d,ref:a,children:p.isValidElement(m)?p.cloneElement(m,void 0,g):null})}return n.jsx(t,{...d,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}function BM(e){const t=p.forwardRef((r,i)=>{const{children:a,...l}=r;if(p.isValidElement(a)){const d=WM(a),u=UM(l,a.props);return a.type!==p.Fragment&&(u.ref=i?Jr(i,d):d),p.cloneElement(a,u)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zM=Symbol("radix.slottable");function $M(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zM}function UM(e,t){const r={...t};for(const i in t){const a=e[i],l=t[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...u)=>{const h=l(...u);return a(...u),h}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function WM(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Tu="Dialog",[Kj,Gj]=_n(Tu),[HM,ar]=Kj(Tu),Yj=e=>{const{__scopeDialog:t,children:r,open:i,defaultOpen:a,onOpenChange:l,modal:d=!0}=e,u=p.useRef(null),h=p.useRef(null),[m,g]=rr({prop:i,defaultProp:a??!1,onChange:l,caller:Tu});return n.jsx(HM,{scope:t,triggerRef:u,contentRef:h,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:m,onOpenChange:g,onOpenToggle:p.useCallback(()=>g(y=>!y),[g]),modal:d,children:r})};Yj.displayName=Tu;var Qj="DialogTrigger",Xj=p.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,a=ar(Qj,r),l=Xe(t,a.triggerRef);return n.jsx($e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":sx(a.open),...i,ref:l,onClick:ve(e.onClick,a.onOpenToggle)})});Xj.displayName=Qj;var nx="DialogPortal",[VM,Jj]=Kj(nx,{forceMount:void 0}),Zj=e=>{const{__scopeDialog:t,forceMount:r,children:i,container:a}=e,l=ar(nx,t);return n.jsx(VM,{scope:t,forceMount:r,children:p.Children.map(i,d=>n.jsx(kn,{present:r||l.open,children:n.jsx(Kl,{asChild:!0,container:a,children:d})}))})};Zj.displayName=nx;var ou="DialogOverlay",e2=p.forwardRef((e,t)=>{const r=Jj(ou,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,l=ar(ou,e.__scopeDialog);return l.modal?n.jsx(kn,{present:i||l.open,children:n.jsx(KM,{...a,ref:t})}):null});e2.displayName=ou;var qM=FM("DialogOverlay.RemoveScroll"),KM=p.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,a=ar(ou,r);return n.jsx(_u,{as:qM,allowPinchZoom:!0,shards:[a.contentRef],children:n.jsx($e.div,{"data-state":sx(a.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),Ji="DialogContent",t2=p.forwardRef((e,t)=>{const r=Jj(Ji,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,l=ar(Ji,e.__scopeDialog);return n.jsx(kn,{present:i||l.open,children:l.modal?n.jsx(GM,{...a,ref:t}):n.jsx(YM,{...a,ref:t})})});t2.displayName=Ji;var GM=p.forwardRef((e,t)=>{const r=ar(Ji,e.__scopeDialog),i=p.useRef(null),a=Xe(t,r.contentRef,i);return p.useEffect(()=>{const l=i.current;if(l)return ex(l)},[]),n.jsx(n2,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,l=>{var d;l.preventDefault(),(d=r.triggerRef.current)==null||d.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,l=>{const d=l.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0;(d.button===2||u)&&l.preventDefault()}),onFocusOutside:ve(e.onFocusOutside,l=>l.preventDefault())})}),YM=p.forwardRef((e,t)=>{const r=ar(Ji,e.__scopeDialog),i=p.useRef(!1),a=p.useRef(!1);return n.jsx(n2,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var d,u;(d=e.onCloseAutoFocus)==null||d.call(e,l),l.defaultPrevented||(i.current||(u=r.triggerRef.current)==null||u.focus(),l.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:l=>{var h,m;(h=e.onInteractOutside)==null||h.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const d=l.target;((m=r.triggerRef.current)==null?void 0:m.contains(d))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),n2=p.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,...d}=e,u=ar(Ji,r),h=p.useRef(null),m=Xe(t,h);return $m(),n.jsxs(n.Fragment,{children:[n.jsx(bu,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:l,children:n.jsx(Vl,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":sx(u.open),...d,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),n.jsxs(n.Fragment,{children:[n.jsx(XM,{titleId:u.titleId}),n.jsx(ZM,{contentRef:h,descriptionId:u.descriptionId})]})]})}),rx="DialogTitle",r2=p.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,a=ar(rx,r);return n.jsx($e.h2,{id:a.titleId,...i,ref:t})});r2.displayName=rx;var s2="DialogDescription",i2=p.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,a=ar(s2,r);return n.jsx($e.p,{id:a.descriptionId,...i,ref:t})});i2.displayName=s2;var o2="DialogClose",a2=p.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,a=ar(o2,r);return n.jsx($e.button,{type:"button",...i,ref:t,onClick:ve(e.onClick,()=>a.onOpenChange(!1))})});a2.displayName=o2;function sx(e){return e?"open":"closed"}var l2="DialogTitleWarning",[QM,c2]=uO(l2,{contentName:Ji,titleName:rx,docsSlug:"dialog"}),XM=({titleId:e})=>{const t=c2(l2),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
481
482If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
483
484For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},JM="DialogDescriptionWarning",ZM=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${c2(JM).contentName}}.`;return p.useEffect(()=>{var l;const a=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},ix=Yj,ox=Xj,ax=Zj,Gl=e2,Yl=t2,Ql=r2,Xl=i2,Pu=a2;const Zs=ix,e6=ox,t6=ax,d2=p.forwardRef(({className:e,...t},r)=>n.jsx(Gl,{ref:r,className:Pe("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}));d2.displayName=Gl.displayName;const Vr=p.forwardRef(({className:e,children:t,...r},i)=>n.jsxs(t6,{children:[n.jsx(d2,{}),n.jsxs(Yl,{ref:i,className:Pe("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),...r,children:[t,n.jsxs(Pu,{className:"absolute right-4 top-4 roun
484ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[n.jsx(ii,{className:"h-4 w-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Vr.displayName=Yl.displayName;const qr=({className:e,...t})=>n.jsx("div",{className:Pe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});qr.displayName="DialogHeader";const Kr=p.forwardRef(({className:e,...t},r)=>n.jsx(Ql,{ref:r,className:Pe("text-lg font-semibold leading-none tracking-tight",e),...t}));Kr.displayName=Ql.displayName;const n6=p.forwardRef(({className:e,...t},r)=>n.jsx(Xl,{ref:r,className:Pe("text-sm text-muted-foreground",e),...t}));n6.displayName=Xl.displayName;const u2={joyful:{emoji:"😄",label:"Joyful"},appreciated:{emoji:"🤝",label:"Appreciated"},peaceful:{emoji:"😌",label:"Peaceful"},confused:{emoji:"🤨",label:"Confused"},frustrated:{emoji:"😤",label:"Frustrated"},disappointed:{emoji:"🙁",label:"Disappointed"}},r6=["Fast Help","Great Value","Friendly Staff","Expert Advice","Problem Solved","Other"];async function s6(e){const t=await tt.BusinessFeedback.filter({business_listing_id:e},"-created_date",100);if(t.length===0)return;const r=t.map(l=>({emojis:l.emojis,comment:l.comment,service_type:l.service_type,date:l.created_date})),i=`
485    Analyze the following customer feedback for a business. The feedback is an array of objects, each containing emojis, an optional comment, an optional service type, and the date of feedback.
486
487    Feedback Data:
488    ${JSON.stringify(r,null,2)}
489
490    Your tasks:
491    1.  **Mood Breakdown**: Calculate the percentage of each emoji type across all feedback entries. The available emoji types are: ${Object.keys(u2).join(", ")}. The sum of percentages should be 100.
492    2.  **Business Credibility Score (BCS)**: Calculate a score from 1 to 100. Base this on emoji sentiment (positive emojis like 'joyful', 'appreciated' are high, negative ones like 'frustrated', 'disappointed' are low), the volume of feedback, and the recency (more recent feedback has slightly more weight).
493    3.  **BCS Summary**: Provide a short, 2-3 word summary that describes the overall sentiment (e.g., "Friendly & Reliable", "Quick & Efficient", "Often Confusing", "Mixed Reviews").
494
495    Return the result as a JSON object matching the provided schema.
496    `,a={type:"object",properties:{mood_breakdown:{type:"object",properties:{joyful:{type:"number"},appreciated:{type:"number"},peaceful:{type:"number"},confused:{type:"number"},frustrated:{type:"number"},disappointed:{type:"number"}}},bcs_score:{type:"number"},bcs_summary:{type:"string"}},required:["mood_breakdown","bcs_score","bcs_summary"]};try{const l=await Js.InvokeLLM({prompt:i,response_json_schema:a});await tt.BusinessListing.update(e,{mood_breakdown_json:JSON.stringify(l.mood_breakdown||{}),bcs_score:l.bcs_score,bcs_summary:l.bcs_summary})}catch(l){console.error("Failed to analyze and store feedback:",l)}}function f2({business:e,isOpen:t,onClose:r,onFeedbackSubmitted:i}
496){const[a,l]=p.useState([]),[d,u]=p.useState(""),[h,m]=p.useState(""),[g,y]=p.useState(!1),[w,C]=p.useState(!1),k=b=>{l(S=>S.includes(b)?S.filter(E=>E!==b):S.length<3?[...S,b]:S)},N=async b=>{if(b.preventDefault(),a.length!==0){y(!0);try{await tt.BusinessFeedback.create({business_listing_id:e.id,emojis:a,comment:d,service_type:h}),s6(e.id),C(!0),setTimeout(()=>{i(),j()},2e3)}catch(S){console.error("Failed to submit feedback:",S)}finally{y(!1)}}},j=()=>{g||(r(),setTimeout(()=>{l([]),u(""),m(""),C(!1)},300))};return e?n.jsx(Zs,{open:t,onOpenChange:j,children:n.jsxs(Vr,{className:"max-w-md",children:[n.jsx(qr,{children:n.jsxs(Kr,{className:"text-2xl font-bold text-center",children:["Feedback for ",e.business_name]})}),w?n.jsxs("div",{className:"text-center p-8 flex flex-col items-center",children:[n.jsx(Ht,{className:"w-16 h-16 text-green-500 mb-4"}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Thank you!"}),n.jsx("p",{className:"text-gray-600",children:"Your feedback has been submitted."})]}):n.jsxs("form",{onSubmit:N,className:"space-y-6 pt-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-center font-medium text-gray-800 mb-2",children:"How did this service make you feel?"}),n.jsx("p",{className:"text-center text-sm text-gray-500 mb-4",children:"Select up to 3."}),n.jsx("div",{className:"grid grid-cols-3 gap-4",children:Object.entries(u2).map(([b,{emoji:S,label:E}])=>n.jsxs("button",{type:"button",onClick:()=>k(b),className:`p-4 border-2 rounded-xl text-center transition-all duration-200 ${a.includes(b)?"border-[var(--brand-navy)] bg-blue-50 scale-105":"border-gray-200 hover:border-gray-300"}`,children:[n.jsx("span",{className:"text-4xl",children:S}),n.jsx("span",{className:"block text-sm font-medium mt-2",children:E})]},b))})]}),n.jsxs("div",{children:[n.jsx("label",{htmlFor:"comment",className:"block text-sm font-medium text-gray-700 mb-1",children:"What made you feel this way? (Optional)"}),n.jsx(It,{id:"comment",value:d,onChange:b=>u(b.target.value),placeholder:"Share more details...",className:"min-h-[80px]"})]}),n.jsxs("div",{children:[n.jsx("label",{htmlFor:"service-type",className:"block text-sm font-medium text-gray-700 mb-1",children:"What kind of service was this? (Optional)"}),n.jsxs(sr,{onValueChange:m,children:[n.jsx(zn,{children:n.jsx(ir,{placeholder:"Select service type"})}),n.jsx($n,{children:r6.map(b=>n.jsx(at,{value:b,children:b},b))})]})]}),n.jsxs("div",{className:"flex justify-end gap-4",children:[n.jsx(oe,{type:"button",variant:"outline",onClick:j,children:"Cancel"}),n.jsx(oe,{type:"submit",disabled:g||a.length===0,className:"brand-gradient text-white",children:g?n.jsxs(n.Fragment,{children:[n.jsx(Vd,{className:"w-4 h-4 mr-2 animate-spin"}),"Submitting..."]}):"Submit Feedback"})]})]})]})}):null}const i6=ca("inline-flex items-center rounded-md 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 shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ot({className:e,variant:t,...r}){return n.jsx("div",{className:Pe(i6({variant:t}),e),...r})}var o6=Symbol("radix.slottable");function a6(e){const t=({children:r})=>n.jsx(n.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=o6,t}var[Au]=_n("Tooltip",[ga]),Ou=ga(),h2="TooltipProvider",l6=700,rm="tooltip.open",[c6,lx]=Au(h2),p2=e=>{const{__scopeTooltip:t,delayDuration:r=l6,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:l}=e,d=p.useRef(!0),u=p.useRef(!1),h=p.useRef(0);return p.useEffect(()=>{const m=h.current;return()=>window.clearTimeout(m)},[]),n.jsx(c6,{scope:t,isOpenDelayedRef:d,delayDuration:r,onOpen:p.useCallback(()=>{window.clearTimeout(h.current),d.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>d.current=!0,i)},[i]),isPointerInTransitRef:u,onPointerInTransitChange:p.useCallback(m=>{u.current=m},[]),disableHoverableContent:a,children:l})};p2.displayName=h2;var _l="Tooltip",[d6,Jl]=Au(_l),m2=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:a,onOpenChange:l,disableHoverableContent:d,delayDuration:u}=e,h=lx(_l,e.__scopeTooltip),m=Ou(t),[g,y]=p.useState(null),w=Sn(),C=p.useRef(0),k=d??h.disableHoverableContent,N=u??h.delayDuration,j=p.useRef(!1),[b,S]=rr({prop:i,defaultProp:a??!1,onChange:V=>{V?(h.onOpen(),document.dispatchEvent(new CustomEvent(rm))):h.onClose(),l==null||l(V)},caller:_l}),E=p.useMemo(()=>b?j.current?"delayed-open":"instant-open":"closed",[b]),R=p.useCallback(()=>{window.clearTimeout(C.current),C.current=0,j.current=!1,S(!0)},[S]),O=p.useCallback(()=>{window.clearTimeout(C.current),C.current=0,S(!1)},[S]),$=p.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>{j.current=!0,S(!0),C.current=0},N)},[N,S]);return p.useEffect(()=>()=>{C.current&&(window.clearTimeout(C.current),C.current=0)},[]),n.jsx(Qm,{...m,children:n.jsx(d6,{scope:t,contentId:w,open:b,stateAttribute:E,trigger:g,onTriggerChange:y,onTriggerEnter:p.useCallback(()=>{h.isOpenDelayedRef.current?$():R()},[h.isOpenDelayedRef,$,R]),onTriggerLeave:p.useCallback(()=>{k?O():(window.clearTimeout(C.current),C.current=0)},[O,k]),onOpen:R,onClose:O,disableHoverableContent:k,children:r})})};m2.displayName=_l;var sm="TooltipTrigger",x2=p.forwardRef((e,t)=>
vendor: 5,868 bytes, line 496
496{const{__scopeTooltip:r,...i}=e,a=Jl(sm,r),l=lx(sm,r),d=Ou(r),u=p.useRef(null),h=Xe(t,u,a.onTriggerChange),m=p.useRef(!1),g=p.useRef(!1),y=p.useCallback(()=>m.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),n.jsx(Xm,{asChild:!0,...d,children:n.jsx($e.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:h,onPointerMove:ve(e.onPointerMove,w=>{w.pointerType!=="touch"&&!g.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),g.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{a.open&&a.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:ve(e.onFocus,()=>{m.current||a.onOpen()}),onBlur:ve(e.onBlur,a.onClose),onClick:ve(e.onClick,a.onClose)})})});x2.displayName=sm;var cx="TooltipPortal",[u6,f6]=Au(cx,{forceMount:void 0}),g2=e=>{const{__scopeTooltip:t,forceMount:r,children:i,container:a}=e,l=Jl(cx,t);return n.jsx(u6,{scope:t,forceMount:r,children:n.jsx(kn,{present:r||l.open,children:n.jsx(Kl,{asChild:!0,container:a,children:i})})})};g2.displayName=cx;var la="TooltipContent",y2=p.forwardRef((e,t)=>{const r=f6(la,e.__scopeTooltip),{forceMount:i=r.forceMount,side:a="top",...l}=e,d=Jl(la,e.__scopeTooltip);return n.jsx(kn,{present:i||d.open,children:d.disableHoverableContent?n.jsx(v2,{side:a,...l,ref:t}):n.jsx(h6,{side:a,...l,ref:t})})}),h6=p.forwardRef((e,t)=>{const r=Jl(la,e.__scopeTooltip),i=lx(la,e.__scopeTooltip),a=p.useRef(null),l=Xe(t,a),[d,u]=p.useState(null),{trigger:h,onClose:m}=r,g=a.current,{onPointerInTransitChange:y}=i,w=p.useCallback(()=>{u(null),y(!1)},[y]),C=p.useCallback((k,N)=>{const j=k.currentTarget,b={x:k.clientX,y:k.clientY},S=y6(b,j.getBoundingClientRect()),E=v6(b,S),R=b6(N.getBoundingClientRect()),O=j6([...E,...R]);u(O),y(!0)},[y]);return p.useEffect(()=>()=>w(),[w]),p.useEffect(()=>{if(h&&g){const k=j=>C(j,g),N=j=>C(j,h);return h.addEventListener("pointerleave",k),g.addEventListener("pointerleave",N),()=>{h.removeEventListener("pointerleave",k),g.removeEventListener("pointerleave",N)}}},[h,g,C,w]),p.useEffect(()=>{if(d){const k=N=>{const j=N.target,b={x:N.clientX,y:N.clientY},S=(h==null?void 0:h.contains(j))||(g==null?void 0:g.contains(j)),E=!w6(b,d);S?w():E&&(w(),m())};return document.addEventListener("pointermove",k),()=>document.removeEventListener("pointermove",k)}},[h,g,d,m,w]),n.jsx(v2,{...e,ref:l})}),[p6,m6]=Au(_l,{isInside:!1}),x6=a6("TooltipContent"),v2=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:d,...u}=e,h=Jl(la,r),m=Ou(r),{onClose:g}=h;return p.useEffect(()=>(document.addEventListener(rm,g),()=>document.removeEventListener(rm,g)),[g]),p.useEffect(()=>{if(h.trigger){const y=w=>{const C=w.target;C!=null&&C.contains(h.trigger)&&g()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,g]),n.jsx(Vl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:y=>y.preventDefault(),onDismiss:g,children:n.jsxs(Jm,{"data-state":h.stateAttribute,...m,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[n.jsx(x6,{children:i}),n.jsx(p6,{scope:r,isInside:!0,children:n.jsx(v3,{id:h.contentId,role:"tooltip",children:a||i})})]})})});y2.displayName=la;var b2="TooltipArrow",g6=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...i}=e,a=Ou(r);return m6(b2,r).isInside?null:n.jsx(Zm,{...a,...i,ref:t})});g6.displayName=b2;function y6(e,t){const r=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(r,i,a,l)){case l:return"left";case a:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function v6(e,t,r=5){const i=[];switch(t){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function b6(e){const{top:t,right:r,bottom:i,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:i},{x:a,y:i}]}function w6(e,t){const{x:r,y:i}=e;let a=!1;for(let l=0,d=t.length-1;l<t.length;d=l++){const u=t[l],h=t[d],m=u.x,g=u.y,y=h.x,w=h.y;g>i!=w>i&&r<(y-m)*(i-g)/(w-g)+m&&(a=!a)}return a}function j6(e){const t=e.slice();return t.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),N6(t)}function N6(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const a=e[i];for(;t.length>=2;){const l=t[t.length-1],d=t[t.length-2];if((l.x-d.x)*(a.y-d.y)>=(l.y-d.y)*(a.x-d.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let i=e.length-1;i>=0;i--){const a=e[i];for(;r.length>=2;){const l=r[r.length-1],d=r[r.length-2];if((l.x-d.x)*(a.y-d.y)>=(l.y-d.y)*(a.x-d.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var S6=p2,C6=m2,_6=x2,k6=g2,w2=y2;const j2=S6,N2=C6,S2=_6,dx=p.forwardRef(({className:e,sideOffset:t=4,...r},i)=>n.jsx(k6,{children:n.jsx(w2,{ref:i,sideOffset:t,className:Pe("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
496de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));dx.displayName=w2.displayName;function E6({score:e,summary:t}){if(e==null)return null;const r=()=>e>=80?"bg-green-100 text-green-800 border-green-200":e>=60?"bg-yellow-100 text-yellow-800 border-yellow-200":"bg-red-100 text-red-800 border-red-200";return n.jsx(j2,{children:n.jsxs(N2,{children:[n.jsx(S2,{asChild:!0,children:n.jsxs(Ot,{className:`cursor-pointer ${r()}`,children:[n.jsxs("span",{className:"font-bold mr-1.5",children:["BCS: ",e,"/100"]}),n.jsxs("span",{className:"hidden sm:inline",children:["- ",t]}),n.jsx(Kb,{className:"w-3 h-3 ml-1.5"})]})}),n.jsxs(dx,{className:"max-w-xs",children:[n.jsx("p",{className:"font-semibold mb-1",children:"Business Credibility Score (BCS)"}),n.jsx("p",{children:"This score is calculated by AI based on customer feedback trends, emoji sentiment, and review consistency. It reflects overall customer satisfaction."})]})]})})}const hp={joyful:{emoji:"😄",label:"Joyful"},appreciated:{emoji:"🤝",label:"Appreciated"},peaceful:{emoji:"😌",label:"Peaceful"},confused:{emoji:"🤨",label:"Confused"},frustrated:{emoji:"😤",label:"Frustrated"},disappointed:{emoji:"🙁",label:"Disappointed"}},R6={joyful:"bg-green-400",appreciated:"bg-blue-400",peaceful:"bg-teal-400",confused:"bg-yellow-400",frustrated:"bg-orange-400",disappointed:"bg-red-400"};function T6({moodBreakdownJson:e}){let t;try{t=e?JSON.parse(e):null}catch{t=null}if(!t||Object.keys(t).length===0)return n.jsx("div",{className:"text-sm text-gray-500",children:"No feedback yet."});const r=Object.entries(t).filter(([i,a])=>a>0&&hp[i]).sort(([,i],[,a])=>a-i);return n.jsx(j2,{children:n.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 flex overflow-hidden my-2",children:r.map(([i,a])=>n.jsxs(N2,{children:[n.jsx(S2,{asChild:!0,children:n.jsx("div",{className:`${R6[i]} h-2.5 transition-all duration-300`,style:{width:`${a}%`}})}),n.jsx(dx,{children:n.jsxs("p",{children:[hp[i].emoji," ",hp[i].label,": ",a,"%"]})})]},i))})})}function C2({business:e,onFeedback:t}){var l;const[r,i]=p.useState(!1),a=e.contact_phone||e.contact_email||e.location||e.covered_areas||e.business_hours;return n.jsxs("div",{className:"group bg-white rounded-3xl overflow-hidden shadow-sm hover:shadow-2xl transition-all duration-300 border border-gray-100",children:[e.thumbnail_url?n.jsxs("div",{className:"relative overflow-hidden",children:[n.jsx("img",{src:e.thumbnail_url,alt:e.business_name,className:"w-full h-auto block group-hover:scale-[1.03] transition-transform duration-500"}),n.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-transparent to-transparent pointer-events-none"}),e.category&&n.jsx("span",{className:"absolute top-3 left-3 bg-white/95 text-[var(--brand-navy)] text-xs font-bold px-3 py-1 rounded-full shadow",children:e.category}),e.website_url&&n.jsx("a",{href:e.website_url,target:"_blank",rel:"noopener noreferrer",onClick:d=>d.stopPropagation(),className:"absolute top-3 right-3 bg-white/95 text-[var(--brand-navy)] p-2 rounded-full shadow hover:bg-white transition-colors",children:n.jsx(Wi,{className:"w-3.5 h-3.5"})})]}):n.jsxs("div",{className:"relative w-full h-36 bg-gradient-to-br from-[var(--brand-light-blue)]/20 to-[var(--brand-navy)]/10 flex items-center justify-center",children:[n.jsx(bt,{className:"w-14 h-14 text-[var(--brand-navy)]/20"}),e.category&&n.jsx("span",{className:"absolute top-3 left-3 bg-white/95 text-[var(--brand-navy)] text-xs font-bold px-3 py-1 rounded-full shadow",children:e.category}),e.website_url&&n.jsx("a",{href:e.website_url,target:"_blank",rel:"noopener noreferrer",onClick:d=>d.stopPropagation(),className:"absolute top-3 right-3 bg-white/95 text-[var(--brand-navy)] p-2 rounded-full shadow hover:bg-white transition-colors",children:n.jsx(Wi,{className:"w-3.5 h-3.5"})})]}),n.jsxs("div",{className:"p-4",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.logo_url?n.jsx("img",{src:e.logo_url,alt:`${e.business_name} logo`,className:"w-10 h-10 rounded-xl object-contain bg-gray-50 border border-gray-100 p-1 flex-shrink-0"}):n.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] flex items-center justify-center flex-shrink-0",children:n.jsx(bt,{className:"w-5 h-5 text-white"})}),n.jsx("h3",{className:"font-bold text-gray-900 text-sm leading-tight line-clamp-2",children:e.business_name})]}),n.jsx("div",{className:"mb-2",children:n.jsx(E6,{score:e.bcs_score,summary:e.bcs_summary})}),n.jsx(T6,{moodBreakdownJson:e.mood_breakdown_json}),n.jsx("p",{className:`text-gray-500 text-sm leading-relaxed mt-3 ${r?"":"line-clamp-3"}`,children:e.description}
496),(a||((l=e.description)==null?void 0:l.length)>120)&&n.jsx("button",{onClick:()=>i(!r),className:"flex items-center gap-1 text-xs font-semibold text-[var(--brand-light-blue)] hover:text-[var(--brand-navy)] mt-2 transition-colors",children:r?n.jsxs(n.Fragment,{children:[n.jsx(fm,{className:"w-3.5 h-3.5"})," Show less"]}):n.jsxs(n.Fragment,{children:[n.jsx(Ml,{className:"w-3.5 h-3.5"})," Show more"]})}),r&&a&&n.jsxs("div",{className:"mt-3 pt-3 border-t border-gray-100 space-y-1.5 text-sm text-gray-600",children:[e.contact_phone&&n.jsxs("a",{href:`tel:${e.contact_phone}`,className:"flex items-center gap-2 hover:text-[var(--brand-navy)] transition-colors",children:[n.jsx(Vt,{className:"w-3.5 h-3.5 text-[var(--brand-light-blue)] flex-shrink-0"}),e.contact_phone]}),e.contact_email&&n.jsxs("a",{href:`mailto:${e.contact_email}`,className:"flex items-center gap-2 hover:text-[var(--brand-navy)] transition-colors",children:[n.jsx(Bn,{className:"w-3.5 h-3.5 text-[var(--brand-light-blue)] flex-shrink-0"}),n.jsx("span",{className:"truncate",children:e.contact_email})]}),e.location&&n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx(ni,{className:"w-3.5 h-3.5 text-[var(--brand-light-blue)] flex-shrink-0 mt-0.5"}),n.jsx("span",{children:e.location})]}),e.covered_areas&&n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx(bt,{className:"w-3.5 h-3.5 text-[var(--brand-light-blue)] flex-shrink-0 mt-0.5"}),n.jsx("span",{children:e.covered_areas})]}),e.business_hours&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Zt,{className:"w-3.5 h-3.5 text-[var(--brand-light-blue)] flex-shrink-0"}),n.jsx("span",{children:e.business_hours})]})]}),n.jsxs("button",{onClick:()=>t==null?void 0:t(e),className:"mt-4 w-full flex items-center justify-center gap-2 text-xs font-semibold text-gray-500 hover:text-[var(--brand-navy)] border border-gray-200 hover:border-[var(--brand-navy)] rounded-xl py-2 transition-all",children:[n.jsx(hm,{className:"w-3.5 h-3.5"}),"Leave Feedback"]})]})]})}function P6(){const[e,t]=p.useState([]),[r,i]=p.useState(!0),[a,l]=p.useState(!1),[d,u]=p.useState(null);p.useEffect(()=>{h()},[]);const h=async()=>{try{const y=await tt.BusinessListing.filter({is_approved:!0},"-created_date",6);t(y)}catch(y){console.error("Error loading businesses:",y)}finally{i(!1)}},m=()=>{h()},g=y=>{u(y),l(!0)};return r?n.jsx("section",{className:"py-20 lg:py-28 bg-white",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"text-center",children:[n.jsxs("div",{className:"animate-pulse",children:[n.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/3 mx-auto mb-4"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-2/3 mx-auto mb-8"})]}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(6)].map((y,w)=>n.jsx("div",{className:"animate-pulse",children:n.jsx("div",{className:"h-48 bg-gray-200 rounded-lg"})},w))})]})})}):n.jsx("section",{className:"py-20 lg:py-28 bg-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-black mb-6",children:"Featured Business Partners"}),n.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Discover local businesses that trust AMC Tax Services for their financial needs. Join our growing network of successful enterprises."})]}),e.length>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"mb-12",style:{columnCount:3,columnGap:"1.5rem"},children:e.map(y=>n.jsx("div",{style:{breakInside:"avoid",marginBottom:"1.5rem"},children:n.jsx(C2,{business:y,onFeedback:g})},y.id))}),n.jsx("div",{className:"text-center",children:n.jsx(We,{to:ze("Directory"),children:n.jsxs(oe,{size:"lg",variant:"outline",className:"px-8 py-4 text-lg font-semibold rounded-xl border-2 border-[var(--brand-navy)] text-[var(--brand-navy)] hover:bg-[var(--brand-navy)] hover:text-white transition-all duration-300",children:["View Full Directory",n.jsx(Ui,{className:"w-5 h-5 ml-2"})]})})})]}):n.jsxs("div",{className:"text-center py-12",children:[n.jsx(bt,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"No Featured Businesses Yet"}),n.jsx("p",{className:"text-gray-600 mb-6",children:"We're building our directory of trusted business partners."}),n.jsx(We,{to:ze("Directory"),children:n.jsx(oe,{variant:"outline",className:"border-[var(--brand-navy)] text-[var(--brand-navy)]",children:"Join Our Directory"})})]}),n.jsx(f2,{business:d,isOpen:a,onClose:()=>l(!1),onFeedbackSubmitted:m})]})})}function A6(){return n.jsxs("div",{children:[n.jsx(E4,{}),n.jsx(A4,{}),n.jsx(I4,{}),n.jsx(P6,{})]})}const O6=[{icon:bt,title:"S-Corporation",slug:"s-corporation",description:"Specialized tax services for S-Corporations, optimizing filings and minimizing shareholder tax burdens.",color:"from-blue-500 to-blue-600"},{icon:bt,title:"Corporation",slug:"corporation",description:"Comprehensive tax solutions for c
496orporations, ensuring compliance and optimizing tax strategies.",color:"from-indigo-500 to-indigo-600"},{icon:jn,title:"Schedule C",slug:"schedule-c",description:"Tailored tax services for self-employed individuals, maximizing deductions and minimizing liabilities.",color:"from-purple-500 to-purple-600"},{icon:Nn,title:"1040 Tax",slug:"1040-tax",description:"Expert tax preparation for individuals, ensuring accurate filings and optimized tax outcomes.",color:"from-green-500 to-green-600"},{icon:Hi,title:"Gig Workers",slug:"gig-workers",description:"Specialized tax services tailored for influencers and content creators, managing income from various platforms.",color:"from-pink-500 to-pink-600"},{icon:Kd,title:"Retirement Planning",slug:"retirement-planning",description:"Consulting services for retirement planning, offering tax-advantaged strategies and savings plans.",color:"from-orange-500 to-orange-600"},{icon:Gr,title:"Financial Statement Preparation",description:"Preparation of balance sheets and income statements for accurate financial reporting.",color:"from-teal-500 to-teal-600"},{icon:vl,title:"New Business Formation",description:"Guidance and support for entrepreneurs starting new businesses, including entity selection and tax setup.",color:"from-cyan-500 to-cyan-600"},{icon:qb,title:"Non-Profit Tax Services",description:"Specialized tax services for non-profit organizations, ensuring compliance and maximizing tax benefits.",color:"from-red-500 to-red-600"},{icon:Kd,title:"Tax Planning and Forecasting",description:"Proactive tax planning services to help anticipate and optimize future tax obligations.",color:"from-yellow-500 to-yellow-600"},{icon:Hi,title:"Payroll Services",slug:"payroll",description:"Comprehensive payroll management, ensuring timely and accurate payment of employees.",color:"from-emerald-500 to-emerald-600"},{icon:Dl,title:"Sales Tax Filing",description:"Assistance with state and local sales tax filing, ensuring compliance with complex tax regulations.",color:"from-blue-500 to-cyan-500"},{icon:Gr,title:"Bookkeeping Services",slug:"bookkeeping",description:"Accurate bookkeeping solutions to maintain organized and compliant business financial records.",color:"from-violet-500 to-violet-600"},{icon:sa,title:"Estate and Trust Tax Preparation",description:"Specialized tax preparation for estates and trusts, ensuring compliance and optimizing outcomes for beneficiaries.",color:"from-slate-500 to-slate-600"},{icon:mm,title:"IRS Negotiators",description:"Skilled negotiation services with the IRS to resolve tax issues, including payment plans and offers in compromise.",color:"from-rose-500 to-rose-600"},{icon:pm,title:"Back Taxes",description:"Assistance with resolving and filing past-due taxes, helping clients get back on track with the IRS.",color:"from-amber-500 to-amber-600"},{icon:sa,title:"IRS Audits",description:"Professional representation and support during IRS audits, helping clients navigate the process with confidence.",color:"from-red-500 to-pink-500"},{icon:vl,title:"Business Taxes",description:"Comprehensive tax services for businesses of all sizes, optimizing tax liabilities and ensuring compliance.",color:"from-indigo-500 to-purple-500"},{icon:jn,title:"Personal Tax",description:"Expert preparation and filing of individual tax returns, ensuring accuracy and maximizing deductions.",color:"from-green-500 to-blue-500"}];function I6(){return n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx("section",{className:"bg-gradient-to-br from-gray-50 to-blue-50 py-20 lg:py-28",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-black mb-6",children:"Our Services"}),n.jsx("p",{className:"text-xl md:text-2xl text-gray-600 max-w-3xl mx-auto mb-12",children:"Get the answers and service you deserve."}),n.jsxs("div",{className:"inline-flex items-center bg-white rounded-full px-6 py-3 shadow-sm",children:[n.jsx(Zt,{className:"w-5 h-5 text-[var(--brand-light-blue)] mr-2"}),n.jsx("span",{className:"text-gray-700 font-medium",children:"Available year-round for all your tax needs"})]})]})}),n.jsx("section",{className:"py-20 lg:py-28",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:O6.map((e,t)=>{const r=e.slug||e.title.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""),i=e.slug==="payroll"||e.slug==="bookkeeping",a=ze(i?e.slug:`ServiceDetail?slug=${r}`);return n.jsxs(ke,{className:"group hover:shadow-xl transition-all duration-300 transform hover:-translate-y-2 border-0 shadow-lg overflow-hidden",children:[n.jsx(qe,{className:"pb-4",children:n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsx("div",{className:`w-14 h-14 roun
496ded-2xl bg-gradient-to-r ${e.color} flex items-center justify-center shadow-lg`,children:n.jsx(e.icon,{className:"w-7 h-7 text-white"})}),n.jsx(Ke,{className:"text-xl font-bold text-gray-900 group-hover:text-[var(--brand-navy)] transition-colors",children:e.title})]})}),n.jsxs(Re,{className:"pt-0",children:[n.jsx("p",{className:"text-gray-600 leading-relaxed mb-4",children:e.description}),n.jsx(We,{to:a,children:n.jsxs(oe,{variant:"outline",className:"w-full group-hover:bg-[var(--brand-navy)] group-hover:text-white transition-colors",children:["Learn More",n.jsx(Ui,{className:"w-4 h-4 ml-2"})]})})]})]},t)})})})}),n.jsx("section",{className:"py-20 bg-gradient-to-br from-[var(--brand-navy)] to-[var(--brand-light-blue)]",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-6",children:"Ready to Get Started?"}),n.jsx("p",{className:"text-xl text-blue-100 mb-8 max-w-2xl mx-auto",children:"Don't let tax season stress you out. Contact us today for a free consultation and discover how we can help optimize your financial situation."}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[n.jsx(We,{to:ze("Contact"),children:n.jsxs(oe,{size:"lg",className:"bg-white text-[var(--brand-navy)] hover:bg-gray-50 px-8 py-4 text-lg font-semibold rounded-xl transition-all duration-300 transform hover:scale-105",children:["Schedule Free Consultation",n.jsx(Ui,{className:"w-5 h-5 ml-2"})]})}),n.jsx(We,{to:ze("Upload"),children:n.jsx(oe,{variant:"outline",size:"lg",className:"bg-slate-600 text-white px-8 py-4 text-lg font-semibold inline-flex items-center justify-center gap-2 whitespace-nowrap ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 h-11 border-2 border-white hover:bg-white hover:text-[var(--brand-navy)] rounded-xl transition-all duration-300",children:"Upload Documents"})})]})]})})]})}const Ie=p.forwardRef(({className:e,type:t,...r},i)=>n.jsx("input",{type:t,className:Pe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:i,...r}));Ie.displayName="Input";var M6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],D6=M6.reduce((e,t)=>{const r=Bw(`Primitive.${t}`),i=p.forwardRef((a,l)=>{const{asChild:d,...u}=a,h=d?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(h,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),L6="Label",_2=p.forwardRef((e,t)=>n.jsx(D6.label,{...e,ref:t,onMouseDown:r=>{var a;r.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));_2.displayName=L6;var k2=_2;const F6=ca("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ne=p.forwardRef(({className:e,...t},r)=>n.jsx(k2,{ref:r,className:Pe(F6(),e),...t}));Ne.displayName=k2.displayName;const B6=ca("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Zr=p.forwardRef(({className:e,variant:t,...r},i)=>n.jsx("div",{ref:i,role:"alert",className:Pe(B6({variant:t}),e),...r}));Zr.displayName="Alert";const z6=p.forwardRef(({className:e,...t},r)=>n.jsx("h5",{ref:r,className:Pe("mb-1 font-medium leading-none tracking-tight",e),...t}));z6.displayName="AlertTitle";const es=p.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Pe("text-sm [&_p]:leading-relaxed",e),...t}));es.displayName="AlertDescription";function $6(){const[e,t]=p.useState({client_name:"",client_email:"",client_phone:"",upload_notes:""}
496),[r,i]=p.useState([]),[a,l]=p.useState(!1),[d,u]=p.useState(!1),[h,m]=p.useState(""),y=new URLSearchParams(window.location.search).get("embed")==="true",w=N=>{const{name:j,value:b}=N.target;t(S=>({...S,[j]:b}))},C=N=>{const j=Array.from(N.target.files);i(j),m("")},k=async N=>{if(N.preventDefault(),!e.client_name||!e.client_email||r.length===0){m("Please fill in all required fields and select at least one file.");return}l(!0),m("");try{for(const b of r){const{file_url:S}=await Js.UploadFile({file:b});await tt.DocumentUpload.create({...e,file_url:S,file_name:b.name})}u(!0),t({client_name:"",client_email:"",client_phone:"",upload_notes:""}),i([]);const j=document.getElementById("file-upload");j&&(j.value="")}catch(j){m("There was an error uploading your documents. Please try again."),console.error("Upload error:",j)}finally{l(!1)}};return d?n.jsx("div",{className:`min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 ${y?"py-8":"py-20"}`,children:n.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsx(ke,{className:"border-0 shadow-xl",children:n.jsxs(Re,{className:`${y?"p-8":"p-12"} text-center`,children:[n.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:n.jsx(Ht,{className:"w-10 h-10 text-green-600"})}),n.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Documents Uploaded Successfully!"}),n.jsx("p",{className:"text-gray-600 mb-8 leading-relaxed",children:"Thank you for submitting your tax documents. We've received your files securely and will begin processing them shortly. You'll receive an email confirmation within the next few minutes."}),n.jsxs("div",{className:"bg-blue-50 rounded-lg p-6 mb-8",children:[n.jsx("h3",{className:"font-semibold text-[var(--brand-navy)] mb-2",children:"What's Next?"}),n.jsxs("ul",{className:"text-left text-gray-700 space-y-2",children:[n.jsx("li",{children:"• Our team will review your documents within 24 hours"}),n.jsx("li",{children:"• We'll contact you if any additional information is needed"}),n.jsx("li",{children:"• Your tax return will be prepared and ready for review"}),n.jsx("li",{children:"• You'll receive your completed return via secure email"})]})]}),n.jsx(oe,{onClick:()=>u(!1),className:"brand-gradient text-white px-8 py-3 rounded-lg font-semibold",children:"Upload More Documents"})]})})})}):n.jsx("div",{className:`min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 ${y?"py-8":"py-20"}`,children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[!y&&n.jsxs("div",{className:"text-center mb-12",children:[n.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-black mb-6",children:"Secure Document Upload"}),n.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Safely and securely upload your tax documents. All files are encrypted and stored with bank-level security."})]}),y&&n.jsxs("div",{className:"text-center mb-8",children:[n.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-black mb-4",children:"Secure Document Upload"}),n.jsx("p",{className:"text-lg text-gray-600",children:"Upload your tax documents securely"})]}),!y&&n.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6 mb-8",children:n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center flex-shrink-0",children:n.jsx(sa,{className:"w-6 h-6 text-blue-600"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold text-blue-900 mb-2",children:"Your Privacy & Security is Our Priority"}),n.jsx("p",{className:"text-blue-800 leading-relaxed",children:"All documents are encrypted during transmission and storage. We use the same security standards as major financial institutions to protect your sensitive information."})]})]})}),n.jsxs(ke,{className:"border-0 shadow-xl",children:[n.jsxs(qe,{className:"text-center pb-8",children:[n.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] rounded-2xl flex items-center justify-center mx-auto mb-4",children:n.jsx(Hr,{className:"w-8 h-8 text-white"})}),n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"Upload Your Tax Documents"})]}),n.jsxs(Re,{className:"p-8",children:[h&&n.jsxs(Zr,{variant:"destructive",className:"mb-6",children:[n.jsx(sn,{className:"h-4 w-4"}),n.jsx(es,{children:h})]}),n.jsxs("form",{onSubmit:k,className:"space-y-6",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Ne,{htmlFor:"client_name",className:"text-gray-700 font-medium",children:"Full Name *"}),n.jsx(Ie,{id:"client_name",name:"client_name",type:"text",value:e.client_name,onChange:w,className:"h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"Enter your full name",required:!0})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Ne,{htmlFor:"client_email",className:"text-gray-700 font-medium",children:"Email Address *"}),n.jsx(Ie,{id:"client_email",name:"client_email",type:"email",value:e.client_email,onChange:w,className:"h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"Enter your email address",required:!0})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Ne,{htmlFor:"client_phone",className:"text-gray-700 font-medium",children:"Phone Number"}),n.jsx(Ie,{id:"client_phone",name:"client_phone",type:"tel",value:e.client_phone,onChange:w,className:"h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"Enter your phone number"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Ne,{htmlFor:"file-upload",className:"text-gray-700 font-medium",children:"Select Files *"}),n.jsx("div",{className:"border-2 border-dashed border-gray-200 rounded-lg p-6 hover:border-[var(--brand-light-blue)] transition-colors",children:n.jsxs("div",{className:"text-center",children:[n.jsx(Nn,{className:"w-12 h-12 text-gray-400 mx-auto mb-4"}),n.jsx(Ie,{id:"file-upload",type:"file",multiple:!0,accept:".pdf,.doc,.docx,.jpg,.jpeg,.png,.xls,.xlsx",onChange:C,className:"hidden"}),n.jsxs(Ne,{htmlFor:"file-upload",className:"cursor-pointer inline-flex items-center px-6 py-3 bg-gray-50 hover:bg-gray-100 text-gray-700 font-medium rounded-lg transition-colors",children:[n.jsx(Hr,{className:"w-5 h-5 mr-2"}),"Choose Files"]}),n.jsx("p",{className:"text-sm text-gray-500 mt-2",children:"Supports: PDF, DOC, JPG, PNG, XLS (Max 10MB per file)"})]})}),r.length>0&&n.jsxs("div",{className:"mt-4 space-y-2",children:[n.jsx("p",{className:"font-medium text-gray-700",children:"Selected Files:"}),Array.from(r).map((N,j)=>n.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600",children:[n.jsx(Nn,{className:"w-4 h-4"}),n.jsx("span",{children:N.name}),n.jsxs("span",{className:"text-gray-400",children:["(",(N.size/1024/1024).toFixed(2)," MB)"]})]},j))]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Ne,{htmlFor:"upload_notes",className:"text-gray-700 font-medium",children:"Additional Notes (Optional)"}),n.jsx(It,{id:"upload_notes",name:"upload_notes",value:e.upload_notes,onChange:w,className:"border-gray-200 focus:border-[var(--brand-light-blue)] min-h-[100px]",placeholder:"Any additional information or special instructions..."})]}),n.jsx("div",{className:"bg-gray-50 rounded-lg p-6",children:n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx(Ad,{className:"w-5 h-5 text-green-600 mt-1"}),n.jsx("div",{children:n.jsx("p",{className:"text-sm text-gray-700",children:"By uploading documents, you agree that your files will be securely transmitted and stored using industry-standard encryption. We will only use your documents for tax preparation purposes and will never share them with third parties without your consent."})})]})}),n.jsx(oe,{type:"submit",disabled:a,className:"w-full brand-gradient text-white py-4 text-lg font-semibold rounded-lg hover:opacity-90 transition-opacity disabled:opacity-50",children:a?n.jsxs("div",{className:"flex items-center justify-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2"}),"Uploading Documents..."]}):n.jsxs("div",{className:"flex items-center justify-center",children:[n.jsx(Hr,{className:"w-5 h-5 mr-2"}),"Upload Documents Securely"]})})]})]})]})]})})}var Iu="Checkbox",[U6]=_n(Iu),[W6,ux]=U6(Iu);function H6(e){const{__scopeCheckbox:t,checked:r,children:i,defaultChecked:a,disabled:l,form:d,name:u,onCheckedChange:h,required:m,value:g="on",internal_do_not_use_render:y}=e,[w,C]=rr({prop:r,defaultProp:a??!1,onChange:h,caller:Iu}),[k,N]=p.useState(null),[j,b]=p.useState(null),S=p.useRef(!1),E=k?!!d||!!k.closest("form"):!0,R={checked:w,disabled:l,setChecked:C,control:k,setControl:N,name:u,form:d,value:g,hasConsumerStoppedPropagationRef:S,required:m,defaultChecked:ei(a)?!1:a,isFormControl:E,bubbleInput:j,setBubbleInput:b};return n.jsx(W6,{scope:t,...R,children:V6(y)?y(R):i})}var E2="CheckboxTrigger",R2=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...i},a)=>{const{control:l,value:d,disabled:u,checked:h,required:m,setControl:g,setChecked:y,hasConsumerStoppedPropagationRef:w,isFormControl:C,bubbleInput:k}=ux(E2,e),N=Xe(a,g),j=p.useRef(h);return p.useEffect(()=>{const b=l==null?void 0:l.form;if(b){const S=()=>y(j.current);return b.addEventListener("reset",S),()=>b.removeEventListener("reset",S)}},[l,y]),n.jsx($e.button,{type:"button",role:"checkbox","aria-checked":ei(h)?"mixed":h,"aria-required":m,"data-state":I2(h),"data-disabled":u?"":void 0,disabled:u,value:d,...i,ref:N,onKeyDown:ve(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:ve(r,b=>{y(S=>
496ei(S)?!0:!S),k&&C&&(w.current=b.isPropagationStopped(),w.current||b.stopPropagation())})})});R2.displayName=E2;var fx=p.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:i,checked:a,defaultChecked:l,required:d,disabled:u,value:h,onCheckedChange:m,form:g,...y}=e;return n.jsx(H6,{__scopeCheckbox:r,checked:a,defaultChecked:l,disabled:u,required:d,onCheckedChange:m,name:i,form:g,value:h,internal_do_not_use_render:({isFormControl:w})=>n.jsxs(n.Fragment,{children:[n.jsx(R2,{...y,ref:t,__scopeCheckbox:r}),w&&n.jsx(O2,{__scopeCheckbox:r})]})})});fx.displayName=Iu;var T2="CheckboxIndicator",P2=p.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:i,...a}=e,l=ux(T2,r);return n.jsx(kn,{present:i||ei(l.checked)||l.checked===!0,children:n.jsx($e.span,{"data-state":I2(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});P2.displayName=T2;var A2="CheckboxBubbleInput",O2=p.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:i,hasConsumerStoppedPropagationRef:a,checked:l,defaultChecked:d,required:u,disabled:h,name:m,value:g,form:y,bubbleInput:w,setBubbleInput:C}=ux(A2,e),k=Xe(r,C),N=Z1(l),j=W1(i);p.useEffect(()=>{const S=w;if(!S)return;const E=window.HTMLInputElement.prototype,O=Object.getOwnPropertyDescriptor(E,"checked").set,$=!a.current;if(N!==l&&O){const V=new Event("click",{bubbles:$});S.indeterminate=ei(l),O.call(S,ei(l)?!1:l),S.dispatchEvent(V)}},[w,N,l,a]);const b=p.useRef(ei(l)?!1:l);return n.jsx($e.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??b.current,required:u,disabled:h,name:m,value:g,form:y,...t,tabIndex:-1,ref:k,style:{...t.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});O2.displayName=A2;function V6(e){return typeof e=="function"}function ei(e){return e==="indeterminate"}function I2(e){return ei(e)?"indeterminate":e?"checked":"unchecked"}const M2=p.forwardRef(({className:e,...t},r)=>n.jsx(fx,{ref:r,className:Pe("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:n.jsx(P2,{className:Pe("flex items-center justify-center text-current"),children:n.jsx(Yr,{className:"h-4 w-4"})})}));M2.displayName=fx.displayName;function hb({currentPage:e,totalPages:t,onPageChange:r}){if(t<=1)return null;const i=()=>{e>1&&r(e-1)},a=()=>{e<t&&r(e+1)},l=()=>{const d=[];if(t<=7)for(let u=1;u<=t;u++)d.push(u);else d.push(1),e>3&&d.push("..."),e>2&&d.push(e-1),e!==1&&e!==t&&d.push(e),e<t-1&&d.push(e+1),e<t-2&&d.push("..."),d.push(t);return[...new Set(d)]};return n.jsxs("div",{className:"flex items-center justify-center space-x-2 py-4",children:[n.jsxs(oe,{variant:"outline",size:"sm",onClick:i,disabled:e===1,children:[n.jsx(Wb,{className:"h-4 w-4"}),n.jsx("span",{className:"ml-2 hidden sm:inline",children:"Previous"})]}),n.jsx("div",{className:"hidden sm:flex items-center space-x-2",children:l().map((d,u)=>typeof d=="number"?n.jsx(oe,{variant:e===d?"default":"outline",size:"sm",onClick:()=>r(d),className:"w-9 h-9 p-0",children:d},u):n.jsx("span",{className:"px-2 py-1 text-sm",children:d},u))}),n.jsxs("div",{className:"sm:hidden text-sm text-gray-600",children:["Page ",e," of ",t]}),n.jsxs(oe,{variant:"outline",size:"sm",onClick:a,disabled:e===t,children:[n.jsx("span",{className:"mr-2 hidden sm:inline",children:"Next"}),n.jsx(ti,{className:"h-4 w-4"})]})]})}function q6(){const[e,t]=p.useState([]),[r,i]=p.useState([]),[a,l]=p.useState(!0),[d,u]=p.useState(""),[h,m]=p.useState("all"),[g,y]=p.useState(!1),[w,C]=p.useState(!1),[k,N]=p.useState(null),[j,b]=p.useState(null),[S,E]=p.useState(!1),[R,O]=p.useState(!1),[$,V]=p.useState(!1),[M,ne]=p.useState(""),[Q,ie]=p.useState(!1),[ee,Z]=p.useState(null),[L,W]=p.useState(1),te=6,G=new URLSearchParams(window.location.search).get("embed")==="true",[q,U]=p.useState({business_name:"",description:"",contact_phone:"",contact_email:"",website_url:"",category:"",business_hours:"",location:"",covered_areas:""}),A=["Restaurant","Digital Marketing","Landscaping","Automotive","Real Estate","Fitness & Health","Professional Services","Retail","Construction","Healthcare","Education","Other"];p.useEffect(()=>{X()},[]),p.useEffect(()=>{me(),W(1)},[e,d,h]);const X=async()=>
496{l(!0);try{const de=await tt.BusinessListing.filter({is_approved:!0},"-created_date");t(de)}catch(de){console.error("Error loading businesses:",de)}finally{l(!1)}},ge=()=>{X()},pe=de=>{Z(de),ie(!0)},me=()=>{let de=e;d&&(de=de.filter(be=>be.business_name.toLowerCase().includes(d.toLowerCase())||be.description.toLowerCase().includes(d.toLowerCase())||be.category.toLowerCase().includes(d.toLowerCase())||be.location&&be.location.toLowerCase().includes(d.toLowerCase())||be.covered_areas&&be.covered_areas.toLowerCase().includes(d.toLowerCase()))),h!=="all"&&(de=de.filter(be=>be.category===h)),i(de)},B=de=>{const{name:be,value:Ae}=de.target;U(Ze=>({...Ze,[be]:Ae}))},T=async de=>{de.preventDefault(),E(!0);try{let be={...q};if(k){const{file_url:Ae}=await Js.UploadFile({file:k});be.logo_url=Ae}if(j){const{file_url:Ae}=await Js.UploadFile({file:j});be.thumbnail_url=Ae}await tt.BusinessListing.create({...be,is_approved:!1}),R&&q.contact_email&&(ne(q.contact_email),V(!0),setTimeout(()=>{tt.User.loginWithRedirect(window.location.origin+"/BusinessDashboard")},3e3)),C(!0),U({business_name:"",description:"",contact_phone:"",contact_email:"",website_url:"",category:"",business_hours:"",location:"",covered_areas:""}),N(null),b(null),O(!1),y(!1)}catch(be){console.error("Error submitting business:",be)}finally{E(!1)}},re=Math.ceil(r.length/te),se=r.slice((L-1)*te,L*te);return n.jsxs("div",{className:"min-h-screen bg-white",children:[!G&&n.jsx("section",{className:"bg-gradient-to-br from-gray-50 to-blue-50 py-20 lg:py-28",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-black mb-6",children:"Business Directory"}),n.jsx("p",{className:"text-xl md:text-2xl text-gray-600 max-w-3xl mx-auto mb-8",children:"Discover trusted local businesses that partner with AMC Tax Services. Connect with quality service providers in our community."}),n.jsxs(oe,{onClick:()=>y(!0),className:"brand-gradient text-white px-8 py-3 rounded-lg font-semibold hover:opacity-90 transition-opacity",children:[n.jsx(Nr,{className:"w-5 h-5 mr-2"}),"Add Your Business"]})]})}),G&&n.jsx("section",{className:"bg-gradient-to-br from-gray-50 to-blue-50 py-8",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-black mb-4",children:"Business Directory"}),n.jsx("p",{className:"text-lg text-gray-600 mb-6",children:"Trusted local business partners"}),n.jsxs(oe,{onClick:()=>y(!0),className:"brand-gradient text-white px-6 py-2 rounded-lg font-semibold hover:opacity-90 transition-opacity",children:[n.jsx(Nr,{className:"w-4 h-4 mr-2"}),"Add Your Business"]})]})}),w&&n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-8",children:n.jsxs(Zr,{className:"border-green-200 bg-green-50",children:[n.jsx(Ht,{className:"h-4 w-4 text-green-600"}),n.jsx(es,{className:"text-green-800",children:$?n.jsxs("div",{children:[n.jsx("p",{className:"font-semibold mb-2",children:"Business submitted and account setup initiated!"}),n.jsx("p",{children:"You'll be redirected to create your account in a few seconds. This will allow you to manage your listing and add more businesses."})]}):"Thank you for submitting your business! We'll review your listing and contact you once it's approved."})]})}),n.jsx("section",{className:`${G?"py-6":"py-12"} bg-white border-b`,children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex flex-col md:flex-row gap-4 items-center justify-between",children:[n.jsxs("div",{className:"relative flex-1 w-full max-w-md",children:[n.jsx(ra,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),n.jsx(Ie,{type:"text",placeholder:"Search businesses...",value:d,onChange:de=>u(de.target.value),className:"pl-10 h-12 border-gray-200 focus:border-[var(--brand-light-blue)] w-full"})]}),n.jsxs("div",{className:"flex w-full md:w-auto items-center gap-4",children:[n.jsxs("div",{className:"flex items-center gap-2 flex-1 md:flex-none",children:[n.jsx(qk,{className:"w-5 h-5 text-gray-500 flex-shrink-0"}),n.jsxs(sr,{value:h,onValueChange:m,children:[n.jsx(zn,{className:"w-full md:w-48",children:n.jsx(ir,{placeholder:"Filter by category"})}),n.jsxs($n,{children:[n.jsx(at,{value:"all",children:"All Categories"}),A.map(de=>n.jsx(at,{value:de,children:de},de))]})]})]}),n.jsxs("div",{className:"text-sm text-gray-600 w-full md:w-auto md:text-right",children:[r.length," businesses found"]}
496)]})]})})}),n.jsx("section",{className:`${G?"py-8":"py-20"}`,children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a?n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[...Array(5)].map((de,be)=>n.jsx("div",{className:"animate-pulse",children:n.jsx("div",{className:"h-64 bg-gray-200 rounded-lg"})},be))}):se.length>0?n.jsxs(n.Fragment,{children:[n.jsx(hb,{currentPage:L,totalPages:re,onPageChange:W}),n.jsx("div",{className:"mt-8 columns-1 md:columns-2 lg:columns-3 gap-6",children:se.map(de=>n.jsx("div",{className:"break-inside-avoid mb-6",children:n.jsx(C2,{business:de,onFeedback:pe})},de.id))}),n.jsx("div",{className:"mt-8",children:n.jsx(hb,{currentPage:L,totalPages:re,onPageChange:W})})]}):n.jsxs("div",{className:"text-center py-12",children:[n.jsx(bt,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"No businesses found"}),n.jsx("p",{className:"text-gray-600 mb-6",children:"Try adjusting your search criteria or browse all categories."}),n.jsx(oe,{onClick:()=>{u(""),m("all")},variant:"outline",className:"border-[var(--brand-navy)] text-[var(--brand-navy)]",children:"Clear Filters"})]})})}),g&&n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:n.jsxs(ke,{className:"w-full max-w-2xl max-h-[90vh] overflow-y-auto",children:[n.jsxs(qe,{children:[n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"Submit Your Business"}),n.jsx("p",{className:"text-gray-600",children:"Join our directory of trusted local businesses. All submissions are reviewed before publication."})]}),n.jsx(Re,{children:n.jsxs("form",{onSubmit:T,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"business_name",children:"Business Name *"}),n.jsx(Ie,{id:"business_name",name:"business_name",value:q.business_name,onChange:B,required:!0,className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"description",children:"Description *"}),n.jsx(It,{id:"description",name:"description",value:q.description,onChange:B,required:!0,className:"mt-1 min-h-[100px]",placeholder:"Brief description of your business and services"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"contact_phone",children:"Phone Number"}),n.jsx(Ie,{id:"contact_phone",name:"contact_phone",type:"tel",value:q.contact_phone,onChange:B,className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"contact_email",children:"Email Address"}),n.jsx(Ie,{id:"contact_email",name:"contact_email",type:"email",value:q.contact_email,onChange:B,className:"mt-1"})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"website_url",children:"Website URL"}),n.jsx(Ie,{id:"website_url",name:"website_url",type:"url",value:q.website_url,onChange:B,className:"mt-1",placeholder:"https://"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"category",children:"Category"}),n.jsxs(sr,{value:q.category,onValueChange:de=>U(be=>({...be,category:de})),children:[n.jsx(zn,{className:"mt-1",children:n.jsx(ir,{placeholder:"Select category"})}),n.jsx($n,{children:A.map(de=>n.jsx(at,{value:de,children:de},de))})]})]})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"location",children:"Business Location"}),n.jsx(Ie,{id:"location",name:"location",value:q.location,onChange:B,className:"mt-1",placeholder:"e.g., 123 Main St, San Jose, CA 95120"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"covered_areas",children:"Service Areas"}),n.jsx(It,{id:"covered_areas",name:"covered_areas",value:q.covered_areas,onChange:B,className:"mt-1",placeholder:"e.g., San Jose, Santa Clara, Campbell, Los Gatos, and surrounding areas"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"logo_upload",children:"Business Logo"}),n.jsx(Ie,{id:"logo_upload",name:"logo_upload",type:"file",accept:"image/*",onChange:de=>N(de.target.files[0]),className:"mt-1 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-[var(--brand-navy)] hover:file:bg-blue-100"}),k&&n.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["Selected: ",k.name]})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"thumbnail_upload",children:"Image Thumbnail"}),n.jsx(Ie,{id:"thumbnail_upload",name:"thumbnail_upload",type:"file",accept:"image/*",onChange:de=>b(de.target.files[0]),className:"mt-1 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-[var(--brand-navy)] hover:file:bg-blue-100"}),j&&n.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["Selected: ",j.name]})]})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"business_hours",children:"Business Hours"}),n.jsx(It,{id:"business_hours",name:"business_hours",value:q.business_hours,onChange:B,className:"mt-1",placeholder:"e.g., Mon-Fri: 9am - 5pm, Sat: 10am - 2pm"})]}),n.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx(M2,{id:"create-account",checked:R,onCheckedChange:O,className:"mt-1"}),n.jsxs("div",{className:"flex-1",children:[n.jsx(Ne,{htmlFor:"create-account",className:"text-blue-900 font-medium cursor-pointer",children:"Create an account to manage your listings"}),n.jsx("p",{className:"text-sm text-blue-800 mt-1",children:"With an account, you can edit your listings, add multiple businesses, and track their approval status. You'll be redirected to sign up after submission."})]}),n.jsx(M5,{className:"w-5 h-5 text-blue-600 mt-1"})]})}),n.jsx("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-4",children:n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx(Zt,{className:"w-5 h-5 text-gray-500 mt-0.5 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-medium text-gray-900 mb-1",children:"Review Process"}),n.jsxs("p",{className:"text-sm text-gray-700",children:["Your listing will be reviewed by our team before being published. This typically takes 1-2 business days. ",R&&"As an account holder, you'll receive email updates on your listing status."]})]})]})}),n.jsxs("div",{className:"flex justify-end gap-4 pt-4",children:[n.jsx(oe,{type:"button",variant:"outline",onClick:()=>{y(!1),N(null),b(null),O(!1),U({business_name:"",description:"",contact_phone:"",contact_email:"",website_url:"",category:"",business_hours:"",location:"",covered_areas:""})},disabled:S,children:"Cancel"}),n.jsx(oe,{type:"submit",className:"brand-gradient text-white",disabled:S,children:S?"Submitting...":R?"Submit & Create Account":"Submit for Review"})]})]})})]})}
vendor: 4,793 bytes, line 496
496),n.jsx(f2,{business:ee,isOpen:Q,onClose:()=>ie(!1),onFeedbackSubmitted:ge})]})}function lr(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Zi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const D2=6048e5,K6=864e5;let G6={};function Mu(){return G6}function kl(e,t){var u,h,m,g;const r=Mu(),i=(t==null?void 0:t.weekStartsOn)??((h=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??0,a=lr(e),l=a.getDay(),d=(l<i?7:0)+l-i;return a.setDate(a.getDate()-d),a.setHours(0,0,0,0),a}function au(e){return kl(e,{weekStartsOn:1})}function L2(e){const t=lr(e),r=t.getFullYear(),i=Zi(e,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=au(i),l=Zi(e,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const d=au(l);return t.getTime()>=a.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function pb(e){const t=lr(e);return t.setHours(0,0,0,0),t}function mb(e){const t=lr(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Y6(e,t){const r=pb(e),i=pb(t),a=+r-mb(r),l=+i-mb(i);return Math.round((a-l)/K6)}function Q6(e){const t=L2(e),r=Zi(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),au(r)}function X6(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function J6(e){if(!X6(e)&&typeof e!="number")return!1;const t=lr(e);return!isNaN(Number(t))}function Z6(e){const t=lr(e),r=Zi(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const eD={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tD=(e,t,r)=>{let i;const a=eD[e];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function pp(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const nD={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},rD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},sD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iD={date:pp({formats:nD,defaultWidth:"full"}),time:pp({formats:rD,defaultWidth:"full"}),dateTime:pp({formats:sD,defaultWidth:"full"})},oD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},aD=(e,t,r,i)=>oD[e];function ll(e){return(t,r)=>{const i=r!=null&&r.context?String(r.context):"standalone";let a;if(i==="formatting"&&e.formattingValues){const d=e.defaultFormattingWidth||e.defaultWidth,u=r!=null&&r.width?String(r.width):d;a=e.formattingValues[u]||e.formattingValues[d]}else{const d=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[d]}const l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}const lD={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cD={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dD={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},uD={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
496ay","Saturday"]},fD={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hD={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pD=(e,t)=>{const r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},mD={ordinalNumber:pD,era:ll({values:lD,defaultWidth:"wide"}),quarter:ll({values:cD,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ll({values:dD,defaultWidth:"wide"}),day:ll({values:uD,defaultWidth:"wide"}),dayPeriod:ll({values:fD,defaultWidth:"wide",formattingValues:hD,defaultFormattingWidth:"wide"})};function cl(e){return(t,r={})=>{const i=r.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],l=t.match(a);if(!l)return null;const d=l[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(u)?gD(u,y=>y.test(d)):xD(u,y=>y.test(d));let m;m=e.valueCallback?e.valueCallback(h):h,m=r.valueCallback?r.valueCallback(m):m;const g=t.slice(d.length);return{value:m,rest:g}}}function xD(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function gD(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function yD(e){return(t,r={})=>{const i=t.match(e.matchPattern);if(!i)return null;const a=i[0],l=t.match(e.parsePattern);if(!l)return null;let d=e.valueCallback?e.valueCallback(l[0]):l[0];d=r.valueCallback?r.valueCallback(d):d;const u=t.slice(a.length);return{value:d,rest:u}}}const vD=/^(\d+)(th|st|nd|rd)?/i,bD=/\d+/i,wD={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},jD={any:[/^b/i,/^(a|c)/i]},ND={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},SD={any:[/1/i,/2/i,/3/i,/4/i]},CD={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_D={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ED={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},RD={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},TD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},PD={ordinalNumber:yD({matchPattern:vD,parsePattern:bD,valueCallback:e=>parseInt(e,10)}),era:cl({matchPatterns:wD,defaultMatchWidth:"wide",parsePatterns:jD,defaultParseWidth:"any"}),quarter:cl({matchPatterns:ND,defaultMatchWidth:"wide",parsePatterns:SD,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cl({matchPatterns:CD,defaultMatchWidth:"wide",parsePatterns:_D,defaultParseWidth:"any"}),day:cl({matchPatterns:kD,defaultMatchWidth:"wide",parsePatterns:ED,defaultParseWidth:"any"}),dayPeriod:cl({matchPatterns:RD,defaultMatchWidth:"any",parsePatterns:TD,defaultParseWidth:"any"})},AD={code:"en-US",formatDistance:tD,formatLong:iD,formatRelative:aD,localize:mD,match:PD,options:{weekStartsOn:0,firstWeekContainsDate:1}};function OD(e){const t=lr(e);return Y6(t,Z6(t))+1}function ID(e){const t=lr(e),r=+au(t)-+Q6(t);return Math.round(r/D2)+1}function F2(e,t){var g,y,w,C;const r=lr(e),i=r.getFullYear(),a=Mu(),l=(t==null?void 0:t.firstWeekContainsDate)??((y=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??a.firstWeekContainsDate??((C=(w=a.locale)==null?void 0:w.options)==null?void 0:C.firstWeekContainsDate)??1,d=Zi(e,0);d.setFullYear(i+1,0,l),d.setHours(0,0,0,0);const u=kl(d,t),h=Zi(e,0);h.setFullYear(i,0,l),h.setHours(0,0,0,0);const m=kl(h,t);return r.getTime()>=u.getTime()?i+1:r.getTime()>=m.getTime()?i:i-1}function MD(e,t){var u,h,m,g;const r=Mu(),i=(t==null?void 0:t.firstWeekContainsDate)??((h=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,a=F2(e,t),l=Zi(e,0);return l.setFullYear(a,0,i),l.setHours(0,0,0,0),kl(l,t)}function DD(e,t){const r=lr(e),i=+kl(r,t)-+MD(r,t);return Math.round(i/D2)+1}function ot(e,t){const r=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return r+i}const Cs={y(e,t){const r=e.getFullYear(),i=r>0?r:1-r;return ot(t==="yy"?i%100:i,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ot(r+1,2)},d(e,t){return ot(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ot(e.getHours()%12||12,t.length)},H(e,t){return ot(e.getHours(),t.length)},m(e,t){return ot(e.getMinutes(),t.length)},s(e,t){return ot(e.getSeconds(),t.length)},S(e,t){const r=t.length,i=e.getMilliseconds(),a=Math.trunc(i*Math.pow(10,r-3));return ot(a,t.length)}},Lo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xb={G:function(e,t,r){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const i=e.getFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return Cs.y(e,t)},Y:function(e,t,r,i){const a=F2(e,i),l=a>0?a:1-a;if(t==="YY"){const d=l%100;return ot(d,2)}return t==="Yo"?r.ordinalNumber(l,{unit:"year"}):ot(l,t.length)},R:function(e,t){const r=L2(e);return ot(r,t.length)},u:function(e,t){const r=e.getFullYear();return ot(r,t.length)},Q:function(e,t,r){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return ot(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return ot(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){const i=e.getMonth();switch(t){case"M":case"MM":return Cs.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return ot(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){const a=DD(e,i);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):ot(a,t.length)},I:function(e,t,r){const i=ID(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):ot(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Cs.d(e,t)},D:function(e,t,r){const i=OD(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ot(i,t.length)},E:function(e,t,r){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){const a=e.getDay(),l=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return ot(l,2);case"eo":return r.ordinalNumber(l,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){const a=e.getDay(),l=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return ot(l,t.length);case"co":return r.ordinalNumber(l,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const i=e.getDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return ot(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){const i=e.getHours();let a;switch(i===12?a=Lo.noon:i===0?a=Lo.midnight:a=i/12>
vendor: 4,402 bytes, line 496
496=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const i=e.getHours();let a;switch(i>=17?a=Lo.evening:i>=12?a=Lo.afternoon:i>=4?a=Lo.morning:a=Lo.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Cs.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Cs.H(e,t)},K:function(e,t,r){const i=e.getHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ot(i,t.length)},k:function(e,t,r){let i=e.getHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):ot(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Cs.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Cs.s(e,t)},S:function(e,t){return Cs.S(e,t)},X:function(e,t,r){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return yb(i);case"XXXX":case"XX":return Si(i);case"XXXXX":case"XXX":default:return Si(i,":")}},x:function(e,t,r){const i=e.getTimezoneOffset();switch(t){case"x":return yb(i);case"xxxx":case"xx":return Si(i);case"xxxxx":case"xxx":default:return Si(i,":")}},O:function(e,t,r){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+gb(i,":");case"OOOO":default:return"GMT"+Si(i,":")}},z:function(e,t,r){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+gb(i,":");case"zzzz":default:return"GMT"+Si(i,":")}},t:function(e,t,r){const i=Math.trunc(e.getTime()/1e3);return ot(i,t.length)},T:function(e,t,r){const i=e.getTime();return ot(i,t.length)}};function gb(e,t=""){const r=e>0?"-":"+",i=Math.abs(e),a=Math.trunc(i/60),l=i%60;return l===0?r+String(a):r+String(a)+t+ot(l,2)}function yb(e,t){return e%60===0?(e>0?"-":"+")+ot(Math.abs(e)/60,2):Si(e,t)}function Si(e,t=""){const r=e>0?"-":"+",i=Math.abs(e),a=ot(Math.trunc(i/60),2),l=ot(i%60,2);return r+a+t+l}const vb=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},B2=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},LD=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return vb(e,t);let l;switch(i){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",vb(i,t)).replace("{{time}}",B2(a,t))},FD={p:B2,P:LD},BD=/^D+$/,zD=/^Y+$/,$D=["D","DD","YY","YYYY"];function UD(e){return BD.test(e)}function WD(e){return zD.test(e)}function HD(e,t,r){const i=VD(e,t,r);if(console.warn(i),$D.includes(e))throw new RangeError(i)}function VD(e,t,r){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const qD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,KD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,GD=/^'([^]*?)'?$/,YD=/''/g,QD=/[a-zA-Z]/;function Ci(e,t,r){var g,y,w,C;const i=Mu(),a=i.locale??AD,l=i.firstWeekContainsDate??((y=(g=i.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,d=i.weekStartsOn??((C=(w=i.locale)==null?void 0:w.options)==null?void 0:C.weekStartsOn)??0,u=lr(e);if(!J6(u))throw new RangeError("Invalid time value");let h=t.match(KD).map(k=>{const N=k[0];if(N==="p"||N==="P"){const j=FD[N];return j(k,a.formatLong)}return k}).join("").match(qD).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const N=k[0];if(N==="'")return{isToken:!1,value:XD(k)};if(xb[N])return{isToken:!0,value:k};
496if(N.match(QD))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return{isToken:!1,value:k}});a.localize.preprocessor&&(h=a.localize.preprocessor(u,h));const m={firstWeekContainsDate:l,weekStartsOn:d,locale:a};return h.map(k=>{if(!k.isToken)return k.value;const N=k.value;(WD(N)||UD(N))&&HD(N,t,String(e));const j=xb[N[0]];return j(u,N,a.localize,m)}).join("")}function XD(e){const t=e.match(GD);return t?t[1].replace(YD,"'"):e}const JD={"tax-tips":"bg-blue-100 text-blue-800","business-finance":"bg-green-100 text-green-800","industry-updates":"bg-purple-100 text-purple-800","irs-news":"bg-orange-100 text-orange-800"},mp={"tax-tips":"Tax Tips","business-finance":"Business Finance","industry-updates":"Industry Updates","irs-news":"IRS News"};function ZD(){const[e,t]=p.useState([]),[r,i]=p.useState(!0),[a,l]=p.useState("all");p.useEffect(()=>{d()},[]);const d=async()=>{try{const h=await tt.BlogPost.filter({is_published:!0},"-created_date");t(h)}catch(h){console.error("Error loading blog posts:",h)}finally{i(!1)}},u=a==="all"?e:e.filter(h=>h.category===a);return n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx("section",{className:"bg-gradient-to-br from-gray-50 to-blue-50 py-20 lg:py-28",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsxs("div",{className:"inline-flex items-center bg-white rounded-full px-4 py-2 mb-6 shadow-sm",children:[n.jsx(Gr,{className:"w-4 h-4 text-[var(--brand-light-blue)] mr-2"}),n.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Expert Tax & Finance Insights"})]}),n.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-black mb-6",children:"Tax & Business Blog"}),n.jsx("p",{className:"text-xl md:text-2xl text-gray-600 max-w-3xl mx-auto",children:"Stay informed with the latest tax tips, industry updates, and financial advice from our team of certified professionals."})]})}),n.jsx("section",{className:"py-12 bg-white border-b",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex flex-wrap gap-4 justify-center",children:[n.jsx("button",{onClick:()=>l("all"),className:`px-6 py-3 rounded-full font-medium transition-all duration-200 ${a==="all"?"bg-[var(--brand-navy)] text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,children:"All Posts"}),Object.entries(mp).map(([h,m])=>n.jsx("button",{onClick:()=>l(h),className:`px-6 py-3 rounded-full font-medium transition-all duration-200 ${a===h?"bg-[var(--brand-navy)] text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,children:m},h))]})})}),n.jsx("section",{className:"py-20",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:r?n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[...Array(6)].map((h,m)=>n.jsxs("div",{className:"animate-pulse",children:[n.jsx("div",{className:"h-64 bg-gray-200 rounded-lg mb-4"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2"})]},m))}):u.length>0?n.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-8",children:u.map(h=>n.jsxs(ke,{className:"group hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1 border-0 shadow-lg overflow-hidden flex flex-col",children:[h.featured_image_url&&n.jsx("div",{className:"aspect-[16/10] overflow-hidden",children:n.jsx("img",{src:h.featured_image_url,alt:h.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),n.jsxs("div",{className:"flex flex-col flex-grow p-6",children:[" ",n.jsxs("div",{className:"flex items-center justify-between mb-3",children:[n.jsx(Ot,{className:`${JD[h.category]} border-0`,children:mp[h.category]}),n.jsxs("div",{className:"flex items-center text-sm text-gray-500",children:[n.jsx(er,{className:"w-4 h-4 mr-1"}),Ci(new Date(h.created_date),"MMM d, yyyy")]})]}),n.jsx("h2",{className:"text-xl font-bold text-gray-900 group-hover:text-[var(--brand-navy)] transition-colors leading-tight mb-3 flex-grow",children:h.title}),n.jsx("p",{className:"text-gray-600 leading-relaxed mb-4",children:h.excerpt}),n.jsxs(We,{to:ze(`BlogPostDetail?id=${h.id}`),className:"flex items-center text-[var(--brand-light-blue)] hover:text-[var(--brand-navy)] font-medium transition-colors group mt-auto",children:[n.jsx("span",{children:"Read More"}),n.jsx(Ui,{className:"w-4 h-4 ml-1 group-hover:translate-x-1 transition-transform"})]})]})]}
496,h.id))}):n.jsxs("div",{className:"text-center py-12",children:[n.jsx(Gr,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"No posts found"}),n.jsx("p",{className:"text-gray-600",children:a==="all"?"We're working on adding more content. Check back soon!":`No posts in the ${mp[a]} category yet.`})]})})}),n.jsx("section",{className:"py-20 bg-gradient-to-br from-[var(--brand-navy)] to-[var(--brand-light-blue)]",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-6",children:"Stay Updated with Tax Tips & News"}),n.jsx("p",{className:"text-xl text-blue-100 mb-8 max-w-2xl mx-auto",children:"Subscribe to our newsletter and never miss important tax deadlines, deduction opportunities, or regulatory changes."}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center max-w-md mx-auto",children:[n.jsx("input",{type:"email",placeholder:"Enter your email address",className:"flex-1 px-4 py-3 rounded-lg border-0 focus:ring-2 focus:ring-white focus:outline-none"}),n.jsx("button",{className:"bg-white text-[var(--brand-navy)] px-6 py-3 rounded-lg font-semibold hover:bg-gray-50 transition-colors",children:"Subscribe"})]}),n.jsx("p",{className:"text-sm text-blue-200 mt-4",children:"No spam. Unsubscribe at any time."})]})})]})}const e8=[{title:"Individual Taxpayers",icon:Hi,color:"from-blue-500 to-blue-600",resources:[{name:"IRS.gov Homepage",description:"Official IRS website with forms, publications, and taxpayer information",url:"https://www.irs.gov",icon:Nn},{name:"Where's My Refund?",description:"Track the status of your federal tax refund online",url:"https://www.irs.gov/refunds",icon:ra},{name:"2024 Tax Brackets",description:"Current year federal income tax rates and brackets",url:"https://www.irs.gov/newsroom/irs-provides-tax-inflation-adjustments-for-tax-year-2024",icon:jn},{name:"Standard Deduction Amounts",description:"Standard deduction amounts for different filing statuses",url:"https://www.irs.gov/newsroom/irs-provides-tax-inflation-adjustments-for-tax-year-2024",icon:jn}]},{title:"Business Owners",icon:bt,color:"from-green-500 to-green-600",resources:[{name:"Small Business Tax Center",description:"Comprehensive tax information for small business owners",url:"https://www.irs.gov/businesses/small-businesses-self-employed",icon:bt},{name:"Business Tax Forms",description:"Download current and prior year business tax forms",url:"https://www.irs.gov/forms-pubs/business-forms",icon:Nn},{name:"Quarterly Estimated Taxes",description:"Information on making quarterly estimated tax payments",url:"https://www.irs.gov/businesses/small-businesses-self-employed/estimated-taxes",icon:jn},{name:"Business Expenses Deductions",description:"Guide to deductible business expenses",url:"https://www.irs.gov/businesses/small-businesses-self-employed/deducting-business-expenses",icon:jn}]},{title:"IRS Help & Support",icon:_v,color:"from-purple-500 to-purple-600",resources:[{name:"Taxpayer Advocate Service",description:"Independent organization within the IRS to help resolve tax problems",url:"https://www.taxpayeradvocate.irs.gov",icon:Vt},{name:"IRS Contact Information",description:"Phone numbers and contact methods for different tax issues",url:"https://www.irs.gov/help/telephone-assistance",icon:Vt},{name:"Tax Relief Programs",description:"Information on payment plans and tax relief options",url:"https://www.irs.gov/payments/payment-plans-installment-agreements",icon:_v},{name:"Report Tax Fraud",description:"How to report suspected tax fraud or identity theft",url:"https://www.irs.gov/individuals/how-do-you-report-suspected-tax-fraud-activity",icon:sn}]}],t8=[{name:"Tax Withholding Calculator",description:"Calculate the right amount of tax to have withheld from your paycheck",url:"https://www.irs.gov/individuals/tax-withholding-estimator",icon:jn,color:"bg-blue-500"},{name:"Earned Income Tax Credit Calculator",description:"Determine if you qualify for the Earned Income Tax Credit",url:"https://www.irs.gov/credits-deductions/individuals/earned-income-tax-credit/eitc-income-limits-maximum-credit-amounts",icon:jn,color:"bg-green-500"},{name:"Retirement Plan Contribution Limits",description:"Current year contribution limits for retirement accounts",url:"https://www.irs.gov/retirement-plans/plan-participant-employee/retirement-topics-contributions",icon:jn,color:"bg-purple-500"}];function n8(){return n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx("section",{className:"bg-gradient-to-br from-gray-50 to-blue-50 py-20 lg:py-28",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsxs("div",{className:"inline-flex items-center bg-white rounded-full px-4 py-2 mb-6 shadow-sm",children:[n.jsx(Nn,{className:"w-4 h-4 text-[var(--brand-light-blue)] mr-2"}),n.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Official IRS Resources"})]}),n.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-black mb-6",children:"Tax Resources & Tools"}),n.jsx("p",{className:"text-xl md:text-2xl text-gray-600 max-w-3xl mx-auto mb-8",children:"Access essential IRS resources, tax calculators, and helpful tools to stay compliant and make informed financial decisions."}),n.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6 max-w-2xl mx-auto",children:n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx(sn,{className:"w-6 h-6 text-blue-600 mt-1 flex-shrink-0"}),n.jsxs("div",{className:"text-left",children:[n.jsx("h3",{className:"font-semibold text-blue-900 mb-2",children:"Important Notice"}),n.jsx("p",{className:"text-blue-800 text-sm",children:"Always verify information on the official IRS website (IRS.gov). These resources are provided for c
496onvenience and may not reflect the most current information."})]})]})})]})}),n.jsx("section",{className:"py-20 bg-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-black mb-6",children:"Quick Tax Tools"}),n.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Access these helpful calculators and tools to make tax planning easier."})]}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:t8.map((e,t)=>n.jsxs(ke,{className:"group hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1 border-0 shadow-lg",children:[n.jsxs(qe,{className:"text-center pb-4",children:[n.jsx("div",{className:`w-16 h-16 ${e.color} rounded-2xl flex items-center justify-center mx-auto mb-4`,children:n.jsx(e.icon,{className:"w-8 h-8 text-white"})}),n.jsx(Ke,{className:"text-xl font-bold text-gray-900 group-hover:text-[var(--brand-navy)] transition-colors",children:e.name})]}),n.jsxs(Re,{className:"text-center pt-0",children:[n.jsx("p",{className:"text-gray-600 mb-6 leading-relaxed",children:e.description}),n.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:n.jsxs(oe,{className:"brand-gradient text-white hover:opacity-90 transition-opacity",children:["Access Tool",n.jsx(Wi,{className:"w-4 h-4 ml-2"})]})})]})]},t))})]})}),n.jsx("section",{className:"py-20 bg-gradient-to-br from-gray-50 to-blue-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-black mb-6",children:"IRS Resources by Category"}),n.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Find the official IRS resources you need, organized by taxpayer type."})]}),n.jsx("div",{className:"space-y-12",children:e8.map((e,t)=>n.jsxs(ke,{className:"border-0 shadow-lg overflow-hidden",children:[n.jsx(qe,{className:`bg-gradient-to-r ${e.color} text-white p-8`,children:n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsx("div",{className:"w-12 h-12 bg-white bg-opacity-20 rounded-lg flex items-center justify-center",children:n.jsx(e.icon,{className:"w-6 h-6 text-white"})}),n.jsx(Ke,{className:"text-2xl font-bold",children:e.title})]})}),n.jsx(Re,{className:"p-8",children:n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:e.resources.map((r,i)=>n.jsx("div",{className:"group p-6 bg-gray-50 rounded-lg hover:bg-white hover:shadow-md transition-all duration-200",children:n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] rounded-lg flex items-center justify-center flex-shrink-0",children:n.jsx(r.icon,{className:"w-5 h-5 text-white"})}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h4",{className:"font-semibold text-gray-900 mb-2 group-hover:text-[var(--brand-navy)] transition-colors",children:r.name}),n.jsx("p",{className:"text-gray-600 text-sm mb-3 leading-relaxed",children:r.description}),n.jsxs("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-[var(--brand-light-blue)] hover:text-[var(--brand-navy)] font-medium text-sm transition-colors group",children:["Visit Resource",n.jsx(Wi,{className:"w-3 h-3 ml-1 group-hover:translate-x-1 transition-transform"})]})]})]})},i))})})]},t))})]})}),n.jsx("section",{className:"py-16 bg-gray-100",children:n.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:n.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-sm",children:[n.jsx(sn,{className:"w-12 h-12 text-orange-500 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Professional Tax Advice Recommended"}),n.jsx("p",{className:"text-gray-600 leading-relaxed",children:"While these resources provide valuable information, tax laws can be complex and change frequently. For personalized advice and assistance with your specific tax situation, we recommend consulting with a qualified tax professional. Contact AMC Tax Services for expert guidance tailored to your needs."})]})})})]})}
496function r8(){const[e,t]=p.useState({name:"",email:"",phone:"",message:"",inquiry_type:"general"}),[r,i]=p.useState(!1),[a,l]=p.useState(!1),[d,u]=p.useState(""),h=g=>{const{name:y,value:w}=g.target;t(C=>({...C,[y]:w}))},m=async g=>{if(g.preventDefault(),!e.name||!e.email||!e.message){u("Please fill in all required fields.");return}i(!0),u("");try{await tt.ContactSubmission.create(e),l(!0),t({name:"",email:"",phone:"",message:"",inquiry_type:"general"})}catch(y){u("There was an error sending your message. Please try again."),console.error("Contact form error:",y)}finally{i(!1)}};return a?n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-20",children:n.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsx(ke,{className:"border-0 shadow-xl",children:n.jsxs(Re,{className:"p-12 text-center",children:[n.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:n.jsx(Ht,{className:"w-10 h-10 text-green-600"})}),n.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Message Sent Successfully!"}),n.jsx("p",{className:"text-gray-600 mb-8 leading-relaxed",children:"Thank you for contacting AMC Tax Services. We've received your message and will respond within 24 hours during business days."}),n.jsxs("div",{className:"bg-blue-50 rounded-lg p-6 mb-8",children:[n.jsx("h3",{className:"font-semibold text-[var(--brand-navy)] mb-2",children:"What's Next?"}),n.jsxs("ul",{className:"text-left text-gray-700 space-y-2",children:[n.jsx("li",{children:"• We'll review your inquiry and determine the best way to help"}),n.jsx("li",{children:"• A team member will reach out via your preferred contact method"}),n.jsx("li",{children:"• For urgent matters, please call us directly at (555) 123-4567"})]})]}),n.jsx(oe,{onClick:()=>l(!1),className:"brand-gradient text-white px-8 py-3 rounded-lg font-semibold",children:"Send Another Message"})]})})})}):n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx("section",{className:"bg-gradient-to-br from-gray-50 to-blue-50 py-20 lg:py-28",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-black mb-6",children:"Contact Us"}),n.jsx("p",{className:"text-xl md:text-2xl text-gray-600 max-w-3xl mx-auto mb-8",children:"Ready to get started? We're here to help with all your tax and business needs. Reach out today for your free consultation."}),n.jsxs("div",{className:"inline-flex items-center bg-white rounded-full px-6 py-3 shadow-sm",children:[n.jsx(Zt,{className:"w-5 h-5 text-[var(--brand-light-blue)] mr-2"}),n.jsx("span",{className:"text-gray-700 font-medium",children:"Response within 24 hours"})]})]})}),n.jsx("section",{className:"py-20",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12",children:[n.jsxs("div",{className:"lg:col-span-1 space-y-8",children:[n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900 mb-6",children:"Get in Touch"})}),n.jsxs(Re,{className:"space-y-6",children:[n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] rounded-lg flex items-center justify-center flex-shrink-0",children:n.jsx(Vt,{className:"w-6 h-6 text-white"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900 mb-1",children:"Phone"}),n.jsx("p",{className:"text-gray-600 mb-2",children:"(408) 258-2200"}),n.jsx("p",{className:"text-sm text-gray-500",children:"Monday - Friday, 9:00 AM - 6:00 PM Saturday 10:00 AM, Sunday Closed"})]})]}),n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] rounded-lg flex items-center justify-center flex-shrink-0",children:n.jsx(Bn,{className:"w-6 h-6 text-white"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900 mb-1",children:"Email"}),n.jsx("p",{className:"text-gray-600 mb-2",children:"[email protected]"}),n.jsx("p",{className:"text-sm text-gray-500",children:"We respond within 24 hours"})]})]}),n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] rounded-lg flex items-center justify-center flex-shrink-0",children:n.jsx(ni,{className:"w-6 h-6 text-white"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900 mb-1",children:"Office"}),n.jsx("p",{className:"text-gray-600",children:"2635 Cunningham Ave. Suite #23, San Jose, CA 95148"})]})]})]})]}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsxs(Ke,{className:"text-xl font-bold text-gray-900 flex items-center",children:[n.jsx(Zt,{className:"w-6 h-6 mr-2 text-[var(--brand-light-blue)]"}),"Business Hours"]})}),n.jsxs(Re,{className:"space-y-3",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-700",children:"Monday - Friday"}),n.jsx("span",{className:"font-medium text-gray-900",children:"9:00 AM - 6:00 PM"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-700",children:"Saturday"}),n.jsx("span",{className:"font-medium text-gray-900",children:"10:00 AM - 2
496:00 PM"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-700",children:"Sunday"}),n.jsx("span",{className:"font-medium text-gray-900",children:"Closed"})]}),n.jsx("div",{className:"pt-3 border-t",children:n.jsxs("p",{className:"text-sm text-gray-600",children:[n.jsx(er,{className:"w-4 h-4 inline mr-1"}),"Extended hours during tax season (Jan 1 - Apr 15)"]})})]})]})]}),n.jsx("div",{className:"lg:col-span-2",children:n.jsxs(ke,{className:"border-0 shadow-xl",children:[n.jsxs(qe,{children:[n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"Send Us a Message"}),n.jsx("p",{className:"text-gray-600",children:"Fill out the form below and we'll get back to you as soon as possible."})]}),n.jsxs(Re,{className:"p-8",children:[d&&n.jsxs(Zr,{variant:"destructive",className:"mb-6",children:[n.jsx(sn,{className:"h-4 w-4"}),n.jsx(es,{children:d})]}),n.jsxs("form",{onSubmit:m,className:"space-y-6",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Ne,{htmlFor:"name",className:"text-gray-700 font-medium",children:"Full Name *"}),n.jsx(Ie,{id:"name",name:"name",type:"text",value:e.name,onChange:h,className:"h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"Enter your full name",required:!0})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Ne,{htmlFor:"email",className:"text-gray-700 font-medium",children:"Email Address *"}),n.jsx(Ie,{id:"email",name:"email",type:"email",value:e.email,onChange:h,className:"h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"Enter your email address",required:!0})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Ne,{htmlFor:"phone",className:"text-gray-700 font-medium",children:"Phone Number"}),n.jsx(Ie,{id:"phone",name:"phone",type:"tel",value:e.phone,onChange:h,className:"h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"Enter your phone number"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Ne,{htmlFor:"inquiry_type",className:"text-gray-700 font-medium",children:"Type of Inquiry"}),n.jsxs(sr,{value:e.inquiry_type,onValueChange:g=>t(y=>({...y,inquiry_type:g})),children:[n.jsx(zn,{className:"h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",children:n.jsx(ir,{placeholder:"Select inquiry type"})}),n.jsxs($n,{children:[n.jsx(at,{value:"consultation",children:"Free Consultation"}),n.jsx(at,{value:"services",children:"Tax Services"}),n.jsx(at,{value:"directory",children:"Business Directory"}),n.jsx(at,{value:"general",children:"General Question"})]})]})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Ne,{htmlFor:"message",className:"text-gray-700 font-medium",children:"Message *"}),n.jsx(It,{id:"message",name:"message",value:e.message,onChange:h,className:"border-gray-200 focus:border-[var(--brand-light-blue)] min-h-[120px]",placeholder:"Tell us about your tax needs or ask any questions you have...",required:!0})]}),n.jsx("div",{className:"bg-gray-50 rounded-lg p-6",children:n.jsx("p",{className:"text-sm text-gray-700",children:"By submitting this form, you agree to be contacted by AMC Tax Services regarding your inquiry. We respect your privacy and will never share your information with third parties."})}),n.jsx(oe,{type:"submit",disabled:r,className:"w-full brand-gradient text-white py-4 text-lg font-semibold rounded-lg hover:opacity-90 transition-opacity disabled:opacity-50",children:r?n.jsxs("div",{className:"flex items-center justify-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2"}),"Sending Message..."]}):n.jsxs("div",{className:"flex items-center justify-center",children:[n.jsx(Yb,{className:"w-5 h-5 mr-2"}),"Send Message"]})})]})]})]})})]}),n.jsx("div",{className:"mt-20",children:n.jsxs(ke,{className:"border-0 shadow-xl overflow-hidden",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900 text-center",children:"Visit Our Office"})}),n.jsx(Re,{className:"p-0",children:n.jsx("div",{className:"aspect-[16/9] bg-gray-200",children:n.jsx("iframe",{src:"https://maps.google.com/maps?q=2635%20Cunningham%20Ave.%20Suite%20%2323%2C%20San%20Jose%2C%20CA%2095148&t=&z=15&ie=UTF8&iwloc=&output=embed",className:"w-full h-full",style:{border:0},allowFullScreen:"",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"AMC Tax Services Location"})})})]})})]})})]})}const z2=typeof window>"u",s8=z2?{localStorage:new Map}:window,yl=s8.localStorage,i8=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Fo=(e,{defaultValue:t=void 0,removeFromUrl:r=!1}={})=>
496{if(z2)return t;const i=`base44_${i8(e)}`,a=new URLSearchParams(window.location.search),l=a.get(e);if(r){a.delete(e);const u=`${window.location.pathname}${a.toString()?`?${a.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,u)}if(l)return yl.setItem(i,l),l;if(t)return yl.setItem(i,t),t;const d=yl.getItem(i);return d||null},o8=()=>(Fo("clear_access_token")==="true"&&(yl.removeItem("base44_access_token"),yl.removeItem("token")),{appId:Fo("app_id",{defaultValue:"6894fed1c3072e9c04a69dda"}),token:Fo("access_token",{removeFromUrl:!0}),fromUrl:Fo("from_url",{defaultValue:window.location.href}),functionsVersion:Fo("functions_version",{defaultValue:"prod"}),appBaseUrl:Fo("app_base_url",{defaultValue:void 0})}),pl={...o8()},{appId:a8,token:l8,functionsVersion:c8,appBaseUrl:d8}=pl,Fe=Bm({appId:a8,token:l8,functionsVersion:c8,serverUrl:"",requiresAuth:!1,appBaseUrl:d8}),u8=["Restaurant","Digital Marketing","Landscaping","Automotive","Real Estate","Fitness & Health","Professional Services","Retail","Construction","Healthcare","Education","Other"];function f8(){const[e,t]=p.useState([]),[r,i]=p.useState(!0),[a,l]=p.useState(null),[d,u]=p.useState(!1),[h,m]=p.useState(!1),[g,y]=p.useState(null),[w,C]=p.useState(!1),[k,N]=p.useState({type:"",text:""}),[j,b]=p.useState(null),[S,E]=p.useState(null),[R,O]=p.useState({business_name:"",description:"",contact_phone:"",contact_email:"",website_url:"",category:"",logo_url:"",thumbnail_url:"",business_hours:"",location:"",covered_areas:""});p.useEffect(()=>{$()},[]);const $=async()=>{i(!0);try{const L=await Fe.auth.me();l(L),await V(L)}catch(L){console.warn("Failed to load user or user not authenticated:",L),Fe.auth.redirectToLogin(window.location.href)}finally{u(!0),i(!1)}},V=async L=>{try{if(L&&L.email){const W=await tt.BusinessListing.filter({created_by:L.email},"-created_date");t(W)}else t([])}catch(W){console.error("Error loading listings:",W),t([]),N({type:"error",text:"Failed to load your business listings."})}},M=L=>{const{name:W,value:te}=L.target;O(le=>({...le,[W]:te}))},ne=()=>{O({business_name:"",description:"",contact_phone:"",contact_email:"",website_url:"",category:"",logo_url:"",thumbnail_url:"",business_hours:"",location:"",covered_areas:""}),y(null),b(null),E(null),m(!1)},Q=L=>{y(L),O({business_name:L.business_name,description:L.description,contact_phone:L.contact_phone||"",contact_email:L.contact_email||"",website_url:L.website_url||"",category:L.category||"",logo_url:L.logo_url||"",thumbnail_url:L.thumbnail_url||"",business_hours:L.business_hours||"",location:L.location||"",covered_areas:L.covered_areas||""}),b(null),E(null),m(!0)},ie=async L=>{if(L.preventDefault(),!R.business_name||!R.description){N({type:"error",text:"Please fill in all required fields."});return}if(!a||!a.email){N({type:"error",text:"You must be logged in to manage listings."});return}C(!0),N({type:"",text:""});try{let W={...R};if(j){const{file_url:te}=await Fe.integrations.Core.UploadFile({file:j});W.logo_url=te}if(S){const{file_url:te}=await Fe.integrations.Core.UploadFile({file:S});W.thumbnail_url=te}W.created_by=a.email,g?(await tt.BusinessListing.update(g.id,{...W,is_approved:!1}),N({type:"success",text:"Listing updated successfully! It will be reviewed before being published."})):(await tt.BusinessListing.create({...W,is_approved:!1}),N({type:"success",text:"Listing submitted successfully! We'll review it and publish it soon."})),ne(),await V(a)}catch(W){N({type:"error",text:"There was an error saving your listing. Please try again."}),console.error("Error saving listing:",W)}finally{C(!1)}},ee=async L=>{if(!a||!a.email){N({type:"error",text:"You must be logged in to delete listings."});return}if(window.confirm("Are you sure you want to delete this listing? This action cannot be undone."))try{await tt.BusinessListing.delete(L),N({type:"success",text:"Listing deleted successfully."}),await V(a)}catch(W){N({type:"error",text:"Error deleting listing. Please try again."}),console.error("Error deleting listing:",W)}},Z=L=>L.is_approved?n.jsxs(Ot,{className:"bg-green-100 text-green-800 border-green-200",children:[n.jsx(Ht,{className:"w-3 h-3 mr-1"}),"Published"]}):n.jsxs(Ot,{className:"bg-yellow-100 text-yellow-800 border-yellow-200",children:[n.jsx(Zt,{className:"w-3 h-3 mr-1"}),"Under Review"]});return!d||r?n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-20",children:n.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"animate-pulse space-y-8",children:[n.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/3"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-2/3"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(3)].map((L,W)=>n.jsx("div",{className:"h-64 bg-gray-200 rounded-lg"},W))})]})})}):a?n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-20",children:n.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-12",children:[n.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-black mb-6",children:"Business Listings Dashboard"}),n.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Manage your business listings in the AMC Tax Services directory. Add new listings or update existing ones."})]}),e.length===0&&!r&&n.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6 mb-8",children:n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center flex-shrink-0",children:n.jsx(bt,{className:"w-6 h-6 text-blue-600"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold text-blue-900 mb-2",children:"Welcome to Your Business Dashboard!"}),n.jsx("p",{className:"text-blue-800 leading-relaxed",children:"You can now manage your business listings, track their approval status, and add multiple businesses. Get started by adding your first business to the AMC Tax Services directory."})]})]})}),k.text&&n.jsx("div",{className:"mb-8",children:n.jsxs(Zr,{className:k.type==="error"?"border-red-200 bg-red-50":"border-green-200 bg-green-50",children:[k.type==="error"?n.jsx(sn,{className:"h-4 w-4 text-red-600"}):n.jsx(Ht,{className:"h-4 w-4 text-green-600"}),n.jsx(es,{className:k.type==="error"?"text-red-800":"text-green-800",children:k.text})]})}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-12",children:[n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsxs(Re,{className:"p-6 text-center",children:[n.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] rounded-lg flex items-center justify-center mx-auto mb-4",children:n.jsx(bt,{className:"w-6 h-6 text-white"})}),n.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:e.length}),n.jsx("p",{className:"text-gray-600",children:"Total Listings"})]})}),n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsxs(Re,{className:"p-6 text-center",children:[n.jsx("div",{className:"w-12 h-12 bg-green-500 rounded-lg flex items-center justify-center mx-auto mb-4",children:n.jsx(Ht,{className:"w-6 h-6 text-white"})}),n.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:e.filter(L=>L.is_approved).length}),n.jsx("p",{className:"text-gray-600",children:"Published"})]})}),n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsxs(Re,{className:"p-6 text-center",children:[n.jsx("div",{className:"w-12 h-12 bg-yellow-500 rounded-lg flex items-center justify-center mx-auto mb-4",children:n.jsx(Zt,{className:"w-6 h-6 text-white"})}),n.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:e.filter(L=>!L.is_approved).length}),n.jsx("p",{className:"text-gray-600",children:"Under Review"})]})})]}),(a==null?void 0:a.role)==="admin"&&n.jsx("div",{className:"flex justify-end mb-4",children:n.jsx(We,{to:"/admindashboard",children:n.jsxs(oe,{variant:"outline",className:"border-[#0f2d54] text-[#0f2d54] hover:bg-[#0f2d54] hover:text-white gap-2",children:[n.jsx(N5,{
496className:"w-4 h-4"}),"Admin Dashboard"]})})}),n.jsx("div",{className:"flex justify-center mb-12",children:n.jsxs(oe,{onClick:()=>{g&&ne(),m(!0)},className:"brand-gradient text-white px-8 py-3 rounded-lg font-semibold hover:opacity-90 transition-opacity",children:[n.jsx(Nr,{className:"w-5 h-5 mr-2"}),"Add New Business Listing"]})}),n.jsxs("div",{className:"space-y-8",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Your Listings"})}),e.length>0?n.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:e.map(L=>n.jsxs(ke,{className:"border-0 shadow-lg hover:shadow-xl transition-shadow duration-300 overflow-hidden",children:[L.thumbnail_url&&n.jsx("div",{className:"aspect-[16/10] w-full overflow-hidden rounded-t-lg",children:n.jsx("img",{src:L.thumbnail_url,alt:`${L.business_name} thumbnail`,className:"w-full h-full object-cover"})}),n.jsx(qe,{className:"pb-4",children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex-1 flex items-center gap-4",children:[L.logo_url?n.jsx("img",{src:L.logo_url,alt:`${L.business_name} logo`,className:"w-14 h-14 rounded-lg object-contain bg-white p-1"}):n.jsx("div",{className:"w-14 h-14 bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] rounded-lg flex items-center justify-center flex-shrink-0",children:n.jsx(bt,{className:"w-7 h-7 text-white"})}),n.jsxs("div",{children:[n.jsx(Ke,{className:"text-xl font-bold text-gray-900 mb-2",children:L.business_name}),Z(L)]})]}),n.jsxs("div",{className:"flex space-x-2 ml-4",children:[L.website_url&&n.jsx("a",{href:L.website_url,target:"_blank",rel:"noopener noreferrer",className:"p-2 text-gray-400 hover:text-[var(--brand-light-blue)] transition-colors",children:n.jsx(Wi,{className:"w-4 h-4"})}),n.jsx(oe,{variant:"ghost",size:"icon",onClick:()=>Q(L),children:n.jsx(k5,{className:"w-4 h-4"})}),n.jsx(oe,{variant:"ghost",size:"icon",onClick:()=>ee(L.id),className:"text-red-500 hover:text-red-700",children:n.jsx(Bs,{className:"w-4 h-4"})})]})]})}),n.jsxs(Re,{className:"pt-0",children:[n.jsx("p",{className:"text-gray-600 mb-4 leading-relaxed",children:L.description}),L.category&&n.jsx("div",{className:"inline-block bg-blue-50 text-[var(--brand-navy)] px-3 py-1 rounded-full text-sm font-medium mb-4",children:L.category}),n.jsxs("div",{className:"space-y-2",children:[L.contact_phone&&n.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[n.jsx(Vt,{className:"w-4 h-4 mr-2 text-[var(--brand-light-blue)]"}),L.contact_phone]}),L.contact_email&&n.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[n.jsx(Bn,{className:"w-4 h-4 mr-2 text-[var(--brand-light-blue)]"}),L.contact_email]}),L.location&&n.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[n.jsx(ni,{className:"w-4 h-4 mr-2 text-[var(--brand-light-blue)]"}),L.location]}),L.covered_areas&&n.jsxs("div",{className:"flex items-start text-sm text-gray-600",children:[n.jsx(bt,{className:"w-4 h-4 mr-2 text-[var(--brand-light-blue)] mt-0.5"}),L.covered_areas]}),L.business_hours&&n.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[n.jsx(Zt,{className:"w-4 h-4 mr-2 text-[var(--brand-light-blue)]"}),L.business_hours]}),L.website_url&&n.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[n.jsx(Vb,{className:"w-4 h-4 mr-2 text-[var(--brand-light-blue)]"}),n.jsx("a",{href:L.website_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-[var(--brand-navy)] transition-colors",children:L.website_url.replace(/^https?:\/\//,"")})]})]}),n.jsxs("div",{className:"mt-4 pt-4 border-t text-xs text-gray-500",children:["Created on ",new Date(L.created_date).toLocaleDateString()]})]})]},L.id))}):n.jsxs("div",{className:"text-center py-16",children:[n.jsx(bt,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"No Listings Yet"}),n.jsx("p",{className:"text-gray-600 mb-8",children:"Create your first business listing to get started."}),n.jsxs(oe,{onClick:()=>m(!0),className:"brand-gradient text-white px-6 py-2 rounded-lg font-semibold",children:[n.jsx(Nr,{className:"w-5 h-5 mr-2"}),"Add Your First Listing"]})]})]}),n.jsx(Zs,{open:h,onOpenChange:m,children:n.jsxs(Vr,{className:"sm:max-w-2xl max-h-[90vh] overflow-y-auto",children:[n.jsx(qr,{children:n.jsx(Kr,{className:"text-2xl font-bold text-gray-900",children:g?"Edit Business Listing":"Add New Business Listing"})}),n.jsxs("form",{onSubmit:ie,className:"space-y-6 mt-6",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"business_name",className:"text-gray-700 font-medium",children:"Business N
496ame *"}),n.jsx(Ie,{id:"business_name",name:"business_name",value:R.business_name,onChange:M,className:"mt-1 h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"Enter business name",required:!0})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"description",className:"text-gray-700 font-medium",children:"Description *"}),n.jsx(It,{id:"description",name:"description",value:R.description,onChange:M,className:"mt-1 min-h-[100px] border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"Brief description of your business and services",required:!0})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"contact_phone",className:"text-gray-700 font-medium",children:"Phone Number"}),n.jsx(Ie,{id:"contact_phone",name:"contact_phone",type:"tel",value:R.contact_phone,onChange:M,className:"mt-1 h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"(555) 123-4567"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"contact_email",className:"text-gray-700 font-medium",children:"Email Address"}),n.jsx(Ie,{id:"contact_email",name:"contact_email",type:"email",value:R.contact_email,onChange:M,className:"mt-1 h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"[email protected]"})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"website_url",className:"text-gray-700 font-medium",children:"Website URL"}),n.jsx(Ie,{id:"website_url",name:"website_url",type:"url",value:R.website_url,onChange:M,className:"mt-1 h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"https://www.yourbusiness.com"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"category",className:"text-gray-700 font-medium",children:"Category"}),n.jsxs(sr,{value:R.category,onValueChange:L=>O(W=>({...W,category:L})),children:[n.jsx(zn,{className:"mt-1 h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",children:n.jsx(ir,{placeholder:"Select category"})}),n.jsx($n,{children:u8.map(L=>n.jsx(at,{value:L,children:L},L))})]})]})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"location",className:"text-gray-700 font-medium",children:"Business Location"}),n.jsx(Ie,{id:"location",name:"location",value:R.location,onChange:M,className:"mt-1 h-12 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"123 Main St, San Jose, CA 95120"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"covered_areas",className:"text-gray-700 font-medium",children:"Service Areas"}),n.jsx(It,{id:"covered_areas",name:"covered_areas",value:R.covered_areas,onChange:M,className:"mt-1 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"San Jose, Santa Clara, Campbell, Los Gatos, and surrounding areas"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"logo_upload",className:"text-gray-700 font-medium",children:"Business Logo"}),g&&R.logo_url&&!j&&n.jsx("img",{src:R.logo_url,alt:"Current logo",className:"w-20 h-20 rounded-md object-cover my-2"}),n.jsx(Ie,{id:"logo_upload",name:"logo_upload",type:"file",accept:"image/*",onChange:L=>b(L.target.files[0]),className:"mt-1 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-[var(--brand-navy)] hover:file:bg-blue-100"}),j&&n.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["New: ",j.name]})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"thumbnail_upload",className:"text-gray-700 font-medium",children:"Image Thumbnail"}),g&&R.thumbnail_url&&!S&&n.jsx("img",{src:R.thumbnail_url,alt:"Current thumbnail",className:"w-20 h-20 rounded-md object-cover my-2"}),n.jsx(Ie,{id:"thumbnail_upload",name:"thumbnail_upload",type:"file",accept:"image/*",onChange:L=>E(L.target.files[0]),className:"mt-1 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-[var(--brand-navy)] hover:file:bg-blue-100"}),S&&n.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["New: ",S.name]})]})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"business_hours",className:"text-gray-700 font-medium",children:"Business Hours"}),n.jsx(It,{id:"business_hours",name:"business_hours",value:R.business_hours,onChange:M,className:"mt-1 border-gray-200 focus:border-[var(--brand-light-blue)]",placeholder:"e.g., Mon-Fri: 9am - 5pm"})]}),n.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx(sn,{className:"w-5 h-5 text-blue-600 mt-0.5 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-medium text-blue-900 mb-1",children:"Review Process"}),n.jsx("p",{className:"text-sm text-blue-800",children:"Your listing will be reviewed by our team before being published. This typically takes 1-2 business days."}),n.jsx("p",{className:"text-sm text-blue-800 mt-2",children:"All listings submitted from this dashboard are tied to your account for easy management."})]})]})}),n.jsxs("div",{className:"flex justify-end gap-4 pt-4",children:[n.jsx(oe,{type:"button",variant:"outline",onClick:ne,disabled:w,children:"Cancel"}),n.jsx(oe,{type:"submit",disabled:w,className:"brand-gradient text-white",children:w?n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white mr-2"}),g?"Updating...":"Submitting..."]}):n.jsx(n.Fragment,{children:g?"Update Listing":"Submit Listing"})})]})]})]})})]})}):n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-20",children:n.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsx(ke,{className:"border-0 shadow-xl",children:n.jsxs(Re,{className:"p-12 text-center",children:[n.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:n.jsx(qd,{className:"w-10 h-10 text-blue-600"})}),n.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Login Required"}),n.jsx("p",{className:"text-gray-600 mb-8 leading-relaxed",children:"Please log in to access your business dashboard and manage your listings."}),n.jsxs(oe,{onClick:()=>Fe.auth.redirectToLogin(window.location.href),className:"brand-gradient text-white px-8 py-3 rounded-lg font-semibold",children:[n.jsx(qd,{className:"w-5 h-5 mr-2"}),"Log In"]})]})})})})}function h8(){const[e,t]=p.useState([]),[r,i]=p.useState(""),[a,l]=p.useState(!1),[d,u]=p.useState(""),[h,m]=p.useState(!1),[g,y]=p.useState({name:"",email:"",ph
496one:""}),[w,C]=p.useState(!1),[k,N]=p.useState(!1),[j,b]=p.useState(""),S=p.useRef(null),R=new URLSearchParams(window.location.search).get("embed")==="true";p.useEffect(()=>{u(`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`),t([{id:1,type:"bot",content:"Hi there! 👋 I'm Sarah, your AI tax consultant from AMC Tax Services. I'm here to help you understand your tax situation and see how we can assist you. What brings you here today?",timestamp:new Date}])},[]),p.useEffect(()=>{var Z;const ee=(Z=S.current)==null?void 0:Z.parentElement;if(ee){const{scrollTop:L,scrollHeight:W,clientHeight:te}=ee;(W-L-te<100||e.length===1)&&O()}},[e]);const O=()=>{var ee;(ee=S.current)==null||ee.scrollIntoView({behavior:"smooth",block:"end"})},$=async()=>{if(!r.trim()||a)return;const ee={id:e.length+1,type:"user",content:r.trim(),timestamp:new Date},Z=[...e,ee];t(Z),i(""),l(!0);try{if(await V(Z)&&!g.name){C(!0);const le={id:Z.length+1,type:"bot",content:"It sounds like you have some specific tax needs! To provide you with the most accurate guidance and connect you with our tax professionals, could you please share your contact information? This way, one of our certified tax experts can follow up with personalized advice.",timestamp:new Date};t([...Z,le]),l(!1);return}const W=await M(Z),te={id:Z.length+1,type:"bot",content:W,timestamp:new Date};t([...Z,te]),Z.length>8&&g.name&&setTimeout(()=>{Q([...Z,te])},2e3)}catch(L){console.error("Error generating response:",L);const W={id:Z.length+1,type:"bot",content:"I apologize, but I'm having trouble connecting right now. Please call us directly at (408) 258-2200, and one of our tax professionals will be happy to help you immediately!",timestamp:new Date};t([...Z,W])}finally{l(!1)}},V=async ee=>{if(ee.length<4)return!1;const Z=ee.map(L=>`${L.type}: ${L.content}`).join(`
497`);try{return(await Js.InvokeLLM({prompt:`Analyze this tax consultation conversation and determine if the user has expressed specific tax needs or interest in services that warrant collecting their contact information for follow-up.
498
499Conversation:
500${Z}
501
502Return "true" if:
503- User mentions specific tax issues, deadlines, or complex situations
504- User asks about specific services or pricing
505- User shows clear interest in working with the tax service
506- Conversation has progressed beyond general questions
507
508Return "false" if:
509- User is just asking very basic general questions
510- Conversation just started
511- User hasn't expressed specific needs yet
512
513Response should be just "true" or "false".`,response_json_schema:{type:"object",properties:{should_collect:{type:"boolean"}}}})).should_collect}catch{return ee.length>6}},M=async ee=>{const L=`You are Sarah, a friendly and knowledgeable AI tax consultant for AMC Tax Services. You're having a live chat consultation with a potential client.
514
515Your role:
516- Be warm, professional, and helpful
517- Ask probing questions to understand their tax situation
518- Provide general tax guidance while emphasizing the value of professional help
519- Naturally guide the conversation toward how AMC Tax Services can help
520- Keep responses conversational and not too long (2-3 sentences max)
521- Show expertise while being approachable
522
523AMC Tax Services offers:
524- Individual tax returns (1040)
525- Business tax services (S-Corp, LLC, Corporation)
526- Tax planning and strategy
527- IRS representation and audit support
528- Bookkeeping and payroll
529- Quarterly estimated taxes
530- Back taxes and IRS negotiations
531- New business formation
532- Retirement planning
533
534Current conversation:
535${ee.map(W=>`${W.type}: ${W.content}`).join(`
536`)}
537
538Respond as Sarah with a helpful, conversational message that:
5391. Addresses their question or concern
5402. Asks a relevant follow-up question to learn more
5413. Subtly reinforces AMC's expertise when appropriate
5424. Keeps the conversation flowing naturally`;try{return await Js.InvokeLLM({prompt:L})}catch{return"I want to make sure I give you the best guidance possible. Could you tell me a bit more about your specific tax situation? Are you dealing with personal taxes, business taxes, or perhaps both?"}},ne=async ee=>{if(ee.preventDefault(),!g.name||!g.email)return;C(!1),m(!0);const Z={id:e.length+1,type:"bot",content:`Thank you, ${g.name}! Now I can provide more personalized guidance. Let's continue our conversation about your tax needs.`,timestamp:new Date};t(L=>[...L,Z])},Q=async ee=>{try{const Z=ee.map(te=>`${te.type}: ${te.content}`).join(`
543`),L=await Js.InvokeLLM({prompt:`Analyze this tax consultation conversation and create a comprehensive lead summary for the sales team.
544
545Conversation:
546${Z}
547
548Create a detailed summary including:
5491. Client's main tax concerns/needs
5502. Services they're most interested in
5513. Urgency level and any deadlines mentioned
5524. Specific questions or issues raised
5535. Lead quality score (1-10) based on engagement and needs
5546. Recommended next steps
555
556Format as a professional lead summary for the tax team.`,response_json_schema:{type:"object",properties:{main_concerns:{type:"string"},services_interested:{type:"string"},urgency_level:{type:"string"},lead_score:{type:"number"},next_steps:{type:"string"},summary:{type:"string"}}}});await tt.ConsultationChat.create({session_id:d,client_name:g.name,client_email:g.email,client_phone:g.phone||"",chat_messages:JSON.stringify(ee),lead_summary:L.summary,tax_situation:L.main_concerns,services_interested:L.services_interested,consultation_status:"completed",priority_score:L.lead_score}),b(L.summary),N(!0);const W={id:ee.length+1,type:"bot",content:`${g.name}, it's been great talking with you! Based on our conversation, I can see exactly how our team can help you. One of our certified tax professionals will reach out to you within 24 hours to schedule a detailed consultation. In the meantime, feel free to call us at (408) 258-2200 if you have any urgent questions!`,timestamp:new Date};t([...ee,W])}catch(Z){console.error("Error completing consultation:",Z)}},ie=ee=>{ee.key==="Enter"&&!ee.shiftKey&&(ee.preventDefault(),$())};return k&&!w?n.jsx("div",{className:`min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 ${R?"py-8":"py-20"}`,children:n.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsx(ke,{className:"border-0 shadow-xl",children:n.jsxs(Re,{className:`${R?"p-8":"p-12"} text-center`,children:[n.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:n.jsx(Ht,{className:"w-10 h-10 text-green-600"})}),n.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Thank You for Your Consultation!"}),n.jsxs("p",{className:"text-gray-600 mb-8 leading-relaxed",children:["Great talking with you, ",g.name,"! Our team now has a clear understanding of your tax needs and will reach out within 24 hours with personalized recommendations."]}),n.jsxs("div",{className:"bg-blue-50 rounded-lg p-6 mb-8",children:[n.jsx("h3",{className:"font-semibold text-[var(--brand-navy)] mb-4",children:"What Happens Next?"}),n.jsxs("div",{className:"space-y-3 text-left",children:[n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx("div",{className:"w-6 h-6 bg-[var(--brand-light-blue)] rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:n.jsx("span",{className:"text-white text-xs font-bold",children:"1"})}),n.jsx("p",{className:"text-gray-700",children:"A certified tax professional will review your consultation"})]}),n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx("div",{className:"w-6 h-6 bg-[var(--brand-light-blue)] rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:n.jsx("span",{className:"text-white text-xs font-bold",children:"2"})}),n.jsx("p",{className:"text-gray-700",children:"We'll call you within 24 hours to discu
556ss your specific needs"})]}),n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx("div",{className:"w-6 h-6 bg-[var(--brand-light-blue)] rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:n.jsx("span",{className:"text-white text-xs font-bold",children:"3"})}),n.jsx("p",{className:"text-gray-700",children:"We'll provide a customized plan to optimize your tax situation"})]})]})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[n.jsx("a",{href:"tel:4082582200",children:n.jsxs(oe,{className:"brand-gradient text-white px-6 py-3 rounded-lg font-semibold",children:[n.jsx(Vt,{className:"w-5 h-5 mr-2"}),"Call Us Now: (408) 258-2200"]})}),n.jsx("a",{href:`mailto:[email protected]?subject=Consultation Follow-up - ${g.name}`,children:n.jsxs(oe,{variant:"outline",className:"border-[var(--brand-navy)] text-[var(--brand-navy)] px-6 py-3 rounded-lg font-semibold",children:[n.jsx(Bn,{className:"w-5 h-5 mr-2"}),"Email Us"]})})]})]})})})}):n.jsx("div",{className:`min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 ${R?"py-4":"py-8"}`,children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[!R&&n.jsxs("div",{className:"text-center mb-8",children:[n.jsxs("div",{className:"inline-flex items-center bg-white rounded-full px-4 py-2 mb-4 shadow-sm",children:[n.jsx(zo,{className:"w-4 h-4 text-[var(--brand-light-blue)] mr-2"}),n.jsx("span",{className:"text-sm font-medium text-gray-700",children:"AI-Powered Tax Consultation"})]}),n.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-black mb-4",children:"Free Tax Consultation Chat"}),n.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"Get instant answers to your tax questions from our AI consultant Sarah, powered by AMC Tax Services' expertise."})]}),R&&n.jsxs("div",{className:"text-center mb-6",children:[n.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-black mb-2",children:"Free Tax Consultation"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Chat with our AI tax consultant"})]}),w&&n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:n.jsxs(ke,{className:"w-full max-w-md",children:[n.jsxs(qe,{children:[n.jsx(Ke,{className:"text-xl font-bold text-gray-900 text-center",children:"Let's Connect!"}),n.jsx("p",{className:"text-gray-600 text-center",children:"To provide personalized tax guidance, please share your contact information."})]}),n.jsx(Re,{children:n.jsxs("form",{onSubmit:ne,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"name",children:"Full Name *"}),n.jsx(Ie,{id:"name",type:"text",value:g.name,onChange:ee=>y(Z=>({...Z,name:ee.target.value})),className:"mt-1",required:!0})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"email",children:"Email Address *"}),n.jsx(Ie,{id:"email",type:"email",value:g.email,onChange:ee=>y(Z=>({...Z,email:ee.target.value})),className:"mt-1",required:!0})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"phone",children:"Phone Number (Optional)"}),n.jsx(Ie,{id:"phone",type:"tel",value:g.phone,onChange:ee=>y(Z=>({...Z,phone:ee.target.value})),className:"mt-1"})]}),n.jsx(oe,{type:"submit",className:"w-full brand-gradient text-white",children:"Continue Consultation"})]})})]})}),n.jsxs(ke,{className:"border-0 shadow-xl bg-white",children:[n.jsx(qe,{className:"border-b bg-gradient-to-r from-[var(--brand-light-blue)] to-[var(--brand-navy)] text-white",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-10 h-10 bg-white bg-opacity-20 rounded-full flex items-center justify-center",children:n.jsx(c5,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx(Ke,{className:"text-lg",children:"Sarah - AI Tax Consultant"}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full animate-pulse"}),n.jsx("span",{className:"text-sm opacity-90",children:"Online now"})]})]})]})}),n.jsxs(Re,{className:"p-0",children:[n.jsxs("div",{className:"h-96 overflow-y-auto p-6 space-y-4",style:{scrollBehavior:"smooth"},children:[e.map(ee=>n.jsxs("div",{className:`flex items-start space-x-3 ${ee.type==="user"?"flex-row-reverse space-x-reverse":""}`,children:[n.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 ${ee.type==="user"?"bg-[var(--brand-navy)]":"bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)]"}`,children:ee.type==="user"?n.jsx($o,{className:"w-4 h-4 text-white"}):n.jsx(Cv,{className:"w-4 h-4 text-white"})}),n.jsxs("div",{className:`max-w-xs lg:max-w-md px-4 py-3 rounded-lg ${ee.type==="user"?"bg-[var(--brand-navy)] text-white":"bg-gray-100 text-gray-900"}`,children:[n.jsx("p",{className:"text-sm leading-relaxed",children:ee.content}),n.jsx("p",{className:"text-xs mt-2 opacity-70",children:ee.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})]},ee.id)),a&&n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] flex items-center justify-center",children:n.jsx(Cv,{className:"w-4 h-4 text-white"})}),n.jsx("div",{className:"bg-gray-100 px-4 py-3 rounded-lg",children:n.jsxs("div",{className:"flex space-x-1",children:[n.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce"}),n.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),n.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]}),n.jsx("div",{ref:S})]}),n.jsxs("div",{className:"border-t p-4 bg-white sticky bottom-0",children:[n.jsxs("div",{className:"flex space-x-3",children:[n.jsx(Ie,{value:r,onChange:ee=>i(ee.target.value),onKeyPress:ie,placeholder:"Type your tax question here...",className:"flex-1",disabled:a,autoComplete:"off",autoFocus:!1}),n.jsx(oe,{onClick:$,disabled:a||!r.trim(),className:"brand-gradient text-white px-6",children:n.jsx(Yb,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"flex items-center justify-between mt-3 text-xs text-gray-500",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full"}),n.jsx("span",{children:"Secure & Confidential"})]}),g.name&&n.jsxs(Ot,{variant:"outline",className:"text-xs",children:["Signed in as ",g.name]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Zt,{className:"w-3 h-3"}),n.jsx("span",{children:"Usually responds in seconds"})]})]})]})]})]}),!R&&n.jsxs("div",{className:"mt-8 text-center",children:[n.jsxs("p",{className:"text-gray-600 mb-4",children:["Need immediate assistance? Call us directly at"," ",n.jsx("a",{href:"tel:4082582200",className:"text-[var(--brand-navy)] font-semibold hover:underline",children:"(408) 258-2200"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 max-w-2xl mx-auto",children:[n.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm",children:[n.jsx(Zt,{className:"w-6 h-6 text-[var(--brand-light-blue)] mx-auto mb-2"}),n.jsx("p",{className:"text-sm font-medium text-gray-900",children:"Instant Responses"}),n.jsx("p",{className:"text-xs text-gray-600",children:"Get answers in real-time"})]}),n.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm",children:[n.jsx(zo,{className:"w-6 h-6 text-[var(--brand-light-blue)] mx-auto mb-2"}),n.jsx("p",{className:"text-sm font-medium text-gray-900",children:"AI-Powered"}),n.jsx("p",{className:"text-xs text-gray-600",children:"Expert knowledge at your fingertips"})]}),n.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm",children:[n.jsx(Ht,{className:"w-6 h-6 text-[var(--brand-light-blue)] mx-auto mb-2"}),n.jsx("p",{className:"text-sm font-medium text-gray-900",children:"Free Consultation"}),n.jsx("p",{className:"text-xs text-gray-600",children:"No cost, no commitment"})]})]})]})]})})}var xp="rovingFocusGroup.onEntryFocus",p8={bubbles:!1,cancelable:!0},Zl="RovingFocusGroup",[im,$2,m8]=vu(Zl),[x8,Du]=_n(Zl,[m8]),[g8,y8]=x8(Zl),U2=p.forwardRef((e,t)=>
vendor: 4,685 bytes, line 556
556n.jsx(im.Provider,{scope:e.__scopeRovingFocusGroup,children:n.jsx(im.Slot,{scope:e.__scopeRovingFocusGroup,children:n.jsx(v8,{...e,ref:t})})}));U2.displayName=Zl;var v8=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:l,currentTabStopId:d,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:g=!1,...y}=e,w=p.useRef(null),C=Xe(t,w),k=Hl(l),[N,j]=rr({prop:d,defaultProp:u??null,onChange:h,caller:Zl}),[b,S]=p.useState(!1),E=kr(m),R=$2(r),O=p.useRef(!1),[$,V]=p.useState(0);return p.useEffect(()=>{const M=w.current;if(M)return M.addEventListener(xp,E),()=>M.removeEventListener(xp,E)},[E]),n.jsx(g8,{scope:r,orientation:i,dir:k,loop:a,currentTabStopId:N,onItemFocus:p.useCallback(M=>j(M),[j]),onItemShiftTab:p.useCallback(()=>S(!0),[]),onFocusableItemAdd:p.useCallback(()=>V(M=>M+1),[]),onFocusableItemRemove:p.useCallback(()=>V(M=>M-1),[]),children:n.jsx($e.div,{tabIndex:b||$===0?-1:0,"data-orientation":i,...y,ref:C,style:{outline:"none",...e.style},onMouseDown:ve(e.onMouseDown,()=>{O.current=!0}),onFocus:ve(e.onFocus,M=>{const ne=!O.current;if(M.target===M.currentTarget&&ne&&!b){const Q=new CustomEvent(xp,p8);if(M.currentTarget.dispatchEvent(Q),!Q.defaultPrevented){const ie=R().filter(te=>te.focusable),ee=ie.find(te=>te.active),Z=ie.find(te=>te.id===N),W=[ee,Z,...ie].filter(Boolean).map(te=>te.ref.current);V2(W,g)}}O.current=!1}),onBlur:ve(e.onBlur,()=>S(!1))})})}),W2="RovingFocusGroupItem",H2=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:l,children:d,...u}=e,h=Sn(),m=l||h,g=y8(W2,r),y=g.currentTabStopId===m,w=$2(r),{onFocusableItemAdd:C,onFocusableItemRemove:k,currentTabStopId:N}=g;return p.useEffect(()=>{if(i)return C(),()=>k()},[i,C,k]),n.jsx(im.ItemSlot,{scope:r,id:m,focusable:i,active:a,children:n.jsx($e.span,{tabIndex:y?0:-1,"data-orientation":g.orientation,...u,ref:t,onMouseDown:ve(e.onMouseDown,j=>{i?g.onItemFocus(m):j.preventDefault()}),onFocus:ve(e.onFocus,()=>g.onItemFocus(m)),onKeyDown:ve(e.onKeyDown,j=>{if(j.key==="Tab"&&j.shiftKey){g.onItemShiftTab();return}if(j.target!==j.currentTarget)return;const b=j8(j,g.orientation,g.dir);if(b!==void 0){if(j.metaKey||j.ctrlKey||j.altKey||j.shiftKey)return;j.preventDefault();let E=w().filter(R=>R.focusable).map(R=>R.ref.current);if(b==="last")E.reverse();else if(b==="prev"||b==="next"){b==="prev"&&E.reverse();const R=E.indexOf(j.currentTarget);E=g.loop?N8(E,R+1):E.slice(R+1)}setTimeout(()=>V2(E))}}),children:typeof d=="function"?d({isCurrentTabStop:y,hasTabStop:N!=null}):d})})});H2.displayName=W2;var b8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function w8(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function j8(e,t,r){const i=w8(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return b8[i]}function V2(e,t=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}function N8(e,t){return e.map((r,i)=>e[(t+i)%e.length])}var q2=U2,K2=H2,Lu="Tabs",[S8]=_n(Lu,[Du]),G2=Du(),[C8,hx]=S8(Lu),Y2=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:i,onValueChange:a,defaultValue:l,orientation:d="horizontal",dir:u,activationMode:h="automatic",...m}=e,g=Hl(u),[y,w]=rr({prop:i,onChange:a,defaultProp:l??"",caller:Lu});return n.jsx(C8,{scope:r,baseId:Sn(),value:y,onValueChange:w,orientation:d,dir:g,activationMode:h,children:n.jsx($e.div,{dir:g,"data-orientation":d,...m,ref:t})})});Y2.displayName=Lu;var Q2="TabsList",X2=p.forwardRef((e,t)=>{const{__scopeTabs:r,loop:i=!0,...a}=e,l=hx(Q2,r),d=G2(r);return n.jsx(q2,{asChild:!0,...d,orientation:l.orientation,dir:l.dir,loop:i,children:n.jsx($e.div,{role:"tablist","aria-orientation":l.orientation,...a,ref:t})})});X2.displayName=Q2;var J2="TabsTrigger",Z2=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:i,disabled:a=!1,...l}=e,d=hx(J2,r),u=G2(r),h=nN(d.baseId,i),m=rN(d.baseId,i),g=i===d.value;return n.jsx(K2,{asChild:!0,...u,focusable:!a,active:g,children:n.jsx($e.button,{type:"button",role:"tab","aria-selected":g,"aria-controls":m,"data-state":g?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:h,...l,ref:t,onMouseDown:ve(e.onMouseDown,y=>{!a&&y.button===0&&y.ctrlKey===!1?d.onValueChange(i):y.preventDefault()}),onKeyDown:ve(e.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&d.onValueChange(i)}),onFocus:ve(e.onFocus,()=>{const y=d.activationMode!=="manual";!g&&!a&&y&&d.onValueChange(i)})})})});Z2.displayName=J2;var eN="TabsContent",tN=p.forwardRef((e,t)=>
556{const{__scopeTabs:r,value:i,forceMount:a,children:l,...d}=e,u=hx(eN,r),h=nN(u.baseId,i),m=rN(u.baseId,i),g=i===u.value,y=p.useRef(g);return p.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),n.jsx(kn,{present:a||g,children:({present:w})=>n.jsx($e.div,{"data-state":g?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":h,hidden:!w,id:m,tabIndex:0,...d,ref:t,style:{...e.style,animationDuration:y.current?"0s":void 0},children:w&&l})})});tN.displayName=eN;function nN(e,t){return`${e}-trigger-${t}`}function rN(e,t){return`${e}-content-${t}`}var _8=Y2,sN=X2,iN=Z2,oN=tN;const k8=_8,aN=p.forwardRef(({className:e,...t},r)=>n.jsx(sN,{ref:r,className:Pe("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));aN.displayName=sN.displayName;const Rs=p.forwardRef(({className:e,...t},r)=>n.jsx(iN,{ref:r,className:Pe("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));Rs.displayName=iN.displayName;const Ts=p.forwardRef(({className:e,...t},r)=>n.jsx(oN,{ref:r,className:Pe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Ts.displayName=oN.displayName;const E8=["Restaurant","Digital Marketing","Landscaping","Automotive","Real Estate","Fitness & Health","Professional Services","Retail","Construction","Healthcare","Education","Other"],gp={business_name:"",description:"",contact_phone:"",contact_email:"",website_url:"",category:"",logo_url:"",thumbnail_url:"",business_hours:"",location:"",covered_areas:""};function R8({open:e,onOpenChange:t,onSuccess:r}){const[i,a]=p.useState({...gp}),[l,d]=p.useState(null),[u,h]=p.useState(null),[m,g]=p.useState(!1),[y,w]=p.useState(!1),[C,k]=p.useState(""),[N,j]=p.useState(null),[b,S]=p.useState(null),[E,R]=p.useState(!1),[O,$]=p.useState({type:"",text:""}),V=p.useRef(),M=Z=>{const{name:L,value:W}=Z.target;a(te=>({...te,[L]:W}))},ne=Z=>{const L=Z.target.files[0];L&&(j(L),S(URL.createObjectURL(L)))},Q=async()=>{if(!C&&!N){$({type:"error",text:"Please paste text or upload an image to scan."});return}w(!0),$({type:"",text:""});try{let Z=null;if(N){const{file_url:te}=await Fe.integrations.Core.UploadFile({file:N});Z=te}const L=`Extract business listing information from the following ${N?"image":"text"} and return it as structured JSON.
557${C?`Text content:
558${C}`:""}
559${Z?"An image has been attached.":""}
560
561Return ONLY a JSON object with these exact keys (use empty string "" for any missing fields):
562{
563  "business_name": "",
564  "description": "",
565  "contact_phone": "",
566  "contact_email": "",
567  "website_url": "",
568  "category": "one of: Restaurant, Digital Marketing, Landscaping, Automotive, Real Estate, Fitness & Health, Professional Services, Retail, Construction, Healthcare, Education, Other",
569  "location": "",
570  "covered_areas": "",
571  "business_hours": ""
572}`,W=await Fe.integrations.Core.InvokeLLM({prompt:L,file_urls:Z?[Z]:void 0,response_json_schema:{type:"object",properties:{business_name:{type:"string"},description:{type:"string"},contact_phone:{type:"string"},contact_email:{type:"string"},website_url:{type:"string"},category:{type:"string"},location:{type:"string"},covered_areas:{type:"string"},business_hours:{type:"string"}}}});a(te=>({...te,...Object.fromEntries(Object.entries(W).map(([le,G])=>[le,G||te[le]]))})),R(!1),$({type:"success",text:"AI successfully extracted business information! Please review and complete the form."})}catch{$({type:"error",text:"AI scan failed. Please fill the form manually."})}finally{w(!1)}},ie=async Z=>{if(Z.preventDefault(),!i.business_name||!i.description){$({type:"error",text:"Business name and description are required."});return}g(!0),$({type:"",text:""});try{let L={...i};if(l){const{file_url:W}=await Fe.integrations.Core.UploadFile({file:l});L.logo_url=W}if(u){const{file_url:W}=await Fe.integrations.Core.UploadFile({file:u});L.thumbnail_url=W}await tt.BusinessListing.create({...L,is_approved:!0}),a({...gp}),d(null),h(null),k(""),j(null),S(null),$({type:"",text:""}),r==null||r(),t(!1)}catch{$({type:"error",text:"Failed to save the listing. Please try again."})}finally{g(!1)}},ee=()=>{a({...gp}),d(null),h(null),k(""),j(null),S(null),R(!1),$({type:"",text:""}),t(!1)};return n.jsx(Zs,{open:e,onOpenChange:ee,children:n.jsxs(Vr,{className:"sm:max-w-2xl max-h-[90vh] overflow-y-auto",children:[n.jsx(qr,{children:n.jsx(Kr,{className:"text-2xl font-bold text-gray-900",children:"Add Business Listing"})}),n.jsx("div",{className:"flex justify-end",children:n.jsxs(oe,{type:"button",variant:"outline",onClick:()=>R(!E),className:"border-purple-300 text-purple-700 hover:bg-purple-50 gap-2",children:[n.jsx(zo,{className:"w-4 h-4"}),E?"Hide AI Scanner":"Use AI to Fill Form"]})}),E&&n.jsxs("div",{className:"border border-purple-200 rounded-xl bg-purple-50 p-4 space-y-3",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[n.jsx(zo,{className:"w-5 h-5 text-purple-600"}),n.jsx("h3",{className:"font-semibold text-purple-900",children:"AI Business Scanner"})]}),n.jsx("p",{className:"text-sm text-purple-700",children:"Upload a business card / website screenshot, or paste text (website content, email signature, etc.) and AI will auto-fill the form."}),n.jsxs("div",{children:[n.jsx(Ne,{className:"text-purple-800 font-medium text-sm",children:"Upload Image (business card, website screenshot)"}),n.jsx("div",{className:"mt-1 border-2 border-dashed border-purple-300 rounded-lg p-4 text-center cursor-pointer hover:border-purple-500 transition-colors",onClick:()=>{var Z;return(Z=V.current)==null?void 0:Z.click()},children:b?n.jsxs("div",{className:"relative inline-block",children:[n.jsx("img",{src:b,alt:"Preview",className:"max-h-32 rounded-lg mx-auto"}),n.jsx("button",{type:"button",className:"absolute -top-2 -right-2 bg-red-500 text-white rounded-full p-0.5",onClick:Z=>{Z.stopPropagation(),j(null),S(null)},children:n.jsx(ii,{className:"w-3 h-3"})})]}):n.jsxs("div",{className:"text-purple-500",children:[n.jsx(Qk,{className:"w-8 h-8 mx-auto mb-1"}),n.jsx("p",{className:"text-sm",children:"Click to upload image"})]})}),n.jsx("input",{ref:V,type:"file",accept:"image/*",className:"hidden",onChange:ne})]}),n.jsxs("div",{children:[n.jsx(Ne,{className:"text-purple-800 font-medium text-sm",children:"Or paste text (website content, email signature, etc.)"}),n.jsx(It,{value:C,onChange:Z=>k(Z.target.value),placeholder:"Paste business card text, website content, or any business information here...",className:"mt-1 border-purple-200 focus:border-purple-400 min-h-[80px]"})]}),n.jsx(oe,{type:"button",onClick:Q,disabled:y||!C&&!N,className:"w-full bg-purple-600 hover:bg-purple-700 text-white gap-2",children:y?n.jsxs(n.Fragment,{children:[n.jsx(Vd,{className:"w-4 h-4 animate-spin"})," Scanning..."]}):n.jsxs(n.Fragment,{children:[n.jsx(zo,{className:"w-4 h-4"})," Scan & Fill Form"]})})]}),O.text&&n.jsxs(Zr,{className:O.type==="error"?"border-red-200 bg-red-50":"border-green-200 bg-green-50",children:[O.type==="error"?n.jsx(sn,{className:"h-4 w-4 text-red-600"}):n.jsx(Ht,{className:"h-4 w-4 text-green-600"}),n.jsx(es,{className:O.type==="error"?"text-red-800":"text-green-800",children:O.text})]}
572),n.jsxs("form",{onSubmit:ie,className:"space-y-4 mt-2",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"business_name",children:"Business Name *"}),n.jsx(Ie,{id:"business_name",name:"business_name",value:i.business_name,onChange:M,placeholder:"Enter business name",required:!0,className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"description",children:"Description *"}),n.jsx(It,{id:"description",name:"description",value:i.description,onChange:M,placeholder:"Brief description of the business and services",required:!0,className:"mt-1 min-h-[80px]"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"contact_phone",children:"Phone Number"}),n.jsx(Ie,{id:"contact_phone",name:"contact_phone",type:"tel",value:i.contact_phone,onChange:M,placeholder:"(555) 123-4567",className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"contact_email",children:"Email Address"}),n.jsx(Ie,{id:"contact_email",name:"contact_email",type:"email",value:i.contact_email,onChange:M,placeholder:"[email protected]",className:"mt-1"})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"website_url",children:"Website URL"}),n.jsx(Ie,{id:"website_url",name:"website_url",value:i.website_url,onChange:M,placeholder:"https://www.business.com",className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"category",children:"Category"}),n.jsxs(sr,{value:i.category,onValueChange:Z=>a(L=>({...L,category:Z})),children:[n.jsx(zn,{className:"mt-1",children:n.jsx(ir,{placeholder:"Select category"})}),n.jsx($n,{children:E8.map(Z=>n.jsx(at,{value:Z,children:Z},Z))})]})]})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"location",children:"Business Location"}),n.jsx(Ie,{id:"location",name:"location",value:i.location,onChange:M,placeholder:"123 Main St, San Jose, CA 95120",className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"covered_areas",children:"Service Areas"}),n.jsx(It,{id:"covered_areas",name:"covered_areas",value:i.covered_areas,onChange:M,placeholder:"San Jose, Santa Clara, Campbell...",className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"business_hours",children:"Business Hours"}),n.jsx(Ie,{id:"business_hours",name:"business_hours",value:i.business_hours,onChange:M,placeholder:"Mon-Fri: 9am - 5pm",className:"mt-1"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{children:"Business Logo"}),n.jsx(Ie,{type:"file",accept:"image/*",onChange:Z=>d(Z.target.files[0]),className:"mt-1 file:mr-4 file:py-1 file:px-3 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100"}),l&&n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:l.name})]}),n.jsxs("div",{children:[n.jsx(Ne,{children:"Image Thumbnail"}),n.jsx(Ie,{type:"file",accept:"image/*",onChange:Z=>h(Z.target.files[0]),className:"mt-1 file:mr-4 file:py-1 file:px-3 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100"}),u&&n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:u.name})]})]}),n.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[n.jsx(oe,{type:"button",variant:"outline",onClick:ee,disabled:m,children:"Cancel"}),n.jsx(oe,{type:"submit",disabled:m,className:"bg-[#0f2d54] hover:bg-[#1a3f6f] text-white gap-2",children:m?n.jsxs(n.Fragment,{children:[n.jsx(Vd,{className:"w-4 h-4 animate-spin"})," Saving..."]}):"Add Listing"})]})]})]})})}const T8=["Restaurant","Digital Marketing","Landscaping","Automotive","Real Estate","Fitness & Health","Professional Services","Retail","Construction","Healthcare","Education","Other"];function P8({open:e,onOpenChange:t,listing:r,onSuccess:i}
572){const[a,l]=p.useState({}),[d,u]=p.useState(null),[h,m]=p.useState(null),[g,y]=p.useState(!1),[w,C]=p.useState({type:"",text:""});p.useEffect(()=>{r&&(l({business_name:r.business_name||"",description:r.description||"",contact_phone:r.contact_phone||"",contact_email:r.contact_email||"",website_url:r.website_url||"",category:r.category||"",logo_url:r.logo_url||"",thumbnail_url:r.thumbnail_url||"",business_hours:r.business_hours||"",location:r.location||"",covered_areas:r.covered_areas||""}),u(null),m(null),C({type:"",text:""}))},[r]);const k=j=>{const{name:b,value:S}=j.target;l(E=>({...E,[b]:S}))},N=async j=>{if(j.preventDefault(),!a.business_name||!a.description){C({type:"error",text:"Business name and description are required."});return}y(!0),C({type:"",text:""});try{let b={...a};if(d){const{file_url:S}=await Fe.integrations.Core.UploadFile({file:d});b.logo_url=S}if(h){const{file_url:S}=await Fe.integrations.Core.UploadFile({file:h});b.thumbnail_url=S}await tt.BusinessListing.update(r.id,b),i==null||i(),t(!1)}catch{C({type:"error",text:"Failed to update the listing. Please try again."})}finally{y(!1)}};return n.jsx(Zs,{open:e,onOpenChange:t,children:n.jsxs(Vr,{className:"sm:max-w-2xl max-h-[90vh] overflow-y-auto",children:[n.jsx(qr,{children:n.jsx(Kr,{className:"text-2xl font-bold text-gray-900",children:"Edit Business Listing"})}),w.text&&n.jsxs(Zr,{className:w.type==="error"?"border-red-200 bg-red-50":"border-green-200 bg-green-50",children:[w.type==="error"?n.jsx(sn,{className:"h-4 w-4 text-red-600"}):n.jsx(Ht,{className:"h-4 w-4 text-green-600"}),n.jsx(es,{className:w.type==="error"?"text-red-800":"text-green-800",children:w.text})]}),n.jsxs("form",{onSubmit:N,className:"space-y-4 mt-2",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"edit_business_name",children:"Business Name *"}),n.jsx(Ie,{id:"edit_business_name",name:"business_name",value:a.business_name||"",onChange:k,placeholder:"Enter business name",required:!0,className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"edit_description",children:"Description *"}),n.jsx(It,{id:"edit_description",name:"description",value:a.description||"",onChange:k,placeholder:"Brief description of the business and services",required:!0,className:"mt-1 min-h-[80px]"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"edit_contact_phone",children:"Phone Number"}),n.jsx(Ie,{id:"edit_contact_phone",name:"contact_phone",type:"tel",value:a.contact_phone||"",onChange:k,placeholder:"(555) 123-4567",className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"edit_contact_email",children:"Email Address"}),n.jsx(Ie,{id:"edit_contact_email",name:"contact_email",type:"email",value:a.contact_email||"",onChange:k,placeholder:"[email protected]",className:"mt-1"})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"edit_website_url",children:"Website URL"}),n.jsx(Ie,{id:"edit_website_url",name:"website_url",value:a.website_url||"",onChange:k,placeholder:"https://www.business.com",className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"edit_category",children:"Category"}),n.jsxs(sr,{value:a.category||"",onValueChange:j=>l(b=>({...b,category:j})),children:[n.jsx(zn,{className:"mt-1",children:n.jsx(ir,{placeholder:"Select category"})}),n.jsx($n,{children:T8.map(j=>n.jsx(at,{value:j,children:j},j))})]})]})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"edit_location",children:"Business Location"}),n.jsx(Ie,{id:"edit_location",name:"location",value:a.location||"",onChange:k,placeholder:"123 Main St, San Jose, CA 95120",className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"edit_covered_areas",children:"Service Areas"}),n.jsx(It,{id:"edit_covered_areas",name:"covered_areas",value:a.covered_areas||"",onChange:k,placeholder:"San Jose, Santa Clara, Campbell...",className:"mt-1"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"edit_business_hours",children:"Business Hours"}),n.jsx(Ie,{id:"edit_business_hours",name:"business_hours",value:a.business_hours||"",onChange:k,placeholder:"Mon-Fri: 9am - 5pm",className:"mt-1"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx(Ne,{children:"Business Logo"}),a.logo_url&&!d&&n.jsx("img",{src:a.logo_url,alt:"Current logo",className:"w-16 h-16 rounded-lg object-cover my-2"}),n.jsx(Ie,{type:"file",accept:"image/*",onChange:j=>u(j.target.files[0]),className:"mt-1 file:mr-4 file:py-1 file:px-3 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100"}),d&&n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:d.name})]}),n.jsxs("div",{children:[n.jsx(Ne,{children:"Image Thumbnail"}),a.thumbnail_url&&!h&&n.jsx("img",{src:a.thumbnail_url,alt:"Current thumbnail",className:"w-16 h-16 rounded-lg object-cover my-2"}),n.jsx(Ie,{type:"file",accept:"image/*",onChange:j=>m(j.target.files[0]),className:"mt-1 file:mr-4 file:py-1 file:px-3 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100"}),h&&n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:h.name})]})]}),n.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[n.jsx(oe,{type:"button",variant:"outline",onClick:()=>t(!1),disabled:g,children:"Cancel"}),n.jsx(oe,{type:"submit",disabled:g,className:"bg-[#0f2d54] hover:bg-[#1a3f6f] text-white gap-2",children:g?n.jsxs(n.Fragment,{children:[n.jsx(Vd,{className:"w-4 h-4 animate-spin"})," Saving..."]}):"Save Changes"})]})]})]})})}var A8=Symbol("radix.slottable");function O8(e){const t=({children:r})=>n.jsx(n.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=A8,t}var lN="AlertDialog",[I8]=_n(lN,[Gj]),ts=Gj(),cN=e=>{const{__scopeAlertDialog:t,...r}=e,i=ts(t);return n.jsx(ix,{...i,...r,modal:!0})};cN.displayName=lN;var M8="AlertDialogTrigger",dN=p.forwardRef((e,t)=>
vendor: 2,516 bytes, lines 572-578
572{const{__scopeAlertDialog:r,...i}=e,a=ts(r);return n.jsx(ox,{...a,...i,ref:t})});dN.displayName=M8;var D8="AlertDialogPortal",uN=e=>{const{__scopeAlertDialog:t,...r}=e,i=ts(t);return n.jsx(ax,{...i,...r})};uN.displayName=D8;var L8="AlertDialogOverlay",fN=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...i}=e,a=ts(r);return n.jsx(Gl,{...a,...i,ref:t})});fN.displayName=L8;var Ho="AlertDialogContent",[F8,B8]=I8(Ho),z8=O8("AlertDialogContent"),hN=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:i,...a}=e,l=ts(r),d=p.useRef(null),u=Xe(t,d),h=p.useRef(null);return n.jsx(QM,{contentName:Ho,titleName:pN,docsSlug:"alert-dialog",children:n.jsx(F8,{scope:r,cancelRef:h,children:n.jsxs(Yl,{role:"alertdialog",...l,...a,ref:u,onOpenAutoFocus:ve(a.onOpenAutoFocus,m=>{var g;m.preventDefault(),(g=h.current)==null||g.focus({preventScroll:!0})}),onPointerDownOutside:m=>m.preventDefault(),onInteractOutside:m=>m.preventDefault(),children:[n.jsx(z8,{children:i}),n.jsx(U8,{contentRef:d})]})})})});hN.displayName=Ho;var pN="AlertDialogTitle",mN=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...i}=e,a=ts(r);return n.jsx(Ql,{...a,...i,ref:t})});mN.displayName=pN;var xN="AlertDialogDescription",gN=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...i}=e,a=ts(r);return n.jsx(Xl,{...a,...i,ref:t})});gN.displayName=xN;var $8="AlertDialogAction",yN=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...i}=e,a=ts(r);return n.jsx(Pu,{...a,...i,ref:t})});yN.displayName=$8;var vN="AlertDialogCancel",bN=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...i}=e,{cancelRef:a}=B8(vN,r),l=ts(r),d=Xe(t,a);return n.jsx(Pu,{...l,...i,ref:d})});bN.displayName=vN;var U8=({contentRef:e})=>{const t=`\`${Ho}\` requires a description for the component to be accessible for screen reader users.
573
574You can add a description to the \`${Ho}\` by passing a \`${xN}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
575
576Alternatively, 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 \`${Ho}\`. 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.
577
578For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{var i;document.getElementById((i=e.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null}
578,W8=cN,H8=dN,V8=uN,wN=fN,jN=hN,NN=yN,SN=bN,CN=mN,_N=gN;const Ei=W8,Ri=H8,q8=V8,kN=p.forwardRef(({className:e,...t},r)=>n.jsx(wN,{className:Pe("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:r}));kN.displayName=wN.displayName;const $s=p.forwardRef(({className:e,...t},r)=>n.jsxs(q8,{children:[n.jsx(kN,{}),n.jsx(jN,{ref:r,className:Pe("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})]}));$s.displayName=jN.displayName;const Us=({className:e,...t})=>n.jsx("div",{className:Pe("flex flex-col space-y-2 text-center sm:text-left",e),...t});Us.displayName="AlertDialogHeader";const Ws=({className:e,...t})=>n.jsx("div",{className:Pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ws.displayName="AlertDialogFooter";const Hs=p.forwardRef(({className:e,...t},r)=>n.jsx(CN,{ref:r,className:Pe("text-lg font-semibold",e),...t}));Hs.displayName=CN.displayName;const Vs=p.forwardRef(({className:e,...t},r)=>n.jsx(_N,{ref:r,className:Pe("text-sm text-muted-foreground",e),...t}));Vs.displayName=_N.displayName;const qs=p.forwardRef(({className:e,...t},r)=>n.jsx(NN,{ref:r,className:Pe(Cm(),e),...t}));qs.displayName=NN.displayName;const Ks=p.forwardRef(({className:e,...t},r)=>n.jsx(SN,{ref:r,className:Pe(Cm({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Ks.displayName=SN.displayName;function K8(){const[e,t]=p.useState([]),[r,i]=p.useState([]),[a,l]=p.useState([]),[d,u]=p.useState("tips"),[h,m]=p.useState(""),[g,y]=p.useState(""),[w,C]=p.useState(!1),[k,N]=p.useState(!1),[j,b]=p.useState(!1),[S,E]=p.useState(!1),[R,O]=p.useState(!1),[$,V]=p.useState(!1),[M,ne]=p.useState(null),[Q,ie]=p.useState({label:"",logo_url:"",qr_image_url:"",sort_order:1,is_active:!0}),[ee,Z]=p.useState(!1),[L,W]=p.useState(!1),te=ft.useRef(null),le=ft.useRef(null),[G,q]=p.useState({title:"",content:"",icon:"💡",category:"deductions",is_active:!0}),[U,A]=p.useState({reviewer_name:"",rating:5,review_text:"",service_type:"",is_visible:!0}),[X,ge]=p.useState(!1);p.useEffect(()=>{pe()},[]);const pe=async()=>{const[J,ue,Je,dt]=await Promise.all([Fe.entities.KioskTaxTip.list("-created_date"),Fe.entities.KioskReview.list("-created_date"),Fe.entities.KioskSponsor.list("sort_order"),Fe.entities.KioskSetting.filter({key:"checkin_manager_password"})]);t(J),i(ue),l(Je),dt.length>0&&m(dt[0].value)},me=async()=>{if(!g.trim())return;N(!0);const J=await Fe.entities.KioskSetting.filter({key:"checkin_manager_password"});J.length>0?await Fe.entities.KioskSetting.update(J[0].id,{value:g.trim()}):await Fe.entities.KioskSetting.create({key:"checkin_manager_password",value:g.trim()}),m(g.trim()),y(""),C(!0),N(!1),setTimeout(()=>C(!1),3e3)},B=(J=null)=>{J?(ne(J),ie({label:J.label,logo_url:J.logo_url||"",qr_image_url:J.qr_image_url||"",sort_order:J.sort_order||1,is_active:J.is_active!==!1})):(ne(null),ie({label:"",logo_url:"",qr_image_url:"",sort_order:a.length+1,is_active:!0})),V(!0)},T=async()=>{Q.label&&(ge(!0),M?await Fe.entities.KioskSponsor.update(M.id,Q):await Fe.entities.KioskSponsor.create(Q),V(!1),ge(!1),pe())},re=async J=>{await Fe.entities.KioskSponsor.delete(J),pe()},se=async()=>{!G.title||!G.content||(ge(!0),await Fe.entities.KioskTaxTip.create(G),q({title:"",content:"",icon:"💡",category:"deductions",is_active:!0}),E(!1),ge(!1),pe())},de=async()=>{!U.reviewer_name||!U.review_text||(ge(!0),await Fe.entities.KioskReview.create(U),A({reviewer_name:"",rating:5,review_text:"",service_type:"",is_visible:!0}),O(!1),ge(!1),pe())},be=async J=>{await Fe.entities.KioskTaxTip.update(J.id,{is_active:!J.is_active}),pe()},Ae=async J=>{await Fe.entities.KioskReview.update(J.id,{is_visible:!J.is_visible}),pe()},Ze=async J=>{await Fe.entities.KioskTaxTip.delete(J),pe()},nt=async J=>{await Fe.entities.KioskReview.delete(J),pe()};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("h2",{className:"text-2xl font-bold text-gray-900 flex items-center gap-2",children:[n.jsx(Gb,{className:"w-6 h-6 text-blue-600"}),"Kiosk Management"]}),n.jsx("p",{className:"text-gray-500 text-sm mt-1",children:"Manage content displayed on the 1920×1080 kiosk screen"})]}),n.jsx(We,{to:"/kiosk",target:"_blank",children:n.jsxs(oe,{className:"gap-2",style:{background:"#0f2d54"},children:[n.jsx(Wi,{className:"w-4 h-4"}),"Preview Kiosk"]})})]}),n.jsx("div",{className:"flex gap-2",children:[{id:"tips",label:"Tax Tips",icon:Hd,count:e.length},{id:"reviews",label:"Reviews",icon:Zn,count:r.length},{id:"qrpanels",label:"QR Panels",icon:Uh,count:a.length},{id:"security",label:"Security",icon:Ad,count:null}].map(({id:J,label:ue,icon:Je,count:dt})=>n.jsxs("button",{onClick:()=>u(J),className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold transition-all",style:{background:d===J?"#0f2d54":"#f1f5f9",color:d===J?"white":"#64748b"},children:[n.jsx(Je,{className:"w-4 h-4"}),ue,dt!==null&&n.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs",style:{background:d===J?"rgba(255,255,255,0.2)":"#e2e8f0"},children:dt})]},J))}),d==="tips"&&n.jsxs("div",{className:"space-y-4",children:[n.jsxs(oe,{onClick:()=>E(!0),className:"gap-2 bg-blue-600 hover:bg-blue-700",children:[n.jsx(Nr,{className:"w-4 h-4"})," Add Tax Tip"]}),e.map(J=>n.jsx(ke,{className:"border-0 shadow-sm",children:n.jsxs(Re,{className:"p-4 flex items-center gap-4",children:[n.jsx("span",{className:"text-3xl",children:J.icon||"💡"}),n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[n.jsx("p",{className:"font-semibold text-gray-900",children:J.title}),n.jsx(Ot,{variant:J.is_active?"default":"secondary",className:"text-xs",children:J.is_active?"Active":"Hidden"}),n.jsx(Ot,{variant:"outline",className:"text-xs capitalize",children:J.category})]}),n.jsx("p",{className:"text-gray-500 text-sm line-clamp-2",children:J.content})]}),n.jsxs("div",{className:"flex gap-2",children:[n.jsx(oe,{variant:"outline",size:"sm",onClick:()=>be(J),children:J.is_active?n.jsx(Pd,{className:"w-4 h-4"}):n.jsx(Bi,{className:"w-4 h-4"})}),n.jsxs(Ei,{children:[n.jsx(Ri,{asChild:!0,children:n.jsx(oe,{variant:"destructive",size:"sm",children:n.jsx(Bs,{className:"w-4 h-4"})})}),n.jsxs($s,{children:[n.jsxs(Us,{children:[n.jsx(Hs,{children:"Delete Tax Tip?"}),n.jsx(Vs,{children:"This cannot be undone."})]}),n.jsxs(Ws,{children:[n.jsx(Ks,{children:"Cancel"}),n.jsx(qs,{onClick:()=>Ze(J.id),className:"bg-red-600 hover:bg-red-700",children:"Delete"})]})]})]})]})]})},J.id)),e.length===0&&n.jsxs("div",{className:"text-center py-12 text-gray-400",children:[n.jsx(Hd,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),n.jsx("p",{children:"No tax tips yet. Add your first one!"})]})]}),d==="reviews"&&n.jsxs("div",{className:"space-y-4",children:[n.jsxs(oe,{onClick:()=>O(!0),className:"gap-2 bg-blue-600 hover:bg-blue-700",children:[n.jsx(Nr,{className:"w-4 h-4"})," Add Review"]}),r.map(J=>n.jsx(ke,{className:"border-0 shadow-sm",children:n.jsxs(Re,{className:"p-4 flex items-center gap-4",children:[n.jsxs("div",{className:"flex flex-col items-center gap-1 shrink-0",children:[n.jsx("div",{className:"flex gap-0.5",children:[1,2,3,4,5].map(ue=>n.jsx(Zn,{className:"w-4 h-4",fill:ue<=J.rating?"#6faada":"none",style:{color:"#6faada"}},ue))}),n.jsx(Ot,{variant:J.is_visible?"default":"secondary",className:"text-xs",children:J.is_visible?"Visible":"Hidden"})]}),n.jsxs("div",{className:"flex-1",children:[n.jsx("p",{className:"font-semibold text-gray-900",children:J.reviewer_name}),J.service_type&&n.jsx("p",{className:"text-xs text-blue-600 mb-1",children:J.service_type}),n.jsxs("p",{className:"text-gray-500 text-sm italic line-clamp-2",children:['"',J.review_text,'"']})]}),n.jsxs("div",{className:"flex gap-2",children:[n.jsx(oe,{variant:"outline",size:"sm",onClick:()=>Ae(J),children:J.is_visible?n.jsx(Pd,{className:"w-4 h-4"}):n.jsx(Bi,{className:"w-4 h-4"})}),n.jsxs(Ei,{children:[n.jsx(Ri,{asChild:!0,children:n.jsx(oe,{variant:"destructive",size:"sm",children:n.jsx(Bs,{className:"w-4 h-4"})})}),n.jsxs($s,{children:[n.jsxs(Us,{children:[n.jsx(Hs,{children:"Delete Review?"}),n.jsx(Vs,{children:"This cannot be undone."})]}),n.jsxs(Ws,{children:[n.jsx(Ks,{children:"Cancel"}),n.jsx(qs,{onClick:()=>nt(J.id),className:"bg-red-600 hover:bg-red-700",children:"Delete"})]})]})]})]})]})},J.id)),r.length===0&&n.jsxs("div",{className:"text-center py-12 text-gray-400",children:[n.jsx(Zn,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),n.jsx("p",{children:"No reviews yet. Add client testimonials!"})]})]}),d==="qrpanels"&&n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-sm text-gray-500",children:"Up to 4 panels shown in the kiosk footer. Each panel has a logo, QR code image, and a label."}),a.length<4&&n.jsxs(oe,{onClick:()=>B(),className:"gap-2 bg-blue-600 hover:bg-blue-700",children:[n.jsx(Nr,{className:"w-4 h-4"})," Add Panel"]})]}),n.jsx("div",{className:"grid grid-cols-4 gap-3 p-4 rounded-xl bg-slate-900",children:Array.from({length:4},(J,ue)=>a[ue]||null).map((J,ue)=>n.jsx("div",{className:"flex flex-col items-center justify-center gap-2 p-3 rounded-xl border border-white/10 min-h-[140px] bg-black/20 text-center",children:J?n.jsxs(n.Fragment,{children:[J.logo_url&&n.jsx("img",{src:J.logo_url,alt:"",className:"h-6 object-contain opacity-80"}),J.qr_image_url?n.jsx("div",{className:"bg-white rounded-lg p-1",children:n.jsx("img",{src:J.qr_image_url,alt:"QR",className:"w-14 h-14"})}):n.jsx("div",{className:"w-16 h-16 rounded-lg border-2 border-dashed border-white/20 flex items-center justify-center",children:n.jsx(Uh,{className:"w-6 h-6 text-white/20"})}),n.jsx("p",{className:"text-white/60 text-xs font-medium",children:J.label})]}):n.jsxs("div",{className:"text-white/15 text-xs",children:["Empty slot ",ue+1]})},ue))}),n.jsxs("div",{className:"space-y-3",children:[a.map((J,ue)=>n.jsx(ke,{className:"border-0 shadow-sm",children:n.jsxs(Re,{className:"p-4 flex items-center gap-4",children:[n.jsx("div",{className:"w-8 h-8 rounded-full bg-slate-100 flex items-center justify-center text-sm font-bold text-slate-600 shrink-0",children:J.sort_order||ue+1}),n.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[J.logo_url&&n.jsx("img",{src:J.logo_url,alt:"",className:"h-8 object-contain rounded"}),J.qr_image_url&&n.jsx("img",{src:J.qr_image_url,alt:"QR",className:"w-10 h-10 rounded border"}),n.jsxs("div",{children:[n.jsx("p",{className:"font-semibold text-gray-900",children:J.label}),n.jsxs("p",{className:"text-xs text-gray-400",children:[J.qr_image_url?"QR uploaded":"No QR yet"," · ",J.logo_url?"Logo uploaded":"No logo"]})]})]}),n.jsxs("div",{className:"flex gap-2",children:[n.jsx(oe,{variant:"outline",size:"sm",onClick:()=>B(J),children:"Edit"}),n.jsxs(Ei,{children:[n.jsx(Ri,{asChild:!0,children:n.jsx(oe,{variant:"destructive",size:"sm",children:n.jsx(Bs,{className:"w-4 h-4"})})}),n.jsxs($s,{children:[n.jsxs(Us,{children:[n.jsx(Hs,{children:"Delete QR Panel?"}),n.jsx(Vs,{children:"This cannot be undone."})]}),n.jsxs(Ws,{children:[n.jsx(Ks,{children:"Cancel"}),n.jsx(qs,{onClick:()=>re(J.id),className:"bg-red-600 hover:bg-red-700",children:"Delete"})]})]})]})]})]})},J.id)),a.length===0&&n.jsxs("div",{className:"text-center py-12 text-gray-400",children:[n.jsx(Uh,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),n.jsx("p",{children:"No QR panels yet. Add up to 4 panels for the kiosk footer."})]})]})]}),d==="security"&&n.jsx("div",{className:"space-y-4 max-w-lg",children:n.jsxs(ke,{className:"border-0 shadow-sm",children:[n.jsx(qe,{children:n.jsxs(Ke,{className:"flex items-center gap-2 text-base",children:[n.jsx(Ad,{className:"w-4 h-4 text-blue-600"}),"Check-In Manager Password"]})}),n.jsxs(Re,{className:"space-y-4",children:[n.jsxs("p",{className:"text-sm text-gray-500",children:["This password protects the ",n.jsx("code",{className:"bg-gray-100 px-1 rounded",children:"/checkin-manager"})," page. Share it only with authorized staff."]}),h&&n.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gray-50 rounded-lg border",children:[n.jsx(Ad,{className:"w-4 h-4 text-gray-400 shrink-0"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("p",{className:"text-xs text-gray-400 font-semibold uppercase tracking-wider mb-0.5",children:"Current Password"}),n.jsx("p",{className:"font-mono text-gray-800 text-sm",children:j?h:"•".repeat(h.length)})]}),n.jsx(oe,{variant:"ghost",size:"sm",onClick:()=>b(J=>!J),children:j?n.jsx(Pd,{className:"w-4 h-4"}):n.jsx(Bi,{className:"w-4 h-4"})})]}),!h&&n.jsxs("div",{className:"p-3 bg-yellow-50 border border-yellow-200 rounded-lg text-sm text-yellow-800",children:["⚠ No password set in database. The page is using the hardcoded default: ",n.jsx("code",{className:"font-mono font-bold",children:"AMC2024
578staff"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("label",{className:"text-sm font-medium text-gray-700",children:"Set New Password"}),n.jsx(Ie,{type:"text",value:g,onChange:J=>y(J.target.value),placeholder:"Enter new password…",onKeyDown:J=>J.key==="Enter"&&me()})]}),n.jsx(oe,{onClick:me,disabled:k||!g.trim(),className:"gap-2 bg-blue-600 hover:bg-blue-700",children:w?n.jsxs(n.Fragment,{children:[n.jsx(Yr,{className:"w-4 h-4"})," Saved!"]}):k?"Saving…":"Save Password"})]})]})}),n.jsx(Zs,{open:$,onOpenChange:V,children:n.jsxs(Vr,{className:"max-w-lg",children:[n.jsx(qr,{children:n.jsx(Kr,{children:M?"Edit QR Panel":"Add QR Panel"})}),n.jsxs("div",{className:"space-y-4 mt-2",children:[n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Label"}),n.jsx(Ie,{value:Q.label,onChange:J=>ie(ue=>({...ue,label:J.target.value})),placeholder:"e.g. Visit our website"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Position (1–4)"}),n.jsx(Ie,{type:"number",min:1,max:4,value:Q.sort_order,onChange:J=>ie(ue=>({...ue,sort_order:Number(J.target.value)}))})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Logo / Icon"}),n.jsxs("div",{className:"flex items-center gap-3",children:[Q.logo_url&&n.jsx("img",{src:Q.logo_url,alt:"",className:"h-10 rounded border object-contain"}),n.jsx("input",{ref:te,type:"file",accept:"image/*",className:"hidden",onChange:async J=>{var dt;const ue=(dt=J.target.files)==null?void 0:dt[0];if(!ue)return;Z(!0);const Je=await Fe.integrations.Core.UploadFile({file:ue}).then(lt=>lt.file_url);ie(lt=>({...lt,logo_url:Je})),Z(!1)}}),n.jsxs(oe,{variant:"outline",size:"sm",className:"gap-2",disabled:ee,onClick:()=>{var J;return(J=te.current)==null?void 0:J.click()},children:[n.jsx(Hr,{className:"w-4 h-4"})," ",ee?"Uploading…":"Upload Logo"]})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"QR Code Image"}),n.jsxs("div",{className:"flex items-center gap-3",children:[Q.qr_image_url&&n.jsx("img",{src:Q.qr_image_url,alt:"QR",className:"w-16 h-16 rounded border"}),n.jsx("input",{ref:le,type:"file",accept:"image/*",className:"hidden",onChange:async J=>{var dt;const ue=(dt=J.target.files)==null?void 0:dt[0];if(!ue)return;W(!0);const Je=await Fe.integrations.Core.UploadFile({file:ue}).then(lt=>lt.file_url);ie(lt=>({...lt,qr_image_url:Je})),W(!1)}}),n.jsxs(oe,{variant:"outline",size:"sm",className:"gap-2",disabled:L,onClick:()=>{var J;return(J=le.current)==null?void 0:J.click()},children:[n.jsx(Hr,{className:"w-4 h-4"})," ",L?"Uploading…":"Upload QR Image"]})]}),n.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Generate your QR code externally and upload the image here."})]}),n.jsxs("div",{className:"flex justify-end gap-3",children:[n.jsx(oe,{variant:"outline",onClick:()=>V(!1),children:"Cancel"}),n.jsx(oe,{onClick:T,disabled:X||!Q.label,children:X?"Saving…":"Save Panel"})]})]})]})}),n.jsx(Zs,{open:S,onOpenChange:E,children:n.jsxs(Vr,{className:"max-w-lg",children:[n.jsx(qr,{children:n.jsx(Kr,{children:"Add Tax Tip"})}),n.jsxs("div",{className:"space-y-4 mt-2",children:[n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Title"}),n.jsx(Ie,{value:G.title,onChange:J=>q(ue=>({...ue,title:J.target.value})),placeholder:"e.g. Maximize Deductions"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Emoji Icon"}),n.jsx(Ie,{value:G.icon,onChange:J=>q(ue=>({...ue,icon:J.target.value})),placeholder:"💡"})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Category"}),n.jsxs(sr,{value:G.category,onValueChange:J=>q(ue=>({...ue,category:J})),children:[n.jsx(zn,{children:n.jsx(ir,{})}),n.jsxs($n,{children:[n.jsx(at,{value:"deductions",children:"Deductions"}),n.jsx(at,{value:"deadlines",children:"Deadlines"}),n.jsx(at,{value:"business",children:"Business"}),n.jsx(at,{value:"irs",children:"IRS"}),n.jsx(at,{value:"planning",children:"Planning"})]})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Content"}),n.jsx(It,{value:G.content,onChange:J=>q(ue=>({...ue,content:J.target.value})),rows:4,placeholder:"Write the tax tip content..."})]}),n.jsxs("div",{className:"flex justify-end gap-3",children:[n.jsx(oe,{variant:"outline",onClick:()=>E(!1),children:"Cancel"}),n.jsx(oe,{onClick:se,disabled:X||!G.title||!G.content,children:X?"Saving...":"Save Tip"})]})]})]})}),n.jsx(Zs,{open:R,onOpenChange:O,children:n.jsxs(Vr,{className:"max-w-lg",children:[n.jsx(qr,{children:n.jsx(Kr,{children:"Add Client Review"})}
vendor: 21,074 bytes, line 578
578),n.jsxs("div",{className:"space-y-4 mt-2",children:[n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Client Name"}),n.jsx(Ie,{value:U.reviewer_name,onChange:J=>A(ue=>({...ue,reviewer_name:J.target.value})),placeholder:"Jane D."})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Service Type"}),n.jsx(Ie,{value:U.service_type,onChange:J=>A(ue=>({...ue,service_type:J.target.value})),placeholder:"Tax Return Preparation"})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Rating"}),n.jsx("div",{className:"flex gap-2",children:[1,2,3,4,5].map(J=>n.jsx("button",{onClick:()=>A(ue=>({...ue,rating:J})),className:"w-10 h-10 rounded-full flex items-center justify-center border-2 transition-all",style:{borderColor:J<=U.rating?"#6faada":"#e2e8f0",background:J<=U.rating?"rgba(111,170,218,0.1)":"white"},children:n.jsx(Zn,{className:"w-5 h-5",fill:J<=U.rating?"#6faada":"none",style:{color:"#6faada"}})},J))})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm font-medium text-gray-700 mb-1 block",children:"Review Text"}),n.jsx(It,{value:U.review_text,onChange:J=>A(ue=>({...ue,review_text:J.target.value})),rows:4,placeholder:"What did the client say?"})]}),n.jsxs("div",{className:"flex justify-end gap-3",children:[n.jsx(oe,{variant:"outline",onClick:()=>O(!1),children:"Cancel"}),n.jsx(oe,{onClick:de,disabled:X||!U.reviewer_name||!U.review_text,children:X?"Saving...":"Save Review"})]})]})]})})]})}function G8(e){const t=Y8(e),r=p.forwardRef((i,a)=>{const{children:l,...d}=i,u=p.Children.toArray(l),h=u.find(X8);if(h){const m=h.props.children,g=u.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return n.jsx(t,{...d,ref:a,children:p.isValidElement(m)?p.cloneElement(m,void 0,g):null})}return n.jsx(t,{...d,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}function Y8(e){const t=p.forwardRef((r,i)=>{const{children:a,...l}=r;if(p.isValidElement(a)){const d=Z8(a),u=J8(l,a.props);return a.type!==p.Fragment&&(u.ref=i?Jr(i,d):d),p.cloneElement(a,u)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Q8=Symbol("radix.slottable");function X8(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Q8}function J8(e,t){const r={...t};for(const i in t){const a=e[i],l=t[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...u)=>{const h=l(...u);return a(...u),h}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function Z8(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var om=["Enter"," "],eL=["ArrowDown","PageUp","Home"],EN=["ArrowUp","PageDown","End"],tL=[...eL,...EN],nL={ltr:[...om,"ArrowRight"],rtl:[...om,"ArrowLeft"]},rL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ec="Menu",[El,sL,iL]=vu(ec),[ro,RN]=_n(ec,[iL,ga,Du]),Fu=ga(),TN=Du(),[oL,so]=ro(ec),[aL,tc]=ro(ec),PN=e=>{const{__scopeMenu:t,open:r=!1,children:i,dir:a,onOpenChange:l,modal:d=!0}=e,u=Fu(t),[h,m]=p.useState(null),g=p.useRef(!1),y=kr(l),w=Hl(a);return p.useEffect(()=>{const C=()=>{g.current=!0,document.addEventListener("pointerdown",k,{capture:!0,once:!0}),document.addEventListener("pointermove",k,{capture:!0,once:!0})},k=()=>g.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",k,{capture:!0}),document.removeEventListener("pointermove",k,{capture:!0})}},[]),n.jsx(Qm,{...u,children:n.jsx(oL,{scope:t,open:r,onOpenChange:y,content:h,onContentChange:m,children:n.jsx(aL,{scope:t,onClose:p.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:g,dir:w,modal:d,children:i})})})};PN.displayName=ec;var lL="MenuAnchor",px=p.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e,a=Fu(r);return n.jsx(Xm,{...a,...i,ref:t})});px.displayName=lL;var mx="MenuPortal",[cL,AN]=ro(mx,{forceMount:void 0}),ON=e=>{const{__scopeMenu:t,forceMount:r,children:i,container:a}=e,l=so(mx,t);return n.jsx(cL,{scope:t,forceMount:r,children:n.jsx(kn,{present:r||l.open,children:n.jsx(Kl,{asChild:!0,container:a,children:i})})})};ON.displayName=mx;var Fn="MenuContent",[dL,xx]=ro(Fn),IN=p.forwardRef((e,t)=>{const r=AN(Fn,e.__scopeMenu),{forceMount:i=r.forceMount,...a}=e,l=so(Fn,e.__scopeMenu),d=tc(Fn,e.__scopeMenu);return n.jsx(El.Provider,{scope:e.__scopeMenu,children:n.jsx(kn,{present:i||l.open,children:n.jsx(El.Slot,{scope:e.__scopeMenu,children:d.modal?n.jsx(uL,{...a,ref:t}):n.jsx(fL,{...a,ref:t})})})})}),uL=p.forwardRef((e,t)=>{const r=so(Fn,e.__scopeMenu),i=p.useRef(null),a=Xe(t,i);return p.useEffect(()=>{const l=i.current;if(l)return ex(l)},[]),n.jsx(gx,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ve(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),fL=p.forwardRef((e,t)=>{const r=so(Fn,e.__scopeMenu);return n.jsx(gx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),hL=G8("MenuContent.ScrollLock"),gx=p.forwardRef((e,t)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:d,disableOutsidePointerEvents:u,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:C,disableOutsideScroll:k,...N}=e,j=so(Fn,r),b=tc(Fn,r),S=Fu(r),E=TN(r),R=sL(r),[O,$]=p.useState(null),V=p.useRef(null),M=Xe(t,V,j.onContentChange),ne=p.useRef(0),Q=p.useRef(""),ie=p.useRef(0),ee=p.useRef(null),Z=p.useRef("right"),L=p.useRef(0),W=k?_u:p.Fragment,te=k?{as:hL,allowPinchZoom:!0}:void 0,le=q=>{var T,re;const U=Q.current+q,A=R().filter(se=>!se.disabled),X=document.activeElement,ge=(T=A.find(se=>se.ref.current===X))==null?void 0:T.textValue,pe=A.map(se=>se.textValue),me=CL(pe,U,ge),B=(re=A.find(se=>se.textValue===me))==null?void 0:re.ref.current;(function se(de){Q.current=de,window.clearTimeout(ne.current),de!==""&&(ne.current=window.setTimeout(()=>se(""),1e3))})(U),B&&setTimeout(()=>B.focus())};p.useEffect(()=>()=>window.clearTimeout(ne.current),[]),$m();const G=p.useCallback(q=>{var A,X;return Z.current===((A=ee.current)==null?void 0:A.side)&&kL(q,(X=ee.current)==null?void 0:X.area)},[]);return n.jsx(dL,{scope:r,searchRef:Q,onItemEnter:p.useCallback(q=>{G(q)&&q.preventDefault()},[G]),onItemLeave:p.useCallback(q=>{var U;G(q)||((U=V.current)==null||U.focus(),$(null))},[G]),onTriggerLeave:p.useCallback(q=>{G(q)&&q.preventDefault()},[G]),pointerGraceTimerRef:ie,onPointerGraceIntentChange:p.useCallback(q=>{ee.current=q},[]),children:n.jsx(W,{...te,children:n.jsx(bu,{asChild:!0,trapped:a,onMountAutoFocus:ve(l,q=>{var U;q.preventDefault(),(U=V.current)==null||U.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:n.jsx(Vl,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:C,children:n.jsx(q2,{asChild:!0,...E,dir:b.dir,orientation:"vertical",loop:i,currentTabStopId:O,onCurrentTabStopIdChange:$,onEntryFocus:ve(h,q=>{b.isUsingKeyboardRef.current||q.preventDefault()}),preventScrollOnEntryFocus:!0,children:n.jsx(Jm,{role:"menu","aria-orientation":"vertical","data-state":QN(j.open),"data-radix-menu-content":"",dir:b.dir,...S,...N,ref:M,style:{outline:"none",...N.style},onKeyDown:ve(N.onKeyDown,q=>{const A=q.target.closest("[data-radix-menu-content]")===q.currentTarget,X=q.ctrlKey||q.altKey||q.metaKey,ge=q.key.length===1;A&&(q.key==="Tab"&&q.preventDefault(),!X&&ge&&le(q.key));const pe=V.current;if(q.target!==pe||!tL.includes(q.key))return;q.preventDefault();const B=R().filter(T=>!T.disabled).map(T=>T.ref.current);EN.includes(q.key)&&B.reverse(),NL(B)}),onBlur:ve(e.onBlur,q=>{q.currentTarget.contains(q.target)||(window.clearTimeout(ne.current),Q.current="")}),onPointerMove:ve(e.onPointerMove,Rl(q=>{const U=q.target,A=L.current!==q.clientX;if(q.currentTarget.contains(U)&&A){const X=q.clientX>L.current?"right":"left";Z.current=X,L.current=q.clientX}}))})})})})})})});IN.displayName=Fn;var pL="MenuGroup",yx=p.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return n.jsx($e.div,{role:"group",...i,ref:t})});yx.displayName=pL;var mL="MenuLabel",MN=p.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return n.jsx($e.div,{...i,ref:t})});MN.displayName=mL;var lu="MenuItem",bb="menu.itemSelect",Bu=p.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:i,...a}=e,l=p.useRef(null),d=tc(lu,e.__scopeMenu),u=xx(lu,e.__scopeMenu),h=Xe(t,l),m=p.useRef(!1),g=()=>{const y=l.current;if(!r&&y){const w=new CustomEvent(bb,{bubbles:!0,cancelable:!0});y.addEventListener(bb,C=>i==null?void 0:i(C),{once:!0}),k1(y,w),w.defaultPrevented?m.current=!1:d.onClose()}};return n.jsx(DN,{...a,ref:h,disabled:r,onClick:ve(e.onClick,g),onPointerDown:y=>{var w;(w=e.onPointerDown)==null||w.call(e,y),m.current=!0},onPointerUp:ve(e.onPointerUp,y=>{var w;m.current||(w=y.currentTarget)==null||w.click()}),onKeyDown:ve(e.onKeyDown,y=>{const w=u.searchRef.current!=="";r||w&&y.key===" "||om.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});Bu.displayName=lu;var DN=p.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:i=!1,textValue:a,...l}=e,d=xx(lu,r),u=TN(r),h=p.useRef(null),m=Xe(t,h),[g,y]=p.useState(!1),[w,C]=p.useState("");return p.useEffect(()=>{const k=h.current;k&&C((k.textContent??"").trim())},[l.children]),n.jsx(El.ItemSlot,{scope:r,disabled:i,textValue:a??w,children:n.jsx(K2,{asChild:!0,...u,focusable:!i,children:n.jsx($e.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...l,ref:m,onPointerMove:ve(e.onPointerMove,Rl(k=>{i?d.onItemLeave(k):(d.onItemEnter(k),k.defaultPrevented||k.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ve(e.onPointerLeave,Rl(k=>d.onItemLeave(k))),onFocus:ve(e.onFocus,()=>y(!0)),onBlur:ve(e.onBlur,()=>y(!1))})})})}),xL="MenuCheckboxItem",LN=p.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:i,...a}=e;return n.jsx(UN,{scope:e.__scopeMenu,checked:r,children:n.jsx(Bu,{role:"menuitemcheckbox","aria-checked":cu(r)?"mixed":r,...a,ref:t,"data-state":bx(r),onSelect:ve(a.onSelect,()=>i==null?void 0:i(cu(r)?!0:!r),{checkForDefaultPrevented:!1})})})});LN.displayName=xL;var FN="MenuRadioGroup",[gL,yL]=ro(FN,{value:void 0,onValueChange:()=>{}}),BN=p.forwardRef((e,t)=>{const{value:r,onValueChange:i,...a}=e,l=kr(i);return n.jsx(gL,{scope:e.__scopeMenu,value:r,onValueChange:l,children:n.jsx(yx,{...a,ref:t})})});BN.displayName=FN;var zN="MenuRadioItem",$N=p.forwardRef((e,t)=>{const{value:r,...i}=e,a=yL(zN,e.__scopeMenu),l=r===a.value;return n.jsx(UN,{scope:e.__scopeMenu,checked:l,children:n.jsx(Bu,{role:"menuitemradio","aria-checked":l,...i,ref:t,"data-state":bx(l),onSelect:ve(i.onSelect,()=>{var d;return(d=a.onValueChange)==null?void 0:d.call(a,r)},{checkForDefaultPrevented:!1})})})});$N.displayName=zN;var vx="MenuItemIndicator",[UN,vL]=ro(vx,{checked:!1}),WN=p.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:i,...a}=e,l=vL(vx,r);return n.jsx(kn,{present:i||cu(l.checked)||l.checked===!0,children:n.jsx($e.span,{...a,ref:t,"data-state":bx(l.checked)})})});WN.displayName=vx;var bL="MenuSeparator",HN=p.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return n.jsx($e.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});HN.displayName=bL;var wL="MenuArrow",VN=p.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e,a=Fu(r);return n.jsx(Zm,{...a,...i,ref:t})});VN.displayName=wL;var jL="MenuSub",[rz,qN]=ro(jL),ml="MenuSubTrigger",KN=p.forwardRef((e,t)=>{const r=so(ml,e.__scopeMenu),i=tc(ml,e.__scopeMenu),a=qN(ml,e.__scopeMenu),l=xx(ml,e.__scopeMenu),d=p.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:h}=l,m={__scopeMenu:e.__scopeMenu},g=p.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return p.useEffect(()=>g,[g]),p.useEffect(()=>{const y=u.current;return()=>{window.clearTimeout(y),h(null)}},[u,h]),n.jsx(px,{asChild:!0,...m,children:n.jsx(DN,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":QN(r.open),...e,ref:Jr(t,a.onTriggerChange),onClick:y=>{var w;(w=e.onClick)==null||w.call(e,y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ve(e.onPointerMove,Rl(y=>{l.onItemEnter(y),!y.defaultPrevented&&!e.disabled&&!r.open&&!d.current&&(l.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{r.onOpenChange(!0),g()},100))})),onPointerLeave:ve(e.onPointerLeave,Rl(y=>{var C,k;g();const w=(C=r.content)==null?void 0:C.getBoundingClientRect();if(w){const N=(k=r.content)==null?void 0:k.dataset.side,j=N==="right",b=j?-5:5,S=w[j?"left":"right"],E=w[j?"right":"left"];l.onPointerGraceIntentChange({area:[{x:y.clientX+b,y:y.clientY},{x:S,y:w.top},{x:E,y:w.top},{x:E,y:w.bottom},{x:S,y:w.bottom}],side:N}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(y),y.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:ve(e.onKeyDown,y=>{var C;const w=l.searchRef.current!=="";e.disabled||w&&y.key===" "||nL[i.dir].includes(y.key)&&(r.onOpenChange(!0),(C=r.content)==null||C.focus(),y.preventDefault())})})})});KN.displayName=ml;var GN="MenuSubContent",YN=p.forwardRef((e,t)=>{const r=AN(Fn,e.__scopeMenu),{forceMount:i=r.forceMount,...a}=e,l=so(Fn,e.__scopeMenu),d=tc(Fn,e.__scopeMenu),u=qN(GN,e.__scopeMenu),h=p.useRef(null),m=Xe(t,h);return n.jsx(El.Provider,{scope:e.__scopeMenu,children:n.jsx(kn,{present:i||l.open,children:n.jsx(El.Slot,{scope:e.__scopeMenu,children:n.jsx(gx,{id:u.contentId,"aria-labelledby":u.triggerId,...a,ref:m,align:"start",side:d.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{var y;d.isUsingKeyboardRef.current&&((y=h.current)==null||y.focus()),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:ve(e.onFocusOutside,g=>{g.target!==u.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:ve(e.onEscapeKeyDown,g=>{d.onClose(),g.preventDefault()}),onKeyDown:ve(e.onKeyDown,g=>{var C;const y=g.currentTarget.contains(g.target),w=rL[d.dir].includes(g.key);y&&w&&(l.onOpenChange(!1),(C=u.trigger)==null||C.focus(),g.preventDefault())})})})})})});YN.displayName=GN;function QN(e){return e?"open":"closed"}function cu(e){return e==="indeterminate"}function bx(e){return cu(e)?"indeterminate":e?"checked":"unchecked"}function NL(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function SL(e,t){return e.map((r,i)=>e[(t+i)%e.length])}function CL(e,t,r){const a=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,l=r?e.indexOf(r):-1;let d=SL(e,Math.max(l,0));a.length===1&&(d=d.filter(m=>m!==r));const h=d.find(m=>m.toLowerCase().startsWith(a.toLowerCase()));return h!==r?h:void 0}function _L(e,t){const{x:r,y:i}=e;let a=!1;for(let l=0,d=t.length-1;l<t.length;d=l++){const u=t[l],h=t[d],m=u.x,g=u.y,y=h.x,w=h.y;g>i!=w>i&&r<(y-m)*(i-g)/(w-g)+m&&(a=!a)}return a}function kL(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return _L(r,t)}function Rl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var EL=PN,RL=px,TL=ON,PL=IN,AL=yx,OL=MN,IL=Bu,ML=LN,DL=BN,LL=$N,FL=WN,BL=HN,zL=VN,$L=KN,UL=YN,zu="DropdownMenu",[WL]=_n(zu,[RN]),on=RN(),[HL,XN]=WL(zu),JN=e=>{const{__scopeDropdownMenu:t,children:r,dir:i,open:a,defaultOpen:l,onOpenChange:d,modal:u=!0}=e,h=on(t),m=p.useRef(null),[g,y]=rr({prop:a,defaultProp:l??!1,onChange:d,caller:zu});return n.jsx(HL,{scope:t,triggerId:Sn(),triggerRef:m,contentId:Sn(),open:g,onOpenChange:y,onOpenToggle:p.useCallback(()=>y(w=>!w),[y]),modal:u,children:n.jsx(EL,{...h,open:g,onOpenChange:y,dir:i,modal:u,children:r})})};JN.displayName=zu;var ZN="DropdownMenuTrigger",eS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...a}=e,l=XN(ZN,r),d=on(r);return n.jsx(RL,{asChild:!0,...d,children:n.jsx($e.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...a,ref:Jr(t,l.triggerRef),onPointerDown:ve(e.onPointerDown,u=>{!i&&u.button===0&&u.ctrlKey===!1&&(l.onOpenToggle(),l.open||u.preventDefault())}),onKeyDown:ve(e.onKeyDown,u=>{i||(["Enter"," "].includes(u.key)&&l.onOpenToggle(),u.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});eS.displayName=ZN;var VL="DropdownMenuPortal",tS=e=>{const{__scopeDropdownMenu:t,...r}=e,i=on(t);return n.jsx(TL,{...i,...r})};tS.displayName=VL;var nS="DropdownMenuContent",rS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=XN(nS,r),l=on(r),d=p.useRef(!1);return n.jsx(PL,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...i,ref:t,onCloseAutoFocus:ve(e.onCloseAutoFocus,u=>{var h;d.current||(h=a.triggerRef.current)==null||h.focus(),d.current=!1,u.preventDefault()}),onInteractOutside:ve(e.onInteractOutside,u=>{const h=u.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0,g=h.button===2||m;(!a.modal||g)&&(d.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});rS.displayName=nS;var qL="DropdownMenuGroup",KL=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx(AL,{...a,...i,ref:t})});KL.displayName=qL;var GL="DropdownMenuLabel",sS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx(OL,{...a,...i,ref:t})});sS.displayName=GL;var YL="DropdownMenuItem",iS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx(IL,{...a,...i,ref:t})});iS.displayName=YL;var QL="DropdownMenuCheckboxItem",oS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx(ML,{...a,...i,ref:t})});oS.displayName=QL;var XL="DropdownMenuRadioGroup",JL=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx(DL,{...a,...i,ref:t})});JL.displayName=XL;var ZL="DropdownMenuRadioItem",aS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx(LL,{...a,...i,ref:t})});aS.displayName=ZL;var eF="DropdownMenuItemIndicator",lS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx(FL,{...a,...i,ref:t})});lS.displayName=eF;var tF="DropdownMenuSeparator",cS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx(BL,{...a,...i,ref:t})});cS.displayName=tF;var nF="DropdownMenuArrow",rF=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx(zL,{...a,...i,ref:t})});rF.displayName=nF;var sF="DropdownMenuSubTrigger",dS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx($L,{...a,...i,ref:t})});dS.displayName=sF;var iF="DropdownMenuSubContent",uS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,a=on(r);return n.jsx(UL,{...a,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});uS.displayName=iF;var oF=JN,aF=eS,lF=tS,fS=rS,hS=sS,pS=iS,mS=oS,xS=aS,gS=lS,yS=cS,vS=dS,bS=uS;const wS=oF,jS=aF,cF=p.forwardRef(({className:e,inset:t,children:r,...i},a)=>n.jsxs(vS,{ref:a,className:Pe("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...i,children:[r,n.jsx(ti,{className:"ml-auto"})]}));cF.displayName=vS.displayName;const dF=p.forwardRef(({className:e,...t},r)=>n.jsx(bS,{ref:r,className:Pe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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]:sli
578de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));dF.displayName=bS.displayName;const wx=p.forwardRef(({className:e,sideOffset:t=4,...r},i)=>n.jsx(lF,{children:n.jsx(fS,{ref:i,sideOffset:t,className:Pe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",e),...r})}));wx.displayName=fS.displayName;const Gs=p.forwardRef(({className:e,inset:t,...r},i)=>n.jsx(pS,{ref:i,className:Pe("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...r}));Gs.displayName=pS.displayName;const uF=p.forwardRef(({className:e,children:t,checked:r,...i},a)=>n.jsxs(mS,{ref:a,className:Pe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...i,children:[n.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(gS,{children:n.jsx(Yr,{className:"h-4 w-4"})})}),t]}));uF.displayName=mS.displayName;const fF=p.forwardRef(({className:e,children:t,...r},i)=>n.jsxs(xS,{ref:i,className:Pe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[n.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(gS,{children:n.jsx(Tk,{className:"h-2 w-2 fill-current"})})}),t]}));fF.displayName=xS.displayName;const NS=p.forwardRef(({className:e,inset:t,...r},i)=>n.jsx(hS,{ref:i,className:Pe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));NS.displayName=hS.displayName;const am=p.forwardRef(({className:e,...t},r)=>n.jsx(yS,{ref:r,className:Pe("-mx-1 my-1 h-px bg-muted",e),...t}));am.displayName=yS.displayName;var $u="Collapsible",[hF,SS]=_n($u),[pF,jx]=hF($u),CS=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:i,defaultOpen:a,disabled:l,onOpenChange:d,...u}=e,[h,m]=rr({prop:i,defaultProp:a??!1,onChange:d,caller:$u});return n.jsx(pF,{scope:r,disabled:l,contentId:Sn(),open:h,onOpenToggle:p.useCallback(()=>m(g=>!g),[m]),children:n.jsx($e.div,{"data-state":Sx(h),"data-disabled":l?"":void 0,...u,ref:t})})});CS.displayName=$u;var _S="CollapsibleTrigger",kS=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,...i}=e,a=jx(_S,r);return n.jsx($e.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Sx(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...i,ref:t,onClick:ve(e.onClick,a.onOpenToggle)})});kS.displayName=_S;var Nx="CollapsibleContent",ES=p.forwardRef((e,t)=>{const{forceMount:r,...i}=e,a=jx(Nx,e.__scopeCollapsible);return n.jsx(kn,{present:r||a.open,children:({present:l})=>n.jsx(mF,{...i,ref:t,present:l})})});ES.displayName=Nx;var mF=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:i,children:a,...l}=e,d=jx(Nx,r),[u,h]=p.useState(i),m=p.useRef(null),g=Xe(t,m),y=p.useRef(0),w=y.current,C=p.useRef(0),k=C.current,N=d.open||u,j=p.useRef(N),b=p.useRef(void 0);return p.useEffect(()=>{const S=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(S)},[]),qt(()=>{const S=m.current;if(S){b.current=b.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";const E=S.getBoundingClientRect();y.current=E.height,C.current=E.width,j.current||(S.style.transitionDuration=b.current.transitionDuration,S.style.animationName=b.current.animationName),h(i)}},[d.open,i]),n.jsx($e.div,{"data-state":Sx(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!N,...l,ref:g,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":k?`${k}px`:void 0,...e.style},children:N&&a})});function Sx(e){return e?"open":"closed"}var xF=CS,gF=kS,yF=ES,cr="Accordion",vF=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Cx,bF,wF]=vu(cr),[Uu]=_n(cr,[wF,SS]),_x=SS(),RS=ft.forwardRef((e,t)=>
578{const{type:r,...i}=e,a=i,l=i;return n.jsx(Cx.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?n.jsx(CF,{...l,ref:t}):n.jsx(SF,{...a,ref:t})})});RS.displayName=cr;var[TS,jF]=Uu(cr),[PS,NF]=Uu(cr,{collapsible:!1}),SF=ft.forwardRef((e,t)=>{const{value:r,defaultValue:i,onValueChange:a=()=>{},collapsible:l=!1,...d}=e,[u,h]=rr({prop:r,defaultProp:i??"",onChange:a,caller:cr});return n.jsx(TS,{scope:e.__scopeAccordion,value:ft.useMemo(()=>u?[u]:[],[u]),onItemOpen:h,onItemClose:ft.useCallback(()=>l&&h(""),[l,h]),children:n.jsx(PS,{scope:e.__scopeAccordion,collapsible:l,children:n.jsx(AS,{...d,ref:t})})})}),CF=ft.forwardRef((e,t)=>{const{value:r,defaultValue:i,onValueChange:a=()=>{},...l}=e,[d,u]=rr({prop:r,defaultProp:i??[],onChange:a,caller:cr}),h=ft.useCallback(g=>u((y=[])=>[...y,g]),[u]),m=ft.useCallback(g=>u((y=[])=>y.filter(w=>w!==g)),[u]);return n.jsx(TS,{scope:e.__scopeAccordion,value:d,onItemOpen:h,onItemClose:m,children:n.jsx(PS,{scope:e.__scopeAccordion,collapsible:!0,children:n.jsx(AS,{...l,ref:t})})})}),[_F,Wu]=Uu(cr),AS=ft.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:i,dir:a,orientation:l="vertical",...d}=e,u=ft.useRef(null),h=Xe(u,t),m=bF(r),y=Hl(a)==="ltr",w=ve(e.onKeyDown,C=>{var M;if(!vF.includes(C.key))return;const k=C.target,N=m().filter(ne=>{var Q;return!((Q=ne.ref.current)!=null&&Q.disabled)}),j=N.findIndex(ne=>ne.ref.current===k),b=N.length;if(j===-1)return;C.preventDefault();let S=j;const E=0,R=b-1,O=()=>{S=j+1,S>R&&(S=E)},$=()=>{S=j-1,S<E&&(S=R)};switch(C.key){case"Home":S=E;break;case"End":S=R;break;case"ArrowRight":l==="horizontal"&&(y?O():$());break;case"ArrowDown":l==="vertical"&&O();break;case"ArrowLeft":l==="horizontal"&&(y?$():O());break;case"ArrowUp":l==="vertical"&&$();break}const V=S%b;(M=N[V].ref.current)==null||M.focus()});return n.jsx(_F,{scope:r,disabled:i,direction:a,orientation:l,children:n.jsx(Cx.Slot,{scope:r,children:n.jsx($e.div,{...d,"data-orientation":l,ref:h,onKeyDown:i?void 0:w})})})}
578),du="AccordionItem",[kF,kx]=Uu(du),OS=ft.forwardRef((e,t)=>{const{__scopeAccordion:r,value:i,...a}=e,l=Wu(du,r),d=jF(du,r),u=_x(r),h=Sn(),m=i&&d.value.includes(i)||!1,g=l.disabled||e.disabled;return n.jsx(kF,{scope:r,open:m,disabled:g,triggerId:h,children:n.jsx(xF,{"data-orientation":l.orientation,"data-state":BS(m),...u,...a,ref:t,disabled:g,open:m,onOpenChange:y=>{y?d.onItemOpen(i):d.onItemClose(i)}})})});OS.displayName=du;var IS="AccordionHeader",MS=ft.forwardRef((e,t)=>{const{__scopeAccordion:r,...i}=e,a=Wu(cr,r),l=kx(IS,r);return n.jsx($e.h3,{"data-orientation":a.orientation,"data-state":BS(l.open),"data-disabled":l.disabled?"":void 0,...i,ref:t})});MS.displayName=IS;var lm="AccordionTrigger",DS=ft.forwardRef((e,t)=>{const{__scopeAccordion:r,...i}=e,a=Wu(cr,r),l=kx(lm,r),d=NF(lm,r),u=_x(r);return n.jsx(Cx.ItemSlot,{scope:r,children:n.jsx(gF,{"aria-disabled":l.open&&!d.collapsible||void 0,"data-orientation":a.orientation,id:l.triggerId,...u,...i,ref:t})})});DS.displayName=lm;var LS="AccordionContent",FS=ft.forwardRef((e,t)=>{const{__scopeAccordion:r,...i}=e,a=Wu(cr,r),l=kx(LS,r),d=_x(r);return n.jsx(yF,{role:"region","aria-labelledby":l.triggerId,"data-orientation":a.orientation,...d,...i,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});FS.displayName=LS;function BS(e){return e?"open":"closed"}var EF=RS,RF=OS,TF=MS,zS=DS,$S=FS;const PF=EF,US=p.forwardRef(({className:e,...t},r)=>n.jsx(RF,{ref:r,className:Pe("border-b",e),...t}));US.displayName="AccordionItem";const WS=p.forwardRef(({className:e,children:t,...r},i)=>n.jsx(TF,{className:"flex",children:n.jsxs(zS,{ref:i,className:Pe("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,n.jsx(Ml,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));WS.displayName=zS.displayName;const HS=p.forwardRef(({className:e,children:t,...r},i)=>n.jsx($S,{ref:i,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:n.jsx("div",{className:Pe("pb-4 pt-0",e),children:t})}));HS.displayName=$S.displayName;const _d=(e,t={})=>{let r=`/${e.toLowerCase()}`;if(Object.keys(t).length>0){const i=Object.keys(t).map(a=>`${a}=${t[a]}`).join("&");r+=`?${i}`}return r};function AF(){const[e,t]=p.useState(null),[r,i]=p.useState(!0),[a,l]=p.useState("overview"),[d,u]=p.useState([]),[h,m]=p.useState([]),[g,y]=p.useState([]),[w,C]=p.useState([]),[k,N]=p.useState({}),[j,b]=p.useState([]),[S,E]=p.useState([]),[R,O]=p.useState(!1),[$,V]=p.useState(null),[M,ne]=p.useState("all"),[Q,ie]=p.useState("all"),[ee,Z]=p.useState(""),[L,W]=p.useState(null),[te,le]=p.useState({type:"",text:""});p.useEffect(()=>{G()},[]);const G=async()=>{try{const T=await Fe.auth.me();if(T.role!=="admin"){le({type:"error",text:"Access denied. Admin privileges required."}),i(!1);return}t(T),await q()}catch{console.log("Authentication failed, redirecting to login."),Fe.auth.redirectToLogin(window.location.href)}finally{i(!1)}},q=async()=>{try{const[T,re,se,de,be,Ae]=await Promise.all([tt.BusinessListing.list("-created_date"),tt.DocumentUpload.list("-created_date"),tt.ConsultationChat.list("-created_date"),tt.ContactSubmission.list("-created_date"),tt.BlogPost.list("-created_date"),Fe.entities.KioskRequest.list("-created_date")]);u(T),m(re),y(se),C(de),b(be),E(Ae);const Ze=re.reduce((nt,J)=>{const ue=J.client_email;return nt[ue]||(nt[ue]={client_name:J.client_name,client_phone:J.client_phone,documents:[]}),nt[ue].documents.push(J),nt},{});N(Ze)}catch(T){console.error("Error loading data:",T),le({type:"error",text:"Failed to load dashboard data."})}},U=async(T,re)=>{try{await tt.BusinessListing.update(T,{is_approved:re}),le({type:"success",text:`Business listing ${re?"approved":"rejected"} successfully.`}),await q()}catch{le({type:"error",text:"Failed to update business listing."})}},A=async(T,re)=>{try{await tt.DocumentUpload.delete(T),le({type:"success",text:"Document deleted successfully."}),await q()}catch(se){console.error("Error deleting document:",se),le({type:"error",text:"Failed to delete document. Please try again."})}},X=async(T,re)=>{try{const se=k[T].documents;await Promise.all(se.map(de=>
578tt.DocumentUpload.delete(de.id))),le({type:"success",text:`All documents for ${re} have been deleted successfully.`}),await q()}catch(se){console.error("Error deleting client documents:",se),le({type:"error",text:"Failed to delete some or all documents. Please try again."})}},ge=async(T,re)=>{try{await tt.BlogPost.update(T,{is_published:!re}),le({type:"success",text:`Blog post ${re?"unpublished":"published"} successfully.`}),await q()}catch(se){console.error("Error updating blog post:",se),le({type:"error",text:"Failed to update blog post."})}},pe=async T=>{try{await tt.BlogPost.delete(T),le({type:"success",text:"Blog post deleted successfully."}),await q()}catch(re){console.error("Error deleting blog post:",re),le({type:"error",text:"Failed to delete blog post."})}},B={totalBusinesses:d.length,approvedBusinesses:d.filter(T=>T.is_approved).length,pendingBusinesses:d.filter(T=>!T.is_approved).length,totalDocuments:h.length,totalConsultations:g.length,completedConsultations:g.filter(T=>T.consultation_status==="completed").length,totalContacts:w.length,highPriorityLeads:g.filter(T=>T.priority_score>=7).length,totalBlogs:j.length,publishedBlogs:j.filter(T=>T.is_published).length};return r?n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-20",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"animate-pulse space-y-8",children:[n.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/3"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6",children:[" ",[...Array(5)].map((T,re)=>n.jsx("div",{className:"h-32 bg-gray-200 rounded-lg"},re))]})]})})}):!e||e.role!=="admin"?n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-20",children:n.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsx(ke,{className:"border-0 shadow-xl",children:n.jsxs(Re,{className:"p-12 text-center",children:[n.jsx(sn,{className:"w-16 h-16 text-red-500 mx-auto mb-4"}),n.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Access Denied"}),n.jsx("p",{className:"text-gray-600",children:"You need administrator privileges to access this dashboard."})]})})})}):n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-8",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"mb-8",children:[n.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Admin Dashboard"}),n.jsx("p",{className:"text-gray-600",children:"Manage business listings, consultations, and client communications"})]}),te.text&&n.jsx("div",{className:"mb-8",children:n.jsxs(Zr,{className:te.type==="error"?"border-red-200 bg-red-50":"border-green-200 bg-green-50",children:[te.type==="error"?n.jsx(sn,{className:"h-4 w-4 text-red-600"}):n.jsx(Ht,{className:"h-4 w-4 text-green-600"}),n.jsx(es,{className:te.type==="error"?"text-red-800":"text-green-800",children:te.text})]})}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[" ",n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsxs(Re,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Total Businesses"}),n.jsx("p",{className:"text-2xl font-bold text-gray-900",children:B.totalBusinesses})]}),n.jsx(bt,{className:"w-8 h-8 text-blue-500"})]}),n.jsxs("div",{className:"mt-2 text-sm text-gray-600",children:[B.approvedBusinesses," approved, ",B.pendingBusinesses," pending"]})]})}),n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsxs(Re,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Consultations"}),n.jsx("p",{className:"text-2xl font-bold text-gray-900",children:B.totalConsultations})]}),n.jsx(hm,{className:"w-8 h-8 text-green-500"})]}),n.jsxs("div",{className:"mt-2 text-sm text-gray-600",children:[B.completedConsultations," completed"]})]})}),n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsxs(Re,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Documents"}),n.jsx("p",{className:"text-2xl font-bold text-gray-900",children:B.totalDocuments})]}),n.jsx(Nn,{className:"w-8 h-8 text-purple-500"})]}),n.jsx("div",{className:"mt-2 text-sm text-gray-600",children:"Client uploads"})]})}),n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsxs(Re,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Blog Posts"}),n.jsx("p",{className:"text-2xl font-bold text-gray-900",children:B.totalBlogs})]}),n.jsx(Gr,{className:"w-8 h-8 text-indigo-500"})]}),n.jsxs("div",{className:"mt-2 text-sm text-gray-600",children:[B.publishedBlogs," published"]})]})}),n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsxs(Re,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"High Priority Leads"}),n.jsx("p",{className:"text-2xl font-bold text-gray-900",children:B.highPriorityLeads})]}),n.jsx(Zn,{className:"w-8 h-8 text-orange-500"})]}),n.jsx("div",{className:"mt-2 text-sm text-gray-600",children:"Score 7+ consultations"})]})})]}),n.jsxs(k8,{value:a,onValueChange:l,className:"space-y-6",children:[n.jsxs(aN,{className:"grid w-full grid-cols-7",children:[n.jsx(Rs,{value:"overview",children:"Overview"}),n.jsx(Rs,{value:"businesses",children:"Business Listings"}),n.jsx(Rs,{value:"consultations",children:"Consultations"}),n.jsx(Rs,{value:"documents",children:"Documents"}),n.jsx(Rs,{value:"blogs",children:"Blog Posts"}),n.jsxs(Rs,{value:"kiosk-requests",className:"flex items-center gap-1",children:[n.jsx(kv,{className:"w-4 h-4"})," Kiosk Requests ",S.filter(T=>T.status==="new").length>0&&n.jsx("span",{className:"ml-1 bg-blue-500 text-white text-xs rounded-full px-1.5",children:S.filter(T=>T.status==="new").length})]}),n.jsxs(Rs,{value:"kiosk",className:"flex items-center gap-1",children:[n.jsx(Gb,{className:"w-4 h-4"})," Kiosk"]})]}),n.jsx(Ts,{value:"overview",className:"space-y-6",children:n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsxs(Ke,{className:"flex items-center",children:[n.jsx(bt,{className:"w-5 h-5 mr-2 text-blue-500"}),"Recent Business Submissions"]})}),n.jsx(Re,{className:"space-y-4",children:d.slice(0,5).map(T=>n.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx("h4",{className:"font-medium text-gray-900",children:T.business_name}),n.jsx("p",{className:"text-sm text-gray-600",children:T.category})]}),n.jsx(Ot,{className:T.is_approved?"bg-green-100 text-green-800":"bg-yellow-100 text-yellow-800",children:T.is_approved?"Approved":"Pending"})]},T.id))})]}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsxs(Ke,{className:"flex items-center",children:[n.jsx(Zn,{className:"w-5 h-5 mr-2 text-orange-500"}),"High Priority Consultations"]})}),n.jsx(Re,{className:"space-y-4",children:g.filter(T=>T.priority_score>=7).slice(0,5).map(T=>n.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx("h4",{className:"font-medium text-gray-900",children:T.client_name}),n.jsx("p",{className:"text-sm text-gray-600",children:T.client_email})]}),n.jsx("div",{className:"flex items-center space-x-2",children:n.jsxs(Ot,{className:"bg-orange-100 text-orange-800",children:["Score: ",T.priority_score]})})]},T.id))})]})]})}),n.jsxs(Ts,{value:"businesses",className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-center justify-between",children:[n.jsxs("div",{className:"flex gap-4 items-center",children:[n.jsxs("div",{className:"relative",children:[n.jsx(ra,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"}),n.jsx(Ie,{placeholder:"Search businesses...",value:ee,onChange:T=>Z(T.target.value),className:"pl-10 w-64"})]}),n.jsxs(sr,{value:M,onValueChange:ne,children:[n.jsx(zn,{className:"w-40",children:n.jsx(ir,{placeholder:"Filter"})}),n.jsxs($n,{children:[n.jsx(at,{value:"all",children:"All Status"}),n.jsx(at,{value:"approved",children:"Approved"}),n.jsx(at,{value:"pending",children:"Pending"})]})]})]}),n.jsxs(oe,{onClick:()=>O(!0),className:"bg-[#0f2d54] hover:bg-[#1a3f6f] text-white gap-2",children:[n.jsx(Nr,{className:"w-4 h-4"}),"Add Business Listing"]})]}),n.jsx(R8,{open:R,onOpenChange:O,onSuccess:q}),n.jsx(P8,{open:!!$,onOpenChange:T=>{T||V(null)},listing:$,onSuccess:q}),n.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-6",children:d.filter(T=>{const re=T.business_name.toLowerCase().includes(ee.toLowerCase())||T.description.toLowerCase().includes(ee.toLowerCase()),se=M==="all"||M==="approved"&&T.is_approved||M==="pending"&&!T.is_approved;return re&&se}).map(T=>n.jsxs(ke,{className:"border-0 shadow-lg hover:shadow-xl transition-shadow",children:[T.thumbnail_url&&n.jsx("div",{className:"aspect-[16/10] w-full overflow-hidden rounded-t-lg",children:n.jsx("img",{src:T.thumbnail_url,alt:`${T.business_name} thumbnail`,className:"w-full h-full object-cover"})}),n.jsx(qe,{children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[T.logo_url?n.jsx("img",{src:T.logo_url,alt:"Logo",className:"w-12 h-12 rounded-lg object-cover"}):n.jsx("div",{className:"w-12 h-12 bg-gray-200 rounded-lg flex items-center justify-center",children:n.jsx(bt,{className:"w-6 h-6 text-gray-400"})}),n.jsxs("div",{children:[n.jsx(Ke,{className:"text-lg",children:T.business_name}),n.jsx("p",{className:"text-sm text-gray-600",children:T.category})]})]}),n.jsxs(wS,{children:[n.jsx(jS,{asChild:!0,children:n.jsx(oe,{variant:"ghost",size:"icon",children:n.jsx(zk,{className:"w-4 h-4"})})}),n.jsxs(wx,{children:[n.jsxs(Gs,{onClick:()=>W(T),children:[n.jsx(Bi,{className:"w-4 h-4 mr-2"}),"View Details"]}
578),n.jsxs(Gs,{onClick:()=>V(T),children:[n.jsx(Rv,{className:"w-4 h-4 mr-2"}),"Edit"]}),!T.is_approved&&n.jsxs(Gs,{onClick:()=>U(T.id,!0),children:[n.jsx(Ht,{className:"w-4 h-4 mr-2"}),"Approve"]}),T.is_approved&&n.jsxs(Gs,{onClick:()=>U(T.id,!1),children:[n.jsx(sn,{className:"w-4 h-4 mr-2"}),"Reject"]})]})]})]})}),n.jsxs(Re,{children:[n.jsxs("p",{className:"text-gray-600 mb-4",children:[T.description.substring(0,100),"..."]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(Ot,{className:T.is_approved?"bg-green-100 text-green-800":"bg-yellow-100 text-yellow-800",children:T.is_approved?"Approved":"Pending"}),n.jsx("p",{className:"text-xs text-gray-500",children:Ci(new Date(T.created_date),"MMM d, yyyy")})]})]})]},T.id))})]}),n.jsxs(Ts,{value:"consultations",className:"space-y-6",children:[n.jsx("div",{className:"flex gap-4 items-center",children:n.jsxs(sr,{value:Q,onValueChange:ie,children:[n.jsx(zn,{className:"w-48",children:n.jsx(ir,{placeholder:"Filter by status"})}),n.jsxs($n,{children:[n.jsx(at,{value:"all",children:"All Consultations"}),n.jsx(at,{value:"active",children:"Active"}),n.jsx(at,{value:"completed",children:"Completed"}),n.jsx(at,{value:"high-priority",children:"High Priority"})]})]})}),n.jsx("div",{className:"space-y-4",children:g.filter(T=>Q==="all"?!0:Q==="high-priority"?T.priority_score>=7:T.consultation_status===Q).map(T=>n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsxs(Re,{className:"p-6",children:[n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center space-x-3 mb-2",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:T.client_name}),n.jsxs(Ot,{className:T.priority_score>=7?"bg-orange-100 text-orange-800":"bg-blue-100 text-blue-800",children:["Score: ",T.priority_score,"/10"]}),n.jsx(Ot,{className:T.consultation_status==="completed"?"bg-green-100 text-green-800":"bg-yellow-100 text-yellow-800",children:T.consultation_status})]}),n.jsxs("div",{className:"space-y-2 mb-4",children:[n.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[n.jsx(Bn,{className:"w-4 h-4 mr-2"}),T.client_email]}),T.client_phone&&n.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[n.jsx(Vt,{className:"w-4 h-4 mr-2"}),T.client_phone]})]}),n.jsx("p",{className:"text-gray-700 mb-2",children:T.tax_situation}),n.jsx("p",{className:"text-sm text-gray-600",children:T.services_interested})]}),n.jsx("div",{className:"flex space-x-2",children:n.jsxs(Zs,{children:[n.jsx(e6,{asChild:!0,children:n.jsxs(oe,{variant:"outline",size:"sm",children:[n.jsx(Bi,{className:"w-4 h-4 mr-2"}),"View Chat"]})}),n.jsxs(Vr,{className:"max-w-2xl max-h-[70vh] overflow-y-auto",children:[n.jsx(qr,{children:n.jsxs(Kr,{children:["Chat History - ",T.client_name]})}),n.jsx("div",{className:"space-y-4",children:T.chat_messages&&JSON.parse(T.chat_messages).map((re,se)=>n.jsx("div",{className:`flex ${re.type==="user"?"justify-end":"justify-start"}`,children:n.jsx("div",{className:`max-w-xs p-3 rounded-lg ${re.type==="user"?"bg-blue-500 text-white":"bg-gray-100 text-gray-900"}`,children:n.jsx("p",{className:"text-sm",children:re.content})})},se))})]})]})})]}),n.jsx("div",{className:"flex items-center justify-between mt-4 pt-4 border-t",children:n.jsx("p",{className:"text-xs text-gray-500",children:Ci(new Date(T.created_date),"MMM d, yyyy 'at' h:mm a")})})]})},T.id))})]}),n.jsx(Ts,{value:"documents",className:"space-y-6",children:n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsxs(Ke,{className:"flex items-center justify-between",children:[n.jsx("span",{children:"Client Document Submissions"}),n.jsxs("div",{className:"text-sm text-gray-600",children:[Object.keys(k).length," clients with documents"]})]})}),n.jsxs(Re,{children:[n.jsx(PF,{type:"single",collapsible:!0,className:"w-full",children:Object.entries(k).map(([T,re])=>n.jsxs(US,{value:T,children:[n.jsx(WS,{className:"hover:bg-gray-50 px-4 rounded-lg",children:n.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between w-full pr-4",children:[n.jsxs("div",{className:"text-left",children:[n.jsx("h4",{className:"font-semibold text-lg text-gray-900",children:re.client_name}),n.jsxs("div",{className:"flex items-center text-sm text-gray-600 space-x-4 mt-1",children:[n.jsxs("span",{className:"flex items-center",children:[n.jsx(Bn,{className:"w-4 h-4 mr-2"})," ",T]}),re.client_phone&&n.jsxs("span",{className:"flex items-center",children:[n.jsx(Vt,{className:"w-4 h-4 mr-2"})," ",re.client_phone]})]})]}),n.jsxs("div",{className:"flex items-center gap-2 mt-2 md:mt-0",children:[n.jsxs(Ot,{variant:"secondary",children:[re.documents.length," document(s)"]}),n.jsxs(Ei,{children:[n.jsx(Ri,{asChild:!0,children:n.jsxs(oe,{variant:"destructive",size:"sm",className:"text-xs px-2 py-1 h-8",onClick:se=>se.stopPropagation(),children:[n.jsx(Bs,{className:"w-3 h-3 mr-1"}),"Delete All"]})}),n.jsxs($s,{children:[n.jsxs(Us,{children:[n.jsxs(Hs,{children:["Delete All Documents for ",re.client_name,"?"]}),n.jsxs(Vs,{children:["This will permanently delete all ",re.documents.length," document(s) submitted by ",re.client_name," 
578(",T,"). This action cannot be undone."]})]}),n.jsxs(Ws,{children:[n.jsx(Ks,{children:"Cancel"}),n.jsx(qs,{onClick:()=>X(T,re.client_name),className:"bg-red-600 hover:bg-red-700",children:"Delete All Documents"})]})]})]})]})]})}),n.jsx(HS,{className:"p-4 bg-gray-50/50",children:n.jsx("div",{className:"space-y-3",children:re.documents.map(se=>n.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg bg-white",children:[n.jsxs("div",{className:"flex items-center space-x-3 flex-1",children:[n.jsx(Nn,{className:"w-5 h-5 text-purple-500"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("p",{className:"font-medium text-gray-800",children:se.file_name}),n.jsxs("p",{className:"text-xs text-gray-500",children:["Uploaded: ",Ci(new Date(se.created_date),"MMM d, yyyy 'at' h:mm a")]}),se.upload_notes&&n.jsxs("p",{className:"text-xs text-gray-600 mt-1 italic",children:['Note: "',se.upload_notes,'"']})]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(oe,{variant:"outline",size:"sm",asChild:!0,children:n.jsxs("a",{href:se.file_url,target:"_blank",rel:"noopener noreferrer",children:[n.jsx(Hb,{className:"w-4 h-4 mr-2"}),"Download"]})}),n.jsxs(Ei,{children:[n.jsx(Ri,{asChild:!0,children:n.jsx(oe,{variant:"destructive",size:"sm",children:n.jsx(Bs,{className:"w-4 h-4"})})}),n.jsxs($s,{children:[n.jsxs(Us,{children:[n.jsx(Hs,{children:"Delete Document?"}),n.jsxs(Vs,{children:['Are you sure you want to delete "',se.file_name,'"? This action cannot be undone.']})]}),n.jsxs(Ws,{children:[n.jsx(Ks,{children:"Cancel"}),n.jsx(qs,{onClick:()=>A(se.id),className:"bg-red-600 hover:bg-red-700",children:"Delete Document"})]})]})]})]})]},se.id))})})]},T))}),Object.keys(k).length===0&&n.jsxs("div",{className:"text-center py-12",children:[n.jsx(Nn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"No Documents Found"}),n.jsx("p",{className:"text-gray-600",children:"Document submissions will appear here once clients start uploading files."})]})]})]})}),n.jsxs(Ts,{value:"kiosk-requests",className:"space-y-6",children:[n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Kiosk Requests"}),n.jsxs(Ot,{variant:"secondary",children:[S.length," total"]})]}),n.jsxs("div",{className:"space-y-4",children:[S.map(T=>n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsx(Re,{className:"p-6",children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:T.full_name}),n.jsx(Ot,{className:T.status==="new"?"bg-blue-100 text-blue-800":T.status==="in_progress"?"bg-yellow-100 text-yellow-800":"bg-green-100 text-green-800",children:T.status==="new"?"New":T.status==="in_progress"?"In Progress":"Done"})]}),n.jsx("p",{className:"text-gray-700 mb-2",children:T.request}),n.jsx("p",{className:"text-xs text-gray-500",children:Ci(new Date(T.created_date),"MMM d, yyyy 'at' h:mm a")})]}),n.jsxs("div",{className:"flex gap-2 ml-4",children:[T.status!=="in_progress"&&T.status!=="done"&&n.jsx(oe,{size:"sm",variant:"outline",onClick:async()=>{await Fe.entities.KioskRequest.update(T.id,{status:"in_progress"}),q()},children:"In Progress"}),T.status!=="done"&&n.jsx(oe,{size:"sm",className:"bg-green-600 hover:bg-green-700 text-white",onClick:async()=>{await Fe.entities.KioskRequest.update(T.id,{status:"done"}),q()},children:"Mark Done"}),n.jsxs(Ei,{children:[n.jsx(Ri,{asChild:!0,children:n.jsx(oe,{variant:"destructive",size:"sm",children:n.jsx(Bs,{className:"w-4 h-4"})})}),n.jsxs($s,{children:[n.jsxs(Us,{children:[n.jsx(Hs,{children:"Delete Request?"}),n.jsxs(Vs,{children:["This will permanently delete this request from ",T.full_name,"."]})]}),n.jsxs(Ws,{children:[n.jsx(Ks,{children:"Cancel"}),n.jsx(qs,{onClick:async()=>{await Fe.entities.KioskRequest.delete(T.id),q()},className:"bg-red-600 hover:bg-red-700",children:"Delete"})]})]})]})]})]})})},T.id)),S.length===0&&n.jsxs("div",{className:"text-center py-12",children:[n.jsx(kv,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"No Kiosk Requests Yet"}),n.jsx("p",{className:"text-gray-600",children:"Requests submitted via the kiosk email button will appear here."})]})]})]}),n.jsx(Ts,{value:"kiosk",children:n.jsx(K8,{})}),n.jsxs(Ts,{value:"blogs",className:"space-y-6",children:[n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Blog Management"}),n.jsx(We,{to:_d("blog-editor"),children:n.jsxs(oe,{className:"bg-indigo-600 hover:bg-indigo-700",children:[n.jsx(Nr,{className:"w-5 h-5 mr-2"}),"Create New Post"]})})]}),n.jsx("div",{className:"space-y-4",children:j.map(T=>n.jsx(ke,{className:"border-0 shadow-lg",children:n.jsx(Re,{className:"p-6",children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center space-x-3 mb-2",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:T.title}),n.jsx(Ot,{className:T.is_published?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800",children:T.is_published?"Published":"Draft"}),n.jsx(Ot,{className:`border-0 ${T.category==="tax-tips"?"bg-blue-100 text-blue-800":T.category==="business-finance"?"bg-green-100 text-green-800":T.category==="industry-updates"?"bg-purple-100 text-purple-800":"bg-orange-100 text-orange-800"}`,children:T.category==="tax-tips"?"Tax Tips":T.category==="business-finance"?"Business Finance":T.category==="industry-updates"?"Industry Updates":"IRS News"})]}),n.jsx("p",{className:"text-gray-600 mb-3",children:T.excerpt}),n.jsxs("div",{className:"flex items-center text-sm text-gray-500",children:[n.jsx(er,{className:"w-4 h-4 mr-1"}),"Created ",Ci(new Date(T.created_date),"MMM d, yyyy 'at' h:mm a")]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[T.is_published&&n.jsx(We,{to:_d("blog-posts",{id:T.id}),target:"_blank",children:n.jsxs(oe,{variant:"outline",size:"sm",children:[n.jsx(Wi,{className:"w-4 h-4 mr-2"}),"View"]}
578)}),n.jsx(We,{to:_d("blog-editor",{id:T.id}),children:n.jsxs(oe,{variant:"outline",size:"sm",children:[n.jsx(Rv,{className:"w-4 h-4 mr-2"}),"Edit"]})}),n.jsx(oe,{variant:"outline",size:"sm",onClick:()=>ge(T.id,T.is_published),children:T.is_published?"Unpublish":"Publish"}),n.jsxs(Ei,{children:[n.jsx(Ri,{asChild:!0,children:n.jsx(oe,{variant:"destructive",size:"sm",children:n.jsx(Bs,{className:"w-4 h-4"})})}),n.jsxs($s,{children:[n.jsxs(Us,{children:[n.jsx(Hs,{children:"Delete Blog Post?"}),n.jsxs(Vs,{children:['Are you sure you want to delete "',T.title,'"? This action cannot be undone.']})]}),n.jsxs(Ws,{children:[n.jsx(Ks,{children:"Cancel"}),n.jsx(qs,{onClick:()=>pe(T.id),className:"bg-red-600 hover:bg-red-700",children:"Delete Post"})]})]})]})]})]})})},T.id))}),j.length===0&&n.jsxs("div",{className:"text-center py-12",children:[n.jsx(Gr,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"No Blog Posts Yet"}),n.jsx("p",{className:"text-gray-600 mb-6",children:"Start creating valuable content for your clients and website visitors."}),n.jsx(We,{to:_d("blog-editor"),children:n.jsxs(oe,{className:"bg-indigo-600 hover:bg-indigo-700",children:[n.jsx(Nr,{className:"w-5 h-5 mr-2"}),"Create Your First Post"]})})]})]})]})]})})}const OF={"tax-tips":"bg-blue-100 text-blue-800","business-finance":"bg-green-100 text-green-800","industry-updates":"bg-purple-100 text-purple-800","irs-news":"bg-orange-100 text-orange-800"},IF={"tax-tips":"Tax Tips","business-finance":"Business Finance","industry-updates":"Industry Updates","irs-news":"IRS News"};function MF(){const[e,t]=p.useState(null),[r,i]=p.useState(!0),[a,l]=p.useState("");p.useEffect(()=>{const h=new URLSearchParams(window.location.search).get("id");if(!h){l("Blog post not found."),i(!1);return}d(h)},[]);const d=async u=>{try{const h=await tt.BlogPost.get(u);t(h)}catch(h){console.error("Error loading blog post:",h),l("Could not load the blog post. It might have been removed.")}finally{i(!1)}};return r?n.jsx("div",{className:"min-h-screen bg-white py-20",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 animate-pulse",children:[n.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-12"}),n.jsx("div",{className:"h-10 bg-gray-200 rounded w-full mb-4"}),n.jsx("div",{className:"h-10 bg-gray-200 rounded w-3/4 mb-8"}),n.jsx("div",{className:"h-64 bg-gray-200 rounded-lg mb-8"}),n.jsxs("div",{className:"space-y-4",children:[n.jsx("div",{className:"h-4 bg-gray-200 rounded w-full"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-full"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-5/6"})]})]})}):a?n.jsx("div",{className:"min-h-screen bg-white py-20 text-center",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsx("h2",{className:"text-2xl font-bold text-red-600 mb-4",children:"Error"}),n.jsx("p",{className:"text-gray-600 mb-8",children:a}),n.jsx(We,{to:ze("Blog"),children:n.jsxs(oe,{variant:"outline",children:[n.jsx(jr,{className:"w-4 h-4 mr-2"}),"Back to Blog"]})})]})}):e?n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsxs("section",{className:"relative py-20 lg:py-32 bg-gray-800 text-white overflow-hidden",children:[e.featured_image_url&&n.jsx("div",{className:"absolute inset-0 bg-cover bg-center z-0",style:{backgroundImage:`url(${e.featured_image_url})`},children:n.jsx("div",{className:"absolute inset-0 bg-black opacity-60"})}),n.jsxs("div",{className:"relative max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 z-10",children:[n.jsx("div",{className:"mb-6",children:n.jsx(We,{to:ze("Blog"),children:n.jsxs(oe,{variant:"outline",className:"bg-transparent text-white border-white/50 hover:bg-white/10",children:[n.jsx(jr,{className:"w-4 h-4 mr-2"}),"Back to All Posts"]})})}),n.jsx(Ot,{className:`${OF[e.category]} mb-4 border-0`,children:IF[e.category]}),n.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:e.title}),n.jsxs("div",{className:"flex items-center space-x-6 text-white/80",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(er,{className:"w-4 h-4"}),n.jsx("span",{children:Ci(new Date(e.created_date),"MMMM d, yyyy")})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx($o,{className:"w-4 h-4"}),n.jsx("span",{children:"By AMC Tax Services"})]})]})]})]}),n.jsx("section",{className:"py-16 lg:py-24",children:n.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("article",{className:"prose lg:prose-xl max-w-none text-gray-800",children:[n.jsx("p",{className:"lead text-xl text-gray-600 mb-8",children:e.excerpt}),e.content.split(`
579`).map((u,h)=>u.trim()&&n.jsx("p",{className:"mb-6 leading-relaxed",children:u},h))]})})}),n.jsx("section",{className:"py-20 bg-gradient-to-br from-[var(--brand-navy)] to-[var(--brand-light-blue)]",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-6",children:"Need Personalized Tax Advice?"}),n.jsx("p",{className:"text-xl text-blue-100 mb-8 max-w-2xl mx-auto",children:"This article provides general information. For advice tailored to your specific situation, schedule a free consultation with our certified professionals."}),n.jsx(We,{to:ze("Consultation"),children:n.jsxs(oe,{size:"lg",className:"bg-white text-[var(--brand-navy)] hover:bg-gray-50 px-8 py-4 text-lg font-semibold rounded-xl transition-all duration-300 transform hover:scale-105",children:["Schedule Free Consultation",n.jsx(jr,{className:"w-5 h-5 ml-2 transform rotate-180"})]})})]})})]}):null}function DF(){const[e,t]=p.useState(null),[r,i]=p.useState(!0),[a,l]=
579p.useState(!1),[d,u]=p.useState(null),[h,m]=p.useState({type:"",text:""}),[g,y]=p.useState({title:"",content:"",excerpt:"",category:"tax-tips",featured_image_url:"",is_published:!1}),[w,C]=p.useState(null);p.useEffect(()=>{k()},[]);const k=async()=>{try{const b=await tt.User.me();if(b.role!=="admin"){m({type:"error",text:"Access denied. Admin privileges required."}),i(!1);return}t(b);const E=new URLSearchParams(window.location.search).get("id");if(E){const R=await tt.BlogPost.get(E);u(R),y({title:R.title,content:R.content,excerpt:R.excerpt,category:R.category,featured_image_url:R.featured_image_url||"",is_published:R.is_published})}}catch(b){console.error("Authentication or post loading failed:",b),tt.User.loginWithRedirect(window.location.href)}finally{i(!1)}},N=b=>{const{name:S,value:E}=b.target;y(R=>({...R,[S]:E}))},j=async(b=!1)=>{if(!g.title||!g.content||!g.excerpt){m({type:"error",text:"Please fill in all required fields."});return}l(!0),m({type:"info",text:"Saving..."});try{let S={...g,is_published:b};if(w){m({type:"info",text:"Uploading image, please wait..."});const{file_url:E}=await Js.UploadFile({file:w});S.featured_image_url=E}if(d)await tt.BlogPost.update(d.id,S),m({type:"success",text:`Post ${b?"published":"saved"} successfully!`});else{const E=await tt.BlogPost.create(S);u(E),m({type:"success",text:`Post ${b?"published":"created"} successfully!`}),window.history.replaceState({},"",`${ze("blog-editor")}?id=${E.id}`)}y(E=>({...E,...S})),C(null)}catch(S){console.error("Save error:",S),m({type:"error",text:"Failed to save post. Please try again."})}finally{l(!1)}};return r?n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-20",children:n.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"animate-pulse space-y-8",children:[n.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/3"}),n.jsx("div",{className:"h-96 bg-gray-200 rounded"})]})})}):!e||e.role!=="admin"?n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-20",children:n.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsx(ke,{className:"border-0 shadow-xl",children:n.jsxs(Re,{className:"p-12 text-center",children:[n.jsx(sn,{className:"w-16 h-16 text-red-500 mx-auto mb-4"}),n.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Access Denied"}),n.jsx("p",{className:"text-gray-600",children:"You need administrator privileges to access the blog editor."})]})})})}):n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-8",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"flex items-center justify-between mb-8",children:[n.jsxs("div",{children:[n.jsx(We,{to:ze("AdminDashboard"),children:n.jsxs(oe,{variant:"outline",className:"mb-4",children:[n.jsx(jr,{className:"w-4 h-4 mr-2"}),"Back to Dashboard"]})}),n.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:d?"Edit Blog Post":"Create New Blog Post"})]}),n.jsx("div",{className:"flex space-x-3",children:d&&g.is_published&&n.jsx(We,{to:ze("BlogPostDetail")+`?id=${d.id}`,target:"_blank",children:n.jsxs(oe,{variant:"outline",children:[n.jsx(Bi,{className:"w-4 h-4 mr-2"}),"Preview"]})})})]}),h.text&&n.jsx("div",{className:"mb-8",children:n.jsxs(Zr,{className:h.type==="error"?"border-red-200 bg-red-50":h.type==="success"?"border-green-200 bg-green-50":"border-blue-200 bg-blue-50",children:[h.type==="error"?n.jsx(sn,{className:"h-4 w-4 text-red-600"}):h.type==="success"?n.jsx(v5,{className:"h-4 w-4 text-green-600"}):n.jsx(Kb,{className:"h-4 w-4 text-blue-600"}),n.jsx(es,{className:h.type==="error"?"text-red-800":h.type==="success"?"text-green-800":"text-blue-800",children:h.text})]})}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[n.jsx("div",{className:"lg:col-span-2 space-y-6",children:n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{children:"Post Content"})}),n.jsxs(Re,{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"title",children:"Title *"}),n.jsx(Ie,{id:"title",name:"title",value:g.title,onChange:N,placeholder:"Enter blog post title",className:"mt-1 text-lg"})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"excerpt",children:"Excerpt *"}),n.jsx(It,{id:"excerpt",name:"excerpt",value:g.excerpt,onChange:N,placeholder:"Brief summary of the post (shown on blog listing)",className:"mt-1",rows:3})]}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"content",children:"Content *"}),n.jsx(It,{id:"content",name:"content",value:g.content,onChange:N,placeholder:"Write your blog post content here...",className:"mt-1 min-h-[400px]"})]})]})]})}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{children:"Publish"})}),n.jsxs(Re,{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-sm text-gray-600",children:"Status:"}),n.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${g.is_published?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:g.is_published?"Published":"Draft"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(oe,{onClick:()=>j(!1),disabled:a,variant:"outline",className:"w-full",children:a?"Saving...":"Save Draft"}),n.jsx(oe,{onClick:()=>j(!0),disabled:a,className:"w-full bg-indigo-600 hover:bg-indigo-700",children:a?"Publishing...":g.is_published?"Update & Keep Published":"Publish"})]})]})]}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{children:"Post Settings"})}),n.jsx(Re,{className:"space-y-4",children:n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"category",children:"Category"}),n.jsxs(sr,{value:g.category,onValueChange:b=>y(S=>({...S,category:b})),children:[n.jsx(zn,{className:"mt-1",children:n.jsx(ir,{})}),n.jsxs($n,{children:[n.jsx(at,{value:"tax-tips",children:"Tax Tips"}),n.jsx(at,{value:"business-finance",children:"Business Finance"}),n.jsx(at,{value:"industry-updates",children:"Industry Updates"}),n.jsx(at,{value:"irs-news",children:"IRS News"})]})]})]})})]}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{children:"Featured Image"})}),n.jsxs(Re,{className:"space-y-4",children:[w&&n.jsx("div",{className:"aspect-[16/10] overflow-hidden rounded-lg border",children:n.jsx("img",{src:URL.createObjectURL(w),alt:"New featured preview",className:"w-full h-full object-cover"})}),!w&&g.featured_image_url&&n.jsx("div",{className:"aspect-[16/10] overflow-hidden rounded-lg",children:n.jsx("img",{src:g.featured_image_url,alt:"Featured",className:"w-full h-full object-cover"})}),n.jsxs("div",{children:[n.jsx(Ne,{htmlFor:"featured_image_upload",children:g.featured_image_url?"Change Image":"Upload Image"}),n.jsx(Ie,{id:"featured_image_upload",type:"file",accept:"image/*",onChange:b=>C(b.target.files[0]),className:"mt-1 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-[var(--brand-navy)] hover:file:bg-blue-100"}),w&&n.jsxs("p",{className:"text-sm text-gray-500 mt-2",children:['New image selected: "',w.name,'". Click Save or Publish to upload.']})]})]})]})]})]})]})})}function LF(){return n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx("section",{className:"bg-gradient-to-br from-gray-50 to-blue-50 py-20 lg:py-28",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-black mb-6",children:"Visit Us"}),n.jsx("p",{className:"text-xl md:text-2xl text-gray-600 max-w-3xl mx-auto",children:"Your Local Accounting Partner - Just Around the C
579orner"})]})}),n.jsx("section",{className:"py-20",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[n.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:"At AMC Tax Services, we believe business should feel personal. When you walk through our doors, you’re not just a client, you’re a business owner we’re here to support."}),n.jsx("p",{className:"mt-4 text-lg text-gray-700 leading-relaxed",children:"Whether you’re stopping by to ask a question, review your books, or get started with payroll, our team is ready to help."})]}),n.jsx(ke,{className:"border-0 shadow-xl overflow-hidden",children:n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2",children:[n.jsxs("div",{className:"p-8 md:p-12",children:[n.jsxs(qe,{className:"p-0 mb-8",children:[n.jsx(Ke,{className:"text-3xl font-bold text-gray-900",children:"Ready to talk?"}),n.jsx("p",{className:"text-gray-600 mt-2",children:"Let’s meet in person. Whether you’re just starting your business or already established, we’re here to help."})]}),n.jsxs(Re,{className:"p-0 space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx(ni,{className:"w-6 h-6 text-[var(--brand-light-blue)] mt-1 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900",children:"Address"}),n.jsxs("p",{className:"text-gray-700",children:["2635 Cunningham Ave Suite 23,",n.jsx("br",{}),"San Jose, CA 95148, United States"]})]})]}),n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx(Zt,{className:"w-6 h-6 text-[var(--brand-light-blue)] mt-1 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900",children:"Hours"}),n.jsx("p",{className:"text-gray-700",children:"Monday to Friday: 9:00 AM – 6:00 PM"}),n.jsx("p",{className:"text-gray-700",children:"Saturday & Sunday: By appointment only"})]})]}),n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx(Vt,{className:"w-6 h-6 text-[var(--brand-light-blue)] mt-1 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900",children:"Phone"}),n.jsx("a",{href:"tel:408-258-2200",className:"text-gray-700 hover:text-[var(--brand-navy)] transition-colors",children:"(408) 258-2200"})]})]}),n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx(Bn,{className:"w-6 h-6 text-[var(--brand-light-blue)] mt-1 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900",children:"Email"}),n.jsx("a",{href:"mailto:[email protected]",className:"text-gray-700 hover:text-[var(--brand-navy)] transition-colors",children:"[email protected]"})]})]}),n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx(Ek,{className:"w-6 h-6 text-[var(--brand-light-blue)] mt-1 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900",children:"Parking"}),n.jsx("p",{className:"text-gray-700",children:"Free and easy parking available right in front of our office."})]})]})]}),n.jsx("div",{className:"pt-6 border-t",children:n.jsx("a",{href:"https://maps.app.goo.gl/81EVyTgdaL9ibyUo6",target:"_blank",rel:"noopener noreferrer",children:n.jsxs(oe,{className:"w-full brand-gradient text-white py-3",children:[n.jsx(ni,{className:"w-5 h-5 mr-2"}),"Get Directions on Google Maps"]})})})]})]}),n.jsx("div",{className:"bg-gray-200 min-h-[300px] lg:min-h-0",children:n.jsx("iframe",{src:"https://maps.google.com/maps?q=2635%20Cunningham%20Ave.%20Suite%20%2323%2C%20San%20Jose%2C%20CA%2095148&t=&z=15&ie=UTF8&iwloc=&output=embed",className:"w-full h-full",style:{border:0},allowFullScreen:"",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"AMC Tax Services Location"})})]})})]})})]})}const wb={"s-corporation":{icon:bt,title:"S-Corporation Tax Services",description:"Comprehensive tax solutions for S-Corporations, optimizing filings and minimizing shareholder tax burdens.",overview:"S-Corporations offer unique tax advantages by allowing profits and losses to pass through to shareholders' personal tax returns, avoiding double taxation. Our specialized S-Corp tax services ensure you maximize these benefits while maintaining full compliance with IRS requirements.",features:["Form 1120S preparation and filing","K-1 distribution calculations and reporting","Quarterly estimated tax planning","Payroll tax compliance for owner-employees","Shareholder basis tracking and adjustments","Election timing and optimization strategies"],benefits:["Avoid double taxation on corporate profits","Reduce self-employment taxes on distributions","Maximize deductions for business expenses","Ensure proper shareholder compensation","Maintain compliance with S-Corp requirements"],pricing:"Get a Free Estimate",timeline:"2-3 business days",whoNeedsIt:["Small businesses with multiple owners","Companies seeking pass-through taxation","Businesses wanting to minimize payroll taxes","Established LLCs considering conversion"]},corporation:{icon:bt,title:"C-Corporation Tax Services",description:"Complete tax solutions for c
579orporations, ensuring compliance and optimizing tax strategies.",overview:"C-Corporations face unique tax challenges including potential double taxation and complex compliance requirements. Our corporate tax services help you navigate these complexities while identifying opportunities to minimize your tax burden.",features:["Form 1120 corporate tax return preparation","Quarterly estimated tax payments","Book-to-tax reconciliation","Section 199A deduction optimization","State and multi-state tax compliance","Corporate restructuring tax planning"],benefits:["Maximize corporate deductions and credits","Optimize timing of income and expenses","Ensure compliance across all jurisdictions","Strategic tax planning for growth","Professional representation during audits"],pricing:"Get a Free Estimate",timeline:"3-5 business days",whoNeedsIt:["Established corporations of all sizes","Companies with complex ownership structures","Businesses operating in multiple states","Corporations planning major transactions"]},"schedule-c":{icon:jn,title:"Schedule C - Self-Employed Tax Services",description:"Tailored tax services for self-employed individuals, maximizing deductions and minimizing liabilities.",overview:"Self-employed individuals face unique tax challenges including quarterly estimated payments, self-employment tax, and complex deduction tracking. Our Schedule C services ensure you capture every allowable deduction while maintaining proper documentation.",features:["Schedule C profit/loss preparation","Self-employment tax calculations","Quarterly estimated tax planning","Business expense categorization and optimization","Home office deduction analysis","Equipment depreciation strategies"],benefits:["Maximize business expense deductions","Minimize self-employment tax liability","Ensure accurate and compliant tax filings","Gain clarity on your business's financial health","Simplify your year-end tax process"],pricing:"Get a Free Estimate",timeline:"1-2 business days",whoNeedsIt:["Freelancers and independent contractors","Gig economy workers (e.g., Uber, DoorDash)","Sole proprietors and single-member LLCs","Anyone receiving a 1099-NEC or 1099-K"]},"1040-tax":{icon:Nn,title:"Individual 1040 Tax Preparation",description:"Expert tax preparation for individuals, ensuring accurate filings and optimized tax outcomes.",overview:"Filing your personal tax return can be complex, especially with changing tax laws. We provide expert preparation of your Form 1040 and all related schedules, ensuring accuracy, maximizing your deductions, and helping you claim every credit you're entitled to.",features:["Form 1040 and all state tax form preparation","Itemized deduction analysis (Schedule A)","Capital gains and losses reporting (Schedule D)","Rental income and expenses (Schedule E)","Education and retirement credit optimization","Electronic filing for faster refunds"],benefits:["Maximize your tax refund or minimize liability","Ensure accuracy and avoid IRS notices","Save time and reduce tax season stress","Understand your complete tax picture","Get professional advice on tax-saving strategies"],pricing:"Get a Free Estimate",timeline:"1-2 business days",whoNeedsIt:["Individuals and families","Homeowners with mortgage interest/property taxes","Investors with stocks, bonds, or crypto","Employees with W-2 income"]},"gig-workers":{icon:Hi,title:"Tax Services for Gig Workers",description:"Specialized tax services tailored for influencers, content creators, and gig economy workers.",overview:"The gig economy presents unique tax situations. We specialize in helping rideshare drivers, delivery drivers, influencers, and other independent contractors navigate their tax obligations, track expenses, and plan for quarterly payments.",features:["Identification of all eligible business deductions","Vehicle mileage and expense tracking","Quarterly estimated tax payment calculations","Self-employment tax guidance","Handling multiple 1099 forms (1099-K, 1099-NEC)","Home office and equipment deduction advice"],benefits:["Drastically reduce your taxable income","Avoid penalties for underpayment of taxes","Simplify the management of multiple income streams","Understand your true business profitability","Transition smoothly from employee to self-employed"],pricing:"Get a Free Estimate",timeline:"1-3 business days",whoNeedsIt:["Rideshare drivers (Uber, Lyft)","Food delivery drivers (DoorDash, Grubhub)","Social media influencers and content creators","Freelancers on platforms like Upwork or Fiverr"]},"retirement-planning":{icon:Kd,title:"Retirement Tax Planning",description:"Consulting services for retirement planning, offering tax-advantaged strategies and savings plans.",overview:"Effective retirement planning is about more than just saving; it's about saving smart. We help you understand and utilize tax-advantaged retirement accounts to build a secure future while minimizing your current tax burden.",features:["Analysis of retirement account options (401k, IRA, Roth IRA, SEP)","Contribution limit optimization","Tax implications of rollovers and distributions","Strategies for tax-efficient withdrawals in retirement","Social Security taxation planning","Catch-up contribution guidance"],benefits:["L
579ower your current-year taxable income","Grow your retirement savings tax-deferred or tax-free","Develop a clear, long-term financial strategy","Avoid costly penalties on early withdrawals","Ensure a more secure and comfortable retirement"],pricing:"Get a Free Estimate",timeline:"Consultation-based",whoNeedsIt:["Individuals planning for their future","Those nearing retirement age","Self-employed individuals setting up a retirement plan","Anyone looking to optimize their savings"]},"non-profit-tax-services":{icon:qb,title:"Non-Profit Tax Services",description:"Specialized tax services for non-profit organizations, ensuring compliance and maximizing tax benefits.",overview:"Non-profit organizations have unique and complex reporting requirements. Our specialized services ensure your organization maintains its tax-exempt status, complies with all IRS regulations, and files the necessary Form 990 series returns accurately and on time.",features:["Form 990, 990-EZ, or 990-N preparation","Assistance with obtaining and maintaining 501(c)(3) status","Unrelated Business Income Tax (UBIT) analysis","Public supp
579ort test calculations","Guidance on governance and best practices","State charity registration and filing"],benefits:["Maintain your valuable tax-exempt status","Ensure transparency with donors and the public","Avoid penalties for late or inaccurate filings","Navigate complex non-profit regulations with confidence","Focus on your mission, not on tax compliance"],pricing:"Get a Free Estimate",timeline:"5-7 business days",whoNeedsIt:["Public charities and private foundations","Churches and religious organizations","Social welfare organizations","Trade associations and community groups"]},"new-business-formation":{icon:vl,title:"New Business Formation",description:"Guidance and support for entrepreneurs starting new businesses, including entity selection and tax setup.",overview:"Starting a new business is exciting, but the initial setup is critical for long-term success. We guide you through the process, from choosing the right business structure to registering with the proper authorities, setting you up for financial success from day one.",features:["Consultation on entity selection (LLC, S-Corp, C-Corp)","Federal Employer Identification Number (EIN) application","State and local business registration assistance","S-Corporation election (Form 2553)","Guidance on initial bookkeeping setup","Consultation on owner compensation and payroll"],benefits:["Choose the most tax-advantaged structure for your goals","Ensure you are compliant from the very beginning","Avoid common and costly startup mistakes","Establish a solid financial foundation for your business","Save time and effort on complex paperwork"],pricing:"Get a Free Estimate",timeline:"Consultation-based",whoNeedsIt:["Aspiring entrepreneurs and startup founders","Freelancers transitioning to a formal business","Individuals purchasing an existing business","Anyone starting a new venture"]},"financial-statement-preparation":{icon:Gr,title:"Financial Statement Preparation",description:"Preparation of balance sheets and income statements for accurate financial reporting.",overview:"Accurate financial statements are the bedrock of sound business decisions and are often required for loans, investors, or internal analysis. We prepare clear, professional financial statements that provide a snapshot of your company's health and performance.",features:["Balance Sheet preparation","Income Statement (Profit & Loss) preparation","Statement of Cash Flows preparation","Statement of Retained Earnings","Compilation reports for external use","Customized management reports"],benefits:["Gain clear insight into your company's financial position","Make informed strategic decisions based on real data","Meet requirements for lenders, investors, and stakeholders","Track performance and identify trends","Improve financial management and control"],pricing:"Get a Free Estimate",timeline:"3-5 business days",whoNeedsIt:["Businesses seeking loans or investment","Companies needing to report to a board or shareholders","Owners who want a clear financial picture","Any business needing formal financial documents"]},"tax-planning-and-forecasting":{icon:Kd,title:"Tax Planning & Forecasting",description:"Proactive tax planning services to help anticipate and optimize future tax obligations.",overview:"The best tax strategy is a proactive one. Instead of just reacting at year-end, our tax planning and forecasting services help you make smart financial decisions throughout the year to minimize your tax liability and avoid surprises.",features:["Year-round strategic tax advice","Income and deduction timing analysis","Tax-saving scenario modeling","Estimated tax payment projections","Analysis of new tax law impacts on your business","Retirement and investment contribution planning"],benefits:["Legally minimize your tax burden","Avoid year-end tax surprises","Make more informed business decisions","Improve cash flow management","Achieve your long-term financial goals faster"],pricing:"Get a Free Estimate",timeline:"Consultation-based",whoNeedsIt:["Growing businesses with increasing profits","Individuals with fluctuating or high income","Business owners planning major transactions","Anyone who wants to be proactive about their taxes"]},"sales-tax-filing":{icon:Dl,title:"Sales Tax Filing Services",description:"Assistance with state and local sales tax filing, ensuring compliance with complex tax regulations.",overview:"Sales tax regulations are complex, vary by state, and are constantly changing, especially for e-commerce businesses. Our services ensure you collect the right amount of sales tax and file accurate returns on time, in every jurisdiction you operate.",features:["Sales tax registration in required states (Nexus analysis)","Calculation of sales tax liabilities","Preparation and filing of monthly, quarterly, or annual returns","Management of multi-state sales tax filings","Handling of sales tax notices and audits","E-commerce platform integration support"],benefits:["Avoid costly penalties for non-compliance","Save significant time on administrative tasks","Ensure accuracy in complex multi-state environments","Stay up-to-date with changing sales tax laws","Reduce the risk of a sales tax audit"],pricing:"Get a Free Estimate",timeline:"Varies by filing frequency",whoNeedsIt:["E-commerce businesses selling online","Retail stores with physical locations","Businesses selling products or services in multiple states","Companies struggling to keep up with sales tax rules"]},"estate-and-trust-tax-preparation":{icon:sa,title:"Estate & Trust Tax Preparation",description:"Specialized tax preparation for estates and trusts, ensuring compliance and optimizing outcomes for benef
579iciaries.",overview:"Administering an estate or trust comes with significant fiduciary responsibilities, including complex tax filings. We provide expert preparation of fiduciary (Form 1041) and estate tax (Form 706) returns, ensuring compliance and tax efficiency for beneficiaries.",features:["Form 1041 (U.S. Income Tax Return for Estates and Trusts) preparation","Form 706 (U.S. Estate Tax Return) preparation","K-1 preparation for beneficiaries","Fiduciary accounting assistance","Post-mortem tax planning strategies","Guidance on trust funding and asset distribution"],benefits:["Ensure compliance with complex IRS regulations","Minimize tax liabilities for the estate, trust, and beneficiaries","Accurate reporting and distribution to beneficiaries","Relieve the administrative burden on executors and trustees","Navigate the tax process with expert guidance"],pricing:"Get a Free Estimate",timeline:"Varies by complexity",whoNeedsIt:["Executors of estates","Trustees of living or testamentary trusts","Attorneys and financial advisors","Beneficiaries seeking to understand tax implications"]},"irs-negotiators":{icon:mm,title:"IRS Negotiation Services",description:"Skilled negotiation services with the IRS to resolve tax issues, including payment plans and offers in compromise.",overview:"Facing the IRS alone can be intimidating. As your professional representatives, we communicate directly with the IRS on your behalf to negotiate the best possible resolution for your tax debt, including payment plans, penalty relief, and settlements.",features:["Offer in Compromise (OIC) evaluation and submission","Installment Agreement negotiation","Penalty Abatement requests","Release of federal tax liens and levies","Currently Not Collectible status negotiation","All communication with the IRS handled by us"],benefits:["Potentially settle your tax debt for less than you owe","Stop aggressive IRS collection actions","Achieve a manageable payment plan","Remove the stress of dealing with the IRS","Gain a clear path to resolving your tax issues"],pricing:"Get a Free Estimate",timeline:"Varies by case",whoNeedsIt:["Individuals or businesses with significant tax debt","Those receiving threatening letters from the IRS","Taxpayers facing wage garnishments or bank levies","Anyone unable to pay their tax liability in full"]},"back-taxes":{icon:pm,title:"Back Taxes Resolution",description:"Assistance with resolving and filing past-due taxes, helping clients get back on track with the IRS.",overview:"Falling behind on tax filings can lead to mounting penalties and interest. We help you get caught up by preparing and filing all delinquent returns, addressing any outstanding liabilities, and getting you back in good standing with the IRS.",features:["Preparation and filing of multiple years of unfiled returns","Reconstruction of financial records if necessary","Calculation of total tax liability, including penalties and interest","Negotiation of payment options for the resulting debt","Strategic filing to optimize outcomes","Stopping of further collection actions"],benefits:["Become compliant with federal and state tax laws","Stop the accrual of further failure-to-file penalties","Prevent or stop IRS collection actions like liens or levies","Regain peace of mind and get a fresh start","Access past refunds you may be owed (within the statute of limitations)"],pricing:"Get a Free Estimate",timeline:"Varies by number of years",whoNeedsIt:["Individuals who haven't filed taxes for one or more years","Businesses with unfiled payroll or income tax returns","Taxpayers who have received notices for unfiled returns","Anyone needing to become compliant to apply for a loan or license"]},"irs-audits":{icon:sa,title:"IRS Audit Representation",description:"Professional representation and support during IRS audits, helping clients navigate the process with confidence.",overview:"An IRS audit notice can be one of the most stressful letters you can receive. Our team of experts will represent you before the IRS, manage all communications, prepare all necessary documentation, and defend your tax return to ensure the best possible outcome.",features:["Full representation before the IRS (Enrolled Agents)","Management of all audit correspondence and communication","Thorough review of your tax return and supporting documents","Preparation of all requested documentation for the auditor","Defense of your positions during the audit examination","Negotiation of audit findings and appeal options"],benefits:["You never have to meet or speak with the IRS yourself","Ensure your rights as a taxpayer are protected","Leverage our expertise in tax law and audit procedures","Minim
579ize potential tax liabilities, penalties, and interest","Drastically reduce the stress and time commitment of an audit"],pricing:"Get a Free Estimate",timeline:"Varies by audit scope",whoNeedsIt:["Individuals or businesses who have received an IRS audit letter","Taxpayers facing a correspondence, office, or field audit","Anyone feeling overwhelmed by an IRS information request","Those who want an expert to defend their tax return"]},"business-taxes":{icon:vl,title:"Comprehensive Business Tax Services",description:"Comprehensive tax services for businesses of all sizes, optimizing tax liabilities and ensuring compliance.",overview:"Our comprehensive business tax services provide a holistic approach to your company's tax needs. We go beyond simple preparation to offer strategic advice and year-round support, helping you navigate the complexities of business taxation and achieve your financial goals.",features:["Tax return preparation for all entity types (S-Corp, C-Corp, Partnership, LLC)","Proactive tax planning and strategy sessions","Quarterly and annual tax filing compliance","Deduction and credit optimization","State and local tax (SALT) compliance","Representation before tax authorities"],benefits:["Ensure full compliance with all tax regulations","Minimize your overall tax burden through strategic planning","Gain a trusted advisor for your business's financial decisions","Save time and resources to focus on running your business","Make confident financial decisions with a clear tax strategy"],pricing:"Get a Free Estimate",timeline:"Ongoing relationship",whoNeedsIt:["Small to medium-sized businesses","Startups and growing companies","Businesses with complex tax situations","Owners seeking a long-term strategic tax partner"]},"personal-tax":{icon:jn,title:"Comprehensive Personal Tax Services",description:"Expert preparation and filing of individual tax returns, ensuring accuracy and maximizing deductions.",overview:"Our personal tax services provide a comprehensive solution for individuals and families. We handle everything from simple W-2 filings to complex returns involving investments, rental properties, and small business income, ensuring you receive every deduction and credit you deserve.",features:["Form 1040 preparation and e-filing","Multi-state tax return filings","Itemized deduction optimization","Investment income reporting (stocks, crypto, etc.)","Rental property income and expense analysis (Schedule E)","Tax planning for life events (marriage, new baby, home purchase)"],benefits:["Maximize your refund and minimize your tax liability","Gain peace of mind knowing your taxes are done right","Understand the tax implications of your financial decisions","Save time and avoid the stress of tax software","Receive year-round support for your tax questions"],pricing:"Get a Free Estimate",timeline:"1-3 business days",whoNeedsIt:["Individuals and families with complex returns","Taxpayers with investment or rental income","Those who work or live in multiple states","Anyone seeking professional advice and maximum savings"]}},FF=[{title:"Personal Tax",slug:"personal-tax",icon:jn},{title:"Business Taxes",slug:"business-taxes",icon:vl},{title:"Payroll Services",slug:"payroll",icon:Hi,isStandalone:!0},{title:"Bookkeeping",slug:"bookkeeping",icon:Gr,isStandalone:!0},{title:"IRS Negotiators",slug:"irs-negotiators",icon:mm}];function BF(){const[e,t]=p.useState(null),[r,i]=p.useState(!0),[a,l]=p.useState("");if(p.useEffect(()=>{const h=new URLSearchParams(window.location.search).get("slug");if(!h||!wb[h]){l("Service not found. Please select a service from our services page."),i(!1);return}t(wb[h]),i(!1)},[]),r)return n.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:n.jsxs("div",{className:"animate-pulse",children:[n.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-full mx-auto"}),n.jsx("div",{className:"h-8 bg-gray-200 rounded w-48 mt-4"})]})});if(a)return n.jsx("div",{className:"min-h-screen bg-white py-20 text-center",children:n.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsx(pm,{className:"w-12 h-12 text-red-500 mx-auto mb-4"}),n.jsx("h2",{className:"text-2xl font-bold text-red-600 mb-4",children:"An Error Occurred"}),n.jsx("p",{className:"text-gray-600 mb-8",children:a}),n.jsx(We,{to:ze("Services"),children:n.jsxs(oe,{variant:"outline",children:[n.jsx(jr,{className:"w-4 h-4 mr-2"}),"Back to Services"]})})]})});const d=e.icon;return n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx("section",{className:"relative bg-gradient-to-br from-gray-50 to-blue-50 py-16 lg:py-24",children:n.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsx("div",{className:"mb-8",children:n.jsxs(We,{to:ze("Services"),className:"inline-flex items-center text-[var(--brand-light-blue)] hover:text-[var(--brand-navy)] font-medium transition-colors",children:[n.jsx(jr,{className:"w-4 h-4 mr-2"}),"Back to All Services"]})}),n.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-6 md:gap-8",children:[n.jsx("div",{className:"w-20 h-20 bg-gradient-to-br from-[var(--brand-light-blue)] to-[var(--brand-navy)] rounded-2xl flex items-center justify-center flex-shrink-0 shadow-lg",children:n.jsx(d,{className:"w-10 h-10 text-white"})}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-black mb-3 leading-tight",children:e.title}),n.jsx("p",{className:"text-xl text-gray-600 max-w-3xl leading-relaxed",children:e.description})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mt-12",children:[n.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-lg",children:[n.jsxs("div",{className:"flex items-center space-x-3 mb-2",children:[n.jsx(Dl,{className:"w-6 h-6 text-green-600"}),n.jsx("h3",{className:"font-semibold text-gray-900",children:"Pricing"})]}),n.jsx("p",{className:"text-gray-600",children:e.pricing})]}),n.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-lg",children:[n.jsxs("div",{className:"flex items-center space-x-3 mb-2",children:[n.jsx(Zt,{className:"w-6 h-6 text-blue-600"}),n.jsx("h3",{className:"font-semibold text-gray-900",children:"Timeline"})]}),n.jsx("p",{className:"text-gray-600",children:e.timeline})]}),n.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-lg",children:[n.jsxs("div",{className:"flex items-center space-x-3 mb-2",children:[n.jsx(Ht,{className:"w-6 h-6 text-purple-600"}),n.jsx("h3",{className:"font-semibold text-gray-900",children:"Ideal For"})]}),n.jsx("p",{className:"text-gray-600",children:e.whoNeedsIt[0]})]})]})]})}),n.jsx("section",{className:"py-16 lg:py-24",children:n.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12",children:[n.jsxs("div",{className:"lg:col-span-2 space-y-10",children:[n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Service Overview"}),n.jsx("p",{className:"text-gray-700 leading-relaxed",children:e.overview})]}),n.jsxs("div",{children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-6",children:"What's Included"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-4",children:e.features.map((u,h)=>n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx(Ht,{className:"w-6 h-6 text-green-600 mt-1 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:u})]},h))})]}),n.jsxs("div",{children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Key Benefits"}),n.jsx("div",{className:"space-y-4",children:e.benefits.map((u,h)=>n.jsxs("div",{className:"flex items-start space-x-3 p-4 bg-gray-50 rounded-lg",children:[n.jsx("div",{className:"w-2.5 h-2.5 bg-[var(--brand-light-blue)] rounded-full mt-2 flex-shrink-0"}),n.jsx("span",{className:"text-gray-800",children:u})]},h))})]})]}),n.jsxs("div",{className:"space-y-8",children:[n.jsx(ke,{className:"border-0 shadow-xl bg-gradient-to-br from-[var(--brand-navy)] to-[var(--brand-light-blue)] text-white",children:n.jsxs(Re,{className:"p-8 text-center",children:[n.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Ready to Get Started?"}),n.jsx("p",{className:"mb-6 text-blue-100",children:"Schedule your free consultation today and see how we can help optimize your tax situation."}),n.jsxs("div",{className:"space-y-3",children:[n.jsx(We,{to:ze("Consultation"),children:n.jsxs(oe,{className:"w-full bg-white text-[var(--brand-navy)] hover:bg-gray-50",children:[n.jsx(er,{className:"w-5 h-5 mr-2"}),"Free Consultation"]})}),n.jsx("a",{href:"tel:4082582200",children:n.jsxs(oe,{variant:"outline",className:"w-full border-white text-white hover:bg-white/20",children:[n.jsx(Vt,{className:"w-5 h-5 mr-2"}),"Call (408) 258-2200"]})})]})]})}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-xl font-bold text-gray-900",children:"Related Services"})}),n.jsx(Re,{children:n.jsx("ul",{className:"space-y-3",children:FF.map((u,h)=>{const m=u.isStandalone?ze(u.slug):ze(`ServiceDetail?slug=${u.slug}`);return n.jsx("li",{children:n.jsxs(We,{to:m,className:"group flex items-center justify-between p-3 bg-gray-50 hover:bg-blue-50 rounded-lg transition-colors",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(u.icon,{className:"w-5 h-5 text-[var(--brand-light-blue)] mr-3"}),n.jsx("span",{className:"font-medium text-gray-800 group-hover:text-[var(--brand-navy)]",children:u.title})]}),n.jsx(Ui,{className:"w-4 h-4 text-gray-400 group-hover:text-[var(--brand-navy)] transition-transform group-hover:translate-x-1"})]})},h)})})})]})]})]})})})]})}function zF(){return n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx("section",{className:"bg-gradient-to-br from-gray-50 to-blue-50 py-16 lg:py-20",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsx("div",{className:"mb-8",children:n.jsxs(We,{to:ze("Services"),className:"inline-flex items-center text-[var(--brand-light-blue)] hover:text-[var(--brand-navy)] font-medium transition-colors",children:[n.jsx(jr,{className:"w-4 h-4 mr-2"}),"Back to Services"]})}),n.jsxs("div",{className:"flex items-start space-x-6",children:[n.jsx("div",{className:"w-16 h-16 bg-gradient-to-r from-emerald-500 to-emerald-600 rounded-2xl flex items-center justify-center flex-shrink-0",children:n.jsx(Hi,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-black mb-4",children:"Payroll Services"}),n.jsx("p",{className:"text-xl text-gray-600 leading-relaxed",children:"Comprehensive payroll management, ensuring timely and accurate payment of employees."})]})]})]})}),n.jsx("section",{className:"py-16",children:n.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[n.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"Service Overview"})}),n.jsx(Re,{children:n.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Payroll processing can be complex and time-consuming. Our comprehensive payroll services handle everything from employee payments to tax filings, ensuring your team is paid accurately and on time while keeping you compliant with all regulations."})})]}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"What's Included"})}),n.jsx(Re,{children:n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:["Full payroll processing (weekly, bi-weekly, semi-monthly)","Direct deposit and physical check options","Federal and state payroll tax filings","W-2 and 1099 preparation and filing","New hire reporting","Garnishment and deduction administration"].map((e,t)=>n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx(Ht,{className:"w-5 h-5 text-green-600 mt-0.5 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:e})]},t))})})]}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"Key Benefits"})}),n.jsx(Re,{children:n.jsx("div",{className:"space-y-4",children:["Ensure timely and accurate employee payments","Avoid costly payroll tax penalties","Reduce the complexity of payroll administration","Access detailed payroll reports","Stay compliant with changing labor laws"].map((e,t)=>n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx("div",{className:"w-2 h-2 bg-[var(--brand-light-blue)] rounded-full mt-2 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:e})]},t))})})]}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"Perfect For"})}),n.jsx(Re,{children:n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:["Businesses with one or more employees","Companies tired of managing payroll in-house","Businesses needing help with payroll tax compliance","S-Corps requiring owner-employee payroll"].map((e,t)=>n.jsx("div",{className:"bg-blue-50 rounded-lg p-4",children:n.jsx("span",{className:"text-[var(--brand-navy)] font-medium",children:e})},t))})})]})]}),n.jsxs("div",{className:"lg:col-span-1",children:[" ",n.jsxs("div",{className:"space-y-6",children:[n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsxs(qe,{children:[n.jsx(Ke,{className:"text-lg",children:"Service Details"})," "]}),n.jsxs(Re,{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center",children:[" ",n.jsx(Dl,{className:"w-5 h-5 text-green-600 mr-3"})," ",n.jsxs("div",{children:[n.jsx("p",{className:"font-semibold",children:"Pricing"})," ",n.jsx("p",{className:"text-gray-600",children:"Get a Free Estimate"})," "]})]}),n.jsxs("div",{className:"flex items-center",children:[" ",n.jsx(Zt,{className:"w-5 h-5 text-blue-600 mr-3"})," ",n.jsxs("div",{children:[n.jsx("p",{className:"font-medium text-gray-900",children:"Timeline"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Per pay period"})]})]})]})]}),n.jsx(ke,{className:"border-0 shadow-lg bg-gradient-to-br from-[var(--brand-navy)] to-[var(--brand-light-blue)] text-white",children:n.jsxs(Re,{className:"p-6 text-center",children:[n.jsx("h3",{className:"text-xl font-bold mb-4",children:"Ready to Get Started?"}),n.jsx("p",{className:"mb-6 opacity-90",children:"Let's discuss your payroll needs and create a custom solution for your business."}),n.jsxs("div",{className:"space-y-3",children:[n.jsx(We,{to:ze("Consultation"),children:n.jsxs(oe,{className:"w-full bg-white text-[var(--brand-navy)] hover:bg-gray-50",children:[n.jsx(er,{className:"w-4 h-4 mr-2"}),"Schedule Consultation"]})}),n.jsx("a",{href:"tel:4082582200",children:n.jsxs(oe,{variant:"outline",className:"w-full border-white text-white hover:bg-white/20",children:[n.jsx(Vt,{className:"w-4 h-4 mr-2"}),"Call (408) 258-2200"]})})]})]})}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-xl font-bold text-gray-900",children:"Related Services"})}),n.jsxs(Re,{className:"space-y-3",children:[n.jsxs(We,{to:ze("bookkeeping"),className:"block p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[n.jsx("p",{className:"font-medium text-gray-900",children:"Bookkeeping Services"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Keep your financial records organized"})]}),n.jsxs(We,{to:ze("ServiceDetail?slug=s-corporation"),className:"block p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[n.jsx("p",{className:"font-medium text-gray-900",children:"S-Corporation Services"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Complete S-Corp tax solutions"})]})]})]})]})]})]})})})]})}function $F(){return n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx("section",{className:"bg-gradient-to-br from-gray-50 to-blue-50 py-16 lg:py-20",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsx("div",{className:"mb-8",children
579:n.jsxs(We,{to:ze("Services"),className:"inline-flex items-center text-[var(--brand-light-blue)] hover:text-[var(--brand-navy)] font-medium transition-colors",children:[n.jsx(jr,{className:"w-4 h-4 mr-2"}),"Back to Services"]})}),n.jsxs("div",{className:"flex items-start space-x-6",children:[n.jsx("div",{className:"w-16 h-16 bg-gradient-to-r from-violet-500 to-violet-600 rounded-2xl flex items-center justify-center flex-shrink-0",children:n.jsx(Gr,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-black mb-4",children:"Bookkeeping Services"}),n.jsx("p",{className:"text-xl text-gray-600 leading-relaxed",children:"Accurate bookkeeping solutions to maintain organized and compliant business financial records."})]})]})]})}),n.jsx("section",{className:"py-16",children:n.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[n.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"Service Overview"})}),n.jsx(Re,{children:n.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Reliable bookkeeping is the backbone of any successful business. Our services ensure your financial records are accurate, up-to-date, and compliant, giving you a clear picture of your company's financial health and freeing you up to focus on growth."})})]}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"What's Included"})}),n.jsx(Re,{children:n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:["Bank and credit card reconciliation","Accounts payable and receivable management","Monthly financial statement preparation (P&L, Balance Sheet)","General ledger maintenance","Sales tax tracking and filing preparation","QuickBooks Online setup and management"].map((e,t)=>n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx(Ht,{className:"w-5 h-5 text-green-600 mt-0.5 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:e})]},t))})})]}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"Key Benefits"})}),n.jsx(Re,{children:n.jsx("div",{className:"space-y-4",children:["Gain a clear understanding of your financial position","Make informed business decisions with accurate data","Ensure compliance and be audit-ready","Save time and reduce administrative burden","Improve cash flow management"].map((e,t)=>n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx("div",{className:"w-2 h-2 bg-[var(--brand-light-blue)] rounded-full mt-2 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:e})]},t))})})]}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"Perfect For"})}),n.jsx(Re,{children:n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:["Small to medium-sized businesses","Startups needing financial organization","Businesses seeking to outsource accounting tasks","Companies preparing for tax season or financing"].map((e,t)=>n.jsx("div",{className:"bg-blue-50 rounded-lg p-4",children:n.jsx("span",{className:"text-[var(--brand-navy)] font-medium",children:e})},t))})})]})]}),n.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-lg",children:"Service Details"})}),n.jsxs(Re,{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(Dl,{className:"w-5 h-5 text-green-600 mr-3"}),n.jsxs("div",{children:[n.jsx("p",{className:"font-semibold",children:"Pricing"}),n.jsx("p",{className:"text-gray-600",children:"Get a Free Estimate"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(Zt,{className:"w-5 h-5 text-blue-600 mr-3"}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium text-gray-900",children:"Timeline"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Ongoing service"})]})]})]})]}),n.jsx(ke,{className:"border-0 shadow-lg bg-gradient-to-br from-[var(--brand-navy)] to-[var(--brand-light-blue)] text-white",children:n.jsxs(Re,{className:"p-6 text-center",children:[n.jsx("h3",{className:"text-xl font-bold mb-4",children:"Ready to Get Started?"}),n.jsx("p",{className:"mb-6 opacity-90",children:"Let's discuss your bookkeeping needs and create a custom solution for your business."}),n.jsxs("div",{className:"space-y-3",children:[n.jsx(We,{to:ze("Consultation"),children:n.jsxs(oe,{className:"w-full bg-white text-[var(--brand-navy)] hover:bg-gray-50",children:[n.jsx(er,{className:"w-4 h-4 mr-2"}),"Schedule Consultation"]})}),n.jsx("a",{href:"tel:4082582200",children:n.jsxs(oe,{variant:"outline",className:"w-full border-white text-white hover:bg-white/20",children:[n.jsx(Vt,{className:"w-4 h-4 mr-2"}),"Call (408) 258-2200"]})})]})]})}),n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-xl font-bold text-gray-900",children:"Related Services"})}),n.jsxs(Re,{className:"space-y-3",children:[n.jsxs(We,{to:ze("payroll"),className:"block p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[n.jsx("p",{className:"font-medium text-gray-900",children:"Payroll Services"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Comprehensive payroll management"})]}),n.jsxs(We,{to:ze("ServiceDetail?slug=business-taxes"),className:"block p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[n.jsx("p",{className:"font-medium text-gray-900",children:"Business Tax Services"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Complete business tax solutions"})]})]})]})]})]})})})]})}const UF=[{id:"upload",title:"Secure Document Upload",description:"Allow clients to securely upload tax documents directly from your website",icon:Hr,url:"Upload",color:"from-blue-500 to-blue-600",defaultHeight:"1200px"},{id:"consultation",title:"Free Tax Consultation Chat",description:"Provide instant AI-powered tax consultation to website visitors",icon:hm,url:"Consultation",color:"from-green-500 to-green-600",defaultHeight:"700px"},{id:"directory",title:"Business Directory",description:"Showcase trusted local business partners with customer feedback",icon:bt,url:"Directory",color:"from-purple-500 to-purple-600",defaultHeight:"2400px"}];function WF(){const[e,t]=p.useState(null),r=a=>`<iframe
580  src="${window.location.origin}/${a.url}?embed=true"
581  width="100%"
582  height="${a.defaultHeight}"
583  frameborder="0"
584  allowfullscreen
585  title="${a.title} - AMC Tax Services"
586></iframe>`,i=async(a,l)=>{try{await navigator.clipboard.writeText(a),t(l),setTimeout(()=>t(null),2e3)}catch(d){console.error("Failed to copy:",d)}};return n.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 py-20",children:n.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-black mb-6",children:"Embed AMC Tax Services"}),n.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto mb-8",children:"Integrate our professional tax services directly into your website with these clean, responsive iframe embed codes."}),n.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6 max-w-2xl mx-auto",children:n.jsxs("p",{className:"text-blue-800 text-sm",children:[n.jsx("strong",{children:"Note:"}
586)," These embed codes create iframe windows that display our services with simplified headers and no footers for seamless integration."]})})]}),n.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:UF.map(a=>{const l=r(a),d=e===a.id;return n.jsxs(ke,{className:"border-0 shadow-xl overflow-hidden",children:[n.jsxs(qe,{className:`bg-gradient-to-r ${a.color} text-white p-6`,children:[n.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[n.jsx("div",{className:"w-10 h-10 bg-white bg-opacity-20 rounded-lg flex items-center justify-center",children:n.jsx(a.icon,{className:"w-5 h-5"})}),n.jsx(Ke,{className:"text-xl font-bold",children:a.title})]}),n.jsx("p",{className:"text-white text-opacity-90 text-sm",children:a.description})]}),n.jsxs(Re,{className:"p-6",children:[n.jsxs("div",{className:"mb-6",children:[n.jsx("h4",{className:"font-semibold text-gray-900 mb-3",children:"Preview:"}),n.jsx("div",{className:"border rounded-lg overflow-hidden bg-gray-50",children:n.jsx("iframe",{src:`${window.location.origin}/${a.url}?embed=true`,width:"100%",height:"400px",frameBorder:"0",className:"block",title:`${a.title} Preview`})})]}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-semibold text-gray-900 mb-3",children:"Embed Code:"}),n.jsxs("div",{className:"relative",children:[n.jsx("pre",{className:"bg-gray-900 text-gray-100 text-xs p-4 rounded-lg overflow-x-auto whitespace-pre-wrap break-all",children:l}),n.jsx(oe,{onClick:()=>i(l,a.id),size:"sm",className:"absolute top-2 right-2 bg-white bg-opacity-10 hover:bg-opacity-20 text-white border-0",children:d?n.jsxs(n.Fragment,{children:[n.jsx(Yr,{className:"w-4 h-4 mr-1"}),"Copied!"]}):n.jsxs(n.Fragment,{children:[n.jsx(Mk,{className:"w-4 h-4 mr-1"}),"Copy"]})})]})]}),n.jsxs("div",{className:"mt-4 p-4 bg-gray-50 rounded-lg",children:[n.jsx("h5",{className:"font-medium text-gray-900 mb-2",children:"Customization Tips:"}),n.jsxs("ul",{className:"text-sm text-gray-600 space-y-2",children:[n.jsxs("li",{children:["• Adjust the ",n.jsx("code",{className:"text-xs bg-gray-200 px-1 rounded",children:"height"})," value in the code to best fit your website's layout and remove any scrollbars."]}),n.jsx("li",{children:"• For the Directory, the height is set to accommodate up to 6 listings. If you have fewer, you can reduce this value."}),n.jsx("li",{children:"• The consultation chat is best kept at a fixed height to maintain its chat window functionality."})]})]})]})]},a.id)})}),n.jsx("div",{className:"mt-16",children:n.jsxs(ke,{className:"border-0 shadow-lg",children:[n.jsx(qe,{children:n.jsx(Ke,{className:"text-2xl font-bold text-gray-900",children:"How to Use These Embed Codes"})}),n.jsx(Re,{className:"prose max-w-none",children:n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-3",children:"For Website Owners:"}),n.jsxs("ol",{className:"text-gray-700 space-y-2",children:[n.jsx("li",{children:"1. Copy the embed code for your desired service"}),n.jsx("li",{children:"2. Paste it into your website's HTML where you want it to appear"}),n.jsx("li",{children:"3. Adjust the height and width values as needed"}),n.jsx("li",{children:"4. Test the integration on your website"})]})]}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-3",children:"Features:"}),n.jsxs("ul",{className:"text-gray-700 space-y-2",children:[n.jsx("li",{children:"• Clean, minimal design optimized for embedding"}),n.jsx("li",{children:"• No header logo or navigation menu"}),n.jsx("li",{children:"• No footer to keep focus on the service"}),n.jsx("li",{children:"• Fully responsive and mobile-friendly"}),n.jsx("li",{children:"• Secure HTTPS connection"})]})]})]})})]})})]})})}const HF=ix,VF=ox,qF=ax,VS=p.forwardRef(({className:e,...t},r)=>n.jsx(Gl,{className:Pe("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:r}));VS.displayName=Gl.displayName;const KF=ca("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),qS=p.forwardRef(({side:e="right",className:t,children:r,...i},a)=>n.jsxs(qF,{children:[n.jsx(VS,{}),n.jsxs(Yl,{ref:a,className:Pe(KF({side:e}),t),...i,children:[n.jsxs(Pu,{className:"absolute right-4 top-4 roun
586ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[n.jsx(ii,{className:"h-4 w-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));qS.displayName=Yl.displayName;const GF=p.forwardRef(({className:e,...t},r)=>n.jsx(Ql,{ref:r,className:Pe("text-lg font-semibold text-foreground",e),...t}));GF.displayName=Ql.displayName;const YF=p.forwardRef(({className:e,...t},r)=>n.jsx(Xl,{ref:r,className:Pe("text-sm text-muted-foreground",e),...t}));YF.displayName=Xl.displayName;const jb=[{title:"Home",url:ze("Home")},{title:"Services",url:ze("Services")},{title:"Business Directory",url:ze("Directory")},{title:"Blog",url:ze("Blog")},{title:"Resources",url:ze("Resources")},{title:"Visit Us",url:ze("visit-us")},{title:"Business Dashboard",url:ze("BusinessDashboard")},{title:"Admin Dashboard",url:ze("AdminDashboard")},{title:"Contact",url:ze("Contact")}];function QF({children:e,currentPageName:t}){const r=ua(),[i,a]=ft.useState(!1),[l,d]=ft.useState(null);ft.useEffect(()=>{(async()=>{try{const w=await Fe.auth.me();d(w)}catch{d(null)}})()},[]);const u=async()=>{Fe.auth.logout()},h=jb.filter(y=>!(y.title==="Business Dashboard"&&!l||y.title==="Admin Dashboard"&&(!l||l.role!=="admin")));
586return new URLSearchParams(r.search).get("embed")==="true"?n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=G-B8JYZH50ZX"}),n.jsx("script",{children:`
587            
vendor: 163 bytes, lines 587-590
587window.dataLayer = window.dataLayer || [];
588            function gtag(){dataLayer.push(arguments);}
589            gtag('js', new Date());
590            gtag('config', '
590G-B8JYZH50ZX
vendor: 14 bytes, lines 590-591
590');
591          
591`}),n.jsx("style",{children:`
592          :root {
593            --brand-light-blue: #6faada;
594            --brand-navy: #0f2d54;
595          }
596          
597          body {
598            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
599          }
600          
601          .brand-gradient {
602            background: linear-gradient(135deg, var(--brand-light-blue) 0%, var(--brand-navy) 100%);
603          }
604          
605          .brand-text-gradient {
606            background: linear-gradient(135deg, var(--brand-light-blue) 0%, var(--brand-navy) 100%);
607            -webkit-background-clip: text;
608            -webkit-text-fill-color: transparent;
609            background-clip: text;
610          }
611        `}),n.jsx("main",{children:e})]}):n.jsxs("div",{className:"min-h-screen flex flex-col bg-white",children:[n.jsx("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=G-B8JYZH50ZX"}),n.jsx("script",{children:`
612          
vendor: 157 bytes, lines 612-615
612window.dataLayer = window.dataLayer || [];
613          function gtag(){dataLayer.push(arguments);}
614          gtag('js', new Date());
615          gtag('config', '
615G-B8JYZH50ZX
vendor: 12 bytes, lines 615-616
615');
616        
616`}),n.jsx("style",{children:`
617        :root {
618          --brand-light-blue: #6faada;
619          --brand-navy: #0f2d54;
620        }
621        
622        body {
623          font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
624        }
625        
626        .brand-gradient {
627          background: linear-gradient(135deg, var(--brand-light-blue) 0%, var(--brand-navy) 100%);
628        }
629        
630        .brand-text-gradient {
631          background: linear-gradient(135deg, var(--brand-light-blue) 0%, var(--brand-navy) 100%);
632          -webkit-background-clip: text;
633          -webkit-text-fill-color: transparent;
634          background-clip: text;
635        }
636      `}),n.jsx("header",{className:"bg-white shadow-sm sticky top-0 z-50",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex flex-wrap sm:flex-nowrap justify-between items-center py-4",children:[n.jsx(We,{to:ze("Home"),className:"w-full sm:w-auto flex justify-center sm:justify-start mb-4 sm:mb-0",children:n.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/27cc8f428_3-01.png",alt:"AMC Tax Services Logo",className:"h-12"})}),n.jsxs("div",{className:"hidden md:flex items-center space-x-2 text-[var(--brand-navy)]",children:[n.jsx(Vt,{className:"w-5 h-5"}),n.jsx("a",{href:"tel:4082582200",className:"text-lg font-semibold hover:text-[var(--brand-light-blue)] transition-colors",children:"(408) 258-2200"})]}),n.jsxs("div",{className:"w-full sm:w-auto flex justify-end items-center space-x-2 md:space-x-4",children:[n.jsxs("div",{className:"hidden lg:flex items-center space-x-4",children:[n.jsx(We,{to:ze("Upload"),children:n.jsxs(oe,{variant:"outline",className:"border-[var(--brand-navy)] text-[var(--brand-navy)] hover:bg-[var(--brand-navy)] hover:text-white px-4 py-2 rounded-lg font-semibold transition-all duration-200",children:[n.jsx(Hr,{className:"w-4 h-4 mr-2"}),"Upload Documents"]})}),n.jsx(We,{to:ze("Consultation"),children:n.jsxs(oe,{className:"brand-gradient text-white hover:opacity-90 transition-opacity duration-200 px-6 py-2 rounded-lg font-semibold",children:[n.jsx(er,{className:"w-4 h-4 mr-2"}),"Free Consultation"]})})]}),l?n.jsxs(wS,{children:[n.jsx(jS,{asChild:!0,children:n.jsx(oe,{variant:"outline",className:"rounded-full h-10 w-10 p-0 border-2 border-[var(--brand-navy)]",children:n.jsx($o,{className:"h-5 w-5 text-[var(--brand-navy)]"})})}),n.jsxs(wx,{align:"end",className:"w-56",children:[n.jsxs(NS,{children:[n.jsx("p",{className:"font-normal text-sm text-gray-500",children:"Signed in as"}),n.jsx("p",{className:"font-semibold truncate",children:l.email})]}),n.jsx(am,{}),l.role==="admin"&&n.jsx(We,{to:ze("AdminDashboard"),children:n.jsx(Gs,{children:"Admin Dashboard"})}),n.jsx(We,{to:ze("BusinessDashboard"),children:n.jsx(Gs,{children:"Business Dashboard"})}),n.jsx(am,{}),n.jsxs(Gs,{onClick:u,className:"text-red-600",children:[n.jsx(Ev,{className:"w-4 h-4 mr-2"}),"Log Out"]})]})]}):n.jsxs(oe,{onClick:()=>Fe.auth.redirectToLogin(window.location.href),variant:"outline",className:"hidden sm:inline-flex border-[var(--brand-navy)] text-[var(--brand-navy)] hover:bg-[var(--brand-navy)] hover:text-white",children:[n.jsx(qd,{className:"w-4 h-4 mr-2"}),"Login"]}),n.jsxs("div",{className:"lg:hidden flex items-center space-x-2",children:[n.jsx(We,{to:ze("Upload"),children:n.jsx(oe,{variant:"outline",size:"icon",className:"border-[var(--brand-navy)] text-[var(--brand-navy)] hover:bg-[var(--brand-navy)] hover:text-white",children:n.jsx(Hr,{className:"w-4 h-4"})})}),n.jsx(We,{to:ze("Consultation"),children:n.jsx(oe,{size:"icon",className:"brand-gradient text-white hover:opacity-90 transition-opacity duration-200",children:n.jsx(er,{className:"w-4 h-4"})})})]}),n.jsxs(HF,{open:i,onOpenChange:a,children:[n.jsx(VF,{asChild:!0,children:n.jsx(oe,{variant:"ghost",size:"icon",children:n.jsx(a5,{className:"w-6 h-6"})})}),n.jsx(qS,{side:"right",className:"w-80",children:n.jsxs("div",{className:"flex flex-col h-full",children:[n.jsx("div",{className:"flex items-center justify-between py-4"}),n.jsx("div",{className:"md:hidden mb-6 p-4 bg-blue-50 rounded-lg",children:n.jsxs("div",{className:"flex items-center space-x-2 text-[var(--brand-navy)]",children:[n.jsx(Vt,{className:"w-5 h-5"}),n.jsx("a",{href:"tel:4082582200",className:"text-lg font-semibold",children:"(408) 258-2200"})]})}),n.jsx("nav",{className:"flex-1 flex flex-col space-y-4",children:h.map(y=>n.jsx(We,{to:y.url,onClick:()=>
636a(!1),className:`text-lg font-medium py-3 px-4 rounded-lg transition-colors duration-200 ${r.pathname===y.url?"bg-blue-50 text-[var(--brand-navy)]":"text-gray-700 hover:bg-gray-50"}`,children:y.title},y.title))}),n.jsxs("div",{className:"py-4 space-y-3",children:[!l&&n.jsxs(oe,{onClick:()=>Fe.auth.redirectToLogin(window.location.href),variant:"default",className:"w-full brand-gradient text-white py-3 rounded-lg font-semibold",children:[n.jsx(qd,{className:"w-5 h-5 mr-2"}),"Login / Sign Up"]}),n.jsx(We,{to:ze("Upload"),onClick:()=>a(!1),children:n.jsxs(oe,{variant:"outline",className:"w-full border-[var(--brand-navy)] text-[var(--brand-navy)] hover:bg-[var(--brand-navy)] hover:text-white py-3 rounded-lg font-semibold",children:[n.jsx(Hr,{className:"w-5 h-5 mr-2"}),"Upload Documents"]})}),n.jsx(We,{to:ze("Consultation"),onClick:()=>a(!1),children:n.jsxs(oe,{className:"brand-gradient text-white w-full py-3 rounded-lg font-semibold",children:[n.jsx(er,{className:"w-5 h-5 mr-2"}),"Free Consultation"]})}),l&&n.jsxs(oe,{onClick:u,variant:"outline",className:"w-full py-3 rounded-lg font-semibold",children:[n.jsx(Ev,{className:"w-5 h-5 mr-2"}),"Log Out"]})]})]})})]})]})]})})}),n.jsx("main",{className:"flex-1",children:e}),n.jsx("footer",{className:"bg-[var(--brand-navy)] text-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[n.jsxs("div",{className:"col-span-1 lg:col-span-2",children:[n.jsx("div",{className:"mb-6",children:n.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/27cc8f428_3-01.png",alt:"AMC Tax Services Logo",className:"h-12",style:{filter:"brightness(0) invert(1)"}})}),n.jsx("p",{className:"text-blue-100 mb-6 leading-relaxed",children:"Your trusted partner for comprehensive tax services and business solutions. We provide reliable, professional, and personalized tax assistance to individuals and businesses."}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Vt,{className:"w-5 h-5 text-[var(--brand-light-blue)]"}),n.jsx("a",{href:"tel:4082582200",className:"hover:text-white transition-colors",children:"(408) 258-2200"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Bn,{className:"w-5 h-5 text-[var(--brand-light-blue)]"}),n.jsx("span",{children:"[email protected]"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ni,{className:"w-5 h-5 text-[var(--brand-light-blue)]"}),n.jsx("span",{className:"",children:"2635 Cunningham Ave. Suite #23, San Jose, CA 95148"})]})]})]}),n.jsxs("div",{children:[n.jsx("h4",{className:"text-lg font-semibold mb-4",children:"Quick Links"}),n.jsx("ul",{className:"space-y-2",children:jb.filter(y=>y.title!=="Admin Dashboard"&&y.title!=="Business Dashboard").slice(0,4).map(y=>n.jsx("li",{children:n.jsx(We,{to:y.url,className:"text-blue-100 hover:text-white transition-colors duration-200",children:y.title})},y.title))})]}),n.jsxs("div",{children:[n.jsx("h4",{className:"text-lg font-semibold mb-4",children:"Services"}),n.jsxs("ul",{className:"space-y-2 text-blue-100",children:[n.jsx("li",{children:"Individual Tax Returns"}),n.jsx("li",{children:"Business Tax Services"}),n.jsx("li",{children:"Tax Planning"}),n.jsx("li",{children:"IRS Representation"}),n.jsx("li",{children:"Bookkeeping"}),n.jsx("li",{children:"Payroll Services"})]})]})]}),n.jsxs("div",{className:"border-t border-blue-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center",children:[n.jsx("p",{className:"text-blue-200 text-sm",children:"© 2024 AMC Tax Services. All rights reserved."}),n.jsxs("div",{className:"flex space-x-6 mt-4 md:mt-0",children:[n.jsx(We,{to:"#",className:"text-blue-200 hover:text-white text-sm transition-colors",children:"Privacy Policy"}),n.jsx(We,{to:"#",className:"text-blue-200 hover:text-white text-sm transition-colors",children:"Terms of Service"})]})]})]})})]})}const XF={Home:A6,Services:I6,Upload:$6,Directory:q6,Blog:ZD,Resources:n8,Contact:r8,BusinessDashboard:f8,Consultation:h8,AdminDashboard:AF,BlogPostDetail:MF,"blog-editor":DF,"visit-us":LF,ServiceDetail:BF,payroll:zF,bookkeeping:$F,Embed:WF},JF={mainPage:"Home",Pages:XF,Layout:QF};function ZF({}){var a;const t=ua().pathname.substring(1),{data:r,isFetched:i}=pR({queryKey:["user"],queryFn:async()=>{try{return{user:await Fe.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return n.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:n.jsx("div",{className:"max-w-md w-full",children:n.jsxs("div",{className:"text-center space-y-6",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),n.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),n.jsxs("div",{className:"space-y-3",children:[n.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),n.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",n.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),i&&r.isAuthenticated&&((a=r.user)==null?void 0:a.role)==="admin"&&n.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:n.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),n.jsxs("div",{className:"text-left space-y-1",children:[n.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),n.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),n.jsx("div",{className:"pt-6",children:n.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[n.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const Nb="#4fa8e8",eB=[["Q","W","E","R","T","Y","U","I","O","P"],["A","S","D","F","G","H","J","K","L"],["Z","X","C","V","B","N","M"]],tB=[["1","2","3","4","5","6","7","8","9","0"],["-","_","(",")","+","@",".","com","#","!"],["/","\\","*","&","^","%","$","'",'"',","]],Sb=[["1","2","3"],["4","5","6"],["7","8","9"]],xl={display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"14px",border:"1.5px solid rgba(255,255,255,0.10)",background:"rgba(255,255,255,0.07)",color:"white",fontWeight:700,cursor:"pointer",userSelect:"none",transition:"background 0.12s, transform 0.08s",flexShrink:0};function Ni({label:e,onClick:t,style:r={},wide:i=!1}
636){const[a,l]=p.useState(!1);return n.jsx("button",{onPointerDown:()=>{l(!0),t()},onPointerUp:()=>l(!1),onPointerLeave:()=>l(!1),style:{...xl,fontSize:e.length>1?"13px":"18px",background:a?"rgba(79,168,232,0.35)":"rgba(255,255,255,0.07)",transform:a?"scale(0.92)":"scale(1)",height:"56px",minWidth:i?"100px":"60px",padding:"0 12px",...r},children:e})}function nB({value:e,onChange:t,onClose:r,initialMode:i="alpha"}){const[a,l]=p.useState(i);p.useEffect(()=>{l(i)},[i]);const[d,u]=p.useState(!1),[h,m]=p.useState(!1),g=a==="numpad",y=a==="alpha"?eB:a==="num"?tB:Sb,w=j=>{const b=a==="alpha"&&d?j.toUpperCase():j.toLowerCase();t(e+(a==="alpha"?b:j))},C=()=>t(e.slice(0,-1)),k=()=>t(e+" "),N=()=>t("");return n.jsxs("div",{style:{position:"fixed",bottom:0,left:0,right:0,zIndex:9999,background:"linear-gradient(180deg, rgba(8,18,40,0.97) 0%, rgba(5,10,25,0.99) 100%)",backdropFilter:"blur(20px)",borderTop:"1.5px solid rgba(79,168,232,0.25)",boxShadow:"0 -8px 40px rgba(0,0,0,0.6)",transition:"all 0.3s ease"},children:[n.jsxs("div",{onClick:()=>m(j=>!j),style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"10px",cursor:"pointer",borderBottom:h?"none":"1px solid rgba(255,255,255,0.06)"},children:[n.jsx("span",{style:{color:"rgba(255,255,255,0.35)",fontSize:"12px",fontWeight:600,letterSpacing:"0.1em",textTransform:"uppercase"},children:h?"Show Keyboard":"Hide Keyboard"}),h?n.jsx(fm,{size:16,color:"rgba(255,255,255,0.35)"}):n.jsx(Ml,{size:16,color:"rgba(255,255,255,0.35)"})]}),!h&&n.jsx("div",{style:{padding:"12px 20px 20px"},children:g?n.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"7px"},children:[Sb.map((j,b)=>n.jsx("div",{style:{display:"flex",gap:"7px"},children:j.map(S=>n.jsx(Ni,{label:S,onClick:()=>t(e+S),style:{width:"100px",height:"72px",fontSize:"28px"}},S))},b)),n.jsxs("div",{style:{display:"flex",gap:"7px"},children:[n.jsx(Ni,{label:"CLR",onClick:N,style:{width:"100px",height:"72px",fontSize:"15px",background:"rgba(248,113,113,0.12)",border:"1.5px solid rgba(248,113,113,0.2)",color:"#f87171"}}),n.jsx(Ni,{label:"0",onClick:()=>t(e+"0"),style:{width:"100px",height:"72px",fontSize:"28px"}}),n.jsx("button",{onPointerDown:C,style:{...xl,width:"100px",height:"72px",background:"rgba(248,113,113,0.15)",border:"1.5px solid rgba(248,113,113,0.25)"},children:n.jsx($h,{size:24,color:"#f87171"})})]})]}):n.jsxs(n.Fragment,{children:[y.map((j,b)=>n.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"7px",marginBottom:"7px"},children:[a==="alpha"&&b===1&&n.jsx("div",{style:{width:"30px",flexShrink:0}}),a==="alpha"&&b===2&&n.jsx("button",{onPointerDown:()=>u(S=>!S),style:{...xl,height:"56px",minWidth:"80px",padding:"0 14px",fontSize:"13px",background:d?"rgba(79,168,232,0.3)":"rgba(255,255,255,0.07)",border:d?`1.5px solid ${Nb}`:"1.5px solid rgba(255,255,255,0.10)",color:d?Nb:"white"},children:"⇧ CAPS"}),j.map(S=>n.jsx(Ni,{label:a==="alpha"&&d?S.toUpperCase():S.toLowerCase(),onClick:()=>w(S)},S)),a==="alpha"&&b===2&&n.jsx("button",{onPointerDown:C,style:{...xl,height:"56px",minWidth:"80px",padding:"0 14px",background:"rgba(248,113,113,0.15)",border:"1.5px solid rgba(248,113,113,0.25)"},children:n.jsx($h,{size:20,color:"#f87171"})})]},b)),n.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"7px",marginTop:"4px"},children:[n.jsx(Ni,{label:a==="alpha"?"123":"ABC",onClick:()=>l(j=>j==="alpha"?"num":"alpha"),style:{minWidth:"88px",fontSize:"14px",background:"rgba(255,255,255,0.10)"}}),n.jsx(Ni,{label:"SPACE",onClick:k,style:{flex:1,maxWidth:"380px",fontSize:"14px",letterSpacing:"0.1em",background:"rgba(255,255,255,0.10)"}}),n.jsx(Ni,{label:"CLR",onClick:N,style:{minWidth:"72px",fontSize:"13px",background:"rgba(248,113,113,0.12)",border:"1.5px solid rgba(248,113,113,0.2)",color:"#f87171"}}),a==="num"&&n.jsx("button",{onPointerDown:C,style:{...xl,height:"56px",minWidth:"80px",padding:"0 14px",background:"rgba(248,113,113,0.15)",border:"1.5px solid rgba(248,113,113,0.25)"},children:n.jsx($h,{size:20,color:"#f87171"})})]})]})})]})}const $i="#4fa8e8",rB="#22c55e",sB={en:{title:"Client Check-In",subtitle:"AMC Tax Services",step1:"Let's get started",step2:"Your Information",step3:"Your Visit",fullName:"Full Name",fullNamePh:"Enter your full name",phone:"Phone Number",phonePh:"(408) 000-0000",email:"Email Address",emailPh:"Optional",clientStatus:"Are you an existing or new client?",existing:"Existing AMC Client",existingDesc:"I've used AMC Tax Services before",newClient:"New Client",newClientDesc:"This is my first time with AMC",howFound:"How did you hear about us?",referralWho:"Who referred or recommended you?",referralWhoPh:"Their name",serviceToday:"What service or assistance do you need today?",previousService:"What service did you previously receive?",hasAppointment:"Do you have an appointment?",yes:"Yes",no:"No",appointmentWith:"Who is your appointment with?",appointmentWithPh:"Staff member name",alreadyHelped:"Have you already received help today?",firstVisit:"Is this your first time visiting AMC Tax Services?",submit:"Submit Check-In",back:"Back",next:"Next",cancel:"Cancel",successTitle:"Thank y
636ou!",successSub:"Your check-in has been submitted.",successSub2:"Gracias. Su registro ha sido enviado.",successWait:"A staff member will assist you shortly.",required:"required",optional:"optional",errName:"Please enter your full name.",errPhone:"Please enter a valid phone number.",errStatus:"Please select your client status.",errService:"Please select a service.",lang:"Español",services:["Personal tax preparation / Preparación de impuestos personales","Business tax preparation / Impuestos de negocios","Tax amendment / Enmienda de impuestos","IRS or state tax notice / Aviso del IRS o estado","ITIN application or renewal / Solicitud o renovación de ITIN","Bookkeeping / Contabilidad","Payroll / Nómina","Business registration / Registro de negocio","Consultation / Consulta","Other / Otro"],howFoundOptions:["Google","Facebook","Instagram","TikTok","Referral / Referencia","Avisador Magazine","Flyer / Volante","Other / Otro"]},es:{title:"Registro de Cliente",subtitle:"AMC Tax Services",step1:"Comencemos",step2:"Su Información",step3:"Su Visita",fullName:"Nombre Completo",fullNamePh:"Ingrese su nombre completo",phone:"Número de Teléfono",phonePh:"(408) 000-0000",email:"Correo Electrónico",emailPh:"Opcional",clientStatus:"¿Es usted cliente existente o nuevo?",existing:"Cliente Existente de AMC",existingDesc:"Ya he usado los servicios de AMC",newClient:"Cliente Nuevo",newClientDesc:"Es mi primera vez con AMC",howFound:"¿Cómo se enteró de nosotros?",referralWho:"¿Quién lo refirió o recomendó?",referralWhoPh:"Nombre de la persona",serviceToday:"¿Qué servicio o asistencia necesita hoy?",previousService:"¿Qué servicio recibió anteriormente?",hasAppointment:"¿Tiene una cita?",yes:"Sí",no:"No",appointmentWith:"¿Con quién es su cita?",appointmentWithPh:"Nombre del empleado",alreadyHelped:"¿Ya recibió ayuda hoy?",firstVisit:"¿Es su primera visita a AMC Tax Services?",submit:"Enviar Registro",back:"Atrás",
636next:"Siguiente",cancel:"Cancelar",successTitle:"¡Gracias!",successSub:"Su registro ha sido enviado.",successSub2:"Thank you. Your check-in has been submitted.",successWait:"Un empleado le atenderá en breve.",required:"requerido",optional:"opcional",errName:"Por favor ingrese su nombre completo.",errPhone:"Por favor ingrese un número de teléfono válido.",errStatus:"Por favor seleccione su estado de cliente.",errService:"Por favor seleccione un servicio.",lang:"English",services:["Personal tax preparation / Preparación de impuestos personales","Business tax preparation / Impuestos de negocios","Tax amendment / Enmienda de impuestos","IRS or state tax notice / Aviso del IRS o estado","ITIN application or renewal / Solicitud o renovación de ITIN","Bookkeeping / Contabilidad","Payroll / Nómina","Business registration / Registro de negocio","Consultation / Consulta","Other / Otro"],howFoundOptions:["Google","Facebook","Instagram","TikTok","Referral / Referencia","Avisador Magazine","Flyer / Volante","Other / Otro"]}},iB={full_name:"",phone:"",email:"",client_status:"",how_found:"",referral_name:"",service_requested:"",previous_service:"",has_appointment:null,appointment_with:"",already_received_help:!1,first_visit:null},oB={width:"100%",padding:"20px 24px",borderRadius:"18px",background:"rgba(255,255,255,0.07)",border:"1.5px solid rgba(79,168,232,0.25)",color:"white",fontSize:"20px",outline:"none",boxSizing:"border-box",fontFamily:"inherit"},In={color:"rgba(255,255,255,0.55)",fontSize:"13px",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",display:"block",marginBottom:"10px"};function kd({label:e,desc:t,selected:r,onSelect:i}){return n.jsxs("button",{onClick:i,style:{width:"100%",textAlign:"left",padding:"20px 24px",borderRadius:"18px",border:`2px solid ${r?$i:"rgba(255,255,255,0.1)"}`,background:r?"rgba(79,168,232,0.12)":"rgba(255,255,255,0.04)",color:"white",cursor:"pointer",display:"flex",alignItems:"center",gap:"16px",transition:"all 0.18s",marginBottom:"10px"},children:[n.jsx("div",{style:{width:"28px",height:"28px",borderRadius:"50%",flexShrink:0,border:`2px solid ${r?$i:"rgba(255,255,255,0.2)"}`,background:r?$i:"transparent",display:"flex",alignItems:"center",justifyContent:"center"},children:r&&n.jsx(Yr,{size:16,color:"white"})}),n.jsxs("div",{children:[n.jsx("div",{style:{fontWeight:700,fontSize:"18px"},children:e}),t&&n.jsx("div",{style:{color:"rgba(255,255,255,0.45)",fontSize:"14px",marginTop:"3px"},children:t})]})]})}function _s({label:e,selected:t,onSelect:r}){return n.jsx("button",{onClick:r,style:{padding:"14px 20px",borderRadius:"14px",border:`1.5px solid ${t?$i:"rgba(255,255,255,0.12)"}`,background:t?"rgba(79,168,232,0.15)":"rgba(255,255,255,0.04)",color:t?"white":"rgba(255,255,255,0.55)",fontWeight:t?700:500,fontSize:"16px",cursor:"pointer",transition:"all 0.15s",whiteSpace:"nowrap"},children:e})}function aB({initialLang:e="en",onClose:t,onReset:r}){const[i,a]=p.useState(e),[l,d]=p.useState(1),[u,h]=p.useState(iB),[m,g]=p.useState({}),[y,w]=p.useState(!1),[C,k]=p.useState(!1),[N,j]=p.useState(null),b=sB[i],S=(W,te)=>h(le=>({...le,[W]:te})),E=W=>{N&&S(N,W)},R=N&&u[N]||"",O=W=>({readOnly:!0,value:u[W]||"",onPointerDown:te=>{te.preventDefault(),j(W)},style:{...oB,border:N===W?`1.5px solid ${$i}`:"1.5px solid rgba(79,168,232,0.25)",cursor:"pointer"}}),$=["Referral / Referencia","Other / Otro"].includes(u.how_found),V=u.client_status==="existing",M=()=>{const W={};return u.client_status||(W.client_status=b.errStatus),g(W),Object.keys(W).length===0},ne=()=>{const W={};return u.full_name.trim()||(W.full_name=b.errName),(!u.phone.trim()||u.phone.trim().length<7)&&(W.phone=b.errPhone),g(W),Object.keys(W).length===0},Q=()=>{const W={};return u.service_requested||(W.service_requested=b.errService),g(W),Object.keys(W).length===0},ie=()=>{l===1&&M()?d(2):l===2&&ne()&&d(3)},ee=()=>d(W=>W-1),Z=async()=>{if(Q()){w(!0);try{const W=new Date,te={...u,language:i,checkin_date:W.toISOString(),checkin_status:"waiting",has_appointment:u.has_appointment==="yes",already_received_help:u.already_received_help==="yes",first_visit:u.first_visit==="yes"};await Fe.entities.ClientCheckIn.create(te);const le=u.client_status==="existing"?"Existing Client / Cliente Existente":"New Client / Cliente Nuevo",G=`
637Llegó un cliente — AMC Tax Services Check-In
638
639Name / Nombre: ${u.full_name}
640Phone / Teléfono: ${u.phone}
641${u.email?`Email: ${u.email}
642`:""}Client Status: ${le}
643Service Requested: ${u.service_requested}
644How They Found Us: ${u.how_found||"N/A"}
645${u.referral_name?`Referral Name: ${u.referral_name}
646`:""}${u.previous_service?`Previous Service: ${u.previous_service}
647`:""}Appointment: ${u.has_appointment==="yes"?`Yes — with ${u.appointment_with||"TBD"}`:"No"}
648Date/Time: ${W.toLocaleString("en-US",{timeZone:"America/Los_Angeles"})} (Pacific)
649      `.trim();await Fe.integrations.Core.SendEmail({to:"[email protected]",subject:"Llegó un cliente",body:G}),k(!0),setTimeout(()=>{t(),r&&r()},4e3)}catch(W){console.error(W)}w(!1)}},L=l===1?33:l===2?66:100;return n.jsxs("div",{onClick:W=>W.stopPropagation(),style:{position:"fixed",inset:0,background:"rgba(5,12,25,0.88)",backdropFilter:"blur(16px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:200},children:[n.jsxs("div",{style:{background:"linear-gradient(160deg, #0d1e3a 0%, #081220 100%)",border:"1px solid rgba(79,168,232,0.25)",borderRadius:"40px",width:"900px",maxHeight:"1700px",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 40px 100px rgba(0,0,0,0.7)",animation:"fade-in 0.3s ease"},children:[n.jsxs("div",{style:{padding:"40px 52px 0",flexShrink:0},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"24px"},children:[n.jsxs("div",{children:[n.jsx("div",{style:{color:"white",fontWeight:900,fontSize:"32px",letterSpacing:"-0.5px"},children:b.title}),n.jsx("div",{style:{color:"rgba(255,255,255,0.35)",fontSize:"15px",marginTop:"4px"},children:b.subtitle})]}),n.jsxs("div",{style:{display:"flex",gap:"12px",alignItems:"center"},children:[n.jsx("button",{onClick:()=>a(W=>W==="en"?"es":"en"),style:{padding:"10px 20px",borderRadius:"12px",border:"none",background:"linear-gradient(135deg, #d97706, #f59e0b)",color:"white",fontWeight:700,fontSize:"15px",cursor:"pointer",boxShadow:"0 4px 16px rgba(245,158,11,0.4)"},children:b.lang}),n.jsx("button",{onClick:t,style:{width:"48px",height:"48px",borderRadius:"14px",background:"rgba(255,255,255,0.07)",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx(ii,{size:22,color:"rgba(255,255,255,0.5)"})})]})]}),n.jsx("div",{style:{height:"6px",borderRadius:"3px",background:"rgba(255,255,255,0.08)",marginBottom:"32px"},children:n.jsx("div",{style:{height:"100%",borderRadius:"3px",background:`linear-gradient(90deg, #1e5fa8, ${$i})`,width:`${L}%`,transition:"width 0.4s ease"}})})]}),n.jsx("div",{style:{flex:1,overflowY:"auto",padding:"0 52px 40px",scrollbarWidth:"none"},children:C?n.jsxs("div",{style:{textAlign:"center",padding:"60px 0"},children:[n.jsx("div",{style:{width:"100px",height:"100px",borderRadius:"50%",background:"rgba(34,197,94,0.15)",border:"2px solid rgba(34,197,94,0.4)",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 28px"},children:n.jsx(Yr,{size:52,color:rB})}),n.jsx("div",{style:{color:"white",fontWeight:900,fontSize:"38px",marginBottom:"16px"},children:b.successTitle}),n.jsx("div",{style:{color:"rgba(255,255,255,0.7)",fontSize:"24px",marginBottom:"10px"},children:b.successSub}),n.jsx("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"18px",marginBottom:"24px"},children:b.successSub2}),n.jsx("div",{style:{color:$i,fontWeight:600,fontSize:"18px"},children:b.successWait})]}):n.jsxs(n.Fragment,{children:[l===1&&n.jsxs("div",{style:{animation:"fade-in 0.3s ease"},children:[n.jsx("div",{style:{color:"white",fontWeight:800,fontSize:"26px",marginBottom:"28px"},children:b.clientStatus}),n.jsx(kd,{label:b.existing,desc:b.existingDesc,selected:u.client_status==="existing",onSelect:()=>S("client_status","existing")}),n.jsx(kd,{label:b.newClient,desc:b.newClientDesc,selected:u.client_status==="new",onSelect:()=>S("client_status","new")}),m.client_status&&n.jsx("div",{style:{color:"#f87171",fontSize:"15px",marginTop:"8px"},children:m.client_status})]}),l===2&&n.jsxs("div",{style:{animation:"fade-in 0.3s ease"},children:[n.jsxs("div",{style:{marginBottom:"24px"},children:[n.jsxs("label",{style:In,children:[b.fullName," ",n.jsx("span",{style:{color:"#f87171"},children:"*"})]}),n.jsx("input",{placeholder:u.full_name||b.fullNamePh,...O("full_name")}),m.full_name&&n.jsx("div",{style:{color:"#f87171",fontSize:"14px",marginTop:"6px"},children:m.full_name})]}),n.jsxs("div",{style:{marginBottom:"24px"},children:[n.jsxs("label",{style:In,children:[b.phone," ",n.jsx("span",{style:{color:"#f87171"},children:"*"})]}),n.jsx("input",{placeholder:u.phone||b.phonePh,...O("phone")}),m.phone&&n.jsx("div",{style:{color:"#f87171",fontSize:"14px",marginTop:"6px"},children:m.phone})]}),n.jsxs("div",{style:{marginBottom:"24px"},children:[n.jsxs("label",{style:In,children:[b.email," ",n.jsxs("span",{style:{color:"rgba(255,255,255,0.3)",fontWeight:400,fontSize:"11px",textTransform:"none",letterSpacing:0},children:["(",b.optional,")"]})]}),n.jsx("input",{placeholder:u.email||b.emailPh,...O("email")})]}),!V&&n.jsxs("div",{style:{marginBottom:"24px"},children:[n.jsx("label",{style:In,children:b.howFound}),n.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"10px"},children:b.howFoundOptions.map(W=>n.jsx(_s,{label:W,selected:u.how_found===W,onSelect:()=>S("how_found",W)},W))}),$&&n.jsxs("div",{style:{marginTop:"16px"},children:[n.jsx("label",{style:In,children:b.referralWho}),n.jsx("input",{placeholder:u.referral_name||b.referralWhoPh,...O("referral_name")}
649)]})]})]}),l===3&&n.jsxs("div",{style:{animation:"fade-in 0.3s ease"},children:[V&&n.jsxs("div",{style:{marginBottom:"28px"},children:[n.jsx("label",{style:In,children:b.previousService}),n.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0"},children:b.services.map(W=>n.jsx(kd,{label:W,selected:u.previous_service===W,onSelect:()=>S("previous_service",W)},W))})]}),!V&&n.jsxs("div",{style:{marginBottom:"28px"},children:[n.jsx("label",{style:In,children:b.firstVisit}),n.jsxs("div",{style:{display:"flex",gap:"12px"},children:[n.jsx(_s,{label:b.yes,selected:u.first_visit==="yes",onSelect:()=>S("first_visit","yes")}),n.jsx(_s,{label:b.no,selected:u.first_visit==="no",onSelect:()=>S("first_visit","no")})]})]}),n.jsxs("div",{style:{marginBottom:"28px"},children:[n.jsxs("label",{style:In,children:[b.serviceToday," ",n.jsx("span",{style:{color:"#f87171"},children:"*"})]}),n.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0"},children:b.services.map(W=>n.jsx(kd,{label:W,selected:u.service_requested===W,onSelect:()=>S("service_requested",W)},W))}),m.service_requested&&n.jsx("div",{style:{color:"#f87171",fontSize:"14px",marginTop:"8px"},children:m.service_requested})]}),V&&n.jsxs("div",{style:{marginBottom:"28px"},children:[n.jsx("label",{style:In,children:b.howFound}),n.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"10px"},children:b.howFoundOptions.map(W=>n.jsx(_s,{label:W,selected:u.how_found===W,onSelect:()=>S("how_found",W)},W))}),$&&n.jsxs("div",{style:{marginTop:"16px"},children:[n.jsx("label",{style:In,children:b.referralWho}),n.jsx("input",{placeholder:u.referral_name||b.referralWhoPh,...O("referral_name")})]})]}),n.jsxs("div",{style:{marginBottom:"28px"},children:[n.jsx("label",{style:In,children:b.hasAppointment}),n.jsxs("div",{style:{display:"flex",gap:"12px",marginBottom:u.has_appointment==="yes"?"16px":0},children:[n.jsx(_s,{label:b.yes,selected:u.has_appointment==="yes",onSelect:()=>S("has_appointment","yes")}),n.jsx(_s,{label:b.no,selected:u.has_appointment==="no",onSelect:()=>S("has_appointment","no")})]}),u.has_appointment==="yes"&&n.jsx("input",{placeholder:u.appointment_with||b.appointmentWithPh,...O("appointment_with")})]}),n.jsxs("div",{style:{marginBottom:"28px"},children:[n.jsx("label",{style:In,children:b.alreadyHelped}),n.jsxs("div",{style:{display:"flex",gap:"12px"},children:[n.jsx(_s,{label:b.yes,selected:u.already_received_help==="yes",onSelect:()=>S("already_received_help","yes")}),n.jsx(_s,{label:b.no,selected:u.already_received_help==="no",onSelect:()=>S("already_received_help","no")})]})]})]})]})}),!C&&n.jsxs("div",{style:{padding:"24px 52px 40px",flexShrink:0,display:"flex",gap:"14px",borderTop:"1px solid rgba(255,255,255,0.06)",paddingBottom:N?"280px":"40px",transition:"padding-bottom 0.3s ease"},children:[l>1&&n.jsxs("button",{onClick:ee,style:{flex:1,padding:"22px",borderRadius:"18px",border:"1.5px solid rgba(255,255,255,0.12)",background:"rgba(255,255,255,0.05)",color:"rgba(255,255,255,0.6)",fontSize:"19px",fontWeight:700,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},children:[n.jsx(Wb,{size:20})," ",b.back]}),l<3?n.jsxs("button",{onClick:ie,disabled:l===1&&!u.client_status,style:{flex:2,padding:"22px",borderRadius:"18px",border:"none",background:u.client_status||l>1?"linear-gradient(135deg, #1e5fa8, #2a7fd4)":"rgba(255,255,255,0.06)",color:u.client_status||l>1?"white":"rgba(255,255,255,0.25)",fontSize:"19px",fontWeight:700,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",boxShadow:u.client_status||l>1?"0 6px 24px rgba(42,127,212,0.45)":"none"},children:[b.next," ",n.jsx(ti,{size:20})]}):n.jsx("button",{onClick:Z,disabled:y,style:{flex:2,padding:"22px",borderRadius:"18px",border:"none",background:"linear-gradient(135deg, #15803d, #22c55e)",color:"white",fontSize:"19px",fontWeight:700,cursor:y?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",boxShadow:"0 6px 24px rgba(34,197,94,0.35)",opacity:y?.7:1},children:y?"…":n.jsxs(n.Fragment,{children:[n.jsx(Yr,{size:22})," ",b.submit]})})]})]}),N&&n.jsx(nB,{value:R,onChange:E,onClose:()=>j(null),initialMode:N==="phone"?"numpad":"alpha"})]})}const lB="#0a1f3d",wt="#4fa8e8",br="#f0c040",Cb=[{title:"Maximize Your Deductions",content:"Home office, vehicle mileage, and business equipment are all deductible. Keep every receipt — they add up fast.",icon:"💼",category:"deductions"},{title:"Know Your Deadlines",content:"Federal taxes are due April 15. Extensions give you until October 15, but taxes owed are still due April 15.",icon:"📅",category:"deadlines"},{title:"Business Meal Deductions",content:"50% of documented business meals are deductible. Always note the business purpose and who attended.",icon:"🍽️",category:"business"},{title:"Retirement Contributions",content:"401(k) and IRA contributions reduce taxable income. Max out before year-end for maximum savings.",icon:"🏦",category:"planning"},{title:"IRS Payment Plans",content:"Can't pay in full? The IRS offers installment agreements. Applying early avoids penalties and interest.",icon:"📋",category:"irs"},{title:"Standard vs. Itemized",content:"The 2024 standard deduction is $14,600 single / $29,200 married. Itemize only if your deductions exceed that.",icon:"⚖️",category:"deductions"},{title:"Child Tax Credit",content:"Qualifying families can claim up to $2,000 per child under 17. Ensure you have their Social Security numbers ready.",icon:"👶",category:"deductions"}
649,{title:"Self-Employment Tax",content:"Self-employed individuals pay 15.3% SE tax. You can deduct half of that amount on your income tax return.",icon:"🧾",category:"business"},{title:"Health Insurance Deduction",content:"Self-employed? You may deduct 100% of health insurance premiums for yourself and your family.",icon:"🏥",category:"deductions"},{title:"Quarterly Estimated Taxes",content:"Freelancers and business owners should pay quarterly estimates (April, June, Sept, Jan) to avoid underpayment penalties.",icon:"📆",category:"deadlines"},{title:"Capital Gains Rates",content:"Assets held over 1 year are taxed at 0%, 15%, or 20% — far lower than ordinary income rates. Time your sales wisely.",icon:"📈",category:"planning"},{title:"Audit Red Flags",content:"Large charitable deductions, round numbers, and unreported income are common IRS audit triggers. Keep thorough documentation.",icon:"🔍",category:"irs"},{title:"Home Sale Exclusion",content:"Married couples can exclude up to $500,000 in home sale profits from taxes if they lived there 2 of the last 5 years.",icon:"🏠",category:"planning"},{title:"Business Vehicle Expenses",content:"Track actual expenses or use the IRS standard mileage rate (67¢/mile in 2024). A mileage log is essential for audits.",icon:"🚗",category:"business"},{title:"Education Credits",content:"The American Opportunity Credit gives up to $2,500 per student for the first 4 years of college. Income limits apply.",icon:"🎓",category:"deductions"}],cB=12e3,dB=8e3,uB=9e3,fB=7e3;function hB(){const[e,t]=p.useState([]),[r,i]=p.useState([]),[a,l]=p.useState([]),[d,u]=p.useState(!0),[h,m]=p.useState([]),[g,y]=p.useState("showcase"),[w,C]=p.useState(null),[k,N]=p.useState(!1),[j,b]=p.useState(!1),S=p.useRef(null),[E,R]=p.useState(0),[O,$]=p.useState(0),[V,M]=p.useState(0),[ne,Q]=p.useState(""),[ie,ee]=p.useState(null),[Z,L]=p.useState(0),W=8,[te,le]=p.useState([{role:"assistant",content:"Hi! I'm the AMC Tax Services AI Assistant. Ask me anything about taxes, bookkeeping, payroll, or our services."}]),[G,q]=p.useState(""),[U,A]=p.useState(!1),X=p.useRef(null),[ge,pe]=p.useState(!1),[me,B]=p.useState({full_name:"",request:""}),[T,re]=p.useState(!1),[se,de]=p.useState(!1),[be,Ae]=p.useState(!1),[Ze,nt]=p.useState("en"),[J,ue]=p.useState("en");p.useEffect(()=>{const Ue=setInterval(()=>ue(mt=>mt==="en"?"es":"en"),2800);return()=>clearInterval(Ue)},[]);const Je=p.useRef(null),[dt,lt]=p.useState(0);p.useEffect(()=>{dr()},[]);const dr=async()=>{u(!0);try{const[Ue,mt,Tr,ba]=await Promise.all([Fe.entities.BusinessListing.filter({is_approved:!0}),Fe.entities.KioskTaxTip.filter({is_active:!0}),Fe.entities.KioskReview.filter({is_visible:!0}),Fe.entities.KioskSponsor.filter({is_active:!0},"sort_order")]);t(Ue),i(mt.length>0?mt:Cb),l(Tr),m(ba)}catch{i(Cb)}u(!1)};p.useEffect(()=>{if(j)return;const Ue=["showcase","tips","directory","services"];return Je.current=setInterval(()=>{lt(mt=>{const Tr=(mt+1)%Ue.length;return xn(Ue[Tr],!1),Tr})},cB),()=>clearInterval(Je.current)},[j]);const gt=p.useCallback(()=>{b(!0),clearTimeout(S.current),S.current=setTimeout(()=>{b(!1),ee(null),lt(0),xn("showcase",!1)},9e4)},[]);p.useEffect(()=>{if(e.length===0)return;const Ue=setInterval(()=>R(mt=>(mt+1)%Math.min(e.length,8)),dB);return()=>clearInterval(Ue)},[e]),p.useEffect(()=>{if(r.length===0)return;const Ue=setInterval(()=>$(mt=>(mt+1)%r.length),uB);return()=>clearInterval(Ue)},[r]),p.useEffect(()=>{if(a.length===0)return;const Ue=setInterval(()=>M(mt=>(mt+1)%a.length),fB);return()=>clearInterval(Ue)},[a]),p.useEffect(()=>{var Ue;(Ue=X.current)==null||Ue.scrollIntoView({behavior:"smooth"})},[te]);const xn=(Ue,mt=!0)=>{mt&&gt(),N(!0),setTimeout(()=>{C(g),y(Ue),N(!1)},350)},io=Ue=>{ee(null),Q(""),L(0),xn(Ue)},nc=Ue=>{Ue.stopPropagation(),gt(),B({full_name:"",request:""}),de(!1),pe(!0)},rc=async()=>{!me.full_name.trim()||!me.request.trim()||(re(!0),await Fe.entities.KioskRequest.create({full_name:me.full_name.trim(),request:me.request.trim()}),re(!1),de(!0),setTimeout(()=>pe(!1),2500))},oo=e.filter(Ue=>{var mt,Tr;return((mt=Ue.business_name)==null?void 0:mt.toLowerCase().includes(ne.toLowerCase()))||((Tr=Ue.category)==null?void 0:Tr.toLowerCase().includes(ne.toLowerCase()))}),va=oo.slice(Z*W,(Z+1)*W),ao=Math.ceil(oo.length/W),sc=r[O]||{},ns=a[V],rs=e.slice(0,8),Hu=rs[E];return n.jsxs("div",{onClick:gt,style:{width:"1080px",height:"1920px",background:lB,fontFamily:"'Inter', -apple-system, sans-serif",display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",userSelect:"none"},children:[n.jsxs("div",{style:{position:"absolute",inset:0,overflow:"hidden",pointerEvents:"none"},children:[n.jsx("div",{style:{position:"absolute",top:"-200px",left:"-200px",width:"700px",height:"700px",borderRadius:"50%",background:"radial-gradient(circle, rgba(79,168,232,0.12) 0%, transparent 70%)"}}),n.jsx("div",{style:{position:"absolute",bottom:"200px",right:"-150px",width:"600px",height:"600px",borderRadius:"50%",background:"radial-gradient(circle, rgba(79,168,232,0.08) 0%, transparent 70%)"}}),n.jsx("div",{style:{position:"absolute",top:"800px",left:"50%",transform:"translateX(-50%)",width:"900px",height:"2px",background:"linear-gradient(90deg, transparent, rgba(79,168,232,0.15), transparent)"}})]}),n.jsx(pB,{activeSection:g,onNav:io,btnLang:J,onCheckIn:()=>{gt(),nt(J),Ae(!0)}}),n.jsxs("div",{style:{flex:1,overflow:"hidden",position:"relative",opacity:k?0:1,transform:k?"translateY(12px)":"translateY(0)",transition:"opacity 0.35s ease, transform 0.35s ease"},children:[g==="showcase"&&n.jsx(xB,{featuredBiz:Hu,businesses:rs,showcaseBizIdx:E,setShowcaseBizIdx:Ue
649=>{R(Ue),gt()},tip:sc,review:ns,onExploreBiz:()=>io("directory"),onExploreServices:()=>io("services")}),g==="directory"&&!ie&&n.jsx(gB,{filtered:oo,pagedBiz:va,searchQuery:ne,setSearchQuery:Ue=>{Q(Ue),L(0),gt()},dirPage:Z,setDirPage:Ue=>{L(Ue),gt()},totalPages:ao,onSelect:Ue=>{ee(Ue),gt()}}),g==="directory"&&ie&&n.jsx(vB,{business:ie,onBack:()=>{ee(null),gt()}}),g==="tips"&&n.jsx(bB,{taxTips:r,tipIdx:O,setTipIdx:Ue=>{$(Ue),gt()},reviews:a,reviewIdx:V,setReviewIdx:Ue=>{M(Ue),gt()},review:ns}),g==="services"&&n.jsx(jB,{})]}),n.jsx(NB,{sponsors:h,onEmailClick:nc}),be&&n.jsx(aB,{initialLang:Ze,onClose:()=>{Ae(!1),gt()},onReset:()=>{Ae(!1)}}),ge&&n.jsx("div",{onClick:Ue=>Ue.stopPropagation(),style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.7)",backdropFilter:"blur(12px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:100},children:n.jsx("div",{style:{background:"#0d1e3a",border:"1px solid rgba(79,168,232,0.3)",borderRadius:"36px",padding:"56px 64px",width:"680px",animation:"fade-in 0.3s ease"},children:se?n.jsxs("div",{style:{textAlign:"center"},children:[n.jsx("div",{style:{fontSize:"72px",marginBottom:"20px"},children:"✅"}),n.jsx("div",{style:{color:"white",fontWeight:900,fontSize:"32px",marginBottom:"12px"},children:"Request Sent!"}),n.jsx("div",{style:{color:"rgba(255,255,255,0.5)",fontSize:"18px"},children:"Our team will follow up with you shortly."})]}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"36px"},children:[n.jsx("div",{style:{width:"56px",height:"56px",borderRadius:"18px",background:"linear-gradient(135deg, #1e5fa8, #2a7fd4)",display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx(Bn,{size:24,color:"white"})}),n.jsxs("div",{children:[n.jsx("div",{style:{color:"white",fontWeight:900,fontSize:"26px",letterSpacing:"-0.3px"},children:"Send Us a Message"}),n.jsx("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"14px",marginTop:"3px"},children:"[email protected]"})]}),n.jsx("button",{onClick:()=>pe(!1),style:{marginLeft:"auto",background:"rgba(255,255,255,0.08)",border:"none",borderRadius:"12px",width:"40px",height:"40px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx(ii,{size:18,color:"rgba(255,255,255,0.5)"})})]}),n.jsxs("div",{style:{marginBottom:"20px"},children:[n.jsx("label",{style:{color:"rgba(255,255,255,0.5)",fontSize:"12px",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",display:"block",marginBottom:"8px"},children:"Full Name"}),n.jsx("input",{value:me.full_name,onChange:Ue=>{B(mt=>({...mt,full_name:Ue.target.value})),gt()},placeholder:"Enter your full name",style:{width:"100%",padding:"20px 24px",borderRadius:"18px",background:"rgba(255,255,255,0.06)",border:"1.5px solid rgba(79,168,232,0.25)",color:"white",fontSize:"18px",outline:"none",boxSizing:"border-box"}})]}),n.jsxs("div",{style:{marginBottom:"28px"},children:[n.jsx("label",{style:{color:"rgba(255,255,255,0.5)",fontSize:"12px",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",display:"block",marginBottom:"8px"},children:"Your Request"}),n.jsx("textarea",{value:me.request,onChange:Ue=>{B(mt=>({...mt,request:Ue.target.value})),gt()},placeholder:"How can we help you?",rows:4,style:{width:"100%",padding:"20px 24px",borderRadius:"18px",background:"rgba(255,255,255,0.06)",border:"1.5px solid rgba(79,168,232,0.25)",color:"white",fontSize:"17px",outline:"none",resize:"none",boxSizing:"border-box",fontFamily:"inherit",lineHeight:1.6}})]}),n.jsxs("div",{style:{display:"flex",gap:"14px"},children:[n.jsx("button",{onClick:()=>pe(!1),style:{flex:1,padding:"20px",borderRadius:"18px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.5)",fontSize:"17px",fontWeight:600,cursor:"pointer"},children:"Cancel"}),n.jsx("button",{onClick:rc,disabled:!me.full_name.trim()||!me.request.trim()||T,style:{flex:2,padding:"20px",borderRadius:"18px",border:"none",background:me.full_name.trim()&&me.request.trim()?"linear-gradient(135deg, #1e5fa8, #2a7fd4)":"rgba(255,255,255,0.06)",color:me.full_name.trim()&&me.request.trim()?"white":"rgba(255,255,255,0.25)",fontSize:"17px",fontWeight:700,cursor:"pointer",boxShadow:me.full_name.trim()?"0 4px 20px rgba(42,127,212,0.4)":"none"},children:T?"Sending…":"Send Message"})]})]})})}),n.jsx("style",{children:`
650        @keyframes kbounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-8px)} }
651        @keyframes pulse-ring { 0%{opacity:0.6;transform:scale(1)} 100%{opacity:0;transform:scale(1.5)} }
652        @keyframes pulse-glow { 0%,100%{box-shadow:0 8px 32px rgba(245,158,11,0.5),0 0 0 3px rgba(245,158,11,0.2)} 50%{box-shadow:0 8px 48px rgba(245,158,11,0.75),0 0 0 6px rgba(245,158,11,0.15)} }
653        @keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
654        @keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
655        @keyframes fade-in { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
656        ::-webkit-scrollbar { width: 0; }
657      `})]})}function pB({activeSection:e,onNav:t,btnLang:r,onCheckIn:i}){const a=[{id:"showcase",label:"Home",icon:"✦"},{id:"directory",label:"Directory",icon:"⊞"},{id:"tips",label:"Tax Tips",icon:"◈"},{id:"services",label:"Services",icon:"◉"}],l=r==="en"?"Client Check-In":"Registro de Cliente";return n.jsxs("div",{style:{padding:"36px 52px 28px",flexShrink:0,position:"relative",zIndex:10},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"28px"},children:[n.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/27cc8f428_3-01.png",alt:"AMC Tax Services",style:{height:"50px",filter:"brightness(0) invert(1)"}}),n.jsxs("button",{onClick:i,style:{display:"flex",alignItems:"center",gap:"14px",padding:"22px 40px",borderRadius:"24px",border:"none",cursor:"pointer",background:"linear-gradient(135deg, #d97706, #f59e0b)",boxShadow:"0 8px 32px rgba(245,158,11,0.5), 0 0 0 3px rgba(245,158,11,0.2)",animation:"pulse-glow 2.5s ease infinite"},children:[n.jsx(Ak,{size:28,color:"white",style:{flexShrink:0}}),n.jsxs("div",{style:{textAlign:"left"},children:[n.jsx("div",{style:{color:"white",fontWeight:900,fontSize:"22px",letterSpacing:"-0.3px",lineHeight:1.1,transition:"all 0.4s ease"},children:l}),n.jsx("div",{style:{color:"rgba(255,255,255,0.7)",fontSize:"12px",marginTop:"2px",fontWeight:500},children:"Tap to check in · Toque para registrarse"})]})]}),n.jsxs("div",{style:{textAlign:"right"},children:[n.jsx("div",{style:{color:"white",fontWeight:800,fontSize:"24px",letterSpacing:"-0.5px"},children:"(408) 258-2200"}),n.jsx("div",{style:{color:wt,fontSize:"13px",fontWeight:500,letterSpacing:"0.05em",marginTop:"2px"},children:"FREE CONSULTATION AVAILABLE"})]})]}),n.jsx("div",{style:{display:"flex",gap:"10px",background:"rgba(255,255,255,0.04)",borderRadius:"24px",padding:"6px"},children:a.map(({id:d,label:u,icon:h})=>{const m=e===d;return n.jsxs("button",{onClick:()=>t(d),style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"16px 8px",borderRadius:"18px",border:"none",cursor:"pointer",background:m?"linear-gradient(135deg, #1e5fa8, #2a7fd4)":"transparent",color:m?"white":"rgba(255,255,255,0.45)",fontSize:"15px",fontWeight:m?700:500,boxShadow:m?"0 4px 24px rgba(42,127,212,0.4)":"none",transition:"all 0.25s ease",letterSpacing:m?"-0.2px":"0"},children:[n.jsx("span",{style:{fontSize:m?"18px":"16px",transition:"font-size 0.25s"},children:h}),u]},d)})})]})}
657const mB=[{icon:"📊",label:"Tax Returns",sub:"Individual & Business"},{icon:"🏢",label:"Bookkeeping",sub:"Monthly & Annual"},{icon:"💰",label:"Tax Planning",sub:"Year-Round Strategy"},{icon:"👔",label:"Payroll",sub:"Full-Service Payroll"},{icon:"🛡️",label:"IRS Help",sub:"Audits & Disputes"},{icon:"📋",label:"Notary",sub:"Document Services"}];function xB({featuredBiz:e,businesses:t,showcaseBizIdx:r,setShowcaseBizIdx:i,tip:a,review:l,onExploreBiz:d,onExploreServices:u}){var h,m,g,y;return n.jsxs("div",{style:{height:"100%",overflowY:"auto",padding:"0 52px 32px",scrollbarWidth:"none"},children:[n.jsxs("div",{style:{position:"relative",height:"420px",borderRadius:"32px",overflow:"hidden",marginBottom:"24px",animation:"fade-in 0.5s ease"},children:[e!=null&&e.thumbnail_url?n.jsx("img",{src:e.thumbnail_url,alt:"",style:{width:"100%",height:"100%",objectFit:"cover",transition:"opacity 0.8s ease"}},e.id):n.jsx("div",{style:{width:"100%",height:"100%",background:"linear-gradient(135deg, #1a3a6e, #0d2444)"}}),n.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to top, rgba(8,18,36,0.97) 0%, rgba(8,18,36,0.4) 45%, transparent 75%)"}}),(e==null?void 0:e.category)&&n.jsx("div",{style:{position:"absolute",top:"24px",left:"24px",background:"rgba(79,168,232,0.9)",backdropFilter:"blur(8px)",color:"white",fontSize:"12px",fontWeight:700,padding:"6px 16px",borderRadius:"999px",letterSpacing:"0.1em",textTransform:"uppercase"},children:e.category}),n.jsxs("div",{style:{position:"absolute",top:"24px",right:"24px",display:"flex",alignItems:"center",gap:"8px",background:"rgba(0,0,0,0.4)",backdropFilter:"blur(8px)",padding:"8px 14px",borderRadius:"999px"},children:[n.jsxs("div",{style:{position:"relative",width:"8px",height:"8px"},children:[n.jsx("div",{style:{position:"absolute",inset:0,borderRadius:"50%",background:"#22c55e",animation:"pulse-ring 1.5s ease-out infinite"}}),n.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"50%",background:"#22c55e"}})]}),n.jsx("span",{style:{color:"rgba(255,255,255,0.8)",fontSize:"11px",fontWeight:600,letterSpacing:"0.08em"},children:"FEATURED"})]}),n.jsxs("div",{style:{position:"absolute",bottom:0,left:0,right:0,padding:"28px 32px"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:"16px",marginBottom:"14px"},children:[(e==null?void 0:e.logo_url)&&n.jsx("img",{src:e.logo_url,alt:"",style:{width:"48px",height:"48px",borderRadius:"12px",objectFit:"contain",background:"rgba(255,255,255,0.1)",backdropFilter:"blur(8px)",padding:"4px",flexShrink:0}}),n.jsx("div",{style:{color:"white",fontSize:"30px",fontWeight:900,letterSpacing:"-0.5px",lineHeight:1.1},children:(e==null?void 0:e.business_name)||"Discover Local Businesses"})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[n.jsxs("div",{style:{color:"rgba(255,255,255,0.55)",fontSize:"14px",lineHeight:1.5,flex:1},children:[(h=e==null?void 0:e.description)==null?void 0:h.substring(0,90),((m=e==null?void 0:e.description)==null?void 0:m.length)>90?"…":""]}),n.jsxs("button",{onClick:d,style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"12px 22px",borderRadius:"14px",background:"linear-gradient(135deg, #1e5fa8, #2a7fd4)",color:"white",border:"none",fontSize:"14px",fontWeight:700,cursor:"pointer",whiteSpace:"nowrap",flexShrink:0},children:["All Businesses ",n.jsx(ti,{size:16})]})]})]}),n.jsx("div",{style:{position:"absolute",bottom:"32px",right:"32px",display:"flex",flexDirection:"column",gap:"5px"},children:t.map((w,C)=>n.jsx("button",{onClick:k=>{k.stopPropagation(),i(C)},style:{width:"5px",height:C===r?24:5,borderRadius:"3px",background:C===r?wt:"rgba(255,255,255,0.25)",border:"none",cursor:"pointer",transition:"all 0.35s ease",padding:0}},C))})]}),n.jsxs("div",{style:{marginBottom:"22px"},children:[n.jsx("div",{style:{color:"rgba(255,255,255,0.3)",fontSize:"11px",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",marginBottom:"14px"},children:"Our Services"}),n.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px"},children:mB.map(w=>n.jsxs("div",{style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"20px",padding:"18px 16px",display:"flex",flexDirection:"column",gap:"6px"},children:[n.jsx("span",{style:{fontSize:"26px"},children:w.icon}),n.jsx("div",{style:{color:"white",fontWeight:700,fontSize:"14px"},children:w.label}),n.jsx("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"12px"},children:w.sub})]},w.label))})]}),n.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px",marginBottom:"16
657px"},children:[n.jsxs("div",{style:{background:"linear-gradient(135deg, rgba(79,168,232,0.08), rgba(30,95,168,0.12))",border:"1px solid rgba(79,168,232,0.18)",borderRadius:"24px",padding:"22px",animation:"fade-in 0.5s ease 0.1s both"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px"},children:[n.jsx(Hd,{size:14,color:wt}),n.jsx("span",{style:{color:wt,fontSize:"10px",fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase"},children:"Tax Tip"})]}),n.jsx("div",{style:{fontSize:"36px",marginBottom:"8px",animation:"float 3s ease infinite"},children:a.icon||"💡"}),n.jsx("div",{style:{color:"white",fontSize:"16px",fontWeight:800,lineHeight:1.25,marginBottom:"8px"},children:a.title}),n.jsx("div",{style:{color:"rgba(255,255,255,0.5)",fontSize:"12.5px",lineHeight:1.6},children:a.content})]}),n.jsxs("div",{style:{background:"linear-gradient(135deg, rgba(240,192,64,0.06), rgba(240,192,64,0.02))",border:"1px solid rgba(240,192,64,0.15)",borderRadius:"24px",padding:"22px",animation:"fade-in 0.5s ease 0.2s both"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px"},children:[n.jsx(Zn,{size:14,color:br,fill:br}),n.jsx("span",{style:{color:br,fontSize:"10px",fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase"},children:"Client Review"})]}),l?n.jsxs(n.Fragment,{children:[n.jsx("div",{style:{display:"flex",gap:"3px",marginBottom:"10px"},children:[1,2,3,4,5].map(w=>n.jsx(Zn,{size:16,fill:w<=l.rating?br:"transparent",color:br},w))}),n.jsxs("div",{style:{color:"rgba(255,255,255,0.78)",fontSize:"13px",lineHeight:1.6,fontStyle:"italic",marginBottom:"12px"},children:['"',(g=l.review_text)==null?void 0:g.substring(0,110),((y=l.review_text)==null?void 0:y.length)>110?"…":"",'"']}),n.jsx("div",{style:{color:"white",fontWeight:700,fontSize:"13px"},children:l.reviewer_name}),l.service_type&&n.jsx("div",{style:{color:wt,fontSize:"11px",marginTop:"2px"},children:l.service_type})]}):n.jsx("div",{style:{color:"rgba(255,255,255,0.25)",fontSize:"13px",marginTop:"16px"},children:"No reviews yet"})]})]}),n.jsxs("button",{onClick:u,style:{width:"100%",padding:"22px 32px",borderRadius:"22px",background:"linear-gradient(135deg, rgba(79,168,232,0.1), rgba(30,95,168,0.2))",border:"1px solid rgba(79,168,232,0.25)",cursor:"pointer",display:"flex",alignItems:"center",gap:"18px",animation:"fade-in 0.5s ease 0.3s both",textAlign:"left",marginBottom:"20px"},children:[n.jsx("div",{style:{width:"52px",height:"52px",borderRadius:"16px",background:"linear-gradient(135deg, #1e5fa8, #2a7fd4)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n.jsx(zo,{size:24,color:"white"})}),n.jsxs("div",{children:[n.jsx("div",{style:{color:"white",fontWeight:800,fontSize:"18px",letterSpacing:"-0.3px"},children:"View All Our Services"}),n.jsx("div",{style:{color:"rgba(255,255,255,0.45)",fontSize:"13px",marginTop:"2px"},children:"Tax prep, bookkeeping, payroll, IRS help & more"})]}),n.jsx(ti,{size:20,color:"rgba(255,255,255,0.3)",style:{marginLeft:"auto"}})]}),n.jsxs("div",{style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"24px",padding:"24px 28px",animation:"fade-in 0.5s ease 0.4s both"},children:[n.jsx("div",{style:{color:"rgba(255,255,255,0.35)",fontSize:"11px",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",marginBottom:"16px"},children:"What We Offer"}),n.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"10px"},children:[{icon:"📊",label:"Individual & Business Tax Returns"},{icon:"🏢",label:"Bookkeeping & Accounting"},{icon:"💰",label:"Tax Planning & Strategy"},{icon:"👔",label:"Full-Service Payroll"},{icon:"🛡️",label:"IRS Audit Representation"},{icon:"📋",label:"Notary & Document Services"},{icon:"🏦",label:"Retirement & Investment Planning"},{icon:"🚀",label:"Business Formation & Consulting"}].map(({icon:w,label:C})=>n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 14px",borderRadius:"14px",background:"rgba(255,255,255,0.03)"},children:[n.jsx("span",{style:{fontSize:"20px",flexShrink:0},children:w}),n.jsx("span",{style:{color:"rgba(255,255,255,0.7)",fontSize:"13px",fontWeight:500},children:C})]},C))})]})]})}function gB({filtered:e,pagedBiz:t,searchQuery:r,setSearchQuery:i,dirPage:a,setDirPage:l,totalPages:d,onSelect:u}){return n.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",padding:"0 52px",overflow:"hidden"},children:[n.jsxs("div",{style:{position:"relative",marginBottom:"16
657px",flexShrink:0},children:[n.jsx(ra,{size:22,color:wt,style:{position:"absolute",left:"26px",top:"50%",transform:"translateY(-50%)"}}),n.jsx("input",{value:r,onChange:h=>i(h.target.value),placeholder:"Search businesses by name or category…",style:{width:"100%",padding:"22px 22px 22px 68px",borderRadius:"22px",background:"rgba(255,255,255,0.06)",border:"1.5px solid rgba(79,168,232,0.25)",color:"white",fontSize:"20px",outline:"none",boxSizing:"border-box",backdropFilter:"blur(8px)"}}),r&&n.jsx("button",{onClick:()=>i(""),style:{position:"absolute",right:"22px",top:"50%",transform:"translateY(-50%)",background:"rgba(255,255,255,0.12)",border:"none",borderRadius:"50%",width:"40px",height:"40px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx(ii,{size:18,color:"rgba(255,255,255,0.7)"})})]}),n.jsxs("div",{style:{color:"rgba(255,255,255,0.3)",fontSize:"13px",marginBottom:"14px",flexShrink:0,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase"},children:[e.length," businesses ",r?`matching "${r}"`:"in directory"," · Page ",a+1," of ",Math.max(d,1)]}),n.jsx("div",{style:{flex:1,overflowY:"auto",scrollbarWidth:"none"},children:n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px",paddingBottom:"12px"},children:[t.map((h,m)=>n.jsx(yB,{biz:h,idx:m,onSelect:u},h.id)),t.length===0&&n.jsx("div",{style:{textAlign:"center",padding:"60px 0",color:"rgba(255,255,255,0.2)",fontSize:"18px"},children:"No businesses found"})]})}),d>1&&n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px",padding:"16px 0 4px",flexShrink:0},children:[n.jsxs("button",{onClick:()=>l(h=>Math.max(0,h-1)),disabled:a===0,style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",padding:"22px",borderRadius:"20px",border:"1.5px solid rgba(255,255,255,0.12)",background:a===0?"rgba(255,255,255,0.03)":"rgba(255,255,255,0.07)",color:a===0?"rgba(255,255,255,0.2)":"white",fontSize:"18px",fontWeight:700,cursor:a===0?"not-allowed":"pointer",transition:"all 0.2s"},children:[n.jsx(jr,{size:22})," Previous"]}),n.jsxs("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"16px",fontWeight:600,minWidth:"80px",textAlign:"center"},children:[a+1," / ",d]}),n.jsxs("button",{onClick:()=>l(h=>Math.min(d-1,h+1)),disabled:a===d-1,style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",padding:"22px",borderRadius:"20px",border:"1.5px solid rgba(79,168,232,0.3)",background:a===d-1?"rgba(255,255,255,0.03)":"linear-gradient(135deg, #1e5fa8, #2a7fd4)",color:a===d-1?"rgba(255,255,255,0.2)":"white",fontSize:"18px",fontWeight:700,cursor:a===d-1?"not-allowed":"pointer",transition:"all 0.2s"},children:["Next ",n.jsx(ti,{size:22})]})]})]})}function yB({biz:e,idx:t,onSelect:r}){const[i,a]=p.useState(!1);return n.jsxs("button",{onClick:()=>r(e),onTouchStart:()=>a(!0),onTouchEnd:()=>a(!1),onMouseDown:()=>a(!0),onMouseUp:()=>a(!1),onMouseLeave:()=>a(!1),style:{background:i?"rgba(79,168,232,0.12)":"rgba(255,255,255,0.04)",border:`1.5px solid ${i?"rgba(79,168,232,0.5)":"rgba(255,255,255,0.08)"}`,borderRadius:"22px",overflow:"hidden",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"row",alignItems:"center",transition:"all 0.15s ease",transform:i?"scale(0.99)":"scale(1)",animation:`fade-in 0.3s ease ${t*.04}s both`,minHeight:"110px",flexShrink:0},children:[n.jsxs("div",{style:{width:"130px",height:"110px",flexShrink:0,overflow:"hidden",position:"relative"},children:[e.thumbnail_url?n.jsx("img",{src:e.thumbnail_url,alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}):n.jsx("div",{style:{width:"100%",height:"100%",background:"linear-gradient(135deg, #1a3560, #0d1e3a)",display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx(bt,{size:40,color:wt,style:{opacity:.25}})}),n.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to right, transparent 60%, rgba(10,20,40,0.6))"}})]}),n.jsxs("div",{style:{flex:1,padding:"18px 20px",display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[e.logo_url&&n.jsx("img",{src:e.logo_url,alt:"",style:{width:"32px",height:"32px",borderRadius:"8px",objectFit:"contain",background:"rgba(255,255,255,0.08)",padding:"3px",flexShrink:0}}),n.jsx("div",{style:{color:"white",fontWeight:800,fontSize:"18px",lineHeight:1.2,flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.business_name})]}),e.category&&n.jsx("div",{style:{display:"inline-flex",alignSelf:"flex-start",background:"rgba(79,168,232,0.15)",color:wt,fontSize:"12px",fontWeight:700,padding:"3px 12px",borderRadius:"999px",letterSpacing:"0.05em"},children:e.category}),n.jsx("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"13px",lineHeight:1.5,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical"},children:e.description})]}),n.jsx("div",{style:{padding:"0 24px",flexShrink:0,display:"flex",alignItems:"center"},children:n.jsx("div",{style:{width:"44px",height:"44px",borderRadius:"14px",background:"rgba(79,168,232,0.12)",display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx(ti,{size:22,color:wt})})})]})}function vB({business:e,onBack:t}
657){const r=[e.thumbnail_url,e.logo_url].filter(Boolean),[i,a]=p.useState(0),[l,d]=p.useState(0);return p.useEffect(()=>{if(r.length<=1)return;let u=0;const h=setInterval(()=>{u+=2,d(u),u>=100&&(u=0,a(m=>(m+1)%r.length))},80);return()=>clearInterval(h)},[r.length]),n.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden",padding:"0 52px"},children:[n.jsxs("button",{onClick:t,style:{display:"inline-flex",alignItems:"center",gap:"8px",color:"rgba(255,255,255,0.5)",fontSize:"15px",background:"none",border:"none",cursor:"pointer",padding:"0 0 20px 0",flexShrink:0},children:[n.jsx(jr,{size:18})," Back to Directory"]}),n.jsxs("div",{style:{position:"relative",height:"460px",borderRadius:"32px",overflow:"hidden",flexShrink:0,marginBottom:"24px"},children:[r[i]?n.jsx("img",{src:r[i],alt:e.business_name,style:{width:"100%",height:"100%",objectFit:"cover",transition:"opacity 0.6s ease"}},i):n.jsx("div",{style:{width:"100%",height:"100%",background:"linear-gradient(135deg, #1a3560, #0d1e3a)",display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx(bt,{size:80,color:wt,style:{opacity:.15}})}),n.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to top, rgba(10,31,61,0.97) 0%, transparent 55%)"}}),e.category&&n.jsx("div",{style:{position:"absolute",top:"22px",left:"22px",background:"rgba(79,168,232,0.85)",backdropFilter:"blur(8px)",color:"white",fontSize:"13px",fontWeight:700,padding:"6px 18px",borderRadius:"999px",letterSpacing:"0.08em",textTransform:"uppercase"},children:e.category}),r.length>1&&n.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"3px",background:"rgba(255,255,255,0.15)"},children:n.jsx("div",{style:{height:"100%",width:`${l}%`,background:wt,transition:"width 0.08s linear"}})}),n.jsx("div",{style:{position:"absolute",bottom:"28px",left:"32px",right:"32px"},children:n.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:"16px"},children:[e.logo_url&&n.jsx("img",{src:e.logo_url,alt:"",style:{width:"62px",height:"62px",borderRadius:"16px",objectFit:"contain",background:"rgba(255,255,255,0.1)",backdropFilter:"blur(8px)",padding:"6px",flexShrink:0}}),n.jsx("div",{children:n.jsx("div",{style:{color:"white",fontSize:"32px",fontWeight:900,letterSpacing:"-0.5px",lineHeight:1.1},children:e.business_name})})]})})]}),n.jsxs("div",{style:{flex:1,overflowY:"auto",scrollbarWidth:"none"},children:[e.description&&n.jsx("p",{style:{color:"rgba(255,255,255,0.65)",fontSize:"17px",lineHeight:1.8,marginBottom:"28px",padding:"24px",background:"rgba(255,255,255,0.03)",borderRadius:"20px",border:"1px solid rgba(255,255,255,0.06)"},children:e.description}),n.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"},children:[[{icon:Vt,label:"Phone",value:e.contact_phone,href:`tel:${e.contact_phone}`,color:"#4ade80"},{icon:Bn,label:"Email",value:e.contact_email,href:`mailto:${e.contact_email}`,color:wt},{icon:ni,label:"Location",value:e.location,color:"#f87171"},{icon:Zt,label:"Hours",value:e.business_hours,color:br}].filter(u=>u.value).map(({icon:u,label:h,value:m,href:g,color:y})=>n.jsxs("a",{href:g,style:{display:"flex",alignItems:"flex-start",gap:"14px",padding:"20px",borderRadius:"20px",background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.07)",textDecoration:"none",transition:"background 0.2s"},children:[n.jsx("div",{style:{width:"38px",height:"38px",borderRadius:"12px",background:`${y}18`,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n.jsx(u,{size:18,color:y})}),n.jsxs("div",{children:[n.jsx("div",{style:{color:"rgba(255,255,255,0.35)",fontSize:"11px",fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:"4px"},children:h}),n.jsx("div",{style:{color:"white",fontWeight:600,fontSize:"14px",lineHeight:1.4},children:m})]})]},h)),e.website_url&&n.jsxs("a",{href:e.website_url,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:"14px",padding:"20px",borderRadius:"20px",background:"rgba(79,168,232,0.06)",border:"1px solid rgba(79,168,232,0.18)",textDecoration:"none",gridColumn:"span 2"},children:[n.jsx("div",{style:{width:"38px",height:"38px",borderRadius:"12px",background:"rgba(79,168,232,0.15)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n.jsx(Vb,{size:18,color:wt})}),n.jsxs("div",{style:{flex:1},children:[n.jsx("div",{style:{color:"rgba(255,255,255,0.35)",fontSize:"11px",fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:"4px"},children:"Website"}),n.jsx("div",{style:{color:wt,fontWeight:600,fontSize:"14px"},children:e.website_url})]}),n.jsx(ti,{size:18,color:"rgba(79,168,232,0.5)"})]})]})]})]})}function bB({taxTips:e,tipIdx:t,setTipIdx:r,reviews:i,reviewIdx:a,setReviewIdx:l,review:d}){var g;const u=e[t]||{},h={deductions:"#4ade80",deadlines:"#f87171",business:wt,irs:"#f0c040",planning:"#c084fc",default:wt},m=h[(g=u.category)==null?void 0:g.toLowerCase()]||h.default;return n.jsxs("div",{style:{height:"100%",overflowY:"auto",padding:"0 52px 32px",scrollbarWidth:"none"},children:[n.jsxs("div",{style:{position:"relative",background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"36px",padding:"52px",marginBottom:"24px",overflow:"hidden",animation:"fade-in 0.5s ease"},children:[n.jsx("div",{style:{position:"absolute",top:"-80px",right:"-80px",width:"300px",height:"300px",borderRadius:"50%",background:`radial-gradient(circle, ${m}20 0%, transparent 70%)`,pointerEvents:"none"}}),n.jsxs("div",{style:{display:"flex",alignItems:"flex-start",ga
657p:"24px",marginBottom:"28px"},children:[n.jsx("div",{style:{fontSize:"72px",lineHeight:1,animation:"float 3s ease infinite",flexShrink:0},children:u.icon||"💡"}),n.jsxs("div",{children:[n.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"6px",background:`${m}20`,color:m,fontSize:"12px",fontWeight:700,padding:"5px 14px",borderRadius:"999px",letterSpacing:"0.1em",textTransform:"uppercase",marginBottom:"12px"},children:[n.jsx(Hd,{size:12})," ",u.category]}),n.jsx("div",{style:{color:"white",fontSize:"34px",fontWeight:900,letterSpacing:"-0.5px",lineHeight:1.15},children:u.title})]})]}),n.jsx("div",{style:{color:"rgba(255,255,255,0.7)",fontSize:"21px",lineHeight:1.8,marginBottom:"36px"},children:u.content}),n.jsx("div",{style:{display:"flex",gap:"10px",flexWrap:"wrap"},children:e.map((y,w)=>n.jsxs("button",{onClick:()=>r(w),style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 18px",borderRadius:"999px",border:`1px solid ${w===t?m:"rgba(255,255,255,0.1)"}`,background:w===t?`${m}18`:"transparent",color:w===t?m:"rgba(255,255,255,0.35)",fontSize:"13px",fontWeight:600,cursor:"pointer",transition:"all 0.2s"},children:[n.jsx("span",{style:{fontSize:"16px"},children:y.icon})," ",y.title]},w))})]}),n.jsxs("div",{style:{background:"linear-gradient(135deg, rgba(30,95,168,0.3), rgba(10,31,61,0.5))",border:"1px solid rgba(79,168,232,0.25)",borderRadius:"24px",padding:"28px 36px",display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"28px"},children:[n.jsxs("div",{children:[n.jsx("div",{style:{color:"white",fontWeight:800,fontSize:"20px",letterSpacing:"-0.3px"},children:"Share us with friends & family!"}),n.jsx("div",{style:{color:"rgba(255,255,255,0.45)",fontSize:"14px",marginTop:"4px"},children:"Know someone who needs tax help? Pass our number along"})]}),n.jsxs("div",{children:[n.jsx("div",{style:{color:wt,fontWeight:900,fontSize:"26px",letterSpacing:"-0.5px"},children:"(408) 258-2200"}),n.jsx("div",{style:{color:"rgba(255,255,255,0.3)",fontSize:"12px",textAlign:"right"},children:"Free consultation"})]})]}),n.jsx("div",{style:{color:"rgba(255,255,255,0.35)",fontSize:"12px",fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",marginBottom:"18px"},children:"What our clients say"}),i.length>0?n.jsx(n.Fragment,{children:n.jsxs("div",{style:{background:"rgba(240,192,64,0.04)",border:"1px solid rgba(240,192,64,0.14)",borderRadius:"28px",padding:"36px",animation:"fade-in 0.4s ease"},children:[n.jsx("div",{style:{display:"flex",gap:"5px",marginBottom:"20px"},children:[1,2,3,4,5].map(y=>n.jsx(Zn,{size:24,fill:y<=((d==null?void 0:d.rating)||5)?br:"transparent",color:br},y))}),n.jsxs("div",{style:{color:"rgba(255,255,255,0.82)",fontSize:"20px",lineHeight:1.75,fontStyle:"italic",marginBottom:"24px"},children:['"',d==null?void 0:d.review_text,'"']}),n.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[n.jsxs("div",{children:[n.jsx("div",{style:{color:"white",fontWeight:700,fontSize:"17px"},children:d==null?void 0:d.reviewer_name}),(d==null?void 0:d.service_type)&&n.jsx("div",{style:{color:wt,fontSize:"13px",marginTop:"3px"},children:d.service_type})]}),n.jsx("div",{style:{display:"flex",gap:"8px"},children:i.map((y,w)=>n.jsx("button",{onClick:()=>l(w),style:{width:w===a?28:8,height:"8px",borderRadius:"4px",background:w===a?br:"rgba(255,255,255,0.15)",border:"none",cursor:"pointer",transition:"all 0.3s ease",padding:0}},w))})]})]})}):n.jsx("div",{style:{padding:"40px",textAlign:"center",color:"rgba(255,255,255,0.18)",fontSize:"15px"},children:"No reviews yet — add them in the Admin Kiosk tab"})]})}const wB=[{icon:"📊",label:"Individual Tax Returns",desc:"Federal & state returns for individuals, couples, and families. Maximizing your refund every year.",color:"#4ade80"},{icon:"🏢",label:"Business Tax Returns",desc:"S-Corps, C-Corps, LLCs, partnerships, and sole proprietors. Accurate, on-time filings.",color:wt},{icon:"📚",label:"Bookkeeping & Accounting",desc:"Monthly reconciliation, financial statements, and clean books year-round.",color:"#c084fc"},{icon:"💰",label:"Tax Planning & Strategy",desc:"Proactive planning to minimize your tax burden and maximize savings throughout the year.",color:br},{icon:"👔",label:"Full-Service Payroll",desc:"Payroll processing, direct deposit, tax filings, and W-2/1099 preparation.",color:"#fb923c"},{icon:"🛡️",label:"IRS Audit Representation",desc:"We represent you before the IRS. Audits, notices, payment plans, and penalty abatement.",color:"#f87171"},{icon:"📋",label:"Notary Services",desc:"Certified notary services for legal, financial, and real estate documents.",color:"#34d399"},{icon:"🏦",label:"Retirement & Investment Planning",desc:"401(k), IRA, SEP, and SIMPLE plan guid
657ance to secure your financial future.",color:"#60a5fa"},{icon:"🚀",label:"Business Formation",desc:"LLC, S-Corp, C-Corp setup, EIN registration, and operating agreements.",color:"#a78bfa"},{icon:"🌍",label:"ITIN & Foreign National Tax",desc:"ITIN applications and tax filing assistance for non-residents and foreign nationals.",color:"#f472b6"}];function jB(){return n.jsxs("div",{style:{height:"100%",overflowY:"auto",padding:"0 52px 32px",scrollbarWidth:"none"},children:[n.jsxs("div",{style:{marginBottom:"28px",animation:"fade-in 0.4s ease"},children:[n.jsx("div",{style:{color:"white",fontWeight:900,fontSize:"36px",letterSpacing:"-0.5px",marginBottom:"8px"},children:"Our Services"}),n.jsx("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"16px"},children:"Comprehensive tax & business solutions for individuals and companies"})]}),n.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px",marginBottom:"28px"},children:wB.map(({icon:e,label:t,desc:r,color:i},a)=>n.jsxs("div",{style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"24px",padding:"24px",display:"flex",gap:"18px",alignItems:"flex-start",animation:`fade-in 0.4s ease ${a*.04}s both`},children:[n.jsx("div",{style:{width:"52px",height:"52px",borderRadius:"16px",background:`${i}18`,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:"26px"},children:e}),n.jsxs("div",{children:[n.jsx("div",{style:{color:"white",fontWeight:700,fontSize:"16px",marginBottom:"6px"},children:t}),n.jsx("div",{style:{color:"rgba(255,255,255,0.45)",fontSize:"13px",lineHeight:1.6},children:r})]})]},t))}),n.jsxs("div",{style:{background:"linear-gradient(135deg, rgba(30,95,168,0.3), rgba(10,31,61,0.5))",border:"1px solid rgba(79,168,232,0.25)",borderRadius:"24px",padding:"28px 36px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[n.jsxs("div",{children:[n.jsx("div",{style:{color:"white",fontWeight:800,fontSize:"20px",letterSpacing:"-0.3px"},children:"Ready to get started?"}),n.jsx("div",{style:{color:"rgba(255,255,255,0.45)",fontSize:"14px",marginTop:"4px"},children:"Call us today for a free consultation"})]}),n.jsxs("div",{children:[n.jsx("div",{style:{color:wt,fontWeight:900,fontSize:"28px",letterSpacing:"-0.5px"},children:"(408) 258-2200"}),n.jsx("div",{style:{color:"rgba(255,255,255,0.3)",fontSize:"12px",textAlign:"right"},children:"Free consultation"})]})]})]})}function NB({sponsors:e,onEmailClick:t}){const r=Array.from({length:4},(i,a)=>e[a]||null);return n.jsxs("div",{style:{flexShrink:0,borderTop:"1px solid rgba(255,255,255,0.07)",background:"rgba(0,0,0,0.35)",backdropFilter:"blur(12px)"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 52px",borderBottom:"1px solid rgba(255,255,255,0.05)"},children:[n.jsxs("div",{style:{display:"flex",gap:"28px"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"rgba(255,255,255,0.45)",fontSize:"13px"},children:[n.jsx(ni,{size:13,color:wt}),n.jsx("span",{children:"2635 Cunningham Ave. Suite #23, San Jose, CA 95148"})]}),n.jsxs("button",{onClick:t,style:{display:"flex",alignItems:"center",gap:"8px",color:"rgba(255,255,255,0.45)",fontSize:"13px",background:"none",border:"none",cursor:"pointer",padding:0},children:[n.jsx(Bn,{size:13,color:wt}),n.jsx("span",{style:{textDecoration:"underline"},children:"[email protected]"})]})]}),n.jsx("div",{style:{color:"rgba(255,255,255,0.45)",fontSize:"13px"},children:n.jsx("span",{style:{color:wt,fontWeight:700},children:"(408) 258-2200"})})]}),n.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr 1fr",gap:"0px"},children:r.map((i,a)=>n.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"20px 16px 18px",borderRight:a<3?"1px solid rgba(255,255,255,0.06)":"none",gap:"10px",minHeight:"160px"},children:i?n.jsxs(n.Fragment,{children:[i.logo_url&&n.jsx("img",{src:i.logo_url,alt:i.label,style:{height:"32px",maxWidth:"100px",objectFit:"contain",opacity:.9}}),i.qr_image_url?n.jsx("div",{style:{background:"white",borderRadius:"12px",padding:"7px"},children:n.jsx("img",{src:i.qr_image_url,alt:"QR",style:{width:"72px",height:"72px",display:"block"}})}):n.jsx("div",{style:{width:"86px",height:"86px",borderRadius:"12px",border:"2px dashed rgba(79,168,232,0.25)",display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsxs("span",{style:{color:"rgba(255,255,255,0.15)",fontSize:"11px",textAlign:"center",lineHeight:1.4},children:["QR",n.jsx("br",{}),"code"]})}),n.jsx("div",{style:{color:"rgba(255,255,255,0.55)",fontSize:"12px",fontWeight:600,textAlign:"center",letterSpacing:"0.03em"},children:i.label})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{style:{width:"86px",height:"86px",borderRadius:"12px",border:"2px dashed rgba(255,255,255,0.08)",display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx("span",{style:{color:"rgba(255,255,255,0.1)",fontSize:"22px"},children:"+"})}),n.jsx("div",{style:{color:"rgba(255,255,255,0.15)",fontSize:"11px",textAlign:"center"},children:"Add in Admin"})]})},a))})]})}var yp,_b;function SB(){if(_b)return yp;_b=1;const{base44:e}=zm();return yp=new Proxy({},{get:(t,r)=>(...i)=>e.functions.invoke(r,...i)}),yp}var Ed=SB();const uu={waiting:{label:"Waiting",color:"#f59e0b",bg:"rgba(245,158,11,0.15)",border:"rgba(245,158,11,0.3)"},in_progress:{label:"In Progress",color:"#3b82f6",bg:"rgba(59,130,246,0.15)",border:"rgba(59,130,246,0.3)"},completed:{label:"Completed",color:"#22c55e",bg:"rgba(34,197,94,0.15)",border:"rgba(34,197,94,0.3)"},no_show:{label:"No Show",color:"#6b7280",bg:"rgba(107,114,128,0.15)",border:"rgba(107,114,128,0.3)"}
657,follow_up:{label:"Follow-Up",color:"#a855f7",bg:"rgba(168,85,247,0.15)",border:"rgba(168,85,247,0.3)"}};function CB({status:e}){const t=uu[e]||uu.waiting;return n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"5px 14px",borderRadius:"999px",background:t.bg,border:`1px solid ${t.border}`,color:t.color,fontSize:"13px",fontWeight:700},children:[e==="waiting"&&n.jsx(sn,{size:12}),t.label]})}function Wd(e){return e?new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0,timeZone:"America/Los_Angeles"}):"—"}function _B(e){const t=["Date","Name","Phone","Email","Status","Client Type","Service","How Found","Appointment","Assigned To","Notes"],r=e.map(u=>[Wd(u.checkin_date),u.full_name,u.phone,u.email||"",u.checkin_status,u.client_status,u.service_requested,u.how_found||"",u.has_appointment?`Yes — ${u.appointment_with||""}`:"No",u.assigned_to||"",(u.staff_notes||"").replace(/\n/g," ")]),i=[t,...r].map(u=>u.map(h=>`"${String(h).replace(/"/g,'""')}"`).join(",")).join(`
658`),a=new Blob([i],{type:"text/csv"}),l=URL.createObjectURL(a),d=document.createElement("a");d.href=l,d.download=`checkins_${new Date().toISOString().slice(0,10)}.csv`,d.click(),URL.revokeObjectURL(l)}function kB(){const[e,t]=p.useState(!1),[r,i]=p.useState(""),[a,l]=p.useState(!1),[d,u]=p.useState(!1),[h,m]=p.useState(!1),[g,y]=p.useState(""),[w,C]=p.useState([]),[k,N]=p.useState(!1),[j,b]=p.useState(""),[S,E]=p.useState(""),[R,O]=p.useState(""),[$,V]=p.useState(""),[M,ne]=p.useState(""),[Q,ie]=p.useState(null),[ee,Z]=p.useState(""),[L,W]=p.useState(""),[te,le]=p.useState(!1),G=async()=>{var B;m(!0);try{const T=await Ed.getCheckinRecords({password:r});y(r),C(((B=T.data)==null?void 0:B.records)||[]),t(!0)}catch{l(!0),i("")}m(!1)},q=async B=>{var se;const T=g;N(!0);const re=await Ed.getCheckinRecords({password:T});C(((se=re.data)==null?void 0:se.records)||[]),N(!1)},U=B=>{ie(B),Z(B.staff_notes||""),W(B.assigned_to||"")},A=()=>ie(null),X=async(B,T)=>{le(!0);const re=T==="completed"?{help_completed_at:new Date().toISOString(),already_received_help:!0}:{};await Ed.updateCheckinRecord({password:g,id:B,data:{checkin_status:T,...re}}),await q(),(Q==null?void 0:Q.id)===B&&ie(se=>({...se,checkin_status:T,...re})),le(!1)},ge=async()=>{Q&&(le(!0),await Ed.updateCheckinRecord({password:g,id:Q.id,data:{staff_notes:ee,assigned_to:L}}),await q(),le(!1))},pe=w.filter(B=>{var re,se,de;const T=j.toLowerCase();return!(T&&!((re=B.full_name)!=null&&re.toLowerCase().includes(T))&&!((se=B.phone)!=null&&se.includes(T))||S&&B.checkin_status!==S||R&&B.client_status!==R||$&&B.service_requested!==$||M&&!((de=B.checkin_date)!=null&&de.startsWith(M)))}),me=[...new Set(w.map(B=>B.service_requested).filter(Boolean))];return e?n.jsxs("div",{style:{minHeight:"100vh",background:"#060f1e",fontFamily:"Inter, sans-serif",color:"white"},children:[n.jsxs("div",{style:{background:"#0a1f3d",borderBottom:"1px solid rgba(79,168,232,0.15)",padding:"20px 36px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[n.jsxs("div",{children:[n.jsx("div",{style:{fontWeight:900,fontSize:"22px"},children:"Check-In Manager"}),n.jsx("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"13px"},children:"AMC Tax Services — Staff Only"})]}),n.jsxs("div",{style:{display:"flex",gap:"12px"},children:[n.jsxs("button",{onClick:()=>_B(pe),style:{padding:"10px 20px",borderRadius:"10px",border:"1px solid rgba(79,168,232,0.3)",background:"rgba(79,168,232,0.08)",color:"#4fa8e8",fontSize:"14px",fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[n.jsx(Hb,{size:15})," Export CSV"]}),n.jsx("button",{onClick:()=>q(),style:{padding:"10px 20px",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"rgba(255,255,255,0.6)",fontSize:"14px",cursor:"pointer"},children:"Refresh"})]})]}),n.jsxs("div",{style:{display:"flex",height:"calc(100vh - 77px)"},children:[n.jsxs("div",{style:{flex:Q?"0 0 55%":"1",borderRight:"1px solid rgba(255,255,255,0.07)",display:"flex",flexDirection:"column",transition:"flex 0.3s ease"},children:[n.jsxs("div",{style:{padding:"20px 24px",borderBottom:"1px solid rgba(255,255,255,0.07)",display:"flex",flexDirection:"column",gap:"12px"},children:[n.jsxs("div",{style:{position:"relative"},children:[n.jsx(ra,{size:16,color:"rgba(255,255,255,0.3)",style:{position:"absolute",left:"16px",top:"50%",transform:"translateY(-50%)"}}),n.jsx("input",{value:j,onChange:B=>b(B.target.value),placeholder:"Search name or phone…",style:{width:"100%",padding:"12px 16px 12px 44px",borderRadius:"10px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",color:"white",fontSize:"15px",outline:"none",boxSizing:"border-box"}})]}),n.jsxs("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[n.jsxs("select",{value:S,onChange:B=>E(B.target.value),style:{flex:1,minWidth:"140px",padding:"10px 14px",borderRadius:"9px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",color:"white",fontSize:"13px",outline:"none"},children:[n.jsx("option",{value:"",style:{color:"#000"},children:"All Statuses"}
658),Object.entries(uu).map(([B,T])=>n.jsx("option",{value:B,style:{color:"#000"},children:T.label},B))]}),n.jsxs("select",{value:R,onChange:B=>O(B.target.value),style:{flex:1,minWidth:"130px",padding:"10px 14px",borderRadius:"9px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",color:"white",fontSize:"13px",outline:"none"},children:[n.jsx("option",{value:"",style:{color:"#000"},children:"All Clients"}),n.jsx("option",{value:"existing",style:{color:"#000"},children:"Existing"}),n.jsx("option",{value:"new",style:{color:"#000"},children:"New"})]}),n.jsx("input",{type:"date",value:M,onChange:B=>ne(B.target.value),style:{flex:1,minWidth:"130px",padding:"10px 14px",borderRadius:"9px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",color:"white",fontSize:"13px",outline:"none"}}),n.jsxs("select",{value:$,onChange:B=>V(B.target.value),style:{flex:2,minWidth:"180px",padding:"10px 14px",borderRadius:"9px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",color:"white",fontSize:"13px",outline:"none"},children:[n.jsx("option",{value:"",style:{color:"#000"},children:"All Services"}),me.map(B=>n.jsx("option",{value:B,style:{color:"#000"},children:B.length>40?B.slice(0,40)+"…":B},B))]}),(j||S||R||M||$)&&n.jsx("button",{onClick:()=>{b(""),E(""),O(""),ne(""),V("")},style:{padding:"10px 14px",borderRadius:"9px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.5)",fontSize:"13px",cursor:"pointer"},children:"Clear"})]}),n.jsxs("div",{style:{color:"rgba(255,255,255,0.3)",fontSize:"13px"},children:[pe.length," of ",w.length," submissions",pe.filter(B=>B.checkin_status==="waiting").length>0&&n.jsxs("span",{style:{marginLeft:"12px",color:"#f59e0b",fontWeight:700},children:["⚠ ",pe.filter(B=>B.checkin_status==="waiting").length," waiting"]})]})]}),n.jsxs("div",{style:{flex:1,overflowY:"auto"},children:[k&&n.jsx("div",{style:{padding:"40px",textAlign:"center",color:"rgba(255,255,255,0.3)"},children:"Loading…"}),!k&&pe.length===0&&n.jsx("div",{style:{padding:"40px",textAlign:"center",color:"rgba(255,255,255,0.2)"},children:"No submissions found."}),pe.map(B=>n.jsx("div",{onClick:()=>U(B),style:{padding:"18px 24px",borderBottom:"1px solid rgba(255,255,255,0.05)",cursor:"pointer",background:(Q==null?void 0:Q.id)===B.id?"rgba(79,168,232,0.08)":"transparent",borderLeft:`3px solid ${(Q==null?void 0:Q.id)===B.id?"#4fa8e8":"transparent"}`,transition:"background 0.15s"},children:n.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"12px"},children:[n.jsxs("div",{style:{flex:1,minWidth:0},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"6px"},children:[n.jsx("span",{style:{fontWeight:700,fontSize:"16px",color:"white",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:B.full_name}),n.jsx("span",{style:{fontSize:"12px",padding:"2px 10px",borderRadius:"999px",background:B.client_status==="existing"?"rgba(79,168,232,0.12)":"rgba(168,85,247,0.12)",color:B.client_status==="existing"?"#4fa8e8":"#a855f7",fontWeight:600,whiteSpace:"nowrap"},children:B.client_status==="existing"?"Existing":"New"})]}),n.jsxs("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"13px",marginBottom:"6px"},children:[B.phone," · ",Wd(B.checkin_date)]}),n.jsx("div",{style:{color:"rgba(255,255,255,0.55)",fontSize:"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:B.service_requested})]}),n.jsx(CB,{status:B.checkin_status})]})},B.id))]})]}),Q&&n.jsxs("div",{style:{flex:"0 0 45%",overflowY:"auto",padding:"28px 32px",background:"#080f1c"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"24px"},children:[n.jsxs("div",{children:[n.jsx("div",{style:{fontWeight:900,fontSize:"22px"},children:Q.full_name}),n.jsx("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"13px",marginTop:"3px"},children:Wd(Q.checkin_date)})]}),n.jsx("button",{onClick:A,style:{width:"36px",height:"36px",borderRadius:"10px",background:"rgba(255,255,255,0.06)",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx(ii,{size:18,color:"rgba(255,255,255,0.5)"})})]}),n.jsxs("div",{style:{marginBottom:"24px"},children:[n.jsx("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"12px",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",marginBottom:"10px"},children:"Update Status"}),n.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:Object.entries(uu).map(([B,T])=>n.jsx("button",{onClick:()=>X(Q.id,B),disabled:te,style:{padding:"9px 16px",borderRadius:"10px",fontSize:"13px",fontWeight:700,cursor:"pointer",border:`1.5px solid ${Q.checkin_status===B?T.color:"rgba(255,255,255,0.1)"}`,background:Q.checkin_status===B?T.bg:"transparent",color:Q.checkin_status===B?T.color:"rgba(255,255,255,0.4)",transition:"all 0.15s"},children:T.label},B))}),Q.help_completed_at&&n.jsxs("div",{style:{color:"#22c55e",fontSize:"12px",marginTop:"8px"},children:["✓ Help completed: ",Wd(Q.help_completed_at)]})]}),n.jsx("div",{style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"16px",padding:"20px",marginBottom:"20px"},children:[{icon:Vt,label:"Phone",value:Q.phone},{icon:Bn,label:"Email",value:Q.email||"—"},{icon:$o,label:"Client Type",value:Q.client_status==="existing"?"Existing Client":"New Client"},{icon:Nn,label:"Service Requested",value:Q.service_requested},{icon:Nn,label:"Previous Service",value:Q.previous_service||"—"},{icon:ra,label:"How Found Us",value:Q.how_found||"—"},{icon:$o,label:"Referred By",value:Q.referral_name||"—"},{icon:er,label:"Appointment",value:Q.has_appointment?`Yes — ${Q.appointment_with||"TBD"}`:"No"},{icon:Yr,label:"Already Helped",value:Q.already_received_help?"Yes":"No"}].map(({icon:B,label:T,value:re})=>n.jsxs("div",{style:{display:"flex",gap:"12px",alignItems:"flex-start",padding:"8px 0",borderBottom:"1px solid rgba(255,255,255,0.04)"},children:[n.jsx(B,{size:14,color:"rgba(255,255,255,0.3)",style:{marginTop:"2px",flexShrink:0}}),n.jsxs("div",{children:[n.jsx("div",{style:{color:"rgba(255,255,255,0.3)",fontSize:"11px",fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase"},children:T}),n.jsx("div",{style:{color:"white",fontSize:"14px",marginTop:"2px"},children:re})]})]},T))}
658),n.jsxs("div",{style:{marginBottom:"16px"},children:[n.jsx("label",{style:{color:"rgba(255,255,255,0.4)",fontSize:"12px",fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",display:"block",marginBottom:"8px"},children:"Assigned To"}),n.jsx("input",{value:L,onChange:B=>W(B.target.value),placeholder:"Staff member name…",style:{width:"100%",padding:"12px 16px",borderRadius:"10px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",color:"white",fontSize:"14px",outline:"none",boxSizing:"border-box"}})]}),n.jsxs("div",{style:{marginBottom:"16px"},children:[n.jsx("label",{style:{color:"rgba(255,255,255,0.4)",fontSize:"12px",fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",display:"block",marginBottom:"8px"},children:"Staff Notes"}),n.jsx("textarea",{value:ee,onChange:B=>Z(B.target.value),rows:4,placeholder:"Add internal notes…",style:{width:"100%",padding:"12px 16px",borderRadius:"10px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",color:"white",fontSize:"14px",outline:"none",resize:"vertical",boxSizing:"border-box",fontFamily:"inherit",lineHeight:1.6}})]}),n.jsx("button",{onClick:ge,disabled:te,style:{width:"100%",padding:"14px",borderRadius:"12px",border:"none",background:"linear-gradient(135deg, #1e5fa8, #2a7fd4)",color:"white",fontSize:"15px",fontWeight:700,cursor:te?"not-allowed":"pointer",opacity:te?.7:1},children:te?"Saving…":"Save Changes"})]})]})]}):n.jsx("div",{style:{minHeight:"100vh",background:"#0a1f3d",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Inter, sans-serif"},children:n.jsxs("div",{style:{background:"#0d1e3a",border:"1px solid rgba(79,168,232,0.2)",borderRadius:"28px",padding:"52px 60px",width:"440px",textAlign:"center"},children:[n.jsx("div",{style:{width:"64px",height:"64px",borderRadius:"20px",background:"linear-gradient(135deg, #1e5fa8, #2a7fd4)",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px"},children:n.jsx($o,{size:28,color:"white"})}),n.jsx("div",{style:{color:"white",fontWeight:900,fontSize:"26px",marginBottom:"8px"},children:"Staff Access"}),n.jsx("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"15px",marginBottom:"32px"},children:"Check-In Management"}),n.jsxs("div",{style:{position:"relative",marginBottom:"12px"},children:[n.jsx("input",{value:r,onChange:B=>{i(B.target.value),l(!1)},onKeyDown:B=>B.key==="Enter"&&G(),type:d?"text":"password",placeholder:"Enter staff password",style:{width:"100%",padding:"18px 56px 18px 22px",borderRadius:"14px",background:"rgba(255,255,255,0.06)",border:`1.5px solid ${a?"#f87171":"rgba(79,168,232,0.25)"}`,color:"white",fontSize:"17px",outline:"none",boxSizing:"border-box"}}),n.jsx("button",{onClick:()=>u(B=>!B),style:{position:"absolute",right:"16px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.4)",padding:"4px",display:"flex",alignItems:"center"},children:d?n.jsx(Pd,{size:20}):n.jsx(Bi,{size:20})})]}),a&&n.jsx("div",{style:{color:"#f87171",fontSize:"14px",marginBottom:"12px"},children:"Incorrect password. Try again."}),n.jsx("button",{onClick:G,disabled:h,style:{width:"100%",padding:"18px",borderRadius:"14px",border:"none",background:"linear-gradient(135deg, #1e5fa8, #2a7fd4)",color:"white",fontSize:"17px",fontWeight:700,cursor:h?"not-allowed":"pointer",opacity:h?.7:1},children:h?"Verifying…":"Sign In"})]})})}const KS=p.createContext(),EB=({children:e})=>{const[t,r]=p.useState(null),[i,a]=p.useState(!1),[l,d]=p.useState(!0),[u,h]=p.useState(!0),[m,g]=p.useState(null),[y,w]=p.useState(null);p.useEffect(()=>{C()},[]);const C=async()=>{var b,S;try{h(!0),g(null);const E=ul({baseURL:"/api/apps/public",headers:{"X-App-Id":pl.appId},token:pl.token,interceptResponses:!0});try{const R=await E.get(`/prod/public-settings/by-id/${pl.appId}`);w(R),pl.token?await k():(d(!1),a(!1)),h(!1)}catch(R){if(console.error("App state check failed:",R),R.status===403&&((S=(b=R.data)==null?void 0:b.extra_data)!=null&&S.reason)){const O=R.data.extra_data.reason;g(O==="auth_required"?{type:"auth_required",message:"Authentication required"}:O==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:O,message:R.message})}else g({type:"unknown",message:R.message||"Failed to load app"});h(!1),d(!1)}}catch(E){console.error("Unexpected error:",E),g({type:"unknown",message:E.message||"An unexpected error occurred"}),h(!1),d(!1)}},k=async()=>{try{d(!0);const b=await Fe.auth.me();r(b),a(!0),d(!1)}catch(b){console.error("User auth check failed:",b),d(!1),a(!1),(b.status===401||b.status===403)&&g({type:"auth_required",message:"Authentication required"})}},N=(b=!0)=>{r(null),a(!1),b?Fe.auth.logout(window.location.href):Fe.auth.logout()},j=()=>{Fe.auth.redirectToLogin(window.location.href)};return n.jsx(KS.Provider,{value:{user:t,isAuthenticated:i,isLoadingAuth:l,isLoadingPublicSettings:u,authError:m,appPublicSettings:y,logout:N,navigateToLogin:j,checkAppState:C},children:e})},RB=()=>{const e=p.useContext(KS);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},TB=()=>n.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:n.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:n.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),n.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),n.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),n.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[n.jsx("p",{children:"If you believe this is an error, you can:"}),n.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[n.jsx("li",{children:"Verify you are logged in with the correct account"}),n.jsx("li",{children:"Contact the app administrator for access"}),n.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:GS,Layout:kb,mainPage:PB}=JF,YS=PB,AB=GS[YS],Eb=({children:e,currentPageName:t})=>kb?n.jsx(kb,{currentPageName:t,children:e}):n.jsx(n.Fragment,{children:e}),OB=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:r,navigateToLogin:i}=RB();if(t||e)return n.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:n.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(r){if(r.type==="user_not_registered")return n.jsx(TB,{});if(r.type==="auth_required")return i(),null}return n.jsxs(c4,{children:[n.jsx(Bo,{path:"/",element:n.jsx(Eb,{currentPageName:YS,children:n.jsx(AB,{})})}),Object.entries(GS).map(([a,l])=>n.jsx(Bo,{path:`/${a}`,element:n.jsx(Eb,{currentPageName:a,children:n.jsx(l,{})})},a)),n.jsx(Bo,{path:"/kiosk",element:n.jsx(hB,{})}),n.jsx(Bo,{path:"/checkin-manager",element:n.jsx(kB,{})}),n.jsx(Bo,{path:"*",element:n.jsx(ZF,{})})]})};function IB(){return n.jsx(EB,{children:n.jsxs(nR,{client:mR,children:[n.jsx(x4,{children:n.jsx(OB,{})}),n.jsx(TE,{})]})})}ek.createRoot(document.getElementById("root")).render(n.jsx(IB,{}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.