vendor: 4,788 bytes, lines 1-9
1var GC=e=>{throw TypeError(e)};var Lx=(e,t,n)=>t.has(e)||GC("Cannot "+n);var V=(e,t,n)=>(Lx(e,t,"read from private field"),n?n.call(e):t.get(e)),Ae=(e,t,n)=>t.has(e)?GC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),pe=(e,t,n,r)=>(Lx(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),We=(e,t,n)=>(Lx(e,t,"access private method"),n);var cm=(e,t,n,r)=>({set _(i){pe(e,t,i,n)},get _(){return V(e,t,r)}});function IH(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var um=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZM={exports:{}},Vy={},e$={exports:{}},Ye={};/** 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 jp=Symbol.for("react.element"),RH=Symbol.for("react.portal"),DH=Symbol.for("react.fragment"),MH=Symbol.for("react.strict_mode"),$H=Symbol.for("react.profiler"),LH=Symbol.for("react.provider"),VH=Symbol.for("react.context"),FH=Symbol.for("react.forward_ref"),BH=Symbol.for("react.suspense"),zH=Symbol.for("react.memo"),UH=Symbol.for("react.lazy"),KC=Symbol.iterator;function WH(e){return e===null||typeof e!="object"?null:(e=KC&&e[KC]||e["@@iterator"],typeof e=="function"?e:null)}var t$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},n$=Object.assign,r$={};function rd(e,t,n){this.props=e,this.context=t,this.refs=r$,this.updater=n||t$}rd.prototype.isReactComponent={};rd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};rd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function i$(){}i$.prototype=rd.prototype;function E_(e,t,n){this.props=e,this.context=t,this.refs=r$,this.updater=n||t$}var k_=E_.prototype=new i$;k_.constructor=E_;n$(k_,rd.prototype);k_.isPureReactComponent=!0;var YC=Array.isArray,a$=Object.prototype.hasOwnProperty,T_={current:null},s$={key:!0,ref:!0,__self:!0,__source:!0};function o$(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)a$.call(t,r)&&!s$.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:jp,type:e,key:a,ref:s,props:i,_owner:T_.current}}function qH(e,t){return{$$typeof:jp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function O_(e){return typeof e=="object"&&e!==null&&e.$$typeof===jp}function HH(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var XC=/\/+/g;function Vx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?HH(""+e.key):t.toString(36)}function cg(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case jp:case RH:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Vx(s,0):r,YC(i)?(n="",e!=null&&(n=e.replace(XC,"$&/")+"/"),cg(i,t,n,"",function(u){return u})):i!=null&&(O_(i)&&(i=qH(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(XC,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",YC(e))for(var l=0;l<e.length;l++){a=e[l];var c=r+Vx(a,l);
vendor: 4,252 bytes, lines 9-17
9s+=cg(a,t,n,c,i)}else if(c=WH(e),typeof c=="function")for(e=c.call(e),l=0;!(a=e.next()).done;)a=a.value,c=r+Vx(a,l++),s+=cg(a,t,n,c,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function dm(e,t,n){if(e==null)return e;var r=[],i=0;return cg(e,r,"","",function(a){return t.call(n,a,i++)}),r}function GH(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var hr={current:null},ug={transition:null},KH={ReactCurrentDispatcher:hr,ReactCurrentBatchConfig:ug,ReactCurrentOwner:T_};function l$(){throw Error("act(...) is not supported in production builds of React.")}Ye.Children={map:dm,forEach:function(e,t,n){dm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return dm(e,function(){t++}),t},toArray:function(e){return dm(e,function(t){return t})||[]},only:function(e){if(!O_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ye.Component=rd;Ye.Fragment=DH;Ye.Profiler=$H;Ye.PureComponent=E_;Ye.StrictMode=MH;Ye.Suspense=BH;Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KH;Ye.act=l$;Ye.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=n$({},e.props),i=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=T_.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)a$.call(t,c)&&!s$.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:jp,type:e.type,key:i,ref:a,props:r,_owner:s}};Ye.createContext=function(e){return e={$$typeof:VH,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:LH,_context:e},e.Consumer=e};Ye.createElement=o$;Ye.createFactory=function(e){var t=o$.bind(null,e);return t.type=e,t};Ye.createRef=function(){return{current:null}};Ye.forwardRef=function(e){return{$$typeof:FH,render:e}};Ye.isValidElement=O_;Ye.lazy=function(e){return{$$typeof:UH,_payload:{_status:-1,_result:e},_init:GH}};Ye.memo=function(e,t){return{$$typeof:zH,type:e,compare:t===void 0?null:t}};Ye.startTransition=function(e){var t=ug.transition;ug.transition={};try{e()}finally{ug.transition=t}};Ye.unstable_act=l$;Ye.useCallback=function(e,t){return hr.current.useCallback(e,t)};Ye.useContext=function(e){return hr.current.useContext(e)};Ye.useDebugValue=function(){};Ye.useDeferredValue=function(e){return hr.current.useDeferredValue(e)};Ye.useEffect=function(e,t){return hr.current.useEffect(e,t)};Ye.useId=function(){return hr.current.useId()};Ye.useImperativeHandle=function(e,t,n){return hr.current.useImperativeHandle(e,t,n)};Ye.useInsertionEffect=function(e,t){return hr.current.useInsertionEffect(e,t)};Ye.useLayoutEffect=function(e,t){return hr.current.useLayoutEffect(e,t)};Ye.useMemo=function(e,t){return hr.current.useMemo(e,t)};Ye.useReducer=function(e,t,n){return hr.current.useReducer(e,t,n)};Ye.useRef=function(e){return hr.current.useRef(e)};Ye.useState=function(e){return hr.current.useState(e)};Ye.useSyncExternalStore=function(e,t,n){return hr.current.useSyncExternalStore(e,t,n)};Ye.useTransition=function(){return hr.current.useTransition()};Ye.version="18.3.1";e$.exports=Ye;var g=e$.exports;const D=jt(g),I_=IH({__proto__:null,default:D},[g]);/** 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 YH=g,XH=Symbol.for("react.element"),JH=Symbol.for("react.fragment"),QH=Object.prototype.hasOwnProperty,ZH=YH.__SECRET_INT
vendor: 11,406 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eG={key:!0,ref:!0,__self:!0,__source:!0};function c$(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)QH.call(t,r)&&!eG.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:XH,type:e,key:a,ref:s,props:i,_owner:ZH.current}}Vy.Fragment=JH;Vy.jsx=c$;Vy.jsxs=c$;ZM.exports=Vy;var o=ZM.exports,u$={exports:{}},Hr={},d$={exports:{}},h$={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(T,R){var z=T.length;T.push(R);e:for(;0<z;){var F=z-1>>>1,B=T[F];if(0<i(B,R))T[F]=R,T[z]=B,z=F;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var R=T[0],z=T.pop();if(z!==R){T[0]=z;e:for(var F=0,B=T.length,W=B>>>1;F<W;){var Z=2*(F+1)-1,fe=T[Z],we=Z+1,ee=T[we];if(0>i(fe,z))we<B&&0>i(ee,fe)?(T[F]=ee,T[we]=z,F=we):(T[F]=fe,T[Z]=z,F=Z);else if(we<B&&0>i(ee,z))T[F]=ee,T[we]=z,F=we;else break e}}return R}function i(T,R){var z=T.sortIndex-R.sortIndex;return z!==0?z:T.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],u=[],h=1,d=null,f=3,p=!1,v=!1,m=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(T){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=T)r(u),R.sortIndex=R.expirationTime,t(c,R);else break;R=n(u)}}function S(T){if(m=!1,x(T),!v)if(n(c)!==null)v=!0,$(j);else{var R=n(u);R!==null&&L(S,R.startTime-T)}}function j(T,R){v=!1,m&&(m=!1,b(P),P=-1),p=!0;var z=f;try{for(x(R),d=n(c);d!==null&&(!(d.expirationTime>R)||T&&!C());){var F=d.callback;if(typeof F=="function"){d.callback=null,f=d.priorityLevel;var B=F(d.expirationTime<=R);R=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(c)&&r(c),x(R)}else r(c);d=n(c)}if(d!==null)var W=!0;else{var Z=n(u);Z!==null&&L(S,Z.startTime-R),W=!1}return W}finally{d=null,f=z,p=!1}}var N=!1,_=null,P=-1,A=5,k=-1;function C(){return!(e.unstable_now()-k<A)}function E(){if(_!==null){var T=e.unstable_now();k=T;var R=!0;try{R=_(!0,T)}finally{R?I():(N=!1,_=null)}}else N=!1}var I;if(typeof w=="function")I=function(){w(E)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,M=O.port2;O.port1.onmessage=E,I=function(){M.postMessage(null)}}else I=function(){y(E,0)};function $(T){_=T,N||(N=!0,I())}function L(T,R){P=y(function(){T(e.unstable_now())},R)}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(T){T.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,$(j))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(T){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var z=f;f=R;try{return T()}finally{f=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,R){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var z=f;f=T;try{return R()}finally{f=z}},e.unstable_scheduleCallback=function(T,R,z){var F=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?F+z:F):z=F,T){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=z+B,T={id:h++,callback:R,priorityLevel:T,startTime:z,expirationTime:B,sortIndex:-1},z>F?(T.sortIndex=z,t(u,T),n(c)===null&&T===n(u)&&(m?(b(P),P=-1):m=!0,L(S,z-F))):(T.sortIndex=B,t(c,T),v||p||(v=!0,$(j))),T},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(T){var R=f;return function(){var z=f;f=R;try{return T.apply(this,arguments)}finally{f=z}}}})(h$);d$.exports=h$;var tG=d$.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 nG=g,qr=tG;function ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f$=new Set,Xh={};function Fl(e,t){bu(e,t),bu(e+"Capture",t)}function bu(e,t){for(Xh[e]=t,e=0;e<t.length;e++)f$.add(t[e])}var Qa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zw=Object.prototype.hasOwnProperty,rG=/^[: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]*$/,JC={},QC={};function iG(e){return zw.call(QC,e)?!0:zw.call(JC,e)?!1:rG.test(e)?QC[e]=!0:(JC[e]=!0,!1)}function aG(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sG(e,t,n,r){if(t===null||typeof t>"u"||aG(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fr(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var Vn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vn[e]=new fr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vn[t]=new fr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vn[e]=new fr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vn[e]=new fr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Vn[e]=new fr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vn[e]=new fr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vn[e]=new fr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vn[e]=new fr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vn[e]=new fr(e,5,!1,e.toLowerCase(),null,!1,!1)});var R_=/[\-:]([a-z])/g;function D_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(R_,D_);Vn[t]=new fr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(R_,D_);Vn[t]=new fr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(R_,D_);Vn[t]=new fr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vn[e]=new fr(e,1,!1,e.toLowerCase(),null,!1,!1)});Vn.xlinkHref=new fr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vn[e]=new fr(e,1,!1,e.toLowerCase(),null,!0,!0)});function M_(e,t,n,r){var i=Vn.hasOwnProperty(t)?Vn[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(sG(t,n,i,r)&&(n=null),r||i===null?iG(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ls=nG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hm=Symbol.for("react.element"),jc=Symbol.for("react.portal"),_c=Symbol.for("react.fragment"),$_=Symbol.for("react.strict_mode"),Uw=Symbol.for("react.profiler"),p$=Symbol.for("react.provider"),m$=Symbol.for("react.context"),L_=Symbol.for("react.forward_ref"),Ww=Symbol.for("react.suspense"),qw=Symbol.for("react.suspense_list"),V_=Symbol.for("react.memo"),Ps=Symbol.for("react.lazy"),g$=Symbol.for("react.offscreen"),ZC=Symbol.iterator;function Wd(e){return e===null||typeof e!="object"?null:(e=ZC&&e[ZC]||e["@@iterator"],typeof e=="function"?e:null)}var Kt=Object.assign,Fx;function mh(e){if(Fx===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fx=t&&t[1]||""}return` 34`+Fx+e}var Bx=!1;function zx(e,t){if(!e||Bx)return"";Bx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 4,643 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` 35`),a=r.stack.split(` 36`),s=i.length-1,l=a.length-1;1<=s&&0<=l&&i[s]!==a[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==a[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==a[l]){var c=` 37`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{Bx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mh(e):""}function oG(e){switch(e.tag){case 5:return mh(e.type);case 16:return mh("Lazy");case 13:return mh("Suspense");case 19:return mh("SuspenseList");case 0:case 2:case 15:return e=zx(e.type,!1),e;case 11:return e=zx(e.type.render,!1),e;case 1:return e=zx(e.type,!0),e;default:return""}}function Hw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _c:return"Fragment";case jc:return"Portal";case Uw:return"Profiler";case $_:return"StrictMode";case Ww:return"Suspense";case qw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m$:return(e.displayName||"Context")+".Consumer";case p$:return(e._context.displayName||"Context")+".Provider";case L_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V_:return t=e.displayName||null,t!==null?t:Hw(e.type)||"Memo";case Ps:t=e._payload,e=e._init;try{return Hw(e(t))}catch{}}return null}function lG(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Hw(t);case 8:return t===$_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function oo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function v$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cG(e){var t=v$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fm(e){e._valueTracker||(e._valueTracker=cG(e))}function y$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=v$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ig(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Gw(e,t){var n=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function eE(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=oo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function b$(e,t){t=t.checked,t!=null&&M_(e,"checked",t,!1)}function Kw(e,t){b$(e,t);var n=oo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yw(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yw(e,t.type,oo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tE(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}
vendor: 11,956 bytes, line 37
37function Yw(e,t,n){(t!=="number"||Ig(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gh=Array.isArray;function Uc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+oo(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Xw(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ie(91));return Kt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nE(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ie(92));if(gh(n)){if(1<n.length)throw Error(ie(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:oo(n)}}function x$(e,t){var n=oo(t.value),r=oo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function rE(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function w$(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?w$(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var pm,S$=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(pm=pm||document.createElement("div"),pm.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jh(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ah={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},uG=["Webkit","ms","Moz","O"];Object.keys(Ah).forEach(function(e){uG.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ah[t]=Ah[e]})});function j$(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ah.hasOwnProperty(e)&&Ah[e]?(""+t).trim():t+"px"}function _$(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=j$(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var dG=Kt({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 Qw(e,t){if(t){if(dG[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ie(62))}}function Zw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eS=null;function F_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tS=null,Wc=null,qc=null;function iE(e){if(e=Pp(e)){if(typeof tS!="function")throw Error(ie(280));var t=e.stateNode;t&&(t=Wy(t),tS(e.stateNode,e.type,t))}}function N$(e){Wc?qc?qc.push(e):qc=[e]:Wc=e}function P$(){if(Wc){var e=Wc,t=qc;if(qc=Wc=null,iE(e),t)for(e=0;e<t.length;e++)iE(t[e])}}function A$(e,t){return e(t)}function C$(){}var Ux=!1;function E$(e,t,n){if(Ux)return e(t,n);Ux=!0;try{return A$(e,t,n)}finally{Ux=!1,(Wc!==null||qc!==null)&&(C$(),P$())}}function Qh(e,t){var n=e.stateNode;if(n===null)return null;var r=Wy(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ie(231,t,typeof n));return n}var nS=!1;if(Qa)try{var qd={};Object.defineProperty(qd,"passive",{get:function(){nS=!0}}),window.addEventListener("test",qd,qd),window.removeEventListener("test",qd,qd)}catch{nS=!1}function hG(e,t,n,r,i,a,s,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(h){this.onError(h)}}var Ch=!1,Rg=null,Dg=!1,rS=null,fG={onError:function(e){Ch=!0,Rg=e}};function pG(e,t,n,r,i,a,s,l,c){Ch=!1,Rg=null,hG.apply(fG,arguments)}function mG(e,t,n,r,i,a,s,l,c){if(pG.apply(this,arguments),Ch){if(Ch){var u=Rg;Ch=!1,Rg=null}else throw Error(ie(198));Dg||(Dg=!0,rS=u)}}function Bl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function k$(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function aE(e){if(Bl(e)!==e)throw Error(ie(188))}function gG(e){var t=e.alternate;if(!t){if(t=Bl(e),t===null)throw Error(ie(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return aE(i),e;if(a===r)return aE(i),t;a=a.sibling}throw Error(ie(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(ie(189))}}if(n.alternate!==r)throw Error(ie(190))}if(n.tag!==3)throw Error(ie(188));return n.stateNode.current===n?e:t}function T$(e){return e=gG(e),e!==null?O$(e):null}function O$(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=O$(e);if(t!==null)return t;e=e.sibling}return null}var I$=qr.unstable_scheduleCallback,sE=qr.unstable_cancelCallback,vG=qr.unstable_shouldYield,yG=qr.unstable_requestPaint,en=qr.unstable_now,bG=qr.unstable_getCurrentPriorityLevel,B_=qr.unstable_ImmediatePriority,R$=qr.unstable_UserBlockingPriority,Mg=qr.unstable_NormalPriority,xG=qr.unstable_LowPriority,D$=qr.unstable_IdlePriority,Fy=null,ha=null;function wG(e){if(ha&&typeof ha.onCommitFiberRoot=="function")try{ha.onCommitFiberRoot(Fy,e,void 0,(e.current.flags&128)===128)}catch{}}var Vi=Math.clz32?Math.clz32:_G,SG=Math.log,jG=Math.LN2;function _G(e){return e>>>=0,e===0?32:31-(SG(e)/jG|0)|0}var mm=64,gm=4194304;function vh(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $g(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=vh(l):(a&=s,a!==0&&(r=vh(a)))}else s=n&~i,s!==0?r=vh(s):a!==0&&(r=vh(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Vi(t),i=1<<n,r|=e[n],t&=~i;return r}function NG(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function PG(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-Vi(a),l=1<<s,c=i[s];c===-1?(!(l&n)||l&r)&&(i[s]=NG(l,t)):c<=t&&(e.expiredLanes|=l),a&=~l}}function iS(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function M$(){var e=mm;return mm<<=1,!(mm&4194240)&&(mm=64),e}function Wx(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _p(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vi(t),e[t]=n}function AG(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Vi(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function z_(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Vi(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var gt=0;function $$(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var L$,U_,V$,F$,B$,aS=!1,vm=[],Ks=null,Ys=null,Xs=null,Zh=new Map,ef=new Map,ks=[],CG="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 oE(e,t){switch(e){case"focusin":case"focusout":Ks=null;break;case"dragenter":case"dragleave":Ys=null;break;case"mouseover":case"mouseout":Xs=null;break;case"pointerover":case"pointerout":Zh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ef.delete(t.pointerId)}}function Hd(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Pp(t),t!==null&&U_(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function EG(e,t,n,r,i){switch(t){case"focusin":return Ks=Hd(Ks,e,t,n,r,i),!0;case"dragenter":return Ys=Hd(Ys,e,t,n,r,i),!0;case"mouseover":return Xs=Hd(Xs,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Zh.set(a,Hd(Zh.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ef.set(a,Hd(ef.get(a)||null,e,t,n,r,i)),!0}return!1}function z$(e){var t=Ho(e.target);if(t!==null){var n=Bl(t);if(n!==null){if(t=n.tag,t===13){if(t=k$(n),t!==null){e.blockedOn=t,B$(e.priority,function(){V$(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);eS=r,n.target.dispatchEvent(r),eS=null}else return t=Pp(n),t!==null&&U_(t),e.blockedOn=n,!1;t.shift()}return!0}
vendor: 8,912 bytes, line 37
37function lE(e,t,n){dg(e)&&n.delete(t)}function kG(){aS=!1,Ks!==null&&dg(Ks)&&(Ks=null),Ys!==null&&dg(Ys)&&(Ys=null),Xs!==null&&dg(Xs)&&(Xs=null),Zh.forEach(lE),ef.forEach(lE)}function Gd(e,t){e.blockedOn===t&&(e.blockedOn=null,aS||(aS=!0,qr.unstable_scheduleCallback(qr.unstable_NormalPriority,kG)))}function tf(e){function t(i){return Gd(i,e)}if(0<vm.length){Gd(vm[0],e);for(var n=1;n<vm.length;n++){var r=vm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ks!==null&&Gd(Ks,e),Ys!==null&&Gd(Ys,e),Xs!==null&&Gd(Xs,e),Zh.forEach(t),ef.forEach(t),n=0;n<ks.length;n++)r=ks[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ks.length&&(n=ks[0],n.blockedOn===null);)z$(n),n.blockedOn===null&&ks.shift()}var Hc=ls.ReactCurrentBatchConfig,Lg=!0;function TG(e,t,n,r){var i=gt,a=Hc.transition;Hc.transition=null;try{gt=1,W_(e,t,n,r)}finally{gt=i,Hc.transition=a}}function OG(e,t,n,r){var i=gt,a=Hc.transition;Hc.transition=null;try{gt=4,W_(e,t,n,r)}finally{gt=i,Hc.transition=a}}function W_(e,t,n,r){if(Lg){var i=sS(e,t,n,r);if(i===null)e0(e,t,r,Vg,n),oE(e,r);else if(EG(i,e,t,n,r))r.stopPropagation();else if(oE(e,r),t&4&&-1<CG.indexOf(e)){for(;i!==null;){var a=Pp(i);if(a!==null&&L$(a),a=sS(e,t,n,r),a===null&&e0(e,t,r,Vg,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else e0(e,t,r,null,n)}}var Vg=null;function sS(e,t,n,r){if(Vg=null,e=F_(r),e=Ho(e),e!==null)if(t=Bl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=k$(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vg=e,null}function U$(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(bG()){case B_:return 1;case R$:return 4;case Mg:case xG:return 16;case D$:return 536870912;default:return 16}default:return 16}}var Us=null,q_=null,hg=null;function W$(){if(hg)return hg;var e,t=q_,n=t.length,r,i="value"in Us?Us.value:Us.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[a-r];r++);return hg=i.slice(e,1<r?1-r:void 0)}function fg(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ym(){return!0}function cE(){return!1}function Gr(e){function t(n,r,i,a,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?ym:cE,this.isPropagationStopped=cE,this}return Kt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ym)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ym)},persist:function(){},isPersistent:ym}),t}var id={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},H_=Gr(id),Np=Kt({},id,{view:0,detail:0}),IG=Gr(Np),qx,Hx,Kd,By=Kt({},Np,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:G_,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kd&&(Kd&&e.type==="mousemove"?(qx=e.screenX-Kd.screenX,Hx=e.screenY-Kd.screenY):Hx=qx=0,Kd=e),qx)},movementY:function(e){return"movementY"in e?e.movementY:Hx}}),uE=Gr(By),RG=Kt({},By,{dataTransfer:0}),DG=Gr(RG),MG=Kt({},Np,{relatedTarget:0}),Gx=Gr(MG),$G=Kt({},id,{animationName:0,elapsedTime:0,pseudoElement:0}),LG=Gr($G),VG=Kt({},id,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FG=Gr(VG),BG=Kt({},id,{data:0}),dE=Gr(BG),zG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UG={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"},WG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qG(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=WG[e])?!!t[e]:!1}function G_(){return qG}var HG=Kt({},Np,{key:function(e){if(e.key){var t=zG[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?UG[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:G_,charCode:function(e){return e.type==="keypress"?fg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),GG=Gr(HG),KG=Kt({},By,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hE=Gr(KG),YG=Kt({},Np,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:G_}),XG=Gr(YG),JG=Kt({},id,{propertyName:0,elapsedTime:0,pseudoElement:0}),QG=Gr(JG),ZG=Kt({},By,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),e7=Gr(ZG),t7=[9,13,27,32],K_=Qa&&"CompositionEvent"in window,Eh=null;Qa&&"documentMode"in document&&(Eh=document.documentMode);var n7=Qa&&"TextEvent"in window&&!Eh,q$=Qa&&(!K_||Eh&&8<Eh&&11>=Eh),fE=" ",pE=!1;function H$(e,t){switch(e){case"keyup":return t7.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function G$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nc=!1;function r7(e,t){switch(e){case"compositionend":return G$(t);case"keypress":return t.which!==32?null:(pE=!0,fE);case"textInput":return e=t.data,e===fE&&pE?null:e;default:return null}}function i7(e,t){if(Nc)return e==="compositionend"||!K_&&H$(e,t)?(e=W$(),hg=q_=Us=null,Nc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return q$&&t.locale!=="ko"?null:t.data;default:return null}}var a7={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 mE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!a7[e.type]:t==="textarea"}function K$(e,t,n,r){N$(r),t=Fg(t,"onChange"),0<t.length&&(n=new H_("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var kh=null,nf=null;function s7(e){aL(e,0)}function zy(e){var t=Cc(e);if(y$(t))return e}function o7(e,t){if(e==="change")return t}var Y$=!1;if(Qa){var Kx;if(Qa){var Yx="oninput"in document;if(!Yx){var gE=document.createElement("div");gE.setAttribute("oninput","return;"),Yx=typeof gE.oninput=="function"}Kx=Yx}else Kx=!1;Y$=Kx&&(!document.documentMode||9<document.documentMode)}function vE(){kh&&(kh.detachEvent("onpropertychange",X$),nf=kh=null)}
vendor: 5,341 bytes, line 37
37function X$(e){if(e.propertyName==="value"&&zy(nf)){var t=[];K$(t,nf,e,F_(e)),E$(s7,t)}}function l7(e,t,n){e==="focusin"?(vE(),kh=t,nf=n,kh.attachEvent("onpropertychange",X$)):e==="focusout"&&vE()}function c7(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zy(nf)}function u7(e,t){if(e==="click")return zy(t)}function d7(e,t){if(e==="input"||e==="change")return zy(t)}function h7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zi=typeof Object.is=="function"?Object.is:h7;function rf(e,t){if(zi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!zw.call(t,i)||!zi(e[i],t[i]))return!1}return!0}function yE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bE(e,t){var n=yE(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=yE(n)}}function J$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?J$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Q$(){for(var e=window,t=Ig();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ig(e.document)}return t}function Y_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function f7(e){var t=Q$(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&J$(n.ownerDocument.documentElement,n)){if(r!==null&&Y_(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=bE(n,a);var s=bE(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var p7=Qa&&"documentMode"in document&&11>=document.documentMode,Pc=null,oS=null,Th=null,lS=!1;function xE(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lS||Pc==null||Pc!==Ig(r)||(r=Pc,"selectionStart"in r&&Y_(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Th&&rf(Th,r)||(Th=r,r=Fg(oS,"onSelect"),0<r.length&&(t=new H_("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pc)))}function bm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ac={animationend:bm("Animation","AnimationEnd"),animationiteration:bm("Animation","AnimationIteration"),animationstart:bm("Animation","AnimationStart"),transitionend:bm("Transition","TransitionEnd")},Xx={},Z$={};Qa&&(Z$=document.createElement("div").style,"AnimationEvent"in window||(delete Ac.animationend.animation,delete Ac.animationiteration.animation,delete Ac.animationstart.animation),"TransitionEvent"in window||delete Ac.transitionend.transition);function Uy(e){if(Xx[e])return Xx[e];if(!Ac[e])return e;var t=Ac[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Z$)return Xx[e]=t[n];return e}var eL=Uy("animationend"),tL=Uy("animationiteration"),nL=Uy("animationstart"),rL=Uy("transitionend"),iL=new Map,wE="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 vo(e,t){iL.set(e,t),Fl(t,[e])}for(var Jx=0;Jx<wE.length;Jx++){var Qx=wE[Jx],m7=Qx.toLowerCase(),g7=Qx[0].toUpperCase()+Qx.slice(1);vo(m7,"on"+g7)}vo(eL,"onAnimationEnd");vo(tL,"onAnimationIteration");vo(nL,"onAnimationStart");vo("dblclick","onDoubleClick");vo("focusin","onFocus");vo("focusout","onBlur");vo(rL,"onTransitionEnd");bu("onMouseEnter",["mouseout","mouseover"]);bu("onMouseLeave",["mouseout","mouseover"]);bu("onPointerEnter",["pointerout","pointerover"]);bu("onPointerLeave",["pointerout","pointerover"]);Fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,582 bytes, line 37
37Fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yh="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(" "),v7=new Set("cancel close invalid load scroll toggle".split(" ").concat(yh));function SE(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,mG(r,t,void 0,e),e.currentTarget=null}function aL(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==a&&i.isPropagationStopped())break e;SE(i,l,u),a=c}else for(s=0;s<r.length;s++){if(l=r[s],c=l.instance,u=l.currentTarget,l=l.listener,c!==a&&i.isPropagationStopped())break e;SE(i,l,u),a=c}}}if(Dg)throw e=rS,Dg=!1,rS=null,e}function Tt(e,t){var n=t[fS];n===void 0&&(n=t[fS]=new Set);var r=e+"__bubble";n.has(r)||(sL(t,e,2,!1),n.add(r))}function Zx(e,t,n){var r=0;t&&(r|=4),sL(n,e,r,t)}var xm="_reactListening"+Math.random().toString(36).slice(2);function af(e){if(!e[xm]){e[xm]=!0,f$.forEach(function(n){n!=="selectionchange"&&(v7.has(n)||Zx(n,!1,e),Zx(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xm]||(t[xm]=!0,Zx("selectionchange",!1,t))}}function sL(e,t,n,r){switch(U$(t)){case 1:var i=TG;break;case 4:i=OG;break;default:i=W_}n=i.bind(null,t,n,e),i=void 0,!nS||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function e0(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Ho(l),s===null)return;if(c=s.tag,c===5||c===6){r=a=s;continue e}l=l.parentNode}}r=r.return}E$(function(){var u=a,h=F_(n),d=[];e:{var f=iL.get(e);if(f!==void 0){var p=H_,v=e;switch(e){case"keypress":if(fg(n)===0)break e;case"keydown":case"keyup":p=GG;break;case"focusin":v="focus",p=Gx;break;case"focusout":v="blur",p=Gx;break;case"beforeblur":case"afterblur":p=Gx;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=uE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=DG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=XG;break;case eL:case tL:case nL:p=LG;break;case rL:p=QG;break;case"scroll":p=IG;break;case"wheel":p=e7;break;case"copy":case"cut":case"paste":p=FG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=hE}var m=(t&4)!==0,y=!m&&e==="scroll",b=m?f!==null?f+"Capture":null:f;m=[];for(var w=u,x;w!==null;){x=w;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,b!==null&&(S=Qh(w,b),S!=null&&m.push(sf(w,S,x)))),y)break;w=w.return}0<m.length&&(f=new p(f,v,null,n,h),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==eS&&(v=n.relatedTarget||n.fromElement)&&(Ho(v)||v[Za]))break e;if((p||f)&&(f=h.window===h?h:(f=h.ownerDocument)?f.defaultView||f.parentWindow:window,p?(v=n.relatedTarget||n.toElement,p=u,v=v?Ho(v):null,v!==null&&(y=Bl(v),v!==y||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=u),p!==v)){if(m=uE,S="onMouseLeave",b="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(m=hE,S="onPointerLeave",b="onPointerEnter",w="pointer"),y=p==null?f:Cc(p),x=v==null?f:Cc(v),f=new m(S,w+"leave",p,n,h),f.target=y,f.relatedTarget=x,S=null,Ho(h)===u&&(m=new m(b,w+"enter",v,n,h),m.target=x,m.relatedTarget=y,S=m),y=S,p&&v)t:{for(m=p,b=v,w=0,x=m;x;x=tc(x))w++;for(x=0,S=b;S;S=tc(S))x++;for(;0<w-x;
vendor: 4,848 bytes, lines 37-38
37)m=tc(m),w--;for(;0<x-w;)b=tc(b),x--;for(;w--;){if(m===b||b!==null&&m===b.alternate)break t;m=tc(m),b=tc(b)}m=null}else m=null;p!==null&&jE(d,f,p,m,!1),v!==null&&y!==null&&jE(d,y,v,m,!0)}}e:{if(f=u?Cc(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var j=o7;else if(mE(f))if(Y$)j=d7;else{j=c7;var N=l7}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(j=u7);if(j&&(j=j(e,u))){K$(d,j,n,h);break e}N&&N(e,f,u),e==="focusout"&&(N=f._wrapperState)&&N.controlled&&f.type==="number"&&Yw(f,"number",f.value)}switch(N=u?Cc(u):window,e){case"focusin":(mE(N)||N.contentEditable==="true")&&(Pc=N,oS=u,Th=null);break;case"focusout":Th=oS=Pc=null;break;case"mousedown":lS=!0;break;case"contextmenu":case"mouseup":case"dragend":lS=!1,xE(d,n,h);break;case"selectionchange":if(p7)break;case"keydown":case"keyup":xE(d,n,h)}var _;if(K_)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Nc?H$(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(q$&&n.locale!=="ko"&&(Nc||P!=="onCompositionStart"?P==="onCompositionEnd"&&Nc&&(_=W$()):(Us=h,q_="value"in Us?Us.value:Us.textContent,Nc=!0)),N=Fg(u,P),0<N.length&&(P=new dE(P,e,null,n,h),d.push({event:P,listeners:N}),_?P.data=_:(_=G$(n),_!==null&&(P.data=_)))),(_=n7?r7(e,n):i7(e,n))&&(u=Fg(u,"onBeforeInput"),0<u.length&&(h=new dE("onBeforeInput","beforeinput",null,n,h),d.push({event:h,listeners:u}),h.data=_))}aL(d,t)})}function sf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fg(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Qh(e,n),a!=null&&r.unshift(sf(e,a,i)),a=Qh(e,t),a!=null&&r.push(sf(e,a,i))),e=e.return}return r}function tc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function jE(e,t,n,r,i){for(var a=t._reactName,s=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,i?(c=Qh(n,a),c!=null&&s.unshift(sf(n,c,l))):i||(c=Qh(n,a),c!=null&&s.push(sf(n,c,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var y7=/\r\n?/g,b7=/\u0000|\uFFFD/g;function _E(e){return(typeof e=="string"?e:""+e).replace(y7,` 38`).replace(b7,"")}function wm(e,t,n){if(t=_E(t),_E(e)!==t&&n)throw Error(ie(425))}function Bg(){}var cS=null,uS=null;function dS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hS=typeof setTimeout=="function"?setTimeout:void 0,x7=typeof clearTimeout=="function"?clearTimeout:void 0,NE=typeof Promise=="function"?Promise:void 0,w7=typeof queueMicrotask=="function"?queueMicrotask:typeof NE<"u"?function(e){return NE.resolve(null).then(e).catch(S7)}:hS;function S7(e){setTimeout(function(){throw e})}function t0(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),tf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);tf(t)}function Js(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function PE(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ad=Math.random().toString(36).slice(2),oa="__reactFiber$"+ad,of="__reactProps$"+ad,Za="__reactContainer$"+ad,fS="__reactEvents$"+ad,j7="__reactListeners$"+ad,_7="__reactHandles$"+ad;function Ho(e){var t=e[oa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Za]||n[oa]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=PE(e);e!==null;){if(n=e[oa])return n;e=PE(e)}return t}e=n,n=e.parentNode}return null}function Pp(e){return e=e[oa]||e[Za],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ie(33))}function Wy(e){return e[of]||null}var pS=[],Ec=-1;function yo(e){return{current:e}}function Dt(e){0>Ec||(e.current=pS[Ec],pS[Ec]=null,Ec--)}function Ct(e,t){Ec++,pS[Ec]=e.current,e.current=t}var lo={},er=yo(lo),Ar=yo(!1),vl=lo;function xu(e,t){var n=e.type.contextTypes;if(!n)return lo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Cr(e){return e=e.childContextTypes,e!=null}function zg(){Dt(Ar),Dt(er)}
vendor: 17,308 bytes, line 38
38function AE(e,t,n){if(er.current!==lo)throw Error(ie(168));Ct(er,t),Ct(Ar,n)}function oL(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ie(108,lG(e)||"Unknown",i));return Kt({},n,r)}function Ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lo,vl=er.current,Ct(er,e),Ct(Ar,Ar.current),!0}function CE(e,t,n){var r=e.stateNode;if(!r)throw Error(ie(169));n?(e=oL(e,t,vl),r.__reactInternalMemoizedMergedChildContext=e,Dt(Ar),Dt(er),Ct(er,e)):Dt(Ar),Ct(Ar,n)}var La=null,qy=!1,n0=!1;function lL(e){La===null?La=[e]:La.push(e)}function N7(e){qy=!0,lL(e)}function bo(){if(!n0&&La!==null){n0=!0;var e=0,t=gt;try{var n=La;for(gt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}La=null,qy=!1}catch(i){throw La!==null&&(La=La.slice(e+1)),I$(B_,bo),i}finally{gt=t,n0=!1}}return null}var kc=[],Tc=0,Wg=null,qg=0,ni=[],ri=0,yl=null,Fa=1,Ba="";function Do(e,t){kc[Tc++]=qg,kc[Tc++]=Wg,Wg=e,qg=t}function cL(e,t,n){ni[ri++]=Fa,ni[ri++]=Ba,ni[ri++]=yl,yl=e;var r=Fa;e=Ba;var i=32-Vi(r)-1;r&=~(1<<i),n+=1;var a=32-Vi(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Fa=1<<32-Vi(t)+i|n<<i|r,Ba=a+e}else Fa=1<<a|n<<i|r,Ba=e}function X_(e){e.return!==null&&(Do(e,1),cL(e,1,0))}function J_(e){for(;e===Wg;)Wg=kc[--Tc],kc[Tc]=null,qg=kc[--Tc],kc[Tc]=null;for(;e===yl;)yl=ni[--ri],ni[ri]=null,Ba=ni[--ri],ni[ri]=null,Fa=ni[--ri],ni[ri]=null}var Ur=null,zr=null,Ft=!1,Ri=null;function uL(e,t){var n=ii(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function EE(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ur=e,zr=Js(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ur=e,zr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=yl!==null?{id:Fa,overflow:Ba}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ii(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ur=e,zr=null,!0):!1;default:return!1}}function mS(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gS(e){if(Ft){var t=zr;if(t){var n=t;if(!EE(e,t)){if(mS(e))throw Error(ie(418));t=Js(n.nextSibling);var r=Ur;t&&EE(e,t)?uL(r,n):(e.flags=e.flags&-4097|2,Ft=!1,Ur=e)}}else{if(mS(e))throw Error(ie(418));e.flags=e.flags&-4097|2,Ft=!1,Ur=e}}}function kE(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ur=e}function Sm(e){if(e!==Ur)return!1;if(!Ft)return kE(e),Ft=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!dS(e.type,e.memoizedProps)),t&&(t=zr)){if(mS(e))throw dL(),Error(ie(418));for(;t;)uL(e,t),t=Js(t.nextSibling)}if(kE(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ie(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){zr=Js(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zr=null}}else zr=Ur?Js(e.stateNode.nextSibling):null;return!0}function dL(){for(var e=zr;e;)e=Js(e.nextSibling)}function wu(){zr=Ur=null,Ft=!1}function Q_(e){Ri===null?Ri=[e]:Ri.push(e)}var P7=ls.ReactCurrentBatchConfig;function Yd(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ie(309));var r=n.stateNode}if(!r)throw Error(ie(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var l=i.refs;s===null?delete l[a]:l[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(ie(284));if(!n._owner)throw Error(ie(290,e))}return e}function jm(e,t){throw e=Object.prototype.toString.call(t),Error(ie(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function TE(e){var t=e._init;return t(e._payload)}function hL(e){function t(b,w){if(e){var x=b.deletions;x===null?(b.deletions=[w],b.flags|=16):x.push(w)}}function n(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function r(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function i(b,w){return b=to(b,w),b.index=0,b.sibling=null,b}function a(b,w,x){return b.index=x,e?(x=b.alternate,x!==null?(x=x.index,x<w?(b.flags|=2,w):x):(b.flags|=2,w)):(b.flags|=1048576,w)}function s(b){return e&&b.alternate===null&&(b.flags|=2),b}function l(b,w,x,S){return w===null||w.tag!==6?(w=c0(x,b.mode,S),w.return=b,w):(w=i(w,x),w.return=b,w)}function c(b,w,x,S){var j=x.type;return j===_c?h(b,w,x.props.children,S,x.key):w!==null&&(w.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ps&&TE(j)===w.type)?(S=i(w,x.props),S.ref=Yd(b,w,x),S.return=b,S):(S=xg(x.type,x.key,x.props,null,b.mode,S),S.ref=Yd(b,w,x),S.return=b,S)}function u(b,w,x,S){return w===null||w.tag!==4||w.stateNode.containerInfo!==x.containerInfo||w.stateNode.implementation!==x.implementation?(w=u0(x,b.mode,S),w.return=b,w):(w=i(w,x.children||[]),w.return=b,w)}function h(b,w,x,S,j){return w===null||w.tag!==7?(w=dl(x,b.mode,S,j),w.return=b,w):(w=i(w,x),w.return=b,w)}function d(b,w,x){if(typeof w=="string"&&w!==""||typeof w=="number")return w=c0(""+w,b.mode,x),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case hm:return x=xg(w.type,w.key,w.props,null,b.mode,x),x.ref=Yd(b,null,w),x.return=b,x;case jc:return w=u0(w,b.mode,x),w.return=b,w;case Ps:var S=w._init;return d(b,S(w._payload),x)}if(gh(w)||Wd(w))return w=dl(w,b.mode,x,null),w.return=b,w;jm(b,w)}return null}function f(b,w,x,S){var j=w!==null?w.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return j!==null?null:l(b,w,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case hm:return x.key===j?c(b,w,x,S):null;case jc:return x.key===j?u(b,w,x,S):null;case Ps:return j=x._init,f(b,w,j(x._payload),S)}if(gh(x)||Wd(x))return j!==null?null:h(b,w,x,S,null);jm(b,x)}return null}function p(b,w,x,S,j){if(typeof S=="string"&&S!==""||typeof S=="number")return b=b.get(x)||null,l(w,b,""+S,j);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case hm:return b=b.get(S.key===null?x:S.key)||null,c(w,b,S,j);case jc:return b=b.get(S.key===null?x:S.key)||null,u(w,b,S,j);case Ps:var N=S._init;return p(b,w,x,N(S._payload),j)}if(gh(S)||Wd(S))return b=b.get(x)||null,h(w,b,S,j,null);jm(w,S)}return null}function v(b,w,x,S){for(var j=null,N=null,_=w,P=w=0,A=null;_!==null&&P<x.length;P++){_.index>P?(A=_,_=null):A=_.sibling;var k=f(b,_,x[P],S);if(k===null){_===null&&(_=A);break}e&&_&&k.alternate===null&&t(b,_),w=a(k,w,P),N===null?j=k:N.sibling=k,N=k,_=A}if(P===x.length)return n(b,_),Ft&&Do(b,P),j;if(_===null){for(;P<x.length;P++)_=d(b,x[P],S),_!==null&&(w=a(_,w,P),N===null?j=_:N.sibling=_,N=_);return Ft&&Do(b,P),j}for(_=r(b,_);P<x.length;P++)A=p(_,b,P,x[P],S),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?P:A.key),w=a(A,w,P),N===null?j=A:N.sibling=A,N=A);return e&&_.forEach(function(C){return t(b,C)}),Ft&&Do(b,P),j}function m(b,w,x,S){var j=Wd(x);if(typeof j!="function")throw Error(ie(150));if(x=j.call(x),x==null)throw Error(ie(151));for(var N=j=null,_=w,P=w=0,A=null,k=x.next();_!==null&&!k.done;P++,k=x.next()){_.index>P?(A=_,_=null):A=_.sibling;var C=f(b,_,k.value,S);if(C===null){_===null&&(_=A);break}e&&_&&C.alternate===null&&t(b,_),w=a(C,w,P),N===null?j=C:N.sibling=C,N=C,_=A}if(k.done)return n(b,_),Ft&&Do(b,P),j;if(_===null){for(;!k.done;P++,k=x.next())k=d(b,k.value,S),k!==null&&(w=a(k,w,P),N===null?j=k:N.sibling=k,N=k);return Ft&&Do(b,P),j}for(_=r(b,_);!k.done;P++,k=x.next())k=p(_,b,P,k.value,S),k!==null&&(e&&k.alternate!==null&&_.delete(k.key===null?P:k.key),w=a(k,w,P),N===null?j=k:N.sibling=k,N=k);return e&&_.forEach(function(E){return t(b,E)}),Ft&&Do(b,P),j}function y(b,w,x,S){if(typeof x=="object"&&x!==null&&x.type===_c&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case hm:e:{for(var j=x.key,N=w;N!==null;){if(N.key===j){if(j=x.type,j===_c){if(N.tag===7){n(b,N.sibling),w=i(N,x.props.children),w.return=b,b=w;break e}}else if(N.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ps&&TE(j)===N.type){n(b,N.sibling),w=i(N,x.props),w.ref=Yd(b,N,x),w.return=b,b=w;break e}n(b,N);break}else t(b,N);N=N.sibling}x.type===_c?(w=dl(x.props.children,b.mode,S,x.key),w.return=b,b=w):(S=xg(x.type,x.key,x.props,null,b.mode,S),S.ref=Yd(b,w,x),S.return=b,b=S)}return s(b);case jc:e:{for(N=x.key;w!==null;){if(w.key===N)if(w.tag===4&&w.stateNode.containerInfo===x.containerInfo&&w.stateNode.implementation===x.implementation){n(b,w.sibling),w=i(w,x.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else t(b,w);w=w.sibling}w=u0(x,b.mode,S),w.return=b,b=w}return s(b);case Ps:return N=x._init,y(b,w,N(x._payload),S)}if(gh(x))return v(b,w,x,S);if(Wd(x))return m(b,w,x,S);jm(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,w!==null&&w.tag===6?(n(b,w.sibling),w=i(w,x),w.return=b,b=w):(n(b,w),w=c0(x,b.mode,S),w.return=b,b=w),s(b)):n(b,w)}return y}var Su=hL(!0),fL=hL(!1),Hg=yo(null),Gg=null,Oc=null,Z_=null;function eN(){Z_=Oc=Gg=null}function tN(e){var t=Hg.current;Dt(Hg),e._currentValue=t}function vS(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gc(e,t){Gg=e,Z_=Oc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(jr=!0),e.firstContext=null)}function hi(e){var t=e._currentValue;if(Z_!==e)if(e={context:e,memoizedValue:t,next:null},Oc===null){if(Gg===null)throw Error(ie(308));Oc=e,Gg.dependencies={lanes:0,firstContext:e}}else Oc=Oc.next=e;return t}var Go=null;function nN(e){Go===null?Go=[e]:Go.push(e)}function pL(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,nN(t)):(n.next=i.next,i.next=n),t.interleaved=n,es(e,r)}function es(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var As=!1;function rN(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mL(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qs(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,tt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,es(e,n)}return i=r.interleaved,i===null?(t.next=t,nN(r)):(t.next=i.next,i.next=t),r.interleaved=t,es(e,n)}function pg(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,z_(e,n)}}function OE(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kg(e,t,n,r){var i=e.updateQueue;As=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,s===null?a=u:s.next=u,s=c;var h=e.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==s&&(l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;s=0,h=u=c=null,l=a;do{var f=l.lane,p=l.eventTime;if((r&f)===f){h!==null&&(h=h.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,m=l;switch(f=t,p=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){d=v.call(p,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=m.payload,f=typeof v=="function"?v.call(p,d,f):v,f==null)break e;d=Kt({},d,f);break e;case 2:As=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(u=h=p,c=d):h=h.next=p,s|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(h===null&&(c=d),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);xl|=s,e.lanes=s,e.memoizedState=d}}function IE(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(ie(191,i));i.call(r)}}}var Ap={},fa=yo(Ap),lf=yo(Ap),cf=yo(Ap);function Ko(e){if(e===Ap)throw Error(ie(174));return e}function iN(e,t){switch(Ct(cf,t),Ct(lf,e),Ct(fa,Ap),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jw(t,e)}Dt(fa),Ct(fa,t)}function ju(){Dt(fa),Dt(lf),Dt(cf)}function gL(e){Ko(cf.current);var t=Ko(fa.current),n=Jw(t,e.type);t!==n&&(Ct(lf,e),Ct(fa,n))}function aN(e){lf.current===e&&(Dt(fa),Dt(lf))}var qt=yo(0);function Yg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var r0=[];function sN(){for(var e=0;e<r0.length;e++)r0[e]._workInProgressVersionPrimary=null;r0.length=0}var mg=ls.ReactCurrentDispatcher,i0=ls.ReactCurrentBatchConfig,bl=0,Gt=null,gn=null,Pn=null,Xg=!1,Oh=!1,uf=0,A7=0;function Un(){throw Error(ie(321))}function oN(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zi(e[n],t[n]))return!1;return!0}function lN(e,t,n,r,i,a){if(bl=a,Gt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,mg.current=e===null||e.memoizedState===null?T7:O7,e=n(r,i),Oh){a=0;do{if(Oh=!1,uf=0,25<=a)throw Error(ie(301));a+=1,Pn=gn=null,t.updateQueue=null,mg.current=I7,e=n(r,i)}while(Oh)}if(mg.current=Jg,t=gn!==null&&gn.next!==null,bl=0,Pn=gn=Gt=null,Xg=!1,t)throw Error(ie(300));return e}function cN(){var e=uf!==0;return uf=0,e}function ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pn===null?Gt.memoizedState=Pn=e:Pn=Pn.next=e,Pn}function fi(){if(gn===null){var e=Gt.alternate;e=e!==null?e.memoizedState:null}else e=gn.next;var t=Pn===null?Gt.memoizedState:Pn.next;if(t!==null)Pn=t,gn=e;else{if(e===null)throw Error(ie(310));gn=e,e={memoizedState:gn.memoizedState,baseState:gn.baseState,baseQueue:gn.baseQueue,queue:gn.queue,next:null},Pn===null?Gt.memoizedState=Pn=e:Pn=Pn.next=e}return Pn}function df(e,t){return typeof t=="function"?t(e):t}function a0(e){var t=fi(),n=t.queue;if(n===null)throw Error(ie(311));n.lastRenderedReducer=e;var r=gn,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var h=u.lane;if((bl&h)===h)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=d,s=r):c=c.next=d,Gt.lanes|=h,xl|=h}u=u.next}while(u!==null&&u!==a);c===null?s=r:c.next=l,zi(r,t.memoizedState)||(jr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,Gt.lanes|=a,xl|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function s0(e){var t=fi(),n=t.queue;if(n===null)throw Error(ie(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);zi(a,t.memoizedState)||(jr=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function vL(){}function yL(e,t){var n=Gt,r=fi(),i=t(),a=!zi(r.memoizedState,i);if(a&&(r.memoizedState=i,jr=!0),r=r.queue,uN(wL.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||Pn!==null&&Pn.memoizedState.tag&1){if(n.flags|=2048,hf(9,xL.bind(null,n,r,i,t),void 0,null),Cn===null)throw Error(ie(349));bl&30||bL(n,t,i)}return i}function bL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Gt.updateQueue,t===null?(t={lastEffect:null,stores:null},Gt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function xL(e,t,n,r){t.value=n,t.getSnapshot=r,SL(t)&&jL(e)}function wL(e,t,n){return n(function(){SL(t)&&jL(e)})}function SL(e){var t=e.getSnapshot;e=e.value;try{var n=t();
vendor: 4,865 bytes, line 38
38return!zi(e,n)}catch{return!0}}function jL(e){var t=es(e,1);t!==null&&Fi(t,e,1,-1)}function RE(e){var t=ea();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:df,lastRenderedState:e},t.queue=e,e=e.dispatch=k7.bind(null,Gt,e),[t.memoizedState,e]}function hf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Gt.updateQueue,t===null?(t={lastEffect:null,stores:null},Gt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function _L(){return fi().memoizedState}function gg(e,t,n,r){var i=ea();Gt.flags|=e,i.memoizedState=hf(1|t,n,void 0,r===void 0?null:r)}function Hy(e,t,n,r){var i=fi();r=r===void 0?null:r;var a=void 0;if(gn!==null){var s=gn.memoizedState;if(a=s.destroy,r!==null&&oN(r,s.deps)){i.memoizedState=hf(t,n,a,r);return}}Gt.flags|=e,i.memoizedState=hf(1|t,n,a,r)}function DE(e,t){return gg(8390656,8,e,t)}function uN(e,t){return Hy(2048,8,e,t)}function NL(e,t){return Hy(4,2,e,t)}function PL(e,t){return Hy(4,4,e,t)}function AL(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function CL(e,t,n){return n=n!=null?n.concat([e]):null,Hy(4,4,AL.bind(null,t,e),n)}function dN(){}function EL(e,t){var n=fi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oN(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kL(e,t){var n=fi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oN(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function TL(e,t,n){return bl&21?(zi(n,t)||(n=M$(),Gt.lanes|=n,xl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,jr=!0),e.memoizedState=n)}function C7(e,t){var n=gt;gt=n!==0&&4>n?n:4,e(!0);var r=i0.transition;i0.transition={};try{e(!1),t()}finally{gt=n,i0.transition=r}}function OL(){return fi().memoizedState}function E7(e,t,n){var r=eo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},IL(e))RL(t,n);else if(n=pL(e,t,n,r),n!==null){var i=dr();Fi(n,e,r,i),DL(n,t,r)}}function k7(e,t,n){var r=eo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(IL(e))RL(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,l=a(s,n);if(i.hasEagerState=!0,i.eagerState=l,zi(l,s)){var c=t.interleaved;c===null?(i.next=i,nN(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=pL(e,t,i,r),n!==null&&(i=dr(),Fi(n,e,r,i),DL(n,t,r))}}function IL(e){var t=e.alternate;return e===Gt||t!==null&&t===Gt}function RL(e,t){Oh=Xg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function DL(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,z_(e,n)}}var Jg={readContext:hi,useCallback:Un,useContext:Un,useEffect:Un,useImperativeHandle:Un,useInsertionEffect:Un,useLayoutEffect:Un,useMemo:Un,useReducer:Un,useRef:Un,useState:Un,useDebugValue:Un,useDeferredValue:Un,useTransition:Un,useMutableSource:Un,useSyncExternalStore:Un,useId:Un,unstable_isNewReconciler:!1},T7={readContext:hi,useCallback:function(e,t){return ea().memoizedState=[e,t===void 0?null:t],e},useContext:hi,useEffect:DE,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gg(4194308,4,AL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gg(4194308,4,e,t)},useInsertionEffect:function(e,t){return gg(4,2,e,t)},useMemo:function(e,t){var n=ea();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ea();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=E7.bind(null,Gt,e),[r.memoizedState,e]},useRef:function(e){var t=ea();return e={current:e},t.memoizedState=e},useState:RE,useDebugValue:dN,useDeferredValue:function(e){return ea().memoizedState=e},useTransition:function(){var e=RE(!1),t=e[0];return e=C7.bind(null,e[1]),ea().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Gt,i=ea();if(Ft){if(n===void 0)throw Error(ie(407));n=n()}else{if(n=t(),Cn===null)throw Error(ie(349));bl&30||bL(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,DE(wL.bind(null,r,a,e),[e]),r.flags|=2048,hf(9,xL.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ea(),t=Cn.identifierPrefix;if(Ft){var n=Ba,r=Fa;n=(r&~(1<<32-Vi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=uf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=A7++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},O7={readContext:hi,useCallback:EL,useContext:hi,useEffect:uN,useImperativeHandle:CL,useInsertionEffect:NL,useLayoutEffect:PL,useMemo:kL,useReducer:a0,useRef:_L,use
vendor: 5,051 bytes, lines 38-40
38State:function(){return a0(df)},useDebugValue:dN,useDeferredValue:function(e){var t=fi();return TL(t,gn.memoizedState,e)},useTransition:function(){var e=a0(df)[0],t=fi().memoizedState;return[e,t]},useMutableSource:vL,useSyncExternalStore:yL,useId:OL,unstable_isNewReconciler:!1},I7={readContext:hi,useCallback:EL,useContext:hi,useEffect:uN,useImperativeHandle:CL,useInsertionEffect:NL,useLayoutEffect:PL,useMemo:kL,useReducer:s0,useRef:_L,useState:function(){return s0(df)},useDebugValue:dN,useDeferredValue:function(e){var t=fi();return gn===null?t.memoizedState=e:TL(t,gn.memoizedState,e)},useTransition:function(){var e=s0(df)[0],t=fi().memoizedState;return[e,t]},useMutableSource:vL,useSyncExternalStore:yL,useId:OL,unstable_isNewReconciler:!1};function Ci(e,t){if(e&&e.defaultProps){t=Kt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function yS(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Kt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gy={isMounted:function(e){return(e=e._reactInternals)?Bl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dr(),i=eo(e),a=qa(r,i);a.payload=t,n!=null&&(a.callback=n),t=Qs(e,a,i),t!==null&&(Fi(t,e,i,r),pg(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dr(),i=eo(e),a=qa(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Qs(e,a,i),t!==null&&(Fi(t,e,i,r),pg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dr(),r=eo(e),i=qa(n,r);i.tag=2,t!=null&&(i.callback=t),t=Qs(e,i,r),t!==null&&(Fi(t,e,r,n),pg(t,e,r))}};function ME(e,t,n,r,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!rf(n,r)||!rf(i,a):!0}function ML(e,t,n){var r=!1,i=lo,a=t.contextType;return typeof a=="object"&&a!==null?a=hi(a):(i=Cr(t)?vl:er.current,r=t.contextTypes,a=(r=r!=null)?xu(e,i):lo),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Gy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function $E(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Gy.enqueueReplaceState(t,t.state,null)}function bS(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},rN(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=hi(a):(a=Cr(t)?vl:er.current,i.context=xu(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(yS(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Gy.enqueueReplaceState(i,i.state,null),Kg(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function _u(e,t){try{var n="",r=t;do n+=oG(r),r=r.return;while(r);var i=n}catch(a){i=` 39Error generating stack: `+a.message+` 40`+a.stack}return{value:e,source:t,stack:i,digest:null}}function o0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function xS(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var R7=typeof WeakMap=="function"?WeakMap:Map;function $L(e,t,n){n=qa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zg||(Zg=!0,kS=r),xS(e,t)},n}function LL(e,t,n){n=qa(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){xS(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){xS(e,t),typeof r!="function"&&(Zs===null?Zs=new Set([this]):Zs.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function LE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new R7;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=K7.bind(null,e,t,n),t.then(e,e))}function VE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function FE(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=qa(-1,1),t.tag=2,Qs(n,t,1))),n.lanes|=1),e)}var D7=ls.ReactCurrentOwner,jr=!1;function ar(e,t,n,r){t.child=e===null?fL(t,null,n,r):Su(t,e.child,n,r)}function BE(e,t,n,r,i){n=n.render;var a=t.ref;return Gc(t,i),r=lN(e,t,n,r,a,i),n=cN(),e!==null&&!jr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ts(e,t,i)):(Ft&&n&&X_(t),t.flags|=1,ar(e,t,r,i
vendor: 6,651 bytes, line 40
40),t.child)}function zE(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!bN(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,VL(e,t,a,r,i)):(e=xg(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:rf,n(s,r)&&e.ref===t.ref)return ts(e,t,i)}return t.flags|=1,e=to(a,r),e.ref=t.ref,e.return=t,t.child=e}function VL(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(rf(a,r)&&e.ref===t.ref)if(jr=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(jr=!0);else return t.lanes=e.lanes,ts(e,t,i)}return wS(e,t,n,r,i)}function FL(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ct(Rc,Mr),Mr|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ct(Rc,Mr),Mr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Ct(Rc,Mr),Mr|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ct(Rc,Mr),Mr|=r;return ar(e,t,i,n),t.child}function BL(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wS(e,t,n,r,i){var a=Cr(n)?vl:er.current;return a=xu(t,a),Gc(t,i),n=lN(e,t,n,r,a,i),r=cN(),e!==null&&!jr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ts(e,t,i)):(Ft&&r&&X_(t),t.flags|=1,ar(e,t,n,i),t.child)}function UE(e,t,n,r,i){if(Cr(n)){var a=!0;Ug(t)}else a=!1;if(Gc(t,i),t.stateNode===null)vg(e,t),ML(t,n,r),bS(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var c=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=hi(u):(u=Cr(n)?vl:er.current,u=xu(t,u));var h=n.getDerivedStateFromProps,d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||c!==u)&&$E(t,s,r,u),As=!1;var f=t.memoizedState;s.state=f,Kg(t,r,s,i),c=t.memoizedState,l!==r||f!==c||Ar.current||As?(typeof h=="function"&&(yS(t,n,h,r),c=t.memoizedState),(l=As||ME(t,n,l,r,f,c,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,mL(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ci(t.type,l),s.props=u,d=t.pendingProps,f=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=hi(c):(c=Cr(n)?vl:er.current,c=xu(t,c));var p=n.getDerivedStateFromProps;(h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||f!==c)&&$E(t,s,r,c),As=!1,f=t.memoizedState,s.state=f,Kg(t,r,s,i);var v=t.memoizedState;l!==d||f!==v||Ar.current||As?(typeof p=="function"&&(yS(t,n,p,r),v=t.memoizedState),(u=As||ME(t,n,u,r,f,v,c)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=c,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return SS(e,t,n,r,a,i)}function SS(e,t,n,r,i,a){BL(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&CE(t,n,!1),ts(e,t,a);r=t.stateNode,D7.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Su(t,e.child,null,a),t.child=Su(t,null,l,a)):ar(e,t,l,a),t.memoizedState=r.state,i&&CE(t,n,!0),t.child}function zL(e){var t=e.stateNode;t.pendingContext?AE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&AE(e,t.context,!1),iN(e,t.containerInfo)}function WE(e,t,n,r,i){return wu(),Q_(i),t.flags|=256,ar(e,t,n,r),t.child}var jS={dehydrated:null,treeContext:null,retryLane:0};function _S(e){return{baseLanes:e,cachePool:null,transitions:null}}function UL(e,t,n){var r=t.pendingProps,i=qt.current,a=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ct(qt,i&1),e===null)return gS(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,a?(r=t.mode,a=t.child,s={mode:"hidden",children:s},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=Xy(s,r,0,null),e=dl(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=_S(n),t.memoizedState=jS,e):hN(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return M7(e,t,s,r,l,i,n);if(a){a=r.fallback,s=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=to(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?a=to(l,a):(a=dl(a,s,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,s=e.child.memoizedState,s=s===null?_S(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=jS,r}return a=e.child,e=a.sibling,r=to(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function hN(e,t){return t=Xy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _m(e,t,n,r){return r!==null&&Q_(r),Su(t,e.child,null,n),e=hN(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}
vendor: 6,297 bytes, line 40
40function M7(e,t,n,r,i,a,s){if(n)return t.flags&256?(t.flags&=-257,r=o0(Error(ie(422))),_m(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Xy({mode:"visible",children:r.children},i,0,null),a=dl(a,i,s,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Su(t,e.child,null,s),t.child.memoizedState=_S(s),t.memoizedState=jS,a);if(!(t.mode&1))return _m(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(ie(419)),r=o0(a,r,void 0),_m(e,t,s,r)}if(l=(s&e.childLanes)!==0,jr||l){if(r=Cn,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,es(e,i),Fi(r,e,i,-1))}return yN(),r=o0(Error(ie(421))),_m(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Y7.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,zr=Js(i.nextSibling),Ur=t,Ft=!0,Ri=null,e!==null&&(ni[ri++]=Fa,ni[ri++]=Ba,ni[ri++]=yl,Fa=e.id,Ba=e.overflow,yl=t),t=hN(t,r.children),t.flags|=4096,t)}function qE(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vS(e.return,t,n)}function l0(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function WL(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ar(e,t,r.children,n),r=qt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qE(e,n,t);else if(e.tag===19)qE(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ct(qt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Yg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),l0(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Yg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}l0(t,!0,n,null,a);break;case"together":l0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ts(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ie(153));if(t.child!==null){for(e=t.child,n=to(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=to(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $7(e,t,n){switch(t.tag){case 3:zL(t),wu();break;case 5:gL(t);break;case 1:Cr(t.type)&&Ug(t);break;case 4:iN(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ct(Hg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ct(qt,qt.current&1),t.flags|=128,null):n&t.child.childLanes?UL(e,t,n):(Ct(qt,qt.current&1),e=ts(e,t,n),e!==null?e.sibling:null);Ct(qt,qt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return WL(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ct(qt,qt.current),r)break;return null;case 22:case 23:return t.lanes=0,FL(e,t,n)}return ts(e,t,n)}var qL,NS,HL,GL;qL=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};NS=function(){};HL=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ko(fa.current);var a=null;switch(n){case"input":i=Gw(e,i),r=Gw(e,r),a=[];break;case"select":i=Kt({},i,{value:void 0}),r=Kt({},r,{value:void 0}),a=[];break;case"textarea":i=Xw(e,i),r=Xw(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bg)}Qw(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Xh.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(a||(a=[]),a.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Xh.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Tt("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};GL=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xd(e,t){if(!Ft)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}
vendor: 8,783 bytes, line 40
40function L7(e,t,n){var r=t.pendingProps;switch(J_(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wn(t),null;case 1:return Cr(t.type)&&zg(),Wn(t),null;case 3:return r=t.stateNode,ju(),Dt(Ar),Dt(er),sN(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Sm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ri!==null&&(IS(Ri),Ri=null))),NS(e,t),Wn(t),null;case 5:aN(t);var i=Ko(cf.current);if(n=t.type,e!==null&&t.stateNode!=null)HL(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ie(166));return Wn(t),null}if(e=Ko(fa.current),Sm(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[oa]=t,r[of]=a,e=(t.mode&1)!==0,n){case"dialog":Tt("cancel",r),Tt("close",r);break;case"iframe":case"object":case"embed":Tt("load",r);break;case"video":case"audio":for(i=0;i<yh.length;i++)Tt(yh[i],r);break;case"source":Tt("error",r);break;case"img":case"image":case"link":Tt("error",r),Tt("load",r);break;case"details":Tt("toggle",r);break;case"input":eE(r,a),Tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Tt("invalid",r);break;case"textarea":nE(r,a),Tt("invalid",r)}Qw(n,a),i=null;for(var s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="children"?typeof l=="string"?r.textContent!==l&&(a.suppressHydrationWarning!==!0&&wm(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&wm(r.textContent,l,e),i=["children",""+l]):Xh.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Tt("scroll",r)}switch(n){case"input":fm(r),tE(r,a,!0);break;case"textarea":fm(r),rE(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Bg)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=w$(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[oa]=t,e[of]=r,qL(e,t,!1,!1),t.stateNode=e;e:{switch(s=Zw(n,r),n){case"dialog":Tt("cancel",e),Tt("close",e),i=r;break;case"iframe":case"object":case"embed":Tt("load",e),i=r;break;case"video":case"audio":for(i=0;i<yh.length;i++)Tt(yh[i],e);i=r;break;case"source":Tt("error",e),i=r;break;case"img":case"image":case"link":Tt("error",e),Tt("load",e),i=r;break;case"details":Tt("toggle",e),i=r;break;case"input":eE(e,r),i=Gw(e,r),Tt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Kt({},r,{value:void 0}),Tt("invalid",e);break;case"textarea":nE(e,r),i=Xw(e,r),Tt("invalid",e);break;default:i=r}Qw(n,i),l=i;for(a in l)if(l.hasOwnProperty(a)){var c=l[a];a==="style"?_$(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&S$(e,c)):a==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Jh(e,c):typeof c=="number"&&Jh(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Xh.hasOwnProperty(a)?c!=null&&a==="onScroll"&&Tt("scroll",e):c!=null&&M_(e,a,c,s))}switch(n){case"input":fm(e),tE(e,r,!1);break;case"textarea":fm(e),rE(e);break;case"option":r.value!=null&&e.setAttribute("value",""+oo(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?Uc(e,!!r.multiple,a,!1):r.defaultValue!=null&&Uc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Bg)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Wn(t),null;case 6:if(e&&t.stateNode!=null)GL(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ie(166));if(n=Ko(cf.current),Ko(fa.current),Sm(t)){if(r=t.stateNode,n=t.memoizedProps,r[oa]=t,(a=r.nodeValue!==n)&&(e=Ur,e!==null))switch(e.tag){case 3:wm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wm(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[oa]=t,t.stateNode=r}return Wn(t),null;case 13:if(Dt(qt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ft&&zr!==null&&t.mode&1&&!(t.flags&128))dL(),wu(),t.flags|=98560,a=!1;else if(a=Sm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(ie(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(ie(317));a[oa]=t}else wu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Wn(t),a=!1}else Ri!==null&&(IS(Ri),Ri=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||qt.current&1?yn===0&&(yn=3):yN())),t.updateQueue!==null&&(t.flags|=4),Wn(t),null);case 4:return ju(),NS(e,t),e===null&&af(t.stateNode.containerInfo),Wn(t),null;case 10:return tN(t.type._context),Wn(t),null;case 17:return Cr(t.type)&&zg(),Wn(t),null;case 19:if(Dt(qt),a=t.memoizedState,a===null)return Wn(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)Xd(a,!1);else{if(yn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Yg(e),s!==null){for(t.flags|=128,Xd(a,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ct(qt,qt.current&1|2),t.child}e=e.sibling}a.tail!==null&&en()>Nu&&(t.flags|=128,r=!0,Xd(a,!1),t.lanes=4194304)}else{if(!r)if(e=Yg(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ft)return Wn(t),null}else 2*en()-a.renderingStartTime>Nu&&n!==1073741824&&(t.flags|=128,r=!0,Xd(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=en(),t.sibling=null,n=qt.current,Ct(qt,r?n&1|2:n&1),t):(Wn(t),null);case 22:case 23:return vN(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mr&1073741824&&(Wn(t),t.subtreeFlags&6&&(t.flags|=8192)):Wn(t),null;case 24:return null;case 25:return null}throw Error(ie(156,t.tag))}function V7(e,t){switch(J_(t),t.tag){case 1:return Cr(t.type)&&zg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ju(),Dt(Ar),Dt(er),sN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return aN(t),null;case 13:if(Dt(qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ie(340));wu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Dt(qt),null;case 4:return ju(),null;case 10:return tN(t.type._context),null;case 22:case 23:return vN(),null;case 24:return null;default:return null}}var Nm=!1,Gn=!1,F7=typeof WeakSet=="function"?WeakSet:Set,ge=null;function Ic(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Qt(e,t,r)}else n.current=null}function PS(e,t,n){try{n()}catch(r){Qt(e,t,r)}}var HE=!1;function B7(e,t){if(cS=Lg,e=Q$(),Y_(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,l=-1,c=-1,u=0,h=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==a||r!==0&&d.nodeType!==3||(c=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(l=s),f===a&&++h===r&&(c=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(uS={focusedElem:e,selectionRange:n},Lg=!1,ge=t;ge!==null;)if(t=ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ge=e;else for(;ge!==null;){t=ge;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;
vendor: 6,886 bytes, line 40
40case 1:if(v!==null){var m=v.memoizedProps,y=v.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ci(t.type,m),y);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ie(163))}}catch(S){Qt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ge=e;break}ge=t.return}return v=HE,HE=!1,v}function Ih(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&PS(t,n,a)}i=i.next}while(i!==r)}}function Ky(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function AS(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function KL(e){var t=e.alternate;t!==null&&(e.alternate=null,KL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oa],delete t[of],delete t[fS],delete t[j7],delete t[_7])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function YL(e){return e.tag===5||e.tag===3||e.tag===4}function GE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||YL(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function CS(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bg));else if(r!==4&&(e=e.child,e!==null))for(CS(e,t,n),e=e.sibling;e!==null;)CS(e,t,n),e=e.sibling}function ES(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ES(e,t,n),e=e.sibling;e!==null;)ES(e,t,n),e=e.sibling}var Rn=null,Ti=!1;function vs(e,t,n){for(n=n.child;n!==null;)XL(e,t,n),n=n.sibling}function XL(e,t,n){if(ha&&typeof ha.onCommitFiberUnmount=="function")try{ha.onCommitFiberUnmount(Fy,n)}catch{}switch(n.tag){case 5:Gn||Ic(n,t);case 6:var r=Rn,i=Ti;Rn=null,vs(e,t,n),Rn=r,Ti=i,Rn!==null&&(Ti?(e=Rn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rn.removeChild(n.stateNode));break;case 18:Rn!==null&&(Ti?(e=Rn,n=n.stateNode,e.nodeType===8?t0(e.parentNode,n):e.nodeType===1&&t0(e,n),tf(e)):t0(Rn,n.stateNode));break;case 4:r=Rn,i=Ti,Rn=n.stateNode.containerInfo,Ti=!0,vs(e,t,n),Rn=r,Ti=i;break;case 0:case 11:case 14:case 15:if(!Gn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&PS(n,t,s),i=i.next}while(i!==r)}vs(e,t,n);break;case 1:if(!Gn&&(Ic(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Qt(n,t,l)}vs(e,t,n);break;case 21:vs(e,t,n);break;case 22:n.mode&1?(Gn=(r=Gn)||n.memoizedState!==null,vs(e,t,n),Gn=r):vs(e,t,n);break;default:vs(e,t,n)}}function KE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new F7),t.forEach(function(r){var i=X7.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xi(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Rn=l.stateNode,Ti=!1;break e;case 3:Rn=l.stateNode.containerInfo,Ti=!0;break e;case 4:Rn=l.stateNode.containerInfo,Ti=!0;break e}l=l.return}if(Rn===null)throw Error(ie(160));XL(a,s,i),Rn=null,Ti=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){Qt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)JL(t,e),t=t.sibling}function JL(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xi(t,e),Zi(e),r&4){try{Ih(3,e,e.return),Ky(3,e)}catch(m){Qt(e,e.return,m)}try{Ih(5,e,e.return)}catch(m){Qt(e,e.return,m)}}break;case 1:xi(t,e),Zi(e),r&512&&n!==null&&Ic(n,n.return);break;case 5:if(xi(t,e),Zi(e),r&512&&n!==null&&Ic(n,n.return),e.flags&32){var i=e.stateNode;try{Jh(i,"")}catch(m){Qt(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,s=n!==null?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&b$(i,a),Zw(l,s);var u=Zw(l,a);for(s=0;s<c.length;s+=2){var h=c[s],d=c[s+1];h==="style"?_$(i,d):h==="dangerouslySetInnerHTML"?S$(i,d):h==="children"?Jh(i,d):M_(i,h,d,u)}switch(l){case"input":Kw(i,a);break;case"textarea":x$(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?Uc(i,!!a.multiple,p,!1):f!==!!a.multiple&&(a.defaultValue!=null?Uc(i,!!a.multiple,a.defaultValue,!0):Uc(i,!!a.multiple,a.multiple?[]:"",!1))}i[of]=a}catch(m){Qt(e,e.return,m)}}break;case 6:if(xi(t,e),Zi(e),r&4){if(e.stateNode===null)throw Error(ie(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){Qt(e,e.return,m)}}break;case 3:if(xi(t,e),Zi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{tf(t.containerInfo)}catch(m){Qt(e,e.return,m)}break;case 4:xi(t,e),Zi(e);break;case 13:xi(t,e),Zi(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(mN=en())),r&4&&KE(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Gn=(u=Gn)||h,xi(t,e),Gn=u):xi(t,e),Zi(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!h&&e.mode&1)for(ge=e,h=e.child;h!==null;){for(d=ge=h;ge!==null;){switch(f=ge,p=f.child,f.tag){case 0:case 11:case 14:case 15:Ih(4,f,f.return);break;case 1:Ic(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(m){Qt(r,n,m)}}break;case 5:Ic(f,f.return);break;case 22:if(f.memoizedState!==null){XE(d);continue}}p!==null?(p.return=f,ge=p):XE(d)}h=h.sibling}e:for(h=null,d=e;;){if(d.tag===5){if(h===null){h=d;try{i=d.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=d.stateNode,c=d.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=j$("display",s))}catch(m){Qt(e,e.return,m)}}}else if(d.tag===6){if(h===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){Qt(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.
vendor: 18,197 bytes, line 40
40child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:xi(t,e),Zi(e),r&4&&KE(e);break;case 21:break;default:xi(t,e),Zi(e)}}function Zi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(YL(n)){var r=n;break e}n=n.return}throw Error(ie(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Jh(i,""),r.flags&=-33);var a=GE(e);ES(e,a,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=GE(e);CS(e,l,s);break;default:throw Error(ie(161))}}catch(c){Qt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function z7(e,t,n){ge=e,QL(e)}function QL(e,t,n){for(var r=(e.mode&1)!==0;ge!==null;){var i=ge,a=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Nm;if(!s){var l=i.alternate,c=l!==null&&l.memoizedState!==null||Gn;l=Nm;var u=Gn;if(Nm=s,(Gn=c)&&!u)for(ge=i;ge!==null;)s=ge,c=s.child,s.tag===22&&s.memoizedState!==null?JE(i):c!==null?(c.return=s,ge=c):JE(i);for(;a!==null;)ge=a,QL(a),a=a.sibling;ge=i,Nm=l,Gn=u}YE(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,ge=a):YE(e)}}function YE(e){for(;ge!==null;){var t=ge;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Gn||Ky(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Gn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ci(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&IE(t,a,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}IE(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var h=u.memoizedState;if(h!==null){var d=h.dehydrated;d!==null&&tf(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ie(163))}Gn||t.flags&512&&AS(t)}catch(f){Qt(t,t.return,f)}}if(t===e){ge=null;break}if(n=t.sibling,n!==null){n.return=t.return,ge=n;break}ge=t.return}}function XE(e){for(;ge!==null;){var t=ge;if(t===e){ge=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ge=n;break}ge=t.return}}function JE(e){for(;ge!==null;){var t=ge;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ky(4,t)}catch(c){Qt(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){Qt(t,i,c)}}var a=t.return;try{AS(t)}catch(c){Qt(t,a,c)}break;case 5:var s=t.return;try{AS(t)}catch(c){Qt(t,s,c)}}}catch(c){Qt(t,t.return,c)}if(t===e){ge=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ge=l;break}ge=t.return}}var U7=Math.ceil,Qg=ls.ReactCurrentDispatcher,fN=ls.ReactCurrentOwner,oi=ls.ReactCurrentBatchConfig,tt=0,Cn=null,cn=null,Ln=0,Mr=0,Rc=yo(0),yn=0,ff=null,xl=0,Yy=0,pN=0,Rh=null,Sr=null,mN=0,Nu=1/0,Ma=null,Zg=!1,kS=null,Zs=null,Pm=!1,Ws=null,ev=0,Dh=0,TS=null,yg=-1,bg=0;function dr(){return tt&6?en():yg!==-1?yg:yg=en()}function eo(e){return e.mode&1?tt&2&&Ln!==0?Ln&-Ln:P7.transition!==null?(bg===0&&(bg=M$()),bg):(e=gt,e!==0||(e=window.event,e=e===void 0?16:U$(e.type)),e):1}function Fi(e,t,n,r){if(50<Dh)throw Dh=0,TS=null,Error(ie(185));_p(e,n,r),(!(tt&2)||e!==Cn)&&(e===Cn&&(!(tt&2)&&(Yy|=n),yn===4&&Ts(e,Ln)),Er(e,r),n===1&&tt===0&&!(t.mode&1)&&(Nu=en()+500,qy&&bo()))}function Er(e,t){var n=e.callbackNode;PG(e,t);var r=$g(e,e===Cn?Ln:0);if(r===0)n!==null&&sE(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&sE(n),t===1)e.tag===0?N7(QE.bind(null,e)):lL(QE.bind(null,e)),w7(function(){!(tt&6)&&bo()}),n=null;else{switch($$(r)){case 1:n=B_;break;case 4:n=R$;break;case 16:n=Mg;break;case 536870912:n=D$;break;default:n=Mg}n=s3(n,ZL.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ZL(e,t){if(yg=-1,bg=0,tt&6)throw Error(ie(327));var n=e.callbackNode;if(Kc()&&e.callbackNode!==n)return null;var r=$g(e,e===Cn?Ln:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=tv(e,r);else{t=r;var i=tt;tt|=2;var a=t3();(Cn!==e||Ln!==t)&&(Ma=null,Nu=en()+500,ul(e,t));do try{H7();break}catch(l){e3(e,l)}while(!0);eN(),Qg.current=a,tt=i,cn!==null?t=0:(Cn=null,Ln=0,t=yn)}if(t!==0){if(t===2&&(i=iS(e),i!==0&&(r=i,t=OS(e,i))),t===1)throw n=ff,ul(e,0),Ts(e,r),Er(e,en()),n;if(t===6)Ts(e,r);else{if(i=e.current.alternate,!(r&30)&&!W7(i)&&(t=tv(e,r),t===2&&(a=iS(e),a!==0&&(r=a,t=OS(e,a))),t===1))throw n=ff,ul(e,0),Ts(e,r),Er(e,en()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(ie(345));case 2:Mo(e,Sr,Ma);break;case 3:if(Ts(e,r),(r&130023424)===r&&(t=mN+500-en(),10<t)){if($g(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){dr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=hS(Mo.bind(null,e,Sr,Ma),t);break}Mo(e,Sr,Ma);break;case 4:if(Ts(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Vi(r);a=1<<s,s=t[s],s>i&&(i=s),r&=~a}if(r=i,r=en()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*U7(r/1960))-r,10<r){e.timeoutHandle=hS(Mo.bind(null,e,Sr,Ma),r);break}Mo(e,Sr,Ma);break;case 5:Mo(e,Sr,Ma);break;default:throw Error(ie(329))}}}return Er(e,en()),e.callbackNode===n?ZL.bind(null,e):null}function OS(e,t){var n=Rh;return e.current.memoizedState.isDehydrated&&(ul(e,t).flags|=256),e=tv(e,t),e!==2&&(t=Sr,Sr=n,t!==null&&IS(t)),e}function IS(e){Sr===null?Sr=e:Sr.push.apply(Sr,e)}function W7(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!zi(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ts(e,t){for(t&=~pN,t&=~Yy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vi(t),r=1<<n;e[n]=-1,t&=~r}}function QE(e){if(tt&6)throw Error(ie(327));Kc();var t=$g(e,0);if(!(t&1))return Er(e,en()),null;var n=tv(e,t);if(e.tag!==0&&n===2){var r=iS(e);r!==0&&(t=r,n=OS(e,r))}if(n===1)throw n=ff,ul(e,0),Ts(e,t),Er(e,en()),n;if(n===6)throw Error(ie(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Mo(e,Sr,Ma),Er(e,en()),null}function gN(e,t){var n=tt;tt|=1;try{return e(t)}finally{tt=n,tt===0&&(Nu=en()+500,qy&&bo())}}function wl(e){Ws!==null&&Ws.tag===0&&!(tt&6)&&Kc();var t=tt;tt|=1;var n=oi.transition,r=gt;try{if(oi.transition=null,gt=1,e)return e()}finally{gt=r,oi.transition=n,tt=t,!(tt&6)&&bo()}}function vN(){Mr=Rc.current,Dt(Rc)}function ul(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,x7(n)),cn!==null)for(n=cn.return;n!==null;){var r=n;switch(J_(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&zg();break;case 3:ju(),Dt(Ar),Dt(er),sN();break;case 5:aN(r);break;case 4:ju();break;case 13:Dt(qt);break;case 19:Dt(qt);break;case 10:tN(r.type._context);break;case 22:case 23:vN()}n=n.return}if(Cn=e,cn=e=to(e.current,null),Ln=Mr=t,yn=0,ff=null,pN=Yy=xl=0,Sr=Rh=null,Go!==null){for(t=0;t<Go.length;t++)if(n=Go[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var s=a.next;a.next=i,r.next=s}n.pending=r}Go=null}return e}function e3(e,t){do{var n=cn;try{if(eN(),mg.current=Jg,Xg){for(var r=Gt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Xg=!1}if(bl=0,Pn=gn=Gt=null,Oh=!1,uf=0,fN.current=null,n===null||n.return===null){yn=1,ff=t,cn=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Ln,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,h=l,d=h.tag;if(!(h.mode&1)&&(d===0||d===11||d===15)){var f=h.alternate;f?(h.updateQueue=f.updateQueue,h.memoizedState=f.memoizedState,h.lanes=f.lanes):(h.updateQueue=null,h.memoizedState=null)}var p=VE(s);if(p!==null){p.flags&=-257,FE(p,s,l,a,t),p.mode&1&&LE(a,u,t),t=p,c=u;var v=t.updateQueue;if(v===null){var m=new Set;m.add(c),t.updateQueue=m}else v.add(c);break e}else{if(!(t&1)){LE(a,u,t),yN();break e}c=Error(ie(426))}}else if(Ft&&l.mode&1){var y=VE(s);if(y!==null){!(y.flags&65536)&&(y.flags|=256),FE(y,s,l,a,t),Q_(_u(c,l));break e}}a=c=_u(c,l),yn!==4&&(yn=2),Rh===null?Rh=[a]:Rh.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var b=$L(a,c,t);OE(a,b);break e;case 1:l=c;var w=a.type,x=a.stateNode;if(!(a.flags&128)&&(typeof w.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Zs===null||!Zs.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=LL(a,l,t);OE(a,S);break e}}a=a.return}while(a!==null)}r3(n)}catch(j){t=j,cn===n&&n!==null&&(cn=n=n.return);continue}break}while(!0)}function t3(){var e=Qg.current;return Qg.current=Jg,e===null?Jg:e}function yN(){(yn===0||yn===3||yn===2)&&(yn=4),Cn===null||!(xl&268435455)&&!(Yy&268435455)||Ts(Cn,Ln)}function tv(e,t){var n=tt;tt|=2;var r=t3();(Cn!==e||Ln!==t)&&(Ma=null,ul(e,t));do try{q7();break}catch(i){e3(e,i)}while(!0);if(eN(),tt=n,Qg.current=r,cn!==null)throw Error(ie(261));return Cn=null,Ln=0,yn}function q7(){for(;cn!==null;)n3(cn)}function H7(){for(;cn!==null&&!vG();)n3(cn)}function n3(e){var t=a3(e.alternate,e,Mr);e.memoizedProps=e.pendingProps,t===null?r3(e):cn=t,fN.current=null}function r3(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=V7(n,t),n!==null){n.flags&=32767,cn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{yn=6,cn=null;return}}else if(n=L7(n,t,Mr),n!==null){cn=n;return}if(t=t.sibling,t!==null){cn=t;return}cn=t=e}while(t!==null);yn===0&&(yn=5)}function Mo(e,t,n){var r=gt,i=oi.transition;try{oi.transition=null,gt=1,G7(e,t,n,r)}finally{oi.transition=i,gt=r}return null}function G7(e,t,n,r){do Kc();while(Ws!==null);if(tt&6)throw Error(ie(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ie(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(AG(e,a),e===Cn&&(cn=Cn=null,Ln=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pm||(Pm=!0,s3(Mg,function(){return Kc(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=oi.transition,oi.transition=null;var s=gt;gt=1;var l=tt;tt|=4,fN.current=null,B7(e,n),JL(n,e),f7(uS),Lg=!!cS,uS=cS=null,e.current=n,z7(n),yG(),tt=l,gt=s,oi.transition=a}else e.current=n;if(Pm&&(Pm=!1,Ws=e,ev=i),a=e.pendingLanes,a===0&&(Zs=null),wG(n.stateNode),Er(e,en()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Zg)throw Zg=!1,e=kS,kS=null,e;return ev&1&&e.tag!==0&&Kc(),a=e.pendingLanes,a&1?e===TS?Dh++:(Dh=0,TS=e):Dh=0,bo(),null}function Kc(){if(Ws!==null){var e=$$(ev),t=oi.transition,n=gt;try{if(oi.transition=null,gt=16>e?16:e,Ws===null)var r=!1;else{if(e=Ws,Ws=null,ev=0,tt&6)throw Error(ie(331));var i=tt;for(tt|=4,ge=e.current;ge!==null;){var a=ge,s=a.child;if(ge.flags&16){var l=a.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(ge=u;ge!==null;){var h=ge;switch(h.tag){case 0:case 11:case 15:Ih(8,h,a)}var d=h.child;if(d!==null)d.return=h,ge=d;else for(;ge!==null;){h=ge;var f=h.sibling,p=h.return;if(KL(h),h===u){ge=null;break}if(f!==null){f.return=p,ge=f;break}ge=p}}}var v=a.alternate;if(v!==null){var m=v.child;if(m!==null){v.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(m!==null)}}ge=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,ge=s;else e:for(;ge!==null;){if(a=ge,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Ih(9,a,a.return)}var b=a.sibling;if(b!==null){b.return=a.return,ge=b;break e}ge=a.return}}var w=e.current;for(ge=w;ge!==null;){s=ge;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,ge=x;else e:for(s=w;ge!==null;){if(l=ge,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ky(9,l)}}catch(j){Qt(l,l.return,j)}if(l===s){ge=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,ge=S;break e}ge=l.return}}if(tt=i,bo(),ha&&typeof ha.onPostCommitFiberRoot=="function")try{ha.onPostCommitFiberRoot(Fy,e)}catch{}r=!0}return r}finally{gt=n,oi.transition=t}}return!1}function ZE(e,t,n){t=_u(n,t),t=$L(e,t,1),e=Qs(e,t,1),t=dr(),e!==null&&(_p(e,1,t),Er(e,t))}function Qt(e,t,n){if(e.tag===3)ZE(e,e,n);else for(;t!==null;){if(t.tag===3){ZE(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zs===null||!Zs.has(r))){e=_u(n,e),e=LL(t,e,1),t=Qs(t,e,1),e=dr(),t!==null&&(_p(t,1,e),Er(t,e));break}}t=t.return}}function K7(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=dr(),e.pingedLanes|=e.suspendedLanes&n,Cn===e&&(Ln&n)===n&&(yn===4||yn===3&&(Ln&130023424)===Ln&&500>en()-mN?ul(e,0):pN|=n),Er(e,t)}function i3(e,t){t===0&&(e.mode&1?(t=gm,gm<<=1,!(gm&130023424)&&(gm=4194304)):t=1);var n=dr();e=es(e,t),e!==null&&(_p(e,t,n),Er(e,n))}function Y7(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),i3(e,n)}function X7(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ie(314))}r!==null&&r.delete(t),i3(e,n)}var a3;a3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ar.current)jr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jr=!1,$7(e,t,n);jr=!!(e.flags&131072)}else jr=!1,Ft&&t.flags&1048576&&cL(t,qg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vg(e,t),e=t.pendingProps;var i=xu(t,er.current);Gc(t,n),i=lN(null,t,r,e,i,n);var a=cN();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Cr(r)?(a=!0,Ug(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rN(t),i.updater=Gy,t.stateNode=i,i._reactInternals=t,bS(t,r,e,n),t=SS(null,t,r,!0,a,n)):(t.tag=0,Ft&&a&&X_(t),ar(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vg(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Q7(r),e=Ci(r,e),i){case 0:t=wS(null,t,r,e,n);break e;case 1:t=UE(null,t,r,e,n);break e;case 11:t=BE(null,t,r,e,n);break e;case 14:t=zE(null,t,r,Ci(r.type,e),n);break e}throw Error(ie(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ci(r,i),wS(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ci(r,i),UE(e,t,r,i,n);case 3:e:{if(zL(t),e===null)throw Error(ie(387));r=t.pendingProps,a=t.memoizedState,i=a.element,mL(e,t),Kg(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=_u(Error(ie(423)),t),t=WE(e,t,r,n,i);break e}else if(r!==i){i=_u(Error(ie(424)),t),t=WE(e,t,r,n,i);break e}else for(zr=Js(t.stateNode.containerInfo.firstChild),Ur=t,Ft=!0,Ri=null,n=fL(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wu(),r===i){t=ts(e,t,n);break e}ar(e,t,r,n)}t=t.child}return t;case 5:return gL(t),e===null&&gS(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,dS(r,i)?s=null:a!==null&&dS(r,a)&&(t.flags|=32),BL(e,t),ar(e,t,s,n),t.child;case 6:return e===null&&gS(t),null;case 13:return UL(e,t,n);case 4:return iN(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Su(t,null,r,n):ar(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ci(r,i),BE(e,t,r,i,n);case 7:return ar(e,t,t.pendingProps,n),t.child;case 8:return ar(e,t,t.pendingProps.children,n),t.child;case 12:return ar(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ct(Hg,r._currentValue),r._currentValue=s,a!==null)if(zi(a.value,s)){if(a.children===i.children&&!Ar.current){t=ts(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=qa(-1,n&-n),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?c.next=c:(c.next=h.next,h.next=c),u.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),vS(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(ie(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),vS(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}ar(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gc(t,n),i=hi(i),r=r(i),t.flags|=1,ar(e,t,r,n),t.child;case 14:return r=t.type,i=Ci(r,t.pendingProps),i=Ci(r.type,i),zE(e,t,r,i,n);case 15:return VL(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ci(r,i),vg(e,t),t.tag=1,Cr(r)?(e=!0,Ug(t)):e=!1,Gc(t,n),ML(t,r,i),bS(t,r,i,n),SS(null,t,r,!0,e,n);case 19:return WL(e,t,n);case 22:return FL(e,t,n)}throw Error(ie(156,t.tag))};function s3(e,t){return I$(e,t)}function J7(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(e,t,n,r){return new J7(e,t,n,r)}function bN(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Q7(e){if(typeof e=="function")return bN(e)?1:0;if(e!=null){if(e=e.$$typeof,e===L_)return 11;if(e===V_)return 14}return 2}function to(e,t){var n=e.alternate;return n===null?(n=ii(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 4,901 bytes, line 40
40ons=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xg(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")bN(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case _c:return dl(n.children,i,a,t);case $_:s=8,i|=8;break;case Uw:return e=ii(12,n,t,i|2),e.elementType=Uw,e.lanes=a,e;case Ww:return e=ii(13,n,t,i),e.elementType=Ww,e.lanes=a,e;case qw:return e=ii(19,n,t,i),e.elementType=qw,e.lanes=a,e;case g$:return Xy(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case p$:s=10;break e;case m$:s=9;break e;case L_:s=11;break e;case V_:s=14;break e;case Ps:s=16,r=null;break e}throw Error(ie(130,e==null?e:typeof e,""))}return t=ii(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function dl(e,t,n,r){return e=ii(7,e,r,t),e.lanes=n,e}function Xy(e,t,n,r){return e=ii(22,e,r,t),e.elementType=g$,e.lanes=n,e.stateNode={isHidden:!1},e}function c0(e,t,n){return e=ii(6,e,null,t),e.lanes=n,e}function u0(e,t,n){return t=ii(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z7(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wx(0),this.expirationTimes=Wx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wx(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function xN(e,t,n,r,i,a,s,l,c){return e=new Z7(e,t,n,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ii(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rN(a),e}function eK(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function o3(e){if(!e)return lo;e=e._reactInternals;e:{if(Bl(e)!==e||e.tag!==1)throw Error(ie(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Cr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ie(171))}if(e.tag===1){var n=e.type;if(Cr(n))return oL(e,n,t)}return t}function l3(e,t,n,r,i,a,s,l,c){return e=xN(n,r,!0,e,i,a,s,l,c),e.context=o3(null),n=e.current,r=dr(),i=eo(n),a=qa(r,i),a.callback=t??null,Qs(n,a,i),e.current.lanes=i,_p(e,i,r),Er(e,r),e}function Jy(e,t,n,r){var i=t.current,a=dr(),s=eo(i);return n=o3(n),t.context===null?t.context=n:t.pendingContext=n,t=qa(a,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Qs(i,t,s),e!==null&&(Fi(e,i,s,a),pg(e,i,s)),s}function nv(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ek(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wN(e,t){ek(e,t),(e=e.alternate)&&ek(e,t)}function tK(){return null}var c3=typeof reportError=="function"?reportError:function(e){console.error(e)};function SN(e){this._internalRoot=e}Qy.prototype.render=SN.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ie(409));Jy(e,t,null,null)};Qy.prototype.unmount=SN.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wl(function(){Jy(null,e,null,null)}),t[Za]=null}};function Qy(e){this._internalRoot=e}Qy.prototype.unstable_scheduleHydration=function(e){if(e){var t=F$();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ks.length&&t!==0&&t<ks[n].priority;n++);ks.splice(n,0,e),n===0&&z$(e)}};function jN(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function tk(){}function nK(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var u=nv(s);a.call(u)}}var s=l3(t,r,e,0,null,!1,!1,"",tk);return e._reactRootContainer=s,e[Za]=s.current,af(e.nodeType===8?e.parentNode:e),wl(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=nv(c);l.call(u)}}var c=xN(e,0,!1,null,null,!1,!1,"",tk);return e._reactRootContainer=c,e[Za]=c.current,af(e.nodeType===8?e.parentNode:e),wl(function(){Jy(t,c,n,r)}),c}function eb(e,t,n,r,i){var a=n._reactRootContainer;if(a){var s=a;if(typeof i=="function"){var l=i;
vendor: 4,555 bytes, line 40
40i=function(){var c=nv(s);l.call(c)}}Jy(t,s,e,i)}else s=nK(n,t,e,i,r);return nv(s)}L$=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vh(t.pendingLanes);n!==0&&(z_(t,n|1),Er(t,en()),!(tt&6)&&(Nu=en()+500,bo()))}break;case 13:wl(function(){var r=es(e,1);if(r!==null){var i=dr();Fi(r,e,1,i)}}),wN(e,1)}};U_=function(e){if(e.tag===13){var t=es(e,134217728);if(t!==null){var n=dr();Fi(t,e,134217728,n)}wN(e,134217728)}};V$=function(e){if(e.tag===13){var t=eo(e),n=es(e,t);if(n!==null){var r=dr();Fi(n,e,t,r)}wN(e,t)}};F$=function(){return gt};B$=function(e,t){var n=gt;try{return gt=e,t()}finally{gt=n}};tS=function(e,t,n){switch(t){case"input":if(Kw(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Wy(r);if(!i)throw Error(ie(90));y$(r),Kw(r,i)}}}break;case"textarea":x$(e,n);break;case"select":t=n.value,t!=null&&Uc(e,!!n.multiple,t,!1)}};A$=gN;C$=wl;var rK={usingClientEntryPoint:!1,Events:[Pp,Cc,Wy,N$,P$,gN]},Jd={findFiberByHostInstance:Ho,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},iK={bundleType:Jd.bundleType,version:Jd.version,rendererPackageName:Jd.rendererPackageName,rendererConfig:Jd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ls.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=T$(e),e===null?null:e.stateNode},findFiberByHostInstance:Jd.findFiberByHostInstance||tK,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 Am=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Am.isDisabled&&Am.supportsFiber)try{Fy=Am.inject(iK),ha=Am}catch{}}Hr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rK;Hr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jN(t))throw Error(ie(200));return eK(e,t,null,n)};Hr.createRoot=function(e,t){if(!jN(e))throw Error(ie(299));var n=!1,r="",i=c3;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=xN(e,1,!1,null,null,n,!1,r,i),e[Za]=t.current,af(e.nodeType===8?e.parentNode:e),new SN(t)};Hr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ie(188)):(e=Object.keys(e).join(","),Error(ie(268,e)));return e=T$(t),e=e===null?null:e.stateNode,e};Hr.flushSync=function(e){return wl(e)};Hr.hydrate=function(e,t,n){if(!Zy(t))throw Error(ie(200));return eb(null,e,t,!0,n)};Hr.hydrateRoot=function(e,t,n){if(!jN(e))throw Error(ie(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",s=c3;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=l3(t,null,e,1,n??null,i,!1,a,s),e[Za]=t.current,af(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Qy(t)};Hr.render=function(e,t,n){if(!Zy(t))throw Error(ie(200));return eb(null,e,t,!1,n)};Hr.unmountComponentAtNode=function(e){if(!Zy(e))throw Error(ie(40));return e._reactRootContainer?(wl(function(){eb(null,null,e,!1,function(){e._reactRootContainer=null,e[Za]=null})}),!0):!1};Hr.unstable_batchedUpdates=gN;Hr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zy(n))throw Error(ie(200));if(e==null||e._reactInternals===void 0)throw Error(ie(38));return eb(e,t,n,!1,r)};Hr.version="18.3.1-next-f1338f8080-20240426";function u3(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u3)}catch(e){console.error(e)}}u3(),u$.exports=Hr;var zl=u$.exports;const d3=jt(zl);var h3,nk=zl;h3=nk.createRoot,nk.hydrateRoot;function aK(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){return Array.from(e.keys())[t]??null},removeItem(t){e.delete(String(t))}
40,setItem(t,n){e.set(String(t),String(n))}}}function rk(e){if(!(typeof window>"u"))try{const t=window[e],n=`__visible_storage_probe__${e}`;t.setItem(n,"1"),t.removeItem(n)}catch{const n=aK();try{Object.defineProperty(window,e,{configurable:!0,enumerable:!0,value:n})}catch{return}}}let ik=!1;function sK(){ik||typeof window>"u"||(ik=!0,rk("localStorage"),rk("sessionStorage"))}const oK=1,lK=1e6;let d0=0;function cK(){return d0=(d0+1)%Number.MAX_SAFE_INTEGER,d0.toString()}const h0=new Map,ak=e=>{if(h0.has(e))return;const t=setTimeout(()=>{h0.delete(e),Mh({type:"REMOVE_TOAST",toastId:e})},lK);h0.set(e,t)},uK=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,oK)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?ak(n):e.toasts.forEach(r=>{ak(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},wg=[];let Sg={toasts:[]};function Mh(e){Sg=uK(Sg,e),wg.forEach(t=>{t(Sg)})}function dK({...e}){const t=cK(),n=i=>Mh({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Mh({type:"DISMISS_TOAST",toastId:t});return Mh({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function Na(){const[e,t]=g.useState(Sg);return g.useEffect(()=>(wg.push(t),()=>{const n=wg.indexOf(t);n>-1&&wg.splice(n,1)}),[e]),{...e,toast:dK,dismiss:n=>Mh({type:"DISMISS_TOAST",toastId:n})}}function le(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function sk(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tb(...e){return t=>{let n=!1;const r=e.map(i=>{const a=sk(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():sk(e[i],null)}}}}function Me(...e){return g.useCallback(tb(...e),e)}function hK(e,t){const n=g.createContext(t),r=a=>{const{children:s,...l}=a,c=g.useMemo(()=>l,Object.values(l));return o.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function i(a){const s=g.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,i]}function Fn(e,t=[]){let n=[];function r(a,s){const l=g.createContext(s),c=n.length;n=[...n,s];const u=d=>{var b;const{scope:f,children:p,...v}=d,m=((b=f==null?void 0:f[e])==null?void 0:b[c])||l,y=g.useMemo(()=>v,Object.values(v));return o.jsx(m.Provider,{value:y,children:p})};u.displayName=a+"Provider";function h(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[c])||l,v=g.useContext(p);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[u,h]}const i=()=>{const a=n.map(s=>g.createContext(s));return function(l){const c=(l==null?void 0:l[e])||a;return g.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,fK(i,...t)]}function fK(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=r.reduce((l,{useScope:c,scopeName:u})=>{const d=c(a)[`__scope${u}`];return{...l,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Sl(e){const t=mK(e),n=g.forwardRef((r,i)=>{const{children:a,...s}=r,l=g.Children.toArray(a),c=l.find(gK);if(c){const u=c.props.children,h=l.map(d=>d===c?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:d);return o.jsx(t,{...s,ref:i,children:g.isValidElement(u)?g.cloneElement(u,void 0,h):null})}return o.jsx(t,{...s,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var pK=Sl("Slot");function mK(e){const t=g.forwardRef((n,r)=>{const{children:i,...a}=n;if(g.isValidElement(i)){const s=yK(i),l=vK(a,i.props);return i.type!==g.Fragment&&(l.ref=r?tb(r,s):s),g.cloneElement(i,l)}return g.Children.count(i)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var f3=Symbol("radix.slottable");function p3(e){const t=({children:n})=>o.jsx(o.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=f3,t}function gK(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===f3}function vK(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...l)=>{const c=a(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}
vendor: 8,722 bytes, line 40
40:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function yK(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Cp(e){const t=e+"CollectionProvider",[n,r]=Fn(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:y,children:b}=m,w=D.useRef(null),x=D.useRef(new Map).current;return o.jsx(i,{scope:y,itemMap:x,collectionRef:w,children:b})};s.displayName=t;const l=e+"CollectionSlot",c=Sl(l),u=D.forwardRef((m,y)=>{const{scope:b,children:w}=m,x=a(l,b),S=Me(y,x.collectionRef);return o.jsx(c,{ref:S,children:w})});u.displayName=l;const h=e+"CollectionItemSlot",d="data-radix-collection-item",f=Sl(h),p=D.forwardRef((m,y)=>{const{scope:b,children:w,...x}=m,S=D.useRef(null),j=Me(y,S),N=a(h,b);return D.useEffect(()=>(N.itemMap.set(S,{ref:S,...x}),()=>void N.itemMap.delete(S))),o.jsx(f,{[d]:"",ref:j,children:w})});p.displayName=h;function v(m){const y=a(e+"CollectionConsumer",m);return D.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((N,_)=>x.indexOf(N.ref.current)-x.indexOf(_.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},v,r]}var bK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=bK.reduce((e,t)=>{const n=Sl(`Primitive.${t}`),r=g.forwardRef((i,a)=>{const{asChild:s,...l}=i,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(c,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function _N(e,t){e&&zl.flushSync(()=>e.dispatchEvent(t))}function tn(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function xK(e,t=globalThis==null?void 0:globalThis.document){const n=tn(e);g.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var wK="DismissableLayer",RS="dismissableLayer.update",SK="dismissableLayer.pointerDownOutside",jK="dismissableLayer.focusOutside",ok,m3=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sd=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=g.useContext(m3),[h,d]=g.useState(null),f=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=g.useState({}),v=Me(t,_=>d(_)),m=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(y),w=h?m.indexOf(h):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=b,j=NK(_=>{const P=_.target,A=[...u.branches].some(k=>k.contains(P));!S||A||(i==null||i(_),s==null||s(_),_.defaultPrevented||l==null||l())},f),N=PK(_=>{const P=_.target;[...u.branches].some(k=>k.contains(P))||(a==null||a(_),s==null||s(_),_.defaultPrevented||l==null||l())},f);return xK(_=>{w===u.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},f),g.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ok=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),lk(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ok)}},[h,f,n,u]),g.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),lk())},[h,u]),g.useEffect(()=>{const _=()=>p({});return document.addEventListener(RS,_),()=>document.removeEventListener(RS,_)},[]),o.jsx(ye.div,{...c,ref:v,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:le(e.onFocusCapture,N.onFocusCapture),onBlurCapture:le(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:le(e.onPointerDownCapture,j.onPointerDownCapture)})});sd.displayName=wK;var _K="DismissableLayerBranch",g3=g.forwardRef((e,t)=>{const n=g.useContext(m3),r=g.useRef(null),i=Me(t,r);return g.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),o.jsx(ye.div,{...e,ref:i})});g3.displayName=_K;function NK(e,t=globalThis==null?void 0:globalThis.document){const n=tn(e),r=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let c=function(){v3(SK,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function PK(e,t=globalThis==null?void 0:globalThis.document){const n=tn(e),r=g.useRef(!1);return g.useEffect(()=>{const i=a=>{a.target&&!r.current&&v3(jK,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function lk(){const e=new CustomEvent(RS);document.dispatchEvent(e)}function v3(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?_N(i,a):i.dispatchEvent(a)}var AK=sd,CK=g3,xn=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},EK="Portal",Ep=g.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,a]=g.useState(!1);xn(()=>a(!0),[]);const s=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?d3.createPortal(o.jsx(ye.div,{...r,ref:t}),s):null});Ep.displayName=EK;function kK(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var Bn=e=>{const{present:t,children:n}=e,r=TK(t),i=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),a=Me(r.ref,OK(i));return typeof n=="function"||r.isPresent?g.cloneElement(i,{ref:a}):null};Bn.displayName="Presence";function TK(e){const[t,n]=g.useState(),r=g.useRef(null),i=g.useRef(e),a=g.useRef("none"),s=e?"mounted":"unmounted",[l,c]=kK(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=Cm(r.current);a.current=l==="mounted"?u:"none"},[l]),xn(()=>{const u=r.current,h=i.current;if(h!==e){const f=a.current,p=Cm(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(h&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),xn(()=>{if(t){let u;const h=t.ownerDocument.defaultView??window,d=p=>{const m=Cm(r.current).includes(p.animationName);if(p.target===t&&m&&(c("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=p=>{p.target===t&&(a.current=Cm(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{h.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Cm(e){return(e==null?void 0:e.animationName)||"none"}function OK(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IK=I_[" useInsertionEffect ".trim().toString()]||xn;function pi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,s]=RK({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:i;{const h=g.useRef(e!==void 0);g.useEffect(()=>{const d=h.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"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.`),h.current=l},[l,r])}const u=g.useCallback(h=>{var d;
40if(l){const f=DK(h)?h(e):h;f!==e&&((d=s.current)==null||d.call(s,f))}else a(h)},[l,e,a,s]);return[c,u]}function RK({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),i=g.useRef(n),a=g.useRef(t);return IK(()=>{a.current=t},[t]),g.useEffect(()=>{var s;i.current!==n&&((s=a.current)==null||s.call(a,n),i.current=n)},[n,i]),[n,r,a]}function DK(e){return typeof e=="function"}var y3=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"}),MK="VisuallyHidden",nb=g.forwardRef((e,t)=>o.jsx(ye.span,{...e,ref:t,style:{...y3,...e.style}}));nb.displayName=MK;var $K=nb,NN="ToastProvider",[PN,LK,VK]=Cp("Toast"),[b3,cze]=Fn("Toast",[VK]),[FK,rb]=b3(NN),x3=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:s}=e,[l,c]=g.useState(null),[u,h]=g.useState(0),d=g.useRef(!1),f=g.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${NN}\`. Expected non-empty \`string\`.`),o.jsx(PN.Provider,{scope:t,children:o.jsx(FK,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:g.useCallback(()=>h(p=>p+1),[]),onToastRemove:g.useCallback(()=>h(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};x3.displayName=NN;var w3="ToastViewport",BK=["F8"],DS="toast.viewportPause",MS="toast.viewportResume",S3=g.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=BK,label:i="Notifications ({hotkey})",...a}=e,s=rb(w3,n),l=LK(n),c=g.useRef(null),u=g.useRef(null),h=g.useRef(null),d=g.useRef(null),f=Me(t,d,s.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=s.toastCount>0;g.useEffect(()=>{const y=b=>{var x;r.length!==0&&r.every(S=>b[S]||b.code===S)&&((x=d.current)==null||x.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[r]),g.useEffect(()=>{const y=c.current,b=d.current;if(v&&y&&b){const w=()=>{if(!s.isClosePausedRef.current){const N=new CustomEvent(DS);b.dispatchEvent(N),s.isClosePausedRef.current=!0}},x=()=>{if(s.isClosePausedRef.current){const N=new CustomEvent(MS);b.dispatchEvent(N),s.isClosePausedRef.current=!1}},S=N=>{!y.contains(N.relatedTarget)&&x()},j=()=>{y.contains(document.activeElement)||x()};return y.addEventListener("focusin",w),y.addEventListener("focusout",S),y.addEventListener("pointermove",w),y.addEventListener("pointerleave",j),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{y.removeEventListener("focusin",w),y.removeEventListener("focusout",S),y.removeEventListener("pointermove",w),y.removeEventListener("pointerleave",j),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[v,s.isClosePausedRef]);const m=g.useCallback(({tabbingDirection:y})=>{const w=l().map(x=>{const S=x.ref.current,j=[S,...e9(S)];return y==="forwards"?j:j.reverse()});return(y==="forwards"?w.reverse():w).flat()},[l]);return g.useEffect(()=>{const y=d.current;if(y){const b=w=>{var j,N,_;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const P=document.activeElement,A=w.shiftKey;if(w.target===y&&A){(j=u.current)==null||j.focus();return}const E=m({tabbingDirection:A?"backwards":"forwards"}),I=E.findIndex(O=>O===P);f0(E.slice(I+1))?w.preventDefault():A?(N=u.current)==null||N.focus():(_=h.current)==null||_.focus()}};return y.addEventListener("keydown",b),()=>y.removeEventListener("keydown",b)}},[l,m]),o.jsxs(CK,{ref:c,role:"region","aria-label":i.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&o.jsx($S,{ref:u,onFocusFromOutsideViewport:()=>{const y=m({tabbingDirection:"forwards"});f0(y)}}),o.jsx(PN.Slot,{scope:n,children:o.jsx(ye.ol,{tabIndex:-1,...a,ref:f})}),v&&o.jsx($S,{ref:h,onFocusFromOutsideViewport:()=>{const y=m({tabbingDirection:"backwards"});f0(y)}})]})});S3.displayName=w3;var j3="ToastFocusProxy",$S=g.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=rb(j3,n);return o.jsx(nb,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=a.viewport)!=null&&u.contains(l))&&r()}})});$S.displayName=j3;var kp="Toast",zK="toast.swipeStart",UK="toast.swipeMove",WK="toast.swipeCancel",qK="toast.swipeEnd",_3=g.forwardRef((e,t)=>
40{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...s}=e,[l,c]=pi({prop:r,defaultProp:i??!0,onChange:a,caller:kp});return o.jsx(Bn,{present:n||l,children:o.jsx(KK,{open:l,...s,ref:t,onClose:()=>c(!1),onPause:tn(e.onPause),onResume:tn(e.onResume),onSwipeStart:le(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:le(e.onSwipeMove,u=>{const{x:h,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:le(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:le(e.onSwipeEnd,u=>{const{x:h,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),c(!1)})})})});_3.displayName=kp;var[HK,GK]=b3(kp,{onClose(){}}),KK=g.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:a,onClose:s,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:h,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...v}=e,m=rb(kp,n),[y,b]=g.useState(null),w=Me(t,O=>b(O)),x=g.useRef(null),S=g.useRef(null),j=i||m.duration,N=g.useRef(0),_=g.useRef(j),P=g.useRef(0),{onToastAdd:A,onToastRemove:k}=m,C=tn(()=>{var M;(y==null?void 0:y.contains(document.activeElement))&&((M=m.viewport)==null||M.focus()),s()}),E=g.useCallback(O=>{!O||O===1/0||(window.clearTimeout(P.current),N.current=new Date().getTime(),P.current=window.setTimeout(C,O))},[C]);g.useEffect(()=>{const O=m.viewport;if(O){const M=()=>{E(_.current),u==null||u()},$=()=>{const L=new Date().getTime()-N.current;_.current=_.current-L,window.clearTimeout(P.current),c==null||c()};return O.addEventListener(DS,$),O.addEventListener(MS,M),()=>{O.removeEventListener(DS,$),O.removeEventListener(MS,M)}}},[m.viewport,j,c,u,E]),g.useEffect(()=>{a&&!m.isClosePausedRef.current&&E(j)},[a,j,m.isClosePausedRef,E]),g.useEffect(()=>(A(),()=>k()),[A,k]);const I=g.useMemo(()=>y?T3(y):null,[y]);return m.viewport?o.jsxs(o.Fragment,{children:[I&&o.jsx(YK,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:I}),o.jsx(HK,{scope:n,onClose:C,children:zl.createPortal(o.jsx(PN.ItemSlot,{scope:n,children:o.jsx(AK,{asChild:!0,onEscapeKeyDown:le(l,()=>{m.isFocusedToastEscapeKeyDownRef.current||C(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx(ye.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":m.swipeDirection,...v,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:le(e.onKeyDown,O=>{O.key==="Escape"&&(l==null||l(O.nativeEvent),O.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:le(e.onPointerDown,O=>{O.button===0&&(x.current={x:O.clientX,y:O.clientY})}),onPointerMove:le(e.onPointerMove,O=>{if(!x.current)return;const M=O.clientX-x.current.x,$=O.clientY-x.current.y,L=!!S.current,T=["left","right"].includes(m.swipeDirection),R=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,z=T?R(0,M):0,F=T?0:R(0,$),B=O.pointerType==="touch"?10:2,W={x:z,y:F},Z={originalEvent:O,delta:W};L?(S.current=W,Em(UK,d,Z,{discrete:!1})):ck(W,m.swipeDirection,B)?(S.current=W,Em(zK,h,Z,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(M)>B||Math.abs($)>B)&&(x.current=null)}),onPointerUp:le(e.onPointerUp,O=>{const M=S.current,$=O.target;if($.hasPointerCapture(O.pointerId)&&$.releasePointerCapture(O.pointerId),S.current=null,x.current=null,M){const L=O.currentTarget,T={originalEvent:O,delta:M};ck(M,m.swipeDirection,m.swipeThreshold)?Em(qK,p,T,{discrete:!0}):Em(WK,f,T,{discrete:!0}),L.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),YK=e=>{const{__scopeToast:t,children:n,...r}=e,i=rb(kp,t),[a,s]=g.useState(!1),[l,c]=g.useState(!1);return QK(()=>s(!0)),g.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:o.jsx(Ep,{asChild:!0,children:o.jsx(nb,{...r,children:a&&o.jsxs(o.Fragment,{children:[i.label," ",n]})})})},XK="ToastTitle",N3=g.forwardRef((e,t)=>
vendor: 5,198 bytes, lines 40-65
40{const{__scopeToast:n,...r}=e;return o.jsx(ye.div,{...r,ref:t})});N3.displayName=XK;var JK="ToastDescription",P3=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return o.jsx(ye.div,{...r,ref:t})});P3.displayName=JK;var A3="ToastAction",C3=g.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?o.jsx(k3,{altText:n,asChild:!0,children:o.jsx(AN,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${A3}\`. Expected non-empty \`string\`.`),null)});C3.displayName=A3;var E3="ToastClose",AN=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=GK(E3,n);return o.jsx(k3,{asChild:!0,children:o.jsx(ye.button,{type:"button",...r,ref:t,onClick:le(e.onClick,i.onClose)})})});AN.displayName=E3;var k3=g.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return o.jsx(ye.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function T3(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),ZK(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!i)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...T3(r))}}),t}function Em(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?_N(i,a):i.dispatchEvent(a)}var ck=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t==="left"||t==="right"?a&&r>n:!a&&i>n};function QK(e=()=>{}){const t=tn(e);xn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function ZK(e){return e.nodeType===e.ELEMENT_NODE}function e9(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function f0(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var t9=x3,O3=S3,I3=_3,R3=N3,D3=P3,M3=C3,$3=AN;function L3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=L3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=L3(e))&&(r&&(r+=" "),r+=t);return r}const uk=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,dk=nt,Tp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return dk(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(u=>{const h=n==null?void 0:n[u],d=a==null?void 0:a[u];if(h===null)return null;const f=uk(h)||uk(d);return i[u][f]}),l=n&&Object.entries(n).reduce((u,h)=>{let[d,f]=h;return f===void 0||(u[d]=f),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,h)=>{let{class:d,className:f,...p}=h;return Object.entries(p).every(v=>{let[m,y]=v;return Array.isArray(y)?y.includes({...a,...l}[m]):{...a,...l}[m]===y})?[...u,d,f]:u},[]);return dk(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const n9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),V3=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var r9={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const i9=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:s,...l},c)=>g.createElement("svg",{ref:c,...r9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:V3("lucide",i),...l},[...s.map(([u,h])=>g.createElement(u,h)),...Array.isArray(a)?a:[a]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const he=(e,t)=>{const n=g.forwardRef(({className:r,...i},a)=>g.createElement(i9,{ref:a,iconNode:t,className:V3(`lucide-${n9(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const pf=he("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
65-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const Kr=he("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const tr=he("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const a9=he("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const F3=he("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const s9=he("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const o9=he("Briefcase",[["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"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const l9=he("CalendarCheck",[["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"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const Op=he("Calendar",[["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"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const c9=he("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const u9=he("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const ft=he("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const CN=he("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const B3=he("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const EN=he("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const d9=he("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const $h=he("CircleAlert",[["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"}]]);/** 146 * @license lucide-react v0.462.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const jl=he("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 151 * @license lucide-react v0.462.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const Ip=he("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const Rp=he("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const h9=he("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const od=he("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree.
175 */const kN=he("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const f9=he("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const p9=he("DollarSign",[["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"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const m9=he("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const z3=he("ExternalLink",[["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"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const mf=he("EyeOff",[["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"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const Pu=he("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const U3=he("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const g9=he("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const v9=he("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const W3=he("Globe",[["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"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const y9=he("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const q3=he("Heart",[["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"}]]);/** 236 * @license lucide-react v0.462.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const ib=he("Image",[["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"}]]);/** 241 * @license lucide-react v0.462.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const b9=he("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 246 * @license lucide-react v0.462.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const Au=he("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 251 * @license lucide-react v0.462.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const x9=he("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/** 256 * @license lucide-react v0.462.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const Ze=he("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 261 * @license lucide-react v0.462.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 w9=he("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);/** 266 * @license lucide-react v0.462.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 ba=he("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 271 * @license lucide-react v0.462.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 hk=he("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 276 * @license lucide-react v0.462.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 co=he("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 281 * @license lucide-react v0.462.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 H3=he("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 286 * @license lucide-react v0.462.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 S9=he("Menu",[["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"}]]);/** 291 * @license lucide-react v0.462.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 ld=he("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 296 * @license lucide-react v0.462.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 hl=he("MessageSquare",[["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"}]]);/** 301 * @license lucide-react v0.462.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 j9=he("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 306 * @license lucide-react v0.462.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 G3=he("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/** 311 * @license lucide-react v0.462.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 ab=he("Pencil",[["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"}]]);/** 316 * @license lucide-react v0.462.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 _9=he("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 321 * @license lucide-react v0.462.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 K3=he("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 326 * @license lucide-react v0.462.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 Y3=he("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 331 * @license lucide-react v0.462.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 Ha=he("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 336 * @license lucide-react v0.462.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 rv=he("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 341 * @license lucide-react v0.462.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 N9=he("Save",[["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"}]]);/** 346 * @license lucide-react v0.462.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 TN=he("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 351 * @license lucide-react v0.462.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 Dp=he("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 356 * @license lucide-react v0.462.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 p0=he("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
360y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 361 * @license lucide-react v0.462.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 iv=he("Shield",[["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"}]]);/** 366 * @license lucide-react v0.462.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 X3=he("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 371 * @license lucide-react v0.462.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 P9=he("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/** 376 * @license lucide-react v0.462.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 A9=he("Smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/** 381 * @license lucide-react v0.462.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 kr=he("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 386 * @license lucide-react v0.462.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 C9=he("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/** 391 * @license lucide-react v0.462.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 E9=he("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 396 * @license lucide-react v0.462.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 k9=he("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 401 * @license lucide-react v0.462.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 T9=he("TestTubeDiagonal",[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",ke
vendor: 4,159 bytes, lines 405-450
405y:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]]);/** 406 * @license lucide-react v0.462.0 - ISC 407 * 408 * This source code is licensed under the ISC license. 409 * See the LICENSE file in the root directory of this source tree. 410 */const J3=he("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 411 * @license lucide-react v0.462.0 - ISC 412 * 413 * This source code is licensed under the ISC license. 414 * See the LICENSE file in the root directory of this source tree. 415 */const ON=he("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 416 * @license lucide-react v0.462.0 - ISC 417 * 418 * This source code is licensed under the ISC license. 419 * See the LICENSE file in the root directory of this source tree. 420 */const _l=he("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 421 * @license lucide-react v0.462.0 - ISC 422 * 423 * This source code is licensed under the ISC license. 424 * See the LICENSE file in the root directory of this source tree. 425 */const LS=he("Upload",[["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"}]]);/** 426 * @license lucide-react v0.462.0 - ISC 427 * 428 * This source code is licensed under the ISC license. 429 * See the LICENSE file in the root directory of this source tree. 430 */const Q3=he("User",[["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"}]]);/** 431 * @license lucide-react v0.462.0 - ISC 432 * 433 * This source code is licensed under the ISC license. 434 * See the LICENSE file in the root directory of this source tree. 435 */const Z3=he("Users",[["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"}]]);/** 436 * @license lucide-react v0.462.0 - ISC 437 * 438 * This source code is licensed under the ISC license. 439 * See the LICENSE file in the root directory of this source tree. 440 */const e4=he("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/** 441 * @license lucide-react v0.462.0 - ISC 442 * 443 * This source code is licensed under the ISC license. 444 * See the LICENSE file in the root directory of this source tree. 445 */const xa=he("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 446 * @license lucide-react v0.462.0 - ISC 447 * 448 * This source code is licensed under the ISC license. 449 * See the LICENSE file in the root directory of this source tree. 450 */const VS=he("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),IN="-",O9=e=>{const t=R9(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(IN);return l[0]===""&&l.length!==1&&l.shift(),t4(l,t)||I9(s)},getConflictingClassGroupIds:(s,l)=>{const c=n[s]||[];return l&&r[s]?[...c,...r[s]]:c}}},t4=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?t4(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(IN);return(s=t.validators.find(({validator:l})=>l(a)))==null?void 0:s.classGroupId},fk=/^\[(.+)\]$/,I9=e=>{if(fk.test(e)){const t=fk.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},R9=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,120 bytes, line 450
450return M9(Object.entries(e.classGroups),n).forEach(([a,s])=>{FS(s,r,a,t)}),r},FS=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:pk(t,i);a.classGroupId=n;return}if(typeof i=="function"){if(D9(i)){FS(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,s])=>{FS(s,pk(t,a),n,r)})})},pk=(e,t)=>{let n=e;return t.split(IN).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},D9=e=>e.isThemeGetter,M9=(e,t)=>t?e.map(([n,r])=>{const i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,l])=>[t+s,l])):a);return[n,i]}):e,$9=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return i(a,s),s},set(a,s){n.has(a)?n.set(a,s):i(a,s)}}},n4="!",L9=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,s=l=>{const c=[];let u=0,h=0,d;for(let y=0;y<l.length;y++){let b=l[y];if(u===0){if(b===i&&(r||l.slice(y,y+a)===t)){c.push(l.slice(h,y)),h=y+a;continue}if(b==="/"){d=y;continue}}b==="["?u++:b==="]"&&u--}const f=c.length===0?l:l.substring(h),p=f.startsWith(n4),v=p?f.substring(1):f,m=d&&d>h?d-h:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:m}};return n?l=>n({className:l,parseClassName:s}):s},V9=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},F9=e=>({cache:$9(e.cacheSize),parseClassName:L9(e),...O9(e)}),B9=/\s+/,z9=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],s=e.trim().split(B9);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{modifiers:h,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(u);let v=!!p,m=r(v?f.substring(0,p):f);if(!m){if(!v){l=u+(l.length>0?" "+l:l);continue}if(m=r(f),!m){l=u+(l.length>0?" "+l:l);continue}v=!1}const y=V9(h).join(":"),b=d?y+n4:y,w=b+m;if(a.includes(w))continue;a.push(w);const x=i(m,v);for(let S=0;S<x.length;++S){const j=x[S];a.push(b+j)}l=u+(l.length>0?" "+l:l)}return l};function U9(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=r4(t))&&(r&&(r+=" "),r+=n);return r}const r4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=r4(e[r]))&&(n&&(n+=" "),n+=t);return n};function W9(e,...t){let n,r,i,a=s;function s(c){const u=t.reduce((h,d)=>d(h),e());return n=F9(u),r=n.cache.get,i=n.cache.set,a=l,l(c)}function l(c){const u=r(c);if(u)return u;const h=z9(c,n);return i(c,h),h}return function(){return a(U9.apply(null,arguments))}}const kt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},i4=/^\[(?:([a-z-]+):)?(.+)\]$/i,q9=/^\d+\/\d+$/,H9=new Set(["px","full","screen"]),G9=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,K9=/\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$/,Y9=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,X9=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,J9=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ia=e=>Yc(e)||H9.has(e)||q9.test(e),ys=e=>cd(e,"length",aY),Yc=e=>!!e&&!Number.isNaN(Number(e)),m0=e=>cd(e,"number",Yc),Qd=e=>!!e&&Number.isInteger(Number(e)),Q9=e=>e.endsWith("%")&&Yc(e.slice(0,-1)),Be=e=>i4.test(e),bs=e=>G9.test(e),Z9=new Set(["length","size","percentage"]),eY=e=>cd(e,Z9,a4),tY=e=>cd(e,"position",a4),nY=new Set(["image","url"]),rY=e=>cd(e,nY,oY),iY=e=>cd(e,"",sY),Zd=()=>!0,cd=(e,t,n)=>{const r=i4.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},aY=e=>K9.test(e)&&!Y9.test(e),a4=()=>!1,sY=e=>X9.test(e),oY=e=>J9.test(e),lY=()=>{const e=kt("colors"),t=kt("spacing"),n=kt("blur"),r=kt("brightness"),i=kt("borderColor"),a=kt("borderRadius"),s=kt("borderSpacing"),l=kt("borderWidth"),c=kt("contrast"),u=kt("grayscale"),h=kt("hueRotate"),d=kt("invert"),f=kt("gap"),p=kt("gradientColorStops"),v=kt("gradientColorStopPositions"),m=kt("inset"),y=kt("margin"),b=kt("opacity"),w=kt("padding"),x=kt("saturate"),S=kt("scale"),j=kt("sepia"),N=kt("skew"),_=kt("space"),P=kt("translate"),A=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",Be,t],E=()=>[Be,t],I=()=>["",Ia,ys],O=()=>["auto",Yc,Be],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",Be],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[Yc,Be];return{cacheSize:500,separator:":",theme:{colors:[Zd],spacing:[Ia,ys],blur:["none","",bs,Be],brightness:F(),borderColor:[e],borderRadius:["n
vendor: 5,278 bytes, line 450
450one","","full",bs,Be],borderSpacing:E(),borderWidth:I(),contrast:F(),grayscale:R(),hueRotate:F(),invert:R(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[Q9,ys],inset:C(),margin:C(),opacity:F(),padding:E(),saturate:F(),scale:F(),sepia:R(),skew:F(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Be]}],container:["container"],columns:[{columns:[bs]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...M(),Be]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qd,Be]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Be]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Qd,Be]}],"grid-cols":[{"grid-cols":[Zd]}],"col-start-end":[{col:["auto",{span:["full",Qd,Be]},Be]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Zd]}],"row-start-end":[{row:["auto",{span:[Qd,Be]},Be]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Be]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Be,t]}],"min-w":[{"min-w":[Be,t,"min","max","fit"]}],"max-w":[{"max-w":[Be,t,"none","full","min","max","fit","prose",{screen:[bs]},bs]}],h:[{h:[Be,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Be,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Be,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Be,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bs,ys]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",m0]}],"font-family":[{font:[Zd]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Be]}],"line-clamp":[{"line-clamp":["none",Yc,m0]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ia,Be]}],"list-image":[{"list-image":["none",Be]}],"list-style-type":[{list:["none","disc","decimal",Be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ia,ys]}],"underline-offset":[{"underline-offset":["auto",Ia,Be]}
vendor: 4,579 bytes, line 450
450],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...M(),tY]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",eY]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rY]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:$()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Ia,Be]}],"outline-w":[{outline:[Ia,ys]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Ia,ys]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bs,iY]}],"shadow-color":[{shadow:[Zd]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",bs,Be]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Be]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",Be]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",Be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Qd,Be]}
vendor: 6,313 bytes, line 450
450],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Be]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",Be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ia,ys,m0]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},cY=W9(lY);function oe(...e){return cY(nt(e))}const uY=t9,s4=g.forwardRef(({className:e,...t},n)=>o.jsx(O3,{ref:n,className:oe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));s4.displayName=O3.displayName;const dY=Tp("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"}}),o4=g.forwardRef(({className:e,variant:t,...n},r)=>o.jsx(I3,{ref:r,className:oe(dY({variant:t}),e),...n}));o4.displayName=I3.displayName;const hY=g.forwardRef(({className:e,...t},n)=>o.jsx(M3,{ref:n,className:oe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));hY.displayName=M3.displayName;const l4=g.forwardRef(({className:e,...t},n)=>o.jsx($3,{ref:n,className:oe("absolute right-2 top-2 rounded-md p-1 text-foreground
450/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:o.jsx(xa,{className:"h-4 w-4"})}));l4.displayName=$3.displayName;const c4=g.forwardRef(({className:e,...t},n)=>o.jsx(R3,{ref:n,className:oe("text-sm font-semibold",e),...t}));c4.displayName=R3.displayName;const u4=g.forwardRef(({className:e,...t},n)=>o.jsx(D3,{ref:n,className:oe("text-sm opacity-90",e),...t}));u4.displayName=D3.displayName;function fY(){const{toasts:e}=Na();return o.jsxs(uY,{children:[e.map(function({id:t,title:n,description:r,action:i,...a}){return o.jsxs(o4,{...a,children:[o.jsxs("div",{className:"grid gap-1",children:[n&&o.jsx(c4,{children:n}),r&&o.jsx(u4,{children:r})]}),i,o.jsx(l4,{})]},t)}),o.jsx(s4,{})]})}var mk=["light","dark"],pY="(prefers-color-scheme: dark)",mY=g.createContext(void 0),gY={setTheme:e=>{},themes:[]},vY=()=>{var e;return(e=g.useContext(mY))!=null?e:gY};g.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:s,attrs:l,nonce:c})=>{let u=a==="system",h=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?mk.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(v,m=!1,y=!0)=>{let b=s?s[v]:v,w=m?v+"|| ''":`'${b}'`,x="";return i&&y&&!m&&mk.includes(v)&&(x+=`d.style.colorScheme = '${v}';`),n==="class"?m||b?x+=`c.add(${w})`:x+="null":b&&(x+=`d[s](n,${w})`),x},p=e?`!function(){${h}${f(e)}}()`:r?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${pY}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}${u?"":"else{"+f(a,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}else{${f(a,!1,!1)};}${d}}catch(t){}}();`;return g.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:p}})});var yY=e=>{switch(e){case"success":return wY;case"info":return jY;case"warning":return SY;case"error":return _Y;default:return null}},bY=Array(12).fill(0),xY=({visible:e,className:t})=>D.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},D.createElement("div",{className:"sonner-spinner"},bY.map((n,r)=>D.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),wY=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),SY=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},D.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),jY=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),_Y=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),NY=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},D.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),D.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),PY=()=>{let[e,t]=D.useState(document.hidden);return D.useEffect(()=>{let n=()=>{t(document.hidden)};
450return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},BS=1,AY=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:BS++,a=this.toasts.find(l=>l.id===i),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...e,id:i,title:n}),{...l,...e,id:i,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
450this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0,a,s=r.then(async c=>{if(a=["resolve",c],D.isValidElement(c))i=!1,this.create({id:n,type:"default",message:c});else if(EY(c)&&!c.ok){i=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,h=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:u,description:h})}else if(t.success!==void 0){i=!1;let u=typeof t.success=="function"?await t.success(c):t.success,h=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:u,description:h})}}).catch(async c=>{if(a=["reject",c],t.error!==void 0){i=!1;let u=typeof t.error=="function"?await t.error(c):t.error,h=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:u,description:h})}}).finally(()=>{var c;i&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,u)=>s.then(()=>a[0]==="reject"?u(a[1]):c(a[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||BS++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},xr=new AY,CY=(e,t)=>{let n=(t==null?void 0:t.id)||BS++;return xr.addToast({title:e,...t,id:n}),n},EY=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",kY=CY,TY=()=>xr.toasts,OY=()=>xr.getActiveToasts(),Oe=Object.assign(kY,{success:xr.success,info:xr.info,warning:xr.warning,error:xr.error,custom:xr.custom,message:xr.message,promise:xr.promise,dismiss:xr.dismiss,loading:xr.loading},{getHistory:TY,getToasts:OY});function IY(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}IY(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
450left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
450:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
450--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 451`);function km(e){return e.label!==void 0}var RY=3,DY="32px",MY="16px",gk=4e3,$Y=356,LY=14,VY=20,FY=200;function wi(...e){return e.filter(Boolean).join(" ")}function BY(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var zY=e=>{var t,n,r,i,a,s,l,c,u,h,d;let{invert:f,toast:p,unstyled:v,interacting:m,setHeights:y,visibleToasts:b,heights:w,index:x,toasts:S,expanded:j,removeToast:N,defaultRichColors:_,closeButton:P,style:A,cancelButtonStyle:k,actionButtonStyle:C,className:E="",descriptionClassName:I="",duration:O,position:M,gap:$,loadingIcon:L,expandByDefault:T,classNames:R,icons:z,closeButtonAriaLabel:F="Close toast",pauseWhenPageIsHidden:B}
vendor: 1,455 bytes, line 451
451=e,[W,Z]=D.useState(null),[fe,we]=D.useState(null),[ee,J]=D.useState(!1),[U,Y]=D.useState(!1),[ae,q]=D.useState(!1),[Pe,te]=D.useState(!1),[re,_e]=D.useState(!1),[Ve,Ge]=D.useState(0),[Ne,yt]=D.useState(0),bt=D.useRef(p.duration||O||gk),qe=D.useRef(null),at=D.useRef(null),Qe=x===0,Te=x+1<=b,Et=p.type,dn=p.dismissible!==!1,Ta=p.className||"",bi=p.descriptionClassName||"",Sn=D.useMemo(()=>w.findIndex(ne=>ne.toastId===p.id)||0,[w,p.id]),ms=D.useMemo(()=>{var ne;return(ne=p.closeButton)!=null?ne:P},[p.closeButton,P]),Yt=D.useMemo(()=>p.duration||O||gk,[p.duration,O]),rn=D.useRef(0),jn=D.useRef(0),Xl=D.useRef(0),gs=D.useRef(null),[Ix,Rx]=M.split("-"),Jl=D.useMemo(()=>w.reduce((ne,be,xe)=>xe>=Sn?ne:ne+be.height,0),[w,Sn]),Dx=PY(),zd=p.invert||f,Ql=Et==="loading";jn.current=D.useMemo(()=>Sn*$+Jl,[Sn,Jl]),D.useEffect(()=>{bt.current=Yt},[Yt]),D.useEffect(()=>{J(!0)},[]),D.useEffect(()=>{let ne=at.current;if(ne){let be=ne.getBoundingClientRect().height;return yt(be),y(xe=>[{toastId:p.id,height:be,position:p.position},...xe]),()=>y(xe=>xe.filter(Xe=>Xe.toastId!==p.id))}},[y,p.id]),D.useLayoutEffect(()=>{if(!ee)return;let ne=at.current,be=ne.style.height;ne.style.height="auto";let xe=ne.getBoundingClientRect().height;ne.style.height=be,yt(xe),y(Xe=>Xe.find(ct=>ct.toastId===p.id)?Xe.map(ct=>ct.toastId===p.id?{...ct,height:xe}:ct):[{toastId:p.id,height:xe,position:p.position},...Xe])},[ee,p.title,p.description,y,p.id]);let nr=D.useCallback(()=>
451{Y(!0),Ge(jn.current),y(ne=>ne.filter(be=>be.toastId!==p.id)),setTimeout(()=>{N(p)},FY)},[p,N,y,jn]);D.useEffect(()=>{if(p.promise&&Et==="loading"||p.duration===1/0||p.type==="loading")return;let ne;return j||m||B&&Dx?(()=>{if(Xl.current<rn.current){let be=new Date().getTime()-rn.current;bt.current=bt.current-be}Xl.current=new Date().getTime()})():bt.current!==1/0&&(rn.current=new Date().getTime(),ne=setTimeout(()=>{var be;(be=p.onAutoClose)==null||be.call(p,p),nr()},bt.current)),()=>clearTimeout(ne)},[j,m,p,Et,B,Dx,nr]),D.useEffect(()=>{p.delete&&nr()},[nr,p.delete]);function H(){var ne,be,xe;return z!=null&&z.loading?D.createElement("div",{className:wi(R==null?void 0:R.loader,(ne=p==null?void 0:p.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":Et==="loading"},z.loading):L?D.createElement("div",{className:wi(R==null?void 0:R.loader,(be=p==null?void 0:p.classNames)==null?void 0:be.loader,"sonner-loader"),"data-visible":Et==="loading"},L):D.createElement(xY,{className:wi(R==null?void 0:R.loader,(xe=p==null?void 0:p.classNames)==null?void 0:xe.loader),visible:Et==="loading"})}return D.createElement("li",{tabIndex:0,ref:at,className:wi(E,Ta,R==null?void 0:R.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[Et],(n=p==null?void 0:p.classNames)==null?void 0:n[Et]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:_,"data-styled":!(p.jsx||p.unstyled||v),"data-mounted":ee,"data-promise":!!p.promise,"data-swiped":re,"data-removed":U,"data-visible":Te,"data-y-position":Ix,"data-x-position":Rx,"data-index":x,"data-front":Qe,"data-swiping":ae,"data-dismissible":dn,"data-type":Et,"data-invert":zd,"data-swipe-out":Pe,"data-swipe-direction":fe,"data-expanded":!!(j||T&&ee),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${U?Ve:jn.current}px`,"--initial-height":T?"auto":`${Ne}px`,...A,...p.style},onDragEnd:()=>{q(!1),Z(null),gs.current=null},onPointerDown:ne=>{Ql||!dn||(qe.current=new Date,Ge(jn.current),ne.target.setPointerCapture(ne.pointerId),ne.target.tagName!=="BUTTON"&&(q(!0),gs.current={x:ne.clientX,y:ne.clientY}))},onPointerUp:()=>{var ne,be,xe,Xe;if(Pe||!dn)return;gs.current=null;let ct=Number(((ne=at.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),xt=Number(((be=at.current)==null?void 0:be.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),et=new Date().getTime()-((xe=qe.current)==null?void 0:xe.getTime()),Fe=W==="x"?ct:xt,kn=Math.abs(Fe)/et;if(Math.abs(Fe)>=VY||kn>.11){Ge(jn.current),(Xe=p.onDismiss)==null||Xe.call(p,p),we(W==="x"?ct>0?"right":"left":xt>0?"down":"up"),nr(),te(!0),_e(!1);return}q(!1),Z(null)},onPointerMove:ne=>{var be,xe,Xe,ct;if(!gs.current||!dn||((be=window.getSelection())==null?void 0:be.toString().length)>0)return;let xt=ne.clientY-gs.current.y,et=ne.clientX-gs.current.x,Fe=(xe=e.swipeDirections)!=null?xe:BY(M);!W&&(Math.abs(et)>1||Math.abs(xt)>1)&&Z(Math.abs(et)>Math.abs(xt)?"x":"y");let kn={x:0,y:0};W==="y"?(Fe.includes("top")||Fe.includes("bottom"))&&(Fe.includes("top")&&xt<0||Fe.includes("bottom")&&xt>0)&&(kn.y=xt):W==="x"&&(Fe.includes("left")||Fe.includes("right"))&&(Fe.includes("left")&&et<0||Fe.includes("right")&&et>0)&&(kn.x=et),(Math.abs(kn.x)>0||Math.abs(kn.y)>0)&&_e(!0),(Xe=at.current)==null||Xe.style.setProperty("--swipe-amount-x",`${kn.x}px`),(ct=at.current)==null||ct.style.setProperty("--swipe-amount-y",`${kn.y}px`)}},ms&&!p.jsx?D.createElement("button",{"aria-label":F,"data-disabled":Ql,"data-close-button":!0,onClick:Ql||!dn?()=>{}:()=>{var ne;nr(),(ne=p.onDismiss)==null||ne.call(p,p)},className:wi(R==null?void 0:R.closeButton,(i=p==null?void 0:p.classNames)==null?void 0:i.closeButton)},(a=z==null?void 0:z.close)!=null?a:NY):null,p.jsx||g.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:D.createElement(D.Fragment,null,Et||p.icon||p.promise?D.createElement("div",{"data-icon":"",className:wi(R==null?void 0:R.icon,(s=p==null?void 0:p.classNames)==null?void 0:s.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||H():null,p.type!=="loading"?p.icon||(z==null?void 0:z[Et])||yY(Et):null):null,D.createElement("div",{"data-content":"",className:wi(R==null?void 0:R.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},D.createElement("div",{"data-title":"",className:wi(R==null?void 0:R.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},typeof p.title=="function"?p.title():p.title),p.description?D.createElement("div",{"data-description":"",className:wi(I,bi,R==null?void 0:R.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),g.isValidElement(p.cancel)?p.cancel:p.cancel&&km(p.cancel)?D.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||k,onClick:ne=>{var be,xe;km(p.cancel)&&dn&&((xe=(be=p.cancel).onClick)==null||xe.call(be,ne),nr())},className:wi(R==null?void 0:R.cancelButton,(h=p==null?void 0:p.classNames)==null?void 0:h.cancelButton)},p.cancel.label):null,g.isValidElement(p.action)?p.action:p.action&&km(p.action)?D.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||C,onClick:ne=>{var be,xe;km(p.action)&&((xe=(be=p.action).onClick)==null||xe.call(be,ne),!ne.defaultPrevented&&nr())},className:wi(R==null?void 0:R.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function vk(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function UY(e,t){let n={};return[e,t].forEach((r,i)=>{let a=i===1,s=a?"--mobile-offset":"--offset",l=a?MY:DY;function c(u){["top","right","bottom","left"].forEach(h=>{n[`${s}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}var WY=g.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:c,mobileOffset:u,theme:h="light",richColors:d,duration:f,style:p,visibleToasts:v=RY,toastOptions:m,dir:y=vk(),gap:b=LY,loadingIcon:w,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:j}
vendor: 4,427 bytes, line 451
451=e,[N,_]=D.useState([]),P=D.useMemo(()=>Array.from(new Set([r].concat(N.filter(B=>B.position).map(B=>B.position)))),[N,r]),[A,k]=D.useState([]),[C,E]=D.useState(!1),[I,O]=D.useState(!1),[M,$]=D.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=D.useRef(null),T=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=D.useRef(null),z=D.useRef(!1),F=D.useCallback(B=>{_(W=>{var Z;return(Z=W.find(fe=>fe.id===B.id))!=null&&Z.delete||xr.dismiss(B.id),W.filter(({id:fe})=>fe!==B.id)})},[]);return D.useEffect(()=>xr.subscribe(B=>{if(B.dismiss){_(W=>W.map(Z=>Z.id===B.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{d3.flushSync(()=>{_(W=>{let Z=W.findIndex(fe=>fe.id===B.id);return Z!==-1?[...W.slice(0,Z),{...W[Z],...B},...W.slice(Z+1)]:[B,...W]})})})}),[]),D.useEffect(()=>{if(h!=="system"){$(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:W})=>{$(W?"dark":"light")})}catch{B.addListener(({matches:Z})=>{try{$(Z?"dark":"light")}catch(fe){console.error(fe)}})}},[h]),D.useEffect(()=>{N.length<=1&&E(!1)},[N]),D.useEffect(()=>{let B=W=>{var Z,fe;i.every(we=>W[we]||W.code===we)&&(E(!0),(Z=L.current)==null||Z.focus()),W.code==="Escape"&&(document.activeElement===L.current||(fe=L.current)!=null&&fe.contains(document.activeElement))&&E(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[i]),D.useEffect(()=>{if(L.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,z.current=!1)}},[L.current]),D.createElement("section",{ref:t,"aria-label":`${S} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((B,W)=>{var Z;let[fe,we]=B.split("-");return N.length?D.createElement("ol",{key:B,dir:y==="auto"?vk():y,tabIndex:-1,ref:L,className:l,"data-sonner-toaster":!0,"data-theme":M,"data-y-position":fe,"data-lifted":C&&N.length>1&&!a,"data-x-position":we,style:{"--front-toast-height":`${((Z=A[0])==null?void 0:Z.height)||0}px`,"--width":`${$Y}px`,"--gap":`${b}px`,...p,...UY(c,u)},onBlur:ee=>{z.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(z.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||z.current||(z.current=!0,R.current=ee.relatedTarget)},onMouseEnter:()=>E(!0),onMouseMove:()=>E(!0),onMouseLeave:()=>{I||E(!1)},onDragEnd:()=>E(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},N.filter(ee=>!ee.position&&W===0||ee.position===B).map((ee,J)=>{var U,Y;return D.createElement(zY,{key:ee.id,icons:x,index:J,toast:ee,defaultRichColors:d,duration:(U=m==null?void 0:m.duration)!=null?U:f,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:v,closeButton:(Y=m==null?void 0:m.closeButton)!=null?Y:s,interacting:I,position:B,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:F,toasts:N.filter(ae=>ae.position==ee.position),heights:A.filter(ae=>ae.position==ee.position),setHeights:k,expandByDefault:a,gap:b,loadingIcon:w,expanded:C,pauseWhenPageIsHidden:j,swipeDirections:e.swipeDirections})})):null}))});const qY=({...e})=>{const{theme:t="system"}=vY();return o.jsx(WY,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var HY=I_[" useId ".trim().toString()]||(()=>{}),GY=0;function li(e){const[t,n]=g.useState(HY());return xn(()=>{n(r=>r??String(GY++))},[e]),t?`radix-${t}`:""}const KY=["top","right","bottom","left"],uo=Math.min,Lr=Math.max,av=Math.round,Tm=Math.floor,pa=e=>({x:e,y:e}
vendor: 11,921 bytes, line 451
451),YY={left:"right",right:"left",bottom:"top",top:"bottom"},XY={start:"end",end:"start"};function zS(e,t,n){return Lr(e,uo(t,n))}function ns(e,t){return typeof e=="function"?e(t):e}function rs(e){return e.split("-")[0]}function ud(e){return e.split("-")[1]}function RN(e){return e==="x"?"y":"x"}function DN(e){return e==="y"?"height":"width"}const JY=new Set(["top","bottom"]);function ca(e){return JY.has(rs(e))?"y":"x"}function MN(e){return RN(ca(e))}function QY(e,t,n){n===void 0&&(n=!1);const r=ud(e),i=MN(e),a=DN(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=sv(s)),[s,sv(s)]}function ZY(e){const t=sv(e);return[US(e),t,US(t)]}function US(e){return e.replace(/start|end/g,t=>XY[t])}const yk=["left","right"],bk=["right","left"],eX=["top","bottom"],tX=["bottom","top"];function nX(e,t,n){switch(e){case"top":case"bottom":return n?t?bk:yk:t?yk:bk;case"left":case"right":return t?eX:tX;default:return[]}}function rX(e,t,n,r){const i=ud(e);let a=nX(rs(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(US)))),a}function sv(e){return e.replace(/left|right|bottom|top/g,t=>YY[t])}function iX(e){return{top:0,right:0,bottom:0,left:0,...e}}function d4(e){return typeof e!="number"?iX(e):{top:e,right:e,bottom:e,left:e}}function ov(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function xk(e,t,n){let{reference:r,floating:i}=e;const a=ca(t),s=MN(t),l=DN(s),c=rs(t),u=a==="y",h=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[l]/2-i[l]/2;let p;switch(c){case"top":p={x:h,y:r.y-i.height};break;case"bottom":p={x:h,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ud(t)){case"start":p[s]-=f*(n&&u?-1:1);break;case"end":p[s]+=f*(n&&u?-1:1);break}return p}const aX=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:d}=xk(u,r,c),f=r,p={},v=0;for(let m=0;m<l.length;m++){const{name:y,fn:b}=l[m],{x:w,y:x,data:S,reset:j}=await b({x:h,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});h=w??h,d=x??d,p={...p,[y]:{...p[y],...S}},j&&v<=50&&(v++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(u=j.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:h,y:d}=xk(u,f,c)),m=-1)}return{x:h,y:d,placement:f,strategy:i,middlewareData:p}};async function gf(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ns(t,e),v=d4(p),y=l[f?d==="floating"?"reference":"floating":d],b=ov(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(y)))==null||n?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:c})),w=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},j=ov(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:c}):w);return{top:(b.top-j.top+v.top)/S.y,bottom:(j.bottom-b.bottom+v.bottom)/S.y,left:(b.left-j.left+v.left)/S.x,right:(j.right-b.right+v.right)/S.x}}const sX=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:l,middlewareData:c}=t,{element:u,padding:h=0}=ns(e,t)||{};if(u==null)return{};const d=d4(h),f={x:n,y:r},p=MN(i),v=DN(p),m=await s.getDimensions(u),y=p==="y",b=y?"top":"left",w=y?"bottom":"right",x=y?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[p]-f[p]-a.floating[v],j=f[p]-a.reference[p],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let _=N?N[x]:0;(!_||!await(s.isElement==null?void 0:s.isElement(N)))&&(_=l.floating[x]||a.floating[v]);const P=S/2-j/2,A=_/2-m[v]/2-1,k=uo(d[b],A),C=uo(d[w],A),E=k,I=_-m[v]-C,O=_/2-m[v]/2+P,M=zS(E,O,I),$=!c.arrow&&ud(i)!=null&&O!==M&&a.reference[v]/2-(O<E?k:C)-m[v]/2<0,L=$?O<E?O-E:O-I:0;return{[p]:f[p]+L,data:{[p]:M,centerOffset:O-M-L,...$&&{alignmentOffset:L}},reset:$}}}),oX=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=ns(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=rs(i),w=ca(l),x=rs(l)===l,S=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=f||(x||!m?[sv(l)]:ZY(l)),N=v!=="none";!f&&N&&j.push(...rX(l,m,v,S));const _=[l,...j],P=await gf(t,y),A=[];let k=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&A.push(P[b]),d){const O=QY(i,s,S);A.push(P[O[0]],P[O[1]])}if(k=[...k,{placement:i,overflows:A}],!A.every(O=>O<=0)){var C,E;const O=(((C=a.flip)==null?void 0:C.index)||0)+1,M=_[O];if(M&&(!(d==="alignment"?w!==ca(M):!1)||k.every(T=>T.overflows[0]>0&&ca(T.placement)===w)))return{data:{index:O,overflows:k},reset:{placement:M}};let $=(E=k.filter(L=>L.overflows[0]<=0).sort((L,T)=>L.overflows[1]-T.overflows[1])[0])==null?void 0:E.placement;if(!$)switch(p){case"bestFit":{var I;const L=(I=k.filter(T=>{if(N){const R=ca(T.placement);return R===w||R==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(R=>R>0).reduce((R,z)=>R+z,0)]).sort((T,R)=>T[1]-R[1])[0])==null?void 0:I[0];L&&($=L);break}case"initialPlacement":$=l;break}if(i!==$)return{reset:{placement:$}}}return{}}}};function wk(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sk(e){return KY.some(t=>e[t]>=0)}const lX=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=ns(e,t);switch(r){case"referenceHidden":{const a=await gf(t,{...i,elementContext:"reference"}),s=wk(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Sk(s)}}}case"escaped":{const a=await gf(t,{...i,altBoundary:!0}),s=wk(a,n.floating);return{data:{escapedOffsets:s,escaped:Sk(s)}}}default:return{}}}}},h4=new Set(["left","top"]);async function cX(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=rs(n),l=ud(n),c=ca(n)==="y",u=h4.has(s)?-1:1,h=a&&c?-1:1,d=ns(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof v=="number"&&(p=l==="end"?v*-1:v),c?{x:p*h,y:f*u}:{x:f*u,y:p*h}}const uX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:l}=t,c=await cX(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:s}}}}},dX=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...c}=ns(e,t),u={x:n,y:r},h=await gf(t,c),d=ca(rs(i)),f=RN(d);let p=u[f],v=u[d];if(a){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",w=p+h[y],x=p-h[b];p=zS(w,p,x)}if(s){const y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",w=v+h[y],x=v-h[b];v=zS(w,v,x)}const m=l.fn({...t,[f]:p,[d]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:s}}}}}},hX=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=ns(e,t),h={x:n,y:r},d=ca(i),f=RN(d);let p=h[f],v=h[d];const m=ns(l,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const x=f==="y"?"height":"width",S=a.reference[f]-a.floating[x]+y.mainAxis,j=a.reference[f]+a.reference[x]-y.mainAxis;p<S?p=S:p>j&&(p=j)}if(u){var b,w;const x=f==="y"?"width":"height",S=h4.has(rs(i)),j=a.reference[d]-a.floating[x]+(S&&((b=s.offset)==null?void 0:b[d])||0)+(S?0:y.crossAxis),N=a.reference[d]+a.reference[x]+(S?0:((w=s.offset)==null?void 0:w[d])||0)-(S?y.crossAxis:0);v<j?v=j:v>N&&(v=N)}return{[f]:p,[d]:v}}}},fX=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:s,elements:l}=t,{apply:c=()=>{},...u}=ns(e,t),h=await gf(t,u),d=rs(i),f=ud(i),p=ca(i)==="y",{width:v,height:m}=a.floating;let y,b;d==="top"||d==="bottom"?(y=d,b=f===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(b=d,y=f==="end"?"top":"bottom");const w=m-h.top-h.bottom,x=v-h.left-h.right,S=uo(m-h[y],w),j=uo(v-h[b],x),N=!t.middlewareData.shift;let _=S,P=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=w),N&&!f){const k=Lr(h.left,0),C=Lr(h.right,0),E=Lr(h.top,0),I=Lr(h.bottom,0);p?P=v-2*(k!==0||C!==0?k+C:Lr(h.left,h.right)):_=m-2*(E!==0||I!==0?E+I:Lr(h.top,h.bottom))}await c({...t,availableWidth:P,availableHeight:_});const A=await s.getDimensions(l.floating);return v!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function sb(){return typeof window<"u"}function dd(e){return f4(e)?(e.nodeName||"").toLowerCase():"#document"}function Wr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pa(e){var t;return(t=(f4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function f4(e){return sb()?e instanceof Node||e instanceof Wr(e).Node:!1}function Ui(e){return sb()?e instanceof Element||e instanceof Wr(e).Element:!1}function wa(e){return sb()?e instanceof HTMLElement||e instanceof Wr(e).HTMLElement:!1}function jk(e){return!sb()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wr(e).ShadowRoot}const pX=new Set(["inline","contents"]);function Mp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Wi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!pX.has(i)}const mX=new Set(["table","td","th"]);function gX(e){return mX.has(dd(e))}const vX=[":popover-open",":modal"];function ob(e){return vX.some(t=>{try{return e.matches(t)}catch{return!1}})}const yX=["transform","translate","scale","rotate","perspective"],bX=["transform","translate","scale","rotate","perspective","filter"],xX=["paint","layout","strict","content"];function $N(e){const t=LN(),n=Ui(e)?Wi(e):e;return yX.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||bX.some(r=>(n.willChange||"").includes(r))||xX.some(r=>(n.contain||"").includes(r))}function wX(e){let t=ho(e);for(;wa(t)&&!Cu(t);){if($N(t))return t;if(ob(t))return null;t=ho(t)}return null}function LN(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const SX=new Set(["html","body","#document"]);function Cu(e){return SX.has(dd(e))}function Wi(e){return Wr(e).getComputedStyle(e)}function lb(e){return Ui(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ho(e){if(dd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jk(e)&&e.host||Pa(e);return jk(t)?t.host:t}function p4(e){const t=ho(e);return Cu(t)?e.ownerDocument?e.ownerDocument.body:e.body:wa(t)&&Mp(t)?t:p4(t)}function vf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=p4(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Wr(i);if(a){const l=WS(s);
vendor: 4,772 bytes, line 451
451return t.concat(s,s.visualViewport||[],Mp(i)?i:[],l&&n?vf(l):[])}return t.concat(i,vf(i,[],n))}function WS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function m4(e){const t=Wi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=wa(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=av(n)!==a||av(r)!==s;return l&&(n=a,r=s),{width:n,height:r,$:l}}function VN(e){return Ui(e)?e:e.contextElement}function Xc(e){const t=VN(e);if(!wa(t))return pa(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=m4(t);let s=(a?av(n.width):n.width)/r,l=(a?av(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const jX=pa(0);function g4(e){const t=Wr(e);return!LN()||!t.visualViewport?jX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _X(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wr(e)?!1:t}function Nl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=VN(e);let s=pa(1);t&&(r?Ui(r)&&(s=Xc(r)):s=Xc(e));const l=_X(a,n,r)?g4(a):pa(0);let c=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,h=i.width/s.x,d=i.height/s.y;if(a){const f=Wr(a),p=r&&Ui(r)?Wr(r):r;let v=f,m=WS(v);for(;m&&r&&p!==v;){const y=Xc(m),b=m.getBoundingClientRect(),w=Wi(m),x=b.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,S=b.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,u*=y.y,h*=y.x,d*=y.y,c+=x,u+=S,v=Wr(m),m=WS(v)}}return ov({width:h,height:d,x:c,y:u})}function FN(e,t){const n=lb(e).scrollLeft;return t?t.left+n:Nl(Pa(e)).left+n}function v4(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:FN(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function NX(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=Pa(r),l=t?ob(t.floating):!1;if(r===s||l&&a)return n;let c={scrollLeft:0,scrollTop:0},u=pa(1);const h=pa(0),d=wa(r);if((d||!d&&!a)&&((dd(r)!=="body"||Mp(s))&&(c=lb(r)),wa(r))){const p=Nl(r);u=Xc(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}const f=s&&!d&&!a?v4(s,c,!0):pa(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+h.x+f.x,y:n.y*u.y-c.scrollTop*u.y+h.y+f.y}}function PX(e){return Array.from(e.getClientRects())}function AX(e){const t=Pa(e),n=lb(e),r=e.ownerDocument.body,i=Lr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Lr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+FN(e);const l=-n.scrollTop;return Wi(r).direction==="rtl"&&(s+=Lr(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:l}}function CX(e,t){const n=Wr(e),r=Pa(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;const u=LN();(!u||u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l,y:c}}const EX=new Set(["absolute","fixed"]);function kX(e,t){const n=Nl(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=wa(e)?Xc(e):pa(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,c=i*a.x,u=r*a.y;return{width:s,height:l,x:c,y:u}}function _k(e,t,n){let r;if(t==="viewport")r=CX(e,n);else if(t==="document")r=AX(Pa(e));else if(Ui(t))r=kX(t,n);else{const i=g4(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ov(r)}function y4(e,t){const n=ho(e);return n===t||!Ui(n)||Cu(n)?!1:Wi(n).position==="fixed"||y4(n,t)}function TX(e,t){const n=t.get(e);if(n)return n;let r=vf(e,[],!1).filter(l=>Ui(l)&&dd(l)!=="body"),i=null;const a=Wi(e).position==="fixed";let s=a?ho(e):e;for(;Ui(s)&&!Cu(s);){const l=Wi(s),c=$N(s);!c&&l.position==="fixed"&&(i=null),(a?!c&&!i:!c&&l.position==="static"&&!!i&&EX.has(i.position)||Mp(s)&&!c&&y4(e,s))?r=r.filter(h=>h!==s):i=l,s=ho(s)}return t.set(e,r),r}function OX(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ob(t)?[]:TX(t,this._c):[].concat(n),r],l=s[0],c=s.reduce((u,h)=>{const d=_k(t,h,i);return u.top=Lr(d.top,u.top),u.right=uo(d.right,u.right),u.bottom=uo(d.bottom,u.bottom),u.left=Lr(d.left,u.left),u},_k(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function IX(e){const{width:t,height:n}=m4(e);return{width:t,height:n}}function RX(e,t,n){const r=wa(t),i=Pa(t),a=n==="fixed",s=Nl(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=pa(0);function u(){c.x=FN(i)}if(r||!r&&!a)if((dd(t)!=="body"||Mp(i))&&(l=lb(t)),r){const p=Nl(t,!0,a,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else i&&u();a&&!r&&i&&u();const h=i&&!r&&!a?v4(i,l):pa(0),d=s.left+l.scrollLeft-c.x-h.x,f=s.top+l.scrollTop-c.y-h.y;return{x:d,y:f,width:s.width,height:s.height}}function g0(e){return Wi(e).position==="static"}function Nk(e,t){if(!wa(e)||Wi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Pa(e)===n&&(n=n.ownerDocument.body),n}function b4(e,t){const n=Wr(e);
vendor: 9,129 bytes, line 451
451if(ob(e))return n;if(!wa(e)){let i=ho(e);for(;i&&!Cu(i);){if(Ui(i)&&!g0(i))return i;i=ho(i)}return n}let r=Nk(e,t);for(;r&&gX(r)&&g0(r);)r=Nk(r,t);return r&&Cu(r)&&g0(r)&&!$N(r)?n:r||wX(e)||n}const DX=async function(e){const t=this.getOffsetParent||b4,n=this.getDimensions,r=await n(e.floating);return{reference:RX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function MX(e){return Wi(e).direction==="rtl"}const $X={convertOffsetParentRelativeRectToViewportRelativeRect:NX,getDocumentElement:Pa,getClippingRect:OX,getOffsetParent:b4,getElementRects:DX,getClientRects:PX,getDimensions:IX,getScale:Xc,isElement:Ui,isRTL:MX};function x4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LX(e,t){let n=null,r;const i=Pa(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:h,top:d,width:f,height:p}=u;if(l||t(),!f||!p)return;const v=Tm(d),m=Tm(i.clientWidth-(h+f)),y=Tm(i.clientHeight-(d+p)),b=Tm(h),x={rootMargin:-v+"px "+-m+"px "+-y+"px "+-b+"px",threshold:Lr(0,uo(1,c))||1};let S=!0;function j(N){const _=N[0].intersectionRatio;if(_!==c){if(!S)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!x4(u,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(j,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(j,x)}n.observe(e)}return s(!0),a}function VX(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=VN(e),h=i||a?[...u?vf(u):[],...vf(t)]:[];h.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const d=u&&l?LX(u,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(b=>{let[w]=b;w&&w.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let v,m=c?Nl(e):null;c&&y();function y(){const b=Nl(e);m&&!x4(m,b)&&n(),m=b,v=requestAnimationFrame(y)}return n(),()=>{var b;h.forEach(w=>{i&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,c&&cancelAnimationFrame(v)}}const FX=uX,BX=dX,zX=oX,UX=fX,WX=lX,Pk=sX,qX=hX,HX=(e,t,n)=>{const r=new Map,i={platform:$X,...n},a={...i.platform,_c:r};return aX(e,t,{...i,platform:a})};var GX=typeof document<"u",KX=function(){},jg=GX?g.useLayoutEffect:KX;function lv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!lv(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!lv(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function w4(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ak(e,t){const n=w4(e);return Math.round(t*n)/n}function v0(e){const t=g.useRef(e);return jg(()=>{t.current=e}),t}function YX(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[h,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);lv(f,r)||p(r);const[v,m]=g.useState(null),[y,b]=g.useState(null),w=g.useCallback(T=>{T!==N.current&&(N.current=T,m(T))},[]),x=g.useCallback(T=>{T!==_.current&&(_.current=T,b(T))},[]),S=a||v,j=s||y,N=g.useRef(null),_=g.useRef(null),P=g.useRef(h),A=c!=null,k=v0(c),C=v0(i),E=v0(u),I=g.useCallback(()=>{if(!N.current||!_.current)return;const T={placement:t,strategy:n,middleware:f};C.current&&(T.platform=C.current),HX(N.current,_.current,T).then(R=>{const z={...R,isPositioned:E.current!==!1};O.current&&!lv(P.current,z)&&(P.current=z,zl.flushSync(()=>{d(z)}))})},[f,t,n,C,E]);jg(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[u]);const O=g.useRef(!1);jg(()=>(O.current=!0,()=>{O.current=!1}),[]),jg(()=>{if(S&&(N.current=S),j&&(_.current=j),S&&j){if(k.current)return k.current(S,j,I);I()}},[S,j,I,k,A]);const M=g.useMemo(()=>({reference:N,floating:_,setReference:w,setFloating:x}),[w,x]),$=g.useMemo(()=>({reference:S,floating:j}),[S,j]),L=g.useMemo(()=>{const T={position:n,left:0,top:0};if(!$.floating)return T;const R=Ak($.floating,h.x),z=Ak($.floating,h.y);return l?{...T,transform:"translate("+R+"px, "+z+"px)",...w4($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:z}},[n,l,$.floating,h.x,h.y]);return g.useMemo(()=>({...h,update:I,refs:M,elements:$,floatingStyles:L}),[h,I,M,$,L])}const XX=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Pk({element:r.current,padding:i}).fn(n):{}:r?Pk({element:r,padding:i}).fn(n):{}}}},JX=(e,t)=>({...FX(e),options:[e,t]}),QX=(e,t)=>({...BX(e),options:[e,t]}),ZX=(e,t)=>({...qX(e),options:[e,t]}),eJ=(e,t)=>({...zX(e),options:[e,t]}),tJ=(e,t)=>({...UX(e),options:[e,t]}),nJ=(e,t)=>({...WX(e),options:[e,t]}),rJ=(e,t)=>({...XX(e),options:[e,t]});var iJ="Arrow",S4=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return o.jsx(ye.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});S4.displayName=iJ;var aJ=S4;function BN(e){const[t,n]=g.useState(void 0);return xn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let s,l;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zN="Popper",[j4,hd]=Fn(zN),[sJ,_4]=j4(zN),N4=e=>{const{__scopePopper:t,children:n}=e,[r,i]=g.useState(null);return o.jsx(sJ,{scope:t,anchor:r,onAnchorChange:i,children:n})};N4.displayName=zN;var P4="PopperAnchor",A4=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=_4(P4,n),s=g.useRef(null),l=Me(t,s);return g.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:o.jsx(ye.div,{...i,ref:l})});A4.displayName=P4;var UN="PopperContent",[oJ,lJ]=j4(UN),C4=g.forwardRef((e,t)=>{var ee,J,U,Y,ae,q;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:v,...m}=e,y=_4(UN,n),[b,w]=g.useState(null),x=Me(t,Pe=>w(Pe)),[S,j]=g.useState(null),N=BN(S),_=(N==null?void 0:N.width)??0,P=(N==null?void 0:N.height)??0,A=r+(a!=="center"?"-"+a:""),k=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},C=Array.isArray(u)?u:[u],E=C.length>0,I={padding:k,boundary:C.filter(uJ),altBoundary:E},{refs:O,floatingStyles:M,placement:$,isPositioned:L,middlewareData:T}=YX({strategy:"fixed",placement:A,whileElementsMounted:(...Pe)=>VX(...Pe,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[JX({mainAxis:i+P,alignmentAxis:s}),c&&QX({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?ZX():void 0,...I}),c&&eJ({...I}),tJ({...I,apply:({elements:Pe,rects:te,availableWidth:re,availableHeight:_e})=>{const{width:Ve,height:Ge}=te.reference,Ne=Pe.floating.style;Ne.setProperty("--radix-popper-available-width",`${re}px`),Ne.setProperty("--radix-popper-available-height",`${_e}px`),Ne.setProperty("--radix-popper-anchor-width",`${Ve}px`),Ne.setProperty("--radix-popper-anchor-height",`${Ge}px`)}}),S&&rJ({element:S,padding:l}),dJ({arrowWidth:_,arrowHeight:P}),f&&nJ({strategy:"referenceHidden",...I})]}),[R,z]=T4($),F=tn(v);xn(()=>{L&&(F==null||F())},[L,F]);const B=(ee=T.arrow)==null?void 0:ee.x,W=(J=T.arrow)==null?void 0:J.y,Z=((U=T.arrow)==null?void 0:U.centerOffset)!==0,[fe,we]=g.useState();return xn(()=>{b&&we(window.getComputedStyle(b).zIndex)},[b]),o.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:L?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(Y=T.transformOrigin)==null?void 0:Y.x,(ae=T.transformOrigin)==null?void 0:ae.y].join(" "),...((q=T.hide)==null?void 0:q.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:o.jsx(oJ,{scope:n,placedSide:R,onArrowChange:j,arrowX:B,arrowY:W,shouldHideArrow:Z,children:o.jsx(ye.div,{"data-side":R,"data-align":z,...m,ref:x,style:{...m.style,animation:L?void 0:"none"}})})})});C4.displayName=UN;var E4="PopperArrow",cJ={top:"bottom",right:"left",bottom:"top",left:"r
451ight"},k4=g.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=lJ(E4,r),s=cJ[a.placedSide];return o.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:o.jsx(aJ,{...i,ref:n,style:{...i.style,display:"block"}})})});k4.displayName=E4;function uJ(e){return e!==null}var dJ=e=>({name:"transformOrigin",options:e,fn(t){var y,b,w;const{placement:n,rects:r,middlewareData:i}=t,s=((y=i.arrow)==null?void 0:y.centerOffset)!==0,l=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,h]=T4(n),d={start:"0%",center:"50%",end:"100%"}[h],f=(((b=i.arrow)==null?void 0:b.x)??0)+l/2,p=(((w=i.arrow)==null?void 0:w.y)??0)+c/2;let v="",m="";return u==="bottom"?(v=s?d:`${f}px`,m=`${-c}px`):u==="top"?(v=s?d:`${f}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?d:`${p}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=s?d:`${p}px`),{data:{x:v,y:m}}}});function T4(e){const[t,n="center"]=e.split("-");return[t,n]}var O4=N4,WN=A4,qN=C4,HN=k4,[cb,uze]=Fn("Tooltip",[hd]),GN=hd(),I4="TooltipProvider",hJ=700,Ck="tooltip.open",[fJ,R4]=cb(I4),D4=e=>{const{__scopeTooltip:t,delayDuration:n=hJ,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,s=g.useRef(!0),l=g.useRef(!1),c=g.useRef(0);return g.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),o.jsx(fJ,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:g.useCallback(u=>{l.current=u},[]),disableHoverableContent:i,children:a})};D4.displayName=I4;var M4="Tooltip",[dze,ub]=cb(M4),qS="TooltipTrigger",pJ=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=ub(qS,n),a=R4(qS,n),s=GN(n),l=g.useRef(null),c=Me(t,l,i.onTriggerChange),u=g.useRef(!1),h=g.useRef(!1),d=g.useCallback(()=>u.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),o.jsx(WN,{asChild:!0,...s,children:o.jsx(ye.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:le(e.onPointerMove,f=>{f.pointerType!=="touch"&&!h.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),h.current=!0)}),onPointerLeave:le(e.onPointerLeave,()=>{i.onTriggerLeave(),h.current=!1}),onPointerDown:le(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:le(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:le(e.onBlur,i.onClose),onClick:le(e.onClick,i.onClose)})})});pJ.displayName=qS;var mJ="TooltipPortal",[hze,gJ]=cb(mJ,{forceMount:void 0}),Eu="TooltipContent",$4=g.forwardRef((e,t)=>{const n=gJ(Eu,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,s=ub(Eu,e.__scopeTooltip);return o.jsx(Bn,{present:r||s.open,children:s.disableHoverableContent?o.jsx(L4,{side:i,...a,ref:t}):o.jsx(vJ,{side:i,...a,ref:t})})}),vJ=g.forwardRef((e,t)=>{const n=ub(Eu,e.__scopeTooltip),r=R4(Eu,e.__scopeTooltip),i=g.useRef(null),a=Me(t,i),[s,l]=g.useState(null),{trigger:c,onClose:u}=n,h=i.current,{onPointerInTransitChange:d}=r,f=g.useCallback(()=>{l(null),d(!1)},[d]),p=g.useCallback((v,m)=>{const y=v.currentTarget,b={x:v.clientX,y:v.clientY},w=SJ(b,y.getBoundingClientRect()),x=jJ(b,w),S=_J(m.getBoundingClientRect()),j=PJ([...x,...S]);l(j),d(!0)},[d]);return g.useEffect(()=>()=>f(),[f]),g.useEffect(()=>{if(c&&h){const v=y=>p(y,h),m=y=>p(y,c);return c.addEventListener("pointerleave",v),h.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),h.removeEventListener("pointerleave",m)}}},[c,h,p,f]),g.useEffect(()=>{if(s){const v=m=>{const y=m.target,b={x:m.clientX,y:m.clientY},w=(c==null?void 0:c.contains(y))||(h==null?void 0:h.contains(y)),x=!NJ(b,s);w?f():x&&(f(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,h,s,u,f]),o.jsx(L4,{...e,ref:a})}),[yJ,bJ]=cb(M4,{isInside:!1}),xJ=p3("TooltipContent"),L4=g.forwardRef((e,t)=>
vendor: 2,927 bytes, line 451
451{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,c=ub(Eu,n),u=GN(n),{onClose:h}=c;return g.useEffect(()=>(document.addEventListener(Ck,h),()=>document.removeEventListener(Ck,h)),[h]),g.useEffect(()=>{if(c.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(c.trigger)&&h()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,h]),o.jsx(sd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:h,children:o.jsxs(qN,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.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:[o.jsx(xJ,{children:r}),o.jsx(yJ,{scope:n,isInside:!0,children:o.jsx($K,{id:c.contentId,role:"tooltip",children:i||r})})]})})});$4.displayName=Eu;var V4="TooltipArrow",wJ=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=GN(n);return bJ(V4,n).isInside?null:o.jsx(HN,{...i,...r,ref:t})});wJ.displayName=V4;function SJ(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function jJ(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function _J(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function NJ(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const l=t[a],c=t[s],u=l.x,h=l.y,d=c.x,f=c.y;h>r!=f>r&&n<(d-u)*(r-h)/(f-h)+u&&(i=!i)}return i}function PJ(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),AJ(t)}function AJ(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var CJ=D4,F4=$4;const EJ=CJ,kJ=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 36,353 bytes, line 451
451o.jsx(F4,{ref:r,sideOffset:t,className:oe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));kJ.displayName=F4.displayName;var fd=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(){}},Pl=typeof window>"u"||"Deno"in globalThis;function ti(){}function TJ(e,t){return typeof e=="function"?e(t):e}function HS(e){return typeof e=="number"&&e>=0&&e!==1/0}function B4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Jc(e,t){return typeof e=="function"?e(t):e}function Di(e,t){return typeof e=="function"?e(t):e}function Ek(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==KN(s,t.options))return!1}else if(!yf(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||a&&!a(t))}function kk(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Al(t.options.mutationKey)!==Al(a))return!1}else if(!yf(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function KN(e,t){return((t==null?void 0:t.queryKeyHashFn)||Al)(e)}function Al(e){return JSON.stringify(e,(t,n)=>GS(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function yf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!yf(e[n],t[n])):!1}function z4(e,t){if(e===t)return e;const n=Tk(e)&&Tk(t);if(n||GS(e)&&GS(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,l=n?[]:{};let c=0;for(let u=0;u<s;u++){const h=n?u:a[u];(!n&&r.includes(h)||n)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,c++):(l[h]=z4(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&c++)}return i===s&&c===i?e:l}return t}function cv(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Tk(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function GS(e){if(!Ok(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ok(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ok(e){return Object.prototype.toString.call(e)==="[object Object]"}function OJ(e){return new Promise(t=>{setTimeout(t,e)})}function KS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?z4(e,t):t}function IJ(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function RJ(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var YN=Symbol();function U4(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===YN?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var rl,Rs,su,UM,DJ=(UM=class extends fd{constructor(){super();Ae(this,rl);Ae(this,Rs);Ae(this,su);pe(this,su,t=>{if(!Pl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){V(this,Rs)||this.setEventListener(V(this,su))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,Rs))==null||t.call(this),pe(this,Rs,void 0))}setEventListener(t){var n;pe(this,su,t),(n=V(this,Rs))==null||n.call(this),pe(this,Rs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){V(this,rl)!==t&&(pe(this,rl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof V(this,rl)=="boolean"?V(this,rl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rl=new WeakMap,Rs=new WeakMap,su=new WeakMap,UM),XN=new DJ,ou,Ds,lu,WM,MJ=(WM=class extends fd{constructor(){super();Ae(this,ou,!0);Ae(this,Ds);Ae(this,lu);pe(this,lu,t=>{if(!Pl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){V(this,Ds)||this.setEventListener(V(this,lu))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,Ds))==null||t.call(this),pe(this,Ds,void 0))}setEventListener(t){var n;pe(this,lu,t),(n=V(this,Ds))==null||n.call(this),pe(this,Ds,t(this.setOnline.bind(this)))}setOnline(t){V(this,ou)!==t&&(pe(this,ou,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return V(this,ou)}},ou=new WeakMap,Ds=new WeakMap,lu=new WeakMap,WM),uv=new MJ;function YS(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function $J(e){return Math.min(1e3*2**e,3e4)}function W4(e){return(e??"online")==="online"?uv.isOnline():!0}var q4=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function y0(e){return e instanceof q4}function H4(e){let t=!1,n=0,r=!1,i;const a=YS(),s=m=>{var y;r||(f(new q4(m)),(y=e.abort)==null||y.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>XN.isFocused()&&(e.networkMode==="always"||uv.isOnline())&&e.canRun(),h=()=>W4(e.networkMode)&&e.canRun(),d=m=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,m),i==null||i(),a.resolve(m))},f=m=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,m),i==null||i(),a.reject(m))},p=()=>new Promise(m=>{var y;i=b=>{(r||u())&&m(b)},(y=e.onPause)==null||y.call(e)}).then(()=>{var m;i=void 0,r||(m=e.onContinue)==null||m.call(e)}),v=()=>{if(r)return;let m;const y=n===0?e.initialPromise:void 0;try{m=y??e.fn()}catch(b){m=Promise.reject(b)}Promise.resolve(m).then(d).catch(b=>{var N;if(r)return;const w=e.retry??(Pl?0:3),x=e.retryDelay??$J,S=typeof x=="function"?x(n,b):x,j=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,b);if(t||!j){f(b);return}n++,(N=e.onFail)==null||N.call(e,n,b),OJ(S).then(()=>u()?void 0:p()).then(()=>{t?f(b):v()})})};return{promise:a,cancel:s,continue:()=>(i==null||i(),a),cancelRetry:l,continueRetry:c,canStart:h,start:()=>(h()?v():p().then(v),a)}}function LJ(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=l=>setTimeout(l,0);const a=l=>{t?e.push(l):i(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||s()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var vn=LJ(),il,qM,G4=(qM=class{constructor(){Ae(this,il)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),HS(this.gcTime)&&pe(this,il,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pl?1/0:5*60*1e3))}clearGcTimeout(){V(this,il)&&(clearTimeout(V(this,il)),pe(this,il,void 0))}},il=new WeakMap,qM),cu,uu,ei,qn,bp,al,ki,Da,HM,VJ=(HM=class extends G4{constructor(t){super();Ae(this,ki);Ae(this,cu);Ae(this,uu);Ae(this,ei);Ae(this,qn);Ae(this,bp);Ae(this,al);pe(this,al,!1),pe(this,bp,t.defaultOptions),this.setOptions(t.options),this.observers=[],pe(this,ei,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,pe(this,cu,FJ(this.options)),this.state=t.state??V(this,cu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=V(this,qn))==null?void 0:t.promise}setOptions(t){this.options={...V(this,bp),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,ei).remove(this)}setData(t,n){const r=KS(this.state.data,t,this.options);return We(this,ki,Da).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){We(this,ki,Da).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=V(this,qn))==null?void 0:r.promise;return(i=V(this,qn))==null||i.cancel(t),n?n.then(ti).catch(ti):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,cu))}isActive(){return this.observers.some(t=>Di(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===YN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!B4(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,qn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,qn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,ei).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(V(this,qn)&&(V(this,al)?V(this,qn).cancel({revert:!0}):V(this,qn).cancelRetry()),this.scheduleGc()),V(this,ei).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||We(this,ki,Da).call(this,{type:"invalidate"})}fetch(t,n){var c,u,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(V(this,qn))return V(this,qn).continueRetry(),V(this,qn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(pe(this,al,!0),r.signal)})},a=()=>{const d=U4(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),pe(this,al,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(c=this.options.behavior)==null||c.onFetch(s,this),pe(this,uu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&We(this,ki,Da).call(this,{type:"fetch",meta:(h=s.fetchOptions)==null?void 0:h.meta});const l=d=>{var f,p,v,m;y0(d)&&d.silent||We(this,ki,Da).call(this,{type:"error",error:d}),y0(d)||((p=(f=V(this,ei).config).onError)==null||p.call(f,d,this),(m=(v=V(this,ei).config).onSettled)==null||m.call(v,this.state.data,d,this)),this.scheduleGc()};return pe(this,qn,H4({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,v,m;if(d===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){l(y);return}(p=(f=V(this,ei).config).onSuccess)==null||p.call(f,d,this),(m=(v=V(this,ei).config).onSettled)==null||m.call(v,d,this.state.error,this),this.scheduleGc()},onError:l,onFail:(d,f)=>{We(this,ki,Da).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{We(this,ki,Da).call(this,{type:"pause"})},onContinue:()=>{We(this,ki,Da).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),V(this,qn).start()}},cu=new WeakMap,uu=new WeakMap,ei=new WeakMap,qn=new WeakMap,bp=new WeakMap,al=new WeakMap,ki=new WeakSet,Da=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...K4(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return y0(i)&&i.revert&&V(this,uu)?{...V(this,uu),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),vn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),V(this,ei).notify({query:this,type:"updated",action:t})})},HM);function K4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:W4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function FJ(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ra,GM,BJ=(GM=class extends fd{constructor(t={}){super();Ae(this,ra);this.config=t,pe(this,ra,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??KN(i,n);let s=this.get(a);return s||(s=new VJ({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){V(this,ra).has(t.queryHash)||(V(this,ra).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=V(this,ra).get(t.queryHash);n&&(t.destroy(),n===t&&V(this,ra).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){vn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,ra).get(t)}getAll(){return[...V(this,ra).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ek(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ek(t,r)):n}notify(t){vn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){vn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){vn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ra=new WeakMap,GM),ia,rr,sl,aa,js,KM,zJ=(KM=class extends G4{constructor(t){super();Ae(this,aa);Ae(this,ia);Ae(this,rr);Ae(this,sl);this.mutationId=t.mutationId,pe(this,rr,t.mutationCache),pe(this,ia,[]),this.state=t.state||Y4(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,ia).includes(t)||(V(this,ia).push(t),this.clearGcTimeout(),V(this,rr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){pe(this,ia,V(this,ia).filter(n=>n!==t)),this.scheduleGc(),V(this,rr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,ia).length||(this.state.status==="pending"?this.scheduleGc():V(this,rr).remove(this))}continue(){var t;return((t=V(this,sl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,l,c,u,h,d,f,p,v,m,y,b,w,x,S,j,N,_;pe(this,sl,H4({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,A)=>{We(this,aa,js).call(this,{type:"failed",failureCount:P,error:A})},onPause:()=>{We(this,aa,js).call(this,{type:"pause"})},onContinue:()=>{We(this,aa,js).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,rr).canRun(this)}));const n=this.state.status==="pending",r=!V(this,sl).canStart();try{if(!n){We(this,aa,js).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=V(this,rr).config).onMutate)==null?void 0:a.call(i,t,this));const A=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));A!==this.state.context&&We(this,aa,js).call(this,{type:"pending",context:A,variables:t,isPaused:r})}const P=await V(this,sl).start();return await((u=(c=V(this,rr).config).onSuccess)==null?void 0:u.call(c,P,t,this.state.context,this)),await((d=(h=this.options).onSuccess)==null?void 0:d.call(h,P,t,this.state.context)),await((p=(f=V(this,rr).config).onSettled)==null?void 0:p.call(f,P,null,this.state.variables,this.state.context,this)),await((m=(v=this.options).onSettled)==null?void 0:m.call(v,P,null,t,this.state.context)),We(this,aa,js).call(this,{type:"success",data:P}),P}catch(P){try{throw await((b=(y=V(this,rr).config).onError)==null?void 0:b.call(y,P,t,this.state.context,this)),await((x=(w=this.options).onError)==null?void 0:x.call(w,P,t,this.state.context)),await((j=(S=V(this,rr).config).onSettled)==null?void 0:j.call(S,void 0,P,this.state.variables,this.state.context,this)),await((_=(N=this.options).onSettled)==null?void 0:_.call(N,void 0,P,t,this.state.context)),P}finally{We(this,aa,js).call(this,{type:"error",error:P})}}finally{V(this,rr).runNext(this)}}},ia=new WeakMap,rr=new WeakMap,sl=new WeakMap,aa=new WeakSet,js=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),vn.batch(()=>{V(this,ia).forEach(r=>{r.onMutationUpdate(t)}),V(this,rr).notify({mutation:this,type:"updated",action:t})})},KM);function Y4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Dr,xp,YM,UJ=(YM=class extends fd{constructor(t={}){super();Ae(this,Dr);Ae(this,xp);this.config=t,pe(this,Dr,new Map),pe(this,xp,Date.now())}build(t,n,r){const i=new zJ({mutationCache:this,mutationId:++cm(this,xp)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Om(t),r=V(this,Dr).get(n)??[];r.push(t),V(this,Dr).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Om(t);if(V(this,Dr).has(n)){const i=(r=V(this,Dr).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?V(this,Dr).delete(n):V(this,Dr).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=V(this,Dr).get(Om(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=V(this,Dr).get(Om(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){vn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...V(this,Dr).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kk(n,r))}findAll(t={}){return this.getAll().filter(n=>kk(t,n))}notify(t){vn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return vn.batch(()=>Promise.all(t.map(n=>n.continue().catch(ti))))}},Dr=new WeakMap,xp=new WeakMap,YM);function Om(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ik(e){return{onFetch:(t,n)=>{var h,d,f,p,v;const r=t.options,i=(f=(d=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let m=!1;const y=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},b=U4(t.options,t.fetchOptions),w=async(x,S,j)=>{if(m)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const N={queryKey:t.queryKey,pageParam:S,direction:j?"backward":"forward",meta:t.options.meta};y(N);const _=await b(N),{maxPages:P}=t.options,A=j?RJ:IJ;return{pages:A(x.pages,_,P),pageParams:A(x.pageParams,S,P)}};if(i&&a.length){const x=i==="backward",S=x?WJ:Rk,j={pages:a,pageParams:s},N=S(r,j);l=await w(j,N,x)}else{const x=e??a.length;do{const S=c===0?s[0]??r.initialPageParam:Rk(r,l);if(c>0&&S==null)break;l=await w(l,S),c++}while(c<x)}return l};t.options.persister?t.fetchFn=()=>{var m,y;return(y=(m=t.options).persister)==null?void 0:y.call(m,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Rk(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function WJ(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Xt,Ms,$s,du,hu,Ls,fu,pu,XM,qJ=(XM=class{constructor(e={}){Ae(this,Xt);Ae(this,Ms);Ae(this,$s);Ae(this,du);Ae(this,hu);Ae(this,Ls);Ae(this,fu);Ae(this,pu);pe(this,Xt,e.queryCache||new BJ),pe(this,Ms,e.mutationCache||new UJ),pe(this,$s,e.defaultOptions||{}),pe(this,du,new Map),pe(this,hu,new Map),pe(this,Ls,0)}mount(){cm(this,Ls)._++,V(this,Ls)===1&&(pe(this,fu,XN.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Xt).onFocus())})),pe(this,pu,uv.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Xt).onOnline())})))}unmount(){var e,t;cm(this,Ls)._--,V(this,Ls)===0&&((e=V(this,fu))==null||e.call(this),pe(this,fu,void 0),(t=V(this,pu))==null||t.call(this),pe(this,pu,void 0))}isFetching(e){return V(this,Xt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,Ms).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Xt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=V(this,Xt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Jc(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return V(this,Xt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=V(this,Xt).get(r.queryHash),a=i==null?void 0:i.state.data,s=TJ(t,a);if(s!==void 0)return V(this,Xt).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return vn.batch(()=>V(this,Xt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Xt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=V(this,Xt);vn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=V(this,Xt),r={type:"active",...e};return vn.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=vn.batch(()=>V(this,Xt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(ti).catch(ti)}invalidateQueries(e={},t={}){return vn.batch(()=>{if(V(this,Xt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=vn.batch(()=>V(this,Xt).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(ti)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ti)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=V(this,Xt).build(this,t);return n.isStaleByTime(Jc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ti).catch(ti)}fetchInfiniteQuery(e){return e.behavior=Ik(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ti).catch(ti)}ensureInfiniteQueryData(e){return e.behavior=Ik(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return uv.isOnline()?V(this,Ms).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,Xt)}getMutationCache(){return V(this,Ms)}getDefaultOptions(){return V(this,$s)}setDefaultOptions(e){pe(this,$s,e)}setQueryDefaults(e,t){V(this,du).set(Al(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,du).values()];let n={};return t.forEach(r=>{yf(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){V(this,hu).set(Al(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,hu).values()];let n={};return t.forEach(r=>{yf(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,$s).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=KN(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===YN&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,$s).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,Xt).clear(),V(this,Ms).clear()}},Xt=new WeakMap,Ms=new WeakMap,$s=new WeakMap,du=new WeakMap,hu=new WeakMap,Ls=new WeakMap,fu=new WeakMap,pu=new WeakMap,XM),yr,Je,wp,ir,ol,mu,Vs,sa,Sp,gu,vu,ll,cl,Fs,yu,dt,bh,XS,JS,QS,ZS,e1,t1,n1,X4,JM,HJ=(JM=class extends fd{constructor(t,n){super();Ae(this,dt);Ae(this,yr);Ae(this,Je);Ae(this,wp);Ae(this,ir);Ae(this,ol);Ae(this,mu);Ae(this,Vs);Ae(this,sa);Ae(this,Sp);Ae(this,gu);Ae(this,vu);Ae(this,ll);Ae(this,cl);Ae(this,Fs);Ae(this,yu,new Set);this.options=n,pe(this,yr,t),pe(this,sa,null),pe(this,Vs,YS()),this.options.experimental_prefetchInRender||V(this,Vs).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,Je).addObserver(this),Dk(V(this,Je),this.options)?We(this,dt,bh).call(this):this.updateResult(),We(this,dt,ZS).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return r1(V(this,Je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return r1(V(this,Je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,We(this,dt,e1).call(this),We(this,dt,t1).call(this),V(this,Je).removeObserver(this)}setOptions(t,n){const r=this.options,i=V(this,Je);if(this.options=V(this,yr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Di(this.options.enabled,V(this,Je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");We(this,dt,n1).call(this),V(this,Je).setOptions(this.options),r._defaulted&&!cv(this.options,r)&&V(this,yr).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,Je),observer:this});const a=this.hasListeners();a&&Mk(V(this,Je),i,this.options,r)&&We(this,dt,bh).call(this),this.updateResult(n),a&&(V(this,Je)!==i||Di(this.options.enabled,V(this,Je))!==Di(r.enabled,V(this,Je))||Jc(this.options.staleTime,V(this,Je))!==Jc(r.staleTime,V(this,Je)))&&We(this,dt,XS).call(this);const s=We(this,dt,JS).call(this);a&&(V(this,Je)!==i||Di(this.options.enabled,V(this,Je))!==Di(r.enabled,V(this,Je))||s!==V(this,Fs))&&We(this,dt,QS).call(this,s)}getOptimisticResult(t){const n=V(this,yr).getQueryCache().build(V(this,yr),t),r=this.createResult(n,t);return KJ(this,r)&&(pe(this,ir,r),pe(this,mu,this.options),pe(this,ol,V(this,Je).state)),r}getCurrentResult(){return V(this,ir)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){V(this,yu).add(t)}getCurrentQuery(){return V(this,Je)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=V(this,yr).defaultQueryOptions(t),r=V(this,yr).getQueryCache().build(V(this,yr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return We(this,dt,bh).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,ir)))}createResult(t,n){var P;const r=V(this,Je),i=this.options,a=V(this,ir),s=V(this,ol),l=V(this,mu),u=t!==r?t.state:V(this,wp),{state:h}=t;let d={...h},f=!1,p;if(n._optimisticResults){const A=this.hasListeners(),k=!A&&Dk(t,n),C=A&&Mk(t,r,n,i);(k||C)&&(d={...d,...K4(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:v,errorUpdatedAt:m,status:y}=d;if(n.select&&d.data!==void 0)if(a&&d.data===(s==null?void 0:s.data)&&n.select===V(this,Sp))p=V(this,gu);else try{pe(this,Sp,n.select),p=n.select(d.data),p=KS(a==null?void 0:a.data,p,n),pe(this,gu,p),pe(this,sa,null)}catch(A){pe(this,sa,A)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&y==="pending"){let A;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))A=a.data;else if(A=typeof n.placeholderData=="function"?n.placeholderData((P=V(this,vu))==null?void 0:P.state.data,V(this,vu)):n.placeholderData,n.select&&A!==void 0)try{A=n.select(A),pe(this,sa,null)}catch(k){pe(this,sa,k)}A!==void 0&&(y="success",p=KS(a==null?void 0:a.data,A,n),f=!0)}V(this,sa)&&(v=V(this,sa),p=V(this,gu),m=Date.now(),y="error");const b=d.fetchStatus==="fetching",w=y==="pending",x=y==="error",S=w&&b,j=p!==void 0,_={status:y,fetchStatus:d.fetchStatus,isPending:w,isSuccess:y==="success",isError:x,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:v,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:x&&!j,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:x&&j,isStale:JN(t,n),refetch:this.refetch,promise:V(this,Vs)};if(this.options.experimental_prefetchInRender){const A=E=>{_.status==="error"?E.reject(_.error):_.data!==void 0&&E.resolve(_.data)},k=()=>{const E=pe(this,Vs,_.promise=YS());A(E)},C=V(this,Vs);switch(C.status){case"pending":t.queryHash===r.queryHash&&A(C);break;case"fulfilled":(_.status==="error"||_.data!==C.value)&&k();break;case"rejected":(_.status!=="error"||_.error!==C.reason)&&k();break}}return _}updateResult(t){const n=V(this,ir),r=this.createResult(V(this,Je),this.options);if(pe(this,ol,V(this,Je).state),pe(this,mu,this.options),V(this,ol).data!==void 0&&pe(this,vu,V(this,Je)),cv(r,n))return;pe(this,ir,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!V(this,yu).size)return!0;const c=new Set(l??V(this,yu));return this.options.throwOnError&&c.add("error"),Object.keys(V(this,ir)).some(u=>{const h=u;return V(this,ir)[h]!==n[h]&&c.has(h)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),We(this,dt,X4).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&We(this,dt,ZS).call(this)}},yr=new WeakMap,Je=new WeakMap,wp=new WeakMap,ir=new WeakMap,ol=new WeakMap,mu=new WeakMap,Vs=new WeakMap,sa=new WeakMap,Sp=new WeakMap,gu=new WeakMap,vu=new WeakMap,ll=new WeakMap,cl=new WeakMap,Fs=new WeakMap,yu=new WeakMap,dt=new WeakSet,bh=function(t){We(this,dt,n1).call(this);let n=V(this,Je).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ti)),n},XS=function(){We(this,dt,e1).call(this);const t=Jc(this.options.staleTime,V(this,Je));if(Pl||V(this,ir).isStale||!HS(t))return;const r=B4(V(this,ir).dataUpdatedAt,t)+1;pe(this,ll,setTimeout(()=>{V(this,ir).isStale||this.updateResult()},r))},JS=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(V(this,Je)):this.options.refetchInterval)??!1},QS=function(t){We(this,dt,t1).call(this),pe(this,Fs,t),!(Pl||Di(this.options.enabled,V(this,Je))===!1||!HS(V(this,Fs))||V(this,Fs)===0)&&pe(this,cl,setInterval(()=>{(this.options.refetchIntervalInBackground||XN.isFocused())&&We(this,dt,bh).call(this)},V(this,Fs)))},ZS=function(){We(this,dt,XS).call(this),We(this,dt,QS).call(this,We(this,dt,JS).call(this))},e1=function(){V(this,ll)&&(clearTimeout(V(this,ll)),pe(this,ll,void 0))},t1=function(){V(this,cl)&&(clearInterval(V(this,cl)),pe(this,cl,void 0))},n1=function(){const t=V(this,yr).getQueryCache().build(V(this,yr),this.options);if(t===V(this,Je))return;const n=V(this,Je);pe(this,Je,t),pe(this,wp,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},X4=function(t){vn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(V(this,ir))}),V(this,yr).getQueryCache().notify({query:V(this,Je),type:"observerResultsUpdated"})})},JM);function GJ(e,t){return Di(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Dk(e,t){return GJ(e,t)||e.state.data!==void 0&&r1(e,t,t.refetchOnMount)}function r1(e,t,n){if(Di(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&JN(e,t)}return!1}function Mk(e,t,n,r){return(e!==t||Di(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&JN(e,n)}function JN(e,t){return Di(t.enabled,e)!==!1&&e.isStaleByTime(Jc(t.staleTime,e))}function KJ(e,t){return!cv(e.getCurrentResult(),t)}var Bs,zs,br,Va,Ja,_g,i1,QM,YJ=(QM=class extends fd{constructor(n,r){super();Ae(this,Ja);Ae(this,Bs);Ae(this,zs);Ae(this,br);Ae(this,Va);pe(this,Bs,n),this.setOptions(r),this.bindMethods(),We(this,Ja,_g).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=V(this,Bs).defaultMutationOptions(n),cv(this.options,r)||V(this,Bs).getMutationCache().notify({type:"observerOptionsUpdated",mutation:V(this,br),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Al(r.mutationKey)!==Al(this.options.mutationKey)?this.reset():((i=V(this,br))==null?void 0:i.state.status)==="pending"&&V(this,br).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=V(this,br))==null||n.removeObserver(this)}onMutationUpdate(n){We(this,Ja,_g).call(this),We(this,Ja,i1).call(this,n)}getCurrentResult(){return V(this,zs)}reset(){var n;(n=V(this,br))==null||n.removeObserver(this),pe(this,br,void 0),We(this,Ja,_g).call(this),We(this,Ja,i1).call(this)}mutate(n,r){var i;return pe(this,Va,r),(i=V(this,br))==null||i.removeObserver(this),pe(this,br,V(this,Bs).getMutationCache().build(V(this,Bs),this.options)),V(this,br).addObserver(this),V(this,br).execute(n)}},Bs=new WeakMap,zs=new WeakMap,br=new WeakMap,Va=new WeakMap,Ja=new WeakSet,_g=function(){var r;const n=((r=V(this,br))==null?void 0:r.state)??Y4();pe(this,zs,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},i1=function(n){vn.batch(()=>{var r,i,a,s,l,c,u,h;if(V(this,Va)&&this.hasListeners()){const d=V(this,zs).variables,f=V(this,zs).context;(n==null?void 0:n.type)==="success"?((i=(r=V(this,Va)).onSuccess)==null||i.call(r,n.data,d,f),(s=(a=V(this,Va)).onSettled)==null||s.call(a,n.data,null,d,f)):(n==null?void 0:n.type)==="error"&&((c=(l=V(this,Va)).onError)==null||c.call(l,n.error,d,f),(h=(u=V(this,Va)).onSettled)==null||h.call(u,void 0,n.error,d,f))}
451this.listeners.forEach(d=>{d(V(this,zs))})})},QM),J4=g.createContext(void 0),xo=e=>{const t=g.useContext(J4);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},XJ=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(J4.Provider,{value:e,children:t})),Q4=g.createContext(!1),JJ=()=>g.useContext(Q4);Q4.Provider;function QJ(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ZJ=g.createContext(QJ()),eQ=()=>g.useContext(ZJ);function Z4(e,t){return typeof e=="function"?e(...t):!!e}function e5(){}var tQ=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},nQ=e=>{g.useEffect(()=>{e.clearReset()},[e])},rQ=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Z4(n,[e.error,r]),iQ=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},aQ=(e,t)=>e.isLoading&&e.isFetching&&!t,sQ=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,$k=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function oQ(e,t,n){var h,d,f,p,v;const r=xo(),i=JJ(),a=eQ(),s=r.defaultQueryOptions(e);(d=(h=r.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||d.call(h,s),s._optimisticResults=i?"isRestoring":"optimistic",iQ(s),tQ(s,a),nQ(a);const l=!r.getQueryCache().get(s.queryHash),[c]=g.useState(()=>new t(r,s)),u=c.getOptimisticResult(s);if(g.useSyncExternalStore(g.useCallback(m=>{const y=i?()=>{}:c.subscribe(vn.batchCalls(m));return c.updateResult(),y},[c,i]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),g.useEffect(()=>{c.setOptions(s,{listeners:!1})},[s,c]),sQ(s,u))throw $k(s,c,a);if(rQ({result:u,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw u.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,u),s.experimental_prefetchInRender&&!Pl&&aQ(u,i)){const m=l?$k(s,c,a):(v=r.getQueryCache().get(s.queryHash))==null?void 0:v.promise;m==null||m.catch(e5).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?u:c.trackResult(u)}function St(e,t){return oQ(e,HJ)}function t5(e,t){const n=xo(),[r]=g.useState(()=>new YJ(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const i=g.useSyncExternalStore(g.useCallback(s=>r.subscribe(vn.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=g.useCallback((s,l)=>{r.mutate(s,l).catch(e5)},[r]);if(i.error&&Z4(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}/** 452 * @remix-run/router v1.21.0 453 * 454 * Copyright (c) Remix Software Inc. 455 * 456 * This source code is licensed under the MIT license found in the 457 * LICENSE.md file in the root directory of this source tree. 458 * 459 * @license MIT 460 */function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(this,arguments)}var qs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qs||(qs={}));const Lk="popstate";function lQ(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:s,hash:l}=r.location;return a1("",{pathname:a,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:dv(i)}return uQ(t,n,null,e)}function nn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function n5(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cQ(){return Math.random().toString(36).substr(2,8)}function Vk(e,t){return{usr:e.state,key:e.key,idx:t}}function a1(e,t,n,r){return n===void 0&&(n=null),bf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pd(t):t,{state:n,key:t&&t.key||r||cQ()})}function dv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function pd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function uQ(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,l=qs.Pop,c=null,u=h();u==null&&(u=0,s.replaceState(bf({},s.state,{idx:u}),""));function h(){return(s.state||{idx:null}).idx}function d(){l=qs.Pop;let y=h(),b=y==null?null:y-u;u=y,c&&c({action:l,location:m.location,delta:b})}function f(y,b){l=qs.Push;let w=a1(m.location,y,b);u=h()+1;let x=Vk(w,u),S=m.createHref(w);try{s.pushState(x,"",S)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(S)}a&&c&&c({action:l,location:m.location,delta:1})}function p(y,b){l=qs.Replace;let w=a1(m.location,y,b);u=h();let x=Vk(w,u),S=m.createHref(w);s.replaceState(x,"",S),a&&c&&c({action:l,location:m.location,delta:0})}function v(y){let b=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof y=="string"?y:dv(y);return w=w.replace(/ $/,"%20"),nn(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let m={get action(){return l},get location(){return e(i,s)},listen(y){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(Lk,d),c=y,()=>{i.removeEventListener(Lk,d),c=null}},createHref(y){return t(i,y)},createURL:v,encodeLocation(y){let b=v(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:p,go(y){return s.go(y)}};return m}var Fk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fk||(Fk={}));function dQ(e,t,n){return n===void 0&&(n="/"),hQ(e,t,n,!1)}function hQ(e,t,n,r){let i=typeof t=="string"?pd(t):t,a=QN(i.pathname||"/",n);if(a==null)return null;let s=r5(e);fQ(s);let l=null;for(let c=0;l==null&&c<s.length;++c){let u=_Q(a);l=SQ(s[c],u,r)}return l}function r5(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,s,l)=>{let c={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};c.relativePath.startsWith("/")&&(nn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
460id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=no([r,c.relativePath]),h=n.concat(c);a.children&&a.children.length>0&&(nn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),r5(a.children,t,h,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:xQ(u,a.index),routesMeta:h})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,s);else for(let c of i5(a.path))i(a,s,c)}),t}function i5(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=i5(r.join("/")),l=[];return l.push(...s.map(c=>c===""?a:[a,c].join("/"))),i&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function fQ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wQ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const pQ=/^:[\w-]+$/,mQ=3,gQ=2,vQ=1,yQ=10,bQ=-2,Bk=e=>e==="*";function xQ(e,t){let n=e.split("/"),r=n.length;return n.some(Bk)&&(r+=bQ),t&&(r+=gQ),n.filter(i=>!Bk(i)).reduce((i,a)=>i+(pQ.test(a)?mQ:a===""?vQ:yQ),r)}function wQ(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function SQ(e,t,n){let{routesMeta:r}=e,i={},a="/",s=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,h=a==="/"?t:t.slice(a.length)||"/",d=zk({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},h),f=c.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=zk({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!d)return null;
vendor: 7,044 bytes, lines 460-469
460Object.assign(i,d.params),s.push({params:i,pathname:no([a,d.pathname]),pathnameBase:CQ(no([a,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(a=no([a,d.pathnameBase]))}return s}function zk(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=jQ(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,h,d)=>{let{paramName:f,isOptional:p}=h;if(f==="*"){let m=l[d]||"";s=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}const v=l[d];return p&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function jQ(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),n5(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function _Q(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return n5(!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 QN(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function NQ(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pd(e):e;return{pathname:n?n.startsWith("/")?n:PQ(n,t):t,search:EQ(r),hash:kQ(i)}}function PQ(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function b0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function AQ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ZN(e,t){let n=AQ(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function eP(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=pd(e):(i=bf({},e),nn(!i.pathname||!i.pathname.includes("?"),b0("?","pathname","search",i)),nn(!i.pathname||!i.pathname.includes("#"),b0("#","pathname","hash",i)),nn(!i.search||!i.search.includes("#"),b0("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,l;if(s==null)l=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}l=d>=0?t[d]:"/"}let c=NQ(i,l),u=s&&s!=="/"&&s.endsWith("/"),h=(a||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||h)&&(c.pathname+="/"),c}const no=e=>e.join("/").replace(/\/\/+/g,"/"),CQ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EQ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kQ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function TQ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const a5=["post","put","patch","delete"];new Set(a5);const OQ=["get",...a5];new Set(OQ);/** 461 * React Router v6.28.0 462 * 463 * Copyright (c) Remix Software Inc. 464 * 465 * This source code is licensed under the MIT license found in the 466 * LICENSE.md file in the root directory of this source tree. 467 * 468 * @license MIT 469 */function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xf.apply(this,arguments)}const tP=g.createContext(null),IQ=g.createContext(null),wo=g.createContext(null),db=g.createContext(null),Aa=g.createContext({outlet:null,matches:[],isDataRoute:!1}),s5=g.createContext(null);function RQ(e,t){let{relative:n}=t===void 0?{}:t;md()||nn(!1);let{basename:r,navigator:i}=g.useContext(wo),{hash:a,pathname:s,search:l}=c5(e,{relative:n}),c=s;return r!=="/"&&(c=s==="/"?r:no([r,s])),i.createHref({pathname:c,search:l,hash:a})}function md(){return g.useContext(db)!=null}function pr(){return md()||nn(!1),g.useContext(db).location}function o5(e){g.useContext(wo).static||g.useLayoutEffect(e)}function zn(){let{isDataRoute:e}=g.useContext(Aa);return e?YQ():DQ()}function DQ(){md()||nn(!1);let e=g.useContext(tP),{basename:t,future:n,navigator:r}=g.useContext(wo),{matches:i}=g.useContext(Aa),{pathname:a}=pr(),s=JSON.stringify(ZN(i,n.v7_relativeSplatPath)),l=g.useRef(!1);return o5(()=>{l.current=!0}),g.useCallback(function(u,h){if(h===void 0&&(h={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=eP(u,JSON.parse(s),a,h.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:no([t,d.pathname])),(h.replace?r.replace:r.push)(d,h.state,h)},[t,r,s,a,e])}const MQ=g.createContext(null);function $Q(e){let t=g.useContext(Aa).outlet;return t&&g.createElement(MQ.Provider,{value:e},t)}function l5(){let{matches:e}=g.useContext(Aa),t=e[e.length-1];return t?t.params:{}}function c5(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=g.useContext(wo),{matches:i}=g.useContext(Aa),{pathname:a}=pr(),s=JSON.stringify(ZN(i,r.v7_relativeSplatPath));return g.useMemo(()=>eP(e,JSON.parse(s),a,n==="path"),[e,s,a,n])}function LQ(e,t){return VQ(e,t)}function VQ(e,t,n,r){md()||nn(!1);let{navigator:i}=g.useContext(wo),{matches:a}=g.useContext(Aa),s=a[a.length-1],l=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let u=pr(),h;if(t){var d;let y=typeof t=="string"?pd(t):t;c==="/"||(d=y.pathname)!=null&&d.startsWith(c)||nn(!1),h=y}else h=u;let f=h.pathname||"/",p=f;if(c!=="/"){let y=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let v=dQ(e,{pathname:p}),m=WQ(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:no([c,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:no([c,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),a,n,r);return t&&m?g.createElement(db.Provider,{value:{location:xf({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:qs.Pop}},m):m}function FQ(){let e=KQ(),t=TQ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application
469Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:i},n):null,null)}const BQ=g.createElement(FQ,null);class zQ extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?g.createElement(Aa.Provider,{value:this.props.routeContext},g.createElement(s5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function UQ(e){let{routeContext:t,match:n,children:r}=e,i=g.useContext(tP);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(Aa.Provider,{value:t},r)}function WQ(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let h=s.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);h>=0||nn(!1),s=s.slice(0,Math.min(s.length,h+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<s.length;h++){let d=s[h];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=h),d.route.id){let{loaderData:f,errors:p}=n,v=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||v){c=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((h,d,f)=>{let p,v=!1,m=null,y=null;n&&(p=l&&d.route.id?l[d.route.id]:void 0,m=d.route.errorElement||BQ,c&&(u<0&&f===0?(v=!0,y=null):u===f&&(v=!0,y=d.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,f+1)),w=()=>{let x;return p?x=m:v?x=y:d.route.Component?x=g.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=h,g.createElement(UQ,{match:d,routeContext:{outlet:h,matches:b,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?g.createElement(zQ,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:w(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):w()},null)}var u5=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(u5||{}),hv=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}(hv||{});function qQ(e){let t=g.useContext(tP);return t||nn(!1),t}function HQ(e){let t=g.useContext(IQ);return t||nn(!1),t}function GQ(e){let t=g.useContext(Aa);return t||nn(!1),t}function d5(e){let t=GQ(),n=t.matches[t.matches.length-1];return n.route.id||nn(!1),n.route.id}function KQ(){var e;let t=g.useContext(s5),n=HQ(hv.UseRouteError),r=d5(hv.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function YQ(){let{router:e}=qQ(u5.UseNavigateStable),t=d5(hv.UseNavigateStable),n=g.useRef(!1);return o5(()=>{n.current=!0}),g.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,xf({fromRouteId:t},a)))},[e,t])}const Uk={};function XQ(e,t){Uk[t]||(Uk[t]=!0,console.warn(t))}const Wk=(e,t,n)=>XQ(e,"â ï¸ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function JQ(e,t){e!=null&&e.v7_startTransition||Wk("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&Wk("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function hb(e){let{to:t,replace:n,state:r,relative:i}=e;md()||nn(!1);let{future:a,static:s}=g.useContext(wo),{matches:l}=g.useContext(Aa),{pathname:c}=pr(),u=zn(),h=eP(t,ZN(l,a.v7_relativeSplatPath),c,i==="path"),d=JSON.stringify(h);return g.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function QQ(e){return $Q(e.context)}function Ie(e){nn(!1)}function ZQ(e){let{basename:t="/",children:n=null,location:r,navigationType:i=qs.Pop,navigator:a,static:s=!1,future:l}=e;md()&&nn(!1);let c=t.replace(/^\/*/,"/"),u=g.useMemo(()=>({basename:c,navigator:a,static:s,future:xf({v7_relativeSplatPath:!1},l)}),[c,l,a,s]);typeof r=="string"&&(r=pd(r));let{pathname:h="/",search:d="",hash:f="",state:p=null,key:v="default"}=r,m=g.useMemo(()=>{let y=QN(h,c);return y==null?null:{location:{pathname:y,search:d,hash:f,state:p,key:v},navigationType:i}},[c,h,d,f,p,v,i]);return m==null?null:g.createElement(wo.Provider,{value:u},g.createElement(db.Provider,{children:n,value:m}))}function eZ(e){let{children:t,location:n}=e;return LQ(s1(t),n)}new Promise(()=>{});function s1(e,t){t===void 0&&(t=[]);let n=[];
469return g.Children.forEach(e,(r,i)=>{if(!g.isValidElement(r))return;let a=[...t,i];if(r.type===g.Fragment){n.push.apply(n,s1(r.props.children,a));return}r.type!==Ie&&nn(!1),!r.props.index||!r.props.children||nn(!1);let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=s1(r.props.children,a)),n.push(s)}),n}/** 470 * React Router DOM v6.28.0 471 * 472 * Copyright (c) Remix Software Inc. 473 * 474 * This source code is licensed under the MIT license found in the 475 * LICENSE.md file in the root directory of this source tree. 476 * 477 * @license MIT 478 */function o1(){return o1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o1.apply(this,arguments)}function tZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function nZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rZ(e,t){return e.button===0&&(!t||t==="_self")&&!nZ(e)}function l1(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function iZ(e,t){let n=l1(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const aZ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],sZ="6";try{window.__reactRouterVersion=sZ}catch{}const oZ="startTransition",qk=I_[oZ];function lZ(e){let{basename:t,children:n,future:r,window:i}=e,a=g.useRef();a.current==null&&(a.current=lQ({window:i,v5Compat:!0}));let s=a.current,[l,c]=g.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},h=g.useCallback(d=>{u&&qk?qk(()=>c(d)):c(d)},[c,u]);return g.useLayoutEffect(()=>s.listen(h),[s,h]),g.useEffect(()=>JQ(r),[r]),g.createElement(ZQ,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const cZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uZ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,se=g.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:s,state:l,target:c,to:u,preventScrollReset:h,viewTransition:d}=t,f=tZ(t,aZ),{basename:p}=g.useContext(wo),v,m=!1;if(typeof u=="string"&&uZ.test(u)&&(v=u,cZ))try{let x=new URL(window.location.href),S=u.startsWith("//")?new URL(x.protocol+u):new URL(u),j=QN(S.pathname,p);S.origin===x.origin&&j!=null?u=j+S.search+S.hash:m=!0}catch{}let y=RQ(u,{relative:i}),b=dZ(u,{replace:s,state:l,target:c,preventScrollReset:h,relative:i,viewTransition:d});function w(x){r&&r(x),x.defaultPrevented||b(x)}return g.createElement("a",o1({},f,{href:v||y,onClick:m||a?r:w,ref:n,target:c}))});var Hk;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hk||(Hk={}));var Gk;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gk||(Gk={}));function dZ(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:s,viewTransition:l}=t===void 0?{}:t,c=zn(),u=pr(),h=c5(e,{relative:s});return g.useCallback(d=>{if(rZ(d,n)){d.preventDefault();let f=r!==void 0?r:dv(u)===dv(h);c(e,{replace:f,state:i,preventScrollReset:a,relative:s,viewTransition:l})}},[u,c,h,r,i,n,e,a,s,l])}function cs(e){let t=g.useRef(l1(e)),n=g.useRef(!1),r=pr(),i=g.useMemo(()=>iZ(r.search,n.current?null:t.current),[r.search]),a=zn(),s=g.useCallback((l,c)=>{const u=l1(typeof l=="function"?l(i):l);n.current=!0,a("?"+u,c)},[a,i]);return[i,s]}var la=function(){return la=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},la.apply(this,arguments)};function gd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function hZ(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}
478return new(n||(n=Promise))(function(a,s){function l(h){try{u(r.next(h))}catch(d){s(d)}}function c(h){try{u(r.throw(h))}catch(d){s(d)}}function u(h){h.done?a(h.value):i(h.value).then(l,c)}u((r=r.apply(e,t||[])).next())})}function fZ(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}const pZ=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class nP extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class mZ extends nP{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Kk extends nP{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Yk extends nP{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var c1;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(c1||(c1={}));class gZ{constructor(t,{headers:n={},customFetch:r,region:i=c1.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=pZ(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return hZ(this,arguments,void 0,function*(n,r={}){var i;let a,s;try{const{headers:l,method:c,body:u,signal:h,timeout:d}=r;let f={},{region:p}=r;p||(p=this.region);const v=new URL(`${this.url}/${n}`);p&&p!=="any"&&(f["x-region"]=p,v.searchParams.set("forceFunctionRegion",p));let m;u&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",m=u):typeof u=="string"?(f["Content-Type"]="text/plain",m=u):typeof FormData<"u"&&u instanceof FormData?m=u:(f["Content-Type"]="application/json",m=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?m=JSON.stringify(u):m=u;let y=h;d&&(s=new AbortController,a=setTimeout(()=>s.abort(),d),h?(y=s.signal,h.addEventListener("abort",()=>s.abort())):y=s.signal);const b=yield this.fetch(v.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),l),body:m,signal:y}).catch(j=>{throw new mZ(j)}),w=b.headers.get("x-relay-error");if(w&&w==="true")throw new Kk(b);if(!b.ok)throw new Yk(b);let x=((i=b.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),S;return x==="application/json"?S=yield b.json():x==="application/octet-stream"||x==="application/pdf"?S=yield b.blob():x==="text/event-stream"?S=b:x==="multipart/form-data"?S=yield b.formData():S=yield b.text(),{data:S,error:null,response:b}}catch(l){return{data:null,error:l,response:l instanceof Yk||l instanceof Kk?l.context:void 0}}finally{a&&clearTimeout(a)}})}}var vZ=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
478de=e.code}},yZ=class{constructor(e){var t,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async a=>{let s=null,l=null,c=null,u=a.status,h=a.statusText;if(a.ok){var d,f;if(n.method!=="HEAD"){var p;const b=await a.text();b===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((p=n.headers.get("Accept"))===null||p===void 0)&&p.includes("application/vnd.pgrst.plan+text"))?l=b:l=JSON.parse(b))}const m=(d=n.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),y=(f=a.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");m&&y&&y.length>1&&(c=parseInt(y[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(l)&&(l.length>1?(s={code:"PGRST116",details:`Results contain ${l.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},l=null,c=null,u=406,h="Not Acceptable"):l.length===1?l=l[0]:l=null)}else{var v;const m=await a.text();try{s=JSON.parse(m),Array.isArray(s)&&a.status===404&&(l=[],s=null,u=200,h="OK")}catch{a.status===404&&m===""?(u=204,h="No Content"):s={message:m}}if(s&&n.isMaybeSingle&&(!(s==null||(v=s.details)===null||v===void 0)&&v.includes("0 rows"))&&(s=null,u=200,h="OK"),s&&n.shouldThrowOnError)throw new vZ(s)}return{error:s,data:l,count:c,status:u,statusText:h}});return this.shouldThrowOnError||(i=i.catch(a=>{var s;let l="";const c=a==null?void 0:a.cause;if(c){var u,h,d,f;const v=(u=c==null?void 0:c.message)!==null&&u!==void 0?u:"",m=(h=c==null?void 0:c.code)!==null&&h!==void 0?h:"";l=`${(d=a==null?void 0:a.name)!==null&&d!==void 0?d:"FetchError"}: ${a==null?void 0:a.message}`,l+=` 479 480Caused by: ${(f=c==null?void 0:c.name)!==null&&f!==void 0?f:"Error"}: ${v}`,m&&(l+=` (${m})`),c!=null&&c.stack&&(l+=` 481${c.stack}`)}else{var p;l=(p=a==null?void 0:a.stack)!==null&&p!==void 0?p:""}return{error:{message:`${(s=a==null?void 0:a.name)!==null&&s!==void 0?s:"FetchError"}: ${a==null?void 0:a.message}`,details:l,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}returns(){return this}overrideTypes(){return this}},bZ=class extends yZ{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){const a=i?`${i}.order`:"order",s=this.url.searchParams.get(a);return this.url.searchParams.set(a,`${s?`${s},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"offset":`${r}.offset`,a=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(a,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
481explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:a="text"}={}){var s;const l=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),c=(s=this.headers.get("Accept"))!==null&&s!==void 0?s:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${a}; for="${c}"; options=${l};`),a==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Xk=new RegExp("[,()]");var xc=class extends bZ{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Xk.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Xk.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const a=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${a}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},xZ=class{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},i=n?"HEAD":"GET";let a=!1;const s=(e??"*").split("").map(u=>/\s/.test(u)&&!a?"":(u==='"'&&(a=!a),u)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",s),r&&c.append("Prefer",`count=${r}`),new xc({method:i,url:l,headers:c,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST",{url:a,headers:s}=this.cloneRequestState();if(t&&s.append("Prefer",`count=${t}`),n||s.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);a.searchParams.set("columns",c.join(","))}}return new xc({method:i,url:a,headers:s,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var a;const s="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&l.searchParams.set("on_conflict",t),r&&c.append("Prefer",`count=${r}`),i||c.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((h,d)=>h.concat(Object.keys(d)),[]);if(u.length>0){const h=[...new Set(u)].map(d=>`"${d}"`);l.searchParams.set("columns",h.join(","))}}return new xc({method:s,url:l,headers:c,schema:this.schema,body:e,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}update(e,{count:t}={}){var n;const r="PATCH",{url:i,headers:a}=this.cloneRequestState();return t&&a.append("Prefer",`count=${t}`),new xc({method:r,url:i,headers:a,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new xc({method:n,url:r,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},wZ=class h5{constructor(t,{headers:n={},schema:r,fetch:i}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=i}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new xZ(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new h5(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:i=!1,count:a}={}){var s;let l;const c=new URL(`${this.url}/rpc/${t}`);let u;const h=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(h)),d=r&&Object.values(n).some(h);d?(l="POST",u=n):r||i?(l=r?"HEAD":"GET",Object.entries(n).filter(([p,v])=>v!==void 0).map(([p,v])=>[p,Array.isArray(v)?`{${v.join(",")}}`:`${v}
481`]).forEach(([p,v])=>{c.searchParams.append(p,v)})):(l="POST",u=n);const f=new Headers(this.headers);return d?f.set("Prefer",a?`count=${a},return=minimal`:"return=minimal"):a&&f.set("Prefer",`count=${a}`),new xc({method:l,url:c,headers:f,schema:this.schemaName,body:u,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}};class SZ{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const i=r.node,a=parseInt(i.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 482import ws from "ws" 483new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 484 485Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const jZ="2.90.1",_Z=`realtime-js/${jZ}`,f5="1.0.0",NZ="2.0.0",Jk=f5,u1=1e4,PZ=1e3,AZ=100;var Cs;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Cs||(Cs={}));var pn;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(pn||(pn={}));var Oi;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Oi||(Oi={}));var d1;(function(e){e.websocket="websocket"})(d1||(d1={}));var Wo;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Wo||(Wo={}));class CZ{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},s=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,s)}_encodeUserBroadcastPush(t,n,r){var i,a;const s=t.topic,l=(i=t.ref)!==null&&i!==void 0?i:"",c=(a=t.join_ref)!==null&&a!==void 0?a:"",u=t.payload.event,h=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(h).length===0?"":JSON.stringify(h);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(s.length>255)throw new Error(`topic length ${s.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+s.length+u.length+d.length,p=new ArrayBuffer(this.HEADER_LENGTH+f);let v=new DataView(p),m=0;v.setUint8(m++,this.KINDS.userBroadcastPush),v.setUint8(m++,c.length),v.setUint8(m++,l.length),v.setUint8(m++,s.length),v.setUint8(m++,u.length),v.setUint8(m++,d.length),v.setUint8(m++,n),Array.from(c,b=>v.setUint8(m++,b.charCodeAt(0))),Array.from(l,b=>v.setUint8(m++,b.charCodeAt(0))),Array.from(s,b=>v.setUint8(m++,b.charCodeAt(0))),Array.from(u,b=>v.setUint8(m++,b.charCodeAt(0))),Array.from(d,b=>v.setUint8(m++,b.charCodeAt(0)));var y=new Uint8Array(p.byteLength+r.byteLength);return y.set(new Uint8Array(p),0),y.set(new Uint8Array(r),p.byteLength),y.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[i,a,s,l,c]=r;
485return n({join_ref:i,ref:a,topic:s,event:l,payload:c})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),a=n.getUint8(2),s=n.getUint8(3),l=n.getUint8(4);let c=this.HEADER_LENGTH+4;const u=r.decode(t.slice(c,c+i));c=c+i;const h=r.decode(t.slice(c,c+a));c=c+a;const d=r.decode(t.slice(c,c+s));c=c+s;const f=t.slice(c,t.byteLength),p=l===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,v={type:this.BROADCAST_EVENT,event:h,payload:p};return s>0&&(v.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:v}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class p5{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Pt;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Pt||(Pt={}));const Qk=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((a,s)=>(a[s]=EZ(s,e,t,i),a),{}):{}},EZ=(e,t,n,r)=>{const i=t.find(l=>
485l.name===e),a=i==null?void 0:i.type,s=n[e];return a&&!r.includes(a)?m5(a,s):h1(s)},m5=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return IZ(t,n)}switch(e){case Pt.bool:return kZ(t);case Pt.float4:case Pt.float8:case Pt.int2:case Pt.int4:case Pt.int8:case Pt.numeric:case Pt.oid:return TZ(t);case Pt.json:case Pt.jsonb:return OZ(t);case Pt.timestamp:return RZ(t);case Pt.abstime:case Pt.date:case Pt.daterange:case Pt.int4range:case Pt.int8range:case Pt.money:case Pt.reltime:case Pt.text:case Pt.time:case Pt.timestamptz:case Pt.timetz:case Pt.tsrange:case Pt.tstzrange:return h1(t);default:return h1(t)}},h1=e=>e,kZ=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},TZ=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},OZ=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},IZ=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let a;const s=e.slice(1,n);try{a=JSON.parse("["+s+"]")}catch{a=s?s.split(","):[]}return a.map(l=>m5(t,l))}return e},RZ=e=>typeof e=="string"?e.replace(" ","T"):e,g5=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class x0{constructor(t,n,r={},i=u1){this.channel=t,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Zk;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Zk||(Zk={}));class Lh{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:a,onLeave:s,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Lh.syncState(this.state,i,a,s),this.pendingDiffs.forEach(c=>{this.state=Lh.syncDiff(this.state,c,a,s)}),this.pendingDiffs=[],l()}),this.channel._on(r.diff,{},i=>{const{onJoin:a,onLeave:s,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Lh.syncDiff(this.state,i,a,s),l())}),this.onJoin((i,a,s)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:a,newPresences:s})}),this.onLeave((i,a,s)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:a,leftPresences:s})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const a=this.cloneDeep(t),s=this.transformState(n),l={},c={};return this.map(a,(u,h)=>{s[u]||(c[u]=h)}),this.map(s,(u,h)=>{const d=a[u];if(d){const f=h.map(y=>y.presence_ref),p=d.map(y=>y.presence_ref),v=h.filter(y=>p.indexOf(y.presence_ref)<0),m=d.filter(y=>f.indexOf(y.presence_ref)<0);v.length>0&&(l[u]=v),m.length>0&&(c[u]=m)}else l[u]=h}),this.syncDiff(a,{joins:l,leaves:c},r,i)}static syncDiff(t,n,r,i){const{joins:a,leaves:s}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(a,(l,c)=>{var u;const h=(u=t[l])!==null&&u!==void 0?u:[];if(t[l]=this.cloneDeep(c),h.length>0){const d=t[l].map(p=>p.presence_ref),f=h.filter(p=>d.indexOf(p.presence_ref)<0);t[l].unshift(...f)}r(l,h,c)}),this.map(s,(l,c)=>{let u=t[l];if(!u)return;const h=c.map(d=>d.presence_ref);u=u.filter(d=>h.indexOf(d.presence_ref)<0),t[l]=u,i(l,u,c),u.length===0&&delete t[l]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return"metas"in i?n[r]=i.metas.map(a=>(a.presence_ref=a.phx_ref,delete a.phx_ref,delete a.phx_ref_prev,a)):n[r]=i,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var eT;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(eT||(eT={}));var Vh;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Vh||(Vh={}));var $a;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})($a||($a={}));class Dc{constructor(t,n={config:{}},r){var i,a;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=pn.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new x0(this,Oi.join,this.params,this.timeout),this.rejoinTimer=new p5(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=pn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=pn.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=pn.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=pn.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=pn.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Oi.reply,{},(s,l)=>{this._trigger(this._replyEventName(l),s)}),this.presence=new Lh(this),this.broadcastEndpointURL=g5(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((a=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||a===void 0)&&a.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,a;if(this.socket.isConnected()||this.socket.connect(),this.state==pn.closed){const{config:{broadcast:s,presence:l,private:c}}=this.params,u=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&i!==void 0?i:[],h=!!this.bindings[Vh.PRESENCE]&&this.bindings[Vh.PRESENCE].length>0||((a=this.params.config.presence)===null||a===void 0?void 0:a.enabled)===!0,d={},f={broadcast:s,presence:Object.assign(Object.assign({},l),{enabled:h}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(p=>t==null?void 0:t($a.CHANNEL_ERROR,p)),this._onClose(()=>t==null?void 0:t($a.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:p})=>{var v;if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t($a.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,y=(v=m==null?void 0:m.length)!==null&&v!==void 0?v:0,b=[];for(let w=0;w<y;w++){const x=m[w],{filter:{event:S,schema:j,table:N,filter:_}}=x,P=p&&p[w];
485if(P&&P.event===S&&Dc.isFilterValueEqual(P.schema,j)&&Dc.isFilterValueEqual(P.table,N)&&Dc.isFilterValueEqual(P.filter,_))b.push(Object.assign(Object.assign({},x),{id:P.id}));else{this.unsubscribe(),this.state=pn.errored,t==null||t($a.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=b,t&&t($a.SUBSCRIBED);return}}).receive("error",p=>{this.state=pn.errored,t==null||t($a.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t($a.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===pn.joined&&t===Vh.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var i;if(n==null)return Promise.reject("Payload is required for httpSend()");const a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const s={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,s,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(l.status===202)return{success:!0};let c=l.statusText;try{const u=await l.json();c=u.error||u.message||c}catch{}return Promise.reject(new Error(c))}async send(t,n={}){var r,i;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
485in the future. Please use httpSend() explicitly for REST delivery.");const{event:a,payload:s}=t,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:s,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var s,l,c;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(s=this.params)===null||s===void 0?void 0:s.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&a("ok"),u.receive("ok",()=>a("ok")),u.receive("error",()=>a("error")),u.receive("timeout",()=>a("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=pn.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Oi.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(i=>{r=new x0(this,Oi.leave,{},t),r.receive("ok",()=>{n(),i("ok")}).receive("timeout",()=>{n(),i("timed out")}).receive("error",()=>{i("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=pn.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const i=new AbortController,a=setTimeout(()=>i.abort(),r),s=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(a),s}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new x0(this,t,n,r);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>AZ){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var i,a;const s=t.toLocaleLowerCase(),{close:l,error:c,leave:u,join:h}=Oi;if(r&&[l,c,u,h].indexOf(s)>=0&&r!==this._joinRef())return;let f=this._onMessage(s,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(s)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(p=>{var v,m,y;return((v=p.filter)===null||v===void 0?void 0:v.event)==="*"||((y=(m=p.filter)===null||m===void 0?void 0:m.event)===null||y===void 0?void 0:y.toLocaleLowerCase())===s}).map(p=>p.callback(f,r)):(a=this.bindings[s])===null||a===void 0||a.filter(p=>{var v,m,y,b,w,x,S,j;if(["broadcast","presence","postgres_changes"].includes(s))if("id"in p){const N=p.id,_=(v=p.filter)===null||v===void 0?void 0:v.event;return N&&((m=n.ids)===null||m===void 0?void 0:m.includes(N))&&(_==="*"||(_==null?void 0:_.toLocaleLowerCase())===((y=n.data)===null||y===void 0?void 0:y.type.toLocaleLowerCase()))&&(!(!((b=p.filter)===null||b===void 0)&&b.table)||p.filter.table===((w=n.data)===null||w===void 0?void 0:w.table))}else{const N=(S=(x=p==null?void 0:p.filter)===null||x===void 0?void 0:x.event)===null||S===void 0?void 0:S.toLocaleLowerCase();return N==="*"||N===((j=n==null?void 0:n.event)===null||j===void 0?void 0:j.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===s}).map(p=>{if(typeof f=="object"&&"ids"in f){const v=f.data,{schema:m,table:y,commit_timestamp:b,type:w,errors:x}=v;f=Object.assign(Object.assign({},{schema:m,table:y,commit_timestamp:b,eventType:w,new:{},old:{},errors:x}),this._getPayloadRecords(v))}p.callback(f,r)})}_isClosed(){return this.state===pn.closed}_isJoined(){return this.state===pn.joined}_isJoining(){return this.state===pn.joining}_isLeaving(){return this.state===pn.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),a={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(a):this.bindings[i]=[a],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(i=>{var a;return!(((a=i.type)===null||a===void 0?void 0:a.toLocaleLowerCase())===r&&Dc.isEqual(i.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Oi.close,{},t)}_onError(t){this._on(Oi.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=pn.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Qk(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Qk(t.columns,t.old_record)),n}}const w0=()=>{},Im={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},DZ=[1e3,2e3,5e3,1e4],MZ=1e4,$Z=` 486 addEventListener("message", (e) => { 487 if (e.data.event === "start") { 488 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 489 } 490 });`;class LZ{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=u1,this.transport=null,this.heartbeatIntervalMs=Im.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=w0,this.ref=0,this.reconnectTimer=null,this.vsn=Jk,this.logger=w0,this.conn=null,this.sendBuffer=[],this.serializer
490=new CZ,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=i=>i?(...a)=>i(...a):(...a)=>fetch(...a),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${d1.websocket}`,this.httpEndpoint=g5(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=SZ.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 491 492To use Realtime in Node.js, you need to provide a WebSocket implementation: 493 494Option 1: Use Node.js 22+ which has native WebSocket support 495Option 2: Install and provide the "ws" package: 496 497 npm install ws 498 499 import ws from "ws" 500 const client = new RealtimeClient(url, { 501 ...options, 502 transport: ws 503 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Cs.connecting:return Wo.Connecting;case Cs.open:return Wo.Open;case Cs.closing:return Wo.Closing;default:return Wo.Closed}}isConnected(){return this.connectionState()===Wo.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(a=>a.topic===r);if(i)return i;{const a=new Dc(`realtime:${t}`,n,this);return this.channels.push(a),a}}push(t){const{topic:n,event:r,payload:i,ref:a}=t,s=()=>{this.encode(t,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${n} ${r} (${a})`,i),this.isConnected()?s():this.sendBuffer.push(s)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(PZ,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Im.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
503{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",u)}catch(h){this.log("error","error in heartbeat callback",h)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:i,payload:a,ref:s}=n,l=s?`(${s})`:"",c=a.status||"";this.log("receive",`${c} ${r} ${i} ${l}`.trim(),a),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(i,a,s)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===Cs.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Cs.open||this.conn.readyState===Cs.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(Oi.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([$Z],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const a={access_token:n,version:_Z};n&&i.updateJoinPayload(a),i.joinedOnce&&i._isJoined()&&i._push(Oi.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(i){this.log("error",`error in ${t} callback`,i)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new p5(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Im.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,i,a,s,l,c,u,h,d,f,p;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.t
503imeout)!==null&&r!==void 0?r:u1,this.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:Im.HEARTBEAT_INTERVAL,this.worker=(a=t==null?void 0:t.worker)!==null&&a!==void 0?a:!1,this.accessToken=(s=t==null?void 0:t.accessToken)!==null&&s!==void 0?s:null,this.heartbeatCallback=(l=t==null?void 0:t.heartbeatCallback)!==null&&l!==void 0?l:w0,this.vsn=(c=t==null?void 0:t.vsn)!==null&&c!==void 0?c:Jk,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:v=>DZ[v-1]||MZ,this.vsn){case f5:this.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:(v,m)=>m(JSON.stringify(v)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:(v,m)=>m(JSON.parse(v));break;case NZ:this.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var wf=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function VZ(e,t,n){const r=new URL(t,e);if(n)for(const[i,a]of Object.entries(n))a!==void 0&&r.searchParams.set(i,a);return r.toString()}async function FZ(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function BZ(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:a,headers:s}){const l=VZ(e.baseUrl,r,i),c=await FZ(e.auth),u=await t(l,{method:n,headers:{...a?{"Content-Type":"application/json"}:{},...c,...s},body:a?JSON.stringify(a):void 0}),h=await u.text(),d=(u.headers.get("content-type")||"").includes("application/json"),f=d&&h?JSON.parse(h):h;if(!u.ok){const p=d?f:void 0,v=p==null?void 0:p.error;throw new wf((v==null?void 0:v.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:v==null?void 0:v.type,icebergCode:v==null?void 0:v.code,details:p})}return{status:u.status,headers:u.headers,data:f}}}}function Rm(e){return e.join("�")}var zZ=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Rm(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Rm(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Rm(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Rm(e.namespace)}`}),!0}catch(t){if(t instanceof wf&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof wf&&n.status===409)return;throw n}}};function nc(e){return e.join("�")}var UZ=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${nc(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${nc(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${nc(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${nc(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${nc(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${nc(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof wf&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof wf&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},WZ=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=BZ({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new zZ(this.client,t),this.tableOps=new UZ(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
503async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},fb=class extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}};function Ut(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var qZ=class extends fb{constructor(e,t,n){super(e),this.name="StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},f1=class extends fb{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}};const rP=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),HZ=()=>Response,p1=e=>{if(Array.isArray(e))return e.map(n=>p1(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,a=>a.toUpperCase().replace(/[-_]/g,""));t[i]=p1(r)}),t},GZ=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},KZ=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Sf(e){"@babel/helpers - typeof";return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sf(e)}function YZ(e,t){if(Sf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XZ(e){var t=YZ(e,"string");return Sf(t)=="symbol"?t:t+""}function JZ(e,t,n){return(t=XZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tT(Object(n),!0).forEach(function(r){JZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const S0=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},QZ=async(e,t,n)=>{e instanceof await HZ()&&!(n!=null&&n.noResolveJson)?e.json().then(r=>{const i=e.status||500,a=(r==null?void 0:r.statusCode)||i+"";t(new qZ(S0(r),i,a))}).catch(r=>{t(new f1(S0(r),r))}):t(new f1(S0(e),e))},ZZ=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?i:(GZ(r)?(i.headers=ke({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),ke(ke({},i),n))};async function $p(e,t,n,r,i,a){return new Promise((s,l)=>{e(n,ZZ(t,r,i,a)).then(c=>{if(!c.ok)throw c;return r!=null&&r.noResolveJson?c:c.json()}).then(c=>s(c)).catch(c=>QZ(c,l,r))})}async function jf(e,t,n,r){return $p(e,"GET",t,n,r)}async function Ei(e,t,n,r,i){return $p(e,"POST",t,r,i,n)}async function m1(e,t,n,r,i){return $p(e,"PUT",t,r,i,n)}async function eee(e,t,n,r){return $p(e,"HEAD",t,ke(ke({},n),{},{noResolveJson:!0}),r)}async function iP(e,t,n,r,i){return $p(e,"DELETE",t,r,i,n)}var tee=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Ut(t))return{data:null,error:t};throw t}}};let v5;v5=Symbol.toStringTag;var nee=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[v5]="BlobDownloadBuilder",this.promise=null}asStream(){return new tee(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Ut(t))return{data:null,error:t};throw t}}};const ree={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},nT={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var iee=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=n,this.fetch=rP(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(e,t,n,r){var i=this;try{let a;const s=ke(ke({},nT),r);let l=ke(ke({},i.headers),e==="POST"&&{"x-upsert":String(s.upsert)});const c=s.metadata;typeof Blob<"u"&&n instanceof Blob?(a=new FormData,a.append("cacheControl",s.cacheControl),c&&a.append("metadata",i.encodeMetadata(c)),a.append("",n)):typeof FormData<"u"&&n instanceof FormData?(a=n,a.has("cacheControl")||a.append("cacheControl",s.cacheControl),c&&!a.has("metadata")&&a.append("metadata",i.encodeMetadata(c))):(a=n,l["cache-control"]=`max-age=${s.cacheControl}`,l["content-type"]=s.contentType,c&&(l["x-metadata"]=i.toBase64(i.encodeMetadata(c))),(typeof ReadableStream<"u"&&a
503instanceof ReadableStream||a&&typeof a=="object"&&"pipe"in a&&typeof a.pipe=="function")&&!s.duplex&&(s.duplex="half")),r!=null&&r.headers&&(l=ke(ke({},l),r.headers));const u=i._removeEmptyFolders(t),h=i._getFinalPath(u),d=await(e=="PUT"?m1:Ei)(i.fetch,`${i.url}/object/${h}`,a,ke({headers:l},s!=null&&s.duplex?{duplex:s.duplex}:{}));return{data:{path:u,id:d.Id,fullPath:d.Key},error:null}}catch(a){if(i.shouldThrowOnError)throw a;if(Ut(a))return{data:null,error:a};throw a}}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;const a=i._removeEmptyFolders(e),s=i._getFinalPath(a),l=new URL(i.url+`/object/upload/sign/${s}`);l.searchParams.set("token",t);try{let c;const u=ke({upsert:nT.upsert},r),h=ke(ke({},i.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.append("cacheControl",u.cacheControl)):(c=n,h["cache-control"]=`max-age=${u.cacheControl}`,h["content-type"]=u.contentType),{data:{path:a,fullPath:(await m1(i.fetch,l.toString(),c,{headers:h})).Key},error:null}}catch(c){if(i.shouldThrowOnError)throw c;if(Ut(c))return{data:null,error:c};throw c}}async createSignedUploadUrl(e,t){var n=this;try{let r=n._getFinalPath(e);const i=ke({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const a=await Ei(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),s=new URL(n.url+a.url),l=s.searchParams.get("token");if(!l)throw new fb("No token returned by API");return{data:{signedUrl:s.toString(),path:e,token:l},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Ut(r))return{data:null,error:r};throw r}}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;try{return{data:await Ei(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
503stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}),error:null}}catch(i){if(r.shouldThrowOnError)throw i;if(Ut(i))return{data:null,error:i};throw i}}async copy(e,t,n){var r=this;try{return{data:{path:(await Ei(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key},error:null}}catch(i){if(r.shouldThrowOnError)throw i;if(Ut(i))return{data:null,error:i};throw i}}async createSignedUrl(e,t,n){var r=this;try{let i=r._getFinalPath(e),a=await Ei(r.fetch,`${r.url}/object/sign/${i}`,ke({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return a={signedUrl:encodeURI(`${r.url}${a.signedURL}${s}`)},{data:a,error:null}}catch(i){if(r.shouldThrowOnError)throw i;if(Ut(i))return{data:null,error:i};throw i}}async createSignedUrls(e,t,n){var r=this;try{const i=await Ei(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),a=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:i.map(s=>ke(ke({},s),{},{signedUrl:s.signedURL?encodeURI(`${r.url}${s.signedURL}${a}`):null})),error:null}}catch(i){if(r.shouldThrowOnError)throw i;if(Ut(i))return{data:null,error:i};throw i}}download(e,t){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),i=r?`?${r}`:"",a=this._getFinalPath(e),s=()=>jf(this.fetch,`${this.url}/${n}/${a}${i}`,{headers:this.headers,noResolveJson:!0});return new nee(s,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);try{return{data:p1(await jf(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Ut(r))return{data:null,error:r};throw r}}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await eee(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Ut(r)&&r instanceof f1){const i=r.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&r.push(i);const a=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",s=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});s!==""&&r.push(s);let l=r.join("&");return l!==""&&(l=`?${l}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${l}`)}}}async remove(e){var t=this;try{return{data:await iP(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Ut(n))return{data:null,error:n};throw n}}async list(e,t,n){var r=this;try{const i=ke(ke(ke({},ree),t),{},{prefix:e||""});return{data:await Ei(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n),error:null}}catch(i){if(r.shouldThrowOnError)throw i;if(Ut(i))return{data:null,error:i};throw i}}async listV2(e,t){var n=this;try{const r=ke({},e);return{data:await Ei(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Ut(r))return{data:null,error:r};throw r}}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const y5="2.90.1",b5={"X-Client-Info":`storage-js/${y5}`};var aee=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1;const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href.replace(/\/$/,""),this.headers=ke(ke({},b5),t),this.fetch=rP(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(e){var t=this;try{const n=t.listBucketOptionsToQueryString(e);return{data:await jf(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Ut(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await jf(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Ut(n))return{data:null,error:n};throw n}}async createBucket(e,t={public:!1}){var n=this;try{return{data:await Ei(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Ut(r))return{data:null,error:r};throw r}}async updateBucket(e,t){var n=this;try{return{data:await m1(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Ut(r))return{data:null,error:r};throw r}}async emptyBucket(e){var t=this;try{return{data:await Ei(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Ut(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await iP(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Ut(n))return{data:null,error:n};throw n}}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},see=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=ke(ke({},b5),t),this.fetch=rP(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await Ei(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Ut(n))return{data:null,error:n};throw n}}async listBuckets(e){var t=this;try{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return{data:await jf(t.fetch,i,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Ut(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await iP(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Ut(n))return{data:null,error:n};throw n}}from(e){var t=this;if(!KZ(e))throw new fb("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new WZ({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
503),r=this.shouldThrowOnError;return new Proxy(n,{get(i,a){const s=i[a];return typeof s!="function"?s:async(...l)=>{try{return{data:await s.apply(i,l),error:null}}catch(c){if(r)throw c;return{data:null,error:c}}}}})}};const aP={"X-Client-Info":`storage-js/${y5}`,"Content-Type":"application/json"};var x5=class extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function Vr(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}var j0=class extends x5{constructor(e,t,n){super(e),this.name="StorageVectorsApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},oee=class extends x5{constructor(e,t){super(e),this.name="StorageVectorsUnknownError",this.originalError=t}};const sP=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),lee=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rT=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),cee=async(e,t,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const r=e.status||500,i=e;if(typeof i.json=="function")i.json().then(a=>{const s=(a==null?void 0:a.statusCode)||(a==null?void 0:a.code)||r+"";t(new j0(rT(a),r,s))}).catch(()=>{const a=r+"";t(new j0(i.statusText||`HTTP ${r} error`,r,a))});else{const a=r+"";t(new j0(i.statusText||`HTTP ${r} error`,r,a))}}else t(new oee(rT(e),e))},uee=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return r?(lee(r)?(i.headers=ke({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,ke(ke({},i),n)):i};async function dee(e,t,n,r,i,a){return new Promise((s,l)=>{e(n,uee(t,r,i,a)).then(c=>{if(!c.ok)throw c;if(r!=null&&r.noResolveJson)return c;const u=c.headers.get("content-type");return!u||!u.includes("application/json")?{}:c.json()}).then(c=>s(c)).catch(c=>cee(c,l,r))})}async function Fr(e,t,n,r,i){return dee(e,"POST",t,r,i,n)}var hee=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=ke(ke({},aP),t),this.fetch=sP(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(e){var t=this;try{return{data:await Fr(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}async getIndex(e,t){var n=this;try{return{data:await Fr(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Vr(r))return{data:null,error:r};throw r}}async listIndexes(e){var t=this;try{return{data:await Fr(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}async deleteIndex(e,t){var n=this;try{return{data:await Fr(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Vr(r))return{data:null,error:r};throw r}}},fee=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=ke(ke({},aP),t),this.fetch=sP(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(e){var t=this;try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await Fr(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}async getVectors(e){var t=this;try{return{data:await Fr(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}async listVectors(e){var t=this;try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
503if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:await Fr(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}async queryVectors(e){var t=this;try{return{data:await Fr(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}async deleteVectors(e){var t=this;try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await Fr(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}},pee=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=ke(ke({},aP),t),this.fetch=sP(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await Fr(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await Fr(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}async listBuckets(e={}){var t=this;try{return{data:await Fr(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await Fr(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Vr(n))return{data:null,error:n};throw n}}},mee=class extends pee{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new gee(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},gee=class extends hee{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,ke(ke({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,ke(ke({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new vee(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},vee=class extends fee{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,ke(ke({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,ke(ke({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,ke(ke({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,ke(ke({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,ke(ke({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},yee=class extends aee{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new iee(this.url,this.headers,e,this.fetch)}get vectors(){return new mee(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new see(this.url+"/iceberg",this.headers,this.fetch)}};const w5="2.90.1",wc=30*1e3,g1=3,_0=g1*wc,bee="http://localhost:9999",xee="supabase.auth.token",wee={"X-Client-Info":`gotrue-js/${w5}`},v1="X-Supabase-Api-Version",S5={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},See=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,jee=10*60*1e3;
503class _f extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function je(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class _ee extends _f{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function Nee(e){return je(e)&&e.name==="AuthApiError"}class qo extends _f{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class us extends _f{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class Ir extends us{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Pee(e){return je(e)&&e.name==="AuthSessionMissingError"}class rc extends us{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Dm extends us{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Mm extends us{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Aee(e){return je(e)&&e.name==="AuthImplicitGrantRedirectError"}class iT extends us{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Cee extends us{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class y1 extends us{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function N0(e){return je(e)&&e.name==="AuthRetryableFetchError"}class aT extends us{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class b1 extends us{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const fv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),sT=` 504\r=`.split(""),Eee=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<sT.length;t+=1)e[sT[t].charCodeAt(0)]=-2;for(let t=0;t<fv.length;t+=1)e[fv[t].charCodeAt(0)]=t;return e})();function oT(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(fv[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(fv[r]),t.queuedBits-=6}}function j5(e,t,n){const r=Eee[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function lT(e){const t=[],n=s=>{t.push(String.fromCodePoint(s))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},a=s=>{Oee(s,r,n)};for(let s=0;s<e.length;s+=1)j5(e.charCodeAt(s),i,a);return t.join("")}function kee(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Tee(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}kee(r,t)}}function Oee(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Qc(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)j5(e.charCodeAt(i),n,r);return new Uint8Array(t)}function Iee(e){const t=[];return Tee(e,n=>t.push(n)),new Uint8Array(t)}function Yo(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>
504oT(i,n,r)),oT(null,n,r),t.join("")}function Ree(e){return Math.round(Date.now()/1e3)+e}function Dee(){return Symbol("auth-callback")}const On=()=>typeof window<"u"&&typeof document<"u",ko={tested:!1,writable:!1},_5=()=>{if(!On())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ko.tested)return ko.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ko.tested=!0,ko.writable=!0}catch{ko.tested=!0,ko.writable=!1}return ko.writable};function Mee(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,a)=>{t[a]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const N5=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),$ee=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Sc=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},To=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Tn=async(e,t)=>{await e.removeItem(t)};class pb{constructor(){this.promise=new pb.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}pb.promiseConstructor=Promise;function P0(e){const t=e.split(".");if(t.length!==3)throw new b1("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!See.test(t[r]))throw new b1("JWT not in base64url format");return{header:JSON.parse(lT(t[0])),payload:JSON.parse(lT(t[1])),signature:Qc(t[2]),raw:{header:t[0],payload:t[1]}}}async function Lee(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Vee(e,t){return new Promise((r,i)=>{(async()=>{for(let a=0;a<1/0;a++)try{const s=await e(a);if(!t(a,null,s)){r(s);return}}catch(s){if(!t(a,s)){i(s);return}}})()})}function Fee(e){return("0"+e.toString(16)).substr(-2)}function Bee(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let a=0;a<56;a++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,Fee).join("")}async function zee(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(a=>String.fromCharCode(a)).join("")}async function Uee(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await zee(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ic(e,t,n=!1){const r=Bee();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await Sc(e,`${t}-code-verifier`,i);const a=await Uee(r);return[a,r===a?"plain":"s256"]}const Wee=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function qee(e){const t=e.headers.get(v1);if(!t||!t.match(Wee))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Hee(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function Gee(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const Kee=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ac(e){if(!Kee.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function A0(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Yee(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;
504if(typeof r=="symbol"){const a=r.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="Symbol(util.inspect.custom)"||a==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,i)}})}function cT(e){return JSON.parse(JSON.stringify(e))}const $o=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Xee=[502,503,504];async function uT(e){var t;if(!$ee(e))throw new y1($o(e),0);if(Xee.includes(e.status))throw new y1($o(e),e.status);let n;try{n=await e.json()}catch(a){throw new qo($o(a),a)}let r;const i=qee(e);if(i&&i.getTime()>=S5["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new aT($o(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Ir}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((a,s)=>a&&typeof s=="string",!0))throw new aT($o(n),e.status,n.weak_password.reasons);throw new _ee($o(n),e.status||500,r)}const Jee=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function Ee(e,t,n,r){var i;const a=Object.assign({},r==null?void 0:r.headers);a[v1]||(a[v1]=S5["2024-01-01"].name),r!=null&&r.jwt&&(a.Authorization=`Bearer ${r.jwt}`);const s=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(s.redirect_to=r.redirectTo);const l=Object.keys(s).length?"?"+new URLSearchParams(s).toString():"",c=await Qee(e,t,n+l,{headers:a,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function Qee(e,t,n,r,i,a){const s=Jee(t,r,i,a);let l;try{l=await e(n,Object.assign({},s))}catch(c){throw console.error(c),new y1($o(c),0)}if(l.ok||await uT(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await uT(c)}}function Ni(e){var t;let n=null;tte(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=Ree(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function dT(e){const t=Ni(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Os(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function Zee(e){return{data:e,error:null}}function ete(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a}=e,s=gd(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a},c=Object.assign({},s);return{data:{properties:l,user:c},error:null}}function hT(e){return e}function tte(e){return e.access_token&&e.refresh_token&&e.expires_in}const C0=["global","local","others"];class nte{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=N5(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=C0[0]){if(C0.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${C0.join(", ")}`);try{return await Ee(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(je(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await Ee(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Os})}catch(r){if(je(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=gd(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await Ee(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:ete,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(je(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await Ee(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Os})}catch(n){if(je(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,a,s,l,c;try{const u={nextPage:null,lastPage:0,total:0},h=await Ee(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:hT});if(h.error)throw h.error;const d=await h.json(),f=(s=h.headers.get("x-total-count"))!==null&&s!==void 0?s:0,p=(c=(l=h.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>
5040&&(p.forEach(v=>{const m=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(v.split(";")[1].split("=")[1]);u[`${y}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(je(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){ac(t);try{return await Ee(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Os})}catch(n){if(je(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){ac(t);try{return await Ee(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Os})}catch(r){if(je(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){ac(t);try{return await Ee(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Os})}catch(r){if(je(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){ac(t.userId);try{const{data:n,error:r}=await Ee(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(je(n))return{data:null,error:n};throw n}}async _deleteFactor(t){ac(t.userId),ac(t.id);try{return{data:await Ee(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(je(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,a,s,l,c;try{const u={nextPage:null,lastPage:0,total:0},h=await Ee(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:hT});if(h.error)throw h.error;const d=await h.json(),f=(s=h.headers.get("x-total-count"))!==null&&s!==void 0?s:0,p=(c=(l=h.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>0&&(p.forEach(v=>{const m=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(v.split(";")[1].split("=")[1]);u[`${y}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(je(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await Ee(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(je(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await Ee(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(je(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await Ee(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(je(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await Ee(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(je(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await Ee(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(je(n))return{data:null,error:n};throw n}}}function fT(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const sc={debug:!!(globalThis&&_5()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class P5 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class rte extends P5{}async function ite(e,t,n){sc.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),sc.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal}
504,async i=>{if(i){sc.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{sc.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw sc.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new rte(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(sc.debug)try{const a=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(a,null," "))}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function ate(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function A5(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function ste(e){return parseInt(e,16)}function ote(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function lte(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:a=new Date,nonce:s,notBefore:l,requestId:c,resources:u,scheme:h,uri:d,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(s&&s.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${s}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 505`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=A5(e.address),v=h?`${h}://${r}`:r,m=e.statement?`${e.statement} 506`:"",y=`${v} wants you to sign in with your Ethereum account: 507${p} 508 509${m}`;let b=`URI: ${d} 510Version: ${f} 511Chain ID: ${n}${s?` 512Nonce: ${s}`:""} 513Issued At: ${a.toISOString()}`;if(i&&(b+=` 514Expiration Time: ${i.toISOString()}`),l&&(b+=` 515Not Before: ${l.toISOString()}`),c&&(b+=` 516Request ID: ${c}`),u){let w=` 517Resources:`;for(const x of u){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);w+=` 518- ${x}`}b+=w}return`${y} 519${b}`}
519class sn extends Error{constructor({message:t,code:n,cause:r,name:i}){var a;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(a=i??(r instanceof Error?r.name:void 0))!==null&&a!==void 0?a:"Unknown Error",this.code=n}}class pv extends sn{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function cte({error:e,options:t}){var n,r,i;const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new sn({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=a.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new sn({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=a.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new sn({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=a.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new sn({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new sn({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new sn({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return a.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new sn({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new sn({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const s=window.location.hostname;if(C5(s)){if(a.rp.id!==s)return new sn({message:`The RP ID "${a.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new sn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(a.user.id.byteLength<1||a.user.id.byteLength>64)return new sn({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new sn({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new sn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function ute({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new sn({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new sn({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(C5(r)){if(n.rpId!==r)return new sn({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new sn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new sn({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new sn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class dte{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const hte=new dte;function fte(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,i=gd(e,["challenge","user","excludeCredentials"]),a=Qc(t).buffer,s=Object.assign(Object.assign({},n),{id:Qc(n.id).buffer}),l=Object.assign(Object.assign({},i),{challenge:a,user:s});if(r&&r.length>0){l.excludeCredentials=new Array(r.length);for(let c=0;c<r.length;c++){const u=r[c];l.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:Qc(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function pte(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=gd(e,["challenge","allowCredentials"]),i=Qc(t).buffer,a=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){a.allowCredentials=new Array(n.length);for(let s=0;s<n.length;s++){const l=n[s];a.allowCredentials[s]=Object.assign(Object.assign({},l),{id:Qc(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return a}function mte(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:Yo(new Uint8Array(e.response.attestationObject)),clientDataJSON:Yo(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function gte(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Yo(new Uint8Array(i.authenticatorData)),clientDataJSON:Yo(new Uint8Array(i.clientDataJSON)),signature:Yo(new Uint8Array(i.signature)),userHandle:i.userHandle?Yo(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function C5(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function pT(){var e,t;return!!(On()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function vte(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new pv("Browser returned unexpected credential type",t)}:{data:null,error:new pv("Empty credential response",t)}}
519catch(t){return{data:null,error:cte({error:t,options:e})}}}async function yte(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new pv("Browser returned unexpected credential type",t)}:{data:null,error:new pv("Empty credential response",t)}}catch(t){return{data:null,error:ute({error:t,options:e})}}}const bte={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},xte={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function mv(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const a in i){const s=i[a];if(s!==void 0)if(Array.isArray(s))r[a]=s;else if(n(s))r[a]=s;else if(t(s)){const l=r[a];t(l)?r[a]=mv(l,s):r[a]=mv(s)}else r[a]=s}return r}function wte(e,t){return mv(bte,e,t||{})}function Ste(e,t){return mv(xte,e,t||{})}class jte{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:i},a){try{const{data:s,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!s)return{data:null,error:l};const c=i??hte.createNewAbortSignal();if(s.webauthn.type==="create"){const{user:u}=s.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${r}`),u.displayName||(u.displayName=u.name)}switch(s.webauthn.type){case"create":{const u=wte(s.webauthn.credential_options.publicKey,a==null?void 0:a.create),{data:h,error:d}=await vte({publicKey:u,signal:c});return h?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:h}},error:null}:{data:null,error:d}}case"request":{const u=Ste(s.webauthn.credential_options.publicKey,a==null?void 0:a.request),{data:h,error:d}=await yte(Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:u,signal:c}));return h?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:h}},error:null}:{data:null,error:d}}}}catch(s){return je(s)?{data:null,error:s}:{data:null,error:new qo("Unexpected error in challenge",s)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},a){if(!n)return{data:null,error:new _f("rpId is required for WebAuthn authentication")};try{if(!pT())return{data:null,error:new qo("Browser does not support WebAuthn",null)};const{data:s,error:l}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:a});if(!s)return{data:null,error:l};const{webauthn:c}=s;return this._verify({factorId:t,challengeId:s.challengeId,webauthn:{type:c.type,rpId:n,rpOrigins:r,credential_response:c.credential_response}})}catch(s){return je(s)?{data:null,error:s}:{data:null,error:new qo("Unexpected error in authenticate",s)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},a){if(!n)return{data:null,error:new _f("rpId is required for WebAuthn registration")};try{if(!pT())return{data:null,error:new qo("Browser does not support WebAuthn",null)};const{data:s,error:l}=await this._enroll({friendlyName:t});if(!s)return await this.client.mfa.listFactors().then(h=>{var d;return(d=h.data)===null||d===void 0?void 0:d.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(h=>h?this.client.mfa.unenroll({factorId:h==null?void 0:h.id}):void 0),{data:null,error:l};const{data:c,error:u}=await this._challenge({factorId:s.id,friendlyName:s.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:a});return c?this._verify({factorId:s.id,challengeId:c.challengeId,webauthn:{rpId:n,rpOrigins:r,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(s){return je(s)?{data:null,error:s}:{data:null,error:new qo("Unexpected error in register",s)}}}}ate();const _te={url:bee,storageKey:xee,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:wee,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function mT(e,t,n){return await n()}const oc={};class Nf{get jwks(){var t,n;return(n=(t=oc[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){oc[this.storageKey]=Object.assign(Object.assign({},oc[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=oc[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){oc[this.storageKey]=Object.assign(Object.assign({},oc[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const a=Object.assign(Object.assign({},_te),t);if(this.storageKey=a.storageKey,this.instanceID=(n=Nf.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Nf.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.instanceID>0&&On()){const s=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(s),this.logDebugMessages&&console.trace(s)}if(this.persistSession=a.persistSession,this.autoRefreshToken=a.autoRefreshToken,this.admin=new nte({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=N5(a.fetch),this.lock=a.lock||mT,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,this.throwOnError=a.throwOnError,this.lockAcquireTimeout=a.lockAcquireTimeout,a.lock?this.lock=a.lock:this.persistSession&&On()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=ite:this.lock=mT,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new jte(this)}
519,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(a.storage?this.storage=a.storage:_5()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=fT(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=fT(this.memoryStorage)),On()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${w5}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(On()&&(n=Mee(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),On()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:a}=await this._getSessionFromURL(n,r);if(a){if(this._debug("#_initialize()","error detecting session from URL",a),Aee(a)){const c=(t=a.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:a}}return{error:a}}const{session:s,redirectType:l}=i;return this._debug("#_initialize()","detected session in URL",s,"redirect type",l),await this._saveSession(s),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",s):await this._notifyAllSubscribers("SIGNED_IN",s)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return je(n)?this._returnResult({error:n}):this._returnResult({error:new qo("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const a=await Ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Ni}),{data:s,error:l}=a;if(l||!s)return this._returnResult({data:{user:null,session:null},error:l});const c=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(a){if(je(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signUp(t){var n,r,i;try{let a;if("email"in t){const{email:h,password:d,options:f}=t;let p=null,v=null;this.flowType==="pkce"&&([p,v]=await ic(this.storage,this.storageKey)),a=await Ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:h,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:v},xform:Ni})}else if("phone"in t){const{phone:h,password:d,options:f}=t;a=await Ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:h,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Ni})}else throw new Dm("You must provide either an email or phone number and a password");const{data:s,error:l}=a;if(l||!s)return await Tn(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(a){if(await Tn(this.storage,`${this.storageKey}-code-verifier`),je(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithPassword(t){try{let n;if("email"in t){const{email:a,password:s,options:l}=t;n=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:s,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:dT})}else if("phone"in t){const{phone:a,password:s,options:l}=t;n=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:s,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:dT})}else throw new Dm("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const a=new rc;return this._returnResult({data:{user:null,session:null},error:a})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(je(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,a;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(a=t.o
519ptions)===null||a===void 0?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,i,a,s,l,c,u,h,d,f;let p,v;if("message"in t)p=t.message,v=t.signature;else{const{chain:m,wallet:y,statement:b,options:w}=t;let x;if(On())if(typeof y=="object")x=y;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")x=A.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=y}const S=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href),j=await x.request({method:"eth_requestAccounts"}).then(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!j||j.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const N=A5(j[0]);let _=(r=w==null?void 0:w.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!_){const A=await x.request({method:"eth_chainId"});_=ste(A)}const P={domain:S.host,address:N,statement:b,uri:S.href,version:"1",chainId:_,nonce:(i=w==null?void 0:w.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(s=(a=w==null?void 0:w.signInWithEthereum)===null||a===void 0?void 0:a.issuedAt)!==null&&s!==void 0?s:new Date,expirationTime:(l=w==null?void 0:w.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=w==null?void 0:w.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=w==null?void 0:w.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(h=w==null?void 0:w.signInWithEthereum)===null||h===void 0?void 0:h.resources};p=lte(P),v=await x.request({method:"personal_sign",params:[ote(p),N]})}try{const{data:m,error:y}=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:v},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Ni});if(y)throw y;if(!m||!m.session||!m.user){const b=new rc;return this._returnResult({data:{user:null,session:null},error:b})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:y})}catch(m){if(je(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,i,a,s,l,c,u,h,d,f,p;let v,m;if("message"in t)v=t.message,m=t.signature;else{const{chain:y,wallet:b,statement:w,options:x}=t;let S;if(On())if(typeof b=="object")S=b;else{const N=window;if("solana"in N&&typeof N.solana=="object"&&("signIn"in N.solana&&typeof N.solana.signIn=="function"||"signMessage"in N.solana&&typeof N.solana.signMessage=="function"))S=N.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=b}const j=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const N=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x==null?void 0:x.signInWithSolana),{version:"1",domain:j.host,uri:j.href}),w?{statement:w}:null));let _;if(Array.isArray(N)&&N[0]&&typeof N[0]=="object")_=N[0];else if(N&&typeof N=="object"&&"signedMessage"in N&&"signature"in N)_=N;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)v=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),m=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");v=[`${j.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...w?["",w,""]:[""],"Version: 1",`URI: ${j.href}`,`Issued At: ${(i=(r=x==null?void 0:x.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((a=x==null?void 0:x.signInWithSolana)===null||a===void 0)&&a.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((s=x==null?void 0:x.signInWithSolana)===null||s===void 0)&&s.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((l=x==null?void 0:x.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((c=x==null?void 0:x.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((u=x==null?void 0:x.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((d=(h=x==null?void 0:x.signInWithSolana)===null||h===void 0?void 0:h.resources)===null||d===void 0)&&d.length?["Resources",...x.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(` 520`);const N=await S.signMessage(new TextEncoder().encode(v),"utf8");if(!N||!(N instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=N}}try{const{data:y,error:b}=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:v,signature:Yo(m)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Ni});if(b)throw b;if(!y||!y.session||!y.user){const w=new rc;return this._returnResult({data:{user:null,session:null},error:w})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:b})}catch(y){if(je(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async _exchangeCodeForSession(t){const n=await To(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new Cee;const{data:a,error:s}=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Ni});if(await Tn(this.storage,`${this.storageKey}-code-verifier`),s)throw s;if(!a||!a.session||!a.user){const l=new rc;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:Object.assign(Object.assign({},a),{redirectType:i??null}),error:s})}catch(a){if(await Tn(this.storage,`${this.storageKey}-code-verifier`),je(a))return this._returnResult({data:{user:null,session:null,redirectType:null},error:a});throw a}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:a,nonce:s}=t,l=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:a,nonce:s,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Ni}),{data:c,error:u}=l;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const h=new rc;return this._returnResult({data:{user:null,session:null},error:h})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:u})}catch(n){if(je(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,a,s;try{if("email"in t){const{email:l,options:c}=t;let u=null,h=null;this.flowType==="pkce"&&([u,h]=await ic(this.storage,this.storageKey));const{error:d}=await Ee(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:h},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:l,options:c}=t,{data:u,error:h}=await Ee(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(i=c==null?void 0:c.data)!==null&&i!==void 0?i:{},create_user:(a=c==null?void 0:c.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(s=c==null?void 0:c.channel)!==null&&s!==void 0?s:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:h})}throw new Dm("You must provide either an email or phone number.")}catch(l){if(await Tn(this.storage,`${this.storageKey}-code-verifier`),je(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(t){var n,r;try{let i,a;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,a=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:s,error:l}=await Ee(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:a}}),redirectTo:i,xform:Ni});if(l)throw l;if(!s)throw new Error("An error occurred on token verification.");const c=s.session,u=s.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(je(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,a,s;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await ic(this.storage,this.storageKey));const u=await Ee(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:Zee});return!((a=u.data)===null||a===void 0)&&a.url&&On()&&!(!((s=t.options)===null||s===void 0)&&s.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(l){if(await Tn(this.storage,`${this.storageKey}-code-verifier`),je(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Ir;const{error:i}=await Ee(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(je(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:a}=t,{error:s}=await Ee(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},redirectTo:a==null?void 0:a.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:s})}else if("phone"in t){const{phone:r,type:i,options:a}=t,{data:s,error:l}=await Ee(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:s==null?void 0:s.message_id},error:l})}throw new Dm("You must provide either an email or phone number and a type")}catch(n){if(je(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await To(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
520id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<_0:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const s=await To(this.userStorage,this.storageKey+"-user");s!=null&&s.user?t.user=s.user:t.user=A0()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const s={value:this.suppressGetSessionWarning};t.user=Yee(t.user,s),s.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?this._returnResult({data:{session:null},error:a}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await Ee(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Os}):await this._useSession(async n=>{var r,i,a;const{data:s,error:l}=n;if(l)throw l;return!(!((r=s.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ir}:await Ee(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(a=(i=s.session)===null||i===void 0?void 0:i.access_token)!==null&&a!==void 0?a:void 0,xform:Os})})}catch(n){if(je(n))return Pee(n)&&(await this._removeSession(),await Tn(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:a}=r;if(a)throw a;if(!i.session)throw new Ir;const s=i.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await ic(this.storage,this.storageKey));const{data:u,error:h}=await Ee(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:s.access_token,xform:Os});if(h)throw h;return s.user=u.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),this._returnResult({data:{user:s.user},error:null})})}catch(r){if(await Tn(this.storage,`${this.storageKey}-code-verifier`),je(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Ir;const n=Date.now()/1e3;let r=n,i=!0,a=null;const{payload:s}=P0(t.access_token);if(s.exp&&(r=s.exp,i=r<=n),i){const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};a=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)throw c;a={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return this._returnResult({data:{user:a.user,session:a},error:null})}catch(n){if(je(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:s,error:l}=n;if(l)throw l;t=(r=s.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Ir;const{data:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?this._returnResult({data:{user:null,session:null},error:a}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(je(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!On())throw new Mm("No browser detected.");
520if(t.error||t.error_description||t.error_code)throw new Mm(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new iT("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Mm("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new iT("No code detected.");const{data:w,error:x}=await this._exchangeCodeForSession(t.code);if(x)throw x;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:w.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:a,refresh_token:s,expires_in:l,expires_at:c,token_type:u}=t;if(!a||!l||!s||!u)throw new Mm("No session defined in URL");const h=Math.round(Date.now()/1e3),d=parseInt(l);let f=h+d;c&&(f=parseInt(c));const p=f-h;p*1e3<=wc&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${d}s`);const v=f-d;h-v>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",v,f,h):h-v<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",v,f,h);const{data:m,error:y}=await this._getUser(a);if(y)throw y;const b={provider_token:r,provider_refresh_token:i,access_token:a,expires_in:d,expires_at:f,refresh_token:s,token_type:u,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:b,redirectType:t.type},error:null})}catch(r){if(je(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await To(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:a}=n;if(a)return this._returnResult({error:a});const s=(r=i.session)===null||r===void 0?void 0:r.access_token;if(s){const{error:l}=await this.admin.signOut(s,t);if(l&&!(Nee(l)&&(l.status===404||l.status===401||l.status===403)))return this._returnResult({error:l})}return t!=="others"&&(await this._removeSession(),await Tn(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=Dee(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:a},error:s}=n;if(s)throw s;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",a)),this._debug("INITIAL_SESSION","callback id",t,"session",a)}catch(a){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",a),console.error(a)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await ic(this.storage,this.storageKey,!0));try{return await Ee(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(a){if(await Tn(this.storage,`${this.storageKey}-code-verifier`),je(a))return this._returnResult({data:null,error:a});throw a}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(je(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:i}=await this._useSession(async a=>{var s,l,c,u,h;const{data:d,error:f}=a;if(f)throw f;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(s=t.options)===null||s===void 0?void 0:s.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await Ee(this.fetch,"GET",p,{headers:this.headers,jwt:(h=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&h!==void 0?h:void 0})});if(i)throw i;return On()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(je(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:i,data:{session:a}}=n;if(i)throw i;const{options:s,provider:l,token:c,access_token:u,nonce:h}=t,d=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=a==null?void 0:a.access_token)!==null&&r!==void 0?r:void 0,body:{provider:l,id_token:c,access_token:u,nonce:h,link_identity:!0,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:Ni}),{data:f,error:p}=d;return p?this._returnResult({data:{user:null,session:null},error:p}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new rc}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:p}))}catch(i){if(await Tn(this.storage,`${this.storageKey}-code-verifier`),je(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:a,error:s}=n;if(s)throw s;
520return await Ee(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=a.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(je(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await Vee(async i=>(i>0&&await Lee(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await Ee(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Ni})),(i,a)=>{const s=200*Math.pow(2,i);return a&&N0(a)&&Date.now()+s-r<wc})}catch(r){if(this._debug(n,"error",r),je(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),On()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await To(this.storage,this.storageKey);if(i&&this.userStorage){let s=await To(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!s&&(s={user:i.user},await Sc(this.userStorage,this.storageKey+"-user",s)),i.user=(t=s==null?void 0:s.user)!==null&&t!==void 0?t:A0()}else if(i&&!i.user&&!i.user){const s=await To(this.storage,this.storageKey+"-user");s&&(s!=null&&s.user)?(i.user=s.user,await Tn(this.storage,this.storageKey+"-user"),await Sc(this.storage,this.storageKey,i)):i.user=A0()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const a=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<_0;if(this._debug(r,`session has${a?"":" not"} expired with margin of ${_0}s`),a){if(this.autoRefreshToken&&i.refresh_token){const{error:s}=await this._callRefreshToken(i.refresh_token);s&&(console.error(s),N0(s)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:s,error:l}=await this._getUser(i.access_token);!l&&(s!=null&&s.user)?(i.user=s.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(s){console.error("Error getting user data:",s),this._debug(r,"error getting user data, skipping SIGNED_IN notification",s)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Ir;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new pb;const{data:a,error:s}=await this._refreshAccessToken(t);if(s)throw s;if(!a.session)throw new Ir;await this._saveSession(a.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const l={data:a.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(a){if(this._debug(i,"error",a),je(a)){const s={data:null,error:a};return N0(a)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(s),s}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(a),a}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const a=[],s=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){a.push(c)}});if(await Promise.all(s),a.length>0){for(let l=0;l<a.length;l+=1)console.error(a[l]);throw a[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Tn(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Sc(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const a=cT(i);await Sc(this.storage,this.storageKey,a)}else{const i=cT(n);await Sc(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Tn(this.storage,this.storageKey),await Tn(this.storage,this.storageKey+"-code-verifier"),await Tn(this.storage,this.storageKey+"-user"),this.userStorage&&await Tn(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&On()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
520catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),wc);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/wc);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${wc}ms, refresh threshold is ${g1} ticks`),i<=g1&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof P5)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!On()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[a,s]=await ic(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(s)}`});i.push(l.toString())}if(r!=null&&r.queryParams){const a=new URLSearchParams(r.queryParams);i.push(a.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;return a?this._returnResult({data:null,error:a}):await Ee(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(je(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:a,error:s}=n;if(s)return this._returnResult({data:null,error:s});const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:u}=await Ee(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=a==null?void 0:a.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&c.type==="totp"&&(!((i=c==null?void 0:c.totp)===null||i===void 0)&&i.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(n){if(je(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;
520if(a)return this._returnResult({data:null,error:a});const s=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?mte(t.webauthn.credential_response):gte(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:c}=await Ee(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:s,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}catch(n){if(je(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;if(a)return this._returnResult({data:null,error:a});const s=await Ee(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});if(s.error)return s;const{data:l}=s;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:fte(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:pte(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(je(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const i={all:[],phone:[],totp:[],webauthn:[]};for(const a of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(a),a.status==="verified"&&i[a.factor_type].push(a);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(){var t,n;const{data:{session:r},error:i}
520=await this.getSession();if(i)return this._returnResult({data:null,error:i});if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:a}=P0(r.access_token);let s=null;a.aal&&(s=a.aal);let l=s;((n=(t=r.user.factors)===null||t===void 0?void 0:t.filter(h=>h.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(l="aal2");const u=a.amr||[];return{data:{currentLevel:s,nextLevel:l,currentAuthenticationMethods:u},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await Ee(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new Ir})})}catch(n){if(je(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:a}=r;if(a)return this._returnResult({data:null,error:a});if(!i)return this._returnResult({data:null,error:new Ir});const s=await Ee(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return s.data&&s.data.redirect_url&&On()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(s.data.redirect_url),s})}catch(r){if(je(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:a}=r;if(a)return this._returnResult({data:null,error:a});if(!i)return this._returnResult({data:null,error:new Ir});const s=await Ee(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return s.data&&s.data.redirect_url&&On()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(s.data.redirect_url),s})}catch(r){if(je(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await Ee(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Ir})})}catch(t){if(je(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await Ee(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Ir})})}catch(n){if(je(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(l=>l.kid===t);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(l=>l.kid===t),r&&this.jwks_cached_at+jee>i)return r;const{data:a,error:s}=await Ee(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(s)throw s;return!a.keys||a.keys.length===0||(this.jwks=a,this.jwks_cached_at=i,r=a.keys.find(l=>l.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:p,error:v}
520=await this.getSession();if(v||!p.session)return this._returnResult({data:null,error:v});r=p.session.access_token}const{header:i,payload:a,signature:s,raw:{header:l,payload:c}}=P0(r);n!=null&&n.allowExpired||Hee(a.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:a,header:i,signature:s},error:null}}const h=Gee(i.alg),d=await crypto.subtle.importKey("jwk",u,h,!0,["verify"]);if(!await crypto.subtle.verify(h,d,s,Iee(`${l}.${c}`)))throw new b1("Invalid JWT signature");return{data:{claims:a,header:i,signature:s},error:null}}catch(r){if(je(r))return this._returnResult({data:null,error:r});throw r}}}Nf.nextInstanceID={};const Nte=Nf,Pte="2.90.1";let xh="";typeof Deno<"u"?xh="deno":typeof document<"u"?xh="web":typeof navigator<"u"&&navigator.product==="ReactNative"?xh="react-native":xh="node";const Ate={"X-Client-Info":`supabase-js-${xh}/${Pte}`},Cte={headers:Ate},Ete={schema:"public"},kte={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Tte={};function Pf(e){"@babel/helpers - typeof";return Pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pf(e)}function Ote(e,t){if(Pf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Pf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ite(e){var t=Ote(e,"string");return Pf(t)=="symbol"?t:t+""}function Rte(e,t,n){return(t=Ite(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gT(Object(n),!0).forEach(function(r){Rte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Dte=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Mte=()=>Headers,$te=(e,t,n)=>{const r=Dte(n),i=Mte();return async(a,s)=>{var l;const c=(l=await t())!==null&&l!==void 0?l:e;let u=new i(s==null?void 0:s.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),r(a,Jt(Jt({},s),{},{headers:u}))}};function Lte(e){return e.endsWith("/")?e:e+"/"}function Vte(e,t){var n,r;const{db:i,auth:a,realtime:s,global:l}=e,{db:c,auth:u,realtime:h,global:d}=t,f={db:Jt(Jt({},c),i),auth:Jt(Jt({},u),a),realtime:Jt(Jt({},h),s),storage:{},global:Jt(Jt(Jt({},d),l),{},{headers:Jt(Jt({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=l==null?void 0:l.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function Fte(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(Lte(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var Bte=class extends Nte{constructor(e){super(e)}},zte=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const a=Fte(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const s=`sb-${a.hostname.split(".")[0]}-auth-token`,l={db:Ete,realtime:Tte,auth:Jt(Jt({},kte),{},{storageKey:s}),global:Cte},c=Vte(n??{},l);if(this.storageKey=(r=c.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=c.global.headers)!==null&&i!==void 0?i:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(h,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=$te(t,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Jt({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.accessToken&&this.accessToken().then(h=>this.realtime.setAuth(h)).catch(h=>console.warn("Failed to set initial Realtime auth token:",h)),this.rest=new wZ(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new yee(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new gZ(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
520channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:a,flowType:s,lock:l,debug:c,throwOnError:u},h,d){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Bte({url:this.authUrl.href,headers:Jt(Jt({},f),h),storageKey:a,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:s,lock:l,debug:c,throwOnError:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new LZ(this.realtimeUrl.href,Jt(Jt({},e),{},{params:Jt(Jt({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const Ute=(e,t,n)=>new zte(e,t,n);function Wte(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}Wte()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const qte="https://hhzqlaygxohfpedujlsm.supabase.co",Hte="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhoenFsYXlneG9oZnBlZHVqbHNtIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjgxMjE1NDksImV4cCI6MjA4MzY5NzU0OX0.NHeue8OshzWpHqtK_LZYXUaCZjWhk4hTn6FW865VojQ",X=Ute(qte,Hte,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),ku="post_login_redirect",Gte=["/auth/whatsapp/signup-success","/auth/whatsapp/instagram-success","/connect/instagram","/auth/instagram/callback"];function Lp(e){return typeof e=="string"&&e.startsWith("/")&&!e.startsWith("//")}function Kte(e){return["/login","/signup","/forgot-password","/verify-email","/reset-password"].includes(e)}function Yte(e,t){return Lp(t)&&!Kte(e)}function Xte(e){return e==="/onboarding"||e==="/onboarding/web"}function E5(e){return Lp(e)&&Gte.some(t=>e.startsWith(t))}function Jte(e,t,n){return!Xte(e)&&t!==!0&&!E5(n)}function Qte({pathname:e,search:t,storedRedirect:n,redirectParam:r,fromState:i,redirectTo:a,onboardingCompleted:s}){return new URLSearchParams(t).get("from")==="landing"||Jte(e,s,n??r??i??a)?"/onboarding/web":[n,r,i,a,"/onboarding/web"].find(Lp)||"/onboarding/web"}function Zte(e,t,n){return Yte(e,t)&&(n===!0||E5(t))}function k5(){if(typeof window>"u")return null;const e=window.localStorage.getItem(ku)||window.sessionStorage.getItem(ku);return Lp(e)?e:null}function vT(e){typeof window>"u"||!Lp(e)||(window.localStorage.setItem(ku,e),window.sessionStorage.setItem(ku,e))}function oP(){typeof window>"u"||(window.localStorage.removeItem(ku),window.sessionStorage.removeItem(ku))}const lP="G-2ND45G09WF";function T5(e,t){typeof window>"u"||!window.gtag||window.gtag("event","page_view",{page_path:e,page_location:window.location.origin+e,page_title:document.title,send_to:lP})}function Cl(e,t={}){typeof window>"u"||!window.gtag||window.gtag("event",e,t)}function O5(e,t={}){typeof window>"u"||!window.gtag||(window.gtag("config",lP,{user_id:e}),Object.keys(t).length&&window.gtag("set","user_properties",t))}function I5(){typeof window>"u"||!window.gtag||window.gtag("config",lP,{user_id:null})}const gv=Object.freeze(Object.defineProperty({__proto__:null,identifyUser:O5,resetUser:I5,trackEvent:Cl,trackPageView:T5},Symbol.toStringTag,{value:"Module"})),R5=g.createContext(void 0);function yT(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t?decodeURIComponent(t[2]):null}function ene({children:e}){const[t,n]=g.useState(null),[r,i]=g.useState(null),[a,s]=g.useState(null),l=g.useRef(null),c=g.useRef(null),[u,h]=g.useState(!0),d=g.useCallback(async S=>{try{const{data:j,error:N}=await X.from("users").select("*").eq("id",S).maybeSingle();return N?(console.error("Error fetching profile:",N),null):j}catch(j){return console.error("Error in fetchProfile:",j),null}},[]),f=g.useCallback(async()=>
520{if(t){const S=await d(t.id);i(S)}},[t,d]);g.useEffect(()=>{const S=window.setTimeout(()=>{h(N=>!1)},12e3),{data:{subscription:j}}=X.auth.onAuthStateChange((N,_)=>{s(_),n((_==null?void 0:_.user)??null),_!=null&&_.user?setTimeout(()=>{(async()=>{var P;try{const A=await d(_.user.id);if(i(A),A&&c.current!==_.user.id&&!A.phone&&!A.business_background&&!A.onboarding_completed&&(A.language==="he"||A.content_language==="he")){c.current=_.user.id;const C=(typeof navigator<"u"&&navigator.language||"en").slice(0,2).toLowerCase()==="he"?"he":"en",E={};A.language==="he"&&C!=="he"&&(E.language=C),A.content_language==="he"&&C!=="he"&&(E.content_language=C),Object.keys(E).length>0&&X.from("users").update(E).eq("id",_.user.id).then(({error:I})=>{I||i(O=>O&&{...O,...E})})}if(N==="SIGNED_IN"){l.current!==_.user.id&&(O5(_.user.id,{plan:(A==null?void 0:A.plan)??"free",language:(A==null?void 0:A.language)??"he"}),Cl("login",{method:((P=_.user.app_metadata)==null?void 0:P.provider)??"email"})),l.current!==_.user.id&&(l.current=_.user.id,X.functions.invoke("meta-capi-send",{body:{event_name:"Login",user_id:_.user.id,email:_.user.email,phone:(A==null?void 0:A.phone)||null,fbp:yT("_fbp"),fbc:yT("_fbc"),action_source:"website",event_source_url:typeof window<"u"?window.location.href:void 0,source_caller:"AuthContext"}}).catch(C=>{}));const k=k5();if(Zte(window.location.pathname,k,A==null?void 0:A.onboarding_completed)){oP(),window.location.replace(window.location.origin+k);return}}}finally{h(!1)}})()},0):(i(null),h(!1))});return X.auth.getSession().then(({data:{session:N}})=>{s(N),n((N==null?void 0:N.user)??null),N!=null&&N.user?d(N.user.id).then(_=>{i(_),h(!1)}):h(!1)}),()=>{window.clearTimeout(S),j.unsubscribe()}},[d]);const p=g.useCallback(async(S,j,N)=>{try{console.log("[auth] signUp:start",{emailDomain:S.split("@")[1]||"(unknown)",redirectTo:`${window.location.origin}/verify-email`});const{error:_}=await X.auth.signUp({email:S,password:j,options:{emailRedirectTo:`${window.location.origin}/verify-email`,data:{full_name:N||""}}});return _?(console.log("[auth] signUp:error",{message:_.message}),{error:new Error(_.message)}):(console.log("[auth] signUp:ok"),{error:null})}catch(_){return console.log("[auth] signUp:exception",_),{error:_ instanceof Error?_:new Error("Sign up failed")}}},[]),v=g.useCallback(async(S,j)=>{try{console.log("[auth] signIn:start",{emailDomain:S.split("@")[1]||"(unknown)"});const{error:N}=await X.auth.signInWithPassword({email:S,password:j});return N?(console.log("[auth] signIn:error",{message:N.message}),{error:new Error(N.message)}):(console.log("[auth] signIn:ok"),{error:null})}catch(N){return console.log("[auth] signIn:exception",N),{error:N instanceof Error?N:new Error("Sign in failed")}}},[]),m=g.useCallback(async()=>{try{console.log("[auth] signInWithGoogle:start",{redirectTo:`${window.location.origin}/login`});const{error:S}=await X.auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/login`}});return S?(console.log("[auth] signInWithGoogle:error",{message:S.message}),{error:new Error(S.message)}):(console.log("[auth] signInWithGoogle:redirecting"),{error:null})}catch(S){return console.log("[auth] signInWithGoogle:exception",S),{error:S instanceof Error?S:new Error("Google sign in failed")}}},[]),y=g.useCallback(async()=>{Cl("logout"),I5(),l.current=null,await X.auth.signOut(),n(null),i(null),s(null)},[]),b=g.useCallback(async S=>{try{const{error:j}=await X.auth.resetPasswordForEmail(S,{redirectTo:`${window.location.origin}/reset-password`});return j?{error:new Error(j.message)}:{error:null}}catch(j){return{error:j instanceof Error?j:new Error("Password reset failed")}}},[]),w=g.useCallback(async S=>{var j,N;if(!t)return console.error("[auth] updateProfile: no user"),{error:new Error("Not authenticated")};try{const _=t.email??((j=a==null?void 0:a.user)==null?void 0:j.email);if(!_)return console.error("[auth] updateProfile: missing email"),{error:new Error("Missing email on authenticated user")};const P={id:t.id,email:_,...S};console.log("[auth] updateProfile: upserting",{userId:t.id.substring(0,8),keys:Object.keys(S),values:Object.entries(S).map(([C,E])=>[C,typeof E=="string"?E.substring(0,20)+"...":E])});const{error:A,data:k}=await X.from("users").upsert(P,{onConflict:"id"}).select();return A?(console.error("[auth] updateProfile: upsert FAILED",{code:A.code,message:A.message,details:A.details,hint:A.hint}),(N=A.message)!=null&&N.includes("foreign key constraint")&&(console.warn("[auth] FK constraint error â signing out stale session"),await X.auth.signOut(),n(null),i(null),s(null)),{error:new Error(A.message)}):(console.log("[auth] updateProfile: SUCCESS",{rowsReturned:(k==null?void 0:k.length)??0}),await f(),{error:null})}catch(_){return console.error("[auth] updateProfile: EXCEPTION",_),{error:_ instanceof Error?_:new Error("Profile update failed")}}},[t,a,f]),x={user:t,profile:r,session:a,loading:u,signUp:p,signIn:v,signInWithGoogle:m,signOut:y,resetPassword:b,updateProfile:w,refreshProfile:f};return o.jsx(R5.Provider,{value:x,children:e})}function Hi(){const e=g.useContext(R5);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}function Or({children:e,redirectTo:t="/login"}){const{user:n,loading:r}=Hi(),i=zn(),a=pr();return g.useEffect(()=>{if(!r&&!n){const s=`${a.pathname}${a.search}${a.hash}`,l=new URLSearchParams;s&&l.set("redirect",s),i({pathname:t,search:l.toString()?`?${l.toString()}`:""},{replace:!0,state:{from:s}})}},[n,r,i,t,a.pathname,a.search,a.hash]),r?o.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:o.jsxs("div",{className:"flex flex-col items-center gap-4",children:[o.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"}),o.jsx("p",{className:"text-muted-foreground",children:"Loading..."})]})}):n?o.jsx(o.Fragment,{children:e}):o.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-6 text-center",children:o.jsxs("div",{className:"max-w-md
520space-y-3",children:[o.jsx("div",{className:"h-8 w-8 mx-auto animate-spin rounded-full border-4 border-primary border-t-transparent"}),o.jsx("p",{className:"text-foreground font-medium",children:"Redirecting to sign inâ¦"}),!1]})})}function E0({children:e,redirectTo:t}){const{user:n,profile:r,loading:i}=Hi(),a=zn(),s=pr();return g.useEffect(()=>{var l;if(!i&&n){const c=k5(),h=new URLSearchParams(s.search).get("redirect"),d=(l=s.state)==null?void 0:l.from,f=Qte({pathname:s.pathname,search:s.search,storedRedirect:c,redirectParam:h,fromState:d,redirectTo:t,onboardingCompleted:r==null?void 0:r.onboarding_completed});c&&oP(),a(f,{replace:!0})}},[n,r==null?void 0:r.onboarding_completed,i,a,t,s.pathname,s.search,s.state]),i?o.jsx(o.Fragment,{children:e}):n?o.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-6 text-center",children:o.jsxs("div",{className:"max-w-md space-y-3",children:[o.jsx("div",{className:"h-8 w-8 mx-auto animate-spin rounded-full border-4 border-primary border-t-transparent"}),o.jsx("p",{className:"text-foreground font-medium",children:"Redirectingâ¦"}),!1]})}):o.jsx(o.Fragment,{children:e})}const Re=e=>typeof e=="string",eh=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},bT=e=>e==null?"":""+e,tne=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},nne=/###/g,xT=e=>e&&e.indexOf("###")>-1?e.replace(nne,"."):e,wT=e=>!e||Re(e),Fh=(e,t,n)=>{const r=Re(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(wT(e))return{};const a=xT(r[i]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++i}return wT(e)?{}:{obj:e,k:xT(r[i])}},ST=(e,t,n)=>{const{obj:r,k:i}=Fh(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=Fh(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Fh(e,s,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},rne=(e,t,n,r)=>{const{obj:i,k:a}=Fh(e,t,Object);i[a]=i[a]||[],i[a].push(n)},vv=(e,t)=>{const{obj:n,k:r}=Fh(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},ine=(e,t,n)=>{const r=vv(e,n);return r!==void 0?r:vv(t,n)},D5=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Re(e[r])||e[r]instanceof String||Re(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):D5(e[r],t[r],n):e[r]=t[r]);return e},lc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ane={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const sne=e=>Re(e)?e.replace(/[&<>"'\/]/g,t=>ane[t]):e;class one{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const lne=[" ",",","?","!",";"],cne=new one(20),une=(e,t,n)=>{t=t||"",n=n||"";const r=lne.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const i=cne.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let a=!i.test(e);if(!a){const s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(a=!0)}return a},x1=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let a=0;a<r.length;){if(!i||typeof i!="object")return;let s,l="";for(let c=a;c<r.length;++c)if(c!==a&&(l+=n),l+=r[c],s=i[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&c<r.length-1)continue;a+=c-a+1;break}i=s}return i},Af=e=>e==null?void 0:e.replace("_","-"),dne={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class yv{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||dne,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(Re(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new yv(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new yv(this.logger,t)}}var ua=new yv;let mb=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEac
vendor: 3,041 bytes, line 520
520h(([i,a])=>{for(let s=0;s<a;s++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,a])=>{for(let s=0;s<a;s++)i.apply(i,[t,...n])})}};class jT extends mb{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){var u,h;const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):Re(r)&&a?l.push(...r.split(a)):l.push(r)));const c=vv(this.data,l);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),c||!s||!Re(r)?c:x1((h=(u=this.data)==null?void 0:u[t])==null?void 0:h[n],r,a)}addResource(t,n,r,i,a={silent:!1}){const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),ST(this.data,l,i),a.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const a in r)(Re(r[a])||Array.isArray(r[a]))&&this.addResource(t,n,a,r[a],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,a,s={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let c=vv(this.data,l)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?D5(c,r,a):c={...c,...r},ST(this.data,l,c),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var M5={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,r,i))??t}),t}};const $5=Symbol("i18next/PATH_KEY");function hne(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),i===$5?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function w1(e,t){const{[$5]:n}=e(hne());return n.join((t==null?void 0:t.keySeparator)??".")}const _T={},k0=e=>!Re(e)&&typeof e!="boolean"&&typeof e!="number";class bv extends mb{constructor(t,n={}){super(),tne(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
520i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ua.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);if((i==null?void 0:i.res)===void 0)return!1;const a=k0(i.res);return!(r.returnObjects===!1&&a)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!une(t,r,i);if(s&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:Re(a)?[a]:a};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(i)}return{key:t,namespaces:Re(a)?[a]:a}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=w1(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]);const a=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:l,namespaces:c}=this.extractFromKey(t[t.length-1],i),u=c[c.length-1];let h=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;h===void 0&&(h=":");const d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((d==null?void 0:d.toLowerCase())==="cimode")return f?a?{res:`${u}${h}${l}`,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${h}${l}`:a?{res:l,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:l;const p=this.resolve(t,i);let v=p==null?void 0:p.res;const m=(p==null?void 0:p.usedKey)||l,y=(p==null?void 0:p.exactUsedKey)||l,b=["[object Number]","[object Function]","[object RegExp]"],w=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,S=i.count!==void 0&&!Re(i.count),j=bv.hasDefaultValue(i),N=S?this.pluralResolver.getSuffix(d,i.count,i):"",_=i.ordinal&&S?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",P=S&&!i.ordinal&&i.count===0,A=P&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${N}`]||i[`defaultValue${_}`]||i.defaultValue;let k=v;x&&!v&&j&&(k=A);const C=k0(k),E=Object.prototype.toString.apply(k);if(x&&k&&C&&b.indexOf(E)<0&&!(Re(w)&&Array.isArray(k))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,k,{...i,ns:c}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(p.res=I,p.usedParams=this.getUsedParamsDetails(i),p):I}if(s){const I=Array.isArray(k),O=I?[]:{},M=I?y:m;for(const $ in k)if(Object.prototype.hasOwnProperty.call(k,$)){const L=`${M}${s}${$}`;j&&!v?O[$]=this.translate(L,{...i,defaultValue:k0(A)?A[$]:void 0,joinArrays:!1,ns:c}):O[$]=this.translate(L,{...i,joinArrays:!1,ns:c}),O[$]===L&&(O[$]=k[$])}v=O}}else if(x&&Re(w)&&Array.isArray(v))v=v.join(w),v&&(v=this.extendTranslation(v,t,i,r));else{let I=!1,O=!1;!this.isValidLookup(v)&&j&&(I=!0,v=A),this.isValidLookup(v)||(O=!0,v=l);const $=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:v,L=j&&A!==v&&this.options.updateMissing;if(O||I||L){if(this.logger.log(L?"updateKey":"missingKey",d,u,l,L?A:v),s){const F=this.resolve(l,{...i,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let T=[];const R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&R&&R[0])for(let F=0;F<R.length;F++)T.push(R[F]);else this.options.saveMissingTo==="all"?T=this.languageUtils.toResolveHierarchy(i.lng||this.language):T.push(i.lng||this.language);const z=(F,B,W)=>{var fe;const Z=j&&W!==v?W:$;this.options.missingKeyHandler?this.options.missingKeyHandler(F,u,B,Z,L,i):(fe=this.backendConnector)!=null&&fe.saveMissing&&this.backendConnector.saveMissing(F,u,B,Z,L,i),this.emit
vendor: 33,121 bytes, line 520
520("missingKey",F,u,B,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?T.forEach(F=>{const B=this.pluralResolver.getSuffixes(F,i);P&&i[`defaultValue${this.options.pluralSeparator}zero`]&&B.indexOf(`${this.options.pluralSeparator}zero`)<0&&B.push(`${this.options.pluralSeparator}zero`),B.forEach(W=>{z([F],l+W,i[`defaultValue${W}`]||A)})}):z(T,l,A))}v=this.extendTranslation(v,t,i,p,r),O&&v===l&&this.options.appendNamespaceToMissingKey&&(v=`${u}${h}${l}`),(O||I)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${h}${l}`:l,I?v:void 0,i))}return a?(p.res=v,p.usedParams=this.getUsedParamsDetails(i),p):v}extendTranslation(t,n,r,i,a){var c,u;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const h=Re(t)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(h){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&!Re(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||i.usedLng,r),h){const p=t.match(this.interpolator.nestingRegexp),v=p&&p.length;d<v&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...p)=>(a==null?void 0:a[0])===p[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):this.translate(...p,n),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=Re(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=M5.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,a,s,l;return Re(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),h=u.key;i=h;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&!Re(n.count),p=f&&!n.ordinal&&n.count===0,v=n.context!==void 0&&(Re(n.context)||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(y=>{var b,w;this.isValidLookup(r)||(l=y,!_T[`${m[0]}-${y}`]&&((b=this.utils)!=null&&b.hasLoadedNamespace)&&!((w=this.utils)!=null&&w.hasLoadedNamespace(l))&&(_T[`${m[0]}-${y}`]=!0,this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(x=>{var N;if(this.isValidLookup(r))return;s=x;const S=[h];if((N=this.i18nFormat)!=null&&N.addLookupKeys)this.i18nFormat.addLookupKeys(S,h,x,y,n);else{let _;f&&(_=this.pluralResolver.getSuffix(x,n.count,n));const P=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(n.ordinal&&_.indexOf(A)===0&&S.push(h+_.replace(A,this.options.pluralSeparator)),S.push(h+_),p&&S.push(h+P)),v){const k=`${h}${this.options.contextSeparator||"_"}${n.context}`;S.push(k),f&&(n.ordinal&&_.indexOf(A)===0&&S.push(k+_.replace(A,this.options.pluralSeparator)),S.push(k+_),p&&S.push(k+P))}}let j;for(;j=S.pop();)this.isValidLookup(r)||(a=j,r=this.getResource(x,y,j,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Re(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const a of n)delete i[a]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class NT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ua.create("languageUtils")}getScriptPartFromCode(t){if(t=Af(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Af(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Re(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Re(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],a=s=>{s&&(this.isSupportedCode(s)?i.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Re(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Re(t)&&a(this.formatLanguageCode(t)),r.forEach(s=>{i.indexOf(s)<0&&a(this.formatLanguageCode(s))}),i}}const PT={zero:0,one:1,two:2,few:3,many:4,other:5},AT={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class fne{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=ua.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Af(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),AT;if(!t.match(/-|_/))return AT;const c=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(c,n)}return this.pluralRulesCache[a]=s,s}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,a)=>PT[i]-PT[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const CT=(e,t,n,r=".",i=!0)=>{let a=ine(e,t,n);return!a&&i&&Re(n)&&(a=x1(e,n,r),a===void 0&&(a=x1(t,n,r))),a},T0=e=>e.replace(/\$/g,"$$$$");class ET{constructor(t={}){var n;this.logger=ua.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:h,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:v,nestingSuffixEscaped:m,nestingOptionsSeparator:y,maxReplaces:b,alwaysFormat:w}=t.interpolation;this.escape=n!==void 0?n:sne,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?lc(a):s||"{{",this.suffix=l?lc(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=h?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=f?lc(f):p||lc("$t("),this.nestingSuffix=v?lc(v):m||lc(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=b||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){var p;let a,s,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=v=>{if(v.indexOf(this.formatSeparator)<0){const w=CT(n,c,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,r,{...i,...n,interpolationkey:v}):w}const m=v.split(this.formatSeparator),y=m.shift().trim(),b=m.join(this.formatSeparator).trim();return this.format(CT(n,c,y,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...i,...n,interpolationkey:y})};this.resetRegExp();const h=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>T0(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?T0(this.escape(v)):T0(v)}].forEach(v=>{for(l=0;a=v.regex.exec(t);){const m=a[1].trim();if(s=u(m),s===void 0)if(typeof h=="function"){const b=h(t,a,i);s=Re(b)?b:""}else if(i&&Object.prototype.hasOwnProperty.call(i,m))s="";else if(d){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),s="";else!Re(s)&&!this.useRawValueToEscape&&(s=bT(s));const y=v.safeValue(s);if(t=t.replace(a[0],y),d?(v.regex.lastIndex+=s.length,v.regex.lastIndex-=a[0].length):v.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,a,s;const l=(c,u)=>{const h=this.nestingOptionsSeparator;if(c.indexOf(h)<0)return c;const d=c.split(new RegExp(`${h}[ ]*{`));let f=`{${d[1]}`;c=d[0],f=this.interpolate(f,s);const p=f.match(/'/g),v=f.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!v||v.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,m),`${c}${h}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c};for(;i=this.nestingRegexp.exec(t);){let c=[];s={...r},s=s.replace&&!Re(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(u!==-1&&(c=i[1].slice(u).split(this.formatSeparator).map(h=>h.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),a=n(l.call(this,i[1].trim(),s),s),a&&i[0]===t&&!Re(a))return a;Re(a)||(a=bT(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),c.length&&(a=c.reduce((h,d)=>this.format(h,d,r.lng,{...r,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}const pne=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(s=>{if(s){const[l,...c]=s.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),h=l.trim();n[h]||(n[h]=u),u==="false"&&(n[h]=!1),u==="true"&&(n[h]=!0),isNaN(u)||(n[h]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},kT=e=>{const t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const s=r+JSON.stringify(a);let l=t[s];return l||(l=e(Af(r),i),t[s]=l),l(n)}},mne=e=>(t,n,r)=>e(Af(n),r)(t);class gne{constructor(t={}){this.logger=ua.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?kT:mne;this.formats={number:r((i,a)=>{const s=new Intl.NumberFormat(i,{...a});return l=>s.format(l)}),currency:r((i,a)=>{const s=new Intl.NumberFormat(i,{...a,style:"currency"});return l=>s.format(l)}),datetime:r((i,a)=>{const s=new Intl.DateTimeFormat(i,{...a});return l=>s.format(l)}),relativetime:r((i,a)=>{const s=new Intl.RelativeTimeFormat(i,{...a});return l=>s.format(l,a.range||"day")}),list:r((i,a)=>{const s=new Intl.ListFormat(i,{...a});return l=>s.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=kT(n)}format(t,n,r,i={}){const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{var d;const{formatName:u,formatOptions:h}=pne(c);if(this.formats[u]){let f=l;try{const p=((d=i==null?void 0:i.formatParams)==null?void 0:d[i.interpolationkey])||{},v=p.locale||p.lng||i.locale||i.lng||r;f=this.formats[u](l,v,{...h,...i,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const vne=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class yne extends mb{constructor(t,n,r,i={}){var a,s;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=ua.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,r,i.backend,i)}queueLoad(t,n,r,i){const a={},s={},l={},c={};return t.forEach(u=>{let h=!0;n.forEach(d=>{const f=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,h=!1,s[f]===void 0&&(s[f]=!0),a[f]===void 0&&(a[f]=!0),c[d]===void 0&&(c[d]=!0)))}),h||(l[u]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const i=t.split("|"),a=i[0],s=i[1];n&&this.emit("failedLoading",a,s,n),!n&&r&&this.store.addResourceBundle(a,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(c=>{rne(c.loaded,[a],s),vne(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const h=c.loaded[u];h.length&&h.forEach(d=>{l[u][d]===void 0&&(l[u][d]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r,i=0,a=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:a,callback:s});return}this.readingCalls++;const l=(u,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&h&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,a*2,s)},a);return}s(u,h)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(h=>l(null,h)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,n,l)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Re(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Re(n)&&(n=[n]);const a=this.queueLoad(t,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,l),this.loaded(t,s,l)})}saveMissing(t,n,r,i,a,s={},l=()=>{}){var c,u,h,d,f;if((u=(c=this.services)==null?void 0:c.utils)!=null&&u.hasLoadedNamespace&&!((d=(h=this.services)==null?void 0:h.utils)!=null&&d.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((f=this.backend)!=null&&f.create){const p={...s,isUpdate:a},v=this.backend.create.bind(this.backend);if(v.length<6)try{let m;v.length===5?m=v(t,n,r,i,p):m=v(t,n,r,i),m&&typeof m.then=="function"?m.then(y=>l(null,y)).catch(l):l(null,m)}catch(m){l(m)}else v(t,n,r,i,l,p)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const O0=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Re(e[1])&&(t.defaultValue=e[1]),Re(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),TT=e=>{var t,n;return Re(e.ns)&&(e.ns=[e.ns]),Re(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Re(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},$m=()=>{},bne=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Bh extends mb{constructor(t={},n){if(super(),this.options=TT(t),this.services={},this.logger=ua,this.modules={external:[]},bne(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Re(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=O0();this.options={...r,...this.options,...TT(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?ua.init(i(this.modules.logger),this.options):ua.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=gne;const h=new NT(this.options);this.store=new jT(this.options.resources,this.options);const d=this.services;d.logger=ua,d.resourceStore=this.store,d.languageUtils=h,d.pluralResolver=new fne(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=i(u),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new ET(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new yne(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(p,...v)=>{this.emit(p,...v)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new bv(this.services,this.options),this.translator.on("*",(p,...v)=>{this.emit(p,...v)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=$m),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...h)=>this.store[u](...h)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...h)=>(this.store[u](...h),this)});const l=eh(),c=()=>{const u=(h,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),n(h,d)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t,n=$m){var a,s;let r=n;const i=Re(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const l=[],c=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(d=>{d!=="cimode"&&l.indexOf(d)<0&&l.push(d)})};i?c(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>c(h)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,u=>c(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const i=eh();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=$m),this.services.backendConnector.reload(t,n,a=>{i.resolve(),r(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&M5.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=eh();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?this.isLanguageChangingTo===t&&(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(l,(...u)=>this.t(...u))},s=l=>{var h,d;!t&&!l&&this.services.languageDetector&&(l=[]);const c=Re(l)?l:l&&l[0],u=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(Re(l)?[l]:l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(d=(h=this.services.languageDetector)==null?void 0:h.cacheUserLanguage)==null||d.call(h,u)),this.loadResources(u,f=>{a(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,n,r){const i=(a,s,...l)=>{let c;typeof s!="object"?c=this.options.overloadTranslationOptionHandler([a,s].concat(l)):c={...s},c.lng=c.lng||i.lng,c.lngs=c.lngs||i.lngs,c.ns=c.ns||i.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||i.keyPrefix);const u=this.options.keySeparator||".";let h;return c.keyPrefix&&Array.isArray(a)?h=a.map(d=>(typeof d=="function"&&(d=w1(d,{...this.options,...s})),`${c.keyPrefix}${u}${d}`)):(typeof a=="function"&&(a=w1(a,{...this.options,...s})),h=c.keyPrefix?`${c.keyPrefix}${u}${a}`:a),this.t(h,c)};return Re(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(a,t)))}loadNamespaces(t,n){const r=eh();return this.options.ns?(Re(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=eh();Re(t)&&(t=[t]);const i=this.options.preload||[],a=t.filter(s=>i.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=i.concat(a),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){var i,a;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const s=new Intl.Locale(t);if(s&&s.getTextInfo){const l=s.getTextInfo();if(l&&l.direction)return l.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((a=this.services)==null?void 0:a.languageUtils)||new NT(O0());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Bh(t,n);return r.createInstance=Bh.createInstance,r}cloneInstance(t={},n=$m){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},a=new Bh(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r){const l=Object.keys(this.store.data).reduce((c,u)=>(c[u]={...this.store.data[u]},c[u]=Object.keys(c[u]).reduce((h,d)=>(h[d]={...c[u][d]},h),c[u]),c),{});a.store=new jT(l,i),a.services.resourceStore=a.store}if(t.interpolation){const c={...O0().interpolation,...this.options.interpolation,...t.interpolation},u={...i,interpolation:c};a.services.interpolator=new ET(u)}return a.translator=new bv(a.services,i),a.translator.on("*",(l,...c)=>{a.emit(l,...c)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const mr=Bh.createInstance();mr.createInstance;mr.dir;mr.init;mr.loadResources;mr.reloadResources;mr.use;mr.changeLanguage;mr.getFixedT;mr.t;mr.exists;mr.setDefaultNamespace;mr.hasLoadedNamespace;mr.loadNamespaces;mr.loadLanguages;const xne=(e,t,n,r)=>{var a,s,l,c;const i=[n,{code:t,...r||{}}];if((s=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&s.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);El(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(c=(l=e==null?void 0:e.services)==null?void 0:l.logger)!=null&&c.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},OT={},L5=(e,t,n,r)=>{El(n)&&OT[n]||(El(n)&&(OT[n]=new Date),xne(e,t,n,r))},V5=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},S1=(e,t,n)=>{e.loadNamespaces(t,V5(e,n))},IT=(e,t,n,r)=>{if(El(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return S1(e,n,r);
520n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,V5(e,r))},wne=(e,t,n={})=>!t.languages||!t.languages.length?(L5(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),El=e=>typeof e=="string",Sne=e=>typeof e=="object"&&e!==null,jne=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,_ne={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},Nne=e=>_ne[e],Pne=e=>e.replace(jne,Nne);let j1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Pne,transDefaultProps:void 0};const Ane=(e={})=>{j1={...j1,...e}},Cne=()=>j1;let F5;const Ene=e=>{F5=e},kne=()=>F5,Tne={type:"3rdParty",init(e){Ane(e.options.react),Ene(e)}},One=g.createContext();class Ine{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var B5={exports:{}},z5={};/** 521 * @license React 522 * use-sync-external-store-shim.production.js 523 * 524 * Copyright (c) Meta Platforms, Inc. and affiliates. 525 * 526 * This source code is licensed under the MIT license found in the 527 * LICENSE file in the root directory of this source tree. 528 */var Tu=g;function Rne(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dne=typeof Object.is=="function"?Object.is:Rne,Mne=Tu.useState,$ne=Tu.useEffect,Lne=Tu.useLayoutEffect,Vne=Tu.useDebugValue;function Fne(e,t){var n=t(),r=Mne({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return Lne(function(){i.value=n,i.getSnapshot=t,I0(i)&&a({inst:i})},[e,n,t]),$ne(function(){return I0(i)&&a({inst:i}),e(function(){I0(i)&&a({inst:i})})},[e]),Vne(n),n}function I0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dne(e,n)}catch{return!0}}function Bne(e,t){return t()}var zne=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Bne:Fne;z5.useSyncExternalStore=Tu.useSyncExternalStore!==void 0?Tu.useSyncExternalStore:zne;B5.exports=z5;var Une=B5.exports;const Wne=(e,t)=>El(t)?t:Sne(t)&&El(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,qne={t:Wne,ready:!1}
528,Hne=()=>()=>{},Le=(e,t={})=>{var A,k,C;const{i18n:n}=t,{i18n:r,defaultNS:i}=g.useContext(One)||{},a=n||r||kne();a&&!a.reportNamespaces&&(a.reportNamespaces=new Ine),a||L5(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=g.useMemo(()=>{var E;return{...Cne(),...(E=a==null?void 0:a.options)==null?void 0:E.react,...t}},[a,t]),{useSuspense:l,keyPrefix:c}=s,u=i||((A=a==null?void 0:a.options)==null?void 0:A.defaultNS),h=El(u)?[u]:u||["translation"],d=g.useMemo(()=>h,h);(C=(k=a==null?void 0:a.reportNamespaces)==null?void 0:k.addUsedNamespaces)==null||C.call(k,d);const f=g.useRef(0),p=g.useCallback(E=>{if(!a)return Hne;const{bindI18n:I,bindI18nStore:O}=s,M=()=>{f.current+=1,E()};return I&&a.on(I,M),O&&a.store.on(O,M),()=>{I&&I.split(" ").forEach($=>a.off($,M)),O&&O.split(" ").forEach($=>a.store.off($,M))}},[a,s]),v=g.useRef(),m=g.useCallback(()=>{if(!a)return qne;const E=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(T=>wne(T,a,s)),I=t.lng||a.language,O=f.current,M=v.current;if(M&&M.ready===E&&M.lng===I&&M.keyPrefix===c&&M.revision===O)return M;const L={t:a.getFixedT(I,s.nsMode==="fallback"?d:d[0],c),ready:E,lng:I,keyPrefix:c,revision:O};return v.current=L,L},[a,d,c,s,t.lng]),[y,b]=g.useState(0),{t:w,ready:x}=Une.useSyncExternalStore(p,m,m);g.useEffect(()=>{if(a&&!x&&!l){const E=()=>b(I=>I+1);t.lng?IT(a,t.lng,d,E):S1(a,d,E)}},[a,t.lng,d,x,l,y]);const S=a||{},j=g.useRef(null),N=g.useRef(),_=E=>{const I=Object.getOwnPropertyDescriptors(E);I.__original&&delete I.__original;const O=Object.create(Object.getPrototypeOf(E),I);if(!Object.prototype.hasOwnProperty.call(O,"__original"))try{Object.defineProperty(O,"__original",{value:E,writable:!1,enumerable:!1,configurable:!1})}catch{}return O},P=g.useMemo(()=>{const E=S,I=E==null?void 0:E.language;let O=E;E&&(j.current&&j.current.__original===E?N.current!==I?(O=_(E),j.current=O,N.current=I):O=j.current:(O=_(E),j.current=O,N.current=I));const M=[w,O,x];return M.t=w,M.i18n=O,M.ready=x,M},[w,S,x,S.resolvedLanguage,S.language,S.languages]);if(a&&l&&!x)throw new Promise(E=>{const I=()=>E();t.lng?IT(a,t.lng,d,I):S1(a,d,I)});return P},Gne=["he","ar"];function Kne({children:e}){const{i18n:t}=Le();return g.useEffect(()=>{var r;const n=Gne.includes(((r=t.language)==null?void 0:r.substring(0,2))||"en");document.documentElement.dir=n?"rtl":"ltr",document.documentElement.lang=t.language||"en"},[t.language]),o.jsx(o.Fragment,{children:e})}function Yne(){const e=pr();return g.useEffect(()=>{const t=e.pathname+e.search;T5(t)},[e.pathname,e.search]),null}const{slice:Xne,forEach:Jne}=[];function Qne(e){return Jne.call(Xne.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}
vendor: 6,641 bytes, line 528
528function Zne(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const RT=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ere=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let a=`${e}=${i}`;if(r.maxAge>0){const s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(s)}`}if(r.domain){if(!RT.test(r.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${r.domain}`}if(r.path){if(!RT.test(r.path))throw new TypeError("option path is invalid");a+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(a+="; Partitioned"),a},DT={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=ere(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var tre={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return DT.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:a}=t;n&&typeof document<"u"&&DT.create(n,e,r,i,a)}},nre={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const s=i.substring(1).split("&");for(let l=0;l<s.length;l++){const c=s[l].indexOf("=");c>0&&s[l].substring(0,c)===t&&(n=s[l].substring(c+1))}}return n}},rre={name:"hash",lookup(e){var i;let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:a}=window.location;if(a&&a.length>2){const s=a.substring(1);if(t){const l=s.split("&");for(let c=0;c<l.length;c++){const u=l[c].indexOf("=");u>0&&l[c].substring(0,u)===t&&(r=l[c].substring(u+1))}}if(r)return r;if(!r&&n>-1){const l=a.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?(i=l[typeof n=="number"?n:0])==null?void 0:i.replace("/",""):void 0}}}return r}};let cc=null;const MT=()=>{if(cc!==null)return cc;try{if(cc=typeof window<"u"&&window.localStorage!==null,!cc)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{cc=!1}return cc};var ire={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&MT())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&MT()&&window.localStorage.setItem(n,e)}};let uc=null;const $T=()=>{if(uc!==null)return uc;try{if(uc=typeof window<"u"&&window.sessionStorage!==null,!uc)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{uc=!1}return uc};var are={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&$T())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&$T()&&window.sessionStorage.setItem(n,e)}},sre={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let a=0;a<n.length;a++)t.push(n[a]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},ore={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},lre={name:"path",lookup(e){var i;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(i=n[typeof t=="number"?t:0])==null?void 0:i.replace("/",""):void 0}},cre={name:"subdomain",lookup(e){var i,a;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((a=(i=window.location)==null?void 0:i.hostname)==null?void 0:a.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let U5=!1;try{document.cookie,U5=!0}catch{}const W5=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];U5||W5.splice(1,1);const ure=()=>({order:W5,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class q5{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Qne(n,this.options||{},ure()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(tre),this.addDetector(nre),this.addDetector(ire),this.addDetector(are),this.addDetector(sre),this.addDetector(ore),this.addDetector(lre),this.addDetector(cre),this.addDetector(rre)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!Zne(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}
528cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}q5.type="languageDetector";const dre={howItWorks:"How it works",pricing:"Pricing",faq:"FAQ",blog:"Blog",startFree:"Start Free",login:"Log In",signUp:"Sign Up Free",dashboard:"Dashboard",signOut:"Sign Out",signedInAs:"Signed in as"},hre={aria:"Animated example: upload, AI prepares post, you approve and publish",step1:"1. Upload a photo and write the subject",step2:"2. AI prepares the post for you â¨",step3:"3. Approve and publish in one tap ð",subjectLabel:"Post subject",subjectText:"Fresh croissants out of the oven this morning â",photoUploaded:"Photo added",aiTitle:"Visible AI is preparing your post",aiSubtitle:"Caption, image and hashtags",aiStep1:"Analyzing your photo",aiStep2:"Writing the caption",aiStep3:"Adding hashtags and visuals",approveButton:"Approve & publish",published:"Published to Instagram"},fre={online:"online",botGreeting:"Hi! I'm Visible AI ð Send me a photo and tell me about your post - I'll create it for you!",userMessage:"Fresh croissants from the oven this morning ð¥",botProcessing:"Beautiful! ⨠Creating an Instagram post for you now...",likes:"248 likes",caption:"Wake up to the smell of fresh croissants ð¥â¨ Hand-rolled, golden, and ready for your morning coffee. #ParisBakery #FreshBaked",readyToPost:"Ready to post! ð",inputPlaceholder:"Type a message"},pre={badge:"Try it free, no signup needed",title:"Create your first post in",titleHighlight:"30 seconds",skipLink:"Want to learn more first?",seeHow:"See how it works â",mobile:{badge:"Try it free, no signup",title:"See your post in",titleHighlight:"30 seconds",headline:"Let's make your business",headlineHighlight:"visible",subheadline:"Creating social media posts is now as easy as texting a friend on WhatsApp.",cta:"Try it now for free.",photoLabel:"First, snap a photo",takePhoto:"Take Photo",uploadPhoto:"Upload Photo",gallery:"Gallery",photoAdded:"Photo added",photoCount:"{{current}}/{{max}}",addPhotos:"Photos for your post",then:"then",descLabel:"What's this post about?",descPlaceholder:"Summer sale, 30% off everything this weekend! Come visit us and grab your favorites before they're gone...",descHint:"Describe the topic of your post â¨",createPost:"Create My Post",tryAnother:"Try with another photo",examples:{bakery:"Fresh croissants just out of the oven, perfect for your morning coffee...",salon:"New summer hair color trends, book your transformation today...",restaurant:"Our chef's special pasta of the week, made with fresh ingredients...",boutique:"New arrivals just dropped! Limited edition pieces you'll love..."},generating:{analyzing:"Analyzing your photo...",understanding:"Understanding the topic...",writing:"Writing the perfect caption...",hashtags:"Adding trending hashtags...",finishing:"Adding magic touches..."},result:{subtitle:"Here's what we created for you"},hintTopic:"Tell us what to post about â¨",hintImage:"Add a photo to continue ð¸",startCta:"Generate your first post!",startCtaNeedTopic:"Generate your first post!",startCtaNeedImage:"Upload a photo for your first post",makeFirstPost:"Make your first post now"},business:{greeting:"â¨",title:"Create a post in seconds!",subtitle:"Choose what you want to create",typeLabel:"What do you want to create?",topicLabel:"What's the topic?",topicPlaceholder:"e.g., Summer sale, New menu item, Behind the scenes...",next:"Next: Add photos â",types:{carousel:"ð¼ï¸ Carousel Post",reel:"ð¬ Reel / Video"}},photo:{back:"Back",title:"Add a photo",subtitle:"We'll create the perfect post for it",dropzone:"Drop your photo here",browse:"or click to browse",useSample:"Or use a sample photo â",create:"⨠Create my post"},generating:{title:"Creating magic...",steps:{analyzing:"ð Analyzing your photo...",writing:"âï¸ Writing the perfect caption...",hashtags:"#ï¸â£ Adding trending hashtags...",finishing:"⨠Adding final touches..."}},result:{title:"Your post is ready!",cta:"Love it? Get {{count}} free posts â",tryAnother:"Try another photo",startOver:"Start over",unlockSli
528de:"Sign up to see the entire post",unlockMessage:"Sign up to create your full carousel post with multiple slides, publish directly to Instagram, and more!"}},mre={badge:"Social media on autopilot",title:"Your Social Media Manager.",titleHighlight:"In WhatsApp.",subtitle:"Just text what you want. We handle the rest. No apps. No dashboards. Just results.",cta:"Start on WhatsApp",ctaSecondary:"See How It Works",socialProof:"small businesses",ctaPrimary:"Start your free post now"},gre={title:"Easy as Texting a Friend",subtitle:"No apps to download. No dashboards to learn. Just text like you always do.",step1Title:"Send a photo",step1Desc:"Text your photos to Visible on WhatsApp - just like messaging a friend",step2Title:"AI creates magic",step2Desc:"Our AI crafts scroll-stopping posts with captions that convert",step3Title:"Tap to publish",step3Desc:"Approve with one tap. Your posts go live while you run your business"},vre={title:"Why WhatsApp?",subtitle:"Because running a business is hard enough. Social media shouldn't be.",feature1Title:"Already on your phone",feature1Desc:"No new apps to learn. You already know how to text.",feature2Title:"Zero learning curve",feature2Desc:"If you can text, you can use Visible.",feature3Title:"Reply when convenient",feature3Desc:"No pressure. Respond on your schedule.",feature4Title:"Works anywhere",feature4Desc:"Manage your socials from any device."},yre={title:"Loved by Local Businesses",subtitle:"Join hundreds of small business owners who've simplified their social media",testimonial1:{name:"Maria S.",role:"Local Bakery",quote:"I manage my bakery's Instagram while waiting for bread to rise. Game changer."},testimonial2:{name:"David R.",role:"Personal Trainer",quote:"My followers went from 400 to 2k in two months. And I barely did anything!"},testimonial3:{name:"Sarah K.",role:"Hair Salon",quote:"Finally something that doesn't need a tutorial. Just text and done."}},bre={title:"Visibility is not a task. It's a system.",subtitle:"Choose the plan that matches your visibility goals.",howItWorks:"Pay for what you use. Each plan gives you monthly credits to spend on any content you want.",free:"Free",perMonth:"/mo",popular:"RECOMMENDED",currentPlan:"Current Plan",allPlansInclude:"All plans include",creditsLabel:"credits",useAsYouWish:"Use on any content you want",exampleUse:"For example:",contentTypes:{carousels:"carousels",reels:"reels",stories:"stories"},plans:{free:{name:"Free",description:"Test the system. See your first post.",cta:"Free"},basic:{name:"Basic",description:"Stay visible with consistent posting.",cta:"Basic"},visible:{name:"Visible",description:"Full visibility with posts and videos.",cta:"Visible"},always:{name:"Always Visible",description:"Maximum visibility. Content that never stops.",cta:"Always Visible"}},limits:{whatsapp:"WhatsApp communication",instagram:"Instagram publishing"},costs:{title:"How much does content cost?",creation:"Creation",edits:"Edits",carousel:"Carousel (4-6 slides)",reel:"Reel (5 scenes)",storyImage:"Story image",storyClip:"Story video clip",editReel:"Edit reel",editStoryClip:"Edit story clip",editStoryImage:"Edit story image",editCarouselImage:"Edit carousel image",editText:"Edit text / caption",free:"Free",disclaimer:"Costs are estimates and may vary slightly based on content complexity."},topUp:{title:"Need more credits?",comingSoon:"Coming soon",bonus:"bonus",buy:"Buy"},allFeatures:{whatsapp:"WhatsApp AI assistant",review:"Optional review before publishing",edit:"Edit content by message",request:"Request changes by message",automation:"Automation first, control when needed"},whatsappAssistant:{title:"Your AI assistant lives in WhatsApp",description:"No apps. No dashboards. Just message.",feature1:"Send photos, get posts",feature2:"Request edits by text",feature3:"Approve or reject with a tap"},custom:{text:"Want more? Contact us to build your visibility system.",cta:"Contact Us"}},xre={title:"Ready to get visible?",subtitle:"Join 500+ small businesses growing their social presence, one text at a time.",button:"Start Free on WhatsApp",noCreditCard:"No credit card required ⢠Setup in 30 seconds",buttonPrimary:"Start your free post now"},wre={tagline:"Your social media manager, in WhatsApp.",privacy:"Privacy Policy",terms:"Terms of Service",refund:"Refund Policy",acceptableUse:"Acceptable Use",contact:"Contact"}
528,Sre={title:"Privacy Policy",lastUpdated:"Last updated: February 27, 2026",sections:{introduction:{title:"1. Introduction",content:'SocialVisible Ltd. ("SocialVisible," "we," "our," or "us") operates the SocialVisible platform at https://socialvisible.ai. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our AI-powered social media content generation service. By using SocialVisible, you consent to the data practices described in this policy.'},informationWeCollect:{title:"2. Information We Collect",intro:"We collect the following categories of information:",items:["Account information: name, email address, phone number, and WhatsApp number","Business information: business name, type, category, location, target audience, and brand tone","Social media credentials: Instagram access tokens and platform user IDs required for publishing","Uploaded content: photos, images, and other media you provide for content generation","Payment information: billing details processed securely through Stripe (we do not store full card numbers)","Usage and analytics data: feature usage patterns, content generation history, and interaction logs","Communication data: messages exchanged via WhatsApp for content creation and management","Device and browser information: IP address, browser type, operating system, and referral URLs"]},howWeUse:{title:"3. How We Use Your Information",intro:"We use the information we collect for the following purposes:",items:["Provide, operate, and maintain the SocialVisible platform","Generate AI-powered social media content tailored to your business","Publish and schedule content to your connected social media accounts","Process subscription payments and manage billing cycles","Communicate with you via WhatsApp for content workflow and support","Enforce plan-based usage limits and monitor account activity","Improve our AI models and service quality based on aggregated usage patterns","Send transactional emails, security alerts, and service updates","Comply with legal obligations and enforce our Terms of Service"]},lawfulBasis:{title:"4. Lawful Basis for Processing (GDPR)",intro:"Under the General Data Protection Regulation (GDPR), we process your personal data on the following legal bases:",items:["Contract performance: processing necessary to provide the SocialVisible service you subscribed to","Legitimate interests: improving our services, preventing fraud, and ensuring platform security","Consent: where you have provided explicit consent, such as for marketing communications","Legal obligation: processing required to comply with applicable laws and regulations"]},dataSharing:{title:"5. Sharing of Information",intro:"We may share your information with the following categories of third parties:",items:["Stripe Inc.: for secure payment processing and subscription management","Hosting and infrastructure providers: for platform hosting and data storage","AI service providers: for content generation capabilities (your data is not used to train third-party models)","Social media platforms (Instagram, WhatsApp): to publish content and facilitate communication as directed by you","Analytics tools: for aggregated, anonymized usage analysis","Legal authorities: when required by law, court order, or governmental regulation"],noSell:"We do not sell, rent, or trade your personal information to third parties for marketing purposes. Ever."},internationalTransfers:{title:"6. International Data Transfers",content:"Your information may be transferred to and processed in countries other than the country in which you reside. These countries may have data protection laws that differ from those in your jurisdiction. We ensure appropriate safeguards are in place, including Standard Contractual Clauses (SCCs), to protect your data in compliance with applicable data protection laws."},dataRetention:{title:"7. Data Retention",content:"We retain your personal information for as long as your account is active or as needed to provide the SocialVisible service. After account deletion, we may retain certain data for up to 90 days for backup and recovery purposes, and for longer periods where required by law (e.g., financial records for tax purposes). Aggregated, anonymized data may be retained indefinitely for analytics and service improvement."},dataSecurity:{title:"8. Security Measures",content:"We implement industry-standard technical and organizational measures to protect your data, including: encryption of data in transit (TLS/SSL) and at rest, access controls and authentication for internal systems, regular security assessments and vulnerability testing, secure storage of social media tokens and credentials, and employee access restrictions on a need-to-know basis. While we strive to protect your information, no method of electronic transmission or storage is 100% secure, and we cannot guarantee absolute security."}
528,aiProcessing:{title:"9. AI and Automated Processing",content:"SocialVisible uses artificial intelligence to generate social media content, including captions, hashtags, and image-based posts. Our AI processes your business information, uploaded media, and usage history to produce personalized content. AI-generated content is created for your use and does not involve automated decision-making that produces legal effects concerning you. You retain full control over whether to approve, edit, or reject any AI-generated content before publication."},cookies:{title:"10. Cookies and Tracking Technologies",content:"We use cookies and similar technologies to maintain your session, remember your preferences (including language selection), and analyze platform usage. Essential cookies are required for the platform to function. You can manage cookie preferences through your browser settings. Some features of the platform may not function properly if cookies are disabled."},dataSubjectRights:{title:"11. Your Data Rights",intro:"Depending on your location, you may have the following rights regarding your personal data:",items:["Right of access: request a copy of the personal data we hold about you","Right of rectification: request correction of inaccurate or incomplete data",'Right of erasure: request deletion of your personal data ("right to be forgotten")',"Right to restrict processing: request limitation of how we use your data","Right to data portability: receive your data in a structured, machine-readable format","Right to object: object to processing based on legitimate interests","Right to withdraw consent: withdraw previously given consent at any time"],afterItems:"To exercise any of these rights, contact us at [email protected]. We will respond within 30 days of receiving your request."},children:{title:"12. Children's Privacy",content:"SocialVisible is not intended for individuals under the age of 18. We do not knowingly collect personal information from children. If we become aware that we have inadvertently collected data from a minor, we will take steps to delete such information promptly. If you believe a child has provided us with personal data, please contact us at [email protected]."},changes:{title:"13. Changes to This Privacy Policy",content:'We may update this Privacy Policy from time to time to reflect changes in our practices, technology, or legal requirements. We will notify you of material changes by posting the updated policy on this page and updating the "Last updated" date. For significant changes, we may also notify you via email or WhatsApp. Your continued use of SocialVisible after any modifications constitutes acceptance of the updated Privacy Policy.'},contactUs:{title:"14. Contact Us",content:"If you have questions or concerns about this Privacy Policy or our data practices, please contact us:",contactPage:"Contact form",orEmail:"or email [email protected]. SocialVisible Ltd., [email protected]."}}},jre={title:"Terms of Service",lastUpdated:"Last updated: February 27, 2026",sections:{acceptance:{title:"1. Acceptance of Terms",content:'By accessing or using the SocialVisible platform at https://socialvisible.ai (the "Service"), operated by SocialVisible Ltd. ("SocialVisible," "we," "our," or "us"), you agree to be bound by these Terms of Service ("Terms"). If you do not agree to all of these Terms, you may not access or use the Service. The
528se Terms constitute a legally binding agreement between you and SocialVisible Ltd.'},description:{title:"2. Description of Services",content:"SocialVisible is an AI-powered social media content generation and management platform. The Service enables users to create, manage, and publish social media content (including carousels and reels) through an integrated WhatsApp-based workflow. The Service uses artificial intelligence to generate content based on user inputs, business information, and uploaded media."},eligibility:{title:"3. Eligibility",content:"You must be at least 18 years of age and have the legal capacity to enter into binding agreements to use the Service. By using SocialVisible, you represent and warrant that you meet these eligibility requirements. If you are using the Service on behalf of a business entity, you represent that you have the authority to bind that entity to these Terms."},accountSecurity:{title:"4. Account Registration and Security",content:"To access certain features of the Service, you must create an account and provide accurate, complete, and current information. You are solely responsible for maintaining the confidentiality of your account credentials, including your password, and for all activities that occur under your account. You agree to notify us immediately at [email protected] of any unauthorized use of your account. SocialVisible is not liable for any loss arising from unauthorized access to your account."},subscriptionBilling:{title:"5. Subscription Plans and Billing",intro:"SocialVisible operates on a subscription-based billing model. By subscribing to a paid plan, you agree to the following:",items:["Subscriptions are billed in advance on a recurring monthly basis","Subscriptions automatically renew at the end of each billing period unless cancelled","You may upgrade or downgrade your plan at any time; changes take effect at the next billing cycle","Cancellation is effective at the end of the current billing period; you retain access until that date","No partial or prorated refunds are issued for unused portions of a billing period","You are responsible for any applicable taxes associated with your subscription","In the event of payment failure, we may suspend access to paid features until payment is resolved"],afterItems:"All payments are processed securely through Stripe. SocialVisible does not store your full credit card information."},usageLimits:{title:"6. Usage Limits and Plan Enforcement",content:"Each subscription plan includes specific usage limits for content types (e.g., carousels, reels). These limits are enforced at the backend level and reset monthly. When your usage limit is reached, content generation for that type will pause until the next billing cycle or until you upgrade to a higher-tier plan. No content is lost when limits are reached; drafts remain accessible."},aiDisclaimer:{title:"7. AI-Generated Content Disclaimer",content:"SocialVisible uses artificial intelligence to generate social media content. While we strive for quality, we make no guarantees regarding the accuracy, completeness, suitability, or effectiveness of AI-generated content. You are solely responsible for reviewing, approving, and publishing any content created by the Service. SocialVisible is not liable for any consequences arising from the publication of AI-generated content, including but not limited to reputational harm, loss of followers, or regulatory violations."},thirdPartyPlatforms:{title:"8. Third-Party Platforms",content:"SocialVisible integrates with third-party platforms including Instagram (Meta) and WhatsApp. SocialVisible is not affiliated with, endorsed by, or sponsored by Meta Platforms, Inc. or any other third-party platform provider. You are responsible for complying with the terms and policies of any third-party platform you connect to the Service. SocialVisible is not liable for any actions taken by third-party platforms, including account suspensions, content removals, or policy enforcement actions."},contentOwnership:{title:"9. User Content and Ownership",content:"You retain all ownership rights to the content you upload to SocialVisible. By using the Service, you grant SocialVisible a limited, non-exclusive, royalty-free license to use, store, and process your content solely for the purpose of providing the Service. AI-generated content created through the Service is owned by you upon generation. This license terminates when you delete your content or close your account."},intellectualProperty:{title:"10. Intellectual Property",content:"The SocialVisible platform, including its software, design, features, AI models, documentation, and branding, is the exclusive intellectual property of SocialVisible Ltd. and is protected by applicable intellectual property laws. You may not copy, modify, distribute, reverse-engineer, or create derivative works based on the platform without our prior written consent."},acceptableUseRef:{title:"11. Acceptable Use",content:"Your use of the Service is subject to our Acceptable Use Policy, available at https://socialvisible.ai/acceptable-use. Violation of the Acceptable Use Policy may result in immediate suspension or termination of your account."},suspensionTermination:{title:"12. Suspension and Termination",content:"We reserve the right to suspend or terminate your account at any time, with or without notice, for violations of these Terms, the Acceptable Use Policy, or for any conduct that we determine to be harmful to the Service or other users. You may cancel your account at any time from your account settings. Upon termination, your right to use the Service ceases immediately, though you may retain access until the end of your current billing period for paid subscriptions."},indemnification:{title:"13. Indemnification",content:"You agree to indemnify, defend, and hold harmless SocialVisible Ltd., its officers, directors, employees, and agents from and against any claims, liabilities, damages, losses, and expenses (including reasonable legal fees) arising out of or related to your use of the Service, your violation of these Terms, your content, or your violation of any third-party rights."},limitationOfLiability:{title:"14. Limitation of Liability",content:"To the maximum extent permitted by applicable law, SocialVisible Ltd. shall not be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of profits, revenue, data, or business opportunities, arising from your use of or inability to use the Service. Our total aggregate liability for all claims arising out of or related to the Service shall not exceed the total amounts paid by you to SocialVisible in the twelve (12) months preceding the event giving rise to the claim."},disclaimerOfWarranties:{title:"15. Disclaimer of Warranties",content:'The Service is provided on an "AS IS" and "AS AVAILABLE" basis, without warranties of any kind, whether express, implied, or statutory. SocialVisible expressly disclaims all warranties, including but not limited to implied warranties of merchantability, fitness for a particular purpose, non-infringement, and any warranties arising from course of dealing or usage of trade. We do not warrant that the Service will be uninterrupted, error-free, or free of harmful components.'},governingLaw:{title:"16. Governing Law and Dispute Resolution",content:"These Terms shall be governed by and construed in accordance with the laws of the jurisdiction in which SocialVisible Ltd. is incorporated, without regard to conflict of law principles. Any disputes arising from these Terms or the Service shall first be attempted to be resolved through good-faith negotiation. If negotiation fails, disputes shall be resolved through binding arbitration in accordance with the rules of the applicable arbitration body in our jurisdiction."},forceMajeure:{title:"17. Force Majeure",content:"SocialVisible shall not be liable for any failure or delay in performing its obligations under these Terms due to events beyond our reasonable control, including but not limited to natural disasters, pandemics, government actions, internet outages, third-party platform outages, cyberattacks, or other force majeure events."},modificationsToService:{title:"18. Modifications to the Service",content:"We reserve the right to modify, suspend, or discontinue any aspect of the Service at any time, with or without notice. We will make reasonable efforts to notify users of material changes in advance. SocialVisible is not liable for any modifications, suspensions, or discontinuation of the Service."},changesToTerms:{title:"19. Changes to These Terms",content:'We may revise these Terms from time to time. The most current version will always be posted on this page with an updated "Last updated" date. For material changes, we will notify you via email or through the Service. Your continued use of SocialVisible after any revisions constitutes acceptance of the updated Terms.'},contactUs:{title:"20. Contact Information",content:"For questions about these Terms of Service, please contact us:",contactPage:"Contact form",orEmail:"or email [email protected]. SocialVisible Ltd., [email protected]."}}},_re={title:"Refund Policy",lastUpdated:"Last updated: February 27, 2026",sections:{subscriptionNature:{title:"1. Subscription Nature",content:"SocialVisible operates on a subscription-based model. All paid plans are billed
528in advance on a recurring monthly basis. By subscribing to a paid plan, you acknowledge that you are paying for access to the Service for the upcoming billing period, not for a specific quantity of outputs or results."},cancellation:{title:"2. Cancellation Policy",content:"You may cancel your subscription at any time from your account settings or by contacting [email protected]. Cancellation is effective at the end of the current billing period. You will retain full access to all paid features until the end of your paid period. No further charges will be applied after cancellation takes effect."},noPartialRefunds:{title:"3. No Partial Refunds",content:"We do not issue partial or prorated refunds for unused portions of a billing period. Once a billing cycle has begun, the subscription fee for that period is non-refundable. This applies to all plan types, including upgrades and downgrades."},exceptionalCircumstances:{title:"4. Exceptional Refund Circumstances",intro:"Refunds may be considered on a case-by-case basis in the following exceptional circumstances:",items:["Duplicate payments: if you were charged more than once for the same billing period due to a technical error","Billing errors: if an incorrect amount was charged due to a system or processing error","Proven technical service failure: if SocialVisible was materially unavailable or non-functional for a significant portion of your billing period, and we failed to resolve the issue within a reasonable timeframe"],afterItems:"To request a refund under these circumstances, contact [email protected] within 14 days of the charge in question, providing your account details and a description of the issue."},chargebackPolicy:{title:"5. Chargeback Policy",content:"If you initiate a chargeback or payment dispute with your bank or payment provider without first contacting SocialVisible to resolve the issue, we reserve the right to immediately suspend your account and all associated services. We encourage you to contact [email protected] before initiating any payment disputes so we can attempt to resolve the matter directly."},freeTrial:{title:"6. Free Plan",content:"SocialVisible offers a free plan that allows you to test the Service with limited features and usage. The free plan does not require payment information and is not subject to this Refund Policy. If you upgrade from a free plan to a paid plan, standard billing and refund terms apply from the date of upgrade."},legalExceptions:{title:"7. Legal Exceptions",content:"Nothing in this Refund Policy limits or excludes your statutory consumer rights under applicable law. If mandatory consumer protection laws in your jurisdiction provide for refund rights that supersede this policy, those rights will apply. Residents of the European Union and other jurisdictions with statutory cooling-off periods may have additional rights as provided by local law."},contactUs:{title:"8. Contact Us",content:"For refund requests or billing questions, please contact us:",contactPage:"Contact form",orEmail:"or email [email protected]. SocialVisible Ltd."}}},Nre={title:"Acceptable Use Policy",lastUpdated:"Last updated: February 27, 2026",sections:{introduction:{title:"1. Introduction",content:'This Acceptable Use Policy ("AUP") governs your use of the SocialVisible platform operated by SocialVisible Ltd. This policy is part of our Terms of Service and applies to all users. By using SocialVisible, you agree to comply with this AUP. Violations may result in suspension or termination of your account.'},prohibitedActivities:{title:"2. Prohibited Activities",intro:"You may not use SocialVisible to engage in or facilitate any of the following:",items:["Illegal activity: any activity that violates applicable local, national, or international laws or regulations","Copyright infringement: uploading, distributing, or generating content that infringes on the intellectual property rights of others","Hate speech and harassment: creating or distributing content that promotes hatred, discrimination, violence, or harassment based on race, ethnicity, religion, gender, sexual orientation, disability, or any other protected characteristic","Spam and unsolicited messaging: using the Service to generate or distribute spam, bulk unsolicited messages, or deceptive content","Platform manipulation: attempting to artificially inflate engagement metrics, create fake accounts, or manipulate social media platform algorithms","Account sharing: sharing, selling, or transferring your account credentials to unauthorized third parties","Fraud and deception: using the Service for fraudulent purposes, financial scams, phishing, or any deceptive practices","Impersonation: representing yourself as another person, brand, or entity without authorization","AI misuse: using the AI content generation capabilities to create deepfakes, misleading information, or content designed to deceive the public"]},contentRestrictions:{title:"3. Content Restrictions",intro:"You may not use SocialVisible to create, store, or distribute content that:",items:["Contains malware, viruses, or any harmful software components","Promotes illegal drugs, weapons, or controlled substances","Contains sexually explicit material or exploitative content","Targets or exploits minors in any way","Contains personal or confidential information of others without consent","Is intentionally misleading or constitutes disinformation"]},securityRestrictions:{title:"4. Security and Technical Restrictions",intro:"You may not:",items:["Attempt to reverse-engineer, decompile, or disassemble any part of the SocialVisible platform","Probe, scan, or test the vulnerability of our systems or networks","Circumvent or attempt to bypass security measures, authentication systems, or usage limits","Use automated tools, bots, or scripts to access the Service beyond its intended use","Interfere with or disrupt the Service, servers, or networks connected to SocialVisible","Attempt to access other users' accounts, data, or content without authorization"]},enforcement:{title:"5. Enforcement",intro:"SocialVisible reserves the right to enforce this AUP at our sole discretion. Enforcement actions may include:",items:["Immediate suspension or termination of your account without prior notice","Removal of content that violates this policy","Temporary or permanent restriction of access to specific features","Investigation of suspected violations, including review of account activity and content","Cooperation with law enforcement authorities when we believe illegal activity has occurred","Pursuit of legal remedies, including claims for damages"]},reporting:{title:"6. Reporting Violations",content:"If you believe a user is violating this Acceptable Use Policy, please report it to us via",contactPage:"our contact form",orEmail:"or email [email protected]. We take all reports seriously and will investigate promptly."}}},Pre={title:"Your marketing doesn't live in a dashboard. It lives in",titleHighlight:"WhatsApp",subtitle:"We send your ready-to-post content directly to WhatsApp daily. Reply with",subtitleHighlight:"Approve / Edit / Skip",tagline:"No logins. No tools to learn.",taglineBold:"WhatsApp is the service.",label:"WhatsApp number",placeholder:"WhatsApp number",hint:"ð Secure. We never spam.",errorPrefix:"Number must start with +",errorDigits:"Enter a valid international number (7-15 digits)",errorSaving:"Failed to save WhatsApp number",cancel:"Later",continue:"Continue with WhatsApp",saving:"Saving..."},Are={createNewPost:"Create New Post",contentOptions:"Content Options",generatingContent:"Generating Content...",reviewAndEdit:"Review & Edit",schedulePost:"Schedule Post",dragAndDrop:"Drag and drop images here",orClickBrowse:"or click to browse",maxImages:"JPG, PNG, WebP ⢠Max {{max}} images",addMore:"Add more",continue:"Continue",whatToCreate:"What would you like to create?",carousel:"C
528arousel",multiImagePost:"Multi-image post",reel:"Reel",shortVideo:"Short video",addInstructions:"Add instructions (optional)",instructionsPlaceholder:"e.g., Announce our new summer collection, use playful tone, mention the discount",instructionsHint:"Tell us what you'd like the post to be about",uploadingImages:"Uploading images...",generateContent:"Generate Content",creatingContent:"Creating your content...",creatingDescription:"Our AI is analyzing your images and crafting the perfect {{type}} for you.",generatingTitle:"We're creating the best carousel for you and your business â¨",generatingSubtitle:"This usually takes 5-10 minutes",generatingElapsed:"Elapsed",generatingSteps:["ð Researching your topic...","ð¡ Looking for the best angles and topics...","ð¯ Searching for engaging hooks that grab attention...","âï¸ Writing an amazing post tailored to your audience...","ð Crafting compelling copy that converts...","#ï¸â£ Searching for the most relevant hashtags...","ð¨ Generating your first stunning image...","ð¼ï¸ Creating the second image - even better than the first!","⨠Working on image 3 - building momentum...","ð¥ Image 4 in progress - your carousel is taking shape!","ð Generating the final image - saving the best for last!","ð¬ Assembling all images into a seamless carousel...","â¡ Optimizing images for maximum engagement...","ð Working on finalizing your carousel - it's almost ready!","â
Putting the finishing touches on your masterpiece...","ð Your carousel is coming any moment now..."],generatedImages:"Generated Images",clickToEnlarge:"(click to enlarge)",caption:"Caption",regenerate:"Regenerate",hashtags:"Hashtags",addHashtag:"Add hashtag",add:"Add",connectInstagramTitle:"Connect Instagram to publish",connectInstagramSubtitle:"Link your account to post directly",connectInstagram:"Connect Instagram",postToInstagram:"Post to Instagram",continueToSchedule:"Continue to Schedule",saveAsDraft:"Save as Draft",selectAccount:"Select Account",chooseAccount:"Choose Instagram account",noAccounts:"No accounts connected",whenToPost:"When to post",postNow:"Post now",postNowDesc:"Publish immediately after approval",scheduleLater:"Schedule for later",scheduleLaterDesc:"Choose a specific date and time",addToQueue:"Add to queue",addToQueueDesc:"Uses optimal posting times",date:"Date",time:"Time",cancel:"Cancel",publish:"Publish",schedule:"Schedule",publishSuccess:"Post Published! ð",publishSuccessDesc:"Your post has been sent for publishing.",publishFailed:"Publish failed",publishFailedDesc:"Please try again or save as draft.",draftSaved:"Draft saved",draftSavedDesc:"Your post has been saved as a draft.",postScheduled:"Post scheduled",postScheduledDesc:"Your post has been scheduled.",saveFailed:"Failed to save",saveFailedDesc:"Please try again.",usageMessage:"You have used {{used}} out of {{total}} free monthly posts.",upgradeMessage:"Upgrade to unlock daily posts, including reels, full automation, and continuous publishing.",upgradeButton:"Upgrade Plan",backToContent:"Back to Content"},Cre={title:"Frequently Asked Questions",subtitle:"Everything you need to know about SocialVisible.",questions:{q1:{question:"What is SocialVisible?",answer:"SocialVisible is an AI-powered social media management platform. You send photos and ideas via WhatsApp, and our AI creates professional Instagram posts and reels for you."},q2:{question:"How does the WhatsApp workflow work?",answer:"Simply message our WhatsApp bot with your photos and a brief description. Our AI analyzes the content, creates captions, designs carousel posts or reels, and sends them back for your approval before publishing."},q3:{question:"Do I need any design skills?",answer:"Not at all! SocialVisible handles all the design work. Just send your photos and tell us what the post is about. The AI takes care of the rest."},q4:{question:"What social media platforms do you support?",answer:"Currently we support Instagram carousels and reels. More platforms are coming soon."},q5:{question:"Can I edit the posts before publishing?",answer:"Yes! Every post is sent to you for review before publishing. You can request changes, approve, or reject any content."},q6:{question:"What happens if I reach my monthly limit?",answer:"Once you reach your plan's monthly limit, you can upgrade to a higher plan for more posts, or wait until your limits reset at the start of the next billing cycle."},q7:{question:"Is my data safe?",answer:"Absolutely. We use industry-standard encryption and security practices. Your photos and business data are stored securely and never shared with third parties."},q8:{question:"Can I cancel my subscription anytime?",answer:"Yes, you can cancel anytime. Your access continues until the end of your current billing period. No partial refunds are issued."}}},Ere={backToHome:"Back to Home",title:"Contact Us",subtitle:"Have a question or feedback? We'd love to hear from you.",email:"Email",location:"Location",locationValue:"Tel Aviv, Israel",form:{fullName:"Full Name",fullNamePlaceholder:"Your full name",email:"Email",emailPlaceholder:"[email protected]",subject:"Subject",subjectPlaceholder:"Select a subject",message:"Message",messagePlaceholder:"Tell us how we
528can help...",sending:"Sending...",submit:"Send Message"},subjects:{general:"General Inquiry",support:"Technical Support",billing:"Billing",partnership:"Partnership",feedback:"Feedback",other:"Other"},errors:{nameRequired:"Name is required",emailRequired:"Email is required",emailInvalid:"Please enter a valid email",subjectRequired:"Please select a subject",messageRequired:"Message is required",messageMinLength:"Message must be at least 10 characters"},toast:{successTitle:"Message Sent!",successDescription:"We'll get back to you soon.",errorTitle:"Error",errorRateLimit:"Too many requests. Please try again later.",errorInvalidEmail:"Invalid email address.",errorGeneric:"Something went wrong. Please try again."},success:{title:"Thank You!",description:"Your message has been sent successfully. We'll get back to you as soon as possible.",backToHome:"Back to Home",sendAnother:"Send Another Message"}},kre={progress:"Step {{current}} of {{total}}",business:{title:"Tell us about your business",subtitle:"This helps us create tailored content for you",personalizedSubtitle:"To create accurate, personalized posts, we need to understand your business. Share a few details.",label:"Business Description",placeholder:"e.g., I run a bakery in Tel Aviv specializing in sourdough breads and artisan pastries. We focus on organic ingredients and serve local cafes.",hint:"The more details you share, the better the content we'll create.",categoryLabel:"Industry",categoryPlaceholder:"Select your industry",categories:{food:"Food & Beverage",beauty:"Beauty & Wellness",retail:"Retail & Fashion",fitness:"Health & Fitness",services:"Professional Services",education:"Education",real_estate:"Real Estate",tech:"Technology",creator:"Creators & Entertainment",other:"Other"},fullNameLabel:"Your Name",fullNamePlaceholder:"e.g., John Smith",businessNameLabel:"Business Name",businessNamePlaceholder:"e.g., Danny's Bakery",locationLabel:"Location (optional)",locationPlaceholder:"e.g., Tel Aviv, Israel",uspLabel:"What makes you unique? (optional)",uspPlaceholder:"e.g., Only organic, locally sourced ingredients",targetAudienceLabel:"Who are your customers? (optional)",targetAudiencePlaceholder:"e.g., Small business owners, young mothers, foodies",brandToneLabel:"Your brand tone (optional)",brandTonePlaceholder:"Choose your style",brandTones:{friendly:"Friendly & Approachable",professional:"Professional & Formal",playful:"Playful & Light",inspirational:"Inspirational",luxurious:"Luxurious & Premium",casual:"Casual & Everyday"},whatsappLabel:"WhatsApp Number",whatsappPlaceholder:"Phone number",whatsappHint:"We use WhatsApp to send you post previews for approval.",continue:"Continue",saving:"Saving..."},errors:{required:"Required field",describeBusinessBrief:"Please briefly describe your business.",failedToSave:"Failed to save. Please try again.",retryHint:"Check your connection and try again."}},Tre={business:{next:"Next: Connect WhatsApp"},whatsapp:{title:"Connect WhatsApp",subtitle:"Your content will be delivered via WhatsApp for easy review and approval.",nextButton:"Next: Choose Content Type",generateButton:"Generate My Content",continueButton:"Continue to WhatsApp"},otpStep:{title:"Verify your WhatsApp",subtitle:"We'll send a 6-digit code to your WhatsApp to confirm your number.",phoneLabel:"Your WhatsApp number",phonePlaceholder:"Phone number",sendButton:"Send code via WhatsApp",sending:"Sending code...",codeSentTitle:"Code sent!",codeSentDesc:"We sent a 6-digit code to {{phone}} via WhatsApp.",enterCode:"Enter 6-digit code",verifying:"Verifying...",expiresIn:"Code expires in {{time}}",expired:"Code expired - please resend",changeNumber:"Change number",resend:"Resend code",resendIn:"Resend in {{seconds}}s",noCodeHelp:"Didn't get the code? Check WhatsApp for a message from our verification line, or try email instead.",useEmail:"Send code to my email instead",sendingEmail:"Sending email...",emailSentTitle:"Email sent",emailSentDesc:"Check {{email}} for your code.",useWhatsapp:"Use WhatsApp instead",verifiedTitle:"WhatsApp Verified",verifiedDesc:"Your number {{phone}} is verified.",verifiedReady:"Ready to continue",errorInvalidNumber:"Please enter a valid phone number.",errorSendFailed:"Failed to send code",errorVerifyFailed:"Verification failed",errorInvalidCode:"Invalid code",footer:"We use WhatsApp to send you notifications and post approvals."}
528,contentType:{title:"What would you like to create?",subtitle:"Choose the type of content for your first post",selectRequired:"Please select a content type",carousel:"Carousel Post",carouselDesc:"Multi-slide Instagram carousel with engaging visuals and text (~2 credits)",story:"Story Image",storyDesc:"Beautiful Instagram story image with caption (~0.5 credits)",next:"Next: Review & Generate",topicLabel:"Topic:",imagesLabel:"Images:",uploaded:"uploaded"},review:{title:"Ready to Generate!",subtitle:"Review your request before we start creating",typeLabel:"Content Type",topicLabel:"Topic",topicPlaceholder:"Describe what your post should be about...",topicRequired:"Please enter a topic",imageLabel:"Your Image",changeImage:"Change image",uploadImage:"Upload an image (optional)",carouselCost:"This carousel will use ~2 credits from your free plan",storyCost:"This story will use ~0.5 credits from your free plan",generating:"Submitting...",generateButton:"Let's Generate via WhatsApp!",back:"â Change content type"},generating:{title:"Creating Your Content",status:"Sending your content to our AI...",sent:"Content is being created! You'll receive it on WhatsApp shortly.",alreadyActive:"Content is already being created!",limitReached:"Credit limit reached. Please upgrade your plan.",storyTitle:"We're creating the best story for you and your business â¨",storySubtitle:"This usually takes 1-2 minutes",storySteps:["ð Analyzing your photo and topic...","ð¡ Finding the perfect angle for your story...","âï¸ Writing a caption that hooks your audience...","#ï¸â£ Picking the most relevant hashtags...","ð¨ Designing your story image...","⨠Adding the finishing touches...","ð Almost there - your story is coming any second..."]},done:{title:"You're All Set! ð",withContent:"Your content is being created and will be delivered to your WhatsApp shortly.",noContent:"Send us a photo and topic on WhatsApp to create your first post!",openWhatsApp:"Open WhatsApp",viewBilling:"View Billing & Usage",whatsappMessage:"Hi! I just signed up and ready to create content ð¨"}},Ore={title:"Billing & Usage",backToHome:"Back to home",creditBalance:"Credit Balance",creditsRemaining:"credits remaining",monthlyAllocation:"Monthly allocation",creditsPerMonth:"credits/month",plan:"Plan",currentPlan:"Current Plan",upgradePlan:"Upgrade Plan",managePlan:"Manage Plan",usage:"Usage This Period",carousels:"Carousels",reels:"Reels",stories:"Stories",of:"of",used:"used",unlimited:"Unlimited",recentActivity:"Recent Activity",date:"Date",type:"Type",creditsCharged:"Credits",noActivity:"No recent activity",subscriptionStatus:"Subscription",active:"Active",cancelled:"Cancelled",none:"No subscription",cancelling:"Cancelling",renewsOn:"Renews on",endsOn:"Ends on",cancelSubscription:"Cancel Subscription",cancelConfirm:"Are you sure you want to cancel? Your plan stays active until the end of the billing period.",buyCredits:"Buy Credits",free:"Free",basic:"Basic",visible:"Visible",always:"Always Visible",loading:"Loading...",pricing:{title:"How much does content cost?",creation:"Creation",edits:"Edits",carousel:"Carousel (4-6 slides)",reel:"Reel (5 scenes)",storyImage:"Story image",storyClip:"Story video clip",editReel:"Edit reel",editStoryClip:"Edit story clip",editStoryImage:"Edit story image",editCarouselImage:"Edit carousel image",editText:"Edit text / caption",free:"Free",disclaimer:"Costs are estimates and may vary slightly based on content complexity."},packs:{title:"Buy Credits",credits:"credits",bonus:"bonus",buy:"Buy",comingSoon:"Coming soon"},plans:{title:"Subscription Plans",mo:"mo",creditsMonth:"credits/mo",subtitle:"Choose the visibility level that's right for your business",starterBonus:"starter bonus",whatsappComm:"WhatsApp communication",igPublishing:"Instagram publishing",current:"CURRENT",popular:"POPULAR",cancelPending:"Cancellation pending",cancelPendingDesc:"Your {{plan}} plan remains active until {{date}}. After that, you'll be moved to the Free plan.",comingSoon:"Coming soon",cancellationPending:"Cancellation Pending",cancel:"Cancel",availableCredits:"Available credits",creditsWithPlan:"{{credits}} credits/month with your plan",allPlansInclude:"All plans include",feature1:"WhatsApp AI assistant",feature2:"Optional review before publishing",feature3:"Edit content by message",feature4:"Request changes anytime",getStarted:"Get started with visibility",forGrowing:"For growing businesses",stayVisible:"Stay consistently visible",maxVisibility:"Maximum visibility"}},Ire={title:"You're all set!",planActive:"Your {{plan}} plan is now active. Start creating amazing content!",startCreating:"Start Creating on WhatsApp",viewBilling:"View Billing",activating:"Activating your plan...",pleaseWait:"This usually takes just a few seconds. Please don't close this page.",takingLonger:"Taking longer than expected. Your plan will activate shortly.",skipToBilling:"Skip to Billing",failedTitle:"Payment unsuccessful",failedMessage:"Something went wrong with your payment. No charges were made. Please try again or c
528ontact support.",tryAgain:"Try Again",contactSupport:"Contact Support"},Rre={title:"Stay Visible",subtitle:"Tips, strategies, and insights to help your business stand out on social media.",allArticles:"All Articles",readMore:"Read More",minRead:"{{count}} min read",backToBlog:"Back to Blog",readyQuestion:"Ready to get started?",getStartedFree:"Get Started Free",readMoreArticles:"Read More Articles",readyToBeVisible:"Ready to Be Visible?",ctaSubtitle:"Let AI create stunning social media content for your business - automatically.",categories:{visibility:"Visibility",consistency:"Consistency",automation:"Automation",strategy:"Strategy",growth:"Growth"}},Dre={badge:"Why SocialVisible",title:"Built for busy owners.",titleHighlight:"Built for consistency.",subtitle:"SocialVisible helps you stay active online without the daily headache of thinking, writing, designing, and posting everything yourself.",features:{blankPage:{title:"No more blank-page stress",description:"You do not need to figure out what to post every day."},whatsapp:{title:"Approve on WhatsApp",description:"Your post arrives where you already work, so approval takes seconds."},consistent:{title:"Stay visible consistently",description:"Keep your page active even when you are busy running the business."},fits:{title:"Content that fits your business",description:"Posts are shaped around your niche, tone, and what you want to show."},adjust:{title:"Easy to adjust",description:"Need a change? Just say it simply and move on."},oneLess:{title:"One less thing on your plate",description:"You run the business. We help make posting easier."}}},Mre={badge:"Live agents at work",title:"Meet your professional",titleHighlight:"social media agents",subtitle:"Each one trained for your niche. Posting, captioning, designing - while you run your business.",aiAgent:"AI agent",cards:{florist:{niche:"Florist",caption:"Fresh blooms, daily posts"},pizzeria:{niche:"Pizzeria",caption:"Tonight's special, sold out fast"},decor:{niche:"Home Decor",caption:"Cozy vibes that convert"},yoga:{niche:"Yoga Studio",caption:"Class fillers on autopilot"},realestate:{niche:"Real Estate",caption:"Listings that get DMs"},boutique:{niche:"Boutique",caption:"New drops, instant buzz"}}},$re={nav:dre,mobileDemo:hre,mockup:fre,tryItNow:pre,hero:mre,howItWorks:gre,whyWhatsApp:vre,testimonials:yre,pricing:bre,cta:xre,footer:wre,privacy:Sre,terms:jre,refund:_re,acceptableUse:Nre,whatsappGate:Pre,createContent:Are,faq:Cre,contact:Ere,webOnboarding:kre,onboardingFlow:Tre,billing:Ore,paymentSuccess:Ire,blog:Rre,whySocialVisible:Dre,agentExamples:Mre},Lre={howItWorks:"××× ×× ×¢×××",pricing:"×××ר××",faq:"ש×××ת × ×¤×צ×ת",blog:"××××",startFree:"×ת×× ×××× ×",login:"×ת××ר×ת",signUp:"×רש×× ×××× ×",dashboard:"××× ×קר×",signOut:"××ª× ×ª×§",signedInAs:"××××ר ×ת×ר"},Vre={aria:"××××× ××× ×¤×©×ª: ××¢×××, ×-AI ×××× ×¤×ס×, ××ª× ××שר ××× ×× × ×פרס×××",step1:"1. ××¢××ת ת××× × ××ת××ת × ×ש×",step2:"2. ×-AI ×××× ×× ×ת ×פ××¡× â¨",step3:"3. ××ש×ר ×פרס×× ×××××¦× ××ת ð",subjectLabel:"× ××©× ×פ×ס×",subjectText:"קר××ס×× ×× ×ר××× ×××ª× ×ר ×××קר â",photoUploaded:"ת××× × × ×ספ×",aiTitle:"Visible AI ×××× ×ת ×פ××¡× ×©××",aiSubtitle:"××ת××, ת××× × ×××ש××××",aiStep1:"× ×ת×× ×ת××× ×",aiStep2:"×ת××ת ×××ת××",aiStep3:"××ספת ××ש×××× ×××××××××",approveButton:"××ש×ר ×פרס××",published:"פ××¨×¡× ×××× ×¡××ר×"},Fre={online:"××××ר",botGreeting:"×××! ×× × Visible AI ð ש×× ×× ×ª××× × ×ספר ×× ×¢× ×פ××¡× - ×× × ×××× ×××ª× ×ש××××!",userMessage:"קר××ס×× ×× ×ר××× ×××ª× ×ר ×××קר ð¥",botProcessing:"××××! ⨠×××× ×× ×¤××¡× ×××× ×¡×××¨× ×¢×ש××...",likes:"248 ××××§××",caption:"×תע×רר×× ×ר×× ×©× ×§×¨××ס×× ×× ×ר××× ð¥â¨ ×××××××× ×××, ×××××× ××××× ×× ××§×¤× ×©× ×××קר. #××פ××תפר×× #×ר×××××××",readyToPost:"×××× ×פרס××! ð",inputPlaceholder:"××§×× ××××¢×"},Bre={badge:"× ×¡× ×××× ×, ××× ×רש××",title:"צ×ר ×ת ×פ××¡× ×ר×ש×× ×©×× ×ª××",titleHighlight:"30 ×©× ××ת",
528skipLink:"ר××¦× ××××× ×¢×× ×§×××?",seeHow:"ר×× ××× ×× ×¢××× â",mobile:{badge:"× ×¡× ×××× ×, ××× ×רש××",title:"ר×× ×ת ×פ××¡× ×©×× ×",titleHighlight:"30 ×©× ××ת",headline:"×××× × ×פ×× ×ת ×עסק ש××",headlineHighlight:"×-Visible",subheadline:"×צ×רת פ×ס××× ×רשת×ת ×××רת××ת ×¢×ש×× ×§× ××× ×ש××× ××××¢× ×××ר ×××××ס×פ.",cta:"× ×¡× ×¢×ש×× ×××× ×.",photoLabel:"×§××× ××, צ×× ×ª××× ×",takePhoto:"צ×× ×ª××× ×",uploadPhoto:"××¢×× ×ª××× ×",gallery:"××ר××",photoAdded:"×ת××× × × ×ספ×",photoCount:"{{current}}/{{max}}",addPhotos:"ת××× ×ת ×פ××¡× ×©××",then:"××",descLabel:"×¢× ×× ×פ××¡× ×××?",descPlaceholder:"××צע ×§××¥, 30% ×× ×× ×¢× ××× ×ס××£ ×ש×××¢! ×××× ××קר ××תפ×ס ×ת ××××¢×פ×× ×©××× ××¤× × ×©××××ר×...",descHint:"ת×ר ×ת ×× ××©× ×©× ×פ××¡× â¨",createPost:"צ×ר ×ת ×פ××¡× ×©××",tryAnother:"× ×¡× ×¢× ×ª××× × ××רת",examples:{bakery:"קר××ס×× ×× ×ר××× ×שר ×××ª× ×ר, ××ש×××× ××§×¤× ×©× ×××קר...",salon:"××¨× ××× ××ש×× ×צ××¢× ×©×ער ××§××¥, ××××× × ×ת ×ש×× ×× ×©××× ××××...",restaurant:"×פס×× ××××××ת ×©× ×שף ×ש×××¢, ×××× × ××ר××××× ×ר×××...",boutique:"×××¢× ××ש×! פר×××× ××××××¨× ×××××ת שת××××..."},generating:{analyzing:"×× ×ª× ×ת ×ת××× × ×©××...",understanding:"×××× ×ת ×× ×ש×...",writing:"×××ª× ×ת ×××ת×× ×××ש××...",hashtags:"××ס××£ ××ש××××× ×¤×פ××ר×××...",finishing:"××ס××£ × ×××¢×ת קס×××ת..."},result:{subtitle:"×× × ×× ×©××¦×¨× × ×ש××××"},hintTopic:"×¡×¤×¨× ×× × ×¢× ×× ××¤×¨×¡× â¨",hintImage:"××ס××¤× ×ª××× × ××× ×××ש×× ð¸",startCta:"×¦×¨× ×ת ×פ××¡× ×ר×ש×× ×©×××!",startCtaNeedTopic:"×¦×¨× ×ת ×פ××¡× ×ר×ש×× ×©×××!",startCtaNeedImage:"××¢×× ×ª××× × ×פ××¡× ×ר×ש×× ×©×××",makeFirstPost:"×¦×¨× ×ת ×פ××¡× ×ר×ש×× ×©×××"},business:{greeting:"â¨",title:"צ×ר פ××¡× ×ª×× ×©× ××ת!",subtitle:"××ר ×× ××ª× ×¨××¦× ××צ×ר",typeLabel:"×× ××ª× ×¨××¦× ××צ×ר?",topicLabel:"×× ×× ×ש×?",topicPlaceholder:"××××××, ××צע ×§××¥, פר×× ××ש ×תפר××, ×××××¨× ××§××¢××...",next:"×××: ××סף ת××× ×ת â",types:{carousel:"ð¼ï¸ פ××¡× ×§×¨×ס××",reel:"ð¬ ר×× / ×××××"}},photo:{back:"××ר×",title:"××סף ת××× ×",subtitle:"× ×צ×ר ×¢×××¨× ×ת ×פ××¡× ×××ש××",dropzone:"×ר×ר ×ת ×ת××× × ××××",browse:"×× ×××¥ ××××ר×",useSample:"×× ×שת×ש ×ת××× × ×××××× â",create:"⨠צ×ר ×ת ×פ××¡× ×©××"},generating:{title:"××צר×× ×§×¡×...",steps:{analyzing:"ð ×× ×ª××× ×ת ×ת××× ×...",writing:"âï¸ ××ת××× ×ת ×××ת×× ×××ש××...",hashtags:"#ï¸â£ ××ס×פ×× ××ש××××× ××¨× ××××...",finishing:"⨠××ס×פ×× × ×××¢×ת ××ר×× ×ת..."}},result:{title:"×פ××¡× ×©×× ××××!",cta:"×××ת? ×§×× {{count}} פ×ס××× ×××× × â",tryAnother:"× ×¡× ×ª××× × ××רת",startOver:"×ת×× ×××ש",unlockSlide:"×××¨×©× ××× ×ר××ת ×ת ×פ××¡× ××××",unlockMessage:"×××¨×©× ××× ××צ×ר פ××¡× ×§×¨×ס×× ××× ×¢× ×ספר שק×פ××ת, ××¤×¨×¡× ×ש×ר×ת ×××× ×¡××ר×, ××¢××!"}},zre={progress:"ש×× {{current}} ×ת×× {{total}}",business:{icon:"Building2",title:"ספר ×× × ×¢× ×עסק ש××",subtitle:"×× ×¢××ר ×× × ××צ×ר ת××× ××ת×× ×¢××ר×",personalizedSubtitle:"××× ××צ×ר פ×ס××× ×××××§×× ×××ת×××× ××ש×ת, ×× ×× × ×¦×¨×××× ××××× ×ת ×עסק ש××. שתף ××× ×¤×¨×××.",label:"ת×××ר ×עסק",placeholder:"××××××, ×× × ×× ×× ××פ××× ××ª× ×××× ××ת××× ××××× ×©××ר ×××פ×× ×ר×××× ×××××. ×× ×× × ×ת××§××× ××ר××××× ××ר×× ××× ××שרת×× ××ª× ×§×¤× ××§×××××.",hint:"××× ×©×ª×©×ª×£ ××תר פר×××, ×× ×ת××× ×©× ×צ×ר ×××× ××× ××תר.",categoryLabel:"ת××× ×¢×ס××§",categoryPlaceholder:"××ר ×ת ×ת××× ×©××",categories:{food:"×××× ××שק××ת",beauty:"×××¤× ××ר×××ת",retail:"×§××¢×× ××ת ××××¤× ×",fitness:"×ר×××ת ×××שר",services:"ש×ר×ת×× ×קצ××¢×××",education:"××× ××",real_estate:'× ××"×',tech:"××× ××××××",creator:"××צר×× ×××××ר",other:"××ר"},fullNameLabel:"××©× ×©××",fullNamePlaceholder:"××××××, ×× × ×××",businessNameLabel:"×©× ×עסק",businessNamePlaceholder:"××××××, ××פ××ת ×××× ×©× ×× ×",locationLabel:"×××§×× (××פצ××× ××)",locationPlaceholder:"××××××, ×ª× ××××, ×שר××",uspLabel:"×× ××××× ××ת×? (××פצ××× ××)",uspPlaceholder:"××××××, רק ×ר××××× ××ר×× ××× ×××§×××××",targetAudienceLabel:"×× ×××§×××ת ש××? (××פצ××× ××)",targetAudiencePlaceholder:"××××××, ××¢×× ×¢×¡×§×× ×§×× ××, ××××ת צע×ר×ת, ××××× ××××",brandToneLabel:"×××× ×©× ××××ª× ×©×× (××פצ××× ××)",brandTonePlaceholder:"××ר ×ת ×ס×× ×× ×©××",brandTones:{friendly:"××××××ª× ×× ××ש",professional:"×קצ××¢× ×רש××",playful:"ש××× ××§×××",inspirational:"××¢×רר ×שר××",luxurious:"×××§×¨×ª× ×××¤× ×§",casual:"×§×'××× ××××××××"},continue:"××ש×",saving:"ש××ר..."},whatsapp:{icon:"Phone",title:"×ספר ×××××ס×פ ש××",subt
528itle:"× ×©×ª×ש ×× ××× ×ש××× ×× ×¢×××× × ×ª×××",label:"×ספר ××××ס×פ",placeholder:"+972501234567",hint:"×××× ×§××××ת ×××× × (××××××, +972 ××שר××)",errorPrefix:"××ספר ×××× ××ת××× ×-+",errorDigits:"××× ×ספר ××× ××××× ×ª×§×× (7-15 ספר×ת)",continue:"××ש×",saving:"ש××ר..."},instagram:{icon:"Instagram",title:"××ר ×ת ××× ×¡××ר×",subtitle:"×פשר ×× × ××¤×¨×¡× ×ª××× ×ש××",connected:"××× ×¡×××¨× ××××ר!",connectedSubtitle:"××× ××××",benefits:["פרס×× ×ש×ר×ת ×פ×× ×©××","ת×××× ×¤×ס××× ×××× ×× ××פ×××××××","××¢×§× ××ר ××¢×ר××ת ××× ××××קס"],connectButton:"××ר ××× ×¡××ר×",skipButton:"××× ××¢×ש××",completeButton:"ס××× ×××ר×",finishing:"×ס×××...",note:"××ש××× ×©×× ×××× ××××ת ×ש××× ×¢×¡×§× ×× ××צר."},memory:{title:"××¢×× ×ת ×ת××× ×ת ש××",subtitle:"××סף ת××× ×ת ×©× ×עסק, ×××צר××, ×× ×× ××ר ×©×ª×¨×¦× ××¤×¨×¡× ×¢×××",upload:"×××¥ ×××¢××ת ת××× ×ת",hint:"×ת××× ×ת ×ש××©× ××צ×רת פ×ס××× ×¢×ª×××××. ת××× ×××ס××£ ×¢×× ××ר ××.",continue:"××ש×",skip:"××× ××¢×ש××",uploading:"××¢××..."},errors:{required:"ש×× ××××",describeBusinessBrief:"×× × ×ª×ר ×ת ×עסק ש×× ×קצר×.",failedToSave:"×ש×××¨× × ×ש××. ×× × × ×¡× ×©××.",retryHint:"××××§ ×ת ×××××ר ש×× ×× ×¡× ×©××."}},Ure={badge:"רשת×ת ××רת××ת ×¢× ××××××",title:"×× ×× ×רשת×ת ×××רת××ת ש××.",titleHighlight:"××××ס×פ.",subtitle:"פש×× ×©×× ××××¢×. ×× ×× × ××פ××× ×ש×ר. ××× ×פ××קצ××ת. ××× ××××ת ×קר×. רק ת×צ××ת.",cta:"×ת×× ××××ס×פ",ctaSecondary:"ר×× ××× ×× ×¢×××",socialProof:"עסק×× ×§×× ××",ctaPrimary:"×ת×××× ×¤××¡× ××× × ×¢×ש××"},Wre={title:"×§× ××× ×ש××× ××××¢× ×××ר",subtitle:"××× ×פ××קצ××ת ×××ר××. ××× ××××ת ××§×¨× ×××××. פש×× ×©×× ××××¢× ××× ×ª×××.",step1Title:"ש×× ×ª××× ×",step1Desc:"ש×× ×ª××× ×ת ×-Visible ×××××ס×פ - ×××××§ ××× ××××¢× ×××ר",step2Title:"AI ××צר קס×",step2Desc:"×××× × ××××××ת×ת ש×× × ××צרת פ×ס××× ×©×¢×צר×× ××××× ×¢× ××ת×××× ×©×××××× ×ª×צ××ת",step3Title:"×××¥ ×פרס××",step3Desc:"×שר ×××××¦× ××ת. ×פ×ס××× ×©×× ×¢×××× ×××× ×©××ª× ×× ×× ×ת ×עסק"},qre={title:"××× ×××ס×פ?",subtitle:"×× ×× ×× ×¢×¡×§ ×× ×ספ××§ קש×. רשת×ת ××רת××ת ×× ×¦×¨×××ת ××××ת.",feature1Title:"××ר ×××פ×× ×©××",feature1Desc:"××× ×פ××קצ××ת ××ש×ת ×××××. ××ª× ××ר ××××¢ ×ש××× ××××¢×ת.",feature2Title:"×פס ×¢×§××ת ×××××",feature2Desc:"×× ××ª× ××××¢ ×ש××× ××××¢×ת, ××ª× ×××× ××שת×ש ×-Visible.",feature3Title:"×¢× × ××©× ×× ××",feature3Desc:"××× ×××¥. ת××× ×××× ×©××.",feature4Title:"×¢××× ××× ××§××",feature4Desc:"× ×× ×ת ×רשת×ת ×××רת××ת ש×× ××× ××ש×ר."},Hre={title:"×××× ×¢× ×¢×¡×§×× ××§×××××",subtitle:"×צ×רף ××××ת ××¢×× ×¢×¡×§×× ×§×× ×× ×©×¤×ש×× ×ת ×רשת×ת ×××רת××ת ש×××",testimonial1:{name:"×ר×× ×©.",role:"××פ××× ××§×××ת",quote:"×× × ×× ××ת ×ת ×××× ×¡×××¨× ×©× ×××פ××× ×××× ×©×××× ×ª×פ×. ××©× × ××××."},testimonial2:{name:"××× ×¨.",role:"×××× ××שר ××ש×",quote:"××¢××§××× ×©×× ×¢×× ×-400 ×-2000 ת×× ×××ש×××. ××××¢× ×× ×¢×©××ª× ××××!"},testimonial3:{name:"×©×¨× ×.",role:"×ספר×",quote:"ס××£ ס××£ ×ש×× ×©×× ×¦×¨×× ××ר××. פש×× ×©××× ××××¢× ×ס×××ת."}},Gre={title:"× ×¨××ת ××× ×× ×ש×××. ××× ×ער×ת.",subtitle:"××ר ×ת ×ת××× ×ת ש×ת×××× ×××¢×× ×× ×¨××ת ש××.",howItWorks:"ש×× ×¢× ×× ×©××ª× ×שת×ש. ×× ×ª××× ×ת × ××ª× ×ª ×× ×§×¨××××× ×××ש××× ×ת××× ×©×ª××ר.",free:"××× ×",perMonth:"/×××ש",popular:"×××××¥",currentPlan:"×ת××× ×ת ×× ××××ת",allPlansInclude:"×× ×ת××× ××ת ×××××ת",creditsLabel:"קר×××××",useAsYouWish:"×שת×ש ××× ×ª××× ×©×ª×¨×¦×",exampleUse:"××××××:",contentTypes:{carousels:"קר×ס××ת",reels:"ר××ס××",stories:"ס××ר××"},plans:{free:{name:"××× ×",description:"××××§ ×ת ××ער×ת. ×¦×¤× ×פ××¡× ×ר×ש×× ×©××.",cta:"××× ×"},basic:{name:"×ס×ס×",description:"××ש×ר × ×¨×× ×¢× ×¤×¨×¡×× ×¢×§××.",cta:"×ס×ס×"},visible:{name:"× ×¨××",description:"× ×¨××ת ×××× ×¢× ×¤×ס××× ×סר××× ××.",cta:"× ×¨××"},always:{name:"ת××× × ×¨××",description:"× ×¨××ת ×קס××××ת. ת××× ×©×× ×¢×צר.",cta:"ת××× × ×¨××"}},limits:{whatsapp:"תקש×רת ××××ס×פ",instagram:"פרס×× ×××× ×¡××ר×"},costs:{title:"××× ×¢××× ×ª×××?",creation:"×צ×ר×",edits:"ער×××ת",carousel:"קר×ס×× (4-6 שקפ××)",reel:"ר××ס (5 ×¡×¦× ×ת)",storyImage:"ס×××¨× ×ª××× ×",storyClip:"ס×××¨× ×§××פ ×××××",editReel:"ער××ת ר××ס",editStoryClip:"ער××ת ס×××¨× ×§××פ",editStoryImage:"ער××ת ס×××¨× ×ª××× ×",editCarouselImage:"ער××ת ת××× ×ª קר×ס××",editText:"ער××ת ××§×¡× / ××ת××",free:"××× ×",disclaimer:"××¢××××ת ×× ×ער××ת ×עש×××ת ×××©×ª× ×ת ××¢× ××ת×× ×××ר×××ת ×ת×××."},topUp:{title:"צר×× ×¢×× ×§×¨×××××?",comingSoon:"×קר××",bonus:"××× ×ס",buy:"×§× ×"},allFeatures:{whatsapp:"×¢××ר AI ××××ס×פ",review:"××××§× ××פצ××× ××ת ××¤× × ×¤×¨×¡××",edit:"ער××ת ת××× ×××××¢×",request:"×קשת ש×× ×××× ×××××¢×",automation:"×××××צ×× ×§×××, ש×××× ×שצר××"},whatsappAssistant:{title:"××¢××ר AI ש×× ×× ××××ס×פ",description:"××× ×פ××קצ××ת. ××× ×ש××ר×××. רק ××××¢×ת.",feature1:"ש×× ×ª××× ×ת, ×§×× ×¤×ס×××",feature2:"×קש ער×××ת ××קס×",feature3:"×שר ×× ××× ××××צ×"},custom:{text:"ר××¦× ××תר? צ×ר ×××ª× × ×§×©×¨ ××× ××ת ×ער×ת ×× ×¨××ת ש××.",cta:"צ×ר קשר"}},Kre={title:"×××× ××××ת × ×¨××?",subtitle:"×צ×רף ×-500+ עסק×× ×§×× ×× ×©××××××× ×ת ×× ××××ת ש××× ×רשת×ת, ××××¢× ××ת ××× ×¤×¢×.",button:"×ת×× ×××× × ××××ס×פ",noCreditCard:"××× ×ר××ס ×שר×× â¢ ×רש×× ×-30 ×©× ××ת",buttonPrimary:"×ת×××× ×¤××¡× ××× × ×¢×ש××"},Yre={tagline:"×× ×× ×רשת×ת ×××רת××ת ש××, ××××ס×פ.",privacy:"×××× ××ת פר×××ת",terms:"×ª× ×× ×©×××ש",refund:"×××× ××ת ×××ר××",acceptableUse:"ש×××ש ××§×××",contact:"צ×ר קשר"},Xre={title:"×××× ××ת פר×××ת",lastUpdated:"×¢×××× ××ר××: 27 ×פ×ר××ר 2026",sections:{introduction:{title:"1. ××××",content:'SocialVisible Ltd. ("SocialVisible", "×× ×× ×", "ש×× ×") ×פע××× ×ת פ××פ×ר×ת SocialVisible ××ת××ת https://socialvisible.ai. ×××× ××ת פר×××ת ×× ×ס×××¨× ×××¦× ×× × ××ספ××, ×שת×ש××, ××שפ×× ×××× ×× ×¢× ×××××¢ ש×× ××שר ××ª× ×שת×ש ×ש×ר×ת ×צ×רת ת××× ×¨×©×ª×ת ××רת××ת ×××סס AI ש×× ×. ש×××ש ×-SocialVisible ××××× ×ס××× ×ש×××ת ×× ×ª×× ×× ××ת××ר×ת ××××× ××ת ××.'},informationWeCollect:{title:"2. ××××¢ ש×× × ××ספ××",intro:"×× × ××ספ×× ×ת ××§×××ר××ת ××××ת ×©× ××××¢:",items:["פר×× ×ש×××: ש×, ×ת××ת ××××××, ×ספר ××פ×× ××ספר ××××ס×פ","××××¢ עסק×: ×©× ×עסק, ס××, ×§×××ר××, ×××§××, ×§×× ××¢× ×××× ××ת×","××ש××¨× ×¨×©×ª×ת ××רת××ת: ×ס×××× × ×××©× ×××× ×¡×××¨× ××××× ×שת×ש פ××פ×ר×× ×× ×רש×× ×פרס××","ת××× ×©×××¢××: ת××× ×ת, ת××× ×ת ××××× ××רת ש××ª× ×ספק ××צ×רת ת×××","××××¢ ×¢× ×ª×©×××××: פר×× ×××× ××¢××××× ××××¤× ×××××× ××¨× Stripe (×× ×× × ×× ××××¡× ×× ××¡×¤×¨× ×ר××ס ×××××)","× ×ª×× × ×©×××ש ××× ×××××§×: ×פ××¡× ×©×××ש ×ת××× ×ת, ××ס××ר××ת ×צ×רת ת××× ××××× × ××× ×ר×קצ××","× ×ª×× × ×ª×§×©×רת: ××××¢×ת ש×××××¤× ××¨× ××××ס×פ ××צ×רת ת××× ×× ××××","××××¢ ×¢× ××ש×ר ××פ×פ×: ×ת××ת IP, ס×× ×פ×פ×, ×ער×ת ×פע×× ××ת×××ת ××¤× ××"]},howWeUse:{title:"3. ×××¦× ×× × ×שת×ש×× ×××××¢ ש××",intro:"×× × ×שת×ש×× ×××××¢ ש×× × ××ספ×× ×××ר×ת ××××ת:",items:["ספק, ××¤×¢× ×ת×××§ ×ת פ××פ×ר×ת SocialVisible","צ×ר ת××× ×¨×©×ª×ת ××רת××ת ×××סס AI ×××ת×× ×עסק ש××","×¤×¨×¡× ×ת××× ×ª××× ××ש××× ×ת ×רשת×ת ×××רת××ת ×××××ר×× ×©××","×¢×× ×ª×©×××× ×× ×× ×× ×× ×××××¨× ××××","תקשר ×××ª× ××¨× ××××ס×פ ××ר××ת ×¢×××× ×©× ×ª××× ×ת××××","××××£ ×××××ת ש×××ש ×××סס×ת ת××× ×ת ××¤×§× ×¢× ×¤×¢×××ת ×ש×××","שפר ×ת ××××× ×-AI ×××××ת ×ש×ר×ת ש×× × ××ת×סס ×¢× ×פ××¡× ×©×××ש ×צ××ר××","ש×× ×××××××× ××¨× ×קצ××× ×××, ×תר××ת ××××× ××¢×××× × ×©×ר×ת","צ××ת ×××××ת ×××§××ת ×××××£ ×ת ×ª× ×× ×ש×××ש ש×× ×"]},lawfulBasis:{title:"4. ×ס×ס ×××§× ××¢×××× (GDPR)",intro:"××¤× ×ª×§× ×ª ××× ×ª ×××××¢ ×××××ת (GDPR), ×× × ××¢×××× ×ת ×× ×ª×× ×× ×××ש××× ×©×× ×¢× ××ס×ס×× ××××§××× ×××××:",items:["××צ××¢ ××××: ×¢×××× ××ר×× ×ספק ×ת ש×ר×ת SocialVisible ×©× ×¨×©×ת ××××","××× ×רס×× ×××××××××: ש×פ×ר ×ש×ר×ת×× ×©×× ×, ×× ×עת ××× ×× ×××××ת ××××ת ×פ××פ×ר××","×ס×××: ××שר × ×ª×ª ×ס××× ×פ×רשת, ××× ×תקש×רת ש××××§×ת","×××× ×××§×ת: ×¢×××× ×× ×רש ×צ××ת ××××§×× ××ª×§× ×ת ×××××"]},dataSharing:{title:"5. ש×ת××£ ××××¢",intro:"×× × ×¢×©×××× ×שתף ×ת ×××××¢ ש×× ×¢× ××§×××ר××ת ××××ת ×©× ×¦×××× ×©××ש×××:",items:["Stripe Inc.: ××¢×××× ×ª×©××××× ×××××× ×× ×××× ×× ××××","×¡×¤×§× ××ר×× ×תשת×ת: ×××ר×× ×¤××פ×ר×× ×××ס×× × ×ª×× ××","×¡×¤×§× ×©×ר×ת AI: ××××××ת ×צ×רת ת××× (×× ×ª×× ×× ×©×× ×× ×ש×ש×× ×××××× ×××××× ×©× ×¦× ×©××ש×)","פ××פ×ר××ת רשת×ת ××רת××ת (××× ×¡××ר×, ××××ס×פ): ×פרס×× ×ª××× ××××§× ×¢× ×ª×§×©×רת ××¤× ×× ×××ת××","××× ×× ×××××§×: ×× ×ת×× ×©×××ש ×צ××ר ××× ×× ×××","רש×××ת ×××§: ××שר × ×רש ×¢× ×¤× ×××§, ×¦× ××ת ××©×¤× ×× ×ª×§× × ××ש×ת×ת"],noSell:"×× ×× × ×× ×××ר××, ×ש××ר×× ×× ×¡××ר×× ×××××¢ ××××©× ×©×× ×צ×××× ×©××ש××× ×××ר×ת ש××××§. ××£ פע×."},internationalTransfers:{title:"6. ××¢×ר×ת × ×ª×× ×× ××× ××××××ת",content:"×××××¢ ש×× ×¢×©×× ××××ת ×××¢×ר ×××¢××× ××××× ×ת ש×× ×ת ×××××× × ×× ××ª× ×ת××רר. ××××× ×ת ××× ×¢×©×××× ××××ת ×××§× ××× ×ª ××××¢ ש×× ××. ×× × ××××××× ×××¦×¢× ××× × ×ת×××××, ×××× ×¡×¢×פ×× ×××××× ×¡×× ×ר×××× (SCCs), ×××× × ×¢× ×× ×ª×× ×× ×©×× ××ת×× ××××§× ××× ×ª ××××¢ ×××××."},dataRetention:{title:"7. ש××רת × ×ª×× ××",content:"×× × ×©××ר×× ×ת ×××××¢ ××××©× ×©×× ×× ×¢×× ×ש××× × ×¤×¢×× ×× ×× ×רש ×ספק ×ת ש×ר×ת SocialVisible. ×××ר ×××קת ×ש×××, ×× × ×¢×©×××× ×ש××ר × ×ª×× ×× ×ס××××× ×¢× 90 ×××× ×צ×ר×× ××××× ×ש×××ר, ××תק×פ×ת ×ר×××ת ××תר ××שר × ×רש ×¢× ×¤× ×××§. × ×ª×× ×× ×צ××ר×× ××× ×× ××××× ×¢×©×××× ×××ש×ר ××× ××××ת ××× ××× ×××××§× ×ש×פ×ר ש×ר×ת."},dataSecurity:{title:"8. ×××¦×¢× ×××××",content:"×× × ×××ש××× ××צע×× ××× ××× ××ר××× ××× ×ª×§× ××× ×תעש××× ×××× × ×¢× ×× ×ª×× ×× ×©××, ××××: ××¦×¤× ×ª × ×ª×× ×× ×××¢×ר (TLS/SSL) ×××× ×××, ×קר×ת ×××©× ×××××ת ××ער××ת ×¤× ××××ת, ×ער××ת ××××× ×¡××ר×ת ×××××§×ת פ×××¢×ת, ××ס×× ×××××× ×©× ×ס×××× × ×¨×©×ª×ת ××רת××ת ×××ש×ר××, ××××××ת ×××©× ×©× ×¢××××× ×¢× ×ס×ס צ××¨× ××עת. ××ר×ת ש×× × ×©××פ×× ×××× ×¢× ×××××¢ ש××, ××× ×©××ת ש×××ר ×× ××ס×× ×××§×ר×× × ××××××ת ×-100%."}
528,aiProcessing:{title:"9. AI ××¢×××× ×××××××",content:"SocialVisible ×שת×שת ×××× × ×××××ת×ת ××צ×רת ת××× ×¨×©×ª×ת ××רת××ת. ×-AI ש×× × ××¢×× ×ת ×××××¢ ××¢×¡×§× ×©××, ×××× ×©×××¢××ª× ×××ס××ר××ת ש×××ש ××× ×××צר ת××× ××ת×× ××ש×ת. ת××× ×©× ×צר ×¢× ××× AI × ×צר ×ש××××©× ×××× × ×××× ×§××ת ×××××ת ×××××××ת ש×××צרת ×שפע×ת ×שפ×××ת ×× ×××¢×ת ××××. ××ª× ×©××ר ש×××× ×××× ××× ××שר, ×ער×× ×× ××××ת ×× ×ª××× ×©× ×צר ×¢× ××× AI ××¤× × ×¤×¨×¡××."},cookies:{title:"10. ×¢××××ת ×××× ××××××ת ××¢×§×",content:"×× × ×שת×ש×× ××¢××××ת ×××× ××××××ת ××××ת ×ש××רת ×פע×ת×, ×××רת ××¢×פ×ת×× (×××× ×××רת שפ×) ×× ×ת×× ×©×××ש ×פ××פ×ר××. ×¢××××ת ×××× ××ת × ×רש×ת ×תפק×× ×פ××פ×ר××. ת××× ×× ×× ××¢×פ×ת ×¢××××ת ××¨× ×××ר×ת ××פ××¤× ×©××. ×××§ ×ת××× ×ת ×פ××פ×ר×× ×¢×©×××ת ×× ×פע×× ×ר××× ×× ×¢××××ת ××ש×ת×ת."},dataSubjectRights:{title:"11. ×××××ת ×× ×ª×× ×× ×©××",intro:"××ת×× ××××§×××, ××ת×× ×©×ש ×× ×ת ××××××ת ××××ת ×× ×××¢ ×× ×ª×× ×× ×××ש××× ×©××:",items:["×××ת ××ש×: ×קש ×¢×תק ×©× ×× ×ª×× ×× ×××ש××× ×©×× × ×××××§×× ×¢×××","×××ת ת××§××: ×קש ת××§×× ×©× × ×ª×× ×× ×× ×××××§×× ×× ×סר××",'×××ת ××××§×: ×קש ×××קת ×× ×ª×× ×× ×××ש××× ×©×× ("××××ת ×××ש××")',"×××ת ×××××× ×¢××××: ×קש ××××× ×¢× ×××¤× ×ש×××ש ש×× × ×× ×ª×× ×× ×©××","×××ת ×× ××××ת × ×ª×× ××: ×§×× ×ת ×× ×ª×× ×× ×©×× ×פ×ר×× ×××× × ×קר×× ××××× ×","×××ת ×××ª× ××: ××ª× ×× ××¢×××× ××××סס ×¢× ××× ×רס×× ×××××××××","×××ת ×××× ×ס×××: ××× ×ס××× ×©× ××ª× × ××¢×ר ××× ×¢×ª"],afterItems:"×××××ש ×× ××ת ××××××ת ×××, צ×ר קשר ×¢×× × ××ת××ת [email protected]. × ×©×× ×ª×× 30 ×××× ××§××ת ×קשת×."},children:{title:"12. פר×××ת ×××××",content:"SocialVisible ××× × ××××¢×ת ××× ×©×× ×ת×ת ×××× 18. ×× ×× × ×× ××ספ×× ×××××¢×× ××××¢ ×××©× ××××××. ×× × ××× ×©××¡×¤× × ×ש××× × ×ª×× ×× ××§×××, × × ×§×× ×צע××× ××××קת ××××¢ ×× ××××¤× ×××××. ×× ××ª× ××××× ×©××× ×¡×פק ×× × × ×ª×× ×× ××ש×××, ×× × ×¦×ר קשר ××ת××ת [email protected]."},changes:{title:"13. ש×× ×××× ××××× ××ת פר×××ת ××",content:'×× × ×¢×©×××× ××¢××× ×××× ××ת פר×××ת ×× ×עת ×עת ××× ×שקף ש×× ×××× ×ש×××ת ש×× ×, ×××× ×××××× ×× ××ר×ש×ת ×××§××ת. × ××××¢ ×× ×¢× ×©×× ×××× ×××ת××× ×¢× ××× ×¤×¨×¡×× ××××× ××ת ×××¢×××× ×ª ×××£ ×× ××¢×××× ×ª×ר×× "×¢×××× ××ר××". ×ש×× ×××× ×ש××¢×ת×××, ××ת×× ×©× ××××¢ ×× ×× ××××××× ×× ×××××ס×פ. ×××©× ×ש×××ש ש×× ×-SocialVisible ×××ר ×× ×©×× ×× ××××× ×§××ת ×××× ××ת ×פר×××ת ×××¢×××× ×ª.'},contactUs:{title:"14. צ×ר קשר",content:"×× ×ש ×× ×©×××ת ×× ×שש×ת ×××× ×××× ××ת פר×××ת ×× ×× ×©×××ת ×× ×ª×× ×× ×©×× ×, ×× × ×¦×ר קשר:",contactPage:"××פס ×צ×רת קשר",orEmail:"×× ×©×× ×××××× ×[email protected]. SocialVisible Ltd., [email protected]."}}},Jre={title:"×ª× ×× ×©×××ש",lastUpdated:"×¢×××× ××ר××: 27 ×פ×ר××ר 2026",sections:{acceptance:{title:"1. ×§××ת ×ª× ×××",content:'×¢× ××× ×××©× ×× ×©×××ש ×פ××פ×ר×ת SocialVisible ××ת××ת https://socialvisible.ai ("×ש×ר×ת"), ×××פע×ת ×¢× ××× SocialVisible Ltd. ("SocialVisible", "×× ×× ×", "ש×× ×"), ××ª× ×ס××× ××××ת ×פ××£ ××ª× ×× ×©×××ש ××× ("××ª× ×××"). ×× ××× × ×ס××× ××× ××ª× ××× ××××, ××× × ×¨×©×× ××שת ×× ××שת×ש ×ש×ר×ת. ×ª× ××× ××× ×××××× ×ס×× ××××× ××××× × ×שפ××ת ××× × ×××× SocialVisible Ltd.'},description:{title:"2. ת×××ר ×ש×ר×ת××",content:"SocialVisible ××× ×¤××פ×ר×ת ×צ×רת ×× ×××× ×ª××× ×¨×©×ª×ת ××רת××ת ×××ססת AI. ×ש×ר×ת ××פשר ××שת×ש×× ××צ×ר, ×× ×× ×××¤×¨×¡× ×ª××× ×¨×©×ª×ת ××רת××ת (×××× ×§×¨×ס××ת ×סר××× ×× ×§×¦×¨××) ×××צע×ת ×ר××ת ×¢×××× ×ש×××ת ×××××ס×פ. ×ש×ר×ת ×שת×ש ×××× × ×××××ת×ת ××צ×רת ת××× ××ת×סס ×¢× ×§×× ××שת×ש, ××××¢ ×¢×¡×§× ××××× ×©×××¢×ת×."},eligibility:{title:"3. ×ש×ר×ת",content:"×¢××× ××××ת ×× 18 ×פ××ת ×××¢× ×ש×ר×ת ×שפ××ת ××תקשר ××ס×××× ××××××× ××× ××שת×ש ×ש×ר×ת. ×¢× ××× ×©×××ש ×-SocialVisible, ××ª× ×צ××ר ××ת×××× ×©××ª× ×¢××× ××ר×ש×ת ×ש×ר×ת ×××. ×× ××ª× ×שת×ש ×ש×ר×ת ××©× ×ש×ת עסק×ת, ××ª× ×צ××ר ש×ש ×× ×¡×××ת ××××× ×ש×ת ×× ××ª× ××× ×××."},accountSecurity:{title:"4. ר×ש×× ×ש××× ××××××",content:"××× ××שת ×ת××× ×ת ×ס××××ת ×©× ×ש×ר×ת, ×¢××× ××צ×ר ×ש××× ××ספק ××××¢ ×××××§, ××× ××¢××× ×. ××ª× ×××ר×× ××××¢×× ×ש×××¨× ×¢× ×¡××××ת פר×× ××ש××× ×©××, ×××× ×ס×ס×× ×©××, ×××× ×פע×××××ת ××תר×ש×ת ת×ת ×ש××× ×. ××ª× ×ס××× ××××××¢ ×× × ××× ××ת××ת [email protected] ×¢× ×× ×©×××ש ×××ª× ×××¨×©× ××ש××× ×. SocialVisible ××× × ××ר××ת ××× ××¤×¡× ×× ×××¢ ××××©× ×××ª× ××רש×ת ××ש××× ×."},subscriptionBilling:{title:"5. ת××× ××ת ×× ×× ×××××",intro:"SocialVisible פ××¢×ת ××××× ×××× ×××סס ×× ××. ×¢× ××× ×רש×× ×ת××× ×ת ×תש×××, ××ª× ×ס××× ×××ר×× ×××××:",items:["×× ×××× ××××××× ×ר×ש ×¢× ×ס×ס ××××©× ×××ר","×× ×××× ×ת××ש×× ×××××××ת ×ס××£ ×× ×ª×§×פת ×××× ××× ×× ×××××","ת××× ×ש××¨× ×× ×××ר×× ×ª××× ×ת ××× ×¢×ª; ש×× ×××× ×××× ×¡× ×ת××§×£ ×××××ר ××××× ×××","××××× ×××× ×¡ ×ת××§×£ ×ס××£ תק×פת ××××× ×× ××××ת; תש××ר ×¢× ×××©× ×¢× ×ת×ר×× ××","×× ××× ×¤×§× ×××ר×× ×××§××× ×× ××ס××× ×¢××ר ×××§×× ×©×× × ×צ×× ×תק×פת ××××","××ª× ××ר×× ××× ×ס×× ××××× ×קש×ר×× ××× ×× ×©××","×××§×¨× ×©× ××©× ×תש×××, ×× × ×¢×©×××× ××שע×ת ×××©× ×ת××× ×ת ×תש××× ×¢× ×פתר×× ×תש×××"],afterItems:"×× ×תש××××× ××¢××××× ××××¤× ×××××× ××¨× Stripe. SocialVisible ××× × ××××¡× ×ª ×ת ×ספר ×ר××ס ××שר×× ×××× ×©××."},usageLimits:{title:"6. ×××××ת ש×××ש ××××פת ת××× ×ת",content:"×× ×ª××× ×ת ×× ×× ××××ת ×××××ת ש×××ש ספצ×פ××ת ×ס××× ×ª××× (××ש×, קר×ס××ת, סר××× ×× ×§×¦×¨××). ×××××ת ××× × ××פ×ת ×ר×ת ×שרת ××ת×פס×ת ××× ×××ש. ××שר ××××ת ×ש×××ש ש×× ××××¢×, ×צ×רת ת××× ×ס×× ×× ×ª×ש×× ×¢× ×××××ר ××××× ××× ×× ×¢× ×©×ª×©××¨× ×ת××× ×ת ×ר×× ××××× ××תר. ש×× ×ª××× ×× ×××× ×ש××××¢×× ××××××ת; ×××××ת × ×©×ר×ת × ××ש×ת."},aiDisclaimer:{title:"7. ×צ×רת ××ר××ת ×ת××× ×©× ×צר ×¢× ××× AI",content:"SocialVisible ×שת×שת ×××× × ×××××ת×ת ××צ×רת ת××× ×¨×©×ª×ת ××רת××ת. ××ר×ת ש×× × ×©××פ×× ×××××ת, ×× × ×× ××××××× ×ת ×××××§, ×ש×××ת, ××ת××× ×× ××פק×××××ת ×©× ×ª××× ×©× ×צר ×¢× ××× AI. ××ª× ×××ר×× ××××¢×× ×××××§×, ××ש×ר ×פרס×× ×× ×ª××× ×©× ×צר ×¢× ××× ×ש×ר×ת. SocialVisible ××× × ××ר××ת ××× ×ª×צ××ת ×× ×××¢×ת ×פרס×× ×ª××× ×©× ×צר ×¢× ××× AI, ×××× ×× ×× ××××× ×× ××§ ×××× ××××, ××××× ×¢××§××× ×× ×פר×ת ר×××××ר××ת."},thirdPartyPlatforms:{title:"8. פ××פ×ר××ת ×¦× ×©××ש×",content:"SocialVisible ×שת××ת ×¢× ×¤××פ×ר××ת ×¦× ×©×××©× ×××× ××× ×¡×××¨× (Meta) ×-WhatsApp. SocialVisible ××× × ×§×©×ר×, ×××שרת ×× ××××× ×ª ×¢× ××× Meta Platforms, Inc. ×× ×× ×¡×¤×§ פ××פ×ר×ת ×¦× ×©×××©× ××ר. ××ª× ××ר×× ×צ××ת ××ª× ××× ×××××× ××ת ×©× ×× ×¤××פ×ר×ת ×¦× ×©×××©× ×©××ª× ×××ר ×ש×ר×ת. SocialVisible ××× × ××ר××ת ××× ×¤×¢×××ת ×©× × ×§××ת ×¢× ××× ×¤××פ×ר××ת ×¦× ×©××ש×, ×××× ×שע××ת ×ש×××, ×סר×ת ת××× ×× ×¤×¢×××ת ×××פת ×××× ××ת."},contentOwnership:{title:"9. ת××× ×שת×ש ×××¢××ת",content:"××ª× ×©××ר ×¢× ×× ×××××ת ×××¢××ת ×ת××× ×©××ª× ××¢×× ×-SocialVisible. ×¢× ××× ×©×××ש ×ש×ר×ת, ××ª× ××¢× ××§ ×-SocialVisible ר×ש××× ×××××, ×× ×××¢××, ××× ×ª×××××× ××שת×ש, ××××¡× ×××¢×× ×ת ×ת××× ×©×× ×× ×רק ×צ××¨× ××ª× ×ש×ר×ת. ת××× ×©× ×צר ×¢× ××× AI ××¨× ×ש×ר×ת ש××× ×× ×¢× ×צ×רת×. ר×ש××× ×× ×סת××× ××שר ××ª× ××××§ ×ת ×ת××× ×©×× ×× ×¡××ר ×ת ×ש××× ×."},intellectualProperty:{title:"10. ×§× ××× ×¨××× ×",content:"פ××פ×ר×ת SocialVisible, ×××× ×ת××× ×, ××¢×צ××, ×ת××× ×ת, ××××× ×-AI, ×ת××¢×× ××××ת×× ×©××, ××× ××§× ××× ×ר××× × ××××¢×× ×©× SocialVisible Ltd. ××××× ×ª ×¢× ××× ×××§× ×§× ××× ×¨××× × ×××××. ××× × ×¨×©×× ××עת××§, ××©× ×ת, ××פ××¥, ××צע ×× ××¡× ×פ××× ×× ××צ×ר ×צ×ר×ת × ××ר×ת ××פ××פ×ר×× ××× ×ס×××ª× × ×××ª× ×ר×ש."},acceptableUseRef:{title:"11. ש×××ש ××§×××",content:"×ש×××ש ש×× ×ש×ר×ת ×פ××£ ××××× ××ת ×ש×××ש ×××§××× ×©×× ×, ××××× × ××ת××ת https://socialvisible.ai/acceptable-use. ×פרת ×××× ××ת ×ש×××ש ×××§××× ×¢×××× ××ר×× ××שע×× ×× ×¡××× ××××××× ×©× ×ש××× ×."},suspensionTermination:{title:"12. ×שע×× ×ס×××",content:"×× × ×©××ר×× ×עצ×× × ×ת ××××ת ××שע×ת ×× ×ס××× ×ת ×ש××× × ××× ×¢×ª, ×¢× ×× ××× ××××¢× ×××§××ת, ×××× ×פר×ת ×©× ×ª× ××× ×××, ×××× ××ת ×ש×××ש ×××§×××, ×× ×××× ×× ××ª× ××
528×ת ש×× × ×§×××¢×× ×××××§× ×ש×ר×ת ×× ××שת×ש×× ××ר××. ת××× ×××× ×ת ×ש××× × ××× ×¢×ª ××××ר×ת ××ש××× ×©××. ×¢× ×¡×××, ××××ª× ××שת×ש ×ש×ר×ת × ×¤×¡×§×ª ×××, ×× ×× ×ª××× ×ש××ר ×¢× ×××©× ×¢× ×¡××£ תק×פת ××××× ×× ××××ת ×¢××ר ×× ×××× ×תש×××."},indemnification:{title:"13. ש×פ××",content:"××ª× ×ס××× ×שפ×ת, ×××× ××פ××ר ×××ר××ת ×ת SocialVisible Ltd., × ×ש×× ××שר×, ×××רק××ר××, ××¢××××× ××ס××× ×× ×©×× ××× ×ª×××¢×ת, ×××××ת, × ××§××, ×פס××× ×××צ××ת (×××× ×©×ר ×ר×ת ×¢××¨× ××× ×¡××ר×) ×× ×××¢×× × ×× ×קש×ר×× ×ש××××©× ×ש×ר×ת, ××¤×¨×ª× ×ת ×ª× ××× ×××, ×ת××× ×©××, ×× ××¤×¨×ª× ×©× ×××××ת ×¦× ×©××ש×."},limitationOfLiability:{title:"14. ××××ת ××ר××ת",content:"××××× ××ר××ת ×××תרת ×¢× ×¤× ×××× ×××, SocialVisible Ltd. ×× ×ª××× ××ר××ת ××× × ××§×× ×¢×§×פ××, ×קר×××, ×××××××, ת×צ×ת××× ×× ×¢×× ×©×××, ×× ×× ××××× ×¨×××××, ××× ×¡×ת, × ×ª×× ×× ×× ××××× ×××ת עסק××ת, ×× ×××¢×× ××ש×××ש ש×× ×ש×ר×ת ×× ××סר ×××××ת ××שת×ש ××. ×××ר××ת ××צ××רת ×××××ת ש×× × ××× ×ת×××¢×ת ×× ×ª×¢×× ×¢× ×ס××××× ××××××× ×©×©×××× ×¢× ××× ×-SocialVisible ××©× ×× ×¢×©×¨ (12) ××××ש×× ×©×§××× ×××ר××¢ ש××¨× ×ת×××¢×."},disclaimerOfWarranties:{title:"15. ×צ×רת ××-××ר××ת",content:'×ש×ר×ת ×ס×פק ×¢× ×ס×ס "×××ת ש×××" ×-"××¤× ×©××××", ××× ××ר××ת ××× ×¡×× ×©×××, ××× ×× ×פ×רשת, ×שת×עת ×× ×¡×××××ר×ת. SocialVisible ×ס××¨× ××פ×רש ×× ××ר××ת, ×××× ×× ×× ××××× ×××ר××ת ×שת×עת ×©× ×¡××ר×ת, ×ת××× ××××¨× ×ס×××ת, ××-××¤×¨× ××× ××ר××ת ×× ××עת ××××× ×¢×¡×§×× ×× ×©×××ש ×ס×ר×.'},governingLaw:{title:"16. ××× ×× ×××ש×× ×¡×ס××××",content:"×ª× ××× ××× ×××× ×פ×פ×× ××פ××¨×©× ××ת×× ××××§× ×ª××× ×ש×פ×× ×× SocialVisible Ltd. רש×××, ××× ×ת×××ס×ת ×עקר×× ×ת ×ר×רת ×××. ×× ×¡×ס×× ×× ×××¢ ××ª× ××× ××× ×× ××ש×ר×ת ×× ×¡× ×ª×××× ×פת×ר ×××צע×ת ××©× ×××ª× ×ת×× ××. ×× ×××©× ×××ª× × ×ש×, ס×ס×××× ×××¤×ª×¨× ×××צע×ת ××רר×ת ×××××ת."},forceMajeure:{title:"17. ××× ×¢××××",content:"SocialVisible ×× ×ª××× ××ר××ת ××× ××©× ×× ×¢×××× ×××צ××¢ ×ת×××××××ת×× ××¤× ×ª× ××× ××× ×¢×§× ××ר××¢×× ×©××¢×ר ×ש××××ª× × ×ס××ר×, ×××× ×× ×× ××××× ××ס×× ×ת ×××¢, ××פ×ת, פע×××ת ××ש×ת××ת, תק××ת ××× ××¨× ×, תק××ת פ××פ×ר×ת ×¦× ×©××ש×, ×תקפ×ת ס×××ר ×× ××ר××¢× ××× ×¢×××× ××ר××."},modificationsToService:{title:"18. ש×× ×××× ×ש×ר×ת",content:"×× × ×©××ר×× ×עצ×× × ×ת ××××ת ××©× ×ת, ××שע×ת ×× ××פס××§ ×× ×××× ×©× ×ש×ר×ת ××× ×¢×ª, ×¢× ×× ××× ××××¢× ×××§××ת. × ×¢×©× ×××צ×× ×¡××ר×× ××××××¢ ××שת×ש×× ×¢× ×©×× ×××× ×××ת××× ×ר×ש. SocialVisible ××× × ××ר××ת ××× ×©×× ××××, ×שע××ת ×× ×פסק×ת ×©× ×ש×ר×ת."},changesToTerms:{title:"19. ש×× ×××× ××ª× ××× ×××",content:'×× × ×¢×©×××× ××©× ×ת ×ª× ××× ××× ×עת ×עת. ×××¨×¡× ××¢××× ×ת ×××תר תפ××¨×¡× ×ª××× ×××£ ×× ×¢× ×ª×ר×× "×¢×××× ××ר××" ××¢××××. ×ש×× ×××× ×××ת×××, × ××××¢ ×× ××××××× ×× ××¨× ×ש×ר×ת. ×××©× ×ש×××ש ש×× ×-SocialVisible ×××ר ×× ×©×× ×× ××××× ×§××ת ××ª× ××× ×××¢×××× ××.'},contactUs:{title:"20. פר×× ×תקשר×ת",content:"×ש×××ת ×××× ×ª× ×× ×©×××ש ×××, ×× × ×¦×ר קשר:",contactPage:"××פס ×צ×רת קשר",orEmail:"×× ×©×× ×××××× ×[email protected]. SocialVisible Ltd., [email protected]."}}},Qre={title:"×××× ××ת ×××ר××",lastUpdated:"×¢×××× ××ר××: 27 ×פ×ר××ר 2026",sections:{subscriptionNature:{title:"1. ×××¤× ××× ××",content:"SocialVisible פ××¢×ת ××××× ×× ××. ×× ×ת××× ××ת ×תש××× ××××××ת ×ר×ש ×¢× ×ס×ס ××××©× ×××ר. ×¢× ××× ×רש×× ×ת××× ×ת ×תש×××, ××ª× ×××ר ××× ×©××ª× ×ש×× ×¢××ר ×××©× ×ש×ר×ת ×תק×פת ××××× ×קר×××, ××× ×¢××ר ×××ת ספצ×פ×ת ×©× ×ª×צר×× ×× ×ª×צ××ת."},cancellation:{title:"2. ×××× ××ת ×××××",content:"ת××× ×××× ×ת ××× ×× ×©×× ××× ×¢×ª ××××ר×ת ××ש××× ×©×× ×× ×¢× ××× ×¤× ××× ×[email protected]. ×××××× ×××× ×¡ ×ת××§×£ ×ס××£ תק×פת ××××× ×× ××××ת. תש××ר ×¢× ×××©× ×××× ××× ×ת××× ×ת ×תש××× ×¢× ×¡××£ ×תק××¤× ××ש×××ת. ×× ××××× ×××××× × ×ספ×× ×××ר ש×××××× ×××× ×¡ ×ת××§×£."},noPartialRefunds:{title:"3. ××× ×××ר×× ×××§×××",content:"×× ×× × ×× ×× ×¤××§×× ×××ר×× ×××§××× ×× ××ס××× ×¢××ר ×××§×× ×©×× × ×צ×× ×תק×פת ××××. ×ר××¢ ש××××ר ×××× ×ת×××, ××× ××× ×× ×תק××¤× ×× ××× × × ××ª× ×× ××××ר. ×× ×× ×¢× ×× ×¡××× ×ת××× ××ת, ×××× ×©×ר×××× ×××ר××ת."},exceptionalCircumstances:{title:"4. × ×¡×××ת ×ר×××ת ××××ר",intro:"×××ר×× ××××× × ××× ××§×¨× ××××¤× ×× ×¡×××ת ×ר×××ת ××××ת:",items:["תש××××× ×פ××××: ×× ××××ת ××תר ×פע×
528 ××ת ×¢××ר ×××ª× ×ª×§×פת ×××× ×¢×§× ×©×××× ××× ×ת","ש××××ת ××××: ×× ×¡××× ×©××× ×××× ×¢×§× ×©×××ת ×ער×ת ×× ×¢××××","××©× ×©×ר×ת ××× × ××××: ×× SocialVisible ×× ××××ª× ×××× × ××××¤× ××××ª× ×× ×× ×¤×¢×× ××××§ ×ש××¢××ª× ×תק×פת ××××× ×©××, ××× ×צ××× × ×פת×ר ×ת ×××¢×× ×פרק ××× ×¡××ר"],afterItems:"××קשת ×××ר ×× ×¡×××ת ×××, צ×ר קשר ×¢× [email protected] ת×× 14 ×××× ×××××× ×××××ר, ×ספק ×ת פר×× ×ש××× × ×ת×××ר ×××¢××."},chargebackPolicy:{title:"5. ×××× ××ת ××××× ××××",content:"×× ×ª×××× ××××× ×××× ×× ××××קת תש××× ×¢× ××× ×§ ×× ×¡×¤×§ ×תש××× ×©×× ×××× ××צ×ר קשר ×¢× SocialVisible ת×××× ×פתר×× ×××¢××, ×× × ×©××ר×× ×עצ×× × ×ת ××××ת ××שע×ת ××× ×ת ×ש××× × ××ת ×× ×ש×ר×ת×× ××ש×××××. ×× × ××¢××××× ×××ª× ××צ×ר קשר ×¢× [email protected] ××¤× × ×××× ×××××§×ת תש××× ××× ×©× ××× ×× ×¡×ת ×פת×ר ×ת ××¢× ××× ×ש×ר×ת."},freeTrial:{title:"6. ת××× ×ת ××× ××ת",content:"SocialVisible ×צ××¢× ×ª××× ×ת ××× ××ת ×××פשרת ×× ×××××§ ×ת ×ש×ר×ת ×¢× ×ª××× ×ת ×ש×××ש ×××××××. ×ת××× ×ת ×××× ××ת ××× × ××רשת פר×× ×ª×©××× ×××× × ×פ××¤× ××××× ××ת ×××ר×× ××. ×× ×ª×©××¨× ×ת××× ×ת ××× ××ת ×ת××× ×ת ×תש×××, ×ª× ×× ×××× ××××ר ס×× ×ר×××× ×××× ×ת×ר×× ×ש×ר××."},legalExceptions:{title:"7. ×ר×××ת ×××§××ת",content:"ש×× ××ר ××××× ××ת ×××ר×× ×× ××× × ××××× ×× ××ר×× ×ת ×××××ת ×צר×× ×ס×××××ר××ת ש×× ××¤× ×××× ×××. ×× ×××§× ××× ×ª צר×× ×××× ×ת××× ×ש×פ×× ×©×× ×ספק×× ×××××ת ×××ר ש×××ר×ת ×¢× ×××× ××ת ××, ×××××ת ××× ×××××. ת×ש×× ×××××× ×××ר××¤× ×ת×××× ×©×פ×× ××ר×× ×¢× ×ª×§×פ×ת ×תקרר×ת ס×××××ר××ת עש×××× ××××ת ××¢×× ×××××ת × ×ספ×ת ××¤× ×©× ×§××¢ ××××§ ×××§×××."},contactUs:{title:"8. צ×ר קשר",content:"××קש×ת ×××ר ×× ×©×××ת ××××, ×× × ×¦×ר קשר:",contactPage:"××פס ×צ×רת קשר",orEmail:"×× ×©×× ×××××× ×[email protected]. SocialVisible Ltd."}}},Zre={title:"×××× ××ת ש×××ש ××§×××",lastUpdated:"×¢×××× ××ר××: 27 ×פ×ר××ר 2026",sections:{introduction:{title:"1. ××××",content:'×××× ××ת ש×××ש ××§××× ×× ("AUP") ×ס×××¨× ×ת ×ש×××ש ש×× ×פ××פ×ר×ת SocialVisible ×××פע×ת ×¢× ××× SocialVisible Ltd. ×××× ××ת ×× ××× ×××§ ××ª× ×× ×ש×××ש ש×× × ×××× ×¢× ×× ××שת×ש××. ×¢× ××× ×©×××ש ×-SocialVisible, ××ª× ×ס××× ×צ××ת ×-AUP ××. ×פר×ת ×¢××××ת ××ר×× ××שע×× ×× ×¡××× ×ש××× ×.'},prohibitedActivities:{title:"2. פע×××××ת ×ס×ר×ת",intro:"××× × ×¨×©×× ××שת×ש ×-SocialVisible ××× ×עס××§ ×× ×ס×××¢ ××× ××× ××××ר×× ×××××:",items:["פע×××ת ×××ª× ×××§×ת: ×× ×¤×¢×××ת ×××¤×¨× ×××§×× ×× ×ª×§× ×ת ××§×××××, ××××××× ×× ××× ×××××××","×פרת ×××××ת ××צר××: ××¢×××, ××¤×¦× ×× ×צ×רת ת××× ××פר ×××××ת ×§× ××× ×¨××× × ×©× ××ר××","×©× ×× ×××ר××: ×צ××¨× ×× ××¤×¦× ×©× ×ª××× ×××§×× ×©× ××, ×פ×××, ×××××ת ×× ××ר××","ספ×× ×××××¢×ת ×× ×¨×¦×××ת: ש×××ש ×ש×ר×ת ××צ××¨× ×× ××¤×¦× ×©× ×¡×¤××, ××××¢×ת ××××××ת ×××××ת ×× ×¨×¦×××ת ×× ×ª××× ×××¢×","×× ×פ××צ××ת פ××פ×ר××: × ×ס××× ×× ×¤× ××××¤× ××××××ª× ×××× ××¢×ר××ת, ×צ×רת ×ש××× ×ת ××××פ×× ×× ×× ×פ××צ×× ×©× ××××ר×ת××× ×©× ×¤××פ×ר××ת רשת×ת ××רת××ת","ש×ת××£ ×ש×××: ש×ת××£, ××××¨× ×× ××¢×רת פר×× ×ש××× ×צ×××× ×©××ש××× ×× ××רש××","××× ×× ×ר×××ת: ש×××ש ×ש×ר×ת ×××ר×ת ××× ××, ××× ××ת פ×× × ×¡××ת, פ×ש×× × ×× ×× ×©×××ת ×××¢×ת","×ת×××ת: ×צ×ת עצ×× ×××× ××ר, ×××ª× ×× ×ש×ת ××× ×רש××","ש×××ש ××¨×¢× ×-AI: ש×××ש ××××××ת ×צ×רת ת××× AI ××צ×רת ××פ-פ××קס, ××××¢ ×××¢× ×× ×ª××× ×©× ××¢× ××××¢×ת ×ת ×צ×××ר"]},contentRestrictions:{title:"3. ×××××ת ת×××",intro:"××× × ×¨×©×× ××שת×ש ×-SocialVisible ××צ×ר×, ××ס×× ×× ××¤×¦× ×©× ×ª××× ×©:",items:["×××× ×ª××× ×ת ×××× ××ת, ××ר×ס×× ×× ×× ×¨××× ×ª××× × ××××§","××§×× ×¡××× ×× ×××§×××, × ×©×§ ×× ×××ר×× ×××קר××","×××× ×××ר ××× × ×פ×רש ×× ×ª××× ×× ×¦×","××××× ×× ×× ×¦× ×§××× ×× ××× ××¨× ×©×××","×××× ××××¢ ×××©× ×× ×¡××× ×©× ××ר×× ××× ×ס×××","×××¢× ××××× × ×× ××××× ××ס××× ×¤×ר×צ××"]},securityRestrictions:{title:"4. ×××××ת ××××× ×××× ××ת",intro:"××× × ×¨×©××:",items:["×× ×¡×ת ××צע ×× ××¡× ×פ×××, ×פרק ×× ×פרק ×× ×××§ ×פ××פ×ר×ת SocialVisible","×××××§, ×סר××§ ×× ×××××§ ×ת ×פ×××¢×ת ×©× ××ער××ת ×× ×רשת×ת ש×× ×","××¢×§××£ ×× ×× ×¡×ת ××¢×§××£ ×××¦×¢× ×××××, ×ער××ת ××××ת ×× ×××××ת ש×××ש","××שת×ש ××××× ×××××××××, ××××× ×× ×¡×§×¨×פ××× ××××©× ×ש×ר×ת ××¢×ר ×ש×××ש ×××××¢×","××פר××¢ ×× ×ש×ש ×ת ×ש×ר×ת, ×שרת×× ×× ×רשת×ת ×××××ר×× ×-SocialVisible","×× ×¡×ת ××שת ××ש××× ×ת, × ×ª×× ×× ×× ×ª××× ×©× ×שת×ש×× ××ר×× ××× ×רש××"]},enforcement:{title:"5. ×××פ×",intro:"SocialVisible ש××רת ×עצ×× ×ת ××××ת ×××××£ AUP ×× ××¤× ×©××§×× ××¢×ª× × ××××¢××. פע×××ת ××××¤× ×¢×©×××ת ×××××:",items:["×שע×× ×× ×¡××× ××××× ×©× ×ש××× × ××× ××××¢× ×××§××ת","×סרת ת××× ××פר ×××× ××ת ××","××××× ××× ×ת ×× ×§×××¢× ×©× ×××©× ×ת××× ×ת ספצ×פ××ת","××§×רת ×פר×ת ×ש×××ת, ×××× ×¡×§×רת פע×××ת ×ש××× ×ת×××","ש×ת××£ פע××× ×¢× ×¨×©×××ת ×××פת ×××§ ××שר ×× × ××××× ×× ×©×תר××©× ×¤×¢×××ת ×××ª× ×××§×ת","××××ש סע××× ×שפ××××, ×××× ×ª×××¢×ת ×פ×צ××××"]},reporting:{title:"6. ××××× ×¢× ×פר×ת",content:"×× ××ª× ××××× ×©×שת×ש ×פר ×××× ××ת ש×××ש ××§××× ××, ×× × ×××× ×× × ×ר×",contactPage:"××פס ×צ×רת ×קשר ש×× ×",orEmail:"×× ×©×× ×××××× ×[email protected]. ×× × ×ת×××ס×× ×רצ×× ×ת ××× ×××××××× ×× ××§×ר ××××ר×ת."}}},eie={title:"×ש××××§ ש×× ×× ×× ×××× ×קר×. ××× ×× ×",titleHighlight:"××××ס×פ",subtitle:"×× ×× × ×©××××× ×ª××× ×××× ×פרס×× ×ש×ר×ת ×××××ס×פ ×× ×××. ××©× ×¢×",subtitleHighlight:"×שר / ער×× / ×××",tagline:"××× ×× ×ס×ת. ××× ×××× ×××××.",taglineBold:"××××ס×פ ××× ×ש×ר×ת.",label:"×ספר ××××ס×פ",placeholder:"×ספר ××××ס×פ",hint:"ð ××××××. ×× ×× × ××£ ×¤×¢× ×× ×©××××× ×¡×¤××.",errorPrefix:"××ספר ×××× ××ת××× ×-+",errorDigits:"××× ×ספר ××× ××××× ×ª×§××
528 (7-15 ספר×ת)",errorSaving:"ש××רת ×ספר ×××××ס×פ × ×ש××",cancel:"××ר ××",continue:"×××©× ×¢× ××××ס×פ",saving:"ש××ר..."},tie={createNewPost:"צ×ר פ××¡× ××ש",contentOptions:"×פשר×××ת ת×××",generatingContent:"...××צר ת×××",reviewAndEdit:"סק××¨× ×ער×××",schedulePost:"ת×××× ×¤×ס×",dragAndDrop:"×ר×ר ×ש×רר ת××× ×ת ×××",orClickBrowse:"×× ×××¥ ××¢×××",maxImages:"JPG, PNG, WebP ⢠×קס×××× {{max}} ת××× ×ת",addMore:"××סף ×¢××",continue:"××ש×",whatToCreate:"×× ×ª×¨×¦× ××צ×ר?",carousel:"קר×ס××",multiImagePost:"פ××¡× ×ר××× ×ª××× ×ת",reel:"ר××",shortVideo:"סר××× ×§×¦×¨",addInstructions:"××סף ×× ×××ת (××פצ××× ××)",instructionsPlaceholder:"××××××, ×××¨× ×¢× ×§××קצ××ת ××§××¥ ××××©× ×©×× ×, ×שת×ש ×××× ×שעשע, ×××ר ×ת ××× ××",instructionsHint:"ספר ×× × ×¢× ×× ×ª×¨×¦× ×©×פ××¡× ××××",uploadingImages:"...××¢×× ×ª××× ×ת",generateContent:"צ×ר ת×××",creatingContent:"...××צר ×ת ×ת××× ×©××",creatingDescription:"×××× × ××××××ת×ת ש×× × ×× ×ª×ת ×ת ×ת××× ×ת ש×× ×××צרת {{type}} ××ש××ת ×¢××ר×.",generatingTitle:"×× ×× × ××צר×× ×ת ×קר×ס×× ××× ×××× ×¢×××¨× ××¢××ר ×עסק ש×× â¨",generatingSubtitle:"×× ×××¨× ××× ×××§× 5-10 ××§×ת",generatingElapsed:"××× ×©×××£",generatingSteps:["ð ××קר×× ×ת ×× ××©× ×©××...","ð¡ ××פש×× ×ת ××××××ת ××× ×ש××× ×××××× ×××תר...","ð¯ ××פש×× ×××§×× ×רתק×× ×©×ª×פס×× ×ª×©××ת ××...","âï¸ ××ת××× ×¤××¡× ××××× ××ת×× ××§×× ×©××...","ð ××צר×× ××§×¡× ×©××××§× ×©×××ר...","#ï¸â£ ××פש×× ×ת ×××ש×××× ××× ×¨×××× ××××...","ð¨ ×××צר×× ×ת ×ת××× × ×ר×ש×× × ××××××× ×©××...","ð¼ï¸ ××צר×× ×ת ×ת××× × ××©× ××× - ×פ××× ××תר ×××× ××ר×ש×× ×!","⨠ע××××× ×¢× ×ª××× × 3 - צ××ר×× ×ª××צ×...","ð¥ ת××× × 4 ×ת×××× - ×קר×ס×× ×©×× ×ת××שת!","ð ×××צר×× ×ת ×ת××× × ×××ר×× × - ש××ר×× ×ת ×××× ×ס××£!","ð¬ ×ר××××× ×ת ×× ×ת××× ×ת ×קר×ס×× ××ש××ת...","â¡ ××××¢××× ×ª××× ×ת ×××¢×ר××ת ×קס××××ת...","ð ×¢××××× ×¢× ×¡××× ×קר×ס×× ×©×× - ×××¢× ×××× ×!","â
××ס×פ×× ×ת ×× ×××¢×ת ×××ר×× ×ת ××צ×רת ×××פת ש××...","ð ×קר×ס×× ×©×× ××××¢× ××× ×¨××¢ ×¢×ש××..."],generatedImages:"ת××× ×ת ×©× ×צר×",clickToEnlarge:"(×××¥ ××××××)",caption:"××ת××",regenerate:"צ×ר ×××ש",hashtags:"××ש×××××",addHashtag:"××סף ××ש×××",add:"××סף",connectInstagramTitle:"××ר ××× ×¡×××¨× ××× ×פרס×",connectInstagramSubtitle:"××ר ×ת ××ש××× ×©×× ××× ××¤×¨×¡× ×ש×ר×ת",connectInstagram:"××ר ××× ×¡××ר×",postToInstagram:"×¤×¨×¡× ×××× ×¡××ר×",continueToSchedule:"×××©× ×ת××××",saveAsDraft:"ש××ר ××××××",selectAccount:"××ר ×ש×××",chooseAccount:"××ר ×ש××× ××× ×¡××ר×",noAccounts:"××× ×ש××× ×ת ××××ר××",whenToPost:"××ª× ×פרס×",postNow:"×¤×¨×¡× ×¢×ש××",postNowDesc:"×¤×¨×¡× ××× ×××ר ××ש×ר",scheduleLater:"ת××× ×××ש×",scheduleLaterDesc:"××ר ת×ר×× ××©×¢× ×¡×¤×¦×פ×××",addToQueue:"××סף ×ת×ר",addToQueueDesc:"×שת×ש ×××× × ×¤×¨×¡×× ××פ×××××××",date:"ת×ר××",time:"שע×",cancel:"×××××",publish:"פרס×",schedule:"ת×××",publishSuccess:"×פ××¡× ×¤×רס×! ð",publishSuccessDesc:"×פ××¡× ×©×× × ×©×× ×פרס××.",publishFailed:"×פרס×× × ×ש×",publishFailedDesc:"× ×¡× ×©×× ×× ×©××ר ××××××.",draftSaved:"×××××× × ×©×ר×",draftSavedDesc:"×פ××¡× ×©×× × ×©×ר ××××××.",postScheduled:"×פ××¡× ×ª××××",postScheduledDesc:"×פ××¡× ×©×× ×ª×××× ××צ×××.",saveFailed:"×ש×××¨× × ×ש××",saveFailedDesc:"× ×¡× ×©××.",usageMessage:"×שת×שת ×-{{used}} ×ת×× {{total}} פ×ס××× ××× ×××× ×××ש×××.",upgradeMessage:"ש××¨× ××× ×פת×× ×¤×ס××× ××××××, ×××× ×¨×××ס××, ×××××צ×× ×××× ×פרס×× ×¨×¦××£.",upgradeButton:"ש××¨× ×ª××× ×ת",backToContent:"×××¨× ×ת×××"},nie={title:"ש×××ת × ×¤×צ×ת",subtitle:"×× ×× ×©×¦×¨×× ××עת ×¢× SocialVisible.",questions:{q1:{question:"×× ×× SocialVisible?",answer:"SocialVisible ××× ×¤××פ×ר×ת × ×××× ×¨×©×ª×ת ××רת××ת ×××ססת ××× × ×××××ת×ת. ש×× ×ª××× ×ת ×רע××× ×ת ×××××ס×פ, ××××× × ××××××ת×ת ש×× × ××צרת ×¢×××¨× ×¤×ס××× ×סר××× ×× ×קצ××¢××× ×××× ×¡××ר×."},q2:{question:"××× ×¢××× ×ª×××× ×××××ס×פ?",answer:"פש×× ×©×× ××××¢× ×××× ×××××ס×פ ש×× × ×¢× ×ת××× ×ת ש×× ×ת×××ר קצר. ×××× × ××××××ת×ת ×× ×ª×ת ×ת ×ת×××, ××צרת ××ת××××, ×עצ×ת פ×ס××× ×§×¨×ס×× ×× ×¨×××ס××, ×ש×××ת ×××ª× ×××ש××¨× ××¤× × ×פרס××."},q3:{question:"××× ×× × ×¦×¨×× ××ש××¨× ×¢×צ××?",answer:"×××× ××! SocialVisible ×××¤× ××× ×¢×××ת ××¢×צ××. פש×× ×©×× ×ת ×ת××× ×ת ש×× ×ספר ×× × ×¢× ×× ×פ×ס×. ×××× × ××××××ת×ת ×¢××©× ×ת ×ש×ר."},q4:{question:"×××× ×¤××פ×ר××ת רשת×ת ××רת××ת ××ª× ×ª×××××?",answer:"×ר××¢ ×× ×× × ×ª××××× ×קר×ס××ת ××× ×¡×××¨× ×ר×××ס××. פ××פ×ר××ת × ×ספ×ת ×קר××."},q5:{question:"××× ×× × ×××× ×ער×× ×¤×ס××× ××¤× × ×¤×¨×¡××?",answer:"××! ×× ×¤××¡× × ×©×× ×××× ×××××§× ××¤× × ×פרס××. ×פשר ××קש ש×× ××××, ××שר ×× ××××ת ×× ×ª×××."},q6:{question:"×× ×§××¨× ×ש×× × ××××¢ ×××××× ××××ש×ת?",answer:"×ר××¢ ש××××¢×× ×××××ת ×ת××× ×ת ××××ש×ת, ×פשר ×ש××¨× ×ת××× ×ת ××××× ××תר ××¢×× ×¤×ס×××, ×× ××××ת ש××××××ת ×ת××¤×¡× ×ת×××ת ××××ר ××××× ×××."},q7:{question:"××× ×××××¢ ש×× ××××?",answer:"×××××. ×× ×× × ×שת×ש×× ×××¦×¤× × ××× ×××× ××××× ×תק××××. ×ת××× ×ת ××× ×ª×× ×× ×עסק××× ×©×× ×××××¡× ×× ×צ××¨× ××××××ת ×××¢××× ×× ×ש×תפ×× ×¢× ×¦×××× ×©××ש×××."},q8:{question:"×פשר ×××× ×× ×× ××× ×××?",answer:"××, ×פשר ×××× ××× ×××. ××××©× ×©×× ××ש××× ×¢× ×¡××£ תק×פת ××××× ×× ××××ת. ×× ××× ×¤×§×× ×××ר×× ×××§×××."}}},rie={backToHome:"×××¨× ×××£ ×××ת",title:"×¦×¨× ×§×©×¨",subt
528itle:"×ש ××× ×©××× ×× ×ש××? × ×©×× ×ש×××¢ ×××.",email:"××××××",location:"×××§××",locationValue:"×ª× ××××, ×שר××",form:{fullName:"×©× ×××",fullNamePlaceholder:"××©× ×××× ×©×××",email:"××××××",emailPlaceholder:"[email protected]",subject:"× ×ש×",subjectPlaceholder:"×××¨× × ×ש×",message:"××××¢×",messagePlaceholder:"×¡×¤×¨× ×× × ××× × ××× ××¢××ר...",sending:"ש×××...",submit:"ש×××ת ××××¢×"},subjects:{general:"×¤× ××× ××××ת",support:"ת×××× ××× ×ת",billing:"××××",partnership:"ש×תפ×ת",feedback:"×ש××",other:"××ר"},errors:{nameRequired:"×©× ××× ×©×× ××××",emailRequired:"×××××× ××× ×©×× ××××",emailInvalid:"× × ××××× ×ת××ת ×××××× ×ª×§×× ×",subjectRequired:"× × ××××ר × ×ש×",messageRequired:"××××¢× ××× ×©×× ××××",messageMinLength:"×××××¢× ××××ת ××××× ×פ××ת 10 ת××××"},toast:{successTitle:"×××××¢× × ×©×××!",successDescription:"× ×××ר ××××× ×××§××.",errorTitle:"ש××××",errorRateLimit:"××תר ××× ×קש×ת. × ×¡× ×©×× ××××ר ××תר.",errorInvalidEmail:"×ת××ת ×××××× ×× ×ª×§×× ×.",errorGeneric:"×ש×× ×שת×ש. × ×¡× ×©××."},success:{title:"ת××× ×¨××!",description:"×××××¢× ×©××× × ×©××× ××צ×××. × ×××ר ××××× ×××§×× ××פשר×.",backToHome:"×××¨× ×××£ ×××ת",sendAnother:"ש×××ת ××××¢× × ×ספת"}},iie={business:{next:"×××: ××××ר ××××ס×פ"},whatsapp:{title:"××××ר ××××ס×פ",subtitle:"×ת××× ×©×× ××ש×× ××¨× ××××ס×פ ×××××§× ×××ש×ר × ××××.",nextButton:"×××: ××ר ס×× ×ª×××",generateButton:"צ×ר ×ת ×ת××× ×©××",continueButton:"×××©× ×××××ס×פ"},otpStep:{title:"××××ת ×××××ס×פ ש××",subtitle:"× ×©×× ×§×× ×× 6 ספר×ת ×××××ס×פ ש×× ××× ×××ת ×ת ××ספר.",phoneLabel:"×ספר ×××××ס×פ ש××",phonePlaceholder:"×ספר ××פ××",sendButton:"ש×× ×§×× ×××××ס×פ",sending:"ש××× ×§××...",codeSentTitle:"××§×× × ×©××!",codeSentDesc:"ש××× × ×§×× ×× 6 ספר×ת ×-{{phone}} ×××××ס×פ.",enterCode:"××× ×§×× ×× 6 ספר×ת",verifying:"×××ת...",expiresIn:"××§×× ×פ×× ××¢×× {{time}}",expired:"××§×× ×¤× ×ª××§×£ - ש×× ×©××",changeNumber:"×©× × ×ספר",resend:"ש×× ×§×× ×©××",resendIn:"ש×× ×©×× ××¢×× {{seconds}} ×©× ××ת",noCodeHelp:"×× ×§×××ת ×ת ××§××? ××××§ ×××××ס×פ ××××¢× ××ספר ×××××ת ש×× ×, ×× × ×¡× ×××××.",useEmail:"ש×× ×ת ××§×× ××××× ×©××",sendingEmail:"ש××× ××××...",emailSentTitle:"××××× × ×©××",emailSentDesc:"××××§ ×ת {{email}} ××§×× ×©××.",useWhatsapp:"×××¨× ×××××ס×פ",verifiedTitle:"××××ס×פ ×××ת",verifiedDesc:"××ספר {{phone}} ×××ת ××צ×××.",verifiedReady:"×××× ×××ש××",errorInvalidNumber:"×× × ××× ×ספר ××פ×× ×ª×§××
528.",errorSendFailed:"ש×××ת ××§×× × ×ש××",errorVerifyFailed:"×××××ת × ×ש×",errorInvalidCode:"×§×× ×©×××",footer:"×× × ×שת×ש×× ×××××ס×פ ×ש××× ×תר××ת ×××ש××¨× ×¤×ס×××."},contentType:{title:"×× ×ª×¨×¦× ××צ×ר?",subtitle:"××ר ×ת ס×× ×ת××× ×פ××¡× ×ר×ש×× ×©××",selectRequired:"×× × ××ר ס×× ×ª×××",carousel:"פ××¡× ×§×¨×ס××",carouselDesc:"קר×ס×× ×ר××ת שק×פ××ת ×××× ×¡×××¨× ×¢× ××××××××× ×××§×¡× ××¢×××× (~2 קר×××××)",story:"ת××× ×ª ס××ר×",storyDesc:"ת××× ×ª ס×××¨× ××¤× ×××× ×¡×××¨× ×¢× ××ת×× (~0.5 קר×××××)",next:"×××: סק××¨× ××צ×ר×",topicLabel:"× ×ש×:",imagesLabel:"ת××× ×ת:",uploaded:"×××¢××"},review:{title:"!×××× ×× ××צ×ר×",subtitle:"סק×ר ×ת ×××§×©× ×©×× ××¤× × ×©× ×ª×××",typeLabel:"ס×× ×ª×××",topicLabel:"× ×ש×",topicPlaceholder:"ת×ר ×¢× ×× ×פ××¡× ×©×× ×¦×¨×× ××××ת...",topicRequired:"×× × ××× × ×ש×",imageLabel:"×ת××× × ×©××",changeImage:"×©× × ×ª××× ×",uploadImage:"××¢×× ×ª××× × (××פצ××× ××)",carouselCost:"קר×ס×× ×× ×ª×©×ª×ש ×~2 קר××××× ××ת××× ×ת ×××× ××ת ש××",storyCost:"ס×××¨× ×× ×שת×ש ×~0.5 קר××××× ××ת××× ×ת ×××× ××ת ש××",generating:"ש×××××...",generateButton:"!×××× × ×צ×ר ××¨× ××××ס×פ",back:"â ×©× × ×¡×× ×ª×××"},generating:{title:"××צר×× ×ת ×ת××× ×©××",status:"ש××××× ×ת ×ת××× ×©×× ×××× × ××××××ת×ת...",sent:"×ת××× × ×צר! תק×× ×××ª× ×××××ס×פ ×קר××.",alreadyActive:"×ת××× ××ר × ×צר!",limitReached:"××עת ×××××ת ×קר×××××. ש××¨× ×ת ×ת××× ×ת ש××."},done:{title:"××× ××××! ð",withContent:"×ת××× ×©×× × ×צר ×××ש×× ×××××ס×פ ש×× ×קר××.",noContent:"ש×× ×× × ×ª××× × ×× ××©× ×××××ס×פ ××× ××צ×ר ×ת ×פ××¡× ×ר×ש×× ×©××!",openWhatsApp:"×¤×ª× ××××ס×פ",viewBilling:"×¦×¤× ××××× ×ש×××ש",whatsappMessage:"×××! × ×¨×©××ª× ××××× ××צ×ר ת××× ð¨"}},aie={title:"×××× ×ש×××ש",backToHome:"×××¨× ×××£ ×××ת",creditBalance:"×תרת קר×××××",creditsRemaining:"קר××××× × ×תר×",monthlyAllocation:"×קצ×× ×××ש×ת",creditsPerMonth:"קר×××××/×××ש",plan:"ת××× ×ת",currentPlan:"×ת××× ×ת ×× ××××ת",upgradePlan:"ש××¨× ×ª××× ×ת",managePlan:"× ×××× ×ª××× ×ת",usage:"ש×××ש ×תק××¤× ×× ××××ת",carousels:"קר×ס××ת",reels:"ר××ס",stories:"ס××ר××",of:"×ת××",used:"×ש×××ש",unlimited:"××× ×××××",recentActivity:"פע×××ת ××ר×× ×",date:"ת×ר××",type:"ס××",creditsCharged:"קר×××××",noActivity:"××× ×¤×¢×××ת ××ר×× ×",subscriptionStatus:"×× ××",active:"פע××",cancelled:"××××",none:"××× ×× ××",cancelling:"×ת×××× ×××××",renewsOn:"×ת××ש ×",endsOn:"×סת××× ×",cancelSubscription:"××××× ×× ××",cancelConfirm:"××× ××ª× ×××× ×©×רצ×× × ××××? ×ת××× ×ת ש×× ×ª×ש×ר פע××× ×¢× ×¡××£ תק×פת ×××××.",buyCredits:"ר××ש קר×××××",free:"××× ×",basic:"×ס×ס×",visible:"××××××",always:"ת××× ××××××",loading:"×××¢×...",pricing:{title:"××× ×¢××× ×ª×××?",creation:"×צ×ר×",edits:"ער×××ת",carousel:"קר××¡× (4-6 שק×פ××ת)",reel:"ר×× (5 ×¡×¦× ×ת)",storyImage:"ת××× ×ª ס××ר×",storyClip:"×§××פ ס××ר×",editReel:"ער××ת ר××",editStoryClip:"ער××ת ×§××פ ס××ר×",editStoryImage:"ער××ת ת××× ×ª ס××ר×",editCarouselImage:"ער××ת ת××× ×ª קר×ס×",editText:"ער××ת ××§×¡× / ××ת××",free:"××× ×",disclaimer:"××¢××××ת ×× ×ער××ת ×עש×××ת ×××©×ª× ×ת ××¢× ××ת×× ×××ר×××ת ×ת×××."},packs:{title:"ר××שת קר×××××",credits:"קר×××××",bonus:"××× ×ס",buy:"×§× ×",comingSoon:"×קר××"},plans:{title:"×× ××××",mo:"×××ש",creditsMonth:"קר×××××/×××ש",subt
528itle:"×××¨× ×ת ר×ת ×× ×¨××ת ××ת×××× ×עסק ש×××",starterBonus:"××× ×ס ×ת××ת×",whatsappComm:"תקש×רת WhatsApp",igPublishing:"פרס×× ×××× ×¡××ר×",current:"× ××××",popular:"פ×פ××ר×",cancelPending:"××××× ××ת××",cancelPendingDesc:"ת××× ×ת ×-{{plan}} ש×× × ×©×רת פע××× ×¢× {{date}}. ×××ר ××× ×ª××¢×ר ×ת××× ×ת ××× ××ת.",comingSoon:"×קר××",cancellationPending:"××××× ××ת××",cancel:"×××××",availableCredits:"קר××××× ×××× ××",creditsWithPlan:"{{credits}} קר×××××/×××ש ×¢× ×ת××× ×ת ש××",allPlansInclude:"×× ×ת××× ××ת ×××××ת",feature1:"×¢××ר AI ×××××ס×פ",feature2:"××ש×ר ××¤× × ×¤×¨×¡×× (××פצ××× ××)",feature3:"ער××ת ת××× ×××××¢×",feature4:"××§×©× ×©×× ×××× ××× ×¢×ª",getStarted:"×ת×××× ×¢× × ×¨××ת",forGrowing:"×עסק×× ×צ××××",stayVisible:"××ש××¨× × ×¨××× ××××¤× ×¢×§××",maxVisibility:"× ×¨××ת ×קס××××ת"}},sie={title:"××× ××××!",planActive:"ת××× ×ת {{plan}} ש×× ×¤×¢××× ×עת. ×ת×× ××צ×ר ת××× ×××××!",startCreating:"×ת×× ××צ×ר ×××××ס×פ",viewBilling:"×¦×¤× ×××××",activating:"×פע×× ×ת ×ת××× ×ת ש××...",pleaseWait:"×× ×××¨× ××× ×××§× ××× ×©× ××ת. ×× × ×× ×ª×¡××ר ×ת ×××£.",takingLonger:"×××§× ××תר ××× ××צפ××. ×ת××× ×ת ש×× ×ª××¤×¢× ×קר××.",skipToBilling:"××× ×××××",failedTitle:"×תש××× ×× ×צ×××",failedMessage:"×ש×× ×שת×ש ×תש×××. ×× ××צע ××××. × ×¡× ×©×× ×× ×¤× × ×ת××××.",tryAgain:"× ×¡× ×©××",contactSupport:"צ×ר קשר ×¢× ×ת××××"},oie={title:"××ש××¨× × ×¨×××",subtitle:"××פ××, ×ס×ר××××ת ×ת××× ×ת ש××¢××¨× ×עסק ש××× ××××× ×רשת×ת ×××רת××ת.",allArticles:"×× ××××ר××",readMore:"×§×¨× ×¢××",minRead:"{{count}} ×ק׳ קר×××",backToBlog:"×××¨× ×××××",readyQuestion:"×××× ×× ××ת×××?",getStartedFree:"×ת×××× ×××× ×",readMoreArticles:"קר×× ×¢×× ×××ר××",readyToBeVisible:"×××× ×× ××××ת × ×¨×××?",ctaSubtitle:"×ª× × ×-AI ××צ×ר ת××× ××××× ×רשת×ת ×××רת××ת ×©× ×עסק ש××× - ×××××××ת.",categories:{visibility:"× ×¨××ת",consistency:"×¢×§×××ת",automation:"×××××צ××",strategy:"×ס×ר××××",growth:"צ××××"}},lie={badge:"××× SocialVisible",title:"×× ×× ×××¢×× ×¢×¡×§×× ×¢×¡××§××.",titleHighlight:"×× ×× ××¢×§×××ת.",subtitle:"SocialVisible ×¢××ר ×× ×××ש×ר פע×× ×רשת ××× ××× ×ר×ש ×××××××× ×©× ×ש×××, ×ת×××, ×¢×צ×× ×פרס×× ×©× ×××× ×××.",features:{blankPage:{title:"ס××£ ××××¥ ×©× ××£ ר××§",description:"××ר ×× ×¦×¨×× ××ש×× ×× ××× ×× ×פרס×."},whatsapp:{title:"××ש×ר ×××××ס×פ",description:"×פ××¡× ××××¢ ××× ×©××ª× ××ר ×¢×××, ×××ש×ר ×××§× ×©× ××ת."},consistent:{title:"× ×©×ר×× × ×¨××× ××¢×§×××ת",description:"××¢××× ×©×× × ×©×ר פע×× ×× ×ש××ª× ×¢×¡××§ ×× ×××× ×עסק."},fits:{title:"ת××× ×©×ת××× ×עסק ש××",description:"×פ×ס××× ×× ×××× ×¡××× ×× ×ש×, ×××× ××× ×× ×©×ש×× ×× ××ר××ת."},adjust:{title:"×§× ××©× ×ת",description:"ר××¦× ×©×× ××? פש×× ×ª×ת×× ×××××× ×©×× ××××©× ××××."},oneLess:{title:"××ר ××× ×¤××ת ×¢× ×ר×ש",description:"××ª× ×× ×× ×ת ×עסק. ×× ×× × ××§××× ×¢× ×פרס××."}}},cie={badge:"ס××× ×× ×פע×××",title:"××××¨× ×ת",titleHighlight:"ס××× × ×ס×ש××× ××קצ××¢××× ×©×××",subtitle:"×× ××× ××××× ×× ××©× ×©××. ×פרס×, ×××ª× ××עצ×, ×××× ×©××ª× ×× ×× ×ת ×עסק.",aiAgent:"ס××× AI",cards:{florist:{niche:"פר×××",caption:"×ר×× ×ר×××, פ×ס××× ×× ×××"},pizzeria:{niche:"פ×צר×××",caption:"××× × ×©× ×ער×, × ×××¤× ××ר"},decor:{niche:"×¢×צ×× ×××ת",caption:"×××××¨× ××××× ×©×××רת"},yoga:{niche:"ס××××× ×××××",caption:"ש××¢×ר×× ×ת××××× ×¢× ××××××"},realestate:{niche:'× ××"×',caption:"× ×ס×× ×©×××××× ×¤× ××ת"}
528,boutique:{niche:"×××××§",caption:"×§××קצ××ת ××ש×ת, ×××× ×××××"}}},uie={nav:Lre,mobileDemo:Vre,mockup:Fre,tryItNow:Bre,webOnboarding:zre,hero:Ure,howItWorks:Wre,whyWhatsApp:qre,testimonials:Hre,pricing:Gre,cta:Kre,footer:Yre,privacy:Xre,terms:Jre,refund:Qre,acceptableUse:Zre,whatsappGate:eie,createContent:tie,faq:nie,contact:rie,onboardingFlow:iie,billing:aie,paymentSuccess:sie,blog:oie,whySocialVisible:lie,agentExamples:cie},die={howItWorks:"Cómo funciona",pricing:"Precios",faq:"Preguntas frecuentes",blog:"Blog",startFree:"Empezar Gratis",login:"Iniciar Sesión",signUp:"Registrarse Gratis",dashboard:"Panel",signOut:"Cerrar Sesión",signedInAs:"Conectado como"},hie={aria:"Ejemplo animado: subes, la IA prepara el post, tú apruebas y publicamos",step1:"1. Sube una foto y escribe el tema",step2:"2. La IA prepara tu post â¨",step3:"3. Aprueba y publica con un toque ð",subjectLabel:"Tema del post",subjectText:"Croissants recién salidos del horno esta mañana â",photoUploaded:"Foto añadida",aiTitle:"Visible AI está preparando tu post",aiSubtitle:"Descripción, imagen y hashtags",aiStep1:"Analizando tu foto",aiStep2:"Escribiendo la descripción",aiStep3:"Añadiendo hashtags y visuales",approveButton:"Aprobar y publicar",published:"Publicado en Instagram"},fie={online:"en lÃnea",botGreeting:"¡Hola! Soy Visible AI ð EnvÃame una foto y cuéntame sobre tu publicación - ¡yo la creo por ti!",userMessage:"Croissants frescos del horno esta mañana ð¥",botProcessing:"¡Hermoso! ⨠Creando una publicación de Instagram para ti...",likes:"248 me gusta",caption:"Despierta con el aroma de croissants frescos ð¥â¨ Hechos a mano, dorados y listos para tu café de la mañana. #PanaderiaParis #ReciénHorneado",readyToPost:"¡Listo para publicar! ð",inputPlaceholder:"Escribe un mensaje"},pie={badge:"Pruébalo gratis, sin registro",title:"Crea tu primera publicación en",titleHighlight:"30 segundos",skipLink:"¿Quieres saber más primero?",seeHow:"Ver cómo funciona â",mobile:{badge:"Pruébalo gratis, sin registro",title:"Ve tu publicación en",titleHighlight:"30 segundos",headline:"Hagamos que tu negocio sea",headlineHighlight:"visible",subheadline:"Crear publicaciones para redes sociales ahora es tan fácil como enviar un mensaje a un amigo por WhatsApp.",cta:"Pruébalo ahora gratis.",photoLabel:"Primero, toma una foto",takePhoto:"Tomar Foto",gallery:"GalerÃa",photoAdded:"Foto añadida",addPhotos:"Fotos para tu post",then:"luego",descLabel:"¿De qué trata este post?",descPlaceholder:"Rebajas de verano, ¡30% de descuento en todo este fin de semana! Ven a visitarnos...",descHint:"Describe el tema de tu post â¨",createPost:"Crear Mi Publicación",tryAnother:"Probar con otra foto",examples:{bakery:"Croissants frescos recién sacados del horno, perfectos para tu café de la mañana...",salon:"Nuevas tendencias en color de pelo para verano, reserva tu transformación...",restaurant:"El plato especial del chef esta semana, hecho con ingredientes frescos...",boutique:"Nuevas llegadas! Piezas de edición limitada que te encantarán..."},generating:{analyzing:"Analizando tu foto...",understanding:"Entendiendo el tema...",writing:"Escribiendo el pie de foto perfecto...",hashtags:"Añadiendo hashtags en tendencia...",finishing:"Añadiendo toques mágicos..."},result:{subtitle:"Esto es lo que creamos para ti"},hintTopic:"¿Sobre qué quieres publicar? â¨",hintImage:"Añade una foto para continuar ð¸",startCta:"¡Genera tu primer post!",startCtaNeedTopic:"¡Genera tu primer post!",startCtaNeedImage:"Sube una foto para tu primer post",makeFirstPost:"Crea tu primer post ahora"},business:{greeting:"â¨",title:"¡Crea un post en segundos!",subtitle:"Elige qué quieres crear",typeLabel:"¿Qué quieres crear?",topicLabel:"¿Cuál es el tema?",topicPlaceholder:"ej., Rebajas de verano, Nuevo plato, Detrás de escena...",next:"Siguiente: Añadir fotos â",types:{carousel:"ð¼ï¸ Carrusel",reel:"ð¬ Reel / Video"}},photo:{back:"Volver",title:"Añade una foto",subtitle:"Crearemos la publicación perfecta para ella",dropzone:"Suelta tu foto aquÃ",browse:"o haz clic para buscar",useSample:"O usa una foto de ejemplo â",create:"⨠Crear mi publicación"},generating:{title:"Creando magia...",steps:{analyzing:"ð Analizando tu foto...",writing:"âï¸ Escribiendo el pie de foto perfecto...",hashtags:"#ï¸â£ Añadiendo hashtags en tendencia...",finishing:"⨠Añadiendo toques finales..."}},result:{title:"¡Tu publicación está lista!",cta:"¿Te gusta? Obtén 5 publicaciones gratis â",tryAnother:"Probar otra foto",startOver:"Empezar de nuevo"}},mie={badge:"Redes sociales en piloto automático",title:"Tu Manager de Redes Sociales.",titleHighlight:"En WhatsApp.",subt
528itle:"Solo escribe lo que quieras. Nosotros nos encargamos del resto. Sin apps. Sin paneles. Solo resultados.",cta:"Empezar en WhatsApp",ctaSecondary:"Ver Cómo Funciona",socialProof:"pequeños negocios",ctaPrimary:"Crea tu post gratis ahora"},gie={title:"Fácil como enviar un mensaje",subtitle:"Sin apps que descargar. Sin paneles que aprender. Solo envÃa mensajes como siempre.",step1Title:"EnvÃa una foto",step1Desc:"EnvÃa tus fotos a Visible por WhatsApp - como si le escribieras a un amigo",step2Title:"La IA crea magia",step2Desc:"Nuestra IA crea publicaciones que detienen el scroll con textos que convierten",step3Title:"Toca para publicar",step3Desc:"Aprueba con un toque. Tus publicaciones salen mientras diriges tu negocio"},vie={title:"¿Por qué WhatsApp?",subtitle:"Porque dirigir un negocio ya es bastante difÃcil. Las redes sociales no deberÃan serlo.",feature1Title:"Ya está en tu teléfono",feature1Desc:"Sin nuevas apps que aprender. Ya sabes cómo enviar mensajes.",feature2Title:"Cero curva de aprendizaje",feature2Desc:"Si sabes enviar mensajes, puedes usar Visible.",feature3Title:"Responde cuando te convenga",feature3Desc:"Sin presión. Responde a tu ritmo.",feature4Title:"Funciona en cualquier lugar",feature4Desc:"Gestiona tus redes sociales desde cualquier dispositivo."},yie={title:"Amado por Negocios Locales",subtitle:"Ãnete a cientos de pequeños empresarios que han simplificado sus redes sociales",testimonial1:{name:"MarÃa S.",role:"PanaderÃa Local",quote:"Gestiono el Instagram de mi panaderÃa mientras espero que suba el pan. Un cambio total."},testimonial2:{name:"David R.",role:"Entrenador Personal",quote:"Mis seguidores pasaron de 400 a 2000 en dos meses. ¡Y apenas hice nada!"},testimonial3:{name:"Sara K.",role:"PeluquerÃa",quote:"Por fin algo que no necesita tutorial. Solo envÃa un mensaje y listo."}},bie={title:"La visibilidad no es una tarea. Es un sistema.",subtitle:"Elige el plan que coincida con tus objetivos de visibilidad.",howItWorks:"Todos los limites se reinician mensualmente. Automatizacion por defecto, control opcional.",free:"Gratis",perMonth:"/mes",popular:"RECOMENDADO",currentPlan:"Plan Actual",allPlansInclude:"Todos los planes incluyen",plans:{free:{name:"Gratis",description:"Prueba el sistema. Ve tu primera publicacion.",cta:"Gratis"},basic:{name:"Basico",description:"Mantente visible con publicaciones consistentes.",cta:"Basico"},visible:{name:"Visible",description:"Visibilidad completa con posts y videos.",cta:"Visible"},always:{name:"Siempre Visible",description:"Maxima visibilidad. Contenido que nunca para.",cta:"Siempre Visible"}},limits:{carousels:"{{count}} carrusel al mes",carousels_plural:"{{count}} carruseles al mes",reels:"{{count}} reel al mes",reels_plural:"{{count}} reels al mes",whatsapp:"Comunicacion por WhatsApp",instagram:"Publicacion en Instagram"},allFeatures:{whatsapp:"Asistente AI en WhatsApp",review:"Revision opcional antes de publicar",edit:"Editar contenido por mensaje",request:"Solicitar cambios por mensaje",automation:"Automatizacion primero, control cuando quieras"},whatsappAssistant:{title:"Tu asistente AI vive en WhatsApp",description:"Sin apps. Sin paneles. Solo mensajes.",feature1:"Envia fotos, recibe publicaciones",feature2:"Pide ediciones por texto",feature3:"Aprueba o rechaza con un toque"},custom:{text:"Quieres mas? Contactanos para construir tu sistema de visibilidad.",cta:"Contactanos"}},xie={title:"Listo para ser visible?",subtitle:"Unete a mas de 500 pequenos negocios que estan creciendo en redes sociales, un mensaje a la vez.",button:"Empezar Gratis en WhatsApp",noCreditCard:"Sin tarjeta de credito ⢠Configuracion en 30 segundos",buttonPrimary:"Crea tu post gratis ahora"},wie={tagline:"Tu manager de redes sociales, en WhatsApp.",privacy:"PolÃtica de Privacidad",terms:"Términos de Servicio",refund:"PolÃtica de Reembolso",acceptableUse:"Uso Aceptable",contact:"Contacto"},Sie={title:"PolÃtica de Privacidad",lastUpdated:"Ãltima actualización: 27 de febrero de 2026",sections:{introduction:{title:"1. Introducción",content:'SocialVisible Ltd. ("SocialVisible", "nosotros", "nuestro") opera la plataforma SocialVisible en https://socialvisible.ai. Esta PolÃtica de Privacidad explica cómo recopilamos, usamos, divulgamos y protegemos su información cuando utiliza nuestro servicio de generación de contenido para redes sociales impulsado por IA. Al usar SocialVisible, usted consiente las prácticas de datos descritas en esta polÃtica.'},informationWeCollect:{title:"2. Información que Recopilamos",intro:"Recopilamos las siguientes categorÃas de información:",items:["Información de cuenta: nombre, dirección de correo electrónico, número de teléfono y número de WhatsApp","Información comercial: nombre del negocio, tipo, categorÃa, ubicación, público objetivo y tono de marca","Credenciales de redes sociales: tokens de acceso de Instagram e identificadores de usuario de plataforma requeridos para publicación","Contenido subido: fotos, imágenes y otros medios que proporciona para la generación de contenido","Información de pago: datos de facturación procesados de forma segura a través de Stripe (no almacenamos números completos de tarjeta)","Datos de uso y análisis: patrones de uso de funciones, historial de generación de contenido y registros de interacción","Datos de comunicación: mensajes intercambiados a través de WhatsApp para creación y gestión de contenido","Información del dispositivo y navegador: dirección IP, tipo de navegador, sistema operativo y URLs de referencia"]},howWeUse:{title:"3. Cómo Usamos su Información",intro:"Usamos la información que recopilamos para los siguientes propósitos:",items:["Proporcionar, operar y mantener la plataforma SocialVisible","Generar contenido de redes sociales impulsado por IA adaptado a su negocio","Publicar y programar contenido en sus cuentas de redes sociales conectadas","Procesar pagos de suscripción y gestionar ciclos de facturación","Comunicarnos con usted a través de WhatsApp para flujo de trabajo de contenido y soporte","Aplicar lÃmites de uso basados en el plan y monitorear la actividad de la cuenta","Mejorar nuestros modelos de IA y calidad del servicio basándonos en patrones de uso agregados","Enviar correos electrónicos transaccionales, alertas de seguridad y actualizaciones del servicio","Cumplir con obligaciones legales y hacer cumplir nuestros Términos de Servicio"]},lawfulBasis:{title:"4. Base Legal para el Procesamiento (RGPD)",intro:"Bajo el Reglamento General de Protección de Datos (RGPD), procesamos sus datos personales sobre las siguientes bases legales:",items:["Ejecución del contrato: procesamiento necesario para proporcionar el servicio SocialVisible al que se suscribió","Intereses legÃtimos: mejorar nuestros servicios, prevenir fraudes y garantizar la seguridad de la plataforma","Consentimiento: cuando ha proporcionado consentimiento explÃcito, como para comunicaciones de marketing","Obligación legal: procesamiento requerido para cumplir con leyes y regulaciones aplicables"]},dataSharing:{title:"5. Compartir Información",intro:"Podemos compartir su información con las siguientes categorÃas de terceros:",items:["Stripe Inc.: para procesamiento seguro de pagos y gestión de suscripciones","Proveedores de alojamiento e infraestructura: para alojamiento de plataforma y almacenamiento de datos","Proveedores de servicios de IA: para capacidades de generación de contenido (sus datos no se usan para entrenar modelos de terceros)","Plataformas de redes sociales (Instagram, WhatsApp): para publicar contenido y facilitar la comunicación según sus instrucciones","Herramientas de análisis: para análisis de uso agregado y anonimizado","Autoridades legales: cuando lo requiera la ley, orden judicial o regulación gubernamental"],noSell:"No vendemos, alquilamos ni intercambiamos su información personal a terceros con fines de marketing. Nunca."},internationalTransfers:{title:"6. Transferencias Internacionales de Datos",content:"Su información puede ser transferida y procesada en paÃses distintos al paÃs en el que reside. Estos paÃses pueden tener leyes de protección de datos diferentes. Garantizamos salvaguardas apropiadas, incluyendo Cláusulas Contractuales Tipo (CCT), para proteger sus datos en cumplimiento con las leyes de protección de datos aplicables."},dataRetention:{title:"7. Retención de Datos",content:"Retenemos su información personal mientras su cuenta esté activa o según sea necesario para proporcionar el servicio SocialVisible. Después de la eliminación de la cuenta, podemos retener ciertos datos hasta 90 dÃas para fines de respaldo y recuperación, y por perÃodos más largos cuando lo requiera la ley. Los datos agregados y anonimizados pueden retenerse indef
528inidamente para análisis y mejora del servicio."},dataSecurity:{title:"8. Medidas de Seguridad",content:"Implementamos medidas técnicas y organizativas estándar de la industria para proteger sus datos, incluyendo: cifrado de datos en tránsito (TLS/SSL) y en reposo, controles de acceso y autenticación para sistemas internos, evaluaciones de seguridad regulares y pruebas de vulnerabilidad, almacenamiento seguro de tokens y credenciales de redes sociales, y restricciones de acceso de empleados basadas en la necesidad de conocer. Aunque nos esforzamos por proteger su información, ningún método de transmisión o almacenamiento electrónico es 100% seguro."},aiProcessing:{title:"9. IA y Procesamiento Automatizado",content:"SocialVisible utiliza inteligencia artificial para generar contenido de redes sociales. Nuestra IA procesa su información comercial, medios subidos e historial de uso para producir contenido personalizado. El contenido generado por IA se crea para su uso y no implica toma de decisiones automatizada que produzca efectos legales sobre usted. Usted mantiene control total sobre si aprobar, editar o rechazar cualquier contenido generado por IA antes de su publicación."},cookies:{title:"10. Cookies y TecnologÃas de Rastreo",content:"Usamos cookies y tecnologÃas similares para mantener su sesión, recordar sus preferencias (incluyendo selección de idioma) y analizar el uso de la plataforma. Las cookies esenciales son necesarias para que la plataforma funcione. Puede gestionar las preferencias de cookies a través de la configuración de su navegador. Algunas funciones de la plataforma pueden no funcionar correctamente si las cookies están deshabilitadas."},dataSubjectRights:{title:"11. Sus Derechos sobre los Datos",intro:"Dependiendo de su ubicación, puede tener los siguientes derechos respecto a sus datos personales:",items:["Derecho de acceso: solicitar una copia de los datos personales que tenemos sobre usted","Derecho de rectificación: solicitar la corrección de datos inexactos o incompletos",'Derecho de supresión: solicitar la eliminación de sus datos personales ("derecho al olvido")',"Derecho a limitar el procesamiento: solicitar limitación en cómo usamos sus datos","Derecho a la portabilidad de datos: recibir sus datos en un formato estructurado y legible por máquina","Derecho de oposición: oponerse al procesamiento basado en intereses legÃtimos","Derecho a retirar el consentimiento: retirar el consentimiento previamente otorgado en cualquier momento"],afterItems:"Para ejercer cualquiera de estos derechos, contáctenos en [email protected]. Responderemos dentro de los 30 dÃas posteriores a la recepción de su solicitud."},children:{title:"12. Privacidad de Menores",content:"SocialVisible no está destinado a personas menores de 18 años. No recopilamos deliberadamente información personal de menores. Si nos enteramos de que hemos recopilado datos de un menor inadvertidamente, tomaremos medidas para eliminar dicha información de inmediato."},changes:{title:"13. Cambios a esta PolÃtica de Privacidad",content:'Podemos actualizar esta PolÃtica de Privacidad periódicamente. Le notificaremos sobre cambios materiales publicando la polÃtica actualizada en esta página y actualizando la fecha de "Ãltima actualización". Para cambios significativos, también podemos notificarle por correo electrónico o WhatsApp. Su uso continuado de SocialVisible después de cualquier modificación constituye aceptación de la PolÃtica de Privacidad actualizada.'},contactUs:{title:"14. Contáctenos",content:"Si tiene preguntas sobre esta PolÃtica de Privacidad o nuestras prácticas de datos, contáctenos:",contactPage:"Formulario de contacto",orEmail:"o envÃe un correo a [email protected]. SocialVisible Ltd., [email protected]."}}},jie={title:"Términos de Servicio",lastUpdated:"Ãltima actualización: 27 de febrero de 2026",sections:{acceptance:{title:"1. Aceptación de los Términos",content:'Al acceder o usar la plataforma SocialVisible en https://socialvisible.ai (el "Servicio"), operada por SocialVisible Ltd. ("SocialVisible", "nosotros", "nuestro"), usted acepta quedar sujeto a estos Términos de Servicio ("Términos"). Si no está de acuerdo con todos estos Términos, no podrá acceder ni usar el Servicio.'},description:{title:"2. Descripción de los Servicios",content:"SocialVisible es una plataforma de generación y gestión de contenido para redes sociales impulsada por IA. El Servicio permite a los usuarios crear, gestionar y publicar contenido (incluyendo carruseles y reels) a través de un flujo de trabajo integrado en WhatsApp."},eligibility:{title:"3. Elegibilidad",content:"Debe tener al menos 18 años de edad y capacidad legal para celebrar acuerdos vinculantes para usar el Servicio. Si usa el Servicio en nombre de una entidad comercial, declara que tiene autoridad para vincular dicha entidad a estos Términos."},accountSecurity:{title:"4. Registro de Cuenta y Seguridad",content:"Para acceder a ciertas funciones del Servicio, debe crear una cuenta y proporcionar información precisa, completa y actualizada. Usted es el único responsable de mantener la confidencialidad de sus credenciales de cuenta y de toda la actividad que ocurra bajo su cuenta. NotifÃquenos inmediatamente en [email protected] sobre cualquier uso no autorizado."},subscriptionBilling:{title:"5. Planes de Suscripción y Facturación",intro:"SocialVisible opera con un modelo de facturación por suscripción. Al suscribirse a un plan de pago, usted acepta lo siguiente:",items:["Las suscripciones se facturan por adelantado de forma mensual recurrente","Las suscripciones se renuevan automáticamente al final de ca
528da perÃodo de facturación a menos que se cancelen","Puede actualizar o degradar su plan en cualquier momento; los cambios se aplican en el siguiente ciclo de facturación","La cancelación es efectiva al final del perÃodo de facturación actual; conserva el acceso hasta esa fecha","No se emiten reembolsos parciales o prorrateados por porciones no utilizadas de un perÃodo de facturación","Usted es responsable de los impuestos aplicables asociados con su suscripción","En caso de fallo de pago, podemos suspender el acceso a funciones de pago hasta que se resuelva el pago"],afterItems:"Todos los pagos se procesan de forma segura a través de Stripe. SocialVisible no almacena su número completo de tarjeta de crédito."},usageLimits:{title:"6. LÃmites de Uso y Aplicación del Plan",content:"Cada plan de suscripción incluye lÃmites de uso especÃficos para tipos de contenido (ej., carruseles, reels). Estos lÃmites se aplican a nivel de servidor y se restablecen mensualmente. Cuando se alcanza el lÃmite, la generación de contenido para ese tipo se pausará hasta el siguiente ciclo de facturación o hasta que actualice su plan."},aiDisclaimer:{title:"7. Descargo de Responsabilidad del Contenido Generado por IA",content:"SocialVisible utiliza inteligencia artificial para generar contenido. No garantizamos la precisión, integridad, idoneidad o efectividad del contenido generado por IA. Usted es el único responsable de revisar, aprobar y publicar cualquier contenido creado por el Servicio. SocialVisible no es responsable de consecuencias derivadas de la publicación de contenido generado por IA."},thirdPartyPlatforms:{title:"8. Plataformas de Terceros",content:"SocialVisible se integra con plataformas de terceros incluyendo Instagram (Meta) y WhatsApp. SocialVisible no está afiliada, respaldada ni patrocinada por Meta Platforms, Inc. Usted es responsable de cumplir con los términos y polÃticas de cualquier plataforma de terceros que conecte al Servicio."},contentOwnership:{title:"9. Contenido del Usuario y Propiedad",content:"Usted conserva todos los derechos de propiedad sobre el contenido que sube a SocialVisible. Al usar el Servicio, otorga a SocialVisible una licencia limitada, no exclusiva, libre de regalÃas para usar, almacenar y procesar su contenido únicamente con el fin de proporcionar el Servicio. El contenido generado por IA le pertenece una vez generado."},intellectualProperty:{title:"10. Propiedad Intelectual",content:"La plataforma SocialVisible, incluyendo su software, diseño, funciones, modelos de IA, documentación y marca, es propiedad intelectual exclusiva de SocialVisible Ltd. No puede copiar, modificar, distribuir, realizar ingenierÃa inversa ni crear obras derivadas de la plataforma sin nuestro consentimiento previo por escrito."},acceptableUseRef:{title:"11. Uso Aceptable",content:"Su uso del Servicio está sujeto a nuestra PolÃtica de Uso Aceptable, disponible en https://socialvisible.ai/acceptable-use. La violación de la PolÃtica de Uso Aceptable puede resultar en la suspensión o terminación inmediata de su cuenta."},suspensionTermination:{title:"12. Suspensión y Terminación",content:"Nos reservamos el derecho de suspender o terminar su cuenta en cualquier momento, con o sin previo aviso, por violaciones de estos Términos o la PolÃtica de Uso Aceptable. Puede cancelar su cuenta en cualquier momento desde la configuración de su cuenta."},indemnification:{title:"13. Indemnización",content:"Usted acepta indemnizar, defender y eximir de responsabilidad a SocialVisible Ltd., sus directivos, directores, empleados y agentes de cualquier reclamación, responsabilidad, daño, pérdida y gasto derivado de su uso del Servicio, su violación de estos Términos o su violación de derechos de terceros."},limitationOfLiability:{title:"14. Limitación de Responsabilidad",content:"En la máxima medida permitida por la ley aplicable, SocialVisible Ltd. no será responsable de daños indirectos, incidentales, especiales, consecuentes o punitivos. Nuestra responsabilidad total agregada no excederá los montos totales pagados por usted a SocialVisible en los doce (12) meses anteriores al evento que dio origen a la reclamación."},disclaimerOfWarranties:{title:"15. Descargo de GarantÃas",content:'El Servicio se proporciona "TAL CUAL" y "SEGÃN DISPONIBILIDAD", sin garantÃas de ningún tipo, ya sean expresas, implÃcitas o estatutarias.'},governingLaw:{title:"16. Ley Aplicable y Resolución de Disputas",content:"Estos Términos se regirán por las leyes de la jurisdicción en la que SocialVisible Ltd. está constituida. Las disputas se resolverán primero mediante negociación de buena fe y, si fracasa, mediante arbitraje vinculante."},forceMajeure:{title:"17. Fuerza Mayor",content:"SocialVisible no será responsable de ningún incumplimiento o retraso debido a eventos fuera de nuestro control razonable, incluyendo desastres naturales, pandemias, acciones gubernamentales, interrupciones de internet o ciberataques."},modificationsToService:{title:"18. Modificaciones al Servicio",content:"Nos reservamos el derecho de modificar, suspender o discontinuar cualquier aspecto del Servicio en cualquier momento."},changesToTerms:{title:"19. Cambios a estos Términos",content:"Podemos revisar estos Términos periódicamente. La versión más actual siempre estará publicada en esta página. Su uso continuado de SocialVisible después de cualquier revisión constituye aceptación de los Términos actualizados."},contactUs:{title:"20. Información de Contacto",content:"Para preguntas sobre estos Términos de Servicio, contáctenos:",contactPage:"Formulario de contacto",orEmail:"o envÃe un correo a [email protected]. SocialVisible Ltd., [email protected]."}}},_ie={title:"PolÃtica de Reembolso",lastUpdated:"Ãltima actualización: 27 de febrero de 2026",sections:{subscriptionNature:{title:"1. Naturaleza de la Suscripción",content:"SocialVisible opera con un modelo de suscripción. Todos los planes de pago se facturan por adelantado de forma mensual recurrente. Al suscribirse, usted reconoce que está pagando por acceso al Servicio para el próximo perÃodo de facturación, no por una cantidad especÃfica de resultados."},cancellation:{title:"2. PolÃtica de Cancelación",content:"Puede cancelar su suscripción en cualquier momento desde la configuración de su cuenta o contactando a supp
528[email protected]. La cancelación es efectiva al final del perÃodo de facturación actual. Conservará acceso completo hasta el final del perÃodo pagado."},noPartialRefunds:{title:"3. Sin Reembolsos Parciales",content:"No emitimos reembolsos parciales o prorrateados por porciones no utilizadas de un perÃodo de facturación. Una vez iniciado un ciclo de facturación, la tarifa de suscripción para ese perÃodo no es reembolsable."},exceptionalCircumstances:{title:"4. Circunstancias Excepcionales de Reembolso",intro:"Los reembolsos pueden considerarse caso por caso en las siguientes circunstancias excepcionales:",items:["Pagos duplicados: si se le cobró más de una vez por el mismo perÃodo de facturación debido a un error técnico","Errores de facturación: si se cobró un monto incorrecto debido a un error del sistema o procesamiento","Fallo técnico comprobado del servicio: si SocialVisible estuvo materialmente no disponible durante una porción significativa de su perÃodo de facturación"],afterItems:"Para solicitar un reembolso bajo estas circunstancias, contacte a [email protected] dentro de los 14 dÃas posteriores al cargo en cuestión."},chargebackPolicy:{title:"5. PolÃtica de Contracargos",content:"Si inicia un contracargo o disputa de pago sin contactar primero a SocialVisible, nos reservamos el derecho de suspender inmediatamente su cuenta. Le animamos a contactar [email protected] antes de iniciar cualquier disputa de pago."},freeTrial:{title:"6. Plan Gratuito",content:"SocialVisible ofrece un plan gratuito para probar el Servicio con funciones y uso limitados. El plan gratuito no requiere información de pago y no está sujeto a esta PolÃtica de Reembolso."},legalExceptions:{title:"7. Excepciones Legales",content:"Nada en esta PolÃtica de Reembolso limita sus derechos legales como consumidor. Si las leyes de protección al consumidor en su jurisdicción proporcionan derechos de reembolso que superan esta polÃtica, esos derechos se aplicarán."},contactUs:{title:"8. Contáctenos",content:"Para solicitudes de reembolso o preguntas de facturación, contáctenos:",contactPage:"Formulario de contacto",orEmail:"o envÃe un correo a [email protected]. SocialVisible Ltd."}}},Nie={title:"PolÃtica de Uso Aceptable",lastUpdated:"Ãltima actualización: 27 de febrero de 2026",sections:{introduction:{title:"1. Introducción",content:'Esta PolÃtica de Uso Aceptable ("PUA") rige su uso de la plataforma SocialVisible operada por SocialVisible Ltd. Esta polÃtica es parte de nuestros Términos de Servicio y se aplica a todos los usuarios. Al usar SocialVisible, acepta cumplir con esta PUA. Las violaciones pueden resultar en la suspensión o terminación de su cuenta.'},prohibitedActivities:{title:"2. Actividades Prohibidas",intro:"No puede usar SocialVisible para participar o facilitar lo siguiente:",items:["Actividad ilegal: cualquier actividad que viole leyes o regulaciones aplicables","Infracción de derechos de autor: subir, distribuir o generar contenido que infrinja derechos de propiedad intelectual","Discurso de odio y acoso: crear o distribuir contenido que promueva el odio, discriminación, violencia o acoso","Spam y mensajes no solicitados: usar el Servicio para generar o distribuir spam o contenido engañoso","Manipulación de plataformas: intentar inflar artificialmente métricas de engagement o manipular algoritmos","Compartir cuentas: compartir, vender o transferir credenciales de cuenta a terceros no autorizados","Fraude y engaño: usar el Servicio para propósitos fraudulentos, estafas financieras o phishing","Suplantación de identidad: representarse como otra persona, marca o entidad sin autorización","Abuso de IA: usar las capacidades de generación de contenido IA para crear deepfakes o contenido diseñado para engañar"]},contentRestrictions:{title:"3. Restricciones de Contenido",intro:"No puede usar SocialVisible para crear, almacenar o distribuir contenido que:",items:["Contenga malware, virus o componentes de software dañinos","Promueva drogas ilegales, armas o sustancias controladas","Contenga material sexualmente explÃcito o contenido explotador","Apunte o explote a menores de cualquier manera","Contenga información personal o confidencial de otros sin consentimiento","Sea intencionalmente engañoso o constituya desinformación"]},securityRestrictions:{title:"4. Restricciones de Seguridad y Técnicas",intro:"No puede:",
528items:["Intentar realizar ingenierÃa inversa o descompilar cualquier parte de la plataforma SocialVisible","Sondear, escanear o probar la vulnerabilidad de nuestros sistemas o redes","Eludir o intentar evadir medidas de seguridad, sistemas de autenticación o lÃmites de uso","Usar herramientas automatizadas, bots o scripts para acceder al Servicio más allá de su uso previsto","Interferir o interrumpir el Servicio, servidores o redes conectados a SocialVisible","Intentar acceder a cuentas, datos o contenido de otros usuarios sin autorización"]},enforcement:{title:"5. Aplicación",intro:"SocialVisible se reserva el derecho de hacer cumplir esta PUA a nuestra sola discreción. Las acciones de aplicación pueden incluir:",items:["Suspensión o terminación inmediata de su cuenta sin previo aviso","Eliminación de contenido que viole esta polÃtica","Restricción temporal o permanente de acceso a funciones especÃficas","Investigación de violaciones sospechosas","Cooperación con autoridades policiales cuando creamos que se ha producido actividad ilegal","Búsqueda de remedios legales, incluyendo reclamaciones por daños"]},reporting:{title:"6. Reportar Violaciones",content:"Si cree que un usuario está violando esta PolÃtica de Uso Aceptable, repórtelo a través de",contactPage:"nuestro formulario de contacto",orEmail:"o envÃe un correo a [email protected]. Tomamos todos los reportes en serio."}}},Pie={title:"Tu marketing no vive en un panel. Vive en",titleHighlight:"WhatsApp",subtitle:"Enviamos tu contenido listo para publicar directamente a WhatsApp todos los dÃas. Responde con",subtitleHighlight:"Aprobar / Editar / Omitir",tagline:"Sin inicios de sesión. Sin herramientas que aprender.",taglineBold:"WhatsApp es el servicio.",label:"Número de WhatsApp",placeholder:"Número de WhatsApp",hint:"ð Seguro. Nunca enviamos spam.",errorPrefix:"El número debe comenzar con +",errorDigits:"Ingresa un número internacional válido (7-15 dÃgitos)",errorSaving:"Error al guardar el número de WhatsApp",cancel:"Más tarde",continue:"Continuar con WhatsApp",saving:"Guardando..."},Aie={createNewPost:"Crear Nueva Publicación",contentOptions:"Opciones de Contenido",generatingContent:"Generando Contenido...",reviewAndEdit:"Revisar y Editar",schedulePost:"Programar Publicación",dragAndDrop:"Arrastra y suelta imágenes aquÃ",orClickBrowse:"o haz clic para buscar",maxImages:"JPG, PNG, WebP ⢠Máximo {{max}} imágenes",addMore:"Agregar más",continue:"Continuar",whatToCreate:"¿Qué te gustarÃa crear?",carousel:"Carrusel",multiImagePost:"Publicación con múltiples imágenes",reel:"Reel",shortVideo:"Video corto",addInstructions:"Agregar instrucciones (opcional)",instructionsPlaceholder:"ej., Anunciar nuestra nueva colección de verano, usar tono divertido, mencionar el descuento",instructionsHint:"Cuéntanos de qué quieres que trate la publicación",uploadingImages:"Subiendo imágenes...",generateContent:"Generar Contenido",creatingContent:"Creando tu contenido...",creatingDescription:"Nuestra IA está analizando tus imágenes y creando el {{type}} perfecto para ti.",generatingTitle:"Estamos creando el mejor carrusel para ti y tu negocio â¨",generatingSubtitle:"Esto suele tardar de 5 a 10 minutos",generatingElapsed:"Transcurrido",generatingSteps:["ð Investigando tu tema...","ð¡ Buscando los mejores ángulos y temas...","ð¯ Buscando ganchos atractivos que capten la atención...","âï¸ Escribiendo un post increÃble adaptado a tu audiencia...","ð Creando un texto convincente que convierte...","#ï¸â£ Buscando los hashtags más relevantes...","ð¨ Generando tu primera imagen impresionante...","ð¼ï¸ Creando la segunda imagen - ¡aún mejor que la primera!","⨠Trabajando en la imagen 3 - tomando impulso...","𥠡Imagen 4 en progreso - tu carrusel está tomando forma!","ð Generando la imagen final - ¡lo mejor para el final!","ð¬ Ensamblando todas las imágenes en un carrusel fluido...","â¡ Optimizando imágenes para máximo engagement...","ð Finalizando tu carrusel - ¡ya casi está listo!","â
Dando los toques finales a tu obra maestra...","ð Tu carrusel llega en cualquier momento..."],generatedImages:"Imágenes Generadas",clickToEnlarge:"(clic para ampliar)",caption:"Le
528yenda",regenerate:"Regenerar",hashtags:"Hashtags",addHashtag:"Agregar hashtag",add:"Agregar",connectInstagramTitle:"Conecta Instagram para publicar",connectInstagramSubtitle:"Vincula tu cuenta para publicar directamente",connectInstagram:"Conectar Instagram",postToInstagram:"Publicar en Instagram",continueToSchedule:"Continuar a Programar",saveAsDraft:"Guardar como Borrador",selectAccount:"Seleccionar Cuenta",chooseAccount:"Elegir cuenta de Instagram",noAccounts:"No hay cuentas conectadas",whenToPost:"Cuándo publicar",postNow:"Publicar ahora",postNowDesc:"Publicar inmediatamente después de la aprobación",scheduleLater:"Programar para después",scheduleLaterDesc:"Elegir fecha y hora especÃficas",addToQueue:"Agregar a la cola",addToQueueDesc:"Usa horarios óptimos de publicación",date:"Fecha",time:"Hora",cancel:"Cancelar",publish:"Publicar",schedule:"Programar",publishSuccess:"¡Publicación Publicada! ð",publishSuccessDesc:"Tu publicación ha sido enviada para publicar.",publishFailed:"La publicación falló",publishFailedDesc:"Intenta de nuevo o guarda como borrador.",draftSaved:"Borrador guardado",draftSavedDesc:"Tu publicación ha sido guardada como borrador.",postScheduled:"Publicación programada",postScheduledDesc:"Tu publicación ha sido programada.",saveFailed:"Error al guardar",saveFailedDesc:"Intenta de nuevo.",usageMessage:"Has usado {{used}} de {{total}} publicaciones mensuales gratuitas.",upgradeMessage:"Mejora tu plan para desbloquear publicaciones diarias, incluyendo reels, automatización completa y publicación continua.",upgradeButton:"Mejorar Plan",backToContent:"Volver al Contenido"},Cie={title:"Preguntas Frecuentes",subtitle:"Todo lo que necesitas saber sobre SocialVisible.",questions:{q1:{question:"¿Qué es SocialVisible?",answer:"SocialVisible es una plataforma de gestión de redes sociales impulsada por IA. EnvÃas fotos e ideas por WhatsApp, y nuestra IA crea publicaciones y reels profesionales de Instagram para ti."},q2:{question:"¿Cómo funciona el flujo de WhatsApp?",answer:"Simplemente envÃa un mensaje a nuestro bot de WhatsApp con tus fotos y una breve descripción. Nuestra IA analiza el contenido, crea subtÃtulos, diseña carruseles o reels, y te los envÃa para aprobación antes de publicar."},q3:{question:"¿Necesito habilidades de diseño?",answer:"¡Para nada! SocialVisible se encarga de todo el diseño. Solo envÃa tus fotos y dinos de qué trata la publicación. La IA se encarga del resto."},q4:{question:"¿Qué plataformas de redes sociales soportan?",answer:"Actualmente soportamos carruseles de Instagram y reels. Más plataformas próximamente."},q5:{question:"¿Puedo editar las publicaciones antes de publicar?",answer:"¡SÃ! Cada publicación se te envÃa para revisión antes de publicar. Puedes solicitar cambios, aprobar o rechazar cualquier contenido."},q6:{question:"¿Qué pasa si alcanzo mi lÃmite mensual?",answer:"Una vez que alcanzas el lÃmite mensual de tu plan, puedes actualizar a un plan superior para más publicaciones, o esperar a que tus lÃmites se restablezcan al inicio del próximo ciclo de facturación."},q7:{question:"¿Mis datos están seguros?",answer:"Absolutamente. Usamos cifrado y prácticas de seguridad estándar de la industria. Tus fotos y datos comerciales se almacenan de forma segura y nunca se comparten con terceros."},q8:{question:"¿Puedo cancelar mi suscripción en cualquier momento?",answer:"SÃ, puedes cancelar en cualquier momento. Tu acceso continúa hasta el final de tu perÃodo de facturación actual. No se emiten reembolsos parciales."}}},Eie={backToHome:"Volver al inicio",title:"Contáctanos",subtitle:"¿Tienes alguna pregunta o comentario? Nos encantarÃa saber de ti.",email:"Correo electrónico",location:"Ubicación",locationValue:"Tel Aviv, Israel",form:{fullName:"Nombre completo",fullNamePlaceholder:"Tu nombre completo",email:"Correo electrónico",emailPlaceholder:"[email protected]",subject:"Asunto",subjectPlaceholder:"Selecciona un asunto",message:"Mensaje",messagePlaceholder:"Cuéntanos cómo podemos ayudarte...",sending:"Enviando...",submit:"Enviar mensaje"},subjects:{general:"Consulta general",support:"Soporte técnico",billing:"Facturación",partnership:"Colaboración",feedback:"Comentarios",other:"Otro"},errors:{nameRequired:"El nombre es obligatorio",emailRequired:"El correo es obligatorio",emailInvalid:"Ingresa un correo válido",subjectRequired:"Selecciona un asunto",messageRequired:"El mensaje es obligatorio",messageMinLength:"El mensaje debe tener al menos 10 caracteres"},toast:{successTitle:"¡Mensaje enviado!",successDescription:"Te responderemos pronto.",errorTitle:"Error",errorRateLimit:"Demasiadas solicitudes. Inténtalo más tarde.",errorInvalidEmail:"Correo electrónico no válido.",errorGeneric:"Algo salió mal. Inténtalo de nuevo."},success:{title:"¡Gracias!",description:"Tu mensaje ha sido envi
528ado exitosamente. Te responderemos lo antes posible.",backToHome:"Volver al inicio",sendAnother:"Enviar otro mensaje"}},kie={progress:"Paso {{current}} de {{total}}",business:{title:"Cuéntanos sobre tu negocio",subtitle:"Esto nos ayuda a crear contenido personalizado para ti",personalizedSubtitle:"Para crear publicaciones precisas y personalizadas, necesitamos entender tu negocio. Comparte algunos detalles.",label:"Descripción del negocio",placeholder:"Ej: Tengo una panaderÃa en Madrid especializada en pan artesanal y reposterÃa. Usamos ingredientes orgánicos y servimos a cafeterÃas locales.",hint:"Cuantos más detalles compartas, mejor será el contenido que crearemos.",categoryLabel:"Industria",categoryPlaceholder:"Selecciona tu industria",categories:{food:"Comida y Bebida",beauty:"Belleza y Bienestar",retail:"Retail y Moda",fitness:"Salud y Fitness",services:"Servicios Profesionales",education:"Educación",real_estate:"Bienes RaÃces",tech:"TecnologÃa",creator:"Creadores y Entretenimiento",other:"Otro"},fullNameLabel:"Tu nombre",fullNamePlaceholder:"Ej: Juan GarcÃa",businessNameLabel:"Nombre del negocio",businessNamePlaceholder:"Ej: PanaderÃa de Danny",locationLabel:"Ubicación (opcional)",locationPlaceholder:"Ej: Madrid, España",uspLabel:"¿Qué te hace único? (opcional)",uspPlaceholder:"Ej: Solo ingredientes orgánicos y locales",targetAudienceLabel:"¿Quiénes son tus clientes? (opcional)",targetAudiencePlaceholder:"Ej: Dueños de pequeños negocios, madres jóvenes",brandToneLabel:"Tono de tu marca (opcional)",brandTonePlaceholder:"Elige tu estilo",brandTones:{friendly:"Amigable y Accesible",professional:"Profesional y Formal",playful:"Divertido y Ligero",inspirational:"Inspirador",luxurious:"Lujoso y Premium",casual:"Casual y Cotidiano"},whatsappLabel:"Número de WhatsApp",whatsappPlaceholder:"Número de teléfono",whatsappHint:"Usamos WhatsApp para enviarte previsualizaciones de publicaciones para aprobación.",continue:"Continuar",saving:"Guardando..."},errors:{required:"Campo obligatorio",describeBusinessBrief:"Por favor, describe brevemente tu negocio.",failedToSave:"Error al guardar. Inténtalo de nuevo.",retryHint:"Verifica tu conexión e inténtalo de nuevo."}},Tie={business:{next:"Siguiente: Conectar WhatsApp"},whatsapp:{title:"Conectar WhatsApp",subtitle:"Tu contenido se entregará a través de WhatsApp para una revisión y aprobación fáciles.",nextButton:"Siguiente: Elegir tipo de contenido",generateButton:"Generar mi contenido",continueButton:"Continuar a WhatsApp"},contentType:{title:"¿Qué te gustarÃa crear?",subtitle:"Elige el tipo de contenido para tu primera publicación",selectRequired:"Por favor selecciona un tipo de contenido",carousel:"Publicación carrusel",carouselDesc:"Carrusel de Instagram con múltiples diapositivas, imágenes atractivas y texto (~2 créditos)",story:"Imagen de historia",storyDesc:"Hermosa imagen de historia de Instagram con pie de foto (~0.5 créditos)",next:"Siguiente: Revisar y generar",topicLabel:"Tema:",imagesLabel:"Imágenes:",uploaded:"subidas"},review:{title:"¡Listo para generar!",subtitle:"Revisa tu solicitud antes de que empecemos a crear",typeLabel:"Tipo de contenido",topicLabel:"Tema",topicPlaceholder:"Describe de qué deberÃa tratar tu publicación...",topicRequired:"Por favor ingresa un tema",imageLabel:"Tu imagen",changeImage:"Cambiar imagen",uploadImage:"Subir una imagen (opcional)",carouselCost:"Este carrusel usará ~2 créditos de tu plan gratuito",storyCost:"Esta historia usará ~0.5 créditos de tu plan gratuito",generating:"Enviando...",generateButton:"¡Generar a través de WhatsApp!",back:"â Cambiar tipo de contenido"},generating:{title:"Creando tu contenido",status:"Enviando tu contenido a nuestra IA...",sent:"¡El contenido se está creando! Lo recibirás en WhatsApp en breve.",alreadyActive:"¡El contenido ya se está creando!",limitReached:"LÃmite de créditos alcanzado. Actualiza tu plan."},done:{title:"¡Todo listo! ð",withContent:"Tu contenido se está creando y se entregará a tu WhatsApp en breve.",noContent:"¡EnvÃanos una foto y tema en WhatsApp para crear tu primera publicación!",openWhatsApp:"Abrir WhatsApp",viewBilling:"Ver facturación y uso",whatsappMessage:"¡Hola! Me acabo de registrar y estoy listo para crear contenido ð¨"}
528,blog:{title:"Mantente Visible",subtitle:"Consejos, estrategias e ideas para que tu negocio destaque en redes sociales.",allArticles:"Todos los artÃculos",readMore:"Leer más",minRead:"{{count}} min de lectura",backToBlog:"Volver al blog",readyQuestion:"¿Listo para empezar?",getStartedFree:"Empieza gratis",readMoreArticles:"Leer más artÃculos",readyToBeVisible:"¿Listo para ser visible?",ctaSubtitle:"Deja que la IA cree contenido increÃble para las redes sociales de tu negocio - automáticamente.",categories:{visibility:"Visibilidad",consistency:"Consistencia",automation:"Automatización",strategy:"Estrategia",growth:"Crecimiento"}},otpStep:{title:"Verifica tu WhatsApp",subtitle:"Te enviaremos un código de 6 dÃgitos por WhatsApp para confirmar tu número.",phoneLabel:"Tu número de WhatsApp",phonePlaceholder:"Número de teléfono",sendButton:"Enviar código por WhatsApp",sending:"Enviando código...",codeSentTitle:"¡Código enviado!",codeSentDesc:"Enviamos un código de 6 dÃgitos a {{phone}} por WhatsApp.",enterCode:"Ingresa el código de 6 dÃgitos",verifying:"Verificando...",expiresIn:"El código expira en {{time}}",expired:"Código expirado - por favor reenvÃa",changeNumber:"Cambiar número",resend:"Reenviar código",resendIn:"Reenviar en {{seconds}}s",noCodeHelp:"¿No recibiste el código? Revisa WhatsApp por un mensaje de nuestra lÃnea de verificación, o prueba por correo.",useEmail:"Enviar código a mi correo",sendingEmail:"Enviando correo...",emailSentTitle:"Correo enviado",emailSentDesc:"Revisa {{email}} para tu código.",useWhatsapp:"Usar WhatsApp en su lugar",verifiedTitle:"WhatsApp verificado",verifiedDesc:"Tu número {{phone}} está verificado.",verifiedReady:"Listo para continuar",errorInvalidNumber:"Por favor ingresa un número válido.",errorSendFailed:"No se pudo enviar el código",errorVerifyFailed:"Falló la verificación",errorInvalidCode:"Código inválido",footer:"Usamos WhatsApp para enviarte notificaciones y aprobaciones de publicaciones."}},Oie={plans:{subtitle:"Elige el nivel de visibilidad adecuado para tu negocio",starterBonus:"bono inicial",whatsappComm:"Comunicación por WhatsApp",igPublishing:"Publicación en Instagram",current:"ACTUAL",popular:"POPULAR",cancelPending:"Cancelación pendiente",cancelPendingDesc:"Tu plan {{plan}} permanecerá activo hasta {{date}}. Después pasarás al plan gratuito.",comingSoon:"Próximamente",cancellationPending:"Cancelación pendiente",cancel:"Cancelar",availableCredits:"Créditos disponibles",creditsWithPlan:"{{credits}} créditos/mes con tu plan",allPlansInclude:"Todos los planes incluyen",feature1:"Asistente IA en WhatsApp",feature2:"Revisión opcional antes de publicar",feature3:"Editar contenido por mensaje",feature4:"Solicitar cambios en cualquier momento",getStarted:"Comienza con visibilidad",forGrowing:"Para negocios en crecimiento",stayVisible:"Mantente visible constantemente",maxVisibility:"Máxima visibilidad"}},Iie={nav:die,mobileDemo:hie,mockup:fie,tryItNow:pie,hero:mie,howItWorks:gie,whyWhatsApp:vie,testimonials:yie,pricing:bie,cta:xie,footer:wie,privacy:Sie,terms:jie,refund:_ie,acceptableUse:Nie,whatsappGate:Pie,createContent:Aie,faq:Cie,contact:Eie,webOnboarding:kie,onboardingFlow:Tie,billing:Oie},Rie={howItWorks:"Comment ça marche",pricing:"Tarifs",faq:"FAQ",blog:"Blog",startFree:"Commencer Gratuitement",login:"Connexion",signUp:"S'inscrire Gratuitement",dashboard:"Tableau de bord",signOut:"Déconnexion",signedInAs:"Connecté en tant que"},Die={aria:"Exemple animé : tu envoies, l'IA prépare le post, tu approuves et on publie",step1:"1. Envoie une photo et écris le sujet",step2:"2. L'IA prépare ton post â¨",step3:"3. Approuve et publie en un clic ð",subjectLabel:"Sujet du post",subjectText:"Croissants tout juste sortis du four ce matin â",photoUploaded:"Photo ajoutée",aiTitle:"Visible AI prépare ton post",aiSubtitle:"Légende, image et hashtags",aiStep1:"Analyse de ta photo",aiStep2:"Rédaction de la légende",aiStep3:"Ajout des hashtags et visuels",approveButton:"Approuver et publier",published:"Publié sur Instagram"},Mie={online:"en ligne",botGreeting:"Salut ! Je suis Visible AI ð Envoie-moi une photo et parle-moi de ton post - je le crée pour toi !",userMessage:"Croissants frais sortis du four ce matin ð¥",botProcessing:"Magnifique ! ⨠Je crée un post Instagram pour toi maintenant...",likes:"248 j'aime",caption:"Réveillez-vous avec l'odeur des croissants frais ð¥â¨ Roulés à la main, dorés et prêts pour votre café du matin. #BoulangerieParis #FraichementCuit",readyToPost:"Prêt à publier ! ð",inputPlaceholder:"Tapez un message"},$ie={badge:"Essayez gratuitement, sans inscription",title:"Créez votre première publication en",titleHighlight:"30 secondes",skipLink:"Vous voulez en savoir plus d'abord ?",seeHow:"Voir comment ça marche â",mobile:{badge:"Essayez gratuit, sans inscription",title:"Voyez votre publication en",titleHighlight:"30 secondes",headline:"Ren
528dons votre entreprise",headlineHighlight:"visible",subheadline:"Créer des publications pour les réseaux sociaux est maintenant aussi simple qu'envoyer un message à un ami sur WhatsApp.",cta:"Essayez maintenant gratuitement.",photoLabel:"D'abord, prenez une photo",takePhoto:"Prendre Photo",gallery:"Galerie",photoAdded:"Photo ajoutée",addPhotos:"Photos pour votre post",then:"puis",descLabel:"De quoi parle ce post ?",descPlaceholder:"Soldes d'été, 30% de réduction sur tout ce week-end ! Venez découvrir nos nouveautés...",descHint:"Décrivez le sujet de votre post â¨",createPost:"Créer Ma Publication",tryAnother:"Essayer avec une autre photo",examples:{bakery:"Croissants frais tout juste sortis du four, parfaits pour votre café du matin...",salon:"Nouvelles tendances couleur pour l'été, réservez votre transformation...",restaurant:"Le plat spécial du chef cette semaine, préparé avec des ingrédients frais...",boutique:"Nouvelle collection! Pièces en édition limitée que vous allez adorer..."},generating:{analyzing:"Analyse de votre photo...",understanding:"Compréhension du sujet...",writing:"Rédaction de la légende parfaite...",hashtags:"Ajout des hashtags tendance...",finishing:"Ajout de touches magiques..."},result:{subtitle:"Voici ce que nous avons créé pour vous"},hintTopic:"De quoi voulez-vous parler ? â¨",hintImage:"Ajoutez une photo pour continuer ð¸",startCta:"Générez votre premier post !",startCtaNeedTopic:"Générez votre premier post !",startCtaNeedImage:"Téléchargez une photo pour votre premier post",makeFirstPost:"Créez votre premier post"},business:{greeting:"â¨",title:"Créez un post en quelques secondes !",subtitle:"Choisissez ce que vous voulez créer",typeLabel:"Que voulez-vous créer ?",topicLabel:"Quel est le sujet ?",topicPlaceholder:"ex., Soldes d'été, Nouveau plat, Coulisses...",next:"Suivant : Ajouter des photos â",types:{carousel:"ð¼ï¸ Carrousel",reel:"ð¬ Reel / Vidéo"}},photo:{back:"Retour",title:"Ajoutez une photo",subtitle:"Nous créerons la publication parfaite",dropzone:"Déposez votre photo ici",browse:"ou cliquez pour parcourir",useSample:"Ou utilisez une photo exemple â",create:"⨠Créer ma publication"},generating:{title:"Création en cours...",steps:{analyzing:"ð Analyse de votre photo...",writing:"âï¸ Rédaction de la légende parfaite...",hashtags:"#ï¸â£ Ajout des hashtags tendance...",finishing:"⨠Touches finales..."}},result:{title:"Votre publication est prête !",cta:"Vous aimez ? Obtenez 5 publications gratuites â",tryAnother:"Essayer une autre photo",startOver:"Recommencer"}},Lie={badge:"Réseaux sociaux en pilote automatique",title:"Votre Community Manager.",titleHighlight:"Sur WhatsApp.",subtitle:"Envoyez juste un message. On s'occupe du reste. Pas d'apps. Pas de tableaux de bord. Juste des résultats.",cta:"Commencer sur WhatsApp",ctaSecondary:"Voir Comment Ãa Marche",socialProof:"petites entreprises",ctaPrimary:"Créez votre post gratuit maintenant"},Vie={title:"Simple comme envoyer un SMS",subtitle:"Pas d'apps à télécharger. Pas de tableaux de bord à apprendre. Juste des messages comme d'habitude.",step1Title:"Envoyez une photo",step1Desc:"Envoyez vos photos à Visible sur WhatsApp - comme si vous écriviez à un ami",step2Title:"L'IA fait sa magie",step2Desc:"Notre IA crée des publications qui captent l'attention avec des légendes qui convert
528issent",step3Title:"Touchez pour publier",step3Desc:"Approuvez d'un toucher. Vos publications sont en ligne pendant que vous gérez votre entreprise"},Fie={title:"Pourquoi WhatsApp ?",subtitle:"Parce que gérer une entreprise est déjà assez difficile. Les réseaux sociaux ne devraient pas l'être.",feature1Title:"Déjà sur votre téléphone",feature1Desc:"Pas de nouvelles apps à apprendre. Vous savez déjà envoyer des messages.",feature2Title:"Zéro apprentissage",feature2Desc:"Si vous savez envoyer des messages, vous pouvez utiliser Visible.",feature3Title:"Répondez quand vous voulez",feature3Desc:"Pas de pression. Répondez à votre rythme.",feature4Title:"Fonctionne partout",feature4Desc:"Gérez vos réseaux sociaux depuis n'importe quel appareil."},Bie={title:"Adoré par les Commerces Locaux",subtitle:"Rejoignez des centaines de petits entrepreneurs qui ont simplifié leurs réseaux sociaux",testimonial1:{name:"Marie S.",role:"Boulangerie Locale",quote:"Je gère l'Instagram de ma boulangerie en attendant que le pain lève. Un vrai changement."},testimonial2:{name:"David R.",role:"Coach Personnel",quote:"Mes abonnés sont passés de 400 à 2000 en deux mois. Et je n'ai presque rien fait !"},testimonial3:{name:"Sarah K.",role:"Salon de Coiffure",quote:"Enfin quelque chose qui n'a pas besoin de tutoriel. Juste un message et c'est fait."}},zie={title:"La visibilite n'est pas une tache. C'est un systeme.",subtitle:"Choisissez le plan qui correspond a vos objectifs de visibilite.",howItWorks:"Toutes les limites sont reinitialises mensuellement. Automatisation par defaut, controle optionnel.",free:"Gratuit",perMonth:"/mois",popular:"RECOMMANDE",currentPlan:"Plan Actuel",allPlansInclude:"Tous les plans incluent",plans:{free:{name:"Gratuit",description:"Testez le systeme. Voyez votre premiere publication.",cta:"Gratuit"},basic:{name:"Basique",description:"Restez visible avec des publications regulieres.",cta:"Basique"},visible:{name:"Visible",description:"Visibilite complete avec posts et videos.",cta:"Visible"},always:{name:"Toujours Visible",description:"Visibilite maximale. Contenu sans arret.",cta:"Toujours Visible"}},limits:{carousels:"{{count}} carrousel par mois",carousels_plural:"{{count}} carrousels par mois",reels:"{{count}} reel par mois",reels_plural:"{{count}} reels par mois",whatsapp:"Communication WhatsApp",instagram:"Publication Instagram"},allFeatures:{whatsapp:"Assistant IA sur WhatsApp",review:"Revision optionnelle avant publication",edit:"Modifier le contenu par message",request:"Demander des modifications par message",automation:"Automatisation d'abord, controle quand vous voulez"},whatsappAssistant:{title:"Votre assistant IA vit dans WhatsApp",description:"Pas d'apps. Pas de tableaux de bord. Juste des messages.",feature1:"Envoyez des photos, recevez des publications",feature2:"Demandez des modifications par texte",feature3:"Approuvez ou rejetez d'un tap"},custom:{text:"Vous voulez plus? Contactez-nous pour construire votre systeme de visibilite.",cta:"Nous Contacter"}},Uie={title:"Pret a etre visible?",subtitle:"Rejoignez plus de 500 petites entreprises qui developpent leur presence sociale, un message a la fois.",button:"Commencer Gratuitement sur WhatsApp",noCreditCard:"Sans carte bancaire - Configuration en 30 secondes",buttonPrimary:"Créez votre post gratuit maintenant"},Wie={tagline:"Votre community manager, sur WhatsApp.",privacy:"Politique de Confidentialité",terms:"Conditions d'Utilisation",refund:"Politique de Remboursement",acceptableUse:"Utilisation Acceptable",contact:"Contact"},qie={title:"Politique de Confidentialité",lastUpdated:"Dernière mise à jour : 27 février 2026",sections:{introduction:{title:"1. Introduction",content:`SocialVisible Ltd. ("SocialVisible", "nous", "notre") exploite la plateforme SocialVisible sur https://socialvisible.ai. Cette Politique de Confidentialité explique comment nous collectons, utilisons, divulguons et protégeons vos informations lorsque vous utilisez notre service de génération de contenu pour réseaux sociaux alimenté par l'IA. En utilisant SocialVisible, vous consentez aux pratiques de données décrites dans cette politique.`},informationWeCollect:{title:"2. Informations que Nous Collectons",intro:"Nous collectons les catégories d'informations suivantes :",items:["Informations de compte : nom, adresse e-mail, numéro de téléphone et numéro WhatsApp","Informations commerciales : nom de l'entreprise, type, catégorie, emplacement, public cible et ton de marque","Identifiants de réseaux sociaux : jetons d'accès Instagram et identifiants d'utilisateur de plateforme requis pour la publication","Contenu téléchargé : photos, images et autres médias que vous fournissez pour la génération de contenu","Informations de paiement : données de facturation traitées de manière sécurisée via Stripe (nous ne stockons pas les numéros de carte complets)","Données d'utilisation et d'analyse : modèles d'utilisation des fonctionnalités, historique de génération de contenu et journaux d'interaction","Données de communication : messages échangés via WhatsApp pour la création et la gestion de contenu","Informations sur l'appareil et le navigateur : adresse IP, type de navigateur, système d'exploitation et URLs de référence"]},howWeUse:{title:"3. Comment Nous Utilisons Vos Informations",intro:"Nous utilisons les informations que nous collectons aux fins suivantes :",items:["Fournir, exploiter et maintenir la plateforme SocialVisible","Générer du contenu de réseaux sociaux alimenté par l'IA adapté à votre entreprise","Publier et planifier du contenu sur vos comptes de réseaux sociaux connectés","Traiter les paiements d'abonnement et gérer les cycles de facturation","Communiquer avec vous via WhatsApp pour le flux de travail de contenu et le support","Appliquer les limites d'utilisation basées sur le plan et surveiller l'activité du compte","Améliorer nos modèles d'IA et la qualité du service en fonction des modèles d'utilisation agrégés","Envoyer des e-mails transactionnels, des alertes de sécurité et des mises à jour du service","Respecter les obligations légales et faire respecter nos Conditions d'Utilisation"]},lawfulBasis:{title:"4. Base Juridique du Traitement (RGPD)",intro:"En vertu du Règlement Général sur la Protection des Données (RGPD), nous traitons vos données personnelles sur les bases juridiques suivantes :",items:["Exécution du contrat : traitement nécessaire pour fournir le service SocialVisible auquel vous êtes abonné","Intérêts légitimes : améliorer nos services, prévenir la fraude et assurer la sécurité de la plateforme","Consentement : lorsque vous avez donné votre consentement explicite, par exemple pour les communications marketing","Obligation légale : traitement requis pour se conformer aux lois et réglementations applicables"]},dataSharing:{title:"5. Partage d'Informations",intro:"Nous pouvons partager vos informations avec les catégories de tiers suivantes :",items:["Stripe Inc. : pour le traitement sécurisé des paiements et la gestion des abonnements","Fournisseurs d'hébergement et d'infrastru
528cture : pour l'hébergement de la plateforme et le stockage des données","Fournisseurs de services d'IA : pour les capacités de génération de contenu (vos données ne sont pas utilisées pour entraîner des modèles tiers)","Plateformes de réseaux sociaux (Instagram, WhatsApp) : pour publier du contenu et faciliter la communication selon vos instructions","Outils d'analyse : pour l'analyse d'utilisation agrégée et anonymisée","Autorités légales : lorsque requis par la loi, ordonnance judiciaire ou réglementation gouvernementale"],noSell:"Nous ne vendons, ne louons ni n'échangeons vos informations personnelles à des tiers à des fins marketing. Jamais."},internationalTransfers:{title:"6. Transferts Internationaux de Données",content:"Vos informations peuvent être transférées et traitées dans des pays autres que celui dans lequel vous résidez. Nous assurons des garanties appropriées, y compris les Clauses Contractuelles Types (CCT), pour protéger vos données conformément aux lois applicables sur la protection des données."},dataRetention:{title:"7. Conservation des Données",content:"Nous conservons vos informations personnelles tant que votre compte est actif ou selon les besoins pour fournir le service SocialVisible. Après la suppression du compte, nous pouvons conserver certaines données jusqu'à 90 jours à des fins de sauvegarde et de récupération, et pour des périodes plus longues lorsque la loi l'exige."},dataSecurity:{title:"8. Mesures de Sécurité",content:"Nous mettons en Åuvre des mesures techniques et organisationnelles standard de l'industrie pour protéger vos données, notamment : chiffrement des données en transit (TLS/SSL) et au repos, contrôles d'accès et authentification pour les systèmes internes, évaluations de sécurité régulières et tests de vulnérabilité, stockage sécurisé des jetons et identifiants de réseaux sociaux, et restrictions d'accès des employés basées sur le besoin de connaître."},aiProcessing:{title:"9. IA et Traitement Automatisé",content:"SocialVisible utilise l'intelligence artificielle pour générer du contenu de réseaux sociaux. Notre IA traite vos informations commerciales, les médias téléchargés et l'historique d'utilisation pour produire du contenu personnalisé. Le contenu généré par l'IA est créé pour votre usage et n'implique pas de prise de décision automatisée produisant des effets juridiques vous concernant. Vous gardez le contrôle total sur l'approbation, la modification ou le rejet de tout contenu généré par l'IA avant publication."},cookies:{title:"10. Cookies et Technologies de Suivi",content:"Nous utilisons des cookies et des technologies similaires pour maintenir votre session, mémoriser vos préférences (y compris la sélection de langue) et analyser l'utilisation de la plateforme. Les cookies essentiels sont nécessaires au fonctionnement de la plateforme. Vous pouvez gérer les préférences de cookies via les paramètres de votre navigateur."},dataSubjectRights:{title:"11. Vos Droits sur les Données",intro:"Selon votre emplacement, vous pouvez avoir les droits suivants concernant vos données personnelles :",items:["Droit d'accès : demander une copie des données personnelles que nous détenons sur vous","Droit de rectification : demander la correction de données inexactes ou incomplètes",`Droit à l'effacement : demander la suppression de vos données personnelles ("droit à l'oubli")`,"Droit de limiter le traitement : demander une limitation de l'utilisation de vos données","Droit à la portabilité des données : recevoir vos données dans un format structuré et lisible par machine","Droit d'opposition : s'opposer au traitement basé sur des intérêts légitimes","Droit de retirer le consentement : retirer le consentement précédemment donné à tout moment"],afterItems:"Pour exercer l'un de ces droits, contactez-nous à [email protected]. Nous répondrons dans les 30 jours suivant la réception de votre demande."},children:{title:"12. Confidentialité des Mineurs",content:"SocialVisible n'est pas destiné aux personnes de moins de 18 ans. Nous ne collectons pas sciemment d'informations personnelles auprès de mineurs."},changes:{title:"13. Modifications de cette Politique",content:'Nous pouvons mettre à jour cette Politique de Confidentialité périodiquement. Nous vous informerons des changements importants en publiant la politique mise à jour sur cette page et en mettant à jour la date de "Dernière mise à jour".'}
528,contactUs:{title:"14. Nous Contacter",content:"Si vous avez des questions sur cette Politique de Confidentialité, contactez-nous :",contactPage:"Formulaire de contact",orEmail:"ou envoyez un e-mail à [email protected]. SocialVisible Ltd., [email protected]."}}},Hie={title:"Conditions d'Utilisation",lastUpdated:"Dernière mise à jour : 27 février 2026",sections:{acceptance:{title:"1. Acceptation des Conditions",content:`En accédant ou en utilisant la plateforme SocialVisible sur https://socialvisible.ai (le "Service"), exploitée par SocialVisible Ltd., vous acceptez d'être lié par ces Conditions d'Utilisation ("Conditions"). Si vous n'acceptez pas toutes ces Conditions, vous ne pouvez pas accéder ni utiliser le Service.`},description:{title:"2. Description des Services",content:"SocialVisible est une plateforme de génération et de gestion de contenu pour réseaux sociaux alimentée par l'IA. Le Service permet aux utilisateurs de créer, gérer et publier du contenu (y compris des carrousels et des reels) via un flux de travail intégré à WhatsApp."},eligibility:{title:"3. Ãligibilité",content:"Vous devez avoir au moins 18 ans et la capacité juridique de conclure des accords contraignants pour utiliser le Service."},accountSecurity:{title:"4. Inscription et Sécurité du Compte",content:"Pour accéder à certaines fonctionnalités, vous devez créer un compte et fournir des informations exactes, complètes et à jour. Vous êtes seul responsable de la confidentialité de vos identifiants et de toute activité sur votre compte."},subscriptionBilling:{title:"5. Plans d'Abonnement et Facturation",intro:"SocialVisible fonctionne sur un modèle de facturation par abonnement. En souscrivant à un plan payant, vous acceptez ce qui suit :",items:["Les abonnements sont facturés à l'avance sur une base mensuelle récurrente","Les abonnements se renouvellent automatiquement sauf annulation","Vous pouvez mettre à niveau ou rétrograder votre plan à tout moment ; les changements prennent effet au cycle suivant","L'annulation prend effet à la fin de la période de facturation en cours","Aucun remboursement partiel ou au prorata n'est émis pour les portions inutilisées","Vous êtes responsable de tous les impôts applicables","En cas d'échec de paiement, nous pouvons suspendre l'accès aux fonctionnalités payantes"],afterItems:"Tous les paiements sont traités de manière sécurisée via Stripe."},usageLimits:{title:"6. Limites d'Utilisation et Application du Plan",content:"Chaque plan d'abonnement comprend des limites d'utilisation spécifiques pour les types de contenu. Ces limites sont appliquées au niveau du serveur et réinitialisées mensuellement."},aiDisclaimer:{title:"7. Avertissement sur le Contenu Généré par l'IA",content:"SocialVisible utilise l'intelligence artificielle pour générer du contenu. Nous ne garantissons pas l'exactitude, l'exhaustivité, la pertinence ou l'efficacité du contenu généré par l'IA. Vous êtes seul responsable de la révision, de l'approbation et de la publication de tout contenu créé par le Service."},thirdPartyPlatforms:{title:"8. Plateformes Tierces",content:"SocialVisible s'intègre avec des plateformes tierces dont Instagram (Meta) et WhatsApp. SocialVisible n'est ni affiliée, ni endossée, ni sponsorisée par Meta Platforms, Inc. Vous êtes responsable du respect des conditions de toute plateforme tierce que vous connectez au Service."},contentOwnership:{title:"9. Contenu Utilisateur et Propriété",content:"Vous conservez tous les droits de propriété sur le contenu que vous téléchargez. En utilisant le Service, vous accordez à SocialVisible une licence limitée, non exclusive, libre de droits pour utiliser, stocker et traiter votre contenu uniquement aux fins de fourniture du Service. Le contenu généré par l'IA vous appartient dès sa génération."},intellectualProperty:{title:"10. Propriété Intellectuelle",content:"La plateforme SocialVisible, y compris son logiciel, son design, ses fonctionnalités et ses modèles d'IA, est la propriété intellectuelle exclusive de SocialVisible Ltd."},acceptableUseRef:{title:"11. Utilisation Acceptable",content:"Votre utilisation du Service est soumise à notre Politique d'Utilisation Acceptable, disponible sur https://socialvisible.ai/acceptable-use."},suspensionTermination:{title:"12. Suspension et Résiliation",content:"Nous nous réservons le droit de suspendre ou résilier votre compte à tout moment pour violation de ces Conditions."},indemnification:{title:"13. Indemnisation",content:"Vous acceptez d'indemniser et de dégager de toute responsabilité SocialVisible Ltd. de toute réclamation découlant de votre utilisation du Service ou de votre violation de ces Conditions."},limitationOfLiability:{title:"14. Limitation de Responsabilité",content:"Notre responsabilité totale ne dépassera pas les montants que vous avez payés à SocialVisible au cours des douze (12) mois précédant l'événement ayant donné lieu à la réclamation."},disclaimerOfWarranties:{title:"15. Exclusion de Garanties",content:`Le Service est fourni "TEL QUEL" et "SELON DISPONIBILITÃ", sans aucune garantie d'aucune sorte.`},governingLaw:{title:"16. Droit Applicable et Résolution des Litiges",content:"Ces Conditions seront régies par les lois de la juridiction dans laquelle SocialVisible Ltd. est constituée."},forceMajeure:{title:"17. Force Majeure",content:"SocialVisible ne sera pas responsable de tout manquement ou retard dû à des événements hors de notre c
528ontrôle raisonnable."},modificationsToService:{title:"18. Modifications du Service",content:"Nous nous réservons le droit de modifier, suspendre ou interrompre tout aspect du Service à tout moment."},changesToTerms:{title:"19. Modifications des Conditions",content:"Nous pouvons réviser ces Conditions périodiquement. Votre utilisation continue de SocialVisible après toute révision constitue l'acceptation des Conditions mises à jour."},contactUs:{title:"20. Informations de Contact",content:"Pour toute question concernant ces Conditions, contactez-nous :",contactPage:"Formulaire de contact",orEmail:"ou envoyez un e-mail à [email protected]. SocialVisible Ltd., [email protected]."}}},Gie={title:"Politique de Remboursement",lastUpdated:"Dernière mise à jour : 27 février 2026",sections:{subscriptionNature:{title:"1. Nature de l'Abonnement",content:"SocialVisible fonctionne sur un modèle d'abonnement. Tous les plans payants sont facturés à l'avance sur une base mensuelle récurrente."},cancellation:{title:"2. Politique d'Annulation",content:"Vous pouvez annuler votre abonnement à tout moment depuis les paramètres de votre compte ou en contactant [email protected]. L'annulation prend effet à la fin de la période de facturation en cours. Vous conserverez un accès complet jusqu'à la fin de la période payée."},noPartialRefunds:{title:"3. Pas de Remboursements Partiels",content:"Nous n'émettons pas de remboursements partiels ou au prorata pour les portions inutilisées d'une période de facturation."},exceptionalCircumstances:{title:"4. Circonstances Exceptionnelles de Remboursement",intro:"Les remboursements peuvent être envisagés au cas par cas dans les circonstances exceptionnelles suivantes :",items:["Paiements en double : si vous avez été facturé plus d'une fois pour la même période en raison d'une erreur technique","Erreurs de facturation : si un montant incorrect a été facturé en raison d'une erreur système","Défaillance technique prouvée du service : si SocialVisible était matériellement indisponible pendant une partie significative de votre période de facturation"],afterItems:"Pour demander un remboursement, contactez [email protected] dans les 14 jours suivant le prélèvement en question."},chargebackPolicy:{title:"5. Politique de Rétrofacturation",content:"Si vous initiez une rétrofacturation sans nous contacter d'abord, nous nous réservons le droit de suspendre immédiatement votre compte."},freeTrial:{title:"6. Plan Gratuit",content:"SocialVisible propose un plan gratuit pour tester le Service. Le plan gratuit ne nécessite pas d'informations de paiement et n'est pas soumis à cette Politique de Remboursement."},legalExceptions:{title:"7. Exceptions Légales",content:"Rien dans cette Politique de Remboursement ne limite vos droits légaux en tant que consommateur. Les résidents de l'Union Européenne peuvent bénéficier de droits supplémentaires prévus par la législation locale."},contactUs:{title:"8. Nous Contacter",content:"Pour les demandes de remboursement ou questions de facturation, contactez-nous :",contactPage:"Formulaire de contact",orEmail:"ou envoyez un e-mail à [email protected]. SocialVisible Ltd."}}},Kie={title:"Politique d'Utilisation Acceptable",lastUpdated:"Dernière mise à jour : 27 février 2026",sections:{introduction:{title:"1. Introduction",content:`Cette Politique d'Utilisation Acceptable ("PUA") régit votre utilisation de la plateforme SocialVisible exploitée par SocialVisible Ltd. Cette politique fait partie de nos Conditions d'Utilisation et s'applique à tous les utilisateurs.`},prohibitedActivities:{title:"2. Activités Interdites",intro:"Vous ne pouvez pas utiliser SocialVisible pour vous engager dans ou faciliter les activités suivantes :",items:["Activité illégale : toute activité violant les lois ou réglementations applicables","Violation du droit d'auteur : télécharger, distribuer ou générer du contenu portant atteinte aux droits de propriété intellectuelle","Discours de haine et harcèlement : créer ou distribuer du contenu promouvant la haine, la discrimination ou la violence","Spam et messages non sollicités : utiliser le Service pour générer ou distribuer du spam ou du contenu trompeur","Manipulation de plateforme : tenter de gonfler artificiellement les métriques d'engagement ou de manipuler les algorithmes","Partage de compte : partager, vendre ou transférer les identifiants de compte à des tiers non autorisés","Fraude et tromperie : utiliser le Service à des fins frauduleuses, escroqueries ou phishing","Usurpation d'identité : se faire passer pour une autre personne, marque ou entité sans autorisation","Abus d'IA : utiliser les capacités de génération de contenu IA pour créer des deepfakes ou du contenu trompeur"]},contentRestrictions:{title:"3. Restrictions de Contenu",intro:"Vous ne pouvez pas utiliser SocialVisible pour créer, stocker ou distribuer du contenu qui :",items:["Contient des logiciels malveillants, virus ou composants logiciels nuisibles","Fait la promotion de drogues illégales, d'armes ou de substances contrôlées","Contient du matériel sexuellement explicite ou du contenu exploiteur","Cible ou exploite des mineurs de quelque manière que ce soit","Contient des informations personnelles ou confidentielles d'autrui sans consentement","Est intentionnellement trompeur ou constitue de la désinformation"]},securityRestrictions:{title:"4. Restrictions de Sécurité et Techniques",intro:"Vous ne pouvez pas :",items:["Tenter de rétro-ingénier ou de décompiler toute partie de la plateforme SocialVisible","Sonder, scanner ou tester la vulnérabilité de nos systèmes ou réseaux","Contourner les mesures de sécurité, systèmes d'authentification ou limites d'utilisation","Utiliser des outils automatisés, bots ou scripts pour accéder au Service au-delà de son usage prévu","Interférer avec ou perturber le Service, les serveurs ou réseaux connectés à SocialVisible","Tenter d'accéder aux comptes, données ou contenu d'autres utilisateurs sans autorisation"]},enforcement:{title:"5. Application",intro:"SocialVisible se réserve le droit d'appliquer cette PUA à notre seule discrétion. Les actions d'application peuvent inclure :",items:["Suspension ou résiliation immédiate de votre compte sans préavis","Suppression du contenu violant cette politique","Restriction temporaire ou permanente de l'accès à certaines fonctionnalités","Enquête sur les violations suspectées","Coopération avec les forces de l'ordre lorsque nous estimons qu'une activité illégale s'est produite","Poursuite de recours juridiques, y compris des réclamations en dommages et intérêts"]},reporting:{title:"6. Signaler des Violations",content:"Si vous pensez qu'un utilisateur viole cette Politique d'Utilisation Acceptable, signalez-le via",contactPage:"notre formulaire de contact",orEmail:"ou envoyez un e-mail à [email protected]. Nous prenons tous les signalements au sérieux."}}},Yie={title:"Votre marketing ne vit pas dans un tableau de bord. Il vit sur",titleHighlight:"WhatsApp",subtitle:"Nous envoyons votre contenu prêt à publier directement sur WhatsApp chaque jour. Répondez avec",subtitleHighlight:"Approuver / Modifier / Passer",tagline:"Pas de connexion. Pas d'outils à apprendre.",taglineBold:"WhatsApp est le service.",label:"Numéro WhatsApp",placeholder:"Numéro WhatsApp",hint:"ð Sécurisé. Nous ne spammons jamais.",errorPrefix:"Le numéro doit commencer par +",errorDigits:"Entrez un numéro international valide (7-15 chiffres)",errorSaving:"Ãchec de l'enregistrement du numéro WhatsApp",cancel:"Plus tard",continue:"Continuer avec WhatsApp",saving:"Enregistrement..."},Xie={createNewPost:"Créer une Publication",contentOptions:"Options de Contenu",generatingContent:"Génération du Contenu...",reviewAndEdit:"Réviser et Modifier",schedulePost:"Planifier la Publication",dragAndDrop:"Glissez et déposez des images ici",orClickBrowse:"ou cliquez pour parcourir",maxImages:"JPG, PNG, WebP ⢠Max {{max}} images",addMore:"Ajouter plus",continue:"Continuer",whatToCreate:"Que souhaitez-vous créer ?",carousel:"C
528arrousel",multiImagePost:"Publication multi-images",reel:"Reel",shortVideo:"Vidéo courte",addInstructions:"Ajouter des instructions (optionnel)",instructionsPlaceholder:"ex., Annoncer notre nouvelle collection d'été, utiliser un ton ludique, mentionner la réduction",instructionsHint:"Dites-nous de quoi vous voulez que la publication parle",uploadingImages:"Téléchargement des images...",generateContent:"Générer le Contenu",creatingContent:"Création de votre contenu...",creatingDescription:"Notre IA analyse vos images et crée le {{type}} parfait pour vous.",generatingTitle:"Nous créons le meilleur carrousel pour vous et votre entreprise â¨",generatingSubtitle:"Cela prend généralement 5 à 10 minutes",generatingElapsed:"Temps écoulé",generatingSteps:["ð Recherche de votre sujet...","ð¡ Recherche des meilleurs angles et sujets...","ð¯ Recherche d'accroches engageantes qui captent l'attention...","âï¸ Rédaction d'un post incroyable adapté à votre audience...","ð Création d'un texte convaincant qui convertit...","#ï¸â£ Recherche des hashtags les plus pertinents...","ð¨ Génération de votre première image époustouflante...","ð¼ï¸ Création de la deuxième image - encore mieux que la première !","⨠Travail sur l'image 3 - on prend de l'élan...","ð¥ Image 4 en cours - votre carrousel prend forme !","ð Génération de la dernière image - le meilleur pour la fin !","ð¬ Assemblage de toutes les images en un carrousel fluide...","â¡ Optimisation des images pour un engagement maximal...","ð Finalisation de votre carrousel - c'est presque prêt !","â
Dernières retouches sur votre chef-d'Åuvre...","ð Votre carrousel arrive d'un moment à l'autre..."],generatedImages:"Images Générées",clickToEnlarge:"(cliquer pour agrandir)",caption:"Légende",regenerate:"Régénérer",hashtags:"Hashtags",addHashtag:"Ajouter un hashtag",add:"Ajouter",connectInstagramTitle:"Connectez Instagram pour publier",connectInstagramSubtitle:"Liez votre compte pour publier directement",connectInstagram:"Connecter Instagram",postToInstagram:"Publier sur Instagram",continueToSchedule:"Continuer vers la Planification",saveAsDraft:"Enregistrer comme Brouillon",selectAccount:"Sélectionner un Compte",chooseAccount:"Choisir un compte Instagram",noAccounts:"Aucun compte connecté",whenToPost:"Quand publier",postNow:"Publier maintenant",postNowDesc:"Publier immédiatement après approbation",scheduleLater:"Planifier pour plus tard",scheduleLaterDesc:"Choisir une date et une heure spécifiques",addToQueue:"Ajouter à la file",addToQueueDesc:"Utilise les heures de publication optimales",date:"Date",time:"Heure",cancel:"Annuler",publish:"Publier",schedule:"Planifier",publishSuccess:"Publication Publiée ! ð",publishSuccessDesc:"Votre publication a été envoyée pour publication.",publishFailed:"La publication a échoué",publishFailedDesc:"Veuillez réessayer ou enregistrer comme brouillon.",draftSaved:"Brouillon enregistré",draftSavedDesc:"Votre publication a été enregistrée comme brouillon.",postScheduled:"Publication planifiée",postScheduledDesc:"Votre publication a été planifiée.",saveFailed:"Ãchec de l'enregistrement",saveFailedDesc:"Veuillez réessayer.",usageMessage:"Vous avez utilisé {{used}} sur {{total}} publications mensuelles gratuites.",upgradeMessage:"Passez au plan supérieur pour débloquer les publications quotidiennes, y compris les reels, l'automatisation complète et la publication continue.",upgradeButton:"Améliorer le Plan",backToContent:"Retour au Contenu"},Jie={title:"Questions Fréquentes",subtitle:"Tout ce que vous devez savoir sur SocialVisible.",questions:{q1:{question:"Qu'est-ce que SocialVisible ?",answer:"SocialVisible est une plateforme de gestion des réseaux sociaux alimentée par l'IA. Vous envoyez des photos et des idées via WhatsApp, et notre IA crée des publications et des reels Instagram professionnels pour vous."},q2:{question:"Comment fonctionne le processus WhatsApp ?",answer:"Envoyez simplement un message à notre bot WhatsApp avec vos photos et une brève description. Notre IA analyse le contenu, crée des légendes, conçoit des carrousels ou des reels, et vous les envoie pour approbation avant publication."},q3:{question:"Ai-je besoin de compétences en design ?",answer:"Pas du tout ! SocialVisible s'occupe de tout le design. Envoyez simplement vos photos et dites-nous de quoi parle la publication. L'IA s'occupe du reste."},q4:{question:"Quelles plateformes de réseaux sociaux supportez-vous ?",answer:"Actuellement, nous supportons les carrousels Instagram et les reels. D'autres plateformes arr
528ivent bientôt."},q5:{question:"Puis-je modifier les publications avant de les publier ?",answer:"Oui ! Chaque publication vous est envoyée pour révision avant publication. Vous pouvez demander des modifications, approuver ou rejeter tout contenu."},q6:{question:"Que se passe-t-il si j'atteins ma limite mensuelle ?",answer:"Une fois que vous atteignez la limite mensuelle de votre plan, vous pouvez passer à un plan supérieur pour plus de publications, ou attendre que vos limites se réinitialisent au début du prochain cycle de facturation."},q7:{question:"Mes données sont-elles en sécurité ?",answer:"Absolument. Nous utilisons un chiffrement et des pratiques de sécurité standard de l'industrie. Vos photos et données commerciales sont stockées en toute sécurité et jamais partagées avec des tiers."},q8:{question:"Puis-je annuler mon abonnement à tout moment ?",answer:"Oui, vous pouvez annuler à tout moment. Votre accès continue jusqu'à la fin de votre période de facturation en cours. Aucun remboursement partiel n'est émis."}}},Qie={backToHome:"Retour à l'accueil",title:"Contactez-nous",subtitle:"Vous avez une question ou un commentaire ? Nous serions ravis de vous entendre.",email:"E-mail",location:"Emplacement",locationValue:"Tel Aviv, Israël",form:{fullName:"Nom complet",fullNamePlaceholder:"Votre nom complet",email:"E-mail",emailPlaceholder:"[email protected]",subject:"Sujet",subjectPlaceholder:"Sélectionnez un sujet",message:"Message",messagePlaceholder:"Dites-nous comment nous pouvons vous aider...",sending:"Envoi en cours...",submit:"Envoyer le message"},subjects:{general:"Demande générale",support:"Support technique",billing:"Facturation",partnership:"Partenariat",feedback:"Commentaires",other:"Autre"},errors:{nameRequired:"Le nom est requis",emailRequired:"L'e-mail est requis",emailInvalid:"Veuillez entrer un e-mail valide",subjectRequired:"Veuillez sélectionner un sujet",messageRequired:"Le message est requis",messageMinLength:"Le message doit contenir au moins 10 caractères"},toast:{successTitle:"Message envoyé !",successDescription:"Nous vous répondrons bientôt.",errorTitle:"Erreur",errorRateLimit:"Trop de demandes. Veuillez réessayer plus tard.",errorInvalidEmail:"Adresse e-mail invalide.",errorGeneric:"Une erreur est survenue. Veuillez réessayer."},success:{title:"Merci !",description:"Votre message a été envoyé avec succès. Nous vous répondrons dès que possible.",backToHome:"Retour à l'accueil",sendAnother:"Envoyer un autre message"}},Zie={progress:"Ãtape {{current}} sur {{total}}",business:{title:"Parlez-nous de votre entreprise",subtitle:"Cela nous aide à créer du contenu adapté pour vous",personalizedSubtitle:"Pour créer des publications précises et personnalisées, nous devons comprendre votre entreprise. Partagez quelques détails.",label:"Description de l'entreprise",placeholder:"Ex : Je gère une boulangerie à Paris spécialisée dans les pains au levain et les pâtisseries artisanales.",hint:"Plus vous partagez de détails, meilleur sera le contenu que nous créerons.",categoryLabel:"Secteur",categoryPlaceholder:"Sélectionnez votre secteur",categories:{food:"Alimentation et Boissons",beauty:"Beauté et Bien-être",retail:"Commerce et Mode",fitness:"Santé et Fitness",services:"Services Professionnels",education:"Ãducation",real_estate:"Immobilier",tech:"Technologie",creator:"Créateurs et Divertissement",other:"Autre"},fullNameLabel:"Votre nom",fullNamePlaceholder:"Ex : Jean Dupont",businessNameLabel:"Nom de l'entreprise",businessNamePlaceholder:"Ex : Boulangerie de Danny",locationLabel:"Emplacement (optionnel)",locationPlaceholder:"Ex : Paris, France",uspLabel:"Qu'est-ce qui vous rend unique ? (optionnel)",uspPlaceholder:"Ex : Uniquement des ingrédients bio et locaux",targetAudienceLabel:"Qui sont vos clients ? (optionnel)",targetAudiencePlaceholder:"Ex : Propriétaires de petites entreprises, jeunes mères",brandToneLabel:"Ton de votre marque (optionnel)",brandTonePlaceholder:"Choisissez votre style",brandTones:{friendly:"Amical et Accessible",professional:"Professionnel et Formel",playful:"Ludique et Léger",inspirational:"Inspirant",luxurious:"Luxueux et Premium",casual:"Décontracté et Quotidien"},whatsappLabel:"Numéro WhatsApp",whatsappPlaceholder:"Numéro de téléphone",whatsappHint:"Nous utilisons WhatsApp pour vous envoyer des aperçus de publications pour approbation.",continue:"Continuer",saving:"Enregistrement..."},errors:{required:"Champ obligatoire",describeBusinessBrief:"Veuillez décrire brièvement votre entreprise.",failedToSave:"Ãchec de l'enregistrement. Veuillez réessayer.",retryHint:"Vérifiez votre connexion et réessayez."}},eae={business:{next:"Suivant : Connecter WhatsApp"},whatsapp:{title:"Connecter WhatsApp",subtitle:"Votre contenu sera livré via WhatsApp pour une révision et approbation faciles.",nextButton:"Suivant : Choisir le type de contenu",generateButton:"Générer mon contenu",continueButton:"Continuer vers WhatsApp"}
528,contentType:{title:"Que souhaitez-vous créer ?",subtitle:"Choisissez le type de contenu pour votre première publication",selectRequired:"Veuillez sélectionner un type de contenu",carousel:"Publication carrousel",carouselDesc:"Carrousel Instagram multi-diapos avec visuels et texte engageants (~2 crédits)",story:"Image story",storyDesc:"Belle image story Instagram avec légende (~0,5 crédits)",next:"Suivant : Vérifier et générer",topicLabel:"Sujet :",imagesLabel:"Images :",uploaded:"téléchargées"},review:{title:"Prêt à générer !",subtitle:"Vérifiez votre demande avant que nous commencions",typeLabel:"Type de contenu",topicLabel:"Sujet",topicPlaceholder:"Décrivez le sujet de votre publication...",topicRequired:"Veuillez entrer un sujet",imageLabel:"Votre image",changeImage:"Changer l'image",uploadImage:"Télécharger une image (optionnel)",carouselCost:"Ce carrousel utilisera ~2 crédits de votre plan gratuit",storyCost:"Cette story utilisera ~0,5 crédits de votre plan gratuit",generating:"Envoi en cours...",generateButton:"Générer via WhatsApp !",back:"â Changer le type de contenu"},generating:{title:"Création de votre contenu",status:"Envoi de votre contenu à notre IA...",sent:"Le contenu est en cours de création ! Vous le recevrez sur WhatsApp sous peu.",alreadyActive:"Le contenu est déjà en cours de création !",limitReached:"Limite de crédits atteinte. Veuillez mettre à niveau votre plan."},done:{title:"Tout est prêt ! ð",withContent:"Votre contenu est en cours de création et sera livré sur votre WhatsApp sous peu.",noContent:"Envoyez-nous une photo et un sujet sur WhatsApp pour créer votre première publication !",openWhatsApp:"Ouvrir WhatsApp",viewBilling:"Voir facturation et utilisation",whatsappMessage:"Bonjour ! Je viens de m'inscrire et je suis prêt à créer du contenu ð¨"},blog:{title:"Restez Visible",subtitle:"Conseils, stratégies et idées pour faire briller votre entreprise sur les réseaux sociaux.",allArticles:"Tous les articles",readMore:"Lire la suite",minRead:"{{count}} min de lecture",backToBlog:"Retour au blog",readyQuestion:"Prêt à commencer ?",getStartedFree:"Commencer gratuitement",readMoreArticles:"Lire plus d'articles",readyToBeVisible:"Prêt à être visible ?",ctaSubtitle:"Laissez l'IA créer automatiquement du contenu époustouflant pour les réseaux sociaux de votre entreprise.",categories:{visibility:"Visibilité",consistency:"Régularité",automation:"Automatisation",strategy:"Stratégie",growth:"Croissance"}},otpStep:{title:"Vérifie ton WhatsApp",subtitle:"Nous t'enverrons un code à 6 chiffres par WhatsApp pour confirmer ton numéro.",phoneLabel:"Ton numéro WhatsApp",phonePlaceholder:"Numéro de téléphone",sendButton:"Envoyer le code par WhatsApp",sending:"Envoi du code...",codeSentTitle:"Code envoyé !",codeSentDesc:"Nous avons envoyé un code à 6 chiffres à {{phone}} par WhatsApp.",enterCode:"Entre le code à 6 chiffres",verifying:"Vérification...",expiresIn:"Le code expire dans {{time}}",expired:"Code expiré - merci de renvoyer",changeNumber:"Changer de numéro",resend:"Renvoyer le code",resendIn:"Renvoyer dans {{seconds}}s",noCodeHelp:"Pas reçu le code ? Vérifie WhatsApp pour un message de notre ligne de vérification, ou essaie par e-mail.",useEmail:"Envoyer le code par e-mail",sendingEmail:"Envoi de l'e-mail...",emailSentTitle:"E-mail envoyé",emailSentDesc:"Vérifie {{email}} pour ton code.",useWhatsapp:"Utiliser WhatsApp à la place",verifiedTitle:"WhatsApp vérifié",verifiedDesc:"Ton numéro {{phone}} est vérifié.",verifiedReady:"Prêt à continuer",errorInvalidNumber:"Merci d'entrer un numéro valide.",errorSendFailed:"Ãchec de l'envoi du code",errorVerifyFailed:"Ãchec de la vérification",errorInvalidCode:"Code invalide",footer:"Nous utilisons WhatsApp pour t'envoyer notifications et approbations de publications."}},tae={plans:{subtitle:"Choisissez le niveau de visibilité adapté à votre entreprise",starterBonus:"bonus de départ",whatsappComm:"Communication WhatsApp",igPublishing:"Publication Instagram",current:"ACTUEL",popular:"POPULAIRE",cancelPending:"Annulation en attente",cancelPendingDesc:"V
528otre plan {{plan}} reste actif jusqu'au {{date}}. Ensuite, vous passerez au plan gratuit.",comingSoon:"Bientôt",cancellationPending:"Annulation en attente",cancel:"Annuler",availableCredits:"Crédits disponibles",creditsWithPlan:"{{credits}} crédits/mois avec votre plan",allPlansInclude:"Tous les plans incluent",feature1:"Assistant IA WhatsApp",feature2:"Révision optionnelle avant publication",feature3:"Modifier le contenu par message",feature4:"Demander des modifications à tout moment",getStarted:"Commencez avec la visibilité",forGrowing:"Pour les entreprises en croissance",stayVisible:"Restez visible en permanence",maxVisibility:"Visibilité maximale"}},nae={nav:Rie,mobileDemo:Die,mockup:Mie,tryItNow:$ie,hero:Lie,howItWorks:Vie,whyWhatsApp:Fie,testimonials:Bie,pricing:zie,cta:Uie,footer:Wie,privacy:qie,terms:Hie,refund:Gie,acceptableUse:Kie,whatsappGate:Yie,createContent:Xie,faq:Jie,contact:Qie,webOnboarding:Zie,onboardingFlow:eae,billing:tae},rae={howItWorks:"So funktioniert's",pricing:"Preise",faq:"FAQ",blog:"Blog",startFree:"Kostenlos Starten",login:"Anmelden",signUp:"Kostenlos Registrieren",dashboard:"Dashboard",signOut:"Abmelden",signedInAs:"Angemeldet als"},iae={aria:"Animiertes Beispiel: hochladen, KI bereitet Beitrag vor, du genehmigst und wir veröffentlichen",step1:"1. Foto hochladen und Thema schreiben",step2:"2. KI bereitet deinen Beitrag vor â¨",step3:"3. Mit einem Tipp genehmigen und veröffentlichen ð",subjectLabel:"Thema des Beitrags",subjectText:"Frische Croissants aus dem Ofen heute Morgen â",photoUploaded:"Foto hinzugefügt",aiTitle:"Visible AI bereitet deinen Beitrag vor",aiSubtitle:"Bildunterschrift, Bild und Hashtags",aiStep1:"Foto wird analysiert",aiStep2:"Bildunterschrift wird geschrieben",aiStep3:"Hashtags und Visuals werden hinzugefügt",approveButton:"Genehmigen & veröffentlichen",published:"Auf Instagram veröffentlicht"},aae={online:"online",botGreeting:"Hi! Ich bin Visible AI ð Schick mir ein Foto und erzähl mir von deinem Beitrag - ich erstelle ihn für dich!",userMessage:"Frische Croissants direkt aus dem Ofen heute Morgen ð¥",botProcessing:"Wunderschön! ⨠Ich erstelle jetzt einen Instagram-Beitrag für dich...",likes:"248 Likes",caption:"Aufwachen mit dem Duft frischer Croissants ð¥â¨ Handgerollt, golden und perfekt zum Morgenkaffee. #ParisBaeckerei #FrischGebacken",readyToPost:"Bereit zum Posten! ð",inputPlaceholder:"Nachricht schreiben"},sae={badge:"Kostenlos testen, keine Anmeldung noetig",title:"Erstelle deinen ersten Beitrag in",titleHighlight:"30 Sekunden",skipLink:"Moechtest du zuerst mehr erfahren?",seeHow:"Sieh wie es funktioniert",mobile:{badge:"Kostenlos testen, ohne Anmeldung",title:"Sieh deinen Beitrag in",titleHighlight:"30 Sekunden",headline:"Lass dein Business",headlineHighlight:"sichtbar werden",subheadline:"Social Media Posts erstellen ist jetzt so einfach wie einem Freund auf WhatsApp zu schreiben.",cta:"Jetzt kostenlos ausprobieren.",photoLabel:"Zuerst, mach ein Foto",takePhoto:"Foto Machen",gallery:"Galerie",photoAdded:"Foto hinzugefuegt",addPhotos:"Fotos für deinen Beitrag",then:"dann",descLabel:"Worum geht es in diesem Beitrag?",descPlaceholder:"Sommerschlussverkauf, 30% Rabatt auf alles dieses Wochenende! Komm vorbei...",descHint:"Beschreibe das Thema deines Beitrags â¨",createPost:"Meinen Beitrag Erstellen",tryAnother:"Mit anderem Foto versuchen",examples:{bakery:"Frische Croissants direkt aus dem Ofen, perfekt zum Morgenkaffee...",salon:"Neue Sommer-Haarfarbtrends, buche deine Verwandlung heute...",restaurant:"Das Spezial des Küchenchefs diese Woche, zubereitet mit frischen Zutaten...",boutique:"Neue Kollektion eingetroffen! Limitierte Stücke, die du lieben wirst..."},generating:{analyzing:"Analysiere dein Foto...",understanding:"Verstehe das Thema...",writing:"Schreibe die perfekte Bildunterschrift...",hashtags:"Füge Trend-Hashtags hinzu...",finishing:"Füge magische Details hinzu..."},result:{subtitle:"Das haben wir fuer dich erstellt"},hintTopic:"Worüber sollen wir posten? â¨",hintImage:"Foto hinzufügen, um fortzufahren ð¸",startCta:"Erstelle deinen ersten Post!",startCtaNeedTopic:"Erstelle deinen ersten Post!",startCtaNeedImage:"Lade ein Foto für deinen ersten Post hoch",makeFirstPost:"Erstelle jetzt deinen ersten Post"},business:{greeting:"â¨",title:"Erstelle einen Beitrag in Sekunden!",subtitle:"Wähle was du erstellen möchtest",typeLabel:"Was möchtest du erstellen?",topicLabel:"Was ist das Thema?",topicPlaceholder:"z.B., Sommerschlussverkauf, Neues Gericht, Hinter den Kulissen...",next:"Weiter: Fotos hinzufügen â",types:{carousel:"ð¼ï¸ Karussell-Beitrag",reel:"ð¬ Reel / Video"}},photo:{back:"Zurueck",title:"Foto hinzufuegen",subtitle:"Wir erstellen den perfekten Beitrag dafuer",dropzone:"Foto hier ablegen",browse:"oder klicken zum Durchsuchen",useSample:"Oder nutze ein Beispielfoto",create:"Meinen Beitrag erstellen"},generating:{title:"Magie wird erstellt...",steps:{analyzing:"Foto wird analysiert...",writing:"Perfekte Bildunterschrift wird geschrieben...",hashtags:"Trend-Hashtags werden hinzugefuegt...",finishing:"Letzte Details..."}},result:{title:"Dein Beitrag ist fertig!",cta:"Gefaellt es dir? Hole 5 kostenlose Beitraege",tryAnother:"Anderes Foto versuchen",startOver:"Neu beginnen"}},oae={badge:"Social Media auf Autopilot",title:"Dein Social Media Manager.",titleHighlight:"Auf WhatsApp.",subt
528itle:"Schreib einfach was du willst. Wir erledigen den Rest. Keine Apps. Keine Dashboards. Nur Ergebnisse.",cta:"Auf WhatsApp Starten",ctaSecondary:"So Funktioniert's",socialProof:"kleine Unternehmen",ctaPrimary:"Jetzt kostenlosen Post starten"},lae={title:"Einfach wie eine Nachricht an Freunde",subtitle:"Keine Apps zum Herunterladen. Keine Dashboards zum Lernen. Einfach schreiben wie immer.",step1Title:"Sende ein Foto",step1Desc:"Schicke deine Fotos an Visible auf WhatsApp - wie eine Nachricht an einen Freund",step2Title:"KI erschafft Magie",step2Desc:"Unsere KI erstellt Scroll-stoppende Beitraege mit Texten die konvertieren",step3Title:"Tippe zum Veroeffentlichen",step3Desc:"Mit einem Tippen bestaetigen. Deine Beitraege gehen online waehrend du dein Geschaeft fuehrst"},cae={title:"Warum WhatsApp?",subtitle:"Weil ein Unternehmen zu fuehren schwer genug ist. Social Media sollte es nicht sein.",feature1Title:"Schon auf deinem Handy",feature1Desc:"Keine neuen Apps zum Lernen. Du weisst schon wie man Nachrichten schreibt.",feature2Title:"Null Lernkurve",feature2Desc:"Wenn du Nachrichten schreiben kannst, kannst du Visible nutzen.",feature3Title:"Antworte wann es passt",feature3Desc:"Kein Druck. Antworte in deinem Tempo.",feature4Title:"Funktioniert ueberall",feature4Desc:"Verwalte deine Social Media von jedem Geraet aus."},uae={title:"Geliebt von Lokalen Unternehmen",subtitle:"Schliesse dich Hunderten von Kleinunternehmern an, die ihre Social Media vereinfacht haben",testimonial1:{name:"Maria S.",role:"Lokale Baeckerei",quote:"Ich verwalte das Instagram meiner Baeckerei waehrend das Brot aufgeht. Ein Gamechanger."},testimonial2:{name:"David R.",role:"Personal Trainer",quote:"Meine Follower stiegen von 400 auf 2000 in zwei Monaten. Und ich habe kaum etwas gemacht!"},testimonial3:{name:"Sarah K.",role:"Friseursalon",quote:"Endlich etwas das keine Anleitung braucht. Einfach schreiben und fertig."}},dae={title:"Sichtbarkeit ist keine Aufgabe. Es ist ein System.",subtitle:"Waehle den Plan, der zu deinen Sichtbarkeitszielen passt.",howItWorks:"Alle Limits werden monatlich zurueckgesetzt. Automatisierung als Standard, Kontrolle optional.",free:"Kostenlos",perMonth:"/Monat",popular:"EMPFOHLEN",currentPlan:"Aktueller Plan",allPlansInclude:"Alle Plaene beinhalten",plans:{free:{name:"Kostenlos",description:"Teste das System. Sieh deinen ersten Post.",cta:"Kostenlos"},basic:{name:"Basis",description:"Bleib sichtbar mit konsistentem Posten.",cta:"Basis"},visible:{name:"Sichtbar",description:"Volle Sichtbarkeit mit Posts und Videos.",cta:"Sichtbar"},always:{name:"Immer Sichtbar",description:"Maximale Sichtbarkeit. Content der nie stoppt.",cta:"Immer Sichtbar"}},limits:{carousels:"{{count}} Karussell pro Monat",carousels_plural:"{{count}} Karussells pro Monat",reels:"{{count}} Reel pro Monat",reels_plural:"{{count}} Reels pro Monat",whatsapp:"WhatsApp-Kommunikation",instagram:"Instagram-Veroeffentlichung"},allFeatures:{whatsapp:"KI-Assistent auf WhatsApp",review:"Optionale Pruefung vor Veroeffentlichung",edit:"Inhalte per Nachricht bearbeiten",request:"Aenderungen per Nachricht anfordern",automation:"Automatisierung zuerst, Kontrolle bei Bedarf"},whatsappAssistant:{title:"Dein KI-Assistent lebt in WhatsApp",description:"Keine Apps. Keine Dashboards. Nur Nachrichten.",feature1:"Sende Fotos, erhalte Posts",feature2:"Bitte per Text um Aenderungen",feature3:"Genehmige oder lehne mit einem Tippen ab"},custom:{text:"Willst du mehr? Kontaktiere uns, um dein Sichtbarkeitssystem aufzubauen.",cta:"Kontaktiere Uns"}},hae={title:"Bereit sichtbar zu werden?",subtitle:"Schliesse dich 500+ kleinen Unternehmen an, die ihre Social-Media-Praesenz ausbauen, eine Nachricht nach der anderen.",button:"Kostenlos auf WhatsApp Starten",noCreditCard:"Keine Kreditkarte noetig - Einrichtung in 30 Sekunden",buttonPrimary:"Jetzt kostenlosen Post starten"},fae={tagline:"Dein Social Media Manager, auf WhatsApp.",privacy:"Datenschutzrichtlinie",terms:"Nutzungsbedingungen",refund:"Erstattungsrichtlinie",acceptableUse:"Akzeptable Nutzung",contact:"Kontakt"},pae={title:"Datenschutzrichtlinie",lastUpdated:"Letzte Aktualisierung: 27. Februar 2026",sections:{introduction:{title:"1. Einleitung",content:'SocialVisible Ltd. ("SocialVisible", "wir", "unser") betreibt die SocialVisible-Plattform unter https://socialvisible.ai. Diese Datenschutzrichtlinie erklärt, wie wir Ihre Informationen erheben, verwenden, offenlegen und schützen, wenn Sie unseren KI-gestützten Social-Media-Content-Generierungsdienst nutzen. Durch die Nutzung von SocialVisible stimmen Sie den in dieser Richtlinie beschriebenen Datenpraktiken zu.'},informationWeCollect:{title:"2. Informationen, die Wir Erheben",intro:"Wir erheben die folgenden Kategorien von Informationen:",items:["Kontoinformationen: Name, E-Mail-Adresse, Telefonnummer und WhatsApp-Nummer","Geschäftsinformationen: Unternehmensname, Art, Kategorie, Standort, Zielgruppe und Markenton","Social-Media-Anmeldedaten: Instagram-Zugriffstoken und Plattform-Benutzer-IDs für die Veröffentlichung","Hochgeladene Inhalte: Fotos, Bilder und andere Medien, die Sie für die Content-Generierung bereitstellen","Zahlungsinformationen: Abrechnungsdaten, die sicher über Stripe verarbeitet werden (wir speichern keine vollständigen Kartennummern)","Nutzungs- und Analysedaten: Nutzungsmuster von Funktionen, Content-Generierungshistorie und Interaktionsprotokolle","Kommunikationsdaten: über WhatsApp ausgetauschte Nac
528hrichten zur Content-Erstellung und -Verwaltung","Geräte- und Browserinformationen: IP-Adresse, Browsertyp, Betriebssystem und Verweis-URLs"]},howWeUse:{title:"3. Wie Wir Ihre Informationen Verwenden",intro:"Wir verwenden die erhobenen Informationen für folgende Zwecke:",items:["Bereitstellung, Betrieb und Wartung der SocialVisible-Plattform","Generierung von KI-gestützten Social-Media-Inhalten, die auf Ihr Unternehmen zugeschnitten sind","Veröffentlichung und Planung von Inhalten auf Ihren verbundenen Social-Media-Konten","Verarbeitung von Abonnementzahlungen und Verwaltung von Abrechnungszyklen","Kommunikation mit Ihnen über WhatsApp für Content-Workflow und Support","Durchsetzung planbasierter Nutzungslimits und Ãberwachung der Kontoaktivität","Verbesserung unserer KI-Modelle und Servicequalität basierend auf aggregierten Nutzungsmustern","Versand von Transaktions-E-Mails, Sicherheitswarnungen und Service-Updates","Einhaltung gesetzlicher Verpflichtungen und Durchsetzung unserer Nutzungsbedingungen"]},lawfulBasis:{title:"4. Rechtsgrundlage für die Verarbeitung (DSGVO)",intro:"Gemäà der Datenschutz-Grundverordnung (DSGVO) verarbeiten wir Ihre personenbezogenen Daten auf folgenden Rechtsgrundlagen:",items:["Vertragserfüllung: Verarbeitung, die zur Erbringung des von Ihnen abonnierten SocialVisible-Dienstes erforderlich ist","Berechtigte Interessen: Verbesserung unserer Dienste, Betrugsprävention und Gewährleistung der Plattformsicherheit","Einwilligung: wenn Sie ausdrücklich zugestimmt haben, z.B. für Marketingkommunikation","Gesetzliche Verpflichtung: Verarbeitung, die zur Einhaltung geltender Gesetze und Vorschriften erforderlich ist"]},dataSharing:{title:"5. Weitergabe von Informationen",intro:"Wir können Ihre Informationen mit folgenden Kategorien von Dritten teilen:",items:["Stripe Inc.: für sichere Zahlungsabwicklung und Abonnementverwaltung","Hosting- und Infrastrukturanbieter: für Plattformhosting und Datenspeicherung","KI-Dienstleister: für Content-Generierungsfähigkeiten (Ihre Daten werden nicht zum Training von Drittmodellen verwendet)","Social-Media-Plattformen (Instagram, WhatsApp): zur Veröffentlichung von Inhalten und Erleichterung der Kommunikation gemäà Ihren Anweisungen","Analysetools: für aggregierte, anonymisierte Nutzungsanalyse","Behörden: wenn gesetzlich vorgeschrieben, durch Gerichtsbeschluss oder behördliche Anordnung"],noSell:"Wir verkaufen, vermieten oder handeln Ihre personenbezogenen Daten nicht an Dritte zu Marketingzwecken. Niemals."},internationalTransfers:{title:"6. Internationale Datenübertragungen",content:"Ihre Informationen können in Länder übertragen und dort verarbeitet werden, die sich von Ihrem Wohnsitzland unterscheiden. Wir stellen angemessene SchutzmaÃnahmen sicher, einschlieÃlich Standardvertragsklauseln (SVK), um Ihre Daten in Ãbereinstimmung mit den geltenden Datenschutzgesetzen zu schützen."},dataRetention:{title:"7. Datenaufbewahrung",content:"Wir bewahren Ihre personenbezogenen Daten auf, solange Ihr Konto aktiv ist oder zur Erbringung des SocialVisible-Dienstes erforderlich ist. Nach Kontolöschung können wir bestimmte Daten bis zu 90 Tage für Sicherungs- und Wiederherstellungszwecke aufbewahren."},dataSecurity:{title:"8. SicherheitsmaÃnahmen",content:"Wir implementieren branchenübliche technische und organisatorische MaÃnahmen zum Schutz Ihrer Daten, einschlieÃlich: Verschlüsselung von Daten bei der Ãbertragung (TLS/SSL) und im Ruhezustand, Zugriffskontrollen und Authentifizierung für interne Systeme, regelmäÃige Sicherheitsbewertungen und Schwachstellentests, sichere Speicherung von Social-Media-Tokens und Anmeldedaten sowie mitarbeiterbezogene Zugriffsbeschränkungen nach dem Need-to-know-Prinzip."},aiProcessing:{title:"9. KI und Automatisierte Verarbeitung",content:"SocialVisible nutzt künstliche Intelligenz zur Generierung von Social-Media-Inhalten. Unsere KI verarbeitet Ihre Geschäftsinformationen, hochgeladene Medien und Nutzungshistorie, um personalisierten Content zu erstellen. KI-generierte Inhalte werden für Ihre Nutzung erstellt und beinhalten keine automatisierte Entscheidungsfindung mit rechtlicher Wirkung. Sie behalten die volle Kontrolle über die Genehmigung, Bearbeitung oder Ablehnung aller KI-generierten Inhalte vor der Veröffentlichung."},cookies:{title:"10. Cookies und Tracking-Technologien",content:"Wir verwenden Cookies und ähnliche Technologien, um Ihre Sitzung aufrechtzuerhalten, Ihre Einstellungen (einschlieÃlich Sprachauswahl) zu speichern und die Plattformnutzung zu analysieren. Essentielle Cookies sind für die Funktion der Plattform erforderlich. Sie können Cookie-Einstellungen über Ihre Browsereinstellungen verwalten."},dataSubjectRights:{title:"11. Ihre Datenrechte",intro:"Je nach Ihrem Standort haben Sie möglicherweise folgende Rechte bezüglich Ihrer personenbezogenen Daten:",items:["Auskunftsrecht: eine Kopie der personenbezogenen Daten anfordern, die wir über Sie gespeichert haben","Recht auf Berichtigung: Korrektur ungenauer oder unvollständiger Daten anfordern",'Recht auf Löschung: Löschung Ihrer personenbezogenen Daten anfordern ("Recht auf Vergessenwerden")',"Recht auf Einschränkung der Verarbeitung: Einschränkung der Verwendung Ihrer Daten anfordern","Recht auf Datenübertragbarkeit: Ihre Daten in einem strukturierten, maschinenlesbaren Format erhalten","Widerspruchsrecht: der Verarbeitung auf Grundlage berechtigter Interessen widersprechen","Recht auf Widerruf der Einwilligung: zuvor erteilte Einwilligung jederzeit widerrufen"],afterItems:"Um eines dieser Rechte auszuüben, kontaktieren Sie uns unter [email protected]. Wir antworten innerhalb von 30 Tagen nach Erhalt Ihrer Anfrage."},children:{title:"12. Datenschutz für Minderjährige",content:"SocialVisible ist nicht für Personen unter 18 Jahren bestimmt. Wir erheben wissentlich keine personenbezogenen Daten von Minderjährigen."},changes:{title:"13. Ãnderungen dieser Datenschutzrichtlinie",content:'Wir können diese Datenschutzrichtlinie von Zeit zu Zeit aktualisieren. Wir informieren Sie über wesentliche Ãnderungen durch Veröffentlichung der aktualisierten Richtlinie auf dieser Seite und Aktualisierung des Datums "Letzte Aktualisierung".'},contactUs:{title:"14. Kontakt",content:"Bei Fragen zu dieser Datenschutzrichtlinie kontaktieren Sie uns:",contactPage:"Kontaktformular",orEmail:"oder E-Mail an [email protected]. SocialVisible Ltd., [email protected]."}}},mae={title:"Nutzungsbedingungen",lastUpdated:"Letzte Aktualisierung: 27. Februar 2026",sections:{acceptance:{title:"1. Annahme der Bedingungen",content:'Durch den Zugriff auf oder die Nutzung der SocialVisible-Plattform unter https://socialvisible.ai (der "Dienst"), betrieben von SocialVisible Ltd., erklären Sie sich mit diesen Nutzungsbedingungen ("Bedingungen") einverstanden.'},description:{title:"2. Beschreibung der Dienste",content:"SocialVisible ist eine KI-gestützte Plattform zur Generierung und Verwaltung von Social-Media-Inhalten. Der Dienst ermöglicht es Benutzern, Inhalte (einschlieÃlich Karussells und Reels) über einen integrierten WhatsApp-Workflow zu erstellen, zu verwalten und zu veröffentlichen."},eligibility:{title:"3. Berechtigung",content:"Sie müssen mindestens 18 Jahre alt sein und die rechtliche Fähigkeit besitzen, verbindliche Vereinbarungen einzugehen, um den Dienst zu nutzen."},accountSecurity:{title:"4. Kontoregistrierung und Sicherheit",content:"Für den Zugriff auf bestimmte Funktionen müssen Sie ein Konto erstellen und genaue, vollständige und aktuelle Informationen angeben. Sie sind allein verantwortlich für die Vertraulichkeit Ihrer Kontoanmeldedaten und alle Aktivitäten unter Ihrem Konto."},subscriptionBilling:{title:"5. Abonnementpläne und Abrechnung",intro:"SocialVisible arbeitet mit einem abonnementbasierten Abrechnungsmodell. Mit dem Absc
528hluss eines kostenpflichtigen Plans stimmen Sie Folgendem zu:",items:["Abonnements werden im Voraus auf wiederkehrender monatlicher Basis abgerechnet","Abonnements verlängern sich automatisch, sofern sie nicht gekündigt werden","Sie können Ihren Plan jederzeit upgraden oder downgraden; Ãnderungen werden im nächsten Abrechnungszyklus wirksam","Die Kündigung wird am Ende des aktuellen Abrechnungszeitraums wirksam","Keine teilweisen oder anteiligen Erstattungen für ungenutzte Teile eines Abrechnungszeitraums","Sie sind für alle anfallenden Steuern verantwortlich","Bei Zahlungsausfall können wir den Zugang zu kostenpflichtigen Funktionen sperren"],afterItems:"Alle Zahlungen werden sicher über Stripe verarbeitet."},usageLimits:{title:"6. Nutzungslimits und Plandurchsetzung",content:"Jeder Abonnementplan enthält spezifische Nutzungslimits für Content-Typen. Diese Limits werden serverseitig durchgesetzt und monatlich zurückgesetzt."},aiDisclaimer:{title:"7. Haftungsausschluss für KI-generierte Inhalte",content:"SocialVisible verwendet künstliche Intelligenz zur Content-Generierung. Wir übernehmen keine Garantie für die Genauigkeit, Vollständigkeit, Eignung oder Wirksamkeit von KI-generierten Inhalten. Sie sind allein verantwortlich für die Ãberprüfung, Genehmigung und Veröffentlichung aller vom Dienst erstellten Inhalte."},thirdPartyPlatforms:{title:"8. Drittanbieter-Plattformen",content:"SocialVisible integriert sich mit Drittanbieter-Plattformen einschlieÃlich Instagram (Meta) und WhatsApp. SocialVisible ist nicht mit Meta Platforms, Inc. verbunden, wird nicht von ihr unterstützt oder gesponsert."},contentOwnership:{title:"9. Benutzerinhalte und Eigentum",content:"Sie behalten alle Eigentumsrechte an den Inhalten, die Sie auf SocialVisible hochladen. Durch die Nutzung des Dienstes gewähren Sie SocialVisible eine begrenzte, nicht-exklusive, lizenzgebührenfreie Lizenz zur Nutzung, Speicherung und Verarbeitung Ihrer Inhalte ausschlieÃlich zur Erbringung des Dienstes. KI-generierte Inhalte gehören Ihnen ab dem Zeitpunkt der Erstellung."},intellectualProperty:{title:"10. Geistiges Eigentum",content:"Die SocialVisible-Plattform, einschlieÃlich Software, Design, Funktionen und KI-Modelle, ist das ausschlieÃliche geistige Eigentum von SocialVisible Ltd."},acceptableUseRef:{title:"11. Akzeptable Nutzung",content:"Ihre Nutzung des Dienstes unterliegt unserer Richtlinie zur akzeptablen Nutzung unter https://socialvisible.ai/acceptable-use."},suspensionTermination:{title:"12. Suspendierung und Kündigung",content:"Wir behalten uns das Recht vor, Ihr Konto jederzeit bei VerstöÃen gegen diese Bedingungen zu suspendieren oder zu kündigen."},indemnification:{title:"13. Freistellung",content:"Sie erklären sich bereit, SocialVisible Ltd. von allen Ansprüchen freizustellen, die sich aus Ihrer Nutzung des Dienstes oder Ihrem Verstoà gegen diese Bedingungen ergeben."},limitationOfLiability:{title:"14. Haftungsbeschränkung",content:"Unsere gesamte Haftung übersteigt nicht die Gesamtbeträge, die Sie in den zwölf (12) Monaten vor dem haftungsauslösenden Ereignis an SocialVisible gezahlt haben."},disclaimerOfWarranties:{title:"15. Gewährleistungsausschluss",content:'Der Dienst wird "WIE BESEHEN" und "WIE VERFÃGBAR" bereitgestellt, ohne jegliche Garantien.'},governingLaw:{title:"16. Anwendbares Recht und Streitbeilegung",content:"Diese Bedingungen unterliegen den Gesetzen der Gerichtsbarkeit, in der SocialVisible Ltd. eingetragen ist."},forceMajeure:{title:"17. Höhere Gewalt",content:"SocialVisible haftet nicht für Nichterfüllung oder Verzögerung aufgrund von Ereignissen auÃerhalb unserer zumutbaren Kontrolle."},modificationsToService:{title:"18. Ãnderungen am Dienst",content:"Wir behalten uns das Recht vor, jeden Aspekt des Dienstes jederzeit zu ändern, auszusetzen oder einzustellen."},changesToTerms:{title:"19. Ãnderungen dieser Bedingungen",content:"Wir können diese Bedingungen von Zeit zu Zeit überarbeiten. Ihre fortgesetzte Nutzung von SocialVisible nach Ãberarbeitungen stellt die Annahme der aktualisierten Bedingungen dar."}
528,contactUs:{title:"20. Kontaktinformationen",content:"Bei Fragen zu diesen Nutzungsbedingungen kontaktieren Sie uns:",contactPage:"Kontaktformular",orEmail:"oder E-Mail an [email protected]. SocialVisible Ltd., [email protected]."}}},gae={title:"Erstattungsrichtlinie",lastUpdated:"Letzte Aktualisierung: 27. Februar 2026",sections:{subscriptionNature:{title:"1. Art des Abonnements",content:"SocialVisible arbeitet mit einem Abonnementmodell. Alle kostenpflichtigen Pläne werden im Voraus auf wiederkehrender monatlicher Basis abgerechnet."},cancellation:{title:"2. Kündigungsrichtlinie",content:"Sie können Ihr Abonnement jederzeit über Ihre Kontoeinstellungen oder durch Kontaktaufnahme mit [email protected] kündigen. Die Kündigung wird am Ende des aktuellen Abrechnungszeitraums wirksam. Sie behalten vollen Zugang bis zum Ende des bezahlten Zeitraums."},noPartialRefunds:{title:"3. Keine Teilerstattungen",content:"Wir erstatten keine teilweisen oder anteiligen Beträge für ungenutzte Teile eines Abrechnungszeitraums."},exceptionalCircumstances:{title:"4. AuÃergewöhnliche Erstattungsumstände",intro:"Erstattungen können im Einzelfall unter folgenden auÃergewöhnlichen Umständen in Betracht gezogen werden:",items:["Doppelzahlungen: wenn Sie aufgrund eines technischen Fehlers mehr als einmal für denselben Abrechnungszeitraum belastet wurden","Abrechnungsfehler: wenn ein falscher Betrag aufgrund eines System- oder Verarbeitungsfehlers berechnet wurde","Nachgewiesener technischer Dienstausfall: wenn SocialVisible während eines wesentlichen Teils Ihres Abrechnungszeitraums materiell nicht verfügbar war"],afterItems:"Um eine Erstattung zu beantragen, kontaktieren Sie [email protected] innerhalb von 14 Tagen nach der betreffenden Belastung."},chargebackPolicy:{title:"5. Rückbuchungsrichtlinie",content:"Wenn Sie eine Rückbuchung oder Zahlungsstreitigkeit einleiten, ohne zuerst SocialVisible zu kontaktieren, behalten wir uns das Recht vor, Ihr Konto sofort zu sperren."},freeTrial:{title:"6. Kostenloser Plan",content:"SocialVisible bietet einen kostenlosen Plan zum Testen des Dienstes. Der kostenlose Plan erfordert keine Zahlungsinformationen und unterliegt nicht dieser Erstattungsrichtlinie."},legalExceptions:{title:"7. Gesetzliche Ausnahmen",content:"Nichts in dieser Erstattungsrichtlinie beschränkt Ihre gesetzlichen Verbraucherrechte. Einwohner der Europäischen Union können zusätzliche Rechte gemäà lokalem Recht haben."},contactUs:{title:"8. Kontakt",content:"Für Erstattungsanfragen oder Abrechnungsfragen kontaktieren Sie uns:",contactPage:"Kontaktformular",orEmail:"oder E-Mail an [email protected]. SocialVisible Ltd."}}},vae={title:"Richtlinie zur Akzeptablen Nutzung",lastUpdated:"Letzte Aktualisierung: 27. Februar 2026",sections:{introduction:{title:"1. Einleitung",content:'Diese Richtlinie zur Akzeptablen Nutzung ("AUP") regelt Ihre Nutzung der SocialVisible-Plattform, betrieben von SocialVisible Ltd. Diese Richtlinie ist Teil unserer Nutzungsbedingungen und gilt für alle Benutzer.'},prohibitedActivities:{title:"2. Verbotene Aktivitäten",intro:"Sie dürfen SocialVisible nicht für folgende Aktivitäten nutzen oder diese unterstützen:",items:["Illegale Aktivitäten: jede Aktivität, die gegen geltende Gesetze oder Vorschriften verstöÃt","Urheberrechtsverletzungen: Hochladen, Verbreiten oder Generieren von Inhalten, die geistige Eigentumsrechte verletzen","Hassrede und Belästigung: Erstellen oder Verbreiten von Inhalten, die Hass, Diskriminierung oder Gewalt fördern","Spam und unerwünschte Nac
528hrichten: Nutzung des Dienstes zur Erzeugung oder Verbreitung von Spam oder irreführenden Inhalten","Plattformmanipulation: Versuch, Engagement-Metriken künstlich aufzublähen oder Algorithmen zu manipulieren","Kontofreigabe: Weitergabe, Verkauf oder Ãbertragung von Kontoanmeldedaten an unbefugte Dritte","Betrug und Täuschung: Nutzung des Dienstes für betrügerische Zwecke oder Phishing","Identitätsmissbrauch: sich als andere Person, Marke oder Einrichtung ausgeben ohne Genehmigung","KI-Missbrauch: Nutzung der KI-Content-Generierung zur Erstellung von Deepfakes oder irreführenden Inhalten"]},contentRestrictions:{title:"3. Inhaltsbeschränkungen",intro:"Sie dürfen SocialVisible nicht nutzen, um Inhalte zu erstellen, zu speichern oder zu verbreiten, die:",items:["Malware, Viren oder schädliche Softwarekomponenten enthalten","Illegale Drogen, Waffen oder kontrollierte Substanzen bewerben","Sexuell explizites Material oder ausbeuterische Inhalte enthalten","Minderjährige in irgendeiner Weise ansprechen oder ausbeuten","Persönliche oder vertrauliche Informationen anderer ohne Einwilligung enthalten","Absichtlich irreführend sind oder Desinformation darstellen"]},securityRestrictions:{title:"4. Sicherheits- und Technische Einschränkungen",intro:"Sie dürfen nicht:",items:["Versuchen, Teile der SocialVisible-Plattform rückzuentwickeln oder zu dekompilieren","Die Verwundbarkeit unserer Systeme oder Netzwerke prüfen, scannen oder testen","SicherheitsmaÃnahmen, Authentifizierungssysteme oder Nutzungslimits umgehen","Automatisierte Tools, Bots oder Skripte über den vorgesehenen Gebrauch hinaus verwenden","Den Dienst, Server oder Netzwerke von SocialVisible stören","Versuchen, auf Konten, Daten oder Inhalte anderer Benutzer ohne Genehmigung zuzugreifen"]},enforcement:{title:"5. Durchsetzung",intro:"SocialVisible behält sich das Recht vor, diese AUP nach eigenem Ermessen durchzusetzen. DurchsetzungsmaÃnahmen können umfassen:",items:["Sofortige Suspendierung oder Kündigung Ihres Kontos ohne Vorankündigung","Entfernung von Inhalten, die gegen diese Richtlinie verstoÃen","Vorübergehende oder dauerhafte Einschränkung des Zugangs zu bestimmten Funktionen","Untersuchung vermuteter VerstöÃe","Zusammenarbeit mit Strafverfolgungsbehörden bei vermuteten illegalen Aktivitäten","Verfolgung rechtlicher Mittel einschlieÃlich Schadensersatzforderungen"]},reporting:{title:"6. VerstöÃe Melden",content:"Wenn Sie glauben, dass ein Benutzer gegen diese Richtlinie verstöÃt, melden Sie dies über",contactPage:"unser Kontaktformular",orEmail:"oder E-Mail an [email protected]. Wir nehmen alle Meldungen ernst."}}},yae={title:"Dein Marketing lebt nicht in einem Dashboard. Es lebt in",titleHighlight:"WhatsApp",subtitle:"Wir senden dir täglich deinen veröffentlichungsfertigen Content direkt auf WhatsApp. Antworte mit",subtitleHighlight:"Genehmigen / Bearbeiten / Ãberspringen",tagline:"Keine Logins. Keine Tools zu lernen.",taglineBold:"WhatsApp ist der Service.",label:"WhatsApp-Nummer",placeholder:"WhatsApp-Nummer",hint:"ð Sicher. Wir spammen nie.",errorPrefix:"Die Nummer muss mit + beginnen",errorDigits:"Gib eine gültige internationale Nummer ein (7-15 Ziffern)",errorSaving:"WhatsApp-Nummer konnte nicht gespeichert werden",cancel:"Später",continue:"Weiter mit WhatsApp",saving:"Speichern..."},bae={createNewPost:"Neuen Beitrag Erstellen",contentOptions:"Inhaltsoptionen",generatingContent:"Inhalt wird generiert...",reviewAndEdit:"Ãberprüfen & Bearbeiten",schedulePost:"Beitrag Planen",dragAndDrop:"Bilder hierher ziehen und ablegen",orClickBrowse:"oder klicken zum Durchsuchen",maxImages:"JPG, PNG, WebP ⢠Max {{max}} Bilder",addMore:"Mehr hinzufügen",continue:"Weiter",whatToCreate:"Was möchtest du erstellen?",carousel:"Karussell",multiImagePost:"Mehrbild-Beitrag",reel:"Reel",shortVideo:"Kurzes Video",addInstructions:"Anweisungen hinzufügen (optional)",instructionsPlaceholder:"z.B., Unsere neue Sommerkollektion ankündigen, spielerischen Ton verwenden, den Rabatt erwähnen",instructionsHint:"Erzähl uns, worum es im Beitrag gehen soll",uploadingImages:"Bilder werden hochgeladen...",generateContent:"Inhalt Generieren",creatingContent:"Dein Inhalt wird erstellt...",creatingDescription:"Unsere KI analysiert deine Bilder und erstellt den perfekten {{type}} für dich.",generatingTitle:"Wir erstellen das beste Karussell für dich und dein Unternehmen â¨",generatingSubtitle:"Das dauert normalerweise 5-10 Minuten",generatingElapsed:"Vergangen",generatingSteps:["ð Recherche zu deinem Thema...","ð¡ Suche nac
528h den besten Blickwinkeln und Themen...","ð¯ Suche nach fesselnden Hooks, die Aufmerksamkeit erregen...","âï¸ Schreibe einen groÃartigen Post für dein Publikum...","ð Erstelle überzeugenden Text, der konvertiert...","#ï¸â£ Suche nach den relevantesten Hashtags...","ð¨ Generiere dein erstes beeindruckendes Bild...","ð¼ï¸ Erstelle das zweite Bild - noch besser als das erste!","⨠Arbeite an Bild 3 - es nimmt Fahrt auf...","ð¥ Bild 4 in Arbeit - dein Karussell nimmt Form an!","ð Generiere das letzte Bild - das Beste zum Schluss!","ð¬ Füge alle Bilder zu einem nahtlosen Karussell zusammen...","â¡ Optimiere Bilder für maximales Engagement...","ð Finalisierung deines Karussells - es ist fast fertig!","â
Letzte Feinschliffe an deinem Meisterwerk...","ð Dein Karussell kommt jeden Moment..."],generatedImages:"Generierte Bilder",clickToEnlarge:"(klicken zum VergröÃern)",caption:"Bildunterschrift",regenerate:"Neu generieren",hashtags:"Hashtags",addHashtag:"Hashtag hinzufügen",add:"Hinzufügen",connectInstagramTitle:"Instagram verbinden zum Veröffentlichen",connectInstagramSubtitle:"Verknüpfe dein Konto für direktes Posten",connectInstagram:"Instagram verbinden",postToInstagram:"Auf Instagram posten",continueToSchedule:"Weiter zur Planung",saveAsDraft:"Als Entwurf Speichern",selectAccount:"Konto Auswählen",chooseAccount:"Instagram-Konto wählen",noAccounts:"Keine Konten verbunden",whenToPost:"Wann posten",postNow:"Jetzt posten",postNowDesc:"Sofort nach Genehmigung veröffentlichen",scheduleLater:"Für später planen",scheduleLaterDesc:"Bestimmtes Datum und Uhrzeit wählen",addToQueue:"Zur Warteschlange hinzufügen",addToQueueDesc:"Nutzt optimale Posting-Zeiten",date:"Datum",time:"Uhrzeit",cancel:"Abbrechen",publish:"Veröffentlichen",schedule:"Planen",publishSuccess:"Beitrag Veröffentlicht! ð",publishSuccessDesc:"Dein Beitrag wurde zur Veröffentlichung gesendet.",publishFailed:"Veröffentlichung fehlgeschlagen",publishFailedDesc:"Bitte versuche es erneut oder speichere als Entwurf.",draftSaved:"Entwurf gespeichert",draftSavedDesc:"Dein Beitrag wurde als Entwurf gespeichert.",postScheduled:"Beitrag geplant",postScheduledDesc:"Dein Beitrag wurde geplant.",saveFailed:"Speichern fehlgeschlagen",saveFailedDesc:"Bitte versuche es erneut.",usageMessage:"Du hast {{used}} von {{total}} kostenlosen monatlichen Beiträgen verwendet.",upgradeMessage:"Upgrade für tägliche Beiträge, einschlieÃlich Reels, voller Automatisierung und kontinuierlicher Veröffentlichung.",upgradeButton:"Plan Upgraden",backToContent:"Zurück zum Inhalt"},xae={title:"Häufig gestellte Fragen",subtitle:"Alles, was Sie über SocialVisible wissen müssen.",questions:{q1:{question:"Was ist SocialVisible?",answer:"SocialVisible ist eine KI-gestützte Social-Media-Management-Plattform. Sie senden Fotos und Ideen über WhatsApp, und unsere KI erstellt professionelle Instagram-Posts und Reels für Sie."},q2:{question:"Wie funktioniert der WhatsApp-Workflow?",answer:"Senden Sie einfach eine Nachricht an unseren WhatsApp-Bot mit Ihren Fotos und einer kurzen Beschreibung. Unsere KI analysiert den Inhalt, erstellt Bildunterschriften, gestaltet Karussell-Posts oder Reels und sendet sie Ihnen zur Genehmigung vor der Veröffentlichung."},q3:{question:"Brauche ich Designkenntnisse?",answer:"Ãberhaupt nicht! SocialVisible übernimmt die gesamte Designarbeit. Senden Sie einfach Ihre Fotos und sagen Sie uns, worum es im Beitrag geht. Die KI erledigt den Rest."},q4:{question:"Welche Social-Media-Plattformen werden unterstützt?",answer:"Derzeit unterstützen wir Instagram-Karussells und Reels. Weitere Plattformen folgen in Kürze."},q5:{question:"Kann ich die Beiträge vor der Veröffentlichung bearbeiten?",answer:"Ja! Jeder Beitrag wird Ihnen zur Ãberprüfung gesendet, bevor er veröffentlicht wird. Sie können Ãnderungen anfordern, genehmigen oder ablehnen."},q6:{question:"Was passiert, wenn ich mein monatliches Limit erreiche?",answer:"Sobald Sie das monatliche Limit Ihres Plans erreichen, können Sie auf einen höheren Plan upgraden oder warten, bis Ihre Limits zu Beginn des nächsten Abrechnungszyklus zurückgesetzt werden."},q7:{question:"Sind meine Daten sicher?",answer:"Absolut. Wir verwenden branchenübliche Verschlüsselung und Sicherheitspraktiken. Ihre Fotos und Geschäftsdaten werden sicher gespeichert und niemals an Dritte weitergegeben."},q8:{question:"Kann ich mein Abonnement jederzeit kündigen?",answer:"Ja, Sie können jederzeit kündigen. Ihr Zugang bleibt bis zum Ende Ihres aktuellen Abrechnungszeitraums bestehen. Teilrückerstattungen werden nicht gewährt."}}}
528,wae={backToHome:"Zurück zur Startseite",title:"Kontakt",subtitle:"Haben Sie eine Frage oder Feedback? Wir freuen uns, von Ihnen zu hören.",email:"E-Mail",location:"Standort",locationValue:"Tel Aviv, Israel",form:{fullName:"Vollständiger Name",fullNamePlaceholder:"Ihr vollständiger Name",email:"E-Mail",emailPlaceholder:"[email protected]",subject:"Betreff",subjectPlaceholder:"Betreff auswählen",message:"Nachricht",messagePlaceholder:"Erzählen Sie uns, wie wir helfen können...",sending:"Wird gesendet...",submit:"Nachricht senden"},subjects:{general:"Allgemeine Anfrage",support:"Technischer Support",billing:"Abrechnung",partnership:"Partnerschaft",feedback:"Feedback",other:"Sonstiges"},errors:{nameRequired:"Name ist erforderlich",emailRequired:"E-Mail ist erforderlich",emailInvalid:"Bitte geben Sie eine gültige E-Mail ein",subjectRequired:"Bitte wählen Sie einen Betreff",messageRequired:"Nachricht ist erforderlich",messageMinLength:"Die Nachricht muss mindestens 10 Zeichen enthalten"},toast:{successTitle:"Nachricht gesendet!",successDescription:"Wir werden uns bald bei Ihnen melden.",errorTitle:"Fehler",errorRateLimit:"Zu viele Anfragen. Bitte versuchen Sie es später.",errorInvalidEmail:"Ungültige E-Mail-Adresse.",errorGeneric:"Etwas ist schiefgegangen. Bitte versuchen Sie es erneut."},success:{title:"Vielen Dank!",description:"Ihre Nachricht wurde erfolgreich gesendet. Wir werden uns so schnell wie möglich bei Ihnen melden.",backToHome:"Zurück zur Startseite",sendAnother:"Weitere Nachricht senden"}},Sae={progress:"Schritt {{current}} von {{total}}",business:{title:"Erzählen Sie uns von Ihrem Unternehmen",subtitle:"Das hilft uns, maÃgeschneiderte Inhalte für Sie zu erstellen",personalizedSubtitle:"Um präzise, personalisierte Beiträge zu erstellen, müssen wir Ihr Unternehmen verstehen. Teilen Sie ein paar Details mit.",label:"Unternehmensbeschreibung",placeholder:"Z.B.: Ich betreibe eine Bäckerei in Berlin, spezialisiert auf Sauerteigbrot und handwerkliche Backwaren.",hint:"Je mehr Details Sie teilen, desto besser wird der Inhalt, den wir erstellen.",categoryLabel:"Branche",categoryPlaceholder:"Wählen Sie Ihre Branche",categories:{food:"Essen & Getränke",beauty:"Schönheit & Wellness",retail:"Einzelhandel & Mode",fitness:"Gesundheit & Fitness",services:"Professionelle Dienstleistungen",education:"Bildung",real_estate:"Immobilien",tech:"Technologie",creator:"Creator & Unterhaltung",other:"Sonstiges"},fullNameLabel:"Ihr Name",fullNamePlaceholder:"Z.B. Max Mustermann",businessNameLabel:"Unternehmensname",businessNamePlaceholder:"Z.B.: Dannys Bäckerei",locationLabel:"Standort (optional)",locationPlaceholder:"Z.B.: Berlin, Deutschland",uspLabel:"Was macht Sie einzigartig? (optional)",uspPlaceholder:"Z.B.: Nur biologische, lokale Zutaten",targetAudienceLabel:"Wer sind Ihre Kunden? (optional)",targetAudiencePlaceholder:"Z.B.: Kleinunternehmer, junge Mütter",brandToneLabel:"Ihr Markenton (optional)",brandTonePlaceholder:"Wählen Sie Ihren Stil",brandTones:{friendly:"Freundlich & Zugänglich",professional:"Professionell & Formell",playful:"Verspielt & Leicht",inspirational:"Inspirierend",luxurious:"Luxuriös & Premium",casual:"Lässig & Alltäglich"},whatsappLabel:"WhatsApp-Nummer",whatsappPlaceholder:"Telefonnummer",whatsappHint:"Wir nutzen WhatsApp, um Ihnen Beitragsvorschauen zur Genehmigung zu senden.",continue:"Weiter",saving:"Speichern..."},errors:{required:"Pflichtfeld",describeBusinessBrief:"Bitte beschreiben Sie Ihr Unternehmen kurz.",failedToSave:"Speichern fehlgeschlagen. Bitte versuchen Sie es erneut.",retryHint:"Ãberprüfen Sie Ihre Verbindung und versuchen Sie es erneut."}},jae={business:{next:"Weiter: WhatsApp verbinden"},whatsapp:{title:"WhatsApp verbinden",subtitle:"Ihre Inhalte werden über WhatsApp zur einfachen Ãberprüfung und Genehmigung geliefert.",nextButton:"Weiter: Inhaltstyp wählen",generateButton:"Meine Inhalte erstellen",continueButton:"Weiter zu WhatsApp"},contentType:{title:"Was möchten Sie erstellen?",subtitle:"Wählen Sie den Inhaltstyp für Ihren ersten Beitrag",selectRequired:"Bitte wählen Sie einen Inhaltstyp",carousel:"Karussell-Beitrag",carouselDesc:"Instagram-Karussell mit mehreren Folien, ansprechenden Bildern und Text (~2 Credits)",story:"Story-Bild",storyDesc:"Schönes Instagram-Story-Bild mit Bildunterschrift (~0,5 Credits)",next:"Weiter: Ãberprüfen & Erstellen",topicLabel:"Thema:",imagesLabel:"Bilder:",uploaded:"hochgeladen"},review:{title:"Bereit zum Erstellen!",subtitle:"Ãberprüfen Sie Ihre Anfrage, bevor wir beginnen",typeLabel:"Inhaltstyp",topicLabel:"Thema",topicPlaceholder:"Beschreiben Sie, worum es in Ihrem Beitrag gehen soll...",topicRequired:"Bitte geben Sie ein Thema ein",imageLabel:"Ihr Bild",changeImage:"Bild ändern",uploadImage:"Bild hochladen (optional)",carouselCost:"Dieses Karussell verbraucht ~2 Credits aus Ihrem kostenlosen Plan",storyCost:"Diese Story verbraucht ~0,5 Credits aus Ihrem kostenlosen Plan",generating:"Wird gesendet...",generateButton:"Ãber WhatsApp erstellen!",back:"â Inhaltstyp ändern"},generating:{title:"Ihre Inhalte werden erstellt",status:"Senden Ihrer Inhalte an unsere KI...",sent:"Inhalte werden erstellt! Sie erhalten sie in Kürze auf WhatsApp.",alreadyActive:"Inhalte werden bereits erstellt!",limitReached:"Credit-Limit erreicht. Bitte upgraden Sie Ihren Plan."},done:{title:"Alles bereit! ð",withContent:"Ihre Inhalte werden erstellt und in Kürze an Ihr WhatsApp geliefert.",noContent:"Senden Sie uns ein Foto und Thema auf WhatsApp, um Ihren ersten Beitrag zu erstellen!",openWhatsApp:"WhatsApp öffnen",viewBilling:"Abrechnung & Nutzung anzeigen",whatsappMessage:"Hallo! Ich habe mich gerade angemeldet und bin bereit, Inhalte zu erstellen ð¨"},otpStep:{title:"Bestätige dein WhatsApp",subtitle:"Wir senden dir einen 6-stelligen Code per WhatsApp, um deine Nummer zu bestätigen.",phoneLabel:"Deine WhatsApp-Nummer",phonePlaceholder:"Telefonnummer",sendButton:"Code per WhatsApp senden",sending:"Code wird gesendet...",codeSentTitle:"Code gesendet!",codeSentDesc:"Wir haben einen 6-stelligen Code an {{phone}} per WhatsApp gesendet.",enterCode:"6-stelligen Code eingeben",verifying:"Wird überprüft...",expires
528In:"Code läuft ab in {{time}}",expired:"Code abgelaufen - bitte erneut senden",changeNumber:"Nummer ändern",resend:"Code erneut senden",resendIn:"Erneut senden in {{seconds}}s",noCodeHelp:"Kein Code erhalten? Prüfe WhatsApp auf eine Nachricht von unserer Verifizierungslinie oder versuche es per E-Mail.",useEmail:"Code stattdessen per E-Mail senden",sendingEmail:"E-Mail wird gesendet...",emailSentTitle:"E-Mail gesendet",emailSentDesc:"Prüfe {{email}} auf deinen Code.",useWhatsapp:"Stattdessen WhatsApp verwenden",verifiedTitle:"WhatsApp verifiziert",verifiedDesc:"Deine Nummer {{phone}} ist verifiziert.",verifiedReady:"Bereit fortzufahren",errorInvalidNumber:"Bitte gib eine gültige Telefonnummer ein.",errorSendFailed:"Code konnte nicht gesendet werden",errorVerifyFailed:"Verifizierung fehlgeschlagen",errorInvalidCode:"Ungültiger Code",footer:"Wir nutzen WhatsApp, um dir Benachrichtigungen und Beitragsfreigaben zu senden."}},_ae={title:"Sichtbar bleiben",subtitle:"Tipps, Strategien und Einblicke, damit Ihr Unternehmen in den sozialen Medien auffällt.",allArticles:"Alle Artikel",readMore:"Weiterlesen",minRead:"{{count}} Min. Lesezeit",backToBlog:"Zurück zum Blog",readyQuestion:"Bereit loszulegen?",getStartedFree:"Kostenlos starten",readMoreArticles:"Weitere Artikel lesen",readyToBeVisible:"Bereit, sichtbar zu werden?",ctaSubtitle:"Lassen Sie KI automatisch beeindruckende Social-Media-Inhalte für Ihr Unternehmen erstellen.",categories:{visibility:"Sichtbarkeit",consistency:"Konsistenz",automation:"Automatisierung",strategy:"Strategie",growth:"Wachstum"}},Nae={plans:{subtitle:"Wählen Sie die Sichtbarkeitsstufe, die zu Ihrem Unternehmen passt",starterBonus:"Startbonus",whatsappComm:"WhatsApp-Kommunikation",igPublishing:"Instagram-Veröffentlichung",current:"AKTUELL",popular:"BELIEBT",cancelPending:"Kündigung ausstehend",cancelPendingDesc:"Ihr {{plan}}-Plan bleibt bis {{date}} aktiv. Danach wechseln Sie zum kostenlosen Plan.",comingSoon:"Demnächst",cancellationPending:"Kündigung ausstehend",cancel:"Kündigen",availableCredits:"Verfügbare Credits",creditsWithPlan:"{{credits}} Credits/Monat mit Ihrem Plan",allPlansInclude:"Alle Pläne beinhalten",feature1:"WhatsApp-KI-Assistent",feature2:"Optionale Ãberprüfung vor Veröffentlichung",feature3:"Inhalte per Nachricht bearbeiten",feature4:"Jederzeit Ãnderungen anfordern",getStarted:"Starten Sie mit Sichtbarkeit",forGrowing:"Für wachsende Unternehmen",stayVisible:"Bleiben Sie konstant sichtbar",maxVisibility:"Maximale Sichtbarkeit"}},Pae={nav:rae,mobileDemo:iae,mockup:aae,tryItNow:sae,hero:oae,howItWorks:lae,whyWhatsApp:cae,testimonials:uae,pricing:dae,cta:hae,footer:fae,privacy:pae,terms:mae,refund:gae,acceptableUse:vae,whatsappGate:yae,createContent:bae,faq:xae,contact:wae,webOnboarding:Sae,onboardingFlow:jae,blog:_ae,billing:Nae},Aae={howItWorks:"Como funciona",pricing:"Preços",faq:"Perguntas frequentes",blog:"Blog",startFree:"Começar Grátis",login:"Entrar",signUp:"Registrar Grátis",dashboard:"Painel",signOut:"Sair",signedInAs:"Conectado como"},Cae={aria:"Exemplo animado: envias, a IA prepara o post, tu aprovas e publicamos",step1:"1. Envia uma foto e escreve o tema",step2:"2. A IA prepara o teu post â¨",step3:"3. Aprova e publica num toque ð",subjectLabel:"Tema do post",subjectText:"Croissants acabados de sair do forno esta manhã â",photoUploaded:"Foto adicionada",aiTitle:"Visible AI está a preparar o teu post",aiSubtitle:"Legenda, imagem e hashtags",aiStep1:"A analisar a tua foto",aiStep2:"A escrever a legenda",aiStep3:"A adicionar hashtags e visuais",approveButton:"Aprovar e publicar",published:"Publicado no Instagram"},Eae={online:"online",botGreeting:"Oi! Sou o Visible AI ð Envie uma foto e me conte sobre seu post - eu crio pra você!",userMessage:"Croissants fresquinhos do forno esta manhã ð¥",botProcessing:"Lindo! ⨠Criando um post do Instagram pra você agora...",likes:"248 curtidas",caption:"Acorde com o aroma de croissants fresquinhos ð¥â¨ Feitos à mão, dourados e prontos pro seu café da manhã. #PadariaParis #RecemAssado",readyToPost:"Pronto pra postar! ð",inputPlaceholder:"Digite uma mensagem"},kae={badge:"Experimente grátis, sem cadastro",title:"Crie sua primeira publicação em",titleHighlight:"30 segundos",skipLink:"Quer saber mais primeiro?",seeHow:"Veja como funciona â",mobile:{badge:"Experimente grátis, sem cadastro",title:"Veja sua publicação em",titleHighlight:"30 segundos",headline:"Vamos tornar seu negócio",headlineHighlight:"visÃvel",subheadline:"Criar posts para redes sociais agora é tão fácil quanto mandar mensagem para um amigo no WhatsApp.",cta:"Experimente agora grátis.",photoLabel:"Primeiro, tire uma foto",takePhoto:"Tirar Foto",gallery:"Galeria",photoAdded:"Foto adicionada",addPhotos:"Fotos para seu post",then:"depois",de
528scLabel:"Sobre o que é esse post?",descPlaceholder:"Promoção de verão, 30% de desconto em tudo neste fim de semana! Venha nos visitar...",descHint:"Descreva o tema do seu post â¨",createPost:"Criar Minha Publicação",tryAnother:"Tentar com outra foto",examples:{bakery:"Croissants frescos saindo do forno, perfeitos para o café da manhã...",salon:"Novas tendências de cor de cabelo para o verão, agende sua transformação...",restaurant:"O prato especial do chef esta semana, feito com ingredientes frescos...",boutique:"Novidades chegaram! Peças de edição limitada que você vai amar..."},generating:{analyzing:"Analisando sua foto...",understanding:"Entendendo o tema...",writing:"Escrevendo a legenda perfeita...",hashtags:"Adicionando hashtags em alta...",finishing:"Adicionando toques mágicos..."},result:{subtitle:"Aqui está o que criamos para você"},hintTopic:"Sobre o que quer postar? â¨",hintImage:"Adicione uma foto para continuar ð¸",startCta:"Gere seu primeiro post!",startCtaNeedTopic:"Gere seu primeiro post!",startCtaNeedImage:"Envie uma foto para o seu primeiro post",makeFirstPost:"Crie seu primeiro post agora"},business:{greeting:"â¨",title:"Crie um post em segundos!",subtitle:"Escolha o que você quer criar",typeLabel:"O que você quer criar?",topicLabel:"Qual é o tema?",topicPlaceholder:"ex., Promoção de verão, Novo prato, Bastidores...",next:"Próximo: Adicionar fotos â",types:{carousel:"ð¼ï¸ Carrossel",reel:"ð¬ Reel / VÃdeo"}},photo:{back:"Voltar",title:"Adicione uma foto",subtitle:"Vamos criar a publicação perfeita para ela",dropzone:"Solte sua foto aqui",browse:"ou clique para procurar",useSample:"Ou use uma foto de exemplo â",create:"⨠Criar minha publicação"},generating:{title:"Criando magia...",steps:{analyzing:"ð Analisando sua foto...",writing:"âï¸ Escrevendo a legenda perfeita...",hashtags:"#ï¸â£ Adicionando hashtags em alta...",finishing:"⨠Toques finais..."}},result:{title:"Sua publicação está pronta!",cta:"Gostou? Ganhe 5 publicações grátis â",tryAnother:"Tentar outra foto",startOver:"Recomeçar"}},Tae={badge:"Redes sociais no piloto automático",title:"Seu Gerente de Redes Sociais.",titleHighlight:"No WhatsApp.",subtitle:"Apenas escreva o que quiser. Nós cuidamos do resto. Sem apps. Sem painéis. Apenas resultados.",cta:"Começar no WhatsApp",ctaSecondary:"Ver Como Funciona",socialProof:"pequenos negócios",ctaPrimary:"Crie seu post grátis agora"},Oae={title:"Fácil como mandar uma mensagem",subtitle:"Sem apps para baixar. Sem painéis para aprender. Apenas mande mensagens como sempre.",step1Title:"Envie uma foto",step1Desc:"Mande suas fotos para o Visible no WhatsApp - como uma mensagem para um amigo",step2Title:"IA cria magia",step2Desc:"Nossa IA cria publicações que param o scroll com legendas que convertem",step3Title:"Toque para publicar",step3Desc:"Aprove com um toque. Suas publicações vão ao ar enquanto você cuida do seu negócio"},Iae={title:"Por que WhatsApp?",subtitle:"Porque administrar um negócio já é difÃcil o suficiente. Redes sociais não deveriam ser.",feature1Title:"Já está no seu celular",feature1Desc:"Sem novos apps para aprender. Você já sabe mandar mensagens.",feature2Title:"Zero curva de aprendizado",feature2Desc:"Se você sabe mandar mensagens, pode usar o Visible.",feature3Title:"Responda quando quiser",feature3Desc:"Sem pressão. Responda no seu ritmo.",feature4Title:"Funciona em qualquer lugar",feature4Desc:"Gerencie suas redes sociais de qualquer dispositivo."},Rae={title:"Amado por Negócios Locais",subtitle:"Junte-se a centenas de pequenos empresários que simplificaram suas redes sociais",testimonial1:{name:"Maria S.",role:"Padaria Local",quote:"Eu gerencio o Instagram da minha padaria enquanto espero o pão crescer. Mudou tudo."},testimonial2:{name:"David R.",role:"Personal Trainer",quote:"Meus seguidores foram de 400 para 2000 em dois meses. E eu mal fiz nada!"},testimonial3:{name:"Sara K.",role:"Salão de Beleza",quote:"Finalmente algo que não precisa de tutorial. Só manda mensagem e pronto."}},Dae={title:"Visibilidade nao e uma tarefa. E um sistema.",subtitle:"Escolha o plano que combina com seus objetivos de visibilidade.",howItWorks:"Todos os limites sao reiniciados mensalmente. Automacao por padrao, controle opcional.",free:"Gratis",perMonth:"/mes",popular:"RECOMENDADO",currentPlan:"Plano Atual",allPlansInclude:"Todos os planos incluem",plans:{free:{name:"Gratis",description:"Teste o sistema. Veja seu primeiro post.",cta:"Gratis"},basic:{name:"Basico",description:"Fique visivel com postagens consistentes.",cta:"Basico"}
528,visible:{name:"Visivel",description:"Visibilidade completa com posts e videos.",cta:"Visivel"},always:{name:"Sempre Visivel",description:"Visibilidade maxima. Conteudo que nunca para.",cta:"Sempre Visivel"}},limits:{carousels:"{{count}} carrossel por mes",carousels_plural:"{{count}} carrosseis por mes",reels:"{{count}} reel por mes",reels_plural:"{{count}} reels por mes",whatsapp:"Comunicacao pelo WhatsApp",instagram:"Publicacao no Instagram"},allFeatures:{whatsapp:"Assistente IA no WhatsApp",review:"Revisao opcional antes de publicar",edit:"Editar conteudo por mensagem",request:"Solicitar mudancas por mensagem",automation:"Automacao primeiro, controle quando quiser"},whatsappAssistant:{title:"Seu assistente IA vive no WhatsApp",description:"Sem apps. Sem paineis. Apenas mensagens.",feature1:"Envie fotos, receba posts",feature2:"Peca edicoes por texto",feature3:"Aprove ou rejeite com um toque"},custom:{text:"Quer mais? Entre em contato para construir seu sistema de visibilidade.",cta:"Fale Conosco"}},Mae={title:"Pronto para ser visivel?",subtitle:"Junte-se a mais de 500 pequenos negocios que estao crescendo nas redes sociais, uma mensagem de cada vez.",button:"Comecar Gratis no WhatsApp",noCreditCard:"Sem cartao de credito - Configuracao em 30 segundos",buttonPrimary:"Crie seu post grátis agora"},$ae={tagline:"Seu gerente de redes sociais, no WhatsApp.",privacy:"PolÃtica de Privacidade",terms:"Termos de Serviço",refund:"PolÃtica de Reembolso",acceptableUse:"Uso Aceitável",contact:"Contato"},Lae={title:"PolÃtica de Privacidade",lastUpdated:"Ãltima atualização: 27 de fevereiro de 2026",sections:{introduction:{title:"1. Introdução",content:'SocialVisible Ltd. ("SocialVisible", "nós", "nosso") opera a plataforma SocialVisible em https://socialvisible.ai. Esta PolÃtica de Privacidade explica como coletamos, usamos, divulgamos e protegemos suas informações quando você usa nosso serviço de geração de conteúdo para redes sociais alimentado por IA. Ao usar o SocialVisible, você consente com as práticas de dados descritas nesta polÃtica.'},informationWeCollect:{title:"2. Informações que Coletamos",intro:"Coletamos as seguintes categorias de informações:",items:["Informações da conta: nome, endereço de e-mail, número de telefone e número do WhatsApp","Informações comerciais: nome da empresa, tipo, categoria, localização, público-alvo e tom da marca","Credenciais de redes sociais: tokens de acesso do Instagram e IDs de usuário da plataforma necessários para publicação","Conteúdo enviado: fotos, imagens e outras mÃdias que você fornece para geração de conteúdo","Informações de pagamento: dados de faturamento processados com segurança via Stripe (não armazenamos números completos de cartão)","Dados de uso e análise: padrões de uso de recursos, histórico de geração de conteúdo e registros de interação","Dados de comunicação: mensagens trocadas via WhatsApp para criação e gerenciamento de conteúdo","Informações do dispositivo e navegador: endereço IP, tipo de navegador, sistema operacional e URLs de referência"]},howWeUse:{title:"3. Como Usamos Suas Informações",intro:"Usamos as informações que coletamos para os seguintes propósitos:",items:["Fornecer, operar e manter a plataforma SocialVisible","Gerar conteúdo de redes sociais alimentado por IA adaptado ao seu negócio","Publicar e agendar conteúdo em suas contas de redes sociais conectadas","Processar pagamentos de assinatura e gerenciar ciclos de faturamento","Comunicar com você via WhatsApp para fluxo de trabalho de conteúdo e suporte","Aplicar limites de uso baseados no plano e monitorar a atividade da conta","Melhorar nossos modelos de IA e qualidade do serviço com base em padrões de uso agregados","Enviar e-mails transacionais, alertas de segurança e atualizações do serviço","Cumprir obrigações legais e fazer cumprir nossos Termos de Serviço"]},lawfulBasis:{title:"4. Base Legal para Processamento (LGPD/GDPR)",intro:"Processamos seus dados pessoais com base nas seguintes bases legais:",items:["Execução de contrato: processamento necessário para fornecer o serviço SocialVisible ao qual você se inscreveu","Interesses legÃtimos: melhorar nossos serviços, prevenir fraudes e garantir a segurança da plataforma","Consentimento: quando você forneceu consentimento explÃcito, como para comunicações de marketing","Obrigação legal: processamento necessário para cumprir leis e regulamentos aplicáveis"]},dataSharing:{title:"5. Compartilhamento de Informações",intro:"Podemos compartilhar suas informações com as seguintes categorias de terceiros:",items:["Stripe Inc.: para processamento seguro de pagamentos e gerenciamento de assinaturas","Provedores de hospedagem e infraestrutura: para hospedagem da plataforma e armazenamento de dados","Provedores de serviços de IA: para capacidades de geração de conteúdo (seus dados não são usados para treinar modelos de terceiros)","Plataformas de redes sociais (Instagram, WhatsApp): para publicar conteúdo e facilitar a comunicação conforme suas instruções","Ferramentas de análise: para análise de uso agregada e anonimizada","Autoridades legais: quando exigido por lei, ordem judicial ou regulamentação governamental"],noSell:"Não vendemos, alugamos ou comercializamos suas informações pessoais a terceiros para fins de marketing. Nunca."},internationalTransfers:{title:"6. Transferências Internacionais de Dados",content:"Suas informações podem ser transferidas e processadas em paÃses diferentes do paÃs em que você reside. Garantimos salvaguardas apropriadas, incluindo Cláusulas Contratuais Padrão (CCPs), para proteger seus dados em conformidade com as leis de proteção de dados aplicáveis."},dataRetention:{title:"7. Retenção de Dados",content:"Retemos suas informações pessoais enquanto sua conta estiver ativa ou conforme necessário para fornecer o serviço SocialVisible. Após a exclusão da conta, podemos reter certos dados por até 90 dias para fins de backup e recuperação."},dataSecurity:{title:"8. Medidas de Segurança",content:"Implementamos medidas técnicas e organizacionais padrão da indústria para proteger seus dados, incluindo: criptografia de dados em trânsito (TLS/SSL) e em repouso, controles de acesso e autenticação para sistemas internos, avaliações regulares de segurança e testes de vulnerabilidade, armazenamento seguro de tokens e credenciais de redes sociais, e restrições de acesso de funcionários com base na necessidade de conhecer."}
528,aiProcessing:{title:"9. IA e Processamento Automatizado",content:"SocialVisible utiliza inteligência artificial para gerar conteúdo de redes sociais. Nossa IA processa suas informações comerciais, mÃdia enviada e histórico de uso para produzir conteúdo personalizado. O conteúdo gerado por IA é criado para seu uso e não envolve tomada de decisão automatizada que produza efeitos legais sobre você. Você mantém controle total sobre aprovar, editar ou rejeitar qualquer conteúdo gerado por IA antes da publicação."},cookies:{title:"10. Cookies e Tecnologias de Rastreamento",content:"Usamos cookies e tecnologias similares para manter sua sessão, lembrar suas preferências (incluindo seleção de idioma) e analisar o uso da plataforma. Cookies essenciais são necessários para o funcionamento da plataforma."},dataSubjectRights:{title:"11. Seus Direitos sobre os Dados",intro:"Dependendo da sua localização, você pode ter os seguintes direitos em relação aos seus dados pessoais:",items:["Direito de acesso: solicitar uma cópia dos dados pessoais que mantemos sobre você","Direito de retificação: solicitar a correção de dados imprecisos ou incompletos",'Direito de exclusão: solicitar a exclusão de seus dados pessoais ("direito ao esquecimento")',"Direito de limitar o processamento: solicitar limitação no uso de seus dados","Direito à portabilidade de dados: receber seus dados em formato estruturado e legÃvel por máquina","Direito de oposição: se opor ao processamento baseado em interesses legÃtimos","Direito de retirar o consentimento: retirar consentimento previamente concedido a qualquer momento"],afterItems:"Para exercer qualquer um desses direitos, entre em contato conosco em [email protected]. Responderemos dentro de 30 dias após o recebimento de sua solicitação."},children:{title:"12. Privacidade de Menores",content:"SocialVisible não é destinado a pessoas menores de 18 anos. Não coletamos intencionalmente informações pessoais de menores."},changes:{title:"13. Alterações nesta PolÃtica de Privacidade",content:'Podemos atualizar esta PolÃtica de Privacidade periodicamente. Notificaremos sobre mudanças materiais publicando a polÃtica atualizada nesta página e atualizando a data de "Ãltima atualização".'},contactUs:{title:"14. Fale Conosco",content:"Se tiver dúvidas sobre esta PolÃtica de Privacidade, entre em contato:",contactPage:"Formulário de contato",orEmail:"ou envie um e-mail para [email protected]. SocialVisible Ltd., [email protected]."}}},Vae={title:"Termos de Serviço",lastUpdated:"Ãltima atualização: 27 de fevereiro de 2026",sections:{acceptance:{title:"1. Aceitação dos Termos",content:'Ao acessar ou usar a plataforma SocialVisible em https://socialvisible.ai (o "Serviço"), operada pela SocialVisible Ltd., você concorda em ficar vinculado a estes Termos de Serviço ("Termos").'},description:{title:"2. Descrição dos Serviços",content:"SocialVisible é uma plataforma de geração e gerenciamento de conteúdo para redes sociais alimentada por IA. O Serviço permite que os usuários criem, gerenciem e publiquem conteúdo (incluindo carrosséis e reels) por meio de um fluxo de trabalho integrado ao WhatsApp."},eligibility:{title:"3. Elegibilidade",content:"Você deve ter pelo menos 18 anos de idade e capacidade legal para celebrar acordos vinculativos para usar o Serviço."},accountSecurity:{title:"4. Registro e Segurança da Conta",content:"Para acessar certas funcionalidades, você deve criar uma conta e fornecer informações precisas, completas e atualizadas. Você é o único responsável pela confidencialidade de suas credenciais e por toda a atividade em sua conta."},subscriptionBilling:{title:"5. Planos de Assinatura e Faturamento",intro:"SocialVisible opera com um modelo de faturamento por assinatura. Ao assinar um plano pago, você concorda com o seguinte:",items:["As assinaturas são cobradas antecipadamente em base mensal recorrente","As assinaturas são renovadas automaticamente, a menos que sejam canceladas","Você pode fazer upgrade ou downgrade do seu plano a qualquer momento; as alterações entram em vigor no próximo ciclo de faturamento","O cancelamento é efetivo no final do perÃodo de faturamento atual","Nenhum reembolso parcial ou proporcional é emitido para porções não utilizadas","Você é responsável por quaisquer impostos aplicáveis","Em caso de falha de pagamento, podemos suspender o acesso à s funcionalidades pagas"],afterItems:"Todos os pagamentos são processados com segurança via Stripe."},usageLimits:{title:"6. Limites de Uso e Aplicação do Plano",content:"Cada plano de assinatura inclui limites de uso especÃficos para tipos de conteúdo. Esses limites são aplicad
528os no nÃvel do servidor e redefinidos mensalmente."},aiDisclaimer:{title:"7. Isenção de Responsabilidade do Conteúdo Gerado por IA",content:"SocialVisible utiliza inteligência artificial para gerar conteúdo. Não garantimos a precisão, completude, adequação ou eficácia do conteúdo gerado por IA. Você é o único responsável por revisar, aprovar e publicar qualquer conteúdo criado pelo Serviço."},thirdPartyPlatforms:{title:"8. Plataformas de Terceiros",content:"SocialVisible se integra com plataformas de terceiros incluindo Instagram (Meta) e WhatsApp. SocialVisible não é afiliada, endossada ou patrocinada pela Meta Platforms, Inc."},contentOwnership:{title:"9. Conteúdo do Usuário e Propriedade",content:"Você mantém todos os direitos de propriedade sobre o conteúdo que envia ao SocialVisible. Ao usar o Serviço, você concede ao SocialVisible uma licença limitada, não exclusiva, livre de royalties para usar, armazenar e processar seu conteúdo exclusivamente para fornecer o Serviço. O conteúdo gerado por IA pertence a você após a geração."},intellectualProperty:{title:"10. Propriedade Intelectual",content:"A plataforma SocialVisible, incluindo software, design, funcionalidades e modelos de IA, é propriedade intelectual exclusiva da SocialVisible Ltd."},acceptableUseRef:{title:"11. Uso Aceitável",content:"Seu uso do Serviço está sujeito à nossa PolÃtica de Uso Aceitável em https://socialvisible.ai/acceptable-use."},suspensionTermination:{title:"12. Suspensão e Rescisão",content:"Reservamo-nos o direito de suspender ou encerrar sua conta a qualquer momento por violações destes Termos."},indemnification:{title:"13. Indenização",content:"Você concorda em indenizar a SocialVisible Ltd. contra quaisquer reivindicações decorrentes de seu uso do Serviço ou violação destes Termos."},limitationOfLiability:{title:"14. Limitação de Responsabilidade",content:"Nossa responsabilidade total agregada não excederá os valores totais pagos por você ao SocialVisible nos doze (12) meses anteriores ao evento que deu origem à reivindicação."},disclaimerOfWarranties:{title:"15. Isenção de Garantias",content:'O Serviço é fornecido "COMO ESTÃ" e "CONFORME DISPONÃVEL", sem garantias de qualquer tipo.'},governingLaw:{title:"16. Lei Aplicável e Resolução de Disputas",content:"Estes Termos serão regidos pelas leis da jurisdição em que a SocialVisible Ltd. está constituÃda."},forceMajeure:{title:"17. Força Maior",content:"SocialVisible não será responsável por qualquer falha ou atraso devido a eventos fora de nosso controle razoável."},modificationsToService:{title:"18. Modificações ao Serviço",content:"Reservamo-nos o direito de modificar, suspender ou descontinuar qualquer aspecto do Serviço a qualquer momento."},changesToTerms:{title:"19. Alterações nestes Termos",content:"Podemos revisar estes Termos periodicamente. Seu uso continuado do SocialVisible após quaisquer revisões constitui aceitação dos Termos atualizados."},contactUs:{title:"20. Informações de Contato",content:"Para dúvidas sobre estes Termos de Serviço, entre em contato:",contactPage:"Formulário de contato",orEmail:"ou envie um e-mail para [email protected]. SocialVisible Ltd., [email protected]."}}},Fae={title:"PolÃtica de Reembolso",lastUpdated:"Ãltima atualização: 27 de fevereiro de 2026",sections:{subscriptionNature:{title:"1. Natureza da Assinatura",content:"SocialVisible opera com um modelo de assinatura. Todos os planos pagos são cobrados antecipadamente em base mensal recorrente."},cancellation:{title:"2. PolÃtica de Cancelamento",content:"Você pode cancelar sua assinatura a qualquer momento nas configurações da sua conta ou entrando em contato com [email protected]. O cancelamento é efetivo no final do perÃodo de faturamento atual. Você manterá acesso completo até o final do perÃodo pago."},noPartialRefunds:{title:"3. Sem Reembolsos Parciais",content:"Não emitimos reembolsos parciais ou proporcionais para porções não utilizadas de um perÃodo de faturamento."},exceptionalCircumstances:{title:"4. Circunstâncias Excepcionais de Reembolso",intro:"Reembolsos podem ser considerados caso a caso nas seguintes circunstâncias excepcionais:",items:["Pagamentos duplicados: se você foi cobrado mais de uma vez pelo mesmo perÃodo devido a um erro técnico","Erros de faturamento: se um valor incorreto foi cobrado devido a um erro do sistema","Falha técnica comprovada do serviço: se o SocialVisible estava materialmente indisponÃvel durante uma porção significativa do seu perÃodo de faturamento"],afterItems:"Para solicitar um reembolso, entre em contato com [email protected] dentro de 14 dias após a cobrança em questão."},chargebackPolicy:{title:"5. PolÃtica de Estorno",content:"Se você iniciar um estorno sem nos contatar primeiro, reservamo-nos o direito de suspender imediatamente sua conta."},freeTrial:{title:"6. Plano Gratuito",content:"SocialVisible oferece um plano gratuito para testar o Serviço. O plano gratuito não requer informações de pagamento e não está sujeito a esta PolÃtica de Reembolso."},legalExceptions:{title:"7. Exceções Legais",content:"Nada nesta PolÃtica de Reembolso limita seus direitos legais como consumidor conforme a legislação aplicável, incluindo o Código de Defesa do Consumidor."},contactUs:{title:"8. Fale Conosco",content:"Para solicitações de reembolso ou dúvidas sobre faturamento, entre em contato:",contactPage:"Formulário de contato",orEmail:"ou envie um e-mail para [email protected]. SocialVisible Ltd."}}},Bae={title:"PolÃtica de Uso Aceitável",lastUpdated:"Ãltima atualização: 27 de fevereiro de 2026",sections:{introduction:{title:"1. Introdução",content:'Esta PolÃtica de Uso Aceitável ("PUA") rege seu uso da plataforma SocialVisible operada pela SocialVisible Ltd. Esta polÃtica faz parte dos nossos Termos de Serviço e se aplica a todos os usuários.'},prohibitedActivities:{title:"2. Atividades Proibidas",intro:"Você não pode usar o S
528ocialVisible para se envolver ou facilitar o seguinte:",items:["Atividade ilegal: qualquer atividade que viole leis ou regulamentos aplicáveis","Violação de direitos autorais: enviar, distribuir ou gerar conteúdo que infrinja direitos de propriedade intelectual","Discurso de ódio e assédio: criar ou distribuir conteúdo que promova ódio, discriminação ou violência","Spam e mensagens não solicitadas: usar o Serviço para gerar ou distribuir spam ou conteúdo enganoso","Manipulação de plataforma: tentar inflar artificialmente métricas de engajamento ou manipular algoritmos","Compartilhamento de conta: compartilhar, vender ou transferir credenciais de conta a terceiros não autorizados","Fraude e engano: usar o Serviço para fins fraudulentos, golpes financeiros ou phishing","Falsidade ideológica: se passar por outra pessoa, marca ou entidade sem autorização","Uso indevido de IA: usar as capacidades de geração de conteúdo IA para criar deepfakes ou conteúdo enganoso"]},contentRestrictions:{title:"3. Restrições de Conteúdo",intro:"Você não pode usar o SocialVisible para criar, armazenar ou distribuir conteúdo que:",items:["Contenha malware, vÃrus ou componentes de software prejudiciais","Promova drogas ilegais, armas ou substâncias controladas","Contenha material sexualmente explÃcito ou conteúdo exploratório","Vise ou explore menores de qualquer forma","Contenha informações pessoais ou confidenciais de outros sem consentimento","Seja intencionalmente enganoso ou constitua desinformação"]},securityRestrictions:{title:"4. Restrições de Segurança e Técnicas",intro:"Você não pode:",items:["Tentar fazer engenharia reversa ou descompilar qualquer parte da plataforma SocialVisible","Sondar, escanear ou testar a vulnerabilidade de nossos sistemas ou redes","Contornar medidas de segurança, sistemas de autenticação ou limites de uso","Usar ferramentas automatizadas, bots ou scripts para acessar o Serviço além do uso pretendido","Interferir ou interromper o Serviço, servidores ou redes conectados ao SocialVisible","Tentar acessar contas, dados ou conteúdo de outros usuários sem autorização"]},enforcement:{title:"5. Aplicação",intro:"SocialVisible reserva-se o direito de aplicar esta PUA a nosso exclusivo critério. As ações de aplicação podem incluir:",items:["Suspensão ou encerramento imediato de sua conta sem aviso prévio","Remoção de conteúdo que viole esta polÃtica","Restrição temporária ou permanente de acesso a funcionalidades especÃficas","Investigação de violações suspeitas","Cooperação com autoridades policiais quando acreditamos que atividade ilegal ocorreu","Busca de remédios legais, incluindo reivindicações por danos"]},reporting:{title:"6. Reportar Violações",content:"Se você acredita que um usuário está violando esta PolÃtica de Uso Aceitável, denuncie através de",contactPage:"nosso formulário de contato",orEmail:"ou envie um e-mail para [email protected]. Levamos todas as denúncias a sério."}}},zae={title:"Seu marketing não vive em um painel. Ele vive no",titleHighlight:"WhatsApp",subtitle:"Enviamos seu conteúdo pronto para publicar diretamente no WhatsApp todos os dias. Responda com",subtitleHighlight:"Aprovar / Editar / Pular",tagline:"Sem logins. Sem ferramentas para aprender.",taglineBold:"WhatsApp é o serviço.",label:"Número do WhatsApp",placeholder:"Número do WhatsApp",hint:"ð Seguro. Nunca enviamos spam.",errorPrefix:"O número deve começar com +",errorDigits:"Digite um número internacional válido (7-15 dÃgitos)",errorSaving:"Falha ao salvar número do WhatsApp",cancel:"Mais tarde",continue:"Continuar com WhatsApp",saving:"Salvando..."},Uae={createNewPost:"Criar Nova Publicação",contentOptions:"Opções de Conteúdo",generatingContent:"Gerando Conteúdo...",reviewAndEdit:"Revisar e Editar",schedulePost:"Agendar Publicação",dragAndDrop:"Arraste e solte imagens aqui",orClickBrowse:"ou clique para procurar",maxImages:"JPG, PNG, WebP ⢠Máximo {{max}} imagens",addMore:"Adicionar mais",continue:"Continuar",whatToCreate:"O que você gostaria de criar?",carousel:"C
528arrossel",multiImagePost:"Publicação com múltiplas imagens",reel:"Reel",shortVideo:"VÃdeo curto",addInstructions:"Adicionar instruções (opcional)",instructionsPlaceholder:"ex., Anunciar nossa nova coleção de verão, usar tom divertido, mencionar o desconto",instructionsHint:"Conte-nos sobre o que você quer que a publicação seja",uploadingImages:"Enviando imagens...",generateContent:"Gerar Conteúdo",creatingContent:"Criando seu conteúdo...",creatingDescription:"Nossa IA está analisando suas imagens e criando o {{type}} perfeito para você.",generatingTitle:"Estamos criando o melhor carrossel para você e seu negócio â¨",generatingSubtitle:"Isso geralmente leva de 5 a 10 minutos",generatingElapsed:"Decorrido",generatingSteps:["ð Pesquisando seu tema...","ð¡ Procurando os melhores ângulos e temas...","ð¯ Buscando ganchos envolventes que chamam atenção...","âï¸ Escrevendo um post incrÃvel adaptado ao seu público...","ð Criando um texto persuasivo que converte...","#ï¸â£ Buscando as hashtags mais relevantes...","ð¨ Gerando sua primeira imagem impressionante...","ð¼ï¸ Criando a segunda imagem - ainda melhor que a primeira!","⨠Trabalhando na imagem 3 - ganhando impulso...","ð¥ Imagem 4 em progresso - seu carrossel está tomando forma!","ð Gerando a imagem final - o melhor para o final!","ð¬ Montando todas as imagens em um carrossel perfeito...","â¡ Otimizando imagens para máximo engajamento...","ð Finalizando seu carrossel - está quase pronto!","â
Dando os toques finais na sua obra-prima...","ð Seu carrossel está chegando a qualquer momento..."],generatedImages:"Imagens Geradas",clickToEnlarge:"(clique para ampliar)",caption:"Legenda",regenerate:"Regenerar",hashtags:"Hashtags",addHashtag:"Adicionar hashtag",add:"Adicionar",connectInstagramTitle:"Conecte o Instagram para publicar",connectInstagramSubtitle:"Vincule sua conta para publicar diretamente",connectInstagram:"Conectar Instagram",postToInstagram:"Publicar no Instagram",continueToSchedule:"Continuar para Agendamento",saveAsDraft:"Salvar como Rascunho",selectAccount:"Selecionar Conta",chooseAccount:"Escolher conta do Instagram",noAccounts:"Nenhuma conta conectada",whenToPost:"Quando publicar",postNow:"Publicar agora",postNowDesc:"Publicar imediatamente após aprovação",scheduleLater:"Agendar para depois",scheduleLaterDesc:"Escolher data e hora especÃficas",addToQueue:"Adicionar à fila",addToQueueDesc:"Usa horários ideais de publicação",date:"Data",time:"Hora",cancel:"Cancelar",publish:"Publicar",schedule:"Agendar",publishSuccess:"Publicação Publicada! ð",publishSuccessDesc:"Sua publicação foi enviada para publicação.",publishFailed:"A publicação falhou",publishFailedDesc:"Tente novamente ou salve como rascunho.",draftSaved:"Rascunho salvo",draftSavedDesc:"Sua publicação foi salva como rascunho.",postScheduled:"Publicação agendada",postScheduledDesc:"Sua publicação foi agendada.",saveFailed:"Falha ao salvar",saveFailedDesc:"Tente novamente.",usageMessage:"Você usou {{used}} de {{total}} publicações mensais gratuitas.",upgradeMessage:"Faça upgrade para desbloquear publicações diárias, incluindo reels, automação completa e publicação contÃnua.",upgradeButton:"Melhorar Plano",backToContent:"Voltar ao Conteúdo"},Wae={title:"Perguntas Frequentes",subtitle:"Tudo o que você precisa saber sobre o SocialVisible.",questions:{q1:{question:"O que é o SocialVisible?",answer:"SocialVisible é uma plataforma de gerenciamento de redes sociais alimentada por IA. Você envia fotos e ideias pelo WhatsApp, e nossa IA cria posts e reels profissionais do Instagram para você."},q2:{question:"Como funciona o fluxo do WhatsApp?",answer:"Simplesmente envie uma mensagem para nosso bot do WhatsApp com suas fotos e uma breve descrição. Nossa IA analisa o conteúdo, cria legendas, projeta carrosséis ou reels, e os envia para sua aprovação antes da publicação."},q3:{question:"Preciso de habilidades de design?",answer:"De jeito nenhum! O SocialVisible cuida de todo o design. Basta enviar suas fotos e nos dizer sobre o que é a publicação. A IA cuida do resto."},q4:{question:"Quais plataformas de redes sociais vocês suportam?",answer:"Atualmente suportamos carrosséis do Instagram e reels. Mais plataformas em breve."},q5:{question:"Posso editar as publicações antes de publicar?",answer:"Sim! Cada publicação é enviada para sua revisão antes da publicação. Você pode solicitar alterações, aprovar ou rejeitar qualquer conteúdo."},q6:{question:"O que acontece se eu atingir meu limite mensal?",answer:"Quando você atinge o limite mensal do seu plano, pode fazer upgrade para um plano superior para mais publicações, ou esperar seus limites serem resetados no inÃcio do próximo ciclo de cobrança."},q7:{question:"Meus dados estão seguros?",answer:"Absolutamente. Usamos criptografia e práticas de segurança padrão da indústria. Suas fotos e dados comerciais são armazenados com segurança e nunca compartilhados com terceiros."},q8:{question:"Posso cancelar minha assinatura a qualquer momento?",answer:"Sim, você pode cancelar a qualquer momento. Seu acesso continua até o final do seu perÃodo de cobrança atual. Reembolsos parciais não são emitidos."}}}
528,qae={backToHome:"Voltar ao inÃcio",title:"Fale Conosco",subtitle:"Tem alguma dúvida ou feedback? AdorarÃamos ouvir de você.",email:"E-mail",location:"Localização",locationValue:"Tel Aviv, Israel",form:{fullName:"Nome completo",fullNamePlaceholder:"Seu nome completo",email:"E-mail",emailPlaceholder:"[email protected]",subject:"Assunto",subjectPlaceholder:"Selecione um assunto",message:"Mensagem",messagePlaceholder:"Conte-nos como podemos ajudar...",sending:"Enviando...",submit:"Enviar mensagem"},subjects:{general:"Consulta geral",support:"Suporte técnico",billing:"Cobrança",partnership:"Parceria",feedback:"Feedback",other:"Outro"},errors:{nameRequired:"Nome é obrigatório",emailRequired:"E-mail é obrigatório",emailInvalid:"Digite um e-mail válido",subjectRequired:"Selecione um assunto",messageRequired:"Mensagem é obrigatória",messageMinLength:"A mensagem deve ter pelo menos 10 caracteres"},toast:{successTitle:"Mensagem enviada!",successDescription:"Retornaremos em breve.",errorTitle:"Erro",errorRateLimit:"Muitas solicitações. Tente novamente mais tarde.",errorInvalidEmail:"Endereço de e-mail inválido.",errorGeneric:"Algo deu errado. Tente novamente."},success:{title:"Obrigado!",description:"Sua mensagem foi enviada com sucesso. Retornaremos o mais breve possÃvel.",backToHome:"Voltar ao inÃcio",sendAnother:"Enviar outra mensagem"}},Hae={progress:"Passo {{current}} de {{total}}",business:{title:"Conte-nos sobre o seu negócio",subtitle:"Isso nos ajuda a criar conteúdo personalizado para você",personalizedSubtitle:"Para criar posts precisos e personalizados, precisamos entender seu negócio. Compartilhe alguns detalhes.",label:"Descrição do negócio",placeholder:"Ex: Tenho uma padaria em São Paulo especializada em pães artesanais e confeitaria. Usamos ingredientes orgânicos.",hint:"Quanto mais detalhes você compartilhar, melhor será o conteúdo que criaremos.",categoryLabel:"Setor",categoryPlaceholder:"Selecione seu setor",categories:{food:"Alimentação e Bebidas",beauty:"Beleza e Bem-estar",retail:"Varejo e Moda",fitness:"Saúde e Fitness",services:"Serviços Profissionais",education:"Educação",real_estate:"Imóveis",tech:"Tecnologia",creator:"Criadores e Entretenimento",other:"Outro"},fullNameLabel:"Seu nome",fullNamePlaceholder:"Ex: João Silva",businessNameLabel:"Nome do negócio",businessNamePlaceholder:"Ex: Padaria do Danny",locationLabel:"Localização (opcional)",locationPlaceholder:"Ex: São Paulo, Brasil",uspLabel:"O que torna você único? (opcional)",uspPlaceholder:"Ex: Apenas ingredientes orgânicos e locais",targetAudienceLabel:"Quem são seus clientes? (opcional)",targetAudiencePlaceholder:"Ex: Donos de pequenos negócios, mães jovens",brandToneLabel:"Tom da sua marca (opcional)",brandTonePlaceholder:"Escolha seu estilo",brandTones:{friendly:"Amigável e AcessÃvel",professional:"Profissional e Formal",playful:"Divertido e Leve",inspirational:"Inspirador",luxurious:"Luxuoso e Premium",casual:"Casual e Cotidiano"},whatsappLabel:"Número do WhatsApp",whatsappPlaceholder:"Número de telefone",whatsappHint:"Usamos o WhatsApp para enviar prévias de publicações para aprovação.",continue:"Continuar",saving:"Salvando..."},errors:{required:"Campo obrigatório",describeBusinessBrief:"Por favor, descreva brevemente seu negócio.",failedToSave:"Falha ao salvar. Tente novamente.",retryHint:"Verifique sua conexão e tente novamente."}},Gae={business:{next:"Próximo: Conectar WhatsApp"},whatsapp:{title:"Conectar WhatsApp",subtitle:"Seu conteúdo será entregue via WhatsApp para revisão e aprovação fáceis.",nextButton:"Próximo: Escolher tipo de conteúdo",generateButton:"Gerar meu conteúdo",continueButton:"Continuar para WhatsApp"},contentType:{title:"O que você gostaria de criar?",subtitle:"Escolha o tipo de conteúdo para sua primeira publicação",selectRequired:"Por favor selecione um tipo de conteúdo",carousel:"Post carrossel",carouselDesc:"Carrossel do Instagram com múltiplos slides, visuais envolventes e texto (~2 créditos)",story:"Imagem de story",storyDesc:"Bela imagem de story do Instagram com legenda (~0,5 créditos)",next:"Próximo: Revisar e gerar",topicLabel:"Tema:",imagesLabel:"Imagens:",uploaded:"enviadas"},review:{title:"Pronto para gerar!",subtitle:"Revise sua solicitação antes de começarmos a criar",typeLabel:"Tipo de conteúdo",topicLabel:"Tema",topicPlaceholder:"Descreva sobre o que deve ser sua publicação...",topicRequired:"Por favor insira um tema",imageLabel:"Sua imagem",changeImage:"Alterar imagem",uploadImage:"Enviar uma imagem (opcional)",carouselCost:"Este carrossel usará ~2 créditos do seu plano gratuito",storyCost:"Este story usará ~0,5 créditos do seu plano gratuito",generating:"Env
528iando...",generateButton:"Gerar via WhatsApp!",back:"â Alterar tipo de conteúdo"},generating:{title:"Criando seu conteúdo",status:"Enviando seu conteúdo para nossa IA...",sent:"O conteúdo está sendo criado! Você o receberá no WhatsApp em breve.",alreadyActive:"O conteúdo já está sendo criado!",limitReached:"Limite de créditos atingido. Atualize seu plano."},done:{title:"Tudo pronto! ð",withContent:"Seu conteúdo está sendo criado e será entregue ao seu WhatsApp em breve.",noContent:"Envie-nos uma foto e tema no WhatsApp para criar sua primeira publicação!",openWhatsApp:"Abrir WhatsApp",viewBilling:"Ver faturamento e uso",whatsappMessage:"Olá! Acabei de me cadastrar e estou pronto para criar conteúdo ð¨"},blog:{title:"Fique VisÃvel",subtitle:"Dicas, estratégias e insights para destacar seu negócio nas redes sociais.",allArticles:"Todos os artigos",readMore:"Leia mais",minRead:"{{count}} min de leitura",backToBlog:"Voltar ao blog",readyQuestion:"Pronto para começar?",getStartedFree:"Comece grátis",readMoreArticles:"Leia mais artigos",readyToBeVisible:"Pronto para ser visÃvel?",ctaSubtitle:"Deixe a IA criar conteúdo incrÃvel para as redes sociais do seu negócio - automaticamente.",categories:{visibility:"Visibilidade",consistency:"Consistência",automation:"Automação",strategy:"Estratégia",growth:"Crescimento"}},otpStep:{title:"Verifica o teu WhatsApp",subtitle:"Enviaremos um código de 6 dÃgitos pelo WhatsApp para confirmar o teu número.",phoneLabel:"O teu número de WhatsApp",phonePlaceholder:"Número de telefone",sendButton:"Enviar código pelo WhatsApp",sending:"A enviar código...",codeSentTitle:"Código enviado!",codeSentDesc:"Enviámos um código de 6 dÃgitos para {{phone}} pelo WhatsApp.",enterCode:"Insere o código de 6 dÃgitos",verifying:"A verificar...",expiresIn:"O código expira em {{time}}",expired:"Código expirado - por favor reenvia",changeNumber:"Alterar número",resend:"Reenviar código",resendIn:"Reenviar em {{seconds}}s",noCodeHelp:"Não recebeste o código? Verifica o WhatsApp para uma mensagem da nossa linha de verificação, ou tenta por e-mail.",useEmail:"Enviar código para o meu e-mail",sendingEmail:"A enviar e-mail...",emailSentTitle:"E-mail enviado",emailSentDesc:"Verifica {{email}} para o teu código.",useWhatsapp:"Usar WhatsApp em vez disso",verifiedTitle:"WhatsApp verificado",verifiedDesc:"O teu número {{phone}} está verificado.",verifiedReady:"Pronto a continuar",errorInvalidNumber:"Por favor insere um número válido.",errorSendFailed:"Falha ao enviar o código",errorVerifyFailed:"Falha na verificação",errorInvalidCode:"Código inválido",footer:"Usamos WhatsApp para te enviar notificações e aprovações de publicações."}},Kae={plans:{subtitle:"Escolha o nÃvel de visibilidade ideal para o seu negócio",starterBonus:"bônus inicial",whatsappComm:"Comunicação WhatsApp",igPublishing:"Publicação no Instagram",current:"ATUAL",popular:"POPULAR",cancelPending:"Cancelamento pendente",cancelPendingDesc:"Seu plano {{plan}} permanecerá ativo até {{date}}. Depois, você será movido para o plano gratuito.",comingSoon:"Em breve",cancellationPending:"Cancelamento pendente",cancel:"Cancelar",availableCredits:"Créditos disponÃveis",creditsWithPlan:"{{credits}} créditos/mês com seu plano",allPlansInclude:"Todos os planos incluem",feature1:"Assistente IA no WhatsApp",feature2:"Revisão opcional antes de publicar",feature3:"Editar conteúdo por mensagem",feature4:"Solicitar alterações a qualquer momento",getStarted:"Comece com visibilidade",forGrowing:"Para negócios em crescimento",stayVisible:"Mantenha-se visÃvel constantemente",maxVisibility:"Visibilidade máxima"}},Yae={nav:Aae,mobileDemo:Cae,mockup:Eae,tryItNow:kae,hero:Tae,howItWorks:Oae,whyWhatsApp:Iae,testimonials:Rae,pricing:Dae,cta:Mae,footer:$ae,privacy:Lae,terms:Vae,refund:Fae,acceptableUse:Bae,whatsappGate:zae,createContent:Uae,faq:Wae,contact:qae,webOnboarding:Hae,onboardingFlow:Gae,billing:Kae},LT=["en","he","es","fr","de","pt"];mr.use(q5).use(Tne).init({resources:{en:{translation:$re},he:{translation:uie},es:{translation:Iie},fr:{translation:nae},de:{translation:Pae},pt:{translation:Yae}},load:"languageOnly",supportedLngs:LT,nonExplicitSupportedLngs:!0,fallbackLng:"en",detection:{order:["localStorage","navigator","htmlTag"],caches:["localStorage"],lookupLocalStorage:"language",convertDetectedLanguage:e=>{if(!e)return"en";const t=e.split("-")[0].toLowerCase();return LT.includes(t)?t:"en"}},interpolation:{escapeValue:!1}});const Xae="modulepreload",Jae=function(e){return"/"+e},VT={},$i=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=Jae(c),c in VT)return;VT[c]=!0;const u=c.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Xae,u||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})},cP=g.createContext({});function uP(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const dP=typeof window<"u",H5=dP?g.useLayoutEffect:g.useEffect,gb=g.createContext(null);function hP(e,t){e.indexOf(t)===-1&&e.push(t)}function fP(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Sa=(e,t,n)=>n>t?t:n<e?e:n;let vb=()=>{},Ou=()=>{};const is={},G5=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function K5(e){return typeof e=="object"&&e!==null}const Y5=e=>/^0[^.\s]+$/u.test(e);function pP(e){let t;return()=>(t===void 0&&(t=e()),t)}const ci=e=>e,Qae=(e,t)=>n=>t(e(n)),Vp=(...e)=>
vendor: 8,961 bytes, line 528
528e.reduce(Qae),Cf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class mP{constructor(){this.subscriptions=[]}add(t){return hP(this.subscriptions,t),()=>fP(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ma=e=>e*1e3,ai=e=>e/1e3;function X5(e,t){return t?e*(1e3/t):0}const J5=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Zae=1e-7,ese=12;function tse(e,t,n,r,i){let a,s,l=0;do s=t+(n-t)/2,a=J5(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>Zae&&++l<ese);return s}function Fp(e,t,n,r){if(e===t&&n===r)return ci;const i=a=>tse(a,0,1,e,n);return a=>a===0||a===1?a:J5(i(a),t,r)}const Q5=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Z5=e=>t=>1-e(1-t),eV=Fp(.33,1.53,.69,.99),gP=Z5(eV),tV=Q5(gP),nV=e=>(e*=2)<1?.5*gP(e):.5*(2-Math.pow(2,-10*(e-1))),vP=e=>1-Math.sin(Math.acos(e)),rV=Z5(vP),iV=Q5(vP),nse=Fp(.42,0,1,1),rse=Fp(0,0,.58,1),aV=Fp(.42,0,.58,1),ise=e=>Array.isArray(e)&&typeof e[0]!="number",sV=e=>Array.isArray(e)&&typeof e[0]=="number",FT={linear:ci,easeIn:nse,easeInOut:aV,easeOut:rse,circIn:vP,circInOut:iV,circOut:rV,backIn:gP,backInOut:tV,backOut:eV,anticipate:nV},ase=e=>typeof e=="string",BT=e=>{if(sV(e)){Ou(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Fp(t,n,r,i)}else if(ase(e))return Ou(FT[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),FT[e];return e},Lm=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],zT={value:null,addProjectionMetrics:null};function sse(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function u(d){s.has(d)&&(h.schedule(d),e()),c++,d(l)}const h={schedule:(d,f=!1,p=!1)=>{const m=p&&i?n:r;return f&&s.add(d),m.has(d)||m.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(l=d,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&zT.value&&zT.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,h.process(d))}};return h}const ose=40;function oV(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Lm.reduce((x,S)=>(x[S]=sse(a,t?S:void 0),x),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:h,update:d,preRender:f,render:p,postRender:v}=s,m=()=>{const x=is.useManualTiming?i.timestamp:performance.now();n=!1,is.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,ose),1)),i.timestamp=x,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),f.process(i),p.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},y=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:Lm.reduce((x,S)=>{const j=s[S];return x[S]=(N,_=!1,P=!1)=>(n||y(),j.schedule(N,_,P)),x},{}),cancel:x=>{for(let S=0;S<Lm.length;S++)s[Lm[S]].cancel(x)},state:i,steps:s}}const{schedule:Mt,cancel:fo,state:Dn,steps:R0}=oV(typeof requestAnimationFrame<"u"?requestAnimationFrame:ci,!0);let Ng;function lse(){Ng=void 0}const sr={now:()=>(Ng===void 0&&sr.set(Dn.isProcessing||is.useManualTiming?Dn.timestamp:performance.now()),Ng),set:e=>{Ng=e,queueMicrotask(lse)}},lV=e=>t=>typeof t=="string"&&t.startsWith(e),cV=lV("--"),cse=lV("var(--"),yP=e=>cse(e)?use.test(e.split("/*")[0].trim()):!1,use=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function UT(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const vd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ef={...vd,transform:e=>Sa(0,1,e)},Vm={...vd,default:1},zh=e=>Math.round(e*1e5)/1e5,bP=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function dse(e){return e==null}const hse=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xP=(e,t)=>n=>!!(typeof n=="string"&&hse.test(n)&&n.startsWith(e)||t&&!dse(n)&&Object.prototype.hasOwnProperty.call(n,t)),uV=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,l]=r.match(bP);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},fse=e=>Sa(0,255,e),D0={...vd,transform:e=>Math.round(fse(e))},Xo={test:xP("rgb","red"),parse:uV("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+D0.transform(e)+", "+D0.transform(t)+", "+D0.transform(n)+", "+zh(Ef.transform(r))+")"};function pse(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const _1={test:xP("#"),parse:pse,transform:Xo.transform},Bp=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_s=Bp("deg"),ga=Bp("%"),me=Bp("px"),mse=Bp("vh"),gse=Bp("vw"),WT={...ga,parse:e=>ga.parse(e)/100,transform:e=>ga.transform(e*100)},Mc={test:xP("hsl","hue"),parse:uV("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ga.transform(zh(t))+", "+ga.transform(zh(n))+", "+zh(Ef.transform(r))+")"},on={test:e=>Xo.test(e)||_1.test(e)||Mc.test(e),parse:e=>Xo.test(e)?Xo.parse(e):Mc.test(e)?Mc.parse(e):_1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Xo.transform(e):Mc.transform(e),getAnimatableNone:e=>{const t=on.parse(e);return t.alpha=0,on.transform(t)}},vse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yse(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(bP))==null?void 0:t.length)||0)+(((n=e.match(vse))==null?void 0:n.length)||0)>0}const dV="number",hV="color",bse="var",xse="var(",qT="${}",wse=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function kf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const l=t.replace(wse,c=>(on.test(c)?(r.color.push(a),i.push(hV),n.push(on.parse(c))):c.startsWith(xse)?(r.var.push(a),i.push(bse),n.push(c)):(r.number.push(a),i.push(dV),n.push(parseFloat(c))),++a,qT)).split(qT);return{values:n,split:l,indexes:r,types:i}}function fV(e){return kf(e).values}function pV(e){const{split:t,types:n}=kf(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const l=n[s];l===dV?a+=zh(i[s]):l===hV?a+=on.transform(i[s]):a+=i[s]}return a}}const Sse=e=>typeof e=="number"?0:on.test(e)?on.getAnimatableNone(e):e;function jse(e){const t=fV(e);return pV(e)(t.map(Sse))}const po={test:yse,parse:fV,createTransformer:pV,getAnimatableNone:jse};function M0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _se({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=M0(c,l,e+1/3),a=M0(c,l,e),s=M0(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function xv(e,t){return n=>n>0?t:e}const Ht=(e,t,n)=>e+(t-e)*n,$0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Nse=[_1,Xo,Mc],Pse=e=>Nse.find(t=>t.test(e));function HT(e){const t=Pse(e);if(vb(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Mc&&(n=_se(n)),n}const GT=(e,t)=>{const n=HT(e),r=HT(t);if(!n||!r)return xv(e,t);const i={...n};return a=>(i.red=$0(n.red,r.red,a),i.green=$0(n.green,r.green,a),i.blue=$0(n.blue,r.blue,a),i.alpha=Ht(n.alpha,r.alpha,a),Xo.transform(i))},N1=new Set(["none","hidden"]);function Ase(e,t){return N1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cse(e,t){return n=>Ht(e,t,n)}function wP(e){return typeof e=="number"?Cse:typeof e=="string"?yP(e)?xv:on.test(e)?GT:Tse:Array.isArray(e)?mV:typeof e=="object"?on.test(e)?GT:Ese:xv}function mV(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>wP(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function Ese(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=wP(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function kse(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],l=e.values[s]??0;n[i]=l,r[a]++}return n}const Tse=(e,t)=>{const n=po.createTransformer(t),r=kf(e),i=kf(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?N1.has(e)&&!i.values.length||N1.has(t)&&!r.values.length?Ase(e,t):Vp(mV(kse(r,i),i.values),n):(vb(!0,`Complex values '${e}' and '${t}
528' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),xv(e,t))};function gV(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ht(e,t,n):wP(e)(e,t)}const Ose=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Mt.update(t,n),stop:()=>fo(t),now:()=>Dn.isProcessing?Dn.timestamp:sr.now()}},vV=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},wv=2e4;function SP(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<wv;)t+=n,r=e.next(t);return t>=wv?1/0:t}function Ise(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(SP(r),wv);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:ai(i)}}const Rse=5;function yV(e,t,n){const r=Math.max(t-Rse,0);return X5(n-e(r),t-r)}const Wt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},L0=.001;function Dse({duration:e=Wt.duration,bounce:t=Wt.bounce,velocity:n=Wt.velocity,mass:r=Wt.mass}){let i,a;vb(e<=ma(Wt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Sa(Wt.minDamping,Wt.maxDamping,s),e=Sa(Wt.minDuration,Wt.maxDuration,ai(e)),s<1?(i=u=>{const h=u*s,d=h*e,f=h-n,p=P1(u,s),v=Math.exp(-d);return L0-f/p*v},a=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),m=P1(Math.pow(u,2),s);return(-i(u)+L0>0?-1:1)*((f-p)*v)/m}):(i=u=>{const h=Math.exp(-u*e),d=(u-n)*e+1;return-L0+h*d},a=u=>{const h=Math.exp(-u*e),d=(n-u)*(e*e);return h*d});const l=5/e,c=$se(i,a,l);if(e=ma(e),isNaN(c))return{stiffness:Wt.stiffness,damping:Wt.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Mse=12;function $se(e,t,n){let r=n;for(let i=1;i<Mse;i++)r=r-e(r)/t(r);return r}function P1(e,t){return e*Math.sqrt(1-t*t)}const Lse=["duration","bounce"],Vse=["stiffness","damping","mass"];function KT(e,t){return t.some(n=>e[n]!==void 0)}function Fse(e){let t={velocity:Wt.velocity,stiffness:Wt.stiffness,damping:Wt.damping,mass:Wt.mass,isResolvedFromDuration:!1,...e};if(!KT(e,Vse)&&KT(e,Lse))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Sa(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Wt.mass,stiffness:i,damping:a}}else{const n=Dse(e);t={...t,...n,mass:Wt.mass},t.isResolvedFromDuration=!0}return t}function Sv(e=Wt.visualDuration,t=Wt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:h,duration:d,velocity:f,isResolvedFromDuration:p}=Fse({...n,velocity:-ai(n.velocity||0)}),v=f||0,m=u/(2*Math.sqrt(c*h)),y=s-a,b=ai(Math.sqrt(c/h)),w=Math.abs(y)<5;r||(r=w?Wt.restSpeed.granular:Wt.restSpeed.default),i||(i=w?Wt.restDelta.granular:Wt.restDelta.default);let x;if(m<1){const j=P1(b,m);x=N=>{const _=Math.exp(-m*b*N);return s-_*((v+m*b*y)/j*Math.sin(j*N)+y*Math.cos(j*N))}}else if(m===1)x=j=>s-Math.exp(-b*j)*(y+(v+b*y)*j);else{const j=b*Math.sqrt(m*m-1);x=N=>{const _=Math.exp(-m*b*N),P=Math.min(j*N,300);return s-_*((v+m*b*y)*Math.sinh(P)+j*y*Math.cosh(P))/j}}const S={calculatedDuration:p&&d||null,next:j=>{const N=x(j);if(p)l.done=j>=d;else{let _=j===0?v:0;m<1&&(_=j===0?ma(v):yV(x,j,N));const P=Math.abs(_)<=r,A=Math.abs(s-N)<=i;l.done=P&&A}return l.value=l.done?s:N,l},toString:()=>{const j=Math.min(SP(S),wv),N=vV(_=>S.next(j*_).value,j,30);return j+"ms "+N},toTransition:()=>{}};return S}Sv.applyToOptions=e=>{const t=Ise(e,100,Sv);return e.ease=t.ease,e.duration=ma(t.duration),e.type="keyframes",e};function A1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:l,max:c,restDelta:u=.5,restSpeed:h}){const d=e[0],f={done:!1,value:d},p=P=>l!==void 0&&P<l||c!==void 0&&P>c,v=P=>l===void 0?c:c===void 0||Math.abs(l-P)<Math.abs(c-P)?l:c;let m=n*t;const y=d+m,b=s===void 0?y:s(y);b!==y&&(m=b-d);const w=P=>-m*Math.exp(-P/r),x=P=>b+w(P),S=P=>{const A=w(P),k=x(P);f.done=Math.abs(A)<=u,f.value=f.done?b:k};let j,N;const _=P=>{p(f.value)&&(j=P,N=Sv({keyframes:[f.value,v(f.value)],velocity:yV(x,P,f.value),damping:i,stiffness:a,restDelta:u,restSpeed:h}
vendor: 15,419 bytes, line 528
528))};return _(0),{calculatedDuration:null,next:P=>{let A=!1;return!N&&j===void 0&&(A=!0,S(P),_(P)),j!==void 0&&P>=j?N.next(P-j):(!A&&S(P),f)}}}function Bse(e,t,n){const r=[],i=n||is.mix||gV,a=e.length-1;for(let s=0;s<a;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||ci:t;l=Vp(c,l)}r.push(l)}return r}function zse(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Ou(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Bse(t,r,i),c=l.length,u=h=>{if(s&&h<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(h<e[d+1]);d++);const f=Cf(e[d],e[d+1],h);return l[d](f)};return n?h=>u(Sa(e[0],e[a-1],h)):u}function Use(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Cf(0,t,r);e.push(Ht(n,1,i))}}function Wse(e){const t=[0];return Use(t,e.length-1),t}function qse(e,t){return e.map(n=>n*t)}function Hse(e,t){return e.map(()=>t||aV).splice(0,e.length-1)}function Uh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ise(r)?r.map(BT):BT(r),a={done:!1,value:t[0]},s=qse(n&&n.length===t.length?n:Wse(t),e),l=zse(s,t,{ease:Array.isArray(i)?i:Hse(t,i)});return{calculatedDuration:e,next:c=>(a.value=l(c),a.done=c>=e,a)}}const Gse=e=>e!==null;function jP(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Gse),l=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!l||r===void 0?a[l]:r}const Kse={decay:A1,inertia:A1,tween:Uh,keyframes:Uh,spring:Sv};function bV(e){typeof e.type=="string"&&(e.type=Kse[e.type])}class _P{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Yse=e=>e/100;class NP extends _P{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==sr.now()&&this.tick(sr.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;bV(t);const{type:n=Uh,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:l}=t;const c=n||Uh;c!==Uh&&typeof l[0]!="number"&&(this.mixKeyframes=Vp(Yse,gV(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=SP(u));const{calculatedDuration:h}=u;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:h,repeat:d,repeatType:f,repeatDelay:p,type:v,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,S=r;if(d){const P=Math.min(this.currentTime,i)/l;let A=Math.floor(P),k=P%1;!k&&P>=1&&(k=1),k===1&&A--,A=Math.min(A,d+1),!!(A%2)&&(f==="reverse"?(k=1-k,p&&(k-=p/l)):f==="mirror"&&(S=s)),x=Sa(0,1,k)*l}const j=w?{done:!1,value:h[0]}:S.next(x);a&&(j.value=a(j.value));let{done:N}=j;!w&&c!==null&&(N=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return _&&v!==A1&&(j.value=jP(h,this.options,y,this.speed)),m&&m(j.value),_&&this.finish(),j}then(t,n){return this.finished.then(t,n)}get duration(){return ai(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ai(t)}get time(){return ai(this.currentTime)}set time(t){var n;t=ma(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(sr.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ai(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=Ose,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(sr.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Xse(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Jo=e=>e*180/Math.PI,C1=e=>{const t=Jo(Math.atan2(e[1],e[0]));return E1(t)},Jse={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:C1,rotateZ:C1,skewX:e=>Jo(Math.atan(e[1])),skewY:e=>Jo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},E1=e=>(e=e%360,e<0&&(e+=360),e),YT=C1,XT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),JT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Qse={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:XT,scaleY:JT,scale:e=>(XT(e)+JT(e))/2,rotateX:e=>E1(Jo(Math.atan2(e[6],e[5]))),rotateY:e=>E1(Jo(Math.atan2(-e[2],e[0]))),rotateZ:YT,rotate:YT,skewX:e=>Jo(Math.atan(e[4])),skewY:e=>Jo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function k1(e){return e.includes("scale")?1:0}function T1(e,t){if(!e||e==="none")return k1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Qse,i=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Jse,i=l}if(!i)return k1(t);const a=r[t],s=i[1].split(",").map(eoe);return typeof a=="function"?a(s):s[a]}const Zse=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return T1(n,t)};function eoe(e){return parseFloat(e.trim())}const yd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bd=new Set(yd),QT=e=>e===vd||e===me,toe=new Set(["x","y","z"]),noe=yd.filter(e=>!toe.has(e));function roe(e){const t=[];return noe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Hs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>T1(t,"x"),y:(e,{transform:t})=>T1(t,"y")};Hs.translateX=Hs.x;Hs.translateY=Hs.y;const fl=new Set;let O1=!1,I1=!1,R1=!1;function xV(){if(I1){const e=Array.from(fl).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=roe(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var l;(l=r.getValue(a))==null||l.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}I1=!1,O1=!1,fl.forEach(e=>e.complete(R1)),fl.clear()}function wV(){fl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(I1=!0)})}function ioe(){R1=!0,wV(),xV(),R1=!1}class PP{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(fl.add(this),O1||(O1=!0,Mt.read(wV),Mt.resolveKeyframes(xV))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}Xse(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),fl.delete(this)}cancel(){this.state==="scheduled"&&(fl.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const aoe=e=>e.startsWith("--");function soe(e,t,n){aoe(t)?e.style.setProperty(t,n):e.style[t]=n}const ooe=pP(()=>window.ScrollTimeline!==void 0),loe={};function coe(e,t){const n=pP(e);return()=>loe[t]??n()}const SV=coe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),wh=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ZT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wh([0,.65,.55,1]),circOut:wh([.55,0,1,.45]),backIn:wh([.31,.01,.66,-.59]),backOut:wh([.33,1.53,.69,.99])};function jV(e,t){if(e)return typeof e=="function"?SV()?vV(e,t):"ease-out":sV(e)?wh(e):Array.isArray(e)?e.map(n=>jV(n,t)||ZT.easeOut):ZT[e]}function uoe(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:l="easeOut",times:c}={},u=void 0){const h={[t]:n};c&&(h.offset=c);const d=jV(l,i);Array.isArray(d)&&(h.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(h,f)}function _V(e){return typeof e=="function"&&"applyToOptions"in e}function doe({type:e,...t}){return _V(e)&&SV()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class hoe extends _P{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,Ou(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=doe(t);this.animation=uoe(n,r,i,u,a),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=jP(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(h):soe(n,r,h),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ai(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ai(t)}get time(){return ai(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ma(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&ooe()?(this.animation.timeline=t,ci):n(this)}}const NV={anticipate:nV,backInOut:tV,circInOut:iV};function foe(e){return e in NV}function poe(e){typeof e.ease=="string"&&foe(e.ease)&&(e.ease=NV[e.ease])}const V0=10;class moe extends hoe{constructor(t){poe(t),bV(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new NP({...s,autoplay:!1}),c=Math.max(V0,sr.now()-this.startTime),u=Sa(0,V0,c-V0);n.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const e2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(po.test(e)||e==="0")&&!e.startsWith("url("));function goe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function voe(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=e2(i,t),l=e2(a,t);return vb(s===l,`You are trying to animate ${t} from "${i}" to "${a}". "${s?a:i}" is not an animatable value.`,"value-not-animatable"),!s||!l?!1:goe(e)||(n==="spring"||_V(n))&&r}function D1(e){e.duration=0,e.type="keyframes"}const yoe=new Set(["opacity","clipPath","filter","transform"]),boe=pP(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function xoe(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return boe()&&n&&yoe.has(n)&&(n!=="transform"||!u)&&!c&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const woe=40;class Soe extends _P{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:l,name:c,motionValue:u,element:h,...d}){var v;super(),this.stop=()=>{var m,y;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=sr.now();
528const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:c,motionValue:u,element:h,...d},p=(h==null?void 0:h.KeyframeResolver)||PP;this.keyframeResolver=new p(l,(m,y,b)=>this.onKeyframesResolved(m,y,f,!b),c,u,h),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:l,delay:c,isHandoff:u,onUpdate:h}=r;this.resolvedAt=sr.now(),voe(t,a,s,l)||((is.instantAnimations||!c)&&(h==null||h(jP(t,r,n))),t[0]=t[t.length-1],D1(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>woe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!u&&xoe(f)?new moe({...f,element:f.motionValue.owner.current}):new NP(f);p.finished.then(()=>this.notifyFinished()).catch(ci),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),ioe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const joe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _oe(e){const t=joe.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Noe=4;function PV(e,t,n=1){Ou(n<=Noe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=_oe(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return G5(s)?parseFloat(s):s}return yP(i)?PV(i,t,n+1):i}function AP(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const AV=new Set(["width","height","top","left","right","bottom",...yd]),Poe={test:e=>e==="auto",parse:e=>e},CV=e=>t=>t.test(e),EV=[vd,me,ga,_s,gse,mse,Poe],t2=e=>EV.find(CV(e));function Aoe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Y5(e):!0}const Coe=new Set(["brightness","contrast","saturate","opacity"]);function Eoe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(bP)||[];if(!r)return e;const i=n.replace(r,"");let a=Coe.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const koe=/\b([a-z-]*)\(.*?\)/gu,M1={...po,getAnimatableNone:e=>{const t=e.match(koe);return t?t.map(Eoe).join(" "):e}},n2={...vd,transform:Math.round},Toe={rotate:_s,rotateX:_s,rotateY:_s,rotateZ:_s,scale:Vm,scaleX:Vm,scaleY:Vm,scaleZ:Vm,skew:_s,skewX:_s,skewY:_s,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Ef,originX:WT,originY:WT,originZ:me},CP={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,inset:me,insetBlock:me,insetBlockStart:me,insetBlockEnd:me,insetInline:me,insetInlineStart:me,insetInlineEnd:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,paddingBlock:me,paddingBlockStart:me,paddingBlockEnd:me,paddingInline:me,paddingInlineStart:me,paddingInlineEnd:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,marginBlock:me,marginBlockStart:me,marginBlockEnd:me,marginInline:me,marginInlineStart:me,marginInlineEnd:me,backgroundPositionX:me,backgroundPositionY:me,...Toe,zIndex:n2,fillOpacity:Ef,strokeOpacity:Ef,numOctaves:n2},Ooe={...CP,color:on,backgroundColor:on,outlineColor:on,fill:on,stroke:on,borderColor:on,borderTopColor:on,borderRightColor:on,borderBottomColor:on,borderLeftColor:on,filter:M1,WebkitFilter:M1},kV=e=>Ooe[e];function TV(e,t){let n=kV(e);return n!==M1&&(n=po),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 13,145 bytes, lines 528-536
528const Ioe=new Set(["auto","none","0"]);function Roe(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!Ioe.has(a)&&kf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=TV(n,i)}class Doe extends PP{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let d=t[h];if(typeof d=="string"&&(d=d.trim(),yP(d))){const f=PV(d,n.current);f!==void 0&&(t[h]=f),h===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!AV.has(r)||t.length!==2)return;const[i,a]=t,s=t2(i),l=t2(a),c=UT(i),u=UT(a);if(c!==u&&Hs[r]){this.needsMeasurement=!0;return}if(s!==l)if(QT(s)&&QT(l))for(let h=0;h<t.length;h++){const d=t[h];typeof d=="string"&&(t[h]=parseFloat(d))}else Hs[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Aoe(t[i]))&&r.push(i);r.length&&Roe(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Hs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var l;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=Hs[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function Moe(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const OV=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function IV(e){return K5(e)&&"offsetHeight"in e}const r2=30,$oe=e=>!isNaN(parseFloat(e));class Loe{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=sr.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=sr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$oe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new mP);const r=this.events[t].add(n);return t==="change"?()=>{r(),Mt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=sr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>r2)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,r2);return X5(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Iu(e,t){return new Loe(e,t)}const{schedule:EP,cancel:mze}=oV(queueMicrotask,!1),Pi={x:!1,y:!1};function RV(){return Pi.x||Pi.y}function Voe(e){return e==="x"||e==="y"?Pi[e]?null:(Pi[e]=!0,()=>{Pi[e]=!1}):Pi.x||Pi.y?null:(Pi.x=Pi.y=!0,()=>{Pi.x=Pi.y=!1})}function DV(e,t){const n=Moe(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function i2(e){return!(e.pointerType==="touch"||RV())}function Foe(e,t,n={}){const[r,i,a]=DV(e,n),s=l=>{if(!i2(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const h=d=>{i2(d)&&(u(d),c.removeEventListener("pointerleave",h))};c.addEventListener("pointerleave",h,i)};return r.forEach(l=>{l.addEventListener("pointerenter",s,i)}),a}const MV=(e,t)=>t?e===t?!0:MV(e,t.parentElement):!1,kP=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Boe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $V(e){return Boe.has(e.tagName)||e.isContentEditable===!0}const Pg=new WeakSet;function a2(e){return t=>{t.key==="Enter"&&e(t)}}function F0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zoe=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=a2(()=>{if(Pg.has(n))return;F0(n,"down");const i=a2(()=>{F0(n,"up")}),a=()=>F0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function s2(e){return kP(e)&&!RV()}function Uoe(e,t,n={}){const[r,i,a]=DV(e,n),s=l=>{const c=l.currentTarget;if(!s2(l))return;Pg.add(c);const u=t(c,l),h=(p,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Pg.has(c)&&Pg.delete(c),s2(p)&&typeof u=="function"&&u(p,{success:v})},d=p=>{h(p,c===window||c===document||n.useGlobalTarget||MV(c,p.target))},f=p=>{h(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,i),IV(l)&&(l.addEventListener("focus",u=>zoe(u,i)),!$V(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),a}function LV(e){return K5(e)&&"ownerSVGElement"in e}function Woe(e){return LV(e)&&e.tagName==="svg"}const Xn=e=>!!(e&&e.getVelocity),qoe=[...EV,on,po],Hoe=e=>qoe.find(CV(e)),TP=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function o2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Goe(...e){return t=>{let n=!1;const r=e.map(i=>{const a=o2(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():o2(e[i],null)}}}}function Koe(...e){return g.useCallback(Goe(...e),e)}class Yoe extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=IV(r)&&r.offsetWidth||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Xoe({children:e,isPresent:t,anchorX:n,root:r}){var h;const i=g.useId(),a=g.useRef(null),s=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=g.useContext(TP),c=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),u=Koe(a,c);return g.useInsertionEffect(()=>{const{width:d,height:f,top:p,left:v,right:m}=s.current;if(t||!a.current||!d||!f)return;const y=n==="left"?`left: ${v}`:`right: ${m}`;a.current.dataset.motionPopId=i;const b=document.createElement("style");l&&(b.nonce=l);const w=r??document.head;return w.appendChild(b),b.sheet&&b.sheet.insertRule(` 529 [data-motion-pop-id="${i}"] { 530 position: absolute !important; 531 width: ${d}px !important; 532 height: ${f}px !important; 533 ${y}px !important; 534 top: ${p}px !important; 535 } 536 `),()=>{w.contains(b)&&w.removeChild(b)}},[t]),o.jsx(Yoe,{isPresent:t,childRef:a,sizeRef:s,children:g.cloneElement(e,{ref:u})})}const Joe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:s,anchorX:l,root:c})=>{const u=uP(Qoe),h=g.useId();let d=!0,f=g.useMemo(()=>(d=!1,{id:h,initial:t,isPresent:n,custom:i,onExitComplete:p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),[n,u,r]);return a&&d&&(f={...f}),g.useMemo(()=>{u.forEach((p,v)=>u.set(v,!1))},[n]),g.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=o.jsx(Xoe,{isPresent:n,anchorX:l,root:c,children:e})),o.jsx(gb.Provider,{value:f,children:e})};function Qoe(){return new Map}function VV(e=!0){const t=g.useContext(gb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=g.useId();g.useEffect(()=>{if(e)return i(a)},[e]);const s=g.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const Fm=e=>e.key||"";function l2(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const Ul=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:s=!1,anchorX:l="left",root:c})=>{const[u,h]=VV(s),d=g.useMemo(()=>l2(e),[e]),f=s&&!u?[]:d.map(Fm),p=g.useRef(!0),v=g.useRef(d),m=uP(()=>new Map),y=g.useRef(new Set),[b,w]=g.useState(d),[x,S]=g.useState(d);H5(()=>{p.current=!1,v.current=d;for(let _=0;_<x.length;_++){const P=Fm(x[_]);f.includes(P)?(m.delete(P),y.current.delete(P)):m.get(P)!==!0&&m.set(P,!1)}},[x,f.length,f.join("-")]);const j=[];if(d!==b){let _=[...d];for(let P=0;P<x.length;P++){const A=x[P],k=Fm(A);f.includes(k)||(_.splice(P,0,A),j.push(A))}return a==="wait"&&j.length&&(_=j),S(l2(_)),w(d),null}const{forceRender:N}=g.useContext(cP);return o.jsx(o.Fragment,{children:x.map(_=>{const P=Fm(_),A=s&&!u?!1:d===x||f.includes(P),k=()=>{if(y.current.has(P))return;if(y.current.add(P),m.has(P))m.set(P,!0);else return;let C=!0;m.forEach(E=>{E||(C=!1)}),C&&(N==null||N(),S(v.current),s&&(h==null||h()),r&&r())};return o.jsx(Joe,{isPresent:A,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:A?void 0:k,anchorX:l,children:_},P)})})},FV=g.createContext({strict:!1}),c2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ru={};for(const e in c2)Ru[e]={isEnabled:t=>c2[e].some(n=>!!t[n])};function Zoe(e){for(const t in e)Ru[t]={...Ru[t],...e[t]}}const ele=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function jv(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ele.has(e)}let BV=e=>!jv(e);function tle(e){typeof e=="function"&&(BV=t=>t.startsWith("on")?!jv(t):e(t))}try{tle(require("@emotion/is-prop-valid").default)}catch{}function nle(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(BV(i)||n===!0&&jv(i)||!t&&!jv(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const yb=g.createContext({});function bb(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Tf(e){return typeof e=="string"||Array.isArray(e)}const OP=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],IP=["initial",...OP];function xb(e){return bb(e.animate)||IP.some(t=>Tf(e[t]))}function zV(e){return!!(xb(e)||e.variants)}function rle(e,t){if(xb(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Tf(n)?n:void 0,animate:Tf(r)?r:void 0}}return e.inherit!==!1?t:{}}function ile(e){const{initial:t,animate:n}=rle(e,g.useContext(yb));return g.useMemo(()=>({initial:t,animate:n}),[u2(t),u2(n)])}function u2(e){return Array.isArray(e)?e.join(" "):e}function d2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const th={correct:(e,t)=>
vendor: 4,221 bytes, line 536
536{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const n=d2(e,t.target.x),r=d2(e,t.target.y);return`${n}% ${r}%`}},ale={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=po.parse(e);if(i.length>5)return r;const a=po.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=c;const u=Ht(l,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),a(i)}},$1={borderRadius:{...th,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:th,borderTopRightRadius:th,borderBottomLeftRadius:th,borderBottomRightRadius:th,boxShadow:ale};function UV(e,{layout:t,layoutId:n}){return bd.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$1[e]||e==="opacity")}const sle={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ole=yd.length;function lle(e,t,n){let r="",i=!0;for(let a=0;a<ole;a++){const s=yd[a],l=e[s];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(s.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=OV(l,CP[s]);if(!c){i=!1;const h=sle[s]||s;r+=`${h}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function RP(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,l=!1;for(const c in t){const u=t[c];if(bd.has(c)){s=!0;continue}else if(cV(c)){i[c]=u;continue}else{const h=OV(u,CP[c]);c.startsWith("origin")?(l=!0,a[c]=h):r[c]=h}}if(t.transform||(s||n?r.transform=lle(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:h=0}=a;r.transformOrigin=`${c} ${u} ${h}`}}const DP=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function WV(e,t,n){for(const r in t)!Xn(t[r])&&!UV(r,n)&&(e[r]=t[r])}function cle({transformTemplate:e},t){return g.useMemo(()=>{const n=DP();return RP(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ule(e,t){const n=e.style||{},r={};return WV(r,n,e),Object.assign(r,cle(e,t)),r}function dle(e,t){const n={},r=ule(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const hle={offset:"stroke-dashoffset",array:"stroke-dasharray"},fle={offset:"strokeDashoffset",array:"strokeDasharray"};function ple(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?hle:fle;e[a.offset]=me.transform(-r);const s=me.transform(t),l=me.transform(n);e[a.array]=`${s} ${l}`}const mle=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function qV(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},c,u,h){if(RP(e,l,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete d.transformBox);for(const p of mle)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ple(d,i,a,s,!1)}const HV=()=>({...DP(),attrs:{}}),GV=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gle(e,t,n,r){const i=g.useMemo(()=>{const a=HV();return qV(a,t,GV(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};WV(a,e.style,e),i.style={...a,...i.style}}return i}const vle=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function MP(e){return typeof e!="string"||e.includes("-")?!1:!!(vle.indexOf(e)>-1||/[A-Z]/u.test(e))}function yle(e,t,n,{latestValues:r},i,a=!1,s){const c=(s??MP(e)?gle:dle)(t,r,i,e),u=nle(t,typeof e=="string",a),h=e!==g.Fragment?{...u,...c,ref:n}:{},{children:d}=t,f=g.useMemo(()=>Xn(d)?d.get():d,[d]);return g.createElement(e,{...h,children:f})}function h2(e){const t=[{},{}];
536return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function $P(e,t,n,r){if(typeof t=="function"){const[i,a]=h2(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=h2(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Ag(e){return Xn(e)?e.get():e}function ble({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:xle(n,r,i,e),renderState:t()}}function xle(e,t,n,r){const i={},a=r(e,{});for(const f in a)i[f]=Ag(a[f]);let{initial:s,animate:l}=e;const c=xb(e),u=zV(e);t&&u&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const d=h?l:s;if(d&&typeof d!="boolean"&&!bb(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const v=$P(e,f[p]);if(v){const{transitionEnd:m,transition:y,...b}=v;for(const w in b){let x=b[w];if(Array.isArray(x)){const S=h?x.length-1:0;x=x[S]}x!==null&&(i[w]=x)}for(const w in m)i[w]=m[w]}}}return i}const KV=e=>(t,n)=>{const r=g.useContext(yb),i=g.useContext(gb),a=()=>ble(e,t,r,i);return n?a():uP(a)};function LP(e,t,n){var a;const{style:r}=e,i={};for(const s in r)(Xn(r[s])||t.style&&Xn(t.style[s])||UV(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const wle=KV({scrapeMotionValuesFromProps:LP,createRenderState:DP});function YV(e,t,n){const r=LP(e,t,n);for(const i in e)if(Xn(e[i])||Xn(t[i])){const a=yd.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const Sle=KV({scrapeMotionValuesFromProps:YV,createRenderState:HV}),jle=Symbol.for("motionComponentSymbol");function _le(e,t,n){const r=g.useRef(n);g.useInsertionEffect(()=>{r.current=n});const i=g.useRef(null);return g.useCallback(a=>{var l;a&&((l=e.onMount)==null||l.call(e,a)),t&&(a?t.mount(a):t.unmount());const s=r.current;if(typeof s=="function")if(a){const c=s(a);typeof c=="function"&&(i.current=c)}else i.current?(i.current(),i.current=null):s(a);else s&&(s.current=a)},[t])}const VP=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nle="framerAppearId",XV="data-"+VP(Nle),JV=g.createContext({});function Sh(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ple(e,t,n,r,i,a){var y,b;const{visualElement:s}=g.useContext(yb),l=g.useContext(FV),c=g.useContext(gb),u=g.useContext(TP).reducedMotion,h=g.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,isSVG:a}));const d=h.current,f=g.useContext(JV);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&Ale(h.current,n,i,f);const p=g.useRef(!1);g.useInsertionEffect(()=>{d&&p.current&&d.update(n,c)});const v=n[XV],m=g.useRef(!!v&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,v))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,v)));return H5(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),m.current&&d.animationState&&d.animationState.animateChanges())}),g.useEffect(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,v)}),m.current=!1),d.enteringChildren=void 0)}),d}function Ale(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:QV(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||l&&Sh(l),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:c,layoutRoot:u})}function QV(e){if(e)return e.options.allowProjection!==!1?e.projection:QV(e.parent)}function B0(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Zoe(r);const a=n?n==="svg":MP(e),s=a?Sle:wle;function l(u,h){let d;const f={...g.useContext(TP),...u,layoutId:Cle(u)},{isStatic:p}=f,v=ile(u),m=s(u,p);if(!p&&dP){Ele();const y=kle(f);d=y.MeasureLayout,v.visualElement=Ple(e,m,f,i,y.ProjectionNode,a)}return o.jsxs(yb.Provider,{value:v,children:[d&&v.visualElement?o.jsx(d,{visualElement:v.visualElement,...f}):null,yle(e,u,_le(m,v.visualElement,h),m,p,t,a)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=g.forwardRef(l);return c[jle]=e,c}function Cle({layoutId:e}){const t=g.useContext(cP).id;return t&&e!==void 0?t+"-"+e:e}function Ele(e,t){g.useContext(FV).strict}function kle(e){const{drag:t,layout:n}=Ru;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
vendor: 15,586 bytes, line 536
536function Tle(e,t){if(typeof Proxy>"u")return B0;const n=new Map,r=(a,s)=>B0(a,s,e,t),i=(a,s)=>r(a,s);return new Proxy(i,{get:(a,s)=>s==="create"?r:(n.has(s)||n.set(s,B0(s,void 0,e,t)),n.get(s))})}function ZV({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ole({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ile(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function z0(e){return e===void 0||e===1}function L1({scale:e,scaleX:t,scaleY:n}){return!z0(e)||!z0(t)||!z0(n)}function Lo(e){return L1(e)||eF(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function eF(e){return f2(e.x)||f2(e.y)}function f2(e){return e&&e!=="0%"}function _v(e,t,n){const r=e-n,i=t*r;return n+i}function p2(e,t,n,r,i){return i!==void 0&&(e=_v(e,i,r)),_v(e,n,r)+t}function V1(e,t=0,n=1,r,i){e.min=p2(e.min,t,n,r,i),e.max=p2(e.max,t,n,r,i)}function tF(e,{x:t,y:n}){V1(e.x,t.translate,t.scale,t.originPoint),V1(e.y,n.translate,n.scale,n.originPoint)}const m2=.999999999999,g2=1.0000000000001;function Rle(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let l=0;l<i;l++){a=n[l],s=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Lc(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,tF(e,s)),r&&Lo(a.latestValues)&&Lc(e,a.latestValues))}t.x<g2&&t.x>m2&&(t.x=1),t.y<g2&&t.y>m2&&(t.y=1)}function $c(e,t){e.min=e.min+t,e.max=e.max+t}function v2(e,t,n,r,i=.5){const a=Ht(e.min,e.max,i);V1(e,t,n,a,r)}function Lc(e,t){v2(e.x,t.x,t.scaleX,t.scale,t.originX),v2(e.y,t.y,t.scaleY,t.scale,t.originY)}function nF(e,t){return ZV(Ile(e.getBoundingClientRect(),t))}function Dle(e,t,n){const r=nF(e,n),{scroll:i}=t;return i&&($c(r.x,i.offset.x),$c(r.y,i.offset.y)),r}const y2=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vc=()=>({x:y2(),y:y2()}),b2=()=>({min:0,max:0}),mn=()=>({x:b2(),y:b2()}),F1={current:null},rF={current:!1};function Mle(){if(rF.current=!0,!!dP)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>F1.current=e.matches;e.addEventListener("change",t),t()}else F1.current=!1}const $le=new WeakMap;function Lle(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Xn(i))e.addValue(r,i);else if(Xn(a))e.addValue(r,Iu(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Iu(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const x2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Vle{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=PP,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=sr.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Mt.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=xb(n),this.isVariantNode=zV(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];c[f]!==void 0&&Xn(p)&&p.set(c[f])}}mount(t){var n;this.current=t,$le.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(rF.current||Mle(),this.shouldReduceMotion=F1.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),fo(this.notifyUpdate),fo(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=bd.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Mt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ru){const n=Ru[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<x2.length;r++){const i=x2[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Lle(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Iu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(G5(r)||Y5(r))?r=parseFloat(r):!Hoe(r)&&po.test(n)&&(r=TV(t,n)),this.setBaseTarget(t,Xn(r)?r.get():r)),Xn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=$P(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Xn(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new mP),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){EP.render(this.render)}}class iF extends Vle{constructor(){super(...arguments),this.KeyframeResolver=Doe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function aF(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i==null||i.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function Fle(e){return window.getComputedStyle(e)}class Ble extends iF{constructor(){super(...arguments),this.type="html",this.renderInstance=aF}readValueFromInstance(t,n){var r;if(bd.has(n))return(r=this.projection)!=null&&r.isProjecting?k1(n):Zse(t,n);{const i=Fle(t),a=(cV(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return nF(t,n)}build(t,n,r){RP(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return LP(t,n,r)}}const sF=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function zle(e,t,n,r){aF(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(sF.has(i)?i:VP(i),t.attrs[i])}class Ule extends iF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bd.has(n)){const r=kV(n);return r&&r.default||0}return n=sF.has(n)?n:VP(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return YV(t,n,r)}build(t,n,r){qV(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){zle(t,n,r,i)}mount(t){this.isSVGTag=GV(t.tagName),super.mount(t)}}const Wle=(e,t)=>t.isSVG??MP(e)?new Ule(t):new Ble(t,{allowProjection:e!==g.Fragment});function Zc(e,t,n){const r=e.getProps();return $P(r,t,n!==void 0?n:r.custom,e)}const B1=e=>Array.isArray(e);function qle(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Iu(n))}function Hle(e){return B1(e)?e[e.length-1]||0:e}function Gle(e,t){const n=Zc(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const l=Hle(a[s]);qle(e,s,l)}}function Kle(e){return!!(Xn(e)&&e.add)}function z1(e,t){const n=e.getValue("willChange");if(Kle(n))return n.add(t);if(!n&&is.WillChange){const r=new is.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function oF(e){return e.props[XV]}const Yle=e=>e!==null;function Xle(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Yle),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Jle={type:"spring",stiffness:500,damping:25,restSpeed:10},Qle=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Zle={type:"keyframes",duration:.8},ece={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tce=(e,{keyframes:t})=>t.length>2?Zle:bd.has(e)?e.startsWith("scale")?Qle(t[1]):Jle:ece;function nce({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:l,from:c,elapsed:u,...h}){return!!Object.keys(h).length}const FP=(e,t,n,r={},i,a)=>s=>{const l=AP(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ma(c);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:i};nce(l)||Object.assign(h,tce(e,h)),h.duration&&(h.duration=ma(h.duration)),h.repeatDelay&&(h.repeatDelay=ma(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let d=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(D1(h),h.delay===0&&(d=!0)),(is.instantAnimations||is.skipAnimations)&&(d=!0,D1(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,d&&!a&&t.get()!==void 0){const f=Xle(h.keyframes,l);if(f!==void 0){Mt.update(()=>{h.onUpdate(f),h.onComplete()});return}}return l.isSync?new NP(h):new Soe(h)};function rce({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function lF(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const d=e.getValue(h,e.latestValues[h]??null),f=l[h];if(f===void 0||u&&rce(u,h))continue;const p={delay:n,...AP(a||{},h)},v=d.get();if(v!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===v&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const b=oF(e);if(b){const w=window.MotionHandoffAnimation(b,h,Mt);w!==null&&(p.startTime=w,m=!0)}}z1(e,h),d.start(FP(h,d,f,e.shouldReduceMotion&&AV.has(h)?{type:!1}:p,e,m));const y=d.animation;y&&c.push(y)}return s&&Promise.all(c).then(()=>{Mt.update(()=>{s&&Gle(e,s)})}),c}function cF(e,t,n,r=0,i=1){const a=Array.from(e).sort((u,h)=>u.sortNodePosition(h)).indexOf(t),s=e.size,l=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:l-a*r}function U1(e,t,n={}){var c;const r=Zc(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(lF(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:h=0,staggerChildren:d,staggerDirection:f}=i;return ice(e,t,u,h,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,h]=l==="beforeChildren"?[a,s]:[s,a];return u().then(()=>h())}else return Promise.all([a(),s(n.delay)])}function ice(e,t,n=0,r=0,i=0,a=1,s){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(U1(c,t,{...s,delay:n+(typeof r=="function"?0:r)+cF(e.variantChildren,c,r,i,a)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function ace(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>U1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=U1(e,t,n);else{const i=typeof t=="function"?Zc(e,t,n.custom):t;r=Promise.all(lF(e,i,n))}return r.then(()=>
vendor: 4,103 bytes, line 536
536{e.notify("AnimationComplete",t)})}function uF(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const sce=IP.length;function dF(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?dF(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<sce;n++){const r=IP[n],i=e.props[r];(Tf(i)||i===!1)&&(t[r]=i)}return t}const oce=[...OP].reverse(),lce=OP.length;function cce(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ace(e,n,r)))}function uce(e){let t=cce(e),n=w2(),r=!0;const i=c=>(u,h)=>{var f;const d=Zc(e,h,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:v,...m}=d;u={...u,...m,...v}}return u};function a(c){t=c(e)}function s(c){const{props:u}=e,h=dF(e.parent)||{},d=[],f=new Set;let p={},v=1/0;for(let y=0;y<lce;y++){const b=oce[y],w=n[b],x=u[b]!==void 0?u[b]:h[b],S=Tf(x),j=b===c?w.isActive:null;j===!1&&(v=y);let N=x===h[b]&&x!==u[b]&&S;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),w.protectedKeys={...p},!w.isActive&&j===null||!x&&!w.prevProp||bb(x)||typeof x=="boolean")continue;const _=dce(w.prevProp,x);let P=_||b===c&&w.isActive&&!N&&S||y>v&&S,A=!1;const k=Array.isArray(x)?x:[x];let C=k.reduce(i(b),{});j===!1&&(C={});const{prevResolvedValues:E={}}=w,I={...E,...C},O=L=>{P=!0,f.has(L)&&(A=!0,f.delete(L)),w.needsAnimating[L]=!0;const T=e.getValue(L);T&&(T.liveStyle=!1)};for(const L in I){const T=C[L],R=E[L];if(p.hasOwnProperty(L))continue;let z=!1;B1(T)&&B1(R)?z=!uF(T,R):z=T!==R,z?T!=null?O(L):f.add(L):T!==void 0&&f.has(L)?O(L):w.protectedKeys[L]=!0}w.prevProp=x,w.prevResolvedValues=C,w.isActive&&(p={...p,...C}),r&&e.blockInitialAnimation&&(P=!1);const M=N&&_;P&&(!M||A)&&d.push(...k.map(L=>{const T={type:b};if(typeof L=="string"&&r&&!M&&e.manuallyAnimateOnMount&&e.parent){const{parent:R}=e,z=Zc(R,L);if(R.enteringChildren&&z){const{delayChildren:F}=z.transition||{};T.delay=cF(R.enteringChildren,e,F)}}return{animation:L,options:T}}))}if(f.size){const y={};if(typeof u.initial!="boolean"){const b=Zc(e,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(y.transition=b.transition)}f.forEach(b=>{const w=e.getBaseTarget(b),x=e.getValue(b);x&&(x.liveStyle=!0),y[b]=w??null}),d.push({animation:y})}let m=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(c,u)}),n[c].isActive=u;const h=s(c);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:s,setActive:l,setAnimateFunction:a,getState:()=>n,reset:()=>{n=w2()}}}function dce(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uF(t,e):!1}function Oo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function w2(){return{animate:Oo(!0),whileInView:Oo(),whileHover:Oo(),whileTap:Oo(),whileDrag:Oo(),whileFocus:Oo(),exit:Oo()}}class So{constructor(t){this.isMounted=!1,this.node=t}update(){}}class hce extends So{constructor(t){super(t),t.animationState||(t.animationState=uce(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bb(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let fce=0;class pce extends So{constructor(){super(...arguments),this.id=fce++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};
vendor: 16,352 bytes, line 536
536n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const mce={animation:{Feature:hce},exit:{Feature:pce}};function Of(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function zp(e){return{point:{x:e.pageX,y:e.pageY}}}const gce=e=>t=>kP(t)&&e(t,zp(t));function Wh(e,t,n,r){return Of(e,t,gce(n),r)}const hF=1e-4,vce=1-hF,yce=1+hF,fF=.01,bce=0-fF,xce=0+fF;function or(e){return e.max-e.min}function wce(e,t,n){return Math.abs(e-t)<=n}function S2(e,t,n,r=.5){e.origin=r,e.originPoint=Ht(t.min,t.max,e.origin),e.scale=or(n)/or(t),e.translate=Ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=vce&&e.scale<=yce||isNaN(e.scale))&&(e.scale=1),(e.translate>=bce&&e.translate<=xce||isNaN(e.translate))&&(e.translate=0)}function qh(e,t,n,r){S2(e.x,t.x,n.x,r?r.originX:void 0),S2(e.y,t.y,n.y,r?r.originY:void 0)}function j2(e,t,n){e.min=n.min+t.min,e.max=e.min+or(t)}function Sce(e,t,n){j2(e.x,t.x,n.x),j2(e.y,t.y,n.y)}function _2(e,t,n){e.min=t.min-n.min,e.max=e.min+or(t)}function Nv(e,t,n){_2(e.x,t.x,n.x),_2(e.y,t.y,n.y)}function Zr(e){return[e("x"),e("y")]}const pF=({current:e})=>e?e.ownerDocument.defaultView:null,N2=(e,t)=>Math.abs(e-t);function jce(e,t){const n=N2(e.x,t.x),r=N2(e.y,t.y);return Math.sqrt(n**2+r**2)}const P2=new Set(["auto","scroll"]);class mF{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=W0(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,m=jce(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!m)return;const{point:y}=p,{timestamp:b}=Dn;this.history.push({...y,timestamp:b});const{onStart:w,onMove:x}=this.handlers;v||(w&&w(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,v)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=U0(v,this.transformPagePoint),Mt.update(this.updatePoint,!0)},this.handlePointerUp=(p,v)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=W0(p.type==="pointercancel"?this.lastMoveEventInfo:U0(v,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,w),y&&y(p,w)},!kP(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const c=zp(t),u=U0(c,this.transformPagePoint),{point:h}=u,{timestamp:d}=Dn;this.history=[{...h,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,W0(u,this.history)),this.removeListeners=Vp(Wh(this.contextWindow,"pointermove",this.handlePointerMove),Wh(this.contextWindow,"pointerup",this.handlePointerUp),Wh(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(P2.has(r.overflowX)||P2.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},a={x:i.x-n.x,y:i.y-n.y};a.x===0&&a.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(t,i),Mt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),fo(this.updatePoint)}}function U0(e,t){return t?{point:t(e.point)}:e}function A2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function W0({point:e},t){return{point:e,delta:A2(e,gF(t)),offset:A2(e,_ce(t)),velocity:Nce(t,.1)}}function _ce(e){return e[0]}function gF(e){return e[e.length-1]}function Nce(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=gF(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ma(t)));)n--;if(!r)return{x:0,y:0};const a=ai(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Pce(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ht(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ht(n,e,r.max):Math.min(e,n)),e}function C2(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ace(e,{top:t,left:n,bottom:r,right:i}){return{x:C2(e.x,n,i),y:C2(e.y,t,r)}}function E2(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Cce(e,t){return{x:E2(e.x,t.x),y:E2(e.y,t.y)}}function Ece(e,t){let n=.5;const r=or(e),i=or(t);return i>r?n=Cf(t.min,t.max-r,e.min):r>i&&(n=Cf(e.min,e.max-i,t.min)),Sa(0,1,n)}function kce(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const W1=.35;function Tce(e=W1){return e===!1?e=0:e===!0&&(e=W1),{x:k2(e,"left","right"),y:k2(e,"top","bottom")}}function k2(e,t,n){return{min:T2(e,t),max:T2(e,n)}}function T2(e,t){return typeof e=="number"?e:e[t]||0}const Oce=new WeakMap;class Ice{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=mn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{n?(this.stopAnimation(),this.snapToCursor(zp(d).point)):this.pauseAnimation()},s=(d,f)=>{this.stopAnimation();const{drag:p,dragPropagation:v,onDragStart:m}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Voe(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zr(b=>{let w=this.getAxisMotionValue(b).get()||0;if(ga.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[b];S&&(w=or(S)*(parseFloat(w)/100))}}this.originPoint[b]=w}),m&&Mt.postRender(()=>m(d,f)),z1(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:m,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:b}=f;if(v&&this.currentDirection===null){this.currentDirection=Rce(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),y&&y(d,f)},c=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Zr(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new mF(t,{onSessionStart:a,onStart:s,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:pF(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:l}=this.getProps();l&&Mt.postRender(()=>l(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Bm(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Pce(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;t&&Sh(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ace(r.layoutBox,t):this.constraints=!1,this.elastic=Tce(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Zr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=kce(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Sh(t))return!1;const r=t.current;Ou(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Dle(r,i.root,this.visualElement.getTransformPagePoint());let s=Cce(i.layout.layoutBox,a);if(n){const l=n(Ole(s));this.hasMutatedConstraints=!!l,l&&(s=ZV(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Zr(h=>{if(!Bm(h,n,this.currentDirection))return;let d=c&&c[h]||{};s&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,v={type:"inertia",velocity:r?t[h]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(h,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return z1(this.visualElement,t),r.start(FP(t,r,0,n,this.visualElement,!1))}stopAnimation(){Zr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Zr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Zr(n=>{const{drag:r}=this.getProps();if(!Bm(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n],c=a.get()||0;a.set(t[n]-Ht(s,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Sh(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Zr(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const c=l.get();i[s]=Ece({min:c,max:c},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Zr(s=>{if(!Bm(s,t,null))return;const l=this.getAxisMotionValue(s),{min:c,max:u}=this.constraints[s];l.set(Ht(c,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;Oce.set(this.visualElement,this);const t=this.visualElement.current,n=Wh(t,"pointerdown",c=>{const{drag:u,dragListener:h=!0}=this.getProps();u&&h&&!$V(c.target)&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Sh(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Mt.read(r);const s=Of(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Zr(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=c[h].translate,d.set(d.get()+c[h].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=W1,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:l}}}function Bm(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Rce(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Dce extends So{constructor(t){super(t),this.removeGroupControls=ci,this.removeListeners=ci,this.controls=new Ice(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ci}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const O2=e=>(t,n)=>{e&&Mt.postRender(()=>e(t,n))};class Mce extends So{constructor(){super(...arguments),this.removePointerDownListener=ci}onPointerDown(t){this.session=new mF(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pF(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:O2(t),onStart:O2(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&Mt.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Wh(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Cg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let q0=!1;class $ce extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),q0&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Cg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,q0=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Mt.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),EP.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;q0=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function vF(e){const[t,n]=VV(),r=g.useContext(cP);return o.jsx($ce,{...e,layoutGroup:r,switchLayoutGroup:g.useContext(JV),isPresent:t,safeToRemove:n})}function Lce(e,t,n){const r=Xn(e)?e:Iu(e);return r.start(FP("",r,t,n)),r.animation}const Vce=(e,t)=>e.depth-t.depth;class Fce{constructor(){this.children=[],this.isDirty=!1}add(t){hP(this.children,t),this.isDirty=!0}remove(t){fP(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Vce),this.isDirty=!1,this.children.forEac
vendor: 5,143 bytes, line 536
536h(t)}}function Bce(e,t){const n=sr.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(fo(r),e(a-t))};return Mt.setup(r,!0),()=>fo(r)}const yF=["TopLeft","TopRight","BottomLeft","BottomRight"],zce=yF.length,I2=e=>typeof e=="string"?parseFloat(e):e,R2=e=>typeof e=="number"||me.test(e);function Uce(e,t,n,r,i,a){i?(e.opacity=Ht(0,n.opacity??1,Wce(r)),e.opacityExit=Ht(t.opacity??1,0,qce(r))):a&&(e.opacity=Ht(t.opacity??1,n.opacity??1,r));for(let s=0;s<zce;s++){const l=`border${yF[s]}Radius`;let c=D2(t,l),u=D2(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||R2(c)===R2(u)?(e[l]=Math.max(Ht(I2(c),I2(u),r),0),(ga.test(u)||ga.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Ht(t.rotate||0,n.rotate||0,r))}function D2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Wce=bF(0,.5,rV),qce=bF(.5,.95,ci);function bF(e,t,n){return r=>r<e?0:r>t?1:n(Cf(e,t,r))}function M2(e,t){e.min=t.min,e.max=t.max}function Si(e,t){M2(e.x,t.x),M2(e.y,t.y)}function $2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function L2(e,t,n,r,i){return e-=t,e=_v(e,1/n,r),i!==void 0&&(e=_v(e,1/i,r)),e}function Hce(e,t=0,n=1,r=.5,i,a=e,s=e){if(ga.test(t)&&(t=parseFloat(t),t=Ht(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=Ht(a.min,a.max,r);e===a&&(l-=t),e.min=L2(e.min,t,n,l,i),e.max=L2(e.max,t,n,l,i)}function V2(e,t,[n,r,i],a,s){Hce(e,t[n],t[r],t[i],t.scale,a,s)}const Gce=["x","scaleX","originX"],Kce=["y","scaleY","originY"];function F2(e,t,n,r){V2(e.x,t,Gce,n?n.x:void 0,r?r.x:void 0),V2(e.y,t,Kce,n?n.y:void 0,r?r.y:void 0)}function B2(e){return e.translate===0&&e.scale===1}function xF(e){return B2(e.x)&&B2(e.y)}function z2(e,t){return e.min===t.min&&e.max===t.max}function Yce(e,t){return z2(e.x,t.x)&&z2(e.y,t.y)}function U2(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wF(e,t){return U2(e.x,t.x)&&U2(e.y,t.y)}function W2(e){return or(e.x)/or(e.y)}function q2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Xce{constructor(){this.members=[]}add(t){hP(this.members,t),t.scheduleRender()}remove(t){if(fP(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Jce(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:h,rotateX:d,rotateY:f,skewX:p,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),h&&(r+=`rotate(${h}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const H0=["","X","Y","Z"],Qce=1e3;let Zce=0;function G0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function SF(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=oF(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Mt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&SF(r)}function jF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=Zce++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 14,744 bytes, line 536
536{this.projectionUpdateScheduled=!1,this.nodes.forEach(nue),this.nodes.forEach(sue),this.nodes.forEach(oue),this.nodes.forEach(rue)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fce)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new mP),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const c=this.eventHandlers.get(s);c&&c.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=LV(s)&&!Woe(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let h,d=0;const f=()=>this.root.updateBlockedByResize=!1;Mt.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,h&&h(),h=Bce(f,250),Cg.hasAnimatedSinceResize&&(Cg.hasAnimatedSinceResize=!1,this.nodes.forEach(K2)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||hue,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=u.getProps(),b=!this.targetLayout||!wF(this.targetLayout,p),w=!d&&f;if(this.options.layoutRoot||this.resumeFrom||w||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...AP(v,"layout"),onPlay:m,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(h,w)}else d||K2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),fo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(lue),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&SF(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const d=this.path[h];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(H2);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(G2);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(aue),this.nodes.forEach(eue),this.nodes.forEach(tue)):this.nodes.forEach(G2),this.clearAllSnapshots();const l=sr.now();Dn.delta=Sa(0,1e3/60,l-Dn.timestamp),Dn.timestamp=l,Dn.isProcessing=!0,R0.update.process(Dn),R0.preRender.process(Dn),R0.render.process(Dn),Dn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,EP.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iue),this.sharedNodes.forEach(cue)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!or(this.snapshot.measuredBox.x)&&!or(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=mn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!xF(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,h=u!==this.prevTransformTemplateValue;s&&this.instance&&(l||Lo(this.latestValues)||h)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return s&&(c=this.removeTransform(c)),fue(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:s}=this.options;if(!s)return mn();const l=s.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(pue))){const{scroll:h}=this.root;h&&($c(l.x,h.offset.x),$c(l.y,h.offset.y))}return l}removeElementScroll(s){var c;const l=mn();if(Si(l,s),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const h=this.path[u],{scroll:d,options:f}=h;h!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Si(l,s),$c(l.x,d.offset.x),$c(l.y,d.offset.y))}return l}applyTransform(s,l=!1){const c=mn();Si(c,s);for(let u=0;u<this.path.length;u++){const h=this.path[u];!l&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Lc(c,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Lo(h.latestValues)&&Lc(c,h.latestValues)}return Lo(this.latestValues)&&Lc(c,this.latestValues),c}removeTransform(s){const l=mn();Si(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Lo(u.latestValues))continue;L1(u.latestValues)&&u.updateSnapshot();const h=mn(),d=u.measurePageBox();Si(h,d),F2(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,h)}return Lo(this.latestValues)&&F2(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Dn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var p;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:d}=this.options;if(!this.layout||!(h||d))return;this.resolvedRelativeTargetAt=Dn.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=mn(),this.targetWithTransforms=mn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Sce(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Si(this.target,this.layout.layoutBox),tF(this.target,this.targetDelta)):Si(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||L1(this.parent.latestValues)||eF(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,l,c){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mn(),this.relativeTargetOrigin=mn(),Nv(this.relativeTargetOrigin,l,c),Si(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var v;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Dn.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;Si(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;Rle(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=mn());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($2(this.prevProjectionDelta.x,this.projectionDelta.x),$2(this.prevProjectionDelta.y,this.projectionDelta.y)),qh(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!q2(this.projectionDelta.x,this.prevProjectionDelta.x)||!q2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vc(),this.projectionDelta=Vc(),this.projectionDeltaWithTransform=Vc()}setAnimationOrigin(s,l=!1){const c=this.snapshot,u=c?c.latestValues:{},h={...this.latestValues},d=Vc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=mn(),p=c?c.source:void 0,v=this.layout?this.layout.source:void 0,m=p!==v,y=this.getStack(),b=!y||y.members.length<=1,w=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(due));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const j=S/1e3;Y2(d.x,s.x,j),Y2(d.y,s.y,j),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Nv(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),uue(this.relativeTarget,this.relativeTargetOrigin,f,j),x&&Yce(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=mn()),Si(x,this.relativeTarget)),m&&(this.animationValues=h,Uce(h,u,this.latestValues,j,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(fo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mt.update(()=>{Cg.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Iu(0)),this.currentAnimation=Lce(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),s.onUpdate&&s.onUpdate(h)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qce),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:h}=s;if(!(!l||!c||!u)){if(this!==s&&this.layout&&u&&_F(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||mn();const d=or(this.layout.layoutBox.x);
vendor: 10,769 bytes, line 536
536c.x.min=s.target.x.min,c.x.max=c.x.min+d;const f=or(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+f}Si(l,c),Lc(l,h),qh(this.projectionDeltaWithTransform,this.layoutCorrected,l,h)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Xce),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var l;const{layoutId:s}=this.options;return s?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:s}=this.options;return s?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&G0("z",s,u,this.animationValues);for(let h=0;h<H0.length;h++)G0(`rotate${H0[h]}`,s,u,this.animationValues),G0(`skew${H0[h]}`,s,u,this.animationValues);s.render();for(const h in u)s.setStaticValue(h,u[h]),this.animationValues&&(this.animationValues[h]=u[h]);s.scheduleRender()}applyProjectionStyles(s,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Ag(l==null?void 0:l.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Ag(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Lo(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const h=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=Jce(this.projectionDeltaWithTransform,this.treeScale,h);c&&(d=c(h,d)),s.transform=d;const{x:f,y:p}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?s.opacity=u===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:s.opacity=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const v in $1){if(h[v]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:b}=$1[v],w=d==="none"?h[v]:m(h[v],u);if(y){const x=y.length;for(let S=0;S<x;S++)s[y[S]]=w}else b?this.options.visualElement.renderState.vars[v]=w:s[v]=w}this.options.layoutId&&(s.pointerEvents=u===this?Ag(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(H2),this.root.sharedNodes.clear()}}}function eue(e){e.updateLayout()}function tue(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?Zr(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],p=or(f);f.min=r[d].min,f.max=f.min+p}):_F(a,t.layoutBox,r)&&Zr(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],p=or(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const l=Vc();qh(l,r,t.layoutBox);const c=Vc();s?qh(c,e.applyTransform(i,!0),t.measuredBox):qh(c,r,t.layoutBox);const u=!xF(l);let h=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const v=mn();Nv(v,t.layoutBox,f.layoutBox);const m=mn();Nv(m,r,p.layoutBox),wF(v,m)||(h=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function nue(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rue(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iue(e){e.clearSnapshot()}function H2(e){e.clearMeasurements()}function G2(e){e.isLayoutDirty=!1}function aue(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function K2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sue(e){e.resolveTargetDelta()}function oue(e){e.calcProjection()}function lue(e){e.resetSkewAndRotation()}function cue(e){e.removeLeadSnapshot()}function Y2(e,t,n){e.translate=Ht(t.translate,0,n),e.scale=Ht(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function X2(e,t,n,r){e.min=Ht(t.min,n.min,r),e.max=Ht(t.max,n.max,r)}function uue(e,t,n,r){X2(e.x,t.x,n.x,r),X2(e.y,t.y,n.y,r)}function due(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hue={duration:.45,ease:[.4,0,.1,1]},J2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Q2=J2("applewebkit/")&&!J2("chrome/")?Math.round:ci;function Z2(e){e.min=Q2(e.min),e.max=Q2(e.max)}function fue(e){Z2(e.x),Z2(e.y)}function _F(e,t,n){return e==="position"||e==="preserve-aspect"&&!wce(W2(t),W2(n),.2)}function pue(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const mue=jF({attachResizeListener:(e,t)=>Of(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),K0={current:void 0},NF=jF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!K0.current){const e=new mue({});e.mount(window),e.setOptions({layoutScroll:!0}),K0.current=e}return K0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),gue={pan:{Feature:Mce},drag:{Feature:Dce,ProjectionNode:NF,MeasureLayout:vF}};function eO(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Mt.postRender(()=>a(t,zp(t)))}class vue extends So{mount(){const{current:t}=this.node;t&&(this.unmount=Foe(t,(n,r)=>(eO(this.node,r,"Start"),i=>eO(this.node,i,"End"))))}unmount(){}}class yue extends So{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Vp(Of(this.node.current,"focus",()=>this.onFocus()),Of(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function tO(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Mt.postRender(()=>a(t,zp(t)))}class bue extends So{mount(){const{current:t}=this.node;t&&(this.unmount=Uoe(t,(n,r)=>(tO(this.node,r,"Start"),(i,{success:a})=>tO(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const q1=new WeakMap,Y0=new WeakMap,xue=e=>{const t=q1.get(e.target);t&&t(e)},wue=e=>{e.forEach(xue)};function Sue({root:e,...t}){const n=e||document;Y0.has(n)||Y0.set(n,{});const r=Y0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(wue,{root:e,...t})),r[i]}function jue(e,t,n){const r=Sue(t);return q1.set(e,n),r.observe(e),()=>{q1.delete(e),r.unobserve(e)}}const _ue={some:0,all:1};class Nue extends So{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:_ue[i]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:h,onViewportLeave:d}=this.node.getProps(),f=u?h:d;f&&f(c)};return jue(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Pue(t,n))&&this.startObserver()}unmount(){}}function Pue({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Aue={inView:{Feature:Nue},tap:{Feature:bue},focus:{Feature:yue},hover:{Feature:vue}},Cue={layout:{ProjectionNode:NF,MeasureLayout:vF}},Eue={...mce,...Aue,...gue,...Cue},Q=Tle(Eue,Wle),BP=Tp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-semibold transition-all duration-200 ease-out 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 hover:scale-[1.02] active:scale-[0.98] touch-manipulation",{variants:{variant:{default:"bg-gradient-to-r from-primary to-accent text-primary-foreground shadow-soft hover:shadow-elevated",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border-2 border-primary/20 bg-background hover:bg-primary/5 hover:border-primary/40",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",whatsapp:"bg-[#25D366] text-white hover:bg-[#20BD5A] shadow-soft hover:shadow-elevated",hero:"bg-gradient-to-r from-primary to-accent text-primary-foreground shadow-lg hover:shadow-elevated text-base",heroOutline:"border-2 border-foreground
536/20 bg-white/80 backdrop-blur-sm text-foreground hover:bg-white hover:border-foreground/30"},size:{default:"h-11 px-6 py-2 rounded-full",sm:"h-9 rounded-full px-4",lg:"h-14 rounded-full px-8 text-base",xl:"h-16 rounded-full px-10 text-lg",icon:"h-10 w-10 rounded-full"}},defaultVariants:{variant:"default",size:"default"}}),K=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const s=r?pK:"button";return o.jsx(s,{className:oe(BP({variant:t,size:n,className:e})),ref:a,...i})});K.displayName="Button";var X0="focusScope.autoFocusOnMount",J0="focusScope.autoFocusOnUnmount",nO={bubbles:!1,cancelable:!0},kue="FocusScope",wb=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,c]=g.useState(null),u=tn(i),h=tn(a),d=g.useRef(null),f=Me(t,m=>c(m)),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let m=function(x){if(p.paused||!l)return;const S=x.target;l.contains(S)?d.current=S:Ns(d.current,{select:!0})},y=function(x){if(p.paused||!l)return;const S=x.relatedTarget;S!==null&&(l.contains(S)||Ns(d.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const j of x)j.removedNodes.length>0&&Ns(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const w=new MutationObserver(b);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),w.disconnect()}}},[r,l,p.paused]),g.useEffect(()=>{if(l){iO.add(p);const m=document.activeElement;if(!l.contains(m)){const b=new CustomEvent(X0,nO);l.addEventListener(X0,u),l.dispatchEvent(b),b.defaultPrevented||(Tue(Mue(PF(l)),{select:!0}),document.activeElement===m&&Ns(l))}return()=>{l.removeEventListener(X0,u),setTimeout(()=>{const b=new CustomEvent(J0,nO);l.addEventListener(J0,h),l.dispatchEvent(b),b.defaultPrevented||Ns(m??document.body,{select:!0}),l.removeEventListener(J0,h),iO.remove(p)},0)}}}
vendor: 2,936 bytes, line 536
536,[l,u,h,p]);const v=g.useCallback(m=>{if(!n&&!r||p.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(y&&b){const w=m.currentTarget,[x,S]=Oue(w);x&&S?!m.shiftKey&&b===S?(m.preventDefault(),n&&Ns(x,{select:!0})):m.shiftKey&&b===x&&(m.preventDefault(),n&&Ns(S,{select:!0})):b===w&&m.preventDefault()}},[n,r,p.paused]);return o.jsx(ye.div,{tabIndex:-1,...s,ref:f,onKeyDown:v})});wb.displayName=kue;function Tue(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ns(r,{select:t}),document.activeElement!==n)return}function Oue(e){const t=PF(e),n=rO(t,e),r=rO(t.reverse(),e);return[n,r]}function PF(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rO(e,t){for(const n of e)if(!Iue(n,{upTo:t}))return n}function Iue(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 Rue(e){return e instanceof HTMLInputElement&&"select"in e}function Ns(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Rue(e)&&t&&e.select()}}var iO=Due();function Due(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=aO(e,t),e.unshift(t)},remove(t){var n;e=aO(e,t),(n=e[0])==null||n.resume()}}}function aO(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Mue(e){return e.filter(t=>t.tagName!=="A")}var Q0=0;function zP(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sO()),document.body.insertAdjacentElement("beforeend",e[1]??sO()),Q0++,()=>{Q0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Q0--}},[])}function sO(){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 Eg="right-scroll-bar-position",kg="width-before-scroll-bar",$ue="with-scroll-bars-hidden",Lue="--removed-body-scroll-bar-size";function Z0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vue(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Fue=typeof window<"u"?g.useLayoutEffect:g.useEffect,oO=new WeakMap;function Bue(e,t){var n=Vue(null,function(r){return e.forEach(function(i){return Z0(i,r)})});return Fue(function(){var r=oO.get(n);if(r){var i=new Set(r),a=new Set(e),s=n.current;
vendor: 4,224 bytes, lines 536-551
536i.forEach(function(l){a.has(l)||Z0(l,null)}),a.forEach(function(l){i.has(l)||Z0(l,s)})}oO.set(n,e)},[e]),n}function zue(e){return e}function Uue(e,t){t===void 0&&(t=zue);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(a),s=n}var c=function(){var h=s;s=[],h.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(h){s.push(h),u()},filter:function(h){return s=s.filter(h),n}}}};return i}function Wue(e){e===void 0&&(e={});var t=Uue(null);return t.options=la({async:!0,ssr:!1},e),t}var AF=function(e){var t=e.sideCar,n=gd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,la({},n))};AF.isSideCarExport=!0;function que(e,t){return e.useMedium(t),AF}var CF=Wue(),ew=function(){},Sb=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:ew,onWheelCapture:ew,onTouchMoveCapture:ew}),i=r[0],a=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,h=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,v=e.noIsolation,m=e.inert,y=e.allowPinchZoom,b=e.as,w=b===void 0?"div":b,x=e.gapMode,S=gd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=f,N=Bue([n,t]),_=la(la({},S),i);return g.createElement(g.Fragment,null,h&&g.createElement(j,{sideCar:CF,removeScrollBar:u,shards:d,noRelative:p,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:x}),s?g.cloneElement(g.Children.only(l),la(la({},_),{ref:N})):g.createElement(w,la({},_,{className:c,ref:N}),l))});Sb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Sb.classNames={fullWidth:kg,zeroRight:Eg};var Hue=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gue(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Hue();return t&&e.setAttribute("nonce",t),e}function Kue(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yue(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xue=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gue())&&(Kue(t,n),Yue(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jue=function(){var e=Xue();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},EF=function(){var e=Jue(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Que={left:0,top:0,right:0,gap:0},tw=function(e){return parseInt(e||"",10)||0},Zue=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[tw(n),tw(r),tw(i)]},ede=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Que;var t=Zue(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tde=EF(),eu="data-scroll-locked",nde=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),` 537 .`.concat($ue,` { 538 overflow: hidden `).concat(r,`; 539 padding-right: `).concat(l,"px ").concat(r,`; 540 } 541 body[`).concat(eu,`] { 542 overflow: hidden `).concat(r,`; 543 overscroll-behavior: contain; 544 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 545 padding-left: `.concat(i,`px; 546 padding-top: `).concat(a,`px; 547 padding-right: `).concat(s,`px; 548 margin-left:0; 549 margin-top:0; 550 margin-right: `).concat(l,"px ").concat(r,`; 551 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
551")].filter(Boolean).join(""),` 552 } 553 554 .`).concat(Eg,` { 555 right: `).concat(l,"px ").concat(r,`; 556 } 557 558 .`).concat(kg,` { 559 margin-right: `).concat(l,"px ").concat(r,`; 560 } 561 562 .`).concat(Eg," .").concat(Eg,` { 563 right: 0 `).concat(r,`; 564 } 565 566 .`).concat(kg," .").concat(kg,` { 567 margin-right: 0 `).concat(r,`; 568 } 569 570 body[`).concat(eu,`] { 571 `).concat(Lue,": ").concat(l,`px; 572 } 573`)},lO=function(){var e=parseInt(document.body.getAttribute(eu)||"0",10);return isFinite(e)?e:0},rde=function(){g.useEffect(function(){return document.body.setAttribute(eu,(lO()+1).toString()),function(){var e=lO()-1;e<=0?document.body.removeAttribute(eu):document.body.setAttribute(eu,e.toString())}},[])},ide=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;rde();var a=g.useMemo(function(){return ede(i)},[i]);return g.createElement(tde,{styles:nde(a,!t,i,n?"":"!important")})},H1=!1;if(typeof window<"u")try{var zm=Object.defineProperty({},"passive",{get:function(){return H1=!0,!0}});window.addEventListener("test",zm,zm),window.removeEventListener("test",zm,zm)}catch{H1=!1}var dc=H1?{passive:!1}:!1,ade=function(e){return e.tagName==="TEXTAREA"},kF=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ade(e)&&n[t]==="visible")},sde=function(e){return kF(e,"overflowY")},ode=function(e){return kF(e,"overflowX")},cO=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=TF(e,r);if(i){var a=OF(e,r),s=a[1],l=a[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},lde=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},cde=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},TF=function(e,t){return e==="v"?sde(t):ode(t)},OF=function(e,t){return e==="v"?lde(t):cde(t)},ude=function(e,t){return e==="h"&&t==="rtl"?-1:1},dde=function(e,t,n,r,i){var a=ude(e,window.getComputedStyle(t).direction),s=a*r,l=n.target,c=t.contains(l),u=!1,h=s>0,d=0,f=0;do{if(!l)break;var p=OF(e,l),v=p[0],m=p[1],y=p[2],b=m-y-a*v;(v||b)&&TF(e,l)&&(d+=b,f+=v);var w=l.parentNode;l=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(h&&(Math.abs(d)<1||!i)||!h&&(Math.abs(f)<1||!i))&&(u=!0),u},Um=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uO=function(e){return[e.deltaX,e.deltaY]},dO=function(e){return e&&"current"in e?e.current:e},hde=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fde=function(e){return` 574 .block-interactivity-`.concat(e,` {pointer-events: none;} 575 .allow-interactivity-`).concat(e,` {pointer-events: all;} 576`)},pde=0,hc=[];function mde(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),i=g.useState(pde++)[0],a=g.useState(EF)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=fZ([e.lockRef.current],(e.shards||[]).map(dO),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=g.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var b=Um(m),w=n.current,x="deltaX"in m?m.deltaX:w[0]-b[0],S="deltaY"in m?m.deltaY:w[1]-b[1],j,N=m.target,_=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in m&&_==="h"&&N.type==="range")return!1;var P=cO(_,N);if(!P)return!0;if(P?j=_:(j=_==="v"?"h":"v",P=cO(_,N)),!P)return!1;if(!r.current&&"changedTouches"in m&&(x||S)&&(r.current=j),!j)return!0;var A=r.current||j;return dde(A,y,m,A==="h"?x:S,!0)},[]),c=g.useCallback(function(m){var y=m;if(!(!hc.length||hc[hc.length-1]!==a)){var b="deltaY"in y?uO(y):Um(y),w=t.current.filter(function(j){return j.name===y.type&&(j.target===y.target||y.target===j.shadowParent)&&hde(j.delta,b)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}
vendor: 4,354 bytes, line 576
576if(!w){var x=(s.current.shards||[]).map(dO).filter(Boolean).filter(function(j){return j.contains(y.target)}),S=x.length>0?l(y,x[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),u=g.useCallback(function(m,y,b,w){var x={name:m,delta:y,target:b,should:w,shadowParent:gde(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),h=g.useCallback(function(m){n.current=Um(m),r.current=void 0},[]),d=g.useCallback(function(m){u(m.type,uO(m),m.target,l(m,e.lockRef.current))},[]),f=g.useCallback(function(m){u(m.type,Um(m),m.target,l(m,e.lockRef.current))},[]);g.useEffect(function(){return hc.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,dc),document.addEventListener("touchmove",c,dc),document.addEventListener("touchstart",h,dc),function(){hc=hc.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,dc),document.removeEventListener("touchmove",c,dc),document.removeEventListener("touchstart",h,dc)}},[]);var p=e.removeScrollBar,v=e.inert;return g.createElement(g.Fragment,null,v?g.createElement(a,{styles:fde(i)}):null,p?g.createElement(ide,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function gde(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vde=que(CF,mde);var jb=g.forwardRef(function(e,t){return g.createElement(Sb,la({},e,{ref:t,sideCar:vde}))});jb.classNames=Sb.classNames;var yde=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},fc=new WeakMap,Wm=new WeakMap,qm={},nw=0,IF=function(e){return e&&(e.host||IF(e.parentNode))},bde=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=IF(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},xde=function(e,t,n,r){var i=bde(t,Array.isArray(e)?e:[e]);qm[n]||(qm[n]=new WeakMap);var a=qm[n],s=[],l=new Set,c=new Set(i),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};i.forEach(u);var h=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(l.has(f))h(f);else try{var p=f.getAttribute(r),v=p!==null&&p!=="false",m=(fc.get(f)||0)+1,y=(a.get(f)||0)+1;fc.set(f,m),a.set(f,y),s.push(f),m===1&&v&&Wm.set(f,!0),y===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return h(t),l.clear(),nw++,function(){s.forEach(function(d){var f=fc.get(d)-1,p=a.get(d)-1;fc.set(d,f),a.set(d,p),f||(Wm.has(d)||d.removeAttribute(r),Wm.delete(d)),p||d.removeAttribute(n)}),nw--,nw||(fc=new WeakMap,fc=new WeakMap,Wm=new WeakMap,qm={})}},UP=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=yde(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),xde(r,i,n,"aria-hidden")):function(){return null}},_b="Dialog",[RF,DF]=Fn(_b),[wde,Gi]=RF(_b),MF=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=g.useRef(null),c=g.useRef(null),[u,h]=pi({prop:r,defaultProp:i??!1,onChange:a,caller:_b});return o.jsx(wde,{scope:t,triggerRef:l,contentRef:c,contentId:li(),titleId:li(),descriptionId:li(),open:u,onOpenChange:h,onOpenToggle:g.useCallback(()=>h(d=>!d),[h]),modal:s,children:n})};MF.displayName=_b;var $F="DialogTrigger",LF=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Gi($F,n),a=Me(t,i.triggerRef);return o.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":HP(i.open),...r,ref:a,onClick:le(e.onClick,i.onOpenToggle)})});LF.displayName=$F;var WP="DialogPortal",[Sde,VF]=RF(WP,{forceMount:void 0}),FF=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Gi(WP,t);return o.jsx(Sde,{scope:t,forceMount:n,children:g.Children.map(r,s=>o.jsx(Bn,{present:n||a.open,children:o.jsx(Ep,{asChild:!0,container:i,children:s})}))})};FF.displayName=WP;var Pv="DialogOverlay",BF=g.forwardRef((e,t)=>{const n=VF(Pv,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Gi(Pv,e.__scopeDialog);return a.modal?o.jsx(Bn,{present:r||a.open,children:o.jsx(_de,{...i,ref:t})}):null});BF.displayName=Pv;var jde=Sl("DialogOverlay.RemoveScroll"),_de=g.forwardRef((e,t)=>
vendor: 5,061 bytes, lines 576-580
576{const{__scopeDialog:n,...r}=e,i=Gi(Pv,n);return o.jsx(jb,{as:jde,allowPinchZoom:!0,shards:[i.contentRef],children:o.jsx(ye.div,{"data-state":HP(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),kl="DialogContent",zF=g.forwardRef((e,t)=>{const n=VF(kl,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Gi(kl,e.__scopeDialog);return o.jsx(Bn,{present:r||a.open,children:a.modal?o.jsx(Nde,{...i,ref:t}):o.jsx(Pde,{...i,ref:t})})});zF.displayName=kl;var Nde=g.forwardRef((e,t)=>{const n=Gi(kl,e.__scopeDialog),r=g.useRef(null),i=Me(t,n.contentRef,r);return g.useEffect(()=>{const a=r.current;if(a)return UP(a)},[]),o.jsx(UF,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&a.preventDefault()}),onFocusOutside:le(e.onFocusOutside,a=>a.preventDefault())})}),Pde=g.forwardRef((e,t)=>{const n=Gi(kl,e.__scopeDialog),r=g.useRef(!1),i=g.useRef(!1);return o.jsx(UF,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),UF=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,l=Gi(kl,n),c=g.useRef(null),u=Me(t,c);return zP(),o.jsxs(o.Fragment,{children:[o.jsx(wb,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:o.jsx(sd,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":HP(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),o.jsxs(o.Fragment,{children:[o.jsx(Cde,{titleId:l.titleId}),o.jsx(kde,{contentRef:c,descriptionId:l.descriptionId})]})]})}),qP="DialogTitle",WF=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Gi(qP,n);return o.jsx(ye.h2,{id:i.titleId,...r,ref:t})});WF.displayName=qP;var qF="DialogDescription",HF=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Gi(qF,n);return o.jsx(ye.p,{id:i.descriptionId,...r,ref:t})});HF.displayName=qF;var GF="DialogClose",KF=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Gi(GF,n);return o.jsx(ye.button,{type:"button",...r,ref:t,onClick:le(e.onClick,()=>i.onOpenChange(!1))})});KF.displayName=GF;function HP(e){return e?"open":"closed"}var YF="DialogTitleWarning",[Ade,XF]=hK(YF,{contentName:kl,titleName:qP,docsSlug:"dialog"}),Cde=({titleId:e})=>{const t=XF(YF),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 577 578If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 579 580For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ede="DialogDescriptionWarning",kde=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${XF(Ede).contentName}}.`;return g.useEffect(()=>{var a;const i=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},GP=MF,JF=LF,KP=FF,Up=BF,Wp=zF,qp=WF,Hp=HF,Nb=KF;const Tde=GP,Ode=JF,Ide=KP,QF=g.forwardRef(({className:e,...t},n)=>o.jsx(Up,{className:oe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));QF.displayName=Up.displayName;const Rde=Tp("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{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"}}),ZF=g.forwardRef(({side:e="right",className:t,children:n,...r},i)=>{const a=e==="left"?"right-4":e==="right"?"left-4":"right-4";return o.jsxs(Ide,{children:[o.jsx(QF,{}),o.jsxs(Wp,{ref:i,className:oe(Rde({side:e}),t),...r,children:[n,o.jsxs(Nb,{className:oe("absolute top-4 roun
580ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",a),children:[o.jsx(xa,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});ZF.displayName=Wp.displayName;const Dde=g.forwardRef(({className:e,...t},n)=>o.jsx(qp,{ref:n,className:oe("text-lg font-semibold text-foreground",e),...t}));Dde.displayName=qp.displayName;const Mde=g.forwardRef(({className:e,...t},n)=>o.jsx(Hp,{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));Mde.displayName=Hp.displayName;var $de=g.createContext(void 0);function xd(e){const t=g.useContext($de);return e||t||"ltr"}var rw="rovingFocusGroup.onEntryFocus",Lde={bubbles:!1,cancelable:!0},Gp="RovingFocusGroup",[G1,eB,Vde]=Cp(Gp),[Fde,Pb]=Fn(Gp,[Vde]),[Bde,zde]=Fde(Gp),tB=g.forwardRef((e,t)=>o.jsx(G1.Provider,{scope:e.__scopeRovingFocusGroup,children:o.jsx(G1.Slot,{scope:e.__scopeRovingFocusGroup,children:o.jsx(Ude,{...e,ref:t})})}));tB.displayName=Gp;var Ude=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...d}=e,f=g.useRef(null),p=Me(t,f),v=xd(a),[m,y]=pi({prop:s,defaultProp:l??null,onChange:c,caller:Gp}),[b,w]=g.useState(!1),x=tn(u),S=eB(n),j=g.useRef(!1),[N,_]=g.useState(0);return g.useEffect(()=>{const P=f.current;if(P)return P.addEventListener(rw,x),()=>P.removeEventListener(rw,x)},[x]),o.jsx(Bde,{scope:n,orientation:r,dir:v,loop:i,currentTabStopId:m,onItemFocus:g.useCallback(P=>y(P),[y]),onItemShiftTab:g.useCallback(()=>w(!0),[]),onFocusableItemAdd:g.useCallback(()=>_(P=>P+1),[]),onFocusableItemRemove:g.useCallback(()=>_(P=>P-1),[]),children:o.jsx(ye.div,{tabIndex:b||N===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:le(e.onMouseDown,()=>{j.current=!0}),onFocus:le(e.onFocus,P=>{const A=!j.current;if(P.target===P.currentTarget&&A&&!b){const k=new CustomEvent(rw,Lde);if(P.currentTarget.dispatchEvent(k),!k.defaultPrevented){const C=S().filter($=>$.focusable),E=C.find($=>$.active),I=C.find($=>$.id===m),M=[E,I,...C].filter(Boolean).map($=>$.ref.current);iB(M,h)}}j.current=!1}),onBlur:le(e.onBlur,()=>w(!1))})})}),nB="RovingFocusGroupItem",rB=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:s,...l}=e,c=li(),u=a||c,h=zde(nB,n),d=h.currentTabStopId===u,f=eB(n),{onFocusableItemAdd:p,onFocusableItemRemove:v,currentTabStopId:m}=h;return g.useEffect(()=>{if(r)return p(),()=>v()}
vendor: 17,770 bytes, line 580
580,[r,p,v]),o.jsx(G1.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:o.jsx(ye.span,{tabIndex:d?0:-1,"data-orientation":h.orientation,...l,ref:t,onMouseDown:le(e.onMouseDown,y=>{r?h.onItemFocus(u):y.preventDefault()}),onFocus:le(e.onFocus,()=>h.onItemFocus(u)),onKeyDown:le(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){h.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const b=Hde(y,h.orientation,h.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let x=f().filter(S=>S.focusable).map(S=>S.ref.current);if(b==="last")x.reverse();else if(b==="prev"||b==="next"){b==="prev"&&x.reverse();const S=x.indexOf(y.currentTarget);x=h.loop?Gde(x,S+1):x.slice(S+1)}setTimeout(()=>iB(x))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:m!=null}):s})})});rB.displayName=nB;var Wde={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qde(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Hde(e,t,n){const r=qde(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Wde[r]}function iB(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Gde(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var aB=tB,sB=rB,K1=["Enter"," "],Kde=["ArrowDown","PageUp","Home"],oB=["ArrowUp","PageDown","End"],Yde=[...Kde,...oB],Xde={ltr:[...K1,"ArrowRight"],rtl:[...K1,"ArrowLeft"]},Jde={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Kp="Menu",[If,Qde,Zde]=Cp(Kp),[Wl,lB]=Fn(Kp,[Zde,hd,Pb]),Ab=hd(),cB=Pb(),[ehe,ql]=Wl(Kp),[the,Yp]=Wl(Kp),uB=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:s=!0}=e,l=Ab(t),[c,u]=g.useState(null),h=g.useRef(!1),d=tn(a),f=xd(i);return g.useEffect(()=>{const p=()=>{h.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>h.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),o.jsx(O4,{...l,children:o.jsx(ehe,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:o.jsx(the,{scope:t,onClose:g.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:h,dir:f,modal:s,children:r})})})};uB.displayName=Kp;var nhe="MenuAnchor",YP=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Ab(n);return o.jsx(WN,{...i,...r,ref:t})});YP.displayName=nhe;var XP="MenuPortal",[rhe,dB]=Wl(XP,{forceMount:void 0}),hB=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=ql(XP,t);return o.jsx(rhe,{scope:t,forceMount:n,children:o.jsx(Bn,{present:n||a.open,children:o.jsx(Ep,{asChild:!0,container:i,children:r})})})};hB.displayName=XP;var ui="MenuContent",[ihe,JP]=Wl(ui),fB=g.forwardRef((e,t)=>{const n=dB(ui,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ql(ui,e.__scopeMenu),s=Yp(ui,e.__scopeMenu);return o.jsx(If.Provider,{scope:e.__scopeMenu,children:o.jsx(Bn,{present:r||a.open,children:o.jsx(If.Slot,{scope:e.__scopeMenu,children:s.modal?o.jsx(ahe,{...i,ref:t}):o.jsx(she,{...i,ref:t})})})})}),ahe=g.forwardRef((e,t)=>{const n=ql(ui,e.__scopeMenu),r=g.useRef(null),i=Me(t,r);return g.useEffect(()=>{const a=r.current;if(a)return UP(a)},[]),o.jsx(QP,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:le(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),she=g.forwardRef((e,t)=>{const n=ql(ui,e.__scopeMenu);return o.jsx(QP,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ohe=Sl("MenuContent.ScrollLock"),QP=g.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:v,...m}=e,y=ql(ui,n),b=Yp(ui,n),w=Ab(n),x=cB(n),S=Qde(n),[j,N]=g.useState(null),_=g.useRef(null),P=Me(t,_,y.onContentChange),A=g.useRef(0),k=g.useRef(""),C=g.useRef(0),E=g.useRef(null),I=g.useRef("right"),O=g.useRef(0),M=v?jb:g.Fragment,$=v?{as:ohe,allowPinchZoom:!0}:void 0,L=R=>{var ee,J;const z=k.current+R,F=S().filter(U=>!U.disabled),B=document.activeElement,W=(ee=F.find(U=>U.ref.current===B))==null?void 0:ee.textValue,Z=F.map(U=>U.textValue),fe=bhe(Z,z,W),we=(J=F.find(U=>U.textValue===fe))==null?void 0:J.ref.current;(function U(Y){k.current=Y,window.clearTimeout(A.current),Y!==""&&(A.current=window.setTimeout(()=>U(""),1e3))})(z),we&&setTimeout(()=>we.focus())};g.useEffect(()=>()=>window.clearTimeout(A.current),[]),zP();const T=g.useCallback(R=>{var F,B;return I.current===((F=E.current)==null?void 0:F.side)&&whe(R,(B=E.current)==null?void 0:B.area)},[]);return o.jsx(ihe,{scope:n,searchRef:k,onItemEnter:g.useCallback(R=>{T(R)&&R.preventDefault()},[T]),onItemLeave:g.useCallback(R=>{var z;T(R)||((z=_.current)==null||z.focus(),N(null))},[T]),onTriggerLeave:g.useCallback(R=>{T(R)&&R.preventDefault()},[T]),pointerGraceTimerRef:C,onPointerGraceIntentChange:g.useCallback(R=>{E.current=R},[]),children:o.jsx(M,{...$,children:o.jsx(wb,{asChild:!0,trapped:i,onMountAutoFocus:le(a,R=>{var z;R.preventDefault(),(z=_.current)==null||z.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:o.jsx(sd,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:o.jsx(aB,{asChild:!0,...x,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:N,onEntryFocus:le(c,R=>{b.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:o.jsx(qN,{role:"menu","aria-orientation":"vertical","data-state":EB(y.open),"data-radix-menu-content":"",dir:b.dir,...w,...m,ref:P,style:{outline:"none",...m.style},onKeyDown:le(m.onKeyDown,R=>{const F=R.target.closest("[data-radix-menu-content]")===R.currentTarget,B=R.ctrlKey||R.altKey||R.metaKey,W=R.key.length===1;F&&(R.key==="Tab"&&R.preventDefault(),!B&&W&&L(R.key));const Z=_.current;if(R.target!==Z||!Yde.includes(R.key))return;R.preventDefault();const we=S().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);oB.includes(R.key)&&we.reverse(),vhe(we)}),onBlur:le(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(A.current),k.current="")}),onPointerMove:le(e.onPointerMove,Rf(R=>{const z=R.target,F=O.current!==R.clientX;if(R.currentTarget.contains(z)&&F){const B=R.clientX>O.current?"right":"left";I.current=B,O.current=R.clientX}}))})})})})})})});fB.displayName=ui;var lhe="MenuGroup",ZP=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return o.jsx(ye.div,{role:"group",...r,ref:t})});ZP.displayName=lhe;var che="MenuLabel",pB=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return o.jsx(ye.div,{...r,ref:t})});pB.displayName=che;var Av="MenuItem",hO="menu.itemSelect",Cb=g.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=g.useRef(null),s=Yp(Av,e.__scopeMenu),l=JP(Av,e.__scopeMenu),c=Me(t,a),u=g.useRef(!1),h=()=>{const d=a.current;if(!n&&d){const f=new CustomEvent(hO,{bubbles:!0,cancelable:!0});d.addEventListener(hO,p=>r==null?void 0:r(p),{once:!0}),_N(d,f),f.defaultPrevented?u.current=!1:s.onClose()}};return o.jsx(mB,{...i,ref:c,disabled:n,onClick:le(e.onClick,h),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),u.current=!0},onPointerUp:le(e.onPointerUp,d=>{var f;u.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:le(e.onKeyDown,d=>{const f=l.searchRef.current!=="";n||f&&d.key===" "||K1.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Cb.displayName=Av;var mB=g.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,s=JP(Av,n),l=cB(n),c=g.useRef(null),u=Me(t,c),[h,d]=g.useState(!1),[f,p]=g.useState("");return g.useEffect(()=>{const v=c.current;v&&p((v.textContent??"").trim())},[a.children]),o.jsx(If.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:o.jsx(sB,{asChild:!0,...l,focusable:!r,children:o.jsx(ye.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:le(e.onPointerMove,Rf(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:le(e.onPointerLeave,Rf(v=>s.onItemLeave(v))),onFocus:le(e.onFocus,()=>d(!0)),onBlur:le(e.onBlur,()=>d(!1))})})})}),uhe="MenuCheckboxItem",gB=g.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return o.jsx(wB,{scope:e.__scopeMenu,checked:n,children:o.jsx(Cb,{role:"menuitemcheckbox","aria-checked":Cv(n)?"mixed":n,...i,ref:t,"data-state":tA(n),onSelect:le(i.onSelect,()=>r==null?void 0:r(Cv(n)?!0:!n),{checkForDefaultPrevented:!1})})})});gB.displayName=uhe;var vB="MenuRadioGroup",[dhe,hhe]=Wl(vB,{value:void 0,onValueChange:()=>{}}),yB=g.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,a=tn(r);return o.jsx(dhe,{scope:e.__scopeMenu,value:n,onValueChange:a,children:o.jsx(ZP,{...i,ref:t})})});yB.displayName=vB;var bB="MenuRadioItem",xB=g.forwardRef((e,t)=>{const{value:n,...r}=e,i=hhe(bB,e.__scopeMenu),a=n===i.value;return o.jsx(wB,{scope:e.__scopeMenu,checked:a,children:o.jsx(Cb,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":tA(a),onSelect:le(r.onSelect,()=>{var s;return(s=i.onValueChange)==null?void 0:s.call(i,n)},{checkForDefaultPrevented:!1})})})});xB.displayName=bB;var eA="MenuItemIndicator",[wB,fhe]=Wl(eA,{checked:!1}),SB=g.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=fhe(eA,n);return o.jsx(Bn,{present:r||Cv(a.checked)||a.checked===!0,children:o.jsx(ye.span,{...i,ref:t,"data-state":tA(a.checked)})})});SB.displayName=eA;var phe="MenuSeparator",jB=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return o.jsx(ye.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});jB.displayName=phe;var mhe="MenuArrow",_B=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Ab(n);return o.jsx(HN,{...i,...r,ref:t})});_B.displayName=mhe;var ghe="MenuSub",[vze,NB]=Wl(ghe),jh="MenuSubTrigger",PB=g.forwardRef((e,t)=>{const n=ql(jh,e.__scopeMenu),r=Yp(jh,e.__scopeMenu),i=NB(jh,e.__scopeMenu),a=JP(jh,e.__scopeMenu),s=g.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=a,u={__scopeMenu:e.__scopeMenu},h=g.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return g.useEffect(()=>h,[h]),g.useEffect(()=>{const d=l.current;return()=>{window.clearTimeout(d),c(null)}},[l,c]),o.jsx(YP,{asChild:!0,...u,children:o.jsx(mB,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":EB(n.open),...e,ref:tb(t,i.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:le(e.onPointerMove,Rf(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100))})),onPointerLeave:le(e.onPointerLeave,Rf(d=>{var p,v;h();const f=(p=n.content)==null?void 0:p.getBoundingClientRect();if(f){const m=(v=n.content)==null?void 0:v.dataset.side,y=m==="right",b=y?-5:5,w=f[y?"left":"right"],x=f[y?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+b,y:d.clientY},{x:w,y:f.top},{x,y:f.top},{x,y:f.bottom},{x:w,y:f.bottom}],side:m}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:le(e.onKeyDown,d=>{var p;const f=a.searchRef.current!=="";e.disabled||f&&d.key===" "||Xde[r.dir].includes(d.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),d.preventDefault())})})})});PB.displayName=jh;var AB="MenuSubContent",CB=g.forwardRef((e,t)=>{const n=dB(ui,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ql(ui,e.__scopeMenu),s=Yp(ui,e.__scopeMenu),l=NB(AB,e.__scopeMenu),c=g.useRef(null),u=Me(t,c);return o.jsx(If.Provider,{scope:e.__scopeMenu,children:o.jsx(Bn,{present:r||a.open,children:o.jsx(If.Slot,{scope:e.__scopeMenu,children:o.jsx(QP,{id:l.contentId,"aria-labelledby":l.triggerId,...i,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:h=>{var d;s.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),h.preventDefault()},onCloseAutoFocus:h=>h.preventDefault(),onFocusOutside:le(e.onFocusOutside,h=>{h.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:le(e.onEscapeKeyDown,h=>{s.onClose(),h.preventDefault()}),onKeyDown:le(e.onKeyDown,h=>{var p;const d=h.currentTarget.contains(h.target),f=Jde[s.dir].includes(h.key);d&&f&&(a.onOpenChange(!1),(p=l.trigger)==null||p.focus(),h.preventDefault())})})})})})});CB.displayName=AB;function EB(e){return e?"open":"closed"}function Cv(e){return e==="indeterminate"}function tA(e){return Cv(e)?"indeterminate":e?"checked":"unchecked"}function vhe(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function yhe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function bhe(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=yhe(e,Math.max(a,0));i.length===1&&(s=s.filter(u=>u!==n));const c=s.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function xhe(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const l=t[a],c=t[s],u=l.x,h=l.y,d=c.x,f=c.y;h>r!=f>r&&n<(d-u)*(r-h)/(f-h)+u&&(i=!i)}return i}function whe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return xhe(n,t)}function Rf(e){return t=>t.pointerType==="mouse"?e(t):void 0}var She=uB,jhe=YP,_he=hB,Nhe=fB,Phe=ZP,Ahe=pB,Che=Cb,Ehe=gB,khe=yB,The=xB,Ohe=SB,Ihe=jB,Rhe=_B,Dhe=PB,Mhe=CB,Eb="DropdownMenu",[$he,yze]=Fn(Eb,[lB]),gr=lB(),[Lhe,kB]=$he(Eb),TB=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,c=gr(t),u=g.useRef(null),[h,d]=pi({prop:i,defaultProp:a??!1,onChange:s,caller:Eb});return o.jsx(Lhe,{scope:t,triggerId:li(),triggerRef:u,contentId:li(),open:h,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(f=>!f),[d]),modal:l,children:o.jsx(She,{...c,open:h,onOpenChange:d,dir:r,modal:l,children:n})})};TB.displayName=Eb;var OB="DropdownMenuTrigger",IB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=kB(OB,n),s=gr(n);return o.jsx(jhe,{asChild:!0,...s,children:o.jsx(ye.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:tb(t,a.triggerRef),onPointerDown:le(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:le(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});IB.displayName=OB;var Vhe="DropdownMenuPortal",RB=e=>{const{__scopeDropdownMenu:t,...n}=e,r=gr(t);return o.jsx(_he,{...r,...n})};RB.displayName=Vhe;var DB="DropdownMenuContent",MB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=kB(DB,n),a=gr(n),s=g.useRef(!1);return o.jsx(Nhe,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:le(e.onCloseAutoFocus,l=>{var c;s.current||(c=i.triggerRef.current)==null||c.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:le(e.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,h=c.button===2||u;(!i.modal||h)&&(s.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)"}})});MB.displayName=DB;var Fhe="DropdownMenuGroup",Bhe=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(Phe,{...i,...r,ref:t})});Bhe.displayName=Fhe;var zhe="DropdownMenuLabel",$B=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(Ahe,{...i,...r,ref:t})});$B.displayName=zhe;var Uhe="DropdownMenuItem",LB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(Che,{...i,...r,ref:t})});LB.displayName=Uhe;var Whe="DropdownMenuCheckboxItem",VB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(Ehe,{...i,...r,ref:t})});VB.displayName=Whe;var qhe="DropdownMenuRadioGroup",Hhe=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(khe,{...i,...r,ref:t})});Hhe.displayName=qhe;var Ghe="DropdownMenuRadioItem",FB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(The,{...i,...r,ref:t})});FB.displayName=Ghe;var Khe="DropdownMenuItemIndicator",BB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(Ohe,{...i,...r,ref:t})});BB.displayName=Khe;var Yhe="DropdownMenuSeparator",zB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(Ihe,{...i,...r,ref:t})});zB.displayName=Yhe;var Xhe="DropdownMenuArrow",Jhe=g.forwardRef((e,t)=>
580{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(Rhe,{...i,...r,ref:t})});Jhe.displayName=Xhe;var Qhe="DropdownMenuSubTrigger",UB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(Dhe,{...i,...r,ref:t})});UB.displayName=Qhe;var Zhe="DropdownMenuSubContent",WB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=gr(n);return o.jsx(Mhe,{...i,...r,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)"}})});WB.displayName=Zhe;var efe=TB,tfe=IB,nfe=RB,qB=MB,HB=$B,GB=LB,KB=VB,YB=FB,XB=BB,JB=zB,QB=UB,ZB=WB;const rfe=efe,ife=tfe,afe=g.forwardRef(({className:e,inset:t,children:n,...r},i)=>o.jsxs(QB,{ref:i,className:oe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...r,children:[n,o.jsx(EN,{className:"ml-auto h-4 w-4"})]}));afe.displayName=QB.displayName;const sfe=g.forwardRef(({className:e,...t},n)=>o.jsx(ZB,{ref:n,className:oe("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));sfe.displayName=ZB.displayName;const ez=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>o.jsx(nfe,{children:o.jsx(qB,{ref:r,sideOffset:t,className:oe("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),...n})}));ez.displayName=qB.displayName;const tz=g.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(GB,{ref:r,className:oe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n}));tz.displayName=GB.displayName;const ofe=g.forwardRef(({className:e,children:t,checked:n,...r},i)=>o.jsxs(KB,{ref:i,className:oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:n,...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(XB,{children:o.jsx(ft,{className:"h-4 w-4"})})}),t]}));ofe.displayName=KB.displayName;const lfe=g.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(YB,{ref:r,className:oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(XB,{children:o.jsx(h9,{className:"h-2 w-2 fill-current"})})}),t]}));lfe.displayName=YB.displayName;const cfe=g.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(HB,{ref:r,className:oe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));cfe.displayName=HB.displayName;const ufe=g.forwardRef(({className:e,...t},n)=>o.jsx(JB,{ref:n,className:oe("-mx-1 my-1 h-px bg-muted",e),...t}));ufe.displayName=JB.displayName;const iw=[{code:"en",name:"English",flag:"ðºð¸"},{code:"he",name:"×¢×ר×ת",flag:"ð®ð±"},{code:"es",name:"Español",flag:"ðªð¸"},{code:"fr",name:"Français",flag:"ð«ð·"},{code:"de",name:"Deutsch",flag:"ð©ðª"},{code:"pt",name:"Português",flag:"ð§ð·"}];function Y1(){var r;const{i18n:e}=Le(),t=((r=e.language)==null?void 0:r.substring(0,2))||"en",n=iw.find(i=>i.code===t)||iw[0];return o.jsxs(rfe,{children:[o.jsx(ife,{asChild:!0,children:o.jsxs(K,{variant:"ghost",size:"sm",className:"gap-2",children:[o.jsx("span",{className:"text-base",children:n.flag}),o.jsx(W3,{className:"h-4 w-4 text-muted-foreground"})]})}),o.jsx(ez,{align:"end",className:"min-w-[140px]",children:iw.map(i=>{var a;return o.jsxs(tz,{onClick:()=>e.changeLanguage(i.code),className:`gap-2 cursor-pointer ${(a=e.language)!=null&&a.startsWith(i.code)?"bg-primary/10":""}`,children:[o.jsx("span",{className:"text-base",children:i.flag}),o.jsx("span",{children:i.name})]},i.code)})})]})}const Ca="/assets/visible-logo-BL6TfZCc.png",dfe=["he","ar"],Tl=()=>{var y;const{t:e,i18n:t}=Le(),[n,r]=g.useState(!1),[i,a]=g.useState(!1),{user:s,profile:l,loading:c,signOut:u}
580=Hi(),h=pr(),d=zn(),f=dfe.includes(((y=t.language)==null?void 0:y.substring(0,2))||"en");g.useEffect(()=>{const b=()=>{r(window.scrollY>20)};return window.addEventListener("scroll",b),()=>window.removeEventListener("scroll",b)},[]);const p=[{href:"#how-it-works",label:e("nav.howItWorks")},{href:"/pricing",label:e("nav.pricing"),isRoute:!0},{href:"#faq",label:e("nav.faq")},{href:"/blog",label:e("nav.blog"),isRoute:!0}],v=(b,w)=>{b.preventDefault();const x=w;if(h.pathname!=="/")d("/"+x);else{const S=document.querySelector(x);S&&S.scrollIntoView({behavior:"smooth"})}},m=async()=>{await u(),a(!1)};return o.jsx(Q.nav,{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${n?"bg-background/95 backdrop-blur-xl shadow-sm border-b border-border/50":"bg-transparent"}`,initial:{y:-100},animate:{y:0},transition:{duration:.5},children:o.jsxs("div",{className:"container mx-auto h-32 md:h-40 flex items-center justify-between min-w-0 gap-2 px-4 sm:px-6",children:[o.jsx(se,{to:"/",className:"flex items-center flex-shrink min-w-0",children:o.jsx("img",{src:Ca,alt:"Visible",className:"h-32 sm:h-40 md:h-48 object-contain w-auto max-w-[400px] sm:max-w-[560px] md:max-w-none"})}),o.jsx("div",{className:"hidden md:flex items-center gap-8",children:p.map(b=>"isRoute"in b&&b.isRoute?o.jsx(se,{to:b.href,className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:b.label},b.href):o.jsx("a",{href:b.href,onClick:w=>v(w,b.href),className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors cursor-pointer",children:b.label},b.href))}),o.jsxs("div",{className:"hidden md:flex items-center gap-3",children:[o.jsx(Y1,{}),c?o.jsx("div",{className:"h-9 w-20 bg-muted animate-pulse rounded-md"}):s?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"text-sm text-muted-foreground",children:(l==null?void 0:l.full_name)||s.email}),o.jsx(K,{asChild:!0,variant:"outline",size:"sm",children:o.jsx(se,{to:"/billing",children:"Billing"})}),(l==null?void 0:l.is_admin)&&o.jsx(K,{asChild:!0,variant:"outline",size:"sm",children:o.jsxs(se,{to:"/admin",children:[o.jsx(iv,{className:"h-4 w-4 mr-1"}),"Admin"]})}),o.jsx(K,{variant:"ghost",size:"sm",onClick:m,children:o.jsx(hk,{className:"h-4 w-4"})})]}):o.jsxs(o.Fragment,{children:[o.jsx(K,{asChild:!0,variant:"ghost",size:"sm",children:o.jsx(se,{to:"/login",children:e("nav.login")})}),o.jsx(K,{asChild:!0,size:"sm",className:"shadow-md",children:o.jsx(se,{to:"/signup",children:e("nav.signUp")})})]})]}),o.jsxs("div",{className:"flex md:hidden items-center gap-1 min-w-0 flex-shrink-0",children:[!c&&!s&&o.jsx(K,{asChild:!0,size:"sm",variant:"default",className:"h-8 px-2 sm:px-3 text-xs sm:text-sm shadow-sm max-w-[30vw] sm:max-w-[40vw] min-w-0 truncate",children:o.jsx(se,{to:"/signup",children:e("nav.signUp")})}),!c&&s&&o.jsx(K,{asChild:!0,size:"sm",variant:"outline",className:"h-8 px-2 sm:px-3 text-xs sm:text-sm max-w-[30vw] sm:max-w-[40vw] min-w-0 truncate",children:o.jsx(se,{to:"/billing",children:"Billing"})}),o.jsxs(Tde,{open:i,onOpenChange:a,children:[o.jsx(Ode,{asChild:!0,children:o.jsx(K,{variant:"ghost",size:"icon",className:"h-9 w-9 flex-shrink-0",children:o.jsx(S9,{className:"h-5 w-5"})})}),o.jsxs(ZF,{side:f?"left":"right",className:"w-[min(300px,85vw)] pt-14 px-6 flex flex-col",children:[o.jsxs("div",{className:"flex flex-col gap-1 flex-1",children:[o.jsx("nav",{className:"space-y-1",children:p.map(b=>"isRoute"in b&&b.isRoute?o.jsx(se,{to:b.href,onClick:()=>a(!1),className:"block text-lg font-medium text-foreground hover:text-primary hover:bg-muted/50 transition-colors py-3 px-3 rounded-lg active:scale-[0.98]",children:b.label},b.href):o.jsx("a",{href:b.href,onClick:w=>{v(w,b.href),a(!1)},className:"block text-lg font-medium text-foreground hover:text-primary hover:bg-muted/50 transition-colors py-3 px-3 rounded-lg active:scale-[0.98] cursor-pointer",children:b.label},b.href))}),o.jsx("div",{className:"border-t border-border pt-6 mt-6",children:c?o.jsx("div",{className:"h-12 w-full bg-muted animate-pulse rounded-xl"}):s?o.jsxs("div",{className:"space-y-3",children:[o.jsxs("p",{className:"text-sm text-muted-foreground px-3",children:[e("nav.signedInAs")," ",o.jsx("span",{className:"font-medium text-foreground",children:(l==null?void 0:l.full_name)||s.email})]}),o.jsx(K,{asChild:!0,className:"w-full shadow-md h-12 text-base",onClick:()=>a(!1),children:o.jsx(se,{to:"/billing",children:"Billing"})}),(l==null?void 0:l.is_admin)&&o.jsx(K,{asChild:!0,variant:"outline",className:"w-full h-12 text-base",onClick:()=>a(!1),children:o.jsxs(se,{to:"/admin",children:[o.jsx(iv,{className:"mr-2 h-5 w-5"}),"Admin"]})}),o.jsxs(K,{variant:"outline",className:"w-full h-12 text-base",onClick:m,children:[o.jsx(hk,{className:"mr-2 h-5 w-5"}),e("nav.signOut")]})]}):o.jsxs("div",{className:"space-y-3",children:[o.jsx(K,{asChild:!0,className:"w-full shadow-md h-12 text-base",onClick:()=>a(!1),children:o.jsx(se,{to:"/signup",children:e("nav.signUp")})}),o.jsx(K,{asChild:!0,variant:"outline",className:"w-full h-12 text-base",onClick:()=>a(!1),children:o.jsx(se,{to:"/login",children:e("nav.login")})})]})}),o.jsx("div",{className:"border-t border-border pt-4 mt-4",children:o.jsx("div",{className:"px-3",children:o.jsx(Y1,{})})})]}),o.jsx("div",{className:"border-t border-border pt-4 pb-2 mt-auto",children:o.jsxs("div",{className:"flex items-center justify-center gap-4 text-sm text-muted-foreground",children:[o.jsx(se,{to:"/privacy",onClick:()=>a(!1),className:"hover:text-foreground transition-colors py-2",children:e("footer.privacy")}),o.jsx("span",{className:"text-border",children:"â¢"}),o.jsx(se,{to:"/terms",onClick:()=>a(!1),className:"hover:text-foreground transition-colors py-2",children:e("footer.terms")}),o.jsx("span",{className:"text-border",children:"â¢"}),o.jsx(se,{to:"/contact",onClick:()=>a(!1),className:"hover:text-foreground transition-colors py-2",children:e("footer.contact")})]})})]})]})]})]})})},aw=768;function nz(){const[e,t]=g.useState(void 0);return g.useEffect(()=>{const n=window.matchMedia(`(max-width: ${aw-1}px)`),r=()=>{t(window.innerWidth<aw)};return n.addEventListener("change",r),t(window.innerWidth<aw),()=>n.removeEventListener("change",r)},[]),!!e}const Ev="visible_landing_data",nA="visible_landing_intent",rz=60*60*1e3,fO=1280,hfe=9e5,ffe=[.88,.75,.62,.5];function pO(e){localStorage.setItem(nA,String(e))}async function pfe(e,t){return new Promise(n=>{const r=new Image;r.onload=()=>{try{const i=r.width,a=r.height,s=Math.max(i,a),l=s>fO?fO/s:1,c=document.createElement("canvas");c.width=Math.round(i*l),c.height=Math.round(a*l);const u=c.getContext("2d");if(!u){n(e);return}u.drawImage(r,0,0,c.width,c.height),n(c.toDataURL("image/jpeg",t))}catch{n(e)}},r.onerror=()=>n(e),r.src=e})}async function mfe(e){if(e.length===0)return[];const t=e[0];let n=t;for(const r of ffe)if(n=await pfe(t,r),n.length<=hfe)break;return[n]}async function gfe(e){const t=Date.now();try{const n=await mfe(e.images),r={...e,images:n,timestamp:t};
580return localStorage.setItem(Ev,JSON.stringify(r)),pO(t),!0}catch(n){console.error("[landing-data] Failed to save full payload, retrying lightweight payload:",n);try{const r={...e,images:[],timestamp:t};return localStorage.setItem(Ev,JSON.stringify(r)),pO(t),!0}catch(r){return console.error("[landing-data] Failed to save fallback payload:",r),!1}}}function vfe(){try{const e=localStorage.getItem(nA);if(!e)return!1;const t=Number(e);return!Number.isFinite(t)||Date.now()-t>rz?(kv(),!1):!0}catch(e){return console.error("[landing-data] Failed to read intent:",e),!1}}function yfe(){try{const e=localStorage.getItem(Ev);if(!e)return null;const t=JSON.parse(e);return Date.now()-t.timestamp>rz?(kv(),null):t}catch(e){return console.error("[landing-data] Failed to read:",e),null}}function kv(){try{localStorage.removeItem(Ev),localStorage.removeItem(nA)}catch{}}const sw=1;function bfe(){const{t:e,i18n:t}=Le(),[n,r]=g.useState("input"),[i,a]=g.useState(""),[s,l]=g.useState([]),[c,u]=g.useState(null),[h,d]=g.useState(null),f=g.useRef(null),p=g.useRef(null),v=g.useRef(null),m=x=>{const S=x.target.files;if(S){const j=sw-s.length;Array.from(S).slice(0,j).forEach(async _=>{const{trackEvent:P}=await $i(async()=>{const{trackEvent:C}=await Promise.resolve().then(()=>gv);return{trackEvent:C}},void 0),A=x.target===p.current?"camera":"gallery";P("landing_image_uploaded",{surface:"mobile",source:A,size_kb:Math.round(_.size/1024)});const k=new FileReader;k.onload=C=>{l(E=>{var I;return E.length>=sw?E:[...E,(I=C.target)==null?void 0:I.result]}),setTimeout(()=>{const E=document.querySelector("[data-generate-btn]");E==null||E.scrollIntoView({behavior:"smooth",block:"center"})},200)},k.readAsDataURL(_)})}x.target.value=""},y=async()=>{if(!i.trim())return;const{trackEvent:x}=await $i(async()=>{const{trackEvent:j}=await Promise.resolve().then(()=>gv);return{trackEvent:j}},void 0);x("landing_generate_clicked",{content_type:"carousel",has_image:s.length>0,image_count:s.length,surface:"mobile"}),await gfe({description:i,contentType:"carousel",images:s})&&(window.location.href="/signup?from=landing")};g.useEffect(()=>{const x=()=>{var N;const S=i.trim().length>0,j=s.length>0;if(S&&j){y();return}if(!S)d("topic"),(N=v.current)==null||N.scrollIntoView({behavior:"smooth",block:"center"}),window.setTimeout(()=>{var _;return(_=v.current)==null?void 0:_.focus()},350),Oe(e("tryItNow.mobile.hintTopic",{defaultValue:"Tell us what to post about â¨"}));else if(!j){d("image");const _=document.querySelector("[data-upload-area]");_==null||_.scrollIntoView({behavior:"smooth",block:"center"}),Oe(e("tryItNow.mobile.hintImage",{defaultValue:"Add a photo to continue ð¸"}))}window.setTimeout(()=>d(null),2400)};return window.addEventListener("visible:start-free-post",x),()=>window.removeEventListener("visible:start-free-post",x)},[i,s,e]);const b=()=>{r("input"),a(""),l([]),u(null)},w=x=>{l(S=>S.filter((j,N)=>N!==x))};return o.jsxs("section",{id:"try-it-now",className:"relative flex flex-col items-center justify-start pt-36 sm:pt-40 pb-12 px-4 sm:px-6 overflow-x-hidden overflow-y-auto",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-secondary/10 via-primary/5 to-background pointer-events-none"}),o.jsx("div",{className:"relative z-10 w-full max-w-3xl mx-auto",children:o.jsxs(Ul,{mode:"wait",children:[n==="input"&&o.jsx(wfe,{businessDescription:i,setBusinessDescription:a,uploadedImages:s,maxImages:sw,onImageUpload:m,onRemoveImage:w,onGenerate:y,fileInputRef:f,cameraInputRef:p,textareaRef:v,pulseField:h}),n==="generating"&&o.jsx(Sfe,{}),n==="result"&&c&&o.jsx(jfe,{post:c,onStartOver:b})]})})]})}function xfe(e,t=50,n=2e3){const[r,i]=g.useState(""),[a,s]=g.useState(0),[l,c]=g.useState(!0);return g.useEffect(()=>{const u=e[a];let h;return l?r.length<u.length?h=setTimeout(()=>{i(u.slice(0,r.length+1))},t):h=setTimeout(()=>{c(!1)},n):r.length>0?h=setTimeout(()=>{i(r.slice(0,-1))},t/2):(s(d=>(d+1)%e.length),c(!0)),()=>clearTimeout(h)},[r,l,a,e,t,n]),r}function wfe({businessDescription:e,setBusinessDescription:t,uploadedImages:n,maxImages:r,onImageUpload:i,onRemoveImage:a,onGenerate:s,fileInputRef:l,cameraInputRef:c,textareaRef:u,pulseField:h}){var j,N;const{t:d,i18n:f}=Le(),p=nz(),v=((j=f.language)==null?void 0:j.startsWith("he"))||((N=f.language)==null?void 0:N.startsWith("ar")),[m,y]=g.useState(!1),b=g.useRef(!1);g.useEffect(()=>{if(!p)return;
580const _=window.visualViewport;if(!_)return;const P=()=>{const A=_.height<window.innerHeight*.75;y(A)};return _.addEventListener("resize",P),()=>_.removeEventListener("resize",P)},[p]);const w=[d("tryItNow.mobile.examples.bakery"),d("tryItNow.mobile.examples.salon"),d("tryItNow.mobile.examples.restaurant"),d("tryItNow.mobile.examples.boutique")],x=xfe(w,40,2500),S=e.trim().length>0&&n.length>0;return o.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"space-y-5",children:[!m&&o.jsxs("div",{className:"text-center space-y-3 mb-2",children:[o.jsxs("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-semibold tracking-tight text-foreground leading-tight px-2",children:[d("tryItNow.mobile.headline"),o.jsx("br",{}),o.jsx("span",{className:"text-foreground",children:d("tryItNow.mobile.headlineHighlight")})]}),o.jsxs("p",{className:"text-sm sm:text-base text-muted-foreground max-w-xl mx-auto px-2 leading-relaxed",children:[d("tryItNow.mobile.subheadline")," ",o.jsx("span",{className:"font-medium text-foreground",children:d("tryItNow.mobile.cta")})]})]}),o.jsx("div",{className:"relative flex items-center justify-center mb-2 select-none",children:o.jsx(Q.h2,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.15},className:"text-lg sm:text-xl font-medium text-muted-foreground text-center leading-tight",children:d("tryItNow.mobile.makeFirstPost",{defaultValue:"Make your first post now"})})}),o.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"relative",children:[o.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-primary/15 to-secondary/15 rounded-3xl blur-2xl opacity-60"}),o.jsxs("div",{className:`relative bg-card backdrop-blur-sm rounded-2xl sm:rounded-3xl border-2 shadow-xl overflow-hidden transition-all duration-300 ${h==="topic"?"border-primary ring-4 ring-primary/30 animate-pulse":h==="image"?"border-secondary ring-4 ring-secondary/30":"border-border"}`,children:[o.jsxs("div",{className:"relative",children:[o.jsx("textarea",{ref:u,value:e,onChange:_=>{const P=_.target.value;!b.current&&P.trim().length>0&&(b.current=!0,$i(async()=>{const{trackEvent:A}=await Promise.resolve().then(()=>gv);return{trackEvent:A}},void 0).then(({trackEvent:A})=>{A("landing_topic_typed",{surface:"mobile"})})),t(P)},placeholder:"",rows:3,className:"w-full px-4 sm:px-6 py-5 sm:py-6 bg-transparent text-foreground text-base sm:text-lg resize-none outline-none placeholder:text-muted-foreground/50 touch-manipulation",dir:v?"rtl":"ltr"}),!e&&o.jsxs("div",{className:`absolute top-5 sm:top-6 ${v?"right-4 sm:right-6":"left-4 sm:left-6"} pointer-events-none text-foreground/55 text-base sm:text-lg`,children:[x,o.jsx(Q.span,{animate:{opacity:[1,0]},transition:{duration:.5,repeat:1/0,repeatType:"reverse"},className:"inline-block w-0.5 h-5 bg-primary ms-0.5 align-middle"})]})]}),o.jsxs("div",{className:"flex flex-col gap-3 px-3 sm:px-4 py-3 border-t border-border/50 bg-muted/30",children:[n.length>0&&o.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[n.map((_,P)=>o.jsxs("div",{className:"relative",children:[o.jsx("img",{src:_,alt:`Preview ${P+1}`,className:"w-14 h-14 sm:w-12 sm:h-12 rounded-lg object-cover border-2 border-primary"}),o.jsx("button",{onClick:()=>a(P),className:"absolute -top-1.5 -end-1.5 w-6 h-6 sm:w-5 sm:h-5 bg-destructive text-destructive-foreground rounded-full flex items-center justify-center shadow-md active:scale-90 transition-transform",children:o.jsx(xa,{className:"w-3.5 h-3.5 sm:w-3 sm:h-3"})})]},P)),o.jsx("span",{className:"text-xs text-muted-foreground ml-1",children:d("tryItNow.mobile.photoCount",{current:n.length,max:r})})]}),o.jsxs("div",{className:"flex items-stretch gap-2 min-w-0",children:[o.jsx("div",{"data-upload-area":!0,className:`flex items-stretch gap-2 flex-1 min-w-0 rounded-xl transition-all ${h==="image"?"ring-4 ring-secondary/40 animate-pulse":""}`,children:n.length<r&&o.jsxs(o.Fragment,{children:[p&&o.jsxs(Q.button,{onClick:()=>{var _;return(_=c.current)==null?void 0:_.click()},whileTap:{scale:.95},className:"flex flex-1 min-w-0 items-center justify-center gap-2 px-3 py-3 rounded-xl bg-gradient-to-r from-primary to-secondary text-primary-foreground shadow-md font-medium active:shadow-sm transition-all",children:[o.jsx(c9,{className:"w-5 h-5"}),o.jsx("span",{className:"text-sm font-semibold truncate",children:d("tryItNow.mobile.takePhoto")})]}),o.jsxs(Q.button,{onClick:()=>{var _;return(_=l.current)==null?void 0:_.click()},whileTap:{scale:.95},className:`flex items-center justify-center gap-2 rounded-xl transition-all font-medium active:scale-95 min-w-0 ${p?"flex-1 px-3 py-3 border-2 border-primary text-primary active:bg-primary active:text-primary-foreground":"px-5 py-3 bg-gradient-to-r from-primary to-secondary text-primary-foreground shadow-md"}`,children:[o.jsx(ib,{className:"w-5 h-5"}),o.jsx("span",{className:"text-sm font-semibold truncate",children:d(p?"tryItNow.mobile.gallery":"tryItNow.mobile.uploadPhoto")})]})]})}),o.jsx("input",{ref:c,type:"file",accept:"image/*",capture:"environment",onChange:i,className:"hidden"}),o.jsx("input",{ref:l,type:"file",accept:"image/*",multiple:!1,onChange:i,className:"hidden"})]}),o.jsxs(Q.button,{onClick:_=>{_.stopPropagation(),_.preventDefault(),S?s():window.dispatchEvent(new CustomEvent("visible:start-free-post",{detail:{location:"inline_submit"}}))},"data-generate-btn":!0,whileTap:{scale:.97}
580,className:`w-full mt-2 py-3.5 sm:py-4 px-4 rounded-xl flex items-center justify-center gap-2.5 font-medium text-sm sm:text-base transition-all touch-manipulation ${S?"bg-primary text-primary-foreground shadow-md shadow-primary/20 hover:shadow-lg active:shadow-sm":"bg-primary/90 text-primary-foreground shadow-sm hover:shadow-md opacity-90"}`,style:{WebkitTapHighlightColor:"transparent"},children:[o.jsx(kr,{className:"w-4 h-4 flex-shrink-0"}),o.jsx("span",{className:"truncate",children:S?d("tryItNow.mobile.startCta",{defaultValue:"Generate your first post!"}):e.trim()?d("tryItNow.mobile.startCtaNeedImage",{defaultValue:"Upload a photo for your first post"}):d("tryItNow.mobile.startCtaNeedTopic",{defaultValue:"Generate your first post!"})}),o.jsx(tr,{className:"w-4 h-4 rtl:rotate-180 flex-shrink-0"})]})]})]})]})]})}function Sfe(){const{t:e}=Le(),[t,n]=g.useState(0),r=[{emoji:"ð",key:"analyzing"},{emoji:"ð§ ",key:"understanding"},{emoji:"âï¸",key:"writing"},{emoji:"#ï¸â£",key:"hashtags"},{emoji:"â¨",key:"finishing"}];return g.useEffect(()=>{const i=setInterval(()=>{n(a=>a<r.length-1?a+1:a)},800);return()=>clearInterval(i)},[]),o.jsxs(Q.div,{initial:{opacity:0}
580,animate:{opacity:1},exit:{opacity:0},className:"flex flex-col items-center justify-center py-20 space-y-8",children:[o.jsxs("div",{className:"relative w-24 h-24",children:[o.jsx(Q.div,{className:"absolute inset-0 rounded-full border-4 border-primary/30",animate:{scale:[1,1.2,1],opacity:[.5,.2,.5]},transition:{duration:1.5,repeat:1/0}}),o.jsx(Q.div,{className:"absolute inset-0 rounded-full border-4 border-secondary/30",animate:{scale:[1.1,1.3,1.1],opacity:[.3,.1,.3]},transition:{duration:1.5,repeat:1/0,delay:.2}}),o.jsx("div",{className:"absolute inset-0 rounded-full border-4 border-primary border-t-transparent animate-spin"}),o.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:o.jsx(Q.span,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},className:"text-3xl",children:r[t].emoji},t)})]}),o.jsxs("div",{className:"text-center space-y-2",children:[o.jsx("h3",{className:"text-xl font-bold text-foreground",children:e("tryItNow.generating.title")}),o.jsx(Ul,{mode:"wait",children:o.jsx(Q.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"text-muted-foreground",children:e(`tryItNow.mobile.generating.${r[t].key}`)},t)})]}),o.jsx("div",{className:"flex gap-2",children:r.map((i,a)=>o.jsx(Q.div,{className:`w-2 h-2 rounded-full ${a<=t?"bg-primary":"bg-muted"}`,animate:a===t?{scale:[1,1.3,1]}:{},transition:{duration:.3}},a))})]})}function jfe({post:e,onStartOver:t}){const{t:n}=Le(),r=()=>{window.location.href="/signup"},i=[{id:"main",locked:!1},{id:"extra-1",locked:!0},{id:"extra-2",locked:!0},{id:"extra-3",locked:!0}],a=e.caption&&e.caption.split(/[.!?\n]/)[0].slice(0,30).trim()||"â¨";return o.jsxs(Q.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0},className:"space-y-6 max-w-md mx-auto",children:[o.jsxs(Q.div,{initial:{y:-20},animate:{y:0},className:"text-center",children:[o.jsx(Q.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",bounce:.5,delay:.2},className:"text-5xl mb-3",children:"ð"}),o.jsx("h2",{className:"text-2xl font-bold text-foreground",children:n("tryItNow.result.title")}),o.jsx("p",{className:"text-muted-foreground mt-1",children:n("tryItNow.mobile.result.subtitle")})]}),o.jsxs(Q.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3},className:"bg-card rounded-2xl shadow-xl overflow-hidden border border-border",children:[o.jsxs("div",{className:"flex items-center gap-3 p-3 border-b border-border",children:[o.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-primary via-secondary to-accent p-[2px]",children:o.jsx("div",{className:"w-full h-full rounded-full bg-card flex items-center justify-center",children:o.jsx("span",{className:"text-lg",children:"â¨"})})}),o.jsx("div",{className:"flex-1",children:o.jsx("div",{className:"font-semibold text-sm text-foreground truncate max-w-[200px]",children:a})}),o.jsx("div",{className:"text-muted-foreground",children:"â¢â¢â¢"})]}),o.jsx("div",{className:"p-3 pb-2",children:o.jsx("div",{className:"w-full rounded-xl border border-border bg-muted/30 overflow-hidden h-[52svh] min-h-[280px] max-h-[520px] flex items-center justify-center",children:e.imageUrl?o.jsx("img",{src:e.imageUrl,alt:"Generated post preview",className:"max-w-full max-h-full w-auto h-auto object-contain",loading:"lazy"}):o.jsx("div",{className:"w-full h-full bg-gradient-to-br from-primary/20 to-secondary/20 flex items-center justify-center",children:o.jsx("span",{className:"text-6xl",children:"ð¸"})})})}),o.jsx("div",{className:"px-3 pb-3",children:o.jsx("div",{className:"grid grid-cols-4 gap-2",children:i.map((s,l)=>o.jsxs("button",{type:"button",onClick:s.locked?r:void 0,className:`relative aspect-square rounded-lg overflow-hidden border transition-transform active:scale-95 ${l===0?"border-primary":"border-border"}`,"aria-label":s.locked?n("tryItNow.result.unlockSlide"):"Main preview image",children:[e.imageUrl?o.jsx("img",{src:e.imageUrl,alt:s.locked?"Locked preview image":"Preview image thumbnail",className:`w-full h-full ${s.locked?"object-cover blur-sm scale-110":"object-cover"}`,loading:"lazy"}):o.jsx("div",{className:"w-full h-full bg-muted"}),s.locked&&o.jsx("div",{className:"absolute inset-0 bg-foreground
580/35 backdrop-blur-[1px] flex items-center justify-center",children:o.jsx(ba,{className:"w-4 h-4 text-background"})})]},s.id))})}),o.jsxs("div",{className:"px-3 pb-3 space-y-3",children:[o.jsxs("div",{className:"flex justify-between",children:[o.jsxs("div",{className:"flex gap-4",children:[o.jsx("span",{className:"text-2xl",children:"â¤ï¸"}),o.jsx("span",{className:"text-2xl",children:"ð¬"}),o.jsx("span",{className:"text-2xl",children:"ð¤"})]}),o.jsx("span",{className:"text-2xl",children:"ð"})]}),o.jsxs("div",{className:"space-y-1",children:[o.jsx("p",{className:"text-sm text-foreground",children:e.caption}),o.jsx("p",{className:"text-sm text-primary",children:e.hashtags.map((s,l)=>o.jsx("span",{className:"me-1",children:s.startsWith("#")?s:`#${s}`},`${s}-${l}`))})]})]})]}),o.jsxs(Q.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.5},className:"space-y-3",children:[o.jsx("div",{className:"text-center p-3 rounded-xl bg-primary/5 border border-primary/20",children:o.jsxs("p",{className:"text-sm font-medium text-foreground",children:["⨠",n("tryItNow.result.unlockMessage")]})}),o.jsxs("button",{onClick:r,className:"w-full py-4 rounded-2xl font-semibold text-lg text-primary-foreground bg-gradient-to-r from-primary to-secondary shadow-lg shadow-primary/30 flex items-center justify-center gap-2 active:scale-[0.98] transition-transform",children:[o.jsx("span",{children:n("tryItNow.result.cta",{count:2})}),o.jsx(tr,{className:"w-5 h-5"})]}),o.jsxs("button",{onClick:t,className:"w-full py-3 rounded-2xl font-medium text-muted-foreground bg-muted flex items-center justify-center gap-2 active:scale-[0.98] transition-transform hover:bg-muted/80",children:[o.jsx(rv,{className:"w-4 h-4"}),n("tryItNow.mobile.tryAnother")]})]}),o.jsx("p",{className:"text-center text-xs text-muted-foreground",children:n("cta.noCreditCard")})]})}const rA=({location:e,className:t,size:n="lg",children:r})=>{const i=()=>{try{console.log("start_free_post_clicked",{location:e}),$i(async()=>{const{trackEvent:s}=await Promise.resolve().then(()=>gv);return{trackEvent:s}},void 0).then(({trackEvent:s})=>{s("cta_clicked",{cta:"start_free_post",location:e})}),$i(async()=>{const{trackFunnel:s}=await import("./funnelTracker-D6o5ihHW.js");return{trackFunnel:s}},[]).then(({trackFunnel:s})=>{s("cta_start_free_post_clicked",{location:e})})}catch{}const a=document.getElementById("try-it-now");a&&a.scrollIntoView({behavior:"smooth",block:"start"}),window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("visible:start-free-post",{detail:{location:e}}))},350)};return o.jsxs(K,{variant:"hero",size:n,onClick:i,className:oe("gap-2 font-semibold",t),children:[o.jsx(kr,{className:"w-5 h-5"}),r]})},_fe=({croissantImage:e,instagramImage:t})=>{const{t:n,i18n:r}=Le(),i=r.language==="he";return o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"absolute -top-20 -left-20 w-64 h-64 bg-gradient-to-br from-orange-300 to-pink-300 opacity-30 rounded-full blur-3xl"}),o.jsx("div",{className:"absolute -bottom-20 -right-20 w-72 h-72 bg-gradient-to-br from-pink-300 to-purple-300 opacity-30 rounded-full blur-3xl"}),o.jsxs("div",{className:"relative rounded-[52px] p-[10px] shadow-2xl",style:{width:"280px",height:"560px",background:"linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #2d2d2d 100%)",boxShadow:"0 50px 100px -20px rgba(0,0,0,0.5), 0 30px 60px -30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1)"},children:[o.jsx("div",{className:"absolute -left-[2px] top-[100px] w-[3px] h-[28px] bg-gray-700 rounded-l"}),o.jsx("div",{className:"absolute -left-[2px] top-[145px] w-[3px] h-[50px] bg-gray-700 rounded-l"}),o.jsx("div",{className:"absolute -left-[2px] top-[205px] w-[3px] h-[50px] bg-gray-700 rounded-l"}),o.jsx("div",{className:"absolute -right-[2px] top-[160px] w-[3px] h-[65px] bg-gray-700 rounded-r"}),o.jsxs("div",{className:"w-full h-full bg-white rounded-[44px] overflow-hidden relative",dir:i?"rtl":"ltr",children:[o.jsx("div",{className:"absolute top-[10px] left-1/2 -translate-x-1/2 w-[85px] h-[25px] bg-black rounded-full z-50 flex items-center justify-center",children:o.jsx("div",{className:"w-2 h-2 bg-gray-800 rounded-full"})}),o.jsxs("div",{className:"h-[44px] bg-[#008069] flex items-end justify-between px-6 pb-1",children:[o.jsx("span",{className:"text-white text-sm font-semibold",children:"9:41"}),o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("svg",{className:"w-4 h-3",fill:"white",viewBox:"0 0 16 12",children:o.jsx("path",{d:"M1 4.5L3 6.5C6 3.5 10 3.5 13 6.5L15 4.5C11 0.5 5 0.5 1 4.5ZM5 8.5L8 11.5L11 8.5C9.3 6.8 6.7 6.8 5 8.5Z"})}),o.jsx("div",{className:"w-5 h-2.5 border border-white rounded-sm flex items-center p-[1px]",children:o.jsx("div",{className:"w-3 h-1.5 bg-white rounded-sm"})})]})]}),o.jsxs("div",{className:"h-[52px] bg-[#008069] flex items-center px-2 gap-2",children:[o.jsx("svg",{className:`w-6 h-6 text-white ${i?"rotate-180":""}`,fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})}),o.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-orange-400 to-pink-500 flex items-center justify-center flex-shrink-0",children:o.jsx("span",{className:"text-white font-bold text-sm",children:"V"})}),o.jsxs("div",{className:"flex-1",children:[o.jsx("div",{className:"text-white text-[15px] font-semibold",children:"Visible AI"}),o.jsx("div",{className:"text-white/80 text-xs",children:n("mockup.online")})]}
580),o.jsx("svg",{className:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",strokeWidth:"1.8",viewBox:"0 0 24 24",children:o.jsx("path",{d:"M15.5 10.5V6.5C15.5 5.67 14.83 5 14 5H6C5.17 5 4.5 5.67 4.5 6.5V15.5C4.5 16.33 5.17 17 6 17H10M19.5 10L15.5 13V10.5V15.5L19.5 18.5V10Z"})}),o.jsx("svg",{className:"w-5 h-5 text-white ms-3",fill:"none",stroke:"currentColor",strokeWidth:"1.8",viewBox:"0 0 24 24",children:o.jsx("path",{d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})})]}),o.jsxs("div",{className:"h-[340px] p-2 flex flex-col gap-1.5 overflow-y-auto",style:{backgroundColor:"#ECE5DD"},children:[o.jsx("div",{className:"self-start max-w-[85%]",children:o.jsxs("div",{className:`bg-white rounded-lg ${i?"rounded-tr-none":"rounded-tl-none"} px-3 py-2 shadow-sm`,children:[o.jsx("p",{className:"text-[13px] text-gray-800 leading-snug",children:n("mockup.botGreeting")}),o.jsx("span",{className:`text-[10px] text-gray-500 ${i?"float-left":"float-right"} mt-1`,children:"10:30"})]})}),o.jsx("div",{className:"self-end max-w-[75%]",children:o.jsxs("div",{className:`bg-[#d9fdd3] rounded-lg ${i?"rounded-tl-none":"rounded-tr-none"} px-3 py-2 shadow-sm`,children:[o.jsx("p",{className:"text-[13px] text-gray-800",children:n("mockup.userMessage")}),o.jsxs("div",{className:`flex items-center ${i?"justify-start":"justify-end"} gap-1 mt-1`,children:[o.jsx("span",{className:"text-[10px] text-gray-500",children:"10:31"}),o.jsx("svg",{className:"w-4 h-3 text-[#53bdeb]",fill:"currentColor",viewBox:"0 0 16 11",children:o.jsx("path",{d:"M11.07.65c-.14-.05-.3-.03-.42.06L4.45 7.95 2.04 5.53a.44.44 0 0 0-.63 0l-.31.32a.44.44 0 0 0 0 .63l3 3c.14.14.33.2.51.2.19 0 .37-.07.5-.2l6.8-8.4a.44.44 0 0 0-.13-.7l-.5-.33z"})})]})]})}),o.jsx("div",{className:"self-end max-w-[60%]",children:o.jsxs("div",{className:`bg-[#d9fdd3] rounded-lg ${i?"rounded-tl-none":"rounded-tr-none"} p-1 shadow-sm`,children:[o.jsx("img",{src:e,alt:"Croissant photo",className:"rounded-md w-full h-20 object-cover"}),o.jsxs("div",{className:`flex items-center ${i?"justify-start":"justify-end"} gap-1 px-2 py-1`,children:[o.jsx("span",{className:"text-[10px] text-gray-500",children:"10:31"}),o.jsx("svg",{className:"w-4 h-3 text-[#53bdeb]",fill:"currentColor",viewBox:"0 0 16 11",children:o.jsx("path",{d:"M11.07.65c-.14-.05-.3-.03-.42.06L4.45 7.95 2.04 5.53a.44.44 0 0 0-.63 0l-.31.32a.44.44 0 0 0 0 .63l3 3c.14.14.33.2.51.2.19 0 .37-.07.5-.2l6.8-8.4a.44.44 0 0 0-.13-.7l-.5-.33z"})})]})]})}),o.jsx("div",{className:"self-start max-w-[80%]",children:o.jsxs("div",{className:`bg-white rounded-lg ${i?"rounded-tr-none":"rounded-tl-none"} px-3 py-2 shadow-sm`,children:[o.jsx("p",{className:"text-[13px] text-gray-800",children:n("mockup.botProcessing")}),o.jsx("span",{className:`text-[10px] text-gray-500 ${i?"float-left":"float-right"} mt-1`,children:"10:32"})]})}),o.jsx("div",{className:"self-start max-w-[88%]",children:o.jsxs("div",{className:`bg-white rounded-lg ${i?"rounded-tr-none":"rounded-tl-none"} p-1.5 shadow-sm`,children:[o.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",dir:"ltr",children:[o.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2 border-b border-gray-100",children:[o.jsx("div",{className:"w-7 h-7 rounded-full p-[2px] bg-gradient-to-br from-yellow-400 via-pink-500 to-purple-600",children:o.jsx("div",{className:"w-full h-full rounded-full bg-white flex items-center justify-center",children:o.jsx("span",{className:"text-[10px]",children:"ð¥"})})}),o.jsxs("div",{className:"flex-1",children:[o.jsx("span",{className:"text-xs font-semibold text-gray-900",children:"golden_crust_bakery"}),o.jsx("div",{className:"text-[10px] text-gray-500",children:"Paris, France"})]})]}),o.jsx("img",{src:e,alt:"Beautiful bakery croissants",className:"w-full h-28 object-cover"}),o.jsxs("div",{className:"flex items-center justify-between px-2.5 py-2",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("svg",{className:"w-5 h-5 text-red-500",fill:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),o.jsx("svg",{className:"w-5 h-5 text-gray-800",fill:"none",stroke:"currentColor",strokeWidth:"1.8",viewBox:"0 0 24 24",children:o.jsx("path",{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"})}),o.jsx("svg",{className:"w-5 h-5 text-gray-800",fill:"none",stroke:"currentColor",strokeWidth:"1.8",viewBox:"0 0 24 24",children:o.jsx("path",{d:"M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"})})]}),o.jsx("svg",{className:"w-5 h-5 text-gray-800",fill:"none",stroke:"currentColor",strokeWidth:"1.8",viewBox:"0 0 24 24",children:o.jsx("path",{d:"M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"})})]}),o.jsxs("div",{className:"px-2.5 pb-2",children:[o.jsx("div",{className:"text-xs font-semibold text-gray-900 mb-0.5",children:n("mockup.likes")}),o.jsxs("p",{className:"text-xs text-gray-900",children:[o.jsx("span",{className:"font-semibold",children:"golden_crust_bakery"})," ",n("mockup.caption")]})]})]}),o.jsxs("div",{className:"flex items-center justify-between px-1 pt-2",children:[o.jsx("span",{className:"text-[13px] text-gray-800 font-medium",children:n("mockup.readyToPost")}),o.jsx("span",{className:"text-[10px] text-gray-500",children:"10:32"})]})]})})]}),o.jsxs("div",{className:"h-[50px] bg-[#f0f2f5] flex items-center px-2 gap-2",children:[o.jsx("div",{className:"p-1.5 text-gray-500",children:o.jsxs("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",strokeWidth:"1.5",viewBox:"0 0 24 24",children:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}
580),o.jsx("path",{d:"M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"})]})}),o.jsx("div",{className:"flex-1 bg-white rounded-full px-4 py-2 text-sm text-gray-400",children:n("mockup.inputPlaceholder")}),o.jsx("div",{className:"w-9 h-9 rounded-full bg-[#00a884] flex items-center justify-center",children:o.jsxs("svg",{className:"w-5 h-5 text-white",fill:"currentColor",viewBox:"0 0 24 24",children:[o.jsx("path",{d:"M12 15c1.66 0 3-1.34 3-3V6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .55-.45 1-1 1s-1-.45-1-1V6z"}),o.jsx("path",{d:"M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"})]})})]}),o.jsx("div",{className:"h-[14px] bg-[#f0f2f5] flex items-center justify-center",children:o.jsx("div",{className:"w-24 h-1 bg-black rounded-full"})})]})]})]})},iA="/assets/croissant-chat-D1NDlnTp.jpg",Nfe=3200,mO=3,Pfe=()=>{const{t:e}=Le(),[t,n]=g.useState(0);return g.useEffect(()=>{const r=setInterval(()=>{n(i=>(i+1)%mO)},Nfe);return()=>clearInterval(r)},[]),o.jsx("div",{className:"md:hidden w-full px-4 mt-2 mb-8","aria-label":e("mobileDemo.aria"),children:o.jsxs("div",{className:"relative mx-auto max-w-[340px]",children:[o.jsx("div",{className:"absolute inset-0 -z-10 blur-3xl opacity-40 bg-gradient-to-br from-orange-200 via-pink-200 to-purple-200 rounded-[40px]"}),o.jsxs("div",{className:"relative rounded-3xl bg-white shadow-xl border border-border/40 overflow-hidden",children:[o.jsx("div",{className:"absolute top-3 left-1/2 -translate-x-1/2 z-20 flex gap-1.5",children:Array.from({length:mO}).map((r,i)=>o.jsx("span",{className:`h-1.5 rounded-full transition-all duration-300 ${i===t?"w-6 bg-primary":"w-1.5 bg-muted-foreground/30"}`},i))}),o.jsx("div",{className:"relative h-[360px] w-full bg-gradient-to-br from-orange-50 via-white to-pink-50",children:o.jsxs(Ul,{mode:"wait",children:[t===0&&o.jsx(Afe,{},"upload"),t===1&&o.jsx(Cfe,{},"ai"),t===2&&o.jsx(Efe,{},"approve")]})}),o.jsx("div",{className:"px-4 py-3 border-t border-border/40 bg-white",children:o.jsxs("p",{className:"text-sm font-semibold text-foreground",children:[t===0&&e("mobileDemo.step1"),t===1&&e("mobileDemo.step2"),t===2&&e("mobileDemo.step3")]})})]})]})})},Afe=()=>{const{t:e}=Le(),t=e("mobileDemo.subjectText"),[n,r]=g.useState("");return g.useEffect(()=>{let i=0;const a=setInterval(()=>{i+=2,r(t.slice(0,i)),i>=t.length&&clearInterval(a)},35);return()=>clearInterval(a)},[t]),o.jsxs(Q.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.35},className:"absolute inset-0 p-5 flex flex-col gap-3 pt-8",children:[o.jsxs(Q.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.1,type:"spring",stiffness:200},className:"relative rounded-xl overflow-hidden border-2 border-white shadow-md h-[140px]",children:[o.jsx("img",{src:iA,alt:"",className:"w-full h-full object-cover"}),o.jsxs("div",{className:"absolute top-2 right-2 bg-white/90 backdrop-blur-sm rounded-full px-2 py-1 flex items-center gap-1 text-[10px] font-semibold text-foreground shadow-sm",children:[o.jsx(ft,{className:"w-3 h-3 text-green-600"}),e("mobileDemo.photoUploaded")]}),o.jsxs("div",{className:"absolute bottom-2 left-2 bg-black/50 backdrop-blur-sm rounded-md px-2 py-0.5 flex items-center gap-1 text-[10px] text-white",children:[o.jsx(ib,{className:"w-3 h-3"}),"1/1"]})]}),o.jsxs(Q.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{delay:.3},className:"rounded-xl bg-white border border-border/60 shadow-sm p-3",children:[o.jsxs("div",{className:"flex items-center gap-1.5 mb-1.5",children:[o.jsx(LS,{className:"w-3.5 h-3.5 text-primary"}),o.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:e("mobileDemo.subjectLabel")})]}),o.jsxs("p",{className:"text-sm text-foreground leading-relaxed min-h-[40px]",children:[n,o.jsx("span",{className:"inline-block w-[2px] h-4 align-middle bg-primary animate-pulse ms-0.5"})]})]})]})},Cfe=()=>{const{t:e}=Le(),t=[e("mobileDemo.aiStep1"),e("mobileDemo.aiStep2"),e("mobileDemo.aiStep3")],[n,r]=g.useState(0);return g.useEffect(()=>{const i=setInterval(()=>{r(a=>Math.min(a+1,t.length-1))},800);return()=>clearInterval(i)},[t.length]),o.jsxs(Q.div,{initial:{opacity:0,x:20}
580,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.35},className:"absolute inset-0 p-5 flex flex-col gap-4 pt-8",children:[o.jsx("div",{className:"flex items-center justify-center gap-2 mt-2",children:o.jsx(Q.div,{animate:{rotate:360},transition:{duration:3,repeat:1/0,ease:"linear"},className:"w-12 h-12 rounded-full bg-gradient-to-br from-orange-400 via-pink-500 to-purple-500 flex items-center justify-center shadow-lg",children:o.jsx(kr,{className:"w-6 h-6 text-white"})})}),o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"text-sm font-bold text-foreground",children:e("mobileDemo.aiTitle")}),o.jsx("div",{className:"text-xs text-muted-foreground",children:e("mobileDemo.aiSubtitle")})]}),o.jsx("div",{className:"flex flex-col gap-2 mt-2",children:t.map((i,a)=>{const s=a<n,l=a===n;return o.jsxs(Q.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:a*.15},className:`flex items-center gap-2.5 rounded-lg px-3 py-2 border ${s?"bg-green-50 border-green-200":l?"bg-white border-primary/40 shadow-sm":"bg-white/60 border-border/40"}`,children:[o.jsx("span",{className:`w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 ${s?"bg-green-500 text-white":l?"bg-primary/10 border-2 border-primary":"bg-muted"}`,children:s?o.jsx(ft,{className:"w-3 h-3"}):l?o.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary animate-pulse"}):null}),o.jsx("span",{className:`text-xs ${s?"text-green-700 font-medium":l?"text-foreground font-semibold":"text-muted-foreground"}`,children:i})]},a)})})]})},Efe=()=>{const{t:e}=Le(),[t,n]=g.useState(!1);return g.useEffect(()=>{const r=setTimeout(()=>n(!0),1400);return()=>clearTimeout(r)},[]),o.jsxs(Q.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,scale:.98},transition:{duration:.35},className:"absolute inset-0 p-4 flex flex-col items-center justify-center gap-3 pt-6",children:[o.jsxs("div",{className:"w-full max-w-[260px] rounded-xl overflow-hidden bg-white border border-border shadow-lg",dir:"ltr",children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[o.jsx("div",{className:"w-7 h-7 rounded-full p-[2px] bg-gradient-to-tr from-yellow-400 via-pink-500 to-purple-600",children:o.jsx("div",{className:"w-full h-full rounded-full bg-white flex items-center justify-center text-[10px]",children:"ð¥"})}),o.jsxs("div",{className:"flex-1",children:[o.jsx("div",{className:"text-xs font-semibold text-gray-900 leading-tight",children:"golden_crust_bakery"}),o.jsx("div",{className:"text-[10px] text-gray-500 leading-tight",children:"Paris, France"})]})]}),o.jsx("img",{src:iA,alt:"",className:"w-full h-28 object-cover"}),o.jsxs("div",{className:"px-3 py-2",children:[o.jsxs("div",{className:"flex items-center justify-between mb-1",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(q3,{className:"w-4 h-4 text-red-500 fill-red-500"}),o.jsx(ld,{className:"w-4 h-4 text-gray-800"}),o.jsx(Dp,{className:"w-4 h-4 text-gray-800"})]}),o.jsx(F3,{className:"w-4 h-4 text-gray-800"})]}),o.jsxs("p",{className:"text-[11px] text-gray-900 line-clamp-2",children:[o.jsx("span",{className:"font-semibold",children:"golden_crust_bakery"})," ",e("mockup.caption")]})]})]}),o.jsx(Ul,{mode:"wait",children:t?o.jsxs(Q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{type:"spring",stiffness:260},className:"w-full max-w-[260px] rounded-full bg-green-500 text-white text-sm font-semibold py-2.5 shadow-md flex items-center justify-center gap-2",children:[o.jsx(ft,{className:"w-4 h-4"}),e("mobileDemo.published")]},"published"):o.jsxs(Q.button,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},className:"w-full max-w-[260px] rounded-full bg-primary text-primary-foreground text-sm font-semibold py-2.5 shadow-md flex items-center justify-center gap-2",children:[o.jsx(ft,{className:"w-4 h-4"}),e("mobileDemo.approveButton")]},"approve-btn")})]})},kfe=({croissantImage:e,instagramImage:t})=>{const{t:n}=Le();return o.jsxs("section",{className:"relative pt-36 pb-8 md:pt-44 md:pb-16 overflow-hidden",children:[o.jsx("div",{className:"blob w-[500px] h-[500px] bg-gradient-to-br from-violet-300 to-fuchsia-300 -top-48 -start-48 animate-blob"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-fuchsia-300 to-purple-300 top-1/2 -end-48 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"container mx-auto px-4 sm:px-6 relative z-10",children:o.jsxs("div",{className:"flex flex-col lg:flex-row items-center lg:gap-4",children:[o.jsxs(Q.div,{className:"lg:flex-[1.3] text-center lg:text-start lg:pe-4",initial:{opacity:0,y:30}
580,animate:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},children:[o.jsxs(Q.div,{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full glass shadow-soft mb-6",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.2,duration:.5},children:[o.jsxs("span",{className:"relative flex h-2 w-2",children:[o.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),o.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-green-500"})]}),o.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:n("hero.badge")})]}),o.jsxs(Q.h1,{className:"text-4xl md:text-5xl lg:text-6xl font-bold leading-[1.1] mb-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3,duration:.8},children:[n("hero.title")," ",o.jsx("span",{className:"gradient-text",children:n("hero.titleHighlight")})]}),o.jsx(Q.p,{className:"text-lg md:text-xl text-muted-foreground mx-auto lg:mx-0 mb-8 leading-relaxed",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4,duration:.8},children:n("hero.subtitle")}),o.jsxs(Q.div,{className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5,duration:.8},children:[o.jsx(rA,{location:"hero",className:"shadow-lg hover:shadow-xl transition-shadow w-full sm:w-auto",children:n("hero.ctaPrimary",{defaultValue:"Start your free post now"})}),o.jsx(K,{variant:"heroOutline",size:"lg",className:"w-full sm:w-auto",onClick:()=>{var r;return(r=document.getElementById("how-it-works"))==null?void 0:r.scrollIntoView({behavior:"smooth"})},children:n("hero.ctaSecondary")})]}),o.jsx(Pfe,{}),o.jsxs(Q.div,{className:"flex items-center gap-4 justify-center lg:justify-start mt-10",initial:{opacity:0}
580,animate:{opacity:1},transition:{delay:.7,duration:.8},children:[o.jsx("div",{className:"flex -space-x-3 rtl:space-x-reverse",children:[{initials:"MA",color:"from-orange-400 to-orange-500"},{initials:"JK",color:"from-pink-400 to-pink-500"},{initials:"SR",color:"from-purple-400 to-purple-500"},{initials:"DL",color:"from-blue-400 to-blue-500"}].map((r,i)=>o.jsx("div",{className:`w-10 h-10 rounded-full bg-gradient-to-br ${r.color} border-2 border-white flex items-center justify-center text-white text-xs font-semibold shadow-md`,children:r.initials},i))}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[o.jsx("span",{className:"font-semibold text-foreground",children:"500+"})," ",n("hero.socialProof")]})]})]}),o.jsx(Q.div,{className:"lg:flex-[0.7] flex justify-center lg:justify-end mt-8 lg:mt-0",initial:{opacity:0,x:50,y:20},animate:{opacity:1,x:0,y:0},transition:{delay:.4,duration:1,ease:"easeOut"},children:o.jsx("div",{className:"animate-float",children:o.jsx(_fe,{croissantImage:e,instagramImage:t})})})]})})]})},Tfe=()=>{const{t:e}=Le(),t=[{emoji:"ð¸",title:e("howItWorks.step1Title"),description:e("howItWorks.step1Desc"),step:1},{emoji:"â¨",title:e("howItWorks.step2Title"),description:e("howItWorks.step2Desc"),step:2},{emoji:"ð",title:e("howItWorks.step3Title"),description:e("howItWorks.step3Desc"),step:3}];return o.jsxs("section",{id:"how-it-works",className:"relative py-16 sm:py-24 md:py-32 section-wrapper",children:[o.jsx("div",{className:"absolute inset-x-0 top-0 h-32 bg-gradient-to-b from-transparent via-white/30 to-transparent pointer-events-none"}),o.jsxs("div",{className:"container mx-auto px-4 sm:px-6 relative z-10",children:[o.jsxs(Q.div,{className:"text-center mb-10 sm:mb-16 md:mb-20",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8},children:[o.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-semibold tracking-tight mb-3 sm:mb-4 text-foreground",children:e("howItWorks.title")}),o.jsx("p",{className:"text-base sm:text-lg text-muted-foreground max-w-2xl mx-auto",children:e("howItWorks.subtitle")})]}),o.jsxs("div",{className:"relative max-w-5xl mx-auto",children:[o.jsx(Q.div,{className:"hidden md:block absolute top-[72px] start-[20%] end-[20%] h-1 rounded-full overflow-hidden",initial:{opacity:0}
580,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.5,duration:.8},children:o.jsx("div",{className:"w-full h-full bg-gradient-to-r from-violet-200 via-fuchsia-300 to-violet-200 rtl:bg-gradient-to-l"})}),o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-8 sm:gap-10 md:gap-8",children:t.map((n,r)=>o.jsxs(Q.div,{className:"relative flex flex-col items-center text-center",initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{delay:r*.2,duration:.7},children:[o.jsxs("div",{className:"relative mb-5 sm:mb-6",children:[o.jsx("div",{className:"absolute -top-1.5 -end-1.5 sm:-top-2 sm:-end-2 w-8 h-8 sm:w-9 sm:h-9 rounded-full gradient-bg flex items-center justify-center text-white text-sm font-bold shadow-lg z-10",children:n.step}),o.jsx("div",{className:"w-24 h-24 sm:w-28 sm:h-28 md:w-32 md:h-32 rounded-full gradient-bg p-1 shadow-xl",children:o.jsx("div",{className:"w-full h-full rounded-full bg-white flex items-center justify-center shadow-inner",children:o.jsx("span",{className:"text-4xl sm:text-5xl md:text-6xl",children:n.emoji})})})]}),o.jsx("h3",{className:"text-lg sm:text-xl md:text-2xl font-semibold mb-2 sm:mb-3",children:n.title}),o.jsx("p",{className:"text-sm sm:text-base text-muted-foreground leading-relaxed max-w-[280px]",children:n.description})]},r))})]})]})]})},Ofe=()=>{const{t:e}=Le(),t=[{emoji:"ð±",title:e("whyWhatsApp.feature1Title"),description:e("whyWhatsApp.feature1Desc")},{emoji:"ð¡",title:e("whyWhatsApp.feature2Title"),description:e("whyWhatsApp.feature2Desc")},{emoji:"â°",title:e("whyWhatsApp.feature3Title"),description:e("whyWhatsApp.feature3Desc")},{emoji:"ð",title:e("whyWhatsApp.feature4Title"),description:e("whyWhatsApp.feature4Desc")}];return o.jsxs("section",{className:"relative py-16 sm:py-24 md:py-32 section-wrapper",children:[o.jsx("div",{className:"blob w-[600px] h-[600px] bg-gradient-to-br from-violet-200 to-fuchsia-200 -left-1/4 top-1/2 -translate-y-1/2"}),o.jsxs("div",{className:"container mx-auto px-4 sm:px-6 relative z-10",children:[o.jsxs(Q.div,{className:"text-center mb-10 sm:mb-14",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8},children:[o.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-semibold tracking-tight mb-3 sm:mb-4 text-foreground",children:e("whyWhatsApp.title")}),o.jsx("p",{className:"text-base sm:text-lg text-muted-foreground max-w-2xl mx-auto",children:e("whyWhatsApp.subtitle")})]}),o.jsx("div",{className:"grid sm:grid-cols-2 gap-4 sm:gap-5 max-w-3xl mx-auto",children:t.map((n,r)=>o.jsxs(Q.div,{className:"card-elevated card-hover p-5 sm:p-6 flex items-start gap-3 sm:gap-4",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{delay:r*.1,duration:.6},children:[o.jsx("div",{className:"w-12 h-12 sm:w-14 sm:h-14 rounded-xl sm:rounded-2xl bg-gradient-to-br from-violet-50 to-fuchsia-50 flex items-center justify-center text-2xl sm:text-3xl flex-shrink-0 shadow-sm",children:n.emoji}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold text-base sm:text-lg mb-1",children:n.title}),o.jsx("p",{className:"text-sm sm:text-base text-muted-foreground",children:n.description})]})]},r))})]})]})},Ife=()=>o.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(5)].map((e,t)=>o.jsx("svg",{className:"w-5 h-5 text-amber-400 fill-current",viewBox:"0 0 20 20",children:o.jsx("path",{d:"M10 15l-5.878 3.09 1.123-6.545L.489 6.91l6.572-.955L10 0l2.939 5.955 6.572.955-4.756 4.635 1.123 6.545z"})},t))}),Rfe=()=>{const{t:e}=Le(),t=[{name:e("testimonials.testimonial1.name"),role:e("testimonials.testimonial1.role"),initials:"MS",quote:e("testimonials.testimonial1.quote"),color:"from-amber-400 to-orange-500"},{name:e("testimonials.testimonial2.name"),role:e("testimonials.testimonial2.role"),initials:"DR",quote:e("testimonials.testimonial2.quote"),color:"from-green-400 to-emerald-500"},{name:e("testimonials.testimonial3.name"),role:e("testimonials.testimonial3.role"),initials:"SK",quote:e("testimonials.testimonial3.quote"),color:"from-pink-400 to-rose-500"}];return o.jsxs("section",{className:"relative py-16 sm:py-24 md:py-32 section-wrapper overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-white/40 to-transparent pointer-events-none"}),o.jsxs("div",{className:"container mx-auto px-4 sm:px-6 relative z-10",children:[o.jsxs(Q.div,{className:"text-center mb-10 sm:mb-14",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8},children:[o.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-semibold tracking-tight mb-3 sm:mb-4 text-foreground",children:e("testimonials.title")}),o.jsx("p",{className:"text-base sm:text-lg text-muted-foreground max-w-2xl mx-auto",children:e("testimonials.subtitle")})]}),o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"flex md:grid md:grid-cols-3 gap-4 sm:gap-6 overflow-x-auto md:overflow-visible snap-x snap-mandatory pb-4 md:pb-0 max-w-5xl mx-auto
580scrollbar-hide",children:t.map((n,r)=>o.jsxs(Q.div,{className:"card-elevated card-hover p-5 sm:p-7 min-w-[300px] sm:min-w-[320px] md:min-w-0 snap-center",initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{delay:r*.15,duration:.7},children:[o.jsx(Ife,{}),o.jsxs("p",{className:"text-foreground mb-5 sm:mb-6 leading-relaxed text-base sm:text-lg",children:['"',n.quote,'"']}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:`w-11 h-11 sm:w-12 sm:h-12 rounded-full bg-gradient-to-br ${n.color} flex items-center justify-center text-white font-semibold shadow-md`,children:n.initials}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-sm sm:text-base",children:n.name}),o.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground",children:n.role})]})]})]},r))}),o.jsx("div",{className:"flex justify-center gap-1.5 mt-4 md:hidden",children:t.map((n,r)=>o.jsx("div",{className:"w-2 h-2 rounded-full bg-muted-foreground/30"},r))})]})]})]})},Dfe="/assets/flowers-zY1MFWJA.jpg",Mfe="/assets/pizza-DXRDp6km.jpeg",$fe="/assets/candles-BOPyGDKT.jpeg",Lfe="/assets/yoga-BfQJgbyk.jpeg",Vfe="/assets/realestate-C9iL8u2E.jpeg",Ffe="/assets/fashion-DaEo0vGM.jpeg",Bfe=[{image:Dfe,key:"florist"},{image:Mfe,key:"pizzeria"},{image:$fe,key:"decor"},{image:Lfe,key:"yoga"},{image:Vfe,key:"realestate"},{image:Ffe,key:"boutique"}],zfe=()=>{var r,i;const{t:e,i18n:t}=Le(),n=((r=t.language)==null?void 0:r.startsWith("he"))||((i=t.language)==null?void 0:i.startsWith("ar"));return o.jsxs("section",{className:"px-4 md:px-8 lg:px-12 pt-8 md:pt-2 pb-12 md:pb-20 bg-background max-w-7xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border/50 bg-white/70 px-3 py-1 text-xs text-muted-foreground shadow-sm mb-4",children:[o.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse"}),e("agentExamples.badge")]}),o.jsxs("h2",{className:"text-2xl md:text-4xl font-bold leading-tight mb-2 text-foreground",children:[e("agentExamples.title")," ",o.jsx("span",{className:"gradient-text",children:e("agentExamples.titleHighlight")})]}),o.jsx("p",{className:"text-sm md:text-base text-muted-foreground max-w-md mx-auto",children:e("agentExamples.subtitle")})]}),o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3 md:gap-6",children:Bfe.map((a,s)=>{const l=e(`agentExamples.cards.${a.key}.niche`);return o.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-card aspect-[9/16] bg-muted card-hover",children:[o.jsx("img",{src:a.image,alt:l,className:"w-full h-full object-cover object-center",loading:"lazy"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent"}),o.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-3 md:p-5",children:[o.jsx("div",{className:"text-white font-semibold text-sm md:text-lg leading-tight",children:l}),o.jsx("div",{className:"text-white/80 text-[11px] md:text-sm mt-0.5 leading-snug",children:e(`agentExamples.cards.${a.key}.caption`)})]}),o.jsx("div",{className:`absolute top-2 ${n?"left-2 md:left-3":"right-2 md:right-3"} bg-white/90 backdrop-blur-sm px-2 py-0.5 md:px-3 md:py-1 rounded-full text-[10px] md:text-xs font-medium text-foreground`,children:l})]},s)})})]})},Ufe="/assets/blank-page-CVq63DfT.png",Wfe="/assets/whatsapp-approve-BumRzs-v.png",qfe="/assets/calendar-MTQbPT_H.png",Hfe="/assets/fits-business-DrfYyh4v.png",Gfe="/assets/easy-adjust-FMRO1RLN.png",Kfe="/assets/one-less-thing-B3ObGedh.png",Yfe=[{icon:U3,key:"blankPage",image:Ufe,imageAlt:"Blank note with magic wand"},{icon:ld,key:"whatsapp",image:Wfe,imageAlt:"Phone showing WhatsApp approval"},{icon:l9,key:"consistent",image:qfe,imageAlt:"Calendar with scheduled posts"},{icon:k9,key:"fits",image:Hfe,imageAlt:"Personalized post for your business"},{icon:P9,key:"adjust",image:Gfe,imageAlt:"Sliders adjusting tone of post"},{icon:u9,key:"oneLess",image:Kfe,imageAlt:"Tasks completed checklist"}],Xfe=()=>{var r,i;const{t:e,i18n:t}=Le(),n=((r=t.language)==null?void 0:r.startsWith("he"))||((i=t.language)==null?void 0:i.startsWith("ar"));return o.jsxs("section",{className:"px-4 md:px-8 py-16 md:py-24 max-w-7xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-10 md:mb-14",children:[o.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border/50 bg-white/70 px-3 py-1 text-xs text-muted-foreground shadow-sm mb-4",children:[o.jsx(kr,{className:"h-3 w-3 text-primary"}),e("whySocialVisible.badge")]}),o.jsxs("h2",{className:"text-2xl md:text-4xl font-bold leading-tight mb-3 text-foreground",children:[e("whySocialVisible.title")," ",o.jsx("span",{className:"gradient-text",children:e("whySocialVisible.titleHighlight")})]}),o.jsx("p",{className:"text-sm md:text-base text-muted-foreground max-w-2xl mx-auto",children:e("whySocialVisible.subtitle")})]}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6",children:Yfe.map((a,s)=>{const l=a.icon;return o.jsxs("div",{className:"card-elevated rounded-2xl card-hover flex flex-row min-h-[140px] sm:min-h-[240px] md:min-
580h-[260px] relative overflow-hidden",children:[o.jsxs("div",{className:"flex-1 p-4 sm:p-5 md:p-6 flex flex-col justify-center z-10 max-w-[60%] sm:max-w-[58%]",children:[o.jsx("div",{className:"w-9 h-9 sm:w-11 sm:h-11 md:w-12 md:h-12 rounded-xl gradient-bg flex items-center justify-center mb-2 sm:mb-4 shadow-soft",children:o.jsx(l,{className:"w-4 h-4 sm:w-5 sm:h-5 md:w-6 md:h-6 text-primary-foreground"})}),o.jsx("h3",{className:"text-sm sm:text-base md:text-lg font-bold mb-1 sm:mb-1.5 text-foreground leading-tight",children:e(`whySocialVisible.features.${a.key}.title`)}),o.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground leading-relaxed",children:e(`whySocialVisible.features.${a.key}.description`)})]}),o.jsx("div",{className:`absolute inset-y-0 ${n?"left-0":"right-0"} w-[42%] sm:w-[52%] flex items-center justify-center pointer-events-none p-2`,children:o.jsx("img",{src:a.image,alt:a.imageAlt,width:768,height:768,loading:"lazy",className:`w-full h-full max-w-none object-contain scale-105 sm:scale-125 ${n?"-translate-x-[4%]":"translate-x-[4%]"} drop-shadow-lg`})})]},s)})})]})},Jfe="Aai6qD5UCwh4rXt18__wvzLUn_hp302DEfI-BlX2pWSNlEGu6mFigeS-wNkPH5EQJM2ZX0VQDedPpWHP",Tg={basic_monthly:"P-8AF07002LE552151DNFTD22Q",visible_monthly:"P-1VE49676W0898481DNFTD4HI",always_monthly:"P-30K06986RY0639208NFTD42I"},Hm={free:0,basic:19,visible:49,always:119},iz=[{id:"starter",name:"Starter",price:5,credits:5,bonus:"0%",description:"Perfect for trying a few carousels"},{id:"growth",name:"Growth",price:20,credits:20,bonus:"0%",description:"For regular content creators"},{id:"pro",name:"Pro",price:50,credits:55,bonus:"10%",description:"Best value for heavy users"}],Qfe={basic:{monthly_credits:19,bonus:0},visible:{monthly_credits:54,bonus:5},always:{monthly_credits:137,bonus:18}},az=5,gO={free:[{carousels:2,reels:0,stories:2},{carousels:1,reels:0,stories:6},{carousels:0,reels:0,stories:10}],basic:[{carousels:4,reels:1,stories:2},{carousels:9,reels:0,stories:2},{carousels:2,reels:1,stories:8}],visible:[{carousels:8,reels:3,stories:12},{carousels:12,reels:2,stories:16},{carousels:5,reels:4,stories:8}],always:[{carousels:20,reels:6,stories:28},{carousels:15,reels:8,stories:34},{carousels:25,reels:5,stories:24}]},vO=[{key:"free",price:"$0",credits:az},{key:"basic",price:"$19",credits:19},{key:"visible",price:"$49",credits:54,popular:!0},{key:"always",price:"$119",credits:137}],Zfe=iz.map(e=>({id:e.id,name:e.name,price:`$${e.price}`,credits:e.credits,bonus:e.bonus&&e.bonus!=="0%"?e.bonus:null})),sz=()=>{const{t:e}=Le(),t=zn(),{user:n}=Hi(),[r,i]=g.useState(0),[a,s]=g.useState(null),l=async d=>{if(!n){t(`/login?redirect=${encodeURIComponent("/billing")}`);return}try{s(d);const{data:f,error:p}=await X.functions.invoke("paypal-create-order",{body:{pack_id:d}});if(p)throw p;if(!(f!=null&&f.success)||!(f!=null&&f.approve_url))throw new Error((f==null?void 0:f.message)||(f==null?void 0:f.error)||"Failed to create order");window.location.href=f.approve_url}catch(f){console.error("[Pricing] Buy pack failed:",f),Oe.error(f.message||"Failed to start checkout"),s(null)}};g.useEffect(()=>{const d=Math.max(...Object.values(gO).map(p=>p.length)),f=setInterval(()=>{i(p=>(p+1)%d)},4e3);return()=>clearInterval(f)},[]);const c=[e("pricing.allFeatures.whatsapp"),e("pricing.allFeatures.review"),e("pricing.allFeatures.edit"),e("pricing.allFeatures.request"),e("pricing.allFeatures.automation")],u=[{type:e("pricing.costs.carousel"),cost:"~2"},{type:e("pricing.costs.reel"),cost:"~10"},{type:e("pricing.costs.storyImage"),cost:"~0.5"},{type:e("pricing.costs.storyClip"),cost:"~2"}],h=[{type:e("pricing.costs.editReel"),cost:"~3"},{type:e("pricing.costs.editStoryClip"),cost:"~2"},{type:e("pricing.costs.editStoryImage"),cost:"~0.5"},{type:e("pricing.costs.editCarouselImage"),cost:"~0.4"},{type:e("pricing.costs.editText"),cost:e("pricing.costs.free")}];return o.jsxs("section",{id:"pricing",className:"relative py-16 sm:py-24 md:py-32 section-wrapper overflow-hidden",children:[o.jsx("div",{className:"blob w-[500px] h-[500px] bg-gradient-to-br from-violet-200 to-fuchsia-200 -right-1/4 top-1/4"}),o.jsxs("div",{className:"container mx-auto px-4 sm:px-6 relative z-10",children:[o.jsxs(Q.div,{className:"text-center mb-8",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8},children:[o.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-semibold tracking-tight mb-4 text-foreground",children:e("pricing.title")}),o.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:e("pricing.subtitle")})]}),o.jsxs("div",{className:"relative mb-12 sm:mb-16 pt-4",children:[o.jsx("div",{className:"flex md:grid md:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6 overflow-x-auto md:overflow-visible snap-x snap-mandatory pb-4 md:pb-0 max-w-6xl mx-auto
580scrollbar-hide",children:vO.map((d,f)=>o.jsxs(Q.div,{className:`relative card-elevated card-hover p-5 sm:p-6 flex flex-col min-w-[280px] sm:min-w-[300px] md:min-w-0 snap-center ${d.popular?"ring-2 ring-primary/80 shadow-xl":""}`,initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{delay:f*.1,duration:.7},children:[d.popular&&o.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2",children:o.jsx("span",{className:"px-4 py-1.5 gradient-bg text-primary-foreground text-xs font-bold rounded-full shadow-md whitespace-nowrap",children:e("pricing.popular")})}),o.jsx("div",{className:"text-sm font-semibold gradient-text mb-2",children:e(`pricing.plans.${d.key}.name`)}),o.jsxs("div",{className:"mb-2",children:[o.jsx("span",{className:"text-3xl sm:text-4xl font-bold",children:d.price}),d.key!=="free"&&o.jsx("span",{className:"text-muted-foreground text-sm",children:e("pricing.perMonth")})]}),o.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:e(`pricing.plans.${d.key}.description`)}),o.jsxs("div",{className:"rounded-lg bg-primary/5 border border-primary/10 p-3 mb-4",children:[o.jsxs("div",{className:"text-lg font-bold text-primary",children:[d.credits," ",e("pricing.creditsLabel")]}),o.jsx("p",{className:"text-xs text-muted-foreground",children:e("pricing.useAsYouWish")})]}),d.credits>0&&(()=>{const p=gO[d.key]||[];if(p.length===0)return null;const v=p[r%p.length];return o.jsxs("div",{className:"mb-4 min-h-[60px]",children:[o.jsx("p",{className:"text-xs text-muted-foreground mb-1.5",children:e("pricing.exampleUse")}),o.jsxs(Q.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.4},className:"text-sm space-y-0.5",children:[v.carousels>0&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(ft,{className:"w-3.5 h-3.5 text-primary flex-shrink-0"}),o.jsxs("span",{children:[v.carousels," ",e("pricing.contentTypes.carousels")]})]}),v.reels>0&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(ft,{className:"w-3.5 h-3.5 text-primary flex-shrink-0"}),o.jsxs("span",{children:[v.reels," ",e("pricing.contentTypes.reels")]})]}),v.stories>0&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(ft,{className:"w-3.5 h-3.5 text-primary flex-shrink-0"}),o.jsxs("span",{children:[v.stories," ",e("pricing.contentTypes.stories")]})]})]},r)]})})(),o.jsxs("ul",{className:"space-y-2 mb-5 flex-grow",children:[o.jsxs("li",{className:"flex items-center gap-2",children:[o.jsx(ft,{className:"w-4 h-4 text-primary flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:e("pricing.limits.whatsapp")})]}),o.jsxs("li",{className:"flex items-center gap-2",children:[o.jsx(ft,{className:"w-4 h-4 text-primary flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:e("pricing.limits.instagram")})]})]}),o.jsx(K,{variant:d.popular?"hero":"outline",className:"w-full h-12 text-base relative z-10 touch-manipulation",size:"lg",asChild:!0,children:o.jsx(se,{to:"/signup",className:"touch-manipulation",children:e(`pricing.plans.${d.key}.cta`)})})]},d.key))}),o.jsx("div",{className:"flex justify-center gap-1.5 mt-4 md:hidden",children:vO.map((d,f)=>o.jsx("div",{className:"w-2 h-2 rounded-full bg-muted-foreground/30"},f))})]}),o.jsx(Q.div,{className:"max-w-4xl mx-auto mb-12",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},children:o.jsxs("div",{className:"card-elevated p-6 sm:p-8",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[o.jsx(kr,{className:"w-5 h-5 text-primary"}),o.jsx("h3",{className:"text-lg font-semibold",children:e("pricing.costs.title")})]}),o.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsx(kr,{className:"w-3.5 h-3.5 text-primary"}),o.jsx("h4",{className:"text-sm font-medium text-muted-foreground",children:e("pricing.costs.creation")})]}),o.jsx("div",{className:"space-y-2",children:u.map((d,f)=>o.jsxs("div",{className:"flex justify-between items-center text-sm py-1.5 px-3 rounded-lg bg-muted/50",children:[o.jsx("span",{children:d.type}),o.jsx("span",{className:"font-mono font-medium",children:d.cost})]},f))})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsx(ab,{className:"w-3.5 h-3.5 text-primary"}),o.jsx("h4",{className:"text-sm font-medium text-muted-foreground",children:e("pricing.costs.edits")})]}),o.jsx("div",{className:"space-y-2",children:h.map((d,f)=>o.jsxs("div",{className:"flex justify-between items-center text-sm py-1.5 px-3 rounded-lg bg-muted/50",children:[o.jsx("span",{children:d.type}),o.jsx("span",{className:"font-mono font-medium",children:d.cost})]},f))})]})]}),o.jsx("p",{className:"text-xs text-muted-foreground mt-4",children:e("pricing.costs.disclaimer")})]})}),o.jsx(Q.div,{className:"max-w-4xl mx-auto mb-12",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},children:o.jsxs("div",{className:"card-elevated p-6 sm:p-8",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[o.jsx(X3,{className:"w-5 h-5 text-primary"}),o.jsx("h3",{className:"text-lg font-semibold",children:e("pricing.topUp.title")})]}),o.jsx("div",{className:"grid sm:grid-cols-3 gap-4",children:Zfe.map(d=>{const f=a===d.id;return o.jsxs("div",{className:"rounded-xl border bg-background p-4 flex flex-col items-center text-center space-y-2",children:[o.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:d.name}),o.jsx("span",{className:"text-2xl font-bold",children:d.price}),o.jsxs("span",{className:"text-sm",children:[d.credits," ",e("pricing.creditsLabel")]}),d.bonus&&o.jsxs("span",{className:"inline-block px-2 py-0.5 text-xs rounded-full bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",children:["+",d.bonus," ",e("pricing.topUp.bonus")]}),o.jsx(K,{size:"sm",onClick:()=>l(d.id),disabled:f||a!==null,className:"w-full mt-2",children:f?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"w-4 h-4 me-2 animate-spin"}),e("billing.packs.processing","Processing...")]}):e("pricing.topUp.buy")})]},d.id)})})]})}),o.jsxs(Q.div,{className:"max-w-3xl mx-auto mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},children:[o.jsx("h3",{className:"text-xl font-semibold text-center mb-6",children:e("pricing.allPlansInclude")}),o.jsx("div",{className:"flex flex-wrap justify-center gap-4",children:c.map((d,f)=>o.jsxs("div",{className:"flex items-center gap-2 bg-muted/50 px-4 py-2 rounded-full",children:[o.jsx(ft,{className:"w-4 h-4 text-green-500"}),o.jsx("span",{className:"text-sm",children:d})]},f))})]}),o.jsxs(Q.div,{className:"max-w-2xl mx-auto text-center mb-16 card-elevated p-8",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},children:[o.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 roun
580ded-full bg-green-100 mb-4",children:o.jsx(ld,{className:"w-7 h-7 text-green-600"})}),o.jsx("h3",{className:"text-xl font-semibold mb-3",children:e("pricing.whatsappAssistant.title")}),o.jsx("p",{className:"text-muted-foreground mb-4",children:e("pricing.whatsappAssistant.description")}),o.jsxs("ul",{className:"text-sm text-muted-foreground space-y-2",children:[o.jsx("li",{children:e("pricing.whatsappAssistant.feature1")}),o.jsx("li",{children:e("pricing.whatsappAssistant.feature2")}),o.jsx("li",{children:e("pricing.whatsappAssistant.feature3")})]})]}),o.jsxs(Q.div,{className:"text-center",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},children:[o.jsx("p",{className:"text-muted-foreground mb-4",children:e("pricing.custom.text")}),o.jsx(K,{variant:"outline",size:"lg",asChild:!0,children:o.jsx(se,{to:"/contact",children:e("pricing.custom.cta")})})]})]})]})},epe=()=>{const{t:e}=Le();return o.jsx("section",{className:"relative py-16 sm:py-24 md:py-32",children:o.jsx("div",{className:"container mx-auto px-4 sm:px-6",children:o.jsxs(Q.div,{className:"max-w-3xl mx-auto text-center relative",initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8},children:[o.jsx("div",{className:"absolute inset-0 -z-10",children:o.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-violet-200/50 via-fuchsia-200/50 to-purple-200/50 rounded-[2rem] sm:rounded-[3rem] blur-3xl"})}),o.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-semibold tracking-tight mb-4 sm:mb-5 text-foreground",children:e("cta.title")}),o.jsx("p",{className:"text-base sm:text-lg text-muted-foreground mb-8 sm:mb-10 max-w-xl mx-auto leading-relaxed",children:e("cta.subtitle")}),o.jsx(rA,{location:"final_cta",size:"xl",className:"shadow-xl hover:shadow-2xl transition-all w-full sm:w-auto active:scale-[0.98]",children:e("cta.buttonPrimary",{defaultValue:"Start your free post now"})}),o.jsx("p",{className:"mt-5 sm:mt-6 text-xs sm:text-sm text-muted-foreground",children:e("cta.noCreditCard")})]})})})};var kb="Collapsible",[tpe,oz]=Fn(kb),[npe,aA]=tpe(kb),lz=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:s,...l}=e,[c,u]=pi({prop:r,defaultProp:i??!1,onChange:s,caller:kb});return o.jsx(npe,{scope:n,disabled:a,contentId:li(),open:c,onOpenToggle:g.useCallback(()=>u(h=>!h),[u]),children:o.jsx(ye.div,{"data-state":oA(c),"data-disabled":a?"":void 0,...l,ref:t})})});lz.displayName=kb;var cz="CollapsibleTrigger",uz=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=aA(cz,n);return o.jsx(ye.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":oA(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:le(e.onClick,i.onOpenToggle)})});uz.displayName=cz;var sA="CollapsibleContent",dz=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=aA(sA,e.__scopeCollapsible);return o.jsx(Bn,{present:n||i.open,children:({present:a})=>o.jsx(rpe,{...r,ref:t,present:a})})});dz.displayName=sA;var rpe=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...a}=e,s=aA(sA,n),[l,c]=g.useState(r),u=g.useRef(null),h=Me(t,u),d=g.useRef(0),f=d.current,p=g.useRef(0),v=p.current,m=s.open||l,y=g.useRef(m),b=g.useRef(void 0);return g.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),xn(()=>{const w=u.current;if(w){b.current=b.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();d.current=x.height,p.current=x.width,y.current||(w.style.transitionDuration=b.current.transitionDuration,w.style.animationName=b.current.animationName),c(r)}},[s.open,r]),o.jsx(ye.div,{"data-state":oA(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!m,...a,ref:h,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:m&&i})});function oA(e){return e?"open":"closed"}var ipe=lz,ape=uz,spe=dz,Ki="Accordion",ope=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[lA,lpe,cpe]=Cp(Ki),[Tb,bze]=Fn(Ki,[cpe,oz]),cA=oz(),hz=D.forwardRef((e,t)=>
580{const{type:n,...r}=e,i=r,a=r;return o.jsx(lA.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?o.jsx(fpe,{...a,ref:t}):o.jsx(hpe,{...i,ref:t})})});hz.displayName=Ki;var[fz,upe]=Tb(Ki),[pz,dpe]=Tb(Ki,{collapsible:!1}),hpe=D.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...s}=e,[l,c]=pi({prop:n,defaultProp:r??"",onChange:i,caller:Ki});return o.jsx(fz,{scope:e.__scopeAccordion,value:D.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:D.useCallback(()=>a&&c(""),[a,c]),children:o.jsx(pz,{scope:e.__scopeAccordion,collapsible:a,children:o.jsx(mz,{...s,ref:t})})})}),fpe=D.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[s,l]=pi({prop:n,defaultProp:r??[],onChange:i,caller:Ki}),c=D.useCallback(h=>l((d=[])=>[...d,h]),[l]),u=D.useCallback(h=>l((d=[])=>d.filter(f=>f!==h)),[l]);return o.jsx(fz,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:u,children:o.jsx(pz,{scope:e.__scopeAccordion,collapsible:!0,children:o.jsx(mz,{...a,ref:t})})})}),[ppe,Ob]=Tb(Ki),mz=D.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:a="vertical",...s}=e,l=D.useRef(null),c=Me(l,t),u=lpe(n),d=xd(i)==="ltr",f=le(e.onKeyDown,p=>{var P;if(!ope.includes(p.key))return;const v=p.target,m=u().filter(A=>{var k;return!((k=A.ref.current)!=null&&k.disabled)}),y=m.findIndex(A=>A.ref.current===v),b=m.length;if(y===-1)return;p.preventDefault();let w=y;const x=0,S=b-1,j=()=>{w=y+1,w>S&&(w=x)},N=()=>{w=y-1,w<x&&(w=S)};switch(p.key){case"Home":w=x;break;case"End":w=S;break;case"ArrowRight":a==="horizontal"&&(d?j():N());break;case"ArrowDown":a==="vertical"&&j();break;case"ArrowLeft":a==="horizontal"&&(d?N():j());break;case"ArrowUp":a==="vertical"&&N();break}const _=w%b;(P=m[_].ref.current)==null||P.focus()});return o.jsx(ppe,{scope:n,disabled:r,direction:i,orientation:a,children:o.jsx(lA.Slot,{scope:n,children:o.jsx(ye.div,{...s,"data-orientation":a,ref:c,onKeyDown:r?void 0:f})})})}),Tv="AccordionItem",[mpe,uA]=Tb(Tv),gz=D.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,a=Ob(Tv,n),s=upe(Tv,n),l=cA(n),c=li(),u=r&&s.value.includes(r)||!1,h=a.disabled||e.disabled;return o.jsx(mpe,{scope:n,open:u,disabled:h,triggerId:c,children:o.jsx(ipe,{"data-orientation":a.orientation,"data-state":Sz(u),...l,...i,ref:t,disabled:h,open:u,onOpenChange:d=>{d?s.onItemOpen(r):s.onItemClose(r)}})})});gz.displayName=Tv;var vz="AccordionHeader",yz=D.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=Ob(Ki,n),a=uA(vz,n);return o.jsx(ye.h3,{"data-orientation":i.orientation,"data-state":Sz(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});yz.displayName=vz;var X1="AccordionTrigger",bz=D.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=Ob(Ki,n),a=uA(X1,n),s=dpe(X1,n),l=cA(n);return o.jsx(lA.ItemSlot,{scope:n,children:o.jsx(ape,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...l,...r,ref:t})})});bz.displayName=X1;var xz="AccordionContent",wz=D.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=Ob(Ki,n),a=uA(xz,n),s=cA(n);return o.jsx(spe,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});wz.displayName=xz;function Sz(e){return e?"open":"closed"}var gpe=hz,vpe=gz,ype=yz,jz=bz,_z=wz;const bpe=gpe,Nz=g.forwardRef(({className:e,...t},n)=>o.jsx(vpe,{ref:n,className:oe("border-b",e),...t}));Nz.displayName="AccordionItem";const Pz=g.forwardRef(({className:e,children:t,...n},r)=>o.jsx(ype,{className:"flex",children:o.jsxs(jz,{ref:r,className:oe("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,o.jsx(CN,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Pz.displayName=jz.displayName;const Az=g.forwardRef(({className:e,children:t,...n},r)=>o.jsx(_z,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:o.jsx("div",{className:oe("pb-4 pt-0",e),children:t})}));Az.displayName=_z.displayName;const xpe=()=>{const{t:e}=Le(),t=[{question:e("faq.questions.q1.question"),answer:e("faq.questions.q1.answer")},{question:e("faq.questions.q2.question"),answer:e("faq.questions.q2.answer")},{question:e("faq.questions.q3.question"),answer:e("faq.questions.q3.answer")},{question:e("faq.questions.q4.question"),answer:e("faq.questions.q4.answer")},{question:e("faq.questions.q5.question"),answer:e("faq.questions.q5.answer")}
580,{question:e("faq.questions.q6.question"),answer:e("faq.questions.q6.answer")},{question:e("faq.questions.q7.question"),answer:e("faq.questions.q7.answer")},{question:e("faq.questions.q8.question"),answer:e("faq.questions.q8.answer")}],n={"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(r=>({"@type":"Question",name:r.question,acceptedAnswer:{"@type":"Answer",text:r.answer}}))};return o.jsxs("section",{id:"faq",className:"py-14 sm:py-20 px-4 sm:px-6 bg-gradient-to-b from-background to-muted/30",children:[o.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}}),o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-8 sm:mb-12",children:[o.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-semibold tracking-tight mb-3 sm:mb-4 text-foreground",children:e("faq.title")}),o.jsx("p",{className:"text-muted-foreground text-base sm:text-lg",children:e("faq.subtitle")})]}),o.jsx(bpe,{type:"single",collapsible:!0,className:"w-full space-y-3 sm:space-y-4",children:t.map((r,i)=>o.jsxs(Nz,{value:`item-${i}`,className:"bg-card rounded-xl border shadow-sm px-4 sm:px-6 data-[state=open]:shadow-md transition-shadow",children:[o.jsx(Pz,{className:"text-start hover:no-underline py-4 sm:py-5 text-sm sm:text-base font-medium",children:r.question}),o.jsx(Az,{className:"text-muted-foreground pb-4 sm:pb-5 leading-relaxed text-sm sm:text-base",children:r.answer})]},i))})]})]})},wd=()=>{const{t:e}=Le(),t=pr(),n=zn(),r=(i,a)=>{i.preventDefault();const s=a;if(t.pathname!=="/")n("/"+s);else{const l=document.querySelector(s);l&&l.scrollIntoView({behavior:"smooth"})}};return o.jsx("footer",{className:"py-10 sm:py-12 border-t border-border/50",children:o.jsxs("div",{className:"container mx-auto px-4 sm:px-6",children:[o.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-8 md:gap-6",children:[o.jsxs("div",{className:"text-center md:text-start",children:[o.jsx(se,{to:"/",className:"inline-block",children:o.jsx("img",{src:Ca,alt:"Visible",className:"h-10 sm:h-12 object-contain"})}),o.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:e("footer.tagline")})]}),o.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:flex md:flex-wrap gap-x-8 gap-y-4 sm:gap-6 justify-items-center sm:justify-center md:justify-end",children:[o.jsx(se,{to:"/pricing",className:"text-sm text-muted-foreground hover:text-foreground transition-colors py-1 active:text-foreground",children:e("nav.pricing")}),o.jsx("a",{href:"#faq",onClick:i=>r(i,"#faq"),className:"text-sm text-muted-foreground hover:text-foreground transition-colors py-1 active:text-foreground cursor-pointer",children:e("nav.faq")}),o.jsx(se,{to:"/blog",className:"text-sm text-muted-foreground hover:text-foreground transition-colors py-1 active:text-foreground",children:e("nav.blog")}),o.jsx(se,{to:"/privacy",className:"text-sm text-muted-foreground hover:text-foreground transition-colors py-1 active:text-foreground",children:e("footer.privacy")}),o.jsx(se,{to:"/terms",className:"text-sm text-muted-foreground hover:text-foreground transition-colors py-1 active:text-foreground",children:e("footer.terms")}),o.jsx(se,{to:"/acceptable-use",className:"text-sm text-muted-foreground hover:text-foreground transition-colors py-1 active:text-foreground",children:e("footer.acceptableUse")}),o.jsx(se,{to:"/refund",className:"text-sm text-muted-foreground hover:text-foreground transition-colors py-1 active:text-foreground",children:e("footer.refund")}),o.jsx(se,{to:"/contact",className:"text-sm text-muted-foreground hover:text-foreground transition-colors py-1 col-span-2 sm:col-span-1 active:text-foreground",children:e("footer.contact")})]})]}),o.jsx("div",{className:"text-center mt-8 pt-8 border-t border-border/50",children:o.jsxs("p",{className:"text-xs sm:text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," SocialVisible.AI. All rights reserved."]})})]})})},wpe=({showAfterScroll:e=300})=>{const{t}=Le(),[n,r]=g.useState(!1),[i,a]=g.useState(!1);return g.useEffect(()=>{const s=()=>a(window.innerWidth<768),l=()=>r(window.scrollY>e);return s(),l(),window.addEventListener("resize",s),window.addEventListener("scroll",l),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",l)}},[e]),i?o.jsx(Ul,{children:n&&o.jsx(Q.div,{className:"fixed bottom-4 end-4 z-50 max-w-[calc(100vw-2rem)]",initial:{opacity:0,scale:.8,y:20}
580,animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:20},transition:{duration:.3,ease:"easeOut"},children:o.jsx(Q.div,{animate:{scale:[1,1.05,1]},transition:{duration:2,repeat:1/0,repeatType:"reverse"},children:o.jsx(rA,{location:"mobile_sticky",size:"lg",className:"shadow-2xl rounded-full px-4 py-3",children:t("hero.ctaPrimary",{defaultValue:"Start your free post"})})})})}):null};function Spe(e){const t=g.useRef(new Set);g.useEffect(()=>{const n=[25,50,75,100],r=()=>{const i=document.documentElement,a=window.scrollY||i.scrollTop,s=window.innerHeight||i.clientHeight,l=i.scrollHeight-s;if(l<=0)return;const c=Math.min(100,Math.round(a/l*100));for(const u of n)c>=u&&!t.current.has(u)&&(t.current.add(u),Cl("scroll_depth",{page:e,percent:u}))};return window.addEventListener("scroll",r,{passive:!0}),r(),()=>window.removeEventListener("scroll",r)},[e])}const jpe="/assets/instagram-post-BpfJi0ba.jpg",_pe=()=>{const e=pr(),{user:t,profile:n,loading:r}=Hi();return Spe("landing"),g.useEffect(()=>{},[e.pathname,e.search,r,t,n]),g.useEffect(()=>{$i(async()=>{const{trackFunnel:i}=await import("./funnelTracker-D6o5ihHW.js");return{trackFunnel:i}},[]).then(({trackFunnel:i})=>{i("landing_viewed",{utm_source:new URLSearchParams(window.location.search).get("utm_source"),utm_campaign:new URLSearchParams(window.location.search).get("utm_campaign")})})},[]),g.useEffect(()=>{e.hash&&setTimeout(()=>{const i=document.querySelector(e.hash);i&&i.scrollIntoView({behavior:"smooth"})},100)},[e.hash]),!r&&t&&n&&n.onboarding_completed!==!0?o.jsx(hb,{to:"/onboarding/web",replace:!0}):o.jsxs("div",{className:"min-h-screen overflow-x-hidden",children:[o.jsx(Tl,{}),o.jsxs("main",{children:[o.jsx(bfe,{}),o.jsx(zfe,{}),o.jsx(Xfe,{}),o.jsx(Ofe,{}),o.jsx(Tfe,{}),o.jsx("div",{id:"hero",children:o.jsx(kfe,{croissantImage:iA,instagramImage:jpe})}),o.jsx(Rfe,{}),o.jsx(sz,{}),o.jsx(xpe,{}),o.jsx(epe,{})]}),o.jsx(wd,{}),o.jsx(wpe,{})]})},Bt=g.forwardRef(({className:e,type:t,...n},r)=>o.jsx("input",{type:t,className:oe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Bt.displayName="Input";function dA(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ib="Checkbox",[Npe,xze]=Fn(Ib),[Ppe,hA]=Npe(Ib);function Ape(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:s,name:l,onCheckedChange:c,required:u,value:h="on",internal_do_not_use_render:d}=e,[f,p]=pi({prop:n,defaultProp:i??!1,onChange:c,caller:Ib}),[v,m]=g.useState(null),[y,b]=g.useState(null),w=g.useRef(!1),x=v?!!s||!!v.closest("form"):!0,S={checked:f,disabled:a,setChecked:p,control:v,setControl:m,name:l,form:s,value:h,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:ro(i)?!1:i,isFormControl:x,bubbleInput:y,setBubbleInput:b};return o.jsx(Ppe,{scope:t,...S,children:Cpe(d)?d(S):r})}var Cz="CheckboxTrigger",Ez=g.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{const{control:a,value:s,disabled:l,checked:c,required:u,setControl:h,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:v}=hA(Cz,e),m=Me(i,h),y=g.useRef(c);return g.useEffect(()=>{const b=a==null?void 0:a.form;if(b){const w=()=>d(y.current);return b.addEventListener("reset",w),()=>b.removeEventListener("reset",w)}},[a,d]),o.jsx(ye.button,{type:"button",role:"checkbox","aria-checked":ro(c)?"mixed":c,"aria-required":u,"data-state":Rz(c),"data-disabled":l?"":void 0,disabled:l,value:s,...r,ref:m,onKeyDown:le(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:le(n,b=>{d(w=>ro(w)?!0:!w),v&&p&&(f.current=b.isPropagationStopped(),f.current||b.stopPropagation())})})});Ez.displayName=Cz;var fA=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:s,disabled:l,value:c,onCheckedChange:u,form:h,...d}=e;return o.jsx(Ape,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:l,required:s,onCheckedChange:u,name:r,form:h,value:c,internal_do_not_use_render:({isFormControl:f})=>o.jsxs(o.Fragment,{children:[o.jsx(Ez,{...d,ref:t,__scopeCheckbox:n}),f&&o.jsx(Iz,{__scopeCheckbox:n})]})})});fA.displayName=Ib;var kz="CheckboxIndicator",Tz=g.forwardRef((e,t)=>
580{const{__scopeCheckbox:n,forceMount:r,...i}=e,a=hA(kz,n);return o.jsx(Bn,{present:r||ro(a.checked)||a.checked===!0,children:o.jsx(ye.span,{"data-state":Rz(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});Tz.displayName=kz;var Oz="CheckboxBubbleInput",Iz=g.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:s,required:l,disabled:c,name:u,value:h,form:d,bubbleInput:f,setBubbleInput:p}=hA(Oz,e),v=Me(n,p),m=dA(a),y=BN(r);g.useEffect(()=>{const w=f;if(!w)return;const x=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(x,"checked").set,N=!i.current;if(m!==a&&j){const _=new Event("click",{bubbles:N});w.indeterminate=ro(a),j.call(w,ro(a)?!1:a),w.dispatchEvent(_)}},[f,m,a,i]);const b=g.useRef(ro(a)?!1:a);return o.jsx(ye.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??b.current,required:l,disabled:c,name:u,value:h,form:d,...t,tabIndex:-1,ref:v,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Iz.displayName=Oz;function Cpe(e){return typeof e=="function"}function ro(e){return e==="indeterminate"}function Rz(e){return ro(e)?"indeterminate":e?"checked":"unchecked"}const pA=g.forwardRef(({className:e,...t},n)=>o.jsx(fA,{ref:n,className:oe("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:o.jsx(Tz,{className:oe("flex items-center justify-center text-current"),children:o.jsx(ft,{className:"h-4 w-4"})})}));pA.displayName=fA.displayName;var Epe="Label",Dz=g.forwardRef((e,t)=>o.jsx(ye.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Dz.displayName=Epe;var Mz=Dz;const kpe=Tp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Rt=g.forwardRef(({className:e,...t},n)=>o.jsx(Mz,{ref:n,className:oe(kpe(),e),...t}));Rt.displayName=Mz.displayName;const Tpe=()=>{var C;const[e,t]=g.useState(""),[n,r]=g.useState(""),[i,a]=g.useState(!1),[s,l]=g.useState(!1),[c,u]=g.useState(!1),[h,d]=g.useState(!1),[f,p]=g.useState({}),{signIn:v,signInWithGoogle:m}=Hi(),{toast:y}=Na(),b=pr(),[w]=cs(),x=w.get("redirect"),S=(C=b.state)==null?void 0:C.from,j=[x,S,"/dashboard"].find(E=>typeof E=="string"&&E.startsWith("/")&&!E.startsWith("//"))||"/dashboard",N=()=>{j&&(localStorage.setItem("post_login_redirect",j),sessionStorage.setItem("post_login_redirect",j))},_=()=>{localStorage.removeItem("post_login_redirect"),sessionStorage.removeItem("post_login_redirect")},P=()=>{const E={};return e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)||(E.email="Please enter a valid email"):E.email="Email is required",n||(E.password="Password is required"),p(E),Object.keys(E).length===0},A=async E=>{if(E.preventDefault(),!P())return;N(),u(!0);const{error:I}=await v(e,n);I?(u(!1),_(),y({variant:"destructive",title:"Sign in failed",description:I.message})):y({title:"Hello!",description:"You have successfully signed in."})},k=async()=>{d(!0),N();const{error:E}=await m();d(!1),E&&(_(),y({variant:"destructive",title:"Google sign in failed",description:E.message}))};return o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsxs(Q.div,{className:"w-full max-w-md",initial:{opacity:0,y:20}
580,animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},children:[o.jsxs("div",{className:"card-elevated p-8 md:p-10",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx(se,{to:"/",className:"inline-block",children:o.jsx("img",{src:Ca,alt:"Visible",className:"h-12 mx-auto"})}),o.jsx("p",{className:"text-muted-foreground mt-4",children:"Welcome back! Sign in to continue."})]}),o.jsxs("form",{onSubmit:A,className:"space-y-5",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(Rt,{htmlFor:"email",children:"Email"}),o.jsxs("div",{className:"relative",children:[o.jsx(co,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),o.jsx(Bt,{id:"email",type:"email",placeholder:"[email protected]",value:e,onChange:E=>{t(E.target.value),f.email&&p(I=>({...I,email:void 0}))},className:`pl-10 ${f.email?"border-destructive focus-visible:ring-destructive":""}`})]}),f.email&&o.jsx("p",{className:"text-sm text-destructive",children:f.email})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Rt,{htmlFor:"password",children:"Password"}),o.jsxs("div",{className:"relative",children:[o.jsx(ba,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),o.jsx(Bt,{id:"password",type:i?"text":"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:n,onChange:E=>{r(E.target.value),f.password&&p(I=>({...I,password:void 0}))},className:`pl-10 pr-10 ${f.password?"border-destructive focus-visible:ring-destructive":""}`}),o.jsx("button",{type:"button",onClick:()=>a(!i),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",children:i?o.jsx(mf,{className:"h-5 w-5"}):o.jsx(Pu,{className:"h-5 w-5"})})]}),f.password&&o.jsx("p",{className:"text-sm text-destructive",children:f.password})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx(pA,{id:"remember",checked:s,onCheckedChange:E=>l(E)}),o.jsx(Rt,{htmlFor:"remember",className:"text-sm font-normal cursor-pointer",children:"Remember me"})]}),o.jsx(se,{to:"/forgot-password",className:"text-sm font-medium text-primary hover:text-primary/80 transition-colors",children:"Forgot password?"})]}),o.jsx(K,{type:"submit",className:"w-full gradient-bg text-primary-foreground hover:opacity-90 transition-opacity",size:"lg",disabled:c,children:c?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"mr-2 h-4 w-4 animate-spin"}),"Signing in..."]}):"Sign In"})]}),o.jsxs("div",{className:"relative my-6",children:[o.jsx("div",{className:"absolute inset-0 flex items-center",children:o.jsx("div",{className:"w-full border-t border-border"})}),o.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:o.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:"or"})})]}),o.jsxs(K,{type:"button",variant:"outline",className:"w-full",size:"lg",onClick:k,disabled:h,children:[h?o.jsx(Ze,{className:"mr-2 h-4 w-4 animate-spin"}):o.jsxs("svg",{className:"mr-2 h-5 w-5",viewBox:"0 0 24 24",children:[o.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),o.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),o.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),o.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"Continue with Google"]}),o.jsxs("p",{className:"text-center text-sm text-muted-foreground mt-6",children:["Don't have an account?"," ",o.jsx(se,{to:"/signup",className:"font-medium text-primary hover:text-primary/80 transition-colors",children:"Sign up"})]})]}),o.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6",children:o.jsx(se,{to:"/",className:"hover:text-foreground transition-colors",children:"â Back to home"})})]})})]})},Ope=()=>{const[e]=cs(),[t,n]=g.useState(""),[r,i]=g.useState(""),[a,s]=g.useState(""),[l,c]=g.useState(""),[u,h]=g.useState(!1),[d,f]=g.useState(!1),[p,v]=g.useState(!1),[m,y]=g.useState(!1),[b,w]=g.useState(!1),[x,S]=g.useState(!1),[j,N]=g.useState(null),[_,P]=g.useState({}),{signInWithGoogle:A}=Hi(),{i18n:k}=Le(),{toast:C}=Na(),E=zn(),I=e.get("ref")==="wa"||e.get("source")==="whatsapp",O=e.get("phone")||"",M=e.get("session")||"",$=g.useMemo(()=>new Set(["he","en","ar","ru","es","fr","de","pt"]),[]),L=e.get("lang")||"he",T=$.has(L)?L:"he",R=e.get("from")==="landing";g.useEffect(()=>{$i(async()=>{const{trackFunnel:J}=await import("./funnelTracker-D6o5ihHW.js");return{trackFunnel:J}},[]).then(({trackFunnel:J})=>{J("signup_page_viewed",{from:e.get("from")||"direct",ref:e.get("ref"),is_whatsapp:I})})},[]),g.useEffect(()=>{I&&sessionStorage.setItem("whatsapp_onboarding",JSON.stringify({phone:O,sessionId:M,lang:T,source:"whatsapp"}))},[I,O,M,T]);const z=g.useMemo(()=>[{label:"At least 8 characters",met:a.length>=8},{label:"Contains uppercase letter",met:/[A-Z]/.test(a)}
580,{label:"Contains number",met:/[0-9]/.test(a)}],[a]),F=z.every(J=>J.met),B=g.useMemo(()=>{let J=0;return a.length>=8&&J++,a.length>=12&&J++,/[A-Z]/.test(a)&&J++,/[a-z]/.test(a)&&J++,/[0-9]/.test(a)&&J++,/[^A-Za-z0-9]/.test(a)&&J++,Math.min(J,4)},[a]),W=["","Weak","Fair","Good","Strong"][B],Z=["","bg-destructive","bg-orange-500","bg-yellow-500","bg-green-500"][B],fe=()=>{const J={};return t.trim()||(J.fullName="Full name is required"),r?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)||(J.email="Please enter a valid email"):J.email="Email is required",a?F||(J.password="Password does not meet requirements"):J.password="Password is required",l?a!==l&&(J.confirmPassword="Passwords do not match"):J.confirmPassword="Please confirm your password",p||(J.terms="You must agree to the terms"),P(J),Object.keys(J).length===0},we=async J=>{var ae,q,Pe,te;if(J.preventDefault(),N(null),$i(async()=>{const{trackFunnel:re}=await import("./funnelTracker-D6o5ihHW.js");return{trackFunnel:re}},[]).then(({trackFunnel:re})=>{re("signup_submit_clicked",{from:e.get("from")||"direct",is_whatsapp:I})}),!fe()){$i(async()=>{const{trackFunnel:re}=await import("./funnelTracker-D6o5ihHW.js");return{trackFunnel:re}},[]).then(({trackFunnel:re})=>{re("signup_validation_failed",{})});return}const U=new URLSearchParams(window.location.search).get("phone"),Y=new URLSearchParams(window.location.search).get("session");console.log("[DEBUG-SIGNUP] ====== SUBMIT START ======"),console.log("[DEBUG-SIGNUP] Phone from URL:",U),console.log("[DEBUG-SIGNUP] Session from URL:",Y),console.log("[DEBUG-SIGNUP] isFromWhatsApp:",I),console.log("[DEBUG-SIGNUP] whatsappPhone (state):",O),console.log("[DEBUG-SIGNUP] whatsappSessionId (state):",M),console.log("[DEBUG-SIGNUP] sessionStorage whatsapp_onboarding:",sessionStorage.getItem("whatsapp_onboarding")),y(!0),R&&!I&&oP();try{const{data:re,error:_e}=await X.auth.signUp({email:r,password:a,options:{emailRedirectTo:`${window.location.origin}/verify-email`,data:{full_name:t||""}}});if(console.log("[DEBUG-SIGNUP] auth.signUp result:",{hasUser:!!re.user,userId:(ae=re.user)==null?void 0:ae.id,error:_e==null?void 0:_e.message}),_e){N(_e.message),C({variant:"destructive",title:"Sign up failed",description:_e.message});return}const Ve=(q=re.user)==null?void 0:q.id;console.log("[DEBUG-SIGNUP] Created user ID:",Ve),Cl("sign_up",{method:"email",from:e.get("from")||"direct"}),localStorage.setItem("pendingVerificationEmail",r),sessionStorage.setItem("pendingVerificationEmail",r);const Ge=sessionStorage.getItem("whatsapp_onboarding");if(console.log("[DEBUG-SIGNUP] whatsappContext from sessionStorage:",Ge),Ge){let Ne,yt="he",bt;try{const Te=JSON.parse(Ge);Ne=typeof(Te==null?void 0:Te.phone)=="string"?Te.phone:void 0,yt=typeof(Te==null?void 0:Te.lang)=="string"?Te.lang:"he",bt=typeof(Te==null?void 0:Te.sessionId)=="string"?Te.sessionId:void 0,console.log("[DEBUG-SIGNUP] Parsed whatsappContext:",{phone:Ne,lang:yt,sessionId:bt})}catch(Te){console.error("[DEBUG-SIGNUP] WhatsApp context parse failed:",Te)}finally{sessionStorage.removeItem("whatsapp_onboarding")}if(!Ne){console.warn("[DEBUG-SIGNUP] WhatsApp context missing phone; falling back to /onboarding/web"),E("/onboarding/web");return}let qe=Ve;if(!qe){const{data:{user:Te}}=await X.auth.getUser();qe=Te==null?void 0:Te.id}const at=Ne.startsWith("+")?Ne:`+${Ne}`;if(localStorage.setItem("onboarding_phone",at),qe){localStorage.setItem("onboarding_user_id",qe);try{const{error:Yt}=await X.from("onboarding_sessions").update({linked_user_id:qe,signup_completed_at:new Date().toISOString(),detected_language:((Pe=k.language)==null?void 0:Pe.substring(0,2))||"en"}).eq("phone",at);Yt&&console.error("[signup] Failed to link user to onboarding session:",Yt)}catch(Yt){console.error("[signup] Error linking onboarding session:",Yt)}let Te=!1;const{getAttribution:Et}=await $i(async()=>{const{getAttribution:Yt}=await Promise.resolve().then(()=>YBe);return{getAttribution:Yt}},void 0),dn=Et(),Ta={phone:at,user_id:qe,email:((te=re.user)==null?void 0:te.email)??r,session_id:bt||null,...dn?{utm_params:dn}:{}};console.log("[DEBUG-SIGNUP] ====== CALLING EDGE FUNCTION ======"),console.log("[DEBUG-SIGNUP] Payload:",JSON.stringify(Ta,null,2));let bi=null,Sn=null;const ms=3;for(let Yt=1;Yt<=ms;Yt++){try{const{data:rn,error:jn}=await X.functions.invoke("n8n-complete-onboarding",{body:Ta});if(Sn=rn,!jn&&(Sn==null?void 0:Sn.success)!==!1){Te=!0,console.log("[DEBUG-SIGNUP] Edge function SUCCESS on attempt",Yt,Sn);break}bi=jn??Sn,console.error("[DEBUG-SIGNUP] Edge function attempt",Yt,"failed:",{completionError:jn,lastResult:Sn})}catch(rn){bi=rn,console.error("[DEBUG-SIGNUP] Edge function attempt",Yt,"EXCEPTION:",rn)}if(Yt<ms){const rn=Yt*1e3;await new Promise(jn=>setTimeout(jn,rn))}}if(localStorage.setItem("whatsapp_onboarding_completed",Te?"1":"0"),!Te){console.error("[DEBUG-SIGNUP] complete-onboarding failed after retries; aborting navigation",{lastError:bi,lastResult:Sn}
580),C({variant:"destructive",title:"Signup incomplete",description:"We could not finalize your account. Please try again or contact support."}),y(!1);return}}localStorage.setItem("onboarding_language",yt);const Qe=new URLSearchParams;Qe.set("phone",at),bt&&Qe.set("session",bt),Qe.set("lang",yt),localStorage.getItem("whatsapp_onboarding_completed")==="1"&&Qe.set("completed","1"),E(`/auth/whatsapp/signup-success?${Qe.toString()}`,{replace:!0})}else console.log("[DEBUG-SIGNUP] Regular signup (not WhatsApp) - redirecting to verify-email"),S(!0)}catch(re){const _e=re instanceof Error?re.message:"Unexpected error during signup";N(_e),console.error("[signup] submit failed:",re),C({variant:"destructive",title:"Sign up failed",description:_e})}finally{y(!1)}},ee=async()=>{w(!0),N(null);try{if(I){const U=O.startsWith("+")?O:`+${O}`,Y=new URLSearchParams;O&&Y.set("phone",U),M&&Y.set("session",M),Y.set("lang",T);const ae=`/auth/whatsapp/signup-success?${Y.toString()}`;vT(ae),localStorage.setItem("whatsapp_signup_phone",U)}else R&&vT("/onboarding/web?from=landing");const{error:J}=await A();J&&(N(J.message),C({variant:"destructive",title:"Google sign up failed",description:J.message}))}catch(J){const U=J instanceof Error?J.message:"Google sign up failed";N(U),console.error("[signup] google sign in failed:",J),C({variant:"destructive",title:"Google sign up failed",description:U})}finally{w(!1)}};return x?o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsx(Q.div,{className:"w-full max-w-md",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.5},children:o.jsxs("div",{className:"card-elevated p-8 md:p-10 text-center",children:[o.jsx("div",{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-green-100 flex items-center justify-center",children:o.jsx(ft,{className:"h-8 w-8 text-green-600"})}),o.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Check your email"}),o.jsxs("p",{className:"text-muted-foreground mb-6",children:["We've sent a verification link to ",o.jsx("span",{className:"font-medium text-foreground",children:r})]}),o.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Click the link in the email to verify your account and get started."}),o.jsx(K,{asChild:!0,variant:"outline",className:"w-full",children:o.jsx(se,{to:"/login",children:"Back to Sign In"})})]})})})]}):o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsxs(Q.div,{className:"w-full max-w-md",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},children:[o.jsxs("div",{className:"card-elevated p-8 md:p-10",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx(se,{to:"/",className:"inline-block",children:o.jsx("img",{src:Ca,alt:"Visible",className:"h-12 mx-auto"})}),o.jsx("p",{className:"text-muted-foreground mt-4",children:"Create your account to get started"})]}),o.jsxs("form",{onSubmit:we,className:"space-y-4",children:[j&&o.jsx("p",{className:"text-sm text-destructive",role:"alert",children:j}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Rt,{htmlFor:"fullName",children:"Full Name"}),o.jsxs("div",{className:"relative",children:[o.jsx(Q3,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),o.jsx(Bt,{id:"fullName",type:"text",placeholder:"John Doe",value:t,onChange:J=>{n(J.target.value),j&&N(null),_.fullName&&P(U=>({...U,fullName:void 0}))},className:`pl-10 ${_.fullName?"border-destructive focus-visible:ring-destructive":""}`})]}),_.fullName&&o.jsx("p",{className:"text-sm text-destructive",children:_.fullName})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Rt,{htmlFor:"email",children:"Email"}),o.jsxs("div",{className:"relative",children:[o.jsx(co,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),o.jsx(Bt,{id:"email",type:"email",placeholder:"[email protected]",value:r,onChange:J=>{i(J.target.value),j&&N(null),_.email&&P(U=>({...U,email:void 0}))},className:`pl-10 ${_.email?"border-destructive focus-visible:ring-destructive":""}`})]}),_.email&&o.jsx("p",{className:"text-sm text-destructive",children:_.email})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Rt,{htmlFor:"password",children:"Password"}),o.jsxs("div",{className:"relative",children:[o.jsx(ba,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),o.jsx(Bt,{id:"password",type:u?"text":"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:a,onChange:J=>{s(J.target.value),j&&N(null),_.password&&P(U=>({...U,password:void 0}))},className:`pl-10 pr-10 ${_.password?"border-destructive focus-visible:ring-destructive":""}`}),o.jsx("button",{type:"button",onClick:()=>h(!u),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",children:u?o.jsx(mf,{className:"h-5 w-5"}):o.jsx(Pu,{className:"h-5 w-5"})})]}),a&&o.jsxs("div",{className:"space-y-2",children:[o.jsx("div",{className:"flex gap-1",children:[1,2,3,4].map(J=>o.jsx("div",{className:`h-1.5 flex-1 rounded-full transition-colors ${J<=B?Z:"bg-muted"}`},J))}),B>0&&o.jsx("p",{className:`text-xs ${B<=1?"text-destructive":B===2?"text-orange-500":
580B===3?"text-yellow-600":"text-green-600"}`,children:W})]}),a&&o.jsx("div",{className:"space-y-1 pt-1",children:z.map((J,U)=>o.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[J.met?o.jsx(ft,{className:"h-4 w-4 text-green-600"}):o.jsx(xa,{className:"h-4 w-4 text-muted-foreground"}),o.jsx("span",{className:J.met?"text-green-600":"text-muted-foreground",children:J.label})]},U))}),_.password&&o.jsx("p",{className:"text-sm text-destructive",children:_.password})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Rt,{htmlFor:"confirmPassword",children:"Confirm Password"}),o.jsxs("div",{className:"relative",children:[o.jsx(ba,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),o.jsx(Bt,{id:"confirmPassword",type:d?"text":"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:l,onChange:J=>{c(J.target.value),j&&N(null),_.confirmPassword&&P(U=>({...U,confirmPassword:void 0}))},className:`pl-10 pr-10 ${_.confirmPassword?"border-destructive focus-visible:ring-destructive":""}`}),o.jsx("button",{type:"button",onClick:()=>f(!d),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",children:d?o.jsx(mf,{className:"h-5 w-5"}):o.jsx(Pu,{className:"h-5 w-5"})})]}),l&&a!==l&&o.jsx("p",{className:"text-sm text-destructive",children:"Passwords do not match"}),_.confirmPassword&&!l&&o.jsx("p",{className:"text-sm text-destructive",children:_.confirmPassword})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-start space-x-2",children:[o.jsx(pA,{id:"terms",checked:p,onCheckedChange:J=>{v(J),_.terms&&P(U=>({...U,terms:void 0}))},className:"mt-0.5"}),o.jsxs(Rt,{htmlFor:"terms",className:"text-sm font-normal cursor-pointer leading-tight",children:["I agree to the"," ",o.jsx(se,{to:"/terms",className:"text-primary hover:underline",children:"Terms of Service"})," ","and"," ",o.jsx(se,{to:"/privacy",className:"text-primary hover:underline",children:"Privacy Policy"})]})]}),_.terms&&o.jsx("p",{className:"text-sm text-destructive",children:_.terms})]}),o.jsx(K,{type:"submit",className:"w-full gradient-bg text-primary-foreground hover:opacity-90 transition-opacity",size:"lg",disabled:m,children:m?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"mr-2 h-4 w-4 animate-spin"}),"Creating account..."]}):"Create Account"})]}),o.jsxs("div",{className:"relative my-6",children:[o.jsx("div",{className:"absolute inset-0 flex items-center",children:o.jsx("div",{className:"w-full border-t border-border"})}),o.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:o.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:"or"})})]}),o.jsxs(K,{type:"button",variant:"outline",className:"w-full",size:"lg",onClick:ee,disabled:b,children:[b?o.jsx(Ze,{className:"mr-2 h-4 w-4 animate-spin"}):o.jsxs("svg",{className:"mr-2 h-5 w-5",viewBox:"0 0 24 24",children:[o.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),o.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),o.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),o.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"Continue with Google"]}),o.jsxs("p",{className:"text-center text-sm text-muted-foreground mt-6",children:["Already have an account?"," ",o.jsx(se,{to:"/login",className:"font-medium text-primary hover:text-primary/80 transition-colors",children:"Sign in"})]})]}),o.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6",children:o.jsx(se,{to:"/",className:"hover:text-foreground transition-colors",children:"â Back to home"})})]})})]})},Ipe=()=>{const[e,t]=g.useState(""),[n,r]=g.useState(!1),[i,a]=g.useState(!1),[s,l]=g.useState(""),{resetPassword:c}=Hi(),{toast:u}=Na(),h=()=>e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?(l(""),!0):(l("Please enter a valid email"),!1):(l("Email is required"),!1),d=async f=>{if(f.preventDefault(),!h())return;r(!0);const{error:p}=await c(e);r(!1),p?u({variant:"destructive",title:"Request failed",description:p.message}):a(!0)};return i?o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsx(Q.div,{className:"w-full max-w-md",initial:{opacity:0,scale:.95}
580,animate:{opacity:1,scale:1},transition:{duration:.5},children:o.jsxs("div",{className:"card-elevated p-8 md:p-10 text-center",children:[o.jsx("div",{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-green-100 flex items-center justify-center",children:o.jsx(ft,{className:"h-8 w-8 text-green-600"})}),o.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Check your email"}),o.jsxs("p",{className:"text-muted-foreground mb-6",children:["We've sent password reset instructions to"," ",o.jsx("span",{className:"font-medium text-foreground",children:e})]}),o.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Click the link in the email to reset your password. The link will expire in 1 hour."}),o.jsxs("div",{className:"space-y-3",children:[o.jsx(K,{asChild:!0,className:"w-full gradient-bg text-primary-foreground",children:o.jsx(se,{to:"/login",children:"Back to Sign In"})}),o.jsx(K,{variant:"ghost",className:"w-full",onClick:()=>{a(!1),t("")},children:"Try a different email"})]})]})})})]}):o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsxs(Q.div,{className:"w-full max-w-md",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},children:[o.jsxs("div",{className:"card-elevated p-8 md:p-10",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx(se,{to:"/",className:"inline-block",children:o.jsx("img",{src:Ca,alt:"Visible",className:"h-12 mx-auto"})}),o.jsx("h2",{className:"text-xl font-semibold mt-4 mb-2",children:"Forgot your password?"}),o.jsx("p",{className:"text-muted-foreground",children:"No worries! Enter your email and we'll send you reset instructions."})]}),o.jsxs("form",{onSubmit:d,className:"space-y-5",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(Rt,{htmlFor:"email",children:"Email"}),o.jsxs("div",{className:"relative",children:[o.jsx(co,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),o.jsx(Bt,{id:"email",type:"email",placeholder:"[email protected]",value:e,onChange:f=>{t(f.target.value),s&&l("")},className:`pl-10 ${s?"border-destructive focus-visible:ring-destructive":""}`})]}),s&&o.jsx("p",{className:"text-sm text-destructive",children:s})]}),o.jsx(K,{type:"submit",className:"w-full gradient-bg text-primary-foreground hover:opacity-90 transition-opacity",size:"lg",disabled:n,children:n?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"mr-2 h-4 w-4 animate-spin"}),"Sending..."]}):"Send Reset Link"})]}),o.jsx("div",{className:"mt-6",children:o.jsxs(se,{to:"/login",className:"flex items-center justify-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[o.jsx(Kr,{className:"h-4 w-4"}),"Back to Sign In"]})})]}),o.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6",children:o.jsx(se,{to:"/",className:"hover:text-foreground transition-colors",children:"â Back to home"})})]})})]})},Rpe=()=>{const[e,t]=g.useState(""),[n,r]=g.useState(""),[i,a]=g.useState(!1),[s,l]=g.useState(!1),[c,u]=g.useState(!1),[h,d]=g.useState(!1),[f,p]=g.useState({}),[v,m]=g.useState(null),{toast:y}=Na(),b=zn();g.useEffect(()=>{const A=new URLSearchParams(window.location.hash.substring(1)),k=A.get("access_token"),C=A.get("type");k&&C==="recovery"?m(k):X.auth.getSession().then(({data:{session:E}})=>{E&&m(E.access_token)})},[]);const w=g.useMemo(()=>[{label:"At least 8 characters",met:e.length>=8},{label:"Contains uppercase letter",met:/[A-Z]/.test(e)},{label:"Contains number",met:/[0-9]/.test(e)}],[e]),x=w.every(A=>A.met),S=g.useMemo(()=>{let A=0;return e.length>=8&&A++,e.length>=12&&A++,/[A-Z]/.test(e)&&A++,/[a-z]/.test(e)&&A++,/[0-9]/.test(e)&&A++,/[^A-Za-z0-9]/.test(e)&&A++,Math.min(A,4)},[e]),j=["","Weak","Fair","Good","Strong"][S],N=["","bg-destructive","bg-orange-500","bg-yellow-500","bg-green-500"][S],_=()=>{const A={};return e?x||(A.password="Password does not meet requirements"):A.password="Password is required",n?e!==n&&(A.confirmPassword="Passwords do not match"):A.confirmPassword="Please confirm your password",p(A),Object.keys(A).length===0},P=async A=>
580{if(A.preventDefault(),!!_()){u(!0);try{const{error:k}=await X.auth.updateUser({password:e});k?y({variant:"destructive",title:"Reset failed",description:k.message}):(d(!0),await X.auth.signOut())}catch{y({variant:"destructive",title:"Reset failed",description:"An unexpected error occurred. Please try again."})}u(!1)}};return h?o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsx(Q.div,{className:"w-full max-w-md",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.5},children:o.jsxs("div",{className:"card-elevated p-8 md:p-10 text-center",children:[o.jsx("div",{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-green-100 flex items-center justify-center",children:o.jsx(ft,{className:"h-8 w-8 text-green-600"})}),o.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Password reset successful!"}),o.jsx("p",{className:"text-muted-foreground mb-6",children:"Your password has been updated. You can now sign in with your new password."}),o.jsx(K,{className:"w-full gradient-bg text-primary-foreground",onClick:()=>b("/login"),children:"Sign In"})]})})})]}):v?o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsxs(Q.div,{className:"w-full max-w-md",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},children:[o.jsxs("div",{className:"card-elevated p-8 md:p-10",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx(se,{to:"/",className:"inline-block",children:o.jsx("img",{src:Ca,alt:"Visible",className:"h-12 mx-auto"})}),o.jsx("h2",{className:"text-xl font-semibold mt-4 mb-2",children:"Reset your password"}),o.jsx("p",{className:"text-muted-foreground",children:"Enter your new password below."})]}),o.jsxs("form",{onSubmit:P,className:"space-y-4",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(Rt,{htmlFor:"password",children:"New Password"}),o.jsxs("div",{className:"relative",children:[o.jsx(ba,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),o.jsx(Bt,{id:"password",type:i?"text":"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:e,onChange:A=>{t(A.target.value),f.password&&p(k=>({...k,password:void 0}))},className:`pl-10 pr-10 ${f.password?"border-destructive focus-visible:ring-destructive":""}`}),o.jsx("button",{type:"button",onClick:()=>a(!i),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",children:i?o.jsx(mf,{className:"h-5 w-5"}):o.jsx(Pu,{className:"h-5 w-5"})})]}),e&&o.jsxs("div",{className:"space-y-2",children:[o.jsx("div",{className:"flex gap-1",children:[1,2,3,4].map(A=>o.jsx("div",{className:`h-1.5 flex-1 rounded-full transition-colors ${A<=S?N:"bg-muted"}`},A))}),S>0&&o.jsx("p",{className:`text-xs ${S<=1?"text-destructive":S===2?"text-orange-500":S===3?"text-yellow-600":"text-green-600"}`,children:j})]}),e&&o.jsx("div",{className:"space-y-1 pt-1",children:w.map((A,k)=>o.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[A.met?o.jsx(ft,{className:"h-4 w-4 text-green-600"}):o.jsx(xa,{className:"h-4 w-4 text-muted-foreground"}),o.jsx("span",{className:A.met?"text-green-600":"text-muted-foreground",children:A.label})]},k))}),f.password&&o.jsx("p",{className:"text-sm text-destructive",children:f.password})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Rt,{htmlFor:"confirmPassword",children:"Confirm New Password"}),o.jsxs("div",{className:"relative",children:[o.jsx(ba,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),o.jsx(Bt,{id:"confirmPassword",type:s?"text":"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:n,onChange:A=>{r(A.target.value),f.confirmPassword&&p(k=>({...k,confirmPassword:void 0}))},className:`pl-10 pr-10 ${f.confirmPassword?"border-destructive focus-visible:ring-destructive":""}`}),o.jsx("button",{type:"button",onClick:()=>l(!s),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",children:s?o.jsx(mf,{className:"h-5 w-5"}):o.jsx(Pu,{className:"h-5 w-5"})})]}),n&&e!==n&&o.jsx("p",{className:"text-sm text-destructive",children:"Passwords do not match"}),f.confirmPassword&&!n&&o.jsx("p",{className:"text-sm text-destructive",children:f.confirmPassword})]}),o.jsx(K,{type:"submit",className:"w-full gradient-bg text-primary-foreground hover:opacity-90 transition-opacity",size:"lg",disabled:c,
580children:c?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"mr-2 h-4 w-4 animate-spin"}),"Resetting..."]}):"Reset Password"})]})]}),o.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6",children:o.jsx(se,{to:"/",className:"hover:text-foreground transition-colors",children:"â Back to home"})})]})})]}):o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsx(Q.div,{className:"w-full max-w-md",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:o.jsxs("div",{className:"card-elevated p-8 md:p-10 text-center",children:[o.jsx("div",{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-orange-100 flex items-center justify-center",children:o.jsx(xa,{className:"h-8 w-8 text-orange-600"})}),o.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Invalid or expired link"}),o.jsx("p",{className:"text-muted-foreground mb-6",children:"This password reset link is invalid or has expired. Please request a new one."}),o.jsx(K,{asChild:!0,className:"w-full gradient-bg text-primary-foreground",children:o.jsx(se,{to:"/forgot-password",children:"Request New Link"})})]})})})]})},yO=()=>{const[e,t]=g.useState("waiting"),[n,r]=g.useState(""),[i,a]=g.useState(0),[s,l]=g.useState(!1),[c]=cs(),u=zn(),{toast:h}=Na();g.useEffect(()=>{(async()=>{var S,j,N,_,P,A;console.log("[verify-email] start",{path:window.location.pathname,hasHash:!!window.location.hash,hashPreview:window.location.hash?window.location.hash.slice(0,40)+"â¦":""});const v=new URLSearchParams(window.location.hash.substring(1)),m=v.get("access_token"),y=v.get("type"),b=v.get("error_description");if(console.log("[verify-email] hash parsed",{type:y,hasAccessToken:!!m,hasError:!!b}),b){t("failed");return}if(m&&y==="signup"){t("verifying");try{const{data:{session:k},error:C}=await X.auth.getSession();if(C){console.log("[verify-email] getSession error",{message:C.message}),t("failed");return}k?(console.log("[verify-email] session established after signup verify",{userId:(j=(S=k.user)==null?void 0:S.id)==null?void 0:j.substring(0,8),emailConfirmedAt:(N=k.user)==null?void 0:N.email_confirmed_at}),t("success"),r(((_=k.user)==null?void 0:_.email)||"")):(console.log("[verify-email] no session after signup verify"),t("failed"))}catch{console.log("[verify-email] exception during verification"),t("failed")}return}if(y==="email_change"&&m){t("success");return}const w=sessionStorage.getItem("pendingVerificationEmail")||localStorage.getItem("pendingVerificationEmail")||"";w&&r(w);const{data:{session:x}}=await X.auth.getSession();(P=x==null?void 0:x.user)!=null&&P.email_confirmed_at&&(console.log("[verify-email] user already verified",{userId:(A=x.user.id)==null?void 0:A.substring(0,8),emailConfirmedAt:x.user.email_confirmed_at}),t("success"),r(x.user.email||""))})()},[c]),g.useEffect(()=>{if(e!=="success")return;console.log("[verify-email] success -> redirecting to /onboarding/web");const p=window.setTimeout(()=>{sessionStorage.removeItem("pendingVerificationEmail"),localStorage.removeItem("pendingVerificationEmail"),u("/onboarding/web",{replace:!0})},700);return()=>window.clearTimeout(p)},[e,u]),g.useEffect(()=>{if(i>0){const p=setTimeout(()=>a(i-1),1e3);return()=>clearTimeout(p)}},[i]);const d=g.useCallback(async()=>{if(!(i>0||!n)){l(!0);try{const{error:p}=await X.auth.resend({type:"signup",email:n,options:{emailRedirectTo:`${window.location.origin}/verify-email`}});p?h({variant:"destructive",title:"Failed to resend",description:p.message}):(h({title:"Email sent!",description:"Check your inbox for the verification link."}),a(60))}catch{h({variant:"destructive",title:"Failed to resend",description:"An unexpected error occurred."})}l(!1)}},[n,i,h]),f=()=>{sessionStorage.removeItem("pendingVerificationEmail"),u("/signup")};return e==="verifying"?o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsx(Q.div,{className:"w-full max-w-md",initial:{opacity:0}
580,animate:{opacity:1},children:o.jsxs("div",{className:"card-elevated p-8 md:p-10 text-center",children:[o.jsx("div",{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:o.jsx(Ze,{className:"h-8 w-8 text-primary animate-spin"})}),o.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Verifying your email..."}),o.jsx("p",{className:"text-muted-foreground",children:"Please wait a moment."})]})})})]}):e==="success"?o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsx(Q.div,{className:"w-full max-w-md",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.5},children:o.jsxs("div",{className:"card-elevated p-8 md:p-10 text-center",children:[o.jsx(Q.div,{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-green-100 flex items-center justify-center",initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},children:o.jsx(ft,{className:"h-8 w-8 text-green-600"})}),o.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Email verified!"}),o.jsx("p",{className:"text-muted-foreground mb-6",children:"Your email has been successfully verified. You're all set to start using Visible."}),o.jsx(K,{className:"w-full gradient-bg text-primary-foreground",onClick:()=>u("/onboarding/web"),children:"Continue"})]})})})]}):e==="failed"?o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsx(Q.div,{className:"w-full max-w-md",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:o.jsxs("div",{className:"card-elevated p-8 md:p-10 text-center",children:[o.jsx("div",{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-destructive/10 flex items-center justify-center",children:o.jsx(xa,{className:"h-8 w-8 text-destructive"})}),o.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Link expired or invalid"}),o.jsx("p",{className:"text-muted-foreground mb-6",children:"This verification link has expired or is invalid. Please request a new one."}),o.jsxs("div",{className:"space-y-3",children:[n?o.jsx(K,{className:"w-full gradient-bg text-primary-foreground",onClick:d,disabled:s||i>0,children:s?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"mr-2 h-4 w-4 animate-spin"}),"Sending..."]}):i>0?`Resend in ${i}s`:o.jsxs(o.Fragment,{children:[o.jsx(Ha,{className:"mr-2 h-4 w-4"}),"Resend Verification Email"]})}):o.jsx(K,{asChild:!0,className:"w-full gradient-bg text-primary-foreground",children:o.jsx(se,{to:"/signup",children:"Sign Up Again"})}),o.jsx(K,{asChild:!0,variant:"outline",className:"w-full",children:o.jsx(se,{to:"/login",children:"Back to Sign In"})})]})]})})})]}):o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-50 via-pink-50 to-rose-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-orange-300 to-pink-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-pink-300 to-purple-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsxs(Q.div,{className:"w-full max-w-md",initial:{opacity:0,y:20}
580,animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},children:[o.jsxs("div",{className:"card-elevated p-8 md:p-10 text-center",children:[o.jsx(se,{to:"/",className:"inline-block mb-6",children:o.jsx("img",{src:Ca,alt:"Visible",className:"h-12 mx-auto"})}),o.jsx(Q.div,{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",animate:{scale:[1,1.05,1]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:o.jsx(Q.div,{animate:{y:[0,-3,0]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"},children:o.jsx(co,{className:"h-10 w-10 text-primary"})})}),o.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Check your email"}),o.jsx("p",{className:"text-muted-foreground mb-2",children:"We sent a verification link to"}),n&&o.jsx("p",{className:"font-medium text-foreground mb-6",children:n}),!n&&o.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"your email address"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Click the link in the email to verify your account. If you don't see it, check your spam folder."}),o.jsxs("div",{className:"space-y-3",children:[o.jsx(K,{variant:"outline",className:"w-full",onClick:d,disabled:s||i>0||!n,children:s?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"mr-2 h-4 w-4 animate-spin"}),"Sending..."]}):i>0?o.jsxs(o.Fragment,{children:[o.jsx(Ha,{className:"mr-2 h-4 w-4"}),"Resend in ",i,"s"]}):o.jsxs(o.Fragment,{children:[o.jsx(Ha,{className:"mr-2 h-4 w-4"}),"Resend Email"]})}),o.jsx("button",{onClick:f,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Use a different email"})]})]}),o.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6",children:o.jsx(se,{to:"/",className:"hover:text-foreground transition-colors",children:"â Back to home"})})]})})]})},J1="https://socialvisible.ai",bO="Visible â Your Social Media Manager. In WhatsApp.",xO="AI-powered social media management through WhatsApp. Just text a photo and Visible creates stunning Instagram posts for your small business. No apps, no dashboards.",Dpe=J1+"/";function ji(e,t,n){const r=document.querySelector(e);r&&r.setAttribute(t,n)}function Sd({title:e,description:t,path:n,ogImage:r}){g.useEffect(()=>{const i=J1+n;return document.title=e,ji('meta[name="description"]',"content",t),ji('link[rel="canonical"]',"href",i),ji('meta[property="og:title"]',"content",e),ji('meta[property="og:description"]',"content",t),ji('meta[property="og:url"]',"content",i),r&&ji('meta[property="og:image"]',"content",r),()=>{document.title=bO,ji('meta[name="description"]',"content",xO),ji('link[rel="canonical"]',"href",J1),ji('meta[property="og:title"]',"content",bO),ji('meta[property="og:description"]',"content",xO),ji('meta[property="og:url"]',"content",Dpe)}},[e,t,n,r])}const Mpe=()=>{Sd({title:"Terms of Service â Visible",description:"The terms and conditions for using Visible, the WhatsApp social media manager for small businesses.",path:"/terms"});const{t:e,i18n:t}=Le(),n=t.language==="he",r=n?tr:Kr,i=["acceptance","description","eligibility","accountSecurity","subscriptionBilling","usageLimits","aiDisclaimer","thirdPartyPlatforms","contentOwnership","intellectualProperty","acceptableUseRef","suspensionTermination","indemnification","limitationOfLiability","disclaimerOfWarranties","governingLaw","forceMajeure","modificationsToService","changesToTerms","contactUs"];return o.jsx("div",{className:"min-h-screen bg-gradient-to-br from-orange-50 via-pink-50 to-rose-50",dir:n?"rtl":"ltr",children:o.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[o.jsx(se,{to:"/",children:o.jsxs(K,{variant:"ghost",className:"mb-6 text-muted-foreground hover:text-foreground",children:[o.jsx(r,{className:"w-4 h-4 me-2"}),e("contact.backToHome")]})}),o.jsxs("div",{className:"mb-8",children:[o.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-2",children:e("terms.title")}),o.jsx("p",{className:"text-muted-foreground",children:e("terms.lastUpdated")})]}),o.jsx("div",{className:"bg-white/80 backdrop-blur-sm rounded-2xl p-6 md:p-10 shadow-soft space-y-8",children:i.map(a=>{const s=e(`terms.sections.${a}`,{returnObjects:!0});return!s||typeof s=="string"?null:o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:s.title}),s.content&&o.jsx("p",{className:"text-muted-foreground leading-relaxed whitespace-pre-line",children:s.content}),s.intro&&o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-3",children:s.intro}),s.items&&o.jsx("ul",{className:"list-disc list-inside text-muted-foreground space-y-2 ms-4",children:s.items.map((l,c)=>o.jsx("li",{children:l},c))}),s.afterItems&&o.jsx("p",{className:"text-muted-foreground leading-relaxed mt-3",children:s.afterItems}),a==="contactUs"&&s.contactPage&&o.jsxs("p",{className:"text-muted-foreground leading-relaxed mt-2",children:[o.jsx(se,{to:"/contact",className:"text-primary hover:underline",children:s.contactPage})," ",s.orEmail]})]},a)})}),o.jsxs("div",{className:"mt-8 text-center text-sm text-muted-foreground space-x-4 rtl:space-x-reverse",children:[o.jsx(se,{to:"/privacy",className:"hover:text-primary",children:e("footer.privacy")}),o.jsx(se,{to:"/acceptable-use",className:"hover:text-primary",children:e("footer.acceptableUse")}),o.jsx(se,{to:"/contact",className:"hover:text-primary",children:e("footer.contact")})]})]})})},$pe=()=>{Sd({title:"Privacy Policy â Visible",description:"How Visible collects, uses, and protects your personal data while running your social media from WhatsApp.",path:"/privacy"});const{t:e,i18n:t}=Le(),n=t.language==="he",r=n?tr:Kr,i=["introduction","informationWeCollect","howWeUse","lawfulBasis","dataSharing","internationalTransfers","dataRetention","dataSecurity","aiProcessing","cookies","dataSubjectRights","children","changes","contactUs"];return o.jsx("div",{className:"min-h-screen bg-gradient-to-br from-orange-50 via-pink-50 to-rose-50",dir:n?"rtl":"ltr",children:o.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[o.jsx(se,{to:"/",children:o.jsxs(K,{variant:"ghost",className:"mb-6 text-muted-foreground hover:text-foreground",children:[o.jsx(r,{className:"w-4 h-4 me-2"}),e("contact.backToHome")]})}),o.jsxs("div",{className:"mb-8",children:[o.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-2",children:e("privacy.title")}),o.jsx("p",{className:"text-muted-foreground",children:e("privacy.lastUpdated")})]}),o.jsx("div",{className:"bg-white/80 backdrop-blur-sm rounded-2xl p-6 md:p-10 shadow-soft space-y-8",children:i.map(a=>{const s=e(`privacy.sections.${a}`,{returnObjects:!0});return!s||typeof s=="string"?null:o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:s.title}),s.content&&o.jsx("p",{className:"text-muted-foreground leading-relaxed whitespace-pre-line",children:s.content}),s.intro&&o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-3",children:s.intro}),s.items&&o.jsx("ul",{className:"list-disc list-inside text-muted-foreground space-y-2 ms-4",children:s.items.map((l,c)=>o.jsx("li",{children:l},c))}),s.noSell&&o.jsx("p",{className:"text-muted-foreground leading-relaxed mt-3 font-medium",children:s.noSell}),s.afterItems&&o.jsx("p",{className:"text-muted-foreground leading-relaxed mt-3",children:s.afterItems}),a==="contactUs"&&s.contactPage&&o.jsxs("p",{className:"text-muted-foreground leading-relaxed mt-2",children:[o.jsx(se,{to:"/contact",className:"text-primary hover:underline",children:s.contactPage})," ",s.orEmail]})]},a)})}),o.jsxs("div",{className:"mt-8 text-center text-sm text-muted-foreground space-x-4 rtl:space-x-reverse",children:[o.jsx(se,{to:"/terms",className:"hover:text-primary",children:e("footer.terms")}),o.jsx(se,{to:"/acceptable-use",className:"hover:text-primary",children:e("footer.acceptableUse")}),o.jsx(se,{to:"/contact",className:"hover:text-primary",children:e("footer.contact")})]})]})})},Lpe=()=>{Sd({title:"Acceptable Use Policy â Visible",description:"What you can and cannot do when using Visible to manage your social media accounts.",path:"/acceptable-use"});const{t:e,i18n:t}=Le(),n=t.language==="he",r=n?tr:Kr;return o.jsx("div",{className:"min-h-screen bg-gradient-to-br from-orange-50 via-pink-50 to-rose-50",dir:n?"rtl":"ltr",children:o.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[o.jsx(se,{to:"/",children:o.jsxs(K,{variant:"ghost",className:"mb-6 text-muted-foreground hover:text-foreground",children:[o.jsx(r,{className:"w-4 h-4 me-2"}),e("contact.backToHome")]})}),o.jsxs("div",{className:"mb-8",children:[o.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-2",children:e("acceptableUse.title")}),o.jsx("p",{className:"text-muted-foreground",children:e("acceptableUse.lastUpdated")})]}),o.jsxs("div",{className:"bg-white/80 backdrop-blur-sm rounded-2xl p-6 md:p-10 shadow-soft space-y-8",children:[o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:e("acceptableUse.sections.introduction.title")}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e("acceptableUse.sections.introduction.content")})]}),o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:e("acceptableUse.sections.prohibitedActivities.title")}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-3",children:e("acceptableUse.sections.prohibitedActivities.intro")}),o.jsx("ul",{className:"list-disc list-inside text-muted-foreground space-y-2 ms-4",children:e("acceptableUse.sections.prohibitedActivities.items",{returnObjects:!0}).map((i,a)=>o.jsx("li",{children:i},a))})]}),o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:e("acceptableUse.sections.contentRestrictions.title")}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-3",children:e("acceptableUse.sections.contentRestrictions.intro")}),o.jsx("ul",{className:"list-disc list-inside text-muted-foreground space-y-2 ms-4",children:e("acceptableUse.sections.contentRestrictions.items",{returnObjects:!0}).map((i,a)=>o.jsx("li",{children:i},a))})]}),o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:e("acceptableUse.sections.securityRestrictions.title")}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-3",children:e("acceptableUse.sections.securityRestrictions.intro")}),o.jsx("ul",{className:"list-disc list-inside text-muted-foreground space-y-2 ms-4",children:e("acceptableUse.sections.securityRestrictions.items",{returnObjects:!0}).map((i,a)=>o.jsx("li",{children:i},a))})]}),o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:e("acceptableUse.sections.enforcement.title")}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-3",children:e("acceptableUse.sections.enforcement.intro")}),o.jsx("ul",{className:"list-disc list-inside text-muted-foreground space-y-2 ms-4",children:e("acceptableUse.sections.enforcement.items",{returnObjects:!0}).map((i,a)=>o.jsx("li",{children:i},a))})]}),o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:e("acceptableUse.sections.reporting.title")}),o.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:[e("acceptableUse.sections.reporting.content")," ",o.jsx(se,{to:"/contact",className:"text-primary hover:underline",children:e("acceptableUse.sections.reporting.contactPage")})," ",e("acceptableUse.sections.reporting.orEmail")]})]})]}),o.jsxs("div",{className:"mt-8 text-center text-sm text-muted-foreground space-x-4 rtl:space-x-reverse",children:[o.jsx(se,{to:"/terms",className:"hover:text-primary",children:e("footer.terms")}),o.jsx(se,{to:"/privacy",className:"hover:text-primary",children:e("footer.privacy")}),o.jsx(se,{to:"/contact",className:"hover:text-primary",children:e("footer.contact")})]})]})})},Vpe=()=>{Sd({title:"Refund Policy â Visible",description:"How refunds work for Visible subscriptions and credit packs.",path:"/refund"});const{t:e,i18n:t}=Le(),n=t.language==="he",r=n?tr:Kr;return o.jsx("div",{className:"min-h-screen bg-gradient-to-br from-orange-50 via-pink-50 to-rose-50",dir:n?"rtl":"ltr",children:o.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[o.jsx(se,{to:"/",children:o.jsxs(K,{variant:"ghost",className:"mb-6 text-muted-foreground hover:text-foreground",children:[o.jsx(r,{className:"w-4 h-4 me-2"}),e("contact.backToHome")]})}),o.jsxs("div",{className:"mb-8",children:[o.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-2",children:e("refund.title")}),o.jsx("p",{className:"text-muted-foreground",children:e("refund.lastUpdated")})]}),o.jsx("div",{className:"bg-white/80 backdrop-blur-sm rounded-2xl p-6 md:p-10 shadow-soft space-y-8",children:["subscriptionNature","cancellation","noPartialRefunds","exceptionalCircumstances","chargebackPolicy","freeTrial","legalExceptions","contactUs"].map(i=>{const a=e(`refund.sections.${i}`,{returnObjects:!0});return o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:a.title}),a.content&&o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:a.content}),a.intro&&o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-3",children:a.intro}),a.items&&o.jsx("ul",{className:"list-disc list-inside text-muted-foreground space-y-2 ms-4",children:a.items.map((s,l)=>o.jsx("li",{children:s},l))}),i==="contactUs"&&o.jsxs("p",{className:"text-muted-foreground leading-relaxed mt-2",children:[o.jsx(se,{to:"/contact",className:"text-primary hover:underline",children:e("refund.sections.contactUs.contactPage")})," ",e("refund.sections.contactUs.orEmail")]})]},i)})}),o.jsxs("div",{className:"mt-8 text-center text-sm text-muted-foreground space-x-4 rtl:space-x-reverse",children:[o.jsx(se,{to:"/terms",className:"hover:text-primary",children:e("footer.terms")}),o.jsx(se,{to:"/privacy",className:"hover:text-primary",children:e("footer.privacy")}),o.jsx(se,{to:"/acceptable-use",className:"hover:text-primary",children:e("footer.acceptableUse")}),o.jsx(se,{to:"/contact",className:"hover:text-primary",children:e("footer.contact")})]})]})})},jd=g.forwardRef(({className:e,...t},n)=>o.jsx("textarea",{className:oe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
580ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));jd.displayName="Textarea";function Q1(e,[t,n]){return Math.min(n,Math.max(t,e))}var Fpe=[" ","Enter","ArrowUp","ArrowDown"],Bpe=[" ","Enter"],Ol="Select",[Rb,Db,zpe]=Cp(Ol),[_d,wze]=Fn(Ol,[zpe,hd]),Mb=hd(),[Upe,jo]=_d(Ol),[Wpe,qpe]=_d(Ol),$z=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:s,defaultValue:l,onValueChange:c,dir:u,name:h,autoComplete:d,disabled:f,required:p,form:v}=e,m=Mb(t),[y,b]=g.useState(null),[w,x]=g.useState(null),[S,j]=g.useState(!1),N=xd(u),[_,P]=pi({prop:r,defaultProp:i??!1,onChange:a,caller:Ol}),[A,k]=pi({prop:s,defaultProp:l,onChange:c,caller:Ol}),C=g.useRef(null),E=y?v||!!y.closest("form"):!0,[I,O]=g.useState(new Set),M=Array.from(I).map($=>$.props.value).join(";");return o.jsx(O4,{...m,children:o.jsxs(Upe,{required:p,scope:t,trigger:y,onTriggerChange:b,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:j,contentId:li(),value:A,onValueChange:k,open:_,onOpenChange:P,dir:N,triggerPointerDownPosRef:C,disabled:f,children:[o.jsx(Rb.Provider,{scope:t,children:o.jsx(Wpe,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback($=>{O(L=>new Set(L).add($))},[]),onNativeOptionRemove:g.useCallback($=>{O(L=>{const T=new Set(L);return T.delete($),T})},[]),children:n})}),E?o.jsxs(oU,{"aria-hidden":!0,required:p,tabIndex:-1,name:h,autoComplete:d,value:A,onChange:$=>k($.target.value),disabled:f,form:v,children:[A===void 0?o.jsx("option",{value:""}):null,Array.from(I)]},M):null]})})};$z.displayName=Ol;var Lz="SelectTrigger",Vz=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,a=Mb(n),s=jo(Lz,n),l=s.disabled||r,c=Me(t,s.onTriggerChange),u=Db(n),h=g.useRef("touch"),[d,f,p]=cU(m=>{const y=u().filter(x=>!x.disabled),b=y.find(x=>x.value===s.value),w=uU(y,m,b);w!==void 0&&s.onValueChange(w.value)}),v=m=>{l||(s.onOpenChange(!0),p()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return o.jsx(WN,{asChild:!0,...a,children:o.jsx(ye.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":lU(s.value)?"":void 0,...i,ref:c,onClick:le(i.onClick,m=>{m.currentTarget.focus(),h.current!=="mouse"&&v(m)}),onPointerDown:le(i.onPointerDown,m=>{h.current=m.pointerType;const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:le(i.onKeyDown,m=>{const y=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(y&&m.key===" ")&&Fpe.includes(m.key)&&(v(),m.preventDefault())})})})});Vz.displayName=Lz;var Fz="SelectValue",Bz=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:a,placeholder:s="",...l}=e,c=jo(Fz,n),{onValueNodeHasChildrenChange:u}=c,h=a!==void 0,d=Me(t,c.onValueNodeChange);return xn(()=>{u(h)},[u,h]),o.jsx(ye.span,{...l,ref:d,style:{pointerEvents:"none"},children:lU(c.value)?o.jsx(o.Fragment,{children:s}):a})});Bz.displayName=Fz;var Hpe="SelectIcon",zz=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return o.jsx(ye.span,{"aria-hidden":!0,...i,ref:t,children:r||"â¼"})});zz.displayName=Hpe;var Gpe="SelectPortal",Uz=e=>o.jsx(Ep,{asChild:!0,...e});Uz.displayName=Gpe;var Il="SelectContent",Wz=g.forwardRef((e,t)=>{const n=jo(Il,e.__scopeSelect),[r,i]=g.useState();if(xn(()=>{i(new DocumentFragment)},[]),!n.open){const a=r;return a?zl.createPortal(o.jsx(qz,{scope:e.__scopeSelect,children:o.jsx(Rb.Slot,{scope:e.__scopeSelect,children:o.jsx("div",{children:e.children})})}),a):null}return o.jsx(Hz,{...e,ref:t})});Wz.displayName=Il;var Ai=10,[qz,_o]=_d(Il),Kpe="SelectContentImpl",Ype=Sl("SelectContent.RemoveScroll"),Hz=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:c,align:u,alignOffset:h,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:v,hideWhenDetached:m,avoidCollisions:y,...b}=e,w=jo(Il,n),[x,S]=g.useState(null),[j,N]=g.useState(null),_=Me(t,ee=>S(ee)),[P,A]=g.useState(null),[k,C]=g.useState(null),E=Db(n),[I,O]=g.useState(!1),M=g.useRef(!1);g.useEffect(()=>{if(x)return UP(x)},[x]),zP();const $=g.useCallback(ee=>{const[J,...U]=E().map(q=>q.ref.current),[Y]=U.slice(-1),ae=document.activeElement;for(const q of ee)if(q===ae||(q==null||q.scrollIntoView({block:"nearest"}),q===J&&j&&(j.scrollTop=0),q===Y&&j&&(j.scrollTop=j.scrollHeight),q==null||q.focus(),document.activeElement!==ae))return},[E,j]),L=g.useCallback(()=>$([P,x]),[$,P,x]);g.useEffect(()=>{I&&L()},[I,L]);const{onOpenChange:T,triggerPointerDownPosRef:R}=w;g.useEffect(()=>{if(x){let ee={x:0,y:0};const J=Y=>{var ae,q;ee={x:Math.abs(Math.round(Y.pageX)-(((ae=R.current)==null?void 0:ae.x)??0)),y:Math.abs(Math.round(Y.pageY)-(((q=R.current)==null?void 0:q.y)??0))}},U=Y=>{ee.x<=10&&ee.y<=10?Y.preventDefault():x.contains(Y.target)||T(!1),document.removeEventListener("pointermove",J),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",U,{capture:!0})}}},[x,T,R]),g.useEffect(()=>{const ee=()=>T(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[T]);const[z,F]=cU(ee=>{const J=E().filter(ae=>!ae.disabled),U=J.find(ae=>ae.ref.current===document.activeElement),Y=uU(J,ee,U);Y&&setTimeout(()=>Y.ref.current.focus())}),B=g.useCallback((ee,J,U)=>{const Y=!M.current&&!U;(w.value!==void 0&&w.value===J||Y)&&(A(ee),Y&&(M.current=!0))},[w.value]),W=g.useCallback(()=>x==null?void 0:x.focus(),[x]),Z=g.useCallback((ee,J,U)=>{const Y=!M.current&&!U;(w.value!==void 0&&w.value===J||Y)&&C(ee)},[w.value]),fe=r==="popper"?Z1:Gz,we=fe===Z1?{side:l,sideOffset:c,align:u,alignOffset:h,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:v,hideWhenDetached:m,avoidCollisions:y}:{};return o.jsx(qz,{scope:n,content:x,viewport:j,onViewportChange:N,itemRefCallback:B,selectedItem:P,onItemLeave:W,itemTextRefCallback:Z,focusSelectedItem:L,selectedItemText:k,position:r,isPositioned:I,searchRef:z,children:o.jsx(jb,{as:Ype,allowPinchZoom:!0,children:o.jsx(wb,{asChild:!0,trapped:w.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:le(i,ee=>{var J;(J=w.trigger)==null||J.focus({preventScroll:!0}),ee.preventDefault()}),children:o.jsx(sd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:o.jsx(fe,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:ee=>ee.preventDefault(),...b,...we,onPlaced:()=>O(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:le(b.onKeyDown,ee=>{const J=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!J&&ee.key.length===1&&F(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let Y=E().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const ae=ee.target,q=Y.indexOf(ae);Y=Y.slice(q+1)}setTimeout(()=>$(Y)),ee.preventDefault()}})})})})})})});Hz.displayName=Kpe;var Xpe="SelectItemAlignedPosition",Gz=g.forwardRef((e,t)=>
vendor: 10,748 bytes, line 580
580{const{__scopeSelect:n,onPlaced:r,...i}=e,a=jo(Il,n),s=_o(Il,n),[l,c]=g.useState(null),[u,h]=g.useState(null),d=Me(t,_=>h(_)),f=Db(n),p=g.useRef(!1),v=g.useRef(!0),{viewport:m,selectedItem:y,selectedItemText:b,focusSelectedItem:w}=s,x=g.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&m&&y&&b){const _=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),A=a.valueNode.getBoundingClientRect(),k=b.getBoundingClientRect();if(a.dir!=="rtl"){const ae=k.left-P.left,q=A.left-ae,Pe=_.left-q,te=_.width+Pe,re=Math.max(te,P.width),_e=window.innerWidth-Ai,Ve=Q1(q,[Ai,Math.max(Ai,_e-re)]);l.style.minWidth=te+"px",l.style.left=Ve+"px"}else{const ae=P.right-k.right,q=window.innerWidth-A.right-ae,Pe=window.innerWidth-_.right-q,te=_.width+Pe,re=Math.max(te,P.width),_e=window.innerWidth-Ai,Ve=Q1(q,[Ai,Math.max(Ai,_e-re)]);l.style.minWidth=te+"px",l.style.right=Ve+"px"}const C=f(),E=window.innerHeight-Ai*2,I=m.scrollHeight,O=window.getComputedStyle(u),M=parseInt(O.borderTopWidth,10),$=parseInt(O.paddingTop,10),L=parseInt(O.borderBottomWidth,10),T=parseInt(O.paddingBottom,10),R=M+$+I+T+L,z=Math.min(y.offsetHeight*5,R),F=window.getComputedStyle(m),B=parseInt(F.paddingTop,10),W=parseInt(F.paddingBottom,10),Z=_.top+_.height/2-Ai,fe=E-Z,we=y.offsetHeight/2,ee=y.offsetTop+we,J=M+$+ee,U=R-J;if(J<=Z){const ae=C.length>0&&y===C[C.length-1].ref.current;l.style.bottom="0px";const q=u.clientHeight-m.offsetTop-m.offsetHeight,Pe=Math.max(fe,we+(ae?W:0)+q+L),te=J+Pe;l.style.height=te+"px"}else{const ae=C.length>0&&y===C[0].ref.current;l.style.top="0px";const Pe=Math.max(Z,M+m.offsetTop+(ae?B:0)+we)+U;l.style.height=Pe+"px",m.scrollTop=J-Z+m.offsetTop}l.style.margin=`${Ai}px 0`,l.style.minHeight=z+"px",l.style.maxHeight=E+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,l,u,m,y,b,a.dir,r]);xn(()=>x(),[x]);const[S,j]=g.useState();xn(()=>{u&&j(window.getComputedStyle(u).zIndex)},[u]);const N=g.useCallback(_=>{_&&v.current===!0&&(x(),w==null||w(),v.current=!1)},[x,w]);return o.jsx(Qpe,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:N,children:o.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:o.jsx(ye.div,{...i,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});Gz.displayName=Xpe;var Jpe="SelectPopperPosition",Z1=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Ai,...a}=e,s=Mb(n);return o.jsx(qN,{...s,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...a.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)"}})});Z1.displayName=Jpe;var[Qpe,mA]=_d(Il,{}),ej="SelectViewport",Kz=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,a=_o(ej,n),s=mA(ej,n),l=Me(t,a.onViewportChange),c=g.useRef(0);return o.jsxs(o.Fragment,{children:[o.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),o.jsx(Rb.Slot,{scope:n,children:o.jsx(ye.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:le(i.onScroll,u=>{const h=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=s;if(f!=null&&f.current&&d){const p=Math.abs(c.current-h.scrollTop);if(p>0){const v=window.innerHeight-Ai*2,m=parseFloat(d.style.minHeight),y=parseFloat(d.style.height),b=Math.max(m,y);if(b<v){const w=b+p,x=Math.min(v,w),S=w-x;d.style.height=x+"px",d.style.bottom==="0px"&&(h.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}c.current=h.scrollTop})})})]})});Kz.displayName=ej;var Yz="SelectGroup",[Zpe,eme]=_d(Yz),tme=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=li();return o.jsx(Zpe,{scope:n,id:i,children:o.jsx(ye.div,{role:"group","aria-labelledby":i,...r,ref:t})})});tme.displayName=Yz;var Xz="SelectLabel",Jz=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=eme(Xz,n);return o.jsx(ye.div,{id:i.id,...r,ref:t})});Jz.displayName=Xz;var Ov="SelectItem",[nme,Qz]=_d(Ov),Zz=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...s}=e,l=jo(Ov,n),c=_o(Ov,n),u=l.value===r,[h,d]=g.useState(a??""),[f,p]=g.useState(!1),v=Me(t,w=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,w,r,i)}),m=li(),y=g.useRef("touch"),b=()=>{i||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")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 o.jsx(nme,{scope:n,value:r,disabled:i,textId:m,isSelected:u,onItemTextChange:g.useCallback(w=>{d(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:o.jsx(Rb.ItemSlot,{scope:n,value:r,disabled:i,textValue:h,children:o.jsx(ye.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:v,onFocus:le(s.onFocus,()=>p(!0)),onBlur:le(s.onBlur,()=>p(!1)),onClick:le(s.onClick,()=>{y.current!=="mouse"&&b()}),onPointerUp:le(s.onPointerUp,()=>{y.current==="mouse"&&b()}),onPointerDown:le(s.onPointerDown,w=>{y.current=w.pointerType}),onPointerMove:le(s.onPointerMove,w=>{var x;y.current=w.pointerType,i?(x=c.onItemLeave)==null||x.call(c):y.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:le(s.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:le(s.onKeyDown,w=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(Bpe.includes(w.key)&&b(),w.key===" "&&w.preventDefault())})})})})});Zz.displayName=Ov;var _h="SelectItemText",eU=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...a}=e,s=jo(_h,n),l=_o(_h,n),c=Qz(_h,n),u=qpe(_h,n),[h,d]=g.useState(null),f=Me(t,b=>d(b),c.onItemTextChange,b=>{var w;return(w=l.itemTextRefCallback)==null?void 0:w.call(l,b,c.value,c.disabled)}),p=h==null?void 0:h.textContent,v=g.useMemo(()=>o.jsx("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:y}=u;return xn(()=>(m(v),()=>y(v)),[m,y,v]),o.jsxs(o.Fragment,{children:[o.jsx(ye.span,{id:c.textId,...a,ref:f}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?zl.createPortal(a.children,s.valueNode):null]})});eU.displayName=_h;var tU="SelectItemIndicator",nU=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Qz(tU,n).isSelected?o.jsx(ye.span,{"aria-hidden":!0,...r,ref:t}):null});nU.displayName=tU;var tj="SelectScrollUpButton",rU=g.forwardRef((e,t)=>{const n=_o(tj,e.__scopeSelect),r=mA(tj,e.__scopeSelect),[i,a]=g.useState(!1),s=Me(t,r.onScrollButtonChange);return xn(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?o.jsx(aU,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});rU.displayName=tj;var nj="SelectScrollDownButton",iU=g.forwardRef((e,t)=>{const n=_o(nj,e.__scopeSelect),r=mA(nj,e.__scopeSelect),[i,a]=g.useState(!1),s=Me(t,r.onScrollButtonChange);return xn(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,h=Math.ceil(c.scrollTop)<u;a(h)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?o.jsx(aU,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});iU.displayName=nj;var aU=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,a=_o("SelectScrollButton",n),s=g.useRef(null),l=Db(n),c=g.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return g.useEffect(()=>()=>c(),[c]),xn(()=>{var h;const u=l().find(d=>d.ref.current===document.activeElement);(h=u==null?void 0:u.ref.current)==null||h.scrollIntoView({block:"nearest"})},[l]),o.jsx(ye.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:le(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:le(i.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:le(i.onPointerLeave,()=>{c()})})}),rme="SelectSeparator",sU=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return o.jsx(ye.div,{"aria-hidden":!0,...r,ref:t})});sU.displayName=rme;var rj="SelectArrow",ime=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Mb(n),a=jo(rj,n),s=_o(rj,n);return a.open&&s.position==="popper"?o.jsx(HN,{...i,...r,ref:t}):null});ime.displayName=rj;var ame="SelectBubbleInput",oU=g.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=g.useRef(null),a=Me(r,i),s=dA(t);return g.useEffect(()=>{const l=i.current;if(!l)return;const c=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&h){const d=new Event("change",{bubbles:!0});h.call(l,t),l.dispatchEvent(d)}},[s,t]),o.jsx(ye.select,{...n,style:{...y3,...n.style},ref:a,defaultValue:t})});oU.displayName=ame;function lU(e){return e===""||e===void 0}function cU(e){const t=tn(e),n=g.useRef(""),r=g.useRef(0),i=g.useCallback(s=>{const l=n.current+s;t(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),a=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function uU(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=sme(e,Math.max(a,0));i.length===1&&(s=s.filter(u=>u!==n));const c=s.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function sme(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ome=$z,dU=Vz,lme=Bz,cme=zz,ume=Uz,hU=Wz,dme=Kz,fU=Jz,pU=Zz,hme=eU,fme=nU,mU=rU,gU=iU,vU=sU;const _r=ome,Nr=lme,lr=g.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(dU,{ref:r,className:oe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
580ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,o.jsx(cme,{asChild:!0,children:o.jsx(CN,{className:"h-4 w-4 opacity-50"})})]}));lr.displayName=dU.displayName;const yU=g.forwardRef(({className:e,...t},n)=>o.jsx(mU,{ref:n,className:oe("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(d9,{className:"h-4 w-4"})}));yU.displayName=mU.displayName;const bU=g.forwardRef(({className:e,...t},n)=>o.jsx(gU,{ref:n,className:oe("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(CN,{className:"h-4 w-4"})}));bU.displayName=gU.displayName;const cr=g.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>o.jsx(ume,{children:o.jsxs(hU,{ref:i,className:oe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[o.jsx(yU,{}),o.jsx(dme,{className:oe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),o.jsx(bU,{})]})}));cr.displayName=hU.displayName;const pme=g.forwardRef(({className:e,...t},n)=>o.jsx(fU,{ref:n,className:oe("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));pme.displayName=fU.displayName;const Ke=g.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(pU,{ref:r,className:oe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(fme,{children:o.jsx(ft,{className:"h-4 w-4"})})}),o.jsx(hme,{children:t})]}));Ke.displayName=pU.displayName;const mme=g.forwardRef(({className:e,...t},n)=>o.jsx(vU,{ref:n,className:oe("-mx-1 my-1 h-px bg-muted",e),...t}));mme.displayName=vU.displayName;const gme=()=>{Sd({title:"Contact Visible â Get in touch with our team",description:"Questions about Visible, billing, or your account? Send us a message and the team will get back to you.",path:"/contact"});const{t:e,i18n:t}=Le(),n=t.language==="he",r=n?tr:Kr,{toast:i}=Na(),[a,s]=g.useState(!1),[l,c]=g.useState(!1),[u,h]=g.useState({name:"",email:"",subject:"",message:""}),[d,f]=g.useState({}),p=()=>{const y={};return u.name.trim()||(y.name=e("contact.errors.nameRequired")),u.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(u.email)||(y.email=e("contact.errors.emailInvalid")):y.email=e("contact.errors.emailRequired"),u.subject||(y.subject=e("contact.errors.subjectRequired")),u.message.trim()?u.message.trim().length<10&&(y.message=e("contact.errors.messageMinLength")):y.message=e("contact.errors.messageRequired"),f(y),Object.keys(y).length===0},v=async y=>{var b,w;if(y.preventDefault(),!!p()){s(!0);try{const{data:x,error:S}=await X.functions.invoke("send-contact-notification",{body:{name:u.name.trim(),email:u.email.trim(),subject:u.subject,message:u.message.trim()}});if(S)throw console.error("Contact form error:",S),new Error(S.message||"Failed to send message");if(x!=null&&x.error)throw new Error(x.error);c(!0),i({title:e("contact.toast.successTitle"),description:e("contact.toast.successDescription")})}catch(x){console.error("Error submitting form:",x);const S=(b=x.message)!=null&&b.includes("Rate limit")?e("contact.toast.errorRateLimit"):(w=x.message)!=null&&w.includes("Invalid email")?e("contact.toast.errorInvalidEmail"):e("contact.toast.errorGeneric");i({title:e("contact.toast.errorTitle"),description:S,variant:"destructive"})}finally{s(!1)}}},m=(y,b)=>{h(w=>({...w,[y]:b})),d[y]&&f(w=>({...w,[y]:""}))};return l?o.jsx("div",{className:"min-h-screen bg-gradient-to-br from-orange-50 via-pink-50 to-rose-50 flex items-center justify-center px-4",dir:n?"rtl":"ltr",children:o.jsxs("div",{className:"text-center max-w-md",children:[o.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:o.jsx(jl,{className:"w-10 h-10 text-green-600"})}),o.jsx("h1",{className:"text-2xl font-bold text-foreground mb-3",children:e("contact.success.title")}),o.jsx("p",{className:"text-muted-foreground mb-6",children:e("contact.success.description")}),o.jsxs("div",{className:"space-x-4 rtl:space-x-reverse",children:[o.jsx(se,{to:"/",children:o.jsx(K,{variant:"outline",children:e("contact.success.backToHome")})}),o.jsx(K,{onClick:()=>{c(!1),h({name:"",email:"",subject:"",message:""})},children:e("contact.success.sendAnother")})]})]})}):o.jsx("div",{className:"min-h-screen bg-gradient-to-br from-orange-50 via-pink-50 to-rose-50",dir:n?"rtl":"ltr",children:o.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[o.jsx(se,{to:"/",children:o.jsxs(K,{variant:"ghost",className:"mb-6 text-muted-foreground hover:text-foreground",children:[o.jsx(r,{className:"w-4 h-4 me-2"}),e("contact.backToHome")]})}),o.jsxs("div",{className:"text-center mb-10",children:[o.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-3",children:e("contact.title")}),o.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:e("contact.subtitle")})]}),o.jsxs("div",{className:"bg-white/80 backdrop-blur-sm rounded-2xl p-6 md:p-8 shadow-soft",children:[o.jsxs("div",{className:"flex flex-wrap gap-6 justify-center mb-8 pb-8 border-b border-border/50",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center",children:o.jsx(co,{className:"w-5 h-5 text-primary"})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs text-muted-foreground",children:e("contact.email")}),o.jsx("a",{href:"mailto:[email protected]",className:"text-sm font-medium text-foreground hover:text-primary",children:"[email protected]"})]})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center",children:o.jsx(H3,{className:"w-5 h-5 text-primary"})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs text-muted-foreground",children:e("contact.location")}),o.jsx("p",{className:"text-sm font-medium text-foreground",children:e("contact.locationValue")})]})]})]}),o.jsxs("form",{onSubmit:v,className:"space-y-5 max-w-2xl mx-auto",children:[o.jsxs("div",{className:"grid md:grid-cols-2 gap-5",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsxs(Rt,{htmlFor:"name",children:[e("contact.form.fullName")," *"]}),o.jsx(Bt,{id:"name",placeholder:e("contact.form.fullNamePlaceholder"),value:u.name,onChange:y=>m("name",y.target.value),className:d.name?"border-destructive":""}),d.name&&o.jsx("p",{className:"text-xs text-destructive",children:d.name})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsxs(Rt,{htmlFor:"email",children:[e("contact.form.email")," *"]}),o.jsx(Bt,{id:"email",type:"email",placeholder:e("contact.form.emailPlaceholder"),value:u.email,onChange:y=>m("email",y.target.value),className:d.email?"border-destructive":""}),d.email&&o.jsx("p",{className:"text-xs text-destructive",children:d.email})]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsxs(Rt,{htmlFor:"subject",children:[e("contact.form.subject")," *"]}),o.jsxs(_r,{value:u.subject,onValueChange:y=>
580m("subject",y),children:[o.jsx(lr,{className:d.subject?"border-destructive":"",children:o.jsx(Nr,{placeholder:e("contact.form.subjectPlaceholder")})}),o.jsxs(cr,{children:[o.jsx(Ke,{value:"general",children:e("contact.subjects.general")}),o.jsx(Ke,{value:"support",children:e("contact.subjects.support")}),o.jsx(Ke,{value:"billing",children:e("contact.subjects.billing")}),o.jsx(Ke,{value:"partnership",children:e("contact.subjects.partnership")}),o.jsx(Ke,{value:"feedback",children:e("contact.subjects.feedback")}),o.jsx(Ke,{value:"other",children:e("contact.subjects.other")})]})]}),d.subject&&o.jsx("p",{className:"text-xs text-destructive",children:d.subject})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsxs(Rt,{htmlFor:"message",children:[e("contact.form.message")," *"]}),o.jsx(jd,{id:"message",placeholder:e("contact.form.messagePlaceholder"),rows:6,value:u.message,onChange:y=>m("message",y.target.value),className:d.message?"border-destructive":""}),d.message&&o.jsx("p",{className:"text-xs text-destructive",children:d.message})]}),o.jsx("div",{className:"flex justify-center pt-2",children:o.jsx(K,{type:"submit",size:"lg",disabled:a,children:a?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"w-4 h-4 me-2 animate-spin"}),e("contact.form.sending")]}):o.jsxs(o.Fragment,{children:[o.jsx(Dp,{className:"w-4 h-4 me-2"}),e("contact.form.submit")]})})})]})]}),o.jsxs("div",{className:"mt-8 text-center text-sm text-muted-foreground",children:[o.jsx(se,{to:"/terms",className:"hover:text-primary me-4",children:e("footer.terms")}),o.jsx(se,{to:"/privacy",className:"hover:text-primary",children:e("footer.privacy")})]})]})})},wO={"why-small-businesses-stay-invisible-on-social-media":{title:"××× ×¨×× ×עסק×× ××§×× ×× × ×©×ר×× ×××ª× × ×¨××× ×רשת×ת ×××רת××ת ×××× ××× ×ת × ×¨××ת ×××ת×ת ××××¨× ×××",metaDescription:"ר×× ×עסק×× ××§×× ×× × ×××§×× ×× ×¨××ת ×רשת×ת ×××רת××ת, ×× ×××× ×ª××× ×ר××¢ ××× ×××× ×ער××ת ×× ×¢×§×××ת. ××× ×× ×××ת ××צר × ×¨××ת ×ת×ש×ת.",excerpt:"ר×× ×עסק×× ××§×× ×× ××××× ×× ×©×× ×¢×ש×× ×ש×× ×× × ××× ×רשת×ת ×××רת××ת ×× ×פ×ס××× ×©××× ×× ××§×××× ××¢×ר××ת. ×××ת פש××× ××תר: ×× ××§××©× × ×¨××× ××××.",tags:["×××ª× × ×¨×× ×רשת×ת","עסק×× ×§×× ××","× ×¨××ת","×ער××ת ×רשת×ת ××רת××ת"],content:[{type:"paragraph",content:"ר×× ×עסק×× ××§×× ×× ××××× ×× ×©×× ×¢×ש×× ×ש×× ×× × ××× ×רשת×ת ×××רת××ת ×× ×פ×ס××× ×©××× ×× ××§×××× ××××§××, ת××××ת ×× ×©×ת×פ××. ×××ת ×××¨× ××× ×¤×©××× ××תר ×פ××ת × ×¢×××. ×× ×× ×¢×ש×× ×ת ×× ×× × ×××. ×× ××§××©× × ×¨××× ××××."},{type:"paragraph",content:"××-× ×¨××ת ××× ××¦× ×ר×רת ××××× ×פ××פ×ר××ת ××רת××ת. ×× ×× ×©×§××¨× ×ש××× ××ת ×ת×ש×. ××××ר×ת××× ×©× ×¨×©×ª×ת ××רת××ת ××× × ×©×פ×××××. ×× ×¡×××ס××××. ×× ××××ר×× ×× ×©×ר×× ×פ×ס×× ××××××× ×× ×©× ×¨×× ×קר××."},{type:"heading",content:"××¢××ת ××פ×ס××",level:2},{type:"paragraph",content:'ר×× ×עסק×× ×פרס××× ××××¤× ×קר××. ש×××¢ ××× ×× ×¤×¢××××, ×ש×××¢ ××× ×× × ×¢××××. ×× ××©× ×× ×××, פ×ר×× ×× ××©× ×× ××××. ×× ×§××ת ×××× ×©× ×פ××פ×ר××, ×××ª× ×××ת ××× × ×¨××ת ××× ×¨×¢×©. ×× ×××××§ ×ס××× <a href="/blog/why-consistency-outperforms-creativity" class="text-primary hover:underline font-medium">שעק×××ת ×ש××× ××תר ××צ×רת××ת</a> ××××× ××ר××.'},{type:"paragraph",content:"תפ××¡× ×©×××× × ×¤××¦× × ×ספת ××× ×©×ª××× ×××××ª× ×ר×××× × ×¨××ת ××××¤× ×××××××. ××××ת ×ש×××, ××× ×¨×§ ×××¨× ×©×¢×§×××ת ×§×××ת. פ××¡× ××¢××× ×©××ª×¤×¨×¡× ×¤×¢× ×ש×××¢××× ×× ×××× ×ת ×פ××פ×ר×× ×©×× ××ר ×¢× ××§×× ×©××. ××× ×× ××× × ×××× ×××. ××× ××פס ×××ª× ××× ×¤×¢×."},{type:"heading",content:"×× ×××ת ××צר × ×¨××ת",level:2},{type:"paragraph",content:'× ×¨××ת ××××¢× ×××ר×. ××××רת ××ר×× ×××××, ×פ×ר×××× ×××××, ×××× ××× ×× ×¦×¤××. ××××¨× ××× ×ר×××©× ×שע××ת ×××¢× ×עסק, ××× ××× ×ר×××©× ×××× × ×פ××פ×ר×× ×××§××. ××× ×ª <a href="/blog/posting-more-does-not-mean-more-visibility" class="text-primary hover:underline font-medium">×××ר×ת ×××ת ××¢× ×××ת</a> ××× ×××× ×ת.'},{type:"paragraph",content:"עסק×× ×©×¤×רצ×× ××¨× ××-× ×¨××ת ×××¨× ××× ××× ××× ×¨×¢××× ×ת ××××× ××תר. ×ש ××× ×ער××ת ××××ת ××תר. ×× ××××××× ×ר×ש ×¢× ×× ×× ×××ר××. ×× ×××ר×× ×ספר ×§×× ×©× ×¤×ר×××× ×× ×¦×××× ×××××. ×× ×פס××§×× ×××צ×× ×ת עצ×× ×××ש ×× ×©×××¢."},{type:"heading",content:"××ת×ר ×צ××¨×ª× ××ר×× ×ª×¤×¢×××",level:2},{type:"paragraph",content:"×ש×× ×× ×§××¨× ×שרשת×ת ××רת××ת ×פס××§×ת ××××ת ×ת×ר ×צ××¨×ª× ××ת××××ת ××××ת תפע××××ת. ×שפרס×× ×××¤× ××ש×× ×©×§××¨× ×× ××× ×ת××××, ×× ×× ××ש×× ×ר××ש ×שר××."},{type:"paragraph",content:'Visible × ×× × ×¡××× ×××¢×× ××× ×××××§. ××× ×¢××ר ×עסק×× ××¢××ר ×פרס×× ××§×¨× ×× ××××ת ××××× ×ª. ××©× ×¨××ת ××פ×ת ××ר××, ×ת×צ××ת ×××ת ××××¤× ×××¢×. ××ס×רת ××××, ×××§× ×ת <a href="/social-media-visibility" class="text-primary hover:underline font-medium">×××ר×× ×©×× × ××× ××ת × ×¨××ת ×ת-×§×××× ×רשת×ת ×××רת××ת</a>.'},{type:"paragraph",content:"××××ת × ×¨×× ×× ×× ×צע××§ ×××§ ××תר. ×× ×××פ××¢ ×ספ××§ פע××× ××× ×©××××¨× ××ת×."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">ת××× ×× × ×צר ×¢× ××× AI ××××¨×ª× ××× ×××ר×ת ××× ××××ת ××××.</em>'}]},"why-consistency-outperforms-creativity":{title:"××× ×¢×§×××ת ×רשת×ת ×××רת××ת ×× ×¦×ת ×צ×רת××ת ×××× ×¢×¡×§×× ×××××× ××××©× ××ת ×פ××¢×",metaDescription:"×צ×רת××ת ×ר×××©× ×ש×××, ××× ×¢×§×××ת ×× ××¢× ×¦×××× ×××ת×ת ×רשת×ת ×××רת××ת. ××× ××× ×ער××ת צפ×××ת ×× ×¦××ת ר××¢×× ××ר××××× ×× ×¨××ת ××××× ×ר××.",excerpt:"×צ×רת××ת ××§××ת ×××××ת ×רשת×ת ×××רת××ת. ×¢×§×××ת ×××¢× ×× ××××רת. ××סר ×××××× ××× ×××¨× ×ר×× ×עסק×× ×××××©× ×שק×.",tags:["×¢×§×××ת ×רשת×ת","×ס×ר××××ת צ××××","×ער××ת ת×××","פרס×× ×¦×¤××"],content:[{type:"paragraph",content:"×צ×רת××ת ××§××ת ×××××ת ×רשת×ת ×××רת××ת. ×¢×§×××ת ×××¢× ×× ××××רת. ××סר ×××××× ××× ×××¨× ×ר×× ×עסק×× ×××××©× ×שק×."},{type:"paragraph",content:"ת××× ×צ××¨×ª× ×××× ××צ××× ×¤×¢× ××ת. ת××× ×¢×§×× ×צ××× ×©×× ×ש××. פ××פ×ר××ת ×× ×××ת ×ת××× ×פ×ס××, ×× ×¨××¢××."},{type:"heading",content:"××× ×¤××פ×ר××ת ×××××ת ×¢×××",level:2},{type:"paragraph",content:'×שעסק ××¤×¨×¡× ××××¤× ×¢×§××, ×פ××פ×ר×× ××××ת ××× ×ס××× ××ת×. ××× ×××× × ×ת ×× ×ש×, ××§×× ××××ª× ××
580×ת ×צפ××× ×©× ×××¢×ר××ת. ×ש×פרס×× ××× ×¡×¤×ר××, ×××××× ××× ××¢××× ×× ×ת××צ×ת. ×× ×ס××× <a href="/blog/why-small-businesses-stay-invisible-on-social-media" class="text-primary hover:underline font-medium">שר×× ×עסק×× ××§×× ×× × ×©×ר×× ×××ª× × ×¨×××</a>.'},{type:"paragraph",content:"×ר×× ×¢×¡×§×× ×פס××§×× ××¤×¨×¡× ×× ×× ×ר××ש×× ×× ×צ×רת×××. ×× ×¡××× ××ער×ת ש××ר×. רשת×ת ××רת××ת ×× ×¦×¨×××ת ××סת×× ×¢× ×שר××. ×× ×¦×¨×××ת ××סת×× ×¢× ××× ×."},{type:"heading",content:"×¢×§×××ת ×× ×××רת ××ר×",level:2},{type:"paragraph",content:"×¢×§×××ת ×× ×××רת ××××ר ×¢× ×××ª× ×¤××¡× ××× ×¡××£. ×× ×××ר ××××ר ×¢× ×××ª× ×××× ×. × ×ש××× ×××××, פ×ר×××× ×××××, ת×××× ××××. ×ת×× ×××× × ×××, ×צ×רת××ת ×¢×××× ×§×××ת, ××× ××× ××××ת."},{type:"paragraph",content:"ת×ש×× ×¢× ××ש××× ×ת ש××ª× ×¢××§× ××ר××× ××××¤× ×§×××¢. ××ª× ××××¢ ×× ×× ×פרס×××. ××ª× ×××× ×ת ×ס×× ×× ×©×××. ××××ר×ת ××× ××× ×× ×קר×ת. ××× ×ª×צ×× ×©× ×××¨× ×××ש×עת."},{type:"heading",content:"×××× ××× ××¢× ×©×××ת",level:2},{type:"paragraph",content:'××¢×ת × ×ספת שעסק×× ×¢×ש×× ××× ××××ת ×ת××× ××ש××. ש×××ת ××¢××ת ×××× ×××. ×××× ××× ××× ×× ×©××צר ×ש×פ×. ××× ×ª <a href="/blog/posting-more-does-not-mean-more-visibility" class="text-primary hover:underline font-medium">×× ×××ת ×× ××¢ × ×¨××ת</a> ×¢××רת ×× ×תע××£ ×ת ×פע×××××ת ×× ××× ×ת.'},{type:"paragraph",content:"פרס×× ×¢×§×× ××× × ×××× ×¢× ×פ××פ×ר×× ×××§×× ×× ××× ×ת. ×× ×©×× ×ת××××× ××××ת ×ת ××©× ×©××, ××סר ש×× ×× ×§××ת ×××× ×©××."},{type:"paragraph",content:'Visible ×¢××ר ×עסק×× ××××©× ×¢×§×××ת ××× ×××ש××§. ××× ×××××£ ×§××ת ×××××ת ×ת××ת ×ת×××××× ××××ר×× ×ר×ש. ×שעק×××ת ×××××××ת, ×צ×רת××ת ××פ×ת ×××פצ××× ××ת ×××§×× ××××. ××× ×¢×× ×<a href="/social-media-visibility" class="text-primary hover:underline font-medium">×ס×רת ×× ×¨××ת ×××§××¤× ×©×× ×</a>.'},{type:"paragraph",content:"×רשת×ת ×××רת××ת, ×××× ×ת ×××§× ××תר ××××× ×ת."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">ת××× ×× × ×צר ×¢× ××× AI ××××¨×ª× ××× ×××ר×ת ××× ××××ת ××××.</em>'}]},"posting-more-does-not-mean-more-visibility":{title:"××¤×¨×¡× ××תר ×רשת×ת ×××רת××ת ×× ×××ר ××תר × ×¨××ת ××× × ×× ×©×××ת ×¢×××",metaDescription:"פרס×× ×ª×××£ ××× ×ס×ר×××× ×××× ×פ×××¢ ×× ×¨××ת. ××× ××× ×××ר×ת ×××ת ×ש××× ××תר ××××ת ×פ××פ×ר××ת רשת×ת ××רת××ת.",excerpt:"××¤×¨×¡× ××תר ת××× ×ר××ש ××× ×תק×××ת. ××× ×××ת ××× ×עת×× ×¨×××§×ת ×××××¨× × ×¨××ת. פ××פ×ר××ת ×פרש×ת ××ת×ת, ×× ×¡×פר×ת פ×ס×××.",tags:["×ס×ר××××ת פרס××","ת××ר×ת × ×¨××ת","×××ר×ת ת×××","×¢×צ×ת ××ת"],content:[{type:"paragraph",content:"××¤×¨×¡× ××תר ת××× ×ר××ש ××× ×תק×××ת. ×× ××××. ×× × ×¨×× ××× ××××¥. ××× ×××ת ××× ×עת×× ×¨×××§×ת ×××××¨× × ×¨××ת."},{type:"paragraph",content:"פ××פ×ר××ת ××רת××ת ×× ×¡×פר×ת פ×ס×××. ×× ×פרש×ת ××ת×ת. ×× ×¤××¡× ×××× ×ת ××ער×ת ×ש×× ×¢× ×× ××ª× ××× ×¦×¨×× ×ר××ת ××ת×."},{type:"heading",content:"×ש××תר ×××¤× ×רעש",level:2},{type:"paragraph",content:'×שת××× ×× ××××§×, ×××ת × ××ש. ×× ×¤××¡× ××× ××× ××× ×××, ××× ××× ×¤×¨×¡×××, ×××× ××× ××ש×, ×פ××פ×ר×× ××ª×§×©× ××××× ×ת ××¢×¨× ×©××. ××ת×ת ××ש×× ××§×××× ×¤××ת ×פצ×. ×× <a href="/blog/why-small-businesses-stay-invisible-on-social-media" class="text-primary hover:underline font-medium">ס××× ×ר×××ת ××× ×¢×¡×§×× × ×©×ר×× ×××ª× × ×¨×××</a>.'},{type:"paragraph",content:"×ש××× ×ת ×¢× × ×¨××ת ××××× ×××¨× ××× ×××ר×× ×¢× ×¢×¦×× ××××× ×. ×× ×××ר×× ×¢× ×××ª× ××¢××ת ××××××ת ×ר×××ת. ××××¨× ××× ×××קת ×××××."},{type:"heading",content:"פ×ר×× ××ת××× ×פ××פ×ר××",level:2},{type:"paragraph",content:"ש×××ש ×× × ××× ×פ×ר×× ××× ××¢×× × ×¤××¦× × ×ספת. ×ס×ר ×ר×× ×¢×©×× ××¢××× ×קר×ס×× ××× ×××××©× ×סר××× ×§×¦×¨. ת××× ×©××עתק ××× ×¤××פ×ר××ת ×××¨× ××× ××ª×¤×§× ×¤××ת ××× ×× ×× ×¤××פ×ר×× ×תע×פת ××ª× ××
580×××ת ש×× ×ת."},{type:"paragraph",content:'××¤×¨×¡× ××תר ××× ×שפר ×××ר×ת ×עת×× ×§×¨×××ת ××צר ×¢××פ×ת. ××§×× ××××××ר×ת×. ×× ×©×ש×× ××× <a href="/blog/why-consistency-outperforms-creativity" class="text-primary hover:underline font-medium">×סר×× ×¢×§×××× ×××××§×××</a>.'},{type:"heading",content:"×××ר×ת ××¢× ×××ת",level:2},{type:"paragraph",content:"× ×¨××ת ×שתפרת ×שפרס×× ××× ×××××. פ××ת × ×ש×××. פ×ר×××× ×ר×ר××. ×§×¦× ×¦×¤××."},{type:"paragraph",content:'Visible ×ת××§× ××¢×צ×ת ××ת ×××§×× ×××ת. ××× ×¢××ר ×עסק×× ××× ×ת ת××× ×× ×©×× ×¤××¡× ××××§ ×ת ×××ª× ×××ת. ××××©× ×××××, ר×× ×ת <a href="/social-media-visibility" class="text-primary hover:underline font-medium">×××ר×× ×©×× × ×× ×¨××ת ×רשת×ת ××רת××ת</a>.'},{type:"paragraph",content:"××××ת × ×¨×× ×× ×× ×¢× ××× ×©× ××× ×¤×¢××× ××ª× ×פרס×. ×× ×¢× ××× ×©× ××× ×ר×ר ××ª× ××××."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">ת××× ×× × ×צר ×¢× ××× AI ××××¨×ª× ××× ×××ר×ת ××× ××××ת ××××.</em>'}]},"why-social-media-feels-like-a-time-sink":{title:"××× ×¨×©×ª×ת ××רת××ת ×ר××ש×ת ××× ××××× ××× ×××× ×ער××ת ×××× ×ת ××ª×§× ×ת ×ת ××",metaDescription:"רשת×ת ××רת××ת ××××¢×ת ××× ×ש×× ×¤××¡× ×××¤× ××××××. ××× ××× ××סר ××× × ×××¨× ×ש×××§× ×××× ×ער××ת ××פ××ת × ×¨××ת ×ת×××× ×××ר.",excerpt:"ש×× ×ת ר×× ××¢×× ×עסק×× ××× ×ר××ש×ת רשת×ת ××רת××ת ×תש××¢ ×ת ×××ª× ×ª×©×××. ×× ×ר××ש ××× ×¡×פ×, ×ס×× ×עת, ×××× ×¢×××× ×©××¢××× ×× ×××ת ×שת××ת.",tags:["× ×××× ××× ×רשת×ת","×ער××ת ת×××","ש×××§× ×רשת×ת","פרס×× ×××× ×"],content:[{type:"paragraph",content:"ש×× ×ת ר×× ××¢×× ×עסק×× ××× ×ר××ש×ת רשת×ת ××רת××ת ×תש××¢ ×ת ×××ª× ×ª×©×××. ×× ×ר××ש ××× ×¡×פ×. ×× ×ס×× ×עת. ×× ×ר××ש ××× ×¢×××× ×©××¢××× ×× ×××ת ×××××¨× ×ת ×××× ×©××שקע."},{type:"paragraph",content:"×ת×××©× ××× ×× × ×ר×ת ×רשת×ת ××רת××ת עצ××. ××× × ×ר×ת ××××¨× ×©×× × ××ש×× ×רשת×ת ××רת××ת."},{type:"heading",content:"××¢××ת ×¢××פ×ת ××××××ת",level:2},{type:"paragraph",content:"רשת×ת ××רת××ת ××פ××ת ×××××× ××× ×ש×× ××רש×ת ×§××ת ×××××ת ×ת××ת. ×× ×¤××¡× ×ת××× ×××£ ר××§. ×× × ××ר ××××. ××××× ×¤××פ×ר×× × ×©×ª×ש. ××× ×× ×¦×¨×× ××××ת ××××× ×× ×ª××× ×. ××× ×× ×¤×¨×¡××× ×× ××× ×××. ×× ××ת ××ש×××ת ×××× ×¢××× ×ª×©××ת ××."},{type:"paragraph",content:'תש××ת ×× ××× ×ש×× ×××××. ×שרשת×ת ××רת××ת צ×ר××ת ×××ª× ××× ×××, תס××× × ×× × ××××ר×ת. ×× <a href="/blog/why-small-businesses-stay-invisible-on-social-media" class="text-primary hover:underline font-medium">×ס××× ×©×ר×× ×¢×¡×§×× ××פ××× ×××ª× × ×¨×××</a> - ×× ×¤×©×× ×פס××§×× ×פרס×.'},{type:"heading",content:"×פע×× ××× ×ר×ר×ת ××××",level:2},{type:"paragraph",content:"ר×× ×עסק×× ×¤××¢××× ××× ×ר×ר×ת ××××. ××× ××× × ××××ר ×ר×ש ש×× ×× ×× ×תפרס×. ×ת×צ×× ×××, ×× ×¤××¡× ×ר××ש ×××. ×פ××× ×¢×××× ×× ×¤×©×××× ××רש×× ××××. ×ס××¤× ×©× ××ר, ×פרס×× ×ת×× ×× × ×¢×¦×¨ ×××ר×."},{type:"paragraph",content:"×× ×ס××× ×©×ר×× ×¢×¡×§×× ×ת×ר×× ×¨×©×ª×ת ××רת××ת ××ס×××ת ×עת ×××§×× ×¤×¨××××§×××××ת. ×× ×פר××¢ ××¢×××× ××××ת×ת ×××§×× ×ת××× ××."},{type:"heading",content:"×××× ×©× ×ער××ת ××××ר×ת ×ר×ש",level:2},{type:"paragraph",content:'×עסק×× ×©×צ××××× ××× ×××× ×¢×ש×× ×ש×× ××ר. ×× ×ס×ר×× ×××××ת ××××צ××¢. ×× ××××××× ×¤×¢× ××ת ××שת×ש×× ×©×× ×ש××. ×× <a href="/blog/why-consistency-outperforms-creativity" class="text-primary hover:underline font-medium">×ס××× ×©×¢×§×××ת ת××× ×× ×¦×ת</a>.'},{type:"paragraph",content:"×× ××××ר×× ×¢×××× ×ª××× ×©× ×©×ר×× ×צ××××. ×× ×××ר×× ×ספר ×§×× ×©× ×¤×ר×××× ×©×××ר×× ×¢× ×¢×¦××. ×× ××××××× ×ר×ש ××× ×¤×¢××× ×× ××פ××¢××. ×ר××¢ ש××××××ת ×××× × ×¢×©×, פרס×× ×××¤× ×××צ××¢, ×× ×××××."},{type:"paragraph",content:"×ש××× × ×§×××, ×××××¥ ×××¨× ×ר×××ת. פרס×× ××ר ×× ×ת××¨× ××¢×××ת ×××××. ××× ×שת×× ×¡××××. ×ער××ת ××פ××ת רשת×ת ××רת××ת ×תשת×ת רקע. ××× ×××××× ×× ×× ××××קס, ×× ×¨×¥ ×× ×× ×ת××× × ×ר××¥."},{type:"paragraph",content:'Visible ×× ×× ×××××§ ×ש××× ××. ××× ×××××£ ×ת סערת ××××××ת ×ת×××××× ××××ר×× ×ר×ש. ××× ××תר ×<a href="/social-media-visibility" class="text-primary hover:underline font-medium">×ס×רת ×× ×¨××ת ×××§××¤× ×©×× ×</a>.'},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">ת××× ×× × ×צר ×¢× ××× AI ××××¨×ª× ××× ×××ר×ת ××× ××××ת ××××.</em>'}]},"algorithms-are-not-the-enemy":{title:"××××ר×ת××× ×©× ×¨×©×ª×ת ××רת××ת ×× ×× ××××× ××× × ××× ×××ת ××¢××× ××ת×",metaDescription:"×ר×× ×¢×¡×§×× ××ש×××× ××××ר×ת××× ××ש××¤× × ××××, ××× ××××ר×ת××× ×¤×©×× ×שקפ×× ×פ××¡× ××ª× ××
580×ת. ××× ××× ××¢××× ×¢× ×××××ר×ת×, ×× × ×××.",excerpt:"×ר×× ×¢×¡×§×× ××ש×××× ×ת ×××××ר××ª× ×××סר ×ש×פ×. ××× ×××××ר××ª× ××× ×× ×××××. ××× ×¤×©×× ×ר×× ×©×× × ×סר ×× ××ת ×ר×ר.",tags:["××××ר×ת××× ×©× ×¨×©×ª×ת","×ס×ר××××ת ×ש×פ×","××ª× ×××ת פ××פ×ר××ת","×¢×§×××ת ת×××"],content:[{type:"paragraph",content:"×ר×× ×¢×¡×§×× ××ש×××× ×ת ×××××ר××ª× ×ש×פ×ס××× ×©××× ×× ××§×××× ××¢×ר××ת. ת××× × × ×¤××¦× ××× ×©×פ××פ×ר×× ×סת××¨× ×ª××× ×××¢××§×××."},{type:"paragraph",content:"××ס×רת ××× ×פספסת ×ת ×× ×§×××. ××××ר×ת××× ×× ×©×× ××× ×¢×¡×§×× ×§×× ××. ×× ×× ××¢××פ×× ××ת××× ××××××. ×× ×¤×©×× ×¢××§××× ×××¨× ×פ×ס××."},{type:"heading",content:"×× ×××××ר××ª× ×××ת ר×××",level:2},{type:"paragraph",content:"××××ר××ª× ××× ×ער×ת ס×××ס××ת ש××פשת ×¢×§×××ת. ××× ×××× ×××ª× ×××ת ×××רת. ×× ×¢×¡×§ ××¤×¨×¡× ×¢× × ×ש××× ×××××, ×פ×ר×××× ×××××, ×××× ×× ×¦×¤××××, ××ער×ת ×××× ×פ×ס ××××××¨× ××ת×."},{type:"paragraph",content:'×× ×¢×¡×§ ××¤×¨×¡× ×עת×× ×¨×××§×ת ×××©× × ×ת ×ס×× ×× ×× ××××, ××× ×פ×ס ×××××. ××ער×ת ×× ×××עת ××× ××ר××ת ×ת ×ת×××. ×× <a href="/blog/why-small-businesses-stay-invisible-on-social-media" class="text-primary hover:underline font-medium">×ס××× ×©×¢×¡×§×× ×§×× ×× × ×©×ר×× ×××ª× × ×¨×××</a>.'},{type:"heading",content:"××¢××× ×¢× ××××××§× ×©× ×פ××פ×ר××",level:2},{type:"paragraph",content:'××¢××× ×¢× ×××××ר××ª× ×××ר ×××ª× ×× ×צ××¨× ×¦×¤×××. ×× ×××ר ××¤×¨×¡× ××××¤× ×§×××¢. ×× ×××ר ×××ש×ר ×× ×ש×. ×× ×××ר ××××ר ×¢× ×¤×ר×××× ×©×¢×××××. ×× ×××××§ ×ס××× <a href="/blog/why-consistency-outperforms-creativity" class="text-primary hover:underline font-medium">שעק×××ת ×× ×¦×ת ×צ×רת××ת</a>.'},{type:"paragraph",content:"×שעסק×× ×¢××××× × ×× ×××××ר××ª× - ××©× ×× × ×ש×××, ×פספס×× ××××, ××©× ×× ×¡×× ×× - ×× ××××××× ×ת ××ער×ת. ×××××× ××צר ×שתק×, ×× ×××ר×."},{type:"heading",content:"×××××ר××ª× ×ש×תף",level:2},{type:"paragraph",content:"××ס×רת ××ר××× ××תר ××× ×ר××ת ×ת ×××××ר××ª× ×ש×תף ×פצ×. ×ª× ×× ××ת×ת ×ר×ר×× ×××× ×ר××× ×ת ××ש××¤× ×©××. ×ª× ×× ××ת×ת ×××××××× ×××× ×××¢× ××צ×× ××ת×."},{type:"paragraph",content:'Visible ×× ×× ×¡××× ××××××§× ×××. ××× ×¢××ר ×עסק×× ××× ×ת ת××× ×©×××××ר×ת××× ×××××× ××××× ××ת×××. ××××©× ×××××, ר×× ×ת <a href="/social-media-visibility" class="text-primary hover:underline font-medium">×××ר×× ×©×× × ×× ×¨××ת ×רשת×ת ××רת××ת</a>.'},{type:"paragraph",content:"×××××ר××ª× ××× ×× ×××××. ××× ×¤×©×× ×××¡× ×'ר."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">ת××× ×× × ×צר ×¢× ××× AI ××××¨×ª× ××× ×××ר×ת ××× ××××ת ××××.</em>'}]},"visibility-is-a-business-asset":{title:"× ×¨××ת ×רשת×ת ××רת××ת ××× × ×ס ×¢×¡×§× ××× ×¤×¨×××§× ×©××××§×",metaDescription:"עסק×× ×©×ת×××ס×× ×× ×¨××ת ×רשת×ת ×××צ×× ×פספס×× ×ת ×ת××× × ××××××. ××× ××× × ×¨××ת ××× × ×ס ×שת×× ×©××ש×× ×××צר ער×.",excerpt:"ר×× ×עסק×× ×¨×××× ×¨×©×ª×ת ××רת××ת ×××צ×× ×©××××§×ת. ××× ××שקע, ×××× ×ª××ר×. ××× × ×¨××ת ××× ×× ×¢××ת. ××× × ×ס ש×שת×× ××××¨× ×××.",tags:["× ×ס עסק×","× ×¨××ת ××שקע×","ROI רשת×ת ××רת××ת","צ×××× ××××× ×ר××"],content:[{type:"paragraph",content:"ר×× ×עסק×× ×¨×××× ×¨×©×ª×ת ××רת××ת ×××צ×× ×©××××§×ת. ××× ××שקע, ×××× ×ª××ר×. ××× × ×¨××ת ××× ×× ×¢××ת. ××× × ×ס ש×שת×× ××××¨× ×××."},{type:"paragraph",content:"× ×ס×× ×××צר×× ×¢×¨× ××××¨× ×××. ×× ×שת×××× ×¢× ××××¥ ×ת×ש×. רשת×ת ××רת××ת ×¢××××ת ××××ª× ×××¤× ××©× ××ש×× ××××× × ×××."},{type:"heading",content:"×××©×¤×¢× ××צ××רת",level:2},{type:"paragraph",content:"× ×¨××ת × ×× ×ת ××××¤× ×צ××ר. ×× ×¤××¡× ××ס××£ ש××× × ×ספת ×©× ××ר×. ×¢× ××××, ××××¢ ××× ×××¤× ×××××. ×××× ×××¤× ×××¢×פ×. ××¢××¤× ××פ×ת ××××ר×ת."},{type:"paragraph",content:'עסק×× ×©×ת×××ס×× ×רשת×ת ××רת××ת ××ש××× ×§×¦×¨×ª ×××× ×פספס×× ×ת ×××©×¤×¢× ××צ××רת. ×× ×ת××××× ××¢×צר××. ×× ×× ×¡×× ××§×××§×ת ×××§×× ××× ×ת ×ער××ת. ×× <a href="/blog/why-small-businesses-stay-invisible-on-social-media" class="text-primary hover:underline font-medium">×ס××× ×©×× × ×©×ר×× ×××ª× × ×¨×××</a>.'},{type:"heading",content:"××××ת ×× ×ס",level:2},{type:"paragraph",content:"× ×¨××ת ×× ×ס ×××רת ××ש×× ××××× ×ר××. ×× ×××ר ××××× ×תק×××ת ××××ש××, ×× ×××××. ×× ×××ר ××ער×× ×××ר×ת ×¢× ×××ת×, ×× ×¨×§ ×§×××§××."},{type:"paragraph",content:"ש×× ×ת עצ××: ××× ×× ×©×× ××××¨× ×ת ×עסק ש×× ×¢×× ×©× ×? ××× ××××× ×× ×ספ××§ ××× ××§× ×ת? ××ספר×× ×××× ×ª××××× ×× ×¨××ת ש××ª× ××× × ×¢×ש××."},{type:"heading",content:"××× ×ת ×××§×× ×××××",level:2},{type:"paragraph",content:'××©× ×¨××ת × ×¨××ת ××× ×××, ×××ª× ××
580×ת ××©×ª× ×. פרס×× ×××¤× ××××§ ×××ער×ת, ×× ××××¥ ×××××. ×¢×§×××ת ××פ×ת ××××ª× ×תפשרת ×× <a href="/blog/why-consistency-outperforms-creativity" class="text-primary hover:underline font-medium">×ת×צ××ת ת××××ת ××</a>.'},{type:"paragraph",content:'Visible ×¢××ר ×עסק×× ××× ×ת ×ת × ×ס ×× ×¨××ת ש××× ×צ××¨× ×©××ת×ת. ××× ×××¤× ××××¥ ××××× ×פע××× ××××ת ש×שת××ת ××××¨× ×××. ××× ××תר ×<a href="/social-media-visibility" class="text-primary hover:underline font-medium">×ס×רת ×× ×¨××ת ש×× ×</a>.'},{type:"paragraph",content:"× ×¨××ת ××× ×× ××צ××. ××× ××©×§×¢× ×©××ש××× ××× ××."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">ת××× ×× × ×צר ×¢× ××× AI ××××¨×ª× ××× ×××ר×ת ××× ××××ת ××××.</em>'}]},"hidden-cost-of-being-invisible-online":{title:"××¢××ת ×× ×¡×ª×¨×ª ×©× ××××ת ×××ª× × ×¨×× ××× ×××× ×××××× ×××ת ש××ª× ×פס××",metaDescription:"××-× ×¨××ת ×רשת×ת ××רת××ת ×¢××× ××תר ×××× ××××§×× ×©××××צ×. ××× ×¢× ××¢××××ת ××××ת××ת - עסק××ת ש××××, ××¤× ××ת ש×××××¦× ××× ××ת ×××× ×©× ×¢×¦×¨×.",excerpt:"××-× ×¨××ת ×ר×××©× × ×××ר××ת. ×× ××ª× ×× ××פ××¢, ×××× ××ª× ×פספס ××× ××××§××. ××× ××¢××ת ××××ת×ת ×©× ××××ת ×××ª× × ×¨×× ××××× ××ר×× ××שר ××××§×× ×©××××צ×.",tags:["×¢××ת ××-× ×¨××ת","עסק××ת ×××××ת","××××× ×××ת ש××××צ×","ROI רשת×ת ××רת××ת"],content:[{type:"paragraph",content:"××-× ×¨××ת ×ר×××©× × ×××ר××ת. ×× ××ª× ×× ××פ××¢, ×××× ××ª× ×פספס ××× ××××§××. ×× × ×¨×× ××× ×ש×× ×ש××¢×ת×. ××× ××¢××ת ××××ת×ת ×©× ××××ת ×××ª× × ×¨×× ××××× ××ר×× ××שר ××××§×× ×©××××צ×."},{type:"paragraph",content:"×× ××× ×©××ª× ×××ª× × ×¨××, ××ש×× ××ר × ×¨×× ×××§×××. ×××§×××ת ש×× ×¨×××× ×ת×ר××. ×× ××× ×× ×××ר×ת ×××ª× ×××§×× ××ת×."},{type:"heading",content:"××××× ×××ת ×××××ת",level:2},{type:"paragraph",content:"×ש×× ×©×× ×¦×¨×××× ×©×ר×ת ×× ××צר, ×× ×¤×× ×× ××× ×©×× ×××ר××. ×× ×× ×× ×××ר×× ×ת ×עסק ש××, ×× ×× ×שק×× ××ת×. ×× ×× ×¢× ××× ×©× ××××ת - ×× ×¢× ××× ×©× ××××¢×ת."},{type:"paragraph",content:'×× ××¤× ××× ×©×× ×§×××ת ×× ××ש×× ×× ×××¢ ש××ª× ×§××× ××× ×¢××ת ×©× ××-× ×¨××ת. ×× ×¢×¡×§× ×©×××× ××ת××¨× ×× ××× ××× "×ר×ש" ××× ×¢××ת ×©× ××-× ×¨××ת.'},{type:"heading",content:"פער ×××××",level:2},{type:"paragraph",content:"×××× × ×× × ××××¨× ××× ××¨× ×ש××¤× ×××רת. ×× ×©×× ×¡××××× ×¢× ×× ×©×× ×××ר××. ×שעסק ×××ª× × ×¨××, ×× ××ת ××××× × ×¢×¦×¨×ª. ×× ×ש××ש×× ×¡××£ ס××£ ×××¦× ××ת×, ×ש פער ×××× ××שר ×¢×××."},{type:"paragraph",content:"עסק×× × ×¨××× ×× ×¦×¨×××× ××¢××× ×§×©× ××× ×ש×× ×¢. ×× ××××ת ש××× ××ר ×× ×ª× ×××ר×ת ×××××. ×× ××××? ××. ×× ××צ×××ת? ××."},{type:"heading",content:"×××©× ×ת ××¢××ת",level:2},{type:"paragraph",content:"× ×¡× ××ש×: ××× ××§×××ת פ××× ×¦×××××× ×× ××××¢× ×××× ××××ש ×× ×× ×× ×××¢× ×©××ª× ×§×××? ×פ×× ×ת ×× ××¢×¨× ××××צע ×©× ××§××. ×× ××¢××ת ××××ת×ת ×©× ××-× ×¨××ת."},{type:"paragraph",content:'Visible ×¢××ר ×עסק×× ××פס××§ ×ש×× ×ת ××¢××ת ×××. ××× ×××¤× × ×¨××ת ××ש×× ×©×§××¨× ××××¤× ×××××××, ×× ××ש×× ×©× ×©××. ר×× ×ת <a href="/social-media-visibility" class="text-primary hover:underline font-medium">×××ר×× ×××× ×©×× ×</a> ×××× ×ª ×××ש×.'},{type:"paragraph",content:"××-× ×¨××ת ××× ×× × ××ר××ת. ××× ×קר×."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">ת××× ×× × ×צר ×¢× ××× AI ××××¨×ª× ××× ×××ר×ת ××× ××××ת ××××.</em>'}]},"automation-does-not-kill-authenticity":{title:"×××××צ×× ×רשת×ת ××רת××ת ×× ××ר×ת ×××ª× ×××ת ×××××× ×××¢×©× ××××§ ××ת×",metaDescription:"×ר×× ×¢×¡×§×× ××שש×× ×©×××××צ×× ×ª×ר×× ×ת ××××ª× ×××ת ש×××. ××× ×××××צ×× ×××× ×ש×ררת ××× ××××ת ××תר ×××ª× ××, ×× ×¤××ת.",excerpt:"××שש ×× ×¤××¥ ××××××צ×× ××× ××××× ×××ª× ×××ת. ××× ×××ת ××× ×©×¨×× ××××ª× ×××ת × ×××ת ×××× ×¢××פ×ת ××××¥ ×××, ×× ×××× ×××××צ××.",tags:["×××××צ××","×××ª× ×××ת","×ער××ת ת×××","××¢×××ת"],content:[{type:"paragraph",content:"××שש ×× ×¤××¥ ××××××צ×× ××× ××××× ×××ª× ×××ת. עסק×× ××שש×× ×©×× ×× ×× ××ת×× ×× ×¤××¡× ××××¤× ××× ×, ×ת××× ×××× ×§×¨ ××× ××ש×."},{type:"paragraph",content:"××× ×××ת ××× ×©×¨×× ××××ª× ×××ת × ×××ת ×××× ×¢××פ×ת ××××¥ ×××, ×× ×××× ×××××צ××. ×ש××ª× ×¢×××£ ×××××¥, ××ª× ××¤×¨×¡× ×ש×× ××ר רק ××× ×ס×× ××. ×× ×× ×××ª× ×× - ×× ××שר××ת."},{type:"heading",content:"פר××קס ××××××צ××",level:2},{type:"paragraph",content:"×××××צ×× ×××× ×× ×××רת ××××××£ ×ת ××§×× ×©××. ××× ×××רת ×ש×רר ××× ××× ×¨××× ××× ×©×ª××× ××××ת ××תר ×ת×, ×× ×¤××ת."},{type:"paragraph",content:"×ש××ער×ת ××פ×ת ×××××ס×××§× - ת××××, פ×ר××, ××ש××××× - ××ª× ×××× ××ת××§× ××× ×©×××ת ××©× ×: ×ס×פ×ר, ××סר, ×××××ר."},{type:"heading",content:"×××ª× ×××ת ×× ×¢×§×××ת",level:2},{type:"paragraph",content:'×××ª× ×××ת ××× ×× ×¢× ××× ×©× ×¢×§×××ת. ×ש××ª× ××פ××¢ ××××¤× ×§×××¢ ×¢× ×××ª× ×§×× ××××ª× ×¢×¨×××, ×× ×©×× ×××××× ×ס××× ×¢×××. ×× <a href="/blog/why-consistency-outperforms-creativity" class="text-primary hover:underline font-medium">××× ×¢×§×××ת ×× ×× ×ש×××</a>.'},{type:"paragraph",content:"×××××צ×× ××פשרת ×¢×§×××ת. ××× ×××××ת ש××ª× ××פ××¢ ×× ×ש××ª× ×¢×¡××§. ××× ××× ×¢×ª ×ת ×פער×× ×©××ר××× ××× ×©×× ×ש××× ×©××ª× ×§×××."},{type:"heading",content:"×××××× ×× ×××",level:2},{type:"paragraph",content:"××××××צ×× ××××× ×××תר ××× ×× ×©××ª× ×× ×ר××ש. ××× ××פ×ת ××¢×××× ××שע××ת ××ש×××¨× ×× ×ת ××××§ ××צ××¨×ª× ××××ש×."},{type:"paragraph",content:'Visible ×× ×× ×¢× ×פ×××ס×פ×× ×××. ××ª× ×©××× ×ª××× × ××ספר ×¢× ×עסק ש×× - ××××§ ××××ª× ××. ×× ×× × ××פ××× ××× ×ש×ר. ××××©× ×××××, ר×× ×ת <a href="/social-media-visibility" class="text-primary hover:underline font-medium">×××ר×× ×©×× ×</a>.'},{type:"paragraph",content:"×××××צ×× ×× ××ר×ת ×××ª× ×××ת. ××× ×ש×ררת ××ת×."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">ת××× ×× × ×צר ×¢× ××× AI ××××¨×ª× ××× ×××ר×ת ××× ××××ת ××××.</em>'}]},"one-good-post-does-not-create-momentum":{title:"פ××¡× ××× ××× ×× ××צר ×××× ××× ××× × ×× ×©××",metaDescription:"×ר×× ×¢×¡×§×× ×©××× ×ת ×× ×תק××ת ×¢× ×¤××¡× ××× ××ש××. ××× ×××× ××× × ×× × ×× ××××ת ×¢×§××ת, ×× ×ר××¢×× ××××××.",excerpt:"×תק××× ×©×¤××¡× ××× ××©× × ××× ××× ×פת×. ××× ×××× ××× ××××ª× ×רשת×ת ××רת××ת ×× × ×× × ×ר××¢××. ××× × ×× × ××פ×ס××.",tags:["×××× ×××","×¢×§×××ת","×× ××ת × ××××ת","×ס×ר×××× ×ר××ת ××××"],content:[{type:"paragraph",content:"×תק××× ×©×¤××¡× ××× ××©× × ××× ××× ×פת×. ×××× ×פ××¡× ××× ××פ×× ××××ר×××. ×××× ××× ×××× ×××× ×¢××§××× ××ש××. ×××× ××× ×פת×ר ×ת ×× ××¢××ת ×× ×¨××ת."},{type:"paragraph",content:"××× ×××× ××× ××××ª× ×רשת×ת ××רת××ת ×× × ×× × ×ר××¢×× ××××××. ××× × ×× × ××פ×ס×× ×××ר××. ×× ××××ת ×¢×§××ת ש×צ××רת ××××¨× ×××."},{type:"heading",content:"×ש×××ת ×פ××¡× ×××ש××",level:2},{type:"paragraph",content:"×ר×× ×¢×¡×§×× ××××××× ××× ×¨× ×¢× ×צ×רת ×פ××¡× ×××ש××. ×× ××××× ××שר××. ×× ××ª×§× ×× ××שפר××. ××××× ×××, ×× ×× ×פרס××× ××××."},{type:"paragraph",content:'×××¢×× ××× ×©×× ×¤××¡× ××ש×× ×ת××× ××ר. ×××××ר××ª× ×¢××ר ××××. ××§×× ×©×××. ×××ª× ×××ר ×× ×§××ת ××ת×××. ×× <a href="/blog/why-small-businesses-stay-invisible-on-social-media" class="text-primary hover:underline font-medium">×ס××× ×©×¢×¡×§×× × ×©×ר×× ×××ª× × ×¨×××</a>.'},{type:"heading",content:"×× ×××ת ××× × ×××× ×××",level:2},{type:"paragraph",content:"×××× ××× × ×× × ×× ××××ת. ××××¤×¢× ×§×××¢×, ש×××¢ ××ר ש×××¢. ×× ×¤××¡× ××××§ ×ת ××§×××. ××§×× ×ת××× ××××ת ×ת ××§×× ×©××. ×פ××פ×ר×× ××××ת ××צ×× ××ת×."},{type:"paragraph",content:'×¢×©×¨× ×¤×ס××× ××××× ×¢×ש×× ××תר ×פ××¡× ××ש×× ×××. ×× <a href="/blog/why-consistency-outperforms-creativity" class="text-primary hover:underline font-medium">×¢×§×××ת ×× ×¦×ת ש×××ת</a>.'},{type:"heading",content:"××× ×ת ×ער×ת, ×× ××××ת ×ר××¢",level:2},{type:"paragraph",content:"×××§×× ××××ת ×פ××¡× ×©××©× × ×××, ×× × ×ער×ת ש×××צרת × ××××ת ×§×××¢×. ×××× ×ר×ש ×¢× ×× ×ש××× ××פ×ר××××. ת××× ×ר×ש. ×פ×× ×ת ×פרס×× ××ר××, ×× ×××ר××¢."},{type:"paragraph",content:'Visible ×¢××ר ××× ×ת ×ת ××ער×ת ×××. ××× ×××××£ ×ת ×צ×פ××× ×ר××¢ ×××ש×× ×× ××××ת ×¢×§××ת ש×צ××רת ××××× ××× ×××ת×. ××× ××תר ×<a href="/social-media-visibility" class="text-primary hover:underline font-medium">×××ר×× ×©×× ×</a>.'},{type:"paragraph",content:"×××× ××× ×× ××××¢ ×ר××¢ ×××. ××× × ×× × ××ר×× ×¨××¢×× ×§×× ×× ××××¨× ×××."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">ת××× ×× × ×צר ×¢× ××× AI ××××¨×ª× ××× ×××ר×ת ××× ××××ת ××××.</em>'}]}
580,"sustainable-social-media-growth":{title:"צ×××× ×ת-×§×××× ×רשת×ת ××רת××ת ×עסק×× ×§×× ×× ×××× ××ש×× ××ת×",metaDescription:"צ×××× ××××¨× ×רשת×ת ××רת××ת ×עת×× ×§×¨×××ת ×× × ×ש×ת. ××× ××× ××× ×ת צ×××× ×ת-×§×××× ×©×ת×ש×ת ××××× ×ר×× ××× ×©×××§×.",excerpt:"×ר×× ×¢×¡×§×× ×¨××פ×× ×××¨× ×¦×××× ××××¨× ×רשת×ת ×××רת××ת. ××× ×¦×××× ××××¨× ×עת×× ×§×¨×××ת × ×¢××ת ××××ª× ×××ר×ת ש××××¢×. צ×××× ×ת-×§×××× ×©×× ×.",tags:["צ×××× ×ת-×§××××","×ס×ר×××× ×ר××ת ××××","עסק×× ×§×× ××","×× ×עת ש×××§×"],content:[{type:"paragraph",content:"×ר×× ×¢×¡×§×× ×¨××פ×× ×××¨× ×¦×××× ××××¨× ×רשת×ת ×××רת××ת. ××תר ×¢××§×××. ××תר ××××§××. ××ר ××תר. ××× ×¦×××× ××××¨× ×עת×× ×§×¨×××ת × ×¢××ת ××××ª× ×××ר×ת ש××××¢×."},{type:"paragraph",content:"צ×××× ×ת-×§×××× ××× ×©×× ×. ××× ×× ×רש××× ××××× ×קצר, ××× ××× × ×ש×ת. ××× ×× ××רשת ××××¥ ×××ª× ×פשר×. ××× ×שת××ת ××××× ××××ת××× ×©× × ×××× ×¢×¡×§."},{type:"heading",content:"×××¢×× ×¢× ×¦×××× ×××ר×",level:2},{type:"paragraph",content:"צ×××× ××××¨× ×עת×× ×§×¨×××ת ××רשת ××××¥ ×× ×ר-×§××××. פרס×× ×××× ××× ×× ×¡×××. ××¢×§× ×××¨× ×× ××¨× ×. ת×××× ××× ×ª××××. ×× ×¢××× ×××× ×§×¦×¨, ××× ×ס××¤× ×©× ××ר ××××¢× ×©×××§×."},{type:"paragraph",content:'××× ××? ×עסק ×פס××§ ×פרס×. ×× ××××ת × ×¢××ת. ×× ×צ×××× ×ת×××. ×× <a href="/blog/why-social-media-feels-like-a-time-sink" class="text-primary hover:underline font-medium">××× ×¨×©×ª×ת ××רת××ת ×ר××ש×ת ××× ××××× ×××</a>.'},{type:"heading",content:"×× ×¦×××× ×ת-×§×××× × ×¨××ת",level:2},{type:"paragraph",content:'צ×××× ×ת-×§×××× ×××ססת ×¢× ×ער××ת, ×× ×¢× ××××¥ ×תר. ××× ×××ססת ×¢× ×¢×§×××ת ס×××¨× - ×××× 3-4 פ×ס××× ×ש×××¢ ×××§×× 7. ××× ×××ססת ×¢× <a href="/blog/why-consistency-outperforms-creativity" class="text-primary hover:underline font-medium">×פ×ס×× ×××ר××</a>, ×× ×¢× ××צ×× ×××ש ×× ×××.'},{type:"paragraph",content:"צ×××× ×ת-×§×××× ×ת×××סת ×רשת×ת ××רת××ת ××רת××, ×× ×ספר×× ×. ××××¨× ××× ××××ת ××× ×× ××¢×× ×©× ×, ×× ×¨×§ ××××ש ×קר××."},{type:"heading",content:"××× ××ת×××",level:2},{type:"paragraph",content:"×ת×× ××§××עת ×§×¦× ×©××ª× ×××× ×ש××ר ×¢××× ××××× ×ר××. ×¢×××£ ××ת××× ×¢× 2 פ×ס××× ×ש×××¢ ×××ת××× ××שר ××ת××× ×¢× 7 ×××ת×××× ×××¨× ×××ש."},{type:"paragraph",content:'ש×××§× ××× ×¡××× ×ת×× ×× ×× ×ר-×§××××. ×שרשת×ת ××רת××ת ×ר××ש×ת ××ר××¢×ת, ××ער×ת ש××××. <a href="/blog/why-social-media-feels-like-a-time-sink" class="text-primary hover:underline font-medium">××× × ××ª×§× ×ת ××××× ××××</a>.'},{type:"paragraph",content:'Visible × ×× × ××§××××ת. ××× ×¢××ר ×עסק×× ×××ש×ר × ××××× ××× ×××סס××. × ×¨××ת ××פ×ת ×תשת×ת רקע ×××§×× ×××§× ×ת×××. ××××©× ×××××, ר×× ×ת <a href="/social-media-visibility" class="text-primary hover:underline font-medium">×××ר×× ×©×× × ×× ×¨××ת ×רשת×ת ××רת××ת</a>.'},{type:"paragraph",content:"צ×××× ×©× ×ש×ת ×עת×× ×¨×××§×ת ××ר××× ×¢× ×¢×¦×× ××§×× ×¨×. ××× ×צ××רת ××ת×××."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">ת××× ×× × ×צר ×¢× ××× AI ××××¨×ª× ××× ×××ר×ת ××× ××××ת ××××.</em>'}]}},vme=(e,t)=>
580{const n=(t==null?void 0:t.substring(0,2))||"en";return n==="en"?null:n==="he"&&wO[e]?wO[e]:null},Vt=(e,t)=>`<a href="/blog/${e}" class="text-primary hover:underline font-medium">${t}</a>`,Rl=[{slug:"why-small-businesses-stay-invisible-on-social-media",title:"Why Most Small Businesses Stay Invisible on Social Media and How to Build Real Visibility Over Time",metaDescription:"Most small businesses struggle with social media visibility, not because of poor content but because of inconsistent systems. Learn what actually creates lasting visibility.",excerpt:"Most small businesses believe they are doing social media wrong because their posts do not get engagement. The truth is simpler: they are barely being seen at all.",category:"visibility",tags:["invisible on social media","small business social media","visibility","social media systems"],primaryKeyword:"invisible on social media",secondaryKeywords:["small business social media","social media visibility","business visibility"],publishedAt:"2025-11-04",readingTime:5,content:[{type:"paragraph",content:"Most small businesses believe they are doing social media wrong because their posts do not get likes, comments, or shares. The truth is usually simpler and more uncomfortable. They are not doing it wrong. They are barely being seen at all."},{type:"paragraph",content:"Invisibility is the default state on social platforms. It is what happens when there is no sustained signal. Social media algorithms are not judgmental. They are statistical. They amplify what shows patterns and suppress what looks random."},{type:"heading",content:"The Pattern Problem",level:2},{type:"paragraph",content:`Most businesses post randomly. One week they are active, the next week they disappear. They change tone, format, and topic constantly. From the platform's perspective, this behavior looks like noise. This is exactly ${Vt("why-consistency-outperforms-creativity","why consistency matters more than creativity")} in the long run.`},{type:"paragraph",content:"Another common misconception is that quality content automatically earns visibility. Quality matters, but only after consistency exists. A great post published once every two weeks does not teach the platform anything about your audience. It does not build momentum. It resets you every time."},{type:"heading",content:"What Actually Creates Visibility",level:2},{type:"paragraph",content:`Visibility comes from repetition. From saying similar things, in similar formats, on a predictable schedule. This repetition feels boring to the business owner, but it feels trustworthy to the platform and the audience. Understanding ${Vt("posting-more-does-not-mean-more-visibility","signal clarity over volume")} is essential.`},{type:"paragraph",content:"Businesses that break through invisibility usually do not have better ideas. They have better systems. They decide in advance what they talk about. They choose a small number of formats and stick to them. They stop reinventing themselves every week."},{type:"heading",content:"From Creative Challenge to Operational Habit",level:2},{type:"paragraph",content:"The shift happens when social media stops being a creative challenge and starts being an operational one. When posting becomes something that happens because it is scheduled, not because someone felt inspired."},{type:"paragraph",content:'Visible was built around this exact problem. It helps businesses move from accidental posting to intentional presence. When visibility becomes a habit, results follow naturally. For a complete framework, explore our <a href="/social-media-visibility" class="text-primary hover:underline font-medium">guide to building sustainable social media visibility</a>.'},{type:"paragraph",content:"Being visible is not about shouting louder. It is about showing up often enough to be recognized."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">This content was generated by AI and its goal is for educational purposes only.</em>'}],relatedSlugs:["why-consistency-outperforms-creativity","posting-more-does-not-mean-more-visibility"]},{slug:"why-consistency-outperforms-creativity",title:"Why Consistency on Social Media Outperforms Creativity and How Businesses Can Apply It Practically",metaDescription:"Creativity feels important, but consistency drives real social media growth. Learn why predictable systems outperform viral moments for long term visibility.",excerpt:"Creativity is celebrated on social media. Consistency is rarely mentioned. That imbalance causes most businesses to fail quietly.",category:"consistency",tags:["consistency on social media","social media growth strategy","content systems","predictable posting"],primaryKeyword:"consistency on social media",secondaryKeywords:["social media growth strategy","content consistency","sustainable posting"],publishedAt:"2025-11-18",readingTime:5,content:[{type:"paragraph",content:"Creativity is celebrated on social media. Consistency is rarely mentioned. That imbalance causes most businesses to fail quietly."},{type:"paragraph",content:"Creative content can perform well once. Consistent content performs well repeatedly. Platforms are built to reward patterns, not moments."},{type:"heading",content:"How Platforms Learn About You",level:2},{type:"paragraph",content:`When a business posts consistently, the platform learns how to categorize it. It understands the topic, the audience, and the expected engagement behavior. When posting is sporadic, that learning never stabilizes. This is ${Vt("why-small-businesses-stay-invisible-on-social-media","why most small businesses remain invisible")}.`},{type:"paragraph",content:"Many businesses pause posting because they feel uncreative. That is a sign of a broken system. Social media should not rely on inspiration. It should rely on structure."},{type:"heading",content:"Consistency Does Not Mean Repetition",level:2},{type:"paragraph",content:"Consistency does not mean repeating the same post endlessly. It means repeating the same intent. Similar topics, similar formats, similar timing. Within that structure, creativity still exists, but it is contained."},{type:"paragraph",content:"Think about the accounts you follow regularly. You know what they post about. You recognize their style. That familiarity is not accidental. It is the result of disciplined repetition."},{type:"heading",content:"Momentum Over Perfection",level:2},{type:"paragraph",content:`Another mistake businesses make is waiting for perfect content. Perfection delays momentum. Momentum is what creates reach. Understanding ${Vt("posting-more-does-not-mean-more-visibility","what actually drives visibility")} helps you prioritize the right activities.`},{type:"paragraph",content:"Consistent posting builds trust with the platform and the audience at the same time. People start recognizing your name, your message, and your point of view."},{type:"paragraph",content:'Visible helps businesses implement consistency without burning out. It replaces constant decision making with predefined flows. When consistency is automated, creativity becomes optional instead of mandatory. Learn more in our <a href="/social-media-visibility" class="text-primary hover:underline font-medium">
580comprehensive visibility framework</a>.'},{type:"paragraph",content:"On social media, reliability is more powerful than brilliance."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">This content was generated by AI and its goal is for educational purposes only.</em>'}],relatedSlugs:["why-small-businesses-stay-invisible-on-social-media","posting-more-does-not-mean-more-visibility"]},{slug:"posting-more-does-not-mean-more-visibility",title:"Posting More on Social Media Does Not Mean More Visibility and Here Is What Actually Works",metaDescription:"Posting frequently without strategy can hurt visibility. Learn why signal clarity matters more than volume on social media platforms.",excerpt:"Posting more content feels like progress. But volume alone rarely increases visibility. Platforms interpret signals, not count posts.",category:"strategy",tags:["social media posting strategy","posting frequency visibility","content clarity","signal strength"],primaryKeyword:"social media posting strategy",secondaryKeywords:["posting frequency visibility","content strategy","social media signals"],publishedAt:"2025-12-02",readingTime:4,content:[{type:"paragraph",content:"Posting more content feels like progress. It is measurable. It looks like effort. But volume alone rarely increases visibility."},{type:"paragraph",content:"Social platforms are not counting posts. They are interpreting signals. Each post teaches the system something about who you are and who should see you."},{type:"heading",content:"When More Becomes Noise",level:2},{type:"paragraph",content:`When content is unfocused, the signal becomes weak. If one post is educational, the next is promotional, and the next is personal, the platform struggles to understand your value. Weak signals get less distribution. This is ${Vt("why-small-businesses-stay-invisible-on-social-media","a core reason why businesses stay invisible")}.`},{type:"paragraph",content:"High visibility accounts usually repeat themselves intentionally. They talk about the same problems from multiple angles. This repetition strengthens recognition."},{type:"heading",content:"Format and Platform Fit",level:2},{type:"paragraph",content:"Format misuse is another common issue. A long explanation might work in a carousel but fail as a short video. Copy pasted content across platforms usually underperforms because each platform prioritizes different behaviors."},{type:"paragraph",content:`Posting more without improving clarity often creates fatigue. For the audience and the algorithm. What matters is ${Vt("why-consistency-outperforms-creativity","consistent, focused messaging")}.`},{type:"heading",content:"Clarity Over Volume",level:2},{type:"paragraph",content:"Visibility improves when posting is deliberate. Fewer topics. Clear formats. Predictable rhythm."},{type:"paragraph",content:'Visible focuses on signal strength rather than volume. It helps businesses structure content so every post reinforces the same identity. For the complete approach, see our <a href="/social-media-visibility" class="text-primary hover:underline font-medium">social media visibility guide</a>.'},{type:"paragraph",content:"Being seen is not about how often you post. It is about how clearly you are understood."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">This content was generated by AI and its goal is for educational purposes only.</em>'}],relatedSlugs:["why-small-businesses-stay-invisible-on-social-media","why-consistency-outperforms-creativity"]},{slug:"why-social-media-feels-like-a-time-sink",title:"Why Social Media Feels Like a Time Sink and How Structured Systems Fix It",metaDescription:"Social media drains time when every post becomes a decision. Learn why lack of structure causes burnout and how systems turn visibility into a repeatable process.",excerpt:"Ask most business owners how social media feels and you will hear the same answer. It feels endless, distracting, and like work that never quite pays back.",category:"automation",tags:["social media time management","content systems","social media burnout","structured posting"],primaryKeyword:"social media time management",secondaryKeywords:["content systems","social media efficie
580ncy","posting workflow"],publishedAt:"2025-12-16",readingTime:5,content:[{type:"paragraph",content:"Ask most business owners how social media feels and you will hear the same answer. It feels endless. It feels distracting. It feels like work that never quite pays back the time invested."},{type:"paragraph",content:"This feeling is not caused by social media itself. It is caused by how social media is approached."},{type:"heading",content:"The Decision Fatigue Problem",level:2},{type:"paragraph",content:"Social media becomes a time sink when it requires constant decision making. Every post starts with a blank page. What should we say today. Which platform should we use. Should this be a video or an image. Is this promotional or educational. Each of these questions costs attention."},{type:"paragraph",content:`Attention is a limited resource. When social media consumes it daily, frustration builds quickly. This is ${Vt("why-small-businesses-stay-invisible-on-social-media","why many businesses become invisible")} - they simply stop posting.`},{type:"heading",content:"Operating Without Defaults",level:2},{type:"paragraph",content:"Most businesses operate without defaults. There is no predefined structure guiding what gets posted. As a result, every post feels heavy. Even simple updates require discussion. Eventually, posting slows down or stops entirely."},{type:"paragraph",content:"This is why many businesses describe social media as distracting rather than productive. It interrupts real work instead of supporting it."},{type:"heading",content:"The Power of Predefined Systems",level:2},{type:"paragraph",content:`The businesses that succeed online do something different. They remove decisions from execution. They decide once and reuse many times. This is ${Vt("why-consistency-outperforms-creativity","why consistency always wins")}.`},{type:"paragraph",content:"They define content pillars that stay stable. They choose a small number of formats that repeat. They decide in advance how often they show up. Once these decisions are made, posting becomes execution, not debate."},{type:"paragraph",content:"When structure exists, effort drops dramatically. Posting no longer competes with core work. It fits around it. Systems turn social media into background infrastructure. Like billing or analytics, it runs because it is designed to run."},{type:"paragraph",content:'Visible was built around this principle. It replaces daily uncertainty with predefined flows. When visibility is systemized, time returns to the business. Learn more in our <a href="/social-media-visibility" class="text-primary hover:underline font-medium">complete visibility framework</a>.'},{type:"paragraph",content:"If social media feels exhausting, the problem is not motivation. It is missing structure."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">This content was generated by AI and its goal is for educational purposes only.</em>'}],relatedSlugs:["why-consistency-outperforms-creativity","visibility-is-a-business-asset"]},{slug:"visibility-is-a-business-asset",title:"Why Social Media Visibility Is a Business Asset and Not Just a Marketing Tactic",metaDescription:"Social media visibility compounds over time. Learn why treating it as infrastructure rather than promotion changes long term business outcomes.",excerpt:"Most businesses think of social media as marketing activity. This framing limits its value. Visibility behaves like an asset that compounds over time.",category:"growth",tags:["visibility as business asset","brand visibility","social media ROI","business growth"],primaryKeyword:"visibility as business asset",secondaryKeywords:["brand visibility","social media infrastructure","long term visibility"],publishedAt:"2025-12-30",readingTime:4,content:[{type:"paragraph",content:"Most businesses think of social media as marketing activity. Something you do when launching something new or when sales slow down. This framing limits its value."},{type:"paragraph",content:"Visibility behaves like an asset, not a tactic. It compounds over time. Eac
580h appearance builds familiarity. Familiarity builds trust. Trust lowers friction across the business."},{type:"heading",content:"The Compounding Effect of Visibility",level:2},{type:"paragraph",content:"A visible business sells faster because people already recognize it. It hires more easily because candidates feel familiar with the brand. It receives more referrals because it stays top of mind."},{type:"paragraph",content:`None of this happens overnight. It happens quietly through repetition. This is ${Vt("why-consistency-outperforms-creativity","why consistent presence matters more than creative bursts")}.`},{type:"heading",content:"Tactic vs Infrastructure",level:2},{type:"paragraph",content:`When visibility is treated as a tactic, it is turned on and off. Gaps appear. Momentum resets. The asset stops compounding. This leads to ${Vt("why-small-businesses-stay-invisible-on-social-media","the invisibility trap most businesses fall into")}.`},{type:"paragraph",content:"When visibility is treated as infrastructure, it becomes non negotiable. Like payroll or customer support, it continues regardless of mood or workload."},{type:"paragraph",content:"This shift changes behavior. Businesses stop asking whether they should post and start asking how they ensure presence continues."},{type:"heading",content:"Protection Against Market Shifts",level:2},{type:"paragraph",content:"Visibility also protects against market shifts. When attention moves quickly, familiar brands retain relevance longer. Invisible brands struggle to catch up."},{type:"paragraph",content:'Visible helps businesses embed visibility into operations. Not as a campaign, but as a constant layer supporting growth. For a complete strategy, explore our <a href="/social-media-visibility" class="text-primary hover:underline font-medium">guide to sustainable visibility</a>.'},{type:"paragraph",content:"Marketing tactics expire. Assets endure."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">This content was generated by AI and its goal is for educational purposes only.</em>'}],relatedSlugs:["why-social-media-feels-like-a-time-sink","algorithms-are-not-the-enemy"]},{slug:"algorithms-are-not-the-enemy",title:"Why Social Media Algorithms Are Not the Enemy and How Businesses Should Actually Work With Them",metaDescription:"Social media algorithms reward clarity and consistency. Learn how platforms interpret behavior and how businesses can align without chasing hacks.",excerpt:"Algorithms are often blamed when reach drops. This reaction is understandable but misplaced. Algorithms respond to uncertainty by reducing confidence.",category:"strategy",tags:["social media algorithms","content distribution","algorithm optimization","platform behavior"],primaryKeyword:"social media algorithms",secondaryKeywords:["content distribution","algorithm behavior","platform signals"],publishedAt:"2026-01-13",readingTime:4,content:[{type:"paragraph",content:"Algorithms are often blamed when reach drops. This reaction is understandable but misplaced."},{type:"paragraph",content:"Algorithms are not emotional. They do not punish businesses. They respond to uncertainty by reducing confidence."},{type:"heading",content:"How Algorithms Actually Work",level:2},{type:"paragraph",content:"Social platforms exist to keep users engaged. To do that, they need to predict what content will interest which audience. Algorithms rely on behavioral patterns to make those predictions."},{type:"paragraph",content:`When a business posts regularly about similar topics, in similar formats, the system learns who should see that content. When behavior is inconsistent, classification becomes difficult. This is ${Vt("why-small-businesses-stay-invisible-on-social-media","why sporadic posting leads to invisibility")}.`},{type:"heading",content:"Unintentional Self-Sabotage",level:2},{type:"paragraph",content:"Many businesses unintentionally sabotage their own signals. They switch topics constantly. They mix formats randomly. They disappear and return unpredictably."},{type:"paragraph",content:`From the algorithm's perspective, this behavior is ambiguous. Ambiguity reduces distribution. Understanding ${Vt("posting-more-does-not-mean-more-visibility","signal clarity over volume")} helps avoid this trap.`},{type:"heading",content:"Discipline Over Tricks",level:2},{type:"paragraph",content:`The solution is not tricks or hacks. It is discipline. Repetition is not a flaw. It is a signal. Predictability helps platforms match content to audie
580nces confidently. This is ${Vt("why-consistency-outperforms-creativity","why consistency beats creativity")}.`},{type:"paragraph",content:'Visible helps businesses align behavior with how platforms interpret signals. Not by gaming the system, but by becoming understandable to it. For the complete approach, see our <a href="/social-media-visibility" class="text-primary hover:underline font-medium">social media visibility guide</a>.'},{type:"paragraph",content:"Algorithms are not obstacles. They are mirrors reflecting how consistently you behave."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">This content was generated by AI and its goal is for educational purposes only.</em>'}],relatedSlugs:["posting-more-does-not-mean-more-visibility","visibility-is-a-business-asset"]},{slug:"hidden-cost-of-being-invisible-online",title:"The Hidden Cost of Being Invisible Online and Why It Quietly Damages Your Business",metaDescription:"Being invisible online has a real business cost. Learn how lack of social media visibility erodes trust, referrals, and long term growth without obvious warning signs.",excerpt:"Invisibility rarely feels urgent. That is why it is dangerous. When a business is invisible online, nothing dramatic happens - growth just slows quietly.",category:"visibility",tags:["cost of invisibility","online presence","business growth","trust erosion"],primaryKeyword:"cost of invisibility",secondaryKeywords:["online presence","business visibility cost","invisible business"],publishedAt:"2025-10-21",readingTime:5,content:[{type:"paragraph",content:"Invisibility rarely feels urgent. That is why it is dangerous."},{type:"paragraph",content:"When a business is invisible online, nothing dramatic happens. There is no sudden drop in revenue. No angry customers. No obvious failure. Instead, growth slows quietly. Opportunities drift elsewhere. The impact shows up months later, disconnected from the cause."},{type:"heading",content:"The Silent Erosion of Trust",level:2},{type:"paragraph",content:`Most businesses underestimate how often people check before they choose. They search. They scan. They look for signs of activity. When they find silence, doubt forms quickly. Silence signals stagnation, even when the business itself is strong. This is ${Vt("why-small-businesses-stay-invisible-on-social-media","why so many businesses remain unseen")}.`},{type:"paragraph",content:"Visibility is not about constant promotion. It is about reassurance. Seeing a business regularly creates familiarity. Familiarity reduces perceived risk. People prefer what feels known, even if alternatives are similar in quality."},{type:"heading",content:"Referrals and Hiring Suffer First",level:2},{type:"paragraph",content:"When a business is invisible, it loses this advantage. It becomes harder to remember. Harder to recommend. Harder to trust quickly. Referrals are one of the first casualties. People refer businesses they feel confident about. Confidence comes from repeated exposure."},{type:"paragraph",content:"Hiring also becomes harder. Candidates evaluate companies the same way customers do. They look for signs of life. A quiet online presence raises questions about momentum and stability."},{type:"heading",content:"Invisibility Is a Choice",level:2},{type:"paragraph",content:`Sales cycles lengthen. Prospects need more reassurance. More explanation. More proof. ${Vt("visibility-is-a-business-asset","Visibility as an asset")} would have done that work in advance.`},{type:"paragraph",content:`The most painful part is that invisibility feels passive. It does not feel like a decision. In reality, it is. Every gap in presence is a reset of momentum. Understanding ${Vt("why-consistency-outperforms-creativity","why consistency matters")} helps prevent this erosion.`},{type:"paragraph",content:'Visible businesses protect against this erosion. They stay present enough to be remembered without overwhelming attention. They do not rely on bursts. They rely on continuity. For the complete approach, see our <a href="/social-media-visibility" class="text-primary hover:underline font-medium">
580social media visibility guide</a>.'},{type:"paragraph",content:"The cost of invisibility is not zero. It is delayed. And by the time it is noticed, recovery takes longer than expected."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">This content was generated by AI and its goal is for educational purposes only.</em>'}],relatedSlugs:["why-small-businesses-stay-invisible-on-social-media","visibility-is-a-business-asset","one-good-post-does-not-create-momentum"]},{slug:"one-good-post-does-not-create-momentum",title:"Why One Good Social Media Post Does Not Create Momentum or Long Term Growth",metaDescription:"A single successful post rarely changes outcomes. Learn why momentum comes from repetition, sequencing, and consistent visibility over time.",excerpt:"One good post feels satisfying. It gets attention. It creates a spike. Then the spike fades. Momentum comes from sequences, not moments.",category:"consistency",tags:["social media momentum","content repetition","visibility growth","content sequences"],primaryKeyword:"social media momentum",secondaryKeywords:["content repetition","viral posts","sustainable growth"],publishedAt:"2025-10-07",readingTime:5,content:[{type:"paragraph",content:"One good post feels satisfying. It gets attention. It creates a spike. For a moment, social media feels like it worked."},{type:"paragraph",content:"Then the spike fades."},{type:"heading",content:"The Problem With Chasing Spikes",level:2},{type:"paragraph",content:"This experience leads many businesses to chase individual wins. They anal
580yze what worked, try to replicate it, and hope for another spike. This approach misunderstands how momentum is created."},{type:"paragraph",content:`Momentum is cumulative. It does not come from moments. It comes from sequences. People rarely act after one exposure. They act after recognition forms. Recognition requires repetition. This is ${Vt("why-consistency-outperforms-creativity","why consistency always outperforms creativity")}.`},{type:"heading",content:"Algorithms Need Patterns",level:2},{type:"paragraph",content:`Social platforms work the same way. ${Vt("algorithms-are-not-the-enemy","Algorithms look for patterns")}. A single post performing well is interesting, but it does not establish a pattern. Without follow up, the signal disappears.`},{type:"paragraph",content:"This is why viral posts often fail to change long term results. There is no structure supporting them. No continuation. No sequence guiding the audience forward."},{type:"heading",content:"Sequences Over Singles",level:2},{type:"paragraph",content:"Businesses that grow steadily do something less exciting. They repeat themselves intentionally. They build content series. They revisit the same ideas from different angles. They allow recognition to form gradually."},{type:"paragraph",content:"This repetition can feel uncomfortable internally. Business owners worry about boring their audience. In practice, most audiences need repetition. They do not consume every post. They dip in and out. Sequences create multiple entry points."},{type:"paragraph",content:'Visible growth looks boring from the inside. From the outside, it looks reliable. Visible helps businesses focus on momentum instead of moments. For a complete framework, explore our <a href="/social-media-visibility" class="text-primary hover:underline font-medium">visibility guide</a>.'},{type:"paragraph",content:"One post is an event. Momentum is infrastructure."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">This content was generated by AI and its goal is for educational purposes only.</em>'}],relatedSlugs:["why-consistency-outperforms-creativity","algorithms-are-not-the-enemy","hidden-cost-of-being-invisible-online"]},{slug:"automation-does-not-kill-authenticity",title:"Why Automation Does Not Kill Authenticity on Social Media and Often Improves It",metaDescription:"Automation removes friction, not voice. Learn how structured systems allow businesses to communicate more clearly and authentically over time.",excerpt:"Automation is often treated as the enemy of authenticity. In reality, the opposite is often true. Automation handles repetition. Humans handle meaning.",category:"automation",tags:["social media automation","authenticity online","automated posting","content systems"],primaryKeyword:"social media automation",secondaryKeywords:["authenticity online","automated content","consistent voice"],publishedAt:"2025-09-23",readingTime:4,content:[{type:"paragraph",content:"Automation is often treated as the enemy of authenticity. The assumption is that automated systems produce robotic communication. In reality, the opposite is often true."},{type:"paragraph",content:"When posting is manual, it competes with daily work. Posts are rushed. Messaging is inconsistent. Gaps appear. None of this feels authentic to the audience."},{type:"heading",content:"Authenticity Through Intention",level:2},{type:"paragraph",content:"Authenticity does not come from improvisation under pressure. It comes from clarity and intention. Automation handles repetition. Humans handle meaning. This separation improves both."},{type:"paragraph",content:`When structure is automated, people have time to think about what they want to say. They are not scrambling to post at the last minute. They can refine tone, message, and relevance. This is ${Vt("why-social-media-feels-like-a-time-sink","how systems save time without sacrificing quality")}.`},{type:"heading",content:"Consistency Builds Trust",level:2},{type:"paragraph",content:`Automation also protects ${Vt("why-consistency-outperforms-creativity","consistency")}. It ensures presence even during busy periods. This consistency builds trust. Trust is a core component of authenticity.`},{type:"paragraph",content:"The fear that automation removes humanity assumes that humanity comes from chaos. It does not. It comes from coherence."},{type:"heading",content:"Automate the Boring Parts",level:2},{type:"paragraph",content:'Visible automates the boring parts of visibility. Scheduling. Structure. Repetition. It leaves voice and judgment to humans. For more on building reliable presence, see our <a href="/social-media-visibility" class="text-primary hover:underline font-medium">
580social media visibility guide</a>.'},{type:"paragraph",content:"Authentic communication is not spontaneous. It is deliberate. Automation does not replace authenticity. It creates the conditions for it to exist reliably."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">This content was generated by AI and its goal is for educational purposes only.</em>'}],relatedSlugs:["why-social-media-feels-like-a-time-sink","why-consistency-outperforms-creativity","sustainable-social-media-growth"]},{slug:"sustainable-social-media-growth",title:"What Sustainable Social Media Growth Actually Looks Like for Businesses Over Time",metaDescription:"Sustainable social media growth is calm, predictable, and system driven. Learn what long term visibility looks like without burnout or constant reinvention.",excerpt:"Sustainable social media growth rarely feels impressive day to day. It does not spike dramatically. It feels calm. There is a plan. There is a rhythm.",category:"growth",tags:["sustainable social media","long term visibility","social media burnout","growth systems"],primaryKeyword:"sustainable social media",secondaryKeywords:["long term visibility","social media sustainability","growth without burnout"],publishedAt:"2025-09-09",readingTime:4,content:[{type:"paragraph",content:"Sustainable social media growth rarely feels impressive day to day. It does not rely on trends. It does not spike dramatically. It does not consume attention constantly."},{type:"paragraph",content:"It feels calm."},{type:"heading",content:"What Calm Growth Looks Like",level:2},{type:"paragraph",content:`There is a plan. There is a rhythm. Posting happens even when motivation is low. Visibility continues during busy periods. No single post carries too much weight. This is ${Vt("one-good-post-does-not-create-momentum","why momentum matters more than moments")}.`},{type:"paragraph",content:"Sustainability is not about intensity. It is about durability. Businesses that grow sustainably design systems that survive stress. They assume energy will fluctuate. They assume attention will be limited. They build accordingly."},{type:"heading",content:"Fewer Topics, Longer Horizons",level:2},{type:"paragraph",content:`This means fewer topics, not more. Fewer formats, not constant experimentation. A rhythm that can be maintained long term. Understanding ${Vt("posting-more-does-not-mean-more-visibility","why volume does not equal visibility")} is essential.`},{type:"paragraph",content:`Sustainable growth also means accepting slower feedback. Results are measured over months, not days. ${Vt("visibility-is-a-business-asset","Visibility compounds quietly")}.`},{type:"heading",content:"Burnout Is a Design Problem",level:2},{type:"paragraph",content:`Burnout is a sign of unsustainable design. When social media feels overwhelming, the system is wrong. ${Vt("why-social-media-feels-like-a-time-sink","Structure fixes time drain")}.`},{type:"paragraph",content:'Visible was built for sustainability. It helps businesses remain present without obsession. Visibility becomes background infrastructure rather than constant focus. For the complete approach, see our <a href="/social-media-visibility" class="text-primary hover:underline font-medium">social media visibility guide</a>.'},{type:"paragraph",content:"Growth that lasts rarely announces itself loudly. It accumulates steadily."},{type:"paragraph",content:'<em class="text-muted-foreground text-sm">This content was generated by AI and its goal is for educational purposes only.</em>'}],relatedSlugs:["one-good-post-does-not-create-momentum","automation-does-not-kill-authenticity","why-social-media-feels-like-a-time-sink"]}],yme=(e,t=3)=>{const n=Rl.find(r=>r.slug===e);return n?n.relatedSlugs.map(r=>Rl.find(i=>i.slug===r)).filter(r=>r!==void 0).slice(0,t):[]},xU=(e,t)=>{const n=Rl.find(i=>i.slug===e);if(!n)return;const r=vme(e,t);return r?{...n,title:r.title,metaDescription:r.metaDescription,excerpt:r.excerpt,content:r.content,tags:r.tags}:n},bme=()=>[...new Set(Rl.map(e=>e.category))],xme=Tp("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Se({className:e,variant:t,...n}){return o.jsx("div",{className:oe(xme({variant:t}),e),...n})}const wme={visibility:"bg-primary/10 text-primary",consistency:"bg-blue-100 text-blue-700",automation:"bg-purple-100 text-purple-700",strategy:"bg-green-100 text-green-700",growth:"bg-amber-100 text-amber-700"},SO=({post:e,featured:t=!1})=>{var u,h;const{t:n,i18n:r}=Le(),i=((u=r.language)==null?void 0:u.startsWith("he"))||((h=r.language)==null?void 0:h.startsWith("ar")),a=g.useMemo(()=>xU(e.slug,r.language)||e,[e,r.language]),s=()=>{var p;const d=((p=r.language)==null?void 0:p.substring(0,2))||"en";return{en:"en-US",he:"he-IL",es:"es-ES",fr:"fr-FR",de:"de-DE",pt:"pt-BR"}[d]||"en-US"},l=new Date(e.publishedAt).toLocaleDateString(s(),{year:"numeric",month:"long",day:"numeric"}),c=i?Kr:tr;return o.jsx("article",{className:`group bg-card rounded-2xl border border-border/50 overflow-hidden transition-all duration-300 hover:shadow-lg hover:-translate-y-1 ${t?"md:col-span-2 md:grid md:grid-cols-2":""}`,children:o.jsxs("div",{className:`p-6 ${t?"flex flex-col justify-center":""}`,children:[o.jsx("div",{className:"flex items-center gap-2 mb-3",children:o.jsx(Se,{variant:"secondary",className:wme[e.category],children:n(`blog.categories.${e.category}`)})}),o.jsx("h2",{className:`font-bold text-foreground group-hover:text-primary transition-colors mb-3 ${t?"text-2xl md:text-3xl":"text-xl"}`,children:o.jsx(se,{to:`/blog/${e.slug}`,children:a.title})}),o.jsx("p",{className:"text-muted-foreground mb-4 line-clamp-3",children:a.excerpt}),o.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-4",children:[o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(Op,{className:"h-4 w-4"}),l]}),o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(od,{className:"h-4 w-4"}),n("blog.minRead",{count:e.readingTime})]})]}),o.jsxs(se,{to:`/blog/${e.slug}`,className:"inline-flex items-center gap-1 text-primary font-medium hover:gap-2 transition-all",children:[n("blog.readMore"),o.jsx(c,{className:"h-4 w-4"})]})]})})},wU=({post:e,isIndex:t=!1})=>{if(g.useEffect(()=>{if(t){document.title="Blog | Visible - Social Media Tips for Small Businesses";const n=document.querySelector('meta[name="description"]');n&&n.setAttribute("content","Expert tips and strategies for small business social media success. Learn about visibility, automation, and sustainable growth.");const r=document.querySelector('link[rel="canonical"]');r&&r.setAttribute("href","https://socialvisible.ai/blog");const i=document.querySelector('meta[property="og:title"]');i&&i.setAttribute("content","Blog | Visible - Social Media Tips for Small Businesses");const a=document.querySelector('meta[property="og:description"]');a&&a.setAttribute("content","Expert tips and strategies for small business social media success.");const s=document.querySelector('meta[property="og:url"]');s&&s.setAttribute("href","https://socialvisible.ai/blog")}else if(e){document.title=`${e.title} | Visible Blog`;const n=document.querySelector('meta[name="description"]');n&&n.setAttribute("content",e.metaDescription);const r=document.querySelector('link[rel="canonical"]');r&&r.setAttribute("href",`https://socialvisible.ai/blog/${e.slug}`);const i=document.querySelector('meta[property="og:title"]');i&&i.setAttribute("content",e.title);const a=document.querySelector('meta[property="og:description"]');a&&a.setAttribute("content",e.metaDescription);const s=document.querySelector('meta[property="og:url"]');s&&s.setAttribute("href",`https://socialvisible.ai/blog/${e.slug}`)}return()=>{document.title="Visible â Your Social Media Manager. In WhatsApp.";const n=document.querySelector('meta[name="description"]');n&&n.setAttribute("content","AI-powered social media management through WhatsApp. Just text a photo and Visible creates stunning Instagram posts for your small business. No apps, no dashboards.");const r=document.querySelector('link[rel="canonical"]');r&&r.setAttribute("href","https://socialvisible.ai");const i=document.querySelector('meta[property="og:title"]');i&&i.setAttribute("content","Visible â Your Social Media Manager. In WhatsApp.");const a=document.querySelector('meta[property="og:description"]');a&&a.setAttribute("content","AI-powered social media management through WhatsApp. Just text a photo and Visible creates stunning Instagram posts.");const s=document.querySelector('meta[property="og:url"]');s&&s.setAttribute("href","https://socialvisible.ai")}},[e,t]),e){const n=[e.primaryKeyword,...e.secondaryKeywords,...e.tags].filter((s,l,c)=>c.indexOf(s)===l),r=`https://socialvisible.ai/blog/${e.slug}`,i={"@context":"https://schema.org","@type":"BlogPosting",headline:e.title,de
580scription:e.metaDescription,image:"https://lovable.dev/opengraph-image-p98pqg.png",datePublished:e.publishedAt,dateModified:e.publishedAt,author:{"@type":"Organization",name:"Visible",url:"https://socialvisible.ai"},publisher:{"@type":"Organization",name:"Visible",logo:{"@type":"ImageObject",url:"https://socialvisible.ai/favicon.png"}},mainEntityOfPage:{"@type":"WebPage","@id":r},keywords:n.join(", "),about:{"@type":"Thing",name:e.primaryKeyword},isPartOf:{"@type":"WebPage","@id":"https://socialvisible.ai/social-media-visibility",name:"Social Media Visibility for Businesses"}},a={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://socialvisible.ai/"},{"@type":"ListItem",position:2,name:"Blog",item:"https://socialvisible.ai/blog/"},{"@type":"ListItem",position:3,name:e.title,item:r}]};return o.jsxs(o.Fragment,{children:[o.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}}),o.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})]})}if(t){const n={"@context":"https://schema.org","@type":"Blog",name:"Visible Blog",description:"Expert tips and strategies for small business social media success.",url:"https://socialvisible.ai/blog",publisher:{"@type":"Organization",name:"Visible"}},r={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://socialvisible.ai/"},{"@type":"ListItem",position:2,name:"Blog",item:"https://socialvisible.ai/blog/"}]};return o.jsxs(o.Fragment,{children:[o.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}}),o.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})]})}return null},Sme=()=>{var h,d;const{t:e,i18n:t}=Le(),[n,r]=g.useState("all"),i=bme(),a=((h=t.language)==null?void 0:h.startsWith("he"))||((d=t.language)==null?void 0:d.startsWith("ar")),l=[...n==="all"?Rl:Rl.filter(f=>f.category===n)].sort((f,p)=>new Date(p.publishedAt).getTime()-new Date(f.publishedAt).getTime()),c=l[0],u=l.slice(1);return o.jsxs("div",{className:"min-h-screen",dir:a?"rtl":"ltr",children:[o.jsx(wU,{isIndex:!0}),o.jsx(Tl,{}),o.jsx("main",{className:"pt-24 pb-16",children:o.jsxs("div",{className:"container mx-auto px-4",children:[o.jsxs(Q.header,{className:"text-center mb-12",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[o.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:e("blog.title").split("Visible").map((f,p,v)=>o.jsxs(D.Fragment,{children:[f,p<v.length-1&&o.jsx("span",{className:"gradient-text",children:"Visible"})]},p))}),o.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:e("blog.subtitle")})]}),o.jsxs(Q.nav,{className:"flex flex-wrap justify-center gap-2 mb-12",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},"aria-label":"Blog categories",children:[o.jsx(K,{variant:n==="all"?"default":"outline",size:"sm",onClick:()=>r("all"),className:"rounded-full",children:e("blog.allArticles")}),i.map(f=>o.jsx(K,{variant:n===f?"default":"outline",size:"sm",onClick:()=>r(f),className:"rounded-full",children:e(`blog.categories.${f}`)},f))]}),c&&n==="all"&&o.jsx(Q.section,{className:"mb-12",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:o.jsx(SO,{post:c,featured:!0})}),o.jsx(Q.section,{initial:{opacity:0}
580,animate:{opacity:1},transition:{duration:.5,delay:.3},children:o.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:(n==="all"?u:l).map((f,p)=>o.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,delay:p*.05},children:o.jsx(SO,{post:f})},f.slug))})}),o.jsxs(Q.div,{className:"text-center mt-16",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.4},children:[o.jsx("p",{className:"text-muted-foreground mb-4",children:e("blog.readyQuestion")}),o.jsx(K,{asChild:!0,size:"lg",className:"shadow-md",children:o.jsx(se,{to:"/#pricing",children:e("blog.getStartedFree")})})]})]})}),o.jsx(wd,{})]})},jme=({sections:e})=>o.jsx("div",{className:"prose prose-lg max-w-none",children:e.map((t,n)=>{var r;switch(t.type){case"heading":return t.level===2?o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:t.content},n):o.jsx("h3",{className:"text-xl font-semibold text-foreground mt-8 mb-3",children:t.content},n);case"paragraph":return o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",dangerouslySetInnerHTML:{__html:t.content}},n);case"list":return o.jsxs("div",{className:"my-6",children:[o.jsx("p",{className:"font-medium text-foreground mb-3",children:t.content}),o.jsx("ul",{className:"list-disc list-inside space-y-2 text-muted-foreground",children:(r=t.items)==null?void 0:r.map((i,a)=>o.jsx("li",{className:"leading-relaxed",children:i},a))})]},n);default:return null}})}),_me=({currentSlug:e,count:t=3})=>{var l,c;const{t:n,i18n:r}=Le(),i=yme(e,t),s=((l=r.language)==null?void 0:l.startsWith("he"))||((c=r.language)==null?void 0:c.startsWith("ar"))?Kr:tr;return i.length===0?null:o.jsxs("aside",{className:"mt-16 pt-12 border-t border-border",children:[o.jsx("h2",{className:"text-2xl font-bold text-foreground mb-8",children:n("blog.relatedArticles")}),o.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:i.map(u=>o.jsxs("article",{className:"group bg-card rounded-xl border border-border/50 p-6 transition-all duration-300 hover:shadow-md hover:-translate-y-1",children:[o.jsx("h3",{className:"font-semibold text-foreground group-hover:text-primary transition-colors mb-2 line-clamp-2",children:o.jsx(se,{to:`/blog/${u.slug}`,children:u.title})}),o.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-4",children:u.excerpt}),o.jsxs(se,{to:`/blog/${u.slug}`,className:"inline-flex items-center gap-1 text-sm text-primary font-medium hover:gap-2 transition-all",children:[n("blog.readArticle"),o.jsx(s,{className:"h-3 w-3"})]})]},u.slug))})]})},Nme=()=>{var c,u;const{slug:e}=l5(),{t,i18n:n}=Le(),r=e?xU(e,n.language):void 0,i=((c=n.language)==null?void 0:c.startsWith("he"))||((u=n.language)==null?void 0:u.startsWith("ar"));if(!r)return o.jsx(hb,{to:"/blog",replace:!0});const a=()=>{var f;const h=((f=n.language)==null?void 0:f.substring(0,2))||"en";return{en:"en-US",he:"he-IL",es:"es-ES",fr:"fr-FR",de:"de-DE",pt:"pt-BR"}[h]||"en-US"},s=new Date(r.publishedAt).toLocaleDateString(a(),{year:"numeric",month:"long",day:"numeric"}),l=i?tr:Kr;return o.jsxs("div",{className:"min-h-screen",dir:i?"rtl":"ltr",children:[o.jsx(wU,{post:r}),o.jsx(Tl,{}),o.jsx("main",{className:"pt-24 pb-16",children:o.jsxs("article",{className:"container mx-auto px-4 max-w-4xl",children:[o.jsx(Q.nav,{className:"mb-8",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},"aria-label":"Breadcrumb",children:o.jsxs(se,{to:"/blog",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-primary transition-colors",children:[o.jsx(l,{className:"h-4 w-4"}),t("blog.backToBlog")]})}),o.jsxs(Q.header,{className:"mb-10",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[o.jsx(Se,{variant:"secondary",className:"mb-4",children:t(`blog.categories.${r.category}`)}),o.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6 leading-tight",children:r.title}),o.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-muted-foreground",children:[o.jsxs("span",{className:"flex items-center gap-1.5",children:[o.jsx(Op,{className:"h-4 w-4"}),o.jsx("time",{dateTime:r.publishedAt,children:s})]}),o.jsxs("span",{className:"flex items-center gap-1.5",children:[o.jsx(od,{className:"h-4 w-4"}),t("blog.minRead",{count:r.readingTime})]})]}),o.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-4",children:[o.jsx(E9,{className:"h-4 w-4 text-muted-foreground"}),r.tags.map(h=>o.jsx(Se,{variant:"outline",className:"text-xs",children:h},h))]})]}),o.jsx(Q.div,{initial:{opacity:0}
580,animate:{opacity:1},transition:{duration:.5,delay:.2},children:o.jsx(jme,{sections:r.content})}),o.jsxs(Q.section,{className:"mt-16 p-8 bg-gradient-to-r from-primary/10 to-secondary/10 rounded-2xl text-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},children:[o.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:t("blog.readyToBeVisible")}),o.jsx("p",{className:"text-muted-foreground mb-6 max-w-xl mx-auto",children:t("blog.ctaSubtitle")}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[o.jsx(K,{asChild:!0,size:"lg",className:"shadow-md",children:o.jsx(se,{to:"/#pricing",children:t("blog.getStartedFree")})}),o.jsx(K,{asChild:!0,variant:"outline",size:"lg",children:o.jsx(se,{to:"/blog",children:t("blog.readMoreArticles")})})]})]}),o.jsx(_me,{currentSlug:r.slug})]})}),o.jsx(wd,{})]})},Pme={visibility:"Visibility",consistency:"Consistency",automation:"Automation",strategy:"Strategy",growth:"Growth"},jO="Social Media Visibility Guide for Small Businesses",_O="A practical guide to social media visibility for businesses. Learn how consistency, systems, and structure create long term reach and recognition.",Ame=()=>{g.useEffect(()=>{const r=document.title;document.title=jO;const i=(a,s,l)=>{const c=document.querySelector(a);c&&c.setAttribute(s,l)};return i('meta[name="description"]',"content",_O),i('link[rel="canonical"]',"href","https://socialvisible.ai/social-media-visibility"),i('meta[property="og:title"]',"content",jO),i('meta[property="og:description"]',"content",_O),i('meta[property="og:url"]',"content","https://socialvisible.ai/social-media-visibility"),()=>{document.title=r,i('meta[name="description"]',"content","AI-powered social media management through WhatsApp. Just text a photo and Visible creates stunning Instagram posts for your small business. No apps, no dashboards."),i('link[rel="canonical"]',"href","https://socialvisible.ai"),i('meta[property="og:title"]',"content","Visible â Your Social Media Manager. In WhatsApp."),i('meta[property="og:description"]',"content","AI-powered social media management through WhatsApp. Just text a photo and Visible creates stunning Instagram posts."),i('meta[property="og:url"]',"content","https://socialvisible.ai/")}},[]);const e=[...Rl].sort((r,i)=>new Date(i.publishedAt).getTime()-new Date(r.publishedAt).getTime()),t={"@context":"https://schema.org","@type":"WebPage",name:"Social Media Visibility for Businesses",description:"A practical guide to building consistent and sustainable social media visibility.",url:"https://socialvisible.ai/social-media-visibility"},n={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://socialvisible.ai/"},{"@type":"ListItem",position:2,name:"Social Media Visibility",item:"https://socialvisible.ai/social-media-visibility"}]};return o.jsxs("div",{className:"min-h-screen",children:[o.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}}),o.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}}),o.jsx(Tl,{}),o.jsx("main",{className:"pt-24 pb-16",children:o.jsxs("article",{className:"container mx-auto px-4 max-w-4xl",children:[o.jsxs(Q.header,{className:"mb-12",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[o.jsx(Se,{variant:"secondary",className:"mb-4 bg-primary/10 text-primary",children:"Pillar Guide"}),o.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6 leading-tight",children:"Social Media Visibility for Businesses"}),o.jsx("p",{className:"text-xl text-muted-foreground",children:"A practical guide to staying consistent, relevant, and seen on social media."})]}),o.jsxs(Q.div,{className:"prose prose-lg max-w-none",initial:{opacity:0}
580,animate:{opacity:1},transition:{duration:.5,delay:.2},children:[o.jsxs("section",{className:"mb-12",children:[o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"What Social Media Visibility Really Means"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Social media visibility is not about posting content. It is about being recognized repeatedly over time."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"A visible business is one that audiences remember, platforms understand, and algorithms trust. Visibility is cumulative. Each appearance builds on the last one. When businesses disappear for weeks and return randomly, they reset that progress."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Visibility is not measured by likes alone. It shows up as familiarity, faster trust, and easier conversions. People feel like they know you before they engage with you."})]}),o.jsxs("section",{className:"mb-12",children:[o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"Why Most Businesses Struggle to Stay Visible"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Most businesses struggle with visibility for structural reasons, not creative ones."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"They rely on inspiration instead of systems. They treat every post as a fresh decision. They post inconsistently, switch formats often, and change topics without direction."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"From the platform's perspective, this behavior looks random. Random signals do not get amplified."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Visibility requires predictability. Not boring content, but reliable presence."})]}),o.jsxs("section",{className:"mb-12",children:[o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"Consistency Beats Creativity Over Time"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Creativity creates spikes. Consistency creates growth."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Platforms reward accounts that behave predictably. Posting on a steady rhythm, using similar formats, and covering related topics teaches the algorithm who should see your content."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"This is why consistent but average content often outperforms occasional great content. Consistency trains distribution. Creativity benefits from that training."})]}),o.jsxs("section",{className:"mb-12",children:[o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"Building Visibility With Systems"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Sustainable visibility comes from systems, not effort."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Effective businesses define:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 text-muted-foreground mb-4",children:[o.jsx("li",{className:"leading-relaxed",children:"Content pillars they repeat"}),o.jsx("li",{className:"leading-relaxed",children:"Formats they reuse"}),o.jsx("li",{className:"leading-relaxed",children:"A publishing rhythm they protect"})]}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"When posting becomes operational, execution becomes easier. Systems reduce decision fatigue and remove friction."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"This is where automation plays a role. Not to remove authenticity, but to protect consistency."})]}),o.jsxs("section",{className:"mb-12",children:[o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"How Algorithms Interpret Your Content"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Algorithms do not judge quality the way humans do. They look for patterns."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"They track:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 text-muted-foreground mb-4",children:[o.jsx("li",{className:"leading-relaxed",children:"Topic consistency"}),o.jsx("li",{className:"leading-relaxed",children:"Format usage"}),o.jsx("li",{className:"leading-relaxed",children:"Posting rhythm"}),o.jsx("li",{className:"leading-relaxed",children:"Engagement feedback"})]}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"When these signals align, distribution increases. When they conflict, reach drops."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"You do not need to understand every algorithm update. You need to behave consistently enough to be understood."})]}),o.jsxs("section",{className:"mb-12",children:[o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"Sustainable Social Media Practices"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Sustainable social media does not feel exciting. It feels calm."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"There is a plan. There is a rhythm. There is no panic when a post underperforms."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Sustainability means:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 text-muted-foreground mb-4",children:[o.jsx("li",{className:"leading-relaxed",children:"No burnout"}),o.jsx("li",{className:"leading-relaxed",children:"No constant reinvention"}
580),o.jsx("li",{className:"leading-relaxed",children:"No dependency on trends"})]}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Visibility becomes an asset instead of a stressor."})]})]}),o.jsxs(Q.section,{className:"mt-16 p-8 bg-gradient-to-r from-primary/10 to-secondary/10 rounded-2xl text-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},children:[o.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"Ready to Build Sustainable Visibility?"}),o.jsx("p",{className:"text-muted-foreground mb-6 max-w-xl mx-auto",children:"Visible helps you maintain consistent social media presence through WhatsApp - no apps, no dashboards, just results."}),o.jsx(K,{asChild:!0,size:"lg",className:"shadow-md",children:o.jsx(se,{to:"/#pricing",children:"Get Started Free"})})]}),o.jsxs(Q.section,{className:"mt-16 pt-12 border-t border-border",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.4},children:[o.jsx("h2",{className:"text-2xl font-bold text-foreground mb-8",children:"Related Articles"}),o.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map(r=>{const i=new Date(r.publishedAt).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return o.jsxs("article",{className:"group bg-card rounded-xl border border-border/50 p-6 transition-all duration-300 hover:shadow-md hover:-translate-y-1",children:[o.jsx(Se,{variant:"secondary",className:"mb-3 text-xs",children:Pme[r.category]}),o.jsx("h3",{className:"font-semibold text-foreground group-hover:text-primary transition-colors mb-2 line-clamp-2",children:o.jsx(se,{to:`/blog/${r.slug}`,children:r.title})}),o.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-4",children:r.excerpt}),o.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground mb-4",children:[o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(Op,{className:"h-3 w-3"}),i]}),o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(od,{className:"h-3 w-3"}),r.readingTime," min"]})]}),o.jsxs(se,{to:`/blog/${r.slug}`,className:"inline-flex items-center gap-1 text-sm text-primary font-medium hover:gap-2 transition-all",children:["Read Article",o.jsx(tr,{className:"h-3 w-3"})]})]},r.slug)})})]}),o.jsx(Q.div,{className:"text-center mt-12",initial:{opacity:0}
580,animate:{opacity:1},transition:{duration:.5,delay:.5},children:o.jsx(K,{asChild:!0,variant:"outline",size:"lg",children:o.jsxs(se,{to:"/blog",children:["View All Articles",o.jsx(tr,{className:"ml-2 h-4 w-4"})]})})})]})}),o.jsx(wd,{})]})},Cme=()=>(Sd({title:"Pricing â Visible WhatsApp Social Media Manager",description:"Simple plans for small businesses. Pay monthly to let Visible run your Instagram from WhatsApp. Includes posts, carousels, stories and reels.",path:"/pricing"}),o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Tl,{}),o.jsx("main",{className:"pt-16",children:o.jsx(sz,{})}),o.jsx(wd,{})]}));function SU(){const[e,t]=g.useState(null),[n,r]=g.useState(!0),[i,a]=g.useState(null),s=g.useCallback(async()=>{try{r(!0),a(null);const{data:l,error:c}=await X.functions.invoke("n8n-get-credit-info");if(c)throw c;if(l!=null&&l.success)t(l);else throw new Error((l==null?void 0:l.error)||"Failed to fetch credit info")}catch(l){a(l.message||"Unknown error")}finally{r(!1)}},[]);return g.useEffect(()=>{s()},[s]),{balance:(e==null?void 0:e.balance)??0,plan:(e==null?void 0:e.plan)??"free",subscriptionStatus:(e==null?void 0:e.subscription_status)??"none",monthlyCredits:(e==null?void 0:e.monthly_credits)??0,recentUsage:(e==null?void 0:e.recent_usage)??[],loading:n,error:i,refetch:s}}function gA(){const[e,t]=g.useState(null),[n,r]=g.useState(!0),[i,a]=g.useState(null),s=g.useCallback(async()=>{try{r(!0),a(null);const{data:{user:l}}=await X.auth.getUser();if(!l){t(null);return}const{data:c,error:u}=await X.from("users").select("*").eq("id",l.id).single();if(u)throw u;t(c)}catch(l){a(l instanceof Error?l:new Error("Failed to fetch user")),t(null)}finally{r(!1)}},[]);return g.useEffect(()=>{s();const{data:{subscription:l}}=X.auth.onAuthStateChange(async c=>{c==="SIGNED_IN"||c==="TOKEN_REFRESHED"?await s():c==="SIGNED_OUT"&&t(null)});return()=>{l.unsubscribe()}},[s]),{user:e,loading:n,error:i,refetch:s}}var vA="Progress",yA=100,[Eme,Sze]=Fn(vA),[kme,Tme]=Eme(vA),jU=g.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=Ome,...s}=e;(i||i===0)&&!NO(i)&&console.error(Ime(`${i}`,"Progress"));const l=NO(i)?i:yA;r!==null&&!PO(r,l)&&console.error(Rme(`${r}`,"Progress"));const c=PO(r,l)?r:null,u=Iv(c)?a(c,l):void 0;return o.jsx(kme,{scope:n,value:c,max:l,children:o.jsx(ye.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Iv(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":PU(c,l),"data-value":c??void 0,"data-max":l,...s,ref:t})})});jU.displayName=vA;var _U="ProgressIndicator",NU=g.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=Tme(_U,n);return o.jsx(ye.div,{"data-state":PU(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});NU.displayName=_U;function Ome(e,t){return`${Math.round(e/t*100)}%`}function PU(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Iv(e){return typeof e=="number"}function NO(e){return Iv(e)&&!isNaN(e)&&e>0}function PO(e,t){return Iv(e)&&!isNaN(e)&&e<=t&&e>=0}function Ime(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${yA}\`.`}function Rme(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 581 - a positive number 582 - less than the value passed to \`max\` (or ${yA} if no \`max\` prop is set) 583 - \`null\` or \`undefined\` if the progress is indeterminate. 584 585Defaulting to \`null\`.`}var AU=jU,Dme=NU;const Df=g.forwardRef(({className:e,value:t,...n},r)=>o.jsx(AU,{ref:r,className:oe("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:o.jsx(Dme,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Df.displayName=AU.displayName;const Mme=()=>{const{t:e}=Le(),t=[{type:e("billing.pricing.carousel"),cost:"~2"},{type:e("billing.pricing.reel"),cost:"~10"},{type:e("billing.pricing.storyImage"),cost:"~0.5"},{type:e("billing.pricing.storyClip"),cost:"~2"}],n=[{type:e("billing.pricing.editReel"),cost:"~3"},{type:e("billing.pricing.editStoryClip"),cost:"~2"},{type:e("billing.pricing.editStoryImage"),cost:"~0.5"},{type:e("billing.pricing.editCarouselImage"),cost:"~0.4"},{type:e("billing.pricing.editText"),cost:e("billing.pricing.free")}];return o.jsxs("div",{className:"rounded-xl border bg-card overflow-hidden",children:[o.jsxs("div",{className:"flex items-center gap-2 p-5 border-b",children:[o.jsx(kr,{className:"w-4 h-4 text-muted-foreground"}),o.jsx("h2",{className:"font-semibold",children:e("billing.pricing.title")})]}),o.jsxs("div",{className:"p-5 grid sm:grid-cols-2 gap-6",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsx(kr,{className:"w-3.5 h-3.5 text-primary"}),o.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:e("billing.pricing.creation")})]}),o.jsx("div",{className:"space-y-2",children:t.map((r,i)=>o.jsxs("div",{className:"flex justify-between items-center text-sm py-1.5 px-3 rounded-lg bg-muted/50",children:[o.jsx("span",{children:r.type}),o.jsx("span",{className:"font-mono font-medium",children:r.cost})]},i))})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsx(ab,{className:"w-3.5 h-3.5 text-primary"}),o.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:e("billing.pricing.edits")})]}),o.jsx("div",{className:"space-y-2",children:n.map((r,i)=>o.jsxs("div",{className:"flex justify-between items-center text-sm py-1.5 px-3 rounded-lg bg-muted/50",children:[o.jsx("span",{children:r.type}),o.jsx("span",{className:"font-mono font-medium",children:r.cost})]},i))})]})]}),o.jsx("div",{className:"px-5 pb-4",children:o.jsx("p",{className:"text-xs text-muted-foreground",children:e("billing.pricing.disclaimer")})})]})},$me=()=>{const{t:e}=Le(),[t,n]=g.useState(null),r=async i=>{n(i);try{const{data:a,error:s}=await X.functions.invoke("paypal-create-order",{body:{pack_id:i}});if(s)throw s;if(!(a!=null&&a.success)||!(a!=null&&a.approve_url))throw new Error((a==null?void 0:a.message)||(a==null?void 0:a.error)||"Failed to create order");window.location.href=a.approve_url}catch(a){console.error("[CreditPacks] checkout failed:",a),Oe.error(a.message||"Could not start checkout"),n(null)}};return o.jsxs("div",{className:"rounded-xl border bg-card overflow-hidden",children:[o.jsxs("div",{className:"flex items-center gap-2 p-5 border-b",children:[o.jsx(X3,{className:"w-4 h-4 text-muted-foreground"}),o.jsx("h2",{className:"font-semibold",children:e("billing.packs.title","Top Up Credits")})]}),o.jsx("div",{className:"p-5 grid sm:grid-cols-3 gap-4",children:iz.map(i=>{const a=t===i.id,s=t!==null;return o.jsxs("div",{className:"rounded-xl border bg-background p-4 flex flex-col items-center text-center space-y-2 min-w-0",children:[o.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:i.name}),o.jsxs("span",{className:"text-2xl font-bold",children:["$",i.price]}),o.jsxs("span",{className:"text-sm",children:[i.credits," ",e("billing.packs.credits","credits")]}),i.bonus&&i.bonus!=="0%"&&o.jsxs("span",{className:"inline-block px-2 py-0.5 text-xs rounded-full bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",children:["+",i.bonus," ",e("billing.packs.bonus","bonus")]}),o.jsx(K,{onClick:()=>r(i.id),disabled:s,className:"w-full mt-2",children:a?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"w-4 h-4 me-2 animate-spin"}),e("billing.packs.processing","Redirecting...")]}):e("billing.packs.buyNow","Buy now")})]},i.id)})})]})};/*! 586 * react-paypal-js v8.9.2 (2025-10-02T20:17:55.069Z) 587 * Copyright 2020-present, PayPal, Inc. All rights reserved. 588 * 589 * Licensed under the Apache License, Version 2.0 (the "License");
590 * you may not use this file except in compliance with the License. 591 * You may obtain a copy of the License at 592 * 593 * https://www.apache.org/licenses/LICENSE-2.0 594 * 595 * Unless required by applicable law or agreed to in writing, software 596 * distributed under the License is distributed on an "AS IS" BASIS, 597 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 598 * See the License for the specific language governing permissions and 599 * limitations under the License. 600 */var wr;(function(e){e.INITIAL="initial",e.PENDING="pending",e.REJECTED="rejected",e.RESOLVED="resolved"})(wr||(wr={}));var io;(function(e){e.LOADING_STATUS="setLoadingStatus",e.RESET_OPTIONS="resetOptions",e.SET_BRAINTREE_INSTANCE="braintreeInstance"})(io||(io={}));var AO;(function(e){e.NUMBER="number",e.CVV="cvv",e.EXPIRATION_DATE="expirationDate",e.EXPIRATION_MONTH="expirationMonth",e.EXPIRATION_YEAR="expirationYear",e.POSTAL_CODE="postalCode"})(AO||(AO={}));var ln=function(){return ln=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ln.apply(this,arguments)};function CU(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function CO(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Mf="data-react-paypal-script-id",Qo={DATA_CLIENT_TOKEN:"dataClientToken",DATA_JS_SDK_LIBRARY:"dataJsSdkLibrary",DATA_LIBRARY_VALUE:"react-paypal-js",DATA_NAMESPACE:"dataNamespace",DATA_SDK_INTEGRATION_SOURCE:"dataSdkIntegrationSource",DATA_USER_ID_TOKEN:"dataUserIdToken"},Lme="Failed to load the PayPal JS SDK script.",EU="paypal",Vme="usePayPalScriptReducer must be used within a PayPalScriptProvider";function Fme(e){return e===void 0&&(e=EU),window[e]}function Bme(e){for(var t="",n=0;n<e.length;n++){var r=e[n].charCodeAt(0)*n;e[n+1]&&(r+=e[n+1].charCodeAt(0)*(n-1)),t+=String.fromCharCode(97+Math.abs(r)%26)}return t}function zme(e){var t=e.reactComponentName,n=e.sdkComponentKey,r=e.sdkRequestedComponents,i=r===void 0?"":r,a=e.sdkDataNamespace,s=a===void 0?EU:a,l=n.charAt(0).toUpperCase().concat(n.substring(1)),c="Unable to render <".concat(t," /> because window.").concat(s,".").concat(l," is undefined."),u=typeof i=="string"?i:i.join(",");if(!u.includes(n)){var h=[u,n].filter(Boolean).join();c+=` 601To fix the issue, add '`.concat(n,"' to the list of components passed to the parent PayPalScriptProvider:")+"\n`<PayPalScriptProvider options={{ components: '".concat(h,"'}}>`.")}return c}function kU(e){var t=e,n=Mf;t[n];var r=CU(t,[n+""]);return"react-paypal-js-".concat(Bme(JSON.stringify(r)))}function Ume(e){var t=self.document.querySelector("script[".concat(Mf,'="').concat(e,'"]'));t!=null&&t.parentNode&&t.parentNode.removeChild(t)}function Wme(e,t){var n,r;switch(t.type){case io.LOADING_STATUS:return typeof t.value=="object"?ln(ln({},e),{loadingStatus:t.value.state,loadingStatusErrorMessage:t.value.message}):ln(ln({},e),{loadingStatus:t.value});case io.RESET_OPTIONS:return Ume(e.options[Mf]),ln(ln({},e),{loadingStatus:wr.PENDING,options:ln(ln((n={},n[Qo.DATA_SDK_INTEGRATION_SOURCE]=Qo.DATA_LIBRARY_VALUE,n),t.value),(r={},r[Mf]="".concat(kU(t.value)),r))});case io.SET_BRAINTREE_INSTANCE:return ln(ln({},e),{braintreePayPalCheckoutInstance:t.value});default:return e}}var TU=g.createContext(null);function qme(e){if(typeof(e==null?void 0:e.dispatch)=="function"&&e.dispatch.length!==0)return e;throw new Error(Vme)}function Hme(){var e=qme(g.useContext(TU)),t=ln(ln({},e),{isInitial:e.loadingStatus===wr.INITIAL,isPending:e.loadingStatus===wr.PENDING,isResolved:e.loadingStatus===wr.RESOLVED,isRejected:e.loadingStatus===wr.REJECTED});return[t,e.dispatch]}g.createContext({});function Gme(e){var t=g.useRef(new Proxy({},{get:function(n,r,i){return typeof n[r]=="function"?function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return n[r].apply(n,a)}:Reflect.get(n,r,i)}}));return t.current=Object.assign(t.current,e),t.current}var bA=function(e){var t,n=e.className,r=n===void 0?"":n,i=e.disabled,a=i===void 0?!1:i,s=e.children,l=e.forceReRender,c=l===void 0?[]:l,u=CU(e,["className","disabled","children","forceReRender"]),h=a?{opacity:.38}:{},d="".concat(r," ").concat(a?"paypal-buttons-disabled":"").trim(),f=g.useRef(null),p=g.useRef(null),v=Gme(u),m=Hme()[0],y=m.isResolved,b=m.options,w=g.useState(null),x=w[0],S=w[1],j=g.useState(!0),N=j[0],_=j[1],P=g.useState(null),A=P[1];function k(){p.current!==null&&p.current.close().catch(function(){})}return!((t=p.current)===null||t===void 0)&&t.updateProps&&p.current.updateProps({message:u.message}),g.useEffect(function(){if(y===!1)return k;
601var C=Fme(b.dataNamespace);if(C===void 0||C.Buttons===void 0)return A(function(){throw new Error(zme({reactComponentName:bA.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:b.components,sdkDataNamespace:b[Qo.DATA_NAMESPACE]}))}),k;var E=function(I,O){S(O),typeof u.onInit=="function"&&u.onInit(I,O)};try{p.current=C.Buttons(ln(ln({},v),{onInit:E}))}catch(I){return A(function(){throw new Error("Failed to render <PayPalButtons /> component. Failed to initialize: ".concat(I))})}return p.current.isEligible()===!1?(_(!1),k):(f.current&&p.current.render(f.current).catch(function(I){f.current===null||f.current.children.length===0||A(function(){throw new Error("Failed to render <PayPalButtons /> component. ".concat(I))})}),k)},CO(CO([y],c,!0),[u.fundingSource],!1)),g.useEffect(function(){x!==null&&(a===!0?x.disable().catch(function(){}):x.enable().catch(function(){}))},[a,x]),D.createElement(D.Fragment,null,N?D.createElement("div",{ref:f,style:h,className:d}):s)};bA.displayName="PayPalButtons";function Kme(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Yme(e,t){var n=document.querySelector('script[src="'.concat(e,'"]'));if(n===null)return null;var r=OU(e,t),i=n.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(r.dataset).length)return null;var a=!0;return Object.keys(i.dataset).forEach(function(s){i.dataset[s]!==r.dataset[s]&&(a=!1)}),a?n:null}function Xme(e){var t=e.url,n=e.attributes,r=e.onSuccess,i=e.onError,a=OU(t,n);a.onerror=i,a.onload=r,document.head.insertBefore(a,document.head.firstElementChild)}function Jme(e){var t=e.sdkBaseUrl,n=e.environment,r=Kme(e,["sdkBaseUrl","environment"]),i=t||ege(n),a=r,s=Object.keys(a).filter(function(u){return typeof a[u]<"u"&&a[u]!==null&&a[u]!==""}).reduce(function(u,h){var d=a[h].toString();return h=Qme(h),h.substring(0,4)==="data"||h==="crossorigin"?u.attributes[h]=d:u.queryParams[h]=d,u},{queryParams:{},attributes:{}}),l=s.queryParams,c=s.attributes;return l["merchant-id"]&&l["merchant-id"].indexOf(",")!==-1&&(c["data-merchant-id"]=l["merchant-id"],l["merchant-id"]="*"),{url:"".concat(i,"?").concat(Zme(l)),attributes:c}}function Qme(e){var t=function(n,r){return(r?"-":"")+n.toLowerCase()};return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,t)}function Zme(e){var t="";return Object.keys(e).forEach(function(n){t.length!==0&&(t+="&"),t+=n+"="+e[n]}),t}function ege(e){return e==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function OU(e,t){t===void 0&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach(function(r){n.setAttribute(r,t[r]),r==="data-csp-nonce"&&n.setAttribute("nonce",t["data-csp-nonce"])}),n}function tge(e,t){if(t===void 0&&(t=Promise),IU(e,t),typeof document>"u")return t.resolve(null);var n=Jme(e),r=n.url,i=n.attributes,a=i["data-namespace"]||"paypal",s=EO(a);return i["data-js-sdk-library"]||(i["data-js-sdk-library"]="paypal-js"),Yme(r,i)&&s?t.resolve(s):nge({url:r,attributes:i},t).then(function(){var l=EO(a);if(l)return l;throw new Error("The window.".concat(a," global variable is not available."))})}function nge(e,t){t===void 0&&(t=Promise),IU(e,t);var n=e.url,r=e.attributes;if(typeof n!="string"||n.length===0)throw new Error("Invalid url.");if(typeof r<"u"&&typeof r!="object")throw new Error("Expected attributes to be an object.");return new t(function(i,a){if(typeof document>"u")return i();Xme({url:n,attributes:r,onSuccess:function(){return i()},onError:function(){var s=new Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return a(s)}})})}function EO(e){return window[e]}function IU(e,t){if(typeof e!="object"||e===null)throw new Error("Expected an options object.");var n=e.environment;if(n&&n!=="production"&&n!=="sandbox")throw new Error('The `environment` option must be either "production" or "sandbox".');if(typeof t<"u"&&typeof t!="function")throw new Error("Expected PromisePonyfill to be a function.")}var rge=function(e){var t,n=e.options,r=n===void 0?{clientId:"test"}:n,i=e.children,a=e.deferLoading,s=a===void 0?!1:a,l=g.useReducer(Wme,{options:ln(ln({},r),(t={},t[Qo.DATA_JS_SDK_LIBRARY]=Qo.DATA_LIBRARY_VALUE,t[Qo.DATA_SDK_INTEGRATION_SOURCE]=Qo.DATA_LIBRARY_VALUE,t[Mf]="".concat(kU(r)),t)),loadingStatus:s?wr.INITIAL:wr.PENDING}),c=l[0],u=l[1];return g.useEffect(function(){if(s===!1&&c.loadingStatus===wr.INITIAL)return u({type:io.LOADING_STATUS,value:wr.PENDING});if(c.loadingStatus===wr.PENDING){var h=!0;return tge(c.options).then(function(){h&&u({type:io.LOADING_STATUS,value:wr.RESOLVED})}).catch(function(d){console.error("".concat(Lme," ").concat(d)),h&&u({type:io.LOADING_STATUS,value:{state:wr.REJECTED,message:String(d)}})}),function(){h=!1}}},[c.options,s,c.loadingStatus]),D.createElement(TU.Provider,{value:ln(ln({},c),{dispatch:u})},i)};function kO(){}g.createContext({cardFieldsForm:null,fields:{},registerField:kO,unregisterField:kO});const ige=()=>{const{t:e,i18n:t}=Le(),{user:n,loading:r,refetch:i}=gA(),[a,s]=g.useState(null),l=zn(),{balance:c,monthlyCredits:u}=SU(),h=(n==null?void 0:n.plan)||"free",d=(n==null?void 0:n.cancel_at_period_end)===!0,f=async(y,b)=>{l(`/payment/success?plan=${b}&subscription_id=${y}`)},p=async()=>
601{if(!(!n||!window.confirm(e("billing.cancelConfirm")))){s("cancel");try{const{data:b,error:w}=await X.functions.invoke("paypal-cancel-subscription",{body:{}});if(w)throw w;Oe.success((b==null?void 0:b.message)||e("billing.cancelling")),i()}catch(b){console.error("Cancel error:",b),Oe.error(b.message||"Failed to cancel subscription")}finally{s(null)}}},v=[{key:"free",name:e("billing.free"),price:Hm.free,description:e("billing.plans.getStarted"),credits:az,isCurrent:h==="free"},{key:"basic",name:e("billing.basic"),price:Hm.basic,description:e("billing.plans.forGrowing"),credits:19,isCurrent:h==="basic",planId:Tg.basic_monthly},{key:"visible",name:e("billing.visible"),price:Hm.visible,description:e("billing.plans.stayVisible"),credits:54,popular:!0,isCurrent:h==="visible",planId:Tg.visible_monthly},{key:"always",name:e("billing.always"),price:Hm.always,description:e("billing.plans.maxVisibility"),credits:137,isCurrent:h==="always",planId:Tg.always_monthly}],m=[e("billing.plans.feature1"),e("billing.plans.feature2"),e("billing.plans.feature3"),e("billing.plans.feature4")];return r?o.jsx("div",{className:"flex items-center justify-center py-12",children:o.jsx(Ze,{className:"w-8 h-8 animate-spin text-primary"})}):o.jsx(rge,{options:{clientId:Jfe,vault:!0,intent:"subscription",dataNamespace:"paypal_subs"},children:o.jsxs("div",{className:"space-y-6 min-w-0 max-w-full",children:[o.jsxs("div",{children:[o.jsxs("h2",{className:"text-xl font-semibold flex items-center gap-2",children:[o.jsx(kN,{className:"w-5 h-5"}),e("billing.plans.title")]}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:e("billing.plans.subtitle")})]}),d&&o.jsxs("div",{className:"flex items-center gap-3 p-4 rounded-lg border border-yellow-300 bg-yellow-50 dark:bg-yellow-950/20",children:[o.jsx(_l,{className:"w-5 h-5 text-yellow-600 flex-shrink-0"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium",children:e("billing.plans.cancelPending")}),o.jsx("p",{className:"text-xs text-muted-foreground",children:e("billing.plans.cancelPendingDesc",{plan:h,date:n!=null&&n.billing_period_end?new Date(n.billing_period_end).toLocaleDateString(t.language):""})})]})]}),o.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:v.map((y,b)=>o.jsxs(Q.div,{className:`relative rounded-xl border-2 p-5 bg-card min-w-0 ${y.isCurrent?"border-primary ring-2 ring-primary/20":y.popular?"border-primary/50":"border-border"}`,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:b*.1},children:[y.isCurrent&&o.jsx("div",{className:"absolute -top-3 left-4",children:o.jsx("span",{className:"px-3 py-1 bg-primary text-primary-foreground text-xs font-bold rounded-full",children:e("billing.plans.current")})}),y.popular&&!y.isCurrent&&o.jsx("div",{className:"absolute -top-3 left-4",children:o.jsx("span",{className:"px-3 py-1 bg-gradient-to-r from-primary to-secondary text-primary-foreground text-xs font-bold rounded-full",children:e("billing.plans.popular")})}),o.jsxs("div",{className:"mb-4 pt-2",children:[o.jsx("h3",{className:"text-lg font-semibold",children:y.name}),o.jsxs("div",{className:"flex items-baseline gap-1 mt-2",children:[o.jsx("span",{className:"text-2xl font-bold",children:y.price===0?e("billing.free"):`$${y.price}`}),y.price>0&&o.jsxs("span",{className:"text-muted-foreground text-sm",children:["/",e("billing.plans.mo")]})]}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:y.description})]}),o.jsxs("ul",{className:"space-y-2 mb-5",children:[o.jsxs("li",{className:"flex items-center gap-2",children:[o.jsx(ft,{className:"w-4 h-4 text-primary flex-shrink-0"}),o.jsxs("span",{className:"text-sm",children:[y.credits," ",y.key==="free"?`${e("billing.packs.credits")} (${e("billing.plans.starterBonus")})`:e("billing.plans.creditsMonth")]})]}),o.jsxs("li",{className:"flex items-center gap-2",children:[o.jsx(ft,{className:"w-4 h-4 text-primary flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:e("billing.plans.whatsappComm")})]}),o.jsxs("li",{className:"flex items-center gap-2",children:[o.jsx(ft,{className:"w-4 h-4 text-primary flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:e("billing.plans.igPublishing")})]})]}),y.key==="free"?o.jsx(K,{variant:"outline",className:"w-full",disabled:y.isCurrent,children:y.isCurrent?e("billing.currentPlan"):e("billing.free")}):y.isCurrent?o.jsxs(K,{variant:"outline",className:"w-full",disabled:a==="cancel"||d,onClick:p,children:[a==="c
601ancel"&&o.jsx(Ze,{className:"w-4 h-4 animate-spin me-2"}),e(d?"billing.plans.cancellationPending":"billing.plans.cancel")]}):y.planId?o.jsx("div",{className:"paypal-button-container w-full min-w-0",dir:"ltr",children:o.jsx(bA,{style:{shape:"pill",color:"gold",layout:"vertical",label:"subscribe"},createSubscription:(w,x)=>x.subscription.create({plan_id:y.planId,custom_id:(n==null?void 0:n.id)||""}),onApprove:async w=>{w.subscriptionID&&await f(w.subscriptionID,y.key)},onError:w=>{console.error("PayPal error:",w),Oe.error("Payment failed. Please try again.")}})}):o.jsx(K,{variant:"outline",className:"w-full",disabled:!0,children:e("billing.plans.comingSoon")})]},y.key))}),n&&o.jsxs("div",{className:"rounded-lg border bg-muted/50 p-4 space-y-3",children:[o.jsx("h4",{className:"font-medium",children:e("billing.creditBalance")}),o.jsxs("div",{className:"flex items-center justify-between text-sm",children:[o.jsx("span",{className:"text-muted-foreground",children:e("billing.plans.availableCredits")}),o.jsx("span",{className:"font-semibold text-lg",children:c.toFixed(1)})]}),u>0&&o.jsx("p",{className:"text-xs text-muted-foreground",children:e("billing.plans.creditsWithPlan",{credits:u})})]}),o.jsxs("div",{className:"rounded-lg border bg-muted/50 p-4",children:[o.jsx("h4",{className:"font-medium mb-3",children:e("billing.plans.allPlansInclude")}),o.jsx("div",{className:"flex flex-wrap gap-3",children:m.map((y,b)=>o.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[o.jsx(ft,{className:"w-4 h-4 text-primary"}),o.jsx("span",{children:y})]},b))})]})]})})},age={free:"Free",basic:"Basic",visible:"Visible",always:"Always Visible"},sge=()=>{var x,S;const{t:e,i18n:t}=Le(),r=((x=t.language)==null?void 0:x.startsWith("he"))||((S=t.language)==null?void 0:S.startsWith("ar"))?tr:Kr,{balance:i,monthlyCredits:a,plan:s,subscriptionStatus:l,recentUsage:c,loading:u,refetch:h}=SU(),{user:d,loading:f}=gA(),[p,v]=cs();g.useEffect(()=>{window.scrollTo({top:0,left:0}),document.body.style.overflow="",document.body.style.paddingRight="",document.body.style.pointerEvents="",document.documentElement.style.overflow=""},[]),g.useEffect(()=>{const j=p.get("topup");if(j){if(j==="success"){Oe.success(e("billing.packs.successToast","Payment successful! Credits will appear shortly."));let N=0;const _=setInterval(()=>{h(),N+=1,N>=6&&clearInterval(_)},2500);return p.delete("topup"),v(p,{replace:!0}),()=>clearInterval(_)}j==="cancelled"&&(Oe.info(e("billing.packs.cancelledToast","Payment cancelled.")),p.delete("topup"),v(p,{replace:!0}))}},[p]);const m=(d==null?void 0:d.plan)||"free",y=(d==null?void 0:d.cancel_at_period_end)===!0,b=u||f,w=y?e("billing.cancelling"):l==="active"?e("billing.active"):l==="none"?e("billing.none"):l;return b?o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Tl,{}),o.jsx("div",{className:"flex items-center justify-center pt-32",children:o.jsx(Ze,{className:"w-8 h-8 animate-spin text-primary"})})]}):o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Tl,{}),o.jsx("div",{className:"pt-20 pb-16",children:o.jsxs("div",{className:"container mx-auto px-4 sm:px-6 max-w-4xl",children:[o.jsxs("div",{className:"mb-8",children:[o.jsx(K,{variant:"ghost",size:"sm",asChild:!0,className:"mb-4",children:o.jsxs(se,{to:"/",children:[o.jsx(r,{className:"w-4 h-4 me-2"}),e("billing.backToHome")]})}),o.jsx("h1",{className:"text-2xl font-bold",children:e("billing.title")})]}),o.jsxs("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4 mb-8",children:[o.jsxs("div",{className:"rounded-xl border bg-card p-5 space-y-3",children:[o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:[o.jsx(e4,{className:"w-4 h-4"}),e("billing.creditBalance")]}),o.jsx("div",{className:"text-3xl font-bold",children:i.toFixed(1)}),o.jsx("p",{className:"text-xs text-muted-foreground",children:e("billing.creditsRemaining")}),a>0&&o.jsxs(o.Fragment,{children:[o.jsx(Df,{value:Math.min(i/a*100,100),className:"h-2"}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:[a," ",e("billing.creditsPerMonth")]})]})]}),o.jsxs("div",{className:"rounded-xl border bg-card p-5 space-y-3",children:[o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:[o.jsx(kN,{className:"w-4 h-4"}),e("billing.plan")]}),o.jsx("div",{className:"text-3xl font-bold capitalize",children:e(`b
601illing.${m}`,age[m]||m)}),o.jsx("div",{className:"flex items-center gap-2",children:o.jsx("span",{className:`inline-block px-2 py-0.5 text-xs rounded-full ${l==="active"?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":y?"bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400":"bg-muted text-muted-foreground"}`,children:w})}),(d==null?void 0:d.billing_period_end)&&o.jsxs("p",{className:"text-xs text-muted-foreground",children:[e(y?"billing.endsOn":"billing.renewsOn")," ",new Date(d.billing_period_end).toLocaleDateString(t.language)]})]}),o.jsxs("div",{className:"rounded-xl border bg-card p-5 space-y-3 sm:col-span-2 lg:col-span-1",children:[o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:[o.jsx(ON,{className:"w-4 h-4"}),e("billing.usage")]}),o.jsxs("div",{className:"space-y-3",children:[o.jsx("div",{className:"text-3xl font-bold",children:i.toFixed(1)}),o.jsx("p",{className:"text-sm text-muted-foreground",children:e("billing.creditsRemaining")}),a>0&&o.jsxs(o.Fragment,{children:[o.jsx(Df,{value:Math.min(i/a*100,100),className:"h-2"}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:[a," ",e("billing.creditsPerMonth")]})]})]})]})]}),y&&o.jsxs("div",{className:"flex items-center gap-3 p-4 rounded-lg border border-yellow-300 bg-yellow-50 dark:bg-yellow-950/20 mb-6",children:[o.jsx(_l,{className:"w-5 h-5 text-yellow-600 flex-shrink-0"}),o.jsxs("p",{className:"text-sm",children:[e("billing.cancelling")," - ",e("billing.endsOn")," ",d!=null&&d.billing_period_end?new Date(d.billing_period_end).toLocaleDateString(t.language):""]})]}),o.jsxs("div",{className:"rounded-xl border bg-card overflow-hidden mb-6",children:[o.jsxs("div",{className:"flex items-center gap-2 p-5 border-b",children:[o.jsx(Op,{className:"w-4 h-4 text-muted-foreground"}),o.jsx("h2",{className:"font-semibold",children:e("billing.recentActivity")})]}),c.length>0?o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b bg-muted/50",children:[o.jsx("th",{className:"text-start p-3 font-medium text-muted-foreground",children:e("billing.date")}),o.jsx("th",{className:"text-start p-3 font-medium text-muted-foreground",children:e("billing.type")}),o.jsx("th",{className:"text-end p-3 font-medium text-muted-foreground",children:e("billing.creditsCharged")})]})}),o.jsx("tbody",{children:c.map((j,N)=>o.jsxs("tr",{className:"border-b last:border-0",children:[o.jsx("td",{className:"p-3",children:new Date(j.date).toLocaleDateString(t.language)}),o.jsx("td",{className:"p-3 capitalize",children:j.content_type}),o.jsxs("td",{className:"p-3 text-end font-mono",children:["-",j.credits_charged.toFixed(1)]})]},N))})]})}):o.jsx("div",{className:"p-8 text-center text-muted-foreground text-sm",children:e("billing.noActivity")})]}),o.jsxs("div",{className:"space-y-6 mb-6",children:[o.jsx(ige,{}),o.jsx(Mme,{}),o.jsx($me,{})]})]})}),o.jsx(wd,{})]})},oge="https://wa.me/14155238886?text=Hi",TO=()=>{var v,m;const e=zn(),[t]=cs(),{user:n,refetch:r}=gA(),[i,a]=g.useState(0),[s,l]=g.useState(!1),{t:c,i18n:u}=Le(),d=((v=u.language)==null?void 0:v.startsWith("he"))||((m=u.language)==null?void 0:m.startsWith("ar"))?Kr:tr,f=t.get("status"),p=f==="failed"||f==="cancelled";return g.useEffect(()=>{if(p||s||i>10)return;const y=setTimeout(async()=>{await r(),a(b=>b+1)},2e3);return()=>clearTimeout(y)},[i,s,r,p]),g.useEffect(()=>{p||n&&n.onboarding_completed===!1&&n.plan&&n.plan!=="free"&&e("/onboarding/web?paid=1",{replace:!0})},[n,p,e]),g.useEffect(()=>{n&&n.plan&&n.plan!=="free"&&!s&&(l(!0),Cl("purchase",{plan:n.plan,currency:"USD"}))},[n,s]),g.useEffect(()=>{p&&Cl("payment_failed",{status:f||"unknown"})},[p,f]),o.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:o.jsx(Q.div,{className:"max-w-md w-full text-center space-y-6",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.5},children:p?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"w-20 h-20 mx-auto rounded-full bg-destructive/10 flex items-center justify-center",children:o.jsx(Rp,{className:"w-10 h-10 text-destructive"})}),o.jsx("h1",{className:"text-2xl font-bold",children:c("paymentSuccess.failedTitle")}),o.jsx("p",{className:"text-muted-foreground",children:c("paymentSuccess.failedMessage")}),o.jsxs("div",{className:"flex flex-col gap-3 pt-4",children:[o.jsxs(K,{size:"lg",onClick:()=>e("/billing"),className:"gap-2",children:[c("paymentSuccess.tryAgain"),o.jsx(d,{className:"w-4 h-4"})]}),o.jsx(K,{variant:"outline",size:"lg",onClick:()=>e("/contact"),children:c("paymentSuccess.contactSupport")})]})]}):s?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"w-20 h-20 mx-auto rounded-full bg-primary/10 flex items-center justify-center",children:o.jsx(jl,{className:"w-10 h-10 text-primary"})}),o.jsxs("h1",{className:"text-2xl font-bold",children:[c("paymentSuccess.title")," ð"]}),o.jsx("p",{className:"text-muted-foreground",children:c("paymentSuccess.planActive",{plan:n==null?void 0:n.plan})}),o.jsxs("div",{className:"flex flex-col gap-3 pt-4",children:[o.jsxs(K,{size:"lg",onClick:()=>window.open(oge,"_blank"),className:"gap-2",children:[c("paymentSuccess.startCreating"),o.jsx(d,{className:"w-4 h-4"})]}),o.jsx(K,{variant:"outline",size:"lg",onClick:()=>e("/billing"),children:c("paymentSuccess.viewBilling")})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"w-12 h-12 mx-auto animate-spin text-primary"}),o.jsx("h1",{className:"text-2xl font-bold",children:c("paymentSuccess.activating")}),o.jsx("p",{className:"text-muted-foreground",children:c("paymentSuccess.pleaseWait")}),i>5&&o.jsx("p",{className:"text-sm text-muted-foreground",children:c("paymentSuccess.takingLonger")}),o.jsx(K,{variant:"ghost",onClick:()=>e("/billing"),className:"mt-4",children:c("paymentSuccess.skipToBilling")})]})})})};var lge=Object.defineProperty,cge=Object.defineProperties,uge=Object.getOwnPropertyDescriptors,Rv=Object.getOwnPropertySymbols,RU=Object.prototype.hasOwnProperty,DU=Object.prototype.propertyIsEnumerable,OO=(e,t,n)=>t in e?lge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dge=(e,t)=>
601{for(var n in t||(t={}))RU.call(t,n)&&OO(e,n,t[n]);if(Rv)for(var n of Rv(t))DU.call(t,n)&&OO(e,n,t[n]);return e},hge=(e,t)=>cge(e,uge(t)),fge=(e,t)=>{var n={};for(var r in e)RU.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Rv)for(var r of Rv(e))t.indexOf(r)<0&&DU.call(e,r)&&(n[r]=e[r]);return n};function pge(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function mge(e){let t=g.useRef();return g.useEffect(()=>{t.current=e}),t.current}var gge=18,MU=40,vge=`${MU}px`,yge=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function bge({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,a]=g.useState(!1),[s,l]=g.useState(!1),[c,u]=g.useState(!1),h=g.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&i&&s,[i,s,n]),d=g.useCallback(()=>{let f=e.current,p=t.current;if(!f||!p||c||n==="none")return;let v=f,m=v.getBoundingClientRect().left+v.offsetWidth,y=v.getBoundingClientRect().top+v.offsetHeight/2,b=m-gge,w=y;document.querySelectorAll(yge).length===0&&document.elementFromPoint(b,w)===f||(a(!0),u(!0))},[e,t,c,n]);return g.useEffect(()=>{let f=e.current;if(!f||n==="none")return;function p(){let m=window.innerWidth-f.getBoundingClientRect().right;l(m>=MU)}p();let v=setInterval(p,1e3);return()=>{clearInterval(v)}},[e,n]),g.useEffect(()=>{let f=r||document.activeElement===t.current;if(n==="none"||!f)return;let p=setTimeout(d,0),v=setTimeout(d,2e3),m=setTimeout(d,5e3),y=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(p),clearTimeout(v),clearTimeout(m),clearTimeout(y)}},[t,r,n,d]),{hasPWMBadge:i,willPushPWMBadge:h,PWM_BADGE_SPACE_WIDTH:vge}}var $U=g.createContext({}),LU=g.forwardRef((e,t)=>{var n=e,{value:r,onChange:i,maxLength:a,textAlign:s="left",pattern:l,placeholder:c,inputMode:u="numeric",onComplete:h,pushPasswordManagerStrategy:d="increase-width",pasteTransformer:f,containerClassName:p,noScriptCSSFallback:v=xge,render:m,children:y}=n,b=fge(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,x,S,j,N;let[_,P]=g.useState(typeof b.defaultValue=="string"?b.defaultValue:""),A=r??_,k=mge(A),C=g.useCallback(te=>{i==null||i(te),P(te)},[i]),E=g.useMemo(()=>l?typeof l=="string"?new RegExp(l):l:null,[l]),I=g.useRef(null),O=g.useRef(null),M=g.useRef({value:A,onChange:C,isIOS:typeof window<"u"&&((x=(w=window==null?void 0:window.CSS)==null?void 0:w.supports)==null?void 0:x.call(w,"-webkit-touch-callout","none"))}),$=g.useRef({prev:[(S=I.current)==null?void 0:S.selectionStart,(j=I.current)==null?void 0:j.selectionEnd,(N=I.current)==null?void 0:N.selectionDirection]});g.useImperativeHandle(t,()=>I.current,[]),g.useEffect(()=>{let te=I.current,re=O.current;if(!te||!re)return;M.current.value!==te.value&&M.current.onChange(te.value),$.current.prev=[te.selectionStart,te.selectionEnd,te.selectionDirection];function _e(){if(document.activeElement!==te){B(null),Z(null);return}let Ne=te.selectionStart,yt=te.selectionEnd,bt=te.selectionDirection,qe=te.maxLength,at=te.value,Qe=$.current.prev,Te=-1,Et=-1,dn;if(at.length!==0&&Ne!==null&&yt!==null){let ms=Ne===yt,Yt=Ne===at.length&&at.length<qe;if(ms&&!Yt){let rn=Ne;if(rn===0)Te=0,Et=1,dn="forward";else if(rn===qe)Te=rn-1,Et=rn,dn="backward";else if(qe>1&&at.length>1){let jn=0;if(Qe[0]!==null&&Qe[1]!==null){dn=rn<Qe[1]?"backward":"forward";let Xl=Qe[0]===Qe[1]&&Qe[0]<qe;dn==="backward"&&!Xl&&(jn=-1)}Te=jn+rn,Et=jn+rn+1}}Te!==-1&&Et!==-1&&Te!==Et&&I.current.setSelectionRange(Te,Et,dn)}let Ta=Te!==-1?Te:Ne,bi=Et!==-1?Et:yt,Sn=dn??bt;B(Ta),Z(bi),$.current.prev=[Ta,bi,Sn]}if(document.addEventListener("selectionchange",_e,{capture:!0}),_e(),document.activeElement===te&&z(!0),!document.getElementById("input-otp-style")){let Ne=document.createElement("style");if(Ne.id="input-otp-style",document.head.appendChild(Ne),Ne.sheet){let yt="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";nh(Ne.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),nh(Ne.sheet,`[data-input-otp]:autofill { ${yt} }`),nh(Ne.sheet,`[data-input-otp]:-webkit-autofill { ${yt} }
601`),nh(Ne.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),nh(Ne.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Ve=()=>{re&&re.style.setProperty("--root-height",`${te.clientHeight}px`)};Ve();let Ge=new ResizeObserver(Ve);return Ge.observe(te),()=>{document.removeEventListener("selectionchange",_e,{capture:!0}),Ge.disconnect()}},[]);let[L,T]=g.useState(!1),[R,z]=g.useState(!1),[F,B]=g.useState(null),[W,Z]=g.useState(null);g.useEffect(()=>{pge(()=>{var te,re,_e,Ve;(te=I.current)==null||te.dispatchEvent(new Event("input"));let Ge=(re=I.current)==null?void 0:re.selectionStart,Ne=(_e=I.current)==null?void 0:_e.selectionEnd,yt=(Ve=I.current)==null?void 0:Ve.selectionDirection;Ge!==null&&Ne!==null&&(B(Ge),Z(Ne),$.current.prev=[Ge,Ne,yt])})},[A,R]),g.useEffect(()=>{k!==void 0&&A!==k&&k.length<a&&A.length===a&&(h==null||h(A))},[a,h,k,A]);let fe=bge({containerRef:O,inputRef:I,pushPasswordManagerStrategy:d,isFocused:R}),we=g.useCallback(te=>{let re=te.currentTarget.value.slice(0,a);if(re.length>0&&E&&!E.test(re)){te.preventDefault();return}typeof k=="string"&&re.length<k.length&&document.dispatchEvent(new Event("selectionchange")),C(re)},[a,C,k,E]),ee=g.useCallback(()=>{var te;if(I.current){let re=Math.min(I.current.value.length,a-1),_e=I.current.value.length;(te=I.current)==null||te.setSelectionRange(re,_e),B(re),Z(_e)}z(!0)},[a]),J=g.useCallback(te=>{var re,_e;let Ve=I.current;if(!f&&(!M.current.isIOS||!te.clipboardData||!Ve))return;let Ge=te.clipboardData.getData("text/plain"),Ne=f?f(Ge):Ge;te.preventDefault();let yt=(re=I.current)==null?void 0:re.selectionStart,bt=(_e=I.current)==null?void 0:_e.selectionEnd,qe=(yt!==bt?A.slice(0,yt)+Ne+A.slice(bt):A.slice(0,yt)+Ne+A.slice(yt)).slice(0,a);if(qe.length>0&&E&&!E.test(qe))return;Ve.value=qe,C(qe);let at=Math.min(qe.length,a-1),Qe=qe.length;Ve.setSelectionRange(at,Qe),B(at),Z(Qe)},[a,C,E,A]),U=g.useMemo(()=>({position:"relative",cursor:b.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[b.disabled]),Y=g.useMemo(()=>({position:"absolute",inset:0,width:fe.willPushPWMBadge?`calc(100% + ${fe.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:fe.willPushPWMBadge?`inset(0 ${fe.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:s,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[fe.PWM_BADGE_SPACE_WIDTH,fe.willPushPWMBadge,s]),ae=g.useMemo(()=>g.createElement("input",hge(dge({autoComplete:b.autoComplete||"one-time-code"},b),{"data-input-otp":!0,"data-input-otp-placeholder-shown":A.length===0||void 0,"data-input-otp-mss":F,"data-input-otp-mse":W,inputMode:u,pattern:E==null?void 0:E.source,"aria-placeholder":c,style:Y,maxLength:a,value:A,ref:I,onPaste:te=>{var re;J(te),(re=b.onPaste)==null||re.call(b,te)},onChange:we,onMouseOver:te=>{var re;T(!0),(re=b.onMouseOver)==null||re.call(b,te)},onMouseLeave:te=>{var re;T(!1),(re=b.onMouseLeave)==null||re.call(b,te)},onFocus:te=>{var re;ee(),(re=b.onFocus)==null||re.call(b,te)},onBlur:te=>{var re;z(!1),(re=b.onBlur)==null||re.call(b,te)}})),[we,ee,J,u,Y,a,W,F,b,E==null?void 0:E.source,A]),q=g.useMemo(()=>({slots:Array.from({length:a}).map((te,re)=>{var _e;let Ve=R&&F!==null&&W!==null&&(F===W&&re===F||re>=F&&re<W),Ge=A[re]!==void 0?A[re]:null,Ne=A[0]!==void 0?null:(_e=c==null?void 0:c[re])!=null?_e:null;return{char:Ge,placeholderChar:Ne,isActive:Ve,hasFakeCaret:Ve&&Ge===null}}),isFocused:R,isHovering:!b.disabled&&L}),[R,L,a,W,F,b.disabled,A]),Pe=g.useMemo(()=>m?m(q):g.createElement($U.Provider,{value:q},y),[y,q,m]);return g.createElement(g.Fragment,null,v!==null&&g.createElement("noscript",null,g.createElement("style",null,v)),g.createElement("div",{ref:O,"data-input-otp-container":!0,style:U,className:p},Pe,g.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ae)))});LU.displayName="Input";function nh(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var xge=` 602[data-input-otp] { 603 --nojs-bg: white !important; 604 --nojs-fg: black !important; 605 606 background-color: var(--nojs-bg) !important; 607 color: var(--nojs-fg) !important; 608 caret-color: var(--nojs-fg) !important; 609 letter-spacing: .25em !important; 610 text-align: center !important; 611 border: 1px solid var(--nojs-fg) !important; 612 border-radius: 4px !important; 613 width: 100% !important; 614} 615@media (prefers-color-scheme: dark) { 616 [data-input-otp] { 617 --nojs-bg: black !important; 618 --nojs-fg: white !important; 619 } 620}`;const VU=g.forwardRef(({className:e,containerClassName:t,...n},r)=>o.jsx(LU,{ref:r,containerClassName:oe("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:oe("disabled:cursor-not-allowed",e),...n}));VU.displayName="InputOTP";const FU=g.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:oe("flex items-center",e),...t}));FU.displayName="InputOTPGroup";const Vo=g.forwardRef(({index:e,className:t,...n},r)=>{var c;const i=g.useContext($U),{char:a,hasFakeCaret:s,isActive:l}=((c=i==null?void 0:i.slots)==null?void 0:c[e])??{};return o.jsxs("div",{ref:r,className:oe("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"z-10 ring-2 ring-ring ring-offset-background",t),...n,children:[a,s&&o.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:o.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})});Vo.displayName="InputOTPSlot";const wge=g.forwardRef(({...e},t)=>o.jsx("div",{ref:t,role:"separator",...e,children:o.jsx(m9,{})}));wge.displayName="InputOTPSeparator";async function ow(e,t="Request failed"){if(e&&typeof e=="object"&&"context"in e){const n=e.context;if(n){try{const r=await n.clone().json(),i=typeof r.error=="string"?r.error:null,a=typeof r.message=="string"?r.message:null;if(i)return i;if(a)return a}catch{}try{const r=await n.clone().text();if(r)return r}catch{}}}return e instanceof Error&&e.message?e.message:t}async function Sge(e){const{data:{session:t},error:n}=await X.auth.getSession();if(n||!t)throw new Error("You must be logged in to seed onboarding content");const r=await fetch("https://hhzqlaygxohfpedujlsm.supabase.co/functions/v1/n8n-seed-onboarding-content",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.access_token}`},body:JSON.stringify({images:e.images,image_urls:e.image_urls,format:e.format,topic:e.topic,work_item_id:e.work_item_id})}),i=await r.json();if(!r.ok)throw new Error(i.message||"Failed to seed onboarding content");return i}async function jge(e){var a;const{data:{session:t},error:n}=await X.auth.getSession();if(n||!t)throw new Error("You must be logged in to create a post");const r=await fetch("https://hhzqlaygxohfpedujlsm.supabase.co/functions/v1/n8n-web-create-post",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.access_token}`},body:JSON.stringify({topic:e.topic,images:e.images,platforms:e.platforms||{instagram_carousel:!0,instagram_reel:!0},language:e.language||((a=navigator.language)==null?void 0:a.split("-")[0])||"en",auto_publish:!1})}),i=await r.json();if(!r.ok){if(i.error_code==="QUOTA_EXCEEDED"||i.limit_reached){const s=new Error(i.error||"You have reached your monthly limit. Upgrade to continue.");throw s.limit_reached=!0,s.required_plan=i.required_plan,s.current_used=i.current_used,s.max_limit=i.max_limit,s}if(i.error_code==="DUPLICATE_SUBMISSION"){const s=new Error(i.error||"A post is already being generated.");throw s.duplicate=!0,s.active_work_item_id=i.active_work_item_id,s}throw new Error(i.error||"Failed to create post")}return i}async function _ge(e){const{data:{session:t},error:n}=await X.auth.getSession();if(n)throw n;if(!t)throw new Error("Not authenticated");const{data:r,error:i}=await X.functions.invoke("n8n-publish-work-item",{body:{work_item_id:e}});if(i)throw new Error(i.message||"Failed to publish");if(!(r!=null&&r.success))throw new Error((r==null?void 0:r.error)||(r==null?void 0:r.message)||"Failed to publish");return r}async function Nge(e){const{data:{session:t}}=await X.auth.getSession();if(!t)throw new Error("Not authenticated");const{data:n,error:r}=await X.functions.invoke("n8n-get-work-item",{body:{work_item_id:e}});if(r)throw new Error(r.message||"Failed to get work item status");return n}const xA="visible_web_onboarding_resume",Pge=24*60*60*1e3;function Age(e){return typeof e=="string"&&["business","generating","preview","whatsapp","instagram","done"].includes(e)}function Cge(e){return typeof e=="string"&&["idle","sending","sent","verifying","verified"].includes(e)}function Ege(){if(typeof window>"u")return null;try{const e=window.localStorage.getItem(xA);if(!e)return null;const t=JSON.parse(e);return!Age(t.step)||!Cge(t.otpState)||typeof t.updatedAt!="number"||Date.now()-t.updatedAt>Pge?(Ga(),null):{step:t.step,workItemId:typeof t.workItemId=="string"?t.workItemId:null,paywallOpen:t.paywallOpen===!0,waitingForSubscription:t.waitingForSubscription===!0,whatsappNumber:typeof t.whatsappNumber=="string"?t.whatsappNumber:"",countryCode:typeof t.countryCode=="string"?t.countryCode:"+1",otpState:t.otpState,updatedAt:t.updatedAt}}catch{return Ga(),null}}function IO(e){if(!(typeof window>"u"))try{window.localStorage.setItem(xA,JSON.stringify({...e,updatedAt:Date.now()}))}catch{}}function Ga(){if(!(typeof window>"u"))try{window.localStorage.removeItem(xA)}catch{}}function kge(e){return e.whatsappVerified?"done":e.hasReadyPreview?e.persistedStep==="whatsapp"?"whatsapp":e.persistedStep==="instagram"?"instagram":"preview":"generating"}
620function Tge({titleKey:e="createContent.generatingTitle",subtitleKey:t="createContent.generatingSubtitle",stepsKey:n="createContent.generatingSteps",estimatedSeconds:r=480,statusIntervalMs:i=3e4}={}){const{t:a}=Le(),[s,l]=g.useState(0),[c,u]=g.useState(0),h=a(n,{returnObjects:!0});g.useEffect(()=>{const p=setInterval(()=>{l(v=>v<h.length-1?v+1:v)},i);return()=>clearInterval(p)},[h.length]),g.useEffect(()=>{const p=setInterval(()=>u(v=>v+1),1e3);return()=>clearInterval(p)},[]);const d=p=>{const v=Math.floor(p/60),m=p%60;return`${v}:${m.toString().padStart(2,"0")}`},f=Math.min(95,c/r*95);return o.jsxs(Q.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"flex flex-col items-center justify-center py-8 px-4",children:[o.jsxs("div",{className:"relative w-20 h-20 mb-6",children:[o.jsx(Q.div,{className:"absolute inset-0 rounded-full border-4 border-primary/20",animate:{rotate:360},transition:{duration:2,repeat:1/0,ease:"linear"}}),o.jsx(Q.div,{className:"absolute inset-1 rounded-full border-4 border-transparent border-t-accent",animate:{rotate:-360},transition:{duration:1.5,repeat:1/0,ease:"linear"}}),o.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:o.jsx(Q.span,{className:"text-2xl",animate:{scale:[1,1.2,1]},transition:{duration:2,repeat:1/0},children:"â¨"})})]}),o.jsx("h3",{className:"text-lg font-bold text-foreground text-center leading-snug mb-1",children:a(e)}),o.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:a(t)}),o.jsx("div",{className:"w-full max-w-xs mb-6",children:o.jsx("div",{className:"h-1.5 w-full rounded-full bg-muted overflow-hidden",children:o.jsx(Q.div,{className:"h-full rounded-full bg-gradient-to-r from-primary to-accent",initial:{width:"0%"},animate:{width:`${f}%`},transition:{duration:1,ease:"easeOut"}})})}),o.jsx("div",{className:"h-8 flex items-center justify-center",children:o.jsx(Ul,{mode:"wait",children:o.jsx(Q.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.5},className:"text-sm text-foreground text-center",children:h[s]},s)})}),o.jsxs("p",{className:"text-xs text-muted-foreground mt-6",children:["â±ï¸ ",a("createContent.generatingElapsed"),": ",d(c)]})]},"generating-progress")}function Oge({images:e,caption:t,hashtags:n,businessName:r,isSubscribed:i,onPublish:a,onTryAgain:s,tryingAgain:l}){const{t:c,i18n:u}=Le(),h=u.language==="he",[d,f]=g.useState(0),p=e.length>0?e:[""],v=p.length,m=d*100/v,y=(r||"my_business").toLowerCase().replace(/\s+/g,"_").replace(/[^a-z0-9_\u0590-\u05FF\u0600-\u06FF\u00C0-\u024F]/g,"")||"my_business",b=()=>f(x=>Math.max(0,x-1)),w=()=>f(x=>Math.min(v-1,x+1));return o.jsxs("div",{className:"space-y-6",dir:h?"rtl":"ltr",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"text-4xl mb-2",children:"ð"}),o.jsx("h2",{className:"text-2xl font-extrabold tracking-tight",children:c("onboardingPreview.title",{defaultValue:"Your first post is ready"})}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:c("onboardingPreview.subtitle",{defaultValue:"Preview it like your followers will see it on Instagram."})})]}),o.jsxs("div",{className:"bg-background rounded-2xl border border-border overflow-hidden shadow-sm",children:[o.jsxs("div",{className:"flex items-center gap-3 p-3 border-b border-border",dir:"ltr",children:[o.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-purple-500 via-pink-500 to-orange-400 flex items-center justify-center text-white font-bold text-sm",children:(r||"M").charAt(0).toUpperCase()}),o.jsx("span",{className:"font-medium text-sm",children:y})]}),o.jsxs("div",{className:"relative bg-muted/30",children:[o.jsx("div",{className:"w-full overflow-hidden relative",children:o.jsx("div",{className:"flex transition-transform duration-300 ease-in-out",style:{transform:`translateX(-${m}%)`,width:`${v*100}%`},children:p.map((x,S)=>o.jsx("div",{className:"w-full flex-shrink-0 relative bg-foreground
620/5 flex items-center justify-center overflow-hidden",style:{maxHeight:"70svh"},children:x?o.jsx("img",{src:x,alt:`Slide ${S+1}`,className:"w-full h-auto max-h-[70svh] object-contain"}):o.jsx("div",{className:"aspect-square w-full flex items-center justify-center",children:o.jsx(kr,{className:"h-12 w-12 text-muted-foreground/40"})})},S))})}),v>1&&d>0&&o.jsx("button",{onClick:b,className:"absolute start-2 top-1/2 -translate-y-1/2 w-8 h-8 rounded-full bg-background/80 flex items-center justify-center shadow-md hover:bg-background","aria-label":"Previous slide",children:o.jsx(B3,{className:"w-5 h-5 rtl:rotate-180"})}),v>1&&d<v-1&&o.jsx("button",{onClick:w,className:"absolute end-2 top-1/2 -translate-y-1/2 w-8 h-8 rounded-full bg-background/80 flex items-center justify-center shadow-md hover:bg-background","aria-label":"Next slide",children:o.jsx(EN,{className:"w-5 h-5 rtl:rotate-180"})}),v>1&&o.jsx("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex gap-1.5",children:p.map((x,S)=>o.jsx("button",{onClick:()=>f(S),className:`w-2 h-2 rounded-full transition-all ${S===d?"bg-primary w-4":"bg-background/70"}`},S))})]}),o.jsxs("div",{className:"p-3 space-y-2",dir:"ltr",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx(q3,{className:"w-6 h-6 text-foreground"}),o.jsx(ld,{className:"w-6 h-6 text-foreground"}),o.jsx(Dp,{className:"w-6 h-6 text-foreground"})]}),o.jsx(F3,{className:"w-6 h-6 text-foreground"})]}),t&&o.jsxs("div",{className:"text-sm",dir:h?"rtl":"ltr",children:[o.jsx("span",{className:"font-semibold me-1",children:y}),o.jsx("span",{children:t})]}),n.length>0&&o.jsx("div",{className:"text-sm text-primary flex flex-wrap gap-1",children:n.map((x,S)=>o.jsx("span",{children:x.startsWith("#")?x:`#${x}`},S))})]})]}),o.jsxs("div",{className:"space-y-3",children:[!i&&o.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-xl bg-primary/5 border border-primary/20 text-sm",children:[o.jsx(ba,{className:"h-4 w-4 text-primary shrink-0"}),o.jsx("p",{className:"text-foreground",children:c("onboardingPreview.subscribeHint",{defaultValue:"Subscribe to publish this post and unlock unlimited automated content."})})]}),o.jsx(K,{onClick:a,className:"w-full h-14 text-base font-bold bg-green-500 hover:bg-green-600 text-white rounded-2xl shadow-lg shadow-green-500/25",size:"lg",children:i?c("onboardingPreview.publish",{defaultValue:"Publish now"}):c("onboardingPreview.publishLocked",{defaultValue:"Publish (subscribe first)"})}),o.jsxs(K,{onClick:s,variant:"outline",className:"w-full h-12 rounded-2xl",disabled:l,children:[o.jsx(Ha,{className:`h-4 w-4 me-2 ${l?"animate-spin":""}`}),l?c("onboardingPreview.regenerating",{defaultValue:"Generating a new version..."}):c("onboardingPreview.tryAgain",{defaultValue:"Try another version"})]})]})]})}const Xp=GP,Ige=KP,BU=g.forwardRef(({className:e,...t},n)=>o.jsx(Up,{ref:n,className:oe("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}));BU.displayName=Up.displayName;const Nd=g.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(Ige,{children:[o.jsx(BU,{}),o.jsxs(Wp,{ref:r,onOpenAutoFocus:i=>{i.preventDefault()},className:oe("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),...n,children:[t,o.jsxs(Nb,{className:"absolute right-4 top-4 roun
620ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[o.jsx(xa,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Nd.displayName=Wp.displayName;const Pd=({className:e,...t})=>o.jsx("div",{className:oe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Pd.displayName="DialogHeader";const Ad=g.forwardRef(({className:e,...t},n)=>o.jsx(qp,{ref:n,className:oe("text-lg font-semibold leading-none tracking-tight",e),...t}));Ad.displayName=qp.displayName;const zU=g.forwardRef(({className:e,...t},n)=>o.jsx(Hp,{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));zU.displayName=Hp.displayName;const Rge=[{key:"basic",price:19,paypalKey:"basic_monthly"},{key:"visible",price:49,paypalKey:"visible_monthly",highlight:!0},{key:"always",price:119,paypalKey:"always_monthly"}];function Dge({open:e,onClose:t,returnPath:n="/onboarding/web"}){const{t:r,i18n:i}=Le(),{toast:a}=Na(),s=i.language==="he",l=nz(),[c,u]=g.useState(null),h=g.useMemo(()=>l?{height:"100dvh",maxHeight:"100dvh"}:void 0,[l]),d=async y=>{u(y.key);try{const b=window.location.origin,w=`${b}${n}?paid=1`,x=`${b}${n}?paid=0`,{data:S,error:j}=await X.functions.invoke("paypal-create-subscription",{body:{plan_id:Tg[y.paypalKey],success_url:w,cancel_url:x}});if(j)throw j;if(!(S!=null&&S.url))throw new Error("No approval URL returned");window.location.href=S.url}catch(b){console.error("[paywall] subscribe error",b),a({variant:"destructive",title:r("paywall.subscribeError",{defaultValue:"Could not start subscription"}),description:b instanceof Error?b.message:"Unknown error"}),u(null)}},f=g.useMemo(()=>{if(typeof window>"u")return!1;if(new URLSearchParams(window.location.search).get("dev")==="1"){try{window.sessionStorage.setItem("lovable_dev_mode","1")}catch{}return!0}try{if(window.sessionStorage.getItem("lovable_dev_mode")==="1")return!0}catch{}return/lovable\.(app|dev)$|localhost|127\.0\.0\.1/.test(window.location.hostname)},[]),[p,v]=g.useState(!1),m=async()=>{console.log("[paywall][dev] simulate:start"),v(!0);try{const{data:{user:y}}=await X.auth.getUser();if(console.log("[paywall][dev] simulate:user",{userId:y==null?void 0:y.id}),!y)throw new Error("Not logged in");const{error:b}=await X.from("users").update({subscription_status:"active",plan:"visible",billing_period_end:new Date(Date.now()+30*24*60*60*1e3).toISOString()}).eq("id",y.id);if(b)throw b;console.log("[paywall][dev] simulate:db_updated -> redirect ?paid=1"),a({title:"Dev: subscription activated",description:"Skipping PayPal â flow will advance."});const w=new URL(window.location.href);w.searchParams.set("paid","1"),window.location.href=w.toString()}catch(y){console.error("[paywall][dev] simulate:error",y),a({variant:"destructive",title:"Dev bypass failed",description:y instanceof Error?y.message:"Unknown"}),v(!1)}};return o.jsx(Xp,{open:e,onOpenChange:y=>!y&&t(),children:o.jsx(Nd,{className:"w-full sm:w-full sm:max-w-2xl p-0 gap-0 overflow-hidden border-border/50 bg-background flex flex-col max-h-[100dvh] sm:max-h-[calc(100dvh-2rem)] left-0 right-0 top-0 bottom-0 translate-x-0 translate-y-0 rounded-none sm:rounded-lg sm:left-[50%] sm:right-auto sm:top-4 sm:bottom-auto sm:translate-x-[-50%] sm:translate-y-0",style:h,onPointerDownOutside:y=>y.preventDefault(),onOpenAutoFocus:y=>y.preventDefault(),dir:s?"rtl":"ltr",children:o.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto overscroll-contain touch-pan-y [-webkit-overflow-scrolling:touch]",style:{WebkitOverflowScrolling:"touch"},children:[o.jsx("button",{onClick:t,className:"absolute top-4 end-4 z-10 rounded-full p-2 hover:bg-muted transition-colors","aria-label":"Close",children:o.jsx(xa,{className:"h-4 w-4"})}),o.jsxs("div",{className:"px-6 pt-8 pb-6 bg-gradient-to-b from-primary/10 to-transparent text-center",children:[o.jsx("div",{className:"mx-auto w-14 h-14 rounded-2xl bg-primary text-primary-foreground flex items-center justify-center mb-4 shadow-lg shadow-primary/25",children:o.jsx(f9,{className:"h-7 w-7"})}),o.jsxs(Pd,{children:[o.jsx(Ad,{className:"text-2xl font-extrabold",children:r("paywall.title",{defaultValue:"Subscribe to publish"})}),o.jsx(zU,{className:"text-base mt-2",children:r("paywall.subtitle",{defaultValue:"Pick a plan to publish your post and unlock automated content on WhatsApp."})})]})]}),o.jsx("div",{className:"px-6 pb-6 grid sm:grid-cols-3 gap-3",children:Rge.map(y=>{const b=Qfe[y.key],w=c===y.key;return o.jsxs("div",{className:`rounded-2xl border p-4 flex flex-col gap-3 ${y.highlight?"border-primary ring-2 ring-primary/30 bg-primary/5 relative":"border-border bg-card"}`,children:[y.highlight&&o.jsx("span",{className:"absolute -top-2 start-1/2 -translate-x-1/2 px-2 py-0.5 rounded-full bg-primary text-primary-foreground text-[10px] font-bold uppercase tracking-wide",children:r("paywall.popular",{defaultValue:"Popular"})}),o.jsx("div",{className:"flex items-center justify-between",children:o.jsx("span",{className:"font-bold text-base",children:r(`billing.${y.key}`,{defaultValue:y.key})})}),o.jsxs("div",{className:"text-3xl font-extrabold",children:["$",y.price,o.jsxs("span",{className:"text-sm font-normal text-muted-foreground",children:["/",r("billing.plans.mo",{defaultValue:"mo"})]})]}),o.jsxs("ul",{className:"space-y-1.5 text-xs text-muted-foreground flex-1",children:[o.jsxs("li",{className:"flex items-center gap-1.5",children:[o.jsx(ft,{className:"h-3.5 w-3.5 text-green-600 shrink-0"}),b==null?void 0:b.monthly_credits," ",r("billing.plans.creditsMonth",{defaultValue:"credits / month"})]}),o.jsxs("li",{className:"flex items-center gap-1.5",children:[o.jsx(ft,{className:"h-3.5 w-3.5 text-green-600 shrink-0"}),r("paywall.featureWhatsapp",{defaultValue:"WhatsApp content creation"})]}),o.jsxs("li",{className:"flex items-center gap-1.5",children:[o.jsx(ft,{className:"h-3.5 w-3.5 text-green-600 shrink-0"}),r("paywall.featurePublish",{defaultValue:"Direct Instagram publishing"})]})]}),o.jsx(K,{onClick:()=>d(y),disabled:c!==null,className:`w-full ${y.highlight?"":"variant-outline"}`,variant:y.highlight?"default":"outline",children:w?o.jsx(Ze,{className:"h-4 w-4 animate-spin"}):r("paywall.subscribe",{defaultValue:"Subscribe"})})]},y.key)})}),f&&o.jsx("div",{className:"px-6 pb-4",children:o.jsx(K,{variant:"outline",className:"w-full border-dashed border-orange-500 text-orange-600 hover:bg-orange-50",onClick:m,disabled:p,children:p?o.jsx(Ze,{className:"h-4 w-4 animate-spin"}):"𧪠Dev: simulate paid (skip PayPal)"})}),o.jsx("p",{className:"px-6 pb-6 text-xs text-center text-muted-foreground",children:r("paywall.footnote",{defaultValue:"Cancel anytime. Secure checkout via PayPal."})})]})})})}const $e=(e,...t)=>{console.log(`[onboarding][${e}]`,...t)},vr=(e,...t)=>{console.warn(`[onboarding][${e}]`,...t)},ta=(e,...t)=>{console.error(`[onboarding][${e}]`,...t)},Mge="dbgwpuj6v",$ge="n8n_uploads";async function RO(e){const t=performance.now();try{$e("cloudinary:upload:start",{bytes:(e==null?void 0:e.length)??0});const n=new FormData;n.append("file",e),n.append("upload_preset",$ge),n.append("folder","viralpost/web/onboarding");const r=await fetch(`https://api.cloudinary.com/v1_1/${Mge}/image/upload`,{method:"POST",body:n});if(!r.ok)return ta("cloudinary:upload:fail",{status:r.status,ms:Math.round(performance.now()-t)}),null;const i=await r.json();return $e("cloudinary:upload:ok",{url:i.secure_url,ms:Math.round(performance.now()-t)}),i.secure_url||null}catch(n){return ta("cloudinary:upload:exception",n),null}}const Lge=[{code:"+1",country:"US/CA",flag:"ðºð¸"},{code:"+44",country:"UK",flag:"ð¬ð§"},{code:"+972",country:"IL",flag:"ð®ð±"},{code:"+61",country:"AU",flag:"ð¦ðº"},{code:"+49",country:"DE",flag:"ð©ðª"},{code:"+33",country:"FR",flag:"ð«ð·"},{code:"+34",country:"ES",flag:"ðªð¸"},{code:"+39",country:"IT",flag:"ð®ð¹"},{code:"+81",country:"JP",flag:"ð¯ðµ"},{code:"+91",country:"IN",flag:"ð®ð³"},{code:"+55",country:"BR",flag:"ð§ð·"},{code:"+52",country:"MX",flag:"ð²ð½"}],Vge=["food","beauty","retail","fitness","services","education","real_estate","tech","creator","other"],DO="14048263424",xs="visible_onboarding_workitem",Fge=()=>{const{user:e,profile:t,updateProfile:n,refreshProfile:r,loading:i}=Hi(),{toast:a}=Na(),{t:s,i18n:l}=Le(),c=zn(),[u,h]=cs(),d=l.language==="he",[f,p]=g.useState("business"),[v,m]=g.useState(!1),[y,b]=g.useState(null),w=g.useRef(!1),[x,S]=g.useState(""),[j,N]=g.useState(""),[_,P]=g.useState(""),[A,k]=g.useState(""),[C,E]=g.useState(""),[I,O]=g.useState(""),[M,$]=g.useState(""),[L,T]=g.useState(""),[R,z]=g.useState(""),[F,B]=g.useState(l.language==="he"?"+972":"+1"),[W,Z]=g.useState("idle"),[fe,we]=g.useState(""),[ee,J]=g.useState(0),[U]=g.useState(yfe()),[Y,ae]=g.useState(()=>{try{return localStorage.getItem(xs)}catch{return null}}),[q,Pe]=g.useState([]),[te,re]=g.useState(""),[_e,Ve]=g.useState([]),[Ge,Ne]=g.useState(!1),[yt,bt]=g.useState(!1),[qe,at]=g.useState(!1),Qe=`${F}${R.replace(/\D/g,"").replace(/^0+/,"")}`,Te=(t==null?void 0:t.subscription_status)==="active";g.useEffect(()=>{$e("route:state",{pathname:typeof window<"u"?window.location.pathname:"",search:typeof window<"u"?window.location.search:"",authLoading:i,hasUser:!!e,hasProfile:!!t,step:f,workItemId:Y,paywallOpen:Ge,waitingForSubscription:qe,onboarding_completed:t==null?void 0:t.onboarding_completed,whatsapp_verified:t==null?void 0:t.whatsapp_verified})},[i,e,t,f,Y,Ge,qe]),g.useEffect(()=>{var H;$e("mount",{url:typeof window<"u"?window.location.href:"",hasUser:!!e,userId:e==null?void 0:e.id,hasProfile:!!t,onboarding_completed:t==null?void 0:t.onboarding_completed,whatsapp_verified:t==null?void 0:t.whatsapp_verified,subscription_status:t==null?void 0:t.subscription_status,plan:t==null?void 0:t.plan,hasLandingData:!!U,landingImages:((H=U==null?void 0:U.images)==null?void 0:H.length)||0,storedWorkItemId:Y,lang:l.language})},[]),g.useEffect(()=>{$e("step:change",{step:f,subscribed:Te})},[f,Te]),g.useEffect(()=>{e&&w.current&&IO({step:f,workItemId:Y,paywallOpen:Ge,waitingForSubscription:qe,whatsappNumber:R,countryCode:F,otpState:W})},[e,f,Y,Ge,qe,R,F,W]);const Et=H=>l.language==="he"?"ס××ר×":"Story",dn=H=>H<=0?null:l.language==="he"?`⢠ת××× ×ת ש×××¢××: ${H}`:`⢠Images uploaded: ${H} image${H===1?"":"s"}`,Ta=(H,ne,be)=>{const xe=Et(),Xe=dn(be);return l.language==="he"?["ð ×פר××× ×©××××ת ××תר:",`⢠ס×× ×ª×××: ${xe}`,`â¢ × ×ש×: ${ne}`,...Xe?[Xe]:[],"","ð¸ ×× × ×ת××× × ×©××¢××ת ××× ×©× ×ש×× ××××
620 ×××××ס×פ."].join(` 621`):["ð Hereâs what you filled in on the website:",`⢠Content type: ${xe}`,`⢠Topic: ${ne}`,...Xe?[Xe]:[],"","ð¸ Here is the image you uploaded so we can continue from here in WhatsApp."].join(` 622`)};g.useEffect(()=>{!i&&!e&&($e("route:redirect_signup",{pathname:typeof window<"u"?window.location.pathname:"",search:typeof window<"u"?window.location.search:""}),c("/signup",{replace:!0}))},[i,e,c]),g.useEffect(()=>{t!=null&&t.onboarding_completed&&Ga()},[t==null?void 0:t.onboarding_completed]),g.useEffect(()=>{if(!(typeof window<"u"&&window.self!==window.top)&&!i&&t!=null&&t.onboarding_completed&&!vfe()&&!U&&f==="business"){const ne=`https://wa.me/${DO}?text=${encodeURIComponent("Hi!")}`;window.location.href=ne}},[i,t,U,f]),g.useEffect(()=>{if(!t||!e)return;t.full_name&&S(t.full_name),t.business_background&&N(t.business_background),t.business_name&&P(t.business_name),t.business_category&&k(t.business_category),t.location&&E(t.location),t.unique_selling_point&&O(t.unique_selling_point),t.target_audience&&$(t.target_audience),t.brand_tone&&T(t.brand_tone);const H=Ege();H!=null&&H.whatsappNumber&&z(H.whatsappNumber),H!=null&&H.countryCode&&B(H.countryCode),((H==null?void 0:H.otpState)==="sent"||(H==null?void 0:H.otpState)==="verified")&&Z(H.otpState),t.business_background&&!t.onboarding_completed?($e("resume:check",{hasBusinessBackground:!!t.business_background,onboarding_completed:t.onboarding_completed,whatsapp_verified:t.whatsapp_verified,hasPhone:!!t.phone,subscription_status:t.subscription_status,currentStep:f,workItemId:Y,persistedStep:H==null?void 0:H.step}),f==="business"&&!t.whatsapp_verified&&(e!=null&&e.id)?(async()=>{var ne,be,xe,Xe,ct,xt,et,Fe,kn;try{const Oa=(H==null?void 0:H.workItemId)||Y;let Xi=X.from("work_items").select("id, status, video_status, caption, hashtags, generated_media, platform_content").eq("user_id",e.id).in("status",["awaiting_approval","completed","published","pending","generating"]);Oa?Xi=Xi.eq("id",Oa):Xi=Xi.order("created_at",{ascending:!1}).limit(1);const{data:Zl}=await Xi,_n=Array.isArray(Zl)?Zl[0]:Zl;if(_n!=null&&_n.id){$e("resume:db_recovery",{workItemId:_n.id,status:_n.status,prevLocal:Y,persistedStep:H==null?void 0:H.step});try{localStorage.setItem(xs,_n.id)}catch{}ae(_n.id);const $t=_n,Ud=typeof $t.video_status=="string"?$t.video_status:null,am=_n.status==="awaiting_approval"||_n.status==="completed"||_n.status==="published"||Ud==="story_clip_complete";if(am){const Ji=$t.generated_media,st=$t.platform_content,Lt=((ne=st==null?void 0:st.instagram_story)==null?void 0:ne.image_url)||(Ji==null?void 0:Ji.image_url),sm=[...Lt?[Lt]:[],...(Ji==null?void 0:Ji.images)||[],...((xe=(be=Ji==null?void 0:Ji.carousel)==null?void 0:be.slides)==null?void 0:xe.map(Yr=>Yr.url))||[]].filter((Yr,Qi,$x)=>!!Yr&&$x.indexOf(Yr)===Qi),om=((Xe=st==null?void 0:st.instagram_story)==null?void 0:Xe.caption)||((ct=st==null?void 0:st.instagram_carousel)==null?void 0:ct.caption)||((xt=st==null?void 0:st.instagram_reel)==null?void 0:xt.caption)||(typeof _n.caption=="string"?_n.caption:"")||"",ec=(et=st==null?void 0:st.instagram_story)==null?void 0:et.hashtags,Mx=(Array.isArray(ec)?ec.join(" "):ec||((Fe=st==null?void 0:st.instagram_carousel)==null?void 0:Fe.hashtags)||((kn=st==null?void 0:st.instagram_reel)==null?void 0:kn.hashtags)||"").split(/\s+/).filter(Yr=>Yr.startsWith("#")).map(Yr=>Yr.replace("#",""));Pe(sm),re(om),Ve(Mx.length>0?Mx:Array.isArray(_n.hashtags)?_n.hashtags:[])}Ne((H==null?void 0:H.paywallOpen)===!0&&!Te),at((H==null?void 0:H.waitingForSubscription)===!0&&!Te),p(kge({persistedStep:H==null?void 0:H.step,hasReadyPreview:am,whatsappVerified:!!t.whatsapp_verified}))}else if(Oa){$e("resume:clear_stale",{workItemId:Oa});try{localStorage.removeItem(xs)}catch{}ae(null),Ga()}}catch(Oa){if(vr("resume:db_recovery:fail",Oa),H!=null&&H.workItemId||Y){const Xi=(H==null?void 0:H.workItemId)||Y;$e("resume:->generating:fallback",{workItemId:Xi,persistedStep:H==null?void 0:H.step}),H!=null&&H.workItemId&&ae(H.workItemId),Ne((H==null?void 0:H.paywallOpen)===!0&&!Te),at((H==null?void 0:H.waitingForSubscription)===!0&&!Te),p((H==null?void 0:H.step)==="whatsapp"?"whatsapp":"generating")}}finally{w.current=!0}}
622)():w.current=!0):w.current=!0},[t,e,Y,f,Te]),g.useEffect(()=>{if(ee<=0)return;const H=setTimeout(()=>J(ne=>ne-1),1e3);return()=>clearTimeout(H)},[ee]),g.useEffect(()=>{if(f!=="generating"||!Y)return;$e("poll:start",{workItemId:Y});let H=!1,ne=0;const be=async()=>{var Xe,ct,xt,et,Fe,kn,Oa,Xi,Zl;try{const $t=(await Nge(Y)).work_item;if($e("poll:tick",{attempt:ne,status:$t==null?void 0:$t.status,hasMedia:!!($t!=null&&$t.generated_media)}),H)return;if(!$t){if(ne>=2){vr("poll:stale_handle",{workItemId:Y});try{localStorage.removeItem(xs)}catch{}ae(null),p("business")}return}const Ud=$t,am=typeof Ud.video_status=="string"?Ud.video_status:null;if($t.status==="awaiting_approval"||$t.status==="completed"||$t.status==="published"||am==="story_clip_complete"){const st=Ud.generated_media,Lt=$t.platform_content,sm=((Xe=Lt==null?void 0:Lt.instagram_story)==null?void 0:Xe.image_url)||(st==null?void 0:st.image_url),om=[...sm?[sm]:[],...(st==null?void 0:st.images)||[],...((xt=(ct=st==null?void 0:st.carousel)==null?void 0:ct.slides)==null?void 0:xt.map(Qi=>Qi.url))||[]].filter((Qi,$x,OH)=>!!Qi&&OH.indexOf(Qi)===$x),ec=((et=Lt==null?void 0:Lt.instagram_story)==null?void 0:et.caption)||((Fe=Lt==null?void 0:Lt.instagram_carousel)==null?void 0:Fe.caption)||((kn=Lt==null?void 0:Lt.instagram_reel)==null?void 0:kn.caption)||$t.caption||"",lm=(Oa=Lt==null?void 0:Lt.instagram_story)==null?void 0:Oa.hashtags,Yr=(Array.isArray(lm)?lm.join(" "):lm||((Xi=Lt==null?void 0:Lt.instagram_carousel)==null?void 0:Xi.hashtags)||((Zl=Lt==null?void 0:Lt.instagram_reel)==null?void 0:Zl.hashtags)||"").split(/\s+/).filter(Qi=>Qi.startsWith("#")).map(Qi=>Qi.replace("#",""));$e("poll:awaiting_approval",{images:om.length,captionLen:ec.length,tags:Yr.length}),Pe(om),re(ec),Ve(Yr.length>0?Yr:$t.hashtags||[]),p("preview"),bt(!1)}else if($t.status==="failed"||$t.status==="error"){if(H)return;ta("poll:failed",{last_error:$t.last_error}),b($t.last_error||"Generation failed"),a({variant:"destructive",title:s("onboardingPreview.genFailed",{defaultValue:"Generation failed"}),description:$t.last_error||"Please try again"});try{localStorage.removeItem(xs)}catch{}ae(null),bt(!1),p("business")}}catch(_n){ta("poll:error",_n)}},xe=setInterval(()=>{if(ne++,ne>120){vr("poll:timeout",{attempts:ne}),clearInterval(xe);return}be()},3e3);return be(),()=>{$e("poll:stop",{workItemId:Y,attempts:ne}),H=!0,clearInterval(xe)}},[f,Y,s,a]);const bi=g.useRef(null);g.useEffect(()=>{const H=u.get("paid");if(!H||bi.current===H)return;bi.current=H,$e("paypal:return",{paid:H});const ne=new URLSearchParams(u);if(ne.delete("paid"),h(ne,{replace:!0}),H==="0"){vr("paypal:cancelled"),a({title:s("paywall.cancelled",{defaultValue:"Subscription needed to publish"})}),Ne(!0);return}if(H==="1"){$e("paypal:success:waiting_for_webhook"),at(!0);const be=async()=>{try{const{data:ct,error:xt}=await X.functions.invoke("paypal-verify-subscription");$e("paypal:verify",{data:ct,error:xt}),ct!=null&&ct.activated&&await r()}catch(ct){vr("paypal:verify:fail",ct)}};be();let xe=0;const Xe=setInterval(async()=>{xe++,$e("paypal:poll_profile",{tries:xe}),await be(),await r(),xe>20&&(vr("paypal:webhook_timeout",{tries:xe}),clearInterval(Xe),at(!1),a({variant:"destructive",title:s("paywall.syncSlow",{defaultValue:"Still syncing your subscription"}),description:s("paywall.syncSlowDesc",{defaultValue:"Refresh in a moment if it doesn't update."})}))},2e3);return()=>clearInterval(Xe)}},[u,h,r,s,a]),g.useEffect(()=>{Te&&qe&&($e("subscription:activated -> step=instagram"),at(!1),Ne(!1),a({title:s("paywall.activated",{defaultValue:"Subscription active"}),description:s("paywall.activatedDesc",{defaultValue:"Let's connect your Instagram."})}),p("instagram"))},[Te,qe,s,a]);const Sn=async()=>{var ne;const H=R.replace(/\D/g,"");if(H.length<6){vr("otp:send:invalid_number",{digits:H.length}),a({variant:"destructive",title:s("webOnboarding.business.whatsappError",{defaultValue:"Invalid number"}),description:s("webOnboarding.business.whatsappErrorDesc",{defaultValue:"Please enter a valid phone number."})});return}$e("otp:send:start",{phone:Qe}),Z("sending");try{const{data:be,error:xe}=await X.functions.invoke("send-otp",{body:{phone:Qe,userId:e==null?void 0:e.id,language:((ne=l.language)==null?void 0:ne.substring(0,2))||"en"}});if(xe)throw xe;if(be!=null&&be.error)throw new Error(be.error);$e("otp:send:ok",be),Z("sent"),J(60),a({title:s("webOnboarding.business.otpSent",{defaultValue:"Code sent!"})})}catch(be){ta("otp:send:error",be),Z("idle");const xe=await ow(be,s("webOnboarding.business.otpSendFailed",{defaultValue:"Failed to send code"}));a({variant:"destructive",title:"Error",description:xe})}},ms=async H=>{if(H.length===6){$e("otp:verify:start",{phone:Qe}),Z("verifying");try{const{data:ne,error:be}=await X.functions.invoke("verify-otp",{body:{phone:Qe,otp:H,userId:e==null?void 0:e.id}});if(be)throw new Error(be.message||"Verification failed");if(ne!=null&&ne.error)throw new Error(ne.error);ne!=null&&ne.verified?($e("otp:verify:ok"),Z("verified"),await n({phone:Qe,phone_formatted:Qe,whatsapp_verified:!0}),a({title:s("webOnboarding.business.otpVerified",{defaultValue:"Verified!"})})):vr("otp:verify:not_verified",ne)}catch(ne){ta("otp:verify:error",ne),Z("sent"),we("");const be=await ow(ne,"Verification failed");a({variant:"destructive",title:s("webOnboarding.business.otpInvalid",{defaultValue:"Invalid code"}),description:be})}}},Yt=g.useCallback(async()=>{var H,ne,be;if(Y){$e("startGeneration:skip:already_running",{workItemId:Y});return}$e("startGeneration:start",{hasLandingData:!!U,landingImages:((H=U==null?void 0:U.images)==null?void 0:H.length)||0,landingDescription:(ne=U==null?void 0:U.description)==null?void 0:ne.slice(0,60)}),b(null);try{const xe=U;let Xe=null;xe!=null&&xe.images&&xe.images.length>0&&(Xe=await RO(xe.images[0]));const ct=((be=xe==null?void 0:xe.description)==null?void 0:be.trim())||j.trim()||_.trim()||"Introduce my business",xt=Xe?[{url:Xe,is_primary:!0}]:[];$e("startGeneration:createWebPost",{topic:ct.slice(0,80),images:xt.length,language:l.language});const et=await jge({topic:ct,images:xt,platforms:{instagram_story:!0,instagram_carousel:!1,instagram_reel:!1},language:l.language||"en",auto_publish:!1});if($e("startGeneration:createWebPost:result",et),!et.success||!et.work_item_id)throw new Error("Failed to start generation");ae(et.work_item_id);try{localStorage.setItem(xs,et.work_item_id)}catch{}p("generating")}catch(xe){const Xe=xe instanceof Error?xe.message:"Failed to start generation";ta("startGeneration:error",xe),b(Xe),a({variant:"destructive",title:s("onboardingPreview.genFailed",{defaultValue:"Could not start generation"}),description:Xe}),p("business")}},[Y,U,j,_,l.language,s,a]),rn=async()=>
622{if(!j.trim()){vr("business:submit:missing_background"),a({variant:"destructive",title:s("webOnboarding.errors.required"),description:s("webOnboarding.errors.describeBusinessBrief")});return}$e("business:submit:start",{fullName:x,businessName:_,businessCategory:A,bgLen:j.length}),m(!0),b(null);try{const H={business_background:j.trim(),language:l.language||"en",content_language:l.language||"en"};x.trim()&&(H.full_name=x.trim()),_.trim()&&(H.business_name=_.trim()),A&&(H.business_category=A),C.trim()&&(H.location=C.trim()),I.trim()&&(H.unique_selling_point=I.trim()),M.trim()&&(H.target_audience=M.trim()),L&&(H.brand_tone=L);const{error:ne}=await n(H);if(ne){ta("business:submit:updateProfile:error",ne),b(ne.message),a({variant:"destructive",title:s("webOnboarding.errors.failedToSave"),description:ne.message});return}$e("business:submit:updateProfile:ok -> step=generating"),await r(),p("generating"),await Yt()}catch(H){const ne=H instanceof Error?H.message:"Unknown error";ta("business:submit:exception",H),b(ne),a({variant:"destructive",title:s("webOnboarding.errors.failedToSave"),description:ne})}finally{m(!1)}},jn=async()=>{$e("preview:try_again"),bt(!0);try{localStorage.removeItem(xs)}catch{}ae(null),Pe([]),re(""),Ve([]),p("generating"),setTimeout(()=>{Yt()},50)},Xl=()=>{$e("preview:publish_click",{isSubscribed:Te,waitingForSubscription:qe});const H=typeof window<"u"&&(new URLSearchParams(window.location.search).get("dev")==="1"||/lovable\.(app|dev)$|localhost|127\.0\.0\.1/.test(window.location.hostname))&&new URLSearchParams(window.location.search).get("dev")==="1";if(Te||H){H&&$e("preview:publish_click:dev_bypass"),Ne(!1),p("instagram");return}if(qe){a({title:s("paywall.activating",{defaultValue:"Activating your subscription..."})});return}Ne(!0)},gs=async()=>{IO({step:"whatsapp",workItemId:Y,paywallOpen:!1,waitingForSubscription:!1,whatsappNumber:R,countryCode:F,otpState:W}),localStorage.setItem("instagram_connect_return","/onboarding/web");const{initiateInstagramOAuth:H}=await $i(async()=>{const{initiateInstagramOAuth:ne}=await Promise.resolve().then(()=>zBe);return{initiateInstagramOAuth:ne}},void 0);H()},Ix=()=>{$e("instagram:skip -> step=whatsapp"),p("whatsapp")},Rx=async()=>{var ne,be,xe;if(W!=="verified"){vr("wa:complete:not_verified",{otpState:W}),a({variant:"destructive",title:s("webOnboarding.business.verifyFirst",{defaultValue:"Verify your number"}),description:s("webOnboarding.business.verifyFirstDesc",{defaultValue:"Please verify your WhatsApp number before continuing."})});return}$e("wa:complete:start"),b(null),m(!0);let H=!1;try{await n({onboarding_completed:!0}),await r(),$e("wa:complete:profile_marked_completed");const Xe=((ne=U==null?void 0:U.description)==null?void 0:ne.trim())||j.trim()||"My first post",ct=(U==null?void 0:U.images)||[],xt=[];for(const et of ct)if(et)try{const Fe=await RO(et);Fe&&xt.push(Fe)}catch(Fe){ta("wa:complete:cloudinary:error",Fe)}$e("wa:complete:cloudinary:done",{uploaded:xt.length,of:ct.length});try{$e("wa:complete:seedOnboardingContent:start",{topic:Xe,urls:xt.length});const et=await Sge({image_urls:xt.length>0?xt:void 0,format:"story",topic:Xe,work_item_id:Y||void 0});$e("wa:complete:seedOnboardingContent:ok",et)}catch(et){vr("wa:complete:seedOnboardingContent:failed",et)}if(!Y&&xt.length>0&&Qe){const et=Ta("story",Xe,xt.length);try{$e("wa:complete:send-whatsapp-media:start",{phone:Qe});const Fe=await X.functions.invoke("send-whatsapp-media",{body:{phone:Qe,image_url:xt[0],caption:et}});$e("wa:complete:send-whatsapp-media:ok",Fe)}catch(Fe){vr("wa:complete:send-whatsapp-media:failed",Fe)}}if(e&&Qe)try{$e("wa:complete:deliver-pending-story:start",{phone:Qe});const et=(((be=e.user_metadata)==null?void 0:be.full_name)||e.email||"").toString().split(" ")[0].split("@")[0],{data:Fe,error:kn}=await X.functions.invoke("n8n-deliver-pending-story",{body:{user_id:e.id,phone:Qe,work_item_id:Y||void 0,customer_name:et||void 0,language:((xe=l.language)==null?void 0:xe.substring(0,2))||"en"}});if(kn)throw kn;if(!(Fe!=null&&Fe.ok))throw new Error(typeof(Fe==null?void 0:Fe.data)=="string"?Fe.data:`WhatsApp handoff failed${Fe!=null&&Fe.status?` (${Fe.status})`:""}`);H=!0,$e("wa:complete:deliver-pending-story:done",Fe)}catch(et){vr("wa:complete:deliver-pending-story:failed",et);const Fe=await ow(et,"We could not send your WhatsApp message yet. Please try again.");b(Fe),a({variant:"destructive",title:s("webOnboarding.whatsapp.deliveryFailedTitle",{defaultValue:"Could not send the WhatsApp message"}),description:Fe})}kv();try{localStorage.removeItem(xs)}catch{}Ga()}finally{m(!1)}
622if(!H){vr("wa:complete:redirect:blocked_no_handoff");return}$e("wa:complete:done -> redirecting to WhatsApp chat"),window.location.href=`https://wa.me/${DO}`};if(i)return o.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:o.jsxs("div",{className:"flex flex-col items-center gap-4",children:[o.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"}),o.jsx("p",{className:"text-muted-foreground",children:s("billing.loading",{defaultValue:"Loading..."})})]})});const Jl=5,zd={business:1,generating:2,preview:2,instagram:3,whatsapp:4,done:5}[f],Ql=zd/Jl*100,nr=({icon:H,color:ne,children:be,optional:xe})=>o.jsxs("div",{className:"flex items-center gap-2.5 mb-2",children:[o.jsx("div",{className:`w-8 h-8 rounded-lg ${ne} flex items-center justify-center shrink-0`,children:o.jsx(H,{className:"h-4 w-4"})}),o.jsxs(Rt,{className:"text-sm font-semibold text-foreground",children:[be,xe&&o.jsxs("span",{className:"font-normal text-muted-foreground ms-1",children:["(",s("webOnboarding.business.optional",{defaultValue:"optional"}),")"]})]})]});return o.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-background via-muted/20 to-background",children:[o.jsxs("div",{className:`w-full ${f==="business"?"max-w-4xl":"max-w-2xl"} mx-auto px-4 pt-6 pb-2`,children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsx("img",{src:Ca,alt:"Visible",className:"h-8"}),o.jsx(Y1,{})]}),f==="whatsapp"&&o.jsxs("div",{className:"mb-4",children:[o.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-primary mb-2",children:[o.jsx(VS,{className:"h-4 w-4"}),o.jsx("span",{children:s("webOnboarding.progress",{defaultValue:"Step {{current}} of {{total}}",current:zd,total:Jl})})]}),o.jsx(Df,{value:Ql,className:"h-2 bg-muted/50"})]}),(f==="generating"||f==="preview"||f==="instagram")&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[o.jsx(VS,{className:"h-3.5 w-3.5 text-primary"}),o.jsx("span",{children:s("webOnboarding.progress",{current:zd,total:Jl})})]}),o.jsx(Df,{value:Ql,className:"h-1.5 bg-muted/50"})]})]}),o.jsx("div",{className:`w-full ${f==="business"?"max-w-4xl":f==="whatsapp"?"max-w-2xl":"max-w-lg"} mx-auto px-4 py-6`,dir:d?"rtl":"ltr",children:o.jsxs(Ul,{mode:"wait",children:[f==="business"&&o.jsxs(Q.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},className:"space-y-6",children:[o.jsxs("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-center leading-tight",children:[s("webOnboarding.business.heroTitle1",{defaultValue:"Let's make your business"})," ",o.jsx("span",{className:"text-primary",children:s("webOnboarding.business.heroTitle3",{defaultValue:"VISIBLE"})})]}),o.jsxs("div",{className:"rounded-2xl bg-primary/5 border border-primary/20 px-4 py-3 flex flex-col sm:flex-row items-center justify-center gap-2 sm:gap-3 text-sm text-center",children:[o.jsx("span",{className:"text-muted-foreground",children:s("webOnboarding.business.formatsIntro",{defaultValue:"You can create stories, carousels and reels."})}),o.jsxs("span",{className:"inline-flex items-center gap-1.5 font-semibold text-primary",children:[o.jsx(kr,{className:"h-4 w-4"}),s("webOnboarding.business.formatsStartStory",{defaultValue:"We'll start with a quick story."})]})]}),o.jsxs("div",{className:"rounded-3xl bg-card border border-border/60 shadow-sm p-6 md:p-8 space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"w-9 h-9 rounded-xl bg-primary text-primary-foreground flex items-center justify-center font-bold text-sm",children:"1"}),o.jsxs("h2",{className:"text-lg md:text-xl font-bold",children:[s("webOnboarding.business.cardTitle",{defaultValue:"About your business"})," ",o.jsx("span",{className:"ms-1",children:"ð"})]})]}),o.jsx("div",{className:"px-3 py-1.5 rounded-full bg-primary/10 text-primary text-xs font-medium",children:s("webOnboarding.business.cardHint",{defaultValue:"The more we know, the better we create!"})})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 md:gap-6",children:[o.jsxs("div",{children:[o.jsx(nr,{icon:Q3,color:"bg-purple-100 text-purple-600 dar
622k:bg-purple-900/30 dark:text-purple-300",children:s("webOnboarding.business.fullNameLabel",{defaultValue:"Your name"})}),o.jsx(Bt,{placeholder:s("webOnboarding.business.fullNamePlaceholder",{defaultValue:"e.g. Alex Smith"}),value:x,onChange:H=>S(H.target.value),className:"h-12 rounded-xl bg-background border-border/60",dir:d?"rtl":"ltr"})]}),o.jsxs("div",{children:[o.jsx(nr,{icon:C9,color:"bg-purple-100 text-purple-600 dark:bg-purple-900/30 dark:text-purple-300",children:s("webOnboarding.business.businessNameLabel")}),o.jsx(Bt,{placeholder:s("webOnboarding.business.businessNamePlaceholder"),value:_,onChange:H=>P(H.target.value),className:"h-12 rounded-xl bg-background border-border/60",dir:d?"rtl":"ltr"})]}),o.jsxs("div",{children:[o.jsx(nr,{icon:o9,color:"bg-purple-100 text-purple-600 dark:bg-purple-900/30 dark:text-purple-300",children:s("webOnboarding.business.categoryLabel",{defaultValue:"Industry"})}),o.jsxs(_r,{value:A,onValueChange:k,children:[o.jsx(lr,{className:"h-12 rounded-xl bg-background border-border/60",children:o.jsx(Nr,{placeholder:s("webOnboarding.business.categoryPlaceholder",{defaultValue:"Select your industry"})})}),o.jsx(cr,{children:Vge.map(H=>o.jsx(Ke,{value:H,children:s(`webOnboarding.business.categories.${H}`)},H))})]})]}),o.jsxs("div",{children:[o.jsx(nr,{icon:ab,color:"bg-purple-100 text-purple-600 dark:bg-purple-900/30 dark:text-purple-300",children:s("webOnboarding.business.label",{defaultValue:"Describe your business in 1-2 sentences"})}),o.jsx(jd,{placeholder:s("webOnboarding.business.placeholder"),value:j,onChange:H=>N(H.target.value),maxLength:300,rows:4,className:"resize-none rounded-xl bg-background border-border/60 text-base",dir:d?"rtl":"ltr"}),o.jsxs("p",{className:"text-xs text-muted-foreground text-end mt-1",children:[j.length,"/300"]})]}),o.jsxs("div",{children:[o.jsx(nr,{icon:H3,color:"bg-purple-100 text-purple-600 dark:bg-purple-900/30 dark:text-purple-300",optional:!0,children:s("webOnboarding.business.locationLabel",{defaultValue:"Location"})}),o.jsx(Bt,{placeholder:s("webOnboarding.business.locationPlaceholder",{defaultValue:"e.g. London, UK"}),value:C,onChange:H=>E(H.target.value),className:"h-12 rounded-xl bg-background border-border/60",dir:d?"rtl":"ltr"})]}),o.jsxs("div",{children:[o.jsx(nr,{icon:A9,color:"bg-purple-100 text-purple-600 dark:bg-purple-900/30 dark:text-purple-300",children:s("webOnboarding.business.brandToneLabel",{defaultValue:"Brand tone"})}),o.jsxs(_r,{value:L,onValueChange:T,children:[o.jsx(lr,{className:"h-12 rounded-xl bg-background border-border/60",children:o.jsx(Nr,{placeholder:s("webOnboarding.business.brandTonePlaceholder",{defaultValue:"Select your brand tone"})})}),o.jsx(cr,{children:["friendly","professional","playful","inspirational","luxurious","casual"].map(H=>o.jsx(Ke,{value:H,children:s(`webOnboarding.business.brandTones.${H}`)},H))})]})]})]}),y&&o.jsxs("div",{className:"flex items-start gap-2 p-3 rounded-lg bg-destructive/10 border border-destructive/20 text-destructive text-sm",children:[o.jsx($h,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),o.jsx("p",{children:y})]})]}),o.jsxs("div",{className:"rounded-3xl bg-card border border-border/60 shadow-sm p-4 md:p-5 flex flex-col md:flex-row items-stretch md:items-center gap-4",children:[o.jsxs("div",{className:"flex items-center gap-3 md:flex-1",children:[o.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center shrink-0",children:o.jsx(p0,{className:"h-6 w-6"})}),o.jsxs("div",{className:"text-sm leading-tight",children:[o.jsx("p",{className:"font-semibold",children:s("webOnboarding.business.secureTitle",{defaultValue:"100% secure. Private."})}),o.jsx("p",{className:"text-muted-foreground",children:s("webOnboarding.business.secureSubtitle",{defaultValue:"Always under your control."})})]})]}),o.jsx(K,{onClick:rn,disabled:v||!j.trim(),className:"h-14 px-6 md:flex-1 text-base font-semibold bg-green-500 hover:bg-green-600 text-white rounded-2xl shadow-lg shadow-green-500/20",size:"lg",children:v?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"h-5 w-5 animate-spin me-2"}),s("webOnboarding.business.saving")]}):o.jsxs(o.Fragment,{children:[o.jsx(kr,{className:"h-5 w-5 me-2"}),s("webOnboarding.business.generateFirstPost",{defaultValue:"Generate my first post"}),o.jsx(tr,{className:`h-5 w-5 ms-2 ${d?"rotate-180":""}`})]})})]}),o.jsxs("p",{className:"text-center text-sm text-muted-foreground flex items-center justify-center gap-2",children:[o.jsx(kr,{className:"h-4 w-4 text-primary"}),s("webOnboarding.business.footerNoteV2",{defaultValue:"We'll generate a real post preview in about 30 seconds."})]})]},"business"),f==="whatsapp"&&o.jsx(Q.div,{initial:{opacity:0,y:12}
622,animate:{opacity:1,y:0},exit:{opacity:0,y:-12},children:o.jsxs("div",{className:"rounded-3xl bg-card border border-border/60 shadow-sm p-6 md:p-10 text-center",children:[o.jsxs("div",{className:"relative mx-auto mb-6 w-20 h-20",children:[o.jsx("div",{className:"absolute inset-0 rounded-2xl bg-green-500/30 blur-2xl"}),o.jsx("div",{className:"relative w-20 h-20 rounded-2xl bg-green-500 flex items-center justify-center shadow-lg shadow-green-500/30",children:o.jsx(hl,{className:"h-10 w-10 text-white"})})]}),o.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold tracking-tight mb-3",children:s("webOnboarding.whatsapp.titleV3",{defaultValue:"Our agent lives on WhatsApp ð¬"})}),o.jsx("p",{className:"text-base text-muted-foreground max-w-md mx-auto mb-8",children:s("webOnboarding.whatsapp.descV3",{defaultValue:"That's the fun part :) Connect your WhatsApp now, and our agent will reach out to publish your first post - and stick around for all the next ones. Looking forward to talking to you!"})}),W==="verified"?o.jsxs("div",{className:"flex items-center gap-2 p-4 rounded-xl bg-green-50 dark:bg-green-950/30 border border-green-200 dark:border-green-800 max-w-md mx-auto mb-4",children:[o.jsx(p0,{className:"h-6 w-6 text-green-600 flex-shrink-0"}),o.jsxs("div",{className:"flex-1 text-start",children:[o.jsx("p",{className:"text-sm font-medium text-green-700 dark:text-green-400",children:s("webOnboarding.business.otpVerified",{defaultValue:"Verified!"})}),o.jsx("p",{className:"text-xs text-green-600/70 font-mono",children:Qe})]}),o.jsx(ft,{className:"h-5 w-5 text-green-600"})]}):o.jsxs("div",{className:"space-y-3 max-w-md mx-auto mb-4",children:[o.jsxs("div",{className:"flex gap-2",children:[o.jsxs(_r,{value:F,onValueChange:B,disabled:W==="sent"||W==="verifying",children:[o.jsx(lr,{className:"w-[120px] h-14 rounded-xl bg-background border-border/60 text-base font-semibold",children:o.jsx(Nr,{})}),o.jsx(cr,{children:Lge.map(H=>o.jsxs(Ke,{value:H.code,children:[H.flag," ",H.code]},H.code))})]}),o.jsx(Bt,{type:"tel",inputMode:"numeric",placeholder:s("webOnboarding.whatsapp.numberPlaceholder",{defaultValue:"Phone number"}),value:R,onChange:H=>z(H.target.value.replace(/\D/g,"")),className:"flex-1 h-14 rounded-xl bg-background border-border/60 text-base",dir:"ltr",disabled:W==="sent"||W==="verifying"})]}),(W==="sent"||W==="verifying")&&o.jsxs("div",{className:"space-y-3 p-4 rounded-xl bg-muted/30 border border-border/50",children:[o.jsx(Rt,{className:"text-sm font-medium block",children:s("webOnboarding.business.enterCode",{defaultValue:"Enter 6-digit code"})}),o.jsx("div",{className:"flex justify-center",children:o.jsx(VU,{maxLength:6,value:fe,onChange:H=>{we(H),H.length===6&&ms(H)},disabled:W==="verifying",children:o.jsxs(FU,{children:[o.jsx(Vo,{index:0}),o.jsx(Vo,{index:1}),o.jsx(Vo,{index:2}),o.jsx(Vo,{index:3}),o.jsx(Vo,{index:4}),o.jsx(Vo,{index:5})]})})}),W==="verifying"&&o.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[o.jsx(Ze,{className:"h-3 w-3 animate-spin"}),s("webOnboarding.business.verifying",{defaultValue:"Verifying..."})]}),o.jsxs("div",{className:"flex items-center justify-center gap-2",children:[o.jsx(K,{variant:"ghost",size:"sm",onClick:()=>{Z("idle"),we("")},children:s("webOnboarding.business.changeNumber",{defaultValue:"Change number"})}),o.jsx(K,{variant:"ghost",size:"sm",onClick:Sn,disabled:ee>0,children:ee>0?`${s("webOnboarding.business.resendIn",{defaultValue:"Resend in"})} ${ee}s`:s("webOnboarding.business.resend",{defaultValue:"Resend code"})})]})]})]}),o.jsxs("p",{className:"text-sm text-muted-foreground flex items-center justify-center gap-2 mb-6",children:[o.jsx(p0,{className:"h-4 w-4 text-green-600"}),s("webOnboarding.whatsapp.privacyShort",{defaultValue:"We use WhatsApp to send you post previews for approval."})]}),v&&o.jsxs("div",{className:"mb-4 flex items-center justify-center gap-2 rounded-xl border border-border/50 bg-muted/30 px-4 py-3 text-sm text-muted-foreground",children:[o.jsx(Ze,{className:"h-4 w-4 animate-spin"}),o.jsx("span",{children:s("webOnboarding.whatsapp.preparing",{defaultValue:"Preparing your WhatsApp message..."})})]}),y&&o.jsxs("div",{className:"mb-4 flex items-start gap-2 rounded-xl border border-destructive/20 bg-destructive/10 px-4 py-3 text-start text-sm text-destructive",children:[o.jsx($h,{className:"mt-0.5 h-4 w-4 flex-shrink-0"}),o.jsx("p",{children:y})]}),o.jsx(K,{onClick:W==="verified"?Rx:W==="sent"||W==="verifying"?void 0:Sn,disabled:W==="idle"&&R.replace(/\D/g,"").length<6||v||W==="sending"||W==="verifying"||W==="sent",className:"w-full max-w-md h-14 text-base font-bold bg-green-500 hover:bg-green-600 text-white rounded-2xl shadow-lg shadow-green-500/30",size:"lg",children:v?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"h-5 w-5 animate-spin me-2"}),s("webOnboarding.whatsapp.preparing",{defaultValue:"Preparing your WhatsApp message..."})]}):W==="sending"?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"h-5 w-5 animate-spin me-2"}),s("webOnboarding.whatsapp.sending",{defaultValue:"Sending code..."})]}):W==="verified"?o.jsxs(o.Fragment,{children:[o.jsx(hl,{className:"h-5 w-5 me-2"}),s("webOnboarding.whatsapp.openWhatsApp",{defaultValue:"Open WhatsApp & meet the agent"}),o.jsx(tr,{className:`h-5 w-5 ms-2 ${d?"rotate-180":""}`})]}):o.jsxs(o.Fragment,{children:[o.jsx(hl,{className:"h-5 w-5 me-2"}),s("webOnboarding.whatsapp.sendCode",{defaultValue:"Send verification code"})]})})]})},"whatsapp"),f==="generating"&&o.jsxs(Q.div,{initial:{opacity:0}
622,animate:{opacity:1},exit:{opacity:0},children:[o.jsx(Tge,{titleKey:"onboardingFlow.generating.storyTitle",subtitleKey:"onboardingFlow.generating.storySubtitle",stepsKey:"onboardingFlow.generating.storySteps",estimatedSeconds:90,statusIntervalMs:12e3}),y&&o.jsxs("div",{className:"mt-4 flex items-start gap-2 p-3 rounded-lg bg-destructive/10 border border-destructive/20 text-destructive text-sm",children:[o.jsx($h,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),o.jsx("p",{children:y})]})]},"generating"),f==="preview"&&o.jsxs(Q.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},children:[o.jsx(Oge,{images:q,caption:"",hashtags:[],businessName:_||(t==null?void 0:t.business_name)||"",isSubscribed:Te,onPublish:Xl,onTryAgain:jn,tryingAgain:yt}),qe&&o.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 p-3 rounded-xl bg-primary/5 border border-primary/20 text-sm",children:[o.jsx(Ze,{className:"h-4 w-4 animate-spin text-primary"}),o.jsx("span",{children:s("paywall.activating",{defaultValue:"Activating your subscription..."})})]})]},"preview"),f==="instagram"&&o.jsx(Q.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},children:o.jsxs("div",{className:"rounded-3xl bg-card border border-border/60 shadow-sm p-6 md:p-10 text-center",children:[o.jsxs("div",{className:"relative mx-auto mb-6 w-20 h-20",children:[o.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-purple-500/30 via-pink-500/30 to-orange-400/30 blur-2xl"}),o.jsx("div",{className:"relative w-20 h-20 rounded-2xl bg-gradient-to-br from-purple-500 via-pink-500 to-orange-400 flex items-center justify-center shadow-lg",children:o.jsx(Au,{className:"h-10 w-10 text-white"})})]}),o.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold tracking-tight mb-3",children:s("onboardingInstagram.title",{defaultValue:"Connect your Instagram"})}),o.jsx("p",{className:"text-base text-muted-foreground max-w-md mx-auto mb-8",children:s("onboardingInstagram.subtitleV2",{defaultValue:"So we can publish your posts directly to your account. You'll connect WhatsApp right after."})}),o.jsxs("div",{className:"space-y-3 max-w-md mx-auto",children:[o.jsxs(K,{onClick:gs,className:"w-full h-14 text-base font-bold bg-gradient-to-r from-purple-500 via-pink-500 to-orange-400 text-white rounded-2xl shadow-lg",size:"lg",children:[o.jsx(Au,{className:"h-5 w-5 me-2"}),s("onboardingInstagram.connect",{defaultValue:"Connect Instagram"})]}),o.jsx(K,{onClick:Ix,variant:"ghost",className:"w-full text-muted-foreground",children:s("onboardingInstagram.skipToWhatsApp",{defaultValue:"Skip for now, continue to WhatsApp"})})]}),o.jsx("p",{className:"text-xs text-muted-foreground mt-6",children:s("onboardingInstagram.note",{defaultValue:"You can connect Instagram later from your settings."})})]})},"instagram")]})}),o.jsx(Dge,{open:Ge,onClose:()=>{Ne(!1),at(!1)},returnPath:"/onboarding/web"})]})},Bge="14048263424",MO=`https://wa.me/${Bge}?text=${encodeURIComponent("Hi! ð")}`,ws=()=>{const{t:e}=Le();return g.useEffect(()=>{const t=setTimeout(()=>{window.location.href=MO},3e3);return()=>clearTimeout(t)},[]),o.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:o.jsxs("div",{className:"max-w-md w-full text-center space-y-6",children:[o.jsx("div",{className:"w-20 h-20 bg-green-500/10 rounded-full flex items-center justify-center mx-auto",children:o.jsx(hl,{className:"w-10 h-10 text-green-500"})}),o.jsx("h1",{className:"text-2xl font-bold text-foreground",children:e("whatsappRedirect.title","You're all set! ð")}),o.jsx("p",{className:"text-muted-foreground",children:e("whatsappRedirect.description","Continue creating amazing content on WhatsApp. You'll be redirected automatically...")}),o.jsxs(K,{size:"lg",className:"bg-green-500 hover:bg-green-600 text-white w-full",onClick:()=>window.location.href=MO,children:[o.jsx(hl,{className:"w-5 h-5 mr-2"}),e("whatsappRedirect.button","Open WhatsApp")]}),o.jsx("p",{className:"text-xs text-muted-foreground",children:e("whatsappRedirect.auto","Redirecting in 3 seconds...")})]})})},zge=({children:e})=>{const{profile:t,loading:n}=Hi();return n?o.jsx("div",{className:"flex items-center justify-center min-h-[50vh]",children:o.jsx(Ze,{className:"h-8 w-8 animate-spin text-primary"})}):t!=null&&t.is_admin?o.jsx(o.Fragment,{children:e}):o.jsx(hb,{to:"/",replace:!0})},Uge=[{label:"Overview",path:"/admin"},{label:"Users",path:"/admin/users"},{label:"Prompts",path:"/admin/prompts"},{label:"Health",path:"/admin/health"},{label:"Meta CAPI",path:"/admin/meta-capi"},{label:"Billing",path:"/admin/billing"},{label:"Observability",path:"/admin/observability"},{label:"Pronunciation",path:"/admin/pronunciation"},{label:"Voices",path:"/admin/voices"},{label:"Messages",path:"/admin/messages"}],Wge=()=>{const e=pr(),t=n=>n==="/admin"?e.pathname==="/admin":e.pathname.startsWith(n);return o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(iv,{className:"h-8 w-8 text-primary"}),o.jsx("h1",{className:"text-2xl font-bold",children:"Admin Dashboard"})]}),o.jsx("div",{className:"border-b border-border flex gap-6",children:Uge.map(n=>o.jsx(se,{to:n.path,className:oe("pb-2 text-sm font-medium transition-colors",t(n.path)?"border-b-2 border-primary text-foreground":"text-muted-foreground hover:text-foreground"),children:n.label},n.path))}),o.jsx(QQ,{})]})},ze=g.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:oe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
vendor: 12,213 bytes, line 622
622ze.displayName="Card";const pt=g.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:oe("flex flex-col space-y-1.5 p-6",e),...t}));pt.displayName="CardHeader";const mt=g.forwardRef(({className:e,...t},n)=>o.jsx("h3",{ref:n,className:oe("text-2xl font-semibold leading-none tracking-tight",e),...t}));mt.displayName="CardTitle";const wA=g.forwardRef(({className:e,...t},n)=>o.jsx("p",{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));wA.displayName="CardDescription";const Ue=g.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:oe("p-6 pt-0",e),...t}));Ue.displayName="CardContent";const qge=g.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:oe("flex items-center p-6 pt-0",e),...t}));qge.displayName="CardFooter";function De({className:e,...t}){return o.jsx("div",{className:oe("animate-pulse rounded-md bg-muted",e),...t})}function Hge(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var SA="ScrollArea",[UU,jze]=Fn(SA),[Gge,gi]=UU(SA),WU=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...s}=e,[l,c]=g.useState(null),[u,h]=g.useState(null),[d,f]=g.useState(null),[p,v]=g.useState(null),[m,y]=g.useState(null),[b,w]=g.useState(0),[x,S]=g.useState(0),[j,N]=g.useState(!1),[_,P]=g.useState(!1),A=Me(t,C=>c(C)),k=xd(i);return o.jsx(Gge,{scope:n,type:r,dir:k,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:h,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:v,scrollbarXEnabled:j,onScrollbarXEnabledChange:N,scrollbarY:m,onScrollbarYChange:y,scrollbarYEnabled:_,onScrollbarYEnabledChange:P,onCornerWidthChange:w,onCornerHeightChange:S,children:o.jsx(ye.div,{dir:k,...s,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});WU.displayName=SA;var qU="ScrollAreaViewport",HU=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...a}=e,s=gi(qU,n),l=g.useRef(null),c=Me(t,l,s.onViewportChange);return o.jsxs(o.Fragment,{children:[o.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),o.jsx(ye.div,{"data-radix-scroll-area-viewport":"",...a,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:o.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});HU.displayName=qU;var Ea="ScrollAreaScrollbar",jA=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=gi(Ea,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=i,l=e.orientation==="horizontal";return g.useEffect(()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)}),[l,a,s]),i.type==="hover"?o.jsx(Kge,{...r,ref:t,forceMount:n}):i.type==="scroll"?o.jsx(Yge,{...r,ref:t,forceMount:n}):i.type==="auto"?o.jsx(GU,{...r,ref:t,forceMount:n}):i.type==="always"?o.jsx(_A,{...r,ref:t}):null});jA.displayName=Ea;var Kge=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=gi(Ea,e.__scopeScrollArea),[a,s]=g.useState(!1);return g.useEffect(()=>{const l=i.scrollArea;let c=0;if(l){const u=()=>{window.clearTimeout(c),s(!0)},h=()=>{c=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",h),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",h)}}},[i.scrollArea,i.scrollHideDelay]),o.jsx(Bn,{present:n||a,children:o.jsx(GU,{"data-state":a?"visible":"hidden",...r,ref:t})})}),Yge=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=gi(Ea,e.__scopeScrollArea),a=e.orientation==="horizontal",s=Lb(()=>c("SCROLL_END"),100),[l,c]=Hge("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>c("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,i.scrollHideDelay,c]),g.useEffect(()=>{const u=i.viewport,h=a?"scrollLeft":"scrollTop";if(u){let d=u[h];const f=()=>{const p=u[h];d!==p&&(c("SCROLL"),s()),d=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[i.viewport,a,c,s]),o.jsx(Bn,{present:n||l!=="hidden",children:o.jsx(_A,{"data-state":l==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:le(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:le(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),GU=g.forwardRef((e,t)=>{const n=gi(Ea,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,s]=g.useState(!1),l=e.orientation==="horizontal",c=Lb(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,h=n.viewport.offsetHeight<n.viewport.scrollHeight;s(l?u:h)}},10);return Du(n.viewport,c),Du(n.content,c),o.jsx(Bn,{present:r||a,children:o.jsx(_A,{"data-state":a?"visible":"hidden",...i,ref:t})})}),_A=g.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,i=gi(Ea,e.__scopeScrollArea),a=g.useRef(null),s=g.useRef(0),[l,c]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=QU(l.viewport,l.content),h={...r,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function d(f,p){return tve(f,s.current,l,p)}return n==="horizontal"?o.jsx(Xge,{...h,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const f=i.viewport.scrollLeft,p=$O(f,l,i.dir);a.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollLeft=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollLeft=d(f,i.dir))}}):n==="vertical"?o.jsx(Jge,{...h,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const f=i.viewport.scrollTop,p=$O(f,l);a.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollTop=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollTop=d(f))}}):null}),Xge=g.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=gi(Ea,e.__scopeScrollArea),[s,l]=g.useState(),c=g.useRef(null),u=Me(t,c,a.onScrollbarXChange);return g.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),o.jsx(YU,{"data-orientation":"horizontal",...i,ref:u,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":$b(n)+"px",...e.style},onThumbPointerDown:h=>e.onThumbPointerDown(h.x),onDragScroll:h=>e.onDragScroll(h.x),onWheelScroll:(h,d)=>{if(a.viewport){const f=a.viewport.scrollLeft+h.deltaX;e.onWheelScroll(f),eW(f,d)&&h.preventDefault()}},onResize:()=>{c.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Mv(s.paddingLeft),paddingEnd:Mv(s.paddingRight)}})}})}),Jge=g.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=gi(Ea,e.__scopeScrollArea),[s,l]=g.useState(),c=g.useRef(null),u=Me(t,c,a.onScrollbarYChange);return g.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),o.jsx(YU,{"data-orientation":"vertical",...i,ref:u,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":$b(n)+"px",...e.style},onThumbPointerDown:h=>e.onThumbPointerDown(h.y),onDragScroll:h=>e.onDragScroll(h.y),onWheelScroll:(h,d)=>{if(a.viewport){const f=a.viewport.scrollTop+h.deltaY;e.onWheelScroll(f),eW(f,d)&&h.preventDefault()}},onResize:()=>{c.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Mv(s.paddingTop),paddingEnd:Mv(s.paddingBottom)}})}})}),[Qge,KU]=UU(Ea),YU=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:h,onResize:d,...f}=e,p=gi(Ea,n),[v,m]=g.useState(null),y=Me(t,A=>m(A)),b=g.useRef(null),w=g.useRef(""),x=p.viewport,S=r.content-r.viewport,j=tn(h),N=tn(c),_=Lb(d,10);function P(A){if(b.current){const k=A.clientX-b.current.left,C=A.clientY-b.current.top;u({x:k,y:C})}}return g.useEffect(()=>{const A=k=>{const C=k.target;(v==null?void 0:v.contains(C))&&j(k,S)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[x,v,S,j]),g.useEffect(N,[r,N]),Du(v,_),Du(p.content,_),o.jsx(Qge,{scope:n,scrollbar:v,hasThumb:i,onThumbChange:tn(a),onThumbPointerUp:tn(s),onThumbPositionChange:N,onThumbPointerDown:tn(l),children:o.jsx(ye.div,{...f,ref:y,style:{position:"absolute",...f.style},onPointerDown:le(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),b.current=v.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),P(A))}),onPointerMove:le(e.onPointerMove,P),onPointerUp:le(e.onPointerUp,A=>{const k=A.target;k.hasPointerCapture(A.pointerId)&&k.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=w.current,p.viewport&&(p.viewport.style.scrollBehavior=""),b.current=null})})})}),Dv="ScrollAreaThumb",XU=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=KU(Dv,e.__scopeScrollArea);return o.jsx(Bn,{present:n||i.hasThumb,children:o.jsx(Zge,{ref:t,...r})})}),Zge=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,a=gi(Dv,n),s=KU(Dv,n),{onThumbPositionChange:l}=s,c=Me(t,d=>s.onThumbChange(d)),u=g.useRef(void 0),h=Lb(()=>{u.current&&(u.current(),u.current=void 0)},100);return g.useEffect(()=>{const d=a.viewport;if(d){const f=()=>{if(h(),!u.current){const p=nve(d,l);u.current=p,l()}};return l(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,h,l]),o.jsx(ye.div,{"data-state":s.hasThumb?"visible":"hidden",...i,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:le(e.onPointerDownCapture,d=>{const p=d.target.getBoundingClientRect(),v=d.clientX-p.left,m=d.clientY-p.top;s.onThumbPointerDown({x:v,y:m})}),onPointerUp:le(e.onPointerUp,s.onThumbPointerUp)})});XU.displayName=Dv;var NA="ScrollAreaCorner",JU=g.forwardRef((e,t)=>{const n=gi(NA,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?o.jsx(eve,{...e,ref:t}):null});JU.displayName=NA;var eve=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=gi(NA,n),[a,s]=g.useState(0),[l,c]=g.useState(0),u=!!(a&&l);return Du(i.scrollbarX,()=>{var d;const h=((d=i.scrollbarX)==null?void 0:d.offsetHeight)||0;i.onCornerHeightChange(h),c(h)}),Du(i.scrollbarY,()=>{var d;const h=((d=i.scrollbarY)==null?void 0:d.offsetWidth)||0;i.onCornerWidthChange(h),s(h)}),u?o.jsx(ye.div,{...r,ref:t,style:{width:a,height:l,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Mv(e){return e?parseInt(e,10):0}function QU(e,t){const n=e/t;return isNaN(n)?0:n}function $b(e){const t=QU(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function tve(e,t,n,r="ltr"){const i=$b(n),a=i/2,s=t||a,l=i-s,c=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,h=n.content-n.viewport,d=r==="ltr"?[0,h]:[h*-1,0];return ZU([c,u],d)(e)}function $O(e,t,n="ltr"){const r=$b(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,s=t.content-t.viewport,l=a-r,c=n==="ltr"?[0,s]:[s*-1,0],u=Q1(e,c);return ZU([0,s],[0,l])(u)}function ZU(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function eW(e,t){return e>0&&e<t}var nve=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const a={left:e.scrollLeft,top:e.scrollTop},s=n.left!==a.left,l=n.top!==a.top;(s||l)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};
622function Lb(e,t){const n=tn(e),r=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),g.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Du(e,t){const n=tn(t);xn(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}var tW=WU,rve=HU,ive=JU;const $v=g.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(tW,{ref:r,className:oe("relative overflow-hidden",e),...n,children:[o.jsx(rve,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(nW,{}),o.jsx(ive,{})]}));$v.displayName=tW.displayName;const nW=g.forwardRef(({className:e,orientation:t="vertical",...n},r)=>o.jsx(jA,{ref:r,orientation:t,className:oe("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:o.jsx(XU,{className:"relative flex-1 rounded-full bg-border"})}));nW.displayName=jA.displayName;function ave(){return St({queryKey:["admin","kpis"],queryFn:async()=>{const e=new Date,t=new Date(e.getTime()-7*24*60*60*1e3),n=new Date(Date.now()-24*60*60*1e3).toISOString(),[r,i,a,s,l,c,u]=await Promise.all([X.from("users").select("id",{count:"exact",head:!0}),X.rpc("admin_active_users_count",{days_back:7}),X.from("users").select("id",{count:"exact",head:!0}).gte("created_at",t.toISOString()),X.from("work_items").select("id",{count:"exact",head:!0}).eq("status","published").gte("published_at",n),X.from("work_items").select("id",{count:"exact",head:!0}).eq("status","published").gte("published_at",t.toISOString()),X.from("action_log").select("*",{count:"exact",head:!0}).gte("created_at",n),X.from("action_log").select("*",{count:"exact",head:!0}).eq("status","error").gte("created_at",n)]),h=c.count??0,d=u.count??0,f=h>0?(d/h*100).toFixed(1):"0.0";return{totalUsers:r.count??0,activeUsers7d:i.data??0,newThisWeek:a.count??0,published24h:s.count??0,published7d:l.count??0,errorRate:f,errorCount:d,totalActions:h}},staleTime:3e4})}function sve(e=20){return St({queryKey:["admin","activity",e],queryFn:async()=>{const{data:t,error:n}=await X.from("action_log").select("*, user:users!action_log_user_id_fkey(full_name, business_name)").order("created_at",{ascending:!1}).limit(e);if(n)throw n;return t??[]},staleTime:15e3})}function ove(){return St({queryKey:["admin","quickStats"],queryFn:async()=>{const e=new Date,t=new Date(e.getTime()-24*60*60*1e3),n=new Date(e.getTime()-7*24*60*60*1e3),[r,i,a,s,l]=await Promise.all([X.from("whatsapp_conversations").select("id",{count:"exact",head:!0}).neq("conversation_state","idle"),X.from("social_accounts").select("id",{count:"exact",head:!0}).lt("token_expires_at",new Date(e.getTime()+7*24*60*60*1e3).toISOString()).gt("token_expires_at",e.toISOString()),X.from("messages").select("id",{count:"exact",head:!0}).gte("created_at",t.toISOString()),X.from("work_items").select("id",{count:"exact",head:!0}).eq("status","published").eq("video_status","complete").gte("created_at",n.toISOString()),X.from("work_items").select("id",{count:"exact",head:!0}).eq("status","published").neq("video_status","complete").gte("created_at",n.toISOString())]);return{stuckConversations:r.count??0,expiringTokens:i.count??0,messagesToday:a.count??0,reels7d:s.count??0,carousels7d:l.count??0}},staleTime:3e4})}function lve(e={}){const{search:t="",planFilter:n="",sortBy:r="created_at",sortDir:i="desc",page:a=1,pageSize:s=20}=e;return St({queryKey:["admin","users",t,n,r,i,a,s],queryFn:async()=>{let l=X.from("users").select("*, conversation:whatsapp_conversations(conversation_state, last_message_at, updated_at)",{count:"exact"});t&&(l=l.or(`full_name.ilike.%${t}%,email.ilike.%${t}%,business_name.ilike.%${t}%,phone.ilike.%${t}%`)),n&&(l=l.eq("plan",n)),l=l.order(r,{ascending:i==="asc"});const c=(a-1)*s;l=l.range(c,c+s-1);const{data:u,error:h,count:d}=await l;if(h)throw h;const f=u??[];let p=f;if(f.length>0){const v=f.map(b=>b.id),{data:m}=await X.rpc("admin_user_published_counts",{user_ids:v}),y=new Map((m??[]).map(b=>[b.user_id,Number(b.published_count)]));p=f.map(b=>({...b,published_count:y.get(b.id)??0}))}return{users:p,total:d??0}},staleTime:15e3})}function cve(e){return St({queryKey:["admin","userDetail",e],enabled:!!e,queryFn:async()=>{const[t,n,r,i,a]=await Promise.all([X.from("users").select("*").eq("id",e).single(),X.from("social_accounts_safe").select("*").eq("user_id",e),X.from("whatsapp_conversations").select("*").eq("user_id",e).maybeSingle(),X.from("onboarding_sessions").select("current_step, state, otp_verified, otp_attempts, otp_expires_at, signup_link_sent_at, signup_completed_at, instagram_connected_at, updated_at").eq("user_id",e).order("updated_at",{ascending:!1}).limit(1).maybeSingle(),X.from("work_items").select("status",{count:"exact"}).eq("user_id",e)]);if(t.error)throw t.error;const s=a.data??[],l={total:s.length,published:s.filter(c=>c.status==="published").length,approved:s.filter(c=>c.status==="approved").length,awaiting_approval:s.filter(c=>c.status==="awaiting_approval").length,failed:s.filter(c=>c.status==="failed").length,pending:s.filter(c=>c.status==="pending"||c.status==="generating"||c.status==="processing").length};return{user:t.data,socialAccounts:n.data??[],conversation:r.data,onboardingSession:i.data??null,workItemStats:l}},staleTime:1e4})}function uve(e,t,n=1,r=50){return St({queryKey:["admin","userMessages",e,t,n],enabled:!!(e||t),queryFn:async()=>{const i=(n-1)*r;let a=X.from("messages").select("*",{count:"exact"});e&&t?a=a.or(`user_id.eq.${e},phone.eq.${t}`):e?a=a.eq("user_id",e):a=a.eq("phone",t);const{data:s,error:l,count:c}=await a.order("created_at",{ascending:!1}).range(i,i+r-1);if(l)throw l;return{messages:(s??[]).reverse(),total:c??0}},staleTime:1e4})}function dve(e="all"){return St({queryKey:["admin","pronunciation",e],queryFn:async()=>{let t=X.from("pronunciation_dictionary").select("*").eq("status","active").order("created_at",{ascending:!1});e!=="all"&&(t=t.eq("language",e));const{data:n,error:r}=await t;if(r)throw r;return n??[]},staleTime:15e3})}function hve(e){return St({queryKey:["admin","userWorkItems",e],enabled:!!e,queryFn:async()=>{const{data:t,error:n}=await X.from("work_items").select("*, campaign:campaigns!work_items_campaign_id_fkey(name, topic, description, hero_images)").eq("user_id",e).order("created_at",{ascending:!1});if(n)throw n;const r=t??[];if(r.length===0)return r;const{data:i,error:a}=await X.from("action_log").select("action, details, created_at").eq("user_id",e).in("action",["story_clip_completed","web_content_generation_complete","web_content_generation_failed"]).order("created_at",{ascending:!1}).limit(200);if(a)throw a;const s=new Map;for(const l of i??[]){const c=l.details??{},u=typeof c.work_item_id=="string"?c.work_item_id:null;if(!u||s.has(u))continue;const h=typeof c.video_url=="string"?c.video_url:typeof c.image_url=="string"?c.image_url:null;h&&s.set(u,{url:h,source:l.action})}return r.map(l=>({...l,debugGeneratedPreview:s.get(l.id)??null}))},staleTime:1e4})}function _t(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 mo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const rW=6048e5,fve=864e5,Gm=43200,LO=1440;let pve={};function Jp(){return pve}function $f(e,t){var l,c,u,h;const n=Jp(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,i=_t(e),a=i.getDay(),s=(a<r?7:0)+a-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function Lv(e){return $f(e,{weekStartsOn:1}
622)}function iW(e){const t=_t(e),n=t.getFullYear(),r=mo(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Lv(r),a=mo(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Lv(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function VO(e){const t=_t(e);return t.setHours(0,0,0,0),t}function Vv(e){const t=_t(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function mve(e,t){const n=VO(e),r=VO(t),i=+n-Vv(n),a=+r-Vv(r);return Math.round((i-a)/fve)}function gve(e){const t=iW(e),n=mo(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Lv(n)}function Og(e,t){const n=_t(e),r=_t(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function vve(e){return mo(e,Date.now())}function yve(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bve(e){if(!yve(e)&&typeof e!="number")return!1;const t=_t(e);return!isNaN(Number(t))}function xve(e,t){const n=_t(e),r=_t(t),i=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return i*12+a}function wve(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function Sve(e,t){return+_t(e)-+_t(t)}function jve(e){const t=_t(e);return t.setHours(23,59,59,999),t}function _ve(e){const t=_t(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Nve(e){const t=_t(e);return+jve(t)==+_ve(t)}function Pve(e,t){const n=_t(e),r=_t(t),i=Og(n,r),a=Math.abs(xve(n,r));let s;if(a<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*a);let l=Og(n,r)===-i;Nve(_t(e))&&a===1&&Og(e,r)===1&&(l=!1),s=i*(a-Number(l))}return s===0?0:s}function Ave(e,t,n){const r=Sve(e,t)/1e3;return wve(n==null?void 0:n.roundingMethod)(r)}function Cve(e){const t=_t(e),n=mo(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Eve={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"}},kve=(e,t,n)=>{let r;const i=Eve[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function lw(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Tve={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ove={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ive={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rve={date:lw({formats:Tve,defaultWidth:"full"}),time:lw({formats:Ove,defaultWidth:"full"}),dateTime:lw({formats:Ive,defaultWidth:"full"})},Dve={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Mve=(e,t,n,r)=>Dve[e];function rh(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;i=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const $ve={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Lve={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vve={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"]},Fve={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
622ay","Saturday"]},Bve={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"}},zve={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"}},Uve=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Wve={ordinalNumber:Uve,era:rh({values:$ve,defaultWidth:"wide"}),quarter:rh({values:Lve,defaultWidth:"wide",argumentCallback:e=>e-1}),month:rh({values:Vve,defaultWidth:"wide"}),day:rh({values:Fve,defaultWidth:"wide"}),dayPeriod:rh({values:Bve,defaultWidth:"wide",formattingValues:zve,defaultFormattingWidth:"wide"})};function ih(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Hve(l,d=>d.test(s)):qve(l,d=>d.test(s));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const h=t.slice(s.length);return{value:u,rest:h}}}function qve(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Hve(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Gve(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const l=t.slice(i.length);return{value:s,rest:l}}}const Kve=/^(\d+)(th|st|nd|rd)?/i,Yve=/\d+/i,Xve={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},Jve={any:[/^b/i,/^(a|c)/i]},Qve={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Zve={any:[/1/i,/2/i,/3/i,/4/i]},eye={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},tye={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]},nye={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},rye={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]},iye={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},aye={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}},sye={ordinalNumber:Gve({matchPattern:Kve,parsePattern:Yve,valueCallback:e=>parseInt(e,10)}),era:ih({matchPatterns:Xve,defaultMatchWidth:"wide",parsePatterns:Jve,defaultParseWidth:"any"}),quarter:ih({matchPatterns:Qve,defaultMatchWidth:"wide",parsePatterns:Zve,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ih({matchPatterns:eye,defaultMatchWidth:"wide",parsePatterns:tye,defaultParseWidth:"any"}),day:ih({matchPatterns:nye,defaultMatchWidth:"wide",parsePatterns:rye,defaultParseWidth:"any"}),dayPeriod:ih({matchPatterns:iye,defaultMatchWidth:"any",parsePatterns:aye,defaultParseWidth:"any"})},aW={code:"en-US",formatDistance:kve,formatLong:Rve,formatRelative:Mve,localize:Wve,match:sye,options:{weekStartsOn:0,firstWeekContainsDate:1}};function oye(e){const t=_t(e);return mve(t,Cve(t))+1}function lye(e){const t=_t(e),n=+Lv(t)-+gve(t);return Math.round(n/rW)+1}function sW(e,t){var h,d,f,p;const n=_t(e),r=n.getFullYear(),i=Jp(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=mo(e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const l=$f(s,t),c=mo(e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const u=$f(c,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function cye(e,t){var l,c,u,h;const n=Jp(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,i=sW(e,t),a=mo(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),$f(a,t)}function uye(e,t){const n=_t(e),r=+$f(n,t)-+cye(n,t);return Math.round(r/rW)+1}function ht(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ss={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ht(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ht(n+1,2)},d(e,t){return ht(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ht(e.getHours()%12||12,t.length)},H(e,t){return ht(e.getHours(),t.length)},m(e,t){return ht(e.getMinutes(),t.length)},s(e,t){return ht(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ht(i,t.length)}},pc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},FO={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Ss.y(e,t)},Y:function(e,t,n,r){const i=sW(e,r),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return ht(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):ht(a,t.length)},R:function(e,t){const n=iW(e);return ht(n,t.length)},u:function(e,t){const n=e.getFullYear();return ht(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ht(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ht(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ss.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ht(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=uye(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ht(i,t.length)},I:function(e,t,n){const r=lye(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ht(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ss.d(e,t)},D:function(e,t,n){const r=oye(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ht(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ht(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ht(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return ht(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=pc.noon:r===0?i=pc.midnight:i=r/12>
vendor: 4,426 bytes, line 622
622=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=pc.evening:r>=12?i=pc.afternoon:r>=4?i=pc.morning:i=pc.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ss.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ss.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ht(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ht(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ss.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ss.s(e,t)},S:function(e,t){return Ss.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return zO(r);case"XXXX":case"XX":return Fo(r);case"XXXXX":case"XXX":default:return Fo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return zO(r);case"xxxx":case"xx":return Fo(r);case"xxxxx":case"xxx":default:return Fo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+BO(r,":");case"OOOO":default:return"GMT"+Fo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+BO(r,":");case"zzzz":default:return"GMT"+Fo(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ht(r,t.length)},T:function(e,t,n){const r=e.getTime();return ht(r,t.length)}};function BO(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+ht(a,2)}function zO(e,t){return e%60===0?(e>0?"-":"+")+ht(Math.abs(e)/60,2):Fo(e,t)}function Fo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=ht(Math.trunc(r/60),2),a=ht(r%60,2);return n+i+t+a}const UO=(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"})}},oW=(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"})}},dye=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return UO(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",UO(r,t)).replace("{{time}}",oW(i,t))},hye={p:oW,P:dye},fye=/^D+$/,pye=/^Y+$/,mye=["D","DD","YY","YYYY"];function gye(e){return fye.test(e)}function vye(e){return pye.test(e)}function yye(e,t,n){const r=bye(e,t,n);if(console.warn(r),mye.includes(e))throw new RangeError(r)}function bye(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const xye=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Sye=/^'([^]*?)'?$/,jye=/''/g,_ye=/[a-zA-Z]/;function Vb(e,t,n){var h,d,f,p;const r=Jp(),i=r.locale??aW,a=r.firstWeekContainsDate??((d=(h=r.locale)==null?void 0:h.options)==null?void 0:d.firstWeekContainsDate)??1,s=r.weekStartsOn??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,l=_t(e);if(!bve(l))throw new RangeError("Invalid time value");let c=t.match(wye).map(v=>{const m=v[0];if(m==="p"||m==="P"){const y=hye[m];return y(v,i.formatLong)}return v}).join("").match(xye).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const m=v[0];if(m==="'")return{isToken:!1,value:Nye(v)};if(FO[m])return{isToken:!0,value:v};
622if(m.match(_ye))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(c=i.localize.preprocessor(l,c));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return c.map(v=>{if(!v.isToken)return v.value;const m=v.value;(vye(m)||gye(m))&&yye(m,t,String(e));const y=FO[m[0]];return y(l,m,i.localize,u)}).join("")}function Nye(e){const t=e.match(Sye);return t?t[1].replace(jye,"'"):e}function Pye(e,t,n){const r=Jp(),i=(n==null?void 0:n.locale)??r.locale??aW,a=2520,s=Og(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:s});let c,u;s>0?(c=_t(t),u=_t(e)):(c=_t(e),u=_t(t));const h=Ave(u,c),d=(Vv(u)-Vv(c))/1e3,f=Math.round((h-d)/60);let p;if(f<2)return n!=null&&n.includeSeconds?h<5?i.formatDistance("lessThanXSeconds",5,l):h<10?i.formatDistance("lessThanXSeconds",10,l):h<20?i.formatDistance("lessThanXSeconds",20,l):h<40?i.formatDistance("halfAMinute",0,l):h<60?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",1,l):f===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",f,l);if(f<45)return i.formatDistance("xMinutes",f,l);if(f<90)return i.formatDistance("aboutXHours",1,l);if(f<LO){const v=Math.round(f/60);return i.formatDistance("aboutXHours",v,l)}else{if(f<a)return i.formatDistance("xDays",1,l);if(f<Gm){const v=Math.round(f/LO);return i.formatDistance("xDays",v,l)}else if(f<Gm*2)return p=Math.round(f/Gm),i.formatDistance("aboutXMonths",p,l)}if(p=Pve(u,c),p<12){const v=Math.round(f/Gm);return i.formatDistance("xMonths",v,l)}else{const v=p%12,m=Math.trunc(p/12);return v<3?i.formatDistance("aboutXYears",m,l):v<9?i.formatDistance("overXYears",m,l):i.formatDistance("almostXYears",m+1,l)}}function Mn(e,t){return Pye(e,vve(e),t)}const Aye=()=>{const{data:e,isLoading:t}=ave(),{data:n,isLoading:r}=sve(25),{data:i,isLoading:a}=ove(),s=[{label:"Total Users",value:e==null?void 0:e.totalUsers,icon:Z3,color:"text-blue-600"},{label:"Active Users (7d)",value:e==null?void 0:e.activeUsers7d,icon:pf,color:"text-green-600"},{label:"New This Week",value:e==null?void 0:e.newThisWeek,icon:ON,color:"text-purple-600"},{label:"Published 24h / 7d",value:e?`${e.published24h} / ${e.published7d}`:void 0,icon:VS,color:"text-amber-600"},{label:"Error Rate (24h)",value:e?`${e.errorRate}%`:void 0,subtitle:e?`${e.errorCount} of ${e.totalActions} actions`:void 0,icon:_l,color:e&&parseFloat(e.errorRate)>10?"text-red-600":e&&parseFloat(e.errorRate)>5?"text-amber-600":"text-green-600"}],l=[{label:"Stuck Conversations",value:i==null?void 0:i.stuckConversations,icon:od,alert:((i==null?void 0:i.stuckConversations)??0)>0},{label:"Expiring Tokens",value:i==null?void 0:i.expiringTokens,icon:_l,alert:((i==null?void 0:i.expiringTokens)??0)>0},{label:"Messages Today",value:i==null?void 0:i.messagesToday,icon:hl},{label:"Content Mix (7d)",value:i?`${i.reels7d}R / ${i.carousels7d}C`:void 0,icon:g9}];return o.jsxs("div",{className:"space-y-6",children:[o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-4",children:s.map(c=>o.jsx(ze,{children:o.jsxs(Ue,{className:"p-4",children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:c.label}),o.jsx(c.icon,{className:`h-4 w-4 ${c.color}`})]}),t?o.jsx(De,{className:"h-8 w-20"}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-2xl font-bold",children:c.value}),c.subtitle&&o.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:c.subtitle})]})]})},c.label))}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[o.jsxs(ze,{className:"lg:col-span-2",children:[o.jsx(pt,{className:"pb-3",children:o.jsx(mt,{className:"text-base",children:"Recent Activity"})}),o.jsx(Ue,{className:"p-0",children:o.jsx($v,{className:"h-[400px]",children:o.jsx("div",{className:"divide-y",children:r?Array.from({length:8}).map((c,u)=>o.jsxs("div",{className:"p-4 flex items-center gap-3",children:[o.jsx(De,{className:"h-5 w-16"}),o.jsx(De,{className:"h-4 w-40"}),o.jsx(De,{className:"h-4 w-24 ml-auto"})]},u)):(n??[]).map(c=>{var u;return o.jsxs("div",{className:"px-4 py-3 flex items-center gap-3 text-sm",children:[o.jsx(Se,{variant:c.status==="error"?"destructive":c.status==="success"?"default":"secondary",className:"text-[10px] min-w-[52px] justify-center",children:c.status??"info"}),o.jsx("span",{className:"font-medium truncate max-w-[160px]",children:c.action}),o.jsx("span",{className:"text-muted-foreground truncate max-w-[120px]",children:((u=c.user)==null?void 0:u.full_name)||" - "}),c.source&&o.jsx("span",{className:"text-xs text-muted-foreground hidden sm:block",children:c.source}),o.jsx("span",{className:"text-xs text-muted-foreground ml-auto whitespace-nowrap",children:Mn(new Date(c.created_at),{addSuffix:!0})})]},c.id)})})})})]}),o.jsx("div",{className:"space-y-4",children:l.map(c=>o.jsx(ze,{children:o.jsxs(Ue,{className:"p-4 flex items-center gap-3",children:[o.jsx(c.icon,{className:`h-5 w-5 ${c.alert?"text-amber-500":"text-muted-foreground"}`}),o.jsxs("div",{className:"flex-1",children:[o.jsx("p",{className:"text-xs text-muted-foreground",children:c.label}),a?o.jsx(De,{className:"h-6 w-12 mt-1"}):o.jsx("p",{className:`text-lg font-bold ${c.alert?"text-amber-600":""}`,children:c.value})]})]})},c.label))})]})]})},Cye={free:"bg-gray-100 text-gray-700 border-gray-200",basic:"bg-blue-50 text-blue-700 border-blue-200",visible:"bg-purple-50 text-purple-700 border-purple-200",always:"bg-green-50 text-green-700 border-green-200"},Eye=()=>{const e=zn(),[t,n]=g.useState(""),[r,i]=g.useState(""),[a,s]=g.useState(""),[l,c]=g.useState(1),u=20;g.useEffect(()=>{const y=setTimeout(()=>i(t),300);return()=>clearTimeout(y)},[t]),g.useEffect(()=>{c(1)},[r,a]);const{data:h,isLoading:d}=lve({search:r,planFilter:a,page:l,pageSize:u}),f=(h==null?void 0:h.users)??[],p=(h==null?void 0:h.total)??0,v=(l-1)*u+1,m=Math.min(l*u,p);return o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[o.jsxs("div",{className:"relative flex-1",children:[o.jsx(TN,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),o.jsx(Bt,{placeholder:"Search users...",value:t,onChange:y=>n(y.target.value),className:"pl-9"})]}),o.jsxs(_r,{value:a,onValueChange:y=>s(y==="all"?"":y),children:[o.jsx(lr,{className:"w-[140px]",children:o.jsx(Nr,{placeholder:"All Plans"})}),o.jsxs(cr,{children:[o.jsx(Ke,{value:"all",children:"All Plans"}),o.jsx(Ke,{value:"free",children:"Free"}),o.jsx(Ke,{value:"basic",children:"Basic"}),o.jsx(Ke,{value:"visible",children:"Visible"}),o.jsx(Ke,{value:"always",children:"Always"})]})]})]}),o.jsx(ze,{children:o.jsxs(Ue,{className:"p-0",children:[o.jsxs("div",{className:"hidden md:grid grid-cols-[1fr_120px_80px_60px_80px_120px] gap-4 px-4 py-2 bg-muted/50 border-b text-xs font-medium text-muted-foreground",children:[o.jsx("span",{children:"User"}),o.jsx("span",{children:"Phone"}),o.jsx("span",{children:"Plan"}),o.jsx("span",{children:"Posts"}),o.jsx("span",{children:"Status"}),o.jsx("span",{children:"Last Active"})]}),o.jsx("div",{className:"divide-y",children:d?Array.from({length:8}).map((y,b)=>o.jsxs("div",{className:"p-4 flex items-center gap-4",children:[o.jsx(De,{className:"h-10 w-10 rounded-full"}),o.jsxs("div",{className:"flex-1 space-y-2",children:[o.jsx(De,{className:"h-4 w-40"}),o.jsx(De,{className:"h-3 w-24"})]}),o.jsx(De,{className:"h-5 w-16"})]},b)):f.length===0?o.jsx("div",{className:"p-8 text-center text-muted-foreground",children:"No users found"}):f.map(y=>{var S,j,N,_,P,A;const b=(j=(S=y.conversation)==null?void 0:S[0])==null?void 0:j.conversation_state,w=b&&b!=="idle",x=y.plan||"free";return o.jsxs("div",{className:"p-4 md:grid md:grid-cols-[1fr_120px_80px_60px_80px_120px] md:gap-4 md:items-center flex items-center gap-4 hover:bg-muted/50 cursor-pointer transition-colors",onClick:()=>e(`/admin/users/${y.id}`),children:[o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("p",{className:"font-medium truncate",children:y.full_name||y.email}),w&&o.jsx("span",{className:"h-2 w-2 rounded-full bg-green-500 animate-pulse flex-shrink-0"})]}),o.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y.business_name||y.email})]}),o.jsx("span",{className:"text-sm text-muted-foreground hidden md:block truncate",children:y.phone||" - "}),o.jsx(Se,{variant:"outline",className:`text-xs ${Cye[x]||""}`,children:x}),o.jsx("span",{className:"text-sm text-muted-foreground hidden md:block",children:y.published_count??0}),o.jsx("span",{className:"hidden md:block",children:w?o.jsx(Se,{variant:"secondary",className:"text-[10px]",children:"Active"}):o.jsx("span",{className:"text-xs text-muted-foreground",children:"Idle"})}),o.jsx("span",{className:"text-xs text-muted-foreground hidden md:block whitespace-nowrap",children:Mn(new Date(((_=(N=y.conversation)==null?void 0:N[0])==null?void 0:_.updated_at)||((A=(P=y.conversation)==null?void 0:P[0])==null?void 0:A.last_message_at)||y.updated_at),{addSuffix:!0})})]},y.id)})})]})}),p>0&&o.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[o.jsxs("span",{children:["Showing ",v,"â",m," of ",p," users"]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx(K,{variant:"outline",size:"sm",disabled:l<=1,onClick:()=>c(l-1),children:"Previous"}),o.jsx(K,{variant:"outline",size:"sm",disabled:m>=p,onClick:()=>c(l+1),children:"Next"})]})]})]})};var Fb="Switch",[kye,_ze]=Fn(Fb),[Tye,Oye]=kye(Fb),lW=g.forwardRef((e,t)=>
vendor: 2,279 bytes, line 622
622{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:s,disabled:l,value:c="on",onCheckedChange:u,form:h,...d}=e,[f,p]=g.useState(null),v=Me(t,x=>p(x)),m=g.useRef(!1),y=f?h||!!f.closest("form"):!0,[b,w]=pi({prop:i,defaultProp:a??!1,onChange:u,caller:Fb});return o.jsxs(Tye,{scope:n,checked:b,disabled:l,children:[o.jsx(ye.button,{type:"button",role:"switch","aria-checked":b,"aria-required":s,"data-state":hW(b),"data-disabled":l?"":void 0,disabled:l,value:c,...d,ref:v,onClick:le(e.onClick,x=>{w(S=>!S),y&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})}),y&&o.jsx(dW,{control:f,bubbles:!m.current,name:r,value:c,checked:b,required:s,disabled:l,form:h,style:{transform:"translateX(-100%)"}})]})});lW.displayName=Fb;var cW="SwitchThumb",uW=g.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=Oye(cW,n);return o.jsx(ye.span,{"data-state":hW(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});uW.displayName=cW;var Iye="SwitchBubbleInput",dW=g.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},a)=>{const s=g.useRef(null),l=Me(s,a),c=dA(n),u=BN(t);return g.useEffect(()=>{const h=s.current;if(!h)return;const d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(c!==n&&p){const v=new Event("click",{bubbles:r});p.call(h,n),h.dispatchEvent(v)}},[c,n,r]),o.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:l,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});dW.displayName=Iye;function hW(e){return e?"checked":"unchecked"}var fW=lW,Rye=uW;const PA=g.forwardRef(({className:e,...t},n)=>o.jsx(fW,{className:oe("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:n,children:o.jsx(Rye,{className:oe("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));
622PA.displayName=fW.displayName;const WO=new Map,Dye=50*60*1e3;function Mye(e){const[t,n]=g.useState(null),[r,i]=g.useState(!1),[a,s]=g.useState(null);return g.useEffect(()=>{if(!e){n(null);return}const l=WO.get(e);if(l&&l.expiresAt>Date.now()){n(l.url);return}(async()=>{var u;i(!0),s(null);try{const{data:h,error:d}=await X.functions.invoke("get-signed-url",{body:{storage_paths:[e],expiry_seconds:3600}});if(d)throw d;const f=(u=h==null?void 0:h.signed_urls)==null?void 0:u[e];if(f)WO.set(e,{url:f,expiresAt:Date.now()+Dye}),n(f);else throw new Error("No signed URL returned")}catch(h){console.error("Error fetching signed URL:",h),s(h instanceof Error?h:new Error("Failed to fetch signed URL")),n(null)}finally{i(!1)}})()},[e]),{signedUrl:t,loading:r,error:a}}function $ye(e){if(!e)return null;if(!e.startsWith("http"))return e;const t=e.match(/\/storage\/v1\/object\/(?:public|sign)\/campaign-media\/(.+?)(?:\?|$)/);return t?t[1]:null}const Lye=[".mp4",".mov",".webm",".m4v",".avi",".mkv"];function pW(e){const t=e.toLowerCase().split("?")[0].split("#")[0];return Lye.some(n=>t.endsWith(n))}function Vye(e){for(const t of e)if(t&&!pW(t))return t;return null}function Fye(e){var n,r;let t=null;if(e.caption)t=e.caption;else{const i=e.platform_content;i&&(t=((n=i.instagram_carousel)==null?void 0:n.caption)||((r=i.instagram_reel)==null?void 0:r.caption)||null)}return t?t.replace(/#[\p{L}\p{N}_]+/gu,"").replace(/\s{2,}/g," ").trim():null}function Bye(e){var r,i,a,s;if(e.hashtags&&e.hashtags.length>0)return e.hashtags;const t=e.platform_content;if(t){const l=((r=t.instagram_carousel)==null?void 0:r.hashtags)||((i=t.instagram_reel)==null?void 0:i.hashtags);if(l)return l.split(/\s+/).filter(Boolean)}const n=e.caption||((a=t==null?void 0:t.instagram_carousel)==null?void 0:a.caption)||((s=t==null?void 0:t.instagram_reel)==null?void 0:s.caption);if(n){const l=n.match(/#[\p{L}\p{N}_]+/gu);if(l&&l.length>0)return l}return[]}function zye(e){var s,l,c,u,h,d,f,p,v,m,y,b;const t=Vye([...e.generated_media_urls||[],...e.source_media_urls||[]]);if(t)return t;if(e.video_thumbnail_url)return e.video_thumbnail_url;const n=e.generated_media;if((s=n==null?void 0:n.images)!=null&&s[0])return n.images[0];if((u=(c=(l=n==null?void 0:n.carousel)==null?void 0:l.slides)==null?void 0:c[0])!=null&&u.url)return n.carousel.slides[0].url;const r=((h=n==null?void 0:n.video)==null?void 0:h.thumbnail_url)||((d=n==null?void 0:n.video)==null?void 0:d.cover_url)||((f=n==null?void 0:n.video)==null?void 0:f.poster_url);if(r)return r;if(n!=null&&n.image_url&&!pW(n.image_url))return n.image_url;const i=e.platform_content;if((p=i==null?void 0:i.instagram_story)!=null&&p.image_url)return i.instagram_story.image_url;if((v=i==null?void 0:i.instagram_carousel)!=null&&v.image_url)return i.instagram_carousel.image_url;if((m=i==null?void 0:i.instagram_reel)!=null&&m.video_thumbnail_url)return i.instagram_reel.video_thumbnail_url;const a=e.hero_images;return(y=a==null?void 0:a[0])!=null&&y.url?a[0].url:(b=a==null?void 0:a[0])!=null&&b.public_url?a[0].public_url:null}const Uye={sm:"w-12 h-12",md:"w-20 h-20",lg:"w-32 h-32",xl:"w-40 h-40","2xl":"w-72 h-72","3xl":"w-[28rem] h-[28rem]"},Wye={sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10","2xl":"h-14 w-14","3xl":"h-20 w-20"},qye=({sourceMediaUrls:e,generatedMediaUrls:t,generatedMedia:n,platformContent:r,heroImages:i,videoThumbnailUrl:a,size:s="sm"})=>{const l=zye({generated_media_urls:t,source_media_urls:e,generated_media:n,platform_content:r,hero_images:i,video_thumbnail_url:a}),c=g.useMemo(()=>l?l.startsWith("http")?$ye(l):l:null,[l]),{signedUrl:u,loading:h}=Mye(c),d=g.useMemo(()=>c?u:l!=null&&l.startsWith("http")?l:null,[c,u,l]);return o.jsx("div",{className:`${Uye[s]} rounded-lg bg-muted flex items-center justify-center overflow-hidden flex-shrink-0`,children:h?o.jsx("div",{className:"w-full h-full bg-muted animate-pulse"}):d?o.jsx("img",{src:d,alt:"",className:"w-full h-full object-cover",onError:f=>{f.currentTarget.style.display="none"}}):o.jsx(ib,{className:`${Wye[s]} text-muted-foreground`})})};function Hye(e){if(typeof e=="string")return e;if(!e||typeof e!="object")return null;const t=e;return t.url||t.public_url||t.cloudinary_url||t.storage_path||null}function Gye(e){return!(e!=null&&e.hero_images)||!Array.isArray(e.hero_images)?[]:e.hero_images.map(Hye).filter((t,
622n,r)=>!!t&&r.indexOf(t)===n)}const Kye={published:"bg-green-50 text-green-700 border-green-200",failed:"bg-red-50 text-red-700 border-red-200",pending:"bg-gray-50 text-gray-700 border-gray-200",awaiting_approval:"bg-yellow-50 text-yellow-700 border-yellow-200",generating:"bg-blue-50 text-blue-700 border-blue-200",processing:"bg-blue-50 text-blue-700 border-blue-200",approved:"bg-teal-50 text-teal-700 border-teal-200",cancelled:"bg-gray-50 text-gray-600 border-gray-200"},Yye=["free","basic","visible","always"],Km=({label:e,ok:t,detail:n})=>o.jsxs("div",{className:`rounded-md border p-2.5 ${t?"bg-green-50 border-green-200":"bg-muted border-border"}`,children:[o.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium",children:[t?o.jsx(Ip,{className:"h-3.5 w-3.5 text-green-600"}):o.jsx(Rp,{className:"h-3.5 w-3.5 text-muted-foreground"}),o.jsx("span",{children:e})]}),n&&o.jsx("p",{className:"text-[11px] text-muted-foreground mt-1 truncate",title:n,children:n})]}),mc=({icon:e,label:t,value:n})=>o.jsxs("div",{className:"rounded-md border border-border p-2 text-center",children:[o.jsxs("div",{className:"flex items-center justify-center gap-1 text-muted-foreground text-[10px]",children:[e,o.jsx("span",{children:t})]}),o.jsx("p",{className:"text-lg font-semibold",children:n})]}),Io=({label:e,value:t,multiline:n})=>o.jsxs("div",{className:`grid ${n?"grid-cols-1 sm:grid-cols-[100px_1fr]":"grid-cols-[100px_1fr]"} gap-2 text-sm`,children:[o.jsxs("span",{className:"text-muted-foreground text-xs",children:[e,":"]}),o.jsx("span",{className:n?"whitespace-pre-wrap break-words":"truncate",children:t})]}),Xye=()=>{var $,L;const{userId:e}=l5(),[t,n]=g.useState(1),[r,i]=g.useState(!1),[a,s]=g.useState(!1),[l,c]=g.useState(!1),u=xo(),{data:h,isLoading:d}=cve(e),{data:f,isLoading:p}=uve(e,($=h==null?void 0:h.user)==null?void 0:$.phone,t),{data:v,isLoading:m}=hve(e),y=async()=>{if(!S||!e)return;const T=S.user_type==="test"?"customer":"test";i(!0);const{error:R}=await X.from("users").update({user_type:T}).eq("id",e);i(!1),R?Oe.error("Failed to update user type"):(Oe.success(`User set to ${T}`),u.invalidateQueries({queryKey:["admin","userDetail",e]}))},b=async T=>{if(e){s(!0);try{const{data:R,error:z}=await X.functions.invoke("admin-manage-test-user",{body:{action:"set_plan",user_id:e,plan:T}});if(z)throw z;if(!(R!=null&&R.success))throw new Error((R==null?void 0:R.error)||"Failed");Oe.success(`Plan set to ${T}`),u.invalidateQueries({queryKey:["admin","userDetail",e]})}catch(R){Oe.error(R.message||"Failed to set plan")}finally{s(!1)}}},w=async()=>{if(e){c(!0);try{const{data:T,error:R}=await X.functions.invoke("admin-manage-test-user",{body:{action:"reset_usage",user_id:e}});if(R)throw R;if(!(T!=null&&T.success))throw new Error((T==null?void 0:T.error)||"Failed");Oe.success("Usage counters reset"),u.invalidateQueries({queryKey:["admin","userDetail",e]})}catch(T){Oe.error(T.message||"Failed to reset usage")}finally{c(!1)}}},x=g.useRef(null),S=h==null?void 0:h.user,j=h==null?void 0:h.conversation,N=(h==null?void 0:h.socialAccounts)??[],_=h==null?void 0:h.onboardingSession,P=(h==null?void 0:h.workItemStats)??{total:0,published:0,approved:0,awaiting_approval:0,failed:0,pending:0},A=(f==null?void 0:f.messages)??[],k=(f==null?void 0:f.total)??0,C=v??[];if(g.useEffect(()=>{var T;A.length>0&&((T=x.current)==null||T.scrollIntoView({behavior:"instant"}))},[A]),d)return o.jsxs("div",{className:"space-y-4",children:[o.jsx(De,{className:"h-6 w-32"}),o.jsx(De,{className:"h-48 w-full"})]});if(!S)return o.jsx("div",{className:"text-muted-foreground p-8 text-center",children:"User not found"});const E=S.plan||"free",I=j==null?void 0:j.conversation_state,O=I&&I!=="idle",M=S.user_type==="test";return o.jsxs("div",{className:"space-y-6 overflow-x-hidden px-4 max-w-7xl",children:[o.jsxs(se,{to:"/admin/users",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[o.jsx(Kr,{className:"h-4 w-4"})," Back to Users"]}),o.jsx(ze,{className:"overflow-hidden",children:o.jsx(Ue,{className:"p-6",children:o.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[o.jsxs("div",{className:"flex-1 min-w-0 space-y-3",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("h2",{className:"text-xl font-bold truncate",children:S.full_name||"Unnamed"}),O&&o.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-green-500 animate-pulse flex-shrink-0",title:I}),o.jsx(Se,{variant:"outline",className:"text-xs",children:E}),o.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[o.jsx(v9,{className:`h-3.5 w-3.5 ${M?"text-orange-500":"text-muted-foreground"}`}),o.jsx("span",{className:"text-xs text-muted-foreground",children:"Test"}),o.jsx(PA,{checked:M,onCheckedChange:y,disabled:r,className:"scale-90"})]})]}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm",children:[o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[o.jsx(_9,{className:"h-3.5 w-3.5 flex-shrink-0"})," ",o.jsx("span",{className:"truncate",children:S.phone||" - "})]}),o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[o.jsx(co,{className:"h-3.5 w-3.5 flex-shrink-0"})," ",o.jsx("span",{className:"truncate",children:S.email||" - "})]}),o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[o.jsx(W3,{className:"h-3.5 w-3.5 flex-shrink-0"}
622)," ",S.language," / ",S.content_language]}),o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[o.jsx(Op,{className:"h-3.5 w-3.5 flex-shrink-0"})," Member since ",Vb(new Date(S.created_at),"MMM d, yyyy")]}),o.jsxs("div",{className:"text-muted-foreground",children:["Posts: ",S.posts_remaining??0," / ",S.posts_monthly_limit??0]})]}),S.business_name&&o.jsxs("p",{className:"text-sm",children:[o.jsx("span",{className:"text-muted-foreground",children:"Business:"})," ",S.business_name]}),S.business_type&&o.jsxs("p",{className:"text-sm",children:[o.jsx("span",{className:"text-muted-foreground",children:"Business Type:"})," ",S.business_type||" - "]}),o.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[o.jsx("span",{className:"text-muted-foreground",children:"Conversation State:"}),(()=>{const T=I||"no conversation",R=T==="idle"||T==="no conversation";return o.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[o.jsx("span",{className:`h-2 w-2 rounded-full inline-block ${R?"bg-green-500":"bg-yellow-500"}`}),o.jsx("span",{children:T})]})})()]})]}),o.jsxs("div",{className:"space-y-2 min-w-0",children:[o.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Connected Accounts"}),N.length===0?o.jsx("p",{className:"text-xs text-muted-foreground",children:"None"}):N.map(T=>{const R=T.token_expires_at?new Date(T.token_expires_at):null,z=new Date(Date.now()+7*24*60*60*1e3),F=R&&R<z;return o.jsxs("div",{className:"flex items-center gap-2 text-sm flex-wrap",children:[o.jsx(Se,{variant:"secondary",className:"text-[10px]",children:T.platform}),o.jsx("span",{className:"truncate",children:T.username||T.platform_user_id}),o.jsx(Se,{variant:"outline",className:`text-[10px] ml-auto ${T.is_active?"bg-green-50 text-green-700":"bg-red-50 text-red-700"}`,children:T.is_active?"Active":"Inactive"}),F&&o.jsxs("span",{className:"flex items-center gap-1 text-orange-600 text-[11px]",children:[o.jsx(x9,{className:"h-3 w-3"}),"Expires ",Mn(R,{addSuffix:!0})]})]},T.id)})]})]})})}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsx(mt,{className:"text-base",children:"Onboarding & Activity"})}),o.jsxs(Ue,{className:"space-y-4",children:[o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:[o.jsx(Km,{label:"WhatsApp connected",ok:!!S.whatsapp_verified,detail:S.phone||(_!=null&&_.otp_verified?"verified":_?`OTP ${_.state||"pending"} (attempts: ${_.otp_attempts??0})`:"no session")}),o.jsx(Km,{label:"Business info",ok:!!S.business_background,detail:S.business_background?"filled":"missing"}),o.jsx(Km,{label:"Instagram connected",ok:N.some(T=>T.platform==="instagram"&&T.is_active),detail:((L=N.find(T=>T.platform==="instagram"&&T.is_active))==null?void 0:L.username)||"not connected"}),o.jsx(Km,{label:"Onboarding completed",ok:!!S.onboarding_completed,detail:(_==null?void 0:_.current_step)||(S.onboarding_completed?"done":"incomplete")}
622)]}),o.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-2 pt-2 border-t",children:[o.jsx(mc,{icon:o.jsx(U3,{className:"h-3.5 w-3.5"}),label:"Posts created",value:P.total}),o.jsx(mc,{icon:o.jsx(Dp,{className:"h-3.5 w-3.5 text-green-600"}),label:"Published",value:P.published}),o.jsx(mc,{icon:o.jsx(Ip,{className:"h-3.5 w-3.5 text-teal-600"}),label:"Approved",value:P.approved}),o.jsx(mc,{icon:o.jsx($h,{className:"h-3.5 w-3.5 text-yellow-600"}),label:"Awaiting approval",value:P.awaiting_approval}),o.jsx(mc,{icon:o.jsx(ib,{className:"h-3.5 w-3.5 text-blue-600"}),label:"In progress",value:P.pending}),o.jsx(mc,{icon:o.jsx(Rp,{className:"h-3.5 w-3.5 text-red-600"}),label:"Failed",value:P.failed})]}),(S.business_background||S.business_name||S.business_category||S.target_audience||S.unique_selling_point)&&o.jsxs("div",{className:"pt-2 border-t space-y-1.5 text-sm",children:[o.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Business details"}),S.business_name&&o.jsx(Io,{label:"Name",value:S.business_name}),S.business_type&&o.jsx(Io,{label:"Type",value:S.business_type}),S.business_category&&o.jsx(Io,{label:"Category",value:S.business_category}),S.business_background&&o.jsx(Io,{label:"Background",value:S.business_background,multiline:!0}),S.target_audience&&o.jsx(Io,{label:"Audience",value:S.target_audience,multiline:!0}),S.unique_selling_point&&o.jsx(Io,{label:"USP",value:S.unique_selling_point,multiline:!0}),S.brand_tone&&o.jsx(Io,{label:"Tone",value:S.brand_tone})]})]})]}),M&&o.jsxs(ze,{className:"border-orange-200 bg-orange-50/30",children:[o.jsx(pt,{className:"pb-3",children:o.jsxs(mt,{className:"text-base flex items-center gap-2",children:[o.jsx(iv,{className:"h-4 w-4 text-orange-600"}),"Test User Controls"]})}),o.jsxs(Ue,{className:"space-y-4",children:[o.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[o.jsx("span",{className:"text-sm font-medium",children:"Set Plan:"}),Yye.map(T=>o.jsx(K,{size:"sm",variant:E===T?"default":"outline",onClick:()=>b(T),disabled:a||E===T,className:"capitalize",children:T},T))]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsxs(K,{size:"sm",variant:"outline",onClick:w,disabled:l,className:"gap-1.5",children:[o.jsx(rv,{className:"h-3.5 w-3.5"}),"Reset Usage Counters"]}),o.jsx("span",{className:"text-xs text-muted-foreground",children:"Resets carousels & reels used this month to 0"})]}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",o.jsx("span",{className:"font-medium capitalize",children:E})," plan ⢠Status: ",o.jsx("span",{className:"font-medium",children:S.subscription_status||"none"})]})]})]}),o.jsxs(ze,{className:"overflow-hidden",children:[o.jsx(pt,{className:"pb-3",children:o.jsxs(mt,{className:"text-base flex items-center gap-3",children:[o.jsx(hl,{className:"h-4 w-4"})," Conversation History",o.jsxs(Se,{variant:"secondary",className:"text-xs",children:[k," messages"]})]})}),o.jsxs(Ue,{className:"p-0",children:[o.jsx($v,{className:"h-[400px]",children:o.jsxs("div",{className:"p-4 space-y-3",children:[p?Array.from({length:5}).map((T,R)=>o.jsx(De,{className:"h-12 w-3/4"},R)):A.length===0?o.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No messages"}):A.map(T=>{var R;return o.jsx("div",{className:`flex ${T.direction==="outbound"?"justify-end":"justify-start"}`,children:o.jsxs("div",{className:`max-w-[80%] rounded-lg px-3 py-2 text-sm ${T.direction==="outbound"?"bg-primary text-primary-foreground":"bg-muted"}`,children:[T.body||o.jsx("span",{className:"italic text-xs",children:"[media]"}),((R=T.media_urls)==null?void 0:R.length)>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5 mt-1.5",children:T.media_urls.map((z,F)=>o.jsx("a",{href:z,target:"_blank",rel:"noopener noreferrer",className:"block",children:o.jsx("img",{src:z,alt:`media ${F+1}`,className:"h-12 w-12 rounded object-cover border border-border"})},F))}),o.jsx("span",{className:`text-[10px] block mt-1 ${T.direction==="outbound"?"opacity-70":"text-muted-foreground"}`,children:Mn(new Date(T.created_at),{addSuffix:!0})})]})},T.id)}),o.jsx("div",{ref:x})]})}),k>50&&o.jsxs("div",{className:"border-t p-3 flex items-center justify-between",children:[o.jsx(K,{variant:"ghost",size:"sm",onClick:()=>n(t-1),disabled:t<=1,children:"Newer messages"}),o.jsxs("span",{className:"text-xs text-muted-foreground",children:["Page ",t," of ",Math.
622ceil(k/50)]}),o.jsx(K,{variant:"ghost",size:"sm",onClick:()=>n(t+1),disabled:t>=Math.ceil(k/50),children:"Older messages"})]})]})]}),o.jsxs(ze,{className:"overflow-hidden",children:[o.jsx(pt,{className:"pb-3",children:o.jsxs(mt,{className:"text-base flex items-center gap-3",children:["Content Items",o.jsxs(Se,{variant:"secondary",className:"text-xs",children:[C.length," items"]})]})}),o.jsx(Ue,{className:"p-0",children:o.jsx($v,{className:"h-[800px]",children:o.jsx("div",{className:"divide-y",children:m?Array.from({length:3}).map((T,R)=>o.jsx("div",{className:"p-4 space-y-2",children:o.jsx(De,{className:"h-64 w-64"})},R)):C.length===0?o.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No content items"}):C.map(T=>{var fe,we,ee,J,U,Y,ae,q,Pe;const R=T.status||"pending",z=((fe=T.debugGeneratedPreview)==null?void 0:fe.url)||null,F=!!T.video_url||!!z,B=((J=(ee=(we=T.campaign)==null?void 0:we.name)==null?void 0:ee.toLowerCase)==null?void 0:J.call(ee).includes("onboard"))||T.current_phase==="story_clip",W=((U=T.campaign)==null?void 0:U.topic)||((Y=T.campaign)==null?void 0:Y.description)||null,Z=Array.isArray(T.source_media_urls)&&T.source_media_urls.length>0?T.source_media_urls:Gye(T.campaign);return o.jsxs("div",{className:"p-5 flex flex-col lg:flex-row gap-6",children:[o.jsxs("div",{className:"flex-shrink-0",children:[o.jsx("p",{className:"text-[11px] font-medium text-muted-foreground mb-2 uppercase tracking-wide",children:"Generated"}),o.jsx(qye,{sourceMediaUrls:T.source_media_urls,generatedMediaUrls:z?[z,...T.generated_media_urls||[]]:T.generated_media_urls,generatedMedia:T.generated_media,platformContent:T.platform_content,heroImages:Array.isArray(T.hero_images)&&T.hero_images.length>0?T.hero_images:(ae=T.campaign)==null?void 0:ae.hero_images,videoThumbnailUrl:T.video_thumbnail_url||z,size:"3xl"}),((q=T.debugGeneratedPreview)==null?void 0:q.source)&&!T.generated_media&&!T.video_thumbnail_url&&o.jsxs("p",{className:"mt-2 text-[11px] text-muted-foreground",children:["Preview recovered from ",T.debugGeneratedPreview.source]})]}),o.jsxs("div",{className:"flex-shrink-0 lg:w-64 space-y-3",children:[o.jsx("p",{className:"text-[11px] font-medium text-muted-foreground uppercase tracking-wide",children:"User sent"}),W?o.jsxs("div",{className:"rounded-md border border-border bg-muted/40 p-3",children:[o.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted-foreground mb-1",children:"Topic"}),o.jsx("p",{className:"text-sm whitespace-pre-wrap break-words",children:W})]}):o.jsx("p",{className:"text-xs text-muted-foreground italic",children:"No topic"}),Z.length>0?o.jsxs("div",{children:[o.jsxs("p",{className:"text-[10px] uppercase tracking-wide text-muted-foreground mb-1.5",children:["Images (",Z.length,")"]}),o.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:Z.slice(0,6).map((te,re)=>o.jsx("a",{href:te,target:"_blank",rel:"noopener noreferrer",className:"block",children:o.jsx("img",{src:te,alt:`source ${re+1}`,className:"w-full aspect-square rounded object-cover border border-border hover:opacity-80 transition"})},re))})]}):o.jsx("p",{className:"text-xs text-muted-foreground italic",children:"No images"})]}),o.jsxs("div",{className:"flex-1 min-w-0 space-y-3",children:[o.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[o.jsx(Se,{variant:"outline",className:`text-[10px] ${Kye[R]||""}`,children:R}),o.jsx(Se,{variant:"secondary",className:`text-[10px] ${F?"bg-purple-50 text-purple-700":"bg-blue-50 text-blue-700"}`,children:F?"Reel":T.current_phase==="story_clip"?"Story":"Carousel"}),B&&o.jsx(Se,{variant:"secondary",className:"text-[10px] bg-orange-50 text-orange-700 border-orange-200",children:"onboarding"}),o.jsx("span",{className:"text-[11px] text-muted-foreground ml-auto whitespace-nowrap",children:Mn(new Date(T.created_at),{addSuffix:!0})})]}),(()=>{const te=Fye(T),re=Bye(T);return o.jsxs(o.Fragment,{children:[te&&o.jsxs("div",{children:[o.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted-foreground mb-1",children:"Caption"}),o.jsx("p",{className:"text-sm whitespace-pre-wrap break-words",children:te})]}),re.length>0&&o.jsxs("div",{children:[o.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted-foreground mb-1",children:"Hashtags"}),o.jsx("p",{className:"text-xs text-muted-foreground break-words",children:re.join(" ")})]})]})})(),T.last_error&&o.jsxs("div",{children:[o.jsx("p",{className:"text-[10px] uppercase tracking-wide text-destructive mb-1",children:"Error"}),o.jsx("p",{className:"text-xs text-destructive whitespace-pre-wrap break-words",children:T.last_error})]}),((Pe=T.campaign)==null?void 0:Pe.name)&&o.jsxs("p",{className:"text-[11px] text-muted-foreground truncate",title:T.campaign.name,children:["Campaign: ",T.campaign.name]})]})]},T.id)})})})})]})]})},Jn=g.forwardRef(({className:e,...t},n)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:n,className:oe("w-full caption-bottom text-sm",e),...t})}));Jn.displayName="Table";const Qn=g.forwardRef(({className:e,...t},n)=>o.jsx("thead",{ref:n,className:oe("[&_tr]:border-b",e),...t}));Qn.displayName="TableHeader";const Zn=g.forwardRef(({className:e,...t},n)=>o.jsx("tbody",{ref:n,className:oe("[&_tr:last-child]:border-0",e),...t}));Zn.displayName="TableBody";const Jye=g.forwardRef(({className:e,...t},n)=>o.jsx("tfoot",{ref:n,className:oe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Jye.displayName="TableFooter";const rt=g.forwardRef(({className:e,...t},n)=>o.jsx("tr",{ref:n,className:oe("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));rt.displayName="TableRow";const ue=g.forwardRef(({className:e,...t},n)=>o.jsx("th",{ref:n,className:oe("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));ue.displayName="TableHead";const ce=g.forwardRef(({className:e,...t},n)=>o.jsx("td",{ref:n,className:oe("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));ce.displayName="TableCell";const Qye=g.forwardRef(({className:e,...t},n)=>o.jsx("caption",{ref:n,className:oe("mt-4 text-sm text-muted-foreground",e),...t}));Qye.displayName="TableCaption";var Zye=Array.isArray,Tr=Zye,ebe=typeof um=="object"&&um&&um.Object===Object&&um,mW=ebe,tbe=mW,nbe=typeof self=="object"&&self&&self.Object===Object&&self,rbe=tbe||nbe||Function("return this")(),ka=rbe,ibe=ka,abe=ibe.Symbol,Qp=abe,qO=Qp,gW=Object.prototype,sbe=gW.hasOwnProperty,obe=gW.toString,ah=qO?qO.toStringTag:void 0;function lbe(e){var t=sbe.call(e,ah),n=e[ah];try{e[ah]=void 0;var r=!0}catch{}var i=obe.call(e);return r&&(t?e[ah]=n:delete e[ah]),i}var cbe=lbe,ube=Object.prototype,dbe=ube.toString;function hbe(e){return dbe.call(e)}var fbe=hbe,HO=Qp,pbe=cbe,mbe=fbe,gbe="[object Null]",vbe="[object Undef
622ined]",GO=HO?HO.toStringTag:void 0;function ybe(e){return e==null?e===void 0?vbe:gbe:GO&&GO in Object(e)?pbe(e):mbe(e)}var ds=ybe;function bbe(e){return e!=null&&typeof e=="object"}var hs=bbe,xbe=ds,wbe=hs,Sbe="[object Symbol]";function jbe(e){return typeof e=="symbol"||wbe(e)&&xbe(e)==Sbe}var Cd=jbe,_be=Tr,Nbe=Cd,Pbe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Abe=/^\w*$/;function Cbe(e,t){if(_be(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Nbe(e)?!0:Abe.test(e)||!Pbe.test(e)||t!=null&&e in Object(t)}var AA=Cbe;function Ebe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var No=Ebe;const Ed=jt(No);var kbe=ds,Tbe=No,Obe="[object AsyncFunction]",Ibe="[object Function]",Rbe="[object GeneratorFunction]",Dbe="[object Proxy]";function Mbe(e){if(!Tbe(e))return!1;var t=kbe(e);return t==Ibe||t==Rbe||t==Obe||t==Dbe}var CA=Mbe;const He=jt(CA);var $be=ka,Lbe=$be["__core-js_shared__"],Vbe=Lbe,cw=Vbe,KO=function(){var e=/[^.]+$/.exec(cw&&cw.keys&&cw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Fbe(e){return!!KO&&KO in e}var Bbe=Fbe,zbe=Function.prototype,Ube=zbe.toString;function Wbe(e){if(e!=null){try{return Ube.call(e)}catch{}try{return e+""}catch{}}return""}var vW=Wbe,qbe=CA,Hbe=Bbe,Gbe=No,Kbe=vW,Ybe=/[\\^$.*+?()[\]{}|]/g,Xbe=/^\[object .+?Constructor\]$/,Jbe=Function.prototype,Qbe=Object.prototype,Zbe=Jbe.toString,exe=Qbe.hasOwnProperty,txe=RegExp("^"+Zbe.call(exe).replace(Ybe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nxe(e){if(!Gbe(e)||Hbe(e))return!1;var t=qbe(e)?txe:Xbe;return t.test(Kbe(e))}var rxe=nxe;function ixe(e,t){return e==null?void 0:e[t]}var axe=ixe,sxe=rxe,oxe=axe;function lxe(e,t){var n=oxe(e,t);return sxe(n)?n:void 0}var Hl=lxe,cxe=Hl,uxe=cxe(Object,"create"),Bb=uxe,YO=Bb;function dxe(){this.__data__=YO?YO(null):{},this.size=0}var hxe=dxe;function fxe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pxe=fxe,mxe=Bb,gxe="__lodash_hash_undefined__",vxe=Object.prototype,yxe=vxe.hasOwnProperty;function bxe(e){var t=this.__data__;if(mxe){var n=t[e];return n===gxe?void 0:n}return yxe.call(t,e)?t[e]:void 0}var xxe=bxe,wxe=Bb,Sxe=Object.prototype,jxe=Sxe.hasOwnProperty;function _xe(e){var t=this.__data__;return wxe?t[e]!==void 0:jxe.call(t,e)}var Nxe=_xe,Pxe=Bb,Axe="__lodash_hash_undefined__";function Cxe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pxe&&t===void 0?Axe:t,this}var Exe=Cxe,kxe=hxe,Txe=pxe,Oxe=xxe,Ixe=Nxe,Rxe=Exe;function kd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kd.prototype.clear=kxe;kd.prototype.delete=Txe;kd.prototype.get=Oxe;kd.prototype.has=Ixe;kd.prototype.set=Rxe;var Dxe=kd;function Mxe(){this.__data__=[],this.size=0}var $xe=Mxe;function Lxe(e,t){return e===t||e!==e&&t!==t}var EA=Lxe,Vxe=EA;function Fxe(e,t){for(var n=e.length;n--;)if(Vxe(e[n][0],t))return n;return-1}var zb=Fxe,Bxe=zb,zxe=Array.prototype,Uxe=zxe.splice;function Wxe(e){var t=this.__data__,n=Bxe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Uxe.call(t,n,1),--this.size,!0}var qxe=Wxe,Hxe=zb;function Gxe(e){var t=this.__data__,n=Hxe(t,e);return n<0?void 0:t[n][1]}var Kxe=Gxe,Yxe=zb;function Xxe(e){return Yxe(this.__data__,e)>-1}var Jxe=Xxe,Qxe=zb;function Zxe(e,t){var n=this.__data__,r=Qxe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var e0e=Zxe,t0e=$xe,n0e=qxe,r0e=Kxe,i0e=Jxe,a0e=e0e;function Td(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Td.prototype.clear=t0e;Td.prototype.delete=n0e;Td.prototype.get=r0e;Td.prototype.has=i0e;Td.prototype.set=a0e;var Ub=Td,s0e=Hl,o0e=ka,l0e=s0e(o0e,"Map"),kA=l0e,XO=Dxe,c0e=Ub,u0e=kA;function d0e(){this.size=0,this.__data__={hash:new XO,map:new(u0e||c0e),string:new XO}}var h0e=d0e;function f0e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var p0e=f0e,m0e=p0e;function g0e(e,t){var n=e.__data__;return m0e(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Wb=g0e,v0e=Wb;function y0e(e){var t=v0e(this,e).delete(e);return this.size-=t?1:0,t}var b0e=y0e,x0e=Wb;function w0e(e){return x0e(this,e).get(e)}var S0e=w0e,j0e=Wb;function _0e(e){return j0e(this,e).has(e)}var N0e=_0e,P0e=Wb;function A0e(e,t){var n=P0e(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var C0e=A0e,E0e=h0e,k0e=b0e,T0e=S0e,O0e=N0e,I0e=C0e;function Od(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Od.prototype.clear=E0e;Od.prototype.delete=k0e;Od.prototype.get=T0e;Od.prototype.has=O0e;Od.prototype.set=I0e;var TA=Od,yW=TA,R0e="Expected a function";function OA(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(R0e);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(OA.Cache||yW),n}OA.Cache=yW;var bW=OA;const D0e=jt(bW);var M0e=bW,$0e=500;function L0e(e){var t=M0e(e,function(r){return n.size===$0e&&n.clear(),r}),n=t.cache;return t}var V0e=L0e,F0e=V0e,B0e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,z0e=/\\(\\)?/g,U0e
622=F0e(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(B0e,function(n,r,i,a){t.push(i?a.replace(z0e,"$1"):r||n)}),t}),W0e=U0e;function q0e(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var IA=q0e,JO=Qp,H0e=IA,G0e=Tr,K0e=Cd,Y0e=1/0,QO=JO?JO.prototype:void 0,ZO=QO?QO.toString:void 0;function xW(e){if(typeof e=="string")return e;if(G0e(e))return H0e(e,xW)+"";if(K0e(e))return ZO?ZO.call(e):"";var t=e+"";return t=="0"&&1/e==-Y0e?"-0":t}var X0e=xW,J0e=X0e;function Q0e(e){return e==null?"":J0e(e)}var wW=Q0e,Z0e=Tr,ewe=AA,twe=W0e,nwe=wW;function rwe(e,t){return Z0e(e)?e:ewe(e,t)?[e]:twe(nwe(e))}var SW=rwe,iwe=Cd,awe=1/0;function swe(e){if(typeof e=="string"||iwe(e))return e;var t=e+"";return t=="0"&&1/e==-awe?"-0":t}var qb=swe,owe=SW,lwe=qb;function cwe(e,t){t=owe(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[lwe(t[n++])];return n&&n==r?e:void 0}var RA=cwe,uwe=RA;function dwe(e,t,n){var r=e==null?void 0:uwe(e,t);return r===void 0?n:r}var jW=dwe;const di=jt(jW);function hwe(e){return e==null}var fwe=hwe;const lt=jt(fwe);var pwe=ds,mwe=Tr,gwe=hs,vwe="[object String]";function ywe(e){return typeof e=="string"||!mwe(e)&&gwe(e)&&pwe(e)==vwe}var bwe=ywe;const Dl=jt(bwe);var _W={exports:{}},vt={};/** 623 * @license React 624 * react-is.production.min.js 625 * 626 * Copyright (c) Facebook, Inc. and its affiliates. 627 * 628 * This source code is licensed under the MIT license found in the 629 * LICENSE file in the root directory of this source tree. 630 */var DA=Symbol.for("react.element"),MA=Symbol.for("react.portal"),Hb=Symbol.for("react.fragment"),Gb=Symbol.for("react.strict_mode"),Kb=Symbol.for("react.profiler"),Yb=Symbol.for("react.provider"),Xb=Symbol.for("react.context"),xwe=Symbol.for("react.server_context"),Jb=Symbol.for("react.forward_ref"),Qb=Symbol.for("react.suspense"),Zb=Symbol.for("react.suspense_list"),ex=Symbol.for("react.memo"),tx=Symbol.for("react.lazy"),wwe=Symbol.for("react.offscreen"),NW;NW=Symbol.for("react.module.reference");function vi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case DA:switch(e=e.type,e){case Hb:case Kb:case Gb:case Qb:case Zb:return e;default:switch(e=e&&e.$$typeof,e){case xwe:case Xb:case Jb:case tx:case ex:case Yb:return e;default:return t}}case MA:return t}}}vt.ContextConsumer=Xb;vt.ContextProvider=Yb;vt.Element=DA;vt.ForwardRef=Jb;vt.Fragment=Hb;vt.Lazy=tx;vt.Memo=ex;vt.Portal=MA;vt.Profiler=Kb;vt.StrictMode=Gb;vt.Suspense=Qb;vt.SuspenseList=Zb;vt.isAsyncMode=function(){return!1};vt.isConcurrentMode=function(){return!1};vt.isContextConsumer=function(e){return vi(e)===Xb};vt.isContextProvider=function(e){return vi(e)===Yb};vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===DA};vt.isForwardRef=function(e){return vi(e)===Jb};vt.isFragment=function(e){return vi(e)===Hb};vt.isLazy=function(e){return vi(e)===tx};vt.isMemo=function(e){return vi(e)===ex};vt.isPortal=function(e){return vi(e)===MA};vt.isProfiler=function(e){return vi(e)===Kb};vt.isStrictMode=function(e){return vi(e)===Gb};vt.isSuspense=function(e){return vi(e)===Qb};vt.isSuspenseList=function(e){return vi(e)===Zb};vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hb||e===Kb||e===Gb||e===Qb||e===Zb||e===wwe||typeof e=="object"&&e!==null&&(e.$$typeof===tx||e.$$typeof===ex||e.$$typeof===Yb||e.$$typeof===Xb||e.$$typeof===Jb||e.$$typeof===NW||e.getModuleId!==void 0)};vt.typeOf=vi;_W.exports=vt;var Swe=_W.exports,jwe=ds,_we=hs,Nwe="[object Number]";function Pwe(e){return typeof e=="number"||_we(e)&&jwe(e)==Nwe}var PW=Pwe;const Awe=jt(PW);var Cwe=PW;function Ewe(e){return Cwe(e)&&e!=+e}var kwe=Ewe;const Zp=jt(kwe);var Li=function(t){return t===0?0:t>0?1:-1},Zo=function(t){return Dl(t)&&t.indexOf("%")===t.length-1},de=function(t){return Awe(t)&&!Zp(t)},Twe=function(t){return lt(t)},bn=function(t){return de(t)||Dl(t)},Owe=0,nx=function(t){var n=++Owe;return"".concat(t||"").concat(n)},Ml=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!de(t)&&!Dl(t))return r;var a;if(Zo(t)){var s=t.indexOf("%");a=n*parseFloat(t.slice(0,s))/100}
vendor: 5,304 bytes, line 630
630else a=+t;return Zp(a)&&(a=r),i&&a>n&&(a=n),a},Is=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Iwe=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},gc=function(t,n){return de(t)&&de(n)?function(r){return t+r*(n-t)}:function(){return n}};function ij(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):di(r,t))===n})}var Rwe=function(t,n){return de(t)&&de(n)?t-n:Dl(t)&&Dl(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function tu(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function aj(e){"@babel/helpers - typeof";return aj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aj(e)}var Dwe=["viewBox","children"],Mwe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],eI=["points","pathLength"],uw={svg:Dwe,polygon:eI,polyline:eI},$A=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
630ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Fv=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(g.isValidElement(t)&&(r=t.props),!Ed(r))return null;var i={};return Object.keys(r).forEach(function(a){$A.includes(a)&&(i[a]=n||function(s){return r[a](r,s)})}),i},$we=function(t,n,r){return function(i){return t(n,r,i),null}},Bv=function(t,n,r){if(!Ed(t)||aj(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var s=t[a];$A.includes(a)&&typeof s=="function"&&(i||(i={}),i[a]=$we(s,n,r))}),i},Lwe=["children"],Vwe=["children"];function tI(e,t){if(e==null)return{};var n=Fwe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var nI={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ka=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},rI=null,dw=null,LA=function e(t){if(t===rI&&Array.isArray(dw))return dw;var n=[];return g.Children.forEach(t,function(r){lt(r)||(Swe.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),dw=n,rI=t,n};function Bi(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ka(i)}):r=[Ka(t)],LA(e).forEach(function(i){var a=di(i,"type.displayName")||di(i,"type.n
630ame");r.indexOf(a)!==-1&&n.push(i)}),n}function $r(e,t){var n=Bi(e,t);return n&&n[0]}var iI=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!de(r)||r<=0||!de(i)||i<=0)},Bwe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],zwe=function(t){return t&&t.type&&Dl(t.type)&&Bwe.indexOf(t.type)>=0},Uwe=function(t,n,r,i){var a,s=(a=uw==null?void 0:uw[i])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!He(t)&&(i&&s.includes(n)||Mwe.includes(n))||r&&$A.includes(n)},ot=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(g.isValidElement(t)&&(i=t.props),!Ed(i))return null;var a={};
630return Object.keys(i).forEach(function(s){var l;Uwe((l=i)===null||l===void 0?void 0:l[s],s,n,r)&&(a[s]=i[s])}),a},sj=function e(t,n){if(t===n)return!0;var r=g.Children.count(t);if(r!==g.Children.count(n))return!1;if(r===0)return!0;if(r===1)return aI(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],s=n[i];if(Array.isArray(a)||Array.isArray(s)){if(!e(a,s))return!1}else if(!aI(a,s))return!1}return!0},aI=function(t,n){if(lt(t)&<(n))return!0;if(!lt(t)&&!lt(n)){var r=t.props||{},i=r.children,a=tI(r,Lwe),s=n.props||{},l=s.children,c=tI(s,Vwe);return i&&l?tu(a,c)&&sj(i,l):!i&&!l?tu(a,c):!1}return!1},sI=function(t,n){var r=[],i={};return LA(t).forEach(function(a,s){if(zwe(a))r.push(a);else if(a){var l=Ka(a.type),c=n[l]||{},u=c.handler,h=c.once;if(u&&(!h||!i[l])){var d=u(a,l,s);r.push(d),i[l]=!0}}}),r},Wwe=function(t){var n=t&&t.type;return n&&nI[n]?nI[n]:null},qwe=function(t,n){return LA(n).indexOf(t)},Hwe=["children","width","height","viewBox","className","style","title","desc"];function oj(){return oj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oj.apply(this,arguments)}function Gwe(e,t){if(e==null)return{};var n=Kwe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function lj(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,s=e.style,l=e.title,c=e.desc,u=Gwe(e,Hwe),h=i||{width:n,height:r,x:0,y:0},d=nt("recharts-surface",a);return D.createElement("svg",oj({},ot(u,!0,"svg"),{className:d,width:n,height:r,style:s,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),D.createElement("title",null,l),D.createElement("desc",null,c),t)}var Ywe=["children","className"];function cj(){return cj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cj.apply(this,arguments)}function Xwe(e,t){if(e==null)return{};var n=Jwe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var An=D.forwardRef(function(e,t){var n=e.children,r=e.className,i=Xwe(e,Ywe),a=nt("recharts-layer",r);return D.createElement("g",cj({className:a},ot(i,!0),{ref:t}),n)}),Ya=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a]};function Qwe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var Zwe=Qwe,eSe=Zwe;function tSe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:eSe(e,t,n)}var nSe=tSe,rSe="\\ud800-\\udfff",iSe="\\u0300-\\u036f",aSe="\\ufe20-\\ufe2f",sSe="\\u20d0-\\u20ff",oSe=iSe+aSe+sSe,lSe="\\ufe0e\\ufe0f",cSe="\\u200d",uSe=RegExp("["+cSe+rSe+oSe+lSe+"]");function dSe(e){return uSe.test(e)}var AW=dSe;function hSe(e){return e.split("")}var fSe=hSe,CW="\\ud800-\\udfff",pSe="\\u0300-\\u036f",mSe="\\ufe20-\\ufe2f",gSe="\\u20d0-\\u20ff",vSe=pSe+mSe+gSe,ySe="\\ufe0e\\ufe0f",bSe="["+CW+"]",uj="["+vSe+"]",dj="\\ud83c[\\udffb-\\udfff]",xSe="(?:"+uj+"|"+dj+")",EW="[^"+CW+"]",kW="(?:\\ud83c[\\udde6-\\uddff]){2}",TW="[\\ud800-\\udbff][\\udc00-\\udfff]",wSe="\\u200d",OW=xSe+"?",IW="["+ySe+"]?",SSe="(?:"+wSe+"(?:"+[EW,kW,TW].join("|")+")"+IW+OW+")*",jSe=IW+OW+SSe,_Se="(?:"+[EW+uj+"?",uj,kW,TW,bSe].join("|")+")",NSe=RegExp(dj+"(?="+dj+")|"+_Se+jSe,"g");function PSe(e){return e.match(NSe)||[]}var ASe=PSe,CSe=fSe,ESe=AW,kSe=ASe;function TSe(e){return ESe(e)?kSe(e):CSe(e)}var OSe=TSe,ISe=nSe,RSe=AW,DSe=OSe,MSe=wW;function $Se(e){return function(t){t=MSe(t);var n=RSe(t)?DSe(t):void 0,r=n?n[0]:t.charAt(0),i=n?ISe(n,1).join(""):t.slice(1);return r[e]()+i}}var LSe=$Se,VSe=LSe,FSe=VSe("toUpperCase"),BSe=FSe;const rx=jt(BSe);function At(e){return function(){return e}}const RW=Math.cos,zv=Math.sin,Yi=Math.sqrt,Uv=Math.PI,ix=2*Uv,hj=Math.PI,fj=2*hj,Bo=1e-6,zSe=fj-Bo;function DW(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function USe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return DW;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class WSe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?DW:USe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,l=this._y1,c=r-t,u=i-n,h=s-t,d=l-n,f=h*h+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Bo)if(!(Math.abs(d*c-u*h)>Bo)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-s,v=i-l,m=c*c+u*u,y=p*p+v*v,b=Math.sqrt(m),w=Math.sqrt(f),x=a*Math.tan((hj-Math.acos((m+f-y)/(2*b*w)))/2),S=x/w,j=x/b;Math.abs(S-1)>Bo&&this._append`L${t+S*h},${n+S*d}`,this._append`A${a},${a},0,0,${+(d*p>h*v)},${this._x1=t+j*c},${this._y1=n+j*u}`}}
630arc(t,n,r,i,a,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),c=r*Math.sin(i),u=t+l,h=n+c,d=1^s,f=s?i-a:a-i;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>Bo||Math.abs(this._y1-h)>Bo)&&this._append`L${u},${h}`,r&&(f<0&&(f=f%fj+fj),f>zSe?this._append`A${r},${r},0,1,${d},${t-l},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=h}`:f>Bo&&this._append`A${r},${r},0,${+(f>=hj)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function VA(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new WSe(t)}function FA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function MW(e){this._context=e}MW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ax(e){return new MW(e)}function $W(e){return e[0]}function LW(e){return e[1]}function VW(e,t){var n=At(!0),r=null,i=ax,a=null,s=VA(l);e=typeof e=="function"?e:e===void 0?$W:At(e),t=typeof t=="function"?t:t===void 0?LW:At(t);function l(c){var u,h=(c=FA(c)).length,d,f=!1,p;for(r==null&&(a=i(p=s())),u=0;u<=h;++u)!(u<h&&n(d=c[u],u,c))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,u,c),+t(d,u,c));if(p)return a=null,p+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:At(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:At(+c),l):t},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:At(!!c),l):n},l.curve=function(c){return arguments.length?(i=c,r!=null&&(a=i(r)),l):i},l.context=function(c){return arguments.length?(c==null?r=a=null:a=i(r=c),l):r},l}function Ym(e,t,n){var r=null,i=At(!0),a=null,s=ax,l=null,c=VA(u);e=typeof e=="function"?e:e===void 0?$W:At(+e),t=typeof t=="function"?t:At(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?LW:At(+n);function u(d){var f,p,v,m=(d=FA(d)).length,y,b=!1,w,x=new Array(m),S=new Array(m);for(a==null&&(l=s(w=c())),f=0;f<=m;++f){if(!(f<m&&i(y=d[f],f,d))===b)if(b=!b)p=f,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),v=f-1;v>=p;--v)l.point(x[v],S[v]);l.lineEnd(),l.areaEnd()}b&&(x[f]=+e(y,f,d),S[f]=+t(y,f,d),l.point(r?+r(y,f,d):x[f],n?+n(y,f,d):S[f]))}if(w)return l=null,w+""||null}function h(){return VW().defined(i).curve(s).context(a)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:At(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:At(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:At(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:At(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:At(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:At(+d),u):n},u.lineX0=u.lineY0=function(){return h().x(e).y(t)},u.lineY1=function(){return h().x(e).y(n)},u.lineX1=function(){return h().x(r).y(t)},u.defined=function(d){return arguments.length?(i=typeof d=="function"?d:At(!!d),u):i},u.curve=function(d){return arguments.length?(s=d,a!=null&&(l=s(a)),u):s},u.context=function(d){return arguments.length?(d==null?a=l=null:l=s(a=d),u):a},u}class FW{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function qSe(e){return new FW(e,!0)}function HSe(e){return new FW(e,!1)}const BA={draw(e,t){const n=Yi(t/Uv);e.moveTo(n,0),e.arc(0,0,n,0,ix)}},GSe={draw(e,t){const n=Yi(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},BW=Yi(1/3),KSe=BW*2,YSe={draw(e,t){const n=Yi(t/KSe),r=n*BW;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},XSe={draw(e,t){const n=Yi(t),r=-n/2;e.rect(r,r,n,n)}},JSe=.8908130915292852,zW=zv(Uv/10)/zv(7*Uv/10),QSe=zv(ix/10)*zW,ZSe=-RW(ix/10)*zW,e1e={draw(e,t){const n=Yi(t*JSe),r=QSe*n,i=ZSe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const s=ix*a/5,l=RW(s),c=zv(s);e.lineTo(c*n,-l*n),e.lineTo(l*r-c*i,c*r+l*i)}e.closePath()}},hw=Yi(3),t1e={draw(e,t){const n=-Yi(t/(hw*3));
vendor: 7,194 bytes, line 630
630e.moveTo(0,n*2),e.lineTo(-hw*n,-n),e.lineTo(hw*n,-n),e.closePath()}},Xr=-.5,Jr=Yi(3)/2,pj=1/Yi(12),n1e=(pj/2+1)*3,r1e={draw(e,t){const n=Yi(t/n1e),r=n/2,i=n*pj,a=r,s=n*pj+n,l=-a,c=s;e.moveTo(r,i),e.lineTo(a,s),e.lineTo(l,c),e.lineTo(Xr*r-Jr*i,Jr*r+Xr*i),e.lineTo(Xr*a-Jr*s,Jr*a+Xr*s),e.lineTo(Xr*l-Jr*c,Jr*l+Xr*c),e.lineTo(Xr*r+Jr*i,Xr*i-Jr*r),e.lineTo(Xr*a+Jr*s,Xr*s-Jr*a),e.lineTo(Xr*l+Jr*c,Xr*c-Jr*l),e.closePath()}};function i1e(e,t){let n=null,r=VA(i);e=typeof e=="function"?e:At(e||BA),t=typeof t=="function"?t:At(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:At(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:At(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Wv(){}function qv(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function UW(e){this._context=e}UW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:qv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function a1e(e){return new UW(e)}function WW(e){this._context=e}WW.prototype={areaStart:Wv,areaEnd:Wv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function s1e(e){return new WW(e)}function qW(e){this._context=e}qW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:qv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function o1e(e){return new qW(e)}function HW(e){this._context=e}HW.prototype={areaStart:Wv,areaEnd:Wv,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function l1e(e){return new HW(e)}function oI(e){return e<0?-1:1}function lI(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),l=(a*i+s*r)/(r+i);return(oI(a)+oI(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function cI(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fw(e,t,n){var r=e._x0,i=e._y0,a=e._x1,s=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,s-l*n,a,s)}function Hv(e){this._context=e}Hv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:fw(this,this._t0,cI(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,fw(this,cI(this,n=lI(this,e,t)),n);break;default:fw(this,this._t0,n=lI(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function GW(e){this._context=new KW(e)}(GW.prototype=Object.create(Hv.prototype)).point=function(e,t){Hv.prototype.point.call(this,t,e)};function KW(e){this._context=e}KW.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function c1e(e){return new Hv(e)}function u1e(e){return new GW(e)}function YW(e){this._context=e}YW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=uI(e),i=uI(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function uI(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),s=new Array(n);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function d1e(e){return new YW(e)}function sx(e,t){this._context=e,this._t=t}sx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 9,187 bytes, lines 630-633
630default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function h1e(e){return new sx(e,.5)}function f1e(e){return new sx(e,0)}function p1e(e){return new sx(e,1)}function Mu(e,t){if((s=e.length)>1)for(var n=1,r,i,a=e[t[0]],s,l=a.length;n<s;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function mj(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function m1e(e,t){return e[t]}function g1e(e){const t=[];return t.key=e,t}function v1e(){var e=At([]),t=mj,n=Mu,r=m1e;function i(a){var s=Array.from(e.apply(this,arguments),g1e),l,c=s.length,u=-1,h;for(const d of a)for(l=0,++u;l<c;++l)(s[l][u]=[0,+r(d,s[l].key,u,a)]).data=d;for(l=0,h=FA(t(s));l<c;++l)s[h[l]].index=l;return n(s,h),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:At(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:At(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?mj:typeof a=="function"?a:At(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??Mu,i):n},i}function y1e(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,s;i<a;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}Mu(e,t)}}function b1e(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var s=0,l=0;s<i;++s)l+=e[s][n][1]||0;r[n][1]+=r[n][0]=-l/2}Mu(e,t)}}function x1e(e,t){if(!(!((s=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,s;r<a;++r){for(var l=0,c=0,u=0;l<s;++l){for(var h=e[t[l]],d=h[r][1]||0,f=h[r-1][1]||0,p=(d-f)/2,v=0;v<l;++v){var m=e[t[v]],y=m[r][1]||0,b=m[r-1][1]||0;p+=y-b}c+=d,u+=p*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=u/c)}i[r-1][1]+=i[r-1][0]=n,Mu(e,t)}}function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}var w1e=["type","size","sizeType"];function gj(){return gj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gj.apply(this,arguments)}function dI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dI(Object(n),!0).forEach(function(r){S1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S1e(e,t,n){return t=j1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j1e(e){var t=_1e(e,"string");return Lf(t)=="symbol"?t:t+""}function _1e(e,t){if(Lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function N1e(e,t){if(e==null)return{};var n=P1e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function P1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var XW={symbolCircle:BA,symbolCross:GSe,symbolDiamond:YSe,symbolSquare:XSe,symbolStar:e1e,symbolTriangle:t1e,symbolWye:r1e},A1e=Math.PI/180,C1e=function(t){var n="symbol".concat(rx(t));return XW[n]||BA},E1e=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*A1e;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},k1e=function(t,n){XW["symbol".concat(rx(t))]=n},zA=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,s=t.sizeType,l=s===void 0?"area":s,c=N1e(t,w1e),u=hI(hI({},c),{},{type:r,size:a,sizeType:l}),h=function(){var y=C1e(r),b=i1e().type(y).size(E1e(a,l,r));return b()},d=u.className,f=u.cx,p=u.cy,v=ot(u,!0);return f===+f&&p===+p&&a===+a?D.createElement("path",gj({},v,{className:nt("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(p,")"),d:h()})):null};zA.registerSymbol=k1e;function $u(e){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function vj(){return vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vj.apply(this,arguments)}function fI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function T1e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fI(Object(n),!0).forEach(function(r){Vf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I1e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QW(r.key),r)}}function R1e(e,t,n){return t&&I1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function D1e(e,t,n){return t=Gv(t),M1e(e,JW()?Reflect.construct(t,n||[],Gv(e).constructor):t.apply(e,n))}function M1e(e,t){if(t&&($u(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $1e(e)}function $1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JW=function(){return!!e})()}function Gv(e){return Gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gv(e)}function L1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yj(e,t)}function yj(e,t){return yj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yj(e,t)}function Vf(e,t,n){return t=QW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QW(e){var t=V1e(e,"string");return $u(t)=="symbol"?t:t+""}function V1e(e,t){if($u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qr=32,UA=function(e){function t(){return O1e(this,t),D1e(this,t,arguments)}return L1e(t,e),R1e(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,a=Qr/2,s=Qr/6,l=Qr/3,c=r.inactive?i:r.color;if(r.type==="plainline")return D.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:Qr,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return D.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(l,` 631 A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(a,` 632 H`).concat(Qr,"M").concat(2*l,",").concat(a,` 633 A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return D.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Qr/8,"h").concat(Qr,"v").concat(Qr*3/4,"h").concat(-Qr,"z"),className:"recharts-legend-icon"});if(D.isValidElement(r.legendIcon)){var u=T1e({},r);return delete u.legendIcon,D.cloneElement(r.legendIcon,u)}return D.createElement(zA,{fill:c,cx:a,cy:a,size:Qr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,a=i.payload,s=i.iconSize,l=i.layout,c=i.formatter,u=i.inactiveColor,h={x:0,y:0,width:Qr,height:Qr}
633,d={display:l==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,v){var m=p.formatter||c,y=nt(Vf(Vf({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=He(p.value)?null:p.value;Ya(!He(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=p.inactive?u:p.color;return D.createElement("li",vj({className:y,style:d,key:"legend-item-".concat(v)},Bv(r.props,p,v)),D.createElement(lj,{width:s,height:s,viewBox:h,style:f},r.renderIcon(p)),D.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},m?m(b,p,v):b))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,s=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?s:"left"};return D.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(g.PureComponent);Vf(UA,"displayName","Legend");Vf(UA,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var F1e=Ub;function B1e(){this.__data__=new F1e,this.size=0}var z1e=B1e;function U1e(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var W1e=U1e;function q1e(e){return this.__data__.get(e)}var H1e=q1e;function G1e(e){return this.__data__.has(e)}var K1e=G1e,Y1e=Ub,X1e=kA,J1e=TA,Q1e=200;function Z1e(e,t){var n=this.__data__;if(n instanceof Y1e){var r=n.__data__;if(!X1e||r.length<Q1e-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new J1e(r)}return n.set(e,t),this.size=n.size,this}var eje=Z1e,tje=Ub,nje=z1e,rje=W1e,ije=H1e,aje=K1e,sje=eje;function Id(e){var t=this.__data__=new tje(e);this.size=t.size}Id.prototype.clear=nje;Id.prototype.delete=rje;Id.prototype.get=ije;Id.prototype.has=aje;Id.prototype.set=sje;var ZW=Id,oje="__lodash_hash_undefined__";function lje(e){return this.__data__.set(e,oje),this}var cje=lje;function uje(e){return this.__data__.has(e)}var dje=uje,hje=TA,fje=cje,pje=dje;function Kv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new hje;++t<n;)this.add(e[t])}Kv.prototype.add=Kv.prototype.push=fje;Kv.prototype.has=pje;var eq=Kv;function mje(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var tq=mje;function gje(e,t){return e.has(t)}var nq=gje,vje=eq,yje=tq,bje=nq,xje=1,wje=2;function Sje(e,t,n,r,i,a){var s=n&xje,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),h=a.get(t);if(u&&h)return u==t&&h==e;var d=-1,f=!0,p=n&wje?new vje:void 0;for(a.set(e,t),a.set(t,e);++d<l;){var v=e[d],m=t[d];if(r)var y=s?r(m,v,d,t,e,a):r(v,m,d,e,t,a);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!yje(t,function(b,w){if(!bje(p,w)&&(v===b||i(v,b,n,r,a)))return p.push(w)})){f=!1;break}}else if(!(v===m||i(v,m,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var rq=Sje,jje=ka,_je=jje.Uint8Array,Nje=_je;function Pje(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Aje=Pje;function Cje(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var WA=Cje,pI=Qp,mI=Nje,Eje=EA,kje=rq,Tje=Aje,Oje=WA,Ije=1,Rje=2,Dje="[object Boolean]",Mje="[object Date]",$je="[object Error]",Lje="[object Map]",Vje="[object Number]",Fje="[object RegExp]",Bje="[object Set]",zje="[object String]",Uje="[object Symbol]",Wje="[object ArrayBuffer]",qje="[object DataView]",gI=pI?pI.prototype:void 0,pw=gI?gI.valueOf:void 0;function Hje(e,t,n,r,i,a,s){switch(n){case qje:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wje:return!(e.byteLength!=t.byteLength||!a(new mI(e),new mI(t)));case Dje:case Mje:case Vje:return Eje(+e,+t);case $je:return e.name==t.name&&e.message==t.message;case Fje:case zje:return e==t+"";case Lje:var l=Tje;case Bje:var c=r&Ije;if(l||(l=Oje),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=Rje,s.set(e,t);var h=kje(l(e),l(t),r,i,a,s);return s.delete(e),h;case Uje:if(pw)return pw.call(e)==pw.call(t)}return!1}var Gje=Hje;function Kje(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var iq=Kje,Yje=iq,Xje=Tr;function Jje(e,t,n){var r=t(e);return Xje(e)?r:Yje(r,n(e))}var Qje=Jje;function Zje(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}var e_e=Zje;function t_e(){return[]}var n_e=t_e,r_e=e_e,i_e=n_e,a_e=Object.prototype,s_e=a_e.propertyIsEnumerable,vI=Object.getOwnPropertySymbols,o_e=vI?function(e){return e==null?[]:(e=Object(e),r_e(vI(e),function(t){return s_e.call(e,t)}))}:i_e,l_e=o_e;function c_e(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var u_e=c_e,d_e=ds,h_e=hs,f_e="[object Arguments]";function p_e(e){return h_e(e)&&d_e(e)==f_e}var m_e=p_e,yI=m_e,g_e=hs,aq=Object.prototype,v_e=aq.hasOwnProperty,y_e=aq.propertyIsEnumerable,b_e=yI(function(){return arguments}())?yI:function(e){return g_e(e)&&v_e.call(e,"callee")&&!y_e.call(e,"callee")},qA=b_e,Yv={exports:{}};function x_e(){return!1}var w_e=x_e;Yv.exports;(function(e,t){var n=ka,r=w_e,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,l=s?n.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||r;e.exports=u})(Yv,Yv.exports);var sq=Yv.exports,S_e=9007199254740991,j_e=/^(?:0|[1-9]\d*)$/;function __e(e,t){var n=typeof e;return t=t??S_e,!!t&&(n=="number"||n!="symbol"&&j_e.test(e))&&e>-1&&e%1==0&&e<t}var HA=__e,N_e=9007199254740991;function P_e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=N_e}var GA=P_e,A_e=ds,C_e=GA,E_e=hs,k_e="[object Arguments]",T_e="[object Array]",O_e="[object Boolean]",I_e="[object Date]",R_e="[object Error]",D_e="[object Function]",M_e="[object Map]",$_e="[object Number]",L_e="[object Object]",V_e="[object RegExp]",F_e="[object Set]",B_e="[object String]",z_e="[object WeakMap]",U_e="[object ArrayBuffer]",W_e="[object DataView]",q_e="[object Float32Array]",H_e="[object Float64Array
633]",G_e="[object Int8Array]",K_e="[object Int16Array]",Y_e="[object Int32Array]",X_e="[object Uint8Array]",J_e="[object Uint8ClampedArray]",Q_e="[object Uint16Array]",Z_e="[object Uint32Array]",Ot={};Ot[q_e]=Ot[H_e]=Ot[G_e]=Ot[K_e]=Ot[Y_e]=Ot[X_e]=Ot[J_e]=Ot[Q_e]=Ot[Z_e]=!0;Ot[k_e]=Ot[T_e]=Ot[U_e]=Ot[O_e]=Ot[W_e]=Ot[I_e]=Ot[R_e]=Ot[D_e]=Ot[M_e]=Ot[$_e]=Ot[L_e]=Ot[V_e]=Ot[F_e]=Ot[B_e]=Ot[z_e]=!1;function eNe(e){return E_e(e)&&C_e(e.length)&&!!Ot[A_e(e)]}var tNe=eNe;function nNe(e){return function(t){return e(t)}}var oq=nNe,Xv={exports:{}};Xv.exports;(function(e,t){var n=mW,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a&&n.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(Xv,Xv.exports);var rNe=Xv.exports,iNe=tNe,aNe=oq,bI=rNe,xI=bI&&bI.isTypedArray,sNe=xI?aNe(xI):iNe,lq=sNe,oNe=u_e,lNe=qA,cNe=Tr,uNe=sq,dNe=HA,hNe=lq,fNe=Object.prototype,pNe=fNe.hasOwnProperty;function mNe(e,t){var n=cNe(e),r=!n&&lNe(e),i=!n&&!r&&uNe(e),a=!n&&!r&&!i&&hNe(e),s=n||r||i||a,l=s?oNe(e.length,String):[],c=l.length;for(var u in e)(t||pNe.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||dNe(u,c)))&&l.push(u);return l}var gNe=mNe,vNe=Object.prototype;function yNe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||vNe;return e===n}var bNe=yNe;function xNe(e,t){return function(n){return e(t(n))}}var cq=xNe,wNe=cq,SNe=wNe(Object.keys,Object),jNe=SNe,_Ne=bNe,NNe=jNe,PNe=Object.prototype,ANe=PNe.hasOwnProperty;function CNe(e){if(!_Ne(e))return NNe(e);var t=[];for(var n in Object(e))ANe.call(e,n)&&n!="constructor"&&t.push(n);return t}var ENe=CNe,kNe=CA,TNe=GA;function ONe(e){return e!=null&&TNe(e.length)&&!kNe(e)}var em=ONe,INe=gNe,RNe=ENe,DNe=em;function MNe(e){return DNe(e)?INe(e):RNe(e)}var ox=MNe,$Ne=Qje,LNe=l_e,VNe=ox;function FNe(e){return $Ne(e,VNe,LNe)}var BNe=FNe,wI=BNe,zNe=1,UNe=Object.prototype,WNe=UNe.hasOwnProperty;function qNe(e,t,n,r,i,a){var s=n&zNe,l=wI(e),c=l.length,u=wI(t),h=u.length;if(c!=h&&!s)return!1;for(var d=c;d--;){var f=l[d];if(!(s?f in t:WNe.call(t,f)))return!1}var p=a.get(e),v=a.get(t);if(p&&v)return p==t&&v==e;var m=!0;a.set(e,t),a.set(t,e);for(var y=s;++d<c;){f=l[d];var b=e[f],w=t[f];if(r)var x=s?r(w,b,f,t,e,a):r(b,w,f,e,t,a);if(!(x===void 0?b===w||i(b,w,n,r,a):x)){m=!1;break}y||(y=f=="constructor")}if(m&&!y){var S=e.constructor,j=t.constructor;S!=j&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof j=="function"&&j instanceof j)&&(m=!1)}return a.delete(e),a.delete(t),m}var HNe=qNe,GNe=Hl,KNe=ka,YNe=GNe(KNe,"DataView"),XNe=YNe,JNe=Hl,QNe=ka,ZNe=JNe(QNe,"Promise"),ePe=ZNe,tPe=Hl,nPe=ka,rPe=tPe(nPe,"Set"),uq=rPe,iPe=Hl,aPe=ka,sPe=iPe(aPe,"WeakMap"),oPe=sPe,bj=XNe,xj=kA,wj=ePe,Sj=uq,jj=oPe,dq=ds,Rd=vW,SI="[object Map]",lPe="[object Object]",jI="[object Promise]",_I="[object Set]",NI="[object WeakMap]",PI="[object DataView]",cPe=Rd(bj),uPe=Rd(xj),dPe=Rd(wj),hPe=Rd(Sj),fPe=Rd(jj),zo=dq;(bj&&zo(new bj(new ArrayBuffer(1)))!=PI||xj&&zo(new xj)!=SI||wj&&zo(wj.resolve())!=jI||Sj&&zo(new Sj)!=_I||jj&&zo(new jj)!=NI)&&(zo=function(e){var t=dq(e),n=t==lPe?e.constructor:void 0,r=n?Rd(n):"";if(r)switch(r){case cPe:return PI;case uPe:return SI;case dPe:return jI;case hPe:return _I;case fPe:return NI}return t});var pPe=zo,mw=ZW,mPe=rq,gPe=Gje,vPe=HNe,AI=pPe,CI=Tr,EI=sq,yPe=lq,bPe=1,kI="[object Arguments]",TI="[object Array]",Xm="[object Object]",xPe=Object.prototype,OI=xPe.hasOwnProperty;function wPe(e,t,n,r,i,a){var s=CI(e),l=CI(t),c=s?TI:AI(e),u=l?TI:AI(t);c=c==kI?Xm:c,u=u==kI?Xm:u;var h=c==Xm,d=u==Xm,f=c==u;if(f&&EI(e)){if(!EI(t))return!1;s=!0,h=!1}if(f&&!h)return a||(a=new mw),s||yPe(e)?mPe(e,t,n,r,i,a):gPe(e,t,c,n,r,i,a);if(!(n&bPe)){var p=h&&OI.call(e,"__wrapped__"),v=d&&OI.call(t,"__wrapped__");
vendor: 3,132 bytes, line 633
633if(p||v){var m=p?e.value():e,y=v?t.value():t;return a||(a=new mw),i(m,y,n,r,a)}}return f?(a||(a=new mw),vPe(e,t,n,r,i,a)):!1}var SPe=wPe,jPe=SPe,II=hs;function hq(e,t,n,r,i){return e===t?!0:e==null||t==null||!II(e)&&!II(t)?e!==e&&t!==t:jPe(e,t,n,r,hq,i)}var KA=hq,_Pe=ZW,NPe=KA,PPe=1,APe=2;function CPe(e,t,n,r){var i=n.length,a=i,s=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var c=l[0],u=e[c],h=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var d=new _Pe;if(r)var f=r(u,h,c,e,t,d);if(!(f===void 0?NPe(h,u,PPe|APe,r,d):f))return!1}}return!0}var EPe=CPe,kPe=No;function TPe(e){return e===e&&!kPe(e)}var fq=TPe,OPe=fq,IPe=ox;function RPe(e){for(var t=IPe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,OPe(i)]}return t}var DPe=RPe;function MPe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var pq=MPe,$Pe=EPe,LPe=DPe,VPe=pq;function FPe(e){var t=LPe(e);return t.length==1&&t[0][2]?VPe(t[0][0],t[0][1]):function(n){return n===e||$Pe(n,e,t)}}var BPe=FPe;function zPe(e,t){return e!=null&&t in Object(e)}var UPe=zPe,WPe=SW,qPe=qA,HPe=Tr,GPe=HA,KPe=GA,YPe=qb;function XPe(e,t,n){t=WPe(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var s=YPe(t[r]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&KPe(i)&&GPe(s,i)&&(HPe(e)||qPe(e)))}var JPe=XPe,QPe=UPe,ZPe=JPe;function eAe(e,t){return e!=null&&ZPe(e,t,QPe)}var tAe=eAe,nAe=KA,rAe=jW,iAe=tAe,aAe=AA,sAe=fq,oAe=pq,lAe=qb,cAe=1,uAe=2;function dAe(e,t){return aAe(e)&&sAe(t)?oAe(lAe(e),t):function(n){var r=rAe(n,e);return r===void 0&&r===t?iAe(n,e):nAe(t,r,cAe|uAe)}}var hAe=dAe;function fAe(e){return e}var Dd=fAe;function pAe(e){return function(t){return t==null?void 0:t[e]}}var mAe=pAe,gAe=RA;function vAe(e){return function(t){return gAe(t,e)}}var yAe=vAe,bAe=mAe,xAe=yAe,wAe=AA,SAe=qb;function jAe(e){return wAe(e)?bAe(SAe(e)):xAe(e)}var _Ae=jAe,NAe=BPe,PAe=hAe,AAe=Dd,CAe=Tr,EAe=_Ae;function kAe(e){return typeof e=="function"?e:e==null?AAe:typeof e=="object"?CAe(e)?PAe(e[0],e[1]):NAe(e):EAe(e)}var Po=kAe;function TAe(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var mq=TAe;function OAe(e){return e!==e}var IAe=OAe;function RAe(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var DAe=RAe,MAe=mq,$Ae=IAe,LAe=DAe;function VAe(e,t,n){return t===t?LAe(e,t,n):MAe(e,$Ae,n)}var FAe=VAe,BAe=FAe;function zAe(e,t){var n=e==null?0:e.length;return!!n&&BAe(e,t,0)>-1}var UAe=zAe;function WAe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var qAe=WAe;function HAe(){}var GAe=HAe,gw=uq,KAe=GAe,YAe=WA,XAe=1/0,JAe=gw&&1/YAe(new gw([,-0]))[1]==XAe?function(e){return new gw(e)}:KAe,QAe=JAe,ZAe=eq,eCe=UAe,tCe=qAe,nCe=nq,rCe=QAe,iCe=WA,aCe=200;function sCe(e,t,n){var r=-1,i=eCe,a=e.length,s=!0,l=[],c=l;if(n)s=!1,i=tCe;else if(a>=aCe){var u=t?null:rCe(e);if(u)return iCe(u);s=!1,i=nCe,c=new ZAe}else c=t?[]:l;e:for(;++r<a;){var h=e[r],d=t?t(h):h;if(h=n||h!==0?h:0,s&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),l.push(h)}
vendor: 4,613 bytes, line 633
633else i(c,d,n)||(c!==l&&c.push(d),l.push(h))}return l}var oCe=sCe,lCe=Po,cCe=oCe;function uCe(e,t){return e&&e.length?cCe(e,lCe(t)):[]}var dCe=uCe;const RI=jt(dCe);function gq(e,t,n){return t===!0?RI(e,n):He(t)?RI(e,t):e}function Lu(e){"@babel/helpers - typeof";return Lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lu(e)}var hCe=["ref"];function DI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DI(Object(n),!0).forEach(function(r){lx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yq(r.key),r)}}function pCe(e,t,n){return t&&MI(e.prototype,t),n&&MI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mCe(e,t,n){return t=Jv(t),gCe(e,vq()?Reflect.construct(t,n||[],Jv(e).constructor):t.apply(e,n))}function gCe(e,t){if(t&&(Lu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vCe(e)}function vCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vq=function(){return!!e})()}function Jv(e){return Jv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jv(e)}function yCe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_j(e,t)}function _j(e,t){return _j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_j(e,t)}function lx(e,t,n){return t=yq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yq(e){var t=bCe(e,"string");return Lu(t)=="symbol"?t:t+""}function bCe(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xCe(e,t){if(e==null)return{};var n=wCe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wCe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function SCe(e){return e.value}function jCe(e,t){if(D.isValidElement(e))return D.cloneElement(e,t);if(typeof e=="function")return D.createElement(e,t);t.ref;var n=xCe(t,hCe);return D.createElement(UA,n)}var $I=1,nu=function(e){function t(){var n;fCe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=mCe(this,t,[].concat(i)),lx(n,"lastBoundingBox",{width:-1,height:-1}),n}return yCe(t,e),pCe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>$I||Math.abs(i.height-this.lastBoundingBox.height)>$I)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}}
633,{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ra({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,s=i.align,l=i.verticalAlign,c=i.margin,u=i.chartWidth,h=i.chartHeight,d,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();d={left:((u||0)-p.width)/2}}else d=s==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var v=this.getBBoxSnapshot();f={top:((h||0)-v.height)/2}}else f=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Ra(Ra({},d),f)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,s=i.width,l=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,h=i.payload,d=Ra(Ra({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return D.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){r.wrapperNode=p}},jCe(a,Ra(Ra({},this.props),{},{payload:gq(h,u,SCe)})))}}],[{key:"getWithHeight",value:function(r,i){var a=Ra(Ra({},this.defaultProps),r.props),s=a.layout;return s==="vertical"&&de(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])}(g.PureComponent);lx(nu,"displayName","Legend");lx(nu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var LI=Qp,_Ce=qA,NCe=Tr,VI=LI?LI.isConcatSpreadable:void 0;function PCe(e){return NCe(e)||_Ce(e)||!!(VI&&e&&e[VI])}var ACe=PCe,CCe=iq,ECe=ACe;function bq(e,t,n,r,i){var a=-1,s=e.length;for(n||(n=ECe),i||(i=[]);++a<s;){var l=e[a];t>0&&n(l)?t>1?bq(l,t-1,n,r,i):CCe(i,l):r||(i[i.length]=l)}return i}var xq=bq;function kCe(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),l=s.length;l--;){var c=s[e?l:++i];if(n(a[c],c,a)===!1)break}return t}}var TCe=kCe,OCe=TCe,ICe=OCe(),RCe=ICe,DCe=RCe,MCe=ox;function $Ce(e,t){return e&&DCe(e,t,MCe)}var wq=$Ce,LCe=em;function VCe(e,t){return function(n,r){if(n==null)return n;if(!LCe(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&r(s[a],a,s)!==!1;);return n}}var FCe=VCe,BCe=wq,zCe=FCe,UCe=zCe(BCe),YA=UCe,WCe=YA,qCe=em;function HCe(e,t){var n=-1,r=qCe(e)?Array(e.length):[];return WCe(e,function(i,a,s){r[++n]=t(i,a,s)}),r}var Sq=HCe;function GCe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var KCe=GCe,FI=Cd;function YCe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=FI(e),s=t!==void 0,l=t===null,c=t===t,u=FI(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}var XCe=YCe,JCe=XCe;function QCe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,s=i.length,l=n.length;++r<s;){var c=JCe(i[r],a[r]);if(c){if(r>=l)return c;var u=n[r];return c*(u=="desc"?-1:1)}}return e.index-t.index}var ZCe=QCe,vw=IA,eEe=RA,tEe=Po,nEe=Sq,rEe=KCe,iEe=oq,aEe=ZCe,sEe=Dd,oEe=Tr;function lEe(e,t,n){t.length?t=vw(t,function(a){return oEe(a)?function(s){return eEe(s,a.length===1?a[0]:a)}:a}):t=[sEe];var r=-1;t=vw(t,iEe(tEe));var i=nEe(e,function(a,s,l){var c=vw(t,function(u){return u(a)});return{criteria:c,index:++r,value:a}});return rEe(i,function(a,s){return aEe(a,s,n)})}var cEe=lEe;function uEe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var dEe=uEe,hEe=dEe,BI=Math.max;function fEe(e,t,n){return t=BI(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=BI(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(s),hEe(e,this,l)}}var pEe=fEe;function mEe(e){return function(){return e}}var gEe=mEe,vEe=Hl,yEe=function(){try{var e=vEe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),jq=yEe,bEe=gEe,zI=jq,xEe=Dd,wEe=zI?function(e,t){return zI(e,"toString",{configurable:!0,enumerable:!1,value:bEe(t),writable:!0})}:xEe,SEe=wEe,jEe=800,_Ee=16,NEe=Date.now;function PEe(e){var t=0,n=0;return function(){var r=NEe(),i=_Ee-(r-n);if(n=r,i>0){if(++t>=jEe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var AEe=PEe,CEe=SEe,EEe=AEe,kEe=EEe(CEe),TEe=kEe,OEe=Dd,IEe=pEe,REe=TEe;function DEe(e,t){return REe(IEe(e,t,OEe),e+"")}var MEe=DEe,$Ee=EA,LEe=em,VEe=HA,FEe=No;function BEe(e,t,n){if(!FEe(n))return!1;var r=typeof t;return(r=="number"?LEe(n)&&VEe(t,n.length):r=="string"&&t in n)?$Ee(n[t],e):!1}
vendor: 11,499 bytes, lines 633-634
633var cx=BEe,zEe=xq,UEe=cEe,WEe=MEe,UI=cx,qEe=WEe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&UI(e,t[0],t[1])?t=[]:n>2&&UI(t[0],t[1],t[2])&&(t=[t[0]]),UEe(e,zEe(t,1),[])}),HEe=qEe;const XA=jt(HEe);function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function Nj(){return Nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nj.apply(this,arguments)}function GEe(e,t){return JEe(e)||XEe(e,t)||YEe(e,t)||KEe()}function KEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 634In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YEe(e,t){if(e){if(typeof e=="string")return WI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WI(e,t)}}function WI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function JEe(e){if(Array.isArray(e))return e}function qI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qI(Object(n),!0).forEach(function(r){QEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QEe(e,t,n){return t=ZEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZEe(e){var t=eke(e,"string");return Ff(t)=="symbol"?t:t+""}function eke(e,t){if(Ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tke(e){return Array.isArray(e)&&bn(e[0])&&bn(e[1])?e.join(" ~ "):e}var nke=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,a=i===void 0?{}:i,s=t.itemStyle,l=s===void 0?{}:s,c=t.labelStyle,u=c===void 0?{}:c,h=t.payload,d=t.formatter,f=t.itemSorter,p=t.wrapperClassName,v=t.labelClassName,m=t.label,y=t.labelFormatter,b=t.accessibilityLayer,w=b===void 0?!1:b,x=function(){if(h&&h.length){var E={padding:0,margin:0},I=(f?XA(h,f):h).map(function(O,M){if(O.type==="none")return null;var $=yw({display:"block",paddingTop:4,paddingBottom:4,color:O.color||"#000"},l),L=O.formatter||d||tke,T=O.value,R=O.name,z=T,F=R;if(L&&z!=null&&F!=null){var B=L(T,R,O,M,h);if(Array.isArray(B)){var W=GEe(B,2);z=W[0],F=W[1]}else z=B}return D.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:$},bn(F)?D.createElement("span",{className:"recharts-tooltip-item-name"},F):null,bn(F)?D.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,D.createElement("span",{className:"recharts-tooltip-item-value"},z),D.createElement("span",{className:"recharts-tooltip-item-unit"},O.unit||""))});return D.createElement("ul",{className:"recharts-tooltip-item-list",style:E},I)}return null},S=yw({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),j=yw({margin:0},u),N=!lt(m),_=N?m:"",P=nt("recharts-default-tooltip",p),A=nt("recharts-tooltip-label",v);N&&y&&h!==void 0&&h!==null&&(_=y(m,h));var k=w?{role:"status","aria-live":"assertive"}:{};return D.createElement("div",Nj({className:P,style:S},k),D.createElement("p",{className:A,style:j},D.isValidElement(_)?_:"".concat(_)),x())};function Bf(e){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function Jm(e,t,n){return t=rke(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rke(e){var t=ike(e,"string");return Bf(t)=="symbol"?t:t+""}function ike(e,t){if(Bf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sh="recharts-tooltip-wrapper",ake={visibility:"hidden"};function ske(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return nt(sh,Jm(Jm(Jm(Jm({},"".concat(sh,"-right"),de(n)&&t&&de(t.x)&&n>=t.x),"".concat(sh,"-left"),de(n)&&t&&de(t.x)&&n<t.x),"".concat(sh,"-bottom"),de(r)&&t&&de(t.y)&&r>=t.y),"".concat(sh,"-top"),de(r)&&t&&de(t.y)&&r<t.y))}function HI(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,s=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(a&&de(a[r]))return a[r];var h=n[r]-l-i,d=n[r]+i;if(t[r])return s[r]?h:d;if(s[r]){var f=h,p=c[r];return f<p?Math.max(d,c[r]):Math.max(h,c[r])}var v=d+l,m=c[r]+u;return v>m?Math.max(h,c[r]):Math.max(d,c[r])}function oke(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function lke(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,u,h,d;return s.height>0&&s.width>0&&n?(h=HI({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),d=HI({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=oke({translateX:h,translateY:d,useTranslate3d:l})):u=ake,{cssProperties:u,cssClasses:ske({translateX:h,translateY:d,coordinate:n})}}function Vu(e){"@babel/helpers - typeof";return Vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(e)}function GI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function KI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GI(Object(n),!0).forEach(function(r){Aj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nq(r.key),r)}}function dke(e,t,n){return t&&uke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hke(e,t,n){return t=Qv(t),fke(e,_q()?Reflect.construct(t,n||[],Qv(e).constructor):t.apply(e,n))}function fke(e,t){if(t&&(Vu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pke(e)}function pke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_q=function(){return!!e})()}function Qv(e){return Qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qv(e)}function mke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pj(e,t)}function Pj(e,t){return Pj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Pj(e,t)}function Aj(e,t,n){return t=Nq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nq(e){var t=gke(e,"string");return Vu(t)=="symbol"?t:t+""}function gke(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YI=1,vke=function(e){function t(){var n;cke(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=hke(this,t,[].concat(i)),Aj(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Aj(n,"handleKeyDown",function(s){if(s.key==="Escape"){var l,c,u,h;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(u=(h=n.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&u!==void 0?u:0}})}}),n}return mke(t,e),dke(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>YI||Math.abs(r.height-this.state.lastBoundingBox.height)>YI)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,a=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,u=i.children,h=i.coordinate,d=i.hasPayload,f=i.isAnimationActive,p=i.offset,v=i.position,m=i.reverseDirection,y=i.useTranslate3d,b=i.viewBox,w=i.wrapperStyle,x=lke({allowEscapeViewBox:s,coordinate:h,offsetTopLeft:p,position:v,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:b}
634),S=x.cssClasses,j=x.cssProperties,N=KI(KI({transition:f&&a?"transform ".concat(l,"ms ").concat(c):void 0},j),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},w);return D.createElement("div",{tabIndex:-1,className:S,style:N,ref:function(P){r.wrapperNode=P}},u)}}])}(g.PureComponent),yke=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ao={isSsr:yke(),get:function(t){return ao[t]},set:function(t,n){if(typeof t=="string")ao[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ao[i]=t[i]})}}};function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function JI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XI(Object(n),!0).forEach(function(r){JA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Aq(r.key),r)}}function wke(e,t,n){return t&&xke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ske(e,t,n){return t=Zv(t),jke(e,Pq()?Reflect.construct(t,n||[],Zv(e).constructor):t.apply(e,n))}function jke(e,t){if(t&&(Fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _ke(e)}function _ke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pq=function(){return!!e})()}function Zv(e){return Zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zv(e)}function Nke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cj(e,t)}function Cj(e,t){return Cj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cj(e,t)}function JA(e,t,n){return t=Aq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aq(e){var t=Pke(e,"string");return Fu(t)=="symbol"?t:t+""}function Pke(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ake(e){return e.dataKey}function Cke(e,t){return D.isValidElement(e)?D.cloneElement(e,t):typeof e=="function"?D.createElement(e,t):D.createElement(nke,t)}var na=function(e){function t(){return bke(this,t),Ske(this,t,arguments)}return Nke(t,e),wke(t,[{key:"render",value:function(){var r=this,i=this.props,a=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,u=i.content,h=i.coordinate,d=i.filterNull,f=i.isAnimationActive,p=i.offset,v=i.payload,m=i.payloadUniqBy,y=i.position,b=i.reverseDirection,w=i.useTranslate3d,x=i.viewBox,S=i.wrapperStyle,j=v??[];d&&j.length&&(j=gq(v.filter(function(_){return _.value!=null&&(_.hide!==!0||r.props.includeHidden)}),m,Ake));var N=j.length>0;return D.createElement(vke,{allowEscapeViewBox:s,animationDuration:l,animationEasing:c,isAnimationActive:f,active:a,coordinate:h,hasPayload:N,offset:p,position:y,reverseDirection:b,useTranslate3d:w,viewBox:x,wrapperStyle:S},Cke(u,JI(JI({},this.props),{},{payload:j})))}}])}(g.PureComponent);JA(na,"displayName","Tooltip");JA(na,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ao.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Eke=ka,kke=function(){return Eke.Date.now()},Tke=kke,Oke=/\s/;function Ike(e){for(var t=e.length;t--&&Oke.test(e.charAt(t)););return t}var Rke=Ike,Dke=Rke,Mke=/^\s+/;function $ke(e){return e&&e.slice(0,Dke(e)+1).replace(Mke,"")}var Lke=$ke,Vke=Lke,QI=No,Fke=Cd,ZI=NaN,Bke=/^[-+]0x[0-9a-f]+$/i,zke=/^0b[01]+$/i,Uke=/^0o[0-7]+$/i,Wke=parseInt;function qke(e){if(typeof e=="number")return e;if(Fke(e))return ZI;if(QI(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=QI(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Vke(e);var n=zke.test(e);return n||Uke.test(e)?Wke(e.slice(2),n?2:8):Bke.test(e)?ZI:+e}
vendor: 13,387 bytes, lines 634-640
634var Cq=qke,Hke=No,bw=Tke,eR=Cq,Gke="Expected a function",Kke=Math.max,Yke=Math.min;function Xke(e,t,n){var r,i,a,s,l,c,u=0,h=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Gke);t=eR(t)||0,Hke(n)&&(h=!!n.leading,d="maxWait"in n,a=d?Kke(eR(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function p(N){var _=r,P=i;return r=i=void 0,u=N,s=e.apply(P,_),s}function v(N){return u=N,l=setTimeout(b,t),h?p(N):s}function m(N){var _=N-c,P=N-u,A=t-_;return d?Yke(A,a-P):A}function y(N){var _=N-c,P=N-u;return c===void 0||_>=t||_<0||d&&P>=a}function b(){var N=bw();if(y(N))return w(N);l=setTimeout(b,m(N))}function w(N){return l=void 0,f&&r?p(N):(r=i=void 0,s)}function x(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function S(){return l===void 0?s:w(bw())}function j(){var N=bw(),_=y(N);if(r=arguments,i=this,c=N,_){if(l===void 0)return v(c);if(d)return clearTimeout(l),l=setTimeout(b,t),p(c)}return l===void 0&&(l=setTimeout(b,t)),s}return j.cancel=x,j.flush=S,j}var Jke=Xke,Qke=Jke,Zke=No,eTe="Expected a function";function tTe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(eTe);return Zke(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Qke(e,t,{leading:r,maxWait:t,trailing:i})}var nTe=tTe;const Eq=jt(nTe);function zf(e){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(e)}function tR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tR(Object(n),!0).forEach(function(r){rTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rTe(e,t,n){return t=iTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iTe(e){var t=aTe(e,"string");return zf(t)=="symbol"?t:t+""}function aTe(e,t){if(zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sTe(e,t){return uTe(e)||cTe(e,t)||lTe(e,t)||oTe()}function oTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 635In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lTe(e,t){if(e){if(typeof e=="string")return nR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nR(e,t)}}function nR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function uTe(e){if(Array.isArray(e))return e}var dTe=g.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,s=a===void 0?"100%":a,l=e.height,c=l===void 0?"100%":l,u=e.minWidth,h=u===void 0?0:u,d=e.minHeight,f=e.maxHeight,p=e.children,v=e.debounce,m=v===void 0?0:v,y=e.id,b=e.className,w=e.onResize,x=e.style,S=x===void 0?{}:x,j=g.useRef(null),N=g.useRef();N.current=w,g.useImperativeHandle(t,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var _=g.useState({containerWidth:i.width,containerHeight:i.height}),P=sTe(_,2),A=P[0],k=P[1],C=g.useCallback(function(I,O){k(function(M){var $=Math.round(I),L=Math.round(O);return M.containerWidth===$&&M.containerHeight===L?M:{containerWidth:$,containerHeight:L}})},[]);g.useEffect(function(){var I=function(R){var z,F=R[0].contentRect,B=F.width,W=F.height;C(B,W),(z=N.current)===null||z===void 0||z.call(N,B,W)};m>0&&(I=Eq(I,m,{trailing:!0,leading:!1}));var O=new ResizeObserver(I),M=j.current.getBoundingClientRect(),$=M.width,L=M.height;return C($,L),O.observe(j.current),function(){O.disconnect()}},[C,m]);var E=g.useMemo(function(){var I=A.containerWidth,O=A.containerHeight;if(I<0||O<0)return null;Ya(Zo(s)||Zo(c),`The width(%s) and height(%s) are both fixed numbers, 636 maybe you don't need to use a ResponsiveContainer.`,s,c),Ya(!n||n>0,"The aspect(%s) must be greater than zero.",n);var M=Zo(s)?I:s,$=Zo(c)?O:c;n&&n>0&&(M?$=M/n:$&&(M=$*n),f&&$>f&&($=f)),Ya(M>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0, 637 please check the style of container, or the props width(%s) and height(%s), 638 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 639 height and width.`,M,$,s,c,h,d,n);var L=!Array.isArray(p)&&Ka(p.type).endsWith("Chart");return D.Children.map(p,function(T){return D.isValidElement(T)?g.cloneElement(T,Qm({width:M,height:$},L?{style:Qm({height:"100%",width:"100%",maxHeight:$,maxWidth:M},T.props.style)}:{})):T})},[n,p,c,f,d,h,A,s]);return D.createElement("div",{id:y?"".concat(y):void 0,className:nt("recharts-responsive-container",b),style:Qm(Qm({},S),{},{width:s,height:c,minWidth:h,minHeight:d,maxHeight:f}),ref:j},E)}),QA=function(t){return null};QA.displayName="Cell";function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function rR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ej(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rR(Object(n),!0).forEach(function(r){hTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hTe(e,t,n){return t=fTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fTe(e){var t=pTe(e,"string");return Uf(t)=="symbol"?t:t+""}function pTe(e,t){if(Uf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Uf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vc={widthCache:{},cacheCount:0},mTe=2e3,gTe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},iR="recharts_measurement_span";function vTe(e){var t=Ej({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Hh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ao.isSsr)return{width:0,height:0};var r=vTe(n),i=JSON.stringify({text:t,copyStyle:r});if(vc.widthCache[i])return vc.widthCache[i];try{var a=document.getElementById(iR);a||(a=document.createElement("span"),a.setAttribute("id",iR),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var s=Ej(Ej({},gTe),r);Object.assign(a.style,s),a.textContent="".concat(t);var l=a.getBoundingClientRect(),c={width:l.width,height:l.height};return vc.widthCache[i]=c,++vc.cacheCount>mTe&&(vc.cacheCount=0,vc.widthCache={}),c}catch{return{width:0,height:0}}},yTe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(e)}function ey(e,t){return STe(e)||wTe(e,t)||xTe(e,t)||bTe()}function bTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 640In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xTe(e,t){if(e){if(typeof e=="string")return aR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aR(e,t)}}function aR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function STe(e){if(Array.isArray(e))return e}function jTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NTe(r.key),r)}}function _Te(e,t,n){return t&&sR(e.prototype,t),n&&sR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function NTe(e){var t=PTe(e,"string");return Wf(t)=="symbol"?t:t+""}function PTe(e,t){if(Wf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ATe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,CTe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,kq={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},ETe=Object.keys(kq),Fc="NaN";function kTe(e,t){return e*kq[t]}var Zm=function(){function e(t,n){jTe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!ATe.test(n)&&(this.num=NaN,this.unit=""),ETe.includes(n)&&(this.num=kTe(t,n),this.unit="px")}return _Te(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=CTe.exec(n))!==null&&r!==void 0?r:[],a=ey(i,3),s=a[1],l=a[2];return new e(parseFloat(s),l??"")}}])}();function Tq(e){if(e.includes(Fc))return Fc;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=oR.exec(t))!==null&&n!==void 0?n:[],i=ey(r,4),a=i[1],s=i[2],l=i[3],c=Zm.parse(a??""),u=Zm.parse(l??""),h=s==="*"?c.multiply(u):c.divide(u);if(h.isNaN())return Fc;t=t.replace(oR,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,f=(d=lR.exec(t))!==null&&d!==void 0?d:[],p=ey(f,4),v=p[1],m=p[2],y=p[3],b=Zm.parse(v??""),w=Zm.parse(y??""),x=m==="+"?b.add(w):b.subtract(w);if(x.isNaN())return Fc;t=t.replace(lR,x.toString())}return t}var cR=/\(([^()]*)\)/;function TTe(e){for(var t=e;t.includes("(");){var n=cR.exec(t),r=ey(n,2),i=r[1];t=t.replace(cR,Tq(i))}return t}function OTe(e){var t=e.replace(/\s+/g,"");return t=TTe(t),t=Tq(t),t}function ITe(e){try{return OTe(e)}catch{return Fc}}function xw(e){var t=ITe(e.slice(5,-1));return t===Fc?"":t}var RTe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],DTe=["dx","dy","angle","className","breakAll"];function kj(){return kj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kj.apply(this,arguments)}function uR(e,t){if(e==null)return{};var n=MTe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MTe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function dR(e,t){return FTe(e)||VTe(e,t)||LTe(e,t)||$Te()}
640function $Te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 641In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LTe(e,t){if(e){if(typeof e=="string")return hR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hR(e,t)}}function hR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function FTe(e){if(Array.isArray(e))return e}var Oq=/[ \f\n\r\t\v\u2028\u2029]+/,Iq=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var a=[];lt(n)||(r?a=n.toString().split(""):a=n.toString().split(Oq));var s=a.map(function(c){return{word:c,width:Hh(c,i).width}}),l=r?0:Hh(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:l}}catch{return null}},BTe=function(t,n,r,i,a){var s=t.maxLines,l=t.children,c=t.style,u=t.breakAll,h=de(s),d=l,f=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function($,L){var T=L.word,R=L.width,z=$[$.length-1];if(z&&(i==null||a||z.width+R+r<Number(i)))z.words.push(T),z.width+=R+r;else{var F={words:[T],width:R};$.push(F)}return $},[])},p=f(n),v=function(M){return M.reduce(function($,L){return $.width>L.width?$:L})};if(!h)return p;for(var m="â¦",y=function(M){var $=d.slice(0,M),L=Iq({breakAll:u,style:c,children:$+m}).wordsWithComputedWidth,T=f(L),R=T.length>s||v(T).width>Number(i);return[R,T]},b=0,w=d.length-1,x=0,S;b<=w&&x<=d.length-1;){var j=Math.floor((b+w)/2),N=j-1,_=y(N),P=dR(_,2),A=P[0],k=P[1],C=y(j),E=dR(C,1),I=E[0];if(!A&&!I&&(b=j+1),A&&I&&(w=j-1),!A&&I){S=k;break}x++}return S||p},fR=function(t){var n=lt(t)?[]:t.toString().split(Oq);return[{words:n}]},zTe=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,s=t.breakAll,l=t.maxLines;if((n||r)&&!ao.isSsr){var c,u,h=Iq({breakAll:s,children:i,style:a});if(h){var d=h.wordsWithComputedWidth,f=h.spaceWidth;c=d,u=f}else return fR(i);return BTe({breakAll:s,children:i,maxLines:l,style:a},c,u,n,r)}return fR(i)},pR="#808080",ty=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,s=t.lineHeight,l=s===void 0?"1em":s,c=t.capHeight,u=c===void 0?"0.71em":c,h=t.scaleToFit,d=h===void 0?!1:h,f=t.textAnchor,p=f===void 0?"start":f,v=t.verticalAnchor,m=v===void 0?"end":v,y=t.fill,b=y===void 0?pR:y,w=uR(t,RTe),x=g.useMemo(function(){return zTe({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:d,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,d,w.style,w.width]),S=w.dx,j=w.dy,N=w.angle,_=w.className,P=w.breakAll,A=uR(w,DTe);if(!bn(r)||!bn(a))return null;var k=r+(de(S)?S:0),C=a+(de(j)?j:0),E;switch(m){case"start":E=xw("calc(".concat(u,")"));break;case"middle":E=xw("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:E=xw("calc(".concat(x.length-1," * -").concat(l,")"));break}var I=[];if(d){var O=x[0].width,M=w.width;I.push("scale(".concat((de(M)?M/O:1)/O,")"))}return N&&I.push("rotate(".concat(N,", ").concat(k,", ").concat(C,")")),I.length&&(A.transform=I.join(" ")),D.createElement("text",kj({},ot(A,!0),{x:k,y:C,className:nt("recharts-text",_),textAnchor:p,fill:b.includes("url")?pR:b}),x.map(function($,L){var T=$.words.join(P?"":" ");return D.createElement("tspan",{x:k,dy:L===0?E:l,key:"".concat(T,"-").concat(L)},T)}))};function so(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function UTe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ZA(e){let t,n,r;e.length!==2?(t=so,n=(l,c)=>so(e(l),c),r=(l,c)=>e(l)-c):(t=e===so||e===UTe?e:WTe,n=e,r=e);function i(l,c,u=0,h=l.length){if(u<h){if(t(c,c)!==0)return h;do{const d=u+h>>>1;n(l[d],c)<0?u=d+1:h=d}while(u<h)}return u}function a(l,c,u=0,h=l.length){if(u<h){if(t(c,c)!==0)return h;do{const d=u+h>>>1;n(l[d],c)<=0?u=d+1:h=d}while(u<h)}return u}function s(l,c,u=0,h=l.length){const d=i(l,c,u,h-1);return d>u&&r(l[d-1],c)>-r(l[d],c)?d-1:d}return{left:i,center:s,right:a}}function WTe(){return 0}function Rq(e){return e===null?NaN:+e}function*qTe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const HTe=ZA(so),tm=HTe.right;ZA(Rq).center;class mR extends Map{constructor(t,n=YTe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(gR(this,t))}has(t){return super.has(gR(this,t))}set(t,n){return super.set(GTe(this,t),n)}delete(t){return super.delete(KTe(this,t))}}function gR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function GTe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function KTe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function YTe(e){return e!==null&&typeof e=="object"?e.valueOf():e}
641function XTe(e=so){if(e===so)return Dq;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Dq(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const JTe=Math.sqrt(50),QTe=Math.sqrt(10),ZTe=Math.sqrt(2);function ny(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),s=a>=JTe?10:a>=QTe?5:a>=ZTe?2:1;let l,c,u;return i<0?(u=Math.pow(10,-i)/s,l=Math.round(e*u),c=Math.round(t*u),l/u<e&&++l,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*s,l=Math.round(e/u),c=Math.round(t/u),l*u<e&&++l,c*u>t&&--c),c<l&&.5<=n&&n<2?ny(e,t,n*2):[l,c,u]}function Tj(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,s]=r?ny(t,e,n):ny(e,t,n);if(!(a>=i))return[];const l=a-i+1,c=new Array(l);if(r)if(s<0)for(let u=0;u<l;++u)c[u]=(a-u)/-s;else for(let u=0;u<l;++u)c[u]=(a-u)*s;else if(s<0)for(let u=0;u<l;++u)c[u]=(i+u)/-s;else for(let u=0;u<l;++u)c[u]=(i+u)*s;return c}function Oj(e,t,n){return t=+t,e=+e,n=+n,ny(e,t,n)[2]}function Ij(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Oj(t,e,n):Oj(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function vR(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function yR(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function Mq(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Dq:XTe(i);r>n;){if(r-n>600){const c=r-n+1,u=t-n+1,h=Math.log(c),d=.5*Math.exp(2*h/3),f=.5*Math.sqrt(h*d*(c-d)/c)*(u-c/2<0?-1:1),p=Math.max(n,Math.floor(t-u*d/c+f)),v=Math.min(r,Math.floor(t+(c-u)*d/c+f));Mq(e,t,p,v,i)}const a=e[t];let s=n,l=r;for(oh(e,n,t),i(e[r],a)>0&&oh(e,n,r);s<l;){for(oh(e,s,l),++s,--l;i(e[s],a)<0;)++s;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?oh(e,n,l):(++l,oh(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function oh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function e2e(e,t,n){if(e=Float64Array.from(qTe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return yR(e);if(t>=1)return vR(e);var r,i=(r-1)*t,a=Math.floor(i),s=vR(Mq(e,a).subarray(0,a+1)),l=yR(e.subarray(a+1));return s+(l-s)*(i-a)}}function t2e(e,t,n=Rq){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),s=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return s+(l-s)*(i-a)}}function n2e(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function yi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function fs(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Rj=Symbol("implicit");function eC(){var e=new mR,t=[],n=[],r=Rj;function i(a){let s=e.get(a);if(s===void 0){if(r!==Rj)return r;e.set(a,s=t.push(a)-1)}return n[s%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new mR;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return eC(t,n).unknown(r)},yi.apply(i,arguments),i}function qf(){var e=eC().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,s,l=!1,c=0,u=0,h=.5;delete e.unknown;function d(){var f=t().length,p=i<r,v=p?i:r,m=p?r:i;a=(m-v)/Math.max(1,f-c+u*2),l&&(a=Math.floor(a)),v+=(m-v-a*(f-c))*h,s=a*(1-c),l&&(v=Math.round(v),s=Math.round(s));var y=n2e(f).map(function(b){return v+a*b});return n(p?y.reverse():y)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,l=!0,d()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(f){return arguments.length?(l=!!f,d()):l},e.padding=function(f){return arguments.length?(c=Math.min(1,u=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(u=+f,d()):u},e.align=function(f){return arguments.length?(h=Math.max(0,Math.min(1,f)),d()):h},e.copy=function(){return qf(t(),[r,i]).round(l).paddingInner(c).paddingOuter(u).align(h)},yi.apply(d(),arguments)}function $q(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return $q(t())},e}function Gh(){return $q(qf.apply(null,arguments).paddingInner(1))}
vendor: 5,268 bytes, line 641
641function tC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Lq(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nm(){}var Hf=.7,ry=1/Hf,ru="\\s*([+-]?\\d+)\\s*",Gf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",r2e=/^#([0-9a-f]{3,8})$/,i2e=new RegExp(`^rgb\\(${ru},${ru},${ru}\\)$`),a2e=new RegExp(`^rgb\\(${va},${va},${va}\\)$`),s2e=new RegExp(`^rgba\\(${ru},${ru},${ru},${Gf}\\)$`),o2e=new RegExp(`^rgba\\(${va},${va},${va},${Gf}\\)$`),l2e=new RegExp(`^hsl\\(${Gf},${va},${va}\\)$`),c2e=new RegExp(`^hsla\\(${Gf},${va},${va},${Gf}\\)$`),bR={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};tC(nm,Kf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xR,formatHex:xR,formatHex8:u2e,formatHsl:d2e,formatRgb:wR,toString:wR});function xR(){return this.rgb().formatHex()}function u2e(){return this.rgb().formatHex8()}function d2e(){return Vq(this).formatHsl()}function wR(){return this.rgb().formatRgb()}function Kf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=r2e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?SR(t):n===3?new Pr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?eg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?eg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=i2e.exec(e))?new Pr(t[1],t[2],t[3],1):(t=a2e.exec(e))?new Pr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=s2e.exec(e))?eg(t[1],t[2],t[3],t[4]):(t=o2e.exec(e))?eg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=l2e.exec(e))?NR(t[1],t[2]/100,t[3]/100,1):(t=c2e.exec(e))?NR(t[1],t[2]/100,t[3]/100,t[4]):bR.hasOwnProperty(e)?SR(bR[e]):e==="transparent"?new Pr(NaN,NaN,NaN,0):null}function SR(e){return new Pr(e>>16&255,e>>8&255,e&255,1)}function eg(e,t,n,r){return r<=0&&(e=t=n=NaN),new Pr(e,t,n,r)}function h2e(e){return e instanceof nm||(e=Kf(e)),e?(e=e.rgb(),new Pr(e.r,e.g,e.b,e.opacity)):new Pr}function Dj(e,t,n,r){return arguments.length===1?h2e(e):new Pr(e,t,n,r??1)}function Pr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}tC(Pr,Dj,Lq(nm,{brighter(e){return e=e==null?ry:Math.pow(ry,e),new Pr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Hf:Math.pow(Hf,e),new Pr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pr(pl(this.r),pl(this.g),pl(this.b),iy(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jR,formatHex:jR,formatHex8:f2e,formatRgb:_R,toString:_R}
vendor: 14,065 bytes, line 641
641));function jR(){return`#${el(this.r)}${el(this.g)}${el(this.b)}`}function f2e(){return`#${el(this.r)}${el(this.g)}${el(this.b)}${el((isNaN(this.opacity)?1:this.opacity)*255)}`}function _R(){const e=iy(this.opacity);return`${e===1?"rgb(":"rgba("}${pl(this.r)}, ${pl(this.g)}, ${pl(this.b)}${e===1?")":`, ${e})`}`}function iy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function pl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function el(e){return e=pl(e),(e<16?"0":"")+e.toString(16)}function NR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mi(e,t,n,r)}function Vq(e){if(e instanceof Mi)return new Mi(e.h,e.s,e.l,e.opacity);if(e instanceof nm||(e=Kf(e)),!e)return new Mi;if(e instanceof Mi)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-i,c=(a+i)/2;return l?(t===a?s=(n-r)/l+(n<r)*6:n===a?s=(r-t)/l+2:s=(t-n)/l+4,l/=c<.5?a+i:2-a-i,s*=60):l=c>0&&c<1?0:s,new Mi(s,l,c,e.opacity)}function p2e(e,t,n,r){return arguments.length===1?Vq(e):new Mi(e,t,n,r??1)}function Mi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}tC(Mi,p2e,Lq(nm,{brighter(e){return e=e==null?ry:Math.pow(ry,e),new Mi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Hf:Math.pow(Hf,e),new Mi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Pr(ww(e>=240?e-240:e+120,i,r),ww(e,i,r),ww(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Mi(PR(this.h),tg(this.s),tg(this.l),iy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=iy(this.opacity);return`${e===1?"hsl(":"hsla("}${PR(this.h)}, ${tg(this.s)*100}%, ${tg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function PR(e){return e=(e||0)%360,e<0?e+360:e}function tg(e){return Math.max(0,Math.min(1,e||0))}function ww(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const nC=e=>()=>e;function m2e(e,t){return function(n){return e+n*t}}function g2e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function v2e(e){return(e=+e)==1?Fq:function(t,n){return n-t?g2e(t,n,e):nC(isNaN(t)?n:t)}}function Fq(e,t){var n=t-e;return n?m2e(e,n):nC(isNaN(e)?t:e)}const AR=function e(t){var n=v2e(t);function r(i,a){var s=n((i=Dj(i)).r,(a=Dj(a)).r),l=n(i.g,a.g),c=n(i.b,a.b),u=Fq(i.opacity,a.opacity);return function(h){return i.r=s(h),i.g=l(h),i.b=c(h),i.opacity=u(h),i+""}}return r.gamma=e,r}(1);function y2e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function b2e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function x2e(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),s;for(s=0;s<r;++s)i[s]=Md(e[s],t[s]);for(;s<n;++s)a[s]=t[s];return function(l){for(s=0;s<r;++s)a[s]=i[s](l);return a}}function w2e(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ay(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function S2e(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Md(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var Mj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sw=new RegExp(Mj.source,"g");function j2e(e){return function(){return e}}function _2e(e){return function(t){return e(t)+""}}function N2e(e,t){var n=Mj.lastIndex=Sw.lastIndex=0,r,i,a,s=-1,l=[],c=[];for(e=e+"",t=t+"";(r=Mj.exec(e))&&(i=Sw.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[s]?l[s]+=a:l[++s]=a),(r=r[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,c.push({i:s,x:ay(r,i)})),n=Sw.lastIndex;return n<t.length&&(a=t.slice(n),l[s]?l[s]+=a:l[++s]=a),l.length<2?c[0]?_2e(c[0].x):j2e(t):(t=c.length,function(u){for(var h=0,d;h<t;++h)l[(d=c[h]).i]=d.x(u);return l.join("")})}function Md(e,t){var n=typeof t,r;return t==null||n==="boolean"?nC(t):(n==="number"?ay:n==="string"?(r=Kf(t))?(t=r,AR):N2e:t instanceof Kf?AR:t instanceof Date?w2e:b2e(t)?y2e:Array.isArray(t)?x2e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?S2e:ay)(e,t)}function rC(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function P2e(e,t){t===void 0&&(t=e,e=Md);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(s){var l=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return a[l](s-l)}}function A2e(e){return function(){return e}}function sy(e){return+e}var CR=[0,1];function ur(e){return e}function $j(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:A2e(isNaN(t)?NaN:.5)}function C2e(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function E2e(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=$j(i,r),a=n(s,a)):(r=$j(r,i),a=n(a,s)),function(l){return a(r(l))}}function k2e(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=$j(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(l){var c=tm(e,l,1,r)-1;return a[c](i[c](l))}}function rm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ux(){var e=CR,t=CR,n=Md,r,i,a,s=ur,l,c,u;function h(){var f=Math.min(e.length,t.length);return s!==ur&&(s=C2e(e[0],e[f-1])),l=f>2?k2e:E2e,c=u=null,d}function d(f){return f==null||isNaN(f=+f)?a:(c||(c=l(e.map(r),t,n)))(r(s(f)))}return d.invert=function(f){return s(i((u||(u=l(t,e.map(r),ay)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,sy),h()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),h()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=rC,h()},d.clamp=function(f){return arguments.length?(s=f?!0:ur,h()):s!==ur},d.interpolate=function(f){return arguments.length?(n=f,h()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,p){return r=f,i=p,h()}}function iC(){return ux()(ur,ur)}function T2e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function oy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Bu(e){return e=oy(Math.abs(e)),e?e[1]:NaN}function O2e(e,t){return function(n,r){for(var i=n.length,a=[],s=0,l=e[0],c=0;i>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),a.push(n.substring(i-=l,i+l)),!((c+=l+1)>r));)l=e[s=(s+1)%e.length];return a.reverse().join(t)}}function I2e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var R2e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yf(e){if(!(t=R2e.exec(e)))throw new Error("invalid format: "+e);var t;return new aC({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Yf.prototype=aC.prototype;function aC(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}aC.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function D2e(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Bq;function M2e(e,t){var n=oy(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Bq=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+oy(e,Math.max(0,t+a-1))[0]}function ER(e,t){var n=oy(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const kR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:T2e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ER(e*100,t),r:ER,s:M2e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function TR(e){return e}var OR=Array.prototype.map,IR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $2e(e){var t=e.grouping===void 0||e.thousands===void 0?TR:O2e(OR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?TR:I2e(OR.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Yf(d);var f=d.fill,p=d.align,v=d.sign,m=d.symbol,y=d.zero,b=d.width,w=d.comma,x=d.precision,S=d.trim,j=d.type;j==="n"?(w=!0,j="g"):kR[j]||(x===void 0&&(x=12),S=!0,j="g"),(y||f==="0"&&p==="=")&&(y=!0,f="0",p="=");var N=m==="$"?n:m==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",_=m==="$"?r:/[%p]/.test(j)?s:"",P=kR[j],A=/[defgprs%]/.test(j);x=x===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function k(C){var E=N,I=_,O,M,$;if(j==="c")I=P(C)+I,C="";else{C=+C;var L=C<0||1/C<0;if(C=isNaN(C)?c:P(Math.abs(C),x),S&&(C=D2e(C)),L&&+C==0&&v!=="+"&&(L=!1),E=(L?v==="("?v:l:v==="-"||v==="("?"":v)+E,I=(j==="s"?IR[8+Bq/3]:"")+I+(L&&v==="("?")":""),A){for(O=-1,M=C.length;++O<M;)if($=C.charCodeAt(O),48>$||$>57){I=($===46?i+C.slice(O+1):C.slice(O))+I,C=C.slice(0,O);break}}}w&&!y&&(C=t(C,1/0));var T=E.length+C.length+I.length,R=T<b?new Array(b-T+1).join(f):"";switch(w&&y&&(C=t(R+C,R.length?b-I.length:1/0),R=""),p){case"<":C=E+C+I+R;break;case"=":C=E+R+C+I;break;case"^":C=R.slice(0,T=R.length>>1)+E+C+I+R.slice(T);break;default:C=R+E+C+I;break}return a(C)}return k.toString=function(){return d+""},k}function h(d,f){var p=u((d=Yf(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor(Bu(f)/3)))*3,m=Math.pow(10,-v),y=IR[8+v/3];return function(b){return p(m*b)+y}}return{format:u,formatPrefix:h}}var ng,sC,zq;L2e({thousands:",",grouping:[3],currency:["$",""]});function L2e(e){return ng=$2e(e),sC=ng.format,zq=ng.formatPrefix,ng}function V2e(e){return Math.max(0,-Bu(Math.abs(e)))}function F2e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Bu(t)/3)))*3-Bu(Math.abs(e)))}function B2e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Bu(t)-Bu(e))+1}function Uq(e,t,n,r){var i=Ij(e,t,n),a;switch(r=Yf(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=F2e(i,s))&&(r.precision=a),zq(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=B2e(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=V2e(i))&&(r.precision=a-(r.type==="%")*2);break}}return sC(r)}function Ao(e){var t=e.domain;return e.ticks=function(n){var r=t();return Tj(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Uq(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,s=r[i],l=r[a],c,u,h=10;for(l<s&&(u=s,s=l,l=u,u=i,i=a,a=u);h-- >0;){if(u=Oj(s,l,n),u===c)return r[i]=s,r[a]=l,t(r);if(u>0)s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u;else if(u<0)s=Math.ceil(s*u)/u,l=Math.floor(l*u)/u;else break;c=u}return e},e}function ly(){var e=iC();return e.copy=function(){return rm(e,ly())},yi.apply(e,arguments),Ao(e)}function Wq(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,sy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Wq(e).unknown(t)},e=arguments.length?Array.from(e,sy):[0,1],Ao(n)}function qq(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],s;return a<i&&(s=n,n=r,r=s,s=i,i=a,a=s),e[n]=t.floor(i),e[r]=t.ceil(a),e}function RR(e){return Math.log(e)}function DR(e){return Math.exp(e)}function z2e(e){return-Math.log(-e)}function U2e(e){return-Math.exp(-e)}function W2e(e){return isFinite(e)?+("1e"+e):e<0?0:e}function q2e(e){return e===10?W2e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function H2e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function MR(e){return(t,n)=>-e(-t,n)}function oC(e){const t=e(RR,DR),n=t.domain;let r=10,i,a;function s(){return i=H2e(r),a=q2e(r),n()[0]<0?(i=MR(i),a=MR(a),e(z2e,U2e)):e(RR,DR),t}return t.base=function(l){return arguments.length?(r=+l,s()):r},t.domain=function(l){return arguments.length?(n(l),s()):n()},t.ticks=l=>{const c=n();let u=c[0],h=c[c.length-1];const d=h<u;d&&([u,h]=[h,u]);let f=i(u),p=i(h),v,m;const y=l==null?10:+l;let b=[];if(!(r%1)&&p-f<y){if(f=Math.floor(f),p=Math.ceil(p),u>0){for(;f<=p;++f)for(v=1;v<r;++v)if(m=f<0?v/a(-f):v*a(f),!(m<u)){if(m>h)break;b.push(m)}}else for(;f<=p;++f)for(v=r-1;v>=1;--v)if(m=f>0?v/a(-f):v*a(f),!(m<u)){if(m>h)break;b.push(m)}b.length*2<y&&(b=Tj(u,h,y))}else b=Tj(f,p,Math.min(p-f,y)).map(a);return d?b.reverse():b},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Yf(c)).precision==null&&(c.trim=!0),c=sC(c)),l===1/0)return c;const u=Math.max(1,r*l/t.ticks().length);return h=>{let d=h/a(Math.round(i(h)));return d*r<r-.5&&(d*=r),d<=u?c(h):""}},t.nice=()=>n(qq(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function Hq(){const e=oC(ux()).domain([1,10]);return e.copy=()=>rm(e,Hq()).base(e.base()),yi.apply(e,arguments),e}
641function $R(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function LR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function lC(e){var t=1,n=e($R(t),LR(t));return n.constant=function(r){return arguments.length?e($R(t=+r),LR(t)):t},Ao(n)}function Gq(){var e=lC(ux());return e.copy=function(){return rm(e,Gq()).constant(e.constant())},yi.apply(e,arguments)}function VR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function G2e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function K2e(e){return e<0?-e*e:e*e}function cC(e){var t=e(ur,ur),n=1;function r(){return n===1?e(ur,ur):n===.5?e(G2e,K2e):e(VR(n),VR(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Ao(t)}function uC(){var e=cC(ux());return e.copy=function(){return rm(e,uC()).exponent(e.exponent())},yi.apply(e,arguments),e}function Y2e(){return uC.apply(null,arguments).exponent(.5)}function FR(e){return Math.sign(e)*e*e}function X2e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Kq(){var e=iC(),t=[0,1],n=!1,r;function i(a){var s=X2e(e(a));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(a){return e.invert(FR(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,sy)).map(FR)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Kq(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},yi.apply(i,arguments),Ao(i)}function Yq(){var e=[],t=[],n=[],r;function i(){var s=0,l=Math.max(1,t.length);for(n=new Array(l-1);++s<l;)n[s-1]=t2e(e,s/l);return a}function a(s){return s==null||isNaN(s=+s)?r:t[tm(n,s)]}return a.invertExtent=function(s){var l=t.indexOf(s);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let l of s)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(so),i()},a.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return Yq().domain(e).range(t).unknown(r)},yi.apply(a,arguments)}function Xq(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function s(c){return c!=null&&c<=c?i[tm(r,c,0,n)]:a}function l(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return s}return s.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},s.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,l()):i.slice()},s.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},s.unknown=function(c){return arguments.length&&(a=c),s},s.thresholds=function(){return r.slice()},s.copy=function(){return Xq().domain([e,t]).range(i).unknown(a)},yi.apply(Ao(s),arguments)}function Jq(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[tm(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var s=t.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Jq().domain(e).range(t).unknown(n)},yi.apply(i,arguments)}const jw=new Date,_w=new Date;function wn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),l=i.ceil(a);return a-s<l-a?s:l},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,l)=>{const c=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<s)||!(l>0))return c;let u;do c.push(u=new Date(+a)),t(a,l),e(a);while(u<a&&a<s);return c},i.filter=a=>wn(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!a(s););else for(;--l>=0;)for(;t(s,1),!a(s););}),n&&(i.count=(a,s)=>(jw.setTime(+a),_w.setTime(+s),e(jw),e(_w),Math.floor(n(jw,_w))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?s=>r(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const cy=wn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);cy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?wn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):cy);cy.range;const za=1e3,si=za*60,Ua=si*60,as=Ua*24,dC=as*7,BR=as*30,Nw=as*365,tl=wn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*za)},(e,t)=>(t-e)/za,e=>e.getUTCSeconds());tl.range;const hC=wn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*za)},(e,t)=>{e.setTime(+e+t*si)},(e,t)=>(t-e)/si,e=>e.getMinutes());hC.range;const fC=wn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*si)},(e,t)=>(t-e)/si,e=>e.getUTCMinutes());fC.range;const pC=wn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*za-e.getMinutes()*si)},(e,t)=>{e.setTime(+e+t*Ua)},(e,t)=>(t-e)/Ua,e=>e.getHours());pC.range;const mC=wn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ua)},(e,t)=>(t-e)/Ua,e=>e.getUTCHours());mC.range;const im=wn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*si)/as,e=>e.getDate()-1);im.range;const dx=wn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/as,e=>e.getUTCDate()-1);dx.range;const Qq=wn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/as,e=>Math.floor(e/as));Qq.range;function Gl(e){return wn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*si)/dC)}const hx=Gl(0),uy=Gl(1),J2e=Gl(2),Q2e=Gl(3),zu=Gl(4),Z2e=Gl(5),eOe=Gl(6);hx.range;uy.range;J2e.range;Q2e.range;zu.range;Z2e.range;eOe.range;function Kl(e){return wn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/dC)}const fx=Kl(0),dy=Kl(1),tOe=Kl(2),nOe=Kl(3),Uu=Kl(4),rOe=Kl(5),iOe=Kl(6);fx.range;dy.range;tOe.range;nOe.range;Uu.range;rOe.range;iOe.range;const gC=wn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());gC.range;const vC=wn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());vC.range;const ss=wn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ss.every=e=>
vendor: 6,002 bytes, line 641
641!isFinite(e=Math.floor(e))||!(e>0)?null:wn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ss.range;const os=wn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());os.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:wn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});os.range;function Zq(e,t,n,r,i,a){const s=[[tl,1,za],[tl,5,5*za],[tl,15,15*za],[tl,30,30*za],[a,1,si],[a,5,5*si],[a,15,15*si],[a,30,30*si],[i,1,Ua],[i,3,3*Ua],[i,6,6*Ua],[i,12,12*Ua],[r,1,as],[r,2,2*as],[n,1,dC],[t,1,BR],[t,3,3*BR],[e,1,Nw]];function l(u,h,d){const f=h<u;f&&([u,h]=[h,u]);const p=d&&typeof d.range=="function"?d:c(u,h,d),v=p?p.range(u,+h+1):[];return f?v.reverse():v}function c(u,h,d){const f=Math.abs(h-u)/d,p=ZA(([,,y])=>y).right(s,f);if(p===s.length)return e.every(Ij(u/Nw,h/Nw,d));if(p===0)return cy.every(Math.max(Ij(u,h,d),1));const[v,m]=s[f/s[p-1][2]<s[p][2]/f?p-1:p];return v.every(m)}return[l,c]}const[aOe,sOe]=Zq(os,vC,fx,Qq,mC,fC),[oOe,lOe]=Zq(ss,gC,hx,im,pC,hC);function Pw(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Aw(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function lh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function cOe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,l=e.months,c=e.shortMonths,u=ch(i),h=uh(i),d=ch(a),f=uh(a),p=ch(s),v=uh(s),m=ch(l),y=uh(l),b=ch(c),w=uh(c),x={a:L,A:T,b:R,B:z,c:null,d:GR,e:GR,f:OOe,g:zOe,G:WOe,H:EOe,I:kOe,j:TOe,L:e6,m:IOe,M:ROe,p:F,q:B,Q:XR,s:JR,S:DOe,u:MOe,U:$Oe,V:LOe,w:VOe,W:FOe,x:null,X:null,y:BOe,Y:UOe,Z:qOe,"%":YR},S={a:W,A:Z,b:fe,B:we,c:null,d:KR,e:KR,f:YOe,g:aIe,G:oIe,H:HOe,I:GOe,j:KOe,L:n6,m:XOe,M:JOe,p:ee,q:J,Q:XR,s:JR,S:QOe,u:ZOe,U:eIe,V:tIe,w:nIe,W:rIe,x:null,X:null,y:iIe,Y:sIe,Z:lIe,"%":YR},j={a:k,A:C,b:E,B:I,c:O,d:qR,e:qR,f:NOe,g:WR,G:UR,H:HR,I:HR,j:wOe,L:_Oe,m:xOe,M:SOe,p:A,q:bOe,Q:AOe,s:COe,S:jOe,u:pOe,U:mOe,V:gOe,w:fOe,W:vOe,x:M,X:$,y:WR,Y:UR,Z:yOe,"%":POe};x.x=N(n,x),x.X=N(r,x),x.c=N(t,x),S.x=N(n,S),S.X=N(r,S),S.c=N(t,S);function N(U,Y){return function(ae){var q=[],Pe=-1,te=0,re=U.length,_e,Ve,Ge;for(ae instanceof Date||(ae=new Date(+ae));++Pe<re;)U.charCodeAt(Pe)===37&&(q.push(U.slice(te,Pe)),(Ve=zR[_e=U.charAt(++Pe)])!=null?_e=U.charAt(++Pe):Ve=_e==="e"?" ":"0",(Ge=Y[_e])&&(_e=Ge(ae,Ve)),q.push(_e),te=Pe+1);return q.push(U.slice(te,Pe)),q.join("")}}function _(U,Y){return function(ae){var q=lh(1900,void 0,1),Pe=P(q,U,ae+="",0),te,re;if(Pe!=ae.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(Y&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(te=Aw(lh(q.y,0,1)),re=te.getUTCDay(),te=re>4||re===0?dy.ceil(te):dy(te),te=dx.offset(te,(q.V-1)*7),q.y=te.getUTCFullYear(),q.m=te.getUTCMonth(),q.d=te.getUTCDate()+(q.w+6)%7):(te=Pw(lh(q.y,0,1)),re=te.getDay(),te=re>4||re===0?uy.ceil(te):uy(te),te=im.offset(te,(q.V-1)*7),q.y=te.getFullYear(),q.m=te.getMonth(),q.d=te.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),re="Z"in q?Aw(lh(q.y,0,1)).getUTCDay():Pw(lh(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(re+5)%7:q.w+q.U*7-(re+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,Aw(q)):Pw(q)}}function P(U,Y,ae,q){for(var Pe=0,te=Y.length,re=ae.length,_e,Ve;Pe<te;){if(q>=re)return-1;if(_e=Y.charCodeAt(Pe++),_e===37){if(_e=Y.charAt(Pe++),Ve=j[_e in zR?Y.charAt(Pe++):_e],!Ve||(q=Ve(U,ae,q))<0)return-1}else if(_e!=ae.charCodeAt(q++))return-1}return q}function A(U,Y,ae){var q=u.exec(Y.slice(ae));return q?(U.p=h.get(q[0].toLowerCase()),ae+q[0].length):-1}function k(U,Y,ae){var q=p.exec(Y.slice(ae));return q?(U.w=v.get(q[0].toLowerCase()),ae+q[0].length):-1}function C(U,Y,ae){var q=d.exec(Y.slice(ae));return q?(U.w=f.get(q[0].toLowerCase()),ae+q[0].length):-1}function E(U,Y,ae){var q=b.exec(Y.slice(ae));return q?(U.m=w.get(q[0].toLowerCase()),ae+q[0].length):-1}function I(U,Y,ae){var q=m.exec(Y.slice(ae));return q?(U.m=y.get(q[0].toLowerCase()),ae+q[0].length):-1}function O(U,Y,ae){return P(U,t,Y,ae)}function M(U,Y,ae){return P(U,n,Y,ae)}function $(U,Y,ae){return P(U,r,Y,ae)}function L(U){return s[U.getDay()]}function T(U){return a[U.getDay()]}function R(U){return c[U.getMonth()]}function z(U){return l[U.getMonth()]}function F(U){return i[+(U.getHours()>=12)]}function B(U){return 1+~~(U.getMonth()/3)}function W(U){return s[U.getUTCDay()]}function Z(U){return a[U.getUTCDay()]}function fe(U){return c[U.getUTCMonth()]}function we(U){return l[U.getUTCMonth()]}function ee(U){return i[+(U.getUTCHours()>=12)]}function J(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var Y=N(U+="",x);return Y.toString=function(){return U},Y},parse:function(U){var Y=_(U+="",!1);return Y.toString=function(){return U},Y},utcFormat:function(U){var Y=N(U+="",S);return Y.toString=function(){return U},Y},utcParse:function(U){var Y=_(U+="",!0);return Y.toString=function(){return U},Y}}}var zR={"-":"",_:" ",0:"0"},En=/^\s*\d+/,uOe=/^%/,dOe=/[\\^$*+?|[\]().{}]/g;function it(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function hOe(e){return e.replace(dOe,"\\$&")}function ch(e){return new RegExp("^(?:"+e.map(hOe).join("|")+")","i")}function uh(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function fOe(e,t,n){var r=En.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function pOe(e,t,n){var r=En.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function mOe(e,t,n){var r=En.exec(t.slice(n,n+2));
vendor: 4,106 bytes, line 641
641return r?(e.U=+r[0],n+r[0].length):-1}function gOe(e,t,n){var r=En.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function vOe(e,t,n){var r=En.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function UR(e,t,n){var r=En.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function WR(e,t,n){var r=En.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yOe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function bOe(e,t,n){var r=En.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function xOe(e,t,n){var r=En.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function qR(e,t,n){var r=En.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wOe(e,t,n){var r=En.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function HR(e,t,n){var r=En.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function SOe(e,t,n){var r=En.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function jOe(e,t,n){var r=En.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _Oe(e,t,n){var r=En.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function NOe(e,t,n){var r=En.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function POe(e,t,n){var r=uOe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function AOe(e,t,n){var r=En.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function COe(e,t,n){var r=En.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function GR(e,t){return it(e.getDate(),t,2)}function EOe(e,t){return it(e.getHours(),t,2)}function kOe(e,t){return it(e.getHours()%12||12,t,2)}function TOe(e,t){return it(1+im.count(ss(e),e),t,3)}function e6(e,t){return it(e.getMilliseconds(),t,3)}function OOe(e,t){return e6(e,t)+"000"}function IOe(e,t){return it(e.getMonth()+1,t,2)}function ROe(e,t){return it(e.getMinutes(),t,2)}function DOe(e,t){return it(e.getSeconds(),t,2)}function MOe(e){var t=e.getDay();return t===0?7:t}function $Oe(e,t){return it(hx.count(ss(e)-1,e),t,2)}function t6(e){var t=e.getDay();return t>=4||t===0?zu(e):zu.ceil(e)}function LOe(e,t){return e=t6(e),it(zu.count(ss(e),e)+(ss(e).getDay()===4),t,2)}function VOe(e){return e.getDay()}function FOe(e,t){return it(uy.count(ss(e)-1,e),t,2)}function BOe(e,t){return it(e.getFullYear()%100,t,2)}function zOe(e,t){return e=t6(e),it(e.getFullYear()%100,t,2)}function UOe(e,t){return it(e.getFullYear()%1e4,t,4)}function WOe(e,t){var n=e.getDay();return e=n>=4||n===0?zu(e):zu.ceil(e),it(e.getFullYear()%1e4,t,4)}function qOe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+it(t/60|0,"0",2)+it(t%60,"0",2)}function KR(e,t){return it(e.getUTCDate(),t,2)}function HOe(e,t){return it(e.getUTCHours(),t,2)}function GOe(e,t){return it(e.getUTCHours()%12||12,t,2)}function KOe(e,t){return it(1+dx.count(os(e),e),t,3)}function n6(e,t){return it(e.getUTCMilliseconds(),t,3)}function YOe(e,t){return n6(e,t)+"000"}function XOe(e,t){return it(e.getUTCMonth()+1,t,2)}function JOe(e,t){return it(e.getUTCMinutes(),t,2)}function QOe(e,t){return it(e.getUTCSeconds(),t,2)}function ZOe(e){var t=e.getUTCDay();return t===0?7:t}function eIe(e,t){return it(fx.count(os(e)-1,e),t,2)}function r6(e){var t=e.getUTCDay();return t>=4||t===0?Uu(e):Uu.ceil(e)}function tIe(e,t){return e=r6(e),it(Uu.count(os(e),e)+(os(e).getUTCDay()===4),t,2)}function nIe(e){return e.getUTCDay()}function rIe(e,t){return it(dy.count(os(e)-1,e),t,2)}function iIe(e,t){return it(e.getUTCFullYear()%100,t,2)}function aIe(e,t){return e=r6(e),it(e.getUTCFullYear()%100,t,2)}function sIe(e,t){return it(e.getUTCFullYear()%1e4,t,4)}function oIe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Uu(e):Uu.ceil(e),it(e.getUTCFullYear()%1e4,t,4)}function lIe(){return"+0000"}function YR(){return"%"}function XR(e){return+e}function JR(e){return Math.floor(+e/1e3)}var yc,i6,a6;cIe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
641ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function cIe(e){return yc=cOe(e),i6=yc.format,yc.parse,a6=yc.utcFormat,yc.utcParse,yc}function uIe(e){return new Date(e)}function dIe(e){return e instanceof Date?+e:+new Date(+e)}function yC(e,t,n,r,i,a,s,l,c,u){var h=iC(),d=h.invert,f=h.domain,p=u(".%L"),v=u(":%S"),m=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),w=u("%b %d"),x=u("%B"),S=u("%Y");function j(N){return(c(N)<N?p:l(N)<N?v:s(N)<N?m:a(N)<N?y:r(N)<N?i(N)<N?b:w:n(N)<N?x:S)(N)}return h.invert=function(N){return new Date(d(N))},h.domain=function(N){return arguments.length?f(Array.from(N,dIe)):f().map(uIe)},h.ticks=function(N){var _=f();return e(_[0],_[_.length-1],N??10)},h.tickFormat=function(N,_){return _==null?j:u(_)},h.nice=function(N){var _=f();return(!N||typeof N.range!="function")&&(N=t(_[0],_[_.length-1],N??10)),N?f(qq(_,N)):h},h.copy=function(){return rm(h,yC(e,t,n,r,i,a,s,l,c,u))},h}function hIe(){return yi.apply(yC(oOe,lOe,ss,gC,hx,im,pC,hC,tl,i6).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fIe(){return yi.apply(yC(aOe,sOe,os,vC,fx,dx,mC,fC,tl,a6).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function px(){var e=0,t=1,n,r,i,a,s=ur,l=!1,c;function u(d){return d==null||isNaN(d=+d)?c:s(i===0?.5:(d=(a(d)-n)*i,l?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,t]=d,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(d){return arguments.length?(l=!!d,u):l},u.interpolator=function(d){return arguments.length?(s=d,u):s};function h(d){return function(f){var p,v;return arguments.length?([p,v]=f,s=d(p,v),u):[s(0),s(1)]}}return u.range=h(Md),u.rangeRound=h(rC),u.unknown=function(d){return arguments.length?(c=d,u):c},function(d){return a=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),u}}function Co(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function s6(){var e=Ao(px()(ur));return e.copy=function(){return Co(e,s6())},fs.apply(e,arguments)}function o6(){var e=oC(px()).domain([1,10]);return e.copy=function(){return Co(e,o6()).base(e.base())},fs.apply(e,arguments)}function l6(){var e=lC(px());return e.copy=function(){return Co(e,l6()).constant(e.constant())},fs.apply(e,arguments)}function bC(){var e=cC(px());return e.copy=function(){return Co(e,bC()).exponent(e.exponent())},fs.apply(e,arguments)}function pIe(){return bC.apply(null,arguments).exponent(.5)}function c6(){var e=[],t=ur;function n(r){if(r!=null&&!isNaN(r=+r))return t((tm(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(so),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>e2e(e,a/r))},n.copy=function(){return c6(t).domain(e)},fs.apply(n,arguments)}function mx(){var e=0,t=.5,n=1,r=1,i,a,s,l,c,u=ur,h,d=!1,f;function p(m){return isNaN(m=+m)?f:(m=.5+((m=+h(m))-a)*(r*m<r*a?l:c),u(d?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,n]=m,i=h(e=+e),a=h(t=+t),s=h(n=+n),l=i===a?0:.5/(a-i),c=a===s?0:.5/(s-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(m){return arguments.length?(d=!!m,p):d},p.interpolator=function(m){return arguments.length?(u=m,p):u};function v(m){return function(y){var b,w,x;return arguments.length?([b,w,x]=y,u=P2e(m,[b,w,x]),p):[u(0),u(.5),u(1)]}}return p.range=v(Md),p.rangeRound=v(rC),p.unknown=function(m){return arguments.length?(f=m,p):f},function(m){return h=m,i=m(e),a=m(t),s=m(n),l=i===a?0:.5/(a-i),c=a===s?0:.5/(s-a),r=a<i?-1:1,p}}function u6(){var e=Ao(mx()(ur));return e.copy=function(){return Co(e,u6())},fs.apply(e,arguments)}function d6(){var e=oC(mx()).domain([.1,1,10]);return e.copy=function(){return Co(e,d6()).base(e.base())},fs.apply(e,arguments)}function h6(){var e=lC(mx());return e.copy=function(){return Co(e,h6()).constant(e.constant())},fs.apply(e,arguments)}function xC(){var e=cC(mx());return e.copy=function(){return Co(e,xC()).exponent(e.exponent())},fs.apply(e,arguments)}function mIe(){return xC.apply(null,arguments).exponent(.5)}const QR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:qf,scaleDiverging:u6,scaleDivergingLog:d6,scaleDivergingPow:xC,scaleDivergingSqrt:mIe,scaleDivergingSymlog:h6,scaleIdentity:Wq,scaleImplicit:Rj,scaleLinear:ly,scaleLog:Hq,scaleOrdinal:eC,scalePoint:Gh,scalePow:uC,scaleQuantile:Yq,scaleQuantize:Xq,scaleRadial:Kq,scaleSequential:s6,scaleSequentialLog:o6,scaleSequentialPow:bC,scaleSequentialQuantile:c6,scaleSequentialSqrt:pIe,scaleSequentialSymlog:l6,scaleSqrt:Y2e,scaleSymlog:Gq,scaleThreshold:Jq,scaleTime:h
vendor: 64,086 bytes, lines 641-667
641Ie,scaleUtc:fIe,tickFormat:Uq},Symbol.toStringTag,{value:"Module"}));var gIe=Cd;function vIe(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(s!=null&&(l===void 0?s===s&&!gIe(s):n(s,l)))var l=s,c=a}return c}var f6=vIe;function yIe(e,t){return e>t}var bIe=yIe,xIe=f6,wIe=bIe,SIe=Dd;function jIe(e){return e&&e.length?xIe(e,SIe,wIe):void 0}var _Ie=jIe;const gx=jt(_Ie);function NIe(e,t){return e<t}var PIe=NIe,AIe=f6,CIe=PIe,EIe=Dd;function kIe(e){return e&&e.length?AIe(e,EIe,CIe):void 0}var TIe=kIe;const vx=jt(TIe);var OIe=IA,IIe=Po,RIe=Sq,DIe=Tr;function MIe(e,t){var n=DIe(e)?OIe:RIe;return n(e,IIe(t))}var $Ie=MIe,LIe=xq,VIe=$Ie;function FIe(e,t){return LIe(VIe(e,t),1)}var BIe=FIe;const zIe=jt(BIe);var UIe=KA;function WIe(e,t){return UIe(e,t)}var qIe=WIe;const wC=jt(qIe);var $d=1e9,HIe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},jC,zt=!0,mi="[DecimalError] ",ml=mi+"Invalid argument: ",SC=mi+"Exponent out of range: ",Ld=Math.floor,Uo=Math.pow,GIe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Br,Nn=1e7,It=7,p6=9007199254740991,hy=Ld(p6/It),ve={};ve.absoluteValue=ve.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ve.comparedTo=ve.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};ve.decimalPlaces=ve.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*It;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ve.dividedBy=ve.div=function(e){return Xa(this,new this.constructor(e))};ve.dividedToIntegerBy=ve.idiv=function(e){var t=this,n=t.constructor;return Nt(Xa(t,new n(e),0,1),n.precision)};ve.equals=ve.eq=function(e){return!this.cmp(e)};ve.exponent=function(){return un(this)};ve.greaterThan=ve.gt=function(e){return this.cmp(e)>0};ve.greaterThanOrEqualTo=ve.gte=function(e){return this.cmp(e)>=0};ve.isInteger=ve.isint=function(){return this.e>this.d.length-2};ve.isNegative=ve.isneg=function(){return this.s<0};ve.isPositive=ve.ispos=function(){return this.s>0};ve.isZero=function(){return this.s===0};ve.lessThan=ve.lt=function(e){return this.cmp(e)<0};ve.lessThanOrEqualTo=ve.lte=function(e){return this.cmp(e)<1};ve.logarithm=ve.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Br))throw Error(mi+"NaN");if(n.s<1)throw Error(mi+(n.s?"NaN":"-Infinity"));return n.eq(Br)?new r(0):(zt=!1,t=Xa(Xf(n,a),Xf(e,a),a),zt=!0,Nt(t,i))};ve.minus=ve.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?v6(t,e):m6(t,(e.s=-e.s,e))};ve.modulo=ve.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(mi+"NaN");return n.s?(zt=!1,t=Xa(n,e,0,1).times(e),zt=!0,n.minus(t)):Nt(new r(n),i)};ve.naturalExponential=ve.exp=function(){return g6(this)};ve.naturalLogarithm=ve.ln=function(){return Xf(this)};ve.negated=ve.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ve.plus=ve.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?m6(t,e):v6(t,(e.s=-e.s,e))};ve.precision=ve.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ml+e);if(t=un(i)+1,r=i.d.length-1,n=r*It+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ve.squareRoot=ve.sqrt=function(){var e,t,n,r,i,a,s,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(mi+"NaN")}for(e=un(l),zt=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=da(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ld((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=s=n+3;;)if(a=r,r=a.plus(Xa(l,a,s+2)).times(.5),da(a.d).slice(0,s)===(t=da(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(Nt(a,n+1,0),a.times(a).eq(l)){r=a;break}}else if(t!="9999")break;s+=4}return zt=!0,Nt(r,n)};ve.times=ve.mul=function(e){var t,n,r,i,a,s,l,c,u,h=this,d=h.constructor,f=h.d,p=(e=new d(e)).d;if(!h.s||!e.s)return new d(0);for(e.s*=h.s,n=h.e+e.e,c=f.length,u=p.length,c<u&&(a=f,f=p,p=a,s=c,c=u,u=s),a=[],s=c+u,r=s;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)l=a[i]+p[r]*f[i-r-1]+t,a[i--]=l%Nn|0,t=l/Nn|0;a[i]=(a[i]+t)%Nn|0}for(;!a[--s];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,zt?Nt(e,d.precision):e};ve.toDecimalPlaces=ve.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ja(e,0,$d),t===void 0?t=r.rounding:ja(t,0,8),Nt(n,e+un(n)+1,t))};ve.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=$l(r,!0):(ja(e,0,$d),t===void 0?t=i.rounding:ja(t,0,8),r=Nt(new i(r),e+1,t),n=$l(r,!0,e+1)),n};ve.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?$l(i):(ja(e,0,$d),t===void 0?t=a.rounding:ja(t,0,8),r=Nt(new a(i),e+un(i)+1,t),n=$l(r.abs(),!1,e+un(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};ve.toInteger=ve.toint=function(){var e=this,t=e.constructor;return Nt(new t(e),un(e)+1,t.rounding)};ve.toNumber=function(){return+this};ve.toPower=ve.pow=function(e){var t,n,r,i,a,s,l=this,c=l.constructor,u=12,h=+(e=new c(e));if(!e.s)return new c(Br);if(l=new c(l),!l.s){if(e.s<1)throw Error(mi+"Infinity");return l}if(l.eq(Br))return l;if(r=c.precision,e.eq(Br))return Nt(l,r);if(t=e.e,n=e.d.length-1,s=t>=n,a=l.s,s){if((n=h<0?-h:h)<=p6){for(i=new c(Br),t=Math.ceil(r/It+4),zt=!1;n%2&&(i=i.times(l),eD(i.d,t)),n=Ld(n/2),n!==0;)l=l.times(l),eD(l.d,t);return zt=!0,e.s<0?new c(Br).div(i):Nt(i,r)}}else if(a<0)throw Error(mi+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,zt=!1,i=e.times(Xf(l,r+u)),zt=!0,i=g6(i),i.s=a,i};ve.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=un(i),r=$l(i,n<=a.toExpNeg||n>=a.toExpPos)):(ja(e,1,$d),t===void 0?t=a.rounding:ja(t,0,8),i=Nt(new a(i),e,t),n=un(i),r=$l(i,e<=n||n<=a.toExpNeg,e)),r};ve.toSignificantDigits=ve.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ja(e,1,$d),t===void 0?t=r.rounding:ja(t,0,8)),Nt(new r(n),e,t)};ve.toString=ve.valueOf=ve.val=ve.toJSON=ve[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=un(e),n=e.constructor;return $l(e,t<=n.toExpNeg||t>=n.toExpPos)};function m6(e,t){var n,r,i,a,s,l,c,u,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),zt?Nt(t,d):t;if(c=e.d,u=t.d,s=e.e,i=t.e,c=c.slice(),a=s-i,a){for(a<0?(r=c,a=-a,l=u.length):(r=u,i=s,l=c.length),s=Math.ceil(d/It),l=s>l?s+1:l+1,a>l&&(a=l,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(l=c.length,a=u.length,l-a<0&&(a=l,r=u,u=c,c=r),n=0;a;)n=(c[--a]=c[a]+u[a]+n)/Nn|0,c[a]%=Nn;for(n&&(c.unshift(n),++i),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=i,zt?Nt(t,d):t}function ja(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ml+e)}function da(e){var t,n,r,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)r=e[t]+"",n=It-r.length,n&&(a+=Es(n)),a+=r;s=e[t],r=s+"",n=It-r.length,n&&(a+=Es(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return a+s}var Xa=function(){function e(r,i){var a,s=0,l=r.length;for(r=r.slice();l--;)a=r[l]*i+s,r[l]=a%Nn|0,s=a/Nn|0;return s&&r.unshift(s),r}function t(r,i,a,s){var l,c;if(a!=s)c=a>s?1:-1;else for(l=c=0;l<a;l++)if(r[l]!=i[l]){c=r[l]>i[l]?1:-1;break}return c}function n(r,i,a){for(var s=0;a--;)r[a]-=s,s=r[a]<i[a]?1:0,r[a]=s*Nn+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,s){var l,c,u,h,d,f,p,v,m,y,b,w,x,S,j,N,_,P,A=r.constructor,k=r.s==i.s?1:-1,C=r.d,E=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(mi+"Division by zero");for(c=r.e-i.e,_=E.length,j=C.length,p=new A(k),v=p.d=[],u=0;E[u]==(C[u]||0);)++u;if(E[u]>(C[u]||0)&&--c,a==null?w=a=A.precision:s?w=a+(un(r)-un(i))+1:w=a,w<0)return new A(0);if(w=w/It+2|0,u=0,_==1)for(h=0,E=E[0],w++;(u<j||h)&&w--;u++)x=h*Nn+(C[u]||0),v[u]=x/E|0,h=x%E|0;else{for(h=Nn/(E[0]+1)|0,h>1&&(E=e(E,h),C=e(C,h),_=E.length,j=C.length),S=_,m=C.slice(0,_),y=m.length;y<_;)m[y++]=0;P=E.slice(),P.unshift(0),N=E[0],E[1]>=Nn/2&&++N;do h=0,l=t(E,m,_,y),l<0?(b=m[0],_!=y&&(b=b*Nn+(m[1]||0)),h=b/N|0,h>1?(h>=Nn&&(h=Nn-1),d=e(E,h),f=d.length,y=m.length,l=t(d,m,f,y),l==1&&(h--,n(d,_<f?P:E,f))):(h==0&&(l=h=1),d=E.slice()),f=d.length,f<y&&d.unshift(0),n(m,d,y),l==-1&&(y=m.length,l=t(E,m,_,y),l<1&&(h++,n(m,_<y?P:E,y))),y=m.length):l===0&&(h++,m=[0]),v[u++]=h,l&&m[0]?m[y++]=C[S]||0:(m=[C[S]],y=1);while((S++<j||m[0]!==void 0)&&w--)}return v[0]||v.shift(),p.e=c,Nt(p,s?a+un(p)+1:a)}}();function g6(e,t){var n,r,i,a,s,l,c=0,u=0,h=e.constructor,d=h.precision;if(un(e)>16)throw Error(SC+un(e));if(!e.s)return new h(Br);for(t==null?(zt=!1,l=d):l=t,s=new h(.03125);e.abs().gte(.1);)e=e.times(s),u+=5;for(r=Math.log(Uo(2,u))/Math.LN10*2+5|0,l+=r,n=i=a=new h(Br),h.precision=l;;){if(i=Nt(i.times(e),l),n=n.times(++c),s=a.plus(Xa(i,n,l)),da(s.d).slice(0,l)===da(a.d).slice(0,l)){for(;u--;)a=Nt(a.times(a),l);return h.precision=d,t==null?(zt=!0,Nt(a,d)):a}a=s}}function un(e){for(var t=e.e*It,n=e.d[0];n>=10;n/=10)t++;return t}function Cw(e,t,n){if(t>e.LN10.sd())throw zt=!0,n&&(e.precision=n),Error(mi+"LN10 precision limit exceeded");return Nt(new e(e.LN10),t)}function Es(e){for(var t="";e--;)t+="0";return t}function Xf(e,t){var n,r,i,a,s,l,c,u,h,d=1,f=10,p=e,v=p.d,m=p.constructor,y=m.precision;if(p.s<1)throw Error(mi+(p.s?"NaN":"-Infinity"));if(p.eq(Br))return new m(0);if(t==null?(zt=!1,u=y):u=t,p.eq(10))return t==null&&(zt=!0),Cw(m,u);if(u+=f,m.precision=u,n=da(v),r=n.charAt(0),a=un(p),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=da(p.d),r=n.charAt(0),d++;a=un(p),r>1?(p=new m("0."+n),a++):p=new m(r+"."+n.slice(1))}else return c=Cw(m,u+2,y).times(a+""),p=Xf(new m(r+"."+n.slice(1)),u-f).plus(c),m.precision=y,t==null?(zt=!0,Nt(p,y)):p;for(l=s=p=Xa(p.minus(Br),p.plus(Br),u),h=Nt(p.times(p),u),i=3;;){if(s=Nt(s.times(h),u),c=l.plus(Xa(s,new m(i),u)),da(c.d).slice(0,u)===da(l.d).slice(0,u))return l=l.times(2),a!==0&&(l=l.plus(Cw(m,u+2,y).times(a+""))),l=Xa(l,new m(d),u),m.precision=y,t==null?(zt=!0,Nt(l,y)):l;l=c,i+=2}}function ZR(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Ld(n/It),e.d=[],r=(n+1)%It,n<0&&(r+=It),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=It;r<i;)e.d.push(+t.slice(r,r+=It));t=t.slice(r),r=It-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),zt&&(e.e>hy||e.e<-hy))throw Error(SC+n)}else e.s=0,e.e=0,e.d=[0];return e}function Nt(e,t,n){var r,i,a,s,l,c,u,h,d=e.d;for(s=1,a=d[0];a>=10;a/=10)s++;if(r=t-s,r<0)r+=It,i=t,u=d[h=0];else{if(h=Math.ceil((r+1)/It),a=d.length,h>=a)return e;for(u=a=d[h],s=1;a>=10;a/=10)s++;r%=It,i=r-It+s}if(n!==void 0&&(a=Uo(10,s-i-1),l=u/a%10|0,c=t<0||d[h+1]!==void 0||u%a,c=n<4?(l||c)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||c||n==6&&(r>0?i>0?u/Uo(10,s-i):0:d[h-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(a=un(e),d.length=1,t=t-a-1,d[0]=Uo(10,(It-t%It)%It),e.e=Ld(-t/It)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=h,a=1,h--):(d.length=h+1,a=Uo(10,It-r),d[h]=i>0?(u/Uo(10,s-i)%Uo(10,i)|0)*a:0),c)for(;;)if(h==0){(d[0]+=a)==Nn&&(d[0]=1,++e.e);break}else{if(d[h]+=a,d[h]!=Nn)break;d[h--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(zt&&(e.e>hy||e.e<-hy))throw Error(SC+un(e));return e}function v6(e,t){var n,r,i,a,s,l,c,u,h,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),zt?Nt(t,p):t;if(c=e.d,d=t.d,r=t.e,u=e.e,c=c.slice(),s=u-r,s){for(h=s<0,h?(n=c,s=-s,l=d.length):(n=d,r=u,l=c.length),i=Math.max(Math.ceil(p/It),l)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=c.length,l=d.length,h=i<l,h&&(l=i),i=0;i<l;i++)if(c[i]!=d[i]){h=c[i]<d[i];break}s=0}for(h&&(n=c,c=d,d=n,t.s=-t.s),l=c.length,i=d.length-l;i>0;--i)c[l++]=0;for(i=d.length;i>s;){if(c[--i]<d[i]){for(a=i;a&&c[--a]===0;)c[a]=Nn-1;--c[a],c[i]+=Nn}c[i]-=d[i]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,zt?Nt(t,p):t):new f(0)}function $l(e,t,n){var r,i=un(e),a=da(e.d),s=a.length;return t?(n&&(r=n-s)>0?a=a.charAt(0)+"."+a.slice(1)+Es(r):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Es(-i-1)+a,n&&(r=n-s)>0&&(a+=Es(r))):i>=s?(a+=Es(i+1-s),n&&(r=n-i-1)>0&&(a=a+"."+Es(r))):((r=i+1)<s&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(a+="."),a+=Es(r))),e.s<0?"-"+a:a}function eD(e,t){if(e.length>t)return e.length=t,!0}function y6(e){var t,n,r;function i(a){var s=this;if(!(s instanceof i))return new i(a);if(s.constructor=i,a instanceof i){s.s=a.s,s.e=a.e,s.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(ml+a);if(a>0)s.s=1;else if(a<0)a=-a,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(a===~~a&&a<1e7){s.e=0,s.d=[a];return}return ZR(s,a.toString())}else if(typeof a!="string")throw Error(ml+a);if(a.charCodeAt(0)===45?(a=a.slice(1),s.s=-1):s.s=1,GIe.test(a))ZR(s,a);else throw Error(ml+a)}if(i.prototype=ve,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=y6,i.config=i.set=KIe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function KIe(e){if(!e||typeof e!="object")throw Error(mi+"Object expected");var t,n,r,i=["precision",1,$d,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Ld(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(ml+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ml+n+": "+r);return this}var jC=y6(HIe);Br=new jC(1);const wt=jC;function YIe(e){return ZIe(e)||QIe(e)||JIe(e)||XIe()}function XIe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 642In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JIe(e,t){if(e){if(typeof e=="string")return Lj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lj(e,t)}}function QIe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ZIe(e){if(Array.isArray(e))return Lj(e)}function Lj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var eRe=function(t){return t},b6={"@@functional/placeholder":!0},x6=function(t){return t===b6},tD=function(t){return function n(){return arguments.length===0||arguments.length===1&&x6(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},tRe=function e(t,n){return t===1?n:tD(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var s=i.filter(function(l){return l!==b6}).length;return s>=t?n.apply(void 0,i):e(t-s,tD(function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var h=i.map(function(d){return x6(d)?c.shift():d});return n.apply(void 0,YIe(h).concat(c))}))})},yx=function(t){return tRe(t.length,t)},Vj=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},nRe=yx(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),rRe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return eRe;var i=n.reverse(),a=i[0],s=i.slice(1);return function(){return s.reduce(function(l,c){return c(l)},a.apply(void 0,arguments))}},Fj=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},w6=function(t){var n=null,r=null;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n&&a.every(function(l,c){return l===n[c]})||(n=a,r=t.apply(void 0,a)),r}};function iRe(e){var t;return e===0?t=1:t=Math.floor(new wt(e).abs().log(10).toNumber())+1,t}function aRe(e,t,n){for(var r=new wt(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var sRe=yx(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),oRe=yx(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),lRe=yx(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const bx={rangeStep:aRe,getDigitCount:iRe,interpolateNumber:sRe,uninterpolateNumber:oRe,uninterpolateTruncation:lRe};function Bj(e){return dRe(e)||uRe(e)||S6(e)||cRe()}function cRe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 643In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uRe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function dRe(e){if(Array.isArray(e))return zj(e)}function Jf(e,t){return pRe(e)||fRe(e,t)||S6(e,t)||hRe()}function hRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 644In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S6(e,t){if(e){if(typeof e=="string")return zj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zj(e,t)}}function zj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fRe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var s=e[Symbol.iterator](),l;!(r=(l=s.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,a=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw a}}return n}}function pRe(e){if(Array.isArray(e))return e}function j6(e){var t=Jf(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function _6(e,t,n){if(e.lte(0))return new wt(0);var r=bx.getDigitCount(e.toNumber()),i=new wt(10).pow(r),a=e.div(i),s=r!==1?.05:.1,l=new wt(Math.ceil(a.div(s).toNumber())).add(n).mul(s),c=l.mul(i);return t?c:new wt(Math.ceil(c))}function mRe(e,t,n){var r=1,i=new wt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new wt(10).pow(bx.getDigitCount(e)-1),i=new wt(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new wt(Math.floor(e)))}else e===0?i=new wt(Math.floor((t-1)/2)):n||(i=new wt(Math.floor(e)));var s=Math.floor((t-1)/2),l=rRe(nRe(function(c){return i.add(new wt(c-s).mul(r)).toNumber()}),Vj);return l(0,t)}function N6(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new wt(0),tickMin:new wt(0),tickMax:new wt(0)};var a=_6(new wt(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new wt(0):(s=new wt(e).add(t).div(2),s=s.sub(new wt(s).mod(a)));var l=Math.ceil(s.sub(e).div(a).toNumber()),c=Math.ceil(new wt(t).sub(s).div(a).toNumber()),u=l+c+1;return u>n?N6(e,t,n,r,i+1):(u<n&&(c=t>0?c+(n-u):c,l=t>0?l:l+(n-u)),{step:a,tickMin:s.sub(new wt(l).mul(a)),tickMax:s.add(new wt(c).mul(a))})}function gRe(e){var t=Jf(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),l=j6([n,r]),c=Jf(l,2),u=c[0],h=c[1];if(u===-1/0||h===1/0){var d=h===1/0?[u].concat(Bj(Vj(0,i-1).map(function(){return 1/0}))):[].concat(Bj(Vj(0,i-1).map(function(){return-1/0})),[h]);return n>r?Fj(d):d}if(u===h)return mRe(u,i,a);var f=N6(u,h,s,a),p=f.step,v=f.tickMin,m=f.tickMax,y=bx.rangeStep(v,m.add(new wt(.1).mul(p)),p);return n>r?Fj(y):y}function vRe(e,t){var n=Jf(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=j6([r,i]),l=Jf(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var h=Math.max(t,2),d=_6(new wt(u).sub(c).div(h-1),a,0),f=[].concat(Bj(bx.rangeStep(new wt(c),new wt(u).sub(new wt(.99).mul(d)),d)),[u]);return r>i?Fj(f):f}var yRe=w6(gRe),bRe=w6(vRe),xRe="Invariant failed";function Ll(e,t){throw new Error(xRe)}var wRe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function fy(){return fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fy.apply(this,arguments)}function SRe(e,t){return PRe(e)||NRe(e,t)||_Re(e,t)||jRe()}function jRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 645In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _Re(e,t){if(e){if(typeof e=="string")return nD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nD(e,t)}}function nD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NRe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function PRe(e){if(Array.isArray(e))return e}function ARe(e,t){if(e==null)return{};var n=CRe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CRe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ERe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kRe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C6(r.key),r)}}function TRe(e,t,n){return t&&kRe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ORe(e,t,n){return t=py(t),IRe(e,P6()?Reflect.construct(t,n||[],py(e).constructor):t.apply(e,n))}function IRe(e,t){if(t&&(Wu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RRe(e)}function RRe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P6=function(){return!!e})()}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},py(e)}function DRe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uj(e,t)}function Uj(e,t){return Uj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Uj(e,t)}function A6(e,t,n){return t=C6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C6(e){var t=MRe(e,"string");return Wu(t)=="symbol"?t:t+""}function MRe(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xx=function(e){function t(){return ERe(this,t),ORe(this,t,arguments)}return DRe(t,e),TRe(t,[{key:"render",value:function(){var r=this.props,i=r.offset,a=r.layout,s=r.width,l=r.dataKey,c=r.data,u=r.dataPointFormatter,h=r.xAxis,d=r.yAxis,f=ARe(r,wRe),p=ot(f,!1);this.props.direction==="x"&&h.type!=="number"&&Ll();var v=c.map(function(m){var y=u(m,l),b=y.x,w=y.y,x=y.value,S=y.errorVal;if(!S)return null;var j=[],N,_;if(Array.isArray(S)){var P=SRe(S,2);N=P[0],_=P[1]}else N=_=S;if(a==="vertical"){var A=h.scale,k=w+i,C=k+s,E=k-s,I=A(x-N),O=A(x+_);j.push({x1:O,y1:C,x2:O,y2:E}),j.push({x1:I,y1:k,x2:O,y2:k}),j.push({x1:I,y1:C,x2:I,y2:E})}else if(a==="horizontal"){var M=d.scale,$=b+i,L=$-s,T=$+s,R=M(x-N),z=M(x+_);j.push({x1:L,y1:z,x2:T,y2:z}),j.push({x1:$,y1:R,x2:$,y2:z}),j.push({x1:L,y1:R,x2:T,y2:R})}return D.createElement(An,fy({className:"recharts-errorBar",key:"bar-".concat(j.map(function(F){return"".concat(F.x1,"-").concat(F.x2,"-").concat(F.y1,"-").concat(F.y2)}))},p),j.map(function(F){return D.createElement("line",fy({},F,{key:"line-".concat(F.x1,"-").concat(F.x2,"-").concat(F.y1,"-").concat(F.y2)}))}))});return D.createElement(An,{className:"recharts-errorBars"},v)}}])}(D.Component);A6(xx,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});A6(xx,"displayName","ErrorBar");function Qf(e){"@babel/helpers - typeof";return Qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qf(e)}function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rD(Object(n),!0).forEach(function(r){$Re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $Re(e,t,n){return t=LRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LRe(e){var t=VRe(e,"string");return Qf(t)=="symbol"?t:t+""}function VRe(e,t){if(Qf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E6=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,s=$r(n,nu);if(!s)return null;var l=nu.defaultProps,c=l!==void 0?Ro(Ro({},l),s.props):{},u;return s.props&&s.props.payload?u=s.props&&s.props.payload:a==="children"?u=(r||[]).reduce(function(h,d){var f=d.item,p=d.props,v=p.sectors||p.data||[];return h.concat(v.map(function(m){return{type:s.props.iconType||f.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(r||[]).map(function(h){var d=h.item,f=d.type.defaultProps,p=f!==void 0?Ro(Ro({},f),d.props):{},v=p.dataKey,m=p.name,y=p.legendType,b=p.hide;return{inactive:b,dataKey:v,type:c.iconType||y||"square",color:_C(d),value:m||v,payload:p}}),Ro(Ro(Ro({},c),nu.getWithHeight(s,i)),{},{payload:u,item:s})};function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zf(e)}function iD(e){return URe(e)||zRe(e)||BRe(e)||FRe()}function FRe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 646In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BRe(e,t){if(e){if(typeof e=="string")return Wj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wj(e,t)}}function zRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function URe(e){if(Array.isArray(e))return Wj(e)}function Wj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aD(Object(n),!0).forEach(function(r){iu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iu(e,t,n){return t=WRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WRe(e){var t=qRe(e,"string");return Zf(t)=="symbol"?t:t+""}function qRe(e,t){if(Zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _a(e,t,n){return lt(e)||lt(t)?n:bn(t)?di(e,t,n):He(t)?t(e):n}function Kh(e,t,n,r){var i=zIe(e,function(l){return _a(l,t)});if(n==="number"){var a=i.filter(function(l){return de(l)||parseFloat(l)});return a.length?[vx(a),gx(a)]:[1/0,-1/0]}var s=r?i.filter(function(l){return!lt(l)}):i;return s.map(function(l){return bn(l)||l instanceof Date?l:""})}var HRe=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,u=0;u<l;u++){var h=u>0?i[u-1].coordinate:i[l-1].coordinate,d=i[u].coordinate,f=u>=l-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(Li(d-h)!==Li(f-d)){var v=[];if(Li(f-d)===Li(c[1]-c[0])){p=f;var m=d+c[1]-c[0];v[0]=Math.min(m,(m+h)/2),v[1]=Math.max(m,(m+h)/2)}else{p=h;var y=f+c[1]-c[0];v[0]=Math.min(d,(y+d)/2),v[1]=Math.max(d,(y+d)/2)}var b=[Math.min(d,(p+d)/2),Math.max(d,(p+d)/2)];if(t>b[0]&&t<=b[1]||t>=v[0]&&t<=v[1]){s=i[u].index;break}}else{var w=Math.min(h,f),x=Math.max(h,f);if(t>(w+d)/2&&t<=(x+d)/2){s=i[u].index;break}}}else for(var S=0;S<l;S++)if(S===0&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S>0&&S<l-1&&t>(r[S].coordinate+r[S-1].coordinate)/2&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S===l-1&&t>(r[S].coordinate+r[S-1].coordinate)/2){s=r[S].index;break}return s},_C=function(t){var n,r=t,i=r.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Zt(Zt({},t.type.defaultProps),t.props):t.props,s=a.stroke,l=a.fill,c;switch(i){case"Line":c=s;break;case"Area":case"Radar":c=s&&s!=="none"?s:l;break;default:c=l;break}return c},GRe=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var s={},l=Object.keys(a),c=0,u=l.length;c<u;c++)for(var h=a[l[c]].stackGroups,d=Object.keys(h),f=0,p=d.length;f<p;f++){var v=h[d[f]],m=v.items,y=v.cateAxisId,b=m.filter(function(_){return Ka(_.type).indexOf("Bar")>=0});if(b&&b.length){var w=b[0].type.defaultProps,x=w!==void 0?Zt(Zt({},w),b[0].props):b[0].props,S=x.barSize,j=x[y];s[j]||(s[j]=[]);var N=lt(S)?n:S;s[j].push({item:b[0],stackList:b.slice(1),barSize:lt(N)?void 0:Ml(N,r,0)})}}return s},KRe=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,s=a===void 0?[]:a,l=t.maxBarSize,c=s.length;if(c<1)return null;var u=Ml(n,i,0,!0),h,d=[];if(s[0].barSize===+s[0].barSize){var f=!1,p=i/c,v=s.reduce(function(S,j){return S+j.barSize||0},0);v+=(c-1)*u,v>=i&&(v-=(c-1)*u,u=0),v>=i&&p>0&&(f=!0,p*=.9,v=c*p);var m=(i-v)/2>>0,y={offset:m-u,size:0};h=s.reduce(function(S,j){var N={item:j.item,position:{offset:y.offset+y.size+u,size:f?p:j.barSize}},_=[].concat(iD(S),[N]);return y=_[_.length-1].position,j.stackList&&j.stackList.length&&j.stackList.forEach(function(P){_.push({item:P,position:y})}),_},d)}else{var b=Ml(r,i,0,!0);i-2*b-(c-1)*u<=0&&(u=0);var w=(i-2*b-(c-1)*u)/c;w>1&&(w>>=0);var x=l===+l?Math.min(w,l):w;h=s.reduce(function(S,j,N){var _=[].concat(iD(S),[{item:j.item,position:{offset:b+(w+u)*N+(w-x)/2,size:x}}]);return j.stackList&&j.stackList.length&&j.stackList.forEach(function(P){_.push({item:P,position:_[_.length-1].position})}),_},d)}return h},YRe=function(t,n,r,i){var a=r.children,s=r.width,l=r.margin,c=s-(l.left||0)-(l.right||0),u=E6({children:a,legendWidth:c});if(u){var h=i||{},d=h.width,f=h.height,p=u.align,v=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&v==="middle")&&p!=="center"&&de(t[p]))return Zt(Zt({},t),{},iu({},p,t[p]+(d||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&v!=="middle"&&de(t[v]))return Zt(Zt({},t),{},iu({},v,t[v]+(f||0)))}return t},XRe=function(t,n,r){return lt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},k6=function(t,n,r,i,a){var s=n.props.children,l=Bi(s,xx).filter(function(u){return XRe(i,a,u.props.direction)});if(l&&l.length){var c=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,h){var d=_a(h,r);if(lt(d))return u;var f=Array.isArray(d)?[vx(d),gx(d)]:[d,d],p=c.reduce(function(v,m){var y=_a(h,m,0),b=f[0]-Math.abs(Array.isArray(y)?y[0]:y),w=f[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(b,v[0]),Math.max(w,v[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},JRe=function(t,n,r,i,a){var s=n.map(function(l){return k6(t,l,r,a,i)}).filter(function(l){return!lt(l)});return s&&s.length?s.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},T6=function(t,n,r,i,a){var s=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&k6(t,c,u,i)||Kh(t,u,r,a)});if(r==="number")return s.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var l={};return s.reduce(function(c,u){for(var h=0,d=u.length;h<d;h++)l[u[h]]||(l[u[h]]=!0,c.push(u[h]));return c},[])},O6=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},I6=function(t,n,r,i){if(i)return t.map(function(c){return c.coordinate});var a,s,l=t.map(function(c){return c.coordinate===n&&(a=!0),c.coordinate===r&&(s=!0),c.coordinate});return a||l.push(n),s||l.push(r),l},Wa=function(t,n,r){if(!t)return null;var i=t.scale,a=t.duplicateDomain,s=t.type,l=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&s==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Li(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(d){var f=a?a.indexOf(d):d;return{coordinate:i(f)+u,value:d,offset:u}});return h.filter(function(d){return!Zp(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,f){return{coordinate:i(d)+u,value:d,index:f,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+u,value:d,offset:u}}):i.domain().map(function(d,f){return{coordinate:i(d)+u,value:a?a[d]:d,index:f,offset:u}})},Ew=new WeakMap,rg=function(t,n){if(typeof n!="function")return t;Ew.has(t)||Ew.set(t,new WeakMap);var r=Ew.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},QRe=function(t,n,r){var i=t.scale,a=t.type,s=t.layout,l=t.axisType;if(i==="auto")return s==="radial"&&l==="radiusAxis"?{scale:qf(),realScaleType:"band"}:s==="radial"&&l==="angleAxis"?{scale:ly(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Gh(),realScaleType:"point"}:a==="category"?{scale:qf(),realScaleType:"band"}:{scale:ly(),realScaleType:"linear"};if(Dl(i)){var c="scale".concat(rx(i));return{scale:(QR[c]||Gh)(),realScaleType:QR[c]?c:"point"}}return He(i)?{scale:i}:{scale:Gh(),realScaleType:"point"}},sD=1e-4,ZRe=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-sD,s=Math.max(i[0],i[1])+sD,l=t(n[0]),c=t(n[r-1]);(l<a||l>s||c<a||c>s)&&t.domain([n[0],n[r-1]])}},eDe=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},tDe=function(t,n){if(!n||n.length!==2||!de(n[0])||!de(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),a=[t[0],t[1]];return(!de(t[0])||t[0]<r)&&(a[0]=r),(!de(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<r&&(a[1]=r),a},nDe=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,s=0,l=0;l<n;++l){var c=Zp(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=a,t[l][r][1]=a+c,a=t[l][r][1]):(t[l][r][0]=s,t[l][r][1]=s+c,s=t[l][r][1])}},rDe=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,s=0;s<n;++s){var l=Zp(t[s][r][1])?t[s][r][0]:t[s][r][1];l>=0?(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},iDe={sign:nDe,expand:y1e,none:Mu,silhouette:b1e,wiggle:x1e,positive:rDe},aDe=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),a=iDe[r],s=v1e().keys(i).value(function(l,c){return+_a(l,c,0)}).order(mj).offset(a);return s(t)},sDe=function(t,n,r,i,a,s){if(!t)return null;var l=s?n.reverse():n,c={},u=l.reduce(function(d,f){var p,v=(p=f.type)!==null&&p!==void 0&&p.defaultProps?Zt(Zt({},f.type.defaultProps),f.props):f.props,m=v.stackId,y=v.hide;if(y)return d;var b=v[r],w=d[b]||{hasStack:!1,stackGroups:{}};if(bn(m)){var x=w.stackGroups[m]||{numericAxisId:r,cateAxisId:i,items:[]};x.items.push(f),w.hasStack=!0,w.stackGroups[m]=x}else w.stackGroups[nx("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[f]};return Zt(Zt({},d),{},iu({},b,w))},c),h={};return Object.keys(u).reduce(function(d,f){var p=u[f];if(p.hasStack){var v={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,y){var b=p.stackGroups[y];return Zt(Zt({},m),{},iu({},y,{numericAxisId:r,cateAxisId:i,items:b.items,stackedData:aDe(t,b.items,a)}))},v)}return Zt(Zt({},d),{},iu({},f,p))},h)},oDe=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,s=n.originalDomain,l=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var u=t.domain();if(!u.length)return null;var h=yRe(u,a,l);return t.domain([vx(h),gx(h)]),{niceTicks:h}}if(a&&i==="number"){var d=t.domain(),f=bRe(d,a,l);return{niceTicks:f}}return null},oD=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,s=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var c=_a(s,n.dataKey,n.domain[l]);return lt(c)?null:n.scale(c)-a/2+i},lDe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},cDe=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Zt(Zt({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(bn(a)){var s=n[a];if(s){var l=s.items.indexOf(t);return l>=0?s.stackedData[l]:null}}return null},uDe=function(t){return t.reduce(function(n,r){return[vx(r.concat([n[0]]).filter(de)),gx(r.concat([n[1]]).filter(de))]},[1/0,-1/0])},R6=function(t,n,r){return Object.keys(t).reduce(function(i,a){var s=t[a],l=s.stackedData,c=l.reduce(function(u,h){var d=uDe(h.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},lD=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cD=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qj=function(t,n,r){if(He(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(de(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(lD.test(t[0])){var a=+lD.exec(t[0])[1];i[0]=n[0]-a}else He(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(de(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(cD.test(t[1])){var s=+cD.exec(t[1])[1];i[1]=n[1]+s}else He(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},my=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=XA(n,function(d){return d.coordinate}),s=1/0,l=1,c=a.length;l<c;l++){var u=a[l],h=a[l-1];s=Math.min((u.coordinate||0)-(h.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},uD=function(t,n,r){return!t||!t.length||wC(t,di(r,"type.defaultProps.domain"))?n:t},D6=function(t,n){var r=t.type.defaultProps?Zt(Zt({},t.type.defaultProps),t.props):t.props,i=r.dataKey,a=r.name,s=r.unit,l=r.formatter,c=r.tooltipType,u=r.chartType,h=r.hide;return Zt(Zt({},ot(t,!1)),{},{dataKey:i,unit:s,formatter:l,name:a||i,color:_C(t),value:_a(n,i),type:c,payload:n,chartType:u,hide:h})};function ep(e){"@babel/helpers - typeof";return ep=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ep(e)}function dD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dD(Object(n),!0).forEach(function(r){dDe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dDe(e,t,n){return t=hDe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hDe(e){var t=fDe(e,"string");return ep(t)=="symbol"?t:t+""}function fDe(e,t){if(ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gy=Math.PI/180,pDe=function(t){return t*180/Math.PI},$n=function(t,n,r,i){return{x:t+Math.cos(-gy*i)*r,y:n+Math.sin(-gy*i)*r}},mDe=function(t,n){var r=t.x,i=t.y,a=n.x,s=n.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(i-s,2))},gDe=function(t,n){var r=t.x,i=t.y,a=n.cx,s=n.cy,l=mDe({x:r,y:i},{x:a,y:s});if(l<=0)return{radius:l};var c=(r-a)/l,u=Math.acos(c);return i>s&&(u=2*Math.PI-u),{radius:l,angle:pDe(u),angleInRadian:u}},vDe=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),s=Math.min(i,a);return{startAngle:n-s*360,endAngle:r-s*360}},yDe=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),s=Math.floor(i/360),l=Math.min(a,s);return t+l*360},fD=function(t,n){var r=t.x,i=t.y,a=gDe({x:r,y:i},n),s=a.radius,l=a.angle,c=n.innerRadius,u=n.outerRadius;if(s<c||s>u)return!1;if(s===0)return!0;var h=vDe(n),d=h.startAngle,f=h.endAngle,p=l,v;if(d<=f){for(;p>f;)p-=360;for(;p<d;)p+=360;v=p>=d&&p<=f}else{for(;p>d;)p-=360;for(;p<f;)p+=360;v=p>=f&&p<=d}return v?hD(hD({},n),{},{radius:s,angle:yDe(p,n)}):null};function tp(e){"@babel/helpers - typeof";return tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tp(e)}var bDe=["offset"];function xDe(e){return _De(e)||jDe(e)||SDe(e)||wDe()}function wDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 647In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SDe(e,t){if(e){if(typeof e=="string")return Hj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hj(e,t)}}function jDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _De(e){if(Array.isArray(e))return Hj(e)}function Hj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NDe(e,t){if(e==null)return{};var n=PDe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PDe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function pD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pD(Object(n),!0).forEach(function(r){ADe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ADe(e,t,n){return t=CDe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CDe(e){var t=EDe(e,"string");return tp(t)=="symbol"?t:t+""}function EDe(e,t){if(tp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(tp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function np(){return np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},np.apply(this,arguments)}var kDe=function(t){var n=t.value,r=t.formatter,i=lt(t.children)?n:t.children;return He(r)?r(i):i},TDe=function(t,n){var r=Li(n-t),i=Math.min(Math.abs(n-t),360);return r*i},ODe=function(t,n,r){var i=t.position,a=t.viewBox,s=t.offset,l=t.className,c=a,u=c.cx,h=c.cy,d=c.innerRadius,f=c.outerRadius,p=c.startAngle,v=c.endAngle,m=c.clockWise,y=(d+f)/2,b=TDe(p,v),w=b>=0?1:-1,x,S;i==="insideStart"?(x=p+w*s,S=m):i==="insideEnd"?(x=v-w*s,S=!m):i==="end"&&(x=v+w*s,S=m),S=b<=0?S:!S;var j=$n(u,h,y,x),N=$n(u,h,y,x+(S?1:-1)*359),_="M".concat(j.x,",").concat(j.y,` 648 A`).concat(y,",").concat(y,",0,1,").concat(S?0:1,`, 649 `).concat(N.x,",").concat(N.y),P=lt(t.id)?nx("recharts-radial-line-"):t.id;return D.createElement("text",np({},r,{dominantBaseline:"central",className:nt("recharts-radial-bar-label",l)}),D.createElement("defs",null,D.createElement("path",{id:P,d:_})),D.createElement("textPath",{xlinkHref:"#".concat(P)},n))},IDe=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,s=a.cx,l=a.cy,c=a.innerRadius,u=a.outerRadius,h=a.startAngle,d=a.endAngle,f=(h+d)/2;if(i==="outside"){var p=$n(s,l,u+r,f),v=p.x,m=p.y;return{x:v,y:m,textAnchor:v>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"end"};var y=(c+u)/2,b=$n(s,l,y,f),w=b.x,x=b.y;return{x:w,y:x,textAnchor:"middle",verticalAnchor:"middle"}},RDe=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,s=n,l=s.x,c=s.y,u=s.width,h=s.height,d=h>=0?1:-1,f=d*i,p=d>0?"end":"start",v=d>0?"start":"end",m=u>=0?1:-1,y=m*i,b=m>0?"end":"start",w=m>0?"start":"end";if(a==="top"){var x={x:l+u/2,y:c-d*i,textAnchor:"middle",verticalAnchor:p};return fn(fn({},x),r?{height:Math.max(c-r.y,0),width:u}:{})}if(a==="bottom"){var S={x:l+u/2,y:c+h+f,textAnchor:"middle",verticalAnchor:v};return fn(fn({},S),r?{height:Math.max(r.y+r.height-(c+h),0),width:u}:{})}if(a==="left"){var j={x:l-y,y:c+h/2,textAnchor:b,verticalAnchor:"middle"};return fn(fn({},j),r?{width:Math.max(j.x-r.x,0),height:h}:{})}if(a==="right"){var N={x:l+u+y,y:c+h/2,textAnchor:w,verticalAnchor:"middle"};return fn(fn({},N),r?{width:Math.max(r.x+r.width-N.x,0),height:h}:{})}var _=r?{width:u,height:h}:{};return a==="insideLeft"?fn({x:l+y,y:c+h/2,textAnchor:w,verticalAnchor:"middle"},_):a==="insideRight"?fn({x:l+u-y,y:c+h/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?fn({x:l+u/2,y:c+f,textAnchor:"middle",verticalAnchor:v},_):a==="insideBottom"?fn({x:l+u/2,y:c+h-f,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?fn({x:l+y,y:c+f,textAnchor:w,verticalAnchor:v},_):a==="insideTopRight"?fn({x:l+u-y,y:c+f,textAnchor:b,verticalAnchor:v},_):a==="insideBottomLeft"?fn({x:l+y,y:c+h-f,textAnchor:w,verticalAnchor:p},_):a==="insideBottomRight"?fn({x:l+u-y,y:c+h-f,textAnchor:b,verticalAnchor:p},_):Ed(a)&&(de(a.x)||Zo(a.x))&&(de(a.y)||Zo(a.y))?fn({x:l+Ml(a.x,u),y:c+Ml(a.y,h),textAnchor:"end",verticalAnchor:"end"},_):fn({x:l+u/2,y:c+h/2,textAnchor:"middle",verticalAnchor:"middle"},_)},DDe=function(t){return"cx"in t&&de(t.cx)};function Kn(e){var t=e.offset,n=t===void 0?5:t,r=NDe(e,bDe),i=fn({offset:n},r),a=i.viewBox,s=i.position,l=i.value,c=i.children,u=i.content,h=i.className,d=h===void 0?"":h,f=i.textBreakAll;if(!a||lt(l)&<(c)&&!g.isValidElement(u)&&!He(u))return null;if(g.isValidElement(u))return g.cloneElement(u,i);var p;if(He(u)){if(p=g.createElement(u,i),g.isValidElement(p))return p}else p=kDe(i);var v=DDe(a),m=ot(i,!0);if(v&&(s==="insideStart"||s==="insideEnd"||s==="end"))return ODe(i,p,m);var y=v?IDe(i):RDe(i);return D.createElement(ty,np({className:nt("recharts-label",d)},m,y,{breakAll:f}),p)}Kn.displayName="Label";var M6=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,s=t.endAngle,l=t.r,c=t.radius,u=t.innerRadius,h=t.outerRadius,d=t.x,f=t.y,p=t.top,v=t.left,m=t.width,y=t.height,b=t.clockWise,w=t.labelViewBox;if(w)return w;if(de(m)&&de(y)){if(de(d)&&de(f))return{x:d,y:f,width:m,height:y};if(de(p)&&de(v))return{x:p,y:v,width:m,height:y}}return de(d)&&de(f)?{x:d,y:f,width:0,height:0}:de(n)&&de(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:s||i||0,innerRadius:u||0,outerRadius:h||c||l||0,clockWise:b}:t.viewBox?t.viewBox:{}},MDe=function(t,n){return t?t===!0?D.createElement(Kn,{key:"label-implicit",viewBox:n}):bn(t)?D.createElement(Kn,{key:"label-implicit",viewBox:n,value:t}):g.isValidElement(t)?t.type===Kn?g.cloneElement(t,{key:"label-implicit",viewBox:n}):D.createElement(Kn,{key:"label-implicit",content:t,viewBox:n}):He(t)?D.createElement(Kn,{key:"label-implicit",content:t,viewBox:n}):Ed(t)?D.createElement(Kn,np({viewBox:n},t,{key:"label-implicit"})):null:null},$De=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=M6(t),s=Bi(i,Kn).map(function(c,u){return g.cloneElement(c,{viewBox:n||a,key:"label-".concat(u)})});if(!r)return s;var l=MDe(t.label,n||a);return[l].concat(xDe(s))};Kn.parseViewBox=M6;Kn.renderCallByParent=$De;function LDe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var VDe=LDe;const FDe=jt(VDe);function rp(e){"@babel/helpers - typeof";return rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rp(e)}var BDe=["valueAccessor"],zDe=["data","dataKey","clockWise","id","textBreakAll"];function UDe(e){return GDe(e)||HDe(e)||qDe(e)||WDe()}function WDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 650In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qDe(e,t){if(e){if(typeof e=="string")return Gj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gj(e,t)}}function HDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GDe(e){if(Array.isArray(e))return Gj(e)}function Gj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vy(){return vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vy.apply(this,arguments)}function mD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mD(Object(n),!0).forEach(function(r){KDe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KDe(e,t,n){return t=YDe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YDe(e){var t=XDe(e,"string");return rp(t)=="symbol"?t:t+""}function XDe(e,t){if(rp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vD(e,t){if(e==null)return{};var n=JDe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JDe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var QDe=function(t){return Array.isArray(t.value)?FDe(t.value):t.value};function gl(e){var t=e.valueAccessor,n=t===void 0?QDe:t,r=vD(e,BDe),i=r.data,a=r.dataKey,s=r.clockWise,l=r.id,c=r.textBreakAll,u=vD(r,zDe);return!i||!i.length?null:D.createElement(An,{className:"recharts-label-list"},i.map(function(h,d){var f=lt(a)?n(h,d):_a(h&&h.payload,a),p=lt(l)?{}:{id:"".concat(l,"-").concat(d)};return D.createElement(Kn,vy({},ot(h,!0),u,p,{parentViewBox:h.parentViewBox,value:f,textBreakAll:c,viewBox:Kn.parseViewBox(lt(s)?h:gD(gD({},h),{},{clockWise:s})),key:"label-".concat(d),index:d}))}))}gl.displayName="LabelList";function ZDe(e,t){return e?e===!0?D.createElement(gl,{key:"labelList-implicit",data:t}):D.isValidElement(e)||He(e)?D.createElement(gl,{key:"labelList-implicit",data:t,content:e}):Ed(e)?D.createElement(gl,vy({data:t},e,{key:"labelList-implicit"})):null:null}function eMe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Bi(r,gl).map(function(s,l){return g.cloneElement(s,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var a=ZDe(e.label,t);return[a].concat(UDe(i))}gl.renderCallByParent=eMe;function ip(e){"@babel/helpers - typeof";return ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ip(e)}function Kj(){return Kj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kj.apply(this,arguments)}function yD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yD(Object(n),!0).forEach(function(r){tMe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tMe(e,t,n){return t=nMe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nMe(e){var t=rMe(e,"string");return ip(t)=="symbol"?t:t+""}function rMe(e,t){if(ip(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ip(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iMe=function(t,n){var r=Li(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},ig=function(t){var n=t.cx,r=t.cy,i=t.radius,a=t.angle,s=t.sign,l=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,h=c*(l?1:-1)+i,d=Math.asin(c/h)/gy,f=u?a:a+s*d,p=$n(n,r,h,f),v=$n(n,r,i,f),m=u?a-s*d:a,y=$n(n,r,h*Math.cos(d*gy),m);return{center:p,circleTangency:v,lineTangency:y,theta:d}},$6=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,s=t.startAngle,l=t.endAngle,c=iMe(s,l),u=s+c,h=$n(n,r,a,s),d=$n(n,r,a,u),f="M ".concat(h.x,",").concat(h.y,` 651 A `).concat(a,",").concat(a,`,0, 652 `).concat(+(Math.abs(c)>180),",").concat(+(s>u),`, 653 `).concat(d.x,",").concat(d.y,` 654 `);if(i>0){var p=$n(n,r,i,s),v=$n(n,r,i,u);f+="L ".concat(v.x,",").concat(v.y,` 655 A `).concat(i,",").concat(i,`,0, 656 `).concat(+(Math.abs(c)>180),",").concat(+(s<=u),`, 657 `).concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(n,",").concat(r," Z");return f},aMe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,s=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,h=t.endAngle,d=Li(h-u),f=ig({cx:n,cy:r,radius:a,angle:u,sign:d,cornerRadius:s,cornerIsExternal:c}),p=f.circleTangency,v=f.lineTangency,m=f.theta,y=ig({cx:n,cy:r,radius:a,angle:h,sign:-d,cornerRadius:s,cornerIsExternal:c}),b=y.circleTangency,w=y.lineTangency,x=y.theta,S=c?Math.abs(u-h):Math.abs(u-h)-m-x;if(S<0)return l?"M ".concat(v.x,",").concat(v.y,` 658 a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0 659 a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0 660 `):$6({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:u,endAngle:h});var j="M ".concat(v.x,",").concat(v.y,` 661 A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(p.x,",").concat(p.y,` 662 A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(d<0),",").concat(b.x,",").concat(b.y,` 663 A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(w.x,",").concat(w.y,` 664 `);if(i>0){var N=ig({cx:n,cy:r,radius:i,angle:u,sign:d,isExternal:!0,cornerRadius:s,cornerIsExternal:c}),_=N.circleTangency,P=N.lineTangency,A=N.theta,k=ig({cx:n,cy:r,radius:i,angle:h,sign:-d,isExternal:!0,cornerRadius:s,cornerIsExternal:c}),C=k.circleTangency,E=k.lineTangency,I=k.theta,O=c?Math.abs(u-h):Math.abs(u-h)-A-I;if(O<0&&s===0)return"".concat(j,"L").concat(n,",").concat(r,"Z");j+="L".concat(E.x,",").concat(E.y,` 665 A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(C.x,",").concat(C.y,` 666 A`).concat(i,",").concat(i,",0,").concat(+(O>180),",").concat(+(d>0),",").concat(_.x,",").concat(_.y,` 667 A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(P.x,",").concat(P.y,"Z")}else j+="L".concat(n,",").concat(r,"Z");return j},sMe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},L6=function(t){var n=bD(bD({},sMe),t),r=n.cx,i=n.cy,a=n.innerRadius,s=n.outerRadius,l=n.cornerRadius,c=n.forceCornerRadius,u=n.cornerIsExternal,h=n.startAngle,d=n.endAngle,f=n.className;if(s<a||h===d)return null;var p=nt("recharts-sector",f),v=s-a,m=Ml(l,v,0,!0),y;return m>0&&Math.abs(h-d)<360?y=aMe({cx:r,cy:i,innerRadius:a,outerRadius:s,cornerRadius:Math.min(m,v/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:h,endAngle:d}):y=$6({cx:r,cy:i,innerRadius:a,outerRadius:s,startAngle:h,endAngle:d}),D.createElement("path",Kj({},ot(n,!0),{className:p,d:y,role:"img"}))};function ap(e){"@babel/helpers - typeof";return ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ap(e)}function Yj(){return Yj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yj.apply(this,arguments)}function xD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xD(Object(n),!0).forEach(function(r){oMe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oMe(e,t,n){return t=lMe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lMe(e){var t=cMe(e,"string");return ap(t)=="symbol"?t:t+""}function cMe(e,t){if(ap(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ap(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SD={curveBasisClosed:s1e,curveBasisOpen:o1e,curveBasis:a1e,curveBumpX:qSe,curveBumpY:HSe,curveLinearClosed:l1e,curveLinear:ax,curveMonotoneX:c1e,curveMonotoneY:u1e,curveNatural:d1e,curveStep:h1e,curveStepAfter:p1e,curveStepBefore:f1e},ag=function(t){return t.x===+t.x&&t.y===+t.y},dh=function(t){return t.x},hh=function(t){return t.y},uMe=function(t,n){if(He(t))return t;var r="curve".concat(rx(t));return(r==="curveMonotone"||r==="curveBump")&&n?SD["".concat(r).concat(n==="vertical"?"Y":"X")]:SD[r]||ax},dMe=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,a=i===void 0?[]:i,s=t.baseLine,l=t.layout,c=t.connectNulls,u=c===void 0?!1:c,h=uMe(r,l),d=u?a.filter(function(m){return ag(m)}):a,f;if(Array.isArray(s)){var p=u?s.filter(function(m){return ag(m)}):s,v=d.map(function(m,y){return wD(wD({},m),{},{base:p[y]})});return l==="vertical"?f=Ym().y(hh).x1(dh).x0(function(m){return m.base.x}):f=Ym().x(dh).y1(hh).y0(function(m){return m.base.y}),f.defined(ag).curve(h),f(v)}return l==="vertical"&&de(s)?f=Ym().y(hh).x1(dh).x0(s):de(s)?f=Ym().x(dh).y1(hh).y0(s):f=VW().x(dh).y(hh),f.defined(ag).curve(h),f(d)},jD=function(t){var n=t.className,r=t.points,i=t.path,a=t.pathRef;if((!r||!r.length)&&!i)return null;var s=r&&r.length?dMe(t):i;return g.createElement("path",Yj({},ot(t,!1),Fv(t),{className:nt("recharts-curve",n),d:s,ref:a}))},V6={exports:{}},hMe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fMe=hMe,pMe=fMe;function F6(){}function B6(){}B6.resetWarningCache=F6;var mMe=function(){function e(r,i,a,s,l,c){if(c!==pMe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:B6,resetWarningCache:F6};return n.PropTypes=n,n};V6.exports=mMe();var gMe=V6.exports;const ut=jt(gMe);var vMe=Object.getOwnPropertyNames,yMe=Object.getOwnPropertySymbols,bMe
667=Object.prototype.hasOwnProperty;function _D(e,t){return function(r,i,a){return e(r,i,a)&&t(r,i,a)}}function sg(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var a=i.cache,s=a.get(n),l=a.get(r);if(s&&l)return s===r&&l===n;a.set(n,r),a.set(r,n);var c=e(n,r,i);return a.delete(n),a.delete(r),c}}function ND(e){return vMe(e).concat(yMe(e))}var xMe=Object.hasOwn||function(e,t){return bMe.call(e,t)};function Yl(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var wMe="__v",SMe="__o",jMe="_owner",PD=Object.getOwnPropertyDescriptor,AD=Object.keys;function _Me(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function NMe(e,t){return Yl(e.getTime(),t.getTime())}function PMe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function AMe(e,t){return e===t}function CD(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),a=e.entries(),s,l,c=0;(s=a.next())&&!s.done;){for(var u=t.entries(),h=!1,d=0;(l=u.next())&&!l.done;){if(i[d]){d++;continue}var f=s.value,p=l.value;if(n.equals(f[0],p[0],c,d,e,t,n)&&n.equals(f[1],p[1],f[0],p[0],e,t,n)){h=i[d]=!0;break}d++}if(!h)return!1;c++}return!0}var CMe=Yl;function EMe(e,t,n){var r=AD(e),i=r.length;if(AD(t).length!==i)return!1;for(;i-- >0;)if(!z6(e,t,n,r[i]))return!1;return!0}function fh(e,t,n){var r=ND(e),i=r.length;if(ND(t).length!==i)return!1;for(var a,s,l;i-- >0;)if(a=r[i],!z6(e,t,n,a)||(s=PD(e,a),l=PD(t,a),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function kMe(e,t){return Yl(e.valueOf(),t.valueOf())}function TMe(e,t){return e.source===t.source&&e.flags===t.flags}function ED(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),a=e.values(),s,l;(s=a.next())&&!s.done;){for(var c=t.values(),u=!1,h=0;(l=c.next())&&!l.done;){if(!i[h]&&n.equals(s.value,l.value,s.value,l.value,e,t,n)){u=i[h]=!0;break}h++}if(!u)return!1}return!0}function OMe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function IMe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function z6(e,t,n,r){return(r===jMe||r===SMe||r===wMe)&&(e.$$typeof||t.$$typeof)?!0:xMe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var RMe="[object Arguments]",DMe="[object Boolean]",MMe="[object Date]",$Me="[object Error]",LMe="[object Map]",VMe="[object Number]",FMe="[object Object]",BMe="[object RegExp]",zMe="[object Set]",UMe="[object String]",WMe="[object URL]",qMe=Array.isArray,kD=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,TD=Object.assign,HMe=Object.prototype.toString.call.bind(Object.prototype.toString);function GMe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,s=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,h=e.areSetsEqual,d=e.areTypedArraysEqual,f=e.areUrlsEqual;return function(v,m,y){if(v===m)return!0;if(v==null||m==null)return!1;var b=typeof v;if(b!==typeof m)return!1;if(b!=="object")return b==="number"?s(v,m,y):b==="function"?i(v,m,y):!1;var w=v.constructor;if(w!==m.constructor)return!1;if(w===Object)return l(v,m,y);if(qMe(v))return t(v,m,y);if(kD!=null&&kD(v))return d(v,m,y);if(w===Date)return n(v,m,y);if(w===RegExp)return u(v,m,y);if(w===Map)return a(v,m,y);if(w===Set)return h(v,m,y);var x=HMe(v);return x===MMe?n(v,m,y):x===BMe?u(v,m,y):x===LMe?a(v,m,y):x===zMe?h(v,m,y):x===FMe?typeof v.then!="function"&&typeof m.then!="function"&&l(v,m,y):x===WMe?f(v,m,y):x===$Me?r(v,m,y):x===RMe?l(v,m,y):x===DMe||x===VMe||x===UMe?c(v,m,y):!1}}function KMe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?fh:_Me,areDatesEqual:NMe,areErrorsEqual:PMe,areFunctionsEqual:AMe,areMapsEqual:r?_D(CD,fh):CD,areNumbersEqual:CMe,areObjectsEqual:r?fh:EMe,arePrimitiveWrappersEqual:kMe,areRegExpsEqual:TMe,areSetsEqual:r?_D(ED,fh):ED,areTypedArraysEqual:r?fh:OMe,areUrlsEqual:IMe};if(n&&(i=TD({},i,n(i))),t){var a=sg(i.areArraysEqual),s=sg(i.areMapsEqual),l=sg(i.areObjectsEqual),c=sg(i.areSetsEqual);i=TD({},i,{areArraysEqual:a,areMapsEqual:s,areObjectsEqual:l,areSetsEqual:c})}return i}function YMe(e){return function(t,n,r,i,a,s,l){return e(t,n,l)}}
vendor: 40,122 bytes, lines 667-685
667function XMe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(c,u){var h=r(),d=h.cache,f=d===void 0?t?new WeakMap:void 0:d,p=h.meta;return n(c,u,{cache:f,equals:i,meta:p,strict:a})};if(t)return function(c,u){return n(c,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var s={cache:void 0,equals:i,meta:void 0,strict:a};return function(c,u){return n(c,u,s)}}var JMe=Eo();Eo({strict:!0});Eo({circular:!0});Eo({circular:!0,strict:!0});Eo({createInternalComparator:function(){return Yl}});Eo({strict:!0,createInternalComparator:function(){return Yl}});Eo({circular:!0,createInternalComparator:function(){return Yl}});Eo({circular:!0,createInternalComparator:function(){return Yl},strict:!0});function Eo(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,s=a===void 0?!1:a,l=KMe(e),c=GMe(l),u=r?r(c):YMe(c);return XMe({circular:n,comparator:c,createState:i,equals:u,strict:s})}function QMe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function OD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):QMe(i)};requestAnimationFrame(r)}function Xj(e){"@babel/helpers - typeof";return Xj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xj(e)}function ZMe(e){return r$e(e)||n$e(e)||t$e(e)||e$e()}function e$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 668In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t$e(e,t){if(e){if(typeof e=="string")return ID(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ID(e,t)}}function ID(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n$e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function r$e(e){if(Array.isArray(e))return e}function i$e(){var e={},t=function(){return null},n=!1,r=function i(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,l=ZMe(s),c=l[0],u=l.slice(1);if(typeof c=="number"){OD(i.bind(null,u),c);return}i(c),OD(i.bind(null,u));return}Xj(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function sp(e){"@babel/helpers - typeof";return sp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sp(e)}function RD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RD(Object(n),!0).forEach(function(r){U6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U6(e,t,n){return t=a$e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a$e(e){var t=s$e(e,"string");return sp(t)==="symbol"?t:String(t)}function s$e(e,t){if(sp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o$e=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(a){return i.includes(a)})})},l$e=function(t){return t},c$e=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Yh=function(t,n){return Object.keys(n).reduce(function(r,i){return DD(DD({},r),{},U6({},i,t(i,n[i])))},{})},MD=function(t,n,r){return t.map(function(i){return"".concat(c$e(i)," ").concat(n,"ms ").concat(r)}).join(",")};function u$e(e,t){return f$e(e)||h$e(e,t)||W6(e,t)||d$e()}function d$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 669In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h$e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function f$e(e){if(Array.isArray(e))return e}function p$e(e){return v$e(e)||g$e(e)||W6(e)||m$e()}function m$e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 670In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W6(e,t){if(e){if(typeof e=="string")return Jj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jj(e,t)}}function g$e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function v$e(e){if(Array.isArray(e))return Jj(e)}function Jj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yy=1e-4,q6=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},H6=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},$D=function(t,n){return function(r){var i=q6(t,n);return H6(i,r)}},y$e=function(t,n){return function(r){var i=q6(t,n),a=[].concat(p$e(i.map(function(s,l){return s*l}).slice(1)),[0]);return H6(a,r)}},LD=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],s=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,a=0,s=1,l=1;break;case"ease":i=.25,a=.1,s=.25,l=1;break;case"ease-in":i=.42,a=0,s=1,l=1;break;case"ease-out":i=.42,a=0,s=.58,l=1;break;case"ease-in-out":i=0,a=0,s=.58,l=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),h=u$e(u,4);i=h[0],a=h[1],s=h[2],l=h[3]}}}var d=$D(i,s),f=$D(a,l),p=y$e(i,s),v=function(b){return b>1?1:b<0?0:b},m=function(b){for(var w=b>1?1:b,x=w,S=0;S<8;++S){var j=d(x)-w,N=p(x);if(Math.abs(j-w)<yy||N<yy)return f(x);x=v(x-j/N)}return f(x)};return m.isStepper=!1,m},b$e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,s=t.dt,l=s===void 0?17:s,c=function(h,d,f){var p=-(h-d)*r,v=f*a,m=f+(p-v)*l/1e3,y=f*l/1e3+h;return Math.abs(y-d)<yy&&Math.abs(m)<yy?[d,0]:[y,m]};return c.isStepper=!0,c.dt=l,c},x$e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return LD(i);case"spring":return b$e();default:if(i.split("(")[0]==="cubic-bezier")return LD(i)}return typeof i=="function"?i:null};function op(e){"@babel/helpers - typeof";return op=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},op(e)}function VD(e){return j$e(e)||S$e(e)||G6(e)||w$e()}function w$e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 671In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S$e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j$e(e){if(Array.isArray(e))return Zj(e)}function FD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FD(Object(n),!0).forEach(function(r){Qj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qj(e,t,n){return t=_$e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _$e(e){var t=N$e(e,"string");return op(t)==="symbol"?t:String(t)}function N$e(e,t){if(op(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(op(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P$e(e,t){return E$e(e)||C$e(e,t)||G6(e,t)||A$e()}function A$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 672In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G6(e,t){if(e){if(typeof e=="string")return Zj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zj(e,t)}}function Zj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C$e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function E$e(e){if(Array.isArray(e))return e}var by=function(t,n,r){return t+(n-t)*r},e_=function(t){var n=t.from,r=t.to;return n!==r},k$e=function e(t,n,r){var i=Yh(function(a,s){if(e_(s)){var l=t(s.from,s.to,s.velocity),c=P$e(l,2),u=c[0],h=c[1];return In(In({},s),{},{from:u,velocity:h})}return s},n);return r<1?Yh(function(a,s){return e_(s)?In(In({},s),{},{velocity:by(s.velocity,i[a].velocity,r),from:by(s.from,i[a].from,r)}):s},n):e(t,i,r-1)};const T$e=function(e,t,n,r,i){var a=o$e(e,t),s=a.reduce(function(y,b){return In(In({},y),{},Qj({},b,[e[b],t[b]]))},{}),l=a.reduce(function(y,b){return In(In({},y),{},Qj({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,u,h,d=function(){return null},f=function(){return Yh(function(b,w){return w.from},l)},p=function(){return!Object.values(l).filter(e_).length},v=function(b){u||(u=b);var w=b-u,x=w/n.dt;l=k$e(n,l,x),i(In(In(In({},e),t),f())),u=b,p()||(c=requestAnimationFrame(d))},m=function(b){h||(h=b);var w=(b-h)/r,x=Yh(function(j,N){return by.apply(void 0,VD(N).concat([n(w)]))},s);if(i(In(In(In({},e),t),x)),w<1)c=requestAnimationFrame(d);else{var S=Yh(function(j,N){return by.apply(void 0,VD(N).concat([n(1)]))},s);i(In(In(In({},e),t),S))}};return d=n.isStepper?v:m,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}};function qu(e){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}var O$e=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function I$e(e,t){if(e==null)return{};var n=R$e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function kw(e){return L$e(e)||$$e(e)||M$e(e)||D$e()}function D$e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 673In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M$e(e,t){if(e){if(typeof e=="string")return t_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t_(e,t)}}function $$e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function L$e(e){if(Array.isArray(e))return t_(e)}function t_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BD(Object(n),!0).forEach(function(r){Nh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nh(e,t,n){return t=K6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F$e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K6(r.key),r)}}function B$e(e,t,n){return t&&F$e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function K6(e){var t=z$e(e,"string");return qu(t)==="symbol"?t:String(t)}function z$e(e,t){if(qu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U$e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n_(e,t)}function n_(e,t){return n_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},n_(e,t)}function W$e(e){var t=q$e();return function(){var r=xy(e),i;if(t){var a=xy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return r_(this,i)}}function r_(e,t){if(t&&(qu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i_(e)}function i_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q$e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xy(e)}var go=function(e){U$e(n,e);var t=W$e(n);function n(r,i){var a;V$e(this,n),a=t.call(this,r,i);var s=a.props,l=s.isActive,c=s.attributeName,u=s.from,h=s.to,d=s.steps,f=s.children,p=s.duration;if(a.handleStyleChange=a.handleStyleChange.bind(i_(a)),a.changeStyle=a.changeStyle.bind(i_(a)),!l||p<=0)return a.state={style:{}},typeof f=="function"&&(a.state={style:h}),r_(a);if(d&&d.length)a.state={style:d[0].style};else if(u){if(typeof f=="function")return a.state={style:u},r_(a);a.state={style:c?Nh({},c,u):u}}else a.state={style:{}};return a}return B$e(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,s=i.canBegin;this.mounted=!0,!(!a||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,s=a.isActive,l=a.canBegin,c=a.attributeName,u=a.shouldReAnimate,h=a.to,d=a.from,f=this.state.style;if(l){if(!s){var p={style:c?Nh({},c,h):h};this.state&&f&&(c&&f[c]!==h||!c&&f!==h)&&this.setState(p);return}if(!(JMe(i.to,h)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=v||u?d:i.to;if(this.state&&f){var y={style:c?Nh({},c,m):m};(c&&f[c]!==m||!c&&f!==m)&&this.setState(y)}this.runAnimation(_i(_i({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,s=i.from,l=i.to,c=i.duration,u=i.easing,h=i.begin,d=i.onAnimationEnd,f=i.onAnimationStart,p=T$e(s,l,x$e(u),c,this.changeStyle),v=function(){a.stopJSAnimation=p()};this.manager.start([f,h,v,c,d])}},{key:"runStepAnimation",value:function(i){var a=this,s=i.steps,l=i.begin,c=i.onAnimationStart,u=s[0],h=u.style,d=u.duration,f=d===void 0?0:d,p=function(m,y,b){if(b===0)return m;var w=y.duration,x=y.easing,S=x===void 0?"ease":x,j=y.style,N=y.properties,_=y.onAnimationEnd,P=b>0?s[b-1]:y,A=N||Object.keys(j);if(typeof S=="function"||S==="spring")return[].concat(kw(m),[a.runJSAnimation.bind(a,{from:P.style,to:j,duration:w,easing:S}),w]);var k=MD(A,w,S),C=_i(_i(_i({},P.style),j),{},{transition:k});return[].concat(kw(m),[C,w,_]).filter(l$e)};return this.manager.start([c].concat(kw(s.reduce(p,[h,Math.max(f,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=i$e());var a=i.begin,s=i.duration,l=i.attributeName,c=i.to,u=i.easing,h=i.onAnimationStart,d=i.onAnimationEnd,f=i.steps,p=i.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(f.length>1){this.runStepAnimation(i);return}var m=l?Nh({},l,c):c,y=MD(Object.keys(m),s,u);v.start([h,a,_i(_i({},m),{},{transition:y}),s,d])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=I$e(i,O$e),u=g.Children.count(a),h=this.state.style;if(typeof a=="function")return a(h);if(!l||u===0||s<=0)return a;var d=function(p){var v=p.props,m=v.style,y=m===void 0?{}:m,b=v.className,w=g.cloneElement(p,_i(_i({},c),{},{style:_i(_i({},y),h),className:b}));return w};return u===1?d(g.Children.only(a)):D.createElement("div",null,g.Children.map(a,function(f){return d(f)}))}}]),n}(g.PureComponent);go.displayName="Animate";go.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};go.propTypes={from:ut.oneOfType([ut.object,ut.string]),to:ut.oneOfType([ut.object,ut.string]),attributeName:ut.string,duration:ut.number,begin:ut.number,easing:ut.oneOfType([ut.string,ut.func]),steps:ut.arrayOf(ut.shape({duration:ut.number.isRequired,style:ut.object.isRequired,easing:ut.oneOfType([ut.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ut.func]),properties:ut.arrayOf("string"),onAnimationEnd:ut.func})),children:ut.oneOfType([ut.node,ut.func]),isActive:ut.bool,canBegin:ut.bool,onAnimationEnd:ut.func,shouldReAnimate:ut.bool,onAnimationStart:ut.func,onAnimationReStart:ut.func};function lp(e){"@babel/helpers - typeof";return lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lp(e)}function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wy.apply(this,arguments)}function H$e(e,t){return X$e(e)||Y$e(e,t)||K$e(e,t)||G$e()}function G$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 674In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K$e(e,t){if(e){if(typeof e=="string")return zD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zD(e,t)}}function zD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y$e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function X$e(e){if(Array.isArray(e))return e}function UD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UD(Object(n),!0).forEach(function(r){J$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J$e(e,t,n){return t=Q$e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q$e(e){var t=Z$e(e,"string");return lp(t)=="symbol"?t:t+""}function Z$e(e,t){if(lp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qD=function(t,n,r,i,a){var s=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,c=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,h;if(s>0&&a instanceof Array){for(var d=[0,0,0,0],f=0,p=4;f<p;f++)d[f]=a[f]>s?s:a[f];h="M".concat(t,",").concat(n+l*d[0]),d[0]>0&&(h+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+c*d[0],",").concat(n)),h+="L ".concat(t+r-c*d[1],",").concat(n),d[1]>0&&(h+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`, 675 `).concat(t+r,",").concat(n+l*d[1])),h+="L ".concat(t+r,",").concat(n+i-l*d[2]),d[2]>0&&(h+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(u,`, 676 `).concat(t+r-c*d[2],",").concat(n+i)),h+="L ".concat(t+c*d[3],",").concat(n+i),d[3]>0&&(h+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(u,`, 677 `).concat(t,",").concat(n+i-l*d[3])),h+="Z"}else if(s>0&&a===+a&&a>0){var v=Math.min(s,a);h="M ".concat(t,",").concat(n+l*v,` 678 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+c*v,",").concat(n,` 679 L `).concat(t+r-c*v,",").concat(n,` 680 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+r,",").concat(n+l*v,` 681 L `).concat(t+r,",").concat(n+i-l*v,` 682 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+r-c*v,",").concat(n+i,` 683 L `).concat(t+c*v,",").concat(n+i,` 684 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t,",").concat(n+i-l*v," Z")}else h="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return h},eLe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,s=n.y,l=n.width,c=n.height;if(Math.abs(l)>0&&Math.abs(c)>0){var u=Math.min(a,a+l),h=Math.max(a,a+l),d=Math.min(s,s+c),f=Math.max(s,s+c);return r>=u&&r<=h&&i>=d&&i<=f}return!1},tLe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},NC=function(t){var n=WD(WD({},tLe),t),r=g.useRef(),i=g.useState(-1),a=H$e(i,2),s=a[0],l=a[1];g.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&l(S)}catch{}},[]);var c=n.x,u=n.y,h=n.width,d=n.height,f=n.radius,p=n.className,v=n.animationEasing,m=n.animationDuration,y=n.animationBegin,b=n.isAnimationActive,w=n.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||d!==+d||h===0||d===0)return null;var x=nt("recharts-rectangle",p);return w?D.createElement(go,{canBegin:s>0,from:{width:h,height:d,x:c,y:u},to:{width:h,height:d,x:c,y:u},duration:m,animationEasing:v,isActive:w},function(S){var j=S.width,N=S.height,_=S.x,P=S.y;return D.createElement(go,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,isActive:b,easing:v},D.createElement("path",wy({},ot(n,!0),{className:x,d:qD(_,P,j,N,f),ref:r})))}):D.createElement("path",wy({},ot(n,!0),{className:x,d:qD(c,u,h,d,f)}))};function a_(){return a_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a_.apply(this,arguments)}var Y6=function(t){var n=t.cx,r=t.cy,i=t.r,a=t.className,s=nt("recharts-dot",a);return n===+n&&r===+r&&i===+i?g.createElement("circle",a_({},ot(t,!1),Fv(t),{className:s,cx:n,cy:r,r:i})):null};function cp(e){"@babel/helpers - typeof";return cp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cp(e)}var nLe=["x","y","top","left","width","height","className"];function s_(){return s_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s_.apply(this,arguments)}function HD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rLe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HD(Object(n),!0).forEach(function(r){iLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iLe(e,t,n){return t=aLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aLe(e){var t=sLe(e,"string");return cp(t)=="symbol"?t:t+""}function sLe(e,t){if(cp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(cp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oLe(e,t){if(e==null)return{};var n=lLe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lLe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var cLe=function(t,n,r,i,a,s){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},uLe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,s=t.top,l=s===void 0?0:s,c=t.left,u=c===void 0?0:c,h=t.width,d=h===void 0?0:h,f=t.height,p=f===void 0?0:f,v=t.className,m=oLe(t,nLe),y=rLe({x:r,y:a,top:l,left:u,width:d,height:p},m);return!de(r)||!de(a)||!de(d)||!de(p)||!de(l)||!de(u)?null:D.createElement("path",s_({},ot(y,!0),{className:nt("recharts-cross",v),d:cLe(r,a,d,p,l,u)}))},dLe=cq,hLe=dLe(Object.getPrototypeOf,Object),fLe=hLe,pLe=ds,mLe=fLe,gLe=hs,vLe="[object Object]",yLe=Function.prototype,bLe=Object.prototype,X6=yLe.toString,xLe=bLe.hasOwnProperty,wLe=X6.call(Object);function SLe(e){if(!gLe(e)||pLe(e)!=vLe)return!1;var t=mLe(e);if(t===null)return!0;var n=xLe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&X6.call(n)==wLe}var jLe=SLe;const _Le=jt(jLe);var NLe=ds,PLe=hs,ALe="[object Boolean]";function CLe(e){return e===!0||e===!1||PLe(e)&&NLe(e)==ALe}var ELe=CLe;const kLe=jt(ELe);function up(e){"@babel/helpers - typeof";return up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},up(e)}function Sy(){return Sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sy.apply(this,arguments)}function TLe(e,t){return DLe(e)||RLe(e,t)||ILe(e,t)||OLe()}function OLe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 685In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ILe(e,t){if(e){if(typeof e=="string")return GD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GD(e,t)}}function GD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function DLe(e){if(Array.isArray(e))return e}function KD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function YD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KD(Object(n),!0).forEach(function(r){MLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MLe(e,t,n){return t=$Le(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Le(e){var t=LLe(e,"string");return up(t)=="symbol"?t:t+""}function LLe(e,t){if(up(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(up(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var XD=function(t,n,r,i,a){var s=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-s/2,",").concat(n+a),l+="L ".concat(t+r-s/2-i,",").concat(n+a),l+="L ".concat(t,",").concat(n," Z"),l},VLe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},FLe=function(t){var n=YD(YD({},VLe),t),r=g.useRef(),i=g.useState(-1),a=TLe(i,2),s=a[0],l=a[1];g.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&l(x)}catch{}},[]);var c=n.x,u=n.y,h=n.upperWidth,d=n.lowerWidth,f=n.height,p=n.className,v=n.animationEasing,m=n.animationDuration,y=n.animationBegin,b=n.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||d!==+d||f!==+f||h===0&&d===0||f===0)return null;var w=nt("recharts-trapezoid",p);return b?D.createElement(go,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:f,x:c,y:u},to:{upperWidth:h,lowerWidth:d,height:f,x:c,y:u},duration:m,animationEasing:v,isActive:b},function(x){var S=x.upperWidth,j=x.lowerWidth,N=x.height,_=x.x,P=x.y;return D.createElement(go,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,easing:v},D.createElement("path",Sy({},ot(n,!0),{className:w,d:XD(_,P,S,j,N),ref:r})))}):D.createElement("g",null,D.createElement("path",Sy({},ot(n,!0),{className:w,d:XD(c,u,h,d,f)})))},BLe=["option","shapeType","propTransformer","activeClassName","isActive"];function dp(e){"@babel/helpers - typeof";return dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dp(e)}function zLe(e,t){if(e==null)return{};var n=ULe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ULe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function JD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JD(Object(n),!0).forEach(function(r){WLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WLe(e,t,n){return t=qLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qLe(e){var t=HLe(e,"string");return dp(t)=="symbol"?t:t+""}function HLe(e,t){if(dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GLe(e,t){return jy(jy({},t),e)}function KLe(e,t){return e==="symbols"}function QD(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return D.createElement(NC,n);case"trapezoid":return D.createElement(FLe,n);case"sector":return D.createElement(L6,n);case"symbols":if(KLe(t))return D.createElement(zA,n);break;default:return null}}function YLe(e){return g.isValidElement(e)?e.props:e}function XLe(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?GLe:r,a=e.activeClassName,s=a===void 0?"recharts-active-shape":a,l=e.isActive,c=zLe(e,BLe),u;if(g.isValidElement(t))u=g.cloneElement(t,jy(jy({},c),YLe(t)));else if(He(t))u=t(c);else if(_Le(t)&&!kLe(t)){var h=i(t,c);u=D.createElement(QD,{shapeType:n,elementProps:h})}else{var d=c;u=D.createElement(QD,{shapeType:n,elementProps:d})}return l?D.createElement(An,{className:s},u):u}function wx(e,t){return t!=null&&"trapezoids"in e.props}function Sx(e,t){return t!=null&&"sectors"in e.props}function hp(e,t){return t!=null&&"points"in e.props}function JLe(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&a}function QLe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function ZLe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function e3e(e,t){var n;return wx(e,t)?n=JLe:Sx(e,t)?n=QLe:hp(e,t)&&(n=ZLe),n}function t3e(e,t){var n;return wx(e,t)?n="trapezoids":Sx(e,t)?n="sectors":hp(e,t)&&(n="points"),n}function n3e(e,t){if(wx(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Sx(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return hp(e,t)?t.payload:{}}function r3e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=t3e(n,t),a=n3e(n,t),s=r.filter(function(c,u){var h=wC(a,c),d=n.props[i].filter(function(v){var m=e3e(n,t);return m(v,t)}),f=n.props[i].indexOf(d[d.length-1]),p=u===f;return h&&p}),l=r.indexOf(s[s.length-1]);return l}var i3e=Math.ceil,a3e=Math.max;function s3e(e,t,n,r){for(var i=-1,a=a3e(i3e((t-e)/(n||1)),0),s=Array(a);a--;)s[r?a:++i]=e,e+=n;return s}var o3e=s3e,l3e=Cq,ZD=1/0,c3e=17976931348623157e292;function u3e(e){if(!e)return e===0?e:0;if(e=l3e(e),e===ZD||e===-ZD){var t=e<0?-1:1;return t*c3e}return e===e?e:0}var J6=u3e,d3e=o3e,h3e=cx,Tw=J6;function f3e(e){return function(t,n,r){return r&&typeof r!="number"&&h3e(t,n,r)&&(n=r=void 0),t=Tw(t),n===void 0?(n=t,t=0):n=Tw(n),r=r===void 0?t<n?1:-1:Tw(r),d3e(t,n,r,e)}}var p3e=f3e,m3e=p3e,g3e=m3e(),v3e=g3e;const _y=jt(v3e);function fp(e){"@babel/helpers - typeof";return fp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fp(e)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eM(Object(n),!0).forEach(function(r){Q6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q6(e,t,n){return t=y3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y3e(e){var t=b3e(e,"string");return fp(t)=="symbol"?t:t+""}function b3e(e,t){if(fp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x3e=["Webkit","Moz","O","ms"],w3e=function(t,n){var r=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=x3e.reduce(function(a,s){return tM(tM({},a),{},Q6({},s+r,n))},{});return i[t]=n,i};function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hu(e)}function Ny(){return Ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ny.apply(this,arguments)}function nM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ow(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
685t%2?nM(Object(n),!0).forEach(function(r){Rr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,e8(r.key),r)}}function j3e(e,t,n){return t&&rM(e.prototype,t),n&&rM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _3e(e,t,n){return t=Py(t),N3e(e,Z6()?Reflect.construct(t,n||[],Py(e).constructor):t.apply(e,n))}function N3e(e,t){if(t&&(Hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P3e(e)}function P3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z6=function(){return!!e})()}
vendor: 9,389 bytes, line 685
685function Py(e){return Py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Py(e)}function A3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o_(e,t)}function o_(e,t){return o_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},o_(e,t)}function Rr(e,t,n){return t=e8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e8(e){var t=C3e(e,"string");return Hu(t)=="symbol"?t:t+""}function C3e(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E3e=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,s=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,u=Gh().domain(_y(0,c)).range([a,a+s-l]),h=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:h}},iM=function(t){return t.changedTouches&&!!t.changedTouches.length},Gu=function(e){function t(n){var r;return S3e(this,t),r=_3e(this,t,[n]),Rr(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Rr(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Rr(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:a,startIndex:l})}),r.detachDragEndListener()}),Rr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Rr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Rr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Rr(r,"handleSlideDragStart",function(i){var a=iM(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return A3e(t,e),j3e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,s=this.state.scaleValues,l=this.props,c=l.gap,u=l.data,h=u.length-1,d=Math.min(i,a),f=Math.max(i,a),p=t.getIndexInRange(s,d),v=t.getIndexInRange(s,f);return{startIndex:p-p%c,endIndex:v===h?h:v-v%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,s=i.tickFormatter,l=i.dataKey,c=_a(a[r],l,r);return He(s)?s(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,a=i.slideMoveStartX,s=i.startX,l=i.endX,c=this.props,u=c.x,h=c.width,d=c.travellerWidth,f=c.startIndex,p=c.endIndex,v=c.onChange,m=r.pageX-a;m>0?m=Math.min(m,u+h-d-l,u+h-d-s):m<0&&(m=Math.max(m,u-s,u-l));var y=this.getIndex({startX:s+m,endX:l+m});(y.startIndex!==f||y.endIndex!==p)&&v&&v(y),this.setState({startX:s+m,endX:l+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=iM(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,s=i.movingTravellerId,l=i.endX,c=i.startX,u=this.state[s],h=this.props,d=h.x,f=h.width,p=h.travellerWidth,v=h.onChange,m=h.gap,y=h.data,b={startX:this.state.startX,endX:this.state.endX},w=r.pageX-a;w>0?w=Math.min(w,d+f-p-u):w<0&&(w=Math.max(w,d-u)),b[s]=u+w;var x=this.getIndex(b),S=x.startIndex,j=x.endIndex,N=function(){var P=y.length-1;return s==="startX"&&(l>c?S%m===0:j%m===0)||l<c&&j===P||s==="endX"&&(l>c?j%m===0:S%m===0)||l>c&&j===P};this.setState(Rr(Rr({},s,u+w),"brushMoveStartX",r.pageX),function(){v&&N()&&v(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,s=this.state,l=s.scaleValues,c=s.startX,u=s.endX,h=this.state[i],d=l.indexOf(h);if(d!==-1){var f=d+r;if(!(f===-1||f>=l.length)){var p=l[f];i==="startX"&&p>=u||i==="endX"&&p<=c||this.setState(Rr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,s=r.width,l=r.height,c=r.fill,u=r.stroke;return D.createElement("rect",{stroke:u,fill:c,x:i,y:a,width:s,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,s=r.width,l=r.height,c=r.data,u=r.children,h=r.padding,d=g.Children.only(u);return d?D.cloneElement(d,{x:i,y:a,width:s,height:l,margin:h,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var a,s,l=this,c=this.props,u=c.y,h=c.travellerWidth,d=c.height,f=c.traveller,p=c.ariaLabel,v=c.data,m=c.startIndex,y=c.endIndex,b=Math.max(r,this.props.x),w=Ow(Ow({},ot(this.props,!1)),{},{x:b,y:u,width:h,height:d}),x=p||"Min value: ".concat((a=v[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((s=v[y])===null||s===void 0?void 0:s.name);return D.createElement(An,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(j){["ArrowLeft","ArrowRight"].includes(j.key)&&(j.preventDefault(),j.stopPropagation(),l.handleTravellerMoveKeyboard(j.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,w))}},{key:"renderSlide",value:function(r,i){var a=this.props,s=a.y,l=a.height,c=a.stroke,u=a.travellerWidth,h=Math.min(r,i)+u,d=Math.max(Math.abs(i-r)-u,0);return D.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:h,y:s,width:d,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,s=r.y,l=r.height,c=r.travellerWidth,u=r.stroke,h=this.state,d=h.startX,f=h.endX,p=5,v={pointerEvents:"none",fill:u};return D.createElement(An,{className:"recharts-brush-texts"},D.createElement(ty,Ny({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,f)-p,y:s+l/2},v),this.getTextOfTick(i)),D.createElement(ty,Ny({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,f)+c+p,y:s+l/2},v),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,s=r.children,l=r.x,c=r.y,u=r.width,h=r.height,d=r.alwaysShowText,f=this.state,p=f.startX,v=f.endX,m=f.isTextActive,y=f.isSlideMoving,b=f.isTravellerMoving,w=f.isTravellerFocused;if(!i||!i.length||!de(l)||!de(c)||!de(u)||!de(h)||u<=0||h<=0)return null;var x=nt("recharts-brush",a),S=D.Children.count(s)===1,j=w3e("userSelect","none");return D.createElement(An,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:j},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,v),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(v,"endX"),(m||y||b||w||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,s=r.width,l=r.height,c=r.stroke,u=Math.floor(a+l/2)-1;return D.createElement(D.Fragment,null,D.createElement("rect",{x:i,y:a,width:s,height:l,fill:c,stroke:"none"}),D.createElement("line",{x1:i+1,y1:u,x2:i+s-1,y2:u,fill:"none",stroke:"#fff"}),D.createElement("line",{x1:i+1,y1:u+2,x2:i+s-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return D.isValidElement(r)?a=D.cloneElement(r,i):He(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,s=r.width,l=r.x,c=r.travellerWidth,u=r.updateId,h=r.startIndex,d=r.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Ow({prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:s},a&&a.length?E3e({data:a,width:s,x:l,travellerWidth:c,startIndex:h,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+s-c]
685);var f=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:s,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:f}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,s=0,l=a-1;l-s>1;){var c=Math.floor((s+l)/2);r[c]>i?l=c:s=c}return i>=r[l]?l:s}}])}(g.PureComponent);Rr(Gu,"displayName","Brush");Rr(Gu,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var k3e=YA;function T3e(e,t){var n;return k3e(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var O3e=T3e,I3e=tq,R3e=Po,D3e=O3e,M3e=Tr,$3e=cx;function L3e(e,t,n){var r=M3e(e)?I3e:D3e;return n&&$3e(e,t,n)&&(t=void 0),r(e,R3e(t))}var V3e=L3e;const F3e=jt(V3e);var ya=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},aM=jq;function B3e(e,t,n){t=="__proto__"&&aM?aM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var z3e=B3e,U3e=z3e,W3e=wq,q3e=Po;function H3e(e,t){var n={};return t=q3e(t),W3e(e,function(r,i,a){U3e(n,i,t(r,i,a))}),n}var G3e=H3e;const K3e=jt(G3e);function Y3e(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var X3e=Y3e,J3e=YA;function Q3e(e,t){var n=!0;return J3e(e,function(r,i,a){return n=!!t(r,i,a),n}),n}var Z3e=Q3e,e4e=X3e,t4e=Z3e,n4e=Po,r4e=Tr,i4e=cx;function a4e(e,t,n){var r=r4e(e)?e4e:t4e;return n&&i4e(e,t,n)&&(t=void 0),r(e,n4e(t))}var s4e=a4e;const t8=jt(s4e);var o4e=["x","y"];function pp(e){"@babel/helpers - typeof";return pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pp(e)}function l_(){return l_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l_.apply(this,arguments)}function sM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sM(Object(n),!0).forEach(function(r){l4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function l4e(e,t,n){return t=c4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c4e(e){var t=u4e(e,"string");return pp(t)=="symbol"?t:t+""}function u4e(e,t){if(pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d4e(e,t){if(e==null)return{};var n=h4e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h4e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function f4e(e,t){var n=e.x,r=e.y,i=d4e(e,o4e),a="".concat(n),s=parseInt(a,10),l="".concat(r),c=parseInt(l,10),u="".concat(t.height||i.height),h=parseInt(u,10),d="".concat(t.width||i.width),f=parseInt(d,10);return ph(ph(ph(ph(ph({},t),i),s?{x:s}:{}),c?{y:c}:{}),{},{height:h,width:f,name:t.name,radius:t.radius})}function oM(e){return D.createElement(XLe,l_({shapeType:"rectangle",propTransformer:f4e,activeClassName:"recharts-active-bar"},e))}var p4e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var a=de(r)||Twe(r);return a?t(r,i):(a||Ll(),n)}},m4e=["value","background"],n8;function Ku(e){"@babel/helpers - typeof";return Ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ku(e)}function g4e(e,t){if(e==null)return{};var n=v4e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v4e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ay(){return Ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ay.apply(this,arguments)}function lM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 102,201 bytes, lines 685-695
685t%2?lM(Object(n),!0).forEach(function(r){Gs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i8(r.key),r)}}function b4e(e,t,n){return t&&cM(e.prototype,t),n&&cM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function x4e(e,t,n){return t=Cy(t),w4e(e,r8()?Reflect.construct(t,n||[],Cy(e).constructor):t.apply(e,n))}function w4e(e,t){if(t&&(Ku(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S4e(e)}function S4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r8=function(){return!!e})()}function Cy(e){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cy(e)}function j4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c_(e,t)}function c_(e,t){return c_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},c_(e,t)}function Gs(e,t,n){return t=i8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i8(e){var t=_4e(e,"string");return Ku(t)=="symbol"?t:t+""}function _4e(e,t){if(Ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qi=function(e){function t(){var n;y4e(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=x4e(this,t,[].concat(i)),Gs(n,"state",{isAnimationFinished:!1}),Gs(n,"id",nx("recharts-bar-")),Gs(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),Gs(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return j4e(t,e),b4e(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,a=this.props,s=a.shape,l=a.dataKey,c=a.activeIndex,u=a.activeBar,h=ot(this.props,!1);return r&&r.map(function(d,f){var p=f===c,v=p?u:s,m=an(an(an({},h),d),{},{isActive:p,option:v,index:f,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return D.createElement(An,Ay({className:"recharts-bar-rectangle"},Bv(i.props,d,f),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value,"-").concat(f)}),D.createElement(oM,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,a=i.data,s=i.layout,l=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,h=i.animationEasing,d=i.animationId,f=this.state.prevData;return D.createElement(go,{begin:c,duration:u,isActive:l,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var v=p.t,m=a.map(function(y,b){var w=f&&f[b];if(w){var x=gc(w.x,y.x),S=gc(w.y,y.y),j=gc(w.width,y.width),N=gc(w.height,y.height);return an(an({},y),{},{x:x(v),y:S(v),width:j(v),height:N(v)})}if(s==="horizontal"){var _=gc(0,y.height),P=_(v);return an(an({},y),{},{y:y.y+y.height-P,height:P})}var A=gc(0,y.width),k=A(v);return an(an({},y),{},{width:k})});return D.createElement(An,null,r.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,a=r.isAnimationActive,s=this.state.prevData;return a&&i&&i.length&&(!s||!wC(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,a=i.data,s=i.dataKey,l=i.activeIndex,c=ot(this.props.background,!1);return a.map(function(u,h){u.value;var d=u.background,f=g4e(u,m4e);if(!d)return null;var p=an(an(an(an(an({},f),{},{fill:"#eee"},d),c),Bv(r.props,u,h)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:h,className:"recharts-bar-background-rectangle"});return D.createElement(oM,Ay({key:"background-bar-".concat(h),option:r.props.background,isActive:h===l},p))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,s=a.data,l=a.xAxis,c=a.yAxis,u=a.layout,h=a.children,d=Bi(h,xx);if(!d)return null;var f=u==="vertical"?s[0].height/2:s[0].width/2,p=function(y,b){var w=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:w,errorVal:_a(y,b)}},v={clipPath:r?"url(#clipPath-".concat(i,")"):null};return D.createElement(An,v,d.map(function(m){return D.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:s,xAxis:l,yAxis:c,layout:u,offset:f,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.data,s=r.className,l=r.xAxis,c=r.yAxis,u=r.left,h=r.top,d=r.width,f=r.height,p=r.isAnimationActive,v=r.background,m=r.id;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,b=nt("recharts-bar",s),w=l&&l.allowDataOverflow,x=c&&c.allowDataOverflow,S=w||x,j=lt(m)?this.id:m;return D.createElement(An,{className:b},w||x?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(j)},D.createElement("rect",{x:w?u:u-d/2,y:x?h:h-f/2,width:w?d:d*2,height:x?f:f*2}))):null,D.createElement(An,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(j,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,j),(!p||y)&&gl.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])}(g.PureComponent);n8=qi;Gs(qi,"displayName","Bar");Gs(qi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ao.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Gs(qi,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,s=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,h=e.dataStartIndex,d=e.displayedData,f=e.offset,p=eDe(r,n);if(!p)return null;var v=t.layout,m=n.type.defaultProps,y=m!==void 0?an(an({},m),n.props):n.props,b=y.dataKey,w=y.children,x=y.minPointSize,S=v==="horizontal"?s:a,j=u?S.scale.domain():null,N=lDe({numericAxis:S}),_=Bi(w,QA),P=d.map(function(A,k){var C,E,I,O,M,$;u?C=tDe(u[h+k],j):(C=_a(A,b),Array.isArray(C)||(C=[N,C]));var L=p4e(x,n8.defaultProps.minPointSize)(C[1],k);if(v==="horizontal"){var T,R=[s.scale(C[0]),s.scale(C[1])],z=R[0],F=R[1];E=oD({axis:a,ticks:l,bandSize:i,offset:p.offset,entry:A,index:k}),I=(T=F??z)!==null&&T!==void 0?T:void 0,O=p.size;var B=z-F;if(M=Number.isNaN(B)?0:B,$={x:E,y:s.y,width:O,height:s.height},Math.abs(L)>0&&Math.abs(M)<Math.abs(L)){var W=Li(M||L)*(Math.abs(L)-Math.abs(M));I-=W,M+=W}}else{var Z=[a.scale(C[0]),a.scale(C[1])],fe=Z[0],we=Z[1];if(E=fe,I=oD({axis:s,ticks:c,bandSize:i,offset:p.offset,entry:A,index:k}),O=we-fe,M=p.size,$={x:a.x,y:I,width:a.width,height:M},Math.abs(L)>0&&Math.abs(O)<Math.abs(L)){var ee=Li(O||L)*(Math.abs(L)-Math.abs(O));O+=ee}}return an(an(an({},A),{},{x:E,y:I,width:O,height:M,value:u?C:C[1],payload:A,background:$},_&&_[k]&&_[k].props),{},{tooltipPayload:[D6(n,A)],tooltipPosition:{x:E+O/2,y:I+M/2}})});return an({data:P,layout:v},f)});function mp(e){"@babel/helpers - typeof";return mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mp(e)}function N4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a8(r.key),r)}}function P4e(e,t,n){return t&&uM(e.prototype,t),n&&uM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dM(Object(n),!0).forEach(function(r){jx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jx(e,t,n){return t=a8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a8(e){var t=A4e(e,"string");return mp(t)=="symbol"?t:t+""}function A4e(e,t){if(mp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C4e=function(t,n,r,i,a){var s=t.width,l=t.height,c=t.layout,u=t.children,h=Object.keys(n),d={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},f=!!$r(u,qi);return h.reduce(function(p,v){var m=n[v],y=m.orientation,b=m.domain,w=m.padding,x=w===void 0?{}:w,S=m.mirror,j=m.reversed,N="".concat(y).concat(S?"Mirror":""),_,P,A,k,C;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=b[1]-b[0],I=1/0,O=m.categoricalDomain.sort(Rwe);if(O.forEach(function(Z,fe){fe>0&&(I=Math.min((Z||0)-(O[fe-1]||0),I))}),Number.isFinite(I)){var M=I/E,$=m.layout==="vertical"?r.height:r.width;if(m.padding==="gap"&&(_=M*$/2),m.padding==="no-gap"){var L=Ml(t.barCategoryGap,M*$),T=M*$/2;_=T-L-(T-L)/$*L}}}i==="xAxis"?P=[r.left+(x.left||0)+(_||0),r.left+r.width-(x.right||0)-(_||0)]:i==="yAxis"?P=c==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(_||0),r.top+r.height-(x.bottom||0)-(_||0)]:P=m.range,j&&(P=[P[1],P[0]]);var R=QRe(m,a,f),z=R.scale,F=R.realScaleType;z.domain(b).range(P),ZRe(z);var B=oDe(z,Ii(Ii({},m),{},{realScaleType:F}));i==="xAxis"?(C=y==="top"&&!S||y==="bottom"&&S,A=r.left,k=d[N]-C*m.height):i==="yAxis"&&(C=y==="left"&&!S||y==="right"&&S,A=d[N]-C*m.width,k=r.top);var W=Ii(Ii(Ii({},m),B),{},{realScaleType:F,x:A,y:k,scale:z,width:i==="xAxis"?r.width:m.width,height:i==="yAxis"?r.height:m.height});return W.bandSize=my(W,B),!m.hide&&i==="xAxis"?d[N]+=(C?-1:1)*W.height:m.hide||(d[N]+=(C?-1:1)*W.width),Ii(Ii({},p),{},jx({},v,W))},{})},s8=function(t,n){var r=t.x,i=t.y,a=n.x,s=n.y;return{x:Math.min(r,a),y:Math.min(i,s),width:Math.abs(a-r),height:Math.abs(s-i)}},E4e=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return s8({x:n,y:r},{x:i,y:a})},o8=function(){function e(t){N4e(this,e),this.scale=t}return P4e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();jx(o8,"EPS",1e-4);var PC=function(t){var n=Object.keys(t).reduce(function(r,i){return Ii(Ii({},r),{},jx({},i,o8.create(t[i])))},{});return Ii(Ii({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.bandAware,l=a.position;return K3e(i,function(c,u){return n[u].apply(c,{bandAware:s,position:l})})},isInRange:function(i){return t8(i,function(a,s){return n[s].isInRange(a)})}})};function k4e(e){return(e%180+180)%180}var T4e=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=k4e(i),s=a*Math.PI/180,l=Math.atan(r/n),c=s>l&&s<Math.PI-l?r/Math.sin(s):n/Math.cos(s);return Math.abs(c)},O4e=Po,I4e=em,R4e=ox;function D4e(e){return function(t,n,r){var i=Object(t);if(!I4e(t)){var a=O4e(n);t=R4e(t),n=function(l){return a(i[l],l,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:void 0}}var M4e=D4e,$4e=J6;function L4e(e){var t=$4e(e),n=t%1;return t===t?n?t-n:t:0}var V4e=L4e,F4e=mq,B4e=Po,z4e=V4e,U4e=Math.max;function W4e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:z4e(n);return i<0&&(i=U4e(r+i,0)),F4e(e,B4e(t),i)}var q4e=W4e,H4e=M4e,G4e=q4e,K4e=H4e(G4e),Y4e=K4e;const X4e=jt(Y4e);var J4e=D0e(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),AC=g.createContext(void 0),CC=g.createContext(void 0),l8=g.createContext(void 0),c8=g.createContext({}),u8=g.createContext(void 0),d8=g.createContext(0),h8=g.createContext(0),hM=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,s=t.clipPathId,l=t.children,c=t.width,u=t.height,h=J4e(a);return D.createElement(AC.Provider,{value:r},D.createElement(CC.Provider,{value:i},D.createElement(c8.Provider,{value:a},D.createElement(l8.Provider,{value:h},D.createElement(u8.Provider,{value:s},D.createElement(d8.Provider,{value:u},D.createElement(h8.Provider,{value:c},l)))))))},Q4e=function(){return g.useContext(u8)},f8=function(t){var n=g.useContext(AC);n==null&&Ll();var r=n[t];return r==null&&Ll(),r},Z4e=function(){var t=g.useContext(AC);return Is(t)},e5e=function(){var t=g.useContext(CC),n=X4e(t,function(r){return t8(r.domain,Number.isFinite)});return n||Is(t)},p8=function(t){var n=g.useContext(CC);n==null&&Ll();var r=n[t];return r==null&&Ll(),r},t5e=function(){var t=g.useContext(l8);return t},n5e=function(){return g.useContext(c8)},EC=function(){return g.useContext(h8)},kC=function(){return g.useContext(d8)};function Yu(e){"@babel/helpers - typeof";return Yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yu(e)}function r5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g8(r.key),r)}}function a5e(e,t,n){return t&&i5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s5e(e,t,n){return t=Ey(t),o5e(e,m8()?Reflect.construct(t,n||[],Ey(e).constructor):t.apply(e,n))}function o5e(e,t){if(t&&(Yu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l5e(e)}function l5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m8=function(){return!!e})()}function Ey(e){return Ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ey(e)}function c5e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u_(e,t)}function u_(e,t){return u_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},u_(e,t)}function fM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fM(Object(n),!0).forEach(function(r){TC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TC(e,t,n){return t=g8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g8(e){var t=u5e(e,"string");return Yu(t)=="symbol"?t:t+""}function u5e(e,t){if(Yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d5e(e,t){return m5e(e)||p5e(e,t)||f5e(e,t)||h5e()}function h5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 686In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f5e(e,t){if(e){if(typeof e=="string")return mM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mM(e,t)}}function mM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p5e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function m5e(e){if(Array.isArray(e))return e}function d_(){return d_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d_.apply(this,arguments)}var g5e=function(t,n){var r;return D.isValidElement(t)?r=D.cloneElement(t,n):He(t)?r=t(n):r=D.createElement("line",d_({},n,{className:"recharts-reference-line-line"})),r},v5e=function(t,n,r,i,a,s,l,c,u){var h=a.x,d=a.y,f=a.width,p=a.height;if(r){var v=u.y,m=t.y.apply(v,{position:s});if(ya(u,"discard")&&!t.y.isInRange(m))return null;var y=[{x:h+f,y:m},{x:h,y:m}];return c==="left"?y.reverse():y}if(n){var b=u.x,w=t.x.apply(b,{position:s});if(ya(u,"discard")&&!t.x.isInRange(w))return null;var x=[{x:w,y:d+p},{x:w,y:d}];return l==="top"?x.reverse():x}if(i){var S=u.segment,j=S.map(function(N){return t.apply(N,{position:s})});return ya(u,"discard")&&F3e(j,function(N){return!t.isInRange(N)})?null:j}return null};function y5e(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,s=e.shape,l=e.className,c=e.alwaysShow,u=Q4e(),h=f8(i),d=p8(a),f=t5e();if(!u||!f)return null;Ya(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=PC({x:h.scale,y:d.scale}),v=bn(t),m=bn(n),y=r&&r.length===2,b=v5e(p,v,m,y,f,e.position,h.orientation,d.orientation,e);if(!b)return null;var w=d5e(b,2),x=w[0],S=x.x,j=x.y,N=w[1],_=N.x,P=N.y,A=ya(e,"hidden")?"url(#".concat(u,")"):void 0,k=pM(pM({clipPath:A},ot(e,!0)),{},{x1:S,y1:j,x2:_,y2:P});return D.createElement(An,{className:nt("recharts-reference-line",l)},g5e(s,k),Kn.renderCallByParent(e,E4e({x1:S,y1:j,x2:_,y2:P})))}var OC=function(e){function t(){return r5e(this,t),s5e(this,t,arguments)}return c5e(t,e),a5e(t,[{key:"render",value:function(){return D.createElement(y5e,this.props)}}])}(D.Component);TC(OC,"displayName","ReferenceLine");TC(OC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function h_(){return h_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h_.apply(this,arguments)}function Xu(e){"@babel/helpers - typeof";return Xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xu(e)}function gM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gM(Object(n),!0).forEach(function(r){_x(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y8(r.key),r)}}function w5e(e,t,n){return t&&x5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function S5e(e,t,n){return t=ky(t),j5e(e,v8()?Reflect.construct(t,n||[],ky(e).constructor):t.apply(e,n))}function j5e(e,t){if(t&&(Xu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _5e(e)}function _5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v8=function(){return!!e})()}function ky(e){return ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ky(e)}function N5e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f_(e,t)}function f_(e,t){return f_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},f_(e,t)}function _x(e,t,n){return t=y8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y8(e){var t=P5e(e,"string");return Xu(t)=="symbol"?t:t+""}function P5e(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var A5e=function(t){var n=t.x,r=t.y,i=t.xAxis,a=t.yAxis,s=PC({x:i.scale,y:a.scale}),l=s.apply({x:n,y:r},{bandAware:!0});return ya(t,"discard")&&!s.isInRange(l)?null:l},Nx=function(e){function t(){return b5e(this,t),S5e(this,t,arguments)}return N5e(t,e),w5e(t,[{key:"render",value:function(){var r=this.props,i=r.x,a=r.y,s=r.r,l=r.alwaysShow,c=r.clipPathId,u=bn(i),h=bn(a);if(Ya(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!h)return null;var d=A5e(this.props);if(!d)return null;var f=d.x,p=d.y,v=this.props,m=v.shape,y=v.className,b=ya(this.props,"hidden")?"url(#".concat(c,")"):void 0,w=vM(vM({clipPath:b},ot(this.props,!0)),{},{cx:f,cy:p});return D.createElement(An,{className:nt("recharts-reference-dot",y)},t.renderDot(m,w),Kn.renderCallByParent(this.props,{x:f-s,y:p-s,width:2*s,height:2*s}))}}])}(D.Component);_x(Nx,"displayName","ReferenceDot");_x(Nx,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});_x(Nx,"renderDot",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):He(e)?n=e(t):n=D.createElement(Y6,h_({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function p_(){return p_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p_.apply(this,arguments)}function Ju(e){"@babel/helpers - typeof";return Ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ju(e)}function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yM(Object(n),!0).forEach(function(r){Px(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x8(r.key),r)}}function k5e(e,t,n){return t&&E5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function T5e(e,t,n){return t=Ty(t),O5e(e,b8()?Reflect.construct(t,n||[],Ty(e).constructor):t.apply(e,n))}function O5e(e,t){if(t&&(Ju(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I5e(e)}function I5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b8=function(){return!!e})()}function Ty(e){return Ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ty(e)}function R5e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m_(e,t)}function m_(e,t){return m_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},m_(e,t)}function Px(e,t,n){return t=x8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x8(e){var t=D5e(e,"string");return Ju(t)=="symbol"?t:t+""}function D5e(e,t){if(Ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var M5e=function(t,n,r,i,a){var s=a.x1,l=a.x2,c=a.y1,u=a.y2,h=a.xAxis,d=a.yAxis;if(!h||!d)return null;var f=PC({x:h.scale,y:d.scale}),p={x:t?f.x.apply(s,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},v={x:n?f.x.apply(l,{position:"end"}):f.x.rangeMax,y:i?f.y.apply(u,{position:"end"}):f.y.rangeMax};return ya(a,"discard")&&(!f.isInRange(p)||!f.isInRange(v))?null:s8(p,v)},Ax=function(e){function t(){return C5e(this,t),T5e(this,t,arguments)}return R5e(t,e),k5e(t,[{key:"render",value:function(){var r=this.props,i=r.x1,a=r.x2,s=r.y1,l=r.y2,c=r.className,u=r.alwaysShow,h=r.clipPathId;Ya(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=bn(i),f=bn(a),p=bn(s),v=bn(l),m=this.props.shape;if(!d&&!f&&!p&&!v&&!m)return null;var y=M5e(d,f,p,v,this.props);if(!y&&!m)return null;var b=ya(this.props,"hidden")?"url(#".concat(h,")"):void 0;return D.createElement(An,{className:nt("recharts-reference-area",c)},t.renderRect(m,bM(bM({clipPath:b},ot(this.props,!0)),y)),Kn.renderCallByParent(this.props,y))}}])}(D.Component);Px(Ax,"displayName","ReferenceArea");Px(Ax,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Px(Ax,"renderRect",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):He(e)?n=e(t):n=D.createElement(NC,p_({},t,{className:"recharts-reference-area-rect"})),n});function w8(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function $5e(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return T4e(r,n)}function L5e(e,t,n){var r=n==="width",i=e.x,a=e.y,s=e.width,l=e.height;return t===1?{start:r?i:a,end:r?i+s:a+l}:{start:r?i+s:a+l,end:r?i:a}}function Oy(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function V5e(e,t){return w8(e,t+1)}function F5e(e,t,n,r,i){for(var a=(r||[]).slice(),s=t.start,l=t.end,c=0,u=1,h=s,d=function(){var v=r==null?void 0:r[c];if(v===void 0)return{v:w8(r,u)};var m=c,y,b=function(){return y===void 0&&(y=n(v,m)),y},w=v.coordinate,x=c===0||Oy(e,w,b,h,l);x||(c=0,h=s,u+=1),x&&(h=w+e*(b()/2+i),c+=u)},f;u<=a.length;)if(f=d(),f)return f.v;return[]}function gp(e){"@babel/helpers - typeof";return gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gp(e)}function xM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xM(Object(n),!0).forEach(function(r){B5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B5e(e,t,n){return t=z5e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z5e(e){var t=U5e(e,"string");return gp(t)=="symbol"?t:t+""}function U5e(e,t){if(gp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W5e(e,t,n,r,i){for(var a=(r||[]).slice(),s=a.length,l=t.start,c=t.end,u=function(f){var p=a[f],v,m=function(){return v===void 0&&(v=n(p,f)),v};if(f===s-1){var y=e*(p.coordinate+e*m()/2-c);a[f]=p=Hn(Hn({},p),{},{tickCoord:y>0?p.coordinate-y*e:p.coordinate})}else a[f]=p=Hn(Hn({},p),{},{tickCoord:p.coordinate});var b=Oy(e,p.tickCoord,m,l,c);b&&(c=p.tickCoord-e*(m()/2+i),a[f]=Hn(Hn({},p),{},{isShow:!0}))},h=s-1;h>=0;h--)u(h);return a}function q5e(e,t,n,r,i,a){var s=(r||[]).slice(),l=s.length,c=t.start,u=t.end;if(a){var h=r[l-1],d=n(h,l-1),f=e*(h.coordinate+e*d/2-u);s[l-1]=h=Hn(Hn({},h),{},{tickCoord:f>0?h.coordinate-f*e:h.coordinate});var p=Oy(e,h.tickCoord,function(){return d},c,u);p&&(u=h.tickCoord-e*(d/2+i),s[l-1]=Hn(Hn({},h),{},{isShow:!0}))}for(var v=a?l-1:l,m=function(w){var x=s[w],S,j=function(){return S===void 0&&(S=n(x,w)),S};if(w===0){var N=e*(x.coordinate-e*j()/2-c);s[w]=x=Hn(Hn({},x),{},{tickCoord:N<0?x.coordinate-N*e:x.coordinate})}else s[w]=x=Hn(Hn({},x),{},{tickCoord:x.coordinate});var _=Oy(e,x.tickCoord,j,c,u);_&&(c=x.tickCoord+e*(j()/2+i),s[w]=Hn(Hn({},x),{},{isShow:!0}))},y=0;y<v;y++)m(y);return s}function IC(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,s=e.minTickGap,l=e.orientation,c=e.interval,u=e.tickFormatter,h=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(de(c)||ao.isSsr)return V5e(i,typeof c=="number"&&de(c)?c:0);var f=[],p=l==="top"||l==="bottom"?"width":"height",v=h&&p==="width"?Hh(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(x,S){var j=He(u)?u(x.value,S):x.value;return p==="width"?$5e(Hh(j,{fontSize:t,letterSpacing:n}),v,d):Hh(j,{fontSize:t,letterSpacing:n})[p]},y=i.length>=2?Li(i[1].coordinate-i[0].coordinate):1,b=L5e(a,y,p);return c==="equidistantPreserveStart"?F5e(y,b,m,i,s):(c==="preserveStart"||c==="preserveStartEnd"?f=q5e(y,b,m,i,s,c==="preserveStartEnd"):f=W5e(y,b,m,i,s),f.filter(function(w){return w.isShow}))}var H5e=["viewBox"],G5e=["viewBox"],K5e=["ticks"];function Qu(e){"@babel/helpers - typeof";return Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bc.apply(this,arguments)}function wM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wM(Object(n),!0).forEach(function(r){RC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iw(e,t){if(e==null)return{};var n=Y5e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Y5e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function X5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,j8(r.key),r)}}function J5e(e,t,n){return t&&SM(e.prototype,t),n&&SM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q5e(e,t,n){return t=Iy(t),Z5e(e,S8()?Reflect.construct(t,n||[],Iy(e).constructor):t.apply(e,n))}function Z5e(e,t){if(t&&(Qu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eVe(e)}function eVe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S8=function(){return!!e})()}function Iy(e){return Iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Iy(e)}function tVe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g_(e,t)}function g_(e,t){return g_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},g_(e,t)}function RC(e,t,n){return t=j8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j8(e){var t=nVe(e,"string");return Qu(t)=="symbol"?t:t+""}function nVe(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vd=function(e){function t(n){var r;return X5e(this,t),r=Q5e(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return tVe(t,e),J5e(t,[{key:"shouldComponentUpdate",value:function(r,i){var a=r.viewBox,s=Iw(r,H5e),l=this.props,c=l.viewBox,u=Iw(l,G5e);return!tu(a,c)||!tu(s,u)||!tu(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.x,s=i.y,l=i.width,c=i.height,u=i.orientation,h=i.tickSize,d=i.mirror,f=i.tickMargin,p,v,m,y,b,w,x=d?-1:1,S=r.tickSize||h,j=de(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=v=r.coordinate,y=s+ +!d*c,m=y-x*S,w=m-x*f,b=j;break;case"left":m=y=r.coordinate,v=a+ +!d*l,p=v-x*S,b=p-x*f,w=j;break;case"right":m=y=r.coordinate,v=a+ +d*l,p=v+x*S,b=p+x*f,w=j;break;default:p=v=r.coordinate,y=s+ +d*c,m=y+x*S,w=m+x*f,b=j;break}return{line:{x1:p,y1:m,x2:v,y2:y},tick:{x:b,y:w}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,s;switch(i){case"left":s=a?"start":"end";break;case"right":s=a?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=a?"start":"end";break;default:s=a?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,a=r.y,s=r.width,l=r.height,c=r.orientation,u=r.mirror,h=r.axisLine,d=hn(hn(hn({},ot(this.props,!1)),ot(h,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var f=+(c==="top"&&!u||c==="bottom"&&u);d=hn(hn({},d),{},{x1:i,y1:a+f*l,x2:i+s,y2:a+f*l})}else{var p=+(c==="left"&&!u||c==="right"&&u);d=hn(hn({},d),{},{x1:i+p*s,y1:a,x2:i+p*s,y2:a+l})}return D.createElement("line",Bc({},d,{className:nt("recharts-cartesian-axis-line",di(h,"className"))}))}},{key:"renderTicks",value:function(r,i,a){var s=this,l=this.props,c=l.tickLine,u=l.stroke,h=l.tick,d=l.tickFormatter,f=l.unit,p=IC(hn(hn({},this.props),{},{ticks:r}),i,a),v=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),y=ot(this.props,!1),b=ot(h,!1),w=hn(hn({},y),{},{fill:"none"},ot(c,!1)),x=p.map(function(S,j){var N=s.getTickLineCoord(S),_=N.line,P=N.tick,A=hn(hn(hn(hn({textAnchor:v,verticalAnchor:m},y),{},{stroke:"none",fill:u},b),P),{},{index:j,payload:S,visibleTicksCount:p.length,tickFormatter:d});return D.createElement(An,Bc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Bv(s.props,S,j)),c&&D.createElement("line",Bc({},w,_,{className:nt("recharts-cartesian-axis-tick-line",di(c,"className"))})),h&&t.renderTickItem(h,A,"".concat(He(d)?d(S.value,j):S.value).concat(f||"")))});return D.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,i=this.props,a=i.axisLine,s=i.width,l=i.height,c=i.ticksGenerator,u=i.className,h=i.hide;if(h)return null;var d=this.props,f=d.ticks,p=Iw(d,K5e),v=f;return He(c)&&(v=f&&f.length>0?c(this.props):c(p)),s<=0||l<=0||!v||!v.length?null:D.createElement(An,{className:nt("recharts-cartesian-axis",u),ref:function(y){r.layerReference=y}},a&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Kn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,a){var s,l=nt(i.className,"recharts-cartesian-axis-tick-value");return D.isValidElement(r)?s=D.cloneElement(r,hn(hn({},i),{},{className:l})):He(r)?s=r(hn(hn({},i),{},{className:l})):s=D.createElement(ty,Bc({},i,{className:"recharts-cartesian-axis-tick-value"}),a),s}}])}(g.Component);RC(Vd,"displayName","CartesianAxis");RC(Vd,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var rVe=["x1","y1","x2","y2","key"],iVe=["offset"];function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vl(e)}function jM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jM(Object(n),!0).forEach(function(r){aVe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aVe(e,t,n){return t=sVe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sVe(e){var t=oVe(e,"string");return Vl(t)=="symbol"?t:t+""}function oVe(e,t){if(Vl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nl.apply(this,arguments)}function _M(e,t){if(e==null)return{};var n=lVe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lVe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var cVe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,a=t.y,s=t.width,l=t.height,c=t.ry;return D.createElement("rect",{x:i,y:a,ry:c,width:s,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function _8(e,t){var n;if(D.isValidElement(e))n=D.cloneElement(e,t);else if(He(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,s=t.y2,l=t.key,c=_M(t,rVe),u=ot(c,!1);u.offset;var h=_M(u,iVe);n=D.createElement("line",nl({},h,{x1:r,y1:i,x2:a,y2:s,fill:"none",key:l}))}return n}function uVe(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var s=a.map(function(l,c){var u=Yn(Yn({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(c),index:c});return _8(i,u)});return D.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function dVe(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var s=a.map(function(l,c){var u=Yn(Yn({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(c),index:c});return _8(i,u)});return D.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function hVe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,s=e.height,l=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var h=l.map(function(f){return Math.round(f+i-i)}).sort(function(f,p){return f-p});i!==h[0]&&h.unshift(0);var d=h.map(function(f,p){var v=!h[p+1],m=v?i+s-f:h[p+1]-f;if(m<=0)return null;var y=p%t.length;return D.createElement("rect",{key:"react-".concat(p),y:f,x:r,height:m,width:a,stroke:"none",fill:t[y],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return D.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function fVe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,s=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var h=u.map(function(f){return Math.round(f+a-a)}).sort(function(f,p){return f-p});a!==h[0]&&h.unshift(0);var d=h.map(function(f,p){var v=!h[p+1],m=v?a+l-f:h[p+1]-f;if(m<=0)return null;var y=p%r.length;return D.createElement("rect",{key:"react-".concat(p),x:f,y:s,width:m,height:c,stroke:"none",fill:r[y],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return D.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var pVe=function(t,n){var r=t.xAxis,i=t.width,a=t.height,s=t.offset;return I6(IC(Yn(Yn(Yn({},Vd.defaultProps),r),{},{ticks:Wa(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),s.left,s.left+s.width,n)},mVe=function(t,n){var r=t.yAxis,i=t.width,a=t.height,s=t.offset;return I6(IC(Yn(Yn(Yn({},Vd.defaultProps),r),{},{ticks:Wa(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),s.top,s.top+s.height,n)},bc={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Cx(e){var t,n,r,i,a,s,l=EC(),c=kC(),u=n5e(),h=Yn(Yn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:bc.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:bc.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:bc.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:bc.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:bc.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:bc.verticalFill,x:de(e.x)?e.x:u.left,y:de(e.y)?e.y:u.top,width:de(e.width)?e.width:u.width,height:de(e.height)?e.height:u.height}),d=h.x,f=h.y,p=h.width,v=h.height,m=h.syncWithTicks,y=h.horizontalValues,b=h.verticalValues,w=Z4e(),x=e5e();if(!de(p)||p<=0||!de(v)||v<=0||!de(d)||d!==+d||!de(f)||f!==+f)return null;var S=h.verticalCoordinatesGenerator||pVe,j=h.horizontalCoordinatesGenerator||mVe,N=h.horizontalPoints,_=h.verticalPoints;if((!N||!N.length)&&He(j)){var P=y&&y.length,A=j({yAxis:x?Yn(Yn({},x),{},{ticks:P?y:x.ticks}):void 0,width:l,height:c,offset:u},P?!0:m);Ya(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Vl(A),"]")),Array.isArray(A)&&(N=A)}if((!_||!_.length)&&He(S)){var k=b&&b.length,C=S({xAxis:w?Yn(Yn({},w),{},{ticks:k?b:w.ticks}):void 0,width:l,height:c,offset:u},k?!0:m);Ya(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Vl(C),"]")),Array.isArray(C)&&(_=C)}return D.createElement("g",{className:"recharts-cartesian-grid"},D.createElement(cVe,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),D.createElement(uVe,nl({},h,{offset:u,horizontalPoints:N,xAxis:w,yAxis:x})),D.createElement(dVe,nl({},h,{offset:u,verticalPoints:_,xAxis:w,yAxis:x})),D.createElement(hVe,nl({},h,{horizontalPoints:N})),D.createElement(fVe,nl({},h,{verticalPoints:_})))}Cx.displayName="CartesianGrid";function Zu(e){"@babel/helpers - typeof";return Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zu(e)}function gVe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vVe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A8(r.key),r)}}function yVe(e,t,n){return t&&vVe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bVe(e,t,n){return t=Ry(t),xVe(e,N8()?Reflect.construct(t,n||[],Ry(e).constructor):t.apply(e,n))}function xVe(e,t){if(t&&(Zu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wVe(e)}function wVe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N8=function(){return!!e})()}function Ry(e){return Ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ry(e)}function SVe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v_(e,t)}function v_(e,t){return v_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},v_(e,t)}function P8(e,t,n){return t=A8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A8(e){var t=jVe(e,"string");return Zu(t)=="symbol"?t:t+""}function jVe(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y_(){return y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y_.apply(this,arguments)}function _Ve(e){var t=e.xAxisId,n=EC(),r=kC(),i=f8(t);return i==null?null:g.createElement(Vd,y_({},i,{className:nt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return Wa(s,!0)}}))}var Fd=function(e){function t(){return gVe(this,t),bVe(this,t,arguments)}return SVe(t,e),yVe(t,[{key:"render",value:function(){return g.createElement(_Ve,this.props)}}])}(g.Component);P8(Fd,"displayName","XAxis");P8(Fd,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function ed(e){"@babel/helpers - typeof";return ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}function NVe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PVe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k8(r.key),r)}}function AVe(e,t,n){return t&&PVe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CVe(e,t,n){return t=Dy(t),EVe(e,C8()?Reflect.construct(t,n||[],Dy(e).constructor):t.apply(e,n))}function EVe(e,t){if(t&&(ed(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kVe(e)}function kVe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C8=function(){return!!e})()}function Dy(e){return Dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dy(e)}function TVe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b_(e,t)}function b_(e,t){return b_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},b_(e,t)}function E8(e,t,n){return t=k8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k8(e){var t=OVe(e,"string");return ed(t)=="symbol"?t:t+""}function OVe(e,t){if(ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function x_(){return x_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x_.apply(this,arguments)}var IVe=function(t){var n=t.yAxisId,r=EC(),i=kC(),a=p8(n);return a==null?null:g.createElement(Vd,x_({},a,{className:nt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return Wa(l,!0)}}))},Bd=function(e){function t(){return NVe(this,t),CVe(this,t,arguments)}return TVe(t,e),AVe(t,[{key:"render",value:function(){return g.createElement(IVe,this.props)}}])}(g.Component);E8(Bd,"displayName","YAxis");E8(Bd,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function NM(e){return $Ve(e)||MVe(e)||DVe(e)||RVe()}function RVe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 687In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DVe(e,t){if(e){if(typeof e=="string")return w_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w_(e,t)}}function MVe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $Ve(e){if(Array.isArray(e))return w_(e)}function w_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var S_=function(t,n,r,i,a){var s=Bi(t,OC),l=Bi(t,Nx),c=[].concat(NM(s),NM(l)),u=Bi(t,Ax),h="".concat(i,"Id"),d=i[0],f=n;if(c.length&&(f=c.reduce(function(m,y){if(y.props[h]===r&&ya(y.props,"extendDomain")&&de(y.props[d])){var b=y.props[d];return[Math.min(m[0],b),Math.max(m[1],b)]}return m},f)),u.length){var p="".concat(d,"1"),v="".concat(d,"2");f=u.reduce(function(m,y){if(y.props[h]===r&&ya(y.props,"extendDomain")&&de(y.props[p])&&de(y.props[v])){var b=y.props[p],w=y.props[v];return[Math.min(m[0],b,w),Math.max(m[1],b,w)]}return m},f)}return a&&a.length&&(f=a.reduce(function(m,y){return de(y)?[Math.min(m[0],y),Math.max(m[1],y)]:m},f)),f},T8={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,u,h){this.fn=c,this.context=u,this.once=h||!1}function a(c,u,h,d,f){if(typeof h!="function")throw new TypeError("The listener must be a function");var p=new i(h,d||c,f),v=n?n+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],p]:c._events[v].push(p):(c._events[v]=p,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],h,d;if(this._eventsCount===0)return u;for(d in h=this._events)t.call(h,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},l.prototype.listeners=function(u){var h=n?n+u:u,d=this._events[h];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,p=d.length,v=new Array(p);f<p;f++)v[f]=d[f].fn;return v},l.prototype.listenerCount=function(u){var h=n?n+u:u,d=this._events[h];return d?d.fn?1:d.length:0},l.prototype.emit=function(u,h,d,f,p,v){var m=n?n+u:u;if(!this._events[m])return!1;var y=this._events[m],b=arguments.length,w,x;if(y.fn){switch(y.once&&this.removeListener(u,y.fn,void 0,!0),b){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,h),!0;case 3:return y.fn.call(y.context,h,d),!0;case 4:return y.fn.call(y.context,h,d,f),!0;case 5:return y.fn.call(y.context,h,d,f,p),!0;case 6:return y.fn.call(y.context,h,d,f,p,v),!0}for(x=1,w=new Array(b-1);x<b;x++)w[x-1]=arguments[x];y.fn.apply(y.context,w)}else{var S=y.length,j;for(x=0;x<S;x++)switch(y[x].once&&this.removeListener(u,y[x].fn,void 0,!0),b){case 1:y[x].fn.call(y[x].context);break;case 2:y[x].fn.call(y[x].context,h);break;case 3:y[x].fn.call(y[x].context,h,d);break;case 4:y[x].fn.call(y[x].context,h,d,f);break;default:if(!w)for(j=1,w=new Array(b-1);j<b;j++)w[j-1]=arguments[j];y[x].fn.apply(y[x].context,w)}}return!0},l.prototype.on=function(u,h,d){return a(this,u,h,d,!1)},l.prototype.once=function(u,h,d){return a(this,u,h,d,!0)},l.prototype.removeListener=function(u,h,d,f){var p=n?n+u:u;if(!this._events[p])return this;if(!h)return s(this,p),this;var v=this._events[p];if(v.fn)v.fn===h&&(!f||v.once)&&(!d||v.context===d)&&s(this,p);else{for(var m=0,y=[],b=v.length;m<b;m++)(v[m].fn!==h||f&&!v[m].once||d&&v[m].context!==d)&&y.push(v[m]);y.length?this._events[p]=y.length===1?y[0]:y:s(this,p)}return this},l.prototype.removeAllListeners=function(u){var h;return u?(h=n?n+u:u,this._events[h]&&s(this,h)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(T8);var LVe=T8.exports;const VVe=jt(LVe);var Rw=new VVe,Dw="recharts.syncMouseEvents";function vp(e){"@babel/helpers - typeof";return vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vp(e)}function FVe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BVe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O8(r.key),r)}}function zVe(e,t,n){return t&&BVe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mw(e,t,n){return t=O8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O8(e){var t=UVe(e,"string");return vp(t)=="symbol"?t:t+""}function UVe(e,t){if(vp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WVe=function(){function e(){FVe(this,e),Mw(this,"activeIndex",0),Mw(this,"coordinateList",[]),Mw(this,"layout","horizontal")}return zVe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,a=i===void 0?null:i,s=n.container,l=s===void 0?null:s,c=n.layout,u=c===void 0?null:c,h=n.offset,d=h===void 0?null:h,f=n.mouseHandlerCallback,p=f===void 0?null:f;this.coordinateList=(r=a??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,s=i.y,l=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,h=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=a+c+u,f=s+this.offset.top+l/2+h;this.mouseHandlerCallback({pageX:d,pageY:f})}}}])}();function qVe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&de(r)&&de(i))return!0}return!1}function HVe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function I8(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,s=$n(t,n,r,i),l=$n(t,n,r,a);return{points:[s,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function GVe(e,t,n){var r,i,a,s;if(e==="horizontal")r=t.x,a=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,u=t.innerRadius,h=t.outerRadius,d=t.angle,f=$n(l,c,u,d),p=$n(l,c,h,d);r=f.x,i=f.y,a=p.x,s=p.y}else return I8(t);return[{x:r,y:i},{x:a,y:s}]}function yp(e){"@babel/helpers - typeof";return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yp(e)}function PM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function og(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PM(Object(n),!0).forEach(function(r){KVe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KVe(e,t,n){return t=YVe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YVe(e){var t=XVe(e,"string");return yp(t)=="symbol"?t:t+""}function XVe(e,t){if(yp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JVe(e){var t,n,r=e.element,i=e.tooltipEventType,a=e.isActive,s=e.activeCoordinate,l=e.activePayload,c=e.offset,u=e.activeTooltipIndex,h=e.tooltipAxisBandSize,d=e.layout,f=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!a||!s||f!=="ScatterChart"&&i!=="axis")return null;var v,m=jD;if(f==="ScatterChart")v=s,m=uLe;else if(f==="BarChart")v=HVe(d,s,c,h),m=NC;else if(d==="radial"){var y=I8(s),b=y.cx,w=y.cy,x=y.radius,S=y.startAngle,j=y.endAngle;v={cx:b,cy:w,startAngle:S,endAngle:j,innerRadius:x,outerRadius:x},m=L6}else v={points:GVe(d,s,c)},m=jD;var N=og(og(og(og({stroke:"#ccc",pointerEvents:"none"},c),v),ot(p,!1)),{},{payload:l,payloadIndex:u,className:nt("recharts-tooltip-cursor",p.className)});return g.isValidElement(p)?g.cloneElement(p,N):g.createElement(m,N)}var QVe=["item"],ZVe=["children","className","width","height","style","compact","title","desc"];function td(e){"@babel/helpers - typeof";return td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},td(e)}function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zc.apply(this,arguments)}function AM(e,t){return nFe(e)||tFe(e,t)||D8(e,t)||eFe()}function eFe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 688In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tFe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function nFe(e){if(Array.isArray(e))return e}function CM(e,t){if(e==null)return{};var n=rFe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rFe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function iFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aFe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M8(r.key),r)}}function sFe(e,t,n){return t&&aFe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oFe(e,t,n){return t=My(t),lFe(e,R8()?Reflect.construct(t,n||[],My(e).constructor):t.apply(e,n))}function lFe(e,t){if(t&&(td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cFe(e)}function cFe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R8=function(){return!!e})()}function My(e){return My=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},My(e)}function uFe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j_(e,t)}function j_(e,t){return j_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},j_(e,t)}function nd(e){return fFe(e)||hFe(e)||D8(e)||dFe()}function dFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 689In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D8(e,t){if(e){if(typeof e=="string")return __(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return __(e,t)}}function hFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fFe(e){if(Array.isArray(e))return __(e)}function __(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){Ce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ce(e,t,n){return t=M8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M8(e){var t=pFe(e,"string");return td(t)=="symbol"?t:t+""}function pFe(e,t){if(td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mFe={xAxis:["bottom","top"],yAxis:["left","right"]},gFe={width:"100%",height:"100%"},$8={x:0,y:0};function lg(e){return e}var vFe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},yFe=function(t,n,r,i){var a=n.find(function(h){return h&&h.index===r});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var s=a.coordinate,l=i.radius;return G(G(G({},i),$n(i.cx,i.cy,l,s)),{},{angle:s,radius:l})}var c=a.coordinate,u=i.angle;return G(G(G({},i),$n(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return $8},Ex=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,a=n.dataEndIndex,s=(r??[]).reduce(function(l,c){var u=c.props.data;return u&&u.length?[].concat(nd(l),nd(u)):l},[]);return s.length>0?s:t&&t.length&&de(i)&&de(a)?t.slice(i,a+1):[]};function L8(e){return e==="number"?[0,"auto"]:void 0}var N_=function(t,n,r,i){var a=t.graphicalItems,s=t.tooltipAxis,l=Ex(n,t);return r<0||!a||!a.length||r>=l.length?null:a.reduce(function(c,u){var h,d=(h=u.props.data)!==null&&h!==void 0?h:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var f;if(s.dataKey&&!s.allowDuplicatedCategory){var p=d===void 0?l:d;f=ij(p,s.dataKey,i)}else f=d&&d[r]||l[r];return f?[].concat(nd(c),[D6(u,f)]):c},[])},kM=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},s=vFe(a,r),l=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,h=HRe(s,l,u,c);if(h>=0&&u){var d=u[h]&&u[h].value,f=N_(t,n,h,d),p=yFe(r,l,h,a);return{activeTooltipIndex:h,activeLabel:d,activePayload:f,activeCoordinate:p}}return null},bFe=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,s=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,h=t.layout,d=t.children,f=t.stackOffset,p=O6(h,a);return r.reduce(function(v,m){var y,b=m.type.defaultProps!==void 0?G(G({},m.type.defaultProps),m.props):m.props,w=b.type,x=b.dataKey,S=b.allowDataOverflow,j=b.allowDuplicatedCategory,N=b.scale,_=b.ticks,P=b.includeHidden,A=b[s];if(v[A])return v;var k=Ex(t.data,{graphicalItems:i.filter(function(B){var W,Z=s in B.props?B.props[s]:(W=B.type.defaultProps)===null||W===void 0?void 0:W[s];return Z===A}),dataStartIndex:c,dataEndIndex:u}),C=k.length,E,I,O;qVe(b.domain,S,w)&&(E=qj(b.domain,null,S),p&&(w==="number"||N!=="auto")&&(O=Kh(k,x,"category")));var M=L8(w);if(!E||E.length===0){var $,L=($=b.domain)!==null&&$!==void 0?$:M;if(x){if(E=Kh(k,x,w),w==="category"&&p){var T=Iwe(E);j&&T?(I=E,E=_y(0,C)):j||(E=uD(L,E,m).reduce(function(B,W){return B.indexOf(W)>=0?B:[].concat(nd(B),[W])},[]))}else if(w==="category")j?E=E.filter(function(B){return B!==""&&!lt(B)}):E=uD(L,E,m).reduce(function(B,W){return B.indexOf(W)>=0||W===""||lt(W)?B:[].concat(nd(B),[W])},[]);else if(w==="number"){var R=JRe(k,i.filter(function(B){var W,Z,fe=s in B.props?B.props[s]:(W=B.type.defaultProps)===null||W===void 0?void 0:W[s],we="hide"in B.props?B.props.hide:(Z=B.type.defaultProps)===null||Z===void 0?void 0:Z.hide;return fe===A&&(P||!we)}),x,a,h);R&&(E=R)}p&&(w==="number"||N!=="auto")&&(O=Kh(k,x,"category"))}else p?E=_y(0,C):l&&l[A]&&l[A].hasStack&&w==="number"?E=f==="expand"?[0,1]:R6(l[A].stackGroups,c,u):E=T6(k,i.filter(function(B){var W=s in B.props?B.props[s]:B.type.defaultProps[s],Z="hide"in B.props?B.props.hide:B.type.defaultProps.hide;return W===A&&(P||!Z)}),w,h,!0);if(w==="number")E=S_(d,E,A,a,_),L&&(E=qj(L,E,S));else if(w==="category"&&L){var z=L,F=E.every(function(B){return z.indexOf(B)>=0});F&&(E=z)}}return G(G({},v),{},Ce({},A,G(G({},b),{},{axisType:a,domain:E,categoricalDomain:O,duplicateDomain:I,originalDomain:(y=b.domain)!==null&&y!==void 0?y:M,isCategorical:p,layout:h})))},{})},xFe=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,s=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,h=t.layout,d=t.children,f=Ex(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,v=O6(h,a),m=-1;return r.reduce(function(y,b){var w=b.type.defaultProps!==void 0?G(G({},b.type.defaultProps),b.props):b.props,x=w[s],S=L8("number");if(!y[x]){m++;var j;return v?j=_y(0,p):l&&l[x]&&l[x].hasStack?(j=R6(l[x].stackGroups,c,u),j=S_(d,j,x,a)):(j=qj(S,T6(f,r.filter(function(N){var _,P,A=s in N.props?N.props[s]:(_=N.type.defaultProps)===null||_===void 0?void 0:_[s],k="hide"in N.props?N.props.hide:(P=N.type.defaultProps)===null||P===void 0?void 0:P.hide;return A===x&&!k}),"number",h),i.defaultProps.allowDataOverflow),j=S_(d,j,x,a)),G(G({},y),{},Ce({},x,G(G({axisType:a},i.defaultProps),{},{hide:!0,orientation:di(mFe,"".concat(a,".").concat(m%2),null),domain:j,originalDomain:S,isCategorical:v,layout:h})))}return y},{})},wFe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,s=n.graphicalItems,l=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,h=t.children,d="".concat(i,"Id"),f=Bi(h,a),p={};return f&&f.length?p=bFe(t,{axes:f,graphicalItems:s,axisType:i,axisIdKey:d,stackGroups:l,dataStartIndex:c,dataEndIndex:u}):s&&s.length&&(p=xFe(t,{Axis:a,graphicalItems:s,axisType:i,axisIdKey:d,stackGroups:l,dataStartIndex:c,dataEndIndex:u})),p},SFe=function(t){var n=Is(t),r=Wa(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:XA(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:my(n,r)}},TM=function(t){var n=t.children,r=t.defaultShowTooltip,i=$r(n,Gu),a=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},jFe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ka(n&&n.type);return r&&r.indexOf("Bar")>=0})},OM=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},_Fe=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,s=a===void 0?{}:a,l=t.yAxisMap,c=l===void 0?{}:l,u=r.width,h=r.height,d=r.children,f=r.margin||{},p=$r(d,Gu),v=$r(d,nu),m=Object.keys(c).reduce(function(j,N){var _=c[N],P=_.orientation;return!_.mirror&&!_.hide?G(G({},j),{},Ce({},P,j[P]+_.width)):j},{left:f.left||0,right:f.right||0}),y=Object.keys(s).reduce(function(j,N){var _=s[N],P=_.orientation;return!_.mirror&&!_.hide?G(G({},j),{},Ce({},P,di(j,"".concat(P))+_.height)):j},{top:f.top||0,bottom:f.bottom||0}),b=G(G({},y),m),w=b.bottom;p&&(b.bottom+=p.props.height||Gu.defaultProps.height),v&&n&&(b=YRe(b,i,r,n));var x=u-b.left-b.right,S=h-b.top-b.bottom;return G(G({brushBottom:w},b),{},{width:Math.max(x,0),height:Math.max(S,0)})},NFe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},PFe=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,c=t.axisComponents,u=t.legendContent,h=t.formatAxisMap,d=t.defaultProps,f=function(b,w){var x=w.graphicalItems,S=w.stackGroups,j=w.offset,N=w.updateId,_=w.dataStartIndex,P=w.dataEndIndex,A=b.barSize,k=b.layout,C=b.barGap,E=b.barCategoryGap,I=b.maxBarSize,O=OM(k),M=O.numericAxisName,$=O.cateAxisName,L=jFe(x),T=[];return x.forEach(function(R,z){var F=Ex(b.data,{graphicalItems:[R],dataStartIndex:_,dataEndIndex:P}),B=R.type.defaultProps!==void 0?G(G({},R.type.defaultProps),R.props):R.props,W=B.dataKey,Z=B.maxBarSize,fe=B["".concat(M,"Id")],we=B["".concat($,"Id")],ee={},J=c.reduce(function(bt,qe){var at=w["".concat(qe.axisType,"Map")],Qe=B["".concat(qe.axisType,"Id")];at&&at[Qe]||qe.axisType==="zAxis"||Ll();var Te=at[Qe];return G(G({},bt),{},Ce(Ce({},qe.axisType,Te),"".concat(qe.axisType,"Ticks"),Wa(Te)))},ee),U=J[$],Y=J["".concat($,"Ticks")],ae=S&&S[fe]&&S[fe].hasStack&&cDe(R,S[fe].stackGroups),q=Ka(R.type).indexOf("Bar")>=0,Pe=my(U,Y),te=[],re=L&&GRe({barSize:A,stackGroups:S,totalSize:NFe(J,$)});if(q){var _e,Ve,Ge=lt(Z)?I:Z,Ne=(_e=(Ve=my(U,Y,!0))!==null&&Ve!==void 0?Ve:Ge)!==null&&_e!==void 0?_e:0;te=KRe({barGap:C,barCategoryGap:E,bandSize:Ne!==Pe?Ne:Pe,sizeList:re[we],maxBarSize:Ge}),Ne!==Pe&&(te=te.map(function(bt){return G(G({},bt),{},{position:G(G({},bt.position),{},{offset:bt.position.offset-Ne/2})})}))}var yt=R&&R.type&&R.type.getComposedData;yt&&T.push({props:G(G({},yt(G(G({},J),{},{displayedData:F,props:b,dataKey:W,item:R,bandSize:Pe,barPosition:te,offset:j,stackedData:ae,layout:k,dataStartIndex:_,dataEndIndex:P}))),{},Ce(Ce(Ce({key:R.key||"item-".concat(z)},M,J[M]),$,J[$]),"animationId",N)),childIndex:qwe(R,b.children),item:R})}),T},p=function(b,w){var x=b.props,S=b.dataStartIndex,j=b.dataEndIndex,N=b.updateId;if(!iI({props:x}))return null;var _=x.children,P=x.layout,A=x.stackOffset,k=x.data,C=x.reverseStackOrder,E=OM(P),I=E.numericAxisName,O=E.cateAxisName,M=Bi(_,r),$=sDe(k,M,"".concat(I,"Id"),"".concat(O,"Id"),A,C),L=c.reduce(function(B,W){var Z="".concat(W.axisType,"Map");return G(G({},B),{},Ce({},Z,wFe(x,G(G({},W),{},{graphicalItems:M,stackGroups:W.axisType===I&&$,dataStartIndex:S,dataEndIndex:j}))))},{}),T=_Fe(G(G({},L),{},{props:x,graphicalItems:M}),w==null?void 0:w.legendBBox);Object.keys(L).forEach(function(B){L[B]=h(x,L[B],T,B.replace("Map",""),n)});var R=L["".concat(O,"Map")],z=SFe(R),F=f(x,G(G({},L),{},{dataStartIndex:S,dataEndIndex:j,updateId:N,graphicalItems:M,stackGroups:$,offset:T}));return G(G({formattedGraphicalItems:F,graphicalItems:M,offset:T,stackGroups:$},z),L)},v=function(y){function b(w){var x,S,j;return iFe(this,b),j=oFe(this,b,[w]),Ce(j,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ce(j,"accessibilityManager",new WVe),Ce(j,"handleLegendBBoxUpdate",function(N){if(N){var _=j.state,P=_.dataStartIndex,A=_.dataEndIndex,k=_.updateId;j.setState(G({legendBBox:N},p({props:j.props,dataStartIndex:P,dataEndIndex:A,updateId:k},G(G({},j.state),{},{legendBBox:N}))))}}),Ce(j,"handleReceiveSyncEvent",function(N,_,P){if(j.props.syncId===N){if(P===j.eventEmitterSymbol&&typeof j.props.syncMethod!="function")return;j.applySyncEvent(_)}}),Ce(j,"handleBrushChange",function(N){var _=N.startIndex,P=N.endIndex;if(_!==j.state.dataStartIndex||P!==j.state.dataEndIndex){var A=j.state.updateId;j.setState(function(){return G({dataStartIndex:_,dataEndIndex:P},p({props:j.props,dataStartIndex:_,dataEndIndex:P,updateId:A},j.state))}),j.triggerSyncEvent({dataStartIndex:_,dataEndIndex:P})}}),Ce(j,"handleMouseEnter",function(N){var _=j.getMouseInfo(N);if(_){var P=G(G({},_),{},{isTooltipActive:!0});j.setState(P),j.triggerSyncEvent(P);var A=j.props.onMouseEnter;He(A)&&A(P,N)}}),Ce(j,"triggeredAfterMouseMove",function(N){var _=j.getMouseInfo(N),P=_?G(G({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};j.setState(P),j.triggerSyncEvent(P);var A=j.props.onMouseMove;He(A)&&A(P,N)}),Ce(j,"handleItemMouseEnter",function(N){j.setState(function(){return{isTooltipActive:!0,activeItem:N,activePayload:N.tooltipPayload,activeCoordinate:N.tooltipPosition||{x:N.cx,y:N.cy}}})}),Ce(j,"handleItemMouseLeave",function(){j.setState(function(){return{isTooltipActive:!1}})}),Ce(j,"handleMouseMove",function(N){N.persist(),j.throttleTriggeredAfterMouseMove(N)}),Ce(j,"handleMouseLeave",function(N){j.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};j.setState(_),j.triggerSyncEvent(_);var P=j.props.onMouseLeave;He(P)&&P(_,N)}),Ce(j,"handleOuterEvent",function(N){var _=Wwe(N),P=di(j.props,"".concat(_));if(_&&He(P)){var A,k;/.*touch.*/i.test(_)?k=j.getMouseInfo(N.changedTouches[0]):k=j.getMouseInfo(N),P((A=k)!==null&&A!==void 0?A:{},N)}}),Ce(j,"handleClick",function(N){var _=j.getMouseInfo(N);if(_){var P=G(G({},_),{},{isTooltipActive:!0});j.setState(P),j.triggerSyncEvent(P);var A=j.props.onClick;He(A)&&A(P,N)}}),Ce(j,"handleMouseDown",function(N){var _=j.props.onMouseDown;if(He(_)){var P=j.getMouseInfo(N);_(P,N)}}),Ce(j,"handleMouseUp",function(N){var _=j.props.onMouseUp;if(He(_)){var P=j.getMouseInfo(N);_(P,N)}}),Ce(j,"handleTouchMove",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.throttleTriggeredAfterMouseMove(N.changedTouches[0])}),Ce(j,"handleTouchStart",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.handleMouseDown(N.changedTouches[0])}),Ce(j,"handleTouchEnd",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.handleMouseUp(N.changedTouches[0])}),Ce(j,"handleDoubleClick",function(N){var _=j.props.onDoubleClick;if(He(_)){var P=j.getMouseInfo(N);_(P,N)}}),Ce(j,"handleContextMenu",function(N){var _=j.props.onContextMenu;if(He(_)){var P=j.getMouseInfo(N);_(P,N)}}),Ce(j,"triggerSyncEvent",function(N){j.props.syncId!==void 0&&Rw.emit(Dw,j.props.syncId,N,j.eventEmitterSymbol)}),Ce(j,"applySyncEvent",function(N){var _=j.props,P=_.layout,A=_.syncMethod,k=j.state.updateId,C=N.dataStartIndex,E=N.dataEndIndex;if(N.dataStartIndex!==void 0||N.dataEndIndex!==void 0)j.setState(G({dataStartIndex:C,dataEndIndex:E},p({props:j.props,dataStartIndex:C,dataEndIndex:E,updateId:k},j.state)));else if(N.activeTooltipIndex!==void 0){var I=N.chartX,O=N.chartY,M=N.activeTooltipIndex,$=j.state,L=$.offset,T=$.tooltipTicks;if(!L)return;if(typeof A=="function")M=A(T,N);else if(A==="value"){M=-1;for(var R=0;R<T.length;R++)if(T[R].value===N.activeLabel){M=R;break}}var z=G(G({},L),{},{x:L.left,y:L.top}),F=Math.min(I,z.x+z.width),B=Math.min(O,z.y+z.height),W=T[M]&&T[M].value,Z=N_(j.state,j.props.data,M),fe=T[M]?{x:P==="horizontal"?T[M].coordinate:F,y:P==="horizontal"?B:T[M].coordinate}:$8;j.setState(G(G({},N),{},{activeLabel:W,activeCoordinate:fe,activePayload:Z,activeTooltipIndex:M}))}else j.setState(N)}),Ce(j,"renderCursor",function(N){var _,P=j.state,A=P.isTooltipActive,k=P.activeCoordinate,C=P.activePayload,E=P.offset,I=P.activeTooltipIndex,O=P.tooltipAxisBandSize,M=j.getTooltipEventType(),$=(_=N.props.active)!==null&&_!==void 0?_:A,L=j.props.layout,T=N.key||"_recharts-cursor";return D.createElement(JVe,{key:T,activeCoordinate:k,activePayload:C,activeTooltipIndex:I,chartName:n,element:N,isActive:$,layout:L,offset:E,tooltipAxisBandSize:O,tooltipEventType:M})}),Ce(j,"renderPolarAxis",function(N,_,P){var A=di(N,"type.axisType"),k=di(j.state,"".concat(A,"Map")),C=N.type.defaultProps,E=C!==void 0?G(G({},C),N.props):N.props,I=k&&k[E["".concat(A,"Id")]];return g.cloneElement(N,G(G({},I),{},{className:nt(A,I.className),key:N.key||"".concat(_,"-").concat(P),ticks:Wa(I,!0)}))}),Ce(j,"renderPolarGrid",function(N){var _=N.props,P=_.radialLines,A=_.polarAngles,k=_.polarRadius,C=j.state,E=C.radiusAxisMap,I=C.angleAxisMap,O=Is(E),M=Is(I),$=M.cx,L=M.cy,T=M.innerRadius,R=M.outerRadius;return g.cloneElement(N,{polarAngles:Array.isArray(A)?A:Wa(M,!0).map(function(z){return z.coordinate}),polarRadius:Array.isArray(k)?k:Wa(O,!0).map(function(z){return z.coordinate}),cx:$,cy:L,innerRadius:T,outerRadius:R,key:N.key||"polar-grid",radialLines:P})}),Ce(j,"renderLegend",function(){var N=j.state.formattedGraphicalItems,_=j.props,P=_.children,A=_.width,k=_.height,C=j.props.margin||{},E=A-(C.left||0)-(C.right||0),I=E6({children:P,formattedGraphicalItems:N,legendWidth:E,legendContent:u});if(!I)return null;var O=I.item,M=CM(I,QVe);return g.cloneElement(O,G(G({},M),{},{chartWidth:A,chartHeight:k,margin:C,onBBoxUpdate:j.handleLegendBBoxUpdate}))}),Ce(j,"renderTooltip",function(){var N,_=j.props,P=_.children,A=_.accessibilityLayer,k=$r(P,na);if(!k)return null;var C=j.state,E=C.isTooltipActive,I=C.activeCoordinate,O=C.activePayload,M=C.activeLabel,$=C.offset,L=(N=k.props.active)!==null&&N!==void 0?N:E;return g.cloneElement(k,{viewBox:G(G({},$),{},{x:$.left,y:$.top}),active:L,label:M,payload:L?O:[],coordinate:I,accessibilityLayer:A})}),Ce(j,"renderBrush",function(N){var _=j.props,P=_.margin,A=_.data,k=j.state,C=k.offset,E=k.dataStartIndex,I=k.dataEndIndex,O=k.updateId;return g.cloneElement(N,{key:N.key||"_recharts-brush",onChange:rg(j.handleBrushChange,N.props.onChange),data:A,x:de(N.props.x)?N.props.x:C.left,y:de(N.props.y)?N.props.y:C.top+C.height+C.brushBottom-(P.bottom||0),width:de(N.props.width)?N.props.width:C.width,startIndex:E,endIndex:I,updateId:"brush-".concat(O)})}),Ce(j,"renderReferenceElement",function(N,_,P){if(!N)return null;var A=j,k=A.clipPathId,C=j.state,E=C.xAxisMap,I=C.yAxisMap,O=C.offset,M=N.type.defaultProps||{},$=N.props,L=$.xAxisId,T=L===void 0?M.xAxisId:L,R=$.yAxisId,z=R===void 0?M.yAxisId:R;return g.cloneElement(N,{key:N.key||"".concat(_,"-").concat(P),xAxis:E[T],yAxis:I[z],viewBox:{x:O.left,y:O.top,width:O.width,height:O.height},clipPathId:k})}),Ce(j,"renderActivePoints",function(N){var _=N.item,P=N.activePoint,A=N.basePoint,k=N.childIndex,C=N.isRange,E=[],I=_.props.key,O=_.item.type.defaultProps!==void 0?G(G({},_.item.type.defaultProps),_.item.props):_.item.props,M=O.activeDot,$=O.dataKey,L=G(G({index:k,dataKey:$,cx:P.x,cy:P.y,r:4,fill:_C(_.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},ot(M,!1)),Fv(M));return E.push(b.renderActiveDot(M,L,"".concat(I,"-activePoint-").concat(k))),A?E.push(b.renderActiveDot(M,G(G({},L),{},{cx:A.x,cy:A.y}),"".concat(I,"-basePoint-").concat(k))):C&&E.push(null),E}),Ce(j,"renderGraphicChild",function(N,_,P){var A=j.filterFormatItem(N,_,P);if(!A)return null;var k=j.getTooltipEventType(),C=j.state,E=C.isTooltipActive,I=C.tooltipAxis,O=C.activeTooltipIndex,M=C.activeLabel,$=j.props.children,L=$r($,na),T=A.props,R=T.points,z=T.isRange,F=T.baseLine,B=A.item.type.defaultProps!==void 0?G(G({},A.item.type.defaultProps),A.item.props):A.item.props,W=B.activeDot,Z=B.hide,fe=B.activeBar,we=B.activeShape,ee=!!(!Z&&E&&L&&(W||fe||we)),J={};k!=="axis"&&L&&L.props.trigger==="click"?J={onClick:rg(j.handleItemMouseEnter,N.props.onClick)}:k!=="axis"&&(J={onMouseLeave:rg(j.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:rg(j.handleItemMouseEnter,N.props.onMouseEnter)});var U=g.cloneElement(N,G(G({},A.props),J));function Y(qe){return typeof I.dataKey=="function"?I.dataKey(qe.payload):null}if(ee)if(O>=0){var ae,q;if(I.dataKey&&!I.allowDuplicatedCategory){var Pe=typeof I.dataKey=="function"?Y:"payload.".concat(I.dataKey.toString());ae=ij(R,Pe,M),q=z&&F&&ij(F,Pe,M)}else ae=R==null?void 0:R[O],q=z&&F&&F[O];if(we||fe){var te=N.props.activeIndex!==void 0?N.props.activeIndex:O;return[g.cloneElement(N,G(G(G({},A.props),J),{},{activeIndex:te})),null,null]}if(!lt(ae))return[U].concat(nd(j.renderActivePoints({item:A,activePoint:ae,basePoint:q,childIndex:O,isRange:z})))}else{var re,_e=(re=j.getItemByXY(j.state.activeCoordinate))!==null&&re!==void 0?re:{graphicalItem:U},Ve=_e.graphicalItem,Ge=Ve.item,Ne=Ge===void 0?N:Ge,yt=Ve.childIndex,bt=G(G(G({},A.props),J),{},{activeIndex:yt});return[g.cloneElement(Ne,bt),null,null]}return z?[U,null,null]:[U,null]}),Ce(j,"renderCustomized",function(N,_,P){return g.cloneElement(N,G(G({key:"recharts-customized-".concat(P)},j.props),j.state))}),Ce(j,"renderMap",{CartesianGrid:{handler:lg,once:!0},ReferenceArea:{handler:j.renderReferenceElement},ReferenceLine:{handler:lg},ReferenceDot:{handler:j.renderReferenceElement},XAxis:{handler:lg},YAxis:{handler:lg},Brush:{handler:j.renderBrush,once:!0},Bar:{handler:j.renderGraphicChild},Line:{handler:j.renderGraphicChild},Area:{handler:j.renderGraphicChild},Radar:{handler:j.renderGraphicChild},RadialBar:{handler:j.renderGraphicChild},Scatter:{handler:j.renderGraphicChild},Pie:{handler:j.renderGraphicChild},Funnel:{handler:j.renderGraphicChild},Tooltip:{handler:j.renderCursor,once:!0},PolarGrid:{handler:j.renderPolarGrid,once:!0},PolarAngleAxis:{handler:j.renderPolarAxis},PolarRadiusAxis:{handler:j.renderPolarAxis},Customized:{handler:j.renderCustomized}}),j.clipPathId="".concat((x=w.id)!==null&&x!==void 0?x:nx("recharts"),"-clip"),j.throttleTriggeredAfterMouseMove=Eq(j.triggeredAfterMouseMove,(S=w.throttleDelay)!==null&&S!==void 0?S:1e3/60),j.state={},j}return uFe(b,y),sFe(b,[{key:"componentDidMount",value:function(){var x,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,S=x.children,j=x.data,N=x.height,_=x.layout,P=$r(S,na);if(P){var A=P.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var k=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,C=N_(this.state,j,A,k),E=this.state.tooltipTicks[A].coordinate,I=(this.state.offset.top+N)/2,O=_==="horizontal",M=O?{x:E,y:I}:{y:E,x:I},$=this.state.formattedGraphicalItems.find(function(T){var R=T.item;return R.type.name==="Scatter"});$&&(M=G(G({},M),$.props.points[A].tooltipPosition),C=$.props.points[A].tooltipPayload);var L={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:k,activePayload:C,activeCoordinate:M};this.setState(L),this.renderCursor(P),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var j,N;this.accessibilityManager.setDetails({offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0}})}return null}},{key:"componentDidUpdate",value:function(x){sj([$r(x.children,na)],[$r(this.props.children,na)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=$r(this.props.children,na);if(x&&typeof x.props.shared=="boolean"){var S=x.props.shared?"axis":"item";return l.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var S=this.container,j=S.getBoundingClientRect(),N=yTe(j),_={chartX:Math.round(x.pageX-N.left),chartY:Math.round(x.pageY-N.top)},P=j.width/S.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,P);if(!A)return null;var k=this.state,C=k.xAxisMap,E=k.yAxisMap,I=this.getTooltipEventType(),O=kM(this.state,this.props.data,this.props.layout,A);if(I!=="axis"&&C&&E){var M=Is(C).scale,$=Is(E).scale,L=M&&M.invert?M.invert(_.chartX):null,T=$&&$.invert?$.invert(_.chartY):null;return G(G({},_),{},{xValue:L,yValue:T},O)}return O?G(G({},_),O):null}},{key:"inRange",value:function(x,S){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N=this.props.layout,_=x/j,P=S/j;if(N==="horizontal"||N==="vertical"){var A=this.state.offset,k=_>=A.left&&_<=A.left+A.width&&P>=A.top&&P<=A.top+A.height;return k?{x:_,y:P}:null}var C=this.state,E=C.angleAxisMap,I=C.radiusAxisMap;if(E&&I){var O=Is(E);return fD({x:_,y:P},O)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,S=this.getTooltipEventType(),j=$r(x,na),N={};j&&S==="axis"&&(j.props.trigger==="click"?N={onClick:this.handleClick}:N={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=Fv(this.props,this.handleOuterEvent);return G(G({},_),N)}},{key:"addListener",value:function(){Rw.on(Dw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Rw.removeListener(Dw,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,S,j){for(var N=this.state.formattedGraphicalItems,_=0,P=N.length;_<P;_++){var A=N[_];if(A.item===x||A.props.key===x.key||S===Ka(A.item.type)&&j===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,S=this.state.offset,j=S.left,N=S.top,_=S.height,P=S.width;return D.createElement("defs",null,D.createElement("clipPath",{id:x},D.createElement("rect",{x:j,y:N,height:_,width:P})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(S,j){var N=AM(j,2),_=N[0],P=N[1];return G(G({},S),{},Ce({},_,P.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(S,j){var N=AM(j,2),_=N[0],P=N[1];return G(G({},S),{},Ce({},_,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(x){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(x){var S=this.state,j=S.formattedGraphicalItems,N=S.activeItem;if(j&&j.length)for(var _=0,P=j.length;_<P;_++){var A=j[_],k=A.props,C=A.item,E=C.type.defaultProps!==void 0?G(G({},C.type.defaultProps),C.props):C.props,I=Ka(C.type);if(I==="Bar"){var O=(k.data||[]).find(function(T){return eLe(x,T)});if(O)return{graphicalItem:A,payload:O}}else if(I==="RadialBar"){var M=(k.data||[]).find(function(T){return fD(x,T)});if(M)return{graphicalItem:A,payload:M}}else if(wx(A,N)||Sx(A,N)||hp(A,N)){var $=r3e({graphicalItem:A,activeTooltipItem:N,itemData:E.data}),L=E.activeIndex===void 0?$:E.activeIndex;return{graphicalItem:G(G({},A),{},{childIndex:L}),payload:hp(A,N)?E.data[$]:A.props.data[$]}}}return null}},{key:"render",value:function(){var x=this;if(!iI(this))return null;var S=this.props,j=S.children,N=S.className,_=S.width,P=S.height,A=S.style,k=S.compact,C=S.title,E=S.desc,I=CM(S,ZVe),O=ot(I,!1);if(k)return D.createElement(hM,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement(lj,zc({},O,{width:_,height:P,title:C,desc:E}),this.renderClipPath(),sI(j,this.renderMap)));if(this.props.accessibilityLayer){var M,$;O.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,O.role=($=this.props.role)!==null&&$!==void 0?$:"application",O.onKeyDown=function(T){x.accessibilityManager.keyboardEvent(T)},O.onFocus=function(){x.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return D.createElement(hM,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement("div",zc({className:nt("recharts-wrapper",N),style:G({position:"relative",cursor:"default",width:_,height:P},A)},L,{ref:function(R){x.container=R}}),D.createElement(lj,zc({},O,{width:_,height:P,title:C,desc:E,style:gFe}),this.renderClipPath(),sI(j,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(g.Component);Ce(v,"displayName",n),Ce(v,"defaultProps",G({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),Ce(v,"getDerivedStateFromProps",function(y,b){var w=y.dataKey,x=y.data,S=y.children,j=y.width,N=y.height,_=y.layout,P=y.stackOffset,A=y.margin,k=b.dataStartIndex,C=b.dataEndIndex;if(b.updateId===void 0){var E=TM(y);return G(G(G({},E),{},{updateId:0},p(G(G({props:y},E),{},{updateId:0}),b)),{},{prevDataKey:w,prevData:x,prevWidth:j,prevHeight:N,prevLayout:_,prevStackOffset:P,prevMargin:A,prevChildren:S})}if(w!==b.prevDataKey||x!==b.prevData||j!==b.prevWidth||N!==b.prevHeight||_!==b.prevLayout||P!==b.prevStackOffset||!tu(A,b.prevMargin)){var I=TM(y),O={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},M=G(G({},kM(b,x,_)),{},{updateId:b.updateId+1}),$=G(G(G({},I),O),M);return G(G(G({},$),p(G({props:y},$),b)),{},{prevDataKey:w,prevData:x,prevWidth:j,prevHeight:N,prevLayout:_,prevStackOffset:P,prevMargin:A,prevChildren:S})}if(!sj(S,b.prevChildren)){var L,T,R,z,F=$r(S,Gu),B=F&&(L=(T=F.props)===null||T===void 0?void 0:T.startIndex)!==null&&L!==void 0?L:k,W=F&&(R=(z=F.props)===null||z===void 0?void 0:z.endIndex)!==null&&R!==void 0?R:C,Z=B!==k||W!==C,fe=!lt(x),we=fe&&!Z?b.updateId:b.updateId+1;return G(G({updateId:we},p(G(G({props:y},b),{},{updateId:we,dataStartIndex:B,dataEndIndex:W}),b)),{},{prevChildren:S,dataStartIndex:B,dataEndIndex:W})}return null}),Ce(v,"renderActiveDot",function(y,b,w){var x;return g.isValidElement(y)?x=g.cloneElement(y,b):He(y)?x=y(b):x=D.createElement(Y6,b),D.createElement(An,{className:"recharts-active-dot",key:w},x)});var m=g.forwardRef(function(b,w){return D.createElement(v,zc({},b,{ref:w}))});return m.displayName=v.displayName,m},DC=PFe({chartName:"BarChart",GraphicalChild:qi,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Fd},{axisType:"yAxis",AxisComp:Bd}],formatAxisMap:C4e});const AFe={light:"",dark:".dark"},V8=g.createContext(null);function F8(){const e=g.useContext(V8);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const kx=g.forwardRef(({id:e,className:t,children:n,config:r,...i},a)=>{const s=g.useId(),l=`chart-${e||s.replace(/:/g,"")}`;return o.jsx(V8.Provider,{value:{config:r},children:o.jsxs("div",{"data-chart":l,ref:a,className:oe("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...i,children:[o.jsx(CFe,{id:l,config:r}),o.jsx(dTe,{children:n})]})})});kx.displayName="Chart";const CFe=({id:e,config:t})=>{const n=Object.entries(t).filter(([r,i])=>i.theme||i.color);return n.length?o.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(AFe).map(([r,i])=>` 690${i} [data-chart=${e}] { 691${n.map(([a,s])=>{var c;const l=((c=s.theme)==null?void 0:c[r])||s.color;return l?` --color-${a}: ${l};`:null}).join(` 692`)} 693} 694`).join(` 695`)}}):null},MC=na,Tx=g.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:i=!1,hideIndicator:a=!1,label:s,labelFormatter:l,labelClassName:c,formatter:u,color:h,nameKey:d,labelKey:f},p)=>{const{config:v}=F8(),m=g.useMemo(()=>{var j;if(i||!(t!=null&&t.length))return null;const[b]=t,w=`${f||b.dataKey||b.name||"value"}`,x=P_(v,b,w),S=!f&&typeof s=="string"?((j=v[s])==null?void 0:j.label)||s:x==null?void 0:x.label;return l?o.jsx("div",{className:oe("font-medium",c),children:l(S,t)}):S?o.jsx("div",{className:oe("font-medium",c),children:S}):null},[s,l,t,i,c,v,f]);if(!e||!(t!=null&&t.length))return null;const y=t.length===1&&r!=="dot";return o.jsxs("div",{ref:p,className:oe("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[y?null:m,o.jsx("div",{className:"grid gap-1.5",children:t.map((b,w)=>{const x=`${d||b.name||b.dataKey||"value"}`,S=P_(v,b,x),j=h||b.payload.fill||b.color;return o.jsx("div",{className:oe("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:u&&(b==null?void 0:b.value)!==void 0&&b.name?u(b.value,b.name,b,w,b.payload):o.jsxs(o.Fragment,{children:[S!=null&&S.icon?o.jsx(S.icon,{}):!a&&o.jsx("div",{className:oe("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":y&&r==="dashed"}),style:{"--color-bg":j,"--color-border":j}}),o.jsxs("div",{className:oe("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[o.jsxs("div",{className:"grid gap-1.5",children:[y?m:null,o.jsx("span",{className:"text-muted-foreground",children:(S==null?void 0:S.label)||b.name})]}),b.value&&o.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:b.value.toLocaleString()})]})]})},b.dataKey)})})]})});Tx.displayName="ChartTooltip";const EFe=g.forwardRef(({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:i},a)=>{const{config:s}=F8();return n!=null&&n.length?o.jsx("div",{ref:a,className:oe("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.map(l=>{const c=`${i||l.dataKey||"value"}`,u=P_(s,l,c);return o.jsxs("div",{className:oe("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[u!=null&&u.icon&&!t?o.jsx(u.icon,{}):o.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:l.color}}),u==null?void 0:u.label]},l.value)})}):null});EFe.displayName="ChartLegend";function P_(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=n;return n in t&&typeof t[n]=="string"?i=t[n]:r&&n in r&&typeof r[n]=="string"&&(i=r[n]),i in e?e[i]:e[n]}var B8="AlertDialog",[kFe,Nze]=Fn(B8,[DF]),ps=DF(),z8=e=>{const{__scopeAlertDialog:t,...n}=e,r=ps(t);return o.jsx(GP,{...r,...n,modal:!0})};z8.displayName=B8;var TFe="AlertDialogTrigger",OFe=g.forwardRef((e,t)=>
695{const{__scopeAlertDialog:n,...r}=e,i=ps(n);return o.jsx(JF,{...i,...r,ref:t})});OFe.displayName=TFe;var IFe="AlertDialogPortal",U8=e=>{const{__scopeAlertDialog:t,...n}=e,r=ps(t);return o.jsx(KP,{...r,...n})};U8.displayName=IFe;var RFe="AlertDialogOverlay",W8=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ps(n);return o.jsx(Up,{...i,...r,ref:t})});W8.displayName=RFe;var au="AlertDialogContent",[DFe,MFe]=kFe(au),$Fe=p3("AlertDialogContent"),q8=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,a=ps(n),s=g.useRef(null),l=Me(t,s),c=g.useRef(null);return o.jsx(Ade,{contentName:au,titleName:H8,docsSlug:"alert-dialog",children:o.jsx(DFe,{scope:n,cancelRef:c,children:o.jsxs(Wp,{role:"alertdialog",...a,...i,ref:l,onOpenAutoFocus:le(i.onOpenAutoFocus,u=>{var h;u.preventDefault(),(h=c.current)==null||h.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[o.jsx($Fe,{children:r}),o.jsx(VFe,{contentRef:s})]})})})});q8.displayName=au;var H8="AlertDialogTitle",G8=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ps(n);return o.jsx(qp,{...i,...r,ref:t})});G8.displayName=H8;var K8="AlertDialogDescription",Y8=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ps(n);return o.jsx(Hp,{...i,...r,ref:t})});Y8.displayName=K8;var LFe="AlertDialogAction",X8=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ps(n);return o.jsx(Nb,{...i,...r,ref:t})});X8.displayName=LFe;var J8="AlertDialogCancel",Q8=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=MFe(J8,n),a=ps(n),s=Me(t,i);return o.jsx(Nb,{...a,...r,ref:s})});Q8.displayName=J8;var VFe=({contentRef:e})=>{const t=`\`${au}\` requires a description for the component to be accessible for screen reader users. 696 697You can add a description to the \`${au}\` by passing a \`${K8}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 698 699Alternatively, 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 \`${au}\`. 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. 700 701For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},FFe=z8,BFe=U8,Z8=W8,eH=q8,tH=X8,nH=Q8,rH=G8,iH=Y8;const aH=FFe,zFe=BFe,sH=g.forwardRef(({className:e,...t},n)=>o.jsx(Z8,{className:oe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));sH.displayName=Z8.displayName;const $C=g.forwardRef(({className:e,...t},n)=>o.jsxs(zFe,{children:[o.jsx(sH,{}),o.jsx(eH,{ref:n,className:oe("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})]}));$C.displayName=eH.displayName;const LC=({className:e,...t})=>o.jsx("div",{className:oe("flex flex-col space-y-2 text-center sm:text-left",e),...t});LC.displayName="AlertDialogHeader";const VC=({className:e,...t})=>o.jsx("div",{className:oe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});VC.displayName="AlertDialogFooter";const FC=g.forwardRef(({className:e,...t},n)=>o.jsx(rH,{ref:n,className:oe("text-lg font-semibold",e),...t}));FC.displayName=rH.displayName;const BC=g.forwardRef(({className:e,...t},n)=>o.jsx(iH,{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));BC.displayName=iH.displayName;const zC=g.forwardRef(({className:e,...t},n)=>o.jsx(tH,{ref:n,className:oe(BP(),e),...t}));zC.displayName=tH.displayName;const UC=g.forwardRef(({className:e,...t},n)=>o.jsx(nH,{ref:n,className:oe(BP({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));UC.displayName=nH.displayName;function UFe(){const e=St({queryKey:["admin","health","indicator"],queryFn:async()=>{const{data:t,error:n}=await X.from("v_error_rate_24h").select("*").single();if(n)throw n;const r=(t==null?void 0:t.error_count)??0,i=(t==null?void 0:t.total_count)??0,a=(t==null?void 0:t.error_rate_pct)??0;let s="green",l="Healthy";return a>=20?(s="red",l="Critical"):a>=10&&(s="yellow",l="Degraded"),{error_count:r,total_count:i,error_rate_pct:a,status:s,label:l}},staleTime:3e4});return{...e,refetch:e.refetch}}function WFe(){const e=St({queryKey:["admin","health","errorTrends"],queryFn:async()=>{const{data:t,error:n}=await X.from("v_pipeline_health_24h").select("*").order("hour",{ascending:!0});if(n)throw n;return(t??[]).map(r=>({hour:r.hour,hourLabel:r.hour?Vb(new Date(r.hour),"HH:00"):"",published:r.published??0,failed:r.failed??0,in_progress:r.in_progress??0,total:r.total??0}))},staleTime:3e4});return{...e,refetch:e.refetch}}function qFe(){const e=St({queryKey:["admin","health","stuckConversations"],queryFn:async()=>{const{data:t,error:n}=await X.from("v_stuck_conversations").select("*").order("stuck_minutes",{ascending:!1});if(n)throw n;return t??[]},staleTime:3e4});return{...e,refetch:e.refetch}}function HFe(){const e=St({queryKey:["admin","health","tokenExpiry"],queryFn:async()=>{const{data:t,error:n}=await X.from("v_token_expiry").select("*").order("days_until_expiry",{ascending:!0});if(n)throw n;return(t??[]).map(r=>({...r,days_until_expiry:r.days_until_expiry??0}))},staleTime:3e4});return{...e,refetch:e.refetch}}function GFe(){const e=St({queryKey:["admin","health","errorSummary"],queryFn:async()=>{const{data:t,error:n}=await X.from("v_error_summary").select("*").order("occurrences",{ascending:!1});if(n)throw n;return(t??[]).map(r=>({...r,occurrences:r.occurrences??0}))},staleTime:3e4});return{...e,refetch:e.refetch}}function KFe(e){if(e<60)return`${Math.round(e)} min`;const t=Math.floor(e/60),n=Math.round(e%60);return n>0?`${t}h ${n}m`:`${t}h`}const YFe={green:"bg-green-100 text-green-800 border-green-200",yellow:"bg-yellow-100 text-yellow-800 border-yellow-200",red:"bg-red-100 text-red-800 border-red-200"},XFe={published:{label:"Published",color:"#22c55e"},failed:{label:"Failed",color:"#ef4444"}},JFe=()=>{var w,x,S,j,N;const[e,t]=D.useState(!1),[n,r]=D.useState(null),[i,a]=D.useState(!1),s=UFe(),l=WFe(),c=qFe(),u=HFe(),h=GFe(),d=async()=>{t(!0);const _=Date.now();await Promise.all([s.refetch(),l.refetch(),c.refetch(),u.refetch(),h.refetch()]);const P=Date.now()-_;P<400&&await new Promise(A=>setTimeout(A,400-P)),t(!1)},f=async()=>
701{if(n){a(!0);try{const _="https://hhzqlaygxohfpedujlsm.supabase.co",A=_?`${_}/functions/v1/n8n-update-conversation-state`:"https://hhzqlaygxohfpedujlsm.supabase.co/functions/v1/n8n-update-conversation-state";console.log("[Release] Calling:",A,"for phone:",n);const k=await fetch(A,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":"vis_n8n_Kj7mP9xQ2wR4tY6uI8oL0pZsXcVbNm3a"},body:JSON.stringify({phone:n,state:"idle",clear:!0})}),C=await k.json();if(console.log("[Release] Response:",k.status,C),!k.ok)throw new Error(C.message||C.error||"Failed to release");Oe.success("Conversation released"),c.refetch()}catch(_){console.error("[Release] Error:",_),Oe.error("Failed to release conversation",{description:_.message})}finally{a(!1),r(null)}}},p=e,v=c.data??[],m=u.data??[],y=h.data??[],b=l.data??[];return o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h2",{className:"text-lg font-semibold",children:"System Health"}),o.jsxs(K,{variant:"outline",size:"sm",onClick:d,disabled:e,children:[o.jsx(Ha,{className:`h-4 w-4 mr-1.5 ${e?"animate-spin":""}`}),"Refresh"]})]}),o.jsx(ze,{children:o.jsx(Ue,{className:"p-6",children:s.isLoading||p?o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx(De,{className:"h-12 w-12 rounded-full"}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(De,{className:"h-8 w-24"}),o.jsx(De,{className:"h-4 w-48"})]})]}):o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx("div",{className:"flex items-center justify-center h-12 w-12 rounded-full bg-muted",children:o.jsx(pf,{className:"h-6 w-6 text-muted-foreground"})}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[o.jsxs("span",{className:"text-3xl font-bold",children:[(((w=s.data)==null?void 0:w.error_rate_pct)??0).toFixed(1),"%"]}),o.jsx(Se,{className:YFe[((x=s.data)==null?void 0:x.status)??"green"],children:(S=s.data)==null?void 0:S.label})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[((j=s.data)==null?void 0:j.error_count)??0," errors of ",((N=s.data)==null?void 0:N.total_count)??0," total actions (last 24h)"]})]})]})})}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsx(mt,{className:"text-base",children:"Pipeline Activity, Last 24 Hours"})}),o.jsx(Ue,{children:l.isLoading||p?o.jsx(De,{className:"h-[300px] w-full"}):b.length===0?o.jsx("div",{className:"flex items-center justify-center h-[300px] text-muted-foreground text-sm",children:"No pipeline activity in the last 24 hours"}):o.jsx(kx,{config:XFe,className:"h-[300px] w-full",children:o.jsxs(DC,{data:b,children:[o.jsx(Cx,{strokeDasharray:"3 3"}),o.jsx(Fd,{dataKey:"hourLabel",tick:{fontSize:11}}),o.jsx(Bd,{tick:{fontSize:11}}),o.jsx(MC,{content:o.jsx(Tx,{})}),o.jsx(qi,{dataKey:"published",stackId:"a",fill:"var(--color-published)",radius:[0,0,0,0]}),o.jsx(qi,{dataKey:"failed",stackId:"a",fill:"var(--color-failed)",radius:[4,4,0,0]})]})})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mt,{className:"text-base",children:"Stuck Conversations"}),o.jsx(Se,{variant:"secondary",className:"text-xs",children:v.length})]})}),o.jsx(Ue,{children:c.isLoading||p?o.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((_,P)=>o.jsx(De,{className:"h-10 w-full"},P))}):v.length===0?o.jsxs("div",{className:"flex items-center gap-2 text-green-600 text-sm py-4",children:[o.jsx(jl,{className:"h-4 w-4"}),"No stuck conversations"]}):o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"User"}),o.jsx(ue,{children:"State"}),o.jsx(ue,{children:"Duration"}),o.jsx(ue,{children:"Action"})]})}),o.jsx(Zn,{children:v.map((_,P)=>o.jsxs(rt,{children:[o.jsx(ce,{className:"text-sm font-medium truncate max-w-[180px]",children:_.full_name||_.phone_number}),o.jsx(ce,{children:o.jsx(Se,{variant:"outline",className:"text-xs",children:_.conversation_state})}),o.jsxs(ce,{className:"text-sm text-muted-foreground whitespace-nowrap",children:[o.jsx(od,{className:"h-3 w-3 inline mr-1"}),KFe(Number(_.stuck_minutes)??0)]}),o.jsx(ce,{children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs(K,{variant:"destructive",size:"sm",onClick:()=>r(_.phone_number),disabled:i,children:[o.jsx(w9,{className:"h-3 w-3 mr-1"}),"Release"]}),_.user_id&&o.jsx(se,{to:`/admin/users/${_.user_id}`,className:"text-xs text-primary hover:underline",children:"View User"})]})})]},P))})]})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mt,{className:"text-base",children:"Social Account Tokens"}),o.jsx(Se,{variant:"secondary",className:"text-xs",children:m.length})]})}),o.jsx(Ue,{children:u.isLoading||p?o.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((_,P)=>o.jsx(De,{className:"h-10 w-full"},P))}):m.length===0?o.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No social accounts connected"}):o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"User"}),o.jsx(ue,{children:"Platform"}),o.jsx(ue,{children:"Username"}),o.jsx(ue,{children:"Expires"}),o.jsx(ue,{children:"Status"})]})}),o.jsx(Zn,{children:m.map((_,P)=>{const A=_.days_until_expiry;let k="OK",C="bg-green-100 text-green-800";return A<=0?(k="Expired",C="bg-red-100 text-red-800"):A<3?(k="Critical",C="bg-red-100 text-red-800"):A<7&&(k="Warning",C="bg-yellow-100 text-yellow-800"),o.jsxs(rt,{children:[o.jsx(ce,{className:"text-sm font-medium truncate max-w-[150px]",children:_.full_name||" - "}),o.jsx(ce,{className:"text-sm",children:_.platform}),o.jsx(ce,{className:"text-sm text-muted-foreground",children:_.username||" - "}),o.jsx(ce,{className:"text-sm text-muted-foreground whitespace-nowrap",children:_.token_expires_at?Mn(new Date(_.token_expires_at),{addSuffix:!0}):" - "}),o.jsx(ce,{children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:`inline-block h-2 w-2 rounded-full ${_.
701is_active?"bg-green-500":"bg-gray-400"}`}),o.jsx(Se,{className:`text-xs ${C}`,children:k})]})})]},P)})})]})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mt,{className:"text-base",children:"Error Summary (Last 7 Days)"}),o.jsx(Se,{variant:"secondary",className:"text-xs",children:y.length})]})}),o.jsx(Ue,{children:h.isLoading||p?o.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((_,P)=>o.jsx(De,{className:"h-10 w-full"},P))}):y.length===0?o.jsxs("div",{className:"flex items-center gap-2 text-green-600 text-sm py-4",children:[o.jsx(jl,{className:"h-4 w-4"}),"No errors in the last 7 days"]}):o.jsx("div",{className:"overflow-x-auto",children:o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"Action"}),o.jsx(ue,{children:"Source"}),o.jsx(ue,{children:"Error Class"}),o.jsx(ue,{children:"Error Message"}),o.jsx(ue,{className:"text-right",children:"Count"}),o.jsx(ue,{children:"Last Seen"})]})}),o.jsx(Zn,{children:y.map((_,P)=>o.jsxs(rt,{children:[o.jsx(ce,{className:"text-sm font-medium whitespace-nowrap",children:_.action||" - "}),o.jsx(ce,{className:"text-sm text-muted-foreground",children:_.source||" - "}),o.jsx(ce,{children:_.error_class?o.jsx(Se,{variant:"outline",className:"text-xs",children:_.error_class}):" - "}),o.jsx(ce,{className:"max-w-[250px]",children:o.jsx("span",{className:"text-xs text-muted-foreground truncate block",title:_.error||"",children:_.error?_.error.substring(0,80)+(_.error.length>80?"â¦":""):" - "})}),o.jsx(ce,{className:"text-right text-sm font-mono",children:_.occurrences}),o.jsx(ce,{className:"text-xs text-muted-foreground whitespace-nowrap",children:_.last_seen?Mn(new Date(_.last_seen),{addSuffix:!0}):" - "})]},P))})]})})})]}),o.jsx(aH,{open:!!n,onOpenChange:_=>{_||r(null)},children:o.jsxs($C,{children:[o.jsxs(LC,{children:[o.jsx(FC,{children:"Release this conversation?"}),o.jsx(BC,{children:"This will reset the user's state to idle. Any in-progress work may be lost."})]}),o.jsxs(VC,{children:[o.jsx(UC,{disabled:i,children:"Cancel"}),o.jsx(zC,{onClick:f,disabled:i,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:i?"Releasingâ¦":"Release"})]})]})})]})};function QFe(){const e=St({queryKey:["admin","meta-capi","stats"],queryFn:async()=>{const{data:t,error:n}=await X.functions.invoke("meta-capi-get-stats",{body:{}});if(n)throw n;if(!(t!=null&&t.success))throw new Error((t==null?void 0:t.error)||(t==null?void 0:t.message)||"Failed to load Meta CAPI stats");return t},staleTime:3e4});return{...e,refetch:e.refetch}}const ZFe={success:{label:"Success",color:"#22c55e"},error:{label:"Error",color:"#ef4444"}},IM=e=>e==="success"?"bg-green-100 text-green-800 border-green-200":e==="error"?"bg-red-100 text-red-800 border-red-200":"bg-gray-100 text-gray-800 border-gray-200",eBe=()=>{const{user:e}=Hi(),[t,n]=D.useState(!1),[r,i]=D.useState(!1),a=QFe(),s=async()=>{n(!0);const b=Date.now();await a.refetch();const w=Date.now()-b;w<400&&await new Promise(x=>setTimeout(x,400-w)),n(!1)},l=async()=>{var b;if(!(e!=null&&e.id)){Oe.error("Not authenticated");return}i(!0);try{const{data:w,error:x}=await X.functions.invoke("meta-capi-send",{body:{event_name:"Login",user_id:e.id,email:e.email,action_source:"website",source_caller:"AdminMetaCAPI-test"}});if(x)throw x;w!=null&&w.success?Oe.success("Test event fired",{description:`event_id: ${(b=w.event_id)==null?void 0:b.substring(0,8)}... fbtrace: ${w.fbtrace_id||"n/a"}`}):Oe.error("Meta CAPI rejected the event",{description:(w==null?void 0:w.error)||"Unknown error"}),setTimeout(()=>a.refetch(),1500)}catch(w){Oe.error("Failed to fire test event",{description:w.message})}finally{i(!1)}},c=t,u=a.data,h=u==null?void 0:u.summary_24h,d=(u==null?void 0:u.breakdown_24h)??[],f=(u==null?void 0:u.trend_7d)??[],p=(u==null?void 0:u.recent_events)??[],v=u==null?void 0:u.setup_health,m=((h==null?void 0:h.error_rate_pct)??0)>=20?"red":((h==null?void 0:h.error_rate_pct)??0)>=5?"yellow":"green",y={green:"bg-green-100 text-green-800 border-green-200",yellow:"bg-yellow-100 text-yellow-800 border-yellow-200",red:"bg-red-100 text-red-800 border-red-200"}[m];return o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-lg font-semibold",children:"Meta Conversions API"}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"Server-side events sent to Meta for ad audience optimization"})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs(K,{variant:"outline",size:"sm",onClick:l,disabled:r||!(v!=null&&v.access_token_set),title:v!=null&&v.access_token_set?"Fire a Login event for yourself":"META_CAPI_ACCESS_TOKEN not set",children:[o.jsx(Dp,{className:`h-4 w-4 mr-1.5 ${r?"animate-pulse":""}`}),r?"Firing...":"Fire Test Event"]}),o.jsxs(K,{variant:"outline",size:"sm",onClick:s,disabled:t,children:[o.jsx(Ha,{className:`h-4 w-4 mr-1.5 ${t?"animate-spin":""}`}),"Refresh"]})]})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsx(mt,{className:"text-base",children:"Configuration"})}),o.jsx(Ue,{children:a.isLoading||c?o.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((b,w)=>o.jsx(De,{className:"h-6 w-64"},w))}):o.jsxs("div",{className:"space-y-2 text-sm",children:[o.jsx($w,{label:"Access token",value:v==null?void 0:v.access_token_set}),o.jsx($w,{label:"Pixel ID",value:v==null?void 0:v.pixel_id_set,suffix:v!=null&&v.pixel_id?v.pixel_id:void 0}),o.jsx($w,{label:"Test event code",value:v==null?void 0:v.test_event_code_set,suffix:v!=null&&v.test_event_code_set?"events route to Meta Test feed":"events go to production audiences"})]})})]}),o.jsx(ze,{children:o.jsx(Ue,{className:"p-6",children:a.isLoading||c?o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx(De,{className:"h-12 w-12 rounded-full"}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(De,{className:"h-8 w-24"}),o.jsx(De,{className:"h-4 w-48"})]})]}):o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx("div",{className:"flex items-center justify-center h-12 w-12 rounded-full bg-muted",children:o.jsx(pf,{className:"h-6 w-6 text-muted-foreground"})}),o.jsxs("div",{className:"flex-1",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[o.jsx("span",{className:"text-3xl font-bold",children:(h==null?void 0:h.total)??0}),o.jsxs(Se,{className:y,children:[((h==null?void 0:h.error_rate_pct)??0).toFixed(1),"% error rate"]})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[(h==null?void 0:h.success)??0," successful, ",(h==null?void 0:h.error)??0," errors (last 24h)",(h==null?void 0:h.last_sent_at)&&o.jsxs(o.Fragment,{children:[" · ","last sent ",Mn(new Date(h.last_sent_at),{addSuffix:!0})]})]})]})]})})}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsx(mt,{className:"text-base",children:"Delivery Trend, Last 7 Days"})}),o.jsx(Ue,{children:a.isLoading||c?o.jsx(De,{className:"h-[300px] w-full"}):f.length===0?o.jsx("div",{className:"flex items-center justify-center h-[300px] text-muted-foreground text-sm",children:"No Meta CAPI events in the last 7 days"}):o.jsx(kx,{config:ZFe,className:"h-[300px] w-full",children:o.jsxs(DC,{data:f,children:[o.jsx(Cx,{strokeDasharray:"3 3"}),o.jsx(Fd,{dataKey:"day",tick:{fontSize:11}}),o.jsx(Bd,{tick:{fontSize:11}}),o.jsx(MC,{content:o.jsx(Tx,{})}),o.jsx(qi,{dataKey:"success",stackId:"a",fill:"var(--color-success)",radius:[0,0,0,0]}),o.jsx(qi,{dataKey:"error",stackId:"a",fill:"var(--color-error)",radius:[4,4,0,0]})]})})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mt,{className:"text-base",children:"By Event Type, Last 24 Hours"}),o.jsx(Se,{variant:"secondary",className:"text-xs",children:d.length})]})}),o.jsx(Ue,{children:a.isLoading||c?o.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((b,w)=>o.jsx(De,{className:"h-10 w-full"},w))}):d.length===0?o.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No events in the last 24 hours"}):o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"Event"}),o.jsx(ue,{children:"Status"}),o.jsx(ue,{className:"text-right",children:"Count"}),o.jsx(ue,{children:"Last Seen"})]})}),o.jsx(Zn,{children:d.map((b,w)=>o.jsxs(rt,{children:[o.jsx(ce,{className:"text-sm font-medium",children:b.event_name||" - "}),o.jsx(ce,{children:o.jsx(Se,{className:`text-xs ${IM(b.status)}`,children:b.status})}),o.jsx(ce,{className:"text-right text-sm font-mono",children:b.count}),o.jsx(ce,{className:"text-xs text-muted-foreground whitespace-nowrap",children:b.last_seen?Mn(new Date(b.last_seen),{addSuffix:!0}):" - "})]},w))})]})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mt,{className:"text-base",children:"Recent Events"}),o.jsx(Se,{variant:"secondary",className:"text-xs",children:p.length})]})}),o.jsx(Ue,{children:a.isLoading||c?o.jsx("div",{className:"space-y-3",children:Array.from({length:5}).map((b,w)=>o.jsx(De,{className:"h-10 w-full"},w))}):p.length===0?o.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No events yet"}):o.jsx("div",{className:"overflow-x-auto",children:o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"When"}),o.jsx(ue,{children:"Event"}),o.jsx(ue,{children:"Status"}),o.jsx(ue,{children:"Caller"}),o.jsx(ue,{children:"Event ID"}),o.jsx(ue,{children:"fbtrace_id"}),o.jsx(ue,{children:"Error"})]})}),o.jsx(Zn,{children:p.map(b=>{var w,x,S,j,N;return o.jsxs(rt,{children:[o.jsx(ce,{className:"text-xs text-muted-foreground whitespace-nowrap",children:Mn(new Date(b.created_at),{addSuffix:!0})}),o.jsxs(ce,{className:"text-sm font-medium",children:[((w=b.details)==null?void 0:w.event_name)||" - ",((x=b.details)==null?void 0:x.test_mode)&&o.jsxs(Se,{variant:"outline",className:"ml-1 text-[10px]",children:[o.jsx(T9,{className:"h-2.5 w-2.5 mr-0.5"}),"TEST"]})]}),o.jsx(ce,{children:o.jsxs(Se,{className:`text-xs ${IM(b.status)}`,children:[b.status==="success"?o.jsx(jl,{className:"h-3 w-3 mr-1"}):o.jsx(Rp,{className:"h-3 w-3 mr-1"}),b.status]})}),o.jsx(ce,{className:"text-xs text-muted-foreground whitespace-nowrap",children:((S=b.details)==null?void 0:S.source_caller)||" - "}),o.jsx(ce,{className:"text-xs font-mono text-muted-foreground",children:(j=b.details)!=null&&j.event_id?b.details.event_id.substring(0,8)+"â¦":" - "}),o.jsx(ce,{className:"text-xs font-mono text-muted-foreground",children:(N=b.details)!=null&&N.fbtrace_id?b.details.fbtrace_id.substring(0,10)+"â¦":" - "}),o.jsx(ce,{className:"max-w-[200px]",children:o.jsx("span",{className:"text-xs text-red-600 truncate block",title:b.error||"",children:b.error?b.error.substring(0,60)+(b.error.length>60?"â¦":""):" - "})})]},b.id)})})]})})})]})]})},$w=({label:e,value:t,suffix:n})=>o.jsxs("div",{className:"flex items-center gap-2",children:[t?o.jsx(jl,{className:"h-4 w-4 text-green-600"}):o.jsx(_l,{className:"h-4 w-4 text-yellow-600"}),o.jsxs("span",{className:"font-medium",children:[e,":"]}
701),o.jsx("span",{className:t?"text-green-700":"text-yellow-700",children:t?"set":"not set"}),n&&o.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",n,")"]})]});function tBe(){const e=St({queryKey:["admin","billing","stats"],queryFn:async()=>{const{data:t,error:n}=await X.functions.invoke("admin-billing-stats",{body:{}});if(n)throw n;if(!(t!=null&&t.success))throw new Error((t==null?void 0:t.error)||(t==null?void 0:t.message)||"Failed to load billing stats");return t},staleTime:3e4});return{...e,refetch:e.refetch}}const oH={fal_nano_banana2_edit:"#f97316",fal_kling_i2v:"#8b5cf6",fal_kling_i2v_v2_6_pro:"#8b5cf6",fal_kling_i2v_v1_5_pro:"#a78bfa",flux_2_pro_edit:"#ec4899",elevenlabs_v3_tts:"#06b6d4",remotion_lambda_render:"#22c55e",openai_gpt52_director:"#3b82f6",openai_gpt4o_mini_vision:"#60a5fa",openai_gpt4o_media_agent:"#93c5fd",aggregate_reel_factory_total:"#f59e0b",aggregate_edit_reel_total:"#fbbf24",aggregate_story_clip_total:"#a3e635",aggregate_media_gen_total:"#34d399"},nBe=Object.fromEntries(Object.entries(oH).map(([e,t])=>[e,{label:e.replace(/_/g," "),color:t}])),rBe=e=>e==="reconciled"?"bg-green-100 text-green-800 border-green-200":e==="reserved"?"bg-yellow-100 text-yellow-800 border-yellow-200":e==="refunded"?"bg-blue-100 text-blue-800 border-blue-200":"bg-gray-100 text-gray-800 border-gray-200",iBe=()=>{var x,S,j,N,_,P,A,k;const[e,t]=D.useState(!1),[n,r]=D.useState(null),i=tBe(),a=async()=>{t(!0);const C=Date.now();await i.refetch();const E=Date.now()-C;E<400&&await new Promise(I=>setTimeout(I,400-E)),t(!1)},s=async C=>{r(C.id);try{const{data:E,error:I}=await X.functions.invoke("n8n-log-cost",{body:{action:"refund",work_item_id:C.work_item_id,reason:"admin_manual_refund"}});if(I)throw I;E!=null&&E.success?Oe.success("Reservation refunded",{description:E.skipped?"Already refunded/reconciled":`Refunded $${E.refunded_amount||"?"}`}):Oe.error("Refund failed",{description:(E==null?void 0:E.error)||"Unknown error"}),setTimeout(()=>i.refetch(),1e3)}catch(E){Oe.error("Refund failed",{description:E.message})}finally{r(null)}},l=e,c=i.data,u=c==null?void 0:c.revenue_summary,h=(c==null?void 0:c.cost_breakdown_7d)??[],d=c==null?void 0:c.balance_summary,f=(c==null?void 0:c.stuck_reservations)??[],p=(c==null?void 0:c.top_consumers_7d)??[],v=c==null?void 0:c.credits_expiring_soon,m=(c==null?void 0:c.recent_transactions)??[],y=(c==null?void 0:c.recent_topups)??[],b=c==null?void 0:c.topups_summary,w=h.map(C=>({name:C.service.replace(/_/g," ").replace(/^(fal|openai|aggregate) /,""),cost:C.total_cost_usd,fill:oH[C.service]||"#94a3b8"}));return o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-lg font-semibold",children:"Billing & Credits"}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"Revenue, costs, balances, and credit health"})]}),o.jsxs(K,{variant:"outline",size:"sm",onClick:a,disabled:e,children:[o.jsx(Ha,{className:`h-4 w-4 mr-1.5 ${e?"animate-spin":""}`}),"Refresh"]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[o.jsx(ze,{children:o.jsx(Ue,{className:"p-4",children:i.isLoading||l?o.jsx(De,{className:"h-16 w-full"}):o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx(kN,{className:"h-4 w-4 text-muted-foreground"}),o.jsx("span",{className:"text-xs text-muted-foreground",children:"Purchases (7d)"})]}),o.jsx("span",{className:"text-2xl font-bold",children:((x=u==null?void 0:u.purchases_7d)==null?void 0:x.toFixed(2))||"0.00"}),o.jsx("span",{className:"text-sm text-muted-foreground ml-1",children:"credits"}),o.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["24h: ",((S=u==null?void 0:u.purchases_24h)==null?void 0:S.toFixed(2))||"0"," | 30d: ",((j=u==null?void 0:u.purchases_30d)==null?void 0:j.toFixed(2))||"0"]})]})})}),o.jsx(ze,{children:o.jsx(Ue,{className:"p-4",children:i.isLoading||l?o.jsx(De,{className:"h-16 w-full"}):o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx(ON,{className:"h-4 w-4 text-muted-foreground"}),o.jsx("span",{className:"text-xs text-muted-foreground",children:"Subscriptions (7d)"})]}),o.jsx("span",{className:"text-2xl font-bold",children:((N=u==null?void 0:u.subscriptions_7d)==null?void 0:N.toFixed(2))||"0.00"}),o.jsx("span",{className:"text-sm text-muted-foreground ml-1",children:"credits"}),o.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["30d: ",((_=u==null?void 0:u.subscriptions_30d)==null?void 0:_.toFixed(2))||"0"]})]})})}),o.jsx(ze,{children:o.jsx(Ue,{className:"p-4",children:i.isLoading||l?o.jsx(De,{className:"h-16 w-full"}):o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx(e4,{className:"h-4 w-4 text-muted-foreground"}),o.jsx("span",{className:"text-xs text-muted-foreground",children:"Total Balance"})]}),o.jsx("span",{className:"text-2xl font-bold",children:((P=d==null?void 0:d.total_balance)==null?void 0:P.toFixed(2))||"0.00"}),o.jsx("span",{className:"text-sm text-muted-foreground ml-1",children:"credits"}),o.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[(d==null?void 0:d.total_users)||0," users | avg ",((A=d==null?void 0:d.avg_balance)==null?void 0:A.toFixed(2))||"0","/user"]})]})})}),o.jsx(ze,{children:o.jsx(Ue,{className:"p-4",children:i.isLoading||l?o.jsx(De,{className:"h-16 w-full"}):o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx(od,{className:"h-4 w-4 text-muted-foreground"}),o.jsx("span",{className:"text-xs text-muted-foreground",children:"Expiring (7d)"})]}),o.jsx("span",{className:"text-2xl font-bold",children:((k=v==null?void 0:v.total_amount)==null?void 0:k.toFixed(2))||"0.00"}),o.jsx("span",{className:"text-sm text-muted-foreground ml-1",children:"credits"}),o.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[(v==null?void 0:v.count)||0," ledger entries"]})]})})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsx(mt,{className:"text-base",children:"API Cost Breakdown (Last 7 Days)"})}),o.jsx(Ue,{children:i.isLoading||l?o.jsx(De,{className:"h-[300px] w-full"}):w.length===0?o.jsx("div",{className:"flex items-center justify-center h-[300px] text-muted-foreground text-sm",children:"No reconciled costs in the last 7 days"}):o.jsx(kx,{config:nBe,className:"h-[300px] w-full",children:o.jsxs(DC,{data:w,layout:"vertical",margin:{left:140},children:[o.jsx(Cx,{strokeDasharray:"3 3"}),o.jsx(Fd,{type:"number",tick:{fontSize:11}}),o.jsx(Bd,{type:"category",dataKey:"name",tick:{fontSize:10},width:130}),o.jsx(MC,{content:o.jsx(Tx,{})}),o.jsx(qi,{dataKey:"cost",radius:[0,4,4,0],children:w.map((C,E)=>o.jsx(QA,{fill:C.fill},E))})]})})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mt,{className:"text-base",children:"Stuck Re
701servations"}),o.jsx(Se,{variant:f.length>0?"destructive":"secondary",className:"text-xs",children:f.length})]})}),o.jsx(Ue,{children:i.isLoading||l?o.jsx("div",{className:"space-y-3",children:Array.from({length:2}).map((C,E)=>o.jsx(De,{className:"h-10 w-full"},E))}):f.length===0?o.jsxs("div",{className:"flex items-center gap-2 text-green-600 text-sm py-4",children:[o.jsx(p9,{className:"h-4 w-4"}),"No stuck reservations"]}):o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"Work Item"}),o.jsx(ue,{children:"Reserved"}),o.jsx(ue,{children:"Age"}),o.jsx(ue,{children:"Action"})]})}),o.jsx(Zn,{children:f.map(C=>o.jsxs(rt,{children:[o.jsxs(ce,{className:"text-xs font-mono",children:[C.work_item_id.substring(0,8),"..."]}),o.jsxs(ce,{className:"text-sm",children:[Number(C.reservation_amount).toFixed(2)," cr"]}),o.jsx(ce,{className:"text-xs text-muted-foreground",children:Mn(new Date(C.created_at),{addSuffix:!0})}),o.jsx(ce,{children:o.jsx(K,{variant:"destructive",size:"sm",onClick:()=>s(C),disabled:n===C.id,children:n===C.id?"Refunding...":"Refund"})})]},C.id))})]})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mt,{className:"text-base",children:"Top Consumers (7 Days)"}),o.jsx(Se,{variant:"secondary",className:"text-xs",children:p.length})]})}),o.jsx(Ue,{children:i.isLoading||l?o.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((C,E)=>o.jsx(De,{className:"h-10 w-full"},E))}):p.length===0?o.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No consumption in the last 7 days"}):o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"User"}),o.jsx(ue,{className:"text-right",children:"Credits Used"}),o.jsx(ue,{className:"text-right",children:"Generations"})]})}),o.jsx(Zn,{children:p.map(C=>o.jsxs(rt,{children:[o.jsx(ce,{className:"text-sm",children:o.jsx(se,{to:`/admin/users/${C.user_id}`,className:"text-primary hover:underline",children:C.full_name||C.email||C.user_id.substring(0,8)+"..."})}),o.jsx(ce,{className:"text-right text-sm font-mono",children:C.total_credits.toFixed(2)}),o.jsx(ce,{className:"text-right text-sm font-mono",children:C.entry_count})]}
701,C.user_id))})]})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mt,{className:"text-base",children:"Top-Up Purchases (PayPal)"}),o.jsx(Se,{variant:"secondary",className:"text-xs",children:y.length})]}),b&&o.jsxs("div",{className:"text-xs text-muted-foreground",children:["24h: ",o.jsx("span",{className:"font-mono",children:b.count_24h})," (",b.total_credits_24h.toFixed(2)," cr)"," · ","7d: ",o.jsx("span",{className:"font-mono",children:b.count_7d})," (",b.total_credits_7d.toFixed(2)," cr)"," · ","30d: ",o.jsx("span",{className:"font-mono",children:b.count_30d})," (",b.total_credits_30d.toFixed(2)," cr)"]})]})}),o.jsx(Ue,{children:i.isLoading||l?o.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((C,E)=>o.jsx(De,{className:"h-10 w-full"},E))}):y.length===0?o.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No top-up purchases in the last 30 days"}):o.jsx("div",{className:"overflow-x-auto",children:o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"When"}),o.jsx(ue,{children:"User"}),o.jsx(ue,{children:"Pack"}),o.jsx(ue,{className:"text-right",children:"Credits"}),o.jsx(ue,{children:"Order ID"})]})}),o.jsx(Zn,{children:y.map(C=>o.jsxs(rt,{children:[o.jsx(ce,{className:"text-xs text-muted-foreground whitespace-nowrap",children:Mn(new Date(C.created_at),{addSuffix:!0})}),o.jsx(ce,{className:"text-sm",children:o.jsx(se,{to:`/admin/users/${C.user_id}`,className:"text-primary hover:underline",children:C.full_name||C.email||C.user_id.substring(0,8)+"..."})}),o.jsx(ce,{className:"text-xs text-muted-foreground",children:C.description||"-"}),o.jsxs(ce,{className:"text-right text-sm font-mono",children:["+",C.amount.toFixed(2)]}),o.jsx(ce,{className:"text-xs font-mono text-muted-foreground",children:C.reference_id?C.reference_id.substring(0,16)+(C.reference_id.length>16?"...":""):"-"})]},C.id))})]})})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mt,{className:"text-base",children:"Recent Transactions"}),o.jsx(Se,{variant:"secondary",className:"text-xs",children:m.length})]})}),o.jsx(Ue,{children:i.isLoading||l?o.jsx("div",{className:"space-y-3",children:Array.from({length:5}).map((C,E)=>o.jsx(De,{className:"h-10 w-full"},E))}):m.length===0?o.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No transactions yet"}):o.jsx("div",{className:"overflow-x-auto",children:o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"When"}),o.jsx(ue,{children:"Status"}),o.jsx(ue,{children:"Work Item"}),o.jsx(ue,{className:"text-right",children:"API Cost"}),o.jsx(ue,{className:"text-right",children:"Credits"}),o.jsx(ue,{children:"Services"})]})}),o.jsx(Zn,{children:m.map(C=>{var I;const E=C.cost_breakdown?Object.keys(C.cost_breakdown).map(O=>O.split("_").slice(0,2).join("_")).filter((O,M,$)=>$.indexOf(O)===M):[];return o.jsxs(rt,{children:[o.jsx(ce,{className:"text-xs text-muted-foreground whitespace-nowrap",children:Mn(new Date(C.created_at),{addSuffix:!0})}),o.jsx(ce,{children:o.jsx(Se,{className:`text-xs ${rBe(C.status)}`,children:C.status})}),o.jsx(ce,{className:"text-xs font-mono",children:C.work_item_id?C.work_item_id.substring(0,8)+"...":"-"}),o.jsxs(ce,{className:"text-right text-sm font-mono",children:["$",((I=C.total_cost_usd)==null?void 0:I.toFixed(4))||"0"]}),o.jsx(ce,{className:"text-right text-sm font-mono",children:C.total_credits_charged!=null?C.total_credits_charged.toFixed(2):"-"}),o.jsx(ce,{className:"text-xs text-muted-foreground",children:E.join(", ")||"-"})]},C.id)})})]})})})]})]})};function aBe(){return St({queryKey:["admin","observability","functionHealth"],queryFn:async()=>{const{data:e,error:t}=await X.from("v_function_health_24h").select("*");if(t)throw t;return(e??[]).map(n=>({function_name:n.function_name,total_calls:n.total_calls??0,error_count:n.error_count??0,error_rate_pct:n.error_rate_pct??0,avg_duration_ms:n.avg_duration_ms??0,p95_duration_ms:n.p95_duration_ms??0,last_seen:n.last_seen,last_error_at:n.last_error_at}))},staleTime:3e4})}function sBe(e){return St({queryKey:["admin","observability","logs",e],queryFn:async()=>{let t=X.from("v_function_logs_recent").select("*").order("created_at",{ascending:!1}).limit(200);e!=null&&e.functionName&&(t=t.eq("function_name",e.functionName)),e!=null&&e.level&&(t=t.eq("level",e.level));const{data:n,error:r}=await t;if(r)throw r;let i=n??[];if(e!=null&&e.search){const a=e.search.toLowerCase();i=i.filter(s=>(s.message||"").toLowerCase().includes(a)||(s.error_message||"").toLowerCase().includes(a)||(s.function_name||"").toLowerCase().includes(a))}return i.map(a=>({id:a.id,function_name:a.function_name,level:a.level,message:a.message,duration_ms:a.duration_ms,status_code:a.status_code,user_id:a.user_id,request_id:a.request_id,error_message:a.error_message,metadata:a.metadata,created_at:a.created_at}))},staleTime:15e3})}function oBe(){return St({queryKey:["admin","observability","alertHistory"],queryFn:async()=>{const{data:e,error:t}=await X.from("alert_history").select("*").order("created_at",{ascending:!1}).limit(50);if(t)throw t;return(e??[]).map(n=>({id:n.id,alert_type:n.alert_type,alert_key:n.alert_key,severity:n.severity,message:n.message,details:n.details,sent_via:n.sent_via,created_at:n.created_at}))},staleTime:3e4})}function lBe(){return St({queryKey:["admin","observability","nokNokHealth"],queryFn:async()=>{const{data:e,error:t}=await X.from("v_nok_nok_health").select("*").limit(20);if(t)throw t;return(e??[]).map(n=>({run_at:n.run_at,level:n.level,duration_ms:n.duration_ms,error_message:n.error_message,sent:n.sent??0,skipped:n.skipped??0,errors:n.errors??0,total_due:n.total_due??0}))},staleTime:3e4})}const RM={info:"bg-blue-100 text-blue-800 border-blue-200",warn:"bg-yellow-100 text-yellow-800 border-yellow-200",error:"bg-red-100 text-red-800 border-red-200"},cBe={warning:"bg-yellow-100 text-yellow-800 border-yellow-200",critical:"bg-red-100 text-red-800 border-red-200"},uBe=()=>{const[e,t]=g.useState(!1),[n,r]=g.useState(""),[i,a]=g.useState(""),[s,l]=g.useState(""),c=aBe(),u=sBe({functionName:n||void 0,level:i||void 0,search:s||void 0}),h=oBe(),d=lBe(),f=async()=>{t(!0);const x=Date.now();await Promise.all([c.refetch(),u.refetch(),h.refetch(),d.refetch()]);const S=Date.now()-x;S<400&&await new Promise(j=>setTimeout(j,400-S)),t(!1)},p=e,v=c.data??[],m=u.data??[],y=h.data??[],b=d.data??[],w=[...new Set(v.map(x=>x.function_name))].sort();return o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h2",{className:"text-lg font-semibold",children:"Observability"}),o.jsxs(K,{variant:"outline",size:"sm",onClick:f,disabled:e,children:[o.jsx(Ha,{className:`h-4 w-4 mr-1.5 ${e?"animate-spin":""}`}),"Refresh"]})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(pf,{className:"h-4 w-4"}),o.jsx(mt,{className:"text-base",children:"Function Health (24h)"}),o.jsxs(Se,{variant:"secondary",className:"text-xs",children:[v.length," functions"]})]})}),o.jsx(Ue,{children:c.isLoading||p?o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:Array.from({length:6}).map((x,S)=>o.jsx(De,{className:"h-24 w-full"},S))}):v.length===0?o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm py-8 justify-center",children:[o.jsx(pf,{className:"h-4 w-4"}
701),"No function logs yet. Logs will appear after functions are instrumented."]}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:v.map(x=>{const S=x.error_rate_pct>=25?"border-red-300 bg-red-50 dark:bg-red-950/20":x.error_rate_pct>=10?"border-yellow-300 bg-yellow-50 dark:bg-yellow-950/20":"border-green-300 bg-green-50 dark:bg-green-950/20",j=x.error_rate_pct>=25?"bg-red-500":x.error_rate_pct>=10?"bg-yellow-500":"bg-green-500";return o.jsxs("div",{className:`rounded-lg border p-3 ${S} cursor-pointer hover:shadow-sm transition-shadow`,onClick:()=>r(x.function_name),children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsx("span",{className:"text-sm font-medium truncate max-w-[180px]",children:x.function_name}),o.jsx("span",{className:`h-2.5 w-2.5 rounded-full ${j}`})]}),o.jsxs("div",{className:"grid grid-cols-3 gap-2 text-xs text-muted-foreground",children:[o.jsxs("div",{children:[o.jsx("span",{className:"block text-foreground font-mono",children:x.total_calls}),"calls"]}),o.jsxs("div",{children:[o.jsxs("span",{className:"block text-foreground font-mono",children:[x.error_rate_pct,"%"]}),"errors"]}),o.jsxs("div",{children:[o.jsxs("span",{className:"block text-foreground font-mono",children:[x.avg_duration_ms,"ms"]}),"avg"]})]}),x.last_seen&&o.jsxs("div",{className:"text-xs text-muted-foreground mt-2",children:["Last: ",Mn(new Date(x.last_seen),{addSuffix:!0})]})]},x.function_name)})})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(a9,{className:"h-4 w-4"}),o.jsx(mt,{className:"text-base",children:"Nok Nok Runs (7d)"}),o.jsxs(Se,{variant:"secondary",className:"text-xs",children:[b.length," runs"]})]})}),o.jsx(Ue,{children:d.isLoading||p?o.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((x,S)=>o.jsx(De,{className:"h-8 w-full"},S))}):b.length===0?o.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No runs recorded yet"}):o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"Time"}),o.jsx(ue,{children:"Status"}),o.jsx(ue,{children:"Sent"}),o.jsx(ue,{children:"Skipped"}),o.jsx(ue,{children:"Errors"}),o.jsx(ue,{children:"Duration"})]})}),o.jsx(Zn,{children:b.map((x,S)=>o.jsxs(rt,{children:[o.jsx(ce,{className:"text-xs whitespace-nowrap",children:x.run_at?Mn(new Date(x.run_at),{addSuffix:!0}):" - "}),o.jsx(ce,{children:o.jsx(Se,{className:`text-xs ${RM[x.level]||""}`,children:x.level})}),o.jsx(ce,{className:"font-mono text-sm",children:x.sent}),o.jsx(ce,{className:"font-mono text-sm",children:x.skipped}),o.jsx(ce,{className:"font-mono text-sm",children:x.errors}),o.jsx(ce,{className:"text-xs text-muted-foreground",children:x.duration_ms?`${x.duration_ms}ms`:" - "})]},S))})]})})]}),o.jsxs(ze,{children:[o.jsx(pt,{className:"pb-3",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(_l,{className:"h-4 w-4"}),o.jsx(mt,{className:"text-base",children:"Alert History"}),o.jsx(Se,{variant:"secondary",className:"text-xs",children:y.length})]})}),o.jsx(Ue,{children:h.isLoading||p?o.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((x,S)=>o.jsx(De,{className:"h-8 w-full"},S))}):y.length===0?o.jsxs("div",{className:"flex items-center gap-2 text-green-600 text-sm py-4",children:[o.jsx(jl,{className:"h-4 w-4"}),"No alerts have been triggered"]}):o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"Time"}),o.jsx(ue,{children:"Severity"}),o.jsx(ue,{children:"Type"}),o.jsx(ue,{children:"Message"}),o.jsx(ue,{children:"Sent Via"})]})}),o.jsx(Zn,{children:y.map(x=>o.jsxs(rt,{children:[o.jsx(ce,{className:"text-xs whitespace-nowrap",children:Mn(new Date(x.created_at),{addSuffix:!0})}),o.jsx(ce,{children:o.jsx(Se,{className:`text-xs ${cBe[x.severity]||""}`,children:x.severity})}),o.jsx(ce,{className:"text-xs",children:x.alert_type}),o.jsx(ce,{className:"text-xs max-w-[300px] truncate",title:x.message,children:x.message}),o.jsx(ce,{className:"text-xs text-muted-foreground",children:x.sent_via})]},x.id))})]})})]}),o.jsxs(ze,{children:[o.jsxs(pt,{className:"pb-3",children:[o.jsx("div",{className:"flex items-center justify-between",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(TN,{className:"h-4 w-4"}),o.jsx(mt,{className:"text-base",children:"Log Viewer (48h)"}),o.jsxs(Se,{variant:"secondary",className:"text-xs",children:[m.length," entries"]})]})}),o.jsxs("div",{className:"flex flex-wrap gap-2 mt-3",children:[o.jsxs(_r,{value:n||"__all__",onValueChange:x=>r(x==="__all__"?"":x),children:[o.jsx(lr,{className:"w-[200px] h-8 text-xs",children:o.jsx(Nr,{placeholder:"All functions"})}),o.jsxs(cr,{children:[o.jsx(Ke,{value:"__all__",children:"All functions"}),w.map(x=>o.jsx(Ke,{value:x,children:x},x))]})]}),o.jsxs(_r,{value:i||"__all__",onValueChange:x=>a(x==="__all__"?"":x),children:[o.jsx(lr,{className:"w-[120px] h-8 text-xs",children:o.jsx(Nr,{placeholder:"All levels"})}),o.jsxs(cr,{children:[o.jsx(Ke,{value:"__all__",children:"All levels"}),o.jsx(Ke,{value:"info",children:"Info"}),o.jsx(Ke,{value:"warn",children:"Warning"}),o.jsx(Ke,{value:"error",children:"Error"})]})]}),o.jsx(Bt,{placeholder:"Search logs...",value:s,onChange:x=>l(x.target.value),className:"w-[200px] h-8 text-xs"}),(n||i||s)&&o.jsx(K,{variant:"ghost",size:"sm",className:"h-8 text-xs",onClick:()=>{r(""),a(""),l("")},children:"Clear filters"})]})]}),o.jsx(Ue,{children:u.isLoading||p?o.jsx("div",{className:"space-y-2",children:Array.from({length:5}).map((x,S)=>o.jsx(De,{className:"h-8 w-full"},S))}):m.length===0?o.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:"No logs matching filters"}):o.jsx("div",{className:"overflow-x-auto max-h-[500px] overflow-y-auto",children:o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{className:"w-[140px]",children:"Time"}),o.jsx(ue,{children:"Function"}),o.jsx(ue,{children:"Level"}),o.jsx(ue,{children:"Message"}),o.jsx(ue,{children:"Duration"}),o.jsx(ue,{children:"Status"})]})}),o.jsx(Zn,{children:m.map(x=>o.jsxs(rt,{className:x.level==="error"?"bg-red-50/50 dark:bg-red-950/10":"",children:[o.jsx(ce,{className:"text-xs whitespace-nowrap text-muted-foreground",children:Mn(new Date(x.created_at),{addSuffix:!0})}),o.jsx(ce,{className:"text-xs font-medium truncate max-w-[150px]",children:x.function_name}),o.jsx(ce,{children:o.jsx(Se,{className:`text-xs ${RM[x.level]||""}`,children:x.level})}),o.jsx(ce,{className:"text-xs max-w-[300px]",children:o.jsx("span",{className:"truncate block",title:x.message||"",children:x.error_message||x.message||" - "})}),o.jsx(ce,{className:"text-xs font-mono text-muted-foreground",children:x.duration_ms?`${x.duration_ms}ms`:" - "}),o.jsx(ce,{className:"text-xs font-mono text-muted-foreground",children:x.status_code||" - "})]},x.id))})]})})})]})]})},dBe="https://hhzqlaygxohfpedujlsm.supabase.co",hBe="vis_n8n_Kj7mP9x
701Q2wR4tY6uI8oL0pZsXcVbNm3a",fBe={all:"All Languages",he:"Hebrew",en:"English",ar:"Arabic",ru:"Russian"},pBe=()=>{const[e,t]=g.useState("all"),[n,r]=g.useState(null),[i,a]=g.useState(!1),{data:s,isLoading:l,refetch:c}=dve(e),u=xo(),{toast:h}=Na(),d=async()=>{if(n){a(!0);try{const p=await(await fetch(`${dBe}/functions/v1/n8n-delete-pronunciation-dict`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":hBe},body:JSON.stringify({id:n})})).json();p.success?(h({title:"Entry deleted",description:"Removed from dictionary and ElevenLabs."}),u.invalidateQueries({queryKey:["admin","pronunciation"]})):h({title:"Delete failed",description:p.error||"Unknown error",variant:"destructive"})}catch(f){h({title:"Delete failed",description:String(f),variant:"destructive"})}finally{a(!1),r(null)}}};return o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h2",{className:"text-xl font-semibold",children:"Pronunciation Dictionary"}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsxs(_r,{value:e,onValueChange:t,children:[o.jsx(lr,{className:"w-[160px]",children:o.jsx(Nr,{})}),o.jsx(cr,{children:Object.entries(fBe).map(([f,p])=>o.jsx(Ke,{value:f,children:p},f))})]}),o.jsxs(K,{variant:"outline",size:"sm",onClick:()=>c(),disabled:l,children:[o.jsx(Ha,{className:`h-4 w-4 mr-1 ${l?"animate-spin":""}`}),"Refresh"]})]})]}),o.jsx(ze,{children:o.jsxs(Ue,{className:"p-0",children:[o.jsxs("div",{className:"grid grid-cols-[1fr_1fr_60px_120px_90px_40px] gap-2 px-4 py-2 border-b font-medium text-sm text-muted-foreground",children:[o.jsx("div",{children:"Original Word"}),o.jsx("div",{children:"Replacement"}),o.jsx("div",{children:"Lang"}),o.jsx("div",{children:"Added By"}),o.jsx("div",{children:"Date"}),o.jsx("div",{})]}),l?o.jsx("div",{className:"p-4 space-y-2",children:[...Array(5)].map((f,p)=>o.jsx(De,{className:"h-8 w-full"},p))}):s!=null&&s.length?s.map(f=>o.jsxs("div",{className:"grid grid-cols-[1fr_1fr_60px_120px_90px_40px] gap-2 px-4 py-2 border-b items-center text-sm hover:bg-muted/50",children:[o.jsx("div",{className:"font-medium",children:f.original_word}),o.jsx("div",{className:"text-muted-foreground",children:f.replacement}),o.jsx("div",{className:"text-muted-foreground",children:f.language}),o.jsx("div",{className:"text-muted-foreground truncate",children:f.added_by_phone||"-"}),o.jsx("div",{className:"text-muted-foreground",children:new Date(f.created_at).toLocaleDateString("en-GB")}),o.jsx("div",{children:o.jsx(K,{variant:"ghost",size:"icon",className:"h-7 w-7 text-destructive hover:text-destructive",onClick:()=>r(f.id),children:o.jsx(J3,{className:"h-4 w-4"})})})]},f.id)):o.jsx("div",{className:"p-8 text-center text-muted-foreground",children:"No pronunciation entries found."})]})}),o.jsxs("div",{className:"text-sm text-muted-foreground",children:[(s==null?void 0:s.length)??0," ",(s==null?void 0:s.length)===1?"entry":"entries"]}),o.jsx(aH,{open:!!n,onOpenChange:f=>!f&&r(null),children:o.jsxs($C,{children:[o.jsxs(LC,{children:[o.jsx(FC,{children:"Delete pronunciation entry?"}),o.jsx(BC,{children:"This will remove the entry from the database and the ElevenLabs pronunciation dictionary. Future TTS calls will no longer use this pronunciation rule."})]}),o.jsxs(VC,{children:[o.jsx(UC,{children:"Cancel"}),o.jsx(zC,{onClick:d,disabled:i,children:i?"Deleting...":"Delete"})]})]})})]})},mBe="vis_n8n_Kj7mP9xQ2wR4tY6uI8oL0pZsXcVbNm3a";function gBe(e){return`https://hhzqlaygxohfpedujlsm.supabase.co/functions/v1/${e}`}const vBe=({voice:e,open:t,onClose:n,exclusiveToUserId:r,exclusiveUserName:i})=>{const a=xo(),[s,l]=g.useState(""),[c,u]=g.useState(null),h=!!r,{data:d=[],isLoading:f}=St({queryKey:["admin","users-list"],queryFn:async()=>{const{data:x,error:S}=await X.from("users").select("id, full_name, email, business_name, is_active").eq("is_active",!0).order("full_name",{ascending:!0});if(S)throw S;return x??[]},staleTime:6e4}),{data:p=[],isLoading:v}=St({queryKey:["admin","voice-permissions",e.id],queryFn:async()=>{const{data:x,error:S}=await X.from("user_voice_permissions").select("*").eq("voice_id",e.id);if(S)throw S;return x??[]},staleTime:15e3}),m=new Set(p.filter(x=>!x.is_allowed).map(x=>
701x.user_id)),y=async(x,S)=>{u(x);try{if(!(await fetch(gBe("n8n-update-voice-permission"),{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":mBe},body:JSON.stringify({user_id:x,voice_id:e.id,is_allowed:!S})})).ok)throw new Error("Failed to update permission");Oe.success(S?"Voice denied for user":"Voice allowed for user"),a.invalidateQueries({queryKey:["admin","voice-permissions",e.id]})}catch(j){Oe.error(j.message)}finally{u(null)}},b=d.filter(x=>{if(!s)return!0;const S=s.toLowerCase();return(x.full_name||"").toLowerCase().includes(S)||(x.email||"").toLowerCase().includes(S)||(x.business_name||"").toLowerCase().includes(S)}),w=f||v;return o.jsx(Xp,{open:t,onOpenChange:n,children:o.jsxs(Nd,{className:"max-w-lg max-h-[80vh] flex flex-col",children:[o.jsx(Pd,{children:o.jsxs(Ad,{className:"flex items-center gap-2",children:["Permissions for ",o.jsx(Se,{variant:"outline",children:e.name})]})}),h&&o.jsxs("div",{className:"flex items-start gap-2 rounded-lg border border-amber-200 bg-amber-50 dark:bg-amber-950/30 dark:border-amber-800 p-3 mb-1",children:[o.jsx(ba,{className:"h-4 w-4 text-amber-600 mt-0.5 shrink-0"}),o.jsxs("p",{className:"text-xs text-amber-800 dark:text-amber-300",children:["This voice is exclusive to ",o.jsx("span",{className:"font-semibold",children:i||"a specific user"}),". Only they can use it in the pipeline - other customers' toggles have no effect."]})]}),o.jsxs("div",{className:"relative mb-3",children:[o.jsx(TN,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),o.jsx(Bt,{placeholder:"Search users...",value:s,onChange:x=>l(x.target.value),className:"pl-9 h-9"})]}),o.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:h?o.jsxs(o.Fragment,{children:["This voice is locked to one customer via ",o.jsx("span",{className:"font-medium font-mono text-xs",children:"exclusive_to_user_id"}),"."]}):o.jsxs(o.Fragment,{children:["Default is ",o.jsx("span",{className:"font-medium text-green-600",children:"allowed"}),". Toggle off to deny access."]})}),o.jsx("div",{className:"flex-1 overflow-y-auto space-y-1",children:w?Array.from({length:5}).map((x,S)=>o.jsx(De,{className:"h-10 w-full"},S)):b.length===0?o.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No users found"}):b.map(x=>{const S=h&&x.id===r,j=!m.has(x.id);return o.jsxs("div",{className:"flex items-center justify-between px-3 py-2 rounded-lg hover:bg-muted/50 transition-colors",children:[o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"text-sm font-medium truncate",children:x.full_name||"Unnamed"}),o.jsx("p",{className:"text-xs text-muted-foreground truncate",children:x.email})]}),h?S?o.jsxs(Se,{variant:"outline",className:"text-xs bg-amber-50 text-amber-700 border-amber-200 dark:bg-amber-950/30 dark:text-amber-300 gap-0.5",children:[o.jsx(ba,{className:"h-3 w-3"}),"Exclusive"]}):o.jsx("span",{className:"text-xs text-muted-foreground",children:"No access"}):o.jsx(PA,{checked:j,disabled:c===x.id,onCheckedChange:()=>y(x.id,j)})]},x.id)})})]})})};var Ox="Tabs",[yBe,Pze]=Fn(Ox,[Pb]),lH=Pb(),[bBe,WC]=yBe(Ox),cH=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:s="horizontal",dir:l,activationMode:c="automatic",...u}=e,h=xd(l),[d,f]=pi({prop:r,onChange:i,defaultProp:a??"",caller:Ox});return o.jsx(bBe,{scope:n,baseId:li(),value:d,onValueChange:f,orientation:s,dir:h,activationMode:c,children:o.jsx(ye.div,{dir:h,"data-orientation":s,...u,ref:t})})});cH.displayName=Ox;var uH="TabsList",dH=g.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,a=WC(uH,n),s=lH(n);return o.jsx(aB,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:o.jsx(ye.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});dH.displayName=uH;var hH="TabsTrigger",fH=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,s=WC(hH,n),l=lH(n),c=gH(s.baseId,r),u=vH(s.baseId,r),h=r===s.value;return o.jsx(sB,{asChild:!0,...l,focusable:!i,active:h,children:o.jsx(ye.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":u,"data-state":h?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:t,onMouseDown:le(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?s.onValueChange(r):d.preventDefault()}),onKeyDown:le(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(r)}),onFocus:le(e.onFocus,()=>{const d=s.activationMode!=="manual";!h&&!i&&d&&s.onValueChange(r)})})})});fH.displayName=hH;var pH="TabsContent",mH=g.forwardRef((e,t)=>
701{const{__scopeTabs:n,value:r,forceMount:i,children:a,...s}=e,l=WC(pH,n),c=gH(l.baseId,r),u=vH(l.baseId,r),h=r===l.value,d=g.useRef(h);return g.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),o.jsx(Bn,{present:i||h,children:({present:f})=>o.jsx(ye.div,{"data-state":h?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&a})})});mH.displayName=pH;function gH(e,t){return`${e}-trigger-${t}`}function vH(e,t){return`${e}-content-${t}`}var xBe=cH,yH=dH,bH=fH,xH=mH;const wH=xBe,qC=g.forwardRef(({className:e,...t},n)=>o.jsx(yH,{ref:n,className:oe("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));qC.displayName=yH.displayName;const $y=g.forwardRef(({className:e,...t},n)=>o.jsx(bH,{ref:n,className:oe("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));$y.displayName=bH.displayName;const Ly=g.forwardRef(({className:e,...t},n)=>o.jsx(xH,{ref:n,className:oe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Ly.displayName=xH.displayName;const Lw="vis_n8n_Kj7mP9xQ2wR4tY6uI8oL0pZsXcVbNm3a";function Vw(e){return`https://hhzqlaygxohfpedujlsm.supabase.co/functions/v1/${e}`}const wBe=({open:e,onClose:t,onCreated:n})=>{const[r,i]=g.useState(""),[a,s]=g.useState("male"),[l,c]=g.useState("middle"),[u,h]=g.useState(null),[d,f]=g.useState(null),[p,v]=g.useState(!1),[m,y]=g.useState(!1),[b,w]=g.useState(!1),[x,S]=g.useState(""),[j,N]=g.useState("male"),[_,P]=g.useState(null),[A,k]=g.useState(!1),[C,E]=g.useState(""),I=g.useRef(null),{data:O=[]}=St({queryKey:["admin","users-list"],queryFn:async()=>{const{data:F,error:B}=await X.from("users").select("id, full_name, email, business_name").eq("is_active",!0).order("full_name",{ascending:!0});if(B)throw B;return F??[]},staleTime:6e4}),M=()=>{var F;i(""),s("male"),c("middle"),h(null),f(null),w(!1),S(""),N("male"),P(null),E(""),(F=I.current)==null||F.pause()},$=()=>{M(),t()},L=async()=>{if(!r.trim()){Oe.error("Enter a voice description");return}v(!0);try{const F=await fetch(Vw("n8n-create-voice"),{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":Lw},body:JSON.stringify({action:"design_preview",text:r,gender:a,age:l})});if(!F.ok){const W=await F.json().catch(()=>({}));throw new Error(W.message||"Preview failed")}const B=await F.json();h(B.preview_url||null),f(B.generated_voice_id||null),Oe.success("Preview generated")}catch(F){Oe.error(F.message)}finally{v(!1)}},T=async()=>{if(!d){Oe.error("Generate a preview first");return}y(!0);try{if(!(await fetch(Vw("n8n-create-voice"),{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":Lw},body:JSON.stringify({action:"design_save",generated_voice_id:d,name:r.slice(0,30),gender:a,age_category:l,description:r,exclusive_to_user_id:C||null})})).ok)throw new Error("Save failed");Oe.success("Voice created"),n(),$()}catch(F){Oe.error(F.message)}finally{y(!1)}},R=async()=>{if(!_||!x.trim()){Oe.error("Provide a name and audio file");return}k(!0);try{const F=new FileReader,B=await new Promise((Z,fe)=>{F.onload=()=>{const we=F.result;Z(we.split(",")[1])},F.onerror=fe,F.readAsDataURL(_)});if(!(await fetch(Vw("n8n-create-voice"),{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":Lw},body:JSON.stringify({action:"clone",name:x,audio_base64:B,gender:j,exclusive_to_user_id:C||null})})).ok)throw new Error("Clone failed");Oe.success("Voice cloned"),n(),$()}catch(F){Oe.error(F.message)}finally{k(!1)}},z=()=>{var F;if(u)if(b)(F=I.current)==null||F.pause(),w(!1);else{const B=new Audio(u);B.onended=()=>w(!1),B.play(),I.current=B,w(!0)}};return o.jsx(Xp,{open:e,onOpenChange:$,children:o.jsxs(Nd,{className:"max-w-md",children:[o.jsx(Pd,{children:o.jsx(Ad,{children:"Create Voice"})}),o.jsxs(wH,{defaultValue:"design",className:"mt-2",children:[o.jsxs(qC,{className:"grid w-full grid-cols-2",children:[o.jsxs($y,{value:"design",children:[o.jsx(kr,{className:"h-3.5 w-3.5 mr-1.5"}),"Design"]}),o.jsxs($y,{value:"upload",children:[o.jsx(LS,{className:"h-3.5 w-3.5 mr-1.5"}),"Upload"]})]}
701),o.jsxs(Ly,{value:"design",className:"space-y-4 mt-4",children:[o.jsxs("div",{children:[o.jsx(Rt,{children:"Voice Description"}),o.jsx(jd,{value:r,onChange:F=>i(F.target.value),placeholder:"A warm, friendly male voice with a slight accent...",className:"mt-1",rows:3})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx(Rt,{children:"Gender"}),o.jsxs(_r,{value:a,onValueChange:s,children:[o.jsx(lr,{className:"mt-1",children:o.jsx(Nr,{})}),o.jsxs(cr,{children:[o.jsx(Ke,{value:"male",children:"Male"}),o.jsx(Ke,{value:"female",children:"Female"})]})]})]}),o.jsxs("div",{children:[o.jsx(Rt,{children:"Age"}),o.jsxs(_r,{value:l,onValueChange:c,children:[o.jsx(lr,{className:"mt-1",children:o.jsx(Nr,{})}),o.jsxs(cr,{children:[o.jsx(Ke,{value:"young",children:"Young"}),o.jsx(Ke,{value:"middle",children:"Middle"}),o.jsx(Ke,{value:"mature",children:"Mature"})]})]})]})]}),o.jsxs(K,{onClick:L,disabled:p,className:"w-full",children:[p?o.jsx(Ze,{className:"h-4 w-4 mr-1.5 animate-spin"}):o.jsx(kr,{className:"h-4 w-4 mr-1.5"}),"Preview"]}),u&&o.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-lg bg-muted",children:[o.jsx(K,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:z,children:b?o.jsx(G3,{className:"h-4 w-4"}):o.jsx(K3,{className:"h-4 w-4"})}),o.jsx("span",{className:"text-sm text-muted-foreground flex-1",children:"Preview ready"}),o.jsxs(K,{size:"sm",onClick:T,disabled:m,children:[m?o.jsx(Ze,{className:"h-3.5 w-3.5 animate-spin mr-1"}):null,"Save Voice"]})]})]}),o.jsxs(Ly,{value:"upload",className:"space-y-4 mt-4",children:[o.jsxs("div",{children:[o.jsx(Rt,{children:"Voice Name"}),o.jsx(Bt,{value:x,onChange:F=>S(F.target.value),placeholder:"e.g. Client Custom",className:"mt-1"})]}),o.jsxs("div",{children:[o.jsx(Rt,{children:"Gender"}),o.jsxs(_r,{value:j,onValueChange:N,children:[o.jsx(lr,{className:"mt-1",children:o.jsx(Nr,{})}),o.jsxs(cr,{children:[o.jsx(Ke,{value:"male",children:"Male"}),o.jsx(Ke,{value:"female",children:"Female"})]})]})]}),o.jsxs("div",{children:[o.jsx(Rt,{children:"Audio Sample (.mp3, .wav)"}),o.jsx(Bt,{type:"file",accept:".mp3,.wav,audio/mpeg,audio/wav",onChange:F=>{var B;return P(((B=F.target.files)==null?void 0:B[0])||null)},className:"mt-1"})]}),o.jsxs(K,{onClick:R,disabled:A,className:"w-full",children:[A?o.jsx(Ze,{className:"h-4 w-4 mr-1.5 animate-spin"}):o.jsx(LS,{className:"h-4 w-4 mr-1.5"}),"Clone Voice"]})]})]}),o.jsxs("div",{className:"mt-2",children:[o.jsx(Rt,{className:"text-xs text-muted-foreground",children:"Exclusive to customer (optional)"}),o.jsxs(_r,{value:C||"__none__",onValueChange:F=>E(F==="__none__"?"":F),children:[o.jsx(lr,{className:"mt-1 h-8 text-xs",children:o.jsx(Nr,{placeholder:"Available to all"})}),o.jsxs(cr,{children:[o.jsx(Ke,{value:"__none__",children:"Available to all"}),O.map(F=>o.jsxs(Ke,{value:F.id,children:[F.full_name||F.email," ",F.business_name?`(${F.business_name})`:""]},F.id))]})]})]})]})})},SBe=e=>e==="male"?o.jsx(Se,{variant:"outline",className:"text-xs bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-950/30 dark:text-blue-300",children:"Male"}):e==="female"?o.jsx(Se,{variant:"outline",className:"text-xs bg-pink-50 text-pink-700 border-pink-200 dark:bg-pink-950/30 dark:text-pink-300",children:"Female"}):o.jsx(Se,{variant:"outline",className:"text-xs",children:e||" - "}),jBe=e=>{const t={premade:"bg-emerald-50 text-emerald-700 border-emerald-200 dark:bg-emerald-950/30 dark:text-emerald-300",cloned:"bg-purple-50 text-purple-700 border-purple-200 dark:bg-purple-950/30 dark:text-purple-300",designed:"bg-amber-50 text-amber-700 border-amber-200 dark:bg-amber-950/30 dark:text-amber-300",custom_fallback:"bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-950/30 dark:text-gray-300"};return o.jsx(Se,{variant:"outline",className:`text-xs ${t[e]||""}`,children:e.replace("_"," ")})},_Be=({voices:e,playingId:t,editingId:n,editData:r,overIdx:i,onPlay:a,onStartEdit:s,onCancelEdit:l,onSaveEdit:c,onSetEditData:u,onPermissions:h,onDelete:d,onDragStart:f,onDragOver:p,onDragEnd:v})=>o.jsx("div",{className:"overflow-x-auto",children:o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{className:"w-[40px]",children:"#"}),o.jsx(ue,{children:"Name"}),o.jsx(ue,{children:"Gender"}),o.jsx(ue,{children:"Age"}),o.jsx(ue,{children:"Energy"}),o.jsx(ue,{children:"Type"}),o.jsx(ue,{children:"Active"}),o.jsx(ue,{className:"text-right",children:"Actions"})]})}),o.jsx(Zn,{children:e.map((m,y)=>o.jsxs(rt,{draggable:!0,onDragStart:()=>f(y),onDragOver:b=>
701p(b,y),onDragEnd:v,className:`cursor-grab active:cursor-grabbing ${i===y?"bg-primary/5":""} ${m.is_active?"":"opacity-50"}`,children:[o.jsx(ce,{className:"font-mono text-xs text-muted-foreground",children:o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx(y9,{className:"h-3.5 w-3.5 text-muted-foreground/50"}),y+1]})}),o.jsx(ce,{children:n===m.id?o.jsx(Bt,{value:r.name||"",onChange:b=>u(w=>({...w,name:b.target.value})),className:"h-7 text-sm w-36"}):o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx("span",{className:"font-medium text-sm",children:m.name}),m.exclusive_to_user_id&&o.jsxs(Se,{variant:"outline",className:"text-xs bg-amber-50 text-amber-700 border-amber-200 dark:bg-amber-950/30 dark:text-amber-300 gap-0.5",children:[o.jsx(ba,{className:"h-3 w-3"}),m.exclusive_user_name||"Exclusive"]})]}),m.description&&o.jsx("p",{className:"text-xs text-muted-foreground truncate max-w-[200px]",children:m.description})]})}),o.jsx(ce,{children:SBe(m.gender)}),o.jsx(ce,{children:n===m.id?o.jsxs(_r,{value:r.age_category||"",onValueChange:b=>u(w=>({...w,age_category:b})),children:[o.jsx(lr,{className:"h-7 text-xs w-24",children:o.jsx(Nr,{})}),o.jsxs(cr,{children:[o.jsx(Ke,{value:"young",children:"Young"}),o.jsx(Ke,{value:"middle",children:"Middle"}),o.jsx(Ke,{value:"mature",children:"Mature"})]})]}):o.jsx("span",{className:"text-sm capitalize",children:m.age_category||" - "})}),o.jsx(ce,{children:n===m.id?o.jsxs(_r,{value:r.energy_level||"",onValueChange:b=>u(w=>({...w,energy_level:b})),children:[o.jsx(lr,{className:"h-7 text-xs w-24",children:o.jsx(Nr,{})}),o.jsxs(cr,{children:[o.jsx(Ke,{value:"low",children:"Low"}),o.jsx(Ke,{value:"medium",children:"Medium"}),o.jsx(Ke,{value:"high",children:"High"})]})]}):o.jsx("span",{className:"text-sm capitalize",children:m.energy_level||" - "})}),o.jsx(ce,{children:jBe(m.voice_type)}),o.jsx(ce,{children:o.jsx(Se,{variant:m.is_active?"default":"secondary",className:"text-xs",children:m.is_active?"Active":"Inactive"})}),o.jsx(ce,{children:o.jsxs("div",{className:"flex items-center gap-1 justify-end",children:[o.jsx(K,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>a(m),title:"Play preview",children:t===m.id?o.jsx(G3,{className:"h-3.5 w-3.5"}):o.jsx(K3,{className:"h-3.5 w-3.5"})}),n===m.id?o.jsxs(o.Fragment,{children:[o.jsx(K,{variant:"ghost",size:"icon",className:"h-7 w-7 text-green-600",onClick:()=>c(m.id),children:o.jsx(ft,{className:"h-3.5 w-3.5"})}),o.jsx(K,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:l,children:o.jsx(xa,{className:"h-3.5 w-3.5"})})]}):o.jsx(K,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>s(m),title:"Edit",children:o.jsx(ab,{className:"h-3.5 w-3.5"})}),o.jsx(K,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>h(m),title:"Permissions",children:o.jsx(Z3,{className:"h-3.5 w-3.5"})}),o.jsx(K,{variant:"ghost",size:"icon",className:"h-7 w-7 text-destructive",onClick:()=>d(m.id),title:"Deactivate",children:o.jsx(J3,{className:"h-3.5 w-3.5"})})]})})]},m.id))})]})}),Fw="vis_n8n_Kj7mP9xQ2wR4tY6uI8oL0pZsXcVbNm3a";function Bw(e){return`https://hhzqlaygxohfpedujlsm.supabase.co/functions/v1/${e}`}const NBe=()=>{const e=xo(),[t,n]=g.useState(null),[r,i]=g.useState(null),[a,s]=g.useState(null),[l,c]=g.useState({}),[u,h]=g.useState(null),[d,f]=g.useState(!1),[p,v]=g.useState(null),[m,y]=g.useState(null),{data:b=[],isLoading:w}=St({queryKey:["admin","voices"],queryFn:async()=>{const{data:O,error:M}=await X.from("voices").select("*").order("priority_order",{ascending:!0});if(M)throw M;return O},staleTime:3e4}),{data:x=[]}=St({queryKey:["admin","users-list"],queryFn:async()=>{const{data:O,error:M}=await X.from("users").select("id, full_name, email, business_name, is_active").eq("is_active",!0).order("full_name",{ascending:!0});if(M)throw M;return O??[]},staleTime:6e4}),S=g.useMemo(()=>{const O=new Map(x.map(M=>[M.id,M.full_name||M.business_name||M.email]));return b.map(M=>({...M,exclusive_user_name:M.exclusive_to_user_id&&O.get(M.exclusive_to_user_id)||null}))},[b,x]),j=g.useCallback(O=>{if(t===O.id){r==null||r.pause(),n(null);return}if(!O.sample_audio_url){Oe.info("No audio sample available");return}r==null||r.pause();const M=new Audio(O.sample_audio_url);M.onended=()=>n(null),M.play(),i(M),n(O.id)},[t,r]),N=O=>{s(O.id),c({name:O.name,description:O.description,age_category:O.age_category,energy_level:O.energy_level})},_=()=>{s(null),c({})},P=async O=>{try{if(!(await fetch(Bw("n8n-update-voice"),{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":Fw},body:JSON.stringify({voice_id:O,updates:l})})).ok)throw new Error("Failed to update voice");Oe.success("Voice updated"),s(null),c({}
701),e.invalidateQueries({queryKey:["admin","voices"]})}catch(M){Oe.error(M.message)}},A=async O=>{if(confirm("Deactivate this voice?"))try{if(!(await fetch(Bw("n8n-delete-voice"),{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":Fw},body:JSON.stringify({voice_id:O})})).ok)throw new Error("Failed to delete voice");Oe.success("Voice deactivated"),e.invalidateQueries({queryKey:["admin","voices"]})}catch(M){Oe.error(M.message)}},k=O=>v(O),C=(O,M)=>{O.preventDefault(),y(M)},E=async()=>{if(p===null||m===null||p===m){v(null),y(null);return}const O=[...S],[M]=O.splice(p,1);O.splice(m,0,M),v(null),y(null),e.setQueryData(["admin","voices"],O);try{if(!(await fetch(Bw("n8n-update-voice"),{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":Fw},body:JSON.stringify({action:"reorder",voice_ids:O.map(L=>L.id)})})).ok)throw new Error("Failed to reorder");Oe.success("Order updated"),e.invalidateQueries({queryKey:["admin","voices"]})}catch($){Oe.error($.message),e.invalidateQueries({queryKey:["admin","voices"]})}},I=u?S.find(O=>O.id===u.id):null;return o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(j9,{className:"h-5 w-5 text-primary"}),o.jsx("h2",{className:"text-lg font-semibold",children:"Voice Management"}),o.jsxs(Se,{variant:"secondary",className:"text-xs",children:[b.length," voices"]})]}),o.jsxs(K,{size:"sm",onClick:()=>f(!0),children:[o.jsx(Y3,{className:"h-4 w-4 mr-1.5"}),"Create Voice"]})]}),o.jsx(ze,{children:o.jsx(Ue,{className:"p-0",children:w?o.jsx("div",{className:"p-6 space-y-3",children:Array.from({length:6}).map((O,M)=>o.jsx(De,{className:"h-12 w-full"},M))}):S.length===0?o.jsx("div",{className:"p-8 text-center text-muted-foreground text-sm",children:"No voices found. Create one to get started."}):o.jsx(_Be,{voices:S,playingId:t,editingId:a,editData:l,overIdx:m,onPlay:j,onStartEdit:N,onCancelEdit:_,onSaveEdit:P,onSetEditData:c,onPermissions:h,onDelete:A,onDragStart:k,onDragOver:C,onDragEnd:E})})}),u&&o.jsx(vBe,{voice:u,open:!!u,onClose:()=>h(null),exclusiveToUserId:I==null?void 0:I.exclusive_to_user_id,exclusiveUserName:I==null?void 0:I.exclusive_user_name}),o.jsx(wBe,{open:d,onClose:()=>f(!1),onCreated:()=>e.invalidateQueries({queryKey:["admin","voices"]})})]})};function PBe(e){return St({queryKey:["admin","brainPrompts",e],queryFn:async()=>{const{data:t,error:n}=await X.from("brain_prompts").select("*").eq("brain_type",e).eq("is_active",!0).order("prompt_key",{ascending:!0});if(n)throw n;return t??[]},staleTime:3e4})}function ABe(e){return St({queryKey:["admin","brainPromptDefaults",e],queryFn:async()=>{var a;const{data:t,error:n}=await X.functions.invoke("admin-get-prompt-defaults");if(n)throw n;const r=((a=t==null?void 0:t.defaults)==null?void 0:a[e])??[],i={};for(const s of r)i[s.prompt_key]=s;return{list:r,map:i}},staleTime:5*6e4})}function CBe(){const e=xo();return t5({mutationFn:async({id:t,prompt_text:n})=>{const{error:r}=await X.from("brain_prompts").update({prompt_text:n}).eq("id",t);if(r)throw r},onSuccess:()=>{e.invalidateQueries({queryKey:["admin","brainPrompts"]})}})}function EBe(){const e=xo();return t5({mutationFn:async t=>{const{error:n}=await X.from("brain_prompts").insert(t);if(n)throw n},onSuccess:()=>{e.invalidateQueries({queryKey:["admin","brainPrompts"]})}})}function kBe(e,t=1,n=20){return St({queryKey:["admin","brainOutcomes",e,t],queryFn:async()=>e==="facilitator"?TBe(t,n):OBe(e,t,n),staleTime:3e4})}async function TBe(e,t){const n=(e-1)*t,{data:r,error:i,count:a}=await X.from("action_log").select("id, action, status, created_at, user_id, details, source, user:users!action_log_user_id_fkey(full_name, business_name, email)",{count:"exact"}).eq("action","facilitator_decide").order("created_at",{ascending:!1}).range(n,n+t-1);if(i)throw i;return{items:r??[],total:a??0}}async function OBe(e,t,n){const r=(t-1)*n;let i=X.from("work_items").select("id, user_id, campaign_id, status, created_at, agent_outputs, caption, content_plan, platform_content, video_status, video_config, current_phase,
701campaign:campaigns!work_items_campaign_id_fkey(name, topic), user:users!work_items_user_id_fkey(full_name, business_name, email)",{count:"exact"}).order("created_at",{ascending:!1}).range(r,r+n-1);e==="reel"?i=i.in("video_status",["pending","processing","complete","failed"]):e==="story"?i=i.in("current_phase",["story_clip","story_image"]):i=i.eq("video_status","not_started").not("current_phase","in",'("story_clip","story_image")');const{data:a,error:s,count:l}=await i;if(s)throw s;return{items:a??[],total:l??0}}const DM=[{value:"facilitator",label:"Facilitator"},{value:"story",label:"Story Brain"},{value:"carousel",label:"Carousel Brain"},{value:"reel",label:"Reel Brain"}],IBe=()=>{const[e,t]=g.useState("facilitator");return o.jsxs("div",{className:"space-y-6",dir:"ltr",style:{direction:"ltr",textAlign:"left"},children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(s9,{className:"h-6 w-6 text-primary"}),o.jsxs("div",{children:[o.jsx("h2",{className:"text-xl font-semibold",children:"Prompt Optimization"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Edit prompt sections to customize AI behavior. Each section controls a specific part of the system prompt used at runtime."})]})]}),o.jsxs(wH,{value:e,onValueChange:n=>t(n),children:[o.jsx(qC,{children:DM.map(n=>o.jsx($y,{value:n.value,children:n.label},n.value))}),DM.map(n=>o.jsx(Ly,{value:n.value,children:o.jsx(RBe,{brainType:n.value})},n.value))]})]})};function RBe({brainType:e}){return o.jsxs("div",{className:"space-y-8",children:[o.jsx(DBe,{brainType:e}),o.jsx($Be,{brainType:e})]})}function DBe({brainType:e}){const{data:t,isLoading:n}=PBe(e),r=e==="facilitator",{data:i}=ABe(e),a=CBe(),s=EBe(),[l,c]=g.useState(null),[u,h]=g.useState(""),[d,f]=g.useState(!1),[p,v]=g.useState(""),[m,y]=g.useState(""),[b,w]=g.useState(""),x=(()=>{const P=[],A=new Set;for(const k of t??[]){const C=i==null?void 0:i.map[k.prompt_key];P.push({id:k.id,prompt_key:k.prompt_key,prompt_text:k.prompt_text,description:k.description??(C==null?void 0:C.description)??null,version:k.version,updated_at:k.updated_at,isVirtual:!1,defaultText:(C==null?void 0:C.default_text)??"",defaultDescription:(C==null?void 0:C.description)??""}),A.add(k.prompt_key)}if(i)for(const k of i.list)A.has(k.prompt_key)||P.push({id:null,prompt_key:k.prompt_key,prompt_text:"",description:k.description,version:1,updated_at:new Date().toISOString(),isVirtual:!0,defaultText:k.default_text,defaultDescription:k.description});return P})(),S=P=>{var A;c(P.prompt_key),h((A=P.prompt_text)!=null&&A.trim()?P.prompt_text:P.defaultText)},j=async P=>{try{P.id?await a.mutateAsync({id:P.id,prompt_text:u}):await s.mutateAsync({brain_type:e,prompt_key:P.prompt_key,prompt_text:u,description:P.defaultDescription||void 0}),Oe.success("Prompt section saved - will apply on next generation"),c(null)}catch(A){Oe.error(A.message)}},N=async P=>{try{P.id&&await a.mutateAsync({id:P.id,prompt_text:""}),Oe.success(`Reset "${P.prompt_key}" to default`),c(null)}catch(A){Oe.error(A.message)}},_=async()=>{if(!p.trim())return Oe.error("Key is required");try{await s.mutateAsync({brain_type:e,prompt_key:p.trim(),prompt_text:b,description:m||void 0}),Oe.success("Prompt section created"),f(!1),v(""),y(""),w("")}catch(P){Oe.error(P.message)}};return n?o.jsx(De,{className:"h-48 w-full"}):o.jsxs(ze,{children:[o.jsxs(pt,{className:"flex flex-row items-center justify-between",children:[o.jsxs("div",{children:[o.jsx(mt,{className:"text-lg",children:r?"Prompt Sections":"Prompt Sections (Addenda)"}),o.jsx(wA,{className:"mt-1",children:r?'Each section controls a specific part of the system prompt. Click "Edit" - the editor pre-fills with the current default so you can tweak a few words. Save to apply your override on the next generation.':'Each section maps to a runtime stage of this brain. Click "Edit" - the editor pre-fills with the dynamically-built base prompt rendered with sample inputs (placeholders like [topic] are illustrative). Anything you save is APPENDED to the runtime base prompt as "--- ADMIN PROMPT ADDENDUM ---". Leave empty for default behavior.'})]}),o.jsxs(K,{size:"sm",variant:"outline",onClick:()=>f(!d),children:[o.jsx(Y3,{className:"h-4 w-4 mr-1"})," Add Section"]})]}),o.jsxs(Ue,{className:"space-y-4",children:[d&&o.jsxs("div",{className:"border rounded-md p-4 space-y-3 bg-muted/30",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx(Bt,{placeholder:"prompt_key (e.g. language_rules)",value:p,onChange:P=>v(P.target.value),className:"max-w-xs"}),o.jsx(Bt,{placeholder:"Description",value:m,onChange:P=>y(P.target.value),className:"flex-1"})]}),o.jsx(jd,{placeholder:"Section text...",value:b,onChange:P=>w(P.target.value),rows:6,className:"font-mono text-xs"}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx(K,{size:"sm",onClick:_,disabled:s.isPending,children:"Save"}),o.jsx(K,{size:"sm",variant:"ghost",onClick:()=>f(!1),children:"Cancel"})]})]}),x.length===0&&!d&&o.jsxs("div",{className:"flex items-start gap-3 p-4 border rounded-md bg-muted/20",children:[o.jsx($h,{className:"h-5 w-5 text-muted-foreground mt-0.5 shrink-0"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"No prompt sections configured."})]}),x.map(P=>
701o.jsx(MBe,{row:P,isFacilitator:r,isEditing:l===P.prompt_key,editText:u,onEditTextChange:h,onStartEdit:()=>S(P),onSave:()=>j(P),onReset:()=>N(P),onLoadDefault:()=>h(P.defaultText),isSaving:a.isPending||s.isPending,onCancel:()=>c(null)},P.prompt_key))]})]})}function MBe({row:e,isFacilitator:t,isEditing:n,editText:r,onEditTextChange:i,onStartEdit:a,onSave:s,onReset:l,onLoadDefault:c,isSaving:u,onCancel:h}){const d=e.prompt_text.trim().length>0,[f,p]=g.useState(!1),v=e.defaultText.trim().length>0;return o.jsxs("div",{className:"border rounded-md p-4 space-y-3",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Se,{variant:"secondary",children:e.prompt_key}),o.jsxs("span",{className:"text-xs text-muted-foreground",children:["v",e.version]}),d?o.jsx(Se,{variant:"default",className:"text-xs",children:t?"Overridden":"Active"}):o.jsx(Se,{variant:"outline",className:"text-xs",children:t?"Using default":"Empty - using defaults"})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[!e.isVirtual&&o.jsxs("span",{className:"text-xs text-muted-foreground",children:["Updated ",Vb(new Date(e.updated_at),"MMM d, HH:mm")]}),n?o.jsxs("div",{className:"flex gap-1",children:[o.jsxs(K,{size:"sm",onClick:s,disabled:u,children:[o.jsx(N9,{className:"h-4 w-4 mr-1"})," Save"]}),v&&o.jsxs(K,{size:"sm",variant:"outline",onClick:c,disabled:u,title:"Replace editor content with the rendered default base prompt",children:[o.jsx(rv,{className:"h-3.5 w-3.5 mr-1"})," Load Default"]}),d&&!e.isVirtual&&o.jsxs(K,{size:"sm",variant:"outline",onClick:l,disabled:u,children:[o.jsx(rv,{className:"h-3.5 w-3.5 mr-1"})," Reset to Default"]}),o.jsx(K,{size:"sm",variant:"ghost",onClick:h,children:"Cancel"})]}):o.jsx(K,{size:"sm",variant:"outline",onClick:a,children:"Edit"})]})]}),e.description&&o.jsxs("div",{className:"flex items-start gap-2 text-xs text-muted-foreground bg-muted/30 rounded p-2",children:[o.jsx(b9,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"}),o.jsx("span",{children:e.description})]}),n?o.jsxs("div",{className:"space-y-1",children:[o.jsx("p",{className:"text-xs text-muted-foreground",children:t?"The editor was pre-filled with the current default - tweak a few words or rewrite freely. Saving overrides the default for this section.":'The editor is pre-filled with the rendered default base prompt (sample inputs shown as placeholders). Anything you save is appended to the runtime base prompt as "--- ADMIN PROMPT ADDENDUM ---".'}),t&&o.jsxs("p",{className:"text-xs text-warning",children:["Tip: Use ","{{LANGUAGE_NAME}}"," as a placeholder for the user's preferred language (replaced at runtime)."]}),o.jsx(jd,{value:r,onChange:m=>i(m.target.value),rows:20,className:"font-mono text-xs",placeholder:t?"Section text...":"Enter additional instructions to append to the base prompt..."})]}):d?o.jsxs("pre",{className:"bg-muted/50 p-3 rounded text-xs font-mono max-h-64 overflow-y-auto whitespace-pre-wrap",children:[e.prompt_text.slice(0,3e3),e.prompt_text.length>3e3?"...":""]}):o.jsx("p",{className:"text-xs text-muted-foreground italic p-2",children:t?'Using hardcoded default. Click "Edit" to tweak it (the editor will be pre-filled with the default text).':'No addendum set. Click "Edit" to view the default base prompt and append extra instructions.'}),v&&o.jsxs("div",{className:"border-t pt-2",children:[o.jsxs(K,{size:"sm",variant:"ghost",className:"text-xs h-7 px-2",onClick:()=>p(m=>!m),children:[f?"Hide":"View"," ",t?"hardcoded default":"rendered default base prompt"," (",e.defaultText.length.toLocaleString()," chars)"]}),f&&o.jsx("pre",{className:"mt-2 bg-muted/30 p-3 rounded text-xs font-mono max-h-80 overflow-y-auto whitespace-pre-wrap border border-dashed",children:e.defaultText})]})]})}function $Be({brainType:e}){var u,h;const[t,n]=g.useState(1),{data:r,isLoading:i}=kBe(e,t),[a,s]=g.useState(null),l=r?Math.ceil(r.total/20):0,c=e==="facilitator";return o.jsxs(ze,{children:[o.jsxs(pt,{children:[o.jsx(mt,{className:"text-lg",children:c?"Facilitator Decisions":"Generation Outcomes"}),o.jsx(wA,{children:c?"Recent facilitator decisions showing user messages, actions taken, and GPT reasoning.":"Recent content generation outcomes. Click to view agent outputs and prompt traces."})]}),o.jsxs(Ue,{children:[i?o.jsx(De,{className:"h-64 w-full"}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"rounded-md border overflow-auto",children:o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{children:"Date"}),o.jsx(ue,{children:"User"}),c?o.jsxs(o.Fragment,{children:[o.jsx(ue,{children:"User Message"}),o.jsx(ue,{children:"Action"}),o.jsx(ue,{children:"Status"})]}):o.jsxs(o.Fragment,{children:[o.jsx(ue,{children:"Topic / Campaign"}),o.jsx(ue,{children:"Status"}),o.jsx(ue,{children:"Phase"})]}),o.jsx(ue,{className:"w-10"})]})}),o.jsxs(Zn,{children:[r==null?void 0:r.items.map(d=>{var f,p,v,m,y,b,w,x,S,j;return o.jsxs(rt,{className:"cursor-pointer hover:bg-muted/60",onClick:()=>s(d),children:[o.jsx(ce,{className:"text-xs",children:Vb(new Date(d.created_at),"MMM d, HH:mm")}
701),o.jsx(ce,{className:"text-sm",children:((f=d.user)==null?void 0:f.business_name)||((p=d.user)==null?void 0:p.full_name)||((v=d.user)==null?void 0:v.email)||" - "}),c?o.jsxs(o.Fragment,{children:[o.jsx(ce,{className:"text-sm max-w-[200px] truncate",children:((m=d.details)==null?void 0:m.user_message)||" - "}),o.jsx(ce,{children:o.jsx(Se,{variant:((y=d.details)==null?void 0:y.final_action)==="chat"?"secondary":"default",children:((b=d.details)==null?void 0:b.final_action)||d.action})}),o.jsx(ce,{children:o.jsx(Se,{variant:d.status==="success"?"default":d.status==="error"?"destructive":"secondary",children:d.status})})]}):o.jsxs(o.Fragment,{children:[o.jsx(ce,{className:"text-sm max-w-[200px] truncate",children:((w=d.campaign)==null?void 0:w.topic)||((x=d.campaign)==null?void 0:x.name)||((S=d.caption)==null?void 0:S.slice(0,50))||" - "}),o.jsx(ce,{children:o.jsx(Se,{variant:d.status==="published"?"default":d.status==="failed"?"destructive":"secondary",children:d.status})}),o.jsx(ce,{className:"text-xs text-muted-foreground",children:((j=d.video_config)==null?void 0:j.sub_format)==="image"?"story_image":d.current_phase||" - "})]}),o.jsx(ce,{children:o.jsx(Pu,{className:"h-4 w-4 text-muted-foreground"})})]},d.id)}),(r==null?void 0:r.items.length)===0&&o.jsx(rt,{children:o.jsx(ce,{colSpan:6,className:"text-center text-muted-foreground py-8",children:"No outcomes found for this brain type."})})]})]})}),l>1&&o.jsxs("div",{className:"flex items-center justify-between mt-4",children:[o.jsxs("span",{className:"text-sm text-muted-foreground",children:[r==null?void 0:r.total," total items"]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(K,{size:"sm",variant:"outline",disabled:t<=1,onClick:()=>n(t-1),children:o.jsx(B3,{className:"h-4 w-4"})}),o.jsxs("span",{className:"text-sm",children:["Page ",t," / ",l]}),o.jsx(K,{size:"sm",variant:"outline",disabled:t>=l,onClick:()=>n(t+1),children:o.jsx(EN,{className:"h-4 w-4"})})]})]})]}),o.jsx(Xp,{open:!!a,onOpenChange:()=>s(null),children:o.jsxs(Nd,{className:"max-w-3xl max-h-[85vh] overflow-y-auto",children:[o.jsx(Pd,{children:o.jsx(Ad,{children:c?`Facilitator Decision - ${((u=a==null?void 0:a.details)==null?void 0:u.final_action)||"unknown"}`:`Agent Outputs - ${((h=a==null?void 0:a.campaign)==null?void 0:h.topic)||"Work Item"}`})}),a&&(c?o.jsx(LBe,{item:a}):o.jsx(VBe,{item:a}))]})})]})]})}function LBe({item:e}){var r,i,a;const t=e.details||{},n=t.prompts_used||null;return o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"User:"})," ",((r=e.user)==null?void 0:r.business_name)||((i=e.user)==null?void 0:i.full_name)||((a=e.user)==null?void 0:a.email)]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Status:"})," ",e.status]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Original Action:"})," ",t.original_action||" - "]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Final Action:"})," ",t.final_action||" - "]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"State:"})," ",t.state_before," â ",t.state_after]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Section Overrides:"})," ",t.section_override_count??(t.had_addendum?"Yes (legacy)":"None")]}),t.system_prompt_length&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"System Prompt:"})," ",t.system_prompt_length.toLocaleString()," chars"]})]}),t.user_message&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"User Message"}),o.jsx("p",{className:"text-sm bg-muted/50 p-3 rounded whitespace-pre-wrap",children:t.user_message})]}),t.response_message&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Bot Response"}),o.jsx("p",{className:"text-sm bg-muted/50 p-3 rounded whitespace-pre-wrap",children:t.response_message})]}),t.reasoning&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"GPT Reasoning"}),o.jsx("p",{className:"text-sm bg-muted/50 p-3 rounded whitespace-pre-wrap",children:t.reasoning})]}),t.wizard_update&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Wizard Update"}),o.jsx("pre",{className:"text-xs bg-muted/50 p-3 rounded overflow-x-auto",children:JSON.stringify(t.wizard_update,null,2)})]}),t.content_specs&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Content Specs"}),o.jsx("pre",{className:"text-xs bg-muted/50 p-3 rounded overflow-x-auto",children:JSON.stringify(t.content_specs,null,2)})]}),t.batch_actions&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Batch Actions"}),o.jsx("pre",{className:"text-xs bg-muted/50 p-3 rounded overflow-x-auto",children:JSON.stringify(t.batch_actions,null,2)})]}),n&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Prompts Used"}),o.jsx("pre",{className:"text-xs bg-muted/50 p-3 rounded overflow-x-auto max-h-48",children:JSON.stringify(n,null,2)})]}),t.full_decision&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Full GPT Decision"}),o.jsx("pre",{className:"text-xs bg-muted/50 p-3 rounded overflow-x-auto max-h-64",children:JSON.stringify(t.full_decision,null,2)})]})]})}function VBe({item:e}){var r,i,a,s;const t=e.agent_outputs||{},n=e.content_plan||{};return o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Status:"})," ",e.status]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Phase:"})," ",((r=e.video_config)==null?void 0:r.sub_format)==="image"?"story_image":e.current_phase||" - "]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Campaign:"})," ",((i=e.campaign)==null?void 0:i.name)||" - "]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"User:"})," ",((a=e.user)==null?void 0:a.business_name)||((s=e.user)==null?void 0:s.full_name)]})]}),e.caption&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Caption"}),o.jsx("p",{className:"text-sm bg-muted/50 p-3 rounded whitespace-pre-wrap",children:e.caption})]}),Object.keys(n).length>0&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Content Plan"}),o.jsx("pre",{className:"text-xs bg-muted/50 p-3 rounded overflow-x-auto max-h-48",children:JSON.stringify(n,null,2)})]}),Object.keys(t).length>0&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Agent Outputs"}),o.jsx("pre",{className:"text-xs bg-muted/50 p-3 rounded overflow-x-auto max-h-96",children:JSON.stringify(t,null,2)})]}),e.platform_content&&Object.keys(e.platform_content).length>0&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Platform Content"}),o.jsx("pre",{className:"text-xs bg-muted/50 p-3 rounded overflow-x-auto max-h-64",children:JSON.stringify(e.platform_content,null,2)})]}),e.video_config&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-1",children:"Video Config"}),o.jsx("pre",{className:"text-xs bg-muted/50 p-3 rounded overflow-x-auto max-h-48",children:JSON.stringify(e.video_config,null,2)})]})]})}function FBe(){return St({queryKey:["admin-contact-messages"],queryFn:async()=>{const{data:e,error:t}=await X.from("contact_messages").select("*").order("created_at",{ascending:!1}).limit(200);if(t)throw t;return e??[]},refetchInterval:3e4})}const MM={general:"General",support:"Support",billing:"Billing",partnership:"Partnership",feedback:"Feedback",other:"Other"},BBe=()=>{const{data:e,isLoading:t,error:n}=FBe(),[r,i]=g.useState(null);return t?o.jsxs("div",{className:"space-y-4",children:[o.jsx("h2",{className:"text-lg font-semibold",children:"Contact Messages"}),[...Array(5)].map((a,s)=>o.jsx(De,{className:"h-12 w-full"},s))]}):n?o.jsxs("div",{className:"text-destructive",children:["Failed to load messages: ",n.message]}):o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[o.jsx(co,{className:"h-5 w-5"}),"Contact Messages"]}),o.jsxs(Se,{variant:"secondary",children:[(e==null?void 0:e.length)??0," messages"]})]}),e!=null&&e.length?o.jsx("div",{className:"rounded-md border",children:o.jsxs(Jn,{children:[o.jsx(Qn,{children:o.jsxs(rt,{children:[o.jsx(ue,{className:"w-[140px]",children:"Date"}),o.jsx(ue,{className:"w-[160px]",children:"Name"}),o.jsx(ue,{className:"w-[200px]",children:"Email"}),o.jsx(ue,{className:"w-[120px]",children:"Subject"}),o.jsx(ue,{children:"Message"}),o.jsx(ue,{className:"w-[80px]"})]})}),o.jsx(Zn,{children:e.map(a=>o.jsxs(rt,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>i(a),children:[o.jsx(ce,{className:"text-xs text-muted-foreground",children:new Date(a.created_at).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}),o.jsx(ce,{className:"font-medium",children:a.name}),o.jsx(ce,{className:"text-sm",children:a.email}),o.jsx(ce,{children:o.jsx(Se,{variant:"outline",className:"text-xs",children:MM[a.subject]??a.subject})}),o.jsx(ce,{className:"max-w-xs truncate text-sm text-muted-foreground",children:a.message}),o.jsx(ce,{children:o.jsx(K,{size:"sm",variant:"ghost",onClick:s=>{s.stopPropagation(),window.open(`mailto:${a.email}?subject=Re: ${encodeURIComponent(a.subject)}`,"_blank")},children:o.jsx(z3,{className:"h-4 w-4"})})})]},a.id))})]})}):o.jsx("p",{className:"text-muted-foreground text-sm",children:"No contact messages yet."}),o.jsx(Xp,{open:!!r,onOpenChange:()=>i(null),children:o.jsxs(Nd,{className:"max-w-lg",children:[o.jsx(Pd,{children:o.jsxs(Ad,{children:["Message from ",r==null?void 0:r.name]})}),r&&o.jsxs("div",{className:"space-y-3 text-sm",children:[o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-muted-foreground",children:"Email"}),o.jsx("a",{href:`mailto:${r.email}`,className:"text-primary hover:underline",children:r.email})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-muted-foreground",children:"Subject"}),o.jsx(Se,{variant:"outline",children:MM[r.subject]??r.subject})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-muted-foreground",children:"Date"}
701),o.jsx("span",{children:new Date(r.created_at).toLocaleString()})]}),o.jsx("hr",{}),o.jsx("p",{className:"whitespace-pre-wrap leading-relaxed",children:r.message}),o.jsxs(K,{className:"w-full",onClick:()=>window.open(`mailto:${r.email}?subject=Re: ${encodeURIComponent(r.subject)}`,"_blank"),children:[o.jsx(co,{className:"h-4 w-4 mr-2"}),"Reply via Email"]})]})]})})]})},A_="860232950322485",HC=()=>`${window.location.origin}/auth/instagram/callback`,$M=["instagram_business_basic","instagram_business_content_publish","instagram_business_manage_messages"].join(",");function SH(){const e=new Uint8Array(32);return crypto.getRandomValues(e),Array.from(e,t=>t.toString(16).padStart(2,"0")).join("")}function jH(e){localStorage.setItem("instagram_oauth_state",e)}function _H(){return localStorage.getItem("instagram_oauth_state")}function C_(){localStorage.removeItem("instagram_oauth_state")}function NH(e){const t=HC();console.log("=== Instagram OAuth Debug ==="),console.log("App ID:",A_),console.log("Redirect URI:",t),console.log("Scopes:",$M),console.log("Copy this exact URI to Meta Developer Console â Instagram â Instagram Basic Display â Valid OAuth Redirect URIs");const r=`https://api.instagram.com/oauth/authorize?${new URLSearchParams({client_id:A_,redirect_uri:t,scope:$M,response_type:"code",state:e})}`;return console.log("Full auth URL:",r),r}function PH(){return!!A_}function AH(){const e=SH();jH(e);const t=NH(e);window.location.href=t}const zBe=Object.freeze(Object.defineProperty({__proto__:null,clearStoredStateToken:C_,generateStateToken:SH,getInstagramAuthUrl:NH,getRedirectUri:HC,getStoredStateToken:_H,initiateInstagramOAuth:AH,isInstagramConfigured:PH,storeStateToken:jH},Symbol.toStringTag,{value:"Module"}));const LM={he:"××××¨×ª× ×ת ×××× ×¡××ר×! ×שר ×ת ×ת××× ×©×× â
",en:"I connected my Instagram! Please approve my content â
",ar:"ÙÙØ¯ ربطت Ø§ÙØ§ÙستغراÙ
! ÙØ±Ø¬Ù اÙÙ
ÙØ§ÙÙØ© عÙ٠اÙÙ
ØØªÙÙ â
",ru:"Я подклÑÑил Instagram! ÐожалÑйÑÑа, одобÑиÑе мой конÑÐµÐ½Ñ â
",es:"¡Conecté Instagram! Por favor aprueba mi contenido â
",fr:"J'ai connecté Instagram ! Veuillez approuver mon contenu â
",de:"Ich habe Instagram verbunden! Bitte genehmige meinen Inhalt â
",pt:"Conectei o Instagram! Por favor aprove meu conteúdo â
"},VM={he:{processing:"×××ר ×ת ×××× ×¡××ר×...",success:"××ש××× ×××ר ××צ×××!",redirecting:"××¢××ר ×××ª× ××××¨× ×××××ס×פ...",error:"×××××ר × ×ש×",tryAgain:"× ×¡× ×©××",dashboard:"×××ש××ר×",connected:"×××ר ××צ×××"},en:{processing:"Connecting Instagram...",success:"Account Connected!",redirecting:"Redirecting you back to WhatsApp...",error:"Connection Failed",tryAgain:"Try Again",dashboard:"Go to Dashboard",connected:"Successfully connected"},ar:{processing:"جار٠ربط Ø§ÙØ§ÙستغراÙ
...",success:"تÙ
ربط Ø§ÙØØ³Ø§Ø¨ Ø¨ÙØ¬Ø§Ø!",redirecting:"جار٠إعادة ØªÙØ¬ÙÙ٠إÙÙ ÙØ§ØªØ³Ø§Ø¨...",error:"ÙØ´Ù Ø§ÙØ§ØªØµØ§Ù",tryAgain:"ØØ§ÙÙ Ù
رة أخرÙ",dashboard:"Ø§ÙØ°Ùاب ÙÙÙØØ© Ø§ÙØªØÙÙ
",connected:"تÙ
Ø§ÙØ±Ø¨Ø· Ø¨ÙØ¬Ø§Ø"},ru:{processing:"ÐодклÑÑение Instagram...",success:"ÐккаÑÐ½Ñ Ð¿Ð¾Ð´ÐºÐ»ÑÑÑн!",redirecting:"ÐеÑенапÑавлÑем Ð²Ð°Ñ Ð¾Ð±ÑаÑно в WhatsApp...",error:"ÐÑибка подклÑÑениÑ",tryAgain:"ÐопÑобоваÑÑ Ñнова",dashboard:"Ðа Ð¿Ð°Ð½ÐµÐ»Ñ ÑпÑавлениÑ",connected:"УÑпеÑно подклÑÑено"},es:{processing:"Conectando Instagram...",success:"¡Cuenta conectada!",redirecting:"Redirigiendo a WhatsApp...",error:"Error de conexión",tryAgain:"Reintentar",dashboard:"Ir al panel",connected:"Conectado exitosamente"},fr:{processing:"Connexion Instagram...",success:"Compte connecté !",redirecting:"Redirection vers WhatsApp...",error:"Ãchec de la connexion",tryAgain:"Réessayer",dashboard:"Aller au tableau de bord",connected:"Connecté avec succès"},de:{processing:"Instagram verbinden...",success:"Konto verbunden!",redirecting:"Weiterleitung zurück zu WhatsApp...",error:"Verbindung fehlgeschlagen",tryAgain:"Erneut versuchen",dashboard:"Zum Dashboard",connected:"Erfolgreich verbunden"},pt:{processing:"Conectando Instagram...",success:"Conta conectada!",redirecting:"Redirecionando para WhatsApp...",error:"Falha na conexão",tryAgain:"Tentar novamente",dashboard:"Ir para o painel",connected:"Conectado com sucesso"}},FM=new Set(["he","en","ar","ru","es","fr","de","pt"]),UBe=()=>{const e=zn(),[t,n]=g.useState("processing"),[r,i]=g.useState(null),[a,s]=g.useState(!1),[l,c]=g.useState(null),[u,h]=g.useState("en"),d=VM[u]||VM.en;g.useEffect(()=>{(async()=>{const m=sessionStorage.getItem("instagram_whatsapp_onboarding");let y=!1,b="en",w=null,x=null;if(m)try{const C=JSON.parse(m);y=(C==null?void 0:C.return)==="wa",b=FM.has(C==null?void 0:C.lang)?C.lang:"en",w=typeof(C==null?void 0:C.user_id
701)=="string"?C.user_id:null,x=typeof(C==null?void 0:C.phone)=="string"?C.phone:null,h(b)}catch(C){console.error("[InstagramCallback] Failed to parse WhatsApp context:",C)}if(!x||!w){const C=localStorage.getItem("onboarding_phone"),E=localStorage.getItem("onboarding_user_id"),I=localStorage.getItem("onboarding_language");C&&!x&&(x=C,y=!0),E&&!w&&(w=E),I&&FM.has(I)&&(b=I,h(b))}const S=new URLSearchParams(window.location.search),j=S.get("code"),N=S.get("state"),_=S.get("error"),P=S.get("error_description"),A=S.get("error_reason");if(_){n("error");const C=P||A||"Authorization was denied or cancelled.";console.error("[InstagramCallback] OAuth error from Meta:",{error:_,description:P}),i(C);return}if(!j||!N){n("error"),console.error("[InstagramCallback] Missing params. Expected: ?code=xxx&state=yyy"),i("Invalid callback: missing authorization code or state.");return}const k=_H();if(!k||k!==N){n("error"),console.error("[InstagramCallback] State mismatch:",{stored:k==null?void 0:k.substring(0,10),received:N.substring(0,10)}),i("Security validation failed. Please try connecting again.");return}try{const{data:{user:C}}=await X.auth.getUser(),E=(C==null?void 0:C.id)||w,{data:I,error:O}=await X.functions.invoke("instagram-auth",{body:{code:j,redirect_uri:HC(),...E?{user_id:E}:{},...x?{phone:x}:{}}});if(O)throw new Error(O.message||"Failed to exchange authorization code.");if(!(I!=null&&I.success)){const $=typeof(I==null?void 0:I.error)=="string"?I.error:null;if($==="NO_VALID_SESSION"||$==="USER_PHONE_MISMATCH"){console.warn("[InstagramCallback] Session lost during OAuth round-trip:",$),C_();try{localStorage.removeItem("onboarding_user_id"),localStorage.removeItem("onboarding_phone")}catch{}n("error"),s(!0),i(typeof(I==null?void 0:I.message)=="string"&&I.message||"We lost track of your account during the Instagram redirect. Please sign in again to finish connecting Instagram.");return}throw new Error((I==null?void 0:I.error)||"Failed to connect Instagram account.")}C_();const M=I.username||"your account";if(c(M),n("success"),y&&(x||w)){try{const $=await X.functions.invoke("n8n-complete-instagram-onboarding",{body:{phone:x||void 0,user_id:w||void 0}});$.error&&console.error("[InstagramCallback] Onboarding completion error:",$.error)}catch($){console.error("[InstagramCallback] Failed to complete onboarding:",$)}try{await fetch("https://aa1zxcvvcxz.app.n8n.cloud/webhook/instagram-connected",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_id:w||void 0,phone:x||void 0,lang:b,username:M})})}catch($){console.warn("[InstagramCallback] n8n webhook failed (non-critical):",$)}}setTimeout(async()=>{if(y){Ga(),n("redirecting"),sessionStorage.removeItem("instagram_whatsapp_onboarding"),localStorage.removeItem("onboarding_phone"),localStorage.removeItem("onboarding_user_id"),localStorage.removeItem("onboarding_language");const $="14048263424",L=encodeURIComponent(LM[b]||LM.en),T=`https://wa.me/${$}?text=${L}`;window.location.href=T}else{const $=localStorage.getItem("pending_publish_work_item");if(localStorage.removeItem("pending_publish_work_item"),$){const{data:R}=await X.from("social_accounts_safe").select("id").eq("platform","instagram").eq("is_active",!0).limit(1).single();R!=null&&R.id&&await X.from("work_items").update({target_account_id:R.id,status:"publishing",current_phase:"publishing"}).eq("id",$),Ga(),e("/content",{replace:!0}),_ge($).catch(z=>{console.error("[InstagramCallback] Failed to publish pending work item:",z)});return}const L=localStorage.getItem("instagram_connect_return");localStorage.removeItem("instagram_connect_return");const T=L&&L.startsWith("/")?L:"/content";T!=="/onboarding/web"&&Ga(),e(T,{replace:!0})}},2e3)}catch(C){console.error("[InstagramCallback] OAuth error:",C),n("error"),i(C instanceof Error?C.message:"An unexpected error occurred.")}})()},[e]);const f=()=>{const v=sessionStorage.getItem("instagram_whatsapp_onboarding");if(v)try{const m=JSON.parse(v),y=new URLSearchParams;return m.return==="wa"&&y.set("return","wa"),m.lang&&y.set("lang",m.lang),m.phone&&y.set("phone",m.phone),m.user_id&&y.set("user_id",m.user_id),m.session&&y.set("session",m.session),`/connect/instagram?${y.toString()}`}catch{}return"/accounts"},p=u==="he"||u==="ar";return o.jsx("div",{className:"min-h-screen bg-gradient-to-br from-background via-background to-pink-50/30 dark:to-pink-950/10 flex items-center justify-center p-4",dir:p?"rtl":"ltr",children:o.jsx(Q.div,{initial:{opacity:0,scale:.95}
701,animate:{opacity:1,scale:1},transition:{duration:.3},children:o.jsxs(ze,{className:"w-full max-w-md",children:[o.jsxs(pt,{className:"text-center",children:[o.jsx("div",{className:"mx-auto mb-4 w-16 h-16 rounded-full bg-gradient-to-br from-pink-500 to-purple-500 flex items-center justify-center",children:o.jsx(Au,{className:"h-8 w-8 text-white"})}),o.jsxs(mt,{className:"text-xl",children:[t==="processing"&&d.processing,t==="success"&&d.success,t==="redirecting"&&d.redirecting,t==="error"&&d.error]})]}),o.jsxs(Ue,{className:"text-center space-y-4",children:[t==="processing"&&o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"h-8 w-8 animate-spin text-pink-500 mx-auto"}),o.jsx("p",{className:"text-muted-foreground",children:d.processing})]}),t==="success"&&o.jsxs(o.Fragment,{children:[o.jsx(Q.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:300,damping:20},children:o.jsx(Ip,{className:"h-12 w-12 text-green-500 mx-auto"})}),o.jsxs("p",{className:"text-muted-foreground",children:[d.connected," ",o.jsxs("span",{className:"font-semibold text-foreground",children:["@",l]})]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:d.redirecting.replace("WhatsApp","accounts page")})]}),t==="redirecting"&&o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"h-8 w-8 animate-spin text-green-500 mx-auto"}),o.jsx("p",{className:"text-muted-foreground",children:d.redirecting})]}),t==="error"&&o.jsxs(o.Fragment,{children:[o.jsx(Q.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:300,damping:20},children:o.jsx(Rp,{className:"h-12 w-12 text-destructive mx-auto"})}),o.jsx("p",{className:"text-muted-foreground",children:r}),o.jsxs("div",{className:"flex flex-col gap-2 pt-2",children:[a?o.jsx(K,{onClick:()=>e("/login",{replace:!0}),className:"bg-gradient-to-r from-pink-500 to-purple-500 hover:from-pink-600 hover:to-purple-600 text-white",children:"Sign in"}):o.jsx(K,{onClick:()=>e(f(),{replace:!0}),className:"bg-gradient-to-r from-pink-500 to-purple-500 hover:from-pink-600 hover:to-purple-600 text-white",children:d.tryAgain}),o.jsx(K,{variant:"ghost",onClick:()=>e("/dashboard",{replace:!0}),children:d.dashboard})]})]})]})]})})})};function WBe(){const e=navigator.userAgent;return/Safari/i.test(e)&&!/Chrome|CriOS|FxiOS|EdgiOS|Chromium/i.test(e)}const BM={he:{title:"××ר ×ת ×××× ×¡××ר×",subtitle:"×פשר ×-Visible ××¤×¨×¡× ×ש××",connecting:"×ת××ר...",connect:"××ר ×ת ×××× ×¡××ר×",error:"ש×××× ×××××ר. × ×¡× ×©××.",retry:"× ×¡× ×©××",redirecting:"××¢××ר ×××ª× ××××¨× ×××××ס×פ...",note:"ת××¢×ר ×××× ×××ש×ר ×××××ר. ××ש××× ×©×× ×××× ××××ת ×¢×¡×§× ×× ××צר.",whatsappNote:"â ת×××ר ×××××ס×פ ×××ר ×××××ר",safariWarning:"â ï¸ Safari ×¢××× ××ר×× ×××¢××ת ×××××ר. ×××××¥ ×פת×× ×-Chrome ×××××× ×××§×.",benefits:["×¤×¨×¡× ×ש×ר×ת ×פ×× ×××× ×¡×××¨× ×©××","ת××× ×¤×ס××× ×××× ××××׳×× × ××פ×××××","×¢×§×× ××ר ××צ××¢×× ×× ×ת××××","צ×ר קר×ס××ת ×ר××ס×× ×××××××ת"]},en:{title:"Connect Instagram",subtitle:"Allow Visible to post on your behalf",connecting:"Connecting...",connect:"Connect Instagram",error:"Connection error. Please try again.",retry:"Try Again",redirecting:"Redirecting you back to WhatsApp...",note:"You'll be redirected to Meta to authorize. Your account must be Business or Creator.",whatsappNote:"â You'll be returned to WhatsApp after connecting",safariWarning:"â ï¸ Safari may cause issues with Instagram connection. We recommend opening this page in Chrome for a smoother experience.",benefits:["Post directly to your Instagram feed","Schedule posts for optimal engagement","Track performance and analytics","Create carousels and reels automatically"]},ar:{title:"ربط Ø§ÙØ§ÙستغراÙ
",subtitle:"اسÙ
Ø ÙÙ Visible باÙÙØ´Ø± ÙÙØ§Ø¨Ø© عÙÙ",connecting:"Ø¬Ø§Ø±Ù Ø§ÙØ§ØªØµØ§Ù...",connect:"ربط Ø§ÙØ§ÙستغراÙ
",error:"خطأ ÙÙ Ø§ÙØ§ØªØµØ§Ù. ØØ§ÙÙ Ù
رة أخرÙ.",retry:"ØØ§ÙÙ Ù
رة أخرÙ",redirecting:"جار٠إعادة ØªÙØ¬ÙÙ٠إÙÙ ÙØ§ØªØ³Ø§Ø¨...",note:"ستتÙ
إعادة ØªÙØ¬ÙÙ٠إÙÙ Meta ÙÙØªÙÙÙØ¶. ÙØ¬Ø¨ Ø£Ù ÙÙÙÙ ØØ³Ø§Ø¨Ù تجارÙÙØ§ Ø£Ù ØØ³Ø§Ø¨ ØµØ§ÙØ¹ Ù
ØØªÙÙ.",safariWarning:"â ï¸ ÙØ¯ ÙØ³Ø¨Ø¨ Safari Ù
شاÙÙ ÙÙ Ø§ÙØ§ØªØµØ§Ù. ÙÙØµÙ Ø¨ÙØªØ ÙØ°Ù Ø§ÙØµÙØØ© ÙÙ Chrome.",whatsappNote:"â Ø³ØªØ¹Ùد Ø¥ÙÙ ÙØ§ØªØ³Ø§Ø¨ بعد Ø§ÙØ±Ø¨Ø·",benefits:["Ø§ÙØ´Ø± Ù
باشرة عÙÙ ØµÙØØ© Ø§ÙØ§ÙستغراÙ
","جدÙÙ Ù
ÙØ´Ùرات٠ÙÙØØµÙ٠عÙÙ Ø£ÙØ¶Ù ØªÙØ§Ø¹Ù","تتبع Ø§ÙØ£Ø¯Ø§Ø¡ ÙØ§ÙتØÙÙÙØ§Øª","Ø£ÙØ´Ø¦ ÙØ§Ø±ÙسÙÙØ§Øª ÙØ±ÙÙØ² تÙÙØ§Ø¦ÙÙØ§"]},ru:{title:"ÐодклÑÑиÑÑ Instagram",subtitle:"РазÑеÑиÑе Visible пÑбликоваÑÑ Ð¾Ñ Ð²Ð°Ñего имени",connecting:"ÐодклÑÑение...",connect:"ÐодклÑÑиÑÑ Instagram",error:"ÐÑибка подклÑÑениÑ. ÐопÑобÑйÑе Ñнова.",retry:"ÐопÑобоваÑÑ Ñнова",redirecting:"ÐеÑенапÑавлÑем Ð²Ð°Ñ Ð¾Ð±ÑаÑно в WhatsApp...",note:"ÐÑ Ð±ÑдеÑе пеÑенапÑÐ°Ð²Ð»ÐµÐ½Ñ Ð² Meta Ð´Ð»Ñ Ð°Ð²ÑоÑизаÑии. Ð
701Ð°Ñ Ð°ÐºÐºÐ°ÑÐ½Ñ Ð´Ð¾Ð»Ð¶ÐµÐ½ бÑÑÑ Ð±Ð¸Ð·Ð½ÐµÑ Ð¸Ð»Ð¸ кÑеаÑоÑ.",safariWarning:"â ï¸ Safari Ð¼Ð¾Ð¶ÐµÑ Ð²ÑзваÑÑ Ð¿ÑÐ¾Ð±Ð»ÐµÐ¼Ñ Ñ Ð¿Ð¾Ð´ÐºÐ»ÑÑением. РекомендÑем оÑкÑÑÑÑ ÑÑÑ ÑÑÑаниÑÑ Ð² Chrome.",whatsappNote:"â ÐÑ Ð²ÐµÑнÑÑеÑÑ Ð² WhatsApp поÑле подклÑÑениÑ",benefits:["ÐÑбликÑйÑе напÑÑмÑÑ Ð² ÑÐ²Ð¾Ñ Ð»ÐµÐ½ÑÑ Instagram","ÐланиÑÑйÑе пÑбликаÑии Ð´Ð»Ñ Ð¾Ð¿ÑималÑного оÑ
ваÑа","ÐÑÑлеживайÑе пÑоизводиÑелÑноÑÑÑ Ð¸ аналиÑикÑ","СоздавайÑе каÑÑÑели и ÑилÑÑ Ð°Ð²ÑомаÑиÑеÑки"]},es:{title:"Conectar Instagram",subtitle:"Permite que Visible publique en tu nombre",connecting:"Conectando...",connect:"Conectar Instagram",error:"Error de conexión. Intenta de nuevo.",retry:"Reintentar",redirecting:"Redirigiendo a WhatsApp...",note:"Serás redirigido a Meta para autorizar. Tu cuenta debe ser de Negocio o Creador.",safariWarning:"â ï¸ Safari puede causar problemas con la conexión. Recomendamos abrir esta página en Chrome.",whatsappNote:"â Volverás a WhatsApp después de conectar",benefits:["Publica directamente en tu feed de Instagram","Programa publicaciones para mejor engagement","Rastrea rendimiento y análisis","Crea carruseles y reels automáticamente"]},fr:{title:"Connecter Instagram",subtitle:"Autorisez Visible à publier en votre nom",connecting:"Connexion...",connect:"Connecter Instagram",error:"Erreur de connexion. Veuillez réessayer.",retry:"Réessayer",redirecting:"Redirection vers WhatsApp...",note:"Vous serez redirigé vers Meta pour autoriser. Votre compte doit être Professionnel ou Créateur.",safariWarning:"â ï¸ Safari peut causer des problèmes de connexion. Nous recommandons d'ouvrir cette page dans Chrome.",whatsappNote:"â Vous reviendrez sur WhatsApp après la connexion",benefits:["Publiez directement sur votre fil Instagram","Programmez vos publications pour un engagement optimal","Suivez les performances et analyses","Créez des carrousels et reels automatiquement"]},de:{title:"Instagram verbinden",subtitle:"Erlaube Visible, in deinem Namen zu posten",connecting:"Verbinden...",connect:"Instagram verbinden",error:"Verbindungsfehler. Bitte erneut versuchen.",retry:"Erneut versuchen",redirecting:"Weiterleitung zurück zu WhatsApp...",note:"Du wirst zu Meta weitergeleitet. Dein Konto muss ein Business- oder Creator-Konto sein.",safariWarning:"â ï¸ Safari kann Probleme bei der Verbindung verursachen. Wir empfehlen, diese Seite in Chrome zu öffnen.",whatsappNote:"â Du wirst nach dem Verbinden zu WhatsApp zurückgeleitet",benefits:["Poste direkt auf deinem Instagram-Feed","Plane Posts für optimales Engagement","Verfolge Leistung und Analysen","Erstelle Karussells und Reels automatisch"]},pt:{title:"Conectar Instagram",subtitle:"Permita que o Visible publique em seu nome",connecting:"Conectando...",connect:"Conectar Instagram",error:"Erro de conexão. Tente novamente.",retry:"Tentar novamente",redirecting:"Redirecionando de volta ao WhatsApp...",note:"Você será redirecionado para o Meta para autorizar. Sua conta deve ser Comercial ou Criador.",safariWarning:"â ï¸ O Safari pode causar problemas na conexão. Recomendamos abrir esta página no Chrome.",whatsappNote:"â Você voltará ao WhatsApp após conectar",benefits:["Publique diretamente no seu feed do Instagram","Agende publicações para melhor engajamento","Acompanhe desempenho e análises","Crie carrosséis e reels automaticamente"]}},qBe=new Set(["he","en","ar","ru","es","fr","de","pt"]),HBe=()=>{const[e]=cs(),t=zn(),[n,r]=g.useState(!1),[i,a]=g.useState(!0),[s,l]=g.useState(!1),[c,u]=g.useState(null),[h,d]=g.useState(null),[f]=g.useState(()=>WBe()),[p,v]=g.useState(!1),m=e.get("c"),y=e.get("u"),b=e.get("p"),w=e.get("r"),x=e.get("t");let S={};if(x)try{const F=atob(x.replace(/-/g,"+").replace(/_/g,"/"));S=JSON.parse(F)}catch(F){console.warn("Failed to decode connect token:",F)}const[j,N]=g.useState(null),[_,P]=g.useState(!!m),A=((j==null?void 0:j.return_to)||w||S.r||e.get("return"))==="wa",k=(j==null?void 0:j.lang)||e.get("lang")||"en",C=qBe.has(k)?k:"en",E=(j==null?void 0:j.user_id
701)||y||S.u||e.get("user_id"),I=j!=null&&j.phone?j.phone.startsWith("+")?j.phone:"+"+j.phone:b?b.startsWith("+")?b:"+"+b:S.p||e.get("phone")||null,O=(j==null?void 0:j.session_id)||e.get("session")||null,M=g.useMemo(()=>BM[C]||BM.he,[C]);g.useEffect(()=>{if(!m)return;(async()=>{try{const{data:B,error:W}=await X.from("connect_tokens").select("user_id, phone, return_to, lang, session_id, expires_at").eq("code",m).single();if(W||!B){console.error("[InstagramConnect] Failed to resolve code:",W),P(!1);return}if(new Date(B.expires_at)<new Date){console.warn("[InstagramConnect] Connect token expired"),P(!1);return}N(B)}catch(B){console.error("[InstagramConnect] Code resolution error:",B)}finally{P(!1)}})()},[m]),g.useEffect(()=>{if(!_&&A&&!sessionStorage.getItem("instagram_whatsapp_onboarding")){const B={return:"wa",lang:C,user_id:E||null,phone:I,session:O,timestamp:Date.now()};sessionStorage.setItem("instagram_whatsapp_onboarding",JSON.stringify(B))}},[_]);const $=async F=>{try{l(!0);const{data:B,error:W}=await X.from("onboarding_sessions").select("user_id").eq("phone",F).maybeSingle();if(W)return console.error("[InstagramConnect] Phone lookup error:",W),null;if(B!=null&&B.user_id)return B.user_id;const Z=F.startsWith("+")?F:`+${F}`,{data:fe}=await X.from("onboarding_sessions").select("user_id").eq("phone",Z).maybeSingle();return fe!=null&&fe.user_id?fe.user_id:null}catch(B){return console.error("[InstagramConnect] Phone lookup exception:",B),null}finally{l(!1)}};g.useEffect(()=>{if(_)return;(async()=>{try{const{data:{user:B}}=await X.auth.getUser();if(B){u(B.id),a(!1);return}if(I&&!E){const Z=await $(I);if(Z){const fe=sessionStorage.getItem("instagram_whatsapp_onboarding");if(fe)try{const we=JSON.parse(fe);we.user_id=Z,sessionStorage.setItem("instagram_whatsapp_onboarding",JSON.stringify(we))}catch{}}}if(A&&(E||I)){a(!1);return}const W=window.location.pathname+window.location.search;t(`/login?redirect=${encodeURIComponent(W)}`)}catch(B){console.error("[InstagramConnect] Auth check failed:",B),a(!1)}})()},[_]);const L=g.useMemo(()=>c||E,[c,E]),T=()=>{if(!PH()){d(M.error);return}if(A&&!L&&!I){console.warn("[InstagramConnect] WhatsApp flow but no user_id or phone available"),d(M.error);return}if(r(!0),d(null),A){const F={return:"wa",lang:C,user_id:L||E||null,phone:I,session:O,timestamp:Date.now()};sessionStorage.setItem("instagram_whatsapp_onboarding",JSON.stringify(F));const B=I!=null&&I.startsWith("+")?I:I?`+${I}`:null;B&&localStorage.setItem("onboarding_phone",B),(L||E)&&localStorage.setItem("onboarding_user_id",L||E||""),localStorage.setItem("onboarding_language",C)}AH()},R=()=>{if(A){const F="14048263424";window.location.href=`https://wa.me/${F}`}else t(-1)},z=C==="he"||C==="ar";return i||s||_?o.jsx("div",{className:"min-h-screen bg-gradient-to-br from-background via-background to-pink-50/30 dark:to-pink-950/10 flex items-center justify-center p-4",children:o.jsxs("div",{className:"flex flex-col items-center gap-4",children:[o.jsx(Ze,{className:"h-8 w-8 animate-spin text-pink-500"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:s?"Looking up your account...":"Checking authentication..."})]})}):o.jsx("div",{className:"min-h-screen bg-gradient-to-br from-background via-background to-pink-50/30 dark:to-pink-950/10 flex items-center justify-center p-4",dir:z?"rtl":"ltr",children:o.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"w-full max-w-md",children:o.jsxs(ze,{className:"border-0 shadow-xl relative",children:[o.jsxs(pt,{className:"text-center pb-2",children:[o.jsx(K,{variant:"ghost",size:"sm",onClick:R,className:`absolute top-4 ${z?"right-4":"left-4"}`,children:o.jsx(Kr,{className:`h-4 w-4 ${z?"rotate-180":""}`})}),o.jsx(Q.div,{className:"w-20 h-20 mx-auto mb-4 rounded-2xl bg-gradient-to-br from-purple-500 via-pink-500 to-orange-400 flex items-center justify-center shadow-lg",initial:{scale:0},animate:{scale:1},transition:{type:"spring",duration:.5,delay:.1},children:o.jsx(Au,{className:"h-10 w-10 text-white"})}),o.jsx(mt,{className:"text-2xl font-bold",children:M.title}),o.jsx("p",{className:"text-muted-foreground mt-2",children:M.subtitle})]}),o.jsxs(Ue,{className:"space-y-6",children:[o.jsx("div",{className:"bg-muted/30 rounded-xl p-4",children:o.jsx("ul",{className:"space-y-3",children:M.benef
701its.map((F,B)=>o.jsxs(Q.li,{className:"flex items-center gap-3 text-sm",initial:{opacity:0,x:z?10:-10},animate:{opacity:1,x:0},transition:{delay:.2+B*.1},children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center flex-shrink-0",children:o.jsx(ft,{className:"h-3 w-3 text-green-600 dark:text-green-400"})}),F]},B))})}),f&&o.jsxs("div",{className:"bg-amber-50 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-800 text-amber-800 dark:text-amber-200 text-sm p-3 rounded-lg flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(_l,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),o.jsx("span",{children:M.safariWarning})]}),o.jsx(K,{variant:"outline",size:"sm",className:"self-center text-xs",onClick:()=>{navigator.clipboard.writeText(window.location.href),v(!0),setTimeout(()=>v(!1),2e3)},children:p?"â Copied!":"ð Copy URL for Chrome"})]}),h&&o.jsx("div",{className:"bg-destructive/10 text-destructive text-sm p-3 rounded-lg",children:h}),o.jsx(Q.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.5},children:o.jsx(K,{onClick:T,disabled:n,className:"w-full h-14 text-lg gap-3 bg-gradient-to-r from-purple-500 via-pink-500 to-orange-400 hover:from-purple-600 hover:via-pink-600 hover:to-orange-500 text-white shadow-lg",size:"lg",children:n?o.jsxs(o.Fragment,{children:[o.jsx(Ze,{className:"h-5 w-5 animate-spin"}),M.connecting]}):o.jsxs(o.Fragment,{children:[o.jsx(Au,{className:"h-5 w-5"}),M.connect,o.jsx(z3,{className:"h-4 w-4"})]})})}),o.jsx("p",{className:"text-xs text-center text-muted-foreground",children:M.note}),A&&o.jsx("div",{className:"text-xs text-center text-muted-foreground bg-green-50 dark:bg-green-950/20 p-2 rounded-lg",children:M.whatsappNote})]})]})})})},CH="visible_attribution",GBe=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","fbclid","gclid"];function EH(){try{if(typeof window>"u")return null;const e=window.localStorage.getItem(CH);if(!e)return null;const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}function KBe(e){try{if(typeof window>"u")return;window.localStorage.setItem(CH,JSON.stringify(e))}catch{}}function kH(){if(typeof window>"u")return;const e=EH(),t=new URLSearchParams(window.location.search),n={};let r=!1;for(const l of GBe){const c=t.get(l);c&&(n[l]=c,r=!0)}if(e&&!r||e)return;const i=typeof document<"u"&&document.referrer?document.referrer:"",a=!!i&&!i.startsWith(window.location.origin);if(!r&&!a)return;const s={...n,referrer:i||void 0,landing_path:window.location.pathname+window.location.search,landing_at:new Date().toISOString()};KBe(s)}function TH(){return EH()}const YBe=Object.freeze(Object.defineProperty({__proto__:null,captureAttributionFromUrl:kH,getAttribution:TH},Symbol.toStringTag,{value:"Module"}));function Ph(e,t){try{if(typeof window>"u")return;const n="debug_signup_webhook",r=window.localStorage.getItem(n),i=r?XBe(r):[],a=Array.isArray(i)?i:[];a.push({at:new Date().toISOString(),event:e,details:t}),window.localStorage.setItem(n,JSON.stringify(a.slice(-20)))}catch{}}function XBe(e){try{return JSON.parse(e)}catch{return{raw:e}}}async function JBe(e){try{const t=TH(),n={phone:e.phone,user_id:e.user_id,email:e.email,session_id:e.session_id,...t?{utm_params:t}:{}};console.log("[Onboarding] Calling backend function n8n-complete-onboarding with:",n),Ph("request",{fn:"n8n-complete-onboarding",payload:n});const{data:r,error:i}=await X.functions.invoke("n8n-complete-onboarding",{body:n});if(i)return console.error("[Onboarding] Function invoke error:",i),Ph("response",{fn:"n8n-complete-onboarding",ok:!1,error:i.message}),{ok:!1,url:"n8n-complete-onboarding",error:i.message,data:r};Ph("response",{fn:"n8n-complete-onboarding",ok:!0,data:r});const a=r;return a&&a.success===!1?{ok:!1,url:"n8n-complete-onboarding",error:a.error||"Backend function returned success: false",data:r}:{ok:!0,url:"n8n-complete-onboarding",data:r}}catch(t){return console.error("[Onboarding] Error calling edge function:",t),Ph("error",{fn:"n8n-complete-onboarding",error:t instanceof Error?t.message:String(t)}),{ok:!1,url:"n8n-complete-onboarding",error:t instanceof Error?t.message:"Unknown edge function error"}}}async function QBe(e){return Ph("call",e),JBe(e)}const ZBe="14048263424",eze=()=>{const[e]=cs(),[t,n]=g.useState(3),[r,i]=g.useState(!0),[a,s]=g.useState("idle"),[l,c]=g.useState(""),u=e.get("phone")||"",h=typeof window<"u"&&localStorage.getItem("whatsapp_signup_phone")||"",d=u||h,f=e.get("session")||"",p=(e.get("lang")||"en").split("-")[0].toLowerCase(),v=["he","en","ar","ru"].includes(p)?p:"en",m=e.get("completed")==="1"||typeof window<"u"&&localStorage.getItem("whatsapp_onboarding_completed")==="1",y={he:"×ת××רת×!",en:"I signed up!",ar:"ÙÙØ¯ Ø³Ø¬ÙØª!",ru:"Я заÑегиÑÑÑиÑовалÑÑ!"},b=()=>{const S=encodeURIComponent(y[v]||y.he);return`https://wa.me/${ZBe}?text=${S}`};g.useEffect(()=>{let S=!1,j=0;const N=3;console.log("[DEBUG-WA-SUCCESS] ====== PAGE MOUNTED ======"),console.log("[DEBUG-WA-SUCCESS] URL:",window.location.href),console.log("[DEBUG-WA-SUCCESS] urlPhone:",u),console.log("[DEBUG-WA-SUCCESS] storedPhone:",h),console.log("[DEBUG-WA-SUCCESS] initialPhone:",d),console.log("[DEBUG-WA-SUCCESS] sessionId:",f),console.log("[DEBUG-WA-SUCCESS] lang:",v),console.log("[DEBUG-WA-SUCCESS] alreadyCompleted:",m);try{localStorage.setItem("debug_signup_success_context",JSON.stringify({at:new Date().toISOString(),urlPhone:u,storedPhone:h,initialPhone:d,sessionId:f,lang:v,alreadyCompleted:m}))}catch{}const _=async()=>{try{if(m){if(!S){const E=d?d.startsWith("+")?d:`+${d}`:"";E&&c(E),s("sent")}localStorage.removeItem("whatsapp_onboarding_completed");return}s("sending"),console.log("[DEBUG-WA-SUCCESS] Starting onboarding completion flow...");let P=null;for(let E=0;E<10;E++){const{data:I}=await X.auth.getUser();if(P=I.user,P!=null&&P.id){console.log("[DEBUG-WA-SUCCESS] Got user on attempt",E+1,"- ID:",P.id);break}console.log("[DEBUG-WA-SUCCESS] Waiting for auth... attempt",E+1),await new Promise(O=>setTimeout(O,500))}if(!(P!=null&&P.id)){console.warn("[DEBUG-WA-SUCCESS] NO AUTHENTICATED USER FOUND after waiting"),s("failed");return}let A=d;if(console.log("[DEBUG-WA-SUCCESS] Initial phone value:",A),!A){console.log("[DEBUG-WA-SUCCESS] No phone in URL/storage, looking up from onboarding session...");const{data:E,error:I}=await X.from("onboarding_sessions").select("phone").eq("linked_user_id",P.id).maybeSingle();if(console.log("[DEBUG-WA-SUCCESS] Session by user lookup:",{sessionByUser:E,error:I==null?void 0:I.message}),E!=null&&E.phone)A=E.phone,console.log("[DEBUG-WA-SUCCESS] Found phone from linked session:",A);else{console.log("[DEBUG-WA-SUCCESS] No linked session, trying to find by current_step...");const{data:O,error:M}=await X.from("onboarding_sessions").select("phone").eq("current_step","awaiting_signup").order("last_activity_at",{ascending:!1}).limit(1).maybeSingle();console.log("[DEBUG-WA-SUCCESS] Recent session lookup:",{recentSession:O,error:M==null?void 0:M.message}
701),O!=null&&O.phone&&(A=O.phone,console.log("[DEBUG-WA-SUCCESS] Found phone from recent awaiting_signup session:",A))}}if(!A){console.error("[DEBUG-WA-SUCCESS] CRITICAL: Could not resolve phone number from any source!"),s("failed");return}const k=A.startsWith("+")?A:`+${A}`;S||c(k),console.log("[DEBUG-WA-SUCCESS] ====== CALLING WEBHOOK ======"),console.log("[DEBUG-WA-SUCCESS] Resolved identifiers:",{userId:P.id,phone:k,email:P.email,lang:v,sessionId:f||"null"});try{localStorage.setItem("debug_signup_resolved",JSON.stringify({at:new Date().toISOString(),userId:P.id,phone:k,email:P.email,lang:v}))}catch{}const C=await QBe({phone:k,user_id:P.id,email:P.email,lang:v,session_id:f||null});console.log("[DEBUG-WA-SUCCESS] Webhook result:",C);try{localStorage.setItem("debug_signup_webhook_result",JSON.stringify({at:new Date().toISOString(),webhookResult:C}))}catch{}if(!C.ok){if(console.error("[DEBUG-WA-SUCCESS] Webhook FAILED:",C),j<N)return j++,console.log(`[DEBUG-WA-SUCCESS] Retrying webhook... attempt ${j}/${N}`),await new Promise(E=>setTimeout(E,1e3)),_();s("failed");return}console.log("[DEBUG-WA-SUCCESS] ====== WEBHOOK SUCCESS ======"),console.log("[DEBUG-WA-SUCCESS] Full result:",C),localStorage.removeItem("whatsapp_signup_phone"),localStorage.removeItem("whatsapp_onboarding_completed"),S||s("sent")}catch(P){console.error("[DEBUG-WA-SUCCESS] Exception in completeOnboarding:",P),S||s("failed")}};return _(),()=>{S=!0}},[m,d,v,f]),g.useEffect(()=>{if(!r||a==="sending")return;const S=setInterval(()=>{n(j=>j<=1?(clearInterval(S),window.location.href=b(),0):j-1)},1e3);return()=>clearInterval(S)},[r,a]);const w=()=>{window.location.href=b()},x=()=>{i(!1)};return o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-green-50 via-emerald-50 to-teal-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-green-300 to-emerald-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-emerald-300 to-teal-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsx(Q.div,{className:"w-full max-w-md",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.5},children:o.jsxs(ze,{className:"shadow-xl border-0",children:[o.jsxs(pt,{className:"text-center pb-2",children:[o.jsx("img",{src:Ca,alt:"Visible",className:"h-10 mx-auto mb-4"}),o.jsx(Q.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:300,damping:20,delay:.2},className:"w-20 h-20 mx-auto mb-4 rounded-full bg-green-100 flex items-center justify-center",children:o.jsx(Ip,{className:"h-10 w-10 text-green-600"})}),o.jsx(mt,{className:"text-2xl font-bold text-green-700",children:"Account Created! ð"})]}),o.jsxs(Ue,{className:"text-center space-y-6 pt-2",children:[o.jsx("p",{className:"text-muted-foreground",children:"Your account has been created successfully. Let's continue setting up your profile on WhatsApp."}),r?o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center justify-center gap-2 text-muted-foreground",children:[o.jsx(Ze,{className:"h-4 w-4 animate-spin"}),o.jsxs("span",{children:["Returning to WhatsApp in ",t,"..."]})]}),d||l?o.jsx("p",{className:"text-xs text-muted-foreground",children:a==="sending"?"Syncing your signupâ¦":a==="sent"?"Signup synced.":a==="failed"?"Could not sync signup (will retry in WhatsApp).":null}):null,o.jsx(K,{variant:"ghost",size:"sm",onClick:x,className:"text-muted-foreground",children:"Cancel auto-redirect"})]}):o.jsx("p",{className:"text-sm text-muted-foreground",children:"Click the button below to continue."}),o.jsxs(K,{onClick:w,size:"lg",className:"w-full bg-[#25D366] hover:bg-[#20BD5A] text-white font-semibold",children:[o.jsx(ld,{className:"mr-2 h-5 w-5"}),"Return to WhatsApp"]}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"Next step: Connect your Instagram account"})]})]})})})]})},tze="14048263424",zM={he:"××××¨×ª× ×ת ×××× ×¡××ר×! ×שר ×ת ×ת××× ×©×× â
",en:"I connected my Instagram! Please approve my content â
",ar:"ÙÙØ¯ ربطت Ø§ÙØ§ÙستغراÙ
! ÙØ±Ø¬Ù اÙÙ
ÙØ§ÙÙØ© عÙ٠اÙÙ
ØØªÙÙ â
",ru:"Я подклÑÑил Instagram! ÐожалÑйÑÑа, одобÑиÑе мой конÑÐµÐ½Ñ â
",es:"¡Conecté Instagram! Por favor aprueba mi contenido â
",fr:"J'ai connecté Instagram ! Veuillez approuver mon contenu â
",de:"Ich habe Instagram verbunden! Bitte genehmige meinen Inhalt â
",pt:"Conectei o Instagram! Por favor aprove meu conteúdo â
"},nze=new Set(["he","en","ar","ru","es","fr","de","pt"]),rze=()=>{const[e]=cs(),[t,n]=g.useState(3),[r,i]=g.useState(!0),a=e.get("username")||"your account",s=(e.get("lang")||"en").split("-")[0].toLowerCase(),l=nze.has(s)?s:"en",c=()=>{const d=encodeURIComponent(zM[l]||zM.en);return`https://wa.me/${tze}?text=${d}`};g.useEffect(()=>{if(!r)return;const d=setInterval(()=>{n(f=>f<=1?(clearInterval(d),window.location.href=c(),0):f-1)},1e3);return()=>clearInterval(d)},[r]);const u=()=>{window.location.href=c()},h=()=>{i(!1)};return o.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-pink-50 via-purple-50 to-indigo-100"}),o.jsx("div",{className:"blob w-[400px] h-[400px] bg-gradient-to-br from-pink-300 to-purple-300 -top-32 -left-32 animate-blob"}),o.jsx("div",{className:"blob w-[300px] h-[300px] bg-gradient-to-br from-purple-300 to-indigo-300 -bottom-32 -right-32 animate-blob",style:{animationDelay:"-5s"}}),o.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center px-4 py-12",children:o.jsx(Q.div,{className:"w-full max-w-md",initial:{opacity:0,scale:.95}
701,animate:{opacity:1,scale:1},transition:{duration:.5},children:o.jsxs(ze,{className:"shadow-xl border-0",children:[o.jsxs(pt,{className:"text-center pb-2",children:[o.jsx("img",{src:Ca,alt:"Visible",className:"h-10 mx-auto mb-4"}),o.jsx(Q.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:300,damping:20,delay:.2},className:"w-20 h-20 mx-auto mb-4 rounded-full bg-gradient-to-br from-pink-500 to-purple-600 flex items-center justify-center",children:o.jsx(Au,{className:"h-10 w-10 text-white"})}),o.jsx(mt,{className:"text-2xl font-bold bg-gradient-to-r from-pink-600 to-purple-600 bg-clip-text text-transparent",children:"Instagram Connected! ð"})]}),o.jsxs(Ue,{className:"text-center space-y-6 pt-2",children:[o.jsxs("p",{className:"text-muted-foreground",children:["Successfully connected ",o.jsxs("span",{className:"font-semibold text-foreground",children:["@",a]}),". You're all set to start creating amazing posts!"]}),r?o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center justify-center gap-2 text-muted-foreground",children:[o.jsx(Ze,{className:"h-4 w-4 animate-spin"}),o.jsxs("span",{children:["Returning to WhatsApp in ",t,"..."]})]}),o.jsx(K,{variant:"ghost",size:"sm",onClick:h,className:"text-muted-foreground",children:"Cancel auto-redirect"})]}):o.jsx("p",{className:"text-sm text-muted-foreground",children:"Click the button below to create your first post."}),o.jsxs(K,{onClick:u,size:"lg",className:"w-full bg-[#25D366] hover:bg-[#20BD5A] text-white font-semibold",children:[o.jsx(ld,{className:"mr-2 h-5 w-5"}),"Create My First Post"]}),o.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[o.jsx(Ip,{className:"h-4 w-4 text-green-500"}),o.jsx("span",{children:"Setup complete - ready to go!"})]})]})]})})})]})},ize=()=>{const e=pr();return g.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),o.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:o.jsxs("div",{className:"text-center",children:[o.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),o.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),o.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},aze=XJ,sze=new qJ({defaultOptions:{queries:{staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1}}}),oze=()=>o.jsx(aze,{client:sze,children:o.jsx(Kne,{children:o.jsxs(EJ,{children:[o.jsx(fY,{}),o.jsx(qY,{}),o.jsx(lZ,{children:o.jsxs(ene,{children:[o.jsx(Yne,{}),o.jsxs(eZ,{children:[o.jsx(Ie,{path:"/",element:o.jsx(_pe,{})}),o.jsx(Ie,{path:"/login",element:o.jsx(E0,{children:o.jsx(Tpe,{})})}),o.jsx(Ie,{path:"/signup",element:o.jsx(E0,{children:o.jsx(Ope,{})})}),o.jsx(Ie,{path:"/forgot-password",element:o.jsx(E0,{children:o.jsx(Ipe,{})})}),o.jsx(Ie,{path:"/reset-password",element:o.jsx(Rpe,{})}),o.jsx(Ie,{path:"/verify-email",element:o.jsx(yO,{})}),o.jsx(Ie,{path:"/terms",element:o.jsx(Mpe,{})}),o.jsx(Ie,{path:"/privacy",element:o.jsx($pe,{})}),o.jsx(Ie,{path:"/acceptable-use",element:o.jsx(Lpe,{})}),o.jsx(Ie,{path:"/refund",element:o.jsx(Vpe,{})}),o.jsx(Ie,{path:"/contact",element:o.jsx(gme,{})}),o.jsx(Ie,{path:"/blog",element:o.jsx(Sme,{})}),o.jsx(Ie,{path:"/blog/:slug",element:o.jsx(Nme,{})}),o.jsx(Ie,{path:"/social-media-visibility",element:o.jsx(Ame,{})}),o.jsx(Ie,{path:"/pricing",element:o.jsx(Cme,{})}),o.jsx(Ie,{path:"/billing",element:o.jsx(Or,{children:o.jsx(sge,{})})}),o.jsx(Ie,{path:"/auth/callback",element:o.jsx(yO,{})}),o.jsx(Ie,{path:"/auth/instagram/callback",element:o.jsx(UBe,{})}),o.jsx(Ie,{path:"/connect/instagram",element:o.jsx(HBe,{})}),o.jsx(Ie,{path:"/auth/whatsapp/signup-success",element:o.jsx(eze,{})}),o.jsx(Ie,{path:"/auth/whatsapp/instagram-success",element:o.jsx(rze,{})}),o.jsx(Ie,{path:"/onboarding",element:o.jsx(hb,{to:"/onboarding/web",replace:!0})}),o.jsx(Ie,{path:"/onboarding/web",element:o.jsx(Or,{children:o.jsx(Fge,{})})}),o.jsx(Ie,{path:"/dashboard",element:o.jsx(Or,{children:o.jsx(ws,{})})}),o.jsx(Ie,{path:"/content",element:o.jsx(Or,{children:o.jsx(ws,{})})}),o.jsx(Ie,{path:"/campaigns",element:o.jsx(Or,{children:o.jsx(ws,{})})}),o.jsx(Ie,{path:"/gallery",element:o.jsx(Or,{children:o.jsx(ws,{})})}),o.jsx(Ie,{path:"/calendar",element:o.jsx(Or,{children:o.jsx(ws,{})})}),o.jsx(Ie,{path:"/accounts",element:o.jsx(Or,{children:o.jsx(ws,{})})}),o.jsx(Ie,{path:"/settings",element:o.jsx(Or,{children:o.jsx(ws,{})})}),o.jsx(Ie,{path:"/settings/*",element:o.jsx(Or,{children:o.jsx(ws,{})})}),o.jsxs(Ie,{path:"/admin",element:o.jsx(Or,{children:o.jsx(zge,{children:o.jsx(Wge,{})})}),children:[o.jsx(Ie,{index:!0,element:o.jsx(Aye,{})}),o.jsx(Ie,{path:"users",element:o.jsx(Eye,{})}),o.jsx(Ie,{path:"users/:userId",element:o.jsx(Xye,{})}),o.jsx(Ie,{path:"prompts",element:o.jsx(IBe,{})}),o.jsx(Ie,{path:"health",element:o.jsx(JFe,{})}),o.jsx(Ie,{path:"meta-capi",element:o.jsx(eBe,{})}),o.jsx(Ie,{path:"billing",element:o.jsx(iBe,{})}),o.jsx(Ie,{path:"observability",element:o.jsx(uBe,{})}),o.jsx(Ie,{path:"pronunciation",element:o.jsx(pBe,{})}),o.jsx(Ie,{path:"voices",element:o.jsx(NBe,{})}),o.jsx(Ie,{path:"messages",element:o.jsx(BBe,{})})]}),o.jsx(Ie,{path:"/payment/success",element:o.jsx(Or,{children:o.jsx(TO,{})})}),o.jsx(Ie,{path:"/payment/failed",element:o.jsx(Or,{children:o.jsx(TO,{})})}),o.jsx(Ie,{path:"*",element:o.jsx(ize,{})})]})]})})]})})});sK();kH();
701h3(document.getElementById("root")).render(o.jsx(oze,{}));export{X as s};
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.