PageSourceSearch

https://www.appenue-ai.com/assets/index-nOWF6ijV.js

js appenue-ai.com collected 2026-10-04 14:07:38 UTC 828,320 bytes, 294 lines download raw bytes

vendor: 5,571 bytes, lines 1-9
1import{u as ka,j as n,P as Y,c as Ba,a as bm,b as Te,B as h2,d as Ta,e as Ua,f as F,g as St,V as Kx,R as m2,h as f2,i as he,k as P,l as _l,X as dr,m as El,n as Qx,D as Xx,o as p2,p as zn,q as Jx,C as dt,s as g2,L as Ge,S as da,r as x2,t as v2,v as B,A as Zx,w as ev,x as Xt,y as y2,z as T,F as Co,E as Bn,G as lt,_ as tv,H as b2,I as av,J as w2,K as Ra,T as wm,M as ln,N as Aa,O as nv,Q as jm,U as at,W as j2,Y as N2,Z as Li,$ as xi,a0 as S2,a1 as A2,a2 as k2,a3 as ip,a4 as T2,a5 as Rt,a6 as _2,a7 as E2,a8 as C2,a9 as Oo,aa as O2,ab as Ds,ac as R2,ad as Ql,ae as ec,af as I2,ag as M2,ah as D2,ai as L2,aj as P2,ak as sv,al as iv,am as rv,an as lv,ao as ov,ap as yt,aq as Le,ar as Pe,as as z2,at as B2,au as Ts,av as At,aw as U2,ax as q2,ay as V2,az as ul,aA as I,aB as mt,aC as Ws,aD as Qn,aE as Xn,aF as Ma,aG as qa,aH as Vt,aI as Ht,aJ as $t,aK as cv,aL as Jn,aM as dv,aN as Nm,aO as rp,aP as lp,aQ as Cl,aR as H2,aS as Sm,aT as Wi,aU as Ro,aV as Am,aW as uv,aX as $2,aY as G2,aZ as W2,a_ as F2,a$ as Y2,b0 as Gu,b1 as km,b2 as K2,b3 as Q2,b4 as hv,b5 as op,b6 as tc,b7 as X2,b8 as J2,b9 as Z2,ba as eN,bb as mv,bc as fv,bd as tN,be as aN,bf as nN,bg as sN,bh as iN,bi as rN,bj as lN,bk as oN,bl as cN,bm as dN,bn as uN,bo as ie,bp as hN,bq as mN,br as fN,bs as pN,bt as gN,bu as xN,bv as vN,bw as yN,bx as bN,by as wN,bz as jN,bA as NN,bB as SN,bC as AN,bD as kN,bE as TN}from"./AIIntegrationSmallBusiness-SHIXGc9l.js";import{r as p,a as Fc,R as pv,b as k,g as gv,c as _N,d as ma}from"./vendor-C0c7n50v.js";(function(){if(typeof window>"u")return;const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function a(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=a(i);fetch(i.href,r)}})();var xv={exports:{}},Yc={},vv={exports:{}},yv={};/**
2 * @license React
3 * scheduler.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and 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 */(function(e){function t(C,D){var z=C.length;C.push(D);e:for(;0<z;){var M=z-1>>>1,ne=C[M];if(0<i(ne,D))C[M]=D,C[z]=ne,z=M;else break e}}function a(C){return C.length===0?null:C[0]}function s(C){if(C.length===0)return null;var D=C[0],z=C.pop();if(z!==D){C[0]=z;e:for(var M=0,ne=C.length,wt=ne>>>1;M<wt;){var ae=2*(M+1)-1,se=C[ae],te=ae+1,qe=C[te];if(0>i(se,z))te<ne&&0>i(qe,se)?(C[M]=qe,C[te]=z,M=te):(C[M]=se,C[ae]=z,M=ae);else if(te<ne&&0>i(qe,z))C[M]=qe,C[te]=z,M=te;else break e}}return D}function i(C,D){var z=C.sortIndex-D.sortIndex;return z!==0?z:C.id-D.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var c=[],d=[],u=1,m=null,f=3,h=!1,w=!1,v=!1,j=!1,y=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;function b(C){for(var D=a(d);D!==null;){if(D.callback===null)s(d);else if(D.startTime<=C)s(d),D.sortIndex=D.expirationTime,t(c,D);else break;D=a(d)}}function N(C){if(v=!1,b(C),!w)if(a(c)!==null)w=!0,A||(A=!0,X());else{var D=a(d);D!==null&&ce(N,D.startTime-C)}}var A=!1,S=-1,_=5,O=-1;function R(){return j?!0:!(e.unstable_now()-O<_)}function H(){if(j=!1,A){var C=e.unstable_now();O=C;var D=!0;try{e:{w=!1,v&&(v=!1,x(S),S=-1),h=!0;var z=f;try{t:{for(b(C),m=a(c);m!==null&&!(m.expirationTime>C&&R());){var M=m.callback;if(typeof M=="function"){m.callback=null,f=m.priorityLevel;var ne=M(m.expirationTime<=C);if(C=e.unstable_now(),typeof ne=="function"){m.callback=ne,b(C),D=!0;break t}m===a(c)&&s(c),b(C)}else s(c);m=a(c)}if(m!==null)D=!0;else{var wt=a(d);wt!==null&&ce(N,wt.startTime-C),D=!1}}break e}finally{m=null,f=z,h=!1}D=void 0}}finally{D?X():A=!1}}}var X;if(typeof g=="function")X=function(){g(H)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,U=me.port2;me.port1.onmessage=H,X=function(){U.postMessage(null)}}else X=function(){y(H,0)};function ce(C,D){S=y(function(){C(e.unstable_now())},D)}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(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(C){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var z=f;f=D;try{return C()}finally{f=z}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(C,D){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var z=f;f=C;try{return D()}finally{f=z}},e.unstable_scheduleCallback=function(C,D,z){var M=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?M+z:M):z=
vendor: 4,532 bytes, lines 9-17
9M,C){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=z+ne,C={id:u++,callback:D,priorityLevel:C,startTime:z,expirationTime:ne,sortIndex:-1},z>M?(C.sortIndex=z,t(d,C),a(c)===null&&C===a(d)&&(v?(x(S),S=-1):v=!0,ce(N,z-M))):(C.sortIndex=ne,t(c,C),w||h||(w=!0,A||(A=!0,X()))),C},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(C){var D=f;return function(){var z=f;f=D;try{return C.apply(this,arguments)}finally{f=z}}}})(yv);vv.exports=yv;var EN=vv.exports;/**
10 * @license React
11 * react-dom-client.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and 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 nt=EN,bv=p,CN=Fc;function E(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function wv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ol(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function jv(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 Nv(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function cp(e){if(Ol(e)!==e)throw Error(E(188))}function ON(e){var t=e.alternate;if(!t){if(t=Ol(e),t===null)throw Error(E(188));return t!==e?null:e}for(var a=e,s=t;;){var i=a.return;if(i===null)break;var r=i.alternate;if(r===null){if(s=i.return,s!==null){a=s;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===a)return cp(i),e;if(r===s)return cp(i),t;r=r.sibling}throw Error(E(188))}if(a.return!==s.return)a=i,s=r;else{for(var l=!1,o=i.child;o;){if(o===a){l=!0,a=i,s=r;break}if(o===s){l=!0,s=i,a=r;break}o=o.sibling}if(!l){for(o=r.child;o;){if(o===a){l=!0,a=r,s=i;break}if(o===s){l=!0,s=r,a=i;break}o=o.sibling}if(!l)throw Error(E(189))}}if(a.alternate!==s)throw Error(E(190))}if(a.tag!==3)throw Error(E(188));return a.stateNode.current===a?e:t}function Sv(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Sv(e),t!==null)return t;e=e.sibling}return null}var Ue=Object.assign,RN=Symbol.for("react.element"),Xl=Symbol.for("react.transitional.element"),Lr=Symbol.for("react.portal"),wi=Symbol.for("react.fragment"),Av=Symbol.for("react.strict_mode"),Wu=Symbol.for("react.profiler"),kv=Symbol.for("react.consumer"),an=Symbol.for("react.context"),Tm=Symbol.for("react.forward_ref"),Fu=Symbol.for("react.suspense"),Yu=Symbol.for("react.suspense_list"),_m=Symbol.for("react.memo"),An=Symbol.for("react.lazy"),Ku=Symbol.for("react.activity"),IN=Symbol.for("react.memo_cache_sentinel"),dp=Symbol.iterator;function Sr(e){return e===null||typeof e!="object"?null:(e=dp&&e[dp]||e["@@iterator"],typeof e=="function"?e:null)}var MN=Symbol.for("react.client.reference");function Qu(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===MN?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wi:return"Fragment";case Wu:return"Profiler";case Av:return"StrictMode";case Fu:return"Suspense";case Yu:return"SuspenseList";case Ku:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Lr:return"Portal";case an:return e.displayName||"Context";case kv:return(e._context.displayName||"Context")+".Consumer";case Tm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _m:return t=e.displayName||null,t!==null?t:Qu(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return Qu(e(t))}catch{}}return null}var Pr=Array.isArray,K=bv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=CN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Cs={pending:!1,data:null,method:null,action:null},Xu=[],ji=-1;function Va(e){return{current:e}}function ot(e){0>ji||(e.current=Xu[ji],Xu[ji]=null,ji--)}function Oe(e,t){ji++,Xu[ji]=e.current,e.current=t}var za=Va(null),hl=Va(null),Un=Va(null),ac=Va(null);function nc(e,t){switch(Oe(Un,t),Oe(hl,e),Oe(za,null),t.nodeType){case 9:case 11:e=(e
vendor: 12,047 bytes, lines 17-24
17=t.documentElement)&&(e=e.namespaceURI)?gg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gg(t),e=W0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ot(za),Oe(za,e)}function Fi(){ot(za),ot(hl),ot(Un)}function Ju(e){e.memoizedState!==null&&Oe(ac,e);var t=za.current,a=W0(t,e.type);t!==a&&(Oe(hl,e),Oe(za,a))}function sc(e){hl.current===e&&(ot(za),ot(hl)),ac.current===e&&(ot(ac),Nl._currentValue=Cs)}var Bd,up;function xs(e){if(Bd===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Bd=t&&t[1]||"",up=-1<a.stack.indexOf(`
18    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
19`+Bd+e+up}var Ud=!1;function qd(e,t){if(!e||Ud)return"";Ud=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(h){var f=h}Reflect.construct(e,[],m)}else{try{m.call()}catch(h){f=h}e.call(m.prototype)}}else{try{throw Error()}catch(h){f=h}(m=e())&&typeof m.catch=="function"&&m.catch(function(){})}}catch(h){if(h&&f&&typeof h.stack=="string")return[h.stack,f.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=s.DetermineComponentFrameRoot(),l=r[0],o=r[1];if(l&&o){var c=l.split(`
20`),d=o.split(`
21`);for(i=s=0;s<c.length&&!c[s].includes("DetermineComponentFrameRoot");)s++;for(;i<d.length&&!d[i].includes("DetermineComponentFrameRoot");)i++;if(s===c.length||i===d.length)for(s=c.length-1,i=d.length-1;1<=s&&0<=i&&c[s]!==d[i];)i--;for(;1<=s&&0<=i;s--,i--)if(c[s]!==d[i]){if(s!==1||i!==1)do if(s--,i--,0>i||c[s]!==d[i]){var u=`
22`+c[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=i);break}}}finally{Ud=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?xs(a):""}function DN(e,t){switch(e.tag){case 26:case 27:case 5:return xs(e.type);case 16:return xs("Lazy");case 13:return e.child!==t&&t!==null?xs("Suspense Fallback"):xs("Suspense");case 19:return xs("SuspenseList");case 0:case 15:return qd(e.type,!1);case 11:return qd(e.type.render,!1);case 1:return qd(e.type,!0);case 31:return xs("Activity");default:return""}}function hp(e){try{var t="",a=null;do t+=DN(e,a),a=e,e=e.return;while(e);return t}catch(s){return`
23Error generating stack: `+s.message+`
24`+s.stack}}var Zu=Object.prototype.hasOwnProperty,Em=nt.unstable_scheduleCallback,Vd=nt.unstable_cancelCallback,LN=nt.unstable_shouldYield,PN=nt.unstable_requestPaint,Gt=nt.unstable_now,zN=nt.unstable_getCurrentPriorityLevel,Tv=nt.unstable_ImmediatePriority,_v=nt.unstable_UserBlockingPriority,ic=nt.unstable_NormalPriority,BN=nt.unstable_LowPriority,Ev=nt.unstable_IdlePriority,UN=nt.log,qN=nt.unstable_setDisableYieldValue,Rl=null,Wt=null;function In(e){if(typeof UN=="function"&&qN(e),Wt&&typeof Wt.setStrictMode=="function")try{Wt.setStrictMode(Rl,e)}catch{}}var Ft=Math.clz32?Math.clz32:$N,VN=Math.log,HN=Math.LN2;function $N(e){return e>>>=0,e===0?32:31-(VN(e)/HN|0)|0}var Jl=256,Zl=262144,eo=4194304;function vs(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Kc(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var i=0,r=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=s&134217727;return o!==0?(s=o&~r,s!==0?i=vs(s):(l&=o,l!==0?i=vs(l):a||(a=o&~e,a!==0&&(i=vs(a))))):(o=s&~r,o!==0?i=vs(o):l!==0?i=vs(l):a||(a=s&~e,a!==0&&(i=vs(a)))),i===0?0:t!==0&&t!==i&&!(t&r)&&(r=i&-i,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:i}function Il(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function GN(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Cv(){var e=eo;return eo<<=1,!(eo&62914560)&&(eo=4194304),e}function Hd(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ml(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function WN(e,t,a,s,i,r){var l=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var o=e.entanglements,c=e.expirationTimes,d=e.hiddenUpdates;for(a=l&~a;0<a;){var u=31-Ft(a),m=1<<u;o[u]=0,c[u]=-1;var f=d[u];if(f!==null)for(d[u]=null,u=0;u<f.length;u++){var h=f[u];h!==null&&(h.lane&=-536870913)}a&=~m}s!==0&&Ov(e,s,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(l&~t))}function Ov(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Ft(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&261930}function Rv(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-Ft(a),i=1<<s;i&t|e[s]&t&&(e[s]|=t),a&=~i}}function Iv(e,t){var a=t&-t;return a=a&42?1:Cm(a),a&(e.suspendedLanes|t)?0:a}function Cm(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Om(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Mv(){var e=ge.p;return e!==0?e:(e=window.event,e===void 0?32:nb(e.type))}function mp(e,t){var a=ge.p;try{return ge.p=e,t()}finally{ge.p=a}}var ns=Math.random().toString(36).slice(2),ut="__reactFiber$"+ns,Dt="__reactProps$"+ns,ur="__reactContainer$"+ns,eh="__reactEvents$"+ns,FN="__reactListeners$"+ns,YN="__reactHandles$"+ns,fp="__reactResources$"+ns,Dl="__reactMarker$"+ns;function Rm(e){delete e[ut],delete e[Dt],delete e[eh],delete e[FN],delete e[YN]}function Ni(e){var t=e[ut];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ur]||a[ut]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=wg(e);e!==null;){if(a=e[ut])return a;e=wg(e)}return t}e=a,a=e.parentNode}return null}function hr(e){if(e=e[ut]||e[ur]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function zr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(E(33))}function Pi(e){var t=e[fp];return t||(t=e[fp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[Dl]=!0}var Dv=new Set,Lv={};function Fs(e,t){Yi(e,t),Yi(e+"Capture",t)}function Yi(e,t){for(Lv[e]=t,e=0;e<t.length;e++)Dv.add(t[e])}var KN=RegExp("^[: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]*$"),pp={},gp={};function QN(e){return Zu.call(gp,e)?!0:Zu.call(pp,e)?!1:KN.test(e)?gp[e]=!0:(pp[e]=!0,!1)}function Io(e,t,a){if(QN(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function to(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Wa(e,t,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+s)}}function na(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function XN(e,t,a){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var i=s.get,r=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){a=""+l,r.call(this,l)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(l){a=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function th(e){if(!e._valueTracker){var t=Pv(e)?"checked":"value";e._valueTracker=XN(e,t,""+e[t])}}function zv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=Pv(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function rc(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}}var JN=/[\n"\\]/g;function ra(e){return e.replace(JN,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ah(e,t,a,s,i,r,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+na(t)):e.value!==""+na(t)&&(e.value=""+na(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?nh(e,l,na(t)):a!=null?nh(e,l,na(a)):s!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+na(o):e.removeAttribute("name")}function Bv(e,t,a,s,i,r,l,o){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){th(e);return}a=a!=null?""+na(a):"",t=t!=null?""+na(t):a,o||t===e.value||(e.value=t),e.defaultValue=t}s=s??i,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=o?e.checked:!!s,e.defaultChecked=!!s,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),th(e)}function nh(e,t,a){t==="number"&&rc(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zi(e,t,a,s){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&s&&(e[a].defaultSelected=!0)}else{for(a=""+na(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,s&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Uv(e,t,a){if(t!=null&&(t=""+na(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+na(a):""}function qv(e,t,a,s){if(t==null){if(s!=null){if(a!=null)throw Error(E(92));if(Pr(s)){if(1<s.length)throw Error(E(93));s=s[0]}a=s}a==null&&(a=""),t=a}a=na(t),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s),th(e)}function Ki(e,t){if(t){var a=e.firstChild;
vendor: 4,140 bytes, line 24
24if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ZN=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xp(e,t,a){var s=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,a):typeof a!="number"||a===0||ZN.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Vv(e,t,a){if(t!=null&&typeof t!="object")throw Error(E(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var i in t)s=t[i],t.hasOwnProperty(i)&&a[i]!==s&&xp(e,i,s)}else for(var r in t)t.hasOwnProperty(r)&&xp(e,r,t[r])}function Im(e){if(e.indexOf("-")===-1)return!1;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=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
24-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Mo(e){return tS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function nn(){}var sh=null;function Mm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Si=null,Bi=null;function vp(e){var t=hr(e);if(t&&(e=t.stateNode)){var a=e[Dt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ah(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+ra(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var i=s[Dt]||null;if(!i)throw Error(E(90));ah(s,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)s=a[t],s.form===e.form&&zv(s)}break e;case"textarea":Uv(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zi(e,!!a.multiple,t,!1)}}}var $d=!1;function Hv(e,t,a){if($d)return e(t,a);$d=!0;try{var s=e(t);return s}finally{if($d=!1,(Si!==null||Bi!==null)&&(ld(),Si&&(t=Si,e=Bi,Bi=Si=null,vp(t),e)))for(t=0;t<e.length;t++)vp(e[t])}}function ml(e,t){var a=e.stateNode;if(a===null)return null;var s=a[Dt]||null;if(s===null)return null;a=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(E(231,t,typeof a));return a}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ih=!1;if(un)try{var Ar={};Object.defineProperty(Ar,"passive",{get:function(){ih=!0}}),window.addEventListener("test",Ar,Ar),window.removeEventListener("test",Ar,Ar)}catch{ih=!1}var Mn=null,Dm=null,Do=null;function $v(){if(Do)return Do;var e,t=Dm,a=t.length,s,i="value"in Mn?Mn.value:Mn.textContent,r=i.length;for(e=0;e<a&&t[e]===i[e];e++);var l=a-e;for(s=1;s<=l&&t[a-s]===i[r-s];s++);return Do=i.slice(e,1<s?1-s:void 0)}function Lo(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 ao(){return!0}function yp(){return!1}function Pt(e){function t(a,s,i,r,l){this._reactName=a,this._targetInst=i,this.type=s,this.nativeEvent=r,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(a=e[o],this[o]=a?a(r):r[o]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ao:yp,this.isPropagationStopped=yp,this}return Ue(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ao)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ao)},persist:function(){},isPersistent:ao}),t}var Ys={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qc=Pt(Ys),Ll=Ue({},Ys,{view:0,detail:0}),aS=Pt(Ll),Gd,Wd,kr,Xc=Ue({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lm,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!==kr&&(kr&&e.type==="mousemove"?(Gd=e.screenX-kr.screenX,Wd=e.screenY-kr.screenY):Wd=Gd=0,kr=e),Gd)},movementY:function(e){return"movementY"in e?e.movementY:Wd}}),bp=Pt(Xc),nS=Ue({},Xc,{dataTransfer:0}),sS=Pt(nS),iS=Ue({},Ll,{relatedTarget:0}),Fd=Pt(iS),rS=Ue({},Ys,{animationName:0,elapsedTime:0,pseudoElement:0}),lS=Pt(rS),oS=Ue({},Ys,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cS=Pt(oS),dS=Ue({},Ys,{data:0}),wp=Pt(dS),uS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hS={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"},mS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mS[e])?!!t[e]:!1}function Lm(){return fS}var pS=Ue({},Ll,{key:function(e){if(e.key){var t=uS[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 5,191 bytes, line 24
24return e.type==="keypress"?(e=Lo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lm,charCode:function(e){return e.type==="keypress"?Lo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gS=Pt(pS),xS=Ue({},Xc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jp=Pt(xS),vS=Ue({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lm}),yS=Pt(vS),bS=Ue({},Ys,{propertyName:0,elapsedTime:0,pseudoElement:0}),wS=Pt(bS),jS=Ue({},Xc,{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}),NS=Pt(jS),SS=Ue({},Ys,{newState:0,oldState:0}),AS=Pt(SS),kS=[9,13,27,32],Pm=un&&"CompositionEvent"in window,Wr=null;un&&"documentMode"in document&&(Wr=document.documentMode);var TS=un&&"TextEvent"in window&&!Wr,Gv=un&&(!Pm||Wr&&8<Wr&&11>=Wr),Np=" ",Sp=!1;function Wv(e,t){switch(e){case"keyup":return kS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ai=!1;function _S(e,t){switch(e){case"compositionend":return Fv(t);case"keypress":return t.which!==32?null:(Sp=!0,Np);case"textInput":return e=t.data,e===Np&&Sp?null:e;default:return null}}function ES(e,t){if(Ai)return e==="compositionend"||!Pm&&Wv(e,t)?(e=$v(),Do=Dm=Mn=null,Ai=!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 Gv&&t.locale!=="ko"?null:t.data;default:return null}}var CS={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 Ap(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!CS[e.type]:t==="textarea"}function Yv(e,t,a,s){Si?Bi?Bi.push(s):Bi=[s]:Si=s,t=Sc(t,"onChange"),0<t.length&&(a=new Qc("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var Fr=null,fl=null;function OS(e){H0(e,0)}function Jc(e){var t=zr(e);if(zv(t))return e}function kp(e,t){if(e==="change")return t}var Kv=!1;if(un){var Yd;if(un){var Kd="oninput"in document;if(!Kd){var Tp=document.createElement("div");Tp.setAttribute("oninput","return;"),Kd=typeof Tp.oninput=="function"}Yd=Kd}else Yd=!1;Kv=Yd&&(!document.documentMode||9<document.documentMode)}function _p(){Fr&&(Fr.detachEvent("onpropertychange",Qv),fl=Fr=null)}function Qv(e){if(e.propertyName==="value"&&Jc(fl)){var t=[];Yv(t,fl,e,Mm(e)),Hv(OS,t)}}function RS(e,t,a){e==="focusin"?(_p(),Fr=t,fl=a,Fr.attachEvent("onpropertychange",Qv)):e==="focusout"&&_p()}function IS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jc(fl)}function MS(e,t){if(e==="click")return Jc(t)}function DS(e,t){if(e==="input"||e==="change")return Jc(t)}function LS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:LS;function pl(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var i=a[s];if(!Zu.call(t,i)||!Kt(e[i],t[i]))return!1}return!0}function Ep(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cp(e,t){var a=Ep(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=t&&s>=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ep(a)}}function Xv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=rc(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=rc(e.document)}return t}function zm(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")}var PS=un&&"documentMode"in document&&11>=document.documentMode,ki=null,rh=null,Yr=null,lh=!1;function Op(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;lh||ki==null||ki!==rc(s)||(s=ki,"selectionStart"in s&&zm(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focu
vendor: 20,525 bytes, line 24
24sNode:s.focusNode,focusOffset:s.focusOffset}),Yr&&pl(Yr,s)||(Yr=s,s=Sc(rh,"onSelect"),0<s.length&&(t=new Qc("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=ki)))}function hs(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ti={animationend:hs("Animation","AnimationEnd"),animationiteration:hs("Animation","AnimationIteration"),animationstart:hs("Animation","AnimationStart"),transitionrun:hs("Transition","TransitionRun"),transitionstart:hs("Transition","TransitionStart"),transitioncancel:hs("Transition","TransitionCancel"),transitionend:hs("Transition","TransitionEnd")},Qd={},Zv={};un&&(Zv=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);function Ks(e){if(Qd[e])return Qd[e];if(!Ti[e])return e;var t=Ti[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Zv)return Qd[e]=t[a];return e}var ey=Ks("animationend"),ty=Ks("animationiteration"),ay=Ks("animationstart"),zS=Ks("transitionrun"),BS=Ks("transitionstart"),US=Ks("transitioncancel"),ny=Ks("transitionend"),sy=new Map,oh="abort auxClick beforeToggle 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(" ");oh.push("scrollEnd");function _a(e,t){sy.set(e,t),Fs(t,[e])}var lc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ta=[],_i=0,Bm=0;function Zc(){for(var e=_i,t=Bm=_i=0;t<e;){var a=ta[t];ta[t++]=null;var s=ta[t];ta[t++]=null;var i=ta[t];ta[t++]=null;var r=ta[t];if(ta[t++]=null,s!==null&&i!==null){var l=s.pending;l===null?i.next=i:(i.next=l.next,l.next=i),s.pending=i}r!==0&&iy(a,i,r)}}function ed(e,t,a,s){ta[_i++]=e,ta[_i++]=t,ta[_i++]=a,ta[_i++]=s,Bm|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Um(e,t,a,s){return ed(e,t,a,s),oc(e)}function Qs(e,t){return ed(e,null,null,t),oc(e)}function iy(e,t,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var i=!1,r=e.return;r!==null;)r.childLanes|=a,s=r.alternate,s!==null&&(s.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-Ft(a),e=r.hiddenUpdates,s=e[i],s===null?e[i]=[t]:s.push(t),t.lane=a|536870912),r):null}function oc(e){if(50<nl)throw nl=0,Eh=null,Error(E(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ei={};function qS(e,t,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,a,s){return new qS(e,t,a,s)}function qm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function on(e,t){var a=e.alternate;return a===null?(a=Ut(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function ry(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Po(e,t,a,s,i,r){var l=0;if(s=e,typeof e=="function")qm(e)&&(l=1);else if(typeof e=="string")l=WA(e,a,za.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ku:return e=Ut(31,a,t,i),e.elementType=Ku,e.lanes=r,e;case wi:return Os(a.children,i,r,t);case Av:l=8,i|=24;break;case Wu:return e=Ut(12,a,t,i|2),e.elementType=Wu,e.lanes=r,e;case Fu:return e=Ut(13,a,t,i),e.elementType=Fu,e.lanes=r,e;case Yu:return e=Ut(19,a,t,i),e.elementType=Yu,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case an:l=10;break e;case kv:l=9;break e;case Tm:l=11;break e;case _m:l=14;break e;case An:l=16,s=null;break e}l=29,a=Error(E(130,e===null?"null":typeof e,"")),s=null}return t=Ut(l,a,t,i),t.elementType=e,t.type=s,t.lanes=r,t}function Os(e,t,a,s){return e=Ut(7,e,s,t),e.lanes=a,e}function Xd(e,t,a){return e=Ut(6,e,null,t),e.lanes=a,e}function ly(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function Jd(e,t,a){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Rp=new WeakMap;function la(e,t){if(typeof e=="object"&&e!==null){var a=Rp.get(e);return a!==void 0?a:(t={value:e,source:t,stack:hp(t)},Rp.set(e,t),t)}return{value:e,source:t,stack:hp(t)}}var Ci=[],Oi=0,cc=null,gl=0,sa=[],ia=0,Zn=null,Da=1,La="";function en(e,t){Ci[Oi++]=gl,Ci[Oi++]=cc,cc=e,gl=t}function oy(e,t,a){sa[ia++]=Da,sa[ia++]=La,sa[ia++]=Zn,Zn=e;var s=Da;e=La;var i=32-Ft(s)-1;s&=~(1<<i),a+=1;var r=32-Ft(t)+i;if(30<r){var l=i-i%5;r=(s&(1<<l)-1).toString(32),s>>=l,i-=l,Da=1<<32-Ft(t)+i|a<<i|s,La=r+e}else Da=1<<r|a<<i|s,La=e}function Vm(e){e.return!==null&&(en(e,1),oy(e,1,0))}function Hm(e){for(;e===cc;)cc=Ci[--Oi],Ci[Oi]=null,gl=Ci[--Oi],Ci[Oi]=null;for(;e===Zn;)Zn=sa[--ia],sa[ia]=null,La=sa[--ia],sa[ia]=null,Da=sa[--ia],sa[ia]=null}function cy(e,t){sa[ia++]=Da,sa[ia++]=La,sa[ia++]=Zn,Da=t.id,La=t.overflow,Zn=e}var ht=null,Ie=null,ue=!1,qn=null,oa=!1,ch=Error(E(519));function es(e){var t=Error(E(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xl(la(t,e)),ch}function Ip(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[ut]=e,t[Dt]=s,a){case"dialog":le("cancel",t),le("close",t);break;case"iframe":case"object":case"embed":le("load",t);break;case"video":case"audio":for(a=0;a<wl.length;a++)le(wl[a],t);break;case"source":le("error",t);break;case"img":case"image":case"link":le("error",t),le("load",t);break;case"details":le("toggle",t);break;case"input":le("invalid",t),Bv(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":le("invalid",t);break;case"textarea":le("invalid",t),qv(t,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||G0(t.textContent,a)?(s.popover!=null&&(le("beforetoggle",t),le("toggle",t)),s.onScroll!=null&&le("scroll",t),s.onScrollEnd!=null&&le("scrollend",t),s.onClick!=null&&(t.onclick=nn),t=!0):t=!1,t||es(e,!0)}function Mp(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:oa=!1;return;case 27:case 3:oa=!0;return;default:ht=ht.return}}function ri(e){if(e!==ht)return!1;if(!ue)return Mp(e),ue=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Mh(e.type,e.memoizedProps)),a=!a),a&&Ie&&es(e),Mp(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));Ie=bg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));Ie=bg(e)}else t===27?(t=Ie,ss(e.type)?(e=zh,zh=null,Ie=e):Ie=t):Ie=ht?ha(e.stateNode.nextSibling):null;return!0}function Ls(){Ie=ht=null,ue=!1}function Zd(){var e=qn;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),qn=null),e}function xl(e){qn===null?qn=[e]:qn.push(e)}var dh=Va(null),Xs=null,sn=null;function _n(e,t,a){Oe(dh,t._currentValue),t._currentValue=a}function cn(e){e._currentValue=dh.current,ot(dh)}function uh(e,t,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===a)break;e=e.return}}function hh(e,t,a,s){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var l=i.child;r=r.firstContext;e:for(;r!==null;){var o=r;r=i;for(var c=0;c<t.length;c++)if(o.context===t[c]){r.lanes|=a,o=r.alternate,o!==null&&(o.lanes|=a),uh(r.return,a,e),s||(l=null);break e}r=o.next}}else if(i.tag===18){if(l=i.return,l===null)throw Error(E(341));l.lanes|=a,r=l.alternate,r!==null&&(r.lanes|=a),uh(l,a,e),l=null}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===e){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}}function mr(e,t,a,s){e=null;for(var i=t,r=!1;i!==null;){if(!r){if(i.flags&524288)r=!0;else if(i.flags&262144)break}if(i.tag===10){var l=i.alternate;if(l===null)throw Error(E(387));if(l=l.memoizedProps,l!==null){var o=i.type;Kt(i.pendingProps.value,l.value)||(e!==null?e.push(o):e=[o])}}else if(i===ac.current){if(l=i.alternate,l===null)throw Error(E(387));l.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Nl):e=[Nl])}i=i.return}e!==null&&hh(t,e,a,s),t.flags|=262144}function dc(e){for(e=e.firstContext;e!==null;){if(!Kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ps(e){Xs=e,sn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return dy(Xs,e)}function no(e,t){return Xs===null&&Ps(e),dy(e,t)}function dy(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},sn===null){if(e===null)throw Error(E(308));sn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sn=sn.next=t;return a}var VS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},HS=nt.unstable_scheduleCallback,$S=nt.unstable_NormalPriority,Je={$$typeof:an,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $m(){return{controller:new VS,data:new Map,refCount:0}}function Pl(e){e.refCount--,e.refCount===0&&HS($S,function(){e.controller.abort()})}var Kr=null,mh=0,Qi=0,Ui=null;function GS(e,t){if(Kr===null){var a=Kr=[];mh=0,Qi=gf(),Ui={status:"pending",value:void 0,then:function(s){a.push(s)}}}return mh++,t.then(Dp,Dp),t}function Dp(){if(--mh===0&&Kr!==null){Ui!==null&&(Ui.status="fulfilled");var e=Kr;Kr=null,Qi=0,Ui=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function WS(e,t){var a=[],s={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(s.status="rejected",s.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),s}var Lp=K.S;K.S=function(e,t){S0=Gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&GS(e,t),Lp!==null&&Lp(e,t)};var Rs=Va(null);function Gm(){var e=Rs.current;return e!==null?e:ke.pooledCache}function zo(e,t){t===null?Oe(Rs,Rs.current):Oe(Rs,t.pool)}function uy(){var e=Gm();return e===null?null:{parent:Je._currentValue,pool:e}}var fr=Error(E(460)),Wm=Error(E(474)),td=Error(E(542)),uc={then:function(){}};function Pp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function hy(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(nn,nn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bp(e),e;default:if(typeof t.status=="string")t.then(nn,nn);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(E(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=s}},function(s){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bp(e),e}throw Is=t,fr}}function ys(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Is=a,fr):a}}var Is=null;function zp(){if(Is===null)throw Error(E(459));var e=Is;return Is=null,e}function Bp(e){if(e===fr||e===td)throw Error(E(483))}var qi=null,vl=0;function so(e){var t=vl;return vl+=1,qi===null&&(qi=[]),hy(qi,e,t)}function Tr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function io(e,t){throw t.$$typeof===RN?Error(E(525)):(e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function my(e){function t(y,x){if(e){var g=y.deletions;g===null?(y.deletions=[x],y.flags|=16):g.push(x)}}function a(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function s(y){for(var x=new Map;y!==null;)y.key!==null?x.set(y.key,y):x.set(y.index,y),y=y.sibling;return x}function i(y,x){return y=on(y,x),y.index=0,y.sibling=null,y}function r(y,x,g){return y.index=g,e?(g=y.alternate,g!==null?(g=g.index,g<x?(y.flags|=67108866,x):g):(y.flags|=67108866,x)):(y.flags|=1048576,x)}function l(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function o(y,x,g,b){return x===null||x.tag!==6?(x=Xd(g,y.mode,b),x.return=y,x):(x=i(x,g),x.return=y,x)}function c(y,x,g,b){var N=g.type;return N===wi?u(y,x,g.props.children,b,g.key):x!==null&&(x.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===An&&ys(N)===x.type)?(x=i(x,g.props),Tr(x,g),x.return=y,x):(x=Po(g.type,g.key,g.props,null,y.mode,b),Tr(x,g),x.return=y,x)}function d(y,x,g,b){return x===null||x.tag!==4||x.stateNode.containerInfo!==g.containerInfo||x.stateNode.implementation!==g.implementation?(x=Jd(g,y.mode,b),x.return=y,x):(x=i(x,g.children||[]),x.return=y,x)}function u(y,x,g,b,N){return x===null||x.tag!==7?(x=Os(g,y.mode,b,N),x.return=y,x):(x=i(x,g),x.return=y,x)}function m(y,x,g){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=Xd(""+x,y.mode,g),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Xl:return g=Po(x.type,x.key,x.props,null,y.mode,g),Tr(g,x),g.return=y,g;case Lr:return x=Jd(x,y.mode,g),x.return=y,x;case An:return x=ys(x),m(y,x,g)}if(Pr(x)||Sr(x))return x=Os(x,y.mode,g,null),x.return=y,x;if(typeof x.then=="function")return m(y,so(x),g);if(x.$$typeof===an)return m(y,no(y,x),g);io(y,x)}return null}function f(y,x,g,b){var N=x!==null?x.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return N!==null?null:o(y,x,""+g,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Xl:return g.key===N?c(y,x,g,b):null;case Lr:return g.key===N?d(y,x,g,b):null;case An:return g=ys(g),f(y,x,g,b)}if(Pr(g)||Sr(g))return N!==null?null:u(y,x,g,b,null);if(typeof g.then=="function")return f(y,x,so(g),b);if(g.$$typeof===an)return f(y,x,no(y,g),b);io(y,g)}return null}function h(y,x,g,b,N){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return y=y.get(g)||null,o(x,y,""+b,N);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Xl:return y=y.get(b.key===null?g:b.key)||null,c(x,y,b,N);case Lr:return y=y.get(b.key===null?g:b.key)||null,d(x,y,b,N);case An:return b=ys(b),h(y,x,g,b,N)}if(Pr(b)||Sr(b))return y=y.get(g)||null,u(x,y,b,N,null);if(typeof b.then=="function")return h(y,x,g,so(b),N);if(b.$$typeof===an)return h(y,x,g,no(x,b),N);io(x,b)}return null}function w(y,x,g,b){for(var N=null,A=null,S=x,_=x=0,O=null;S!==null&&_<g.length;_++){S.index>_?(O=S,S=null):O=S.sibling;var R=f(y,S,g[_],b);if(R===null){S===null&&(S=O);break}e&&S&&R.alternate===null&&t(y,S),x=r(R,x,_),A===null?N=R:A.sibling=R,A=R,S=O}if(_===g.length)return a(y,S),ue&&en(y,_),N;if(S===null){for(;_<g.length;_++)S=m(y,g[_],b),S!==null&&(x=r(S,x,_),A===null?N=S:A.sibling=S,A=S);return ue&&en(y,_),N}for(S=s(S);_<g.length;_++)O=h(S,y,_,g[_],b),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?_:O.key),x=r(O,x,_),A===null?N=O:A.sibling=O,A=O);return e&&S.forEach(function(H){return t(y,H)}),ue&&en(y,_),N}function v(y,x,g,b){if(g==null)throw Error(E(151));for(var N=null,A=null,S=x,_=x=0,O=null,R=g.next();S!==null&&!R.done;_++,R=g.next()){S.index>_?(O=S,S=null):O=S.sibling;var H=f(y,S,R.value,b);if(H===null){S===null&&(S=O);break}e&&S&&H.alternate===null&&t(y,S),x=r(H,x,_),A===null?N=H:A.sibling=H,A=H,S=O}if(R.done)return a(y,S),ue&&en(y,_),N;if(S===null){for(;!R.done;_++,R=g.next())R=m(y,R.value,b),R!==null&&(x=r(R,x,_),A===null?N=R:A.sibling=R,A=R);return ue&&en(y,_),N}for(S=s(S);!R.done;_++,R=g.next())R=h(S,y,_,R.value,b),R!==null&&(e&&R.alternate!==null&&S.delete(R.key===null?_:R.key),x=r(R,x,_),A===null?N=R:A.sibling=R,A=R);return e&&S.forEach(function(X){return t(y,X)}),ue&&en(y,_),N}function j(y,x,g,b){if(typeof g=="object"&&g!==null&&g.type===wi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Xl:e:{for(var N=g.key;x!==null;){if(x.key===N){if(N=g.type,N===wi){if(x.tag===7){a(y,x.sibling),b=i(x,g.props.children),b.return=y,y=b;break e}}else if(x.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===An&&ys(N)===x.type){a(y,x.sibling),b=i(x,g.props),Tr(b,g),b.return=y,y=b;break e}a(y,x);break}else t(y,x);x=x.sibling}g.type===wi?(b=Os(g.props.children,y.mode,b,g.key),b.return=y,y=b):(b=Po(g.type,g.key,g.props,null,y.mode,b),Tr(b,g),b.return=y,y=b)}return l(y);case Lr:e:{for(N=g.key;x!==null;){if(x.key===N)if(x.tag===4&&x.stateNode.containerInfo===g.containerInfo&&x.stateNode.implementation===g.implementation){a(y,x.sibling),b=i(x,g.children||[]),b.return=y,y=b;break e}else{a(y,x);break}else t(y,x);x=x.sibling}b=Jd(g,y.mode,b),b.return=y,y=b}return l(y);case An:return g=ys(g),j(y,x,g,b)}if(Pr(g))return w(y,x,g,b);if(Sr(g)){if(N=Sr(g),typeof N!="function")throw Error(E(150));return g=N.call(g),v(y,x,g,b)}if(typeof g.then=="function")return j(y,x,so(g),b);if(g.$$typeof===an)return j(y,x,no(y,g),b);io(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,x!==null&&x.tag===6?(a(y,x.sibling),b=i(x,g),b.return=y,y=b):(a(y,x),b=Xd(g,y.mode,b),b.return=y,y=b),l(y)):a(y,x)}return function(y,x,g,b){try{vl=0;var N=j(y,x,g,b);return qi=null,N}catch(S){if(S===fr||S===td)throw S;var A=Ut(29,S,null,y.mode);return A.lanes=b,A.return=y,A}finally{}}}var zs=my(!0),fy=my(!1),kn=!1;function Fm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,pe&2){var i=s.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),s.pending=t,t=oc(e),iy(e,null,a),t}return ed(e,s,t,a),oc(e)}function Qr(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,Rv(e,a)}}function eu(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var i=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var l={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?i=r=l:r=r.next=l,a=a.next}while(a!==null);r===null?i=r=t:r=r.next=t}else i=r=t;a={baseState:s.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ph=!1;function Xr(){if(ph){var e=Ui;
vendor: 4,727 bytes, line 24
24if(e!==null)throw e}}function Jr(e,t,a,s){ph=!1;var i=e.updateQueue;kn=!1;var r=i.firstBaseUpdate,l=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var c=o,d=c.next;c.next=null,l===null?r=d:l.next=d,l=c;var u=e.alternate;u!==null&&(u=u.updateQueue,o=u.lastBaseUpdate,o!==l&&(o===null?u.firstBaseUpdate=d:o.next=d,u.lastBaseUpdate=c))}if(r!==null){var m=i.baseState;l=0,u=d=c=null,o=r;do{var f=o.lane&-536870913,h=f!==o.lane;if(h?(de&f)===f:(s&f)===f){f!==0&&f===Qi&&(ph=!0),u!==null&&(u=u.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var w=e,v=o;f=t;var j=a;switch(v.tag){case 1:if(w=v.payload,typeof w=="function"){m=w.call(j,m,f);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,f=typeof w=="function"?w.call(j,m,f):w,f==null)break e;m=Ue({},m,f);break e;case 2:kn=!0}}f=o.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=i.callbacks,h===null?i.callbacks=[f]:h.push(f))}else h={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},u===null?(d=u=h,c=m):u=u.next=h,l|=f;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);u===null&&(c=m),i.baseState=c,i.firstBaseUpdate=d,i.lastBaseUpdate=u,r===null&&(i.shared.lanes=0),as|=l,e.lanes=l,e.memoizedState=m}}function py(e,t){if(typeof e!="function")throw Error(E(191,e));e.call(t)}function gy(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)py(a[e],t)}var Xi=Va(null),hc=Va(0);function Up(e,t){e=pn,Oe(hc,e),Oe(Xi,t),pn=e|t.baseLanes}function gh(){Oe(hc,pn),Oe(Xi,Xi.current)}function Ym(){pn=hc.current,ot(Xi),ot(hc)}var Qt=Va(null),ua=null;function En(e){var t=e.alternate;Oe(Ye,Ye.current&1),Oe(Qt,e),ua===null&&(t===null||Xi.current!==null||t.memoizedState!==null)&&(ua=e)}function xh(e){Oe(Ye,Ye.current),Oe(Qt,e),ua===null&&(ua=e)}function xy(e){e.tag===22?(Oe(Ye,Ye.current),Oe(Qt,e),ua===null&&(ua=e)):Cn()}function Cn(){Oe(Ye,Ye.current),Oe(Qt,Qt.current)}function Bt(e){ot(Qt),ua===e&&(ua=null),ot(Ye)}var Ye=Va(0);function mc(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Lh(a)||Ph(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 hn=0,ee=null,Se=null,Qe=null,fc=!1,Vi=!1,Bs=!1,pc=0,yl=0,Hi=null,FS=0;function We(){throw Error(E(321))}function Km(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Kt(e[a],t[a]))return!1;return!0}function Qm(e,t,a,s,i,r){return hn=r,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,K.H=e===null||e.memoizedState===null?Yy:of,Bs=!1,r=a(s,i),Bs=!1,Vi&&(r=yy(t,a,s,i)),vy(e),r}function vy(e){K.H=bl;var t=Se!==null&&Se.next!==null;if(hn=0,Qe=Se=ee=null,fc=!1,yl=0,Hi=null,t)throw Error(E(300));e===null||Ze||(e=e.dependencies,e!==null&&dc(e)&&(Ze=!0))}function yy(e,t,a,s){ee=e;var i=0;do{if(Vi&&(Hi=null),yl=0,Vi=!1,25<=i)throw Error(E(301));if(i+=1,Qe=Se=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}K.H=Ky,r=t(a,s)}while(Vi);return r}function YS(){var e=K.H,t=e.useState()[0];return t=typeof t.then=="function"?zl(t):t,e=e.useState()[0],(Se!==null?Se.memoizedState:null)!==e&&(ee.flags|=1024),t}function Xm(){var e=pc!==0;return pc=0,e}function Jm(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Zm(e){if(fc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fc=!1}hn=0,Qe=Se=ee=null,Vi=!1,yl=pc=0,Hi=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ee.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ke(){if(Se===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=Qe===null?ee.memoizedState:Qe.next;if(t!==null)Qe=t,Se=e;else{if(e===null)throw ee.alternate===null?Error(E(467)):Error(E(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},Qe===null?ee.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function ad(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zl(e){var t=yl;return yl+=1,Hi===null&&(Hi=[]),e=hy(Hi,e,t),t=ee,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,K.H=t===null||t.memoizedState===null?Yy:of),e}
vendor: 17,222 bytes, line 24
24function nd(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zl(e);if(e.$$typeof===an)return ft(e)}throw Error(E(438,String(e)))}function ef(e){var t=null,a=ee.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var s=ee.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ad(),ee.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),s=0;s<e;s++)a[s]=IN;return t.index++,a}function mn(e,t){return typeof t=="function"?t(e):t}function Bo(e){var t=Ke();return tf(t,Se,e)}function tf(e,t,a){var s=e.queue;if(s===null)throw Error(E(311));s.lastRenderedReducer=a;var i=e.baseQueue,r=s.pending;if(r!==null){if(i!==null){var l=i.next;i.next=r.next,r.next=l}t.baseQueue=i=r,s.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var o=l=null,c=null,d=t,u=!1;do{var m=d.lane&-536870913;if(m!==d.lane?(de&m)===m:(hn&m)===m){var f=d.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),m===Qi&&(u=!0);else if((hn&f)===f){d=d.next,f===Qi&&(u=!0);continue}else m={lane:0,revertLane:d.revertLane,gesture:null,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},c===null?(o=c=m,l=r):c=c.next=m,ee.lanes|=f,as|=f;m=d.action,Bs&&a(r,m),r=d.hasEagerState?d.eagerState:a(r,m)}else f={lane:m,revertLane:d.revertLane,gesture:d.gesture,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},c===null?(o=c=f,l=r):c=c.next=f,ee.lanes|=m,as|=m;d=d.next}while(d!==null&&d!==t);if(c===null?l=r:c.next=o,!Kt(r,e.memoizedState)&&(Ze=!0,u&&(a=Ui,a!==null)))throw a;e.memoizedState=r,e.baseState=l,e.baseQueue=c,s.lastRenderedState=r}return i===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function tu(e){var t=Ke(),a=t.queue;if(a===null)throw Error(E(311));a.lastRenderedReducer=e;var s=a.dispatch,i=a.pending,r=t.memoizedState;if(i!==null){a.pending=null;var l=i=i.next;do r=e(r,l.action),l=l.next;while(l!==i);Kt(r,t.memoizedState)||(Ze=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,s]}function by(e,t,a){var s=ee,i=Ke(),r=ue;if(r){if(a===void 0)throw Error(E(407));a=a()}else a=t();var l=!Kt((Se||i).memoizedState,a);if(l&&(i.memoizedState=a,Ze=!0),i=i.queue,af(Ny.bind(null,s,i,e),[e]),i.getSnapshot!==t||l||Qe!==null&&Qe.memoizedState.tag&1){if(s.flags|=2048,Ji(9,{destroy:void 0},jy.bind(null,s,i,a,t),null),ke===null)throw Error(E(349));r||hn&127||wy(s,t,a)}return a}function wy(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ee.updateQueue,t===null?(t=ad(),ee.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function jy(e,t,a,s){t.value=a,t.getSnapshot=s,Sy(t)&&Ay(e)}function Ny(e,t,a){return a(function(){Sy(t)&&Ay(e)})}function Sy(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Kt(e,a)}catch{return!0}}function Ay(e){var t=Qs(e,2);t!==null&&Mt(t,e,2)}function vh(e){var t=Nt();if(typeof e=="function"){var a=e;if(e=a(),Bs){In(!0);try{a()}finally{In(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:e},t}function ky(e,t,a,s){return e.baseState=a,tf(e,Se,typeof s=="function"?s:mn)}function KS(e,t,a,s,i){if(id(e))throw Error(E(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){r.listeners.push(l)}};K.T!==null?a(!0):r.isTransition=!1,s(r),a=t.pending,a===null?(r.next=t.pending=r,Ty(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Ty(e,t){var a=t.action,s=t.payload,i=e.state;if(t.isTransition){var r=K.T,l={};K.T=l;try{var o=a(i,s),c=K.S;c!==null&&c(l,o),qp(e,t,o)}catch(d){yh(e,t,d)}finally{r!==null&&l.types!==null&&(r.types=l.types),K.T=r}}else try{r=a(i,s),qp(e,t,r)}catch(d){yh(e,t,d)}}function qp(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Vp(e,t,s)},function(s){return yh(e,t,s)}):Vp(e,t,a)}function Vp(e,t,a){t.status="fulfilled",t.value=a,_y(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ty(e,a)))}function yh(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,_y(t),t=t.next;while(t!==s)}e.action=null}function _y(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ey(e,t){return t}function Hp(e,t){if(ue){var a=ke.formState;if(a!==null){e:{var s=ee;if(ue){if(Ie){t:{for(var i=Ie,r=oa;i.nodeType!==8;){if(!r){i=null;break t}if(i=ha(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){Ie=ha(i.nextSibling),s=i.data==="F!";break e}}es(s)}s=!1}s&&(t=a[0])}}return a=Nt(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ey,lastRenderedState:t},a.queue=s,a=Gy.bind(null,ee,s),s.dispatch=a,s=vh(!1),r=lf.bind(null,ee,!1,s.queue),s=Nt(),i={state:t,dispatch:null,action:e,pending:null},s.queue=i,a=KS.bind(null,ee,i,r,a),i.dispatch=a,s.memoizedState=e,[t,a,!1]}function $p(e){var t=Ke();return Cy(t,Se,e)}function Cy(e,t,a){if(t=tf(e,t,Ey)[0],e=Bo(mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=zl(t)}catch(l){throw l===fr?td:l}else s=t;t=Ke();var i=t.queue,r=i.dispatch;return a!==t.memoizedState&&(ee.flags|=2048,Ji(9,{destroy:void 0},QS.bind(null,i,a),null)),[s,r,e]}function QS(e,t){e.action=t}function Gp(e){var t=Ke(),a=Se;if(a!==null)return Cy(t,a,e);Ke(),t=t.memoizedState,a=Ke();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function Ji(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=ee.updateQueue,t===null&&(t=ad(),ee.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,t.lastEffect=e),e}function Oy(){return Ke().memoizedState}function Uo(e,t,a,s){var i=Nt();ee.flags|=e,i.memoizedState=Ji(1|t,{destroy:void 0},a,s===void 0?null:s)}function sd(e,t,a,s){var i=Ke();s=s===void 0?null:s;var r=i.memoizedState.inst;Se!==null&&s!==null&&Km(s,Se.memoizedState.deps)?i.memoizedState=Ji(t,r,a,s):(ee.flags|=e,i.memoizedState=Ji(1|t,r,a,s))}function Wp(e,t){Uo(8390656,8,e,t)}function af(e,t){sd(2048,8,e,t)}function XS(e){ee.flags|=4;var t=ee.updateQueue;if(t===null)t=ad(),ee.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ry(e){var t=Ke().memoizedState;return XS({ref:t,nextImpl:e}),function(){if(pe&2)throw Error(E(440));return t.impl.apply(void 0,arguments)}}function Iy(e,t){return sd(4,2,e,t)}function My(e,t){return sd(4,4,e,t)}function Dy(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ly(e,t,a){a=a!=null?a.concat([e]):null,sd(4,4,Dy.bind(null,t,e),a)}function nf(){}function Py(e,t){var a=Ke();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&Km(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function zy(e,t){var a=Ke();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&Km(t,s[1]))return s[0];if(s=e(),Bs){In(!0);try{e()}finally{In(!1)}}return a.memoizedState=[s,t],s}function sf(e,t,a){return a===void 0||hn&1073741824&&!(de&261930)?e.memoizedState=t:(e.memoizedState=a,e=k0(),ee.lanes|=e,as|=e,a)}function By(e,t,a,s){return Kt(a,t)?a:Xi.current!==null?(e=sf(e,a,s),Kt(e,t)||(Ze=!0),e):!(hn&42)||hn&1073741824&&!(de&261930)?(Ze=!0,e.memoizedState=a):(e=k0(),ee.lanes|=e,as|=e,t)}function Uy(e,t,a,s,i){var r=ge.p;ge.p=r!==0&&8>r?r:8;var l=K.T,o={};K.T=o,lf(e,!1,t,a);try{var c=i(),d=K.S;if(d!==null&&d(o,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=WS(c,s);Zr(e,t,u,Yt(e))}else Zr(e,t,s,Yt(e))}catch(m){Zr(e,t,{then:function(){},status:"rejected",reason:m},Yt())}finally{ge.p=r,l!==null&&o.types!==null&&(l.types=o.types),K.T=l}}function JS(){}function bh(e,t,a,s){if(e.tag!==5)throw Error(E(476));var i=qy(e).queue;Uy(e,i,t,Cs,a===null?JS:function(){return Vy(e),a(s)})}function qy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Cs,baseState:Cs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:Cs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vy(e){var t=qy(e);t.next===null&&(t=e.alternate.memoizedState),Zr(e,t.next.queue,{},Yt())}function rf(){return ft(Nl)}function Hy(){return Ke().memoizedState}function $y(){return Ke().memoizedState}function ZS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Yt();e=Vn(a);var s=Hn(t,e,a);s!==null&&(Mt(s,t,a),Qr(s,t,a)),t={cache:$m()},e.payload=t;return}t=t.return}}function eA(e,t,a){var s=Yt();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},id(e)?Wy(t,a):(a=Um(e,t,a,s),a!==null&&(Mt(a,e,s),Fy(a,t,s)))}function Gy(e,t,a){var s=Yt();Zr(e,t,a,s)}function Zr(e,t,a,s){var i={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(id(e))Wy(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var l=t.lastRenderedState,o=r(l,a);if(i.hasEagerState=!0,i.eagerState=o,Kt(o,l))return ed(e,t,i,0),ke===null&&Zc(),!1}catch{}finally{}if(a=Um(e,t,i,s),a!==null)return Mt(a,e,s),Fy(a,t,s),!0}return!1}function lf(e,t,a,s){if(s={lane:2,revertLane:gf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},id(e)){if(t)throw Error(E(479))}else t=Um(e,a,s,2),t!==null&&Mt(t,e,2)}function id(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function Wy(e,t){Vi=fc=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Fy(e,t,a){if(a&4194048){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,Rv(e,a)}}var bl={readContext:ft,use:nd,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};bl.useEffectEvent=We;var Yy={readContext:ft,use:nd,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Wp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Uo(4194308,4,Dy.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Uo(4194308,4,e,t)},useInsertionEffect:function(e,t){Uo(4,2,e,t)},useMemo:function(e,t){var a=Nt();t=t===void 0?null:t;var s=e();if(Bs){In(!0);try{e()}finally{In(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=Nt();if(a!==void 0){var i=a(t);if(Bs){In(!0);try{a(t)}finally{In(!1)}}}else i=t;return s.memoizedState=s.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},s.queue=e,e=e.dispatch=eA.bind(null,ee,e),[s.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=vh(e);var t=e.queue,a=Gy.bind(null,ee,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:nf,useDeferredValue:function(e,t){var a=Nt();return sf(a,e,t)},useTransition:function(){var e=vh(!1);return e=Uy.bind(null,ee,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=ee,i=Nt();if(ue){if(a===void 0)throw Error(E(407));a=a()}else{if(a=t(),ke===null)throw Error(E(349));de&127||wy(s,t,a)}i.memoizedState=a;var r={value:a,getSnapshot:t};return i.queue=r,Wp(Ny.bind(null,s,r,e),[e]),s.flags|=2048,Ji(9,{destroy:void 0},jy.bind(null,s,r,a,t),null),a},useId:function(){var e=Nt(),t=ke.identifierPrefix;if(ue){var a=La,s=Da;a=(s&~(1<<32-Ft(s)-1)).toString(32)+a,t="_"+t+"R_"+a,a=pc++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=FS++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rf,useFormState:Hp,useActionState:Hp,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=lf.bind(null,ee,!0,a),a.dispatch=t,[e,t]},useMemoCache:ef,useCacheRefresh:function(){return Nt().memoizedState=ZS.bind(null,ee)},useEffectEvent:function(e){var t=Nt(),a={impl:e};return t.memoizedState=a,function(){if(pe&2)throw Error(E(440));return a.impl.apply(void 0,arguments)}}},of={readContext:ft,use:nd,useCallback:Py,useContext:ft,useEffect:af,useImperativeHandle:Ly,useInsertionEffect:Iy,useLayoutEffect:My,useMemo:zy,useReducer:Bo,useRef:Oy,useState:function(){return Bo(mn)},useDebugValue:nf,useDeferredValue:function(e,t){var a=Ke();return By(a,Se.memoizedState,e,t)},useTransition:function(){var e=Bo(mn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:zl(e),t]},useSyncExternalStore:by,useId:Hy,useHostTransitionStatus:rf,useFormState:$p,useActionState:$p,useOptimistic:function(e,t){var a=Ke();return ky(a,Se,e,t)},useMemoCache:ef,useCacheRefresh:$y};of.useEffectEvent=Ry;var Ky={readContext:ft,use:nd,useCallback:Py,useContext:ft,useEffect:af,useImperativeHandle:Ly,useInsertionEffect:Iy,useLayoutEffect:My,useMemo:zy,useReducer:tu,useRef:Oy,useState:function(){return tu(mn)},useDebugValue:nf,useDeferredValue:function(e,t){var a=Ke();return Se===null?sf(a,e,t):By(a,Se.memoizedState,e,t)},useTransition:function(){var e=tu(mn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:zl(e),t]},useSyncExternalStore:by,useId:Hy,useHostTransitionStatus:rf,useFormState:Gp,useActionState:Gp,useOptimistic:function(e,t){var a=Ke();return Se!==null?ky(a,Se,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ef,useCacheRefresh:$y};Ky.useEffectEvent=Ry;function au(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:Ue({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var wh={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=Yt(),i=Vn(s);i.payload=t,a!=null&&(i.callback=a),t=Hn(e,i,s),t!==null&&(Mt(t,e,s),Qr(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=Yt(),i=Vn(s);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Hn(e,i,s),t!==null&&(Mt(t,e,s),Qr(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Yt(),s=Vn(a);s.tag=2,t!=null&&(s.callback=t),t=Hn(e,s,a),t!==null&&(Mt(t,e,a),Qr(t,e,a))}};function Fp(e,t,a,s,i,r,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,r,l):t.prototype&&t.prototype.isPureReactComponent?!pl(a,s)||!pl(i,r):!0}function Yp(e,t,a,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,s),t.state!==e&&wh.enqueueReplaceState(t,t.state,null)}function Us(e,t){var a=t;if("ref"in t){a={};for(var s in t)s!=="ref"&&(a[s]=t[s])}if(e=e.defaultProps){a===t&&(a=Ue({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Qy(e){lc(e)}function Xy(e){console.error(e)}function Jy(e){lc(e)}function gc(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Kp(e,t,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function jh(e,t,a){return a=Vn(a),a.tag=3,a.payload={element:null},a.callback=function(){gc(e,t)},a}function Zy(e){return e=Vn(e),e.tag=3,e}function e0(e,t,a,s){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var r=s.value;e.payload=function(){return i(r)},e.callback=function(){Kp(t,a,s)}}var l=a.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Kp(t,a,s),typeof i!="function"&&($n===null?$n=new Set([this]):$n.add(this));var o=s.stack;this.componentDidCatch(s.value,{componentStack:o!==null?o:""})})}function tA(e,t,a,s,i){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&mr(t,a,i,!0),a=Qt.current,a!==null){switch(a.tag){case 31:case 13:return ua===null?wc():a.alternate===null&&Fe===0&&(Fe=3),a.flags&=-257,a.flags|=65536,a.lanes=i,s===uc?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),mu(e,s,i)),!1;case 22:return a.flags|=65536,s===uc?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([s]):a.add(s)),mu(e,s,i)),!1}throw Error(E(435,a.tag))}return mu(e,s,i),wc(),!1}if(ue)return t=Qt.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,s!==ch&&(e=Error(E(422),{cause:s}),xl(la(e,a)))):(s!==ch&&(t=Error(E(423),{cause:s}),xl(la(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,s=la(s,a),i=jh(e.stateNode,s,i),eu(e,i),Fe!==4&&(Fe=2)),!1;var r=Error(E(520),{cause:s});if(r=la(r,a),al===null?al=[r]:al.push(r),Fe!==4&&(Fe=2),t===null)return!0;s=la(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=jh(a.stateNode,s,e),eu(
vendor: 10,257 bytes, line 24
24a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&($n===null||!$n.has(r))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Zy(i),e0(i,e,a,s),eu(a,i),!1}a=a.return}while(a!==null);return!1}var cf=Error(E(461)),Ze=!1;function ct(e,t,a,s){t.child=e===null?fy(t,null,a,s):zs(t,e.child,a,s)}function Qp(e,t,a,s,i){a=a.render;var r=t.ref;if("ref"in s){var l={};for(var o in s)o!=="ref"&&(l[o]=s[o])}else l=s;return Ps(t),s=Qm(e,t,a,l,r,i),o=Xm(),e!==null&&!Ze?(Jm(e,t,i),fn(e,t,i)):(ue&&o&&Vm(t),t.flags|=1,ct(e,t,s,i),t.child)}function Xp(e,t,a,s,i){if(e===null){var r=a.type;return typeof r=="function"&&!qm(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,t0(e,t,r,s,i)):(e=Po(a.type,null,s,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!df(e,i)){var l=r.memoizedProps;if(a=a.compare,a=a!==null?a:pl,a(l,s)&&e.ref===t.ref)return fn(e,t,i)}return t.flags|=1,e=on(r,s),e.ref=t.ref,e.return=t,t.child=e}function t0(e,t,a,s,i){if(e!==null){var r=e.memoizedProps;if(pl(r,s)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=s=r,df(e,i))e.flags&131072&&(Ze=!0);else return t.lanes=e.lanes,fn(e,t,i)}return Nh(e,t,a,s,i)}function a0(e,t,a,s){var i=s.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if(t.flags&128){if(r=r!==null?r.baseLanes|a:a,e!==null){for(s=t.child=e.child,i=0;s!==null;)i=i|s.lanes|s.childLanes,s=s.sibling;s=i&~r}else s=0,t.child=null;return Jp(e,t,r,a,s)}if(a&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zo(t,r!==null?r.cachePool:null),r!==null?Up(t,r):gh(),xy(t);else return s=t.lanes=536870912,Jp(e,t,r!==null?r.baseLanes|a:a,a,s)}else r!==null?(zo(t,r.cachePool),Up(t,r),Cn(),t.memoizedState=null):(e!==null&&zo(t,null),gh(),Cn());return ct(e,t,i,a),t.child}function Br(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jp(e,t,a,s,i){var r=Gm();return r=r===null?null:{parent:Je._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&zo(t,null),gh(),xy(t),e!==null&&mr(e,t,s,!0),t.childLanes=i,null}function qo(e,t){return t=xc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zp(e,t,a){return zs(t,e.child,null,a),e=qo(t,t.pendingProps),e.flags|=2,Bt(t),t.memoizedState=null,e}function aA(e,t,a){var s=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ue){if(s.mode==="hidden")return e=qo(t,s),t.lanes=536870912,Br(null,e);if(xh(t),(e=Ie)?(e=Y0(e,oa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zn!==null?{id:Da,overflow:La}:null,retryLane:536870912,hydrationErrors:null},a=ly(e),a.return=t,t.child=a,ht=t,Ie=null)):e=null,e===null)throw es(t);return t.lanes=536870912,null}return qo(t,s)}var r=e.memoizedState;if(r!==null){var l=r.dehydrated;if(xh(t),i)if(t.flags&256)t.flags&=-257,t=Zp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(E(558));else if(Ze||mr(e,t,a,!1),i=(a&e.childLanes)!==0,Ze||i){if(s=ke,s!==null&&(l=Iv(s,a),l!==0&&l!==r.retryLane))throw r.retryLane=l,Qs(e,l),Mt(s,e,l),cf;wc(),t=Zp(e,t,a)}else e=r.treeContext,Ie=ha(l.nextSibling),ht=t,ue=!0,qn=null,oa=!1,e!==null&&cy(t,e),t=qo(t,s),t.flags|=4096;return t}return e=on(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(E(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Nh(e,t,a,s,i){return Ps(t),a=Qm(e,t,a,s,void 0,i),s=Xm(),e!==null&&!Ze?(Jm(e,t,i),fn(e,t,i)):(ue&&s&&Vm(t),t.flags|=1,ct(e,t,a,i),t.child)}function eg(e,t,a,s,i,r){return Ps(t),t.updateQueue=null,a=yy(t,s,a,i),vy(e),s=Xm(),e!==null&&!Ze?(Jm(e,t,r),fn(e,t,r)):(ue&&s&&Vm(t),t.flags|=1,ct(e,t,a,r),t.child)}function tg(e,t,a,s,i){if(Ps(t),t.stateNode===null){var r=Ei,l=a.contextType;typeof l=="object"&&l!==null&&(r=ft(l)),r=new a(s,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=wh,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=s,r.state=t.memoizedState,r.refs={},Fm(t),l=a.contextType,r.context=typeof l=="object"&&l!==null?ft(l):Ei,r.state=t.memoizedState,l=a.getDerivedStateFromProps,typeof l=="function"&&(au(t,a,l,s),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(l=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),l!==r.state&&wh.enqueueReplaceState(r,r.state,null),Jr(t,s,r,i),Xr(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){r=t.stateNode;var o=t.memoizedProps,c=Us(a,o);r.props=c;var d=r.context,u=a.contextType;l=Ei,typeof u=="object"&&u!==null&&(l=ft(u));var m=a.getDerivedStateFromProps;u=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,u||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o||d!==l)&&Yp(t,r,s,l),kn=!1;var f=t.memoizedState;r.state=f,Jr(t,s,r,i),Xr(),d=t.memoizedState,o||f!==d||kn?(typeof m=="function"&&(au(t,a,m,s),d=t.memoizedState),(c=kn||Fp(t,a,c,s,f,d,l))?(u||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=d),r.props=s,r.state=d,r.context=l,s=c):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{r=t.stateNode,fh(e,t),l=t.memoizedProps,u=Us(a,l),r.props=u,m=t.pendingProps,f=r.context,d=a.contextType,c=Ei,typeof d=="object"&&d!==null&&(c=ft(d)),o=a.getDerivedStateFromProps,(d=typeof o=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(l!==m||f!==c)&&Yp(t,r,s,c),kn=!1,f=t.memoizedState,r.state=f,Jr(t,s,r,i),Xr();var h=t.memoizedState;l!==m||f!==h||kn||e!==null&&e.dependencies!==null&&dc(e.dependencies)?(typeof o=="function"&&(au(t,a,o,s),h=t.memoizedState),(u=kn||Fp(t,a,u,s,f,h,c)||e!==null&&e.dependencies!==null&&dc(e.dependencies))?(d||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(s,h,c),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(s,h,c)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=h),r.props=s,r.state=h,r.context=c,s=u):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),s=!1)}return r=s,Vo(e,t),s=(t.flags&128)!==0,r||s?(r=t.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&s?(t.child=zs(t,e.child,null,i),t.child=zs(t,null,a,i)):ct(e,t,a,i),t.memoizedState=r.state,e=t.child):e=fn(e,t,i),e}function ag(e,t,a,s){return Ls(),t.flags|=256,ct(e,t,a,s),t.child}var nu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function su(e){return{baseLanes:e,cachePool:uy()}}function iu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=qt),e}function n0(e,t,a){var s=t.pendingProps,i=!1,r=(t.flags&128)!==0,l;if((l=r)||(l=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),l&&(i=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(ue){if(i?En(t):Cn(),(e=Ie)?(e=Y0(e,oa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zn!==null?{id:Da,overflow:La}:null,retryLane:536870912,hydrationErrors:null},a=ly(e),a.return=t,t.child=a,ht=t,Ie=null)):e=null,e===null)throw es(t);return Ph(e)?t.lanes=32:t.lanes=536870912,null}var o=s.children;return s=s.fallback,i?(Cn(),i=t.mode,o=xc({mode:"hidden",children:o},i),s=Os(s,i,a,null),o.return=t,s.return=t,o.sibling=s,t.child=o,s=t.child,s.memoizedState=su(a),s.childLanes=iu(e,l,a),t.memoizedState=nu,Br(null,s)):(En(t),Sh(t,o))}var c=e.memoizedState;if(c!==null&&(o=c.dehydrated,o!==null)){if(r)t.flags&256?(En(t),t.flags&=-257,t=ru(e,t,a)):t.memoizedState!==null?(Cn(),t.child=e.child,t.flags|=128,t=null):(Cn(),o=s.fallback,i=t.mode,s=xc({mode:"visible",children:s.children},i),o=Os(o,i,a,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,zs(t,e.child,null,a),s=t.child,s.memoizedState=su(a),s.childLanes=iu(e,l,a),t.memoizedState=nu,t=Br(null,s));else if(En(t),Ph(o)){if(l=o.nextSibling&&o.nextSibling.dataset,l)var d=l.dgst;l=d,s=Error(E(419)),s.stack="",s.digest=l,xl({value:s,source:null,stack:null}),t=ru(e,t,a)}else if(Ze||mr(e,t,a,!1),l=(a&e.childLanes)!==0,Ze||l){if(l=ke,l!==null&&(s=Iv(l,a),s!==0&&s!==c.retryLane))throw c.retryLane=s,Qs(e,s),Mt(l,e,s),cf;Lh(o)||wc(),t=ru(e,t,a)}else Lh(o)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,Ie=ha(o.nextSibling),ht=t,ue=!0,qn=null,oa=!1,e!==null&&cy(t,e),t=Sh(t,s.children),t.flags|=4096);return t}return i?(Cn(),o=s.fallback,i=t.mode,c=e.child,d=c.sibling,s=on(c,{mode:"hidden",children:s.children}),s.subtreeFlags=c.subtreeFlags&65011712,d!==null?o=on(d,o):(o=Os(o,i,a,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,Br(null,s),s=t.child,o=e.child.memoizedState,o===null?o=su(a):(i=o.cachePool,i!==null?(c=Je._currentValue,i=i.parent!==c?{parent:c,pool:c}
vendor: 5,381 bytes, line 24
24:i):i=uy(),o={baseLanes:o.baseLanes|a,cachePool:i}),s.memoizedState=o,s.childLanes=iu(e,l,a),t.memoizedState=nu,Br(e.child,s)):(En(t),a=e.child,e=a.sibling,a=on(a,{mode:"visible",children:s.children}),a.return=t,a.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=a,t.memoizedState=null,a)}function Sh(e,t){return t=xc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function xc(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function ru(e,t,a){return zs(t,e.child,null,a),e=Sh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ng(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),uh(e.return,t,a)}function lu(e,t,a,s,i,r){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:i,treeForkCount:r}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=s,l.tail=a,l.tailMode=i,l.treeForkCount=r)}function s0(e,t,a){var s=t.pendingProps,i=s.revealOrder,r=s.tail;s=s.children;var l=Ye.current,o=(l&2)!==0;if(o?(l=l&1|2,t.flags|=128):l&=1,Oe(Ye,l),ct(e,t,s,a),s=ue?gl:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ng(e,a,t);else if(e.tag===19)ng(e,a,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}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&mc(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),lu(t,!1,i,a,r,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&mc(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}lu(t,!0,a,null,r,s);break;case"together":lu(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function fn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),as|=t.lanes,!(a&t.childLanes))if(e!==null){if(mr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,a=on(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=on(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function df(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&dc(e)))}function nA(e,t,a){switch(t.tag){case 3:nc(t,t.stateNode.containerInfo),_n(t,Je,e.memoizedState.cache),Ls();break;case 27:case 5:Ju(t);break;case 4:nc(t,t.stateNode.containerInfo);break;case 10:_n(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xh(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(En(t),t.flags|=128,null):a&t.child.childLanes?n0(e,t,a):(En(t),e=fn(e,t,a),e!==null?e.sibling:null);En(t);break;case 19:var i=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(mr(e,t,a,!1),s=(a&t.childLanes)!==0),i){if(s)return s0(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Oe(Ye,Ye.current),s)break;return null;case 22:return t.lanes=0,a0(e,t,a,t.pendingProps);case 24:_n(t,Je,e.memoizedState.cache)}return fn(e,t,a)}function i0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!df(e,a)&&!(t.flags&128))return Ze=!1,nA(e,t,a);Ze=!!(e.flags&131072)}else Ze=!1,ue&&t.flags&1048576&&oy(t,gl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=ys(t.elementType),t.type=e,typeof e=="function")qm(e)?(s=Us(e,s),t.tag=1,t=tg(null,t,e,s,a)):(t.tag=0,t=Nh(null,t,e,s,a));else{if(e!=null){var i=e.$$typeof;if(i===Tm){t.tag=11,t=Qp(null,t,e,s,a);break e}else if(i===_m){t.tag=14,t=Xp(null,t,e,s,a);break e}}throw t=Qu(e)||e,Error(E(306,t,""))}}return t;case 0:return Nh(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,i=Us(s,t.pendingProps),tg(e,t,s,i,a);case 3:e:{if(nc(t,t.stateNode.containerInfo),e===null)throw Error(E(387));s=t.pendingProps;var r=t.memoizedState;i=r.element,fh(e,t),Jr(t,s,null,a);var l=t.memoizedState;if(s=l.cache,_n(t,Je,s),s!==r.cache&&hh(t,[Je],a,!0),Xr(),s=l.element,r.isDehydrated)if(r={element:s,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=ag(e,t,s,a);break e}else if(s!==i){i=la(Error(E(424)),t),xl(i),t=ag(e,t,s,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ie=ha(e.firstChild),ht=t,ue=!0,qn=null,oa=!0,a=fy(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ls(),s===i){t=fn(e,t,a);break e}ct(e,t,s,a)}t=t.child}return t;case 26:return Vo(e,t),e===null?(a=Ng(t.type,null,t.pendingProps,null))?t.memoizedState=a:ue||(a=t.type,e=t.pendingProps,s=Ac(Un.current).createElement(a),s[ut]=t,s[Dt]=e,gt(s,a,e),rt(s),t.stateNode=s):t.memoizedState=Ng(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ju(t),e===null&&ue&&(s=t.stateNode=K0(t.type,t.pendingProps,Un.current),ht=t,oa=!0,i=Ie,ss(t.type)?(zh=i,Ie=ha(s.firstChild)):Ie=i),ct(e,t,t.pendingProps.children,a),Vo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ue&&((i=s=Ie)&&(s=IA(s,t.type,t.pendingProps,oa),s!==null?(t.stateNode=s,ht=t,Ie=ha(s.firstChild),oa=!1,i=!0):i=!1),i||es(t)),Ju(t),i=t.type,r=t.pen
vendor: 4,374 bytes, line 24
24dingProps,l=e!==null?e.memoizedProps:null,s=r.children,Mh(i,r)?s=null:l!==null&&Mh(i,l)&&(t.flags|=32),t.memoizedState!==null&&(i=Qm(e,t,YS,null,null,a),Nl._currentValue=i),Vo(e,t),ct(e,t,s,a),t.child;case 6:return e===null&&ue&&((e=a=Ie)&&(a=MA(a,t.pendingProps,oa),a!==null?(t.stateNode=a,ht=t,Ie=null,e=!0):e=!1),e||es(t)),null;case 13:return n0(e,t,a);case 4:return nc(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=zs(t,null,s,a):ct(e,t,s,a),t.child;case 11:return Qp(e,t,t.type,t.pendingProps,a);case 7:return ct(e,t,t.pendingProps,a),t.child;case 8:return ct(e,t,t.pendingProps.children,a),t.child;case 12:return ct(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,_n(t,t.type,s.value),ct(e,t,s.children,a),t.child;case 9:return i=t.type._context,s=t.pendingProps.children,Ps(t),i=ft(i),s=s(i),t.flags|=1,ct(e,t,s,a),t.child;case 14:return Xp(e,t,t.type,t.pendingProps,a);case 15:return t0(e,t,t.type,t.pendingProps,a);case 19:return s0(e,t,a);case 31:return aA(e,t,a);case 22:return a0(e,t,a,t.pendingProps);case 24:return Ps(t),s=ft(Je),e===null?(i=Gm(),i===null&&(i=ke,r=$m(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=a),i=r),t.memoizedState={parent:s,cache:i},Fm(t),_n(t,Je,i)):(e.lanes&a&&(fh(e,t),Jr(t,null,null,a),Xr()),i=e.memoizedState,r=t.memoizedState,i.parent!==s?(i={parent:s,cache:s},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),_n(t,Je,s)):(s=r.cache,_n(t,Je,s),s!==i.cache&&hh(t,[Je],a,!0))),ct(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(E(156,t.tag))}function Fa(e){e.flags|=4}function ou(e,t,a,s,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(E0())e.flags|=8192;else throw Is=uc,Wm}else e.flags&=-16777217}function sg(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!J0(t))if(E0())e.flags|=8192;else throw Is=uc,Wm}function ro(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Cv():536870912,e.lanes|=t,Zi|=t)}function _r(e,t){if(!ue)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,s|=i.subtreeFlags&65011712,s|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,s|=i.subtreeFlags,s|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=s,e.childLanes=a,t}function sA(e,t,a){var s=t.pendingProps;switch(Hm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Re(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),cn(Je),Fi(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ri(t)?Fa(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zd())),Re(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(Fa(t),r!==null?(Re(t),sg(t,r)):(Re(t),ou(t,i,null,s,a))):r?r!==e.memoizedState?(Fa(t),Re(t),sg(t,r)):(Re(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Fa(t),Re(t),ou(t,i,e,s,a)),null;case 27:if(sc(t),a=Un.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Fa(t);else{if(!s){if(t.stateNode===null)throw Error(E(166));return Re(t),null}e=za.current,ri(t)?Ip(t):(e=K0(i,s,a),t.stateNode=e,Fa(t))}return Re(t),null;case 5:if(sc(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Fa(t);else{if(!s){if(t.stateNode===null)throw Error(E(166));return Re(t),null}if(r=za.current,ri(t))Ip(t);else{var l=Ac(Un.current);switch(r){case 1:r=l.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=l.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=l.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;
vendor: 22,204 bytes, line 24
24case"select":r=typeof s.is=="string"?l.createElement("select",{is:s.is}):l.createElement("select"),s.multiple?r.multiple=!0:s.size&&(r.size=s.size);break;default:r=typeof s.is=="string"?l.createElement(i,{is:s.is}):l.createElement(i)}}r[ut]=t,r[Dt]=s;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=r;e:switch(gt(r,i,s),i){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Fa(t)}}return Re(t),ou(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Fa(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(E(166));if(e=Un.current,ri(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,i=ht,i!==null)switch(i.tag){case 27:case 5:s=i.memoizedProps}e[ut]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||G0(e.nodeValue,a)),e||es(t,!0)}else e=Ac(e).createTextNode(s),e[ut]=t,t.stateNode=e}return Re(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(s=ri(t),a!==null){if(e===null){if(!s)throw Error(E(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(557));e[ut]=t}else Ls(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Re(t),e=!1}else a=Zd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Bt(t),t):(Bt(t),null);if(t.flags&128)throw Error(E(558))}return Re(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ri(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error(E(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(E(317));i[ut]=t}else Ls(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Re(t),i=!1}else i=Zd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Bt(t),t):(Bt(t),null)}return Bt(t),t.flags&128?(t.lanes=a,t):(a=s!==null,e=e!==null&&e.memoizedState!==null,a&&(s=t.child,i=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(i=s.alternate.memoizedState.cachePool.pool),r=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(r=s.memoizedState.cachePool.pool),r!==i&&(s.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ro(t,t.updateQueue),Re(t),null);case 4:return Fi(),e===null&&xf(t.stateNode.containerInfo),Re(t),null;case 10:return cn(t.type),Re(t),null;case 19:if(ot(Ye),s=t.memoizedState,s===null)return Re(t),null;if(i=(t.flags&128)!==0,r=s.rendering,r===null)if(i)_r(s,!1);else{if(Fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(r=mc(e),r!==null){for(t.flags|=128,_r(s,!1),e=r.updateQueue,t.updateQueue=e,ro(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)ry(a,e),a=a.sibling;return Oe(Ye,Ye.current&1|2),ue&&en(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Gt()>yc&&(t.flags|=128,i=!0,_r(s,!1),t.lanes=4194304)}else{if(!i)if(e=mc(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ro(t,e),_r(s,!0),s.tail===null&&s.tailMode==="hidden"&&!r.alternate&&!ue)return Re(t),null}else 2*Gt()-s.renderingStartTime>yc&&a!==536870912&&(t.flags|=128,i=!0,_r(s,!1),t.lanes=4194304);s.isBackwards?(r.sibling=t.child,t.child=r):(e=s.last,e!==null?e.sibling=r:t.child=r,s.last=r)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Gt(),e.sibling=null,a=Ye.current,Oe(Ye,i?a&1|2:a&1),ue&&en(t,s.treeForkCount),e):(Re(t),null);case 22:case 23:return Bt(t),Ym(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?a&536870912&&!(t.flags&128)&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),a=t.updateQueue,a!==null&&ro(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&ot(Rs),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),cn(Je),Re(t),null;case 25:return null;case 30:return null}throw Error(E(156,t.tag))}function iA(e,t){switch(Hm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(Je),Fi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return sc(t),null;case 31:if(t.memoizedState!==null){if(Bt(t),t.alternate===null)throw Error(E(340));Ls()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Ls()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ot(Ye),null;case 4:return Fi(),null;case 10:return cn(t.type),null;case 22:case 23:return Bt(t),Ym(),e!==null&&ot(Rs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return cn(Je),null;case 25:return null;default:return null}}function r0(e,t){switch(Hm(t),t.tag){case 3:cn(Je),Fi();break;case 26:case 27:case 5:sc(t);break;case 4:Fi();break;case 31:t.memoizedState!==null&&Bt(t);break;case 13:Bt(t);break;case 19:ot(Ye);break;case 10:cn(t.type);break;case 22:case 23:Bt(t),Ym(),e!==null&&ot(Rs);break;case 24:cn(Je)}}function Bl(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var i=s.next;a=i;do{if((a.tag&e)===e){s=void 0;var r=a.create,l=a.inst;s=r(),l.destroy=s}a=a.next}while(a!==i)}}catch(o){be(t,t.return,o)}}function ts(e,t,a){try{var s=t.updateQueue,i=s!==null?s.lastEffect:null;if(i!==null){var r=i.next;s=r;do{if((s.tag&e)===e){var l=s.inst,o=l.destroy;if(o!==void 0){l.destroy=void 0,i=t;var c=a,d=o;try{d()}catch(u){be(i,c,u)}}}s=s.next}while(s!==r)}}catch(u){be(t,t.return,u)}}function l0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{gy(t,a)}catch(s){be(e,e.return,s)}}}function o0(e,t,a){a.props=Us(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){be(e,t,s)}}function el(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(i){be(e,t,i)}}function Pa(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(i){be(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){be(e,t,i)}else a.current=null}function c0(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(i){be(e,e.return,i)}}function cu(e,t,a){try{var s=e.stateNode;TA(s,e.type,a,t),s[Dt]=t}catch(i){be(e,e.return,i)}}function d0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ss(e.type)||e.tag===4}function du(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||d0(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.tag===27&&ss(e.type)||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 Ah(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=nn));else if(s!==4&&(s===27&&ss(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Ah(e,t,a),e=e.sibling;e!==null;)Ah(e,t,a),e=e.sibling}function vc(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&ss(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(vc(e,t,a),e=e.sibling;e!==null;)vc(e,t,a),e=e.sibling}function u0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);gt(t,s,a),t[ut]=e,t[Dt]=a}catch(r){be(e,e.return,r)}}var tn=!1,Xe=!1,uu=!1,ig=typeof WeakSet=="function"?WeakSet:Set,it=null;function rA(e,t){if(e=e.containerInfo,Rh=Ec,e=Jv(e),zm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var i=s.anchorOffset,r=s.focusNode;s=s.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var l=0,o=-1,c=-1,d=0,u=0,m=e,f=null;t:for(;;){for(var h;m!==a||i!==0&&m.nodeType!==3||(o=l+i),m!==r||s!==0&&m.nodeType!==3||(c=l+s),m.nodeType===3&&(l+=m.nodeValue.length),(h=m.firstChild)!==null;)f=m,m=h;for(;;){if(m===e)break t;if(f===a&&++d===i&&(o=l),f===r&&++u===s&&(c=l),(h=m.nextSibling)!==null)break;m=f,f=m.parentNode}m=h}a=o===-1||c===-1?null:{start:o,end:c}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ih={focusedElem:e,selectionRange:a},Ec=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,r=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&r!==null){e=void 0,a=t,i=r.memoizedProps,r=r.memoizedState,s=a.stateNode;try{var w=Us(a.type,i);e=s.getSnapshotBeforeUpdate(w,r),s.__reactInternalSnapshotBeforeUpdate=e}catch(v){be(a,a.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Dh(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Dh(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(E(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function h0(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Ka(e,a),s&4&&Bl(5,a);break;case 1:if(Ka(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(l){be(a,a.return,l)}else{var i=Us(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){be(a,a.return,l)}}s&64&&l0(a),s&512&&el(a,a.return);break;case 3:if(Ka(e,a),s&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{gy(e,t)}catch(l){be(a,a.return,l)}}break;case 27:t===null&&s&4&&u0(a);case 26:case 5:Ka(e,a),t===null&&s&4&&c0(a),s&512&&el(a,a.return);break;case 12:Ka(e,a);break;case 31:Ka(e,a),s&4&&p0(e,a);break;case 13:Ka(e,a),s&4&&g0(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=pA.bind(null,a),DA(e,a))));break;case 22:if(s=a.memoizedState!==null||tn,!s){t=t!==null&&t.memoizedState!==null||Xe,i=tn;var r=Xe;tn=s,(Xe=t)&&!r?Qa(e,a,(a.subtreeFlags&8772)!==0):Ka(e,a),tn=i,Xe=r}break;case 30:break;default:Ka(e,a)}}function m0(e){var t=e.alternate;t!==null&&(e.alternate=null,m0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rm(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var He=null,Et=!1;function Ya(e,t,a){for(a=a.child;a!==null;)f0(e,t,a),a=a.sibling}function f0(e,t,a){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Rl,a)}catch{}switch(a.tag){case 26:Xe||Pa(a,t),Ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||Pa(a,t);var s=He,i=Et;ss(a.type)&&(He=a.stateNode,Et=!1),Ya(e,t,a),sl(a.stateNode),He=s,Et=i;break;case 5:Xe||Pa(a,t);case 6:if(s=He,i=Et,He=null,Ya(e,t,a),He=s,Et=i,He!==null)if(Et)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(a.stateNode)}catch(r){be(a,t,r)}else try{He.removeChild(a.stateNode)}catch(r){be(a,t,r)}break;case 18:He!==null&&(Et?(e=He,vg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),nr(e)):vg(He,a.stateNode));break;case 4:s=He,i=Et,He=a.stateNode.containerInfo,Et=!0,Ya(e,t,a),He=s,Et=i;break;case 0:case 11:case 14:case 15:ts(2,a,t),Xe||ts(4,a,t),Ya(e,t,a);break;case 1:Xe||(Pa(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&o0(a,t,s)),Ya(e,t,a);break;case 21:Ya(e,t,a);break;case 22:Xe=(s=Xe)||a.memoizedState!==null,Ya(e,t,a),Xe=s;break;default:Ya(e,t,a)}}function p0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{nr(e)}catch(a){be(t,t.return,a)}}}function g0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{nr(e)}catch(a){be(t,t.return,a)}}function lA(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ig),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ig),t;default:throw Error(E(435,e.tag))}}function lo(e,t){var a=lA(e);t.forEach(function(s){if(!a.has(s)){a.add(s);var i=gA.bind(null,e,s);s.then(i,i)}})}function kt(e,t){var a=t.deletions;if(a!==null)for(var s=0;s<a.length;s++){var i=a[s],r=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 27:if(ss(o.type)){He=o.stateNode,Et=!1;break e}break;case 5:He=o.stateNode,Et=!1;break e;case 3:case 4:He=o.stateNode.containerInfo,Et=!0;break e}o=o.return}if(He===null)throw Error(E(160));f0(r,l,i),He=null,Et=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)x0(t,e),t=t.sibling}var Na=null;function x0(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),Tt(e),s&4&&(ts(3,e,e.return),Bl(3,e),ts(5,e,e.return));break;case 1:kt(t,e),Tt(e),s&512&&(Xe||a===null||Pa(a,a.return)),s&64&&tn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var i=Na;if(kt(t,e),Tt(e),s&512&&(Xe||a===null||Pa(a,a.return)),s&4){var r=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(s){case"title":r=i.getElementsByTagName("title")[0],(!r||r[Dl]||r[ut]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(s),i.head.insertBefore(r,i.querySelector("head > title"))),gt(r,s,a),r[ut]=e,rt(r),s=r;break e;case"link":var l=Ag("link","href",i).get(s+(a.href||""));if(l){for(var o=0;o<l.length;o++)if(r=l[o],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){l.splice(o,1);break t}}r=i.createElement(s),gt(r,s,a),i.head.appendChild(r);break;case"meta":if(l=Ag("meta","content",i).get(s+(a.content||""))){for(o=0;o<l.length;o++)if(r=l[o],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){l.splice(o,1);break t}}r=i.createElement(s),gt(r,s,a),i.head.appendChild(r);break;default:throw Error(E(468,s))}r[ut]=e,rt(r),s=r}e.stateNode=s}else kg(i,e.type,e.stateNode);else e.stateNode=Sg(i,s,e.memoizedProps);else r!==s?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,s===null?kg(i,e.type,e.stateNode):Sg(i,s,e.memoizedProps)):s===null&&e.stateNode!==null&&cu(e,e.memoizedProps,a.memoizedProps)}break;case 27:kt(t,e),Tt(e),s&512&&(Xe||a===null||Pa(a,a.return)),a!==null&&s&4&&cu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(kt(t,e),Tt(e),s&512&&(Xe||a===null||Pa(a,a.return)),e.flags&32){i=e.stateNode;try{Ki(i,"")}catch(w){be(e,e.return,w)}}s&4&&e.stateNode!=null&&(i=e.memoizedProps,cu(e,i,a!==null?a.memoizedProps:i)),s&1024&&(uu=!0);break;case 6:if(kt(t,e),Tt(e),s&4){if(e.stateNode===null)throw Error(E(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(w){be(e,e.return,w)}}break;case 3:if(Go=null,i=Na,Na=kc(t.containerInfo),kt(t,e),Na=i,Tt(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{nr(t.containerInfo)}catch(w){be(e,e.return,w)}uu&&(uu=!1,v0(e));break;case 4:s=Na,Na=kc(e.stateNode.containerInfo),kt(t,e),Tt(e),Na=s;break;case 12:kt(t,e),Tt(e);break;case 31:kt(t,e),Tt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,lo(e,s)));break;case 13:kt(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(rd=Gt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,lo(e,s)));break;case 22:i=e.memoizedState!==null;var c=a!==null&&a.memoizedState!==null,d=tn,u=Xe;if(tn=d||i,Xe=u||c,kt(t,e),Xe=u,tn=d,Tt(e),s&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||c||tn||Xe||bs(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){c=a=t;try{if(r=c.stateNode,i)l=r.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none";else{o=c.stateNode;var m=c.memoizedProps.style,f=m!=null&&m.hasOwnProperty("display")?m.display:null;o.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(w){be(c,c.return,w)}}}else if(t.tag===6){if(a===null){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(w){be(c,c.return,w)}}}else if(t.tag===18){if(a===null){c=t;try{var h=c.stateNode;i?yg(h,!0):yg(c.stateNode,!1)}catch(w){be(c,c.return,w)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,lo(e,a))));break;case 19:kt(t,e),Tt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,lo(e,s)));break;case 30:break;case 21:break;default:kt(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(d0(s)){a=s;break}s=s.return}if(a==null)throw Error(E(160));switch(a.tag){case 27:var i=a.stateNode,r=du(e);vc(e,r,i);break;case 5:var l=a.stateNode;a.flags&32&&(Ki(l,""),a.flags&=-33);var o=du(e);vc(e,o,l);break;case 3:case 4:var c=a.stateNode.containerInfo,d=du(e);Ah(e,d,c);break;default:throw Error(E(161))}}catch(u){be(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function v0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;v0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ka(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)h0(e,t.alternate,t),t=t.sibling}function bs(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ts(4,t,t.return),bs(t);break;case 1:Pa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&o0(t,t.return,a),bs(t);break;case 27:sl(t.stateNode);case 26:case 5:Pa(t,t.return),bs(t);break;case 22:t.memoizedState===null&&bs(t);break;case 30:bs(t);break;default:bs(t)}e=e.sibling}}function Qa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,i=e,r=t,l=r.flags;switch(r.tag){case 0:case 11:case 15:Qa(i,r,a),Bl(4,r);break;case 1:if(Qa(i,r,a),s=r,i=s.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(d){be(s,s.return,d)}if(s=r,i=s.updateQueue,i!==null){var o=s.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)py(c[i],o)}catch(d){be(s,s.return,d)}}a&&l&64&&l0(r),el(r,r.return);break;case 27:u0(r);case 26:case 5:Qa(i,r,a),a&&s===null&&l&4&&c0(r),el(r,r.return);break;case 12:Qa(i,r,a);break;case 31:Qa(i,r,a),a&&l&4&&p0(i,r);break;case 13:Qa(i,r,a),a&&l&4&&g0(i,r);break;case 22:r.memoizedState===null&&Qa(i,r,a),el(r,r.return);break;case 30:break;default:Qa(i,r,a)}t=t.sibling}}function uf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Pl(a))}function hf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pl(e))}function ya(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)y0(e,t,a,s),t=t.sibling}function y0(e,t,a,s){var i=t.flags;switch(t.tag){case 0:case 11:case 15:ya(e,t,a,s),i&2048&&Bl(9,t);break;case 1:ya(e,t,a,s);break;case 3:ya(e,t,a,s),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pl(e)));break;case 12:if(i&2048){ya(e,t,a,s),e=t.stateNode;try{var r=t.memoizedProps,l=r.id,o=r.onPostCommit;typeof o=="function"&&o(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){be(t,t.return,c)}}else ya(e,t,a,s);break;case 31:ya(e,t,a,s);break;case 13:ya(e,t,a,s);break;case 23:break;case 22:r=t.stateNode,l=t.alternate,t.memoizedState!==null?r._visibility&2?ya(e,t,a,s):tl(e,t):r._visibility&2?ya(e,t,a,s):(r._visibility|=2,vi(e,t,a,s,(t.subtreeFlags&10256)!==0||!1)),i&2048&&uf(l,t);break;case 24:ya(e,t,a,s),i&2048&&hf(t.alternate,t);break;default:ya(e,t,a,s)}}function vi(e,t,a,s,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,l=t,o=a,c=s,d=l.flags;switch(l.tag){case 0:case 11:case 15:vi(r,l,o,c,i),Bl(8,l);break;case 23:break;case 22:var u=l.stateNode;l.memoizedState!==null?u._visibility&2?vi(r,l,o,c,i):tl(r,l):(u._visibility|=2,vi(r,l,o,c,i)),i&&d&2048&&uf(l.alternate,l);break;case 24:vi(r,l,o,c,i),i&&d&2048&&hf(l.alternate,l);break;default:vi(r,l,o,c,i)}t=t.sibling}}function tl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,s=t,i=s.flags;switch(s.tag){case 22:tl(a,s),i&2048&&uf(s.alternate,s);break;
vendor: 13,303 bytes, line 24
24case 24:tl(a,s),i&2048&&hf(s.alternate,s);break;default:tl(a,s)}t=t.sibling}}var Ur=8192;function li(e,t,a){if(e.subtreeFlags&Ur)for(e=e.child;e!==null;)b0(e,t,a),e=e.sibling}function b0(e,t,a){switch(e.tag){case 26:li(e,t,a),e.flags&Ur&&e.memoizedState!==null&&FA(a,Na,e.memoizedState,e.memoizedProps);break;case 5:li(e,t,a);break;case 3:case 4:var s=Na;Na=kc(e.stateNode.containerInfo),li(e,t,a),Na=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Ur,Ur=16777216,li(e,t,a),Ur=s):li(e,t,a));break;default:li(e,t,a)}}function w0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Er(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];it=s,N0(s,e)}w0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)j0(e),e=e.sibling}function j0(e){switch(e.tag){case 0:case 11:case 15:Er(e),e.flags&2048&&ts(9,e,e.return);break;case 3:Er(e);break;case 12:Er(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ho(e)):Er(e);break;default:Er(e)}}function Ho(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];it=s,N0(s,e)}w0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ts(8,t,t.return),Ho(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ho(t));break;default:Ho(t)}e=e.sibling}}function N0(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:ts(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Pl(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,it=s;else e:for(a=e;it!==null;){s=it;var i=s.sibling,r=s.return;if(m0(s),s===a){it=null;break e}if(i!==null){i.return=r,it=i;break e}it=r}}}var oA={getCacheForType:function(e){var t=ft(Je),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ft(Je).controller.signal}},cA=typeof WeakMap=="function"?WeakMap:Map,pe=0,ke=null,oe=null,de=0,ye=0,zt=null,Dn=!1,pr=!1,mf=!1,pn=0,Fe=0,as=0,Ms=0,ff=0,qt=0,Zi=0,al=null,Ct=null,kh=!1,rd=0,S0=0,yc=1/0,bc=null,$n=null,tt=0,Gn=null,er=null,dn=0,Th=0,_h=null,A0=null,nl=0,Eh=null;function Yt(){return pe&2&&de!==0?de&-de:K.T!==null?gf():Mv()}function k0(){if(qt===0)if(!(de&536870912)||ue){var e=Zl;Zl<<=1,!(Zl&3932160)&&(Zl=262144),qt=e}else qt=536870912;return e=Qt.current,e!==null&&(e.flags|=32),qt}function Mt(e,t,a){(e===ke&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(tr(e,0),Ln(e,de,qt,!1)),Ml(e,a),(!(pe&2)||e!==ke)&&(e===ke&&(!(pe&2)&&(Ms|=a),Fe===4&&Ln(e,de,qt,!1)),Ha(e))}function T0(e,t,a){if(pe&6)throw Error(E(327));var s=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Il(e,t),i=s?hA(e,t):hu(e,t,!0),r=s;do{if(i===0){pr&&!s&&Ln(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!dA(a)){i=hu(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var o=e;i=al;var c=o.current.memoizedState.isDehydrated;if(c&&(tr(o,l).flags|=256),l=hu(o,l,!1),l!==2){if(mf&&!c){o.errorRecoveryDisabledLanes|=r,Ms|=r,i=4;break e}r=Ct,Ct=i,r!==null&&(Ct===null?Ct=r:Ct.push.apply(Ct,r))}i=l}if(r=!1,i!==2)continue}}if(i===1){tr(e,0),Ln(e,t,0,!0);break}e:{switch(s=e,r=i,r){case 0:case 1:throw Error(E(345));case 4:if((t&4194048)!==t)break;case 6:Ln(s,t,qt,!Dn);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(E(329))}if((t&62914560)===t&&(i=rd+300-Gt(),10<i)){if(Ln(s,t,qt,!Dn),Kc(s,0,!0)!==0)break e;dn=t,s.timeoutHandle=F0(rg.bind(null,s,a,Ct,bc,kh,t,qt,Ms,Zi,Dn,r,"Throttled",-0,0),i);break e}rg(s,a,Ct,bc,kh,t,qt,Ms,Zi,Dn,r,null,-0,0)}}break}while(!0);Ha(e)}function rg(e,t,a,s,i,r,l,o,c,d,u,m,f,h){if(e.timeoutHandle=-1,m=t.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nn},b0(t,r,m);var w=(r&62914560)===r?rd-Gt():(r&4194048)===r?S0-Gt():0;if(w=YA(m,w),w!==null){dn=r,e.cancelPendingCommit=w(og.bind(null,e,t,r,a,s,i,l,o,c,u,m,null,f,h)),Ln(e,r,l,!d);return}}og(e,t,r,a,s,i,l,o,c)}function dA(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var i=a[s],r=i.getSnapshot;i=i.value;try{if(!Kt(r(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Ln(e,t,a,s){t&=~ff,t&=~Ms,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var i=t;0<i;){var r=31-Ft(i),l=1<<r;s[r]=-1,i&=~l}a!==0&&Ov(e,a,t)}function ld(){return pe&6?!0:(Ul(0),!1)}function pf(){if(oe!==null){if(ye===0)var e=oe.return;else e=oe,sn=Xs=null,Zm(e),qi=null,vl=0,e=oe;for(;e!==null;)r0(e.alternate,e),e=e.return;oe=null}}function tr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,CA(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),dn=0,pf(),ke=e,oe=a=on(e.current,null),de=t,ye=0,zt=null,Dn=!1,pr=Il(e,t),mf=!1,Zi=qt=ff=Ms=as=Fe=0,Ct=al=null,kh=!1,t&8&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var i=31-Ft(s),r=1<<i;t|=e[i],s&=~r}return pn=t,Zc(),a}function _0(e,t){ee=null,K.H=bl,t===fr||t===td?(t=zp(),ye=3):t===Wm?(t=zp(),ye=4):ye=t===cf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,oe===null&&(Fe=1,gc(e,la(t,e.current)))}function E0(){var e=Qt.current;return e===null?!0:(de&4194048)===de?ua===null:(de&62914560)===de||de&536870912?e===ua:!1}function C0(){var e=K.H;return K.H=bl,e===null?bl:e}function O0(){var e=K.A;return K.A=oA,e}function wc(){Fe=4,Dn||(de&4194048)!==de&&Qt.current!==null||(pr=!0),!(as&134217727)&&!(Ms&134217727)||ke===null||Ln(ke,de,qt,!1)}function hu(e,t,a){var s=pe;pe|=2;var i=C0(),r=O0();(ke!==e||de!==t)&&(bc=null,tr(e,t)),t=!1;var l=Fe;e:do try{if(ye!==0&&oe!==null){var o=oe,c=zt;switch(ye){case 8:pf(),l=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var d=ye;if(ye=0,zt=null,Ri(e,o,c,d),a&&pr){l=0;break e}break;default:d=ye,ye=0,zt=null,Ri(e,o,c,d)}}uA(),l=Fe;break}catch(u){_0(e,u)}while(!0);return t&&e.shellSuspendCounter++,sn=Xs=null,pe=s,K.H=i,K.A=r,oe===null&&(ke=null,de=0,Zc()),l}function uA(){for(;oe!==null;)R0(oe)}function hA(e,t){var a=pe;pe|=2;var s=C0(),i=O0();ke!==e||de!==t?(bc=null,yc=Gt()+500,tr(e,t)):pr=Il(e,t);e:do try{if(ye!==0&&oe!==null){t=oe;var r=zt;t:switch(ye){case 1:ye=0,zt=null,Ri(e,t,r,1);break;case 2:case 9:if(Pp(r)){ye=0,zt=null,lg(t);break}t=function(){ye!==2&&ye!==9||ke!==e||(ye=7),Ha(e)},r.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:Pp(r)?(ye=0,zt=null,lg(t)):(ye=0,zt=null,Ri(e,t,r,7));break;case 5:var l=null;switch(oe.tag){case 26:l=oe.memoizedState;case 5:case 27:var o=oe;if(l?J0(l):o.stateNode.complete){ye=0,zt=null;var c=o.sibling;if(c!==null)oe=c;else{var d=o.return;d!==null?(oe=d,od(d)):oe=null}break t}}ye=0,zt=null,Ri(e,t,r,5);break;case 6:ye=0,zt=null,Ri(e,t,r,6);break;case 8:pf(),Fe=6;break e;default:throw Error(E(462))}}mA();break}catch(u){_0(e,u)}while(!0);return sn=Xs=null,K.H=s,K.A=i,pe=a,oe!==null?0:(ke=null,de=0,Zc(),Fe)}function mA(){for(;oe!==null&&!LN();)R0(oe)}function R0(e){var t=i0(e.alternate,e,pn);e.memoizedProps=e.pendingProps,t===null?od(e):oe=t}function lg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=eg(a,t,t.pendingProps,t.type,void 0,de);break;case 11:t=eg(a,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:Zm(t);default:r0(a,t),t=oe=ry(t,pn),t=i0(a,t,pn)}e.memoizedProps=e.pendingProps,t===null?od(e):oe=t}function Ri(e,t,a,s){sn=Xs=null,Zm(t),qi=null,vl=0;var i=t.return;try{if(tA(e,i,t,a,de)){Fe=1,gc(e,la(a,e.current)),oe=null;return}}catch(r){if(i!==null)throw oe=i,r;Fe=1,gc(e,la(a,e.current)),oe=null;return}t.flags&32768?(ue||s===1?e=!0:pr||de&536870912?e=!1:(Dn=e=!0,(s===2||s===9||s===3||s===6)&&(s=Qt.current,s!==null&&s.tag===13&&(s.flags|=16384))),I0(t,e)):od(t)}function od(e){var t=e;do{if(t.flags&32768){I0(t,Dn);return}e=t.return;var a=sA(t.alternate,t,pn);if(a!==null){oe=a;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);Fe===0&&(Fe=5)}function I0(e,t){do{var a=iA(e.alternate,e);if(a!==null){a.flags&=32767,oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){oe=e;return}oe=e=a}while(e!==null);Fe=6,oe=null}function og(e,t,a,s,i,r,l,o,c){e.cancelPendingCommit=null;do cd();while(tt!==0);if(pe&6)throw Error(E(327));if(t!==null){if(t===e.current)throw Error(E(177));if(r=t.lanes|t.childLanes,r|=Bm,WN(e,a,r,l,o,c),e===ke&&(oe=ke=null,de=0),er=t,Gn=e,dn=a,Th=r,_h=i,A0=s,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,xA(ic,function(){return z0(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,t.subtreeFlags&13878||s){s=K.T,K.T=null,i=ge.p,ge.p=2,l=pe,pe|=4;try{rA(e,t,a)}finally{pe=l,ge.p=i,K.T=s}}tt=1,M0(),D0(),L0()}}function M0(){if(tt===1){tt=0;var e=Gn,t=er,a=(t.flags&13878)!==0;if(t.subtreeFlags&13878||a){a=K.T,K.T=null;var s=ge.p;ge.p=2;var i=pe;pe|=4;try{x0(t,e);var r=Ih,l=Jv(e.containerInfo),o=r.focusedElem,c=r.selectionRange;if(l!==o&&o&&o.ownerDocument&&Xv(o.ownerDocument.documentElement,o)){if(c!==null&&zm(o)){var d=c.start,u=c.end;if(u===void 0&&(u=d),"selectionStart"in o)o.selectionStart=d,o.selectionEnd=Math.min(u,o.value.length);else{var m=o.ownerDocument||document,f=m&&m.defaultView||window;if(f.getSelection){var h=f.getSelection(),w=o.textContent.length,v=Math.min(c.start,w),j=c.end===void 0?v:Math.min(c.end,w);!h.extend&&v>j&&(l=j,j=v,v=l);var y=Cp(o,v),x=Cp(o,j);if(y&&x&&(h.rangeCount!==1||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==x.node||h.focusOffset!==x.offset)){var g=m.createRange();g.setStart(y.node,y.offset),h.removeAllRanges(),v>j?(h.addRange(g),h.extend(x.node,x.offset)):(g.setEnd(x.node,x.offset),h.addRange(g))}}}}for(m=[],h=o;h=h.parentNode;)h.nodeType===1&&m.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<m.length;o++){var b=m[o];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Ec=!!Rh,Ih=Rh=null}finally{pe=i,ge.p=s,K.T=a}}e.current=t,tt=2}}function D0(){if(tt===2){tt=0;var e=Gn,t=er,a=(t.flags&8772)!==0;if(t.subtreeFlags&8772||a){a=K.T,K.T=null;var s=ge.p;ge.p=2;var i=pe;pe|=4;try{h0(e,t.alternate,t)}finally{pe=i,ge.p=s,K.T=a}}tt=3}}function L0(){if(tt===4||tt===3){tt=0,PN();var e=Gn,t=er,a=dn,s=A0;t.subtreeFlags&10256||t.flags&10256?tt=5:(tt=0,er=Gn=null,P0(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&($n=null),Om(a),t=t.stateNode,Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(Rl,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=K.T,i=ge.p,ge.p=2,K.T=null;try{for(var r=e.onRecoverableError,l=0;l<s.length;l++){var o=s[l];r(o.value,{componentStack:o.stack})}}finally{K.T=t,ge.p=i}}dn&3&&cd(),Ha(e),i=e.pendingLanes,a&261930&&i&42?e===Eh?nl++:(nl=0,Eh=e):nl=0,Ul(0)}}function P0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pl(t)))}function cd(){return M0(),D0(),L0(),z0()}function z0(){if(tt!==5)return!1;var e=Gn,t=Th;Th=0;var a=Om(dn),s=K.T,i=ge.p;try{ge.p=32>a?32:a,K.T=null,a=_h,_h=null;var r=Gn,l=dn;if(tt=0,er=Gn=null,dn=0,pe&6)throw Error(E(331));var o=pe;if(pe|=4,j0(r.current),y0(r,r.current,l,a),pe=o,Ul(0,!1),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(Rl,r)}catch{}return!0}finally{ge.p=i,K.T=s,P0(e,t)}}function cg(e,t,a){t=la(a,t),t=jh(e.stateNode,t,2),e=Hn(e,t,2),e!==null&&(Ml(e,2),Ha(e))}function be(e,t,a){if(e.tag===3)cg(e,e,a);else for(;t!==null;){if(t.tag===3){cg(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&($n===null||!$n.has(s))){e=la(a,e),a=Zy(2),s=Hn(t,a,2),s!==null&&(e0(a,s,t,e),Ml(s,2),Ha(s));break}}t=t.return}}function mu(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new cA;var i=new Set;s.set(t,i)}else i=s.get(t),i===void 0&&(i=new Set,s.set(t,i));i.has(a)||(mf=!0,i.add(a),e=fA.bind(null,e,t,a),t.then(e,e))}function fA(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ke===e&&(de&a)===a&&(Fe===4||Fe===3&&(de&62914560)===de&&300>Gt()-rd?!(pe&2)&&tr(e,0):ff|=a,Zi===de&&(Zi=0)),Ha(e)}function B0(e,t){t===0&&(t=Cv()),e=Qs(e,t),e!==null&&(Ml(e,t),Ha(e))}function pA(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),B0(e,a)}function gA(e,t){var a=0;switch(e.tag){case 31:case 13:var s=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(E(314))}s!==null&&s.delete(t),B0(e,a)}function xA(e,t){return Em(e,t)}var jc=null,yi=null,Ch=!1,Nc=!1,fu=!1,Pn=0;function Ha(e){e!==yi&&e.next===null&&(yi===null?jc=yi=e:yi=yi.next=e),Nc=!0,Ch||(Ch=!0,yA())}function Ul(e,t){if(!fu&&Nc){fu=!0;do for(var a=!1,s=jc;s!==null;){if(e!==0){var i=s.pendingLanes;
vendor: 5,649 bytes, line 24
24if(i===0)var r=0;else{var l=s.suspendedLanes,o=s.pingedLanes;r=(1<<31-Ft(42|e)+1)-1,r&=i&~(l&~o),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,dg(s,r))}else r=de,r=Kc(s,s===ke?r:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),!(r&3)||Il(s,r)||(a=!0,dg(s,r));s=s.next}while(a);fu=!1}}function vA(){U0()}function U0(){Nc=Ch=!1;var e=0;Pn!==0&&EA()&&(e=Pn);for(var t=Gt(),a=null,s=jc;s!==null;){var i=s.next,r=q0(s,t);r===0?(s.next=null,a===null?jc=i:a.next=i,i===null&&(yi=a)):(a=s,(e!==0||r&3)&&(Nc=!0)),s=i}tt!==0&&tt!==5||Ul(e),Pn!==0&&(Pn=0)}function q0(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var l=31-Ft(r),o=1<<l,c=i[l];c===-1?(!(o&a)||o&s)&&(i[l]=GN(o,t)):c<=t&&(e.expiredLanes|=o),r&=~o}if(t=ke,a=de,a=Kc(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Vd(s),e.callbackNode=null,e.callbackPriority=0;if(!(a&3)||Il(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&Vd(s),Om(a)){case 2:case 8:a=_v;break;case 32:a=ic;break;case 268435456:a=Ev;break;default:a=ic}return s=V0.bind(null,e),a=Em(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&Vd(s),e.callbackPriority=2,e.callbackNode=null,2}function V0(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(cd()&&e.callbackNode!==a)return null;var s=de;return s=Kc(e,e===ke?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(T0(e,s,t),q0(e,Gt()),e.callbackNode!=null&&e.callbackNode===a?V0.bind(null,e):null)}function dg(e,t){if(cd())return null;T0(e,t,!0)}function yA(){OA(function(){pe&6?Em(Tv,vA):U0()})}function gf(){if(Pn===0){var e=Qi;e===0&&(e=Jl,Jl<<=1,!(Jl&261888)&&(Jl=256)),Pn=e}return Pn}function ug(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mo(""+e)}function hg(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function bA(e,t,a,s,i){if(t==="submit"&&a&&a.stateNode===i){var r=ug((i[Dt]||null).action),l=s.submitter;l&&(t=(t=l[Dt]||null)?ug(t.formAction):l.getAttribute("formAction"),t!==null&&(r=t,l=null));var o=new Qc("action","action",null,s,i);e.push({event:o,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Pn!==0){var c=l?hg(i,l):new FormData(i);bh(a,{pending:!0,data:c,method:i.method,action:r},null,c)}}else typeof r=="function"&&(o.preventDefault(),c=l?hg(i,l):new FormData(i),bh(a,{pending:!0,data:c,method:i.method,action:r},r,c))},currentTarget:i}]})}}for(var pu=0;pu<oh.length;pu++){var gu=oh[pu],wA=gu.toLowerCase(),jA=gu[0].toUpperCase()+gu.slice(1);_a(wA,"on"+jA)}_a(ey,"onAnimationEnd");_a(ty,"onAnimationIteration");_a(ay,"onAnimationStart");_a("dblclick","onDoubleClick");_a("focusin","onFocus");_a("focusout","onBlur");_a(zS,"onTransitionRun");_a(BS,"onTransitionStart");_a(US,"onTransitionCancel");_a(ny,"onTransitionEnd");Yi("onMouseEnter",["mouseout","mouseover"]);Yi("onMouseLeave",["mouseout","mouseover"]);Yi("onPointerEnter",["pointerout","pointerover"]);Yi("onPointerLeave",["pointerout","pointerover"]);Fs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wl="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(" "),NA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wl));function H0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],i=s.event;s=s.listeners;e:{var r=void 0;if(t)for(var l=s.length-1;0<=l;l--){var o=s[l],c=o.instance,d=o.currentTarget;if(o=o.listener,c!==r&&i.isPropagationStopped())break e;r=o,i.currentTarget=d;try{r(i)}catch(u){lc(u)}i.currentTarget=null,r=c}else for(l=0;l<s.length;l++){if(o=s[l],c=o.instance,d=o.currentTarget,o=o.listener,c!==r&&i.isPropagationStopped())break e;r=o,i.currentTarget=d;try{r(i)}catch(u){lc(u)}i.currentTarget=null,r=c}}}}function le(e,t){var a=t[eh];a===void 0&&(a=t[eh]=new Set);var s=e+"__bubble";a.has(s)||($0(t,e,2,!1),a.add(s))}function xu(e,t,a){var s=0;t&&(s|=4),$0(a,e,s,t)}var oo="_reactListening"+Math.random().toString(36).slice(2);function xf(e){if(!e[oo]){e[oo]=!0,Dv.forEach(function(a){a!=="selectionchange"&&(NA.has(a)||xu(a,!1,e),xu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oo]||(t[oo]=!0,xu("selectionchange",!1,t))}}function $0(e,t,a,s){switch(nb(t)){case 2:var i=XA;break;case 8:i=JA;break;default:i=wf}a=i.bind(null,t,a,e),i=void 0,!ih||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),s?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function vu(e,t,a,s,i){var r=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var l=s.tag;if(l===3||l===4){var o=s.stateNode.containerInfo;
vendor: 7,717 bytes, lines 24-25
24if(o===i)break;if(l===4)for(l=s.return;l!==null;){var c=l.tag;if((c===3||c===4)&&l.stateNode.containerInfo===i)return;l=l.return}for(;o!==null;){if(l=Ni(o),l===null)return;if(c=l.tag,c===5||c===6||c===26||c===27){s=r=l;continue e}o=o.parentNode}}s=s.return}Hv(function(){var d=r,u=Mm(a),m=[];e:{var f=sy.get(e);if(f!==void 0){var h=Qc,w=e;switch(e){case"keypress":if(Lo(a)===0)break e;case"keydown":case"keyup":h=gS;break;case"focusin":w="focus",h=Fd;break;case"focusout":w="blur",h=Fd;break;case"beforeblur":case"afterblur":h=Fd;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=bp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=sS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=yS;break;case ey:case ty:case ay:h=lS;break;case ny:h=wS;break;case"scroll":case"scrollend":h=aS;break;case"wheel":h=NS;break;case"copy":case"cut":case"paste":h=cS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=jp;break;case"toggle":case"beforetoggle":h=AS}var v=(t&4)!==0,j=!v&&(e==="scroll"||e==="scrollend"),y=v?f!==null?f+"Capture":null:f;v=[];for(var x=d,g;x!==null;){var b=x;if(g=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||g===null||y===null||(b=ml(x,y),b!=null&&v.push(jl(x,b,g))),j)break;x=x.return}0<v.length&&(f=new h(f,w,null,a,u),m.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&a!==sh&&(w=a.relatedTarget||a.fromElement)&&(Ni(w)||w[ur]))break e;if((h||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,h?(w=a.relatedTarget||a.toElement,h=d,w=w?Ni(w):null,w!==null&&(j=Ol(w),v=w.tag,w!==j||v!==5&&v!==27&&v!==6)&&(w=null)):(h=null,w=d),h!==w)){if(v=bp,b="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(v=jp,b="onPointerLeave",y="onPointerEnter",x="pointer"),j=h==null?f:zr(h),g=w==null?f:zr(w),f=new v(b,x+"leave",h,a,u),f.target=j,f.relatedTarget=g,b=null,Ni(u)===d&&(v=new v(y,x+"enter",w,a,u),v.target=g,v.relatedTarget=j,b=v),j=b,h&&w)t:{for(v=SA,y=h,x=w,g=0,b=y;b;b=v(b))g++;b=0;for(var N=x;N;N=v(N))b++;for(;0<g-b;)y=v(y),g--;for(;0<b-g;)x=v(x),b--;for(;g--;){if(y===x||x!==null&&y===x.alternate){v=y;break t}y=v(y),x=v(x)}v=null}else v=null;h!==null&&mg(m,f,h,v,!1),w!==null&&j!==null&&mg(m,j,w,v,!0)}}e:{if(f=d?zr(d):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var A=kp;else if(Ap(f))if(Kv)A=DS;else{A=IS;var S=RS}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?d&&Im(d.elementType)&&(A=kp):A=MS;if(A&&(A=A(e,d))){Yv(m,A,a,u);break e}S&&S(e,f,d),e==="focusout"&&d&&f.type==="number"&&d.memoizedProps.value!=null&&nh(f,"number",f.value)}switch(S=d?zr(d):window,e){case"focusin":(Ap(S)||S.contentEditable==="true")&&(ki=S,rh=d,Yr=null);break;case"focusout":Yr=rh=ki=null;break;case"mousedown":lh=!0;break;case"contextmenu":case"mouseup":case"dragend":lh=!1,Op(m,a,u);break;case"selectionchange":if(PS)break;case"keydown":case"keyup":Op(m,a,u)}var _;if(Pm)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Ai?Wv(e,a)&&(O="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(O="onCompositionStart");O&&(Gv&&a.locale!=="ko"&&(Ai||O!=="onCompositionStart"?O==="onCompositionEnd"&&Ai&&(_=$v()):(Mn=u,Dm="value"in Mn?Mn.value:Mn.textContent,Ai=!0)),S=Sc(d,O),0<S.length&&(O=new wp(O,e,null,a,u),m.push({event:O,listeners:S}),_?O.data=_:(_=Fv(a),_!==null&&(O.data=_)))),(_=TS?_S(e,a):ES(e,a))&&(O=Sc(d,"onBeforeInput"),0<O.length&&(S=new wp("onBeforeInput","beforeinput",null,a,u),m.push({event:S,listeners:O}),S.data=_)),bA(m,e,d,a,u)}H0(m,t)})}function jl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Sc(e,t){for(var a=t+"Capture",s=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=ml(e,a),i!=null&&s.unshift(jl(e,i,r)),i=ml(e,t),i!=null&&s.push(jl(e,i,r))),e.tag===3)return s;e=e.return}return[]}function SA(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function mg(e,t,a,s,i){for(var r=t._reactName,l=[];a!==null&&a!==s;){var o=a,c=o.alternate,d=o.stateNode;if(o=o.tag,c!==null&&c===s)break;o!==5&&o!==26&&o!==27||d===null||(c=d,i?(d=ml(a,r),d!=null&&l.unshift(jl(a,d,c))):i||(d=ml(a,r),d!=null&&l.push(jl(a,d,c)))),a=a.return}l.length!==0&&e.push({event:t,listeners:l})}var AA=/\r\n?/g,kA=/\u0000|\uFFFD/g;function fg(e){return(typeof e=="string"?e:""+e).replace(AA,`
25`).replace(kA,"")}function G0(e,t){return t=fg(t),fg(e)===t}function Ne(e,t,a,s,i,r){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Ki(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Ki(e,""+s);break;case"className":to(e,"class",s);break;case"tabIndex":to(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":to(e,a,s);break;case"style":Vv(e,s,r);break;case"data":if(t!=="object"){to(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Mo(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="formAction"?(t!=="input"&&Ne(e,t,"name",i.name,i,null),Ne(e,t,"formEncType",i.formEncType,i,null),Ne(e,t,"formMethod",i.formMethod,i,null),Ne(e,t,"formTarget",i.formTarget,i,null)):(Ne(e,t,"encType",i.encType,i,null),Ne(e,t,"method",i.method,i,null),Ne(e,t,"target",i.target,i,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Mo(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=nn);break;case"onScroll":s!=null&&le("scroll",e);break;case"onScrollEnd":s!=null&&le("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(E(61));if(a=s.__html,a!=null){if(i.children!=null)throw Error(E(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=Mo(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
25ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":le("beforetoggle",e),le("toggle",e),Io(e,"popover",s);break;case"xlinkActuate":Wa(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Wa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Wa(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Wa(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Wa(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Wa(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Wa(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Wa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Wa(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Io(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=eS.get(a)||a,Io(e,a,s))}}function Oh(e,t,a,s,i,r){switch(a){case"style":Vv(e,s,r);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(E(61));if(a=s.__html,a!=null){if(i.children!=null)throw Error(E(60));e.innerHTML=a}}break;case"children":typeof s=="string"?Ki(e,s):(typeof s=="number"||typeof s=="bigint")&&Ki(e,""+s);break;case"onScroll":s!=null&&le("scroll",e);break;case"onScrollEnd":s!=null&&le("scrollend",e);break;case"onClick":s!=null&&(e.onclick=nn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lv.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),r=e[Dt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof s=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,s,i);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):Io(e,a,s)}}}function gt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":le("error",e),le("load",e);var s=!1,i=!1,r;for(r in a)if(a.hasOwnProperty(r)){var l=a[r];if(l!=null)switch(r){case"src":s=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(E(137,t));default:Ne(e,t,r,l,a,null)}}i&&Ne(e,t,"srcSet",a.srcSet,a,null),s&&Ne(e,t,"src",a.src,a,null);return;case"input":le("invalid",e);var o=r=l=i=null,c=null,d=null;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];if(u!=null)switch(s){case"name":i=u;break;case"type":l=u;break;case"checked":c=u;break;case"defaultChecked":d=u;break;case"value":r=u;break;case"defaultValue":o=u;break;case"children":case"dangerouslySetInnerHTML":if(u!=null)throw Error(E(137,t));break;default:Ne(e,t,s,u,a,null)}}Bv(e,r,o,c,d,l,i,!1);return;case"select":le("invalid",e),s=l=r=null;for(i in a)if(a.hasOwnProperty(i)&&(o=a[i],o!=null))switch(i){case"value":r=o;break;case"defaultValue":l=o;break;case"multiple":s=o;default:Ne(e,t,i,o,a,null)}t=r,a=l,e.multiple=!!s,t!=null?zi(e,!!s,t,!1):a!=null&&zi(e,!!s,a,!0);return;case"textarea":le("invalid",e),r=i=s=null;for(l in a)if(a.hasOwnProperty(l)&&(o=a[l],o!=null))switch(l){case"value":s=o;break;case"defaultValue":i=o;break;case"children":r=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(E(91));break;default:Ne(e,t,l,o,a,null)}qv(e,s,i,r);return;case"option":for(c in a)if(a.hasOwnProperty(c)&&(s=a[c],s!=null))switch(c){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ne(e,t,c,s,a,null)}return;case"dialog":le("beforetoggle",e),le("toggle",e),le("cancel",e),le("close",e);break;case"iframe":case"object":le("load",e);break;case"video":case"audio":for(s=0;s<wl.length;s++)le(wl[s],e);break;case"image":le("error",e),le("load",e);break;case"details":le("toggle",e);break;case"embed":case"source":case"link":le("error",e),le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(d in a)if(a.hasOwnProperty(d)&&(s=a[d],s!=null))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(E(137,t));default:Ne(e,t,d,s,a,null)}return;default:if(Im(t)){for(u in a)a.hasOwnProperty(u)&&(s=a[u],s!==void 0&&Oh(e,t,u,s,a,void 0));return}}for(o in a)a.hasOwnProperty(o)&&(s=a[o],s!=null&&Ne(e,t,o,s,a,null))}function TA(e,t,a,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,l=null,o=null,c=null,d=null,u=null;for(h in a){var m=a[h];if(a.hasOwnProperty(h)&&m!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":c=m;default:s.hasOwnProperty(h)||Ne(e,t,h,null,s,m)}}for(var f in s){var h=s[f];if(m=a[f],s.hasOwnProperty(f)&&(h!=null||m!=null))switch(f){case"type":r=h;break;case"name":i=h;break;case"checked":d=h;break;case"defaultChecked":u=h;break;case"value":l=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(E(137,t));break;default:h!==m&&Ne(e,t,f,h,s,m)}}ah(e,l,o,c,d,u,r,i);return;case"select":h=l=o=f=null;for(r in a)if(c=a[r],a.hasOwnProperty(r)&&c!=null)switch(r){case"value":break;case"multiple":h=c;default:s.hasOwnProperty(r)||Ne(e,t,r,null,s,c)}for(i in s)if(r=s[i],c=a[i],s.hasOwnProperty(i)&&(r!=null||c!=null))switch(i){case"value":f=r;break;case"defaultValue":o=r;break;case"multiple":l=r;default:r!==c&&Ne(e,t,i,r,s,c)}t=o,a=l,s=h,f!=null?zi(e,!!a,f,!1):!!s!=!!a&&(t!=null?zi(e,!!a,t,!0):zi(e,!!a,a?[]:"",!1));return;case"textarea":h=f=null;for(o in a)if(i=a[o],a.hasOwnProperty(o)&&i!=null&&!s.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ne(e,t,o,null,s,i)}for(l in s)if(i=s[l],r=a[l],s.hasOwnProperty(l)&&(i!=null||r!=null))switch(l){case"value":f=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(E(91));break;default:i!==r&&Ne(e,t,l,i,s,r)}Uv(e,f,h);return;case"option":for(var w in a)if(f=a[w],a.hasOwnProperty(w)&&f!=null&&!s.hasOwnProperty(w))switch(w){case"selected":e.selected=!1;break;default:Ne(e,t,w,null,s,f)}for(c in s)if(f=s[c],h=a[c],s.hasOwnProperty(c)&&f!==h&&(f!=null||h!=null))switch(c){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ne(e,t,c,f,s,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in a)f=a[v],a.hasOwnProperty(v)&&f!=null&&!s.hasOwnProperty(v)&&Ne(e,t,v,null,s,f);for(d in s)if(f=s[d],h=a[d],s.hasOwnProperty(d)&&f!==h&&(f!=null||h!=null))switch(d){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(E(137,t));break;default:Ne(e,t,d,f,s,h)}return;default:if(Im(t)){for(var j in a)f=a[j],a.hasOwnProperty(j)&&f!==void 0&&!s.hasOwnProperty(j)&&Oh(e,t,j,void 0,s,f);for(u in s)f=s[u],h=a[u],!s.hasOwnProperty(u)||f===h||f===void 0&&h===void 0||Oh(e,t,u,f,s,h);return}}for(var y in a)f=a[y],a.hasOwnProperty(y)&&f!=null&&!s.hasOwnProperty(y)&&Ne(e,t,y,null,s,f);for(m in s)f=s[m],h=a[m],!s.hasOwnProperty(m)||f===h||f==null&&h==null||Ne(e,t,m,f,s,h)}function pg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _A(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var i=a[s],r=i.transferSize,l=i.initiatorType,o=i.duration;if(r&&o&&pg(l)){for(l=0,o=i.responseEnd,s+=1;s<a.length;s++){var c=a[s],d=c.startTime;if(d>o)break;var u=c.transferSize,m=c.initiatorType;u&&pg(m)&&(c=c.responseEnd,l+=u*(c<o?1:(o-d)/(c-d)))}if(--s,t+=8*(r+l)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Rh=null,Ih=null;
vendor: 13,212 bytes, line 25
25function Ac(e){return e.nodeType===9?e:e.ownerDocument}function gg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function W0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Mh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yu=null;function EA(){var e=window.event;return e&&e.type==="popstate"?e===yu?!1:(yu=e,!0):(yu=null,!1)}var F0=typeof setTimeout=="function"?setTimeout:void 0,CA=typeof clearTimeout=="function"?clearTimeout:void 0,xg=typeof Promise=="function"?Promise:void 0,OA=typeof queueMicrotask=="function"?queueMicrotask:typeof xg<"u"?function(e){return xg.resolve(null).then(e).catch(RA)}:F0;function RA(e){setTimeout(function(){throw e})}function ss(e){return e==="head"}function vg(e,t){var a=t,s=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(s===0){e.removeChild(i),nr(t);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")sl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,sl(a);for(var r=a.firstChild;r;){var l=r.nextSibling,o=r.nodeName;r[Dl]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=l}}else a==="body"&&sl(e.ownerDocument.body);a=i}while(a);nr(t)}function yg(e,t){var a=e;e=0;do{var s=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=s}while(a)}function Dh(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Dh(a),Rm(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function IA(e,t,a,s){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Dl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=ha(e.nextSibling),e===null)break}return null}function MA(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ha(e.nextSibling),e===null))return null;return e}function Y0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ha(e.nextSibling),e===null))return null;return e}function Lh(e){return e.data==="$?"||e.data==="$~"}function Ph(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function DA(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var s=function(){t(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function ha(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zh=null;function bg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return ha(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function wg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function K0(e,t,a){switch(t=Ac(a),e){case"html":if(e=t.documentElement,!e)throw Error(E(452));return e;case"head":if(e=t.head,!e)throw Error(E(453));return e;case"body":if(e=t.body,!e)throw Error(E(454));return e;default:throw Error(E(451))}}function sl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rm(e)}var fa=new Map,jg=new Set;function kc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xn=ge.d;ge.d={f:LA,r:PA,D:zA,C:BA,L:UA,m:qA,X:HA,S:VA,M:$A};function LA(){var e=xn.f(),t=ld();return e||t}function PA(e){var t=hr(e);t!==null&&t.tag===5&&t.type==="form"?Vy(t):xn.r(e)}var gr=typeof document>"u"?null:document;function Q0(e,t,a){var s=gr;if(s&&typeof t=="string"&&t){var i=ra(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),jg.has(i)||(jg.add(i),e={rel:e,crossOrigin:a,href:t},s.querySelector(i)===null&&(t=s.createElement("link"),gt(t,"link",e),rt(t),s.head.appendChild(t)))}}function zA(e){xn.D(e),Q0("dns-prefetch",e,null)}function BA(e,t){xn.C(e,t),Q0("preconnect",e,t)}function UA(e,t,a){xn.L(e,t,a);var s=gr;if(s&&e&&t){var i='link[rel="preload"][as="'+ra(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+ra(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+ra(a.imageSizes)+'"]')):i+='[href="'+ra(e)+'"]';var r=i;switch(t){case"style":r=ar(e);break;case"script":r=xr(e)}fa.has(r)||(e=Ue({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),fa.set(r,e),s.querySelector(i)!==null||t==="style"&&s.querySelector(ql(r))||t==="script"&&s.querySelector(Vl(r))||(t=s.createElement("link"),gt(t,"link",e),rt(t),s.head.appendChild(t)))}}function qA(e,t){xn.m(e,t);var a=gr;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+ra(s)+'"][href="'+ra(e)+'"]',r=i;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=xr(e)}if(!fa.has(r)&&(e=Ue({rel:"modulepreload",href:e},t),fa.set(r,e),a.querySelector(i)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Vl(r)))return}s=a.createElement("link"),gt(s,"link",e),rt(s),a.head.appendChild(s)}}}function VA(e,t,a){xn.S(e,t,a);var s=gr;if(s&&e){var i=Pi(s).hoistableStyles,r=ar(e);t=t||"default";var l=i.get(r);if(!l){var o={loading:0,preload:null};if(l=s.querySelector(ql(r)))o.loading=5;else{e=Ue({rel:"stylesheet",href:e,"data-precedence":t},a),(a=fa.get(r))&&vf(e,a);var c=l=s.createElement("link");rt(c),gt(c,"link",e),c._p=new Promise(function(d,u){c.onload=d,c.onerror=u}),c.addEventListener("load",function(){o.loading|=1}),c.addEventListener("error",function(){o.loading|=2}),o.loading|=4,$o(l,t,s)}l={type:"stylesheet",instance:l,count:1,state:o},i.set(r,l)}}}function HA(e,t){xn.X(e,t);var a=gr;if(a&&e){var s=Pi(a).hoistableScripts,i=xr(e),r=s.get(i);r||(r=a.querySelector(Vl(i)),r||(e=Ue({src:e,async:!0},t),(t=fa.get(i))&&yf(e,t),r=a.createElement("script"),rt(r),gt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},s.set(i,r))}}function $A(e,t){xn.M(e,t);var a=gr;if(a&&e){var s=Pi(a).hoistableScripts,i=xr(e),r=s.get(i);r||(r=a.querySelector(Vl(i)),r||(e=Ue({src:e,async:!0,type:"module"},t),(t=fa.get(i))&&yf(e,t),r=a.createElement("script"),rt(r),gt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},s.set(i,r))}}function Ng(e,t,a,s){var i=(i=Un.current)?kc(i):null;if(!i)throw Error(E(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=ar(a.href),a=Pi(i).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=ar(a.href);var r=Pi(i).hoistableStyles,l=r.get(e);if(l||(i=i.ownerDocument||i,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,l),(r=i.querySelector(ql(e)))&&!r._p&&(l.instance=r,l.state.loading=5),fa.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},fa.set(e,a),r||GA(i,e,a,l.state))),t&&s===null)throw Error(E(528,""));return l}if(t&&s!==null)throw Error(E(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xr(a),a=Pi(i).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(E(444,e))}}function ar(e){return'href="'+ra(e)+'"'}function ql(e){return'link[rel="stylesheet"]['+e+"]"}function X0(e){return Ue({},e,{"data-precedence":e.precedence,precedence:null})}function GA(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),gt(t,"link",a),rt(t),e.head.appendChild(t))}function xr(e){return'[src="'+ra(e)+'"]'}function Vl(e){return"script[async]"+e}function Sg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+ra(a.href)+'"]');if(s)return t.instance=s,rt(s),s;var i=Ue({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),rt(s),gt(s,"style",i),$o(s,a.precedence,e),t.instance=s;case"stylesheet":i=ar(a.href);var r=e.querySelector(ql(i));if(r)return t.state.loading|=4,t.instance=r,rt(r),r;s=X0(a),(i=fa.get(i))&&vf(s,i),r=(e.ownerDocument||e).createElement("link"),rt(r);var l=r;return l._p=new Promise(function(o,c){l.onload=o,l.onerror=c}),gt(r,"link",s),t.state.loading|=4,$o(r,a.precedence,e),t.instance=r;case"script":return r=xr(a.src),(i=e.querySelector(Vl(r)))?(t.instance=i,rt(i),i):(s=a,(i=fa.get(r))&&(s=Ue({},a),yf(s,i)),e=e.ownerDocument||e,i=e.createElement("script"),rt(i),gt(i,"link",s),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(E(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(s=t.instance,t.state.loading|=4,$o(s,a.precedence,e));return t.instance}function $o(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=s.length?s[s.length-1]:null,r=i,l=0;l<s.length;l++){var o=s[l];if(o.dataset.precedence===t)r=o;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function vf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function yf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Go=null;function Ag(e,t,a){if(Go===null){var s=new Map,i=Go=new Map;i.set(a,s)}else i=Go,s=i.get(a),s||(s=new Map,i.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var r=a[i];if(!(r[Dl]||r[ut]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var l=r.getAttribute(t)||"";l=e+l;var o=s.get(l);o?o.push(r):s.set(l,[r])}}return s}function kg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function WA(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function J0(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function FA(e,t,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&
vendor: 1,920 bytes, line 25
25!(a.state.loading&4)){if(a.instance===null){var i=ar(s.href),r=t.querySelector(ql(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Tc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,rt(r);return}r=t.ownerDocument||t,s=X0(s),(i=fa.get(i))&&vf(s,i),r=r.createElement("link"),rt(r);var l=r;l._p=new Promise(function(o,c){l.onload=o,l.onerror=c}),gt(r,"link",s),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&!(a.state.loading&3)&&(e.count++,a=Tc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var bu=0;function YA(e,t){return e.stylesheets&&e.count===0&&Wo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var s=setTimeout(function(){if(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&bu===0&&(bu=62500*_A());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>bu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(i)}}:null}function Tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _c=null;function Wo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_c=new Map,t.forEach(KA,e),_c=null,Tc.call(e))}function KA(e,t){if(!(t.state.loading&4)){var a=_c.get(e);if(a)var s=a.get(null);else{a=new Map,_c.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var l=i[r];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(a.set(l.dataset.precedence,l),s=l)}s&&a.set(null,s)}i=t.instance,l=i.getAttribute("data-precedence"),r=a.get(l)||s,r===s&&a.set(null,i),a.set(l,i
vendor: 5,608 bytes, line 25
25),this.count++,s=Tc.bind(this),i.addEventListener("load",s),i.addEventListener("error",s),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Nl={$$typeof:an,Provider:null,Consumer:null,_currentValue:Cs,_currentValue2:Cs,_threadCount:0};function QA(e,t,a,s,i,r,l,o,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Hd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hd(0),this.hiddenUpdates=Hd(null),this.identifierPrefix=s,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Z0(e,t,a,s,i,r,l,o,c,d,u,m){return e=new QA(e,t,a,l,c,d,u,m,o),t=1,r===!0&&(t|=24),r=Ut(3,null,null,t),e.current=r,r.stateNode=e,t=$m(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:s,isDehydrated:a,cache:t},Fm(r),e}function eb(e){return e?(e=Ei,e):Ei}function tb(e,t,a,s,i,r){i=eb(i),s.context===null?s.context=i:s.pendingContext=i,s=Vn(t),s.payload={element:a},r=r===void 0?null:r,r!==null&&(s.callback=r),a=Hn(e,s,t),a!==null&&(Mt(a,e,t),Qr(a,e,t))}function Tg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function bf(e,t){Tg(e,t),(e=e.alternate)&&Tg(e,t)}function ab(e){if(e.tag===13||e.tag===31){var t=Qs(e,67108864);t!==null&&Mt(t,e,67108864),bf(e,67108864)}}function _g(e){if(e.tag===13||e.tag===31){var t=Yt();t=Cm(t);var a=Qs(e,t);a!==null&&Mt(a,e,t),bf(e,t)}}var Ec=!0;function XA(e,t,a,s){var i=K.T;K.T=null;var r=ge.p;try{ge.p=2,wf(e,t,a,s)}finally{ge.p=r,K.T=i}}function JA(e,t,a,s){var i=K.T;K.T=null;var r=ge.p;try{ge.p=8,wf(e,t,a,s)}finally{ge.p=r,K.T=i}}function wf(e,t,a,s){if(Ec){var i=Bh(s);if(i===null)vu(e,t,s,Cc,a),Eg(e,s);else if(ek(i,e,t,a,s))s.stopPropagation();else if(Eg(e,s),t&4&&-1<ZA.indexOf(e)){for(;i!==null;){var r=hr(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var l=vs(r.pendingLanes);if(l!==0){var o=r;for(o.pendingLanes|=2,o.entangledLanes|=2;l;){var c=1<<31-Ft(l);o.entanglements[1]|=c,l&=~c}Ha(r),!(pe&6)&&(yc=Gt()+500,Ul(0))}}break;case 31:case 13:o=Qs(r,2),o!==null&&Mt(o,r,2),ld(),bf(r,2)}if(r=Bh(s),r===null&&vu(e,t,s,Cc,a),r===i)break;i=r}i!==null&&s.stopPropagation()}else vu(e,t,s,null,a)}}function Bh(e){return e=Mm(e),jf(e)}var Cc=null;function jf(e){if(Cc=null,e=Ni(e),e!==null){var t=Ol(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=jv(t),e!==null)return e;e=null}else if(a===31){if(e=Nv(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Cc=e,null}function nb(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zN()){case Tv:return 2;case _v:return 8;case ic:case BN:return 32;case Ev:return 268435456;default:return 32}default:return 32}}var Uh=!1,Wn=null,Fn=null,Yn=null,Sl=new Map,Al=new Map,On=[],ZA="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".split(" ");function Eg(e,t){switch(e){case"focusin":case"focusout":Wn=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":Sl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Al.delete(t.pointerId)}}function Cr(e,t,a,s,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:s,nativeEvent:r,targetContainers:[i]},t!==null&&(t=hr(t),t!==null&&ab(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ek(e,t,a,s,i){switch(t){case"focusin":return Wn=Cr(Wn,e,t,a,s,i),!0;case"dragenter":return Fn=Cr(Fn,e,t,a,s,i),!0;case"mouseover":return Yn=Cr(Yn,e,t,a,s,i),!0;case"pointerover":var r=i.pointerId;return Sl.set(r,Cr(Sl.get(r)||null,e,t,a,s,i)),!0;case"gotpointercapture":return r=i.pointerId,Al.set(r,Cr(Al.get(r)||null,e,t,a,s,i)),!0}return!1}
vendor: 3,900 bytes, line 25
25function sb(e){var t=Ni(e.target);if(t!==null){var a=Ol(t);if(a!==null){if(t=a.tag,t===13){if(t=jv(a),t!==null){e.blockedOn=t,mp(e.priority,function(){_g(a)});return}}else if(t===31){if(t=Nv(a),t!==null){e.blockedOn=t,mp(e.priority,function(){_g(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Bh(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);sh=s,a.target.dispatchEvent(s),sh=null}else return t=hr(a),t!==null&&ab(t),e.blockedOn=a,!1;t.shift()}return!0}function Cg(e,t,a){Fo(e)&&a.delete(t)}function tk(){Uh=!1,Wn!==null&&Fo(Wn)&&(Wn=null),Fn!==null&&Fo(Fn)&&(Fn=null),Yn!==null&&Fo(Yn)&&(Yn=null),Sl.forEach(Cg),Al.forEach(Cg)}function co(e,t){e.blockedOn===t&&(e.blockedOn=null,Uh||(Uh=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,tk)))}var uo=null;function Og(e){uo!==e&&(uo=e,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,function(){uo===e&&(uo=null);for(var t=0;t<e.length;t+=3){var a=e[t],s=e[t+1],i=e[t+2];if(typeof s!="function"){if(jf(s||a)===null)continue;break}var r=hr(a);r!==null&&(e.splice(t,3),t-=3,bh(r,{pending:!0,data:i,method:a.method,action:s},s,i))}}))}function nr(e){function t(c){return co(c,e)}Wn!==null&&co(Wn,e),Fn!==null&&co(Fn,e),Yn!==null&&co(Yn,e),Sl.forEach(t),Al.forEach(t);for(var a=0;a<On.length;a++){var s=On[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<On.length&&(a=On[0],a.blockedOn===null);)sb(a),a.blockedOn===null&&On.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var i=a[s],r=a[s+1],l=i[Dt]||null;if(typeof r=="function")l||Og(a);else if(l){var o=null;if(r&&r.hasAttribute("formAction")){if(i=r,l=r[Dt]||null)o=l.formAction;else if(jf(i)!==null)continue}else o=l.action;typeof o=="function"?a[s+1]=o:(a.splice(s,3),s-=3),Og(a)}}}function ib(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(l){return i=l})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Nf(e){this._internalRoot=e}dd.prototype.render=Nf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));var a=t.current,s=Yt();tb(a,s,e,t,null,null)};dd.prototype.unmount=Nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;tb(e.current,2,null,e,null,null),ld(),t[ur]=null}};function dd(e){this._internalRoot=e}dd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mv();e={blockedOn:null,target:e,priority:t};for(var a=0;a<On.length&&t!==0&&t<On[a].priority;a++);On.splice(a,0,e),a===0&&sb(e)}};var Rg=bv.version;if(Rg!=="19.2.1")throw Error(E(527,Rg,"19.2.1"));ge.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=ON(t),e=e!==null?Sv(e):null,e=e===null?null:e.stateNode,e};var ak={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;
25if(!ho.isDisabled&&ho.supportsFiber)try{Rl=ho.inject(ak),Wt=ho}catch{}}Yc.createRoot=function(e,t){if(!wv(e))throw Error(E(299));var a=!1,s="",i=Qy,r=Xy,l=Jy;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Z0(e,1,!1,null,null,a,s,null,i,r,l,ib),e[ur]=t.current,xf(e),new Nf(t)};Yc.hydrateRoot=function(e,t,a){if(!wv(e))throw Error(E(299));var s=!1,i="",r=Qy,l=Xy,o=Jy,c=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(l=a.onCaughtError),a.onRecoverableError!==void 0&&(o=a.onRecoverableError),a.formState!==void 0&&(c=a.formState)),t=Z0(e,1,!0,t,a??null,s,i,c,r,l,o,ib),t.context=eb(null),a=t.current,s=Yt(),s=Cm(s),i=Vn(s),i.callback=null,Hn(a,i,s),a=s,t.current.lanes=a,Ml(t,a),Ha(t),e[ur]=t.current,xf(e),new dd(t)};Yc.version="19.2.1";function rb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rb)}catch(e){console.error(e)}}rb(),xv.exports=Yc;var nk=xv.exports;const sk=1,ik=1e6;let wu=0;function rk(){return wu=(wu+1)%Number.MAX_SAFE_INTEGER,wu.toString()}const ju=new Map,Ig=e=>{if(ju.has(e))return;const t=setTimeout(()=>{ju.delete(e),il({type:"REMOVE_TOAST",toastId:e})},ik);ju.set(e,t)},lk=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,sk)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{const{toastId:a}=t;return a?Ig(a):e.toasts.forEach(s=>{Ig(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===a||a===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},Yo=[];let Ko={toasts:[]};function il(e){Ko=lk(Ko,e),Yo.forEach(t=>{t(Ko)})}function Ae({...e}){const t=rk(),a=i=>il({type:"UPDATE_TOAST",toast:{...i,id:t}}),s=()=>il({type:"DISMISS_TOAST",toastId:t});return il({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||s()}}}),{id:t,dismiss:s,update:a}}function lb(){const[e,t]=p.useState(Ko);return p.useEffect(()=>(Yo.push(t),()=>{const a=Yo.indexOf(t);a>-1&&Yo.splice(a,1)}),[e]),{...e,toast:Ae,dismiss:a=>il({type:"DISMISS_TOAST",toastId:a})}}var ok="Portal",ud=p.forwardRef((e,t)=>{var o;const{container:a,...s}=e,[i,r]=p.useState(!1);ka(()=>r(!0),[]);const l=a||i&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return l?pv.createPortal(n.jsx(Y.div,{...s,ref:t}),l):null});ud.displayName=ok;var Sf="ToastProvider",[Af,ck,dk]=bm("Toast"),[ob]=Ba("Toast",[dk]),[uk,hd]=ob(Sf),cb=e=>{const{__scopeToast:t,label:a="Notification",duration:s=5e3,swipeDirection:i="right",swipeThreshold:r=50,children:l}=e,[o,c]=p.useState(null),[d,u]=p.useState(0),m=p.useRef(!1),f=p.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${Sf}\`. Expected non-empty \`string\`.`),n.jsx(Af.Provider,{scope:t,children:n.jsx(uk,{scope:t,label:a,duration:s,swipeDirection:i,swipeThreshold:r,toastCount:d,viewport:o,onViewportChange:c,onToastAdd:p.useCallback(()=>u(h=>h+1),[]),onToastRemove:p.useCallback(()=>u(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:f,children:l})})};cb.displayName=Sf;var db="ToastViewport",hk=["F8"],qh="toast.viewportPause",Vh="toast.viewportResume",ub=p.forwardRef((e,t)=>{const{__scopeToast:a,hotkey:s=hk,label:i="Notifications ({hotkey})",...r}=e,l=hd(db,a),o=ck(a),c=p.useRef(null),d=p.useRef(null),u=p.useRef(null),m=p.useRef(null),f=Te(t,m,l.onViewportChange),h=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=l.toastCount>0;p.useEffect(()=>{const j=y=>{var g;s.length!==0&&s.every(b=>y[b]||y.code===b)&&((g=m.current)==null||g.focus())};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[s]),p.useEffect(()=>{const j=c.current,y=m.current;if(w&&j&&y){const x=()=>
25{if(!l.isClosePausedRef.current){const A=new CustomEvent(qh);y.dispatchEvent(A),l.isClosePausedRef.current=!0}},g=()=>{if(l.isClosePausedRef.current){const A=new CustomEvent(Vh);y.dispatchEvent(A),l.isClosePausedRef.current=!1}},b=A=>{!j.contains(A.relatedTarget)&&g()},N=()=>{j.contains(document.activeElement)||g()};return j.addEventListener("focusin",x),j.addEventListener("focusout",b),j.addEventListener("pointermove",x),j.addEventListener("pointerleave",N),window.addEventListener("blur",x),window.addEventListener("focus",g),()=>{j.removeEventListener("focusin",x),j.removeEventListener("focusout",b),j.removeEventListener("pointermove",x),j.removeEventListener("pointerleave",N),window.removeEventListener("blur",x),window.removeEventListener("focus",g)}}},[w,l.isClosePausedRef]);const v=p.useCallback(({tabbingDirection:j})=>{const x=o().map(g=>{const b=g.ref.current,N=[b,...Ak(b)];return j==="forwards"?N:N.reverse()});return(j==="forwards"?x.reverse():x).flat()},[o]);return p.useEffect(()=>{const j=m.current;if(j){const y=x=>{var N,A,S;const g=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!g){const _=document.activeElement,O=x.shiftKey;if(x.target===j&&O){(N=d.current)==null||N.focus();return}const X=v({tabbingDirection:O?"backwards":"forwards"}),me=X.findIndex(U=>U===_);Nu(X.slice(me+1))?x.preventDefault():O?(A=d.current)==null||A.focus():(S=u.current)==null||S.focus()}};return j.addEventListener("keydown",y),()=>j.removeEventListener("keydown",y)}},[o,v]),n.jsxs(h2,{ref:c,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&n.jsx(Hh,{ref:d,onFocusFromOutsideViewport:()=>{const j=v({tabbingDirection:"forwards"});Nu(j)}}),n.jsx(Af.Slot,{scope:a,children:n.jsx(Y.ol,{tabIndex:-1,...r,ref:f})}),w&&n.jsx(Hh,{ref:u,onFocusFromOutsideViewport:()=>{const j=v({tabbingDirection:"backwards"});Nu(j)}})]})});ub.displayName=db;var hb="ToastFocusProxy",Hh=p.forwardRef((e,t)=>{const{__scopeToast:a,onFocusFromOutsideViewport:s,...i}=e,r=hd(hb,a);return n.jsx(Kx,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:l=>{var d;const o=l.relatedTarget;!((d=r.viewport)!=null&&d.contains(o))&&s()}})});Hh.displayName=hb;var Hl="Toast",mk="toast.swipeStart",fk="toast.swipeMove",pk="toast.swipeCancel",gk="toast.swipeEnd",mb=p.forwardRef((e,t)=>{const{forceMount:a,open:s,defaultOpen:i,onOpenChange:r,...l}=e,[o,c]=Ta({prop:s,defaultProp:i??!0,onChange:r,caller:Hl});return n.jsx(Ua,{present:a||o,children:n.jsx(yk,{open:o,...l,ref:t,onClose:()=>c(!1),onPause:St(e.onPause),onResume:St(e.onResume),onSwipeStart:F(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:F(e.onSwipeMove,d=>{const{x:u,y:m}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:F(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:F(e.onSwipeEnd,d=>{const{x:u,y:m}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),c(!1)})})})});mb.displayName=Hl;var[xk,vk]=ob(Hl,{onClose(){}}),yk=p.forwardRef((e,t)=>{const{__scopeToast:a,type:s="foreground",duration:i,open:r,onClose:l,onEscapeKeyDown:o,onPause:c,onResume:d,onSwipeStart:u,onSwipeMove:m,onSwipeCancel:f,onSwipeEnd:h,...w}=e,v=hd(Hl,a),[j,y]=p.useState(null),x=Te(t,U=>y(U)),g=p.useRef(null),b=p.useRef(null),N=i||v.duration,A=p.useRef(0),S=p.useRef(N),_=p.useRef(0),{onToastAdd:O,onToastRemove:R}=v,H=St(()=>{var ce;(j==null?void 0:j.contains(document.activeElement))&&((ce=v.viewport)==null||ce.focus()),l()}),X=p.useCallback(U=>
vendor: 4,539 bytes, line 25
25{!U||U===1/0||(window.clearTimeout(_.current),A.current=new Date().getTime(),_.current=window.setTimeout(H,U))},[H]);p.useEffect(()=>{const U=v.viewport;if(U){const ce=()=>{X(S.current),d==null||d()},C=()=>{const D=new Date().getTime()-A.current;S.current=S.current-D,window.clearTimeout(_.current),c==null||c()};return U.addEventListener(qh,C),U.addEventListener(Vh,ce),()=>{U.removeEventListener(qh,C),U.removeEventListener(Vh,ce)}}},[v.viewport,N,c,d,X]),p.useEffect(()=>{r&&!v.isClosePausedRef.current&&X(N)},[r,N,v.isClosePausedRef,X]),p.useEffect(()=>(O(),()=>R()),[O,R]);const me=p.useMemo(()=>j?bb(j):null,[j]);return v.viewport?n.jsxs(n.Fragment,{children:[me&&n.jsx(bk,{__scopeToast:a,role:"status","aria-live":s==="foreground"?"assertive":"polite","aria-atomic":!0,children:me}),n.jsx(xk,{scope:a,onClose:H,children:Fc.createPortal(n.jsx(Af.ItemSlot,{scope:a,children:n.jsx(m2,{asChild:!0,onEscapeKeyDown:F(o,()=>{v.isFocusedToastEscapeKeyDownRef.current||H(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:n.jsx(Y.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":r?"open":"closed","data-swipe-direction":v.swipeDirection,...w,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:F(e.onKeyDown,U=>{U.key==="Escape"&&(o==null||o(U.nativeEvent),U.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:F(e.onPointerDown,U=>{U.button===0&&(g.current={x:U.clientX,y:U.clientY})}),onPointerMove:F(e.onPointerMove,U=>{if(!g.current)return;const ce=U.clientX-g.current.x,C=U.clientY-g.current.y,D=!!b.current,z=["left","right"].includes(v.swipeDirection),M=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,ne=z?M(0,ce):0,wt=z?0:M(0,C),ae=U.pointerType==="touch"?10:2,se={x:ne,y:wt},te={originalEvent:U,delta:se};D?(b.current=se,mo(fk,m,te,{discrete:!1})):Mg(se,v.swipeDirection,ae)?(b.current=se,mo(mk,u,te,{discrete:!1}),U.target.setPointerCapture(U.pointerId)):(Math.abs(ce)>ae||Math.abs(C)>ae)&&(g.current=null)}),onPointerUp:F(e.onPointerUp,U=>{const ce=b.current,C=U.target;if(C.hasPointerCapture(U.pointerId)&&C.releasePointerCapture(U.pointerId),b.current=null,g.current=null,ce){const D=U.currentTarget,z={originalEvent:U,delta:ce};Mg(ce,v.swipeDirection,v.swipeThreshold)?mo(gk,h,z,{discrete:!0}):mo(pk,f,z,{discrete:!0}),D.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),bk=e=>{const{__scopeToast:t,children:a,...s}=e,i=hd(Hl,t),[r,l]=p.useState(!1),[o,c]=p.useState(!1);return Nk(()=>l(!0)),p.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),o?null:n.jsx(ud,{asChild:!0,children:n.jsx(Kx,{...s,children:r&&n.jsxs(n.Fragment,{children:[i.label," ",a]})})})},wk="ToastTitle",fb=p.forwardRef((e,t)=>{const{__scopeToast:a,...s}=e;return n.jsx(Y.div,{...s,ref:t})});fb.displayName=wk;var jk="ToastDescription",pb=p.forwardRef((e,t)=>{const{__scopeToast:a,...s}=e;return n.jsx(Y.div,{...s,ref:t})});pb.displayName=jk;var gb="ToastAction",xb=p.forwardRef((e,t)=>{const{altText:a,...s}=e;return a.trim()?n.jsx(yb,{altText:a,asChild:!0,children:n.jsx(kf,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${gb}\`. Expected non-empty \`string\`.`),null)});xb.displayName=gb;var vb="ToastClose",kf=p.forwardRef((e,t)=>{const{__scopeToast:a,...s}=e,i=vk(vb,a);return n.jsx(yb,{asChild:!0,children:n.jsx(Y.button,{type:"button",...s,ref:t,onClick:F(e.onClick,i.onClose)})})});kf.displayName=vb;var yb=p.forwardRef((e,t)=>{const{__scopeToast:a,altText:s,...i}=e;return n.jsx(Y.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...i,ref:t})});function bb(e){const t=[];return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&t.push(s.textContent),Sk(s)){const i=s.ariaHidden||s.hidden||s.style.display==="none",r=s.dataset.radixToastAnnounceExclude==="";if(!i)if(r){const l=s.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...bb(s))}}),t}function mo(e,t,a,{discrete:s}){const i=a.originalEvent.currentTarget,r=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:a});t&&i.addEventListener(e,t,{once:!0}),s?f2(i,r):i.dispatchEvent(r)}var Mg=(e,t,a=0)=>{const s=Math.abs(e.x),i=Math.abs(e.y),r=s>i;return t==="left"||t==="right"?r&&s>a:!r&&i>a};function Nk(e=()=>{}){const t=St(e);ka(()=>{let a=0,s=0;return a=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(s)}},[t])}
vendor: 7,101 bytes, lines 25-119
25function Sk(e){return e.nodeType===e.ELEMENT_NODE}function Ak(e){const t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const i=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||i?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function Nu(e){const t=document.activeElement;return e.some(a=>a===t?!0:(a.focus(),document.activeElement!==t))}var kk=cb,wb=ub,jb=mb,Nb=fb,Sb=pb,Ab=xb,kb=kf;/**
26 * @license lucide-react v0.462.0 - ISC
27 *
28 * This source code is licensed under the ISC license.
29 * See the LICENSE file in the root directory of this source tree.
30 */const Tk=he("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
31 * @license lucide-react v0.462.0 - ISC
32 *
33 * This source code is licensed under the ISC license.
34 * See the LICENSE file in the root directory of this source tree.
35 */const _k=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"}]]);/**
36 * @license lucide-react v0.462.0 - ISC
37 *
38 * This source code is licensed under the ISC license.
39 * See the LICENSE file in the root directory of this source tree.
40 */const Ek=he("ChartNoAxesGantt",[["path",{d:"M8 6h10",key:"9lnwnk"}],["path",{d:"M6 12h9",key:"1g9pqf"}],["path",{d:"M11 18h7",key:"c8dzvl"}]]);/**
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 Oc=he("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 */const qr=he("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
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 Dg=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"}]]);/**
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 Ck=he("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
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 Tb=he("Copyright",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M14.83 14.83a4 4 0 1 1 0-5.66",key:"1i56pz"}]]);/**
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 _b=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"}]]);/**
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 Ok=he("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
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 Eb=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"}]]);/**
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 Rk=he("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
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 Ik=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"}]]);/**
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 Lg=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"}]]);/**
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 Mk=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"}]]);/**
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 Pg=he("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);/**
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 Dk=he("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
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 Lk=he("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
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 zg=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"}]]);/**
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 Pk=he("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
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 zk=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"}]]);/**
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 Bk=he("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
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 Uk=he("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
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 $l=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"}]]);/**
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 qk=he("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
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 Vk=he("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
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 Bg=he("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
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 Hk=he("ShieldAlert",[["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
vendor: 4,520 bytes, lines 165-195
165y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
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 $k=he("Speaker",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["circle",{cx:"12",cy:"14",r:"4",key:"1jruaj"}],["path",{d:"M12 14h.01",key:"1etili"}]]);/**
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 Gk=he("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
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 Rc=he("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
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 Ii=he("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
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 Ug=he("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
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 Wk=he("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),Fk=kk,Cb=p.forwardRef(({className:e,...t},a)=>n.jsx(wb,{ref:a,className:P("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}));Cb.displayName=wb.displayName;const Yk=_l("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"}}),Ob=p.forwardRef(({className:e,variant:t,...a},s)=>n.jsx(jb,{ref:s,className:P(Yk({variant:t}),e),...a}));Ob.displayName=jb.displayName;const Kk=p.forwardRef(({className:e,...t},a)=>n.jsx(Ab,{ref:a,className:P("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Kk.displayName=Ab.displayName;const Rb=p.forwardRef(({className:e,...t},a)=>n.jsx(kb,{ref:a,className:P("absolute right-2 top-2 rounded-md p-1 text-foreground
195/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:n.jsx(dr,{className:"h-4 w-4"})}));Rb.displayName=kb.displayName;const Ib=p.forwardRef(({className:e,...t},a)=>n.jsx(Nb,{ref:a,className:P("text-sm font-semibold",e),...t}));Ib.displayName=Nb.displayName;const Mb=p.forwardRef(({className:e,...t},a)=>n.jsx(Sb,{ref:a,className:P("text-sm opacity-90",e),...t}));Mb.displayName=Sb.displayName;function Qk(){const{toasts:e}=lb();return n.jsxs(Fk,{children:[e.map(function({id:t,title:a,description:s,action:i,...r}){return n.jsxs(Ob,{...r,children:[n.jsxs("div",{className:"grid gap-1",children:[a&&n.jsx(Ib,{children:a}),s&&n.jsx(Mb,{children:s})]}),i,n.jsx(Rb,{})]},t)}),n.jsx(Cb,{})]})}var Xk=e=>{switch(e){case"success":return eT;case"info":return aT;case"warning":return tT;case"error":return nT;default:return null}},Jk=Array(12).fill(0),Zk=({visible:e,className:t})=>k.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},k.createElement("div",{className:"sonner-spinner"},Jk.map((a,s)=>k.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),eT=k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},k.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"})),tT=k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},k.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"})),aT=k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},k.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"})),nT=k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},k.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"})),sT=k.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"},k.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),k.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),iT=()=>{let[e,t]=k.useState(document.hidden);return k.useEffect(()=>{let a=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),e},$h=1,rT=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:a,...s}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:$h++,r=this.toasts.find(o=>o.id===i),l=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),r?this.toasts=this.toasts.map(o=>o.id===i?(this.publish({...o,...e,id:i,title:a}),{...o,...e,id:i,dismissible:l,title:a}):o):this.addToast({title:a,...s,dismissible:l,id:i}),i},this.dismiss=e=>
195(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(a=>a({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let a;t.loading!==void 0&&(a=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let s=e instanceof Promise?e:e(),i=a!==void 0,r,l=s.then(async c=>{if(r=["resolve",c],k.isValidElement(c))i=!1,this.create({id:a,type:"default",message:c});else if(oT(c)&&!c.ok){i=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:a,type:"error",message:d,description:u})}else if(t.success!==void 0){i=!1;let d=typeof t.success=="function"?await t.success(c):t.success,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:a,type:"success",message:d,description:u})}}).catch(async c=>{if(r=["reject",c],t.error!==void 0){i=!1;let d=typeof t.error=="function"?await t.error(c):t.error,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:a,type:"error",message:d,description:u})}}).finally(()=>{var c;i&&(this.dismiss(a),a=void 0),(c=t.finally)==null||c.call(t)}),o=()=>new Promise((c,d)=>l.then(()=>r[0]==="reject"?d(r[1]):c(r[1])).catch(d));return typeof a!="string"&&typeof a!="number"?{unwrap:o}:Object.assign(a,{unwrap:o})},this.custom=(e,t)=>{let a=(t==null?void 0:t.id)||$h++;return this.create({jsx:e(a),id:a,...t}),a},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ot=new rT,lT=(e,t)=>
195{let a=(t==null?void 0:t.id)||$h++;return Ot.addToast({title:e,...t,id:a}),a},oT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cT=lT,dT=()=>Ot.toasts,uT=()=>Ot.getActiveToasts();Object.assign(cT,{success:Ot.success,info:Ot.info,warning:Ot.warning,error:Ot.error,custom:Ot.custom,message:Ot.message,promise:Ot.promise,dismiss:Ot.dismiss,loading:Ot.loading},{getHistory:dT,getToasts:uT});function hT(e,{insertAt:t}={}){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",t==="top"&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}hT(`: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;
195left: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}
195: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%);
195--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%)}
196`);function fo(e){return e.label!==void 0}var mT=3,fT="32px",pT="16px",qg=4e3,gT=356,xT=14,vT=20,yT=200;function ba(...e){return e.filter(Boolean).join(" ")}function bT(e){let[t,a]=e.split("-"),s=[];return t&&s.push(t),a&&s.push(a),s}var wT=e=>{var t,a,s,i,r,l,o,c,d,u,m;let{invert:f,toast:h,unstyled:w,interacting:v,setHeights:j,visibleToasts:y,heights:x,index:g,toasts:b,expanded:N,removeToast:A,defaultRichColors:S,closeButton:_,style:O,cancelButtonStyle:R,actionButtonStyle:H,className:X="",descriptionClassName:me="",duration:U,position:ce,ga
vendor: 4,129 bytes, line 196
196p:C,loadingIcon:D,expandByDefault:z,classNames:M,icons:ne,closeButtonAriaLabel:wt="Close toast",pauseWhenPageIsHidden:ae}=e,[se,te]=k.useState(null),[qe,Jt]=k.useState(null),[L,_e]=k.useState(!1),[et,we]=k.useState(!1),[fe,xe]=k.useState(!1),[Oa,Ga]=k.useState(!1),[wr,ai]=k.useState(!1),[jr,Ld]=k.useState(0),[a2,Zf]=k.useState(0),Nr=k.useRef(h.duration||U||qg),ep=k.useRef(null),ds=k.useRef(null),n2=g===0,s2=g+1<=y,Zt=h.type,ni=h.dismissible!==!1,i2=h.className||"",r2=h.descriptionClassName||"",Kl=k.useMemo(()=>x.findIndex(J=>J.toastId===h.id)||0,[x,h.id]),l2=k.useMemo(()=>{var J;return(J=h.closeButton)!=null?J:_},[h.closeButton,_]),tp=k.useMemo(()=>h.duration||U||qg,[h.duration,U]),Pd=k.useRef(0),si=k.useRef(0),ap=k.useRef(0),ii=k.useRef(null),[o2,c2]=ce.split("-"),np=k.useMemo(()=>x.reduce((J,je,Ve)=>Ve>=Kl?J:J+je.height,0),[x,Kl]),sp=iT(),d2=h.invert||f,zd=Zt==="loading";si.current=k.useMemo(()=>Kl*C+np,[Kl,np]),k.useEffect(()=>{Nr.current=tp},[tp]),k.useEffect(()=>{_e(!0)},[]),k.useEffect(()=>{let J=ds.current;if(J){let je=J.getBoundingClientRect().height;return Zf(je),j(Ve=>[{toastId:h.id,height:je,position:h.position},...Ve]),()=>j(Ve=>Ve.filter(ga=>ga.toastId!==h.id))}},[j,h.id]),k.useLayoutEffect(()=>{if(!L)return;let J=ds.current,je=J.style.height;J.style.height="auto";let Ve=J.getBoundingClientRect().height;J.style.height=je,Zf(Ve),j(ga=>ga.find(xa=>xa.toastId===h.id)?ga.map(xa=>xa.toastId===h.id?{...xa,height:Ve}:xa):[{toastId:h.id,height:Ve,position:h.position},...ga])},[L,h.title,h.description,j,h.id]);let vn=k.useCallback(()=>{we(!0),Ld(si.current),j(J=>J.filter(je=>je.toastId!==h.id)),setTimeout(()=>{A(h)},yT)},[h,A,j,si]);k.useEffect(()=>{if(h.promise&&Zt==="loading"||h.duration===1/0||h.type==="loading")return;let J;return N||v||ae&&sp?(()=>{if(ap.current<Pd.current){let je=new Date().getTime()-Pd.current;Nr.current=Nr.current-je}ap.current=new Date().getTime()})():Nr.current!==1/0&&(Pd.current=new Date().getTime(),J=setTimeout(()=>{var je;(je=h.onAutoClose)==null||je.call(h,h),vn()},Nr.current)),()=>clearTimeout(J)},[N,v,h,Zt,ae,sp,vn]),k.useEffect(()=>{h.delete&&vn()},[vn,h.delete]);function u2(){var J,je,Ve;return ne!=null&&ne.loading?k.createElement("div",{className:ba(M==null?void 0:M.loader,(J=h==null?void 0:h.classNames)==null?void 0:J.loader,"sonner-loader"),"data-visible":Zt==="loading"},ne.loading):D?k.createElement("div",{className:ba(M==null?void 0:M.loader,(je=h==null?void 0:h.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":Zt==="loading"},D):k.createElement(Zk,{className:ba(M==null?void 0:M.loader,(Ve=h==null?void 0:h.classNames)==null?void 0:Ve.loader),visible:Zt==="loading"})}return k.createElement("li",{tabIndex:0,ref:ds,className:ba(X,i2,M==null?void 0:M.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[Zt],(a=h==null?void 0:h.classNames)==null?void 0:a[Zt]),"data-sonner-toast":"","data-rich-colors":(s=h.richColors)!=null?s:S,"data-styled":!(h.jsx||h.unstyled||w),"data-mounted":L,"data-promise":!!h.promise,"data-swiped":wr,"data-removed":et,"data-visible":s2,"data-y-position":o2,"data-x-position":c2,"data-index":g,"data-front":n2,"data-swiping":fe,"data-dismissible":ni,"data-type":Zt,"data-invert":d2,"data-swipe-out":Oa,"data-swipe-direction":qe,"data-expanded":!!(N||z&&L),style:{"--index":g,"--toasts-before":g,"--z-index":b.length-g,"--offset":`${et?jr:si.current}px`,"--initial-height":z?"auto":`${a2}px`,...O,...h.style},onDragEnd:()=>{xe(!1),te(null),ii.current=null},onPointerDown:J=>{zd||!ni||(ep.current=new Date,Ld(si.current),J.target.setPointerCapture(J.pointerId),J.target.tagName!=="BUTTON"&&(xe(!0),ii.current={x:J.clientX,y:J.clientY}))},onPointerUp:()=>{var J,je,Ve,ga;if(Oa||!ni)return;ii.current=null;let xa=Number(((J=ds.current)==null?void 0:J.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),yn=Number(((je=ds.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),us=new Date().getTime()-((Ve=ep.current)==null?void 0:Ve.getTime()),va=se==="x"?xa:yn,bn=Math.abs(va)/us;if(Math.abs(va)>=vT||bn>
196.11){Ld(si.current),(ga=h.onDismiss)==null||ga.call(h,h),Jt(se==="x"?xa>0?"right":"left":yn>0?"down":"up"),vn(),Ga(!0),ai(!1);return}xe(!1),te(null)},onPointerMove:J=>{var je,Ve,ga,xa;if(!ii.current||!ni||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;let yn=J.clientY-ii.current.y,us=J.clientX-ii.current.x,va=(Ve=e.swipeDirections)!=null?Ve:bT(ce);!se&&(Math.abs(us)>1||Math.abs(yn)>1)&&te(Math.abs(us)>Math.abs(yn)?"x":"y");let bn={x:0,y:0};se==="y"?(va.includes("top")||va.includes("bottom"))&&(va.includes("top")&&yn<0||va.includes("bottom")&&yn>0)&&(bn.y=yn):se==="x"&&(va.includes("left")||va.includes("right"))&&(va.includes("left")&&us<0||va.includes("right")&&us>0)&&(bn.x=us),(Math.abs(bn.x)>0||Math.abs(bn.y)>0)&&ai(!0),(ga=ds.current)==null||ga.style.setProperty("--swipe-amount-x",`${bn.x}px`),(xa=ds.current)==null||xa.style.setProperty("--swipe-amount-y",`${bn.y}px`)}},l2&&!h.jsx?k.createElement("button",{"aria-label":wt,"data-disabled":zd,"data-close-button":!0,onClick:zd||!ni?()=>{}:()=>{var J;vn(),(J=h.onDismiss)==null||J.call(h,h)},className:ba(M==null?void 0:M.closeButton,(i=h==null?void 0:h.classNames)==null?void 0:i.closeButton)},(r=ne==null?void 0:ne.close)!=null?r:sT):null,h.jsx||p.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:k.createElement(k.Fragment,null,Zt||h.icon||h.promise?k.createElement("div",{"data-icon":"",className:ba(M==null?void 0:M.icon,(l=h==null?void 0:h.classNames)==null?void 0:l.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||u2():null,h.type!=="loading"?h.icon||(ne==null?void 0:ne[Zt])||Xk(Zt):null):null,k.createElement("div",{"data-content":"",className:ba(M==null?void 0:M.content,(o=h==null?void 0:h.classNames)==null?void 0:o.content)},k.createElement("div",{"data-title":"",className:ba(M==null?void 0:M.title,(c=h==null?void 0:h.classNames)==null?void 0:c.title)},typeof h.title=="function"?h.title():h.title),h.description?k.createElement("div",{"data-description":"",className:ba(me,r2,M==null?void 0:M.description,(d=h==null?void 0:h.classNames)==null?void 0:d.description)},typeof h.description=="function"?h.description():h.description):null),p.isValidElement(h.cancel)?h.cancel:h.cancel&&fo(h.cancel)?k.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||R,onClick:J=>{var je,Ve;fo(h.cancel)&&ni&&((Ve=(je=h.cancel).onClick)==null||Ve.call(je,J),vn())},className:ba(M==null?void 0:M.cancelButton,(u=h==null?void 0:h.classNames)==null?void 0:u.cancelButton)},h.cancel.label):null,p.isValidElement(h.action)?h.action:h.action&&fo(h.action)?k.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||H,onClick:J=>{var je,Ve;fo(h.action)&&((Ve=(je=h.action).onClick)==null||Ve.call(je,J),!J.defaultPrevented&&vn())},className:ba(M==null?void 0:M.actionButton,(m=h==null?void 0:h.classNames)==null?void 0:m.actionButton)},h.action.label):null))};function Vg(){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 jT(e,t){let a={};return[e,t].forEach((s,i)=>{let r=i===1,l=r?"--mobile-offset":"--offset",o=r?pT:fT;function c(d){["top","right","bottom","left"].forEach(u=>{a[`${l}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof s=="number"||typeof s=="string"?c(s):typeof s=="object"?["top","right","bottom","left"].forEach(d=>{s[d]===void 0?a[`${l}-${d}`]=o:a[`${l}-${d}`]=typeof s[d]=="number"?`${s[d]}px`:s[d]}):c(o)}),a}var NT=p.forwardRef(function(e,t){let{invert:a,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:r,closeButton:l,className:o,offset:c,mobileOffset:d,theme:u="light",richColors:m,duration:f,style:h,visibleToasts:w=mT,toastOptions:v,dir:j=Vg(),gap:y=xT,loadingIcon:x,icons:g,containerAriaLabel:b="Notifications",pauseWhenPageIsHidden:N}=e,[A,S]=k.useState([]),_=k.useMemo(()=>Array.from(new Set([s].concat(A.filter(ae=>ae.position).map(ae=>ae.position)))),[A,s]),[O,R]=k.useState([]),[H,X]=k.useState(!1),[me,U]=k.useState(!1),[ce,C]=k.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
196k":"light"),D=k.useRef(null),z=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=k.useRef(null),ne=k.useRef(!1),wt=k.useCallback(ae=>{S(se=>{var te;return(te=se.find(qe=>qe.id===ae.id))!=null&&te.delete||Ot.dismiss(ae.id),se.filter(({id:qe})=>qe!==ae.id)})},[]);return k.useEffect(()=>Ot.subscribe(ae=>{if(ae.dismiss){S(se=>se.map(te=>te.id===ae.id?{...te,delete:!0}:te));return}setTimeout(()=>{pv.flushSync(()=>{S(se=>{let te=se.findIndex(qe=>qe.id===ae.id);return te!==-1?[...se.slice(0,te),{...se[te],...ae},...se.slice(te+1)]:[ae,...se]})})})}),[]),k.useEffect(()=>{if(u!=="system"){C(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?C("dark"):C("light")),typeof window>"u")return;let ae=window.matchMedia("(prefers-color-scheme: dark)");try{ae.addEventListener("change",({matches:se})=>{C(se?"dark":"light")})}catch{ae.addListener(({matches:te})=>{try{C(te?"dark":"light")}catch(qe){console.error(qe)}})}},[u]),k.useEffect(()=>{A.length<=1&&X(!1)},[A]),k.useEffect(()=>{let ae=se=>{var te,qe;i.every(Jt=>se[Jt]||se.code===Jt)&&(X(!0),(te=D.current)==null||te.focus()),se.code==="Escape"&&(document.activeElement===D.current||(qe=D.current)!=null&&qe.contains(document.activeElement))&&X(!1)};return document.addEventListener("keydown",ae),()=>document.removeEventListener("keydown",ae)},[i]),k.useEffect(()=>{if(D.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,ne.current=!1)}},[D.current]),k.createElement("section",{ref:t,"aria-label":`${b} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},_.map((ae,se)=>{var te;let[qe,Jt]=ae.split("-");return A.length?k.createElement("ol",{key:ae,dir:j==="auto"?Vg():j,tabIndex:-1,ref:D,className:o,"data-sonner-toaster":!0,"data-theme":ce,"data-y-position":qe,"data-lifted":H&&A.length>1&&!r,"data-x-position":Jt,style:{"--front-toast-height":`${((te=O[0])==null?void 0:te.height)||0}px`,"--width":`${gT}px`,"--gap":`${y}px`,...h,...jT(c,d)},onBlur:L=>{ne.current&&!L.currentTarget.contains(L.relatedTarget)&&(ne.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:L=>{L.target instanceof HTMLElement&&L.target.dataset.dismissible==="false"||ne.current||(ne.current=!0,M.current=L.relatedTarget)},onMouseEnter:()=>X(!0),onMouseMove:()=>X(!0),onMouseLeave:()=>{me||X(!1)},onDragEnd:()=>X(!1),onPointerDown:L=>{L.target instanceof HTMLElement&&L.target.dataset.dismissible==="false"||U(!0)},onPointerUp:()=>U(!1)},A.filter(L=>!L.position&&se===0||L.position===ae).map((L,_e)=>{var et,we;return k.createElement(wT,{key:L.id,icons:g,index:_e,toast:L,defaultRichColors:m,duration:(et=v==null?void 0:v.duration)!=null?et:f,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:a,visibleToasts:w,closeButton:(we=v==null?void 0:v.closeButton)!=null?we:l,interacting:me,position:ae,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:wt,toasts:A.filter(fe=>fe.position==L.position),heights:O.filter(fe=>fe.position==L.position),setHeights:R,expandByDefault:r,gap:y,loadingIcon:x,expanded:H,pauseWhenPageIsHidden:N,swipeDirections:e.swipeDirections})})):null}))});const ST=({...e})=>n.jsx(NT,{theme:"light",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}),AT=()=>{const e=El();return p.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),n.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:n.jsxs("div",{className:"text-center",children:[n.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),n.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),n.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})};var Su="focusScope.autoFocusOnMount",Au="focusScope.autoFocusOnUnmount",Hg={bubbles:!1,cancelable:!0},kT="FocusScope",Tf=p.forwardRef((e,t)=>
vendor: 3,059 bytes, line 196
196{const{loop:a=!1,trapped:s=!1,onMountAutoFocus:i,onUnmountAutoFocus:r,...l}=e,[o,c]=p.useState(null),d=St(i),u=St(r),m=p.useRef(null),f=Te(t,v=>c(v)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(s){let v=function(g){if(h.paused||!o)return;const b=g.target;o.contains(b)?m.current=b:Nn(m.current,{select:!0})},j=function(g){if(h.paused||!o)return;const b=g.relatedTarget;b!==null&&(o.contains(b)||Nn(m.current,{select:!0}))},y=function(g){if(document.activeElement===document.body)for(const N of g)N.removedNodes.length>0&&Nn(o)};document.addEventListener("focusin",v),document.addEventListener("focusout",j);const x=new MutationObserver(y);return o&&x.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",j),x.disconnect()}}},[s,o,h.paused]),p.useEffect(()=>{if(o){Gg.add(h);const v=document.activeElement;if(!o.contains(v)){const y=new CustomEvent(Su,Hg);o.addEventListener(Su,d),o.dispatchEvent(y),y.defaultPrevented||(TT(RT(Db(o)),{select:!0}),document.activeElement===v&&Nn(o))}return()=>{o.removeEventListener(Su,d),setTimeout(()=>{const y=new CustomEvent(Au,Hg);o.addEventListener(Au,u),o.dispatchEvent(y),y.defaultPrevented||Nn(v??document.body,{select:!0}),o.removeEventListener(Au,u),Gg.remove(h)},0)}}},[o,d,u,h]);const w=p.useCallback(v=>{if(!a&&!s||h.paused)return;const j=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(j&&y){const x=v.currentTarget,[g,b]=_T(x);g&&b?!v.shiftKey&&y===b?(v.preventDefault(),a&&Nn(g,{select:!0})):v.shiftKey&&y===g&&(v.preventDefault(),a&&Nn(b,{select:!0})):y===x&&v.preventDefault()}},[a,s,h.paused]);return n.jsx(Y.div,{tabIndex:-1,...l,ref:f,onKeyDown:w})});Tf.displayName=kT;function TT(e,{select:t=!1}={}){const a=document.activeElement;for(const s of e)if(Nn(s,{select:t}),document.activeElement!==a)return}function _T(e){const t=Db(e),a=$g(t,e),s=$g(t.reverse(),e);return[a,s]}function Db(e){const t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const i=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||i?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function $g(e,t){for(const a of e)if(!ET(a,{upTo:t}))return a}function ET(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 CT(e){return e instanceof HTMLInputElement&&"select"in e}function Nn(e,{select:t=!1}={}){if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&CT(e)&&t&&e.select()}}var Gg=OT();function OT(){let e=[];return{add(t){const a=e[0];t!==a&&(a==null||a.pause()),e=Wg(e,t),e.unshift(t)},remove(t){var a;e=Wg(e,t),(a=e[0])==null||a.resume()}}}function Wg(e,t){const a=[...e],s=a.indexOf(t);return s!==-1&&a.splice(s,1),a}function RT(e){return e.filter(t=>t.tagName!=="A")}var ku=0;
vendor: 6,140 bytes, lines 196-211
196function Lb(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Fg()),document.body.insertAdjacentElement("beforeend",e[1]??Fg()),ku++,()=>{ku===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ku--}},[])}function Fg(){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 Ia=function(){return Ia=Object.assign||function(t){for(var a,s=1,i=arguments.length;s<i;s++){a=arguments[s];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},Ia.apply(this,arguments)};function Pb(e,t){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(a[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(a[s[i]]=e[s[i]]);return a}function IT(e,t,a){if(a||arguments.length===2)for(var s=0,i=t.length,r;s<i;s++)(r||!(s in t))&&(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return e.concat(r||Array.prototype.slice.call(t))}var Qo="right-scroll-bar-position",Xo="width-before-scroll-bar",MT="with-scroll-bars-hidden",DT="--removed-body-scroll-bar-size";function Tu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function LT(e,t){var a=p.useState(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(s){var i=a.value;i!==s&&(a.value=s,a.callback(s,i))}}}})[0];return a.callback=t,a.facade}var PT=typeof window<"u"?p.useLayoutEffect:p.useEffect,Yg=new WeakMap;function zT(e,t){var a=LT(null,function(s){return e.forEach(function(i){return Tu(i,s)})});return PT(function(){var s=Yg.get(a);if(s){var i=new Set(s),r=new Set(e),l=a.current;i.forEach(function(o){r.has(o)||Tu(o,null)}),r.forEach(function(o){i.has(o)||Tu(o,l)})}Yg.set(a,e)},[e]),a}function BT(e){return e}function UT(e,t){t===void 0&&(t=BT);var a=[],s=!1,i={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(r){var l=t(r,s);return a.push(l),function(){a=a.filter(function(o){return o!==l})}},assignSyncMedium:function(r){for(s=!0;a.length;){var l=a;a=[],l.forEach(r)}a={push:function(o){return r(o)},filter:function(){return a}}},assignMedium:function(r){s=!0;var l=[];if(a.length){var o=a;a=[],o.forEach(r),l=a}var c=function(){var u=l;l=[],u.forEach(r)},d=function(){return Promise.resolve().then(c)};d(),a={push:function(u){l.push(u),d()},filter:function(u){return l=l.filter(u),a}}}};return i}function qT(e){e===void 0&&(e={});var t=UT(null);return t.options=Ia({async:!0,ssr:!1},e),t}var zb=function(e){var t=e.sideCar,a=Pb(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return p.createElement(s,Ia({},a))};zb.isSideCarExport=!0;function VT(e,t){return e.useMedium(t),zb}var Bb=qT(),_u=function(){},md=p.forwardRef(function(e,t){var a=p.useRef(null),s=p.useState({onScrollCapture:_u,onWheelCapture:_u,onTouchMoveCapture:_u}),i=s[0],r=s[1],l=e.forwardProps,o=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,m=e.shards,f=e.sideCar,h=e.noRelative,w=e.noIsolation,v=e.inert,j=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,g=e.gapMode,b=Pb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=f,A=zT([a,t]),S=Ia(Ia({},b),i);return p.createElement(p.Fragment,null,u&&p.createElement(N,{sideCar:Bb,removeScrollBar:d,shards:m,noRelative:h,noIsolation:w,inert:v,setCallbacks:r,allowPinchZoom:!!j,lockRef:a,gapMode:g}),l?p.cloneElement(p.Children.only(o),Ia(Ia({},S),{ref:A})):p.createElement(x,Ia({},S,{className:c,ref:A}),o))});md.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};md.classNames={fullWidth:Xo,zeroRight:Qo};var HT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $T(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=HT();return t&&e.setAttribute("nonce",t),e}function GT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function WT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var FT=function(){var e=0,t=null;return{add:function(a){e==0&&(t=$T())&&(GT(t,a),WT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},YT=function(){var e=FT();return function(t,a){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}},Ub=function(){var e=YT(),t=function(a){var s=a.styles,i=a.dynamic;return e(s,i),null};return t},KT={left:0,top:0,right:0,gap:0},Eu=function(e){return parseInt(e||"",10)||0},QT=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Eu(a),Eu(s),Eu(i)]},XT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KT;var t=QT(e),a=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-a+t[2]-t[0])}},JT=Ub(),$i="data-scroll-locked",ZT=function(e,t,a,s){var i=e.left,r=e.top,l=e.right,o=e.gap;return a===void 0&&(a="margin"),`
197  .`.concat(MT,` {
198   overflow: hidden `).concat(s,`;
199   padding-right: `).concat(o,"px ").concat(s,`;
200  }
201  body[`).concat($i,`] {
202    overflow: hidden `).concat(s,`;
203    overscroll-behavior: contain;
204    `).concat([t&&"position: relative ".concat(s,";"),a==="margin"&&`
205    padding-left: `.concat(i,`px;
206    padding-top: `).concat(r,`px;
207    padding-right: `).concat(l,`px;
208    margin-left:0;
209    margin-top:0;
210    margin-right: `).concat(o,"px ").concat(s,`;
211    `),a==="padding"&&"padding-right: ".concat(o,"px ").concat(s,";
211")].filter(Boolean).join(""),`
212  }
213  
214  .`).concat(Qo,` {
215    right: `).concat(o,"px ").concat(s,`;
216  }
217  
218  .`).concat(Xo,` {
219    margin-right: `).concat(o,"px ").concat(s,`;
220  }
221  
222  .`).concat(Qo," .").concat(Qo,` {
223    right: 0 `).concat(s,`;
224  }
225  
226  .`).concat(Xo," .").concat(Xo,` {
227    margin-right: 0 `).concat(s,`;
228  }
229  
230  body[`).concat($i,`] {
231    `).concat(DT,": ").concat(o,`px;
232  }
233`)},Kg=function(){var e=parseInt(document.body.getAttribute($i)||"0",10);return isFinite(e)?e:0},e_=function(){p.useEffect(function(){return document.body.setAttribute($i,(Kg()+1).toString()),function(){var e=Kg()-1;e<=0?document.body.removeAttribute($i):document.body.setAttribute($i,e.toString())}},[])},t_=function(e){var t=e.noRelative,a=e.noImportant,s=e.gapMode,i=s===void 0?"margin":s;e_();var r=p.useMemo(function(){return XT(i)},[i]);return p.createElement(JT,{styles:ZT(r,!t,i,a?"":"!important")})},Gh=!1;if(typeof window<"u")try{var po=Object.defineProperty({},"passive",{get:function(){return Gh=!0,!0}});window.addEventListener("test",po,po),window.removeEventListener("test",po,po)}catch{Gh=!1}var oi=Gh?{passive:!1}:!1,a_=function(e){return e.tagName==="TEXTAREA"},qb=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!a_(e)&&a[t]==="visible")},n_=function(e){return qb(e,"overflowY")},s_=function(e){return qb(e,"overflowX")},Qg=function(e,t){var a=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var i=Vb(e,s);if(i){var r=Hb(e,s),l=r[1],o=r[2];if(l>o)return!0}s=s.parentNode}while(s&&s!==a.body);return!1},i_=function(e){var t=e.scrollTop,a=e.scrollHeight,s=e.clientHeight;return[t,a,s]},r_=function(e){var t=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth;return[t,a,s]},Vb=function(e,t){return e==="v"?n_(t):s_(t)},Hb=function(e,t){return e==="v"?i_(t):r_(t)},l_=function(e,t){return e==="h"&&t==="rtl"?-1:1},o_=function(e,t,a,s,i){var r=l_(e,window.getComputedStyle(t).direction),l=r*s,o=a.target,c=t.contains(o),d=!1,u=l>0,m=0,f=0;do{if(!o)break;var h=Hb(e,o),w=h[0],v=h[1],j=h[2],y=v-j-r*w;(w||y)&&Vb(e,o)&&(m+=y,f+=w);var x=o.parentNode;o=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&o!==document.body||c&&(t.contains(o)||t===o));return(u&&Math.abs(m)<1||!u&&Math.abs(f)<1)&&(d=!0),d},go=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xg=function(e){return[e.deltaX,e.deltaY]},Jg=function(e){return e&&"current"in e?e.current:e},c_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},d_=function(e){return`
234  .block-interactivity-`.concat(e,` {pointer-events: none;}
235  .allow-interactivity-`).concat(e,` {pointer-events: all;}
236`)},u_=0,ci=[];function h_(e){var t=p.useRef([]),a=p.useRef([0,0]),s=p.useRef(),i=p.useState(u_++)[0],r=p.useState(Ub)[0],l=p.useRef(e);p.useEffect(function(){l.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=IT([e.lockRef.current],(e.shards||[]).map(Jg),!0).filter(Boolean);return v.forEach(function(j){return j.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=p.useCallback(function(v,j){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var y=go(v),x=a.current,g="deltaX"in v?v.deltaX:x[0]-y[0],b="deltaY"in v?v.deltaY:x[1]-y[1],N,A=v.target,S=Math.abs(g)>Math.abs(b)?"h":"v";if("touches"in v&&S==="h"&&A.type==="range")return!1;var _=Qg(S,A);if(!_)return!0;if(_?N=S:(N=S==="v"?"h":"v",_=Qg(S,A)),!_)return!1;if(!s.current&&"changedTouches"in v&&(g||b)&&(s.current=N),!N)return!0;var O=s.current||N;return o_(O,j,v,O==="h"?g:b)},[]),c=p.useCallback(function(v){var j=v;if(!(!ci.length||ci[ci.length-1]!==r)){var y="deltaY"in j?Xg(j):go(j),x=t.current.filter(function(N){return N.name===j.type&&(N.target===j.target||j.target===N.shadowParent)&&c_(N.delta,y)})[0];if(x&&x.should){j.cancelable&&j.preventDefault();return}
vendor: 4,336 bytes, line 236
236if(!x){var g=(l.current.shards||[]).map(Jg).filter(Boolean).filter(function(N){return N.contains(j.target)}),b=g.length>0?o(j,g[0]):!l.current.noIsolation;b&&j.cancelable&&j.preventDefault()}}},[]),d=p.useCallback(function(v,j,y,x){var g={name:v,delta:j,target:y,should:x,shadowParent:m_(y)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(b){return b!==g})},1)},[]),u=p.useCallback(function(v){a.current=go(v),s.current=void 0},[]),m=p.useCallback(function(v){d(v.type,Xg(v),v.target,o(v,e.lockRef.current))},[]),f=p.useCallback(function(v){d(v.type,go(v),v.target,o(v,e.lockRef.current))},[]);p.useEffect(function(){return ci.push(r),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:f}),document.addEventListener("wheel",c,oi),document.addEventListener("touchmove",c,oi),document.addEventListener("touchstart",u,oi),function(){ci=ci.filter(function(v){return v!==r}),document.removeEventListener("wheel",c,oi),document.removeEventListener("touchmove",c,oi),document.removeEventListener("touchstart",u,oi)}},[]);var h=e.removeScrollBar,w=e.inert;return p.createElement(p.Fragment,null,w?p.createElement(r,{styles:d_(i)}):null,h?p.createElement(t_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function m_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const f_=VT(Bb,h_);var _f=p.forwardRef(function(e,t){return p.createElement(md,Ia({},e,{ref:t,sideCar:f_}))});_f.classNames=md.classNames;var p_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},di=new WeakMap,xo=new WeakMap,vo={},Cu=0,$b=function(e){return e&&(e.host||$b(e.parentNode))},g_=function(e,t){return t.map(function(a){if(e.contains(a))return a;var s=$b(a);return s&&e.contains(s)?s:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},x_=function(e,t,a,s){var i=g_(t,Array.isArray(e)?e:[e]);vo[a]||(vo[a]=new WeakMap);var r=vo[a],l=[],o=new Set,c=new Set(i),d=function(m){!m||o.has(m)||(o.add(m),d(m.parentNode))};i.forEach(d);var u=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(f){if(o.has(f))u(f);else try{var h=f.getAttribute(s),w=h!==null&&h!=="false",v=(di.get(f)||0)+1,j=(r.get(f)||0)+1;di.set(f,v),r.set(f,j),l.push(f),v===1&&w&&xo.set(f,!0),j===1&&f.setAttribute(a,"true"),w||f.setAttribute(s,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return u(t),o.clear(),Cu++,function(){l.forEach(function(m){var f=di.get(m)-1,h=r.get(m)-1;di.set(m,f),r.set(m,h),f||(xo.has(m)||m.removeAttribute(s),xo.delete(m)),h||m.removeAttribute(a)}),Cu--,Cu||(di=new WeakMap,di=new WeakMap,xo=new WeakMap,vo={})}},Gb=function(e,t,a){a===void 0&&(a="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),i=p_(e);return i?(s.push.apply(s,Array.from(i.querySelectorAll("[aria-live], script"))),x_(s,i,a,"aria-hidden")):function(){return null}},fd="Dialog",[Wb]=Ba(fd),[v_,Ea]=Wb(fd),Fb=e=>{const{__scopeDialog:t,children:a,open:s,defaultOpen:i,onOpenChange:r,modal:l=!0}=e,o=p.useRef(null),c=p.useRef(null),[d,u]=Ta({prop:s,defaultProp:i??!1,onChange:r,caller:fd});return n.jsx(v_,{scope:t,triggerRef:o,contentRef:c,contentId:zn(),titleId:zn(),descriptionId:zn(),open:d,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(m=>!m),[u]),modal:l,children:a})};Fb.displayName=fd;var Yb="DialogTrigger",y_=p.forwardRef((e,t)=>{const{__scopeDialog:a,...s}=e,i=Ea(Yb,a),r=Te(t,i.triggerRef);return n.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Of(i.open),...s,ref:r,onClick:F(e.onClick,i.onOpenToggle)})});y_.displayName=Yb;var Ef="DialogPortal",[b_,Kb]=Wb(Ef,{forceMount:void 0}),Qb=e=>{const{__scopeDialog:t,forceMount:a,children:s,container:i}=e,r=Ea(Ef,t);return n.jsx(b_,{scope:t,forceMount:a,children:p.Children.map(s,l=>n.jsx(Ua,{present:a||r.open,children:n.jsx(ud,{asChild:!0,container:i,children:l})}))})};Qb.displayName=Ef;var Ic="DialogOverlay",Xb=p.forwardRef((e,t)=>{const a=Kb(Ic,e.__scopeDialog),{forceMount:s=a.forceMount,...i}=e,r=Ea(Ic,e.__scopeDialog);return r.modal?n.jsx(Ua,{present:s||r.open,children:n.jsx(j_,{...i,ref:t})}):null});Xb.displayName=Ic;var w_=Qx("DialogOverlay.RemoveScroll"),j_=p.forwardRef((e,t)=>
vendor: 4,618 bytes, lines 236-240
236{const{__scopeDialog:a,...s}=e,i=Ea(Ic,a);return n.jsx(_f,{as:w_,allowPinchZoom:!0,shards:[i.contentRef],children:n.jsx(Y.div,{"data-state":Of(i.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),qs="DialogContent",Jb=p.forwardRef((e,t)=>{const a=Kb(qs,e.__scopeDialog),{forceMount:s=a.forceMount,...i}=e,r=Ea(qs,e.__scopeDialog);return n.jsx(Ua,{present:s||r.open,children:r.modal?n.jsx(N_,{...i,ref:t}):n.jsx(S_,{...i,ref:t})})});Jb.displayName=qs;var N_=p.forwardRef((e,t)=>{const a=Ea(qs,e.__scopeDialog),s=p.useRef(null),i=Te(t,a.contentRef,s);return p.useEffect(()=>{const r=s.current;if(r)return Gb(r)},[]),n.jsx(Zb,{...e,ref:i,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,r=>{var l;r.preventDefault(),(l=a.triggerRef.current)==null||l.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,r=>{const l=r.detail.originalEvent,o=l.button===0&&l.ctrlKey===!0;(l.button===2||o)&&r.preventDefault()}),onFocusOutside:F(e.onFocusOutside,r=>r.preventDefault())})}),S_=p.forwardRef((e,t)=>{const a=Ea(qs,e.__scopeDialog),s=p.useRef(!1),i=p.useRef(!1);return n.jsx(Zb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{var l,o;(l=e.onCloseAutoFocus)==null||l.call(e,r),r.defaultPrevented||(s.current||(o=a.triggerRef.current)==null||o.focus(),r.preventDefault()),s.current=!1,i.current=!1},onInteractOutside:r=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,r),r.defaultPrevented||(s.current=!0,r.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=r.target;((d=a.triggerRef.current)==null?void 0:d.contains(l))&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&i.current&&r.preventDefault()}})}),Zb=p.forwardRef((e,t)=>{const{__scopeDialog:a,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:r,...l}=e,o=Ea(qs,a),c=p.useRef(null),d=Te(t,c);return Lb(),n.jsxs(n.Fragment,{children:[n.jsx(Tf,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:i,onUnmountAutoFocus:r,children:n.jsx(Xx,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":Of(o.open),...l,ref:d,onDismiss:()=>o.onOpenChange(!1)})}),n.jsxs(n.Fragment,{children:[n.jsx(A_,{titleId:o.titleId}),n.jsx(T_,{contentRef:c,descriptionId:o.descriptionId})]})]})}),Cf="DialogTitle",ew=p.forwardRef((e,t)=>{const{__scopeDialog:a,...s}=e,i=Ea(Cf,a);return n.jsx(Y.h2,{id:i.titleId,...s,ref:t})});ew.displayName=Cf;var tw="DialogDescription",aw=p.forwardRef((e,t)=>{const{__scopeDialog:a,...s}=e,i=Ea(tw,a);return n.jsx(Y.p,{id:i.descriptionId,...s,ref:t})});aw.displayName=tw;var nw="DialogClose",sw=p.forwardRef((e,t)=>{const{__scopeDialog:a,...s}=e,i=Ea(nw,a);return n.jsx(Y.button,{type:"button",...s,ref:t,onClick:F(e.onClick,()=>i.onOpenChange(!1))})});sw.displayName=nw;function Of(e){return e?"open":"closed"}var iw="DialogTitleWarning",[$O,rw]=p2(iw,{contentName:qs,titleName:Cf,docsSlug:"dialog"}),A_=({titleId:e})=>{const t=rw(iw),a=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
237
238If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
239
240For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(a))},[a,e]),null},k_="DialogDescriptionWarning",T_=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${rw(k_).contentName}}.`;return p.useEffect(()=>{var r;const i=(r=e.current)==null?void 0:r.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},__=Fb,E_=Qb,lw=Xb,ow=Jb,cw=ew,dw=aw,C_=sw;const uw=__,O_=E_,Rf=p.forwardRef(({className:e,...t},a)=>n.jsx(lw,{ref:a,className:P("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}));Rf.displayName=lw.displayName;const If=p.forwardRef(({className:e,children:t,...a},s)=>n.jsxs(O_,{children:[n.jsx(Rf,{}),n.jsxs(ow,{ref:s,className:P("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:rou
240nded-lg",e),...a,children:[t,n.jsxs(C_,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[n.jsx(dr,{className:"h-4 w-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));If.displayName=ow.displayName;const hw=({className:e,...t})=>n.jsx("div",{className:P("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});hw.displayName="DialogHeader";const mw=p.forwardRef(({className:e,...t},a)=>n.jsx(cw,{ref:a,className:P("text-lg font-semibold leading-none tracking-tight",e),...t}));mw.displayName=cw.displayName;const fw=p.forwardRef(({className:e,...t},a)=>n.jsx(dw,{ref:a,className:P("text-sm text-muted-foreground",e),...t}));fw.displayName=dw.displayName;function Mf(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var pd="Checkbox",[R_]=Ba(pd),[I_,Df]=R_(pd);function M_(e){const{__scopeCheckbox:t,checked:a,children:s,defaultChecked:i,disabled:r,form:l,name:o,onCheckedChange:c,required:d,value:u="on",internal_do_not_use_render:m}=e,[f,h]=Ta({prop:a,defaultProp:i??!1,onChange:c,caller:pd}),[w,v]=p.useState(null),[j,y]=p.useState(null),x=p.useRef(!1),g=w?!!l||!!w.closest("form"):!0,b={checked:f,disabled:r,setChecked:h,control:w,setControl:v,name:o,form:l,value:u,hasConsumerStoppedPropagationRef:x,required:d,defaultChecked:Kn(i)?!1:i,isFormControl:g,bubbleInput:j,setBubbleInput:y};return n.jsx(I_,{scope:t,...b,children:D_(m)?m(b):s})}var pw="CheckboxTrigger",gw=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:a,...s},i)=>{const{control:r,value:l,disabled:o,checked:c,required:d,setControl:u,setChecked:m,hasConsumerStoppedPropagationRef:f,isFormControl:h,bubbleInput:w}=Df(pw,e),v=Te(i,u),j=p.useRef(c);return p.useEffect(()=>{const y=r==null?void 0:r.form;if(y){const x=()=>m(j.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[r,m]),n.jsx(Y.button,{type:"button",role:"checkbox","aria-checked":Kn(c)?"mixed":c,"aria-required":d,"data-state":ww(c),"data-disabled":o?"":void 0,disabled:o,value:l,...s,ref:v,onKeyDown:F(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:F(a,y=>{m(x=>Kn(x)?!0:!x),w&&h&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});gw.displayName=pw;var Lf=p.forwardRef((e,t)=>{const{__scopeCheckbox:a,name:s,checked:i,defaultChecked:r,required:l,disabled:o,value:c,onCheckedChange:d,form:u,...m}=e;return n.jsx(M_,{__scopeCheckbox:a,checked:i,defaultChecked:r,disabled:o,required:l,onCheckedChange:d,name:s,form:u,value:c,internal_do_not_use_render:({isFormControl:f})=>n.jsxs(n.Fragment,{children:[n.jsx(gw,{...m,ref:t,__scopeCheckbox:a}),f&&n.jsx(bw,{__scopeCheckbox:a})]})})});Lf.displayName=pd;var xw="CheckboxIndicator",vw=p.forwardRef((e,t)=>{const{__scopeCheckbox:a,forceMount:s,...i}=e,r=Df(xw,a);return n.jsx(Ua,{present:s||Kn(r.checked)||r.checked===!0,children:n.jsx(Y.span,{"data-state":ww(r.checked),"data-disabled":r.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});vw.displayName=xw;var yw="CheckboxBubbleInput",bw=p.forwardRef(({__scopeCheckbox:e,...t},a)=>{const{control:s,hasConsumerStoppedPropagationRef:i,checked:r,defaultChecked:l,required:o,disabled:c,name:d,value:u,form:m,bubbleInput:f,setBubbleInput:h}=Df(yw,e),w=Te(a,h),v=Mf(r),j=Jx(s);p.useEffect(()=>{const x=f;if(!x)return;const g=window.HTMLInputElement.prototype,N=Object.getOwnPropertyDescriptor(g,"checked").set,A=!i.current;if(v!==r&&N){const S=new Event("click",{bubbles:A});x.indeterminate=Kn(r),N.call(x,Kn(r)?!1:r),x.dispatchEvent(S)}},[f,v,r,i]);const y=p.useRef(Kn(r)?!1:r);return n.jsx(Y.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??y.current,required:o,disabled:c,name:d,value:u,form:m,...t,tabIndex:-1,ref:w,style:{...t.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});bw.displayName=yw;function D_(e){return typeof e=="function"}function Kn(e){return e==="indeterminate"}function ww(e){return Kn(e)?"indeterminate":e?"checked":"unchecked"}const Jo=p.forwardRef(({className:e,...t},a)=>n.jsx(Lf,{ref:a,className:P("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:n.jsx(vw,{className:P("flex items-center justify-center text-current"),children:n.jsx(dt,{className:"h-4 w-4"})})}));Jo.displayName=Lf.displayName;const L_=()=>{const[e,t]=p.useState(!1),[a,s]=p.useState(!1),[i,r]=p.useState({necessary:!0,analytics:!1,marketing:!1});p.useEffect(()=>{const d=g2("cookiePreferences");if(!d)t(!0);else try{r(JSON.parse(d))}catch{t(!0)}},[]);const l=d=>{x2("cookiePreferences",JSON.stringify(d)),r(d),t(!1),s(!1),Ae({title:"Preferences saved",description:"Your cookie preferences have been updated."})},o=()=>{l({necessary:!0,analytics:!0,marketing:!0})},c=()=>
240{l(i)};return e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 shadow-lg z-50 px-4 py-4",children:n.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4",children:[n.jsxs("div",{className:"flex items-start gap-3",children:[n.jsx(Lg,{className:"w-5 h-5 text-appblue mt-0.5 flex-shrink-0"}),n.jsxs("p",{className:"text-sm text-gray-700",children:["We use cookies to enhance your experience. By continuing, you agree to our"," ",n.jsx(Ge,{to:"/privacy",className:"text-appblue hover:underline",children:"Privacy Policy"}),"."]})]}),n.jsxs("div",{className:"flex gap-3",children:[n.jsxs("button",{onClick:()=>s(!0),className:"flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-appblue hover:bg-gray-50",children:[n.jsx(Bg,{className:"w-4 h-4 mr-1"}),"Manage Preferences"]}),n.jsxs("button",{onClick:o,className:"flex items-center rounded-md bg-[#dc4f8f] px-4 py-2 text-sm font-medium text-white hover:bg-[#dc4f8f]/90",children:[n.jsx(dt,{className:"w-4 h-4 mr-1"}),"Accept All"]})]})]})}),n.jsx(uw,{open:a,onOpenChange:s,children:n.jsxs(If,{className:"sm:max-w-md",children:[n.jsxs(hw,{children:[n.jsx(mw,{children:"Cookie Preferences"}),n.jsx(fw,{children:"Customize your cookie preferences. Strictly necessary cookies are always enabled as they are essential for the website to function properly."})]}),n.jsxs("div",{className:"space-y-4 py-4",children:[n.jsxs("div",{className:"flex items-start space-x-3 p-3 bg-gray-50 rounded-md",children:[n.jsx(da,{className:"w-5 h-5 text-gray-700 mt-0.5"}),n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h4",{className:"font-medium",children:"Strictly Necessary Cookies"}),n.jsx(Jo,{checked:!0,disabled:!0})]}),n.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"These cookies are essential for the website to function properly and cannot be disabled."})]})]}),n.jsxs("div",{className:"flex items-start space-x-3 p-3 bg-gray-50 rounded-md",children:[n.jsx(Bg,{className:"w-5 h-5 text-gray-700 mt-0.5"}),n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h4",{className:"font-medium",children:"Analytics & Performance"}),n.jsx(Jo,{id:"analytics",checked:i.analytics,onCheckedChange:d=>r({...i,analytics:d===!0})})]}),n.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"These cookies help us understand how visitors interact with our website, helping us improve our services."})]})]}),n.jsxs("div",{className:"flex items-start space-x-3 p-3 bg-gray-50 rounded-md",children:[n.jsx(Lg,{className:"w-5 h-5 text-gray-700 mt-0.5"}),n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h4",{className:"font-medium",children:"Marketing Cookies"}),n.jsx(Jo,{id:"marketing",checked:i.marketing,onCheckedChange:d=>r({...i,marketing:d===!0})})]}),n.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"These cookies help us deliver relevant advertisements and marketing communications."})]})]})]}),n.jsxs("div",{className:"flex justify-end gap-3",children:[n.jsxs("button",{onClick:()=>s(!1),className:"flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50",children:[n.jsx(dr,{className:"w-4 h-4 mr-1"}),"Cancel"]}),n.jsxs("button",{onClick:c,className:"flex items-center rounded-md bg-[#dc4f8f] px-4 py-2 text-sm font-medium text-white hover:bg-[#dc4f8f]/90",children:[n.jsx(dt,{className:"w-4 h-4 mr-1"}),"Save Preferences"]})]})]})})]}):null},yo="https://www.appenue-ai.com";function P_(e){return!e||e==="/"?"/":e.replace(/\/+$/,"")}function ms(e,t){let a=document.querySelector(`meta[name="${e}"]`);a||(a=document.createElement("meta"),a.setAttribute("name",e),document.head.appendChild(a)),a.setAttribute("content",t)}function wn(e,t){let a=document.querySelector(`meta[property="${e}"]`);a||(a=document.createElement("meta"),a.setAttribute("property",e),document.head.appendChild(a)),a.setAttribute("content",t)}function Ou(e,t){const a=[`link[rel="${e}"]`];for(const[r,l]of Object.entries(t))r!=="href"&&a.push(`[${r}="${l}"]`);const s=a.join("");let i=document.querySelector(s);i||(i=document.createElement("link"),i.setAttribute("rel",e),document.head.appendChild(i));for(const[r,l]of Object.entries(t))i.setAttribute(r,l)}const z_=()=>{const{pathname:e}=El(),t=p.useMemo(()=>P_(e),[e]),a=p.useMemo(()=>v2(t),[t]);return p.useEffect(()=>{const s=t==="/"?`${yo}/`:`${yo}${t}`;document.title=a.title,Ou("canonical",{href:s}),Ou("alternate",{hreflang:"x-default",href:s}),ms("description",a.description),ms("keywords",a.keywords),ms("author","Avishay (AJ) Segal, MBA - Appenue AI");const i=a.ogImage?`${yo}${a.ogImage}`:`${yo}/images/hero-placeholder.webp`;wn("og:site_name","Appenue AI"),wn("og:url",s),wn("og:title",a.ogTitle||a.title),wn("og:description",a.ogDescription||a.description),wn("og:image",i),wn("og:type","website"),wn("og:locale","en_US"),ms("twitter:card","summary_large_image"),ms("twitter:title",a.ogTitle||a.title),ms("twitter:description",a.ogDescription||a.description),ms("twitter:image",i),Ou("related",{href:"https://mvp.appenue-ai.com",title:"MVP in 15 Days"}),wn("og:see_also","https://mvp.appenue-ai.com")},[t,a]),null},Zg=({text:e,to:t,variant:a="default",size:s="default",className:i="",showArrow:r=!1})=>{const o=El().pathname.includes("/case-studies"),d=r||o&&e==="View Packages";return n.jsx(Ge,{to:t,className:"inline-block w-full sm:w-auto",children:n.jsxs(B,{variant:a,size:s,className:`w-full sm:w-auto ${i}`,children:[n.jsx("span",{className:"truncate",children:e}),d&&n.jsx(Zx,{className:"ml-1 h-4 w-4 flex-shrink-0"})]})})},Js=({title:e,headline:t,subheading:a,children:s,pdfFileName:i})=>{const r=ev();return p.useEffect(()=>{window.scrollTo(0,0)},[]),n.jsxs(Xt,{children:[n.jsx("section",{className:"relative py-12 lg:py-20 bg-gray-50",children:n.jsxs("div",{className:"section px-4 sm:px-6",children:[n.jsx("div",{className:"mb-6 sm:mb-8",children:n.jsxs(Ge,{to:"/case-studies",className:"inline-flex items-center text-gray-600 hover:text-appblue transition-colors",children:[n.jsx(y2,{className:"mr-2 h-4 w-4"})," Back to Case Studies"]})}),n.jsxs(T.div,{initial:{opacity:0,y:20}
vendor: 26,569 bytes, lines 240-241
240,animate:{opacity:1,y:0},transition:{duration:.7},className:"max-w-4xl",children:[n.jsx("span",{className:"inline-block px-3 py-1 mb-4 text-sm font-medium text-white !important bg-appblue rounded-full",children:"Case Study"}),n.jsx("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold mb-4 sm:mb-6 pb-2 gradient-text text-3d",children:e}),n.jsx("h2",{className:"text-xl sm:text-2xl lg:text-3xl font-semibold mb-3 text-appblue",children:t}),n.jsx("p",{className:"text-lg sm:text-xl text-gray-600 mb-6 sm:mb-8",children:a})]})]})}),n.jsx("div",{id:"case-study-content",children:s}),n.jsx("section",{className:"relative py-16 sm:py-24 bg-gradient-to-r from-appblue to-apppink",children:n.jsxs("div",{className:"section px-4 sm:px-6 text-center",children:[n.jsx(T.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"text-3xl sm:text-4xl font-bold mb-4 sm:mb-6 text-white !important",children:"Ready to Transform Your Business?"}),n.jsx(T.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.1},className:"text-lg sm:text-xl mb-8 sm:mb-10 max-w-2xl mx-auto text-white !important",children:"Let's discuss how Appenue AI can deliver similar results for your organisation."}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.2},className:"flex flex-col sm:flex-row justify-center gap-4 sm:gap-6",children:[n.jsx(Zg,{to:"/contact",text:"Contact Us",className:"px-6 py-3 sm:px-8 sm:py-4 bg-white text-appblue rounded-full font-medium text-lg hover:shadow-lg hover:shadow-white/20 transition-all duration-300 hover:translate-y-[-2px]"}),n.jsx(Zg,{to:"/packages",text:"View Packages",showArrow:!0,className:"px-6 py-3 sm:px-8 sm:py-4 bg-white text-appblue border-2 border-white rounded-full font-medium text-lg hover:bg-white/90 transition-all duration-300"})]})]})}),n.jsx(Co,{title:"Ready to achieve similar results?",link:"/contact",type:"primary",scrollPercentage:r,threshold:25})]})};var B_=["points","className","baseLinePoints","connectNulls"];function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Mi.apply(this,arguments)}function U_(e,t){if(e==null)return{};var a=q_(e,t),s,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}function q_(e,t){if(e==null)return{};var a={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;a[s]=e[s]}return a}function ex(e){return G_(e)||$_(e)||H_(e)||V_()}function V_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
241In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H_(e,t){if(e){if(typeof e=="string")return Wh(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Wh(e,t)}}function $_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function G_(e){if(Array.isArray(e))return Wh(e)}function Wh(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,s=new Array(t);a<t;a++)s[a]=e[a];return s}var tx=function(t){return t&&t.x===+t.x&&t.y===+t.y},W_=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=[[]];return t.forEach(function(s){tx(s)?a[a.length-1].push(s):a[a.length-1].length>0&&a.push([])}),tx(t[0])&&a[a.length-1].push(t[0]),a[a.length-1].length<=0&&(a=a.slice(0,-1)),a},rl=function(t,a){var s=W_(t);a&&(s=[s.reduce(function(r,l){return[].concat(ex(r),ex(l))},[])]);var i=s.map(function(r){return r.reduce(function(l,o,c){return"".concat(l).concat(c===0?"M":"L").concat(o.x,",").concat(o.y)},"")}).join("");return s.length===1?"".concat(i,"Z"):i},F_=function(t,a,s){var i=rl(t,s);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(rl(a.reverse(),s).slice(1))},Y_=function(t){var a=t.points,s=t.className,i=t.baseLinePoints,r=t.connectNulls,l=U_(t,B_);if(!a||!a.length)return null;var o=Bn("recharts-polygon",s);if(i&&i.length){var c=l.stroke&&l.stroke!=="none",d=F_(a,i,r);return k.createElement("g",{className:o},k.createElement("path",Mi({},lt(l,!0),{fill:d.slice(-1)==="Z"?l.fill:"none",stroke:"none",d})),c?k.createElement("path",Mi({},lt(l,!0),{fill:"none",d:rl(a,r)})):null,c?k.createElement("path",Mi({},lt(l,!0),{fill:"none",d:rl(i,r)})):null)}var u=rl(a,r);return k.createElement("path",Mi({},lt(l,!0),{fill:u.slice(-1)==="Z"?l.fill:"none",className:o,d:u}))},K_=tv,Q_=b2,X_=av;function J_(e,t){return e&&e.length?K_(e,X_(t),Q_):void 0}var Z_=J_;const e4=gv(Z_);var t4=tv,a4=av,n4=w2;function s4(e,t){return e&&e.length?t4(e,a4(t),n4):void 0}var i4=s4;const r4=gv(i4);var l4=["cx","cy","angle","ticks","axisLine"],o4=["ticks","tick","angle","tickFormatter","stroke"];function sr(e){"@babel/helpers - typeof";return sr=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},sr(e)}function ll(){return ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},ll.apply(this,arguments)}function ax(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,s)}return a}function fs(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?ax(Object(a),!0).forEach(function(s){gd(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ax(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function nx(e,t){if(e==null)return{};var a=c4(e,t),s,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}function c4(e,t){if(e==null)return{};var a={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;a[s]=e[s]}return a}function d4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sx(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,Nw(s.key),s)}}function u4(e,t,a){return t&&sx(e.prototype,t),a&&sx(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function h4(e,t,a){return t=Mc(t),m4(e,jw()?Reflect.construct(t,a||[],Mc(e).constructor):t.apply(e,a))}function m4(e,t){if(t&&(sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f4(e)}function f4(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 Mc(e){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Mc(e)}function p4(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&&Fh(e,t)}function Fh(e,t){return Fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,i){return s.__proto__=i,s},Fh(e,t)}function gd(e,t,a){return t=Nw(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Nw(e){var t=g4(e,"string");return sr(t)=="symbol"?t:t+""}function g4(e,t){if(sr(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var s=a.call(e,t);if(sr(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xd=function(e){function t(){return d4(this,t),h4(this,t,arguments)}return p4(t,e),u4(t,[{key:"getTickValueCoord",value:function(s){var i=s.coordinate,r=this.props,l=r.angle,o=r.cx,c=r.cy;return ln(o,c,i,l)}},{key:"getTickTextAnchor",value:function(){var s=this.props.orientation,i;switch(s){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var s=this.props,i=s.cx,r=s.cy,l=s.angle,o=s.ticks,c=e4(o,function(u){return u.coordinate||0}),d=r4(o,function(u){return u.coordinate||0});return{cx:i,cy:r,startAngle:l,endAngle:l,innerRadius:d.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var s=this.props,i=s.cx,r=s.cy,l=s.angle,o=s.ticks,c=s.axisLine,d=nx(s,l4),u=o.reduce(function(w,v){return[Math.min(w[0],v.coordinate),Math.max(w[1],v.coordinate)]},[1/0,-1/0]),m=ln(i,r,u[0],l),f=ln(i,r,u[1],l),h=fs(fs(fs({},lt(d,!1)),{},{fill:"none"},lt(c,!1)),{},{x1:m.x,y1:m.y,x2:f.x,y2:f.y});return k.createElement("line",ll({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var s=this,i=this.props,r=i.ticks,l=i.tick,o=i.angle,c=i.tickFormatter,d=i.stroke,u=nx(i,o4),m=this.getTickTextAnchor(),f=lt(u,!1),h=lt(l,!1),w=r.map(function(v,j){var y=s.getTickValueCoord(v),x=fs(fs(fs(fs({textAnchor:m,transform:"rotate(".concat(90-o,", ").concat(y.x,", ").concat(y.y,")")},f),{},{stroke:"none",fill:d},h),{},{index:j},y),{},{payload:v});return k.createElement(Aa,ll({className:Bn("recharts-polar-radius-axis-tick",nv(l)),key:"tick-".concat(v.coordinate)},jm(s.props,v,j)),t.renderTickItem(l,x,c?c(v.value,j):v.value))});return k.createElement(Aa,{className:"recharts-polar-radius-axis-ticks"},w)}},{key:"render",value:function(){var s=this.props,i=s.ticks,r=s.axisLine,l=s.tick;return!i||!i.length?null:k.createElement(Aa,{className:Bn("recharts-polar-radius-axis",this.props.className)},r&&this.renderAxisLine(),l&&this.renderTicks(),at.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(s,i,r){var l;return k.isValidElement(s)?l=k.cloneElement(s,i):Ra(s)?l=s(i):l=k.createElement(wm,ll({},i,{className:"recharts-polar-radius-axis-tick-value"}),r),l}}])}(p.PureComponent);gd(xd,"displayName","PolarRadiusAxis");gd(xd,"axisType","radiusAxis");gd(xd,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function ir(e){"@babel/helpers - typeof";return ir=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},ir(e)}function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Ns.apply(this,arguments)}function ix(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,s)}return a}function ps(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?ix(Object(a),!0).forEach(function(s){vd(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ix(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function x4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rx(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,Aw(s.key),s)}}function v4(e,t,a){return t&&rx(e.prototype,t),a&&rx(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function y4(e,t,a){return t=Dc(t),b4(e,Sw()?Reflect.construct(t,a||[],Dc(e).constructor):t.apply(e,a))}function b4(e,t){if(t&&(ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w4(e)}function w4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sw=function(){return!!e})()}function Dc(e){return Dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Dc(e)}function j4(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&&Yh(e,t)}function Yh(e,t){return Yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,i){return s.__proto__=i,s},Yh(e,t)}function vd(e,t,a){return t=Aw(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Aw(e){var t=N4(e,"string");return ir(t)=="symbol"?t:t+""}function N4(e,t){if(ir(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var s=a.call(e,t);if(ir(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var S4=Math.PI/180,lx=1e-5,yd=function(e){function t(){return x4(this,t),y4(this,t,arguments)}return j4(t,e),v4(t,[{key:"getTickLineCoord",value:function(s){var i=this.props,r=i.cx,l=i.cy,o=i.radius,c=i.orientation,d=i.tickSize,u=d||8,m=ln(r,l,o,s.coordinate),f=ln(r,l,o+(c==="inner"?-1:1)*u,s.coordinate);return{x1:m.x,y1:m.y,x2:f.x,y2:f.y}}},{key:"getTickTextAnchor",value:function(s){var i=this.props.orientation,r=Math.cos(-s.coordinate*S4),l;return r>lx?l=i==="outer"?"start":"end":r<-lx?l=i==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var s=this.props,i=s.cx,r=s.cy,l=s.radius,o=s.axisLine,c=s.axisLineType,d=ps(ps({},lt(this.props,!1)),{},{fill:"none"},lt(o,!1));if(c==="circle")return k.createElement(j2,Ns({className:"recharts-polar-angle-axis-line"},d,{cx:i,cy:r,r:l}));var u=this.props.ticks,m=u.map(function(f){return ln(i,r,l,f.coordinate)});return k.createElement(Y_,Ns({className:"recharts-polar-angle-axis-line"},d,{points:m}))}},{key:"renderTicks",value:function(){var s=this,i=this.props,r=i.ticks,l=i.tick,o=i.tickLine,c=i.tickFormatter,d=i.stroke,u=lt(this.props,!1),m=lt(l,!1),f=ps(ps({},u),{},{fill:"none"},lt(o,!1)),h=r.map(function(w,v){var j=s.getTickLineCoord(w),y=s.getTickTextAnchor(w),x=ps(ps(ps({textAnchor:y},u),{},{stroke:"none",fill:d},m),{},{index:v,payload:w,x:j.x2,y:j.y2});return k.createElement(Aa,Ns({className:Bn("recharts-polar-angle-axis-tick",nv(l)),key:"tick-".concat(w.coordinate)},jm(s.props,w,v)),o&&k.createElement("line",Ns({className:"recharts-polar-angle-axis-tick-line"},f,j)),l&&t.renderTickItem(l,x,c?c(w.value,v):w.value))});return k.createElement(Aa,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var s=this.props,i=s.ticks,r=s.radius,l=s.axisLine;return r<=0||!i||!i.length?null:k.createElement(Aa,{className:Bn("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(s,i,r){var l;return k.isValidElement(s)?l=k.cloneElement(s,i):Ra(s)?l=s(i):l=k.createElement(wm,Ns({},i,{className:"recharts-polar-angle-axis-tick-value"}),r),l}}])}(p.PureComponent);vd(yd,"displayName","PolarAngleAxis");vd(yd,"axisType","angleAxis");vd(yd,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Zo;function rr(e){"@babel/helpers - typeof";return rr=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},rr(e)}function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Di.apply(this,arguments)}function ox(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,s)}return a}function Ce(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?ox(Object(a),!0).forEach(function(s){ca(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ox(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function A4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cx(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,Tw(s.key),s)}}function k4(e,t,a){return t&&cx(e.prototype,t),a&&cx(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function T4(e,t,a){return t=Lc(t),_4(e,kw()?Reflect.construct(t,a||[],Lc(e).constructor):t.apply(e,a))}function _4(e,t){if(t&&(rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E4(e)}function E4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kw=function(){return!!e})()}function Lc(e){return Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Lc(e)}function C4(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&&Kh(e,t)}function Kh(e,t){return Kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,i){return s.__proto__=i,s},Kh(e,t)}function ca(e,t,a){return t=Tw(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Tw(e){var t=O4(e,"string");return rr(t)=="symbol"?t:t+""}function O4(e,t){if(rr(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var s=a.call(e,t);if(rr(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lt=function(e){function t(a){var s;return A4(this,t),s=T4(this,t,[a]),ca(s,"pieRef",null),ca(s,"sectorRefs",[]),ca(s,"id",E2("recharts-pie-")),ca(s,"handleAnimationEnd",function(){var i=s.props.onAnimationEnd;s.setState({isAnimationFinished:!0}),Ra(i)&&i()}),ca(s,"handleAnimationStart",function(){var i=s.props.onAnimationStart;s.setState({isAnimationFinished:!1}),Ra(i)&&i()}),s.state={isAnimationFinished:!a.isAnimationActive,prevIsAnimationActive:a.isAnimationActive,prevAnimationId:a.animationId,sectorToFocus:0},s}return C4(t,e),k4(t,[{key:"isActiveIndex",value:function(s){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(s)!==-1:s===i}},{key:"hasActiveIndex",value:function(){var s=this.props.activeIndex;return Array.isArray(s)?s.length!==0:s||s===0}},{key:"renderLabels",value:function(s){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var r=this.props,l=r.label,o=r.labelLine,c=r.dataKey,d=r.valueKey,u=lt(this.props,!1),m=lt(l,!1),f=lt(o,!1),h=l&&l.offsetRadius||20,w=s.map(function(v,j){var y=(v.startAngle+v.endAngle)/2,x=ln(v.cx,v.cy,v.outerRadius+h,y),g=Ce(Ce(Ce(Ce({},u),v),{},{stroke:"none"},m),{},{index:j,textAnchor:t.getTextAnchor(x.x,v.cx)},x),b=Ce(Ce(Ce(Ce({},u),v),{},{fill:"none",stroke:v.fill},f),{},{index:j,points:[ln(v.cx,v.cy,v.outerRadius,y),x]}),N=c;return Li(c)&&Li(d)?N="value":Li(c)&&(N=d),k.createElement(Aa,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(j)},o&&t.renderLabelLineItem(o,b,"line"),t.renderLabelItem(l,g,xi(v,N)))});return k.createElement(Aa,{className:"recharts-pie-labels"},w)}},{key:"renderSectorsStatically",value:function(s){var i=this,r=this.props,l=r.activeShape,o=r.blendStroke,c=r.inactiveShape;return s.map(function(d,u){if((d==null?void 0:d.startAngle)===0&&(d==null?void 0:d.endAngle)===0&&s.length!==1)return null;var m=i.isActiveIndex(u),f=c&&i.hasActiveIndex()?c:null,h=m?l:f,w=Ce(Ce({},d),{},{stroke:o?d.fill:d.stroke,tabIndex:-1});return k.createElement(Aa,Di({ref:function(j){j&&!i.sectorRefs.includes(j)&&i.sectorRefs.push(j)},tabIndex:-1,className:"recharts-pie-sector"},jm(i.props,d,u),{key:"sector-".concat(d==null?void 0:d.startAngle,"-").concat(d==null?void 0:d.endAngle,"-").concat(d.midAngle,"-").concat(u)}),k.createElement(S2,Di({option:h,isActive:m,shapeType:"sector"},w)))})}},{key:"renderSectorsWithAnimation",value:function(){var s=this,i=this.props,r=i.sectors,l=i.isAnimationActive,o=i.animationBegin,c=i.animationDuration,d=i.animationEasing,u=i.animationId,m=this.state,f=m.prevSectors,h=m.prevIsAnimationActive;return k.createElement(A2,{begin:o,duration:c,isActive:l,easing:d,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(w){var v=w.t,j=[],y=r&&r[0],x=y.startAngle;return r.forEach(function(g,b){var N=f&&f[b],A=b>0?k2(g,"paddingAngle",0):0;if(N){var S=ip(N.endAngle-N.startAngle,g.endAngle-g.startAngle),_=Ce(Ce({},g),{},{startAngle:x+A,endAngle:x+S(v)+A});j.push(_),x=_.endAngle}else{var O=g.endAngle,R=g.startAngle,H=ip(0,O-R),X=H(v),me=Ce(Ce({},g),{},{startAngle:x+A,endAngle:x+X+A});j.push(me),x=me.endAngle}}),k.createElement(Aa,null,s.renderSectorsStatically(j))})}},{key:"attachKeyboardHandlers",value:function(s){var i=this;s.onkeydown=function(r){if(!r.altKey)switch(r.key){case"ArrowLeft":{var l=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"ArrowRight":{var o=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var s=this.props,i=s.sectors,r=s.isAnimationActive,l=this.state.prevSectors;return r&&i&&i.length&&(!l||!T2(l,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var s=this,i=this.props,r=i.hide,l=i.sectors,o=i.className,c=i.label,d=i.cx,u=i.cy,m=i.innerRadius,f=i.outerRadius,h=i.isAnimationActive,w=this.state.isAnimationFinished;if(r||!l||!l.length||!Rt(d)||!Rt(u)||!Rt(m)||!Rt(f))return null;var v=Bn("recharts-pie",o);return k.createElement(Aa,{tabIndex:this.props.rootTabIndex,className:v,ref:function(y){s.pieRef=y}},this.renderSectors(),c&&this.renderLabels(l),at.renderCallByParent(this.props,null,!1),(!h||w)&&_2.renderCallByParent(this.props,l,!1))}}],[{key:"getDerivedStateFromProps",value:function(s,i){return i.prevIsAnimationActive!==s.isAnimationActive?{prevIsAnimationActive:s.isAnimationActive,prevAnimationId:s.animationId,curSectors:s.sectors,prevSectors:[],isAnimationFinished:!0}:s.isAnimationActive&&s.animationId!==i.prevAnimationId?{prevAnimationId:s.animationId,curSectors:s.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:s.sectors!==i.curSectors?{curSectors:s.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(s,i){return s>i?"start":s<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(s,i,r){if(k.isValidElement(s))return k.cloneElement(s,i);if(Ra(s))return s(i);var l=Bn("recharts-pie-label-line",typeof s!="boolean"?s.className:"");return k.createElement(N2,Di({},i,{key:r,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(s,i,r){if(k.isValidElement(s))return k.cloneElement(s,i);var l=r;if(Ra(s)&&(l=s(i),k.isValidElement(l)))return l;var o=Bn("recharts-pie-label-text",typeof s!="boolean"&&!Ra(s)?s.className:"");return k.createElement(wm,Di({},i,{alignmentBaseline:"middle",className:o}),l)}}])}(p.PureComponent);Zo=Lt;ca(Lt,"displayName","Pie");ca(Lt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!C2.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ca(Lt,"parseDeltaAngle",function(e,t){var a=Oo(t-e),s=Math.min(Math.abs(t-e),360);return a*s});ca(Lt,"getRealPieData",function(e){var t=e.data,a=e.children,s=lt(e,!1),i=O2(a,Ds);return t&&t.length?t.map(function(r,l){return Ce(Ce(Ce({payload:r},s),r),i&&i[l]&&i[l].props)}):i&&i.length?i.map(function(r){return Ce(Ce({},s),r.props)}):[]});ca(Lt,"parseCoordinateOfPie",function(e,t){var a=t.top,s=t.left,i=t.width,r=t.height,l=R2(i,r),o=s+Ql(e.cx,i,i/2),c=a+Ql(e.cy,r,r/2),d=Ql(e.innerRadius,l,0),u=Ql(e.outerRadius,l,l*.8),m=e.maxRadius||Math.sqrt(i*i+r*r)/2;return{cx:o,cy:c,innerRadius:d,outerRadius:u,maxRadius:m}});ca(Lt,"getComposedData",function(e){var t=e.item,a=e.offset,s=t.type.defaultProps!==void 0?Ce(Ce({},t.type.defaultProps),t.props):t.props,i=Zo.getRealPieData(s);if(!i||!i.length)return null;var r=s.cornerRadius,l=s.startAngle,o=s.endAngle,c=s.paddingAngle,d=s.dataKey,u=s.nameKey,m=s.valueKey,f=s.tooltipType,h=Math.abs(s.minAngle),w=Zo.parseCoordinateOfPie(s,a),v=Zo.parseDeltaAngle(l,o),j=Math.abs(v),y=d;Li(d)&&Li(m)?(ec(!1,`Use "dataKey" to specify the value of pie,
242      the props "valueKey" will be deprecated in 1.1.0`),y="value"):Li(d)&&(ec(!1,`Use "dataKey" to specify the value of pie,
243      the props "valueKey" will be deprecated in 1.1.0`),y=m);var x=i.filter(function(_){return xi(_,y,0)!==0}).length,g=(j>=360?x:x-1)*c,b=j-x*h-g,N=i.reduce(function(_,O){var R=xi(O,y,0);return _+(Rt(R)?R:0)},0),A;if(N>0){var S;A=i.map(function(_,O){var R=xi(_,y,0),H=xi(_,u,O),X=(Rt(R)?R:0)/N,me;O?me=S.endAngle+Oo(v)*c*(R!==0?1:0):me=l;var U=me+Oo(v)*((R!==0?h:0)+X*b),ce=(me+U)/2,C=(w.innerRadius+w.outerRadius)/2,D=[{name:H,value:R,payload:_,dataKey:y,type:f}],z=ln(w.cx,w.cy,C,ce);return S=Ce(Ce(Ce({percent:X,cornerRadius:r,name:H,tooltipPayload:D,midAngle:ce,middleRadius:C,tooltipPosition:z},_),w),{},{value:xi(_,y),startAngle:me,endAngle:U,payload:_,paddingAngle:Oo(v)*c}),S})}return Ce(Ce({},w),{},{sectors:A,data:i})});var R4=["x1","y1","x2","y2","key"],I4=["offset"];function Vs(e){"@babel/helpers - typeof";return Vs=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},Vs(e)}function dx(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,s)}return a}function xt(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?dx(Object(a),!0).forEach(function(s){M4(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):dx(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function M4(e,t,a){return t=D4(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function D4(e){var t=L4(e,"string");return Vs(t)=="symbol"?t:t+""}function L4(e,t){if(Vs(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var s=a.call(e,t);if(Vs(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},_s.apply(this,arguments)}function ux(e,t){if(e==null)return{};var a=P4(e,t),s,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}function P4(e,t){if(e==null)return{};var a={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;a[s]=e[s]}return a}var z4=function(t){var a=t.fill;if(!a||a==="none")return null;var s=t.fillOpacity,i=t.x,r=t.y,l=t.width,o=t.height,c=t.ry;return k.createElement("rect",{x:i,y:r,ry:c,width:l,height:o,stroke:"none",fill:a,fillOpacity:s,className:"recharts-cartesian-grid-bg"})};function _w(e,t){var a;if(k.isValidElement(e))a=k.cloneElement(e,t);else if(Ra(e))a=e(t);else{var s=t.x1,i=t.y1,r=t.x2,l=t.y2,o=t.key,c=ux(t,R4),d=lt(c,!1);d.offset;var u=ux(d,I4);a=k.createElement("line",_s({},u,{x1:s,y1:i,x2:r,y2:l,fill:"none",key:o}))}return a}function B4(e){var t=e.x,a=e.width,s=e.horizontal,i=s===void 0?!0:s,r=e.horizontalPoints;if(!i||!r||!r.length)return null;var l=r.map(function(o,c){var d=xt(xt({},e),{},{x1:t,y1:o,x2:t+a,y2:o,key:"line-".concat(c),index:c});return _w(i,d)});return k.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function U4(e){var t=e.y,a=e.height,s=e.vertical,i=s===void 0?!0:s,r=e.verticalPoints;if(!i||!r||!r.length)return null;var l=r.map(function(o,c){var d=xt(xt({},e),{},{x1:o,y1:t,x2:o,y2:t+a,key:"line-".concat(c),index:c});return _w(i,d)});return k.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function q4(e){var t=e.horizontalFill,a=e.fillOpacity,s=e.x,i=e.y,r=e.width,l=e.height,o=e.horizontalPoints,c=e.horizontal,d=c===void 0?!0:c;if(!d||!t||!t.length)return null;var u=o.map(function(f){return Math.round(f+i-i)}).sort(function(f,h){return f-h});i!==u[0]&&u.unshift(0);var m=u.map(function(f,h){var w=!u[h+1],v=w?i+l-f:u[h+1]-f;if(v<=0)return null;var j=h%t.length;return k.createElement("rect",{key:"react-".concat(h),y:f,x:s,height:v,width:r,stroke:"none",fill:t[j],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function V4(e){var t=e.vertical,a=t===void 0?!0:t,s=e.verticalFill,i=e.fillOpacity,r=e.x,l=e.y,o=e.width,c=e.height,d=e.verticalPoints;if(!a||!s||!s.length)return null;var u=d.map(function(f){return Math.round(f+r-r)}).sort(function(f,h){return f-h});r!==u[0]&&u.unshift(0);var m=u.map(function(f,h){var w=!u[h+1],v=w?r+o-f:u[h+1]-f;if(v<=0)return null;var j=h%s.length;return k.createElement("rect",{key:"react-".concat(h),x:f,y:l,width:v,height:c,stroke:"none",fill:s[j],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var H4=function(t,a){var s=t.xAxis,i=t.width,r=t.height,l=t.offset;return sv(iv(xt(xt(xt({},lv.defaultProps),s),{}
243,{ticks:rv(s,!0),viewBox:{x:0,y:0,width:i,height:r}})),l.left,l.left+l.width,a)},$4=function(t,a){var s=t.yAxis,i=t.width,r=t.height,l=t.offset;return sv(iv(xt(xt(xt({},lv.defaultProps),s),{},{ticks:rv(s,!0),viewBox:{x:0,y:0,width:i,height:r}})),l.top,l.top+l.height,a)},ui={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function ze(e){var t,a,s,i,r,l,o=I2(),c=M2(),d=D2(),u=xt(xt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ui.stroke,fill:(a=e.fill)!==null&&a!==void 0?a:ui.fill,horizontal:(s=e.horizontal)!==null&&s!==void 0?s:ui.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:ui.horizontalFill,vertical:(r=e.vertical)!==null&&r!==void 0?r:ui.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:ui.verticalFill,x:Rt(e.x)?e.x:d.left,y:Rt(e.y)?e.y:d.top,width:Rt(e.width)?e.width:d.width,height:Rt(e.height)?e.height:d.height}),m=u.x,f=u.y,h=u.width,w=u.height,v=u.syncWithTicks,j=u.horizontalValues,y=u.verticalValues,x=L2(),g=P2();if(!Rt(h)||h<=0||!Rt(w)||w<=0||!Rt(m)||m!==+m||!Rt(f)||f!==+f)return null;var b=u.verticalCoordinatesGenerator||H4,N=u.horizontalCoordinatesGenerator||$4,A=u.horizontalPoints,S=u.verticalPoints;if((!A||!A.length)&&Ra(N)){var _=j&&j.length,O=N({yAxis:g?xt(xt({},g),{},{ticks:_?j:g.ticks}):void 0,width:o,height:c,offset:d},_?!0:v);ec(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Vs(O),"]")),Array.isArray(O)&&(A=O)}if((!S||!S.length)&&Ra(b)){var R=y&&y.length,H=b({xAxis:x?xt(xt({},x),{},{ticks:R?y:x.ticks}):void 0,width:o,height:c,offset:d},R?!0:v);ec(Array.isArray(H),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Vs(H),"]")),Array.isArray(H)&&(S=H)}return k.createElement("g",{className:"recharts-cartesian-grid"},k.createElement(z4,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),k.createElement(B4,_s({},u,{offset:d,horizontalPoints:A,xAxis:x,yAxis:g})),k.createElement(U4,_s({},u,{offset:d,verticalPoints:S,xAxis:x,yAxis:g})),k.createElement(q4,_s({},u,{horizontalPoints:A})),k.createElement(V4,_s({},u,{verticalPoints:S})))}ze.displayName="CartesianGrid";var gn=ov({chartName:"BarChart",GraphicalChild:yt,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Le},{axisType:"yAxis",AxisComp:Pe}],formatAxisMap:z2}),lr=ov({chartName:"PieChart",GraphicalChild:Lt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:yd},{axisType:"radiusAxis",AxisComp:xd}],formatAxisMap:B2,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const q=p.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:P("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));q.displayName="Card";const G=p.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:P("flex flex-col space-y-1.5 p-6",e),...t}));G.displayName="CardHeader";const W=p.forwardRef(({className:e,...t},a)=>n.jsx("h3",{ref:a,className:P("text-2xl font-semibold leading-none tracking-tight",e),...t}));W.displayName="CardTitle";const $e=p.forwardRef(({className:e,...t},a)=>n.jsx("p",{ref:a,className:P("text-sm text-muted-foreground",e),...t}));$e.displayName="CardDescription";const V=p.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:P("p-6 pt-0",e),...t}));V.displayName="CardContent";const G4=p.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:P("flex items-center p-6 pt-0",e),...t}));G4.displayName="CardFooter";const Ru=768;function Zs(){const[e,t]=p.useState(void 0);return p.useEffect(()=>{const a=window.matchMedia(`(max-width: ${Ru-1}px)`),s=()=>{t(window.innerWidth<Ru)};return a.addEventListener("change",s),t(window.innerWidth<Ru),()=>a.removeEventListener("change",s)},[]),!!e}const W4={light:"",dark:".dark"},Ew=p.createContext(null);function Cw(){const e=p.useContext(Ew);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Be=p.forwardRef(({id:e,className:t,children:a,config:s,...i},r)=>{const l=p.useId(),o=`chart-${e||l.replace(/:/g,"")}`;return Zs(),n.jsx(Ew.Provider,{value:{config:s},children:n.jsxs("div",{"data-chart":o,ref:r,className:P("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:[n.jsx(F4,{id:o,config:s}),n.jsx(Ts,{children:a})]})})});Be.displayName="Chart";const F4=({id:e,config:t})=>{const a=Object.entries(t).filter(([s,i])=>i.theme||i.color);return a.length?n.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(W4).map(([s,i])=>`
244${i} [data-chart=${e}] {
245${a.map(([r,l])=>{var c;const o=((c=l.theme)==null?void 0:c[s])||l.color;return o?`  --color-${r}: ${o};`:null}).join(`
246`)}
247}
248`).join(`
249`)}}):null},bt=At,pt=p.forwardRef(({active:e,payload:t,className:a,indicator:s="dot",hideLabel:i=!1,hideIndicator:r=!1,label:l,labelFormatter:o,labelClassName:c,formatter:d,color:u,nameKey:m,labelKey:f},h)=>{const{config:w}=Cw(),v=Zs(),j=p.useMemo(()=>{var S;if(i||!(t!=null&&t.length))return null;const[g]=t,b=`${f||g.dataKey||g.name||"value"}`,N=Qh(w,g,b),A=!f&&typeof l=="string"?((S=w[l])==null?void 0:S.label)||l:N==null?void 0:N.label;return o?n.jsx("div",{className:P("font-medium",c),children:o(A,t)}):A?n.jsx("div",{className:P("font-medium",c),children:A}):null},[l,o,t,i,c,w,f]);if(!e||!(t!=null&&t.length))return null;const y=t.length===1&&s!=="dot",x=v?"mobile-chart-tooltip":"";return n.jsxs("div",{ref:h,className:P("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",x,a),style:{maxWidth:v?"180px":void 0,fontSize:v?"10px":void 0},children:[y?null:j,n.jsx("div",{className:"grid gap-1.5",children:t.map((g,b)=>
249{const N=`${m||g.name||g.dataKey||"value"}`,A=Qh(w,g,N),S=u||g.payload.fill||g.color;return n.jsx("div",{className:P("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",s==="dot"&&"items-center"),children:d&&(g==null?void 0:g.value)!==void 0&&g.name?d(g.value,g.name,g,b,g.payload):n.jsxs(n.Fragment,{children:[A!=null&&A.icon?n.jsx(A.icon,{}):!r&&n.jsx("div",{className:P("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":s==="dot","w-1":s==="line","w-0 border-[1.5px] border-dashed bg-transparent":s==="dashed","my-0.5":y&&s==="dashed"}),style:{"--color-bg":S,"--color-border":S}}),n.jsxs("div",{className:P("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[n.jsxs("div",{className:"grid gap-1.5",children:[y?j:null,n.jsx("span",{className:"text-muted-foreground",children:(A==null?void 0:A.label)||g.name})]}),g.value&&n.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:typeof g.value=="number"?g.value.toLocaleString():g.value})]})]})},g.dataKey)})})]})});pt.displayName="ChartTooltip";const Y4=p.forwardRef(({className:e,hideIcon:t=!1,payload:a,verticalAlign:s="bottom",nameKey:i},r)=>{const{config:l}=Cw(),o=Zs();return!(a!=null&&a.length)||o?null:n.jsx("div",{ref:r,className:P("flex items-center justify-center gap-4 flex-wrap",s==="top"?"pb-3":"pt-3",e),children:a.map(c=>{const d=`${i||c.dataKey||"value"}`,u=Qh(l,c,d);return n.jsxs("div",{className:"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground",children:[u!=null&&u.icon&&!t?n.jsx(u.icon,{}):n.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:c.color}}),u==null?void 0:u.label]},c.value)})})});Y4.displayName="ChartLegend";function Qh(e,t,a){if(typeof t!="object"||t===null)return;const s="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=a;return a in t&&typeof t[a]=="string"?i=t[a]:s&&a in s&&typeof s[a]=="string"&&(i=s[a]),i in e?e[i]:e[a]}const K4=U2,Q4=q2,X4=V2,Pf=({items:e,className:t,initialExpanded:a=!1,labelText:s={show:"View Chart Details",hide:"Hide Chart Details"},columns:i=2})=>{const[r,l]=p.useState(a);return Zs()?n.jsx("div",{className:`pie-chart-legend-accordion ${t||""}`,children:n.jsxs(K4,{open:r,onOpenChange:l,className:"w-full mt-4",children:[n.jsx(Q4,{asChild:!0,children:n.jsx("button",{className:"pie-chart-legend-toggle flex items-center justify-center w-full",children:r?n.jsxs(n.Fragment,{children:[s.hide," ",n.jsx(Oc,{size:14,className:"ml-1"})]}):n.jsxs(n.Fragment,{children:[s.show," ",n.jsx(ul,{size:14,className:"ml-1"})]})})}),n.jsx(X4,{children:n.jsx("div",{className:`pie-chart-legend-content mt-3 grid ${i===1?"grid-cols-1":"grid-cols-2"} gap-2`,children:e.map((c,d)=>n.jsxs("div",{className:"pie-chart-legend-item flex items-center text-left bg-white/80 p-2 rounded shadow-sm",children:[n.jsx("span",{className:"pie-chart-legend-color w-3 h-3 mr-2 rounded-sm flex-shrink-0",style:{backgroundColor:c.color}}),n.jsx("span",{className:"pie-chart-legend-name text-xs mr-2",children:c.name}),c.value&&n.jsx("span",{className:"ml-auto pie-chart-legend-value text-xs font-medium",children:c.value})]},`legend-item-${d}`))})})]})}):null},J4=()=>{const e=Zs();p.useEffect(()=>{const d={"@context":"https://schema.org","@type":"Article",headline:"AI-Driven Revenue Growth in Retail",description:"How an organic supermarket chain increased revenue by 15% in 6 months using AI-driven demand forecasting, dynamic pricing, and personalised customer engagement.",author:{"@type":"Person",name:"Avishay (AJ) Segal, MBA",url:"https://appenue-ai.com/about"},datePublished:"2024-01-15",dateModified:"2025-12-14",publisher:{"@id":"https://appenue-ai.com/#organization"},mainEntityOfPage:{"@type":"WebPage","@id":"https://appenue-ai.com/case-studies/retail-growth"},about:[{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q11660",name:"Artificial Intelligence"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q6717761",name:"Digital Transformation"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q11451",name:"Retail"}],image:"https://appenue-ai.com/web-app-manifest-512x512.png",keywords:"AI implementation for retail, demand forecasting AI, dynamic pricing, retail automation, best AI implementation companies for retail"},u={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How can AI improve demand forecasting in retail?",acceptedA
249nswer:{"@type":"Answer",text:"AI analyses historical sales data, seasonal patterns, and external factors to predict demand with high accuracy. This reduces overstocking of perishables by up to 70% and ensures optimal inventory levels across all store locations."}},{"@type":"Question",name:"What ROI can retailers expect from AI implementation?",acceptedAnswer:{"@type":"Answer",text:"Retailers typically see 15% or higher revenue growth within 6 months of AI implementation, driven by reduced waste, optimised pricing, and improved customer retention through personalised engagement."}},{"@type":"Question",name:"How does dynamic pricing work with AI in retail?",acceptedAnswer:{"@type":"Answer",text:"AI-driven dynamic pricing automatically adjusts discounts based on real-time factors like inventory levels, product freshness, and customer purchase patterns - maximising revenue while minimising waste."}},{"@type":"Question",name:"Which companies specialise in AI for retail operations?",acceptedAnswer:{"@type":"Answer",text:"Leading AI implementation companies for retail focus on demand forecasting, dynamic pricing, and personalised customer engagement. The best providers deliver measurable ROI within 6 months through tailored solutions."}}]},m=document.createElement("script");m.setAttribute("type","application/ld+json"),m.setAttribute("data-article-schema","retail-growth"),m.textContent=JSON.stringify(d),document.head.appendChild(m);const f=document.createElement("script");return f.setAttribute("type","application/ld+json"),f.setAttribute("data-faq-schema","retail-growth"),f.textContent=JSON.stringify(u),document.head.appendChild(f),()=>{const h=document.querySelector('script[data-article-schema="retail-growth"]');h&&h.remove();const w=document.querySelector('script[data-faq-schema="retail-growth"]');w&&w.remove()}},[]);const t=[{shortQuestion:"How can AI improve demand forecasting?",question:"How can AI improve demand forecasting in retail?",answer:"AI analyses historical sales data, seasonal patterns, and external factors to predict demand with high accuracy. This reduces overstocking of perishables by up to 70% and ensures optimal inventory levels across all store locations."},{shortQuestion:"What ROI can retailers expect?",question:"What ROI can retailers expect from AI implementation?",answer:"Retailers typically see 15% or higher revenue growth within 6 months of AI implementation, driven by reduced waste, optimised pricing, and improved customer retention through personalised engagement."},{shortQuestion:"How does AI dynamic pricing work?",question:"How does dynamic pricing work with AI in retail?",answer:"AI-driven dynamic pricing automatically adjusts discounts based on real-time factors like inventory levels, product freshness, and customer purchase patterns - maximising revenue while minimising waste."},{shortQuestion:"What results can retailers expect?",question:"What results can retailers expect after implementing AI?",answer:"Retailers can expect 15% or higher revenue growth, 40% improvement in basket sizes, 70% reduction in inventory waste, and stronger customer retention through personalised engagement."}],a=[{month:"Jan",preAI:100,postAI:100},{month:"Feb",preAI:105,postAI:108},{month:"Mar",preAI:103,postAI:115},{month:"Apr",preAI:107,postAI:125},{month:"May",preAI:105,postAI:132},{month:"Jun",preAI:104,postAI:145}],s=[{month:"Jan",value:100},{month:"Feb",value:102},{month:"Mar",value:104},{month:"Apr",value:105},{month:"May",value:107},{month:"Jun",value:108}],i=[{name:"Before AI",value:30},{name:"After AI",value:70}],r=["#dc4f8f","#3174de"],l=i.map((d,u)=>({name:d.name,color:r[u%r.length],value:`${d.value}%`})),o=[{month:"Jan",retention:65},{month:"Feb",retention:68},{month:"Mar",retention:75},{month:"Apr",retention:78},{month:"May",retention:82},{month:"Jun",retention:85}],c=e?70:90;return n.jsxs(Js,{title:"AI-Driven Revenue Growth in Retail",headline:"Boosting Sales and Customer Retention with AI",subheading:"How an Organic Supermarket Chain Increased Revenue by 15% in Six Months",pdfFileName:"Appenue-RetailGrowthCaseStudy",children:[n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"section",children:[n.jsxs("div",{className:"grid md:grid-cols-2 gap-12 mb-16",children:[n.jsxs(T.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:[n.jsx(I,{title:"The Challenge",alignment:"left"}),n.jsx("p",{className:"text-gray-600 mb-6",children:"A leading organic supermarket chain with 12 locations was struggling with inventory inefficiencies, ineffective discounting, and customer retention challenges. Their existing systems led to:"}),n.jsxs("ul",{className:"space-y-4",children:[n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Poor inventory forecasting"}
vendor: 5,339 bytes, line 249
249)," resulting in overstocking of perishable goods"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"High inventory depreciation"})," due to wastage of fresh produce"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Untargeted promotional campaigns"})," that failed to drive repeat purchases"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Declining customer retention"})," in a highly competitive market"]})]})]})]}),n.jsx(T.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:n.jsxs("div",{className:"rounded-xl overflow-hidden h-full bg-gray-50 p-8 flex flex-col justify-center",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Challenges:"}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-red-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-red-500 text-2xl",children:"-30%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Inventory Depreciation"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Monthly food waste from overstocking"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-orange-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-orange-500 text-2xl",children:"5%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Customer Attrition"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Monthly loss of regular customers"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-yellow-500 text-2xl",children:"42%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Promotion Inefficiency"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Percentage of ineffective promotions"})]})]})]})]})})]}),n.jsxs("div",{className:"mb-16",children:[n.jsx(I,{title:"Our Solution",alignment:"center"}),n.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-appblue",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"AI-Driven Demand Forecasting"}),n.jsx("p",{className:"text-gray-600",children:"We implemented advanced machine learning algorithms to analyse historical sales data, seasonal patterns, and external factors to optimise stock levels across all store locations."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-pink-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-apppink",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Dynamic Pricing Models"}),n.jsx("p",{className:"text-gray-600",children:"Our AI system automatically adjusted discounts based on real-time factors like inventory levels, product freshness, and customer purchase patterns to optimise pricing."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-purple-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20h2a2 2 0 002 2v2a2 2 0 002-2m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 
2490 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Personalised Engagement"}),n.jsx("p",{className:"text-gray-600",children:"We created personalised customer experiences through AI-powered recommendation engines and targeted marketing campaigns based on individual purchasing behaviour."})]})]})]}),n.jsxs("div",{children:[n.jsx(I,{title:"Results & Impact",alignment:"center"}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12",children:[n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Revenue Growth (6 Months)"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{preAI:{label:"Pre-AI Implementation",color:"#dc4f8f"},postAI:{label:"Post-AI Implementation",color:"#3174de"}},children:n.jsxs(gn,{data:a,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{children:n.jsx(at,{value:"Revenue Index (Base 100)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(mt,{}),n.jsx(yt,{dataKey:"preAI",name:"Pre-AI",fill:"#dc4f8f"}),n.jsx(yt,{dataKey:"postAI",name:"Post-AI",fill:"#3174de"})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Average Basket Size Growth"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{value:{label:"Basket Size Index",color:"#3174de"}},children:n.jsxs(Ws,{data:s,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{domain:[95,110],children:n.jsx(at,{value:"Basket Size Index (Base 100)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(Qn,{type:"monotone",dataKey:"value",name:"Basket Size",stroke:"#3174de",strokeWidth:3,dot:{r:6},activeDot:{r:8}})]})})})]}),n.jsxs(q,{className:"pie-chart-card",children:[n.jsx(G,{children:n.jsx(W,{children:"Inventory Depreciation Reduction"})}),n.jsxs(V,{className:"h-[350px]",children:[n.jsx(Be,{config:{item1:{label:"Before AI",color:"#dc4f8f"},item2:{label:"After AI",color:"#3174de"}},children:n.jsxs(lr,{children:[n.jsx(Lt,{data:i,cx:"50%",cy:"50%",labelLine:!1,label:({name:d,percent:u})=>`${d}: ${(u*100).toFixed(0)}%`,outerRadius:c,fill:"#8884d8",dataKey:"value",children:i.map((d,u)=>n.jsx(Ds,{fill:r[u%r.length]},`cell-${u}`))}),n.jsx(bt,{content:n.jsx(pt,{})}),!e&&n.jsx(mt,{verticalAlign:"bottom",height:36})]})}),e&&n.jsx(Pf,{items:l})]})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Customer Retention Improvement"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{retention:{label:"Customer Retention %",color:"#3174de"}},children:n.jsxs(Xn,{data:o,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{domain:[60,90],children:n.jsx(at,{value:"Retention Rate (%)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(Ma,{type:"monotone",dataKey:"retention",name:"Retention Rate",stroke:"#3174de",fill:"#3174de",fillOpacity:.3})]})})})]})]}),n.jsxs("div",{className:"bg-gray-50 p-8 rounded-xl",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Outcomes"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"15%"}),n.jsx("p",{className:"text-gray-600",children:"Revenue increase across all store locations within six months"})]}),n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"8%"}),n.jsx("p",{className:"text-gray-600",children:"Boost in average basket size through personalised recommendations"})]}),n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"30%"}),n.jsx("p",{className:"text-gray-600",children:"Reduction in inventory depreciation through AI-optimised stock levels"})]}),n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"20%"}),n.jsx("p",{className:"text-gray-600",children:"Improvement in customer retention through targeted engagement"})]})]})]})]})]})}),n.jsx("section",{className:"py-16 bg-gray-50",children:n.jsxs("div",{className:"section",children:[n.jsx(I,{title:"Implementation Process",alignment:"center"}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{className:"absolute left-1/2 transform -translate-x-1/2 h-full w-1 bg-gray-200"}),n.jsxs("div",{className:"relative z-10",children:[n.jsxs("div",{className:"flex flex-col md:flex-row items-center mb-12",children:[n.jsxs(T.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pr-12 mb-6 md:mb-0 md:text-right",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"Initial Assessment & Data Integration"}),n.jsx("p",{className:"text-gray-600",children:"Comprehensive analysis of existing systems and customer data integration across all touchpoints."})]}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"1"}),n.jsx("div",{className:"md:w-1/2 md:pl-12 invisible md:visible"})]}),n.jsxs("div",{className:"flex flex-col md:flex-row items-center mb-12",children:[n.jsx("div",{className:"md:w-1/2 md:pr-12 invisible md:visible"}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"2"}),n.jsxs(T.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pl-12 mb-6 md:mb-0",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"AI Model Development & Training"}),n.jsx("p",{className:"text-gray-600",children:"Creation of custom AI models for demand forecasting, pricing optimisation and customer segmentation."})]})]}),n.jsxs("div",{className:"flex flex-col md:flex-row items-center mb-12",children:[n.jsxs(T.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pr-12 mb-6 md:mb-0 md:text-right",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"Phased Implementation"}),n.jsx("p",{className:"text-gray-600",children:"Gradual rollout across store locations with continuous monitoring and adjustment of model parameters."})]}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"3"}),n.jsx("div",{className:"md:w-1/2 md:pl-12 invisible md:visible"})]}),n.jsxs("div",{className:"flex flex-col md:flex-row items-center",children:[n.jsx("div",{className:"md:w-1/2 md:pr-12 invisible md:visible"}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"4"}),n.jsxs(T.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pl-12",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"Ongoing Optimisation & Support"}),n.jsx("p",{className:"text-gray-600",children:"Continuous refinement of AI models based on performance data and changing market conditions."})]})]})]})]})]})}),n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"section",children:[n.jsx(I,{title:"Frequently Asked Questions",subtitle:"Common questions about AI implementation for retail operations",alignment:"center"}),n.jsx("div",{className:"max-w-3xl mx-auto",children:n.jsx(qa,{type:"single",collapsible:!0,className:"w-full",children:t.map((d,u)=>n.jsxs(Vt,{value:`item-${u}`,children:[n.jsx(Ht,{className:"text-left text-lg font-medium !text-gray-900 hover:!text-appblue",children:d.shortQuestion}),n.jsxs($t,{className:"text-gray-600",children:[n.jsx("p",{className:"font-medium text-foreground mb-2",children:d.question}),n.jsx("p",{children:d.answer})]})]},u))})})]})})]})},Ow=({isOpen:e,onClose:t,videoSrc:a,title:s,description:i,thumbnailSrc:r})=>{const[l,o]=p.useState(!1),c=p.useRef(null),d=()=>{console.log("Video error occurred for:",a),o(!0),Ae({title:"Video Error",description:"The video could not be loaded. Please try again later.",variant:"destructive"})};return p.useEffect(()=>{if(e){o(!1);const u=new URL(a,window.location.origin).href;console.log("Attempting to load video from:",u),c.current&&c.current.load()}},[e,a]),n.jsxs(uw,{open:e,onOpenChange:u=>!u&&t(),children:[n.jsx(Rf,{className:"bg-black/70"}),n.jsx(If,{className:"sm:max-w-4xl p-0 bg-transparent border-none shadow-none",children:n.jsxs("div",{className:"relative bg-black rounded-xl overflow-hidden",children:[n.jsx("div",{className:"absolute right-4 top-4 z-10",children:n.jsx("button",{onClick:t,className:"flex items-center justify-center w-8 h-8 rounded-full bg-white/20 text-white hover:bg-white/30 transition-colors","aria-label":"Close video",children:n.jsx(dr,{className:"h-5 w-5"})})}),n.jsx("div",{className:"aspect-video",children:l?n.jsx("div",{className:"w-full h-full bg-gray-800 flex items-center justify-center text-white",children:n.jsx("p",{children:"Video currently unavailable"})}):n.jsxs("video",{ref:c,src:a,controls:!0,autoPlay:!0,className:"w-full h-full object-contain",title:s,"aria-label":s,poster:r||"/placeholder.svg",onError:d,preload:"auto",playsInl
249ine:!0,children:[n.jsx("source",{src:a,type:"video/mp4"}),"Your browser does not support the video tag."]})}),i&&!l&&n.jsx("div",{className:"p-4 bg-black text-white",children:n.jsx("p",{className:"text-sm",children:i})})]})})]})},Z4=({whitePapers:e})=>{const t=a=>new Date(a).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});return n.jsx("section",{className:"py-16 bg-gray-50",children:n.jsxs("div",{className:"section",children:[n.jsx(I,{title:"Related White Papers",alignment:"center"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((a,s)=>n.jsxs(q,{className:"h-full flex flex-col",children:[n.jsxs(G,{children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-500 mb-2",children:[n.jsx(cv,{className:"h-4 w-4"}),t(a.date)]}),n.jsx(W,{className:"text-lg leading-tight",children:a.title})]}),n.jsxs(V,{className:"flex-1 flex flex-col",children:[n.jsx("p",{className:"text-gray-600 mb-4 flex-1",children:a.summary}),n.jsxs(B,{variant:"outline",className:"w-full",onClick:()=>window.open(a.url,"_blank"),children:[n.jsx(Jn,{className:"mr-2 h-4 w-4"}),"Download PDF",n.jsx(dv,{className:"ml-2 h-4 w-4"})]})]})]},s))})]})})},eE=()=>{const[e,t]=p.useState(!1),[a,s]=p.useState(!1);p.useEffect(()=>{const f={"@context":"https://schema.org","@type":"Article",headline:"Transforming Creative Workflows with AI",description:"How a creative agency increased productivity by 25% using AI-powered quality control, automated feedback systems, and intelligent workflow orchestration.",author:{"@type":"Person",name:"Avishay (AJ) Segal, MBA",url:"https://appenue-ai.com/about"},datePublished:"2024-03-10",dateModified:"2025-12-14",publisher:{"@id":"https://appenue-ai.com/#organization"},mainEntityOfPage:{"@type":"WebPage","@id":"https://appenue-ai.com/case-studies/creative-transformation"},about:[{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q11660",name:"Artificial Intelligence"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q6717761",name:"Digital Transformation"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q2018526",name:"Creative Process"}],image:"https://appenue-ai.com/AI Replicants - Thumbnail.png",video:{"@type":"VideoObject",name:"AI Replicants",description:"A detailed exploration of AI Replicants and their application in creative workflows",thumbnailUrl:"https://appenue-ai.com/AI Replicants - Thumbnail.png",uploadDate:"2023-05-15T08:00:00+08:00"},keywords:"AI for creative agencies, workflow automation, creative AI tools, agency productivity"},h={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How can AI improve creative agency productivity?",acceptedAnswer:{"@type":"Answer",text:"AI-powered quality control, automated feedback systems, and workflow orchestration can increase creative agency productivity by 25% or more by reducing leadership bottlenecks and accelerating approval processes."}},{"@type":"Question",name:"What tasks can AI automate in creative workflows?",acceptedAnswer:{"@type":"Answer",text:"AI can automate quality control reviews, provide instant feedback on creative work, route assets to the right team members, and handle routine approvals - freeing creative directors to focus on strategic work."}},{"@type":"Question",name:"How does AI quality control work for creative agencies?",acceptedAnswer:{"@type":"Answer",text:"AI quality control systems review design work for brand consistency, accessibility compliance, and technical requirements before human review - reducing revision rates and ensuring consistent output quality."}},{"@type":"Question",name:"Which AI tools are best for creative agencies?",acceptedAnswer:{"@type":"Answer",text:"Leading AI tools for creative agencies include quality control systems, feedback automation, and workflow orchestration platforms. The best solutions integrate with existing creative tools and deliver measurable productivity gains."}}]},w=document.createElement("script");w.setAttribute("type","application/ld+json"),w.setAttribute("data-article-schema","creative-transformation"),w.textContent=JSON.stringify(f),document.head.appendChild(w);const v=document.createElement("script");return v.setAttribute("type","application/ld+json"),v.setAttribute("data-faq-schema","creative-transformation"),v.textContent=JSON.stringify(h),document.head.appendChild(v),()=>{const j=document.querySelector('script[data-article-schema="creative-transformation"]');j&&j.remove();const y=document.querySelector('script[data-faq-schema="creative-transformation"]');y&&y.remove()}},[]);const i=[{shortQuestion:"How can AI improve agency productivity?",question:"How can AI improve creative agency productivity?",answer:"AI-powered quality control, automated feedback systems, and workflow orchestration can increase creative agency productivity by 25% or more by reducing leadership bottlenecks and accelerating approval processes."},{shortQuestion:"What tasks can AI automate?",question:"What tasks can AI automate in creative workflows?",answer:"AI can automate quality control reviews, provide instant feedback on creative work, route assets to the right team members, and handle routine approvals - freeing creative directors to focus on strategic work."},{shortQuestion:"How does AI quality control work?",question:"How does AI quality control work for creative agencies?",answer:"AI quality control systems review design work for brand consistency, accessibility compliance, and technical requirements before human review - reducing revision rates and ensuring consistent output quality."},{shortQuestion:"What outcomes can agencies expect?",question:"What outcomes can creative agencies expect from AI adoption?",answer:"Creative agencies can expect 25% productivity gains, 50% reduction in administrative overhead, faster approval cycles, and improved team satisfaction as leadership bottlenecks are eliminated."}],r=[{month:"Jan",before:100,after:100},{month:"Feb",before:102,after:108},{month:"Mar",before:103,after:115},{month:"Apr",before:105,after:125},{month:"May",before:104,after:132},{month:"Jun",before:106,after:145}],l=[{name:"Before AI",value:70},{name:"After AI",value:30}],o=["#dc4f8f","#3174de"],c=[{month:"Jan",rating:65},{month:"Feb",rating:68},{month:"Mar",rating:75},{month:"Apr",rating:78},{month:"May",rating:82},{month:"Jun",rating:85}],d=[{month:"Jan",completed:22},{month:"Feb",completed:26},{month:"Mar",completed:28},{month:"Apr",completed:32},{month:"May",completed:35},{month:"Jun",completed:40}],u=l.map((f,h)=>({name:f.name,color:o[h%o.length],value:`${f.value}%`})),m=[{title:"Is the SaaS Model Dead For AI",url:"/files/is-the-saas-model-dead-for-ai.pdf",date:"2023-02-18",summary:"An exploration of AI business models and the evolution of SaaS 
249in the context of artificial intelligence."},{title:"Navigating AI Regulations: A White Paper about AI Adoption in Businesses",url:"/files/navigating-ai-regulations-white-paper.pdf",date:"2024-01-07",summary:"A comprehensive guide to understanding and navigating the regulatory landscape for AI implementation in business environments."},{title:"Preventing Data Leakage in AI Implementation",url:"/files/preventing-data-leakage-ai-implementation.pdf",date:"2024-10-21",summary:"Best practices and strategies for securing data when implementing AI solutions across enterprise systems."}];return p.useEffect(()=>{const f=new Image;f.onload=()=>s(!1),f.onerror=()=>{console.log("Thumbnail failed to load"),s(!0)},f.src="/AI Replicants - Thumbnail.png",console.log("Thumbnail URL:",new URL("/AI Replicants - Thumbnail.png",window.location.origin).href)},[]),n.jsxs(n.Fragment,{children:[n.jsxs(Js,{title:"Transforming Creative Workflows",headline:"Revolutionising Creativity with AI-Powered Efficiency",subheading:"How a Creative Agency Increased Productivity by 25% with AI",pdfFileName:"Appenue-CreativeTransformationCaseStudy",children:[n.jsx("section",{className:"py-8 bg-white",children:n.jsxs("div",{className:"section text-center",children:[n.jsxs("div",{className:"flex flex-col items-center",children:[n.jsx("div",{className:"mb-4 rounded-lg overflow-hidden w-full max-w-md",children:a?n.jsx("div",{className:"w-full aspect-video bg-gray-200 flex items-center justify-center text-gray-500",children:"Video Preview Unavailable"}):n.jsx("img",{src:"/AI Replicants - Thumbnail.png",alt:"AI Replicants Video Thumbnail",className:"w-full h-auto object-cover",onError:f=>{console.log("Thumbnail error occurred");const h=f.target;h.onerror=null,s(!0)}})}),n.jsxs(B,{onClick:()=>{console.log("Watch video button clicked"),t(!0)},variant:"watch-video",className:"inline-flex items-center px-6 py-3 rounded-full","aria-label":"Watch video about AI Replicants",children:[n.jsx(Nm,{className:"mr-2 h-5 w-5"})," Watch Video: AI Replicants"]})]}),n.jsxs("div",{itemScope:!0,itemType:"https://schema.org/VideoObject",className:"hidden",children:[n.jsx("meta",{itemProp:"name",content:"AI Replicants"}),n.jsx("meta",{itemProp:"description",content:"A detailed exploration of AI Replicants and their application in creative workflows"}),n.jsx("meta",{itemProp:"uploadDate",content:"2023-05-15T08:00:00+08:00"}),n.jsx("meta",{itemProp:"thumbnailUrl",content:"/AI Replicants - Thumbnail.png"}
249),n.jsx("meta",{itemProp:"contentUrl",content:"/AI Replicants - V1 (1).mp4"})]})]})}),n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"section",children:[n.jsxs("div",{className:"grid md:grid-cols-2 gap-12 mb-16",children:[n.jsxs(T.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:[n.jsx(I,{title:"The Challenge",alignment:"left"}),n.jsx("p",{className:"text-gray-600 mb-6",children:"A mid-sized creative agency with 45 team members across design, copywriting, and development departments was struggling with inefficient workflows and creative bottlenecks. Their challenges included:"}),n.jsxs("ul",{className:"space-y-4",children:[n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Leadership bottlenecks"})," with creative directors spending 70% of their time on routine approvals"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Inconsistent quality control"})," across different client projects"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Slow feedback loops"})," extending project timelines"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Limited cross-department collaboration"})," reducing creative synergy"]})]})]})]}),n.jsx(T.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:n.jsxs("div",{className:"rounded-xl overflow-hidden h-full bg-gray-50 p-8 flex flex-col justify-center",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Challenges:"}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-red-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-red-500 text-2xl",children:"70%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Leadership Time"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Spent on routine approval tasks"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-orange-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-orange-500 text-2xl",children:"35%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Revision Rate"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Client-requested revisions"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-yellow-500 text-2xl",children:"24h"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Feedback Delay"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Average time for internal feedback"})]})]})]})]})})]}),n.jsxs("div",{className:"mb-16",children:[n.jsx(I,{title:"Our Solution",alignment:"center"}),n.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-appblue",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"AI Quality Control"}),n.jsx("p",{className:"text-gray-600",children:"We implemented AI-powered quality control systems that could review design work for brand consistency, accessibility compliance, and technical requirements before human review."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-pink-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-apppink",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Feedback Automation"}),n.jsx("p",{className:"text-gray-600",children:"Our custom AI system provided instant feedback on creative work, suggesting improvements based on client preferences, past successful projects, and industry best practices."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-purple-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 17V7m0 10a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h2a2 2 0 012 2m0 10a2 2 0 002 2h2a2 2 0 002-2M9 7a2 2 0 012-2h2a2 2 0 012 2m0 10V7m0 10a2 2 0 002 2h2a2 2 0 002-2V7a2 2 0 00-2-2h-2a2 2 0 00-2 2"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Workflow Orchestration"}),n.jsx("p",{className:"text-gray-600",children:"We deployed an AI-powered workflow system that automatically routed creative assets to the right team members at the right time, eliminating manual handoffs and reducing bottlenecks."})]})]})]}),n.jsxs("div",{children:[n.jsx(I,{title:"Results & Impact",alignment:"center"}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12",children:[n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Productivity Growth (6 Months)"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{before:{label:"Before AI Implementation",color:"#dc4f8f"},after:{label:"After AI Implementation",color:"#3174de"}},children:n.jsxs(gn,{data:r,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{children:n.jsx(at,{value:"Productivity Index (Base 100)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(At,{}),n.jsx(mt,{}),n.jsx(yt,{dataKey:"before",name:"Before AI",fill:"#dc4f8f"}),n.jsx(yt,{dataKey:"after",name:"After AI",fill:"#3174de"})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Administrative Tasks Reduction"})}),n.jsxs(V,{className:"h-[350px]",children:[n.jsx(Be,{config:{item1:{label:"Before AI",color:"#dc4f8f"},item2:{label:"After AI",color:"#3174de"}},children:n.jsxs(lr,{children:[n.jsx(Lt,{data:l,cx:"50%",cy:"50%",labelLine:!1,label:({name:f,percent:h})=>`${f}
249: ${(h*100).toFixed(0)}%`,outerRadius:120,fill:"#8884d8",dataKey:"value",children:l.map((f,h)=>n.jsx(Ds,{fill:o[h%o.length]},`cell-${h}`))}),n.jsx(At,{}),n.jsx(mt,{})]})}),n.jsx(Pf,{items:u,labelText:{show:"View Chart Details",hide:"Hide Chart Details"}})]})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Team Satisfaction Improvement"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{rating:{label:"Satisfaction Rating",color:"#3174de"}},children:n.jsxs(Xn,{data:c,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{domain:[60,90],children:n.jsx(at,{value:"Satisfaction Rating (%)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(At,{}),n.jsx(Ma,{type:"monotone",dataKey:"rating",name:"Satisfaction Rating",stroke:"#3174de",fill:"#3174de",fillOpacity:.3})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Projects Completed Per Month"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{completed:{label:"Projects Completed",color:"#3174de"}},children:n.jsxs(Ws,{data:d,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{domain:[20,45],children:n.jsx(at,{value:"Projects",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(At,{}),n.jsx(Qn,{type:"monotone",dataKey:"completed",name:"Projects Completed",stroke:"#3174de",strokeWidth:3,dot:{r:6},activeDot:{r:8}})]})})})]})]}),n.jsxs("div",{className:"bg-gray-50 p-8 rounded-xl",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Outcomes"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"25%"}),n.jsx("p",{className:"text-gray-600",children:"Increase in overall creative output within six months"})]}),n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"70%"}),n.jsx("p",{className:"text-gray-600",children:"Reduction in time spent on administrative tasks"})]}),n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"85%"}),n.jsx("p",{className:"text-gray-600",children:"Team satisfaction rating, up from 65% pre-implementation"})]}),n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"40%"}),n.jsx("p",{className:"text-gray-600",children:"Reduction in client-requested revisions"})]})]})]})]})]})}),n.jsx("section",{className:"py-16 bg-gray-50",children:n.jsxs("div",{className:"section",children:[n.jsx(I,{title:"Implementation Process",alignment:"center"}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{className:"absolute left-1/2 transform -translate-x-1/2 h-full w-1 bg-gray-200"}),n.jsxs("div",{className:"relative z-10",children:[n.jsxs("div",{className:"flex flex-col md:flex-row items-center mb-12",children:[n.jsxs(T.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pr-12 mb-6 md:mb-0 md:text-right",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"Workflow Analysis"}),n.jsx("p",{className:"text-gray-600",children:"Comprehensive analysis of existing creative processes and bottlenecks."})]}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"1"}),n.jsx("div",{className:"md:w-1/2 md:pl-12 invisible md:visible"})]}),n.jsxs("div",{className:"flex flex-col md:flex-row items-center mb-12",children:[n.jsx("div",{className:"md:w-1/2 md:pr-12 invisible md:visible"}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"2"}),n.jsxs(T.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pl-12 mb-6 md:mb-0",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"Custom AI Development"}),n.jsx("p",{className:"text-gray-600",children:"Building tailored AI systems trained on the agency's past work and client preferences."})]})]}),n.jsxs("div",{className:"flex flex-col md:flex-row items-center mb-12",children:[n.jsxs(T.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pr-12 mb-6 md:mb-0 md:text-right",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"Integration & Testing"}),n.jsx("p",{className:"text-gray-600",children:"Seamless integration with existing tools and comprehensive testing with creative teams."})]}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"3"}),n.jsx("div",{className:"md:w-1/2 md:pl-12 invisible md:visible"})]}),n.jsxs("div",{className:"flex flex-col md:flex-row items-center",children:[n.jsx("div",{className:"md:w-1/2 md:pr-12 invisible md:visible"}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"4"}),n.jsxs(T.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pl-12",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"Training & Refinement"}),n.jsx("p",{className:"text-gray-600",children:"Ongoing team training and continuous system refinement based on usage data."})]})]})]})]})]})}),n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"section",children:[n.jsx(I,{title:"Frequently Asked Questions",subtitle:"Common questions about AI for creative agencies",alignment:"center"}),n.jsx("div",{className:"max-w-3xl mx-auto",children:n.jsx(qa,{type:"single",collapsible:!0,className:"w-full",children:i.map((f,h)=>n.jsxs(Vt,{value:`item-${h}`,children:[n.jsx(Ht,{className:"text-left text-lg font-medium !text-gray-900 hover:!text-appblue",children:f.shortQuestion}),n.jsxs($t,{className:"text-gray-600",children:[n.jsx("p",{className:"font-medium text-foreground mb-2",children:f.question}),n.jsx("p",{children:f.answer})]})]},h))})})]})})]}),n.jsx(Ow,{isOpen:e,onClose:()=>{console.log("Video modal closed"),t(!1)},videoSrc:"/AI Replicants - V1 (1).mp4",title:"AI Replicants",description:"A detailed exploration of AI Replicants and their application in creative workflows.",thumbnailSrc:"/AI Replicants - Thumbnail.png"}),n.jsx(Z4,{whitePapers:m})]})},tE=()=>{const[e,t]=p.useState(!1),[a,s]=p.useState(!1);p.useEffect(()=>{const u={"@context":"https://schema.org","@type":"Article",headline:"Revolutionising Sales Processes with AI",description:"How a healthcare provider revolutionised sales processes with AI chatbots and predictive analytics, achieving 35% revenue growth and 75% scheduling efficiency.",author:{"@type":"Person",name:"Avishay (AJ) Segal, MBA",url:"https://appenue-ai.com/about"},datePublished:"2024-02-20",dateModified:"2025-12-14",publisher:{"@id":"https://appenue-ai.com/#organization"},mainEntityOfPage:{"@type":"WebPage","@id":"https://appenue-ai.com/case-studies/sales-automation"},about:[{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q11660",name:"Artificial Intelligence"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q184558",name:"Sales Automation"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q180634",name:"Chatbot"}],image:"https://appenue-ai.com/Agentic AI - Thumbnail.png",video:{"@type":"VideoObject",name:"Agentic AI",description:"A detailed exploration of Agentic AI and its application in sales processes",thumbnailUrl:"https://appenue-ai.com/Agentic AI - Thumbnail.png",uploadDate:"2023-06-20T08:00:00+08:00"},keywords:"AI sales automation, predictive analytics, chatbot for sales, CRM AI integration"},m={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How can AI improve sales processes?",acceptedA
249nswer:{"@type":"Answer",text:"AI chatbots automate appointment scheduling and handle common queries, while predictive analytics identify high-potential leads. This can reduce manual scheduling by 75% and increase lead conversion by 35% or more."}},{"@type":"Question",name:"What ROI can businesses expect from AI sales automation?",acceptedAnswer:{"@type":"Answer",text:"Businesses typically see 35% or higher revenue growth within 6 months of AI sales automation, driven by improved lead conversion, reduced scheduling overhead, and enhanced customer satisfaction."}},{"@type":"Question",name:"How does predictive analytics improve lead conversion?",acceptedAnswer:{"@type":"Answer",text:"Predictive analytics analyses CRM data to identify high-potential leads, personalise customer interactions, and optimise sales strategies - enabling sales teams to focus on the most promising opportunities."}},{"@type":"Question",name:"Which AI tools are best for sales automation?",acceptedAnswer:{"@type":"Answer",text:"Leading AI tools for sales include chatbots for scheduling, predictive analytics for lead scoring, and automated follow-up systems. The best solutions integrate with existing CRM platforms and deliver measurable results."}}]},f=document.createElement("script");f.setAttribute("type","application/ld+json"),f.setAttribute("data-article-schema","sales-automation"),f.textContent=JSON.stringify(u),document.head.appendChild(f);const h=document.createElement("script");return h.setAttribute("type","application/ld+json"),h.setAttribute("data-faq-schema","sales-automation"),h.textContent=JSON.stringify(m),document.head.appendChild(h),()=>{const w=document.querySelector('script[data-article-schema="sales-automation"]');w&&w.remove();const v=document.querySelector('script[data-faq-schema="sales-automation"]');v&&v.remove()}},[]);const i=[{shortQuestion:"How can AI improve sales?",question:"How can AI improve sales processes?",answer:"AI chatbots automate appointment scheduling and handle common queries, while predictive analytics identify high-potential leads. This can reduce manual scheduling by 75% and increase lead conversion by 35% or more."},{shortQuestion:"What ROI can businesses expect?",question:"What ROI can businesses expect from AI sales automation?",answer:"Businesses typically see 35% or higher revenue growth within 6 months of AI sales automation, driven by improved lead conversion, reduced scheduling overhead, and enhanced customer satisfaction."},{shortQuestion:"How does predictive analytics help?",question:"How does predictive analytics improve lead conversion?",answer:"Predictive analytics analyses CRM data to identify high-potential leads, personalise customer interactions, and optimise sales strategies - enabling sales teams to focus on the most promising opportunities."},{shortQuestion:"What can sales teams expect from AI?",question:"What can sales teams expect after AI automation?",answer:"Sales teams can expect 35% improvement in lead conversion, 75% reduction in scheduling overhead, faster follow-up cycles, and measurable revenue growth within 6 months."}],r=[{month:"Jan",leads:120,converted:30},{month:"Feb",leads:130,converted:35},{month:"Mar",leads:140,converted:40},{month:"Apr",leads:150,converted:45},{month:"May",leads:160,converted:50},{month:"Jun",leads:170,converted:55}],l=[{category:"Manual",value:75},{category:"Automated",value:25}],o=["#dc4f8f","#3174de"],c=[{month:"Jan",score:70},{month:"Feb",score:72},{month:"Mar",score:75},{month:"Apr",score:78},{month:"May",score:80},{month:"Jun",score:82}],d=[{month:"Jan",revenue:200},{month:"Feb",revenue:210},{month:"Mar",revenue:220},{month:"Apr",revenue:235},{month:"May",revenue:250},{month:"Jun",revenue:270}];return p.useEffect(()=>{const u=new Image;u.onload=()=>s(!1),u.onerror=()=>{console.log("Thumbnail failed to load"),s(!0)},u.src="/Agentic AI - Thumbnail.png",console.log("Thumbnail URL:",new URL("/Agentic AI - Thumbnail.png",window.location.origin).href)},[]),n.jsxs(n.Fragment,{children:[n.jsxs(Js,{title:"Revolutionising Sales Processes",headline:"AI-Powered Sales Automation for a Leading Healthcare Provider",subheading:"How AI Chatbots and Predictive Analytics Boosted Sales and Customer Satisfaction",pdfFileName:"Appenue-SalesAutomationCaseStudy",children:[n.jsx("section",{className:"py-8 bg-white",children:n.jsxs("div",{className:"section text-center",children:[n.jsxs("div",{className:"flex flex-col items-center",children:[n.jsx("div",{className:"mb-4 rounded-lg overflow-hidden w-full max-w-md",children:a?n.jsx("div",{className:"w-full aspect-video bg-gray-200 flex items-center justify-center text-gray-500",children:"Video Preview Unavailable"}):n.jsx("img",{src:"/Agentic AI - Thumbnail.png",alt:"Agentic AI Video Thumbnail",className:"w-full h-auto object-cover",onError:u=>
249{console.log("Thumbnail error occurred");const m=u.target;m.onerror=null,s(!0)}})}),n.jsxs(B,{onClick:()=>{console.log("Watch video button clicked"),t(!0)},variant:"watch-video",className:"inline-flex items-center px-6 py-3 rounded-full","aria-label":"Watch video about Agentic AI",children:[n.jsx(Nm,{className:"mr-2 h-5 w-5"})," Watch Video: Agentic AI"]})]}),n.jsxs("div",{itemScope:!0,itemType:"https://schema.org/VideoObject",className:"hidden",children:[n.jsx("meta",{itemProp:"name",content:"Agentic AI"}),n.jsx("meta",{itemProp:"description",content:"A detailed exploration of Agentic AI and its application in sales processes"}),n.jsx("meta",{itemProp:"uploadDate",content:"2023-06-20T08:00:00+08:00"}),n.jsx("meta",{itemProp:"thumbnailUrl",content:"/Agentic AI - Thumbnail.png"}),n.jsx("meta",{itemProp:"contentUrl",content:"/Agentic AI (1).mp4"})]})]})}),n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"section",children:[n.jsxs("div",{className:"grid md:grid-cols-2 gap-12 mb-16",children:[n.jsxs(T.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:[n.jsx(I,{title:"The Challenge",alignment:"left"}),n.jsx("p",{className:"text-gray-600 mb-6",children:"A leading healthcare provider was struggling with inefficient sales processes, leading to missed opportunities and reduced customer satisfaction. Their challenges included:"}),n.jsxs("ul",{className:"space-y-4",children:[n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"High manual workload"})," in scheduling appointments and follow-ups"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Limited insights"})," from CRM data to personalize customer interactions"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Inconsistent lead follow-up"})," resulting in missed conversion opportunities"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Difficulty scaling"})," sales efforts without increasing headcount significantly"]})]})]})]}),n.jsx(T.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:n.jsxs("div",{className:"rounded-xl overflow-hidden h-full bg-gray-50 p-8 flex flex-col justify-center",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Challenges:"}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-red-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-red-500 text-2xl",children:"75%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Manual Scheduling"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Time spent on manual appointment scheduling"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-orange-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-orange-500 text-2xl",children:"30%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Lead Conversion"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Average lead conversion rate"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-yellow-500 text-2xl",children:"68"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Customer Satisfaction"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Average customer satisfaction score"})]})]})]})]})})]}),n.jsxs("div",{className:"mb-16",children:[n.jsx(I,{title:"Our Solution",alignment:"center"}),n.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-appblue",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14.743a2 2 0 00.733 3.01L13 10z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"AI Chatbots"}),n.jsx("p",{className:"text-gray-600",children:"We implemented AI-powered chatbots to automate appointment scheduling, answer common customer queries, and provide instant support."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-pink-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-apppink",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7h8m-7 4h7m-7 4h7M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Predictive Analytics"}),n.jsx("p",{className:"text-gray-600",children:"Our predictive analytics solution analyzed CRM data to i
249dentify high-potential leads, personalize customer interactions, and optimize sales strategies."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-purple-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7M5 5l7 7-7 7"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Automated Follow-Ups"}),n.jsx("p",{className:"text-gray-600",children:"We implemented automated follow-up sequences to ensure consistent and timely communication with leads, improving conversion rates and customer engagement."})]})]})]}),n.jsxs("div",{children:[n.jsx(I,{title:"Results & Impact",alignment:"center"}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12",children:[n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Lead Conversion Improvement"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{leads:{label:"Total Leads",color:"#dc4f8f"},converted:{label:"Converted Leads",color:"#3174de"}},children:n.jsxs(Ws,{data:r,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{}),n.jsx(At,{}),n.jsx(mt,{}),n.jsx(Qn,{type:"monotone",dataKey:"leads",stroke:"#dc4f8f",name:"Total Leads"}),n.jsx(Qn,{type:"monotone",dataKey:"converted",stroke:"#3174de",name:"Converted Leads"})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Scheduling Efficiency"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{manual:{label:"Manual Scheduling",color:"#dc4f8f"},automated:{label:"Automated Scheduling",color:"#3174de"}},children:n.jsxs(lr,{children:[n.jsx(Lt,{data:l,cx:"50%",cy:"50%",labelLine:!1,label:({name:u,percent:m})=>`${u}: ${(m*100).toFixed(0)}%`,outerRadius:120,fill:"#8884d8",dataKey:"value",children:l.map((u,m)=>n.jsx(Ds,{fill:o[m%o.length]},`cell-${m}`))}),n.jsx(At,{}),n.jsx(mt,{})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Customer Satisfaction Improvement"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{score:{label:"Satisfaction Score",color:"#3174de"}},children:n.jsxs(Xn,{data:c,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{domain:[65,85]}),n.jsx(At,{}),n.jsx(Ma,{type:"monotone",dataKey:"score",name:"Satisfaction Score",stroke:"#3174de",fill:"#3174de",fillOpacity:.3})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Monthly Revenue Growth"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{revenue:{label:"Monthly Revenue",color:"#3174de"}},children:n.jsxs(gn,{data:d,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{}),n.jsx(At,{}),n.jsx(mt,{}),n.jsx(yt,{dataKey:"revenue",fill:"#3174de",name:"Monthly Revenue"})]})})})]})]}),n.jsxs("div",{className:"bg-gray-50 p-8 rounded-xl",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Outcomes"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"75%"}),n.jsx("p",{className:"text-gray-600",children:"Reduction in manual scheduling efforts"})]}),n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"42%"}),n.jsx("p",{className:"text-gray-600",children:"Increase in qualified leads"})]}),n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"22%"}),n.jsx("p",{className:"text-gray-600",children:"Improvement in lead conversion rates"})]}),n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[n.jsx("div",{className:"text-appblue text-3xl font-bold mb-2",children:"82"}),n.jsx("p",{className:"text-gray-600",children:"Customer satisfaction score (
249out of 100)"})]})]})]})]})]})}),n.jsx("section",{className:"py-16 bg-gray-50",children:n.jsxs("div",{className:"section",children:[n.jsx(I,{title:"Implementation Process",alignment:"center"}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{className:"absolute left-1/2 transform -translate-x-1/2 h-full w-1 bg-gray-200"}),n.jsxs("div",{className:"relative z-10",children:[n.jsxs("div",{className:"flex flex-col md:flex-row items-center mb-12",children:[n.jsxs(T.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pr-12 mb-6 md:mb-0 md:text-right",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"Needs Assessment"}),n.jsx("p",{className:"text-gray-600",children:"Comprehensive evaluation of existing sales processes and challenges."})]}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"1"}),n.jsx("div",{className:"md:w-1/2 md:pl-12 invisible md:visible"})]}),n.jsxs("div",{className:"flex flex-col md:flex-row items-center mb-12",children:[n.jsx("div",{className:"md:w-1/2 md:pr-12 invisible md:visible"}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"2"}),n.jsxs(T.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pl-12 mb-6 md:mb-0",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"AI Solution Design"}),n.jsx("p",{className:"text-gray-600",children:"Custom AI chatbot and predictive analytics solution development."})]})]}),n.jsxs("div",{className:"flex flex-col md:flex-row items-center mb-12",children:[n.jsxs(T.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pr-12 mb-6 md:mb-0 md:text-right",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"System Integration"}),n.jsx("p",{className:"text-gray-600",children:"Seamless integration with existing CRM and communication platforms."})]}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"3"}),n.jsx("div",{className:"md:w-1/2 md:pl-12 invisible md:visible"})]}),n.jsxs("div",{className:"flex flex-col md:flex-row items-center",children:[n.jsx("div",{className:"md:w-1/2 md:pr-12 invisible md:visible"}),n.jsx("div",{className:"w-10 h-10 rounded-full bg-appblue flex items-center justify-center text-white font-bold z-10",children:"4"}),n.jsxs(T.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"md:w-1/2 md:pl-12",children:[n.jsx("h3",{className:"text-xl font-bold mb-2",children:"Training & Optimization"}),n.jsx("p",{className:"text-gray-600",children:"Team training and continuous system refinement based on performance data."})]})]})]})]})]})}),n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"section",children:[n.jsx(I,{title:"Frequently Asked Questions",subtitle:"Common questions about AI for sales automation",alignment:"center"}),n.jsx("div",{className:"max-w-3xl mx-auto",children:n.jsx(qa,{type:"single",collapsible:!0,className:"w-full",children:i.map((u,m)=>n.jsxs(Vt,{value:`item-${m}`,children:[n.jsx(Ht,{className:"text-left text-lg font-medium !text-gray-900 hover:!text-appblue",children:u.shortQuestion}),n.jsxs($t,{className:"text-gray-600",children:[n.jsx("p",{className:"font-medium text-foreground mb-2",children:u.question}),n.jsx("p",{children:u.answer})]})]},m))})})]})})]}),n.jsx(Ow,{isOpen:e,onClose:()=>{console.log("Video modal closed"),t(!1)},videoSrc:"/Agentic AI (1).mp4",title:"Agentic AI",description:"A detailed exploration of Agentic AI and its application in sales processes.",thumbnailSrc:"/Agentic AI - Thumbnail.png"})]})},aE=()=>{p.useEffect(()=>{const r={"@context":"https://schema.org","@type":"Article",headline:"Smart Investment Decision-Making with AI",description:"How an investment firm improved decision-making processes using AI-
249powered analytics, reducing research time by 60% and increasing decision confidence by 40%.",author:{"@type":"Person",name:"Avishay (AJ) Segal, MBA",url:"https://appenue-ai.com/about"},datePublished:"2024-04-05",dateModified:"2025-12-14",publisher:{"@id":"https://appenue-ai.com/#organization"},mainEntityOfPage:{"@type":"WebPage","@id":"https://appenue-ai.com/case-studies/ai-investment"},about:[{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q11660",name:"Artificial Intelligence"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q1385490",name:"Investment Decision"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q47485",name:"Financial Analysis"}],image:"https://appenue-ai.com/web-app-manifest-512x512.png",keywords:"AI for investment, meeting transcription AI, investment decision making, financial AI tools"},l={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How can AI improve investment decision-making?",acceptedAnswer:{"@type":"Answer",text:"AI tools like meeting transcription eliminate manual note-taking, allowing investors to focus fully on discussions. Structured summaries and action items speed up follow-ups and reduce decision-making time by up to 35%."}},{"@type":"Question",name:"What ROI can investment firms expect from AI tools?",acceptedAnswer:{"@type":"Answer",text:"Investment firms typically see 27% or higher increases in deal pipeline conversion, plus significant productivity gains from eliminating manual note-taking and improving meeting recall."}},{"@type":"Question",name:"How does AI transcription work for investment meetings?",acceptedAnswer:{"@type":"Answer",text:"AI transcription tools record and transcribe meetings in real-time, generating structured notes, action items, and bullet points. This automates organisation for faster post-meeting recall and decision-making."}},{"@type":"Question",name:"Which AI tools are best for investment professionals?",acceptedAnswer:{"@type":"Answer",text:"Leading AI tools for investment professionals include meeting assistants that provide real-time transcription, structured insights, and automated organisation - enabling faster and more confident investment decisions."}}]},o=document.createElement("script");o.setAttribute("type","application/ld+json"),o.setAttribute("data-article-schema","ai-investment"),o.textContent=JSON.stringify(r),document.head.appendChild(o);const c=document.createElement("script");return c.setAttribute("type","application/ld+json"),c.setAttribute("data-faq-schema","ai-investment"),c.textContent=JSON.stringify(l),document.head.appendChild(c),()=>{const d=document.querySelector('script[data-article-schema="ai-investment"]');d&&d.remove();const u=document.querySelector('script[data-faq-schema="ai-investment"]');u&&u.remove()}},[]);const e=[{shortQuestion:"How can AI improve investment decisions?",question:"How can AI improve investment decision-making?",answer:"AI tools like meeting transcription eliminate manual note-taking, allowing investors to focus fully on discussions. Structured summaries and action items speed up follow-ups and reduce decision-making time by up to 35%."},{shortQuestion:"What ROI can firms expect?",question:"What ROI can investment firms expect from AI tools?",answer:"Investment firms typically see 27% or higher increases in deal pipeline conversion, plus significant productivity gains from eliminating manual note-taking and improving meeting recall."},{shortQuestion:"How does AI transcription work?",question:"How does AI transcription work for investment meetings?",answer:"AI transcription tools record and transcribe meetings in real-time, generating structured notes, action items, and bullet points. This automates organisation for faster post-meeting recall and decision-making."},{shortQuestion:"What can investment firms expect?",question:"What can investment firms expect after adopting AI tools?",answer:"Investment firms can expect 27% improvement in deal pipeline conversion, 35% faster decision-making, elimination of manual note-taking, and improved meeting recall accuracy."}],t=[{name:"Week 1",Before:30,After:30},{name:"Week 2",Before:32,After:42},{name:"Week 3",Before:31,After:55},{name:"Week 4",Before:33,After:65},{name:"Week 5",Before:35,After:78},{name:"Week 6",Before:34,After:80}],a=[{name:"Jan",Previous:22,Current:22},{name:"Feb",Previous:21,Current:18},{name:"Mar",Previous:23,Current:15},{name:"Apr",Previous:25,Current:12},{name:"May",Previous:22,Current:10},{name:"Jun",Previous:24,Current:9}],s={hidden:{opacity:0}
249,show:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},i={hidden:{opacity:0,y:20},show:{opacity:1,y:0,transition:{duration:.5}}};return n.jsxs(Js,{title:"Smart Investment Decision-Making",headline:"AI-Powered Financial Analysis for Institutional Investors",subheading:"How a Leading Investment Firm Enhanced Portfolio Performance with AI-Driven Insights",pdfFileName:"Appenue-InvestmentDecisionCaseStudy",children:[n.jsx("section",{className:"py-16 bg-white",children:n.jsx("div",{className:"section",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},children:[n.jsx("h2",{className:"text-3xl font-bold mb-6",children:"The Challenge"}),n.jsxs("p",{className:"text-lg text-gray-700 mb-8",children:["A boutique investment firm focused on early-stage startups struggled with ",n.jsx("strong",{children:"meeting inefficiencies"}),". Investors needed to stay engaged in discussions but often lost key insights due to ",n.jsx("strong",{children:"manual note-taking distractions"}),". This ",n.jsx("strong",{children:"slowed follow-ups and stalled investment decisions"}),"."]}),n.jsxs("p",{className:"text-lg text-gray-700 mb-8",children:["The firm explored traditional solutions such as ",n.jsx("strong",{children:"Google Docs text-to-speech and hiring transcriptionists"}),", but these ",n.jsx("strong",{children:"failed to provide real-time, structured meeting outputs"}),"."]})]})})}),n.jsxs("section",{className:"py-16 bg-gray-50 relative overflow-hidden",children:[n.jsx("div",{className:"absolute inset-0 opacity-5 pointer-events-none neural-network-bg"}),n.jsx("div",{className:"section relative z-10",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},children:[n.jsx("h2",{className:"text-3xl font-bold mb-6",children:"The Solution"}),n.jsxs("p",{className:"text-lg text-gray-700 mb-8",children:["Appenue AI recommended ",n.jsx("strong",{children:"Otter.AI"}),", an AI-driven meeting assistant that:"]}),n.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mt-8",children:[n.jsxs(T.div,{whileHover:{y:-5,transition:{duration:.2}},className:"glass-card p-6 flex flex-col items-center text-center",children:[n.jsx("div",{className:"h-14 w-14 bg-appblue/10 rounded-full flex items-center justify-center mb-4 transform transition-transform hover:rotate-12",children:n.jsx(rp,{className:"h-7 w-7 text-appblue"})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Real-Time Transcription"}),n.jsx("p",{className:"text-gray-600",children:"Records and transcribes Zoom/Google Meet discussions in real-time"})]}),n.jsxs(T.div,{whileHover:{y:-5,transition:{duration:.2}},className:"glass-card p-6 flex flex-col items-center text-center",children:[n.jsx("div",{className:"h-14 w-14 bg-apppink/10 rounded-full flex items-center justify-center mb-4 transform transition-transform hover:rotate-12",children:n.jsx(lp,{className:"h-7 w-7 text-apppink"})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Structured Insights"}),n.jsx("p",{className:"text-gray-600",children:"Generates structured meeting notes, action items, and bullet points"})]}),n.jsxs(T.div,{whileHover:{y:-5,transition:{duration:.2}},className:"glass-card p-6 flex flex-col items-center text-center",children:[n.jsx("div",{className:"h-14 w-14 bg-appblue/10 rounded-full flex items-center justify-center mb-4 transform transition-transform hover:rotate-12",children:n.jsx(Rc,{className:"h-7 w-7 text-appblue"})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Automated Organization"}),n.jsx("p",{className:"text-gray-600",children:"Automatically organises insights for faster post-meeting recall"})]})]})]})})]}),n.jsx("section",{className:"py-16 bg-white",children:n.jsx("div",{className:"section",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},children:[n.jsx("h2",{className:"text-3xl font-bold mb-6",children:"The Results"}),n.jsxs("div",{className:"grid md:grid-cols-2 gap-10 mb-12",children:[n.jsx("div",{className:"space-y-6",children:n.jsxs(T.div,{variants:s,initial:"hidden",
249whileInView:"show",viewport:{once:!0},className:"space-y-6",children:[n.jsxs(T.div,{variants:i,className:"flex items-start gap-4",children:[n.jsx("div",{className:"h-10 w-10 bg-appblue/10 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:n.jsx(rp,{className:"h-5 w-5 text-appblue"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-xl font-semibold mb-1",children:"Productivity Boost"}),n.jsxs("p",{className:"text-gray-700",children:["Eliminated manual note-taking, allowing investors to ",n.jsx("strong",{children:"focus fully on conversations"}),"."]})]})]}),n.jsxs(T.div,{variants:i,className:"flex items-start gap-4",children:[n.jsx("div",{className:"h-10 w-10 bg-apppink/10 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:n.jsx(Rc,{className:"h-5 w-5 text-apppink"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-xl font-semibold mb-1",children:"Faster Investment Decisions"}),n.jsxs("p",{className:"text-gray-700",children:[n.jsx("strong",{children:"Decision-making speed increased by 35%"})," due to structured meeting summaries."]})]})]}),n.jsxs(T.div,{variants:i,className:"flex items-start gap-4",children:[n.jsx("div",{className:"h-10 w-10 bg-appblue/10 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:n.jsx(lp,{className:"h-5 w-5 text-appblue"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-xl font-semibold mb-1",children:"Pipeline Growth"}),n.jsxs("p",{className:"text-gray-700",children:["The firm ",n.jsx("strong",{children:"finalised seed deals with three additional startups"})," due to improved recall."]})]})]}),n.jsxs(T.div,{variants:i,className:"flex items-start gap-4",children:[n.jsx("div",{className:"h-10 w-10 bg-apppink/10 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:n.jsx(Uk,{className:"h-5 w-5 text-apppink"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-xl font-semibold mb-1",children:"27% Increase in Deal Pipeline Conversion"}),n.jsx("p",{className:"text-gray-700",children:"Directly attributed to Otter.AI's meeting intelligence capabilities."})]})]})]})}),n.jsxs("div",{className:"space-y-10",children:[n.jsxs(T.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.7,delay:.2},className:"glass-card p-6",children:[n.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Productivity Improvement"}),n.jsx("div",{className:"h-64 w-full",children:n.jsx(Ts,{width:"100%",height:"100%",children:n.jsxs(Xn,{data:t,margin:{top:10,right:5,left:0,bottom:0},children:[n.jsx(ze,{strokeDasharray:"3 3",stroke:"#f0f0f0"}),n.jsx(Le,{dataKey:"name"}),n.jsx(Pe,{label:{value:"Efficiency Score",angle:-90,position:"insideLeft",offset:-5}}),n.jsx(At,{}),n.jsx(Ma,{type:"monotone",dataKey:"Before",stroke:"#8884d8",fillOpacity:.3,fill:"#8884d8",name:"Before Otter.AI"}),n.jsx(Ma,{type:"monotone",dataKey:"After",stroke:"#dc4f8f",fillOpacity:.3,fill:"#dc4f8f",name:"After Otter.AI"})]})})})]}),n.jsxs(T.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.7,delay:.4},className:"glass-card p-6",children:[n.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Decision Time (Days)"}),n.jsx("div",{className:"h-64 w-full",children:n.jsx(Ts,{width:"100%",height:"100%",children:n.jsxs(Xn,{data:a,margin:{top:10,right:5,left:0,bottom:0},children:[n.jsx(ze,{strokeDasharray:"3 3",stroke:"#f0f0f0"}),n.jsx(Le,{dataKey:"name"}),n.jsx(Pe,{}),n.jsx(At,{}),n.jsx(Ma,{type:"monotone",dataKey:"Previous",stroke:"#3174de",fillOpacity:.3,fill:"#3174de",name:"Previous Process"}),n.jsx(Ma,{type:"monotone",dataKey:"Current",stroke:"#27ae60",fillOpacity:.3,fill:"#27ae60",name:"With Otter.AI"})]})})})]})]})]})]})})}),n.jsx("section",{className:"py-16 bg-gray-50",children:n.jsxs("div",{className:"section",children:[n.jsx(I,{title:"Frequently Asked Questions",subtitle:"Common questions about AI for investment decision-making",alignment:"center"}),n.jsx("div",{className:"max-w-3xl mx-auto",children:n.jsx(qa,{type:"single",collapsible:!0,className:"w-full",children:e.map((r,l)=>n.jsxs(Vt,{value:`item-${l}`,children:[n.jsx(Ht,{className:"text-left text-lg font-medium !text-gray-900 hover:!text-appblue",children:r.shortQuestion}),n.jsxs($t,{className:"text-gray-600",children:[n.jsx("p",{className:"font-medium text-foreground mb-2",children:r.question}),n.jsx("p",{children:r.answer})]})]},l))})})]})})]})},nE=()=>{const e=Zs();p.useEffect(()=>{const d={"@context":"https://schema.org","@type":"Article",headline:"How AI Chatbots Revolutionise Healthcare Customer Success",description:"How a healthcare provider reduced manual scheduling by 75%, increased profits by 21%, and achieved NPS scores of 9 from 75% of clients using AI chatbot implementation.",author:{"@type":"Person",name:"Avishay (AJ) Segal, MBA",url:"https://appenue-ai.com/about"},datePublished:"2023-06-19",dateModified:"2025-12-14",publisher:{"@id":"https://appenue-ai.com/#organization"},mainEntityOfPage:{"@type":"WebPage","@id":"https://appenue-ai.com/case-studies/healthcare-customer-success"},about:[{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q11660",name:"Artificial Intelligence"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q180634",name:"Chatbot"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q31207",name:"Healthcare"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q189857",name:"Customer Success"}],image:"https://appenue-ai.com/web-app-manifest-512x512.png",keywords:"AI implementation for healthcare, AI chatbot development, healthcare scheduling automation, customer success AI, best AI implementation companies for chatbot development"},u={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How can AI chatbots improve healthcare scheduling?",acceptedA
249nswer:{"@type":"Answer",text:"AI chatbots can reduce manual scheduling efforts by up to 75% by automating appointment booking, handling common queries, and providing 24/7 availability. This frees staff to focus on personalised patient care while reducing wait times from hours to minutes."}},{"@type":"Question",name:"What ROI can healthcare providers expect from AI chatbot implementation?",acceptedAnswer:{"@type":"Answer",text:"Healthcare providers typically see 21% or higher profit increases within 12 weeks of AI chatbot implementation, driven by reduced operational costs, improved scheduling efficiency, and enhanced customer satisfaction leading to higher retention rates."}},{"@type":"Question",name:"How does AI reduce patient wait times in healthcare settings?",acceptedAnswer:{"@type":"Answer",text:"AI-driven scheduling systems can reduce average wait times from 120-144 minutes to approximately 30 minutes by automating the booking process, eliminating phone tag, and providing instant confirmation-resulting in significantly improved patient experience."}},{"@type":"Question",name:"Which companies specialise in AI implementation for healthcare professionals?",acceptedAnswer:{"@type":"Answer",text:"Leading AI implementation companies for healthcare focus on chatbot development, predictive analytics, and workflow automation. The best providers offer tailored solutions that integrate with existing systems while delivering measurable ROI within 12 weeks."}}]},m=document.createElement("script");m.setAttribute("type","application/ld+json"),m.setAttribute("data-article-schema","healthcare-customer-success"),m.textContent=JSON.stringify(d),document.head.appendChild(m);const f=document.createElement("script");return f.setAttribute("type","application/ld+json"),f.setAttribute("data-faq-schema","healthcare-customer-success"),f.textContent=JSON.stringify(u),document.head.appendChild(f),()=>{const h=document.querySelector('script[data-article-schema="healthcare-customer-success"]');h&&h.remove();const w=document.querySelector('script[data-faq-schema="healthcare-customer-success"]');w&&w.remove()}},[]);const t=[{category:"Before AI",manual:100,automated:0},{category:"After AI",manual:25,automated:75}],a=[{week:"Week 1",profit:100},{week:"Week 2",profit:102},{week:"Week 3",profit:105},{week:"Week 4",profit:107},{week:"Week 5",profit:109},{week:"Week 6",profit:111},{week:"Week 7",profit:113},{week:"Week 8",profit:115},{week:"Week 9",profit:117},{week:"Week 10",profit:118},{week:"Week 11",profit:120},{week:"Week 12",profit:121}],s=[{name:"Promoters (9)",value:75},{name:"Passives (7-8)",value:18},{name:"Detractors (0-6)",value:7}],i=["#3174de","#94a3b8","#dc4f8f"],r=s.map((d,u)=>({name:d.name,color:i[u%i.length],value:`${d.value}%`})),l=[{period:"Before",avgWait:132}
249,{period:"Week 2",avgWait:95},{period:"Week 4",avgWait:68},{period:"Week 6",avgWait:52},{period:"Week 8",avgWait:40},{period:"Week 12",avgWait:30}],o=e?70:90,c=[{shortQuestion:"What can AI chatbots do for scheduling?",question:"How can AI chatbots improve healthcare scheduling?",answer:"AI chatbots can reduce manual scheduling efforts by up to 75% by automating appointment booking, handling common queries, and providing 24/7 availability. This frees staff to focus on personalised patient care while reducing wait times from hours to minutes."},{shortQuestion:"What ROI can providers expect?",question:"What ROI can healthcare providers expect from AI chatbot implementation?",answer:"Healthcare providers typically see 21% or higher profit increases within 12 weeks of AI chatbot implementation, driven by reduced operational costs, improved scheduling efficiency, and enhanced customer satisfaction leading to higher retention rates."},{shortQuestion:"How does AI reduce wait times?",question:"How does AI reduce patient wait times in healthcare settings?",answer:"AI-driven scheduling systems can reduce average wait times from 120-144 minutes to approximately 30 minutes by automating the booking process, eliminating phone tag, and providing instant confirmation - resulting in significantly improved patient experience."},{shortQuestion:"What can health providers expect from AI?",question:"What can healthcare providers expect after AI implementation?",answer:"Based on this implementation, healthcare providers can expect up to 75% reduction in manual scheduling, 21% profit increase within 12 weeks, significant wait time reductions from hours to minutes, and improved patient satisfaction scores."}];return n.jsxs(Js,{title:"AI Implementation for Healthcare: Customer Success Revolution",headline:"How AI Chatbots Revolutionise Healthcare Customer Success",subheading:"A Healthcare Provider Reduced Manual Scheduling by 75% and Increased Profits by 21%",pdfFileName:"Appenue-HealthcareCustomerSuccessCaseStudy",children:[n.jsx("section",{className:"py-8 bg-white",children:n.jsx("div",{className:"section",children:n.jsx(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"rounded-xl overflow-hidden mb-8",children:n.jsx("img",{src:"https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1200&q=80",alt:"Healthcare professional using digital technology for patient scheduling",className:"w-full h-auto max-h-[400px] object-cover"})})})}),n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"section",children:[n.jsxs("div",{className:"grid md:grid-cols-2 gap-12 mb-16",children:[n.jsxs(T.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:[n.jsx(I,{title:"The Challenge",alignment:"left"}),n.jsx("p",{className:"text-gray-600 mb-6",children:"A leading healthcare provider was entangled in a challenging web of manual scheduling processes. In the rapidly evolving healthcare landscape, efficient customer service is crucial for providers to stay competitive and retain clientele. Their challenges included:"}),n.jsxs("ul",{className:"space-y-4",children:[n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"28% of work hours"})," devoted to manual scheduling tasks"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Extended wait times"})," causing potential clients to seek alternatives"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Scheduling bottlenecks"})," limiting appointment availability"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Staff overwhelm"})," from repetitive administrative tasks"]})]})]})]}),n.jsx(T.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:n.jsxs("div",{className:"rounded-xl overflow-hidden h-full bg-gray-50 p-8 flex flex-col justify-center",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Challenges:"}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-red-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-red-500 text-2xl",children:"28%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Work Hours Lost"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Time spent on manual booking processes"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-orange-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-orange-500 text-xl",children:"2h 14m"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Daily Scheduling Time"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Staff hours consumed by admin tasks"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-yellow-600 text-xl",children:"120+"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Minutes Wait Time"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Average phone wait for appointments"})]})]})]})]})})]}),n.jsxs("div",{className:"mb-16",children:[n.jsx(I,{title:"Our Solution",alignment:"center"}),n.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-appblue",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"AI-Driven Chatbot"}),n.jsx("p",{className:"text-gray-600",children:"We implemented a tailor-made AI-driven chatbot that revolutionised the appointment scheduling process, providing 24/7 automated booking capabilities."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-pink-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-apppink",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Instant Response System"}),n.jsx("p",{className:"text-gray-600",children:"The chatbot seamlessly handled scheduling logistics, answering common queries and confirming appointments instantly-eliminating phone tag and wait times."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-purple-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20h2a2 2 0 002 2v2a2 2 0 002-2m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 
2490 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Staff Empowerment"}),n.jsx("p",{className:"text-gray-600",children:"By relieving the burden of manual scheduling, staff could redirect focus towards delivering personalised and efficient service to each patient."})]})]})]}),n.jsxs("div",{children:[n.jsx(I,{title:"Results & Impact",alignment:"center"}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12",children:[n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Scheduling Efficiency: Before vs After AI"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{manual:{label:"Manual Effort",color:"#dc4f8f"},automated:{label:"Automated",color:"#3174de"}},children:n.jsxs(gn,{data:t,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"category"}),n.jsx(Pe,{children:n.jsx(at,{value:"Percentage (%)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(mt,{}),n.jsx(yt,{dataKey:"manual",name:"Manual Effort",fill:"#dc4f8f",stackId:"a"}),n.jsx(yt,{dataKey:"automated",name:"Automated",fill:"#3174de",stackId:"a"})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Profit Growth Over 12 Weeks (+21%)"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{profit:{label:"Profit Index",color:"#3174de"}},children:n.jsxs(Ws,{data:a,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"week",angle:-45,textAnchor:"end",height:60}),n.jsx(Pe,{domain:[95,125],children:n.jsx(at,{value:"Profit Index (Base 100)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(Qn,{type:"monotone",dataKey:"profit",name:"Profit",stroke:"#3174de",strokeWidth:3,dot:{r:4},activeDot:{r:6}})]})})})]}),n.jsxs(q,{className:"pie-chart-card",children:[n.jsx(G,{children:n.jsx(W,{children:"Net Promoter Score Distribution"})}),n.jsxs(V,{className:"h-[350px]",children:[n.jsx(Be,{config:{promoters:{label:"Promoters",color:"#3174de"},passives:{label:"Passives",color:"#94a3b8"},detractors:{label:"Detractors",color:"#dc4f8f"}},children:n.jsxs(lr,{children:[n.jsx(Lt,{data:s,cx:"50%",cy:"50%",labelLine:!1,label:({name:d,percent:u})=>`${(u*100).toFixed(0)}%`,outerRadius:o,fill:"#8884d8",dataKey:"value",children:s.map((d,u)=>n.jsx(Ds,{fill:i[u%i.length]},`cell-${u}`))}),n.jsx(bt,{content:n.jsx(pt,{})}),!e&&n.jsx(mt,{verticalAlign:"bottom",height:36})]})}),e&&n.jsx(Pf,{items:r})]})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Wait Time Reduction (Minutes)"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{avgWait:{label:"Average Wait Time",color:"#3174de"}},children:n.jsxs(Xn,{data:l,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"period"}),n.jsx(Pe,{domain:[0,150],children:n.jsx(at,{value:"Wait Time (minutes)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(Ma,{type:"monotone",dataKey:"avgWait",name:"Average Wait",stroke:"#dc4f8f",fill:"#dc4f8f",fillOpacity:.3})]})})})]})]}),n.jsxs("div",{className:"bg-gray-50 p-8 rounded-xl",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Outcomes"}),n.jsxs("div",{className:"grid md:grid-cols-4 gap-6",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-appblue mb-2",children:"75%"}),n.jsx("p",{className:"text-gray-600",children:"Reduction in Manual Scheduling"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-apppink mb-2",children:"21%"}),n.jsx("p",{className:"text-gray-600",children:"Increase in Profits"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-appblue mb-2",children:"9/10"}),n.jsx("p",{className:"text-gray-600",children:"NPS from 75% of Clients"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-apppink mb-2",children:"77%"}),n.jsx("p",{className:"text-gray-600",children:"Wait Time Reduction"})]})]})]})]})]})}),n.jsx("section",{className:"py-16 bg-gray-50",children:n.jsxs("div",{className:"section",children:[n.jsx(I,{title:"Frequently Asked Questions",subtitle:"Common questions about AI implementation for healthcare customer success",alignment:"center"}),n.jsx("div",{className:"max-w-3xl mx-auto",children:n.jsx(qa,{type:"single",collapsible:!0,className:"w-full",children:c.map((d,u)=>n.jsxs(Vt,{value:`item-${u}`,children:[n.jsx(Ht,{className:"text-left text-lg font-medium !text-appblue hover:!text-appblue",children:d.shortQuestion}),n.jsxs($t,{className:"text-gray-600",children:[n.jsx("p",{className:"font-medium text-foreground mb-2",children:d.question}),n.jsx("p",{children:d.answer})]})]},u))})})]})}),n.jsx("section",{className:"py-16 bg-white",children:n.jsx("div",{className:"section",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"max-w-4xl mx-auto text-center",children:[n.jsx(I,{title:"The AI-Driven Game Changer",alignment:"center"}),n.jsx("p",{className:"text-lg text-gray-600 mb-8",children:"Through the implementation of an AI-driven chatbot, manual scheduling efforts were reduced by 75%, resulting in increased profits and improved service quality. The remarkable NPS of 9 from 75% of clients solidified the provider's position as an industry leader."}),n.jsx("p",{className:"text-xl font-medium text-appblue",children:"This success story prompts the question: Isn't it time for all healthcare providers to consider leveraging AI-driven practices to create better patient experiences, drive growth, and maximise success?"})]})})})]})},sE=()=>{Zs(),p.useEffect(()=>{const r={"@context":"https://schema.org","@type":"Article",headline:"AI-Powered Manufacturing Optimization",description:"How a manufacturing facility reduced downtime by 35%, decreased hidden unemployment by 40%, and increased profit margins by 30% through AI implementation and white-label strategy optimization.",author:{"@type":"Person",name:"Avishay (AJ) Segal, MBA",url:"https://appenue-ai.com/about"},datePublished:"2024-03-15",dateModified:"2025-12-14",publisher:{"@id":"https://appenue-ai.com/#organization"},mainEntityOfPage:{"@type":"WebPage","@id":"https://appenue-ai.com/case-studies/manufacturing-optimization"},about:[{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q11660",name:"Artificial Intelligence"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q6717761",name:"Digital Transformation"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q187939",name:"Manufacturing"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q1425971",name:"Supply Chain Management"}],image:"https://appenue-ai.com/web-app-manifest-512x512.png",keywords:"AI implementation for manufacturing, manufacturing automation, supply chain AI, predictive maintenance, top AI 
249implementation companies for manufacturing"},l={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How can AI reduce manufacturing downtime?",acceptedAnswer:{"@type":"Answer",text:"AI-powered predictive maintenance analyses equipment sensor data to predict failures before they occur. This enables proactive repairs during scheduled maintenance windows, reducing unplanned downtime by up to 35% and extending equipment lifespan."}},{"@type":"Question",name:"What is hidden unemployment in manufacturing and how can AI address it?",acceptedAnswer:{"@type":"Answer",text:"Hidden unemployment refers to workers who appear employed but are underutilised due to inefficient processes. AI workflow optimization identifies bottlenecks and reallocates resources, reducing hidden unemployment by up to 40% and improving overall productivity."}},{"@type":"Question",name:"How does AI improve supply chain management?",acceptedAnswer:{"@type":"Answer",text:"AI analyses demand patterns, supplier performance, and market conditions to optimise inventory levels and procurement timing. This reduces carrying costs, prevents stockouts, and can decrease cost per unit by 20% or more."}},{"@type":"Question",name:"What can manufacturers expect after AI implementation?",acceptedAnswer:{"@type":"Answer",text:"Manufacturers can expect 35% reduction in downtime, 40% decrease in hidden unemployment, 20% reduction in cost per unit, 28% increase in sales, and 30% improvement in profit margins through AI-powered optimization."}}]},o=document.createElement("script");o.setAttribute("type","application/ld+json"),o.setAttribute("data-article-schema","manufacturing-optimization"),o.textContent=JSON.stringify(r),document.head.appendChild(o);const c=document.createElement("script");return c.setAttribute("type","application/ld+json"),c.setAttribute("data-faq-schema","manufacturing-optimization"),c.textContent=JSON.stringify(l),document.head.appendChild(c),()=>{const d=document.querySelector('script[data-article-schema="manufacturing-optimization"]');d&&d.remove();const u=document.querySelector('script[data-faq-schema="manufacturing-optimization"]');u&&u.remove()}},[]);const e=[{shortQuestion:"How can AI reduce manufacturing downtime?",question:"How can AI reduce manufacturing downtime?",answer:"AI-powered predictive maintenance analyses equipment sensor data to predict failures before they occur. This enables proactive repairs during scheduled maintenance windows, reducing unplanned downtime by up to 35% and extending equipment lifespan."},{shortQuestion:"What is hidden unemployment?",question:"What is hidden unemployment in manufacturing and how can AI address it?",answer:"Hidden unemployment refers to workers who appear employed but are underutilised due to inefficient processes. AI workflow optimization identifies bottlenecks and reallocates resources, reducing hidden unemployment by up to 40% and improving overall productivity."},{shortQuestion:"How does AI improve supply chains?",question:"How does AI improve supply chain management?",answer:"AI analyses demand patterns, supplier performance, and market conditions to optimise inventory levels and procurement timing. This reduces carrying costs, prevents stockouts, and can decrease cost per unit by 20% or more."},{shortQuestion:"What can manufacturers expect from AI?",question:"What can manufacturers expect after AI implementation?",answer:"Manufacturers can expect 35% reduction in downtime, 40% decrease in hidden unemployment, 20% reduction in cost per unit, 28% increase in sales, and 30% improvement in profit margins through AI-powered optimization."}],t=[{month:"Jan",before:100,after:100},{month:"Feb",before:98,after:92},{month:"Mar",before:102,after:85},{month:"Apr",before:99,after:78},{month:"May",before:101,after:70},{month:"Jun",before:100,after:65}],a=[{week:"Week 1",rate:40},{week:"Week 4",rate:35},{week:"Week 8",rate:30},{week:"Week 12",rate:26},{week:"Week 16",rate:24},{week:"Week 20",rate:24}],s=[{month:"Jan",cost:100},{month:"Feb",cost:97},{month:"Mar",cost:93},{month:"Apr",cost:88},{month:"May",cost:83},{month:"Jun",cost:80}],i=[{metric:"Sales",before:100,after:128},{metric:"Profit Margin",before:100,after:130}];return n.jsx(Js,{title:"AI-Powered Manufacturing Optimization",headline:"Transforming Factory Operations with AI",subheading:"How a Manufacturing Facility Reduced Downtime by 35% and Increased Profit Margins by 30%",pdfFileName:"Appenue-ManufacturingOptimizationCaseStudy",children:n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"section",children:[n.jsxs("div",{className:"grid md:grid-cols-2 gap-12 mb-16",children:[n.jsxs(T.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:[n.jsx(I,{title:"The Challenge",alignment:"left"}),n.jsx("p",{className:"text-gray-600 mb-6",children:"A mid-sized manufacturing facility producing consumer electronics was struggling with operational inefficiencies that were eroding profit margins. Their key challenges included:"}),n.jsxs("ul",{className:"space-y-4",children:[n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Unplanned equipment failures"})," causing frequent production line stoppages"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Hidden unemployment"})," with workers waiting for materials or machine repairs"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"High cost per unit"})," due to inefficient resource allocation"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Suboptimal white-label strategy"})," missing profitable market opportunities"]})]})]})]}),n.jsx(T.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:n.jsxs("div",{className:"rounded-xl overflow-hidden h-full bg-gray-50 p-8 flex flex-col justify-center",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Challenges:"}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-red-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-red-500 text-2xl",children:"35%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Unplanned Downtime"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Equipment failures disrupting production"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-orange-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-orange-500 text-2xl",children:"40%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Hidden Unemployment"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Workers underutilised due to bottlenecks"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-yellow-500 text-2xl",children:"-20%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Profit Margin Erosion"}),n.jsx("p",{className:"text-sm text-gray-600",children:"High costs impacting profitability"})]})]})]})]})})]}),n.jsxs("div",{className:"mb-16",children:[n.jsx(I,{title:"Our Solution",alignment:"center"}),n.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-appblue",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Predictive Maintenance"}),n.jsx("p",{className:"text-gray-600",children:"We deployed AI-powered sensors and analytics to monitor equipment health in real-time, predicting failures before they occur and scheduling maintenance during planned downtime windows."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-pink-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-apppink",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 
2490 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Workforce Optimization"}),n.jsx("p",{className:"text-gray-600",children:"AI-driven workflow analysis identified bottlenecks and optimised task allocation, ensuring workers were productively engaged and reducing hidden unemployment across all shifts."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-purple-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"White-Label Strategy AI"}),n.jsx("p",{className:"text-gray-600",children:"We implemented generative AI to analyse market opportunities and optimise the white-label product portfolio, identifying high-margin segments and pricing strategies."})]})]})]}),n.jsxs("div",{children:[n.jsx(I,{title:"Results & Impact",alignment:"center"}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12",children:[n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Downtime Reduction (6 Months)"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{before:{label:"Before AI",color:"#dc4f8f"},after:{label:"After AI",color:"#3174de"}},children:n.jsxs(gn,{data:t,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{children:n.jsx(at,{value:"Downtime Index (Base 100)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(mt,{}),n.jsx(yt,{dataKey:"before",name:"Before AI",fill:"#dc4f8f"}),n.jsx(yt,{dataKey:"after",name:"After AI",fill:"#3174de"})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Hidden Unemployment Reduction"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{rate:{label:"Hidden Unemployment %",color:"#3174de"}},children:n.jsxs(Ws,{data:a,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"week"}),n.jsx(Pe,{children:n.jsx(at,{value:"Percentage (%)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(mt,{}),n.jsx(Qn,{type:"monotone",dataKey:"rate",name:"Hidden Unemployment %",stroke:"#3174de",strokeWidth:2})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Cost Per Unit Reduction"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{cost:{label:"Cost Index",color:"#dc4f8f"}},children:n.jsxs(Xn,{data:s,children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month"}),n.jsx(Pe,{children:n.jsx(at,{value:"Cost Index (Base 100)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(mt,{}),n.jsx(Ma,{type:"monotone",dataKey:"cost",name:"Cost Per Unit",stroke:"#dc4f8f",fill:"#dc4f8f",fillOpacity:.3})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Sales & Profit Improvement"})}),n.jsx(V,{className:"h-[350px]",children:n.jsx(Be,{config:{before:{label:"Before AI",color:"#dc4f8f"},after:{label:"After AI",color:"#3174de"}},children:n.jsxs(gn,{data:i,layout:"vertical",children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{type:"number",children:n.jsx(at,{value:"Index (Base 100)",position:"bottom",offset:-5})}),n.jsx(Pe,{type:"category",dataKey:"metric",width:100}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(mt,{}),n.jsx(yt,{dataKey:"before",name:"Before AI",fill:"#dc4f8f"}),n.jsx(yt,{dataKey:"after",name:"After AI",fill:"#3174de"})]})})})]})]}),n.jsxs("div",{className:"bg-gray-50 p-8 rounded-xl mb-12",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-6 text-center",children:"Key Outcomes"}),n.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-appblue mb-2",children:"35%"}),n.jsx("p",{className:"text-gray-600",children:"Downtime Reduction"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-apppink mb-2",children:"40%"}),n.jsx("p",{className:"text-gray-600",children:"Hidden Unemployment Decrease"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-appblue mb-2",children:"20%"}),n.jsx("p",{className:"text-gray-600",children:"Cost Per Unit Reduction"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-apppink mb-2",children:"30%"}),n.jsx("p",{className:"text-gray-600",children:"Profit Margin Increase"})]})]})]})]}),n.jsxs("div",{className:"mb-16",children:[n.jsx(I,{title:"Implementation Process",alignment:"center"}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{className:"absolute left-1/2 transform -translate-x-1/2 h-full w-1 bg-gradient-to-b from-appblue to-apppink hidden md:block"}),n.jsx("div",{className:"space-y-12",children:[{phase:"Phase 1",title:"Assessment & Planning",duration:"Weeks 1-3",description:"Conducted comprehensive audit of equipment, workflows, and market positioning to identify AI implementation opportunities."},{phase:"Phase 2",title:"Sensor Deployment",duration:"Weeks 4-8",description:"Installed IoT sensors on critical equipment and integrated 
249with AI analytics platform for real-time monitoring."},{phase:"Phase 3",title:"Workflow Optimization",duration:"Weeks 9-14",description:"Deployed AI workforce management system and retrained supervisors on new scheduling protocols."},{phase:"Phase 4",title:"White-Label AI",duration:"Weeks 15-20",description:"Implemented generative AI for market analysis and optimised product portfolio strategy."}].map((r,l)=>n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},className:`flex items-center ${l%2===0?"md:flex-row":"md:flex-row-reverse"}`,children:[n.jsxs("div",{className:`w-full md:w-5/12 ${l%2===0?"md:text-right md:pr-8":"md:text-left md:pl-8"}`,children:[n.jsx("span",{className:"inline-block px-3 py-1 mb-2 text-sm font-medium text-white bg-appblue rounded-full",children:r.phase}),n.jsx("h3",{className:"text-xl font-semibold mb-1",children:r.title}),n.jsx("p",{className:"text-apppink font-medium mb-2",children:r.duration}),n.jsx("p",{className:"text-gray-600",children:r.description})]}),n.jsx("div",{className:"hidden md:flex w-2/12 justify-center",children:n.jsx("div",{className:"w-4 h-4 bg-white border-4 border-appblue rounded-full z-10"})}),n.jsx("div",{className:"hidden md:block w-5/12"})]},l))})]})]}),n.jsxs("div",{className:"mb-16",children:[n.jsx(I,{title:"Frequently Asked Questions",alignment:"center"}),n.jsx("div",{className:"max-w-3xl mx-auto",children:n.jsx(qa,{type:"single",collapsible:!0,className:"w-full",children:e.map((r,l)=>n.jsxs(Vt,{value:`item-${l}`,children:[n.jsx(Ht,{className:"text-left !text-appblue hover:!text-appblue",children:r.shortQuestion}),n.jsxs($t,{children:[n.jsx("p",{className:"font-medium text-gray-800 mb-2",children:r.question}),n.jsx("p",{className:"text-gray-600",children:r.answer})]})]},l))})})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"bg-gradient-to-r from-appblue to-apppink p-8 rounded-xl text-white text-center",children:[n.jsx("h3",{className:"text-2xl font-bold mb-4",children:"The AI-Powered Factory of Tomorrow"}),n.jsx("p",{className:"text-lg max-w-3xl mx-auto",children:"By implementing predictive maintenance, workforce optimization, and strategic AI for white-label decisions, this manufacturing facility transformed from a struggling operation into a lean, profitable enterprise. The 30% increase in profit margins demonstrates the transformative power of AI in manufacturing."})]})]})})})},iE="/assets/case-study-timepiece-DEDI7yYp.jpg",rE=()=>{p.useEffect(()=>{const r={"@context":"https://schema.org","@type":"Article",headline:"Fixing Time with AI: Operational Redesign for an Independent Timepiece Manufacturer",description:"How lean fulfilment, ML demand forecasting, and dynamic replenishment unlocked €2.1M in dead stock, recovered 23% margin, and cut fulfilment time by 38% in 90 days.",author:{"@type":"Person",name:"Avishay (AJ) Segal, MBA",url:"https://appenue-ai.com/about"},datePublished:"2026-04-09",dateModified:"2026-04-09",publisher:{"@id":"https://appenue-ai.com/#organization"},mainEntityOfPage:{"@type":"WebPage","@id":"https://appenue-ai.com/case-studies/timepiece-manufacturing"},about:[{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q11660",name:"Artificial Intelligence"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q2539",name:"Manufacturing"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q131723",name:"Supply Chain Management"},{"@type":"Thing","@id":"https://www.wikidata.org/entity/Q2374463",name:"Machine Learning"}],image:"https://appenue-ai.com/web-app-manifest-512x512.png",keywords:"AI demand forecasting, inventory optimisation, timepiece manufacturing AI, supply chain ML, lean fulfilment AI, dead stock recovery"},l={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How can ML demand forecasting help manufacturers reduce dead stock?",acceptedAnswer:{"@type":"Answer",text:"ML demand forecasting analyses historical sales, seasonality, and channel signals to predict demand at the SKU level. In this case, it helped an independent timepiece manufacturer unlock €2.1M in dead stock by replacing gut-feel ordering with data-driven replenishment, achieving 87% forecast accuracy within 90 days."}},{"@type":"Question",name:"What results can manufacturers expect from combining lean operations with AI?",acceptedA
249nswer:{"@type":"Answer",text:"Combining lean operational fixes (ABC/XYZ segmentation, rolling cycle counts, zero-based cost review) with an AI layer (ML forecasting, dynamic reorder intelligence, fulfilment routing) delivered 38% faster fulfilment, 23% margin recovery, 97.3% inventory accuracy, and 74% reduction in emergency freight within 90 days."}},{"@type":"Question",name:"How quickly can AI-driven inventory optimisation show ROI for mid-market manufacturers?",acceptedAnswer:{"@type":"Answer",text:"Mid-market manufacturers can see measurable ROI within 90 days. This engagement began with a 3-week diagnostic, followed by phased execution that delivered margin recovery of 23% and unlocked €2.1M in trapped inventory capital, proving that AI-driven optimisation does not require enterprise-scale budgets or timelines."}},{"@type":"Question",name:"What can timepiece and luxury goods manufacturers expect from AI?",acceptedAnswer:{"@type":"Answer",text:"Timepiece and luxury goods manufacturers can expect significant improvements in fulfilment speed (38% reduction in order-to-ship time), inventory accuracy (from ~72% to 97.3%), margin recovery through cost transparency, and demand visibility via ML forecasting-all without disrupting the craftsmanship and brand standards that define the sector."}}]},o=document.createElement("script");o.setAttribute("type","application/ld+json"),o.setAttribute("data-article-schema","timepiece-manufacturing"),o.textContent=JSON.stringify(r),document.head.appendChild(o);const c=document.createElement("script");return c.setAttribute("type","application/ld+json"),c.setAttribute("data-faq-schema","timepiece-manufacturing"),c.textContent=JSON.stringify(l),document.head.appendChild(c),()=>{const d=document.querySelector('script[data-article-schema="timepiece-manufacturing"]');d&&d.remove();const u=document.querySelector('script[data-faq-schema="timepiece-manufacturing"]');u&&u.remove()}},[]);const e=[{week:"Baseline",days:11.2},{week:"Week 2",days:10.1},{week:"Week 4",days:9},{week:"Week 6",days:8.2},{week:"Week 8",days:7.5},{week:"Week 10",days:7.1},{week:"Week 12",days:6.9}],t=[{month:"Baseline",margin:100},{month:"Week 3",margin:103},{month:"Week 6",margin:108},{month:"Week 9",margin:115},{month:"Week 12",margin:123}],a=[{category:"Before",accuracy:72},{category:"After",accuracy:97.3}],s=[{category:"Manual Ordering",accuracy:0},{category:"ML Forecast (Day 30)",accuracy:71}
249,{category:"ML Forecast (Day 60)",accuracy:79},{category:"ML Forecast (Day 90)",accuracy:87}],i=[{shortQuestion:"How does ML forecasting cut dead stock?",question:"How can ML demand forecasting help manufacturers reduce dead stock?",answer:"ML demand forecasting analyses historical sales, seasonality, and channel signals to predict demand at the SKU level. In this case, it helped an independent timepiece manufacturer unlock €2.1M in dead stock by replacing gut-feel ordering with data-driven replenishment, achieving 87% forecast accuracy within 90 days."},{shortQuestion:"What does lean + AI deliver?",question:"What results can manufacturers expect from combining lean operations with AI?",answer:"Combining lean operational fixes (ABC/XYZ segmentation, rolling cycle counts, zero-based cost review) with an AI layer (ML forecasting, dynamic reorder intelligence, fulfilment routing) delivered 38% faster fulfilment, 23% margin recovery, 97.3% inventory accuracy, and 74% reduction in emergency freight within 90 days."},{shortQuestion:"How fast does AI inventory optimisation show ROI?",question:"How quickly can AI-driven inventory optimisation show ROI for mid-market manufacturers?",answer:"Mid-market manufacturers can see measurable ROI within 90 days. This engagement began with a 3-week diagnostic, followed by phased execution that delivered margin recovery of 23% and unlocked €2.1M in trapped inventory capital, proving that AI-driven optimisation does not require enterprise-scale budgets or timelines."},{shortQuestion:"What can manufacturers expect from AI?",question:"What can timepiece and luxury goods manufacturers expect from AI?",answer:"Timepiece and luxury goods manufacturers can expect significant improvements in fulfilment speed (38% reduction in order-to-ship time), inventory accuracy (from ~72% to 97.3%), margin recovery through cost transparency, and demand visibility via ML forecasting-all without disrupting the craftsmanship and brand standards that define the sector."}];return n.jsxs(Js,{title:"Fixing Time with AI",headline:"AI Operational Redesign for an Independent Timepiece Manufacturer",subheading:"We combined lean fulfilment, ML demand forecasting, and dynamic replenishment to unlock €2.1M in dead stock, recover 23% margin, and cut average fulfilment time by 38% in 90 days.",pdfFileName:"Appenue-TimepieceManufacturingCaseStudy",children:[n.jsx("section",{className:"py-8 bg-white",children:n.jsx("div",{className:"section",children:n.jsx(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"rounded-xl overflow-hidden mb-8",children:n.jsx("img",{src:iE,alt:"Watchmaker assembling a luxury timepiece at a workbench with AI-powered demand forecasting and inventory dashboards overlaid, illustrating the blend of traditional craftsmanship and data-driven operations",className:"w-full h-auto max-h-[400px] object-cover"})})})}),n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"section",children:[n.jsxs("div",{className:"grid md:grid-cols-2 gap-12 mb-16",children:[n.jsxs(T.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:[n.jsx(I,{title:"The Challenge",alignment:"left"}),n.jsx("p",{className:"text-gray-600 mb-6",children:"An independent timepiece manufacturer with €9.8M revenue, 120 SKUs, and distribution across 20+ markets was struggling with operational blind spots that threatened profitability. Despite strong brand equity and craftsmanship, the business faced systemic issues:"}),n.jsxs("ul",{className:"space-y-4",children:[n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"€2.1M in dead stock"})," - inventory that had not moved in 12+ months, tying up working capital"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"11.2 days average fulfilment"})," - order-to-ship time far exceeding sector benchmarks"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"8.3% margin erosion"})," - from hidden costs, emergency freight, and unplanned write-downs"]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx("span",{className:"text-appblue mr-2 text-lg",children:"•"}),n.jsxs("span",{children:[n.jsx("strong",{children:"No demand signal"})," - reorder decisions were gut-feel, not data-driven"]})]})]})]}),n.jsx(T.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:n.jsxs("div",{className:"rounded-xl overflow-hidden h-full bg-gray-50 p-8 flex flex-col justify-center",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Challenges:"}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-red-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-red-500 text-lg font-bold",children:"€2.1M"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Dead Stock Trapped"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Inventory unmoved for 12+ months"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-orange-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-orange-500 text-xl font-bold",children:"11.2d"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Order-to-Ship Time"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Far exceeding sector benchmarks"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-yellow-600 text-xl font-bold",children:"8.3%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Gross Margin Erosion"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Hidden costs, emergency freight, write-downs"})]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-purple-100 flex items-center justify-center flex-shrink-0 mr-4",children:n.jsx("span",{className:"text-purple-600 text-xl font-bold",children:"~72%"})}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Inventory Accuracy"}),n.jsx("p",{className:"text-sm text-gray-600",children:"No reliable demand signal or cycle c
249ounts"})]})]})]})]})})]}),n.jsxs("div",{className:"mb-16",children:[n.jsx(I,{title:"The Diagnostic",alignment:"center"}),n.jsx("p",{className:"text-gray-600 text-center max-w-3xl mx-auto mb-8",children:"We ran a 3-week diagnostic to map the full operational picture before proposing any solution. The goal was to separate structural issues from symptoms and quantify the cost of inaction."}),n.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-appblue",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Inventory Deep-Dive"}),n.jsx("p",{className:"text-gray-600",children:"Full SKU-level audit across 120 references, mapping velocity, ageing, and channel allocation to quantify dead stock and misallocated capital."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-pink-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-apppink",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Fulfilment Mapping"}),n.jsx("p",{className:"text-gray-600",children:"End-to-end process mapping from order receipt to dispatch, identifying bottlenecks, handoff gaps, and cost leakages across warehousing and logistics."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-purple-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Margin Forensics"}),n.jsx("p",{className:"text-gray-600",children:"Zero-based cost review isolating emergency freight, unplanned write-downs, and hidden overhead that eroded 8.3% of gross margin without visibility."})]})]})]}),n.jsxs("div",{className:"mb-16",children:[n.jsx(I,{title:"Phase 1: Lean Process Fix",subtitle:"Structural fixes before introducing any AI - building the operational foundation",alignment:"center"}),n.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("h3",{className:"text-xl font-semibold mb-2 text-appblue",children:"ABC/XYZ Segmentation"}),n.jsx("p",{className:"text-gray-600",children:"Classified all 120 SKUs by revenue contribution (ABC) and demand variability (XYZ), enabling differentiated stocking rules and service-level targets per segment."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("h3",{className:"text-xl font-semibold mb-2 text-appblue",children:"Lean Fulfilment Redesign"}),n.jsx("p",{className:"text-gray-600",children:"Restructured the pick-pack-ship workflow to eliminate redundant handoffs, reducing average fulfilment from 11.2 days toward sector-competitive benchmarks."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("h3",{className:"text-xl font-semibold mb-2 text-appblue",children:"Rolling Cycle Counts"}),n.jsx("p",{className:"text-gray-600",children:"Replaced annual full-warehouse counts with continuous rolling cycles, lifting inventory accuracy from approximately 72% to create a reliable data foundation for AI."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.4},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("h3",{className:"text-xl font-semibold mb-2 text-appblue",children:"Zero-Based Cost Review"}),n.jsx("p",{className:"text-gray-600",children:"Audited every cost line from scratch-freight contracts, packaging, warehousing fees-surfacing the hidden 8.3% margin leak and creating a clean baseline for tracking improvements."})]})]})]}),n.jsxs("div",{className:"mb-16",children:[n.jsx(I,{title:"Phase 2: The AI Layer",subtitle:"Machine learning capabilities layered onto the clean operational foundation",alignment:"center"}),n.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-appblue",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 12l3-3 3 3 4-4M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"ML Demand Forecasting"}),n.jsx("p",{className:"text-gray-600",children:"Trained models on 3 years of sales history, seasonality, and channel signals to predict demand at the SKU level. Reached 87% forecast accuracy by day 90, replacing gut-feel reordering entirely."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-pink-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-apppink",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Dynamic Reorder Intelligence"}),n.jsx("p",{className:"text-gray-600",children:"Automated replenishment triggers calibrated to ABC/XYZ segments, lead times, and real-time sell-through rates-eliminating both overstock and stock-outs across 20+ markets."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-purple-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Fulfilment Routing Optimisation"}),n.jsx("p",{className:"text-gray-600",children:"Intelligent order routing across fulfilment nodes to minimise transit time and freight cost, reducing emergency air freight by 74% and cutting average order-to-ship to 6.9 days."})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.4},className:"bg-gray-50 p-6 rounded-xl",children:[n.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center mb-4",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-green-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),n.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Anomaly Detection"}),n.jsx("p",{className:"text-gray-600",children:"Real-time monitoring of inventory movements, fulfilment SLAs, and cost patterns to flag deviations before they become margin-eroding events-providing early warning on emerging issues."})]})]})]}),n.jsxs("div",{children:[n.jsx(I,{title:"Results & Impact",alignment:"center"}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12",children:[n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Fulfilment Time Reduction (Days)"})}),n.jsx(V,{className:"h-[350px] pb-8",children:n.jsx(Be,{config:{days:{label:"Order-to-Ship (Days)",color:"#3174de"}},children:n.jsxs(Xn,{data:e,margin:{left:10,bottom:5},children:[n.jsx(ze,{strokeDasharray:"3 3"}
249),n.jsx(Le,{dataKey:"week",tick:{fontSize:11}}),n.jsx(Pe,{domain:[5,12],width:55,children:n.jsx(at,{value:"Days",angle:-90,position:"insideLeft",style:{textAnchor:"middle",fontSize:11},offset:0})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(Ma,{type:"monotone",dataKey:"days",name:"Order-to-Ship",stroke:"#dc4f8f",fill:"#dc4f8f",fillOpacity:.3})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Margin Recovery Over 90 Days (+23%)"})}),n.jsx(V,{className:"h-[350px] pb-8",children:n.jsx(Be,{config:{margin:{label:"Margin Index",color:"#3174de"}},children:n.jsxs(Ws,{data:t,margin:{left:10,bottom:5},children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"month",tick:{fontSize:11}}),n.jsx(Pe,{domain:[95,130],width:55,children:n.jsx(at,{value:"Margin Index",angle:-90,position:"insideLeft",style:{textAnchor:"middle",fontSize:10},offset:0})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(Qn,{type:"monotone",dataKey:"margin",name:"Margin",stroke:"#3174de",strokeWidth:3,dot:{r:4},activeDot:{r:6}})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Inventory Accuracy: Before vs After"})}),n.jsx(V,{className:"h-[350px] pb-8",children:n.jsx(Be,{config:{accuracy:{label:"Accuracy (%)",color:"#3174de"}},children:n.jsxs(gn,{data:a,margin:{left:10,bottom:5},children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"category",tick:{fontSize:11}}),n.jsx(Pe,{domain:[0,100],width:55,children:n.jsx(at,{value:"Accuracy (%)",angle:-90,position:"insideLeft",style:{textAnchor:"middle",fontSize:11},offset:0})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(yt,{dataKey:"accuracy",name:"Accuracy",fill:"#3174de",radius:[4,4,0,0]})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsx(W,{children:"Forecast Accuracy Improvement"})}),n.jsx(V,{className:"h-[400px] pb-8",children:n.jsx(Be,{config:{accuracy:{label:"Forecast Accuracy (%)",color:"#dc4f8f"}},children:n.jsxs(gn,{data:s,margin:{left:10,bottom:30},children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"category",angle:-25,textAnchor:"end",height:90,tick:{fontSize:10},interval:0}),n.jsx(Pe,{domain:[0,100],width:55,children:n.jsx(at,{value:"Accuracy (%)",angle:-90,position:"insideLeft",style:{textAnchor:"middle",fontSize:11},offset:0})}),n.jsx(bt,{content:n.jsx(pt,{})}),n.jsx(yt,{dataKey:"accuracy",name:"Forecast Accuracy",fill:"#dc4f8f",radius:[4,4,0,0]})]})})})]})]}),n.jsxs("div",{className:"bg-gray-50 p-8 rounded-xl",children:[n.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Key Outcomes"}),n.jsxs("div",{className:"grid md:grid-cols-4 gap-6",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-appblue mb-2",children:"38%"}),n.jsx("p",{className:"text-gray-600",children:"Faster Fulfilment"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-apppink mb-2",children:"23%"}),n.jsx("p",{className:"text-gray-600",children:"Margin Recovered"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-appblue mb-2",children:"€2.1M"}),n.jsx("p",{className:"text-gray-600",children:"Dead Stock Unlocked"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-apppink mb-2",children:"97.3%"}),n.jsx("p",{className:"text-gray-600",children:"Inventory Accuracy"})]})]})]})]})]})}),n.jsx("section",{className:"py-16 bg-gray-50",children:n.jsxs("div",{className:"section",children:[n.jsx(I,{title:"Frequently Asked Questions",subtitle:"Common questions about AI-driven inventory and fulfilment optimisation for manufacturers",alignment:"center"}),n.jsx("div",{className:"max-w-3xl mx-auto",children:n.jsx(qa,{type:"single",collapsible:!0,className:"w-full",children:i.map((r,l)=>n.jsxs(Vt,{value:`item-${l}`,children:[n.jsx(Ht,{className:"text-left text-lg font-medium !text-appblue hover:!text-appblue",children:r.shortQuestion}),n.jsxs($t,{className:"text-gray-600",children:[n.jsx("p",{className:"font-medium text-foreground mb-2",children:r.question}),n.jsx("p",{children:r.answer})]})]},l))})})]})}),n.jsx("section",{className:"py-16 bg-white",children:n.jsx("div",{className:"section",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"max-w-4xl mx-auto text-center",children:[n.jsx("h3",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Craftsmanship Meets Intelligence"}),n.jsx("p",{className:"text-lg text-gray-600 mb-8",children:"By combining lean operational fixes with an ML-driven intelligence layer, we helped an independent timepiece manufacturer recover 23% margin, unlock €2.1M in trapped inventory capital, and cut fulfilment time by 38%-all within 90 days. The engagement proved that mid-market manufacturers do not need enterprise-scale budgets to achieve enterprise-grade operational outcomes."}),n.jsx("p",{className:"text-xl font-medium text-appblue",children:"The question for every manufacturer sitting on ageing stock and eroding margins: how much longer can you afford to operate without a demand signal?"})]})})})]})};var Iu="rovingFocusGroup.onEntryFocus",lE={bubbles:!1,cancelable:!0},Gl="RovingFocusGroup",[Xh,Rw,oE]=bm(Gl),[cE,bd]=Ba(Gl,[oE]),[dE,uE]=cE(Gl),Iw=p.forwardRef((e,t)=>
vendor: 3,224 bytes, line 249
249n.jsx(Xh.Provider,{scope:e.__scopeRovingFocusGroup,children:n.jsx(Xh.Slot,{scope:e.__scopeRovingFocusGroup,children:n.jsx(hE,{...e,ref:t})})}));Iw.displayName=Gl;var hE=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:a,orientation:s,loop:i=!1,dir:r,currentTabStopId:l,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...m}=e,f=p.useRef(null),h=Te(t,f),w=Cl(r),[v,j]=Ta({prop:l,defaultProp:o??null,onChange:c,caller:Gl}),[y,x]=p.useState(!1),g=St(d),b=Rw(a),N=p.useRef(!1),[A,S]=p.useState(0);return p.useEffect(()=>{const _=f.current;if(_)return _.addEventListener(Iu,g),()=>_.removeEventListener(Iu,g)},[g]),n.jsx(dE,{scope:a,orientation:s,dir:w,loop:i,currentTabStopId:v,onItemFocus:p.useCallback(_=>j(_),[j]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>S(_=>_+1),[]),onFocusableItemRemove:p.useCallback(()=>S(_=>_-1),[]),children:n.jsx(Y.div,{tabIndex:y||A===0?-1:0,"data-orientation":s,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{N.current=!0}),onFocus:F(e.onFocus,_=>{const O=!N.current;if(_.target===_.currentTarget&&O&&!y){const R=new CustomEvent(Iu,lE);if(_.currentTarget.dispatchEvent(R),!R.defaultPrevented){const H=b().filter(C=>C.focusable),X=H.find(C=>C.active),me=H.find(C=>C.id===v),ce=[X,me,...H].filter(Boolean).map(C=>C.ref.current);Lw(ce,u)}}N.current=!1}),onBlur:F(e.onBlur,()=>x(!1))})})}),Mw="RovingFocusGroupItem",Dw=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:a,focusable:s=!0,active:i=!1,tabStopId:r,children:l,...o}=e,c=zn(),d=r||c,u=uE(Mw,a),m=u.currentTabStopId===d,f=Rw(a),{onFocusableItemAdd:h,onFocusableItemRemove:w,currentTabStopId:v}=u;return p.useEffect(()=>{if(s)return h(),()=>w()},[s,h,w]),n.jsx(Xh.ItemSlot,{scope:a,id:d,focusable:s,active:i,children:n.jsx(Y.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...o,ref:t,onMouseDown:F(e.onMouseDown,j=>{s?u.onItemFocus(d):j.preventDefault()}),onFocus:F(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:F(e.onKeyDown,j=>{if(j.key==="Tab"&&j.shiftKey){u.onItemShiftTab();return}if(j.target!==j.currentTarget)return;const y=pE(j,u.orientation,u.dir);if(y!==void 0){if(j.metaKey||j.ctrlKey||j.altKey||j.shiftKey)return;j.preventDefault();let g=f().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")g.reverse();else if(y==="prev"||y==="next"){y==="prev"&&g.reverse();const b=g.indexOf(j.currentTarget);g=u.loop?gE(g,b+1):g.slice(b+1)}setTimeout(()=>Lw(g))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:v!=null}):l})})});Dw.displayName=Mw;var mE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fE(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pE(e,t,a){const s=fE(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return mE[s]}function Lw(e,t=!1){const a=document.activeElement;for(const s of e)if(s===a||(s.focus({preventScroll:t}),document.activeElement!==a))return}function gE(e,t){return e.map((a,s)=>e[(t+s)%e.length])}var Pw=Iw,zw=Dw,Bw="Toggle",zf=p.forwardRef((e,t)=>
249{const{pressed:a,defaultPressed:s,onPressedChange:i,...r}=e,[l,o]=Ta({prop:a,onChange:i,defaultProp:s??!1,caller:Bw});return n.jsx(Y.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...r,ref:t,onClick:F(e.onClick,()=>{e.disabled||o(!l)})})});zf.displayName=Bw;var Uw=zf,is="ToggleGroup",[qw]=Ba(is,[bd]),Vw=bd(),Bf=k.forwardRef((e,t)=>{const{type:a,...s}=e;if(a==="single"){const i=s;return n.jsx(xE,{...i,ref:t})}if(a==="multiple"){const i=s;return n.jsx(vE,{...i,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${is}\``)});Bf.displayName=is;var[Hw,$w]=qw(is),xE=k.forwardRef((e,t)=>{const{value:a,defaultValue:s,onValueChange:i=()=>{},...r}=e,[l,o]=Ta({prop:a,defaultProp:s??"",onChange:i,caller:is});return n.jsx(Hw,{scope:e.__scopeToggleGroup,type:"single",value:k.useMemo(()=>l?[l]:[],[l]),onItemActivate:o,onItemDeactivate:k.useCallback(()=>o(""),[o]),children:n.jsx(Gw,{...r,ref:t})})}),vE=k.forwardRef((e,t)=>{const{value:a,defaultValue:s,onValueChange:i=()=>{},...r}=e,[l,o]=Ta({prop:a,defaultProp:s??[],onChange:i,caller:is}),c=k.useCallback(u=>o((m=[])=>[...m,u]),[o]),d=k.useCallback(u=>o((m=[])=>m.filter(f=>f!==u)),[o]);return n.jsx(Hw,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:c,onItemDeactivate:d,children:n.jsx(Gw,{...r,ref:t})})});Bf.displayName=is;var[yE,bE]=qw(is),Gw=k.forwardRef((e,t)=>{const{__scopeToggleGroup:a,disabled:s=!1,rovingFocus:i=!0,orientation:r,dir:l,loop:o=!0,...c}=e,d=Vw(a),u=Cl(l),m={role:"group",dir:u,...c};return n.jsx(yE,{scope:a,rovingFocus:i,disabled:s,children:i?n.jsx(Pw,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:n.jsx(Y.div,{...m,ref:t})}):n.jsx(Y.div,{...m,ref:t})})}),Pc="ToggleGroupItem",Ww=k.forwardRef((e,t)=>{const a=$w(Pc,e.__scopeToggleGroup),s=bE(Pc,e.__scopeToggleGroup),i=Vw(e.__scopeToggleGroup),r=a.value.includes(e.value),l=s.disabled||e.disabled,o={...e,pressed:r,disabled:l},c=k.useRef(null);return s.rovingFocus?n.jsx(zw,{asChild:!0,...i,focusable:!l,active:r,ref:c,children:n.jsx(hx,{...o,ref:t})}):n.jsx(hx,{...o,ref:t})});Ww.displayName=Pc;var hx=k.forwardRef((e,t)=>{const{__scopeToggleGroup:a,value:s,...i}=e,r=$w(Pc,a),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},o=r.type==="single"?l:void 0;return n.jsx(zf,{...o,...i,ref:t,onPressedChange:c=>{c?r.onItemActivate(s):r.onItemDeactivate(s)}})}),Fw=Bf,Yw=Ww;const Kw=_l("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),wE=p.forwardRef(({className:e,variant:t,size:a,...s},i)=>n.jsx(Uw,{ref:i,className:P(Kw({variant:t,size:a,className:e})),...s}));wE.displayName=Uw.displayName;const Qw=p.createContext({size:"default",variant:"default"}),Jh=p.forwardRef(({className:e,variant:t,size:a,children:s,...i},r)=>n.jsx(Fw,{ref:r,className:P("flex items-center justify-center gap-1",e),...i,children:n.jsx(Qw.Provider,{value:{variant:t,size:a},children:s})}));Jh.displayName=Fw.displayName;const Xa=p.forwardRef(({className:e,children:t,variant:a,size:s,...i},r)=>{const l=p.useContext(Qw);return n.jsx(Yw,{ref:r,className:P(Kw({variant:l.variant||a,size:l.size||s}),e),...i,children:t})});Xa.displayName=Yw.displayName;var jE="Label",Xw=p.forwardRef((e,t)=>n.jsx(Y.label,{...e,ref:t,onMouseDown:a=>{var i;a.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));Xw.displayName=jE;var Jw=Xw;const NE=_l("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Q=p.forwardRef(({className:e,...t},a)=>n.jsx(Jw,{ref:a,className:P(NE(),e),...t}));Q.displayName=Jw.displayName;var SE="Separator",mx="horizontal",AE=["horizontal","vertical"],Zw=p.forwardRef((e,t)=>
249{const{decorative:a,orientation:s=mx,...i}=e,r=kE(s)?s:mx,o=a?{role:"none"}:{"aria-orientation":r==="vertical"?r:void 0,role:"separator"};return n.jsx(Y.div,{"data-orientation":r,...o,...i,ref:t})});Zw.displayName=SE;function kE(e){return AE.includes(e)}var ej=Zw;const Zh=p.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...s},i)=>n.jsx(ej,{ref:i,decorative:a,orientation:t,className:P("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...s}));Zh.displayName=ej.displayName;const TE=()=>{const{textSize:e,textColor:t,setTextSize:a,setTextColor:s}=H2(),{toast:i}=lb();p.useEffect(()=>{window.scrollTo(0,0)},[]);const r=()=>{let c="text-base";switch(e){case"small":c="text-sm";break;case"normal":c="text-base";break;case"large":c="text-lg";break;case"xl":c="text-xl";break;default:c="text-base"}let d="text-gray-800";switch(t){case"default":d="text-gray-800";break;case"white":d="text-white bg-gray-800 p-2 rounded";break;case"blue":d="text-appblue";break;case"yellow":d="text-yellow-600";break;default:d="text-gray-800"}return`${c} ${d} transition-all duration-300`},l=c=>{c&&(a(c),i({title:"Text size updated",description:"Your text size preference has been saved."}))},o=c=>{c&&(s(c),i({title:"Text color updated",description:"Your text color preference has been saved."}))};return n.jsx(Xt,{children:n.jsx("section",{className:"py-16 md:py-24",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-6 md:px-12",children:[n.jsx(T.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"mb-12 text-center",children:n.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Our Accessibility Commitment"})}),n.jsxs(T.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"prose prose-lg max-w-none",children:[n.jsxs("div",{className:"bg-white p-8 rounded-xl shadow-md border border-gray-100 my-8",children:[n.jsx("h2",{className:"text-3xl font-semibold mb-4",children:"Our Commitment"}),n.jsx("p",{className:"mb-4",children:"Appenue AI is committed to ensuring digital accessibility for people with disabilities. We are continually improving the user experience for everyone, and applying the relevant accessibility standards."}),n.jsx("h2",{className:"text-3xl font-semibold my-6",children:"Compliance Status"}),n.jsxs("p",{className:"mb-4",children:["Our website follows the World Wide Web Consortium's",n.jsxs("a",{href:"https://www.w3.org/WAI/standards-guidelines/wcag/",target:"_blank",rel:"noopener noreferrer",className:"text-appblue hover:underline mx-1 inline-flex items-center",children:["Web Content Accessibility Guidelines (WCAG) 2.1 Level AA standards",n.jsx(dv,{className:"w-4 h-4 ml-1"})]})]})]}),n.jsxs("div",{className:"bg-white p-8 rounded-xl shadow-md border border-gray-100 my-8",children:[n.jsxs("h2",{className:"text-3xl font-semibold mb-6 flex items-center",children:[n.jsx(Ug,{className:"w-8 h-8 text-appblue mr-2"}),"Interactive Accessibility Features"]}),n.jsxs("div",{className:"my-8",children:[n.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-4 mb-4",children:[n.jsxs(Q,{htmlFor:"text-size",className:"text-xl font-medium flex items-center",children:[n.jsx(Ug,{className:"w-5 h-5 mr-2 text-appblue"}),"Text Size Adjustment:"]}),n.jsxs(Jh,{type:"single",id:"text-size",value:e,onValueChange:l,className:"justify-start",children:[n.jsx(Xa,{value:"small","aria-label":"Small text",children:"Small"}),n.jsx(Xa,{value:"normal","aria-label":"Normal text",children:"Normal"}),n.jsx(Xa,{value:"large","aria-label":"Large text",children:"Large"}),n.jsx(Xa,{value:"xl","aria-label":"Extra large text",children:"Extra Large"})]})]}),n.jsx("div",{className:`p-4 border rounded-md ${r()}`,children:"This text will change size based on your selection."}),n.jsxs("ul",{className:"list-disc pl-6 mt-4 space-y-2 text-gray-600",children:[n.jsx("li",{children:"Your selection will apply to text across the entire website."}),n.jsx("li",{children:"Your preference will be saved for future visits."})]})]}),n.jsx(Zh,{className:"my-8"}),n.jsxs("div",{className:"my-8",children:[n.jsxs("h3",{className:"text-xl font-medium mb-4 flex items-center",children:[n.jsx(Pg,{className:"w-5 h-5 mr-2 text-appblue"}),"Keyboard Navigation"]}
249),n.jsx("p",{className:"mb-4",children:"Try using Tab key to navigate through these buttons:"}),n.jsxs("div",{className:"flex flex-wrap gap-3",children:[n.jsx(B,{children:"First Button"}),n.jsx(B,{children:"Second Button"}),n.jsx(B,{children:"Third Button"})]})]}),n.jsx(Zh,{className:"my-8"}),n.jsxs("div",{className:"my-8",children:[n.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-4 mb-4",children:[n.jsxs(Q,{htmlFor:"text-color",className:"text-xl font-medium flex items-center",children:[n.jsx(Bk,{className:"w-5 h-5 mr-2 text-appblue"}),"Text Color Preferences:"]}),n.jsxs(Jh,{type:"single",id:"text-color",value:t,onValueChange:o,className:"justify-start",children:[n.jsx(Xa,{value:"default","aria-label":"Default text color",children:"Default"}),n.jsx(Xa,{value:"white","aria-label":"White text color",children:"White"}),n.jsx(Xa,{value:"blue","aria-label":"Blue text color",children:"Blue"}),n.jsx(Xa,{value:"yellow","aria-label":"Yellow text color",children:"Yellow"})]})]}),n.jsx("div",{className:`p-4 border rounded-md ${r()}`,children:"This text will change color based on your selection."}),n.jsxs("ul",{className:"list-disc pl-6 mt-4 space-y-2 text-gray-600",children:[n.jsx("li",{children:"Your selection will apply to text across the entire website."}),n.jsx("li",{children:"Your preference will be saved for future visits."})]})]})]}),n.jsxs("div",{className:"bg-white p-8 rounded-xl shadow-md border border-gray-100 my-8",children:[n.jsx("h2",{className:"text-3xl font-semibold mb-6",children:"Accessibility Features"}),n.jsxs("div",{className:"grid md:grid-cols-2 gap-6 my-8",children:[n.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl flex items-start",children:[n.jsx(Eb,{className:"w-6 h-6 text-appblue mr-4 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Visual Design"}),n.jsx("p",{className:"text-gray-700",children:"High contrast color schemes, clear typography, and resizable text support."})]})]}),n.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl flex items-start",children:[n.jsx(Pg,{className:"w-6 h-6 text-appblue mr-4 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Navigation"}),n.jsx("p",{className:"text-gray-700",children:"Full keyboard navigation support, clear focus indicators, and consistent navigation structure."})]})]}),n.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl flex items-start",children:[n.jsx(Ik,{className:"w-6 h-6 text-appblue mr-4 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Images"}),n.jsx("p",{className:"text-gray-700",children:"All images include descriptive alternative text and captions where necessary."})]})]}),n.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl flex items-start",children:[n.jsx(Jn,{className:"w-6 h-6 text-appblue mr-4 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Forms"}),n.jsx("p",{className:"text-gray-700",children:"All form fields are properly labeled and include clear error messages and instructions."})]})]}),n.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl flex items-start col-span-full",children:[n.jsx($k,{className:"w-6 h-6 text-appblue mr-4 flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Content"}),n.jsx("p",{className:"text-gray-700",children:"Clear headings, structured content, and readable font sizes across all devices."})]})]})]})]}),n.jsx("h2",{className:"text-3xl font-semibold my-8",children:"Contact Us"}),n.jsx("p",{className:"mb-4",children:"We welcome your feedback on the accessibility of Appenue AI website. If you encounter accessibility barriers or have suggestions for improvement, please:"}),n.jsxs("ul",{className:"list-disc pl-6 space-y-2 mb-8",children:[n.jsx("li",{children:n.jsx(Ge,{to:"/contact",className:"text-appblue hover:underline",children:"Visit our Contact page"})}),n.jsxs("li",{children:["Email us at"," ",n.jsx("a",{href:"mailto:[email protected]",className:"text-appblue hover:underline",children:"[email protected]"})]})]}),n.jsx("div",{className:"mt-12 text-center",children:n.jsx(Ge,{to:"/contact",children:n.jsx(B,{size:"lg",className:"bg-appblue",children:"Contact Us for Assistance"})})})]})]})})})},_E=()=>n.jsx(Xt,{children:n.jsx("section",{className:"py-16 md:py-24",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-6 md:px-12",children:[n.jsx(T.div,{initial:{opacity:0,y:20}
249,animate:{opacity:1,y:0},transition:{duration:.5},className:"mb-12 text-center",children:n.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Your Privacy Matters"})}),n.jsxs(T.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-xl mb-8",children:"At Appenue AI, we respect your privacy and are committed to protecting your personal data. This policy explains how we collect, use, store, and safeguard your information in compliance with GDPR, CCPA, and other global privacy regulations."}),n.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl border border-gray-200 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(Ok,{className:"w-6 h-6 mr-2 text-appblue"}),"Information We Collect"]}),n.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[n.jsx("li",{children:"Personal data you provide (e.g., name, email, company name, message)."}),n.jsx("li",{children:"Browsing data collected through cookies and analytics tools."}),n.jsx("li",{children:"Transactional data for payments processed via PayPal."})]})]}),n.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl border border-gray-200 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(Sm,{className:"w-6 h-6 mr-2 text-appblue"}),"How We Use Your Data"]}),n.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[n.jsx("li",{children:"To provide and improve our services."}),n.jsx("li",{children:"To analyse website traffic and enhance user experience."}),n.jsx("li",{children:"To comply with legal obligations and security requirements."})]})]}),n.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl border border-gray-200 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(Mk,{className:"w-6 h-6 mr-2 text-appblue"}),"Your Rights & Choices"]}),n.jsxs("ul",{className:"space-y-4",children:[n.jsxs("li",{className:"flex items-start",children:[n.jsx(da,{className:"w-5 h-5 mr-2 text-appblue mt-1"}),n.jsxs("div",{children:[n.jsx("strong",{children:"Access & Rectification"})," - You can request a copy of your personal data."]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx(da,{className:"w-5 h-5 mr-2 text-appblue mt-1"}),n.jsxs("div",{children:[n.jsx("strong",{children:"Opt-Out"})," - You can unsubscribe from marketing communications."]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx(da,{className:"w-5 h-5 mr-2 text-appblue mt-1"}),n.jsxs("div",{children:[n.jsx("strong",{children:"Data Deletion"})," - You have the right to request the removal of your data."]})]})]})]}),n.jsxs("p",{className:"my-8",children:["For privacy enquiries, contact"," ",n.jsx("a",{href:"mailto:[email protected]",className:"text-appblue hover:underline",children:"[email protected]"})," ","or use our"," ",n.jsx(Ge,{to:"/contact",className:"text-appblue hover:underline",children:"Contact Form"}),"."]}),n.jsx("div",{className:"mt-12 text-center",children:n.jsx(Ge,{to:"/contact",children:n.jsx(B,{size:"lg",className:"bg-appblue",children:"Contact Us With Privacy Questions"})})})]})]})})}),EE=()=>{const e=new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});return n.jsx(Xt,{children:n.jsx("section",{className:"py-16 md:py-24",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-6 md:px-12",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"mb-12 text-center",children:[n.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Terms & Conditions of Using Appenue AI"}),n.jsxs("p",{className:"text-gray-600",children:["Effective Date: ",e]})]}),n.jsxs(T.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"prose prose-lg max-w-none",children:[n.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(Jn,{className:"w-6 h-6 mr-2 text-appblue"}),"1. Introduction"]}),n.jsx("p",{children:"By accessing and using this website, you agree to comply with these Terms of Service. If you do not agree, please refrain from using our website."})]}),n.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(Jn,{className:"w-6 h-6 mr-2 text-appblue"}),"2. Use of Services"]}),n.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[n.jsx("li",{children:"Appenue AI provides AI-driven consulting, business development, and market entry services."}),n.jsx("li",{children:"You may not misuse our services, interfere with website security, or engage in fraudulent activities."})]})]}),n.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(_b,{className:"w-6 h-6 mr-2 text-appblue"}),"3. Payment & Transactions"]}),n.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[n.jsx("li",{children:"All payments for services are securely processed via PayPal."}),n.jsx("li",{children:"Refunds are handled on a case-by-case basis, in line with our service agreements."})]})]}),n.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(Tb,{className:"w-6 h-6 mr-2 text-appblue"}),"4. Intellectual Property"]}),n.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[n.jsx("li",{children:"All content on this website (text, graphics, images, logos) is the property of Appenue AI."}),n.jsx("li",{children:"Unauthorised reproduction or distribution of content is prohibited."})]})]}),n.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(Wi,{className:"w-6 h-6 mr-2 text-appblue"}),"5. Limitation of Liability"]}),n.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[n.jsx("li",{children:"Appenue AI is not liable for indirect or consequential damages resulting from website use."}),n.jsx("li",{children:"We do not guarantee uninterrupted access to our services due to technical maintenance or external disruptions."})]})]}),n.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(qk,{className:"w-6 h-6 mr-2 text-appblue"}),"6. Governing Law"]}),n.jsx("p",{children:"These Terms are governed by the laws of the State of Israel."})]}),n.jsxs("p",{className:"my-8",children:["For legal enquiries, contact"," ",n.jsx("a",{href:"mailto:[email protected]",className:"text-appblue hover:underline",children:"[email protected]"})," ","or use our"," ",n.jsx(Ge,{to:"/contact",className:"text-appblue hover:underline",children:"Contact Form"}),"."]}),n.jsx("div",{className:"mt-12 text-center",children:n.jsx(Ge,{to:"/contact",children:n.jsx(B,{size:"lg",className:"bg-appblue",children:"Contact Legal Department"})})})]})]})})})},CE=()=>{const e=new Date().getFullYear();return n.jsx(Xt,{children:n.jsx("section",{className:"py-16 md:py-24",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-6 md:px-12",children:[n.jsx(T.div,{initial:{opacity:0,y:20}
249,animate:{opacity:1,y:0},transition:{duration:.5},className:"mb-12 text-center",children:n.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Intellectual Property & Legal Disclaimer"})}),n.jsxs(T.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"prose prose-lg max-w-none",children:[n.jsxs("div",{className:"bg-white p-8 rounded-xl shadow-md border border-gray-100 my-8 text-center",children:[n.jsx(Tb,{className:"w-12 h-12 mx-auto text-appblue mb-4"}),n.jsxs("p",{className:"text-xl font-semibold",children:["© ",e," Appenue AI. All Rights Reserved."]}),n.jsx("p",{className:"mt-2 text-gray-600",children:"All content, including text, images, designs, trademarks, and data on this website, is protected by copyright and intellectual property laws."})]}),n.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl border border-gray-200 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(Hk,{className:"w-6 h-6 mr-2 text-appblue"}),"Usage Restrictions"]}),n.jsxs("ul",{className:"space-y-4",children:[n.jsxs("li",{className:"flex items-start",children:[n.jsx(Jn,{className:"w-5 h-5 mr-2 text-appblue mt-1"}),n.jsxs("div",{children:[n.jsx("strong",{children:"No Redistribution"})," - Content may not be copied, distributed, or republished without prior written permission."]})]}),n.jsxs("li",{className:"flex items-start",children:[n.jsx(Jn,{className:"w-5 h-5 mr-2 text-appblue mt-1"}),n.jsxs("div",{children:[n.jsx("strong",{children:"No Commercial Use"})," - You may not use our materials for commercial purposes without authorisation."]})]})]})]}),n.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl border border-gray-200 my-8",children:[n.jsxs("h2",{className:"text-2xl font-semibold mb-4 flex items-center",children:[n.jsx(Ro,{className:"w-6 h-6 mr-2 text-appblue"}),"Trademarks & Third-Party Assets"]}),n.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[n.jsx("li",{children:"All trademarks, logos, and service marks used on this site are the property of Appenue AI or respective third-party partners."}),n.jsx("li",{children:"Any external resources linked on this website belong to their respective owners."})]})]}),n.jsxs("p",{className:"my-8",children:["For IP or legal enquiries, contact"," ",n.jsx("a",{href:"mailto:[email protected]",className:"text-appblue hover:underline",children:"[email protected]"})," ","or use our"," ",n.jsx(Ge,{to:"/contact",className:"text-appblue hover:underline",children:"Contact Form"}),"."]}),n.jsx("div",{className:"mt-12 text-center",children:n.jsx(Ge,{to:"/contact",children:n.jsx(B,{size:"lg",className:"bg-appblue",children:"Contact for IP Inquiries"})})})]})]})})})},$=p.forwardRef(({className:e,type:t,...a},s)=>n.jsx("input",{type:t,className:P("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:s,...a}));$.displayName="Input";var wd="Tabs",[OE]=Ba(wd,[bd]),tj=bd(),[RE,Uf]=OE(wd),aj=p.forwardRef((e,t)=>{const{__scopeTabs:a,value:s,onValueChange:i,defaultValue:r,orientation:l="horizontal",dir:o,activationMode:c="automatic",...d}=e,u=Cl(o),[m,f]=Ta({prop:s,onChange:i,defaultProp:r??"",caller:wd});return n.jsx(RE,{scope:a,baseId:zn(),value:m,onValueChange:f,orientation:l,dir:u,activationMode:c,children:n.jsx(Y.div,{dir:u,"data-orientation":l,...d,ref:t})})});aj.displayName=wd;var nj="TabsList",sj=p.forwardRef((e,t)=>{const{__scopeTabs:a,loop:s=!0,...i}=e,r=Uf(nj,a),l=tj(a);return n.jsx(Pw,{asChild:!0,...l,orientation:r.orientation,dir:r.dir,loop:s,children:n.jsx(Y.div,{role:"tablist","aria-orientation":r.orientation,...i,ref:t})})});sj.displayName=nj;var ij="TabsTrigger",rj=p.forwardRef((e,t)=>{const{__scopeTabs:a,value:s,disabled:i=!1,...r}=e,l=Uf(ij,a),o=tj(a),c=cj(l.baseId,s),d=dj(l.baseId,s),u=s===l.value;return n.jsx(zw,{asChild:!0,...o,focusable:!i,active:u,children:n.jsx(Y.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...r,ref:t,onMouseDown:F(e.onMouseDown,m=>{!i&&m.button===0&&m.ctrlKey===!1?l.onValueChange(s):m.preventDefault()}),onKeyDown:F(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&l.onValueChange(s)}
249),onFocus:F(e.onFocus,()=>{const m=l.activationMode!=="manual";!u&&!i&&m&&l.onValueChange(s)})})})});rj.displayName=ij;var lj="TabsContent",oj=p.forwardRef((e,t)=>{const{__scopeTabs:a,value:s,forceMount:i,children:r,...l}=e,o=Uf(lj,a),c=cj(o.baseId,s),d=dj(o.baseId,s),u=s===o.value,m=p.useRef(u);return p.useEffect(()=>{const f=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(f)},[]),n.jsx(Ua,{present:i||u,children:({present:f})=>n.jsx(Y.div,{"data-state":u?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:f&&r})})});oj.displayName=lj;function cj(e,t){return`${e}-trigger-${t}`}function dj(e,t){return`${e}-content-${t}`}var IE=aj,uj=sj,hj=rj,mj=oj;const ei=IE,rs=p.forwardRef(({className:e,...t},a)=>n.jsx(uj,{ref:a,className:P("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));rs.displayName=uj.displayName;const Me=p.forwardRef(({className:e,...t},a)=>n.jsx(hj,{ref:a,className:P("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Me.displayName=hj.displayName;const De=p.forwardRef(({className:e,...t},a)=>n.jsx(mj,{ref:a,className:P("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));De.displayName=mj.displayName;const ME="modulepreload",DE=function(e){return"/"+e},fx={},Wl=function(t,a,s){let i=Promise.resolve();if(a&&a.length>0&&typeof window<"u"){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),o=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(a.map(c=>{if(c=DE(c),c in fx)return;fx[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":ME,d||(m.as="script"),m.crossOrigin="",m.href=c,o&&m.setAttribute("nonce",o),document.head.appendChild(m),d)return new Promise((f,h)=>{m.addEventListener("load",f),m.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(l){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=l,window.dispatchEvent(o),!o.defaultPrevented)throw l}return i.then(l=>{for(const o of l||[])o.status==="rejected"&&r(o.reason);return t().catch(r)})},LE=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...a)=>Wl(async()=>{const{default:s}=await Promise.resolve().then(()=>vr);return{default:s}},void 0).then(({default:s})=>s(...a)):t=fetch,(...a)=>t(...a)};class qf extends Error{constructor(t,a="FunctionsError",s){super(t),this.name=a,this.context=s}}class PE extends qf{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class zE extends qf{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class BE extends qf{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var em;(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"})(em||(em={}));var UE=function(e,t,a,s){function i(r){return r instanceof a?r:new a(function(l){l(r)})}return new(a||(a=Promise))(function(r,l){function o(u){try{d(s.next(u))}catch(m){l(m)}}function c(u){try{d(s.throw(u))}catch(m){l(m)}}function d(u){u.done?r(u.value):i(u.value).then(o,c)}d((s=s.apply(e,t||[])).next())})};class qE{constructor(t,{headers:a={},customFetch:s,region:i=em.Any}={}){this.url=t,this.headers=a,this.region=i,this.fetch=LE(s)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,a={}){var s;return UE(this,void 0,void 0,function*(){try{const{headers:i,method:r,body:l}=a;let o={},{region:c}=a;c||(c=this.region),c&&c!=="any"&&(o["x-region"]=c);let d;l&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&(typeof Blob<"u"&&l instanceof Blob||l instanceof ArrayBuffer?(o["Content-Type"]="application/octet-stream",d=l):typeof l=="string"?(o["Content-Type"]="text/plain",d=l):typeof FormData<"u"&&l instanceof FormData?d=l:(o["Content-Type"]="application/json",d=JSON.stringify(l)));const u=yield this.fetch(`${this.url}/${t}`,{method:r||"POST",headers:Object.assign(Object.assign(Object.assign({},o),this.headers),i),body:d}).catch(w=>{throw new PE(w)}),m=u.headers.get("x-relay-error");
249if(m&&m==="true")throw new zE(u);if(!u.ok)throw new BE(u);let f=((s=u.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),h;return f==="application/json"?h=yield u.json():f==="application/octet-stream"?h=yield u.blob():f==="text/event-stream"?h=u:f==="multipart/form-data"?h=yield u.formData():h=yield u.text(),{data:h,error:null}}catch(i){return{data:null,error:i}}})}}var It={},Vf={},jd={},Fl={},Nd={},Sd={},VE=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},or=VE();const HE=or.fetch,fj=or.fetch.bind(or),pj=or.Headers,$E=or.Request,GE=or.Response,vr=Object.freeze(Object.defineProperty({__proto__:null,Headers:pj,Request:$E,Response:GE,default:fj,fetch:HE},Symbol.toStringTag,{value:"Module"})),WE=_N(vr);var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0});let FE=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
249de=t.code}};Ad.default=FE;var gj=ma&&ma.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sd,"__esModule",{value:!0});const YE=gj(WE),KE=gj(Ad);let QE=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=YE.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,a){return this.headers=Object.assign({},this.headers),this.headers[t]=a,this}then(t,a){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const s=this.fetch;let i=s(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async r=>{var l,o,c;let d=null,u=null,m=null,f=r.status,h=r.statusText;if(r.ok){if(this.method!=="HEAD"){const y=await r.text();y===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?u=y:u=JSON.parse(y))}const v=(l=this.headers.Prefer)===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),j=(o=r.headers.get("content-range"))===null||o===void 0?void 0:o.split("/");v&&j&&j.length>1&&(m=parseInt(j[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(u)&&(u.length>1?(d={code:"PGRST116",details:`Results contain ${u.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},u=null,m=null,f=406,h="Not Acceptable"):u.length===1?u=u[0]:u=null)}else{const v=await r.text();try{d=JSON.parse(v),Array.isArray(d)&&r.status===404&&(u=[],d=null,f=200,h="OK")}catch{r.status===404&&v===""?(f=204,h="No Content"):d={message:v}}if(d&&this.isMaybeSingle&&(!((c=d==null?void 0:d.details)===null||c===void 0)&&c.includes("0 rows"))&&(d=null,f=200,h="OK"),d&&this.shouldThrowOnError)throw new KE.default(d)}return{error:d,data:u,count:m,status:f,statusText:h}});return this.shouldThrowOnError||(i=i.catch(r=>{var l,o,c;return{error:{message:`${(l=r==null?void 0:r.name)!==null&&l!==void 0?l:"FetchError"}: ${r==null?void 0:r.message}`,details:`${(o=r==null?void 0:r.stack)!==null&&o!==void 0?o:""}`,hint:"",code:`${(c=r==null?void 0:r.code)!==null&&c!==void 0?c:""}`},data:null,count:null,status:0,statusText:""}})),i.then(t,a)}returns(){return this}overrideTypes(){return this}};Sd.default=QE;var XE=ma&&ma.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nd,"__esModule",{value:!0});const JE=XE(Sd);let ZE=class extends JE.default{select(t){let a=!1;const s=(t??"*").split("").map(i=>/\s/.test(i)&&!a?"":(i==='"'&&(a=!a),i)).join("");return this.url.searchParams.set("select",s),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:a=!0,nullsFirst:s,foreignTable:i,referencedTable:r=i}={}){const l=r?`${r}.order`:"order",o=this.url.searchParams.get(l);return this.url.searchParams.set(l,`${o?`${o},`:""}${t}.${a?"asc":"desc"}${s===void 0?"":s?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:a,referencedTable:s=a}={}){const i=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${t}`),this}range(t,a,{foreignTable:s,referencedTable:i=s}={}){const r=typeof i>"u"?"offset":`${i}.offset`,l=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(r,`${t}`),this.url.searchParams.set(l,`${a-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
249explain({analyze:t=!1,verbose:a=!1,settings:s=!1,buffers:i=!1,wal:r=!1,format:l="text"}={}){var o;const c=[t?"analyze":null,a?"verbose":null,s?"settings":null,i?"buffers":null,r?"wal":null].filter(Boolean).join("|"),d=(o=this.headers.Accept)!==null&&o!==void 0?o:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${l}; for="${d}"; options=${c};`,l==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};Nd.default=ZE;var eC=ma&&ma.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fl,"__esModule",{value:!0});const tC=eC(Nd);let aC=class extends tC.default{eq(t,a){return this.url.searchParams.append(t,`eq.${a}`),this}neq(t,a){return this.url.searchParams.append(t,`neq.${a}`),this}gt(t,a){return this.url.searchParams.append(t,`gt.${a}`),this}gte(t,a){return this.url.searchParams.append(t,`gte.${a}`),this}lt(t,a){return this.url.searchParams.append(t,`lt.${a}`),this}lte(t,a){return this.url.searchParams.append(t,`lte.${a}`),this}like(t,a){return this.url.searchParams.append(t,`like.${a}`),this}likeAllOf(t,a){return this.url.searchParams.append(t,`like(all).{${a.join(",")}}`),this}likeAnyOf(t,a){return this.url.searchParams.append(t,`like(any).{${a.join(",")}}`),this}ilike(t,a){return this.url.searchParams.append(t,`ilike.${a}`),this}ilikeAllOf(t,a){return this.url.searchParams.append(t,`ilike(all).{${a.join(",")}}`),this}ilikeAnyOf(t,a){return this.url.searchParams.append(t,`ilike(any).{${a.join(",")}}`),this}is(t,a){return this.url.searchParams.append(t,`is.${a}`),this}in(t,a){const s=Array.from(new Set(a)).map(i=>typeof i=="string"&&new RegExp("[,()]").test(i)?`"${i}"`:`${i}`).join(",");return this.url.searchParams.append(t,`in.(${s})`),this}contains(t,a){return typeof a=="string"?this.url.searchParams.append(t,`cs.${a}`):Array.isArray(a)?this.url.searchParams.append(t,`cs.{${a.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(a)}`),this}containedBy(t,a){return typeof a=="string"?this.url.searchParams.append(t,`cd.${a}`):Array.isArray(a)?this.url.searchParams.append(t,`cd.{${a.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(a)}`),this}rangeGt(t,a){return this.url.searchParams.append(t,`sr.${a}`),this}rangeGte(t,a){return this.url.searchParams.append(t,`nxl.${a}`),this}rangeLt(t,a){return this.url.searchParams.append(t,`sl.${a}`),this}rangeLte(t,a){return this.url.searchParams.append(t,`nxr.${a}`),this}rangeAdjacent(t,a){return this.url.searchParams.append(t,`adj.${a}`),this}overlaps(t,a){return typeof a=="string"?this.url.searchParams.append(t,`ov.${a}`):this.url.searchParams.append(t,`ov.{${a.join(",")}}`),this}textSearch(t,a,{config:s,type:i}={}){let r="";i==="plain"?r="pl":i==="phrase"?r="ph":i==="websearch"&&(r="w");const l=s===void 0?"":`(${s})`;return this.url.searchParams.append(t,`${r}fts${l}.${a}`),this}match(t){return Object.entries(t).forEach(([a,s])=>{this.url.searchParams.append(a,`eq.${s}`)}),this}not(t,a,s){return this.url.searchParams.append(t,`not.${a}.${s}`),this}or(t,{foreignTable:a,referencedTable:s=a}={}){const i=s?`${s}.or`:"or";return this.url.searchParams.append(i,`(${t})`),this}filter(t,a,s){return this.url.searchParams.append(t,`${a}.${s}`),this}};Fl.default=aC;var nC=ma&&ma.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jd,"__esModule",{value:!0});const Or=nC(Fl);let sC=class{constructor(t,{headers:a={},schema:s,fetch:i}){this.url=t,this.headers=a,this.schema=s,this.fetch=i}select(t,{head:a=!1,count:s}={}){const i=a?"HEAD":"GET";let r=!1;const l=(t??"*").split("").map(o=>/\s/.test(o)&&!r?"":(o==='"'&&(r=!r),o)).join("");return this.url.searchParams.set("select",l),s&&(this.headers.Prefer=`count=${s}`),new Or.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:a,defaultToNull:s=!0}={}){const i="POST",r=[];if(this.headers.Prefer&&r.push(this.headers.Prefer),a&&r.push(`count=${a}`),s||r.push("missing=default"),this.headers.Prefer=r.join(","),Array.isArray(t)){const l=t.reduce((o,c)=>o.concat(Object.keys(c)),[]);if(l.length>0){const o=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",o.join(","))}}return new Or.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:a,ignoreDuplicates:s=!1,count:i,defaultToNull:r=!0}={}){const l="POST",o=[`resolution=${s?"ignore":"merge"}-duplicates`];if(a!==void 0&&this.url.searchParams.set("on_conflict",a),this.headers.Prefer&&o.push(this.headers.Prefer),i&&o.push(`count=${i}`),r||o.push("missing=default"),this.headers.Prefer=o.join(","),Array.isArray(t)){const c=t.reduce((d,u)=>d.concat(Object.keys(u)),[]);if(c.length>0){const d=[...new Set(c)].map(u=>`"${u}"`);this.url.searchParams.set("columns",d.join(","))}}return new Or.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:a}={}){const s="PATCH",i=[];return this.headers.Prefer&&i.push(this.headers.Prefer),a&&i.push(`count=${a}`),this.headers.Prefer=i.join(","),new Or.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const a="DELETE",s=[];return t&&s.push(`count=${t}`),this.headers.Prefer&&s.unshift(this.headers.Prefer),this.headers.Prefer=s.join(","),new Or.default({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};jd.default=sC;var kd={},Td={};Object.defineProperty(Td,"__esModule",{value:!0});Td.version=void 0;Td.version="0.0.0-automated";Object.defineProperty(kd,"__esModule",{value:!0});kd.DEFAULT_HEADERS=void 0;const iC=Td;kd.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${iC.version}`};
249var xj=ma&&ma.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vf,"__esModule",{value:!0});const rC=xj(jd),lC=xj(Fl),oC=kd;let cC=class vj{constructor(t,{headers:a={},schema:s,fetch:i}={}){this.url=t,this.headers=Object.assign(Object.assign({},oC.DEFAULT_HEADERS),a),this.schemaName=s,this.fetch=i}from(t){const a=new URL(`${this.url}/${t}`);return new rC.default(a,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new vj(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,a={},{head:s=!1,get:i=!1,count:r}={}){let l;const o=new URL(`${this.url}/rpc/${t}`);let c;s||i?(l=s?"HEAD":"GET",Object.entries(a).filter(([u,m])=>m!==void 0).map(([u,m])=>[u,Array.isArray(m)?`{${m.join(",")}}`:`${m}`]).forEach(([u,m])=>{o.searchParams.append(u,m)})):(l="POST",c=a);const d=Object.assign({},this.headers);return r&&(d.Prefer=`count=${r}`),new lC.default({method:l,url:o,headers:d,schema:this.schemaName,body:c,fetch:this.fetch,allowEmpty:!1})}};Vf.default=cC;var yr=ma&&ma.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(It,"__esModule",{value:!0});It.PostgrestError=It.PostgrestBuilder=It.PostgrestTransformBuilder=It.PostgrestFilterBuilder=It.PostgrestQueryBuilder=It.PostgrestClient=void 0;const yj=yr(Vf);It.PostgrestClient=yj.default;const bj=yr(jd);It.PostgrestQueryBuilder=bj.default;const wj=yr(Fl);It.PostgrestFilterBuilder=wj.default;const jj=yr(Nd);It.PostgrestTransformBuilder=jj.default;const Nj=yr(Sd);It.PostgrestBuilder=Nj.default;const Sj=yr(Ad);It.PostgrestError=Sj.default;var dC=It.default={PostgrestClient:yj.default,PostgrestQueryBuilder:bj.default,PostgrestFilterBuilder:wj.default,PostgrestTransformBuilder:jj.default,PostgrestBuilder:Nj.default,PostgrestError:Sj.default};const{PostgrestClient:uC,PostgrestQueryBuilder:QO,PostgrestFilterBuilder:XO,PostgrestTransformBuilder:JO,PostgrestBuilder:ZO,PostgrestError:eR}=dC;let tm;typeof window>"u"?tm=require("ws"):tm=window.WebSocket;const hC="2.11.10",mC={"X-Client-Info":`realtime-js/${hC}`},fC="1.0.0",Aj=1e4,pC=1e3;var Gi;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Gi||(Gi={}));var jt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(jt||(jt={}));var Sa;(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"})(Sa||(Sa={}));var am;(function(e){e.websocket="websocket"})(am||(am={}));var Ss;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Ss||(Ss={}));class gC{constructor(){this.HEADER_LENGTH=1}decode(t,a){return t.constructor===ArrayBuffer?a(this._binaryDecode(t)):a(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const a=new DataView(t),s=new TextDecoder;return this._decodeBroadcast(t,a,s)}_decodeBroadcast(t,a,s){const i=a.getUint8(1),r=a.getUint8(2);let l=this.HEADER_LENGTH+2;const o=s.decode(t.slice(l,l+i));l=l+i;const c=s.decode(t.slice(l,l+r));l=l+r;const d=JSON.parse(s.decode(t.slice(l,t.byteLength)));return{ref:null,topic:o,event:c,payload:d}}}class kj{constructor(t,a){this.callback=t,this.timerCalc=a,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=a}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Ee;(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"})(Ee||(Ee={}));const px=(e,t,a={})=>{var s;const i=(s=a.skipTypes)!==null&&s!==void 0?s:[];return Object.keys(t).reduce((r,l)=>(r[l]=xC(l,e,t,i),r),{})},xC=(e,t,a,s)=>{const i=t.find(o=>o.name===e),r=i==null?void 0:i.type,l=a[e];return r&&!s.includes(r)?Tj(r,l):nm(l)},Tj=(e,t)=>{if(e.charAt(0)==="_"){const a=e.slice(1,e.length);return wC(t,a)}switch(e){case Ee.bool:return vC(t);case Ee.float4:case Ee.float8:case Ee.int2:case Ee.int4:case Ee.int8:case Ee.numeric:case Ee.oid:return yC(t);case Ee.json:case Ee.jsonb:return bC(t);case Ee.timestamp:return jC(t);case Ee.abstime:case Ee.date:case Ee.daterange:case Ee.int4range:case Ee.int8range:case Ee.money:case Ee.reltime:case Ee.text:case Ee.time:case Ee.timestamptz:case Ee.timetz:case Ee.tsrange:case Ee.tstzrange:return nm(t);default:return nm(t)}},nm=e=>e,vC=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},yC=e=>{if(typeof e=="string"){const t=parseFloat(e);
vendor: 5,614 bytes, line 249
249if(!Number.isNaN(t))return t}return e},bC=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},wC=(e,t)=>{if(typeof e!="string")return e;const a=e.length-1,s=e[a];if(e[0]==="{"&&s==="}"){let r;const l=e.slice(1,a);try{r=JSON.parse("["+l+"]")}catch{r=l?l.split(","):[]}return r.map(o=>Tj(t,o))}return e},jC=e=>typeof e=="string"?e.replace(" ","T"):e,_j=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class Mu{constructor(t,a,s={},i=Aj){this.channel=t,this.event=a,this.payload=s,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,a){var s;return this._hasReceived(t)&&a((s=this.receivedResp)===null||s===void 0?void 0:s.response),this.recHooks.push({status:t,callback:a}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=a=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=a,this._matchReceive(a)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,a){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:a})}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:a}){this.recHooks.filter(s=>s.status===t).forEach(s=>s.callback(a))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var gx;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(gx||(gx={}));class ol{constructor(t,a){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const s=(a==null?void 0:a.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(s.state,{},i=>{const{onJoin:r,onLeave:l,onSync:o}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ol.syncState(this.state,i,r,l),this.pendingDiffs.forEach(c=>{this.state=ol.syncDiff(this.state,c,r,l)}),this.pendingDiffs=[],o()}),this.channel._on(s.diff,{},i=>{const{onJoin:r,onLeave:l,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=ol.syncDiff(this.state,i,r,l),o())}),this.onJoin((i,r,l)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:r,newPresences:l})}),this.onLeave((i,r,l)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:r,leftPresences:l})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,a,s,i){const r=this.cloneDeep(t),l=this.transformState(a),o={},c={};return this.map(r,(d,u)=>{l[d]||(c[d]=u)}),this.map(l,(d,u)=>{const m=r[d];if(m){const f=u.map(j=>j.presence_ref),h=m.map(j=>j.presence_ref),w=u.filter(j=>h.indexOf(j.presence_ref)<0),v=m.filter(j=>f.indexOf(j.presence_ref)<0);w.length>0&&(o[d]=w),v.length>0&&(c[d]=v)}else o[d]=u}),this.syncDiff(r,{joins:o,leaves:c},s,i)}static syncDiff(t,a,s,i){const{joins:r,leaves:l}={joins:this.transformState(a.joins),leaves:this.transformState(a.leaves)};return s||(s=()=>{}),i||(i=()=>{}),this.map(r,(o,c)=>{var d;const u=(d=t[o])!==null&&d!==void 0?d:[];if(t[o]=this.cloneDeep(c),u.length>0){const m=t[o].map(h=>h.presence_ref),f=u.filter(h=>m.indexOf(h.presence_ref)<0);t[o].unshift(...f)}s(o,u,c)}),this.map(l,(o,c)=>{let d=t[o];if(!d)return;const u=c.map(m=>m.presence_ref);d=d.filter(m=>u.indexOf(m.presence_ref)<0),t[o]=d,i(o,d,c),d.length===0&&delete t[o]}),t}static map(t,a){return Object.getOwnPropertyNames(t).map(s=>a(s,t[s]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((a,s)=>{const i=t[s];return"metas"in i?a[s]=i.metas.map(r=>(r.presence_ref=r.phx_ref,delete r.phx_ref,delete r.phx_ref_prev,r)):a[s]=i,a},{})}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 xx;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(xx||(xx={}));var vx;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(vx||(vx={}));var Za;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Za||(Za={}));class Hf{constructor(t,a={config:{}},s){this.topic=t,this.params=a,this.socket=s,this.bindings={},this.state=jt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},a.config),this.timeout=this.socket.timeout,this.joinPush=new Mu(this,Sa.join,this.params,this.timeout),this.rejoinTimer=new kj(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=jt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>
249i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=jt.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=jt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=jt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Sa.reply,{},(i,r)=>{this._trigger(this._replyEventName(r),i)}),this.presence=new ol(this),this.broadcastEndpointURL=_j(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,a=this.timeout){var s,i;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:r,presence:l,private:o}}=this.params;this._onError(u=>t==null?void 0:t(Za.CHANNEL_ERROR,u)),this._onClose(()=>t==null?void 0:t(Za.CLOSED));const c={},d={broadcast:r,presence:l,postgres_changes:(i=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(u=>u.filter))!==null&&i!==void 0?i:[],private:o};this.socket.accessTokenValue&&(c.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:d},c)),this.joinedOnce=!0,this._rejoin(a),this.joinPush.receive("ok",async({postgres_changes:u})=>{var m;if(this.socket.setAuth(),u===void 0){t==null||t(Za.SUBSCRIBED);return}else{const f=this.bindings.postgres_changes,h=(m=f==null?void 0:f.length)!==null&&m!==void 0?m:0,w=[];for(let v=0;v<h;v++){const j=f[v],{filter:{event:y,schema:x,table:g,filter:b}}=j,N=u&&u[v];if(N&&N.event===y&&N.schema===x&&N.table===g&&N.filter===b)w.push(Object.assign(Object.assign({},j),{id:N.id}));else{this.unsubscribe(),this.state=jt.errored,t==null||t(Za.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=w,t&&t(Za.SUBSCRIBED);return}}).receive("error",u=>{this.state=jt.errored,t==null||t(Za.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(u).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Za.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,a={}){return await this.send({type:"presence",event:"track",payload:t},a.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,a,s){return this._on(t,a,s)}async send(t,a={}){var s,i;if(!this._canPush()&&t.type==="broadcast"){const{event:r,payload:l}=t,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:r,payload:l,private:this.private}]})};try{const d=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(s=a.timeout)!==null&&s!==void 0?s:this.timeout);return await((i=d.body)===null||i===void 0?void 0:i.cancel()),d.ok?"ok":"error"}catch(d){return d.name==="AbortError"?"timed out":"error"}}else return new Promise(r=>{var l,o,c;const d=this._push(t.type,t,a.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(o=(l=this.params)===null||l===void 0?void 0:l.config)===null||o===void 0?void 0:o.broadcast)===null||c===void 0)&&c.ack)&&r("ok"),d.receive("ok",()=>r("ok")),d.receive("error",()=>r("error")),d.receive("timeout",()=>r("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=jt.leaving;const a=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Sa.close,"leave",this._joinRef())};return this.joinPush.destroy(),new Promise(s=>{const i=new Mu(this,Sa.leave,{},t);i.receive("ok",()=>{a(),s("ok")}).receive("timeout",()=>{a(),s("timed out")}).receive("error",()=>{s("error")}),i.send(),this._canPush()||i.trigger("ok",{})})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.rejoinTimer&&clearTimeout(this.rejoinTimer.timer),this.joinPush.destroy()}async _fetchWithTimeout(t,a,s){const i=new AbortController,r=setTimeout(()=>i.abort(),s),l=await this.socket.fetch(t,Object.assign(Object.assign({},a),{signal:i.signal}));return clearTimeout(r),l}_push(t,a,s=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new Mu(this,t,a,s);return this._canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}_onMessage(t,a,s){return a}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,a,s){var i,r;const l=t.toLocaleLowerCase(),{close:o,error:c,leave:d,join:u}=Sa;if(s&&[o,c,d,u].indexOf(l)>=0&&s!==this._joinRef())return;let f=this._onMessage(l,a,s);if(a&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(l)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(h=>{var w,v,j;return((w=h.filter)===null||w===void 0?void 0:w.event)==="*"||((j=(v=h.filter)===null||v===void 0?void 0:v.event)===null||j===void 0?void 0:j.toLocaleLowerCase())===l}).map(h=>
249h.callback(f,s)):(r=this.bindings[l])===null||r===void 0||r.filter(h=>{var w,v,j,y,x,g;if(["broadcast","presence","postgres_changes"].includes(l))if("id"in h){const b=h.id,N=(w=h.filter)===null||w===void 0?void 0:w.event;return b&&((v=a.ids)===null||v===void 0?void 0:v.includes(b))&&(N==="*"||(N==null?void 0:N.toLocaleLowerCase())===((j=a.data)===null||j===void 0?void 0:j.type.toLocaleLowerCase()))}else{const b=(x=(y=h==null?void 0:h.filter)===null||y===void 0?void 0:y.event)===null||x===void 0?void 0:x.toLocaleLowerCase();return b==="*"||b===((g=a==null?void 0:a.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===l}).map(h=>{if(typeof f=="object"&&"ids"in f){const w=f.data,{schema:v,table:j,commit_timestamp:y,type:x,errors:g}=w;f=Object.assign(Object.assign({},{schema:v,table:j,commit_timestamp:y,eventType:x,new:{},old:{},errors:g}),this._getPayloadRecords(w))}h.callback(f,s)})}_isClosed(){return this.state===jt.closed}_isJoined(){return this.state===jt.joined}_isJoining(){return this.state===jt.joining}_isLeaving(){return this.state===jt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,a,s){const i=t.toLocaleLowerCase(),r={type:i,filter:a,callback:s};return this.bindings[i]?this.bindings[i].push(r):this.bindings[i]=[r],this}_off(t,a){const s=t.toLocaleLowerCase();return this.bindings[s]=this.bindings[s].filter(i=>{var r;return!(((r=i.type)===null||r===void 0?void 0:r.toLocaleLowerCase())===s&&Hf.isEqual(i.filter,a))}),this}static isEqual(t,a){if(Object.keys(t).length!==Object.keys(a).length)return!1;for(const s in t)if(t[s]!==a[s])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Sa.close,{},t)}_onError(t){this._on(Sa.error,{},a=>t(a))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=jt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const a={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(a.new=px(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(a.old=px(t.columns,t.old_record)),a}}const yx=()=>{},NC=`
250  addEventListener("message", (e) => {
251    if (e.data.event === "start") {
252      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
253    }
254  });`;class SC{constructor(t,a){var s;this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers=mC,this.params={},this.timeout=Aj,this.heartbeatIntervalMs=25e3,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=yx,this.ref=0,this.logger=yx,this.conn=null,this.sendBuffer=[],this.serializer=new gC,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=r=>{let l;return r?l=r:typeof fetch>"u"?l=(...o)=>Wl(async()=>{const{default:c}=await Promise.resolve().then(()=>vr);return{default:c}},void 0).then(({default:c})=>c(...o)):l=fetch,(...o)=>l(...o)},this.endPoint=`${t}/${am.websocket}`,this.httpEndpoint=_j(t),a!=null&&a.transport?this.transport=a.transport:this.transport=null,a!=null&&a.params&&(this.params=a.params),a!=null&&a.headers&&(this.headers=Object.assign(Object.assign({},this.headers),a.headers)),a!=null&&a.timeout&&(this.timeout=a.timeout),a!=null&&a.logger&&(this.logger=a.logger),(a!=null&&a.logLevel||a!=null&&a.log_level)&&(this.logLevel=a.logLevel||a.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),a!=null&&a.heartbeatIntervalMs&&(this.heartbeatIntervalMs=a.heartbeatIntervalMs);const i=(s=a==null?void 0:a.params)===null||s===void 0?void 0:s.apikey;if(i&&(this.accessTokenValue=i,this.apiKey=i),this.reconnectAfterMs=a!=null&&a.reconnectAfterMs?a.reconnectAfterMs:r=>[1e3,2e3,5e3,1e4][r-1]||1e4,this.encode=a!=null&&a.encode?a.encode:(r,l)=>l(JSON.stringify(r)),this.decode=a!=null&&a.decode?a.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new kj(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(a==null?void 0:a.fetch),a!=null&&a.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(a==null?void 0:a.worker)||!1,this.workerUrl=a==null?void 0:a.workerUrl}this.accessToken=(a==null?void 0:a.accessToken)||null}connect(){if(!this.conn){if(this.transport||(this.transport=tm),this.transport){typeof window<"u"&&this.transport===window.WebSocket?this.conn=new this.transport(this.endpointURL()):this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection();return}this.conn=new AC(this.endpointURL(),void 0,{close:()=>{this.conn=null}})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:fC}))}
254disconnect(t,a){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,a??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset(),this.channels.forEach(s=>s.teardown()))}getChannels(){return this.channels}async removeChannel(t){const a=await t.unsubscribe();return this.channels=this.channels.filter(s=>s._joinRef!==t._joinRef),this.channels.length===0&&this.disconnect(),a}async removeAllChannels(){const t=await Promise.all(this.channels.map(a=>a.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,a,s){this.logger(t,a,s)}connectionState(){switch(this.conn&&this.conn.readyState){case Gi.connecting:return Ss.Connecting;case Gi.open:return Ss.Open;case Gi.closing:return Ss.Closing;default:return Ss.Closed}}isConnected(){return this.connectionState()===Ss.Open}channel(t,a={config:{}}){const s=`realtime:${t}`,i=this.getChannels().find(r=>r.topic===s);if(i)return i;{const r=new Hf(`realtime:${t}`,a,this);return this.channels.push(r),r}}push(t){const{topic:a,event:s,payload:i,ref:r}=t,l=()=>{this.encode(t,o=>{var c;(c=this.conn)===null||c===void 0||c.send(o)})};this.log("push",`${a} ${s} (${r})`,i),this.isConnected()?l():this.sendBuffer.push(l)}async setAuth(t=null){let a=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;this.accessTokenValue!=a&&(this.accessTokenValue=a,this.channels.forEach(s=>{a&&s.updateJoinPayload({access_token:a,version:this.headers&&this.headers["X-Client-Info"]}),s.joinedOnce&&s._isJoined()&&s._push(Sa.access_token,{access_token:a})}))}async sendHeartbeat(){var t;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),(t=this.conn)===null||t===void 0||t.close(pC,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),await this.setAuth()}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 a=this.channels.find(s=>s.topic===t&&(s._isJoined()||s._isJoining()));a&&(this.log("transport",`leaving duplicate topic "${t}"`),a.unsubscribe())}_remove(t){this.channels=this.channels.filter(a=>a.topic!==t.topic)}setupConnection(){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))}_onConnMessage(t){this.decode(t.data,a=>{let{topic:s,event:i,payload:r,ref:l}=a;s==="phoenix"&&i==="phx_reply"&&this.heartbeatCallback(a.payload.status=="ok"?"ok":"error"),l&&l===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${r.status||""} ${s} ${i} ${l&&"("+l+")"||""}`,r),Array.from(this.channels).filter(o=>o._isMember(s)).forEach(o=>o._trigger(i,r,l)),this.stateChangeCallbacks.message.forEach(o=>o(a))})}_onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{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=a=>{this.log("worker","worker error",a.message),this.workerRef.terminate()},this.workerRef.onmessage=a=>{a.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(a=>a(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(a=>a(t))}
254_triggerChanError(){this.channels.forEach(t=>t._trigger(Sa.error))}_appendParams(t,a){if(Object.keys(a).length===0)return t;const s=t.match(/\?/)?"&":"?",i=new URLSearchParams(a);return`${t}${s}${i}`}_workerObjectUrl(t){let a;if(t)a=t;else{const s=new Blob([NC],{type:"application/javascript"});a=URL.createObjectURL(s)}return a}}class AC{constructor(t,a,s){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=Gi.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=s.close}}class $f extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function st(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class kC extends $f{constructor(t,a){super(t),this.name="StorageApiError",this.status=a}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class sm extends $f{constructor(t,a){super(t),this.name="StorageUnknownError",this.originalError=a}}var TC=function(e,t,a,s){function i(r){return r instanceof a?r:new a(function(l){l(r)})}return new(a||(a=Promise))(function(r,l){function o(u){try{d(s.next(u))}catch(m){l(m)}}function c(u){try{d(s.throw(u))}catch(m){l(m)}}function d(u){u.done?r(u.value):i(u.value).then(o,c)}d((s=s.apply(e,t||[])).next())})};const Ej=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...a)=>Wl(async()=>{const{default:s}=await Promise.resolve().then(()=>vr);return{default:s}},void 0).then(({default:s})=>s(...a)):t=fetch,(...a)=>t(...a)},_C=()=>TC(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Wl(()=>Promise.resolve().then(()=>vr),void 0)).Response:Response}),im=e=>{if(Array.isArray(e))return e.map(a=>im(a));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([a,s])=>{const i=a.replace(/([-_][a-z])/gi,r=>r.toUpperCase().replace(/[-_]/g,""));t[i]=im(s)}),t};var ti=function(e,t,a,s){function i(r){return r instanceof a?r:new a(function(l){l(r)})}return new(a||(a=Promise))(function(r,l){function o(u){try{d(s.next(u))}catch(m){l(m)}}function c(u){try{d(s.throw(u))}catch(m){l(m)}}function d(u){u.done?r(u.value):i(u.value).then(o,c)}d((s=s.apply(e,t||[])).next())})};const Du=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),EC=(e,t,a)=>ti(void 0,void 0,void 0,function*(){const s=yield _C();e instanceof s&&!(a!=null&&a.noResolveJson)?e.json().then(i=>{t(new kC(Du(i),e.status||500))}).catch(i=>{t(new sm(Du(i),i))}):t(new sm(Du(e),e))}),CC=(e,t,a,s)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s&&(i.body=JSON.stringify(s)),Object.assign(Object.assign({},i),a))};function Yl(e,t,a,s,i,r){return ti(this,void 0,void 0,function*(){return new Promise((l,o)=>{e(a,CC(t,s,i,r)).then(c=>{if(!c.ok)throw c;return s!=null&&s.noResolveJson?c:c.json()}).then(c=>l(c)).catch(c=>EC(c,o,s))})})}function zc(e,t,a,s){return ti(this,void 0,void 0,function*(){return Yl(e,"GET",t,a,s)})}function Tn(e,t,a,s,i){return ti(this,void 0,void 0,function*(){return Yl(e,"POST",t,s,i,a)})}function OC(e,t,a,s,i){return ti(this,void 0,void 0,function*(){return Yl(e,"PUT",t,s,i,a)})}function RC(e,t,a,s){return ti(this,void 0,void 0,function*(){return Yl(e,"HEAD",t,Object.assign(Object.assign({},a),{noResolveJson:!0}),s)})}function Cj(e,t,a,s,i){return ti(this,void 0,void 0,function*(){return Yl(e,"DELETE",t,s,i,a)})}var _t=function(e,t,a,s){function i(r){return r instanceof a?r:new a(function(l){l(r)})}return new(a||(a=Promise))(function(r,l){function o(u){try{d(s.next(u))}catch(m){l(m)}}function c(u){try{d(s.throw(u))}catch(m){l(m)}}function d(u){u.done?r(u.value):i(u.value).then(o,c)}d((s=s.apply(e,t||[])).next())})};const IC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},bx={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class MC{constructor(t,a={},s,i){this.url=t,this.headers=a,this.bucketId=s,this.fetch=Ej(i)}uploadOrUpdate(t,a,s,i){return _t(this,void 0,void 0,function*(){try{let r;const l=Object.assign(Object.assign({},bx),i);let o=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(l.upsert)});const c=l.metadata;typeof Blob<"u"&&s instanceof Blob?(r=new FormData,r.append("cacheControl",l.cacheControl),c&&r.append("metadata",this.encodeMetadata(c)),r.append("",s)):typeof FormData<"u"&&s instanceof FormData?(r=s,r.append("cacheControl",l.cacheControl),c&&r.append("metadata",this.encodeMetadata(c))):(r=s,o["cache-control"]=`max-age=${l.cacheControl}`,o["content-type"]=l.contentType,c&&(o["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),i!=null&&i.headers&&(o=Object.assign(Object.assign({},o),i.headers));const d=this._removeEmptyFolders(a),u=this._getFinalPath(d),m=yield this.fetch(`${this.url}/object/${u}`,Object.assign({method:t,body:r,headers:o},l!=null&&l.duplex?{duplex:l.duplex}:{})),f=yield m.json();return m.ok?{data:{path:d,id:f.Id,fullPath:f.Key},error:null}:{data:null,error:f}}catch(r){if(st(r))return{data:null,error:r};throw r}})}upload(t,a,s){return _t(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,a,s)})}uploadToSignedUrl(t,a,s,i){return _t(this,void 0,void 0,function*(){const r=this._removeEmptyFolders(t),l=this._getFinalPath(r),o=new URL(this.url+`/object/upload/sign/${l}`);o.searchParams.set("token",a);try{let c;const d=Object.assign({upsert:bx.upsert},i),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(d.upsert)});typeof Blob<"u"&&s instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),c.append("",s)):typeof FormData<"u"&&s instanceof FormData?(c=s,c.append("cacheControl",d.cacheControl)):(c=s,u["cache-control"]=`max-age=${d.cacheControl}`,u["content-type"]=d.contentType);const m=yield this.fetch(o.toString(),{method:"PUT",body:c,headers:u}),f=yield m.json();return m.ok?{data:{path:r,fullPath:f.Key},error:null}:{data:null,error:f}}catch(c){if(st(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(t,a){return _t(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t);const i=Object.assign({},this.headers);a!=null&&a.upsert&&(i["x-upsert"]="true");const r=yield Tn(this.fetch,`${this.url}/object/upload/sign/${s}`,{},{headers:i}),l=new URL(this.url+r.url),o=l.searchParams.get("token");if(!o)throw new $f("No token returned by API");return{data:{signedUrl:l.toString(),path:t,token:o},error:null}}catch(s){if(st(s))return{data:null,error:s};throw s}})}update(t,a,s){return _t(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,a,s)})}move(t,a,s){return _t(this,void 0,void 0,function*(){try{return{data:yield Tn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:a,destinationBucket:s==null?void 0:s.destinationBucket},{headers:this.headers}),error:null}}catch(i){if(st(i))return{data:null,error:i};throw i}})}copy(t,a,s){return _t(this,void 0,void 0,function*(){try{return{data:{path:(yield Tn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:a,destinationBucket:s==null?void 0:s.destinationBucket},{headers:this.headers})).Key},error:null}}catch(i){if(st(i))return{data:null,error:i};throw i}})}createSignedUrl(t,a,s){return _t(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t),r=yield Tn(this.fetch,`${this.url}/object/sign/${i}
254`,Object.assign({expiresIn:a},s!=null&&s.transform?{transform:s.transform}:{}),{headers:this.headers});const l=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return r={signedUrl:encodeURI(`${this.url}${r.signedURL}${l}`)},{data:r,error:null}}catch(i){if(st(i))return{data:null,error:i};throw i}})}createSignedUrls(t,a,s){return _t(this,void 0,void 0,function*(){try{const i=yield Tn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:a,paths:t},{headers:this.headers}),r=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return{data:i.map(l=>Object.assign(Object.assign({},l),{signedUrl:l.signedURL?encodeURI(`${this.url}${l.signedURL}${r}`):null})),error:null}}catch(i){if(st(i))return{data:null,error:i};throw i}})}download(t,a){return _t(this,void 0,void 0,function*(){const i=typeof(a==null?void 0:a.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((a==null?void 0:a.transform)||{}),l=r?`?${r}`:"";try{const o=this._getFinalPath(t);return{data:yield(yield zc(this.fetch,`${this.url}/${i}/${o}${l}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(o){if(st(o))return{data:null,error:o};throw o}})}info(t){return _t(this,void 0,void 0,function*(){const a=this._getFinalPath(t);try{const s=yield zc(this.fetch,`${this.url}/object/info/${a}`,{headers:this.headers});return{data:im(s),error:null}}catch(s){if(st(s))return{data:null,error:s};throw s}})}exists(t){return _t(this,void 0,void 0,function*(){const a=this._getFinalPath(t);try{return yield RC(this.fetch,`${this.url}/object/${a}`,{headers:this.headers}),{data:!0,error:null}}catch(s){if(st(s)&&s instanceof sm){const i=s.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:s}}throw s}})}getPublicUrl(t,a){const s=this._getFinalPath(t),i=[],r=a!=null&&a.download?`download=${a.download===!0?"":a.download}`:"";r!==""&&i.push(r);const o=typeof(a==null?void 0:a.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((a==null?void 0:a.transform)||{});c!==""&&i.push(c);let d=i.join("&");return d!==""&&(d=`?${d}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${s}${d}`)}}}remove(t){return _t(this,void 0,void 0,function*(){try{return{data:yield Cj(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(a){if(st(a))return{data:null,error:a};throw a}})}list(t,a,s){return _t(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},IC),a),{prefix:t||""});return{data:yield Tn(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},s),error:null}}catch(i){if(st(i))return{data:null,error:i};throw i}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const a=[];return t.width&&a.push(`width=${t.width}`),t.height&&a.push(`height=${t.height}`),t.resize&&a.push(`resize=${t.resize}`),t.format&&a.push(`format=${t.format}`),t.quality&&a.push(`quality=${t.quality}`),a.join("&")}}const DC="2.7.1",LC={"X-Client-Info":`storage-js/${DC}`};var hi=function(e,t,a,s){function i(r){return r instanceof a?r:new a(function(l){l(r)})}return new(a||(a=Promise))(function(r,l){function o(u){try{d(s.next(u))}catch(m){l(m)}}function c(u){try{d(s.throw(u))}catch(m){l(m)}}function d(u){u.done?r(u.value):i(u.value).then(o,c)}d((s=s.apply(e,t||[])).next())})};class PC{constructor(t,a={},s){this.url=t,this.headers=Object.assign(Object.assign({},LC),a),this.fetch=Ej(s)}listBuckets(){return hi(this,void 0,void 0,function*(){try{return{data:yield zc(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(st(t))return{data:null,error:t};throw t}})}getBucket(t){return hi(this,void 0,void 0,function*(){try{return{data:yield zc(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(a){if(st(a))return{data:null,error:a};throw a}})}createBucket(t,a={public:!1}){return hi(this,void 0,void 0,function*(){try{return{data:yield Tn(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:a.public,file_size_limit:a.fileSizeLimit,allowed_mime_types:a.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(st(s))return{data:null,error:s};throw s}})}updateBucket(t,a){return hi(this,void 0,void 0,function*(){try{return{data:yield OC(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:a.public,file_size_limit:a.fileSizeLimit,allowed_mime_types:a.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(st(s))return{data:null,error:s};throw s}})}emptyBucket(t){return hi(this,void 0,void 0,function*(){try{return{data:yield Tn(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(a){if(st(a))return{data:null,error:a};throw a}})}deleteBucket(t){return hi(this,void 0,void 0,function*(){try{return{data:yield Cj(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(a){if(st(a))return{data:null,error:a};throw a}})}}class zC extends PC{constructor(t,a={},s){super(t,a,s)}from(t){return new MC(this.url,this.headers,t,this.fetch)}}const BC="2.50.0";let Vr="";typeof Deno<"u"?Vr="deno":typeof document<"u"?Vr="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Vr="react-native":Vr="node";const UC={"X-Client-Info":`supabase-js-${Vr}/${BC}`},qC={headers:UC},VC={schema:"public"},HC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},$C={};var GC=function(e,t,a,s){function i(r){return r instanceof a?r:new a(function(l){l(r)})}return new(a||(a=Promise))(function(r,l){function o(u){try{d(s.next(u))}catch(m){l(m)}}function c(u){try{d(s.throw(u))}catch(m){l(m)}}function d(u){u.done?r(u.value):i(u.value).then(o,c)}d((s=s.apply(e,t||[])).next())})};const WC=e=>{let t;return e?t=e:typeof fetch>"u"?t=fj:t=fetch,(...a)=>t(...a)},FC=()=>typeof Headers>"u"?pj:Headers,YC=(e,t,a)=>{const s=WC(a),i=FC();return(r,l)=>GC(void 0,void 0,void 0,function*(){var o;const c=(o=yield t())!==null&&o!==void 0?o:e;let d=new i(l==null?void 0:l.headers);return d.has("apikey")||d.set("apikey",e),d.has("Authorization")||d.set("Authorization",`Bearer ${c}`),s(r,Object.assign(Object.assign({},l),{headers:d}))})};var KC=function(e,t,a,s){function i(r){return r instanceof a?r:new a(function(l){l(r)})}return new(a||(a=Promise))(function(r,l){function o(u){try{d(s.next(u))}catch(m){l(m)}}function c(u){try{d(s.throw(u))}catch(m){l(m)}}function d(u){u.done?r(u.value):i(u.value).then(o,c)}d((s=s.apply(e,t||[])).next())})};function QC(e){return e.endsWith("/")?e:e+"/"}function XC(e,t){var a,s;const{db:i,auth:r,realtime:l,global:o}=e,{db:c,auth:d,realtime:u,global:m}=t,f={db:Object.assign(Object.assign({},c),i),auth:Object.assign(Object.assign({},d),r),realtime:Object.assign(Object.assign({},u),l),global:Object.assign(Object.assign(Object.assign({},m),o),{headers:Object.assign(Object.assign({},(a=m==null?void 0:m.headers)!==null&&a!==void 0?a:{}),(s=o==null?void 0:o.headers)!==null&&s!==void 0?s:{})}),accessToken:()=>KC(this,void 0,void 0,function*(){return""})};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}const Oj="2.70.0",bi=30*1e3,rm=3,Lu=rm*bi,JC="http://localhost:9999",ZC="supabase.auth.token",e3={"X-Client-Info":`gotrue-js/${Oj}`},lm="X-Supabase-Api-Version",Rj={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},t3=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,a3=6e5;
254class Gf extends Error{constructor(t,a,s){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=a,this.code=s}}function Z(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class n3 extends Gf{constructor(t,a,s){super(t,a,s),this.name="AuthApiError",this.status=a,this.code=s}}function s3(e){return Z(e)&&e.name==="AuthApiError"}class Ij extends Gf{constructor(t,a){super(t),this.name="AuthUnknownError",this.originalError=a}}class ls extends Gf{constructor(t,a,s,i){super(t,s,i),this.name=a,this.status=s}}class Sn extends ls{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function i3(e){return Z(e)&&e.name==="AuthSessionMissingError"}class bo extends ls{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class wo extends ls{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class jo extends ls{constructor(t,a=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=a}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function r3(e){return Z(e)&&e.name==="AuthImplicitGrantRedirectError"}class wx extends ls{constructor(t,a=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=a}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class om extends ls{constructor(t,a){super(t,"AuthRetryableFetchError",a,void 0)}}function Pu(e){return Z(e)&&e.name==="AuthRetryableFetchError"}class jx extends ls{constructor(t,a,s){super(t,"AuthWeakPasswordError",a,"weak_password"),this.reasons=s}}class cl extends ls{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Bc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Nx=` 	
255\r=`.split(""),l3=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Nx.length;t+=1)e[Nx[t].charCodeAt(0)]=-2;for(let t=0;t<Bc.length;t+=1)e[Bc[t].charCodeAt(0)]=t;return e})();function Sx(e,t,a){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;a(Bc[s]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;a(Bc[s]),t.queuedBits-=6}}function Mj(e,t,a){const s=l3[e];if(s>-1)for(t.queue=t.queue<<6|s,t.queuedBits+=6;t.queuedBits>=8;)a(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Ax(e){const t=[],a=l=>{t.push(String.fromCodePoint(l))},s={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},r=l=>{d3(l,s,a)};for(let l=0;l<e.length;l+=1)Mj(e.charCodeAt(l),i,r);return t.join("")}function o3(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 c3(e,t){for(let a=0;a<e.length;a+=1){let s=e.charCodeAt(a);if(s>55295&&s<=56319){const i=(s-55296)*1024&65535;s=(e.charCodeAt(a+1)-56320&65535|i)+65536,a+=1}o3(s,t)}}function d3(e,t,a){if(t.utf8seq===0){if(e<=127){a(e);return}for(let s=1;s<6;s+=1)if(!(e>>7-s&1)){t.utf8seq=s;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&&a(t.codepoint)}}function u3(e){const t=[],a={queue:0,queuedBits:0},s=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)Mj(e.charCodeAt(i),a,s);return new Uint8Array(t)}function h3(e){const t=[];return c3(e,a=>t.push(a)),new Uint8Array(t)}function m3(e){const t=[],a={queue:0,queuedBits:0},s=i=>{t.push(i)};return e.forEach(i=>Sx(i,a,s)),Sx(null,a,s),t.join("")}function f3(e){return Math.round(Date.now()/1e3)+e}function p3(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const wa=()=>typeof window<"u"&&typeof document<"u",gs={tested:!1,writable:!1},dl=()=>{if(!wa())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(gs.tested)return gs.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),gs.tested=!0,gs.writable=!0}catch{gs.tested=!0,gs.writable=!1}return gs.writable};function g3(e){const t={},a=new URL(e);if(a.hash&&a.hash[0]==="#")try{new URLSearchParams(a.hash.substring(1)).forEac
255h((i,r)=>{t[r]=i})}catch{}return a.searchParams.forEach((s,i)=>{t[i]=s}),t}const Dj=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...a)=>Wl(async()=>{const{default:s}=await Promise.resolve().then(()=>vr);return{default:s}},void 0).then(({default:s})=>s(...a)):t=fetch,(...a)=>t(...a)},x3=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Lj=async(e,t,a)=>{await e.setItem(t,JSON.stringify(a))},No=async(e,t)=>{const a=await e.getItem(t);if(!a)return null;try{return JSON.parse(a)}catch{return a}},So=async(e,t)=>{await e.removeItem(t)};class _d{constructor(){this.promise=new _d.promiseConstructor((t,a)=>{this.resolve=t,this.reject=a})}}_d.promiseConstructor=Promise;function zu(e){const t=e.split(".");if(t.length!==3)throw new cl("Invalid JWT structure");for(let s=0;s<t.length;s++)if(!t3.test(t[s]))throw new cl("JWT not in base64url format");return{header:JSON.parse(Ax(t[0])),payload:JSON.parse(Ax(t[1])),signature:u3(t[2]),raw:{header:t[0],payload:t[1]}}}async function v3(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function y3(e,t){return new Promise((s,i)=>{(async()=>{for(let r=0;r<1/0;r++)try{const l=await e(r);if(!t(r,null,l)){s(l);return}}catch(l){if(!t(r,l)){i(l);return}}})()})}function b3(e){return("0"+e.toString(16)).substr(-2)}function w3(){const t=new Uint32Array(56);if(typeof crypto>"u"){const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=a.length;let i="";for(let r=0;r<56;r++)i+=a.charAt(Math.floor(Math.random()*s));return i}return crypto.getRandomValues(t),Array.from(t,b3).join("")}async function j3(e){const a=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",a),i=new Uint8Array(s);return Array.from(i).map(r=>String.fromCharCode(r)).join("")}async function N3(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 a=await j3(e);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function mi(e,t,a=!1){const s=w3();let i=s;a&&(i+="/PASSWORD_RECOVERY"),await Lj(e,`${t}-code-verifier`,i);const r=await N3(s);return[r,s===r?"plain":"s256"]}const S3=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function A3(e){const t=e.headers.get(lm);if(!t||!t.match(S3))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function k3(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 T3(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 _3=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function fi(e){if(!_3.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}var E3=function(e,t){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(a[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(a[s[i]]=e[s[i]]);return a};const ws=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),C3=[502,503,504];async function kx(e){var t;if(!x3(e))throw new om(ws(e),0);if(C3.includes(e.status))throw new om(ws(e),e.status);let a;try{a=await e.json()}catch(r){throw new Ij(ws(r),r)}let s;const i=A3(e);if(i&&i.getTime()>=Rj["2024-01-01"].timestamp&&typeof a=="object"&&a&&typeof a.code=="string"?s=a.code:typeof a=="object"&&a&&typeof a.error_code=="string"&&(s=a.error_code),s){if(s==="weak_password")throw new jx(ws(a),e.status,((t=a.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(s==="session_not_found")throw new Sn}else if(typeof a=="object"&&a&&typeof a.weak_password=="object"&&a.weak_password&&Array.isArray(a.weak_password.reasons)&&a.weak_password.reasons.length&&a.weak_password.reasons.reduce((r,l)=>r&&typeof l=="string",!0))throw new jx(ws(a),e.status,a.weak_password.reasons);throw new n3(ws(a),e.status||500,s)}const O3=(e,t,a,s)=>{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(s),Object.assign(Object.assign({},i),a))};async function re(e,t,a,s){var i;const r=Object.assign({},s==null?void 0:s.headers);r[lm]||(r[lm]=Rj["2024-01-01"].name),s!=null&&s.jwt&&(r.Authorization=`Bearer ${s.jwt}`);const l=(i=s==null?void 0:s.query)!==null&&i!==void 0?i:{};s!=null&&s.redirectTo&&(l.redirect_to=s.redirectTo);const o=Object.keys(l).length?"?"+new URLSearchParams(l).toString():"",c=await R3(e,t,a+o,{headers:r,noResolveJson:s==null?void 0:s.noResolveJson},{},s==null?void 0:s.body);return s!=null&&s.xform?s==null?void 0:s.xform(c):{data:Object.assign({},c),error:null}}async function R3(e,t,a,s,i,r){const l=O3(t,s,i,r);let o;try{o=await e(a,Object.assign({},l))}catch(c){throw console.error(c),new om(ws(c),0)}if(o.ok||await kx(o),s!=null&&s.noResolveJson)return o;try{return await o.json()}catch(c){await kx(c)}}function Ja(e){var t;let a=null;L3(e)&&(a=Object.assign({},e),e.expires_at||(a.expires_at=f3(e.expires_in)));const s=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:a,user:s},error:null}}function Tx(e){const t=Ja(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((a,s)=>a&&typeof s=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Rn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function I3(e){return{data:e,error:null}}function M3(e){const{action_link:t,email_otp:a,hashed_token:s,redirect_to:i,verification_type:r}=e,l=E3(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),o={action_link:t,email_otp:a,hashed_token:s,redirect_to:i,verification_type:r},c=Object.assign({},l);return{data:{properties:o,user:c},error:null}}function D3(e){return e}function L3(e){return e.access_token&&e.refresh_token&&e.expires_in}const Bu=["global","local","others"];var P3=function(e,t){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(a[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(a[s[i]]=e[s[i]]);return a};class z3{constructor({url:t="",headers:a={},fetch:s}){this.url=t,this.headers=a,this.fetch=Dj(s),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,a=Bu[0]){if(Bu.indexOf(a)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Bu.join(", ")}`);try{return await re(this.fetch,"POST",`${this.url}/logout?scope=${a}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(s){if(Z(s))return{data:null,error:s};throw s}}async inviteUserByEmail(t,a={}){try{return await re(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:a.data},headers:this.headers,redirectTo:a.redirectTo,xform:Rn})}catch(s){if(Z(s))return{data:{user:null},error:s};throw s}}async generateLink(t){try{const{options:a}=t,s=P3(t,["options"]),i=Object.assign(Object.assign({},s),a);return"newEmail"in s&&(i.new_email=s==null?void 0:s.newEmail,delete i.newEmail),await re(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:M3,redirectTo:a==null?void 0:a.redirectTo})}catch(a){if(Z(a))return{data:{properties:null,user:null},error:a};throw a}}async createUser(t){try{return await re(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Rn})}catch(a){if(Z(a))return{data:{user:null},error:a};throw a}}async listUsers(t){var a,s,i,r,l,o,c;try{const d={nextPage:null,lastPage:0,total:0},u=await re(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(a=t==null?void 0:t.page)===null||a===void 0?void 0:a.toString())!==null&&s!==void 0?s:"",per_page:(r=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&r!==void 0?r:""},xform:D3});if(u.error)throw u.error;const m=await u.json(),f=(l=u.headers.get("x-total-count"))!==null&&l!==void 0?l:0,h=(c=(o=u.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&c!==void 0?c:[];return h.length>
2550&&(h.forEach(w=>{const v=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),j=JSON.parse(w.split(";")[1].split("=")[1]);d[`${j}Page`]=v}),d.total=parseInt(f)),{data:Object.assign(Object.assign({},m),d),error:null}}catch(d){if(Z(d))return{data:{users:[]},error:d};throw d}}async getUserById(t){fi(t);try{return await re(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Rn})}catch(a){if(Z(a))return{data:{user:null},error:a};throw a}}async updateUserById(t,a){fi(t);try{return await re(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:a,headers:this.headers,xform:Rn})}catch(s){if(Z(s))return{data:{user:null},error:s};throw s}}async deleteUser(t,a=!1){fi(t);try{return await re(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:a},xform:Rn})}catch(s){if(Z(s))return{data:{user:null},error:s};throw s}}async _listFactors(t){fi(t.userId);try{const{data:a,error:s}=await re(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:a,error:s}}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _deleteFactor(t){fi(t.userId),fi(t.id);try{return{data:await re(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(a){if(Z(a))return{data:null,error:a};throw a}}}const B3={getItem:e=>dl()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{dl()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{dl()&&globalThis.localStorage.removeItem(e)}};function _x(e={}){return{getItem:t=>e[t]||null,setItem:(t,a)=>{e[t]=a},removeItem:t=>{delete e[t]}}}function U3(){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)}}const pi={debug:!!(globalThis&&dl()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Pj extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class q3 extends Pj{}async function V3(e,t,a){pi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const s=new globalThis.AbortController;return t>0&&setTimeout(()=>{s.abort(),pi.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:s.signal},async i=>{if(i){pi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await a()}finally{pi.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw pi.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new q3(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(pi.debug)try{const r=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(r,null,"  "))}catch(r){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",r)}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 a()}}))}U3();const H3={url:JC,storageKey:ZC,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:e3,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Ex(e,t,a){return await a()}class kl{constructor(t){var a,s;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=kl.nextInstanceID,kl.nextInstanceID+=1,this.instanceID>0&&wa()&&console.warn("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.");const i=Object.assign(Object.assign({},H3),t);if(this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new z3({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=Dj(i.fetch),this.lock=i.lock||Ex,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:wa()&&(!((a=globalThis==null?void 0:globalThis.navigator)===null||a===void 0)&&a.locks)?this.lock=V3:this.lock=Ex,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)},this.persistSession?i.storage?this.storage=i.storage:dl()?this.storage=B3:(this.memoryStorage={},this.storage=_x(this.memoryStorage)):(this.memoryStorage={},this.storage=_x(this.memoryStorage)),wa()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(r){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",r)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async r=>{this._debug("received broadcast notification from other tab or client",r),await this._notifyAllSubscribers(r.data.event,r.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Oj}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const a=g3(window.location.href);let s="none";if(this._isImplicitGrantCallback(a)?s="implicit":await this._isPKCECallback(a)&&(s="pkce"),wa()&&this.detectSessionInUrl&&s!=="none"){const{data:i,error:r}=await this._getSessionFromURL(a,s);if(r){if(this._debug("#_initialize()","error detecting session from URL",r),r3(r)){const c=(t=r.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:r}}return await this._removeSession(),{error:r}}const{session:l,redirectType:o}=i;return this._debug("#_initialize()","detected session in URL",l,"redirect type",o),await this._saveSession(l),setTimeout(async()=>{o==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",l):await this._notifyAllSubscribers("SIGNED_IN",l)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(a){return Z(a)?{error:a}:{error:new Ij("Unexpected error during initialization",a)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var a,s,i;try{const r=await re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(a=t==null?void 0:t.options)===null||a===void 0?void 0:a.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Ja}),{data:l,error:o}=r;if(o||!l)return{data:{user:null,session:null},error:o};const c=l.session,d=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(r){if(Z(r))return{data:{user:null,session:null},error:r};throw r}}async signUp(t){var a,s,i;try{let r;if("email"in t){const{email:u,password:m,options:f}=t;let h=null,w=null;this.flowType==="pkce"&&([h,w]=await mi(this.storage,this.storageKey)),r=await re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:u,password:m,data:(a=f==null?void 0:f.data)!==null&&a!==void 0?a:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:w},xform:Ja})}else if("phone"in t){const{phone:u,password:m,options:f}=t;r=await re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:m,data:(s=f==null?void 0:f.data)!==null&&s!==void 0?s:{},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:Ja})}else throw new wo("You must provide either an email or phone number and a password");const{data:l,error:o}=r;if(o||!l)return{data:{user:null,session:null},error:o};const c=l.session,d=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(r){if(Z(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithPassword(t){try{let a;if("email"in t){const{email:r,password:l,options:o}=t;a=await re(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:r,password:l,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Tx})}else if("phone"in t){const{phone:r,password:l,options:o}=t;a=await re(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:r,password:l,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Tx})}else throw new wo("You must provide either an email or phone number and a password");const{data:s,error:i}=a;return i?{data:{user:null,session:null},error:i}:!s||!s.session||!s.user?{data:{user:null,session:null},error:new bo}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:i})}catch(a){if(Z(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithOAuth(t){var a,s,i,r;return await this._handleProviderSignIn(t.provider,{redirectTo:(a=t.options)===null||a===void 0?void 0:a.redirectTo,scopes:(s=t.options)===null||s===void 0?void 0:s.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(r=t.options)===null||r===void 0?void 0:r.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:a}=t;if(a==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${a}"`)}async signInWithSolana(t){var a,s,i,r,l,o,c,d,u,m,f,h;let w,v;if("message"in t)w=t.message,v=t.signature;else{const{chain:j,wallet:y,statement:x,options:g}=t;let b;if(wa())if(typeof y=="object")b=y;else{const A=window;if("solana"in A&&typeof A.solana=="object"&&("signIn"in A.solana&&typeof A.solana.signIn=="function"||"signMessage"in A.solana&&typeof A.solana.signMessage=="function"))b=A.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 y!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=y}const N=new URL((a=g==null?void 0:g.url)!==null&&a!==void 0?a:window.location.href);if("signIn"in b&&b.signIn){const A=await b.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},g==null?void 0:g.signInWithSolana),{version:"1",domain:N.host,uri:N.href}),x?{statement:x}:null));let S;if(Array.isArray(A)&&A[0]&&typeof A[0]=="object")S=A[0];else if(A&&typeof A=="object"&&"signedMessage"in A&&"signature"in A)S=A;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in S&&"signature"in S&&(typeof S.signedMessage=="string"||S.signedMessage instanceof Uint8Array)&&S.signature instanceof Uint8Array)w=typeof S.signedMessage=="string"?S.signedMessage:new TextDecoder().decode(S.signedMessage),v=S.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}
255else{if(!("signMessage"in b)||typeof b.signMessage!="function"||!("publicKey"in b)||typeof b!="object"||!b.publicKey||!("toBase58"in b.publicKey)||typeof b.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${N.host} wants you to sign in with your Solana account:`,b.publicKey.toBase58(),...x?["",x,""]:[""],"Version: 1",`URI: ${N.href}`,`Issued At: ${(i=(s=g==null?void 0:g.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((r=g==null?void 0:g.signInWithSolana)===null||r===void 0)&&r.notBefore?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...!((l=g==null?void 0:g.signInWithSolana)===null||l===void 0)&&l.expirationTime?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...!((o=g==null?void 0:g.signInWithSolana)===null||o===void 0)&&o.chainId?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...!((c=g==null?void 0:g.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...!((d=g==null?void 0:g.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...!((m=(u=g==null?void 0:g.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||m===void 0)&&m.length?["Resources",...g.signInWithSolana.resources.map(S=>`- ${S}`)]:[]].join(`
256`);const A=await b.signMessage(new TextEncoder().encode(w),"utf8");if(!A||!(A instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=A}}try{const{data:j,error:y}=await re(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:m3(v)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Ja});if(y)throw y;return!j||!j.session||!j.user?{data:{user:null,session:null},error:new bo}:(j.session&&(await this._saveSession(j.session),await this._notifyAllSubscribers("SIGNED_IN",j.session)),{data:Object.assign({},j),error:y})}catch(j){if(Z(j))return{data:{user:null,session:null},error:j};throw j}}async _exchangeCodeForSession(t){const a=await No(this.storage,`${this.storageKey}-code-verifier`),[s,i]=(a??"").split("/");try{const{data:r,error:l}=await re(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:s},xform:Ja});if(await So(this.storage,`${this.storageKey}-code-verifier`),l)throw l;return!r||!r.session||!r.user?{data:{user:null,session:null,redirectType:null},error:new bo}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign(Object.assign({},r),{redirectType:i??null}),error:l})}catch(r){if(Z(r))return{data:{user:null,session:null,redirectType:null},error:r};throw r}}async signInWithIdToken(t){try{const{options:a,provider:s,token:i,access_token:r,nonce:l}=t,o=await re(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:i,access_token:r,nonce:l,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Ja}),{data:c,error:d}=o;return d?{data:{user:null,session:null},error:d}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new bo}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:d})}catch(a){if(Z(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithOtp(t){var a,s,i,r,l;try{if("email"in t){const{email:o,options:c}=t;let d=null,u=null;this.flowType==="pkce"&&([d,u]=await mi(this.storage,this.storageKey));const{error:m}=await re(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:o,data:(a=c==null?void 0:c.data)!==null&&a!==void 0?a:{},create_user:(s=c==null?void 0:c.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:d,code_challenge_method:u},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:m}}if("phone"in t){const{phone:o,options:c}=t,{data:d,error:u}=await re(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:o,data:(i=c==null?void 0:c.data)!==null&&i!==void 0?i:{},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},channel:(l=c==null?void 0:c.channel)!==null&&l!==void 0?l:"sms"}});return{data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:u}}throw new wo("You must provide either an email or phone number.")}catch(o){if(Z(o))return{data:{user:null,session:null},error:o};throw o}}async verifyOtp(t){var a,s;try{let i,r;"options"in t&&(i=(a=t.options)===null||a===void 0?void 0:a.redirectTo,r=(s=t.options)===null||s===void 0?void 0:s.captchaToken);const{data:l,error:o}=await re(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:r}}),redirectTo:i,xform:Ja});if(o)throw o;if(!l)throw new Error("An error occurred on token verification.");const c=l.session,d=l.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(i){if(Z(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithSSO(t){var a,s,i;try{let r=null,l=null;return this.flowType==="pkce"&&([r,l]=await mi(this.storage,this.storageKey)),await re(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:(s=(a=t.options)===null||a===void 0?void 0:a.redirectTo)!==null&&s!==void 0?s: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:r,code_challenge_method:l}),headers:this.headers,xform:I3})}catch(r){if(Z(r))return{data:null,error:r};throw r}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:a},error:s}=t;if(s)throw s;if(!a)throw new Sn;const{error:i}=await re(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:a.access_token});return{data:{user:null,session:null},error:i}})}catch(t){if(Z(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const a=`${this.url}/resend`;if("email"in t){const{email:s,type:i,options:r}=t,{error:l}=await re(this.fetch,"POST",a,{headers:this.headers,body:{email:s,type:i,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},redirectTo:r==null?void 0:r.emailRedirectTo});return{data:{user:null,session:null},error:l}}else if("phone"in t){const{phone:s,type:i,options:r}=t,{data:l,error:o}=await re(this.fetch,"POST",a,{headers:this.headers,body:{phone:s,type:i,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}}});return{data:{user:null,session:null,messageId:l==null?void 0:l.message_id},error:o}}throw new wo("You must provide either an email or phone number and a type")}catch(a){if(Z(a))return{data:{user:null,session:null},error:a};throw a}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async a=>a))}async _acquireLock(t,a){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await s,await a()))();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 s=a();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await s}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 a=await this.__loadSession();return await t(a)}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 a=await No(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",a),a!==null&&(this._isValidSession(a)?t=a:(this._debug("#getSession()","session from storage is not val
256id"),await this._removeSession())),!t)return{data:{session:null},error:null};const s=t.expires_at?t.expires_at*1e3-Date.now()<Lu:!1;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",t.expires_at),!s){if(this.storage.isServer){let l=this.suppressGetSessionWarning;t=new Proxy(t,{get:(c,d,u)=>(!l&&d==="user"&&(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."),l=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,d,u))})}return{data:{session:t},error:null}}const{session:i,error:r}=await this._callRefreshToken(t.refresh_token);return r?{data:{session:null},error:r}:{data:{session:i},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await re(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Rn}):await this._useSession(async a=>{var s,i,r;const{data:l,error:o}=a;if(o)throw o;return!(!((s=l.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Sn}:await re(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(r=(i=l.session)===null||i===void 0?void 0:i.access_token)!==null&&r!==void 0?r:void 0,xform:Rn})})}catch(a){if(Z(a))return i3(a)&&(await this._removeSession(),await So(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:a};throw a}}async updateUser(t,a={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,a))}async _updateUser(t,a={}){try{return await this._useSession(async s=>{const{data:i,error:r}=s;if(r)throw r;if(!i.session)throw new Sn;const l=i.session;let o=null,c=null;this.flowType==="pkce"&&t.email!=null&&([o,c]=await mi(this.storage,this.storageKey));const{data:d,error:u}=await re(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:a==null?void 0:a.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:o,code_challenge_method:c}),jwt:l.access_token,xform:Rn});if(u)throw u;return l.user=d.user,await this._saveSession(l),await this._notifyAllSubscribers("USER_UPDATED",l),{data:{user:l.user},error:null}})}catch(s){if(Z(s))return{data:{user:null},error:s};throw s}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Sn;const a=Date.now()/1e3;let s=a,i=!0,r=null;const{payload:l}=zu(t.access_token);if(l.exp&&(s=l.exp,i=s<=a),i){const{session:o,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!o)return{data:{user:null,session:null},error:null};r=o}else{const{data:o,error:c}=await this._getUser(t.access_token);if(c)throw c;r={access_token:t.access_token,refresh_token:t.refresh_token,user:o.user,token_type:"bearer",expires_in:s-a,expires_at:s},await this._saveSession(r),await this._notifyAllSubscribers("SIGNED_IN",r)}return{data:{user:r.user,session:r},error:null}}catch(a){if(Z(a))return{data:{session:null,user:null},error:a};throw a}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async a=>{var s;if(!t){const{data:l,error:o}=a;if(o)throw o;t=(s=l.session)!==null&&s!==void 0?s:void 0}if(!(t!=null&&t.refresh_token))throw new Sn;const{session:i,error:r}=await this._callRefreshToken(t.refresh_token);return r?{data:{user:null,session:null},error:r}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(a){if(Z(a))return{data:{user:null,session:null},error:a};throw a}}async _getSessionFromURL(t,a){try{if(!wa())throw new jo("No browser detected.");
256if(t.error||t.error_description||t.error_code)throw new jo(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(a){case"implicit":if(this.flowType==="pkce")throw new wx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new jo("Not a valid implicit grant flow url.");break;default:}if(a==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new wx("No code detected.");const{data:x,error:g}=await this._exchangeCodeForSession(t.code);if(g)throw g;const b=new URL(window.location.href);return b.searchParams.delete("code"),window.history.replaceState(window.history.state,"",b.toString()),{data:{session:x.session,redirectType:null},error:null}}const{provider_token:s,provider_refresh_token:i,access_token:r,refresh_token:l,expires_in:o,expires_at:c,token_type:d}=t;if(!r||!o||!l||!d)throw new jo("No session defined in URL");const u=Math.round(Date.now()/1e3),m=parseInt(o);let f=u+m;c&&(f=parseInt(c));const h=f-u;h*1e3<=bi&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${m}s`);const w=f-m;u-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,f,u):u-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,f,u);const{data:v,error:j}=await this._getUser(r);if(j)throw j;const y={provider_token:s,provider_refresh_token:i,access_token:r,expires_in:m,expires_at:f,refresh_token:l,token_type:d,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:t.type},error:null}}catch(s){if(Z(s))return{data:{session:null,redirectType:null},error:s};throw s}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const a=await No(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&a)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async a=>{var s;const{data:i,error:r}=a;if(r)return{error:r};const l=(s=i.session)===null||s===void 0?void 0:s.access_token;if(l){const{error:o}=await this.admin.signOut(l,t);if(o&&!(s3(o)&&(o.status===404||o.status===401||o.status===403)))return{error:o}}return t!=="others"&&(await this._removeSession(),await So(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const a=p3(),s={id:a,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",a),this.stateChangeEmitters.delete(a)}};return this._debug("#onAuthStateChange()","registered callback with id",a),this.stateChangeEmitters.set(a,s),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(a)})))(),{data:{subscription:s}}}async _emitInitialSession(t){return await this._useSession(async a=>{var s,i;try{const{data:{session:r},error:l}=a;if(l)throw l;await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",r)),this._debug("INITIAL_SESSION","callback id",t,"session",r)}catch(r){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",r),console.error(r)}})}async resetPasswordForEmail(t,a={}){let s=null,i=null;this.flowType==="pkce"&&([s,i]=await mi(this.storage,this.storageKey,!0));try{return await re(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:s,code_challenge_method:i,gotrue_meta_security:{captcha_token:a.captchaToken}},headers:this.headers,redirectTo:a.redirectTo})}catch(r){if(Z(r))return{data:null,error:r};throw r}}async getUserIdentities(){var t;try{const{data:a,error:s}=await this.getUser();if(s)throw s;return{data:{identities:(t=a.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(a){if(Z(a))return{data:null,error:a};throw a}}async linkIdentity(t){var a;try{const{data:s,error:i}=await this._useSession(async r=>{var l,o,c,d,u;const{data:m,error:f}=r;if(f)throw f;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(l=t.options)===null||l===void 0?void 0:l.redirectTo,scopes:(o=t.options)===null||o===void 0?void 0:o.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await re(this.fetch,"GET",h,{headers:this.headers,jwt:(u=(d=m.session)===null||d===void 0?void 0:d.access_token)!==null&&u!==void 0?u:void 0})});if(i)throw i;return wa()&&!(!((a=t.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(s==null?void 0:s.url),{data:{provider:t.provider,url:s==null?void 0:s.url},error:null}}catch(s){if(Z(s))return{data:{provider:t.provider,url:null},error:s};throw s}}async unlinkIdentity(t){try{return await this._useSession(async a=>{var s,i;const{data:r,error:l}=a;if(l)throw l;
256return await re(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(s=r.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0})})}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _refreshAccessToken(t){const a=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(a,"begin");try{const s=Date.now();return await y3(async i=>(i>0&&await v3(200*Math.pow(2,i-1)),this._debug(a,"refreshing attempt",i),await re(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Ja})),(i,r)=>{const l=200*Math.pow(2,i);return r&&Pu(r)&&Date.now()+l-s<bi})}catch(s){if(this._debug(a,"error",s),Z(s))return{data:{session:null,user:null},error:s};throw s}finally{this._debug(a,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,a){const s=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:a.redirectTo,scopes:a.scopes,queryParams:a.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",a,"url",s),wa()&&!a.skipBrowserRedirect&&window.location.assign(s),{data:{provider:t,url:s},error:null}}async _recoverAndRefresh(){var t;const a="#_recoverAndRefresh()";this._debug(a,"begin");try{const s=await No(this.storage,this.storageKey);if(this._debug(a,"session from storage",s),!this._isValidSession(s)){this._debug(a,"session is not valid"),s!==null&&await this._removeSession();return}const i=((t=s.expires_at)!==null&&t!==void 0?t:1/0)*1e3-Date.now()<Lu;if(this._debug(a,`session has${i?"":" not"} expired with margin of ${Lu}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:r}=await this._callRefreshToken(s.refresh_token);r&&(console.error(r),Pu(r)||(this._debug(a,"refresh failed with a non-retryable error, removing the session",r),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(a,"error",s),console.error(s);return}finally{this._debug(a,"end")}}async _callRefreshToken(t){var a,s;if(!t)throw new Sn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new _d;const{data:r,error:l}=await this._refreshAccessToken(t);if(l)throw l;if(!r.session)throw new Sn;await this._saveSession(r.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",r.session);const o={session:r.session,error:null};return this.refreshingDeferred.resolve(o),o}catch(r){if(this._debug(i,"error",r),Z(r)){const l={session:null,error:r};return Pu(r)||await this._removeSession(),(a=this.refreshingDeferred)===null||a===void 0||a.resolve(l),l}throw(s=this.refreshingDeferred)===null||s===void 0||s.reject(r),r}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,a,s=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",a,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:t,session:a});const r=[],l=Array.from(this.stateChangeEmitters.values()).map(async o=>{try{await o.callback(t,a)}catch(c){r.push(c)}});if(await Promise.all(l),r.length>0){for(let o=0;o<r.length;o+=1)console.error(r[o]);throw r[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Lj(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await So(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&wa()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(a){console.error("removing visibilitychange callback failed",a)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),bi);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}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 a=>{const{data:{session:s}}=a;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((s.expires_at*1e3-t)/bi);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${bi}ms, refresh threshold is ${rm} ticks`),i<=rm&&await this._callRefreshToken(s.refresh_token)})}catch(a){console.error("Auto refresh tick failed with error. This is likely a transient error.",a)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}
256catch(t){if(t.isAcquireTimeout||t instanceof Pj)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!wa()||!(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 a=`#_onVisibilityChanged(${t})`;this._debug(a,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(a,"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,a,s){const i=[`provider=${encodeURIComponent(a)}`];if(s!=null&&s.redirectTo&&i.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s!=null&&s.scopes&&i.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[r,l]=await mi(this.storage,this.storageKey),o=new URLSearchParams({code_challenge:`${encodeURIComponent(r)}`,code_challenge_method:`${encodeURIComponent(l)}`});i.push(o.toString())}if(s!=null&&s.queryParams){const r=new URLSearchParams(s.queryParams);i.push(r.toString())}return s!=null&&s.skipBrowserRedirect&&i.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async a=>{var s;const{data:i,error:r}=a;return r?{data:null,error:r}:await re(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token})})}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _enroll(t){try{return await this._useSession(async a=>{var s,i;const{data:r,error:l}=a;if(l)return{data:null,error:l};const o=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:c,error:d}=await re(this.fetch,"POST",`${this.url}/factors`,{body:o,headers:this.headers,jwt:(s=r==null?void 0:r.session)===null||s===void 0?void 0:s.access_token});return d?{data:null,error:d}:(t.factorType==="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}`),{data:c,error:null})})}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async a=>{var s;const{data:i,error:r}=a;if(r)return{data:null,error:r};const{data:l,error:o}=await re(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});return o?{data:null,error:o}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),{data:l,error:o})})}catch(a){if(Z(a))return{data:null,error:a};throw a}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async a=>{var s;const{data:i,error:r}=a;return r?{data:null,error:r}:await re(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token})})}catch(a){if(Z(a))return{data:null,error:a};throw a}})}async _challengeAndVerify(t){const{data:a,error:s}=await this._challenge({factorId:t.factorId});return s?{data:null,error:s}:await this._verify({factorId:t.factorId,challengeId:a.id,code:t.code})}async _listFactors(){const{data:{user:t},error:a}=await this.getUser();if(a)return{data:null,error:a};const s=(t==null?void 0:t.factors)||[],i=s.filter(l=>l.factor_type==="totp"&&l.status==="verified"),r=s.filter(l=>l.factor_type==="phone"&&l.status==="verified");return{data:{all:s,totp:i,phone:r},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var a,s;const{data:{session:i},error:r}=t;if(r)return{data:null,error:r};
256if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=zu(i.access_token);let o=null;l.aal&&(o=l.aal);let c=o;((s=(a=i.user.factors)===null||a===void 0?void 0:a.filter(m=>m.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(c="aal2");const u=l.amr||[];return{data:{currentLevel:o,nextLevel:c,currentAuthenticationMethods:u},error:null}}))}async fetchJwk(t,a={keys:[]}){let s=a.keys.find(l=>l.kid===t);if(s||(s=this.jwks.keys.find(l=>l.kid===t),s&&this.jwks_cached_at+a3>Date.now()))return s;const{data:i,error:r}=await re(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(r)throw r;if(!i.keys||i.keys.length===0)throw new cl("JWKS is empty");if(this.jwks=i,this.jwks_cached_at=Date.now(),s=i.keys.find(l=>l.kid===t),!s)throw new cl("No matching signing key found in JWKS");return s}async getClaims(t,a={keys:[]}){try{let s=t;if(!s){const{data:h,error:w}=await this.getSession();if(w||!h.session)return{data:null,error:w};s=h.session.access_token}const{header:i,payload:r,signature:l,raw:{header:o,payload:c}}=zu(s);if(k3(r.exp),!i.kid||i.alg==="HS256"||!("crypto"in globalThis&&"subtle"in globalThis.crypto)){const{error:h}=await this.getUser(s);if(h)throw h;return{data:{claims:r,header:i,signature:l},error:null}}const d=T3(i.alg),u=await this.fetchJwk(i.kid,a),m=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,m,l,h3(`${o}.${c}`)))throw new cl("Invalid JWT signature");return{data:{claims:r,header:i,signature:l},error:null}}catch(s){if(Z(s))return{data:null,error:s};throw s}}}kl.nextInstanceID=0;const $3=kl;class G3 extends $3{constructor(t){super(t)}}var W3=function(e,t,a,s){function i(r){return r instanceof a?r:new a(function(l){l(r)})}return new(a||(a=Promise))(function(r,l){function o(u){try{d(s.next(u))}catch(m){l(m)}}function c(u){try{d(s.throw(u))}catch(m){l(m)}}function d(u){u.done?r(u.value):i(u.value).then(o,c)}d((s=s.apply(e,t||[])).next())})};class F3{constructor(t,a,s){var i,r,l;if(this.supabaseUrl=t,this.supabaseKey=a,!t)throw new Error("supabaseUrl is required.");if(!a)throw new Error("supabaseKey is required.");const o=QC(t),c=new URL(o);this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const d=`sb-${c.hostname.split(".")[0]}-auth-token`,u={db:VC,realtime:$C,auth:Object.assign(Object.assign({},HC),{storageKey:d}),global:qC},m=XC(s??{},u);this.storageKey=(i=m.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(r=m.global.headers)!==null&&r!==void 0?r:{},m.accessToken?(this.accessToken=m.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((l=m.auth)!==null&&l!==void 0?l:{},this.headers,m.global.fetch),this.fetch=YC(a,this._getAccessToken.bind(this),m.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},m.realtime)),this.rest=new uC(new URL("rest/v1",c).href,{headers:this.headers,schema:m.db.schema,fetch:this.fetch}),m.accessToken||this._listenForAuthEvents()}get functions(){return new qE(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}get storage(){return new zC(this.storageUrl.href,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,a={},s={}){return this.rest.rpc(t,a,s)}channel(t,a={config:{}}){return this.realtime.channel(t,a)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,a;return W3(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:s}=yield this.auth.getSession();return(a=(t=s.session)===null||t===void 0?void 0:t.access_token)!==null&&a!==void 0?a:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:a,detectSessionInUrl:s,storage:i,storageKey:r,flowType:l,lock:o,debug:c},d,u){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new G3({url:this.authUrl.href,headers:Object.assign(Object.assign({},m),d),storageKey:r,autoRefreshToken:t,persistSession:a,detectSessionInUrl:s,storage:i,flowType:l,lock:o,debug:c,fetch:u,hasCu
256stomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new SC(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((a,s)=>{this._handleTokenChanged(a,"CLIENT",s==null?void 0:s.access_token)})}_handleTokenChanged(t,a,s){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==s?this.changedAccessToken=s:t==="SIGNED_OUT"&&(this.realtime.setAuth(),a=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const Y3=(e,t,a)=>new F3(e,t,a),K3="https://tdvyetjvotircdmwcwqb.supabase.co",Q3="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRkdnlldGp2b3RpcmNkbXdjd3FiIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDQwMDExMzYsImV4cCI6MjA1OTU3NzEzNn0.1k79iGakFvz3ziBSOSJwLMguLaueH9h0ZhHSFH3xlwY",vt=Y3(K3,Q3),X3=()=>{const e=Am(),[t,a]=p.useState(!1),[s,i]=p.useState({email:"",password:""}),[r,l]=p.useState({email:"",password:"",confirmPassword:""}),o=async d=>{d.preventDefault(),a(!0);try{const{data:u,error:m}=await vt.auth.signInWithPassword({email:s.email,password:s.password});if(m){console.error("Login error:",m),Ae({title:"Login failed",description:m.message,variant:"destructive"});return}if(u.user){const{data:f,error:h}=await vt.from("user_roles").select("role").eq("user_id",u.user.id),w=f==null?void 0:f.some(v=>v.role==="admin");if(h||!w){Ae({title:"Access denied",description:"You don't have admin privileges",variant:"destructive"});try{await vt.functions.invoke("logUsage",{body:{endpoint:"/admin/login",method:"POST",statusCode:403,additionalData:{event:"admin_login_denied",email:u.user.email,reason:"insufficient_privileges"}}})}catch(v){console.error("Failed to log security event:",v)}await vt.auth.signOut();return}Ae({title:"Login successful",description:"Welcome to the admin dashboard"}),e("/admin/dashboard")}}catch(u){console.error("Login failed:",u),Ae({title:"Login failed",description:"An unexpected error occurred. Please try again.",variant:"destructive"})}finally{a(!1)}},c=async d=>{if(d.preventDefault(),r.password!==r.confirmPassword){Ae({title:"Password mismatch",description:"Passwords do not match",variant:"destructive"});return}a(!0);try{const{data:u,error:m}=await vt.auth.signUp({email:r.email,password:r.password});if(m){console.error("Signup error:",m),Ae({title:"Signup failed",description:m.message,variant:"destructive"});return}if(u.user)if(u.user.email_confirmed_at){const{data:f,error:h}=await vt.from("user_roles").select("role").eq("user_id",u.user.id),w=f==null?void 0:f.some(v=>v.role==="admin");!h&&w?(Ae({title:"Admin account created",description:"Welcome to the admin dashboard"}),e("/admin/dashboard")):Ae({title:"Account created",description:"Your account has been created but you don't have admin privileges. Please contact support.",variant:"destructive"})}else Ae({title:"Check your email",description:"We've sent you a confirmation link. Please verify your email to continue."})}catch(u){console.error("Signup failed:",u),Ae({title:"Signup failed",description:"An unexpected error occurred. Please try again.",variant:"destructive"})}finally{a(!1)}};return n.jsx(Xt,{children:n.jsx("div",{className:"min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"max-w-md w-full space-y-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx(da,{className:"mx-auto h-12 w-12 text-appblue"}),n.jsx("h2",{className:"mt-6 text-3xl font-extrabold text-gray-900",children:"Admin Portal"}),n.jsx("p",{className:"mt-2 text-sm text-gray-600",children:"Secure access to administrative functions"})]}),n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{className:"text-center",children:"Authentication Required"}),n.jsx($e,{className:"text-center",children:"Please sign in to access the admin dashboard"})]}),n.jsx(V,{children:n.jsxs(ei,{defaultValue:"login",className:"w-full",children:[n.jsxs(rs,{className:"grid w-full grid-cols-2",children:[n.jsxs(Me,{value:"login",children:[n.jsx(Pk,{className:"mr-2 h-4 w-4"}),"Sign In"]}),n.jsxs(Me,{value:"signup",children:[n.jsx(Wk,{className:"mr-2 h-4 w-4"}),"Sign Up"]})]}),n.jsx(De,{value:"login",children:n.jsxs("form",{onSubmit:o,className:"space-y-4",children:[n.jsx("div",{children:n.jsx($,{type:"email",placeholder:"Admin email",value:s.email,onChange:d=>i(u=>({...u,email:d.target.value})),required:!0,disabled:t})}),n.jsx("div",{children:n.jsx($,{type:"password",placeholder:"Password",value:s.password,onChange:d=>i(u=>({...u,password:d.target.value})),required:!0,disabled:t})}
256),n.jsx(B,{type:"submit",className:"w-full",disabled:t,children:t?"Signing in...":"Sign In"})]})}),n.jsxs(De,{value:"signup",children:[n.jsx("div",{className:"mb-4 p-3 bg-amber-50 border border-amber-200 rounded-md",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx(Wi,{className:"h-4 w-4 text-amber-600 mr-2"}),n.jsx("p",{className:"text-sm text-amber-800",children:"New accounts are created with user privileges. Contact support for admin access."})]})}),n.jsxs("form",{onSubmit:c,className:"space-y-4",children:[n.jsx("div",{children:n.jsx($,{type:"email",placeholder:"Email address",value:r.email,onChange:d=>l(u=>({...u,email:d.target.value})),required:!0,disabled:t})}),n.jsx("div",{children:n.jsx($,{type:"password",placeholder:"Password",value:r.password,onChange:d=>l(u=>({...u,password:d.target.value})),required:!0,disabled:t,minLength:6})}),n.jsx("div",{children:n.jsx($,{type:"password",placeholder:"Confirm password",value:r.confirmPassword,onChange:d=>l(u=>({...u,confirmPassword:d.target.value})),required:!0,disabled:t,minLength:6})}),n.jsx(B,{type:"submit",className:"w-full",disabled:t,children:t?"Creating account...":"Create Account"})]})]})]})})]})]})})})},J3=({children:e})=>{const t=Am(),[a,s]=p.useState(!0),[i,r]=p.useState(!1);return p.useEffect(()=>{let l=!0;const o=async()=>{try{const{data:{session:d},error:u}=await vt.auth.getSession();if(u)throw console.error("Session error:",u),u;if(!d){l&&t("/admin");return}try{const{data:m,error:f}=await vt.from("user_roles").select("role").eq("user_id",d.user.id);if(f)throw console.error("Roles error:",f),new Error("Unable to verify admin privileges");if(!(m==null?void 0:m.some(w=>w.role==="admin"))){Ae({title:"Access denied",description:"You don't have admin privileges",variant:"destructive"});try{await vt.functions.invoke("logUsage",{body:{endpoint:"/admin",method:"GET",statusCode:403,additionalData:{event:"admin_access_denied",email:d.user.email,attempted_route:window.location.pathname}}})}catch(w){console.error("Failed to log security event:",w)}await vt.auth.signOut(),l&&t("/admin");return}l&&r(!0)}catch(m){console.error("Database query failed:",m),Ae({title:"Authentication error",description:"Admin system not fully configured. Please contact support.",variant:"destructive"}),l&&t("/admin")}}catch(d){console.error("Admin auth check failed:",d),Ae({title:"Authentication error",description:"Please try logging in again",variant:"destructive"}),l&&t("/admin")}finally{l&&s(!1)}},{data:{subscription:c}}=vt.auth.onAuthStateChange(async(d,u)=>{d==="SIGNED_OUT"||!u?l&&t("/admin"):(d==="SIGNED_IN"||d==="TOKEN_REFRESHED")&&o()});return o(),()=>{l=!1,c.unsubscribe()}},[t]),a?n.jsx("div",{className:"flex items-center justify-center min-h-screen",children:n.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-appblue"})}):i?n.jsx(n.Fragment,{children:e}):null},rn=p.forwardRef(({className:e,...t},a)=>n.jsx("textarea",{className:P("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
256ing-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:a,...t}));rn.displayName="Textarea";const Z3=()=>{const[e,t]=p.useState("AI-Driven Growth For Your Business"),[a,s]=p.useState("Empowering companies to navigate complex markets and transform operations with advanced AI solutions."),[i,r]=p.useState(!1),[l,o]=p.useState(!1),c=()=>{o(!0),setTimeout(()=>{o(!1),Ae({title:"Content saved",description:"Your changes to the homepage have been saved"})},1500)};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsx("h2",{className:"text-2xl font-bold",children:"Homepage Editor"}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs(B,{variant:"outline",size:"sm",onClick:()=>r(!i),children:[n.jsx(Eb,{className:"h-4 w-4 mr-1"}),i?"Edit Mode":"Preview"]}),n.jsxs(B,{size:"sm",onClick:c,disabled:l,children:[n.jsx($l,{className:"h-4 w-4 mr-1"}),l?"Saving...":"Save Changes"]})]})]}),n.jsxs(ei,{defaultValue:"hero",children:[n.jsxs(rs,{children:[n.jsx(Me,{value:"hero",children:"Hero Section"}),n.jsx(Me,{value:"stats",children:"Stats Section"}),n.jsx(Me,{value:"services",children:"Services"}),n.jsx(Me,{value:"tech",children:"Technologies"}),n.jsx(Me,{value:"cta",children:"Call to Action"})]}),n.jsxs(De,{value:"hero",className:"space-y-6",children:[n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Hero Section"}),n.jsx($e,{children:"Edit the main headline and subtext that appears at the top of your homepage"})]}),n.jsx(V,{className:"space-y-4",children:i?n.jsxs("div",{className:"p-6 bg-gray-50 rounded-lg",children:[n.jsx("h1",{className:"text-4xl font-bold mb-4",children:e}),n.jsx("p",{className:"text-lg text-gray-600",children:a})]}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"heroTitle",children:"Headline"}),n.jsx($,{id:"heroTitle",value:e,onChange:d=>t(d.target.value),placeholder:"Enter main headline"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"heroSubtext",children:"Subtext"}),n.jsx(rn,{id:"heroSubtext",value:a,onChange:d=>s(d.target.value),placeholder:"Enter subtitle text",rows:3})]}),n.jsx("div",{className:"pt-2",children:n.jsx(B,{variant:"outline",size:"sm",children:"Upload Hero Image"})})]})})]}),n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Buttons & CTAs"}),n.jsx($e,{children:"Configure the call-to-action buttons in the hero section"})]}),n.jsx(V,{className:"space-y-4",children:n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"primaryBtn",children:"Primary Button"}),n.jsx($,{id:"primaryBtn",defaultValue:"Learn More",placeholder:"Enter button text"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"primaryBtnLink",children:"Primary Button Link"}),n.jsx($,{id:"primaryBtnLink",defaultValue:"/about",placeholder:"Enter URL"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"secondaryBtn",children:"Secondary Button"}),n.jsx($,{id:"secondaryBtn",defaultValue:"Get Started",placeholder:"Enter button text"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"secondaryBtnLink",children:"Secondary Button Link"}),n.jsx($,{id:"secondaryBtnLink",defaultValue:"/contact",placeholder:"Enter URL"})]})]})})]})]}),n.jsx(De,{value:"stats",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Statistics Section"}),n.jsx($e,{children:'Edit the statistics displayed in the "Why AI-Driven Growth Matters" section'})]}),n.jsx(V,{children:n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsx(Q,{children:"Stat 1"}),n.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[n.jsx($,{defaultValue:"37%",placeholder:"Value"}),n.jsx($,{defaultValue:"Higher revenue growth",placeholder:"Description"})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsx(Q,{children:"Stat 2"}),n.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[n.jsx($,{defaultValue:"42%",placeholder:"Value"}),n.jsx($,{defaultValue:"Increased operational efficiency",placeholder:"Description"})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsx(Q,{children:"Stat 3"}),n.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[n.jsx($,{defaultValue:"68%",placeholder:"Value"}),n.jsx($,{defaultValue:"Faster time-to-market",placeholder:"Description"})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsx(Q,{children:"Stat 4"}),n.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[n.jsx($,{defaultValue:"43%",placeholder:"Value"}),n.jsx($,{defaultValue:"Improved global market positioning",placeholder:"Description"})]})]})]})})]})}),n.jsx(De,{value:"services",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Services Slider"}),n.jsx($e,{children:"Edit the services displayed in the slider"})]}),n.jsx(V,{children:n.jsxs("div",{className:"space-y-6",children:[n.jsx("p",{className:"text-sm text-muted-foreground",children:"You can edit up to 6 service cards that appear in the slider"}),n.jsx("div",{className:"text-center py-10 text-muted-foreground",children:"Service slider editor is in development"})]})})]})}),n.jsx(De,{value:"tech",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"AI Technologies Section"}),n.jsx($e,{children:"Edit the AI technologies displayed on the homepage"})]}),n.jsx(V,{children:n.jsxs("div",{className:"space-y-6",children:[n.jsx("p",{className:"text-sm text-muted-foreground",children:'Edit the technologies that appear in the "AI Technologies We Deploy" section'}),n.jsx("div",{className:"text-center py-10 text-muted-foreground",children:"Technologies editor is in development"})]})})]})}),n.jsx(De,{value:"cta",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Call to Action Section"}),n.jsx($e,{children:"Edit the CTA section at the bottom of the homepage"})]}),n.jsx(V,{children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"ctaTitle",children:"CTA Headline"}),n.jsx($,{id:"ctaTitle",defaultValue:"Ready to Transform Your Business?",placeholder:"Enter CTA headline"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"ctaDescription",children:"CTA Description"}),n.jsx(rn,{id:"ctaDescription",defaultValue:"Discover how our AI-driven strategies can help you achieve sustainable growth and competitive advantage in today's challenging market.",placeholder:"Enter CTA description",rows:3})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"ctaButtonText",children:"Button Text"}),n.jsx($,{id:"ctaButtonText",defaultValue:"Schedule a Consultation",placeholder:"Enter button text"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"ctaButtonLink",children:"Button Link"}),n.jsx($,{id:"ctaButtonLink",defaultValue:"/contact",placeholder:"Enter URL"})]})]})})]})})]})]})},e5=()=>{const[e,t]=p.useState("retail"),[a,s]=p.useState(!1),i=()=>{s(!0),setTimeout(()=>{s(!1),Ae({title:"Case study saved",description:`Your changes to the ${e} case study have been saved`})},1500)};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsx("h2",{className:"text-2xl font-bold",children:"Case Studies Editor"}),n.jsxs(B,{size:"sm",onClick:i,disabled:a,children:[n.jsx($l,{className:"h-4 w-4 mr-1"}),a?"Saving...":"Save Changes"]})]}),n.jsxs(ei,{value:e,onValueChange:t,children:[n.jsxs(rs,{className:"grid grid-cols-3 w-full",children:[n.jsx(Me,{value:"retail",children:"Retail Growth"}),n.jsx(Me,{value:"creative",children:"Creative Transformation"}),n.jsx(Me,{value:"sales",children:"Sales Automation"})]}),n.jsxs(De,{value:"retail",className:"space-y-6 mt-6",children:[n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Retail Growth Case Study"}),n.jsx($e,{children:"Edit the content for the Retail Growth case study"})]}),n.jsxs(V,{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"retailTitle",children:"Case Study Title"}),n.jsx($,{id:"retailTitle",defaultValue:"AI-Driven Retail Growth Strategy",placeholder:"Enter case study title"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"retailSubtitle",children:"Subtitle"}),n.jsx($,{id:"retailSubtitle",defaultValue:"How AI transformed a retail chain's growth strategy",placeholder:"Enter subtitle"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"retailSummary",children:"Summary"}),n.jsx(rn,{id:"retailSummary",defaultValue:"A leading retail chain struggling with declining foot traffic and online competition partnered with Appenue AI to reimagine their growth strategy.",placeholder:"Enter summary",rows:3})]}),n.jsxs(qa,{type:"single",collapsible:!0,className:"w-full",children:[n.jsxs(Vt,{value:"challenge",children:[n.jsx(Ht,{children:"Challenge Section"}),n.jsx($t,{children:n.jsxs("div",{className:"space-y-4 pt-2",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"retailChallenge",children:"Challenge Description"}),n.jsx(rn,{id:"retailChallenge",defaultValue:"The client faced declining foot traffic, increasingly aggressive online competition, and outdated inventory management systems that were hampering growth.",placeholder:"Describe the challenge",rows:3})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{children:"Challenge Stats"}),n.jsxs("div",{className:"space-y-2",children:[n.jsx($,{defaultValue:"Declining year-over-year sales of 8%",placeholder:"Challenge stat 1"}),n.jsx($,{defaultValue:"Customer retention rate below industry average",placeholder:"Challenge stat 2"}),n.jsx($,{defaultValue:"Poor inventory turnover ratio",placeholder:"Challenge stat 3"})]}),n.jsxs(B,{variant:"outline",size:"sm",className:"mt-2",children:[n.jsx(qr,{className:"h-4 w-4 mr-1"}),"Add Stat"]})]})]})})]}),n.jsxs(Vt,{value:"solution",children:[n.jsx(Ht,{children:"Solution Section"}),n.jsx($t,{children:n.jsxs("div",{className:"space-y-4 pt-2",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"retailSolution",children:"Solution Description"}),n.jsx(rn,{id:"retailSolution",defaultValue:"We implemented a comprehensive AI solution that included predictive analytics for inventory management, personalized marketing automation, and a smart pricing strategy.",placeholder:"Describe the solution",rows:3})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{children:"Solution Components"}),n.jsxs("div",{className:"space-y-2",children:[n.jsx($,{defaultValue:"AI-driven inventory management system",placeholder:"Solution component 1"}),n.jsx($,{defaultValue:"Personalized marketing automation",placeholder:"Solution component 2"}),n.jsx($,{defaultValue:"Smart pricing strategy",placeholder:"Solution component 3"})]}),n.jsxs(B,{variant:"outline",size:"sm",className:"mt-2",children:[n.jsx(qr,{className:"h-4 w-4 mr-1"}),"Add Component"]})]})]})})]}),n.jsxs(Vt,{value:"results",children:[n.jsx(Ht,{children:"Results Section"}),n.jsx($t,{children:n.jsxs("div",{className:"space-y-4 pt-2",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"retailResults",children:"Results Description"}),n.jsx(rn,{id:"retailResults",defaultValue:"The implementation of our AI solutions resulted in a 32% increase in revenue, 41% improvement in inventory turnover, and a significant boost in customer retention.",placeholder:"Describe the results",rows:3})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{children:"Results Stats"}),n.jsxs("div",{className:"space-y-2",children:[n.jsx($,{defaultValue:"32% increase in revenue",placeholder:"Result stat 1"}),n.jsx($,{defaultValue:"41% improvement in inventory turnover",placeholder:"Result stat 2"}),n.jsx($,{defaultValue:"28% boost in customer retention",placeholder:"Result stat 3"})]}),n.jsxs(B,{variant:"outline",size:"sm",className:"mt-2",children:[n.jsx(qr,{className:"h-4 w-4 mr-1"}),"Add Stat"]})]})]})})]})]})]})]}),n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Chart Data"}),n.jsx($e,{children:"Edit the pie chart data for this case study"})]}),n.jsxs(V,{children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg font-medium",children:"Chart: Revenue Comparison"}),n.jsxs(B,{variant:"outline",size:"sm",children:[n.jsx(Sm,{className:"h-4 w-4 mr-1"}),"Preview Chart"]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"grid grid-cols-12 gap-4 items-center font-medium text-sm",children:[n.jsx("div",{className:"col-span-1"}),n.jsx("div",{className:"col-span-3",children:"Label"}),n.jsx("div",{className:"col-span-2",children:"Value"}),n.jsx("div",{className:"col-span-3",children:"Color"}),n.jsx("div",{className:"col-span-3",children:"Actions"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"grid grid-cols-12 gap-4 items-center",children:[n.jsx("div",{className:"col-span-1 text-center",children:"1"}),n.jsx("div",{className:"col-span-3",children:n.jsx($,{defaultValue:"Before AI",placeholder:"Segment label"})}),n.jsx("div",{className:"col-span-2",children:n.jsx($,{defaultValue:"30",placeholder:"%"})}),n.jsx("div",{className:"col-span-3",children:n.jsx($,{type:"color",defaultValue:"#ff6b6b",className:"w-full h-10"})}),n.jsxs("div",{className:"col-span-3 flex items-center gap-2",children:[n.jsx(B,{variant:"outline",size:"sm",children:n.jsx(Oc,{className:"h-4 w-4"})}),n.jsx(B,{variant:"outline",size:"sm",children:n.jsx(ul,{className:"h-4 w-4"})}),n.jsx(B,{variant:"outline",size:"sm",children:n.jsx(Ii,{className:"h-4 w-4"})})]})]}),n.jsxs("div",{className:"grid grid-cols-12 gap-4 items-center",children:[n.jsx("div",{className:"col-span-1 text-center",children:"2"}),n.jsx("div",{className:"col-span-3",children:n.jsx($,{defaultValue:"After AI",placeholder:"Segment label"})}),n.jsx("div",{className:"col-span-2",children:n.jsx($,{defaultValue:"70",placeholder:"%"})}),n.jsx("div",{className:"col-span-3",children:n.jsx($,{type:"color",defaultValue:"#4ecdc4",className:"w-full h-10"})}),n.jsxs("div",{className:"col-span-3 flex items-center gap-2",children:[n.jsx(B,{variant:"outline",size:"sm",children:n.jsx(Oc,{className:"h-4 w-4"})}),n.jsx(B,{variant:"outline",size:"sm",children:n.jsx(ul,{className:"h-4 w-4"})}),n.jsx(B,{variant:"outline",size:"sm",children:n.jsx(Ii,{className:"h-4 w-4"})})]})]})]}),n.jsxs(B,{variant:"outline",size:"sm",children:[n.jsx(qr,{className:"h-4 w-4 mr-1"}),"Add Segment"]})]})]})]})]}),n.jsx(De,{value:"creative",className:"space-y-6 mt-6",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Creative Transformation Case Study"}),n.jsx($e,{children:"Edit the content for the Creative Transformation case study"})]}),n.jsx(V,{children:n.jsx("div",{className:"space-y-4",children:n.jsx("div",{className:"text-center py-10 text-muted-foreground",children:"Creative Transformation editor has the same structure as Retail Growth"})})})]})}),n.jsx(De,{value:"sales",className:"space-y-6 mt-6",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Sales Automation Case Study"}),n.jsx($e,{children:"Edit the content for the Sales Automation case study"})]}),n.jsx(V,{children:n.jsx("div",{className:"space-y-4",children:n.jsx("div",{className:"text-center py-10 text-muted-foreground",children:"Sales Automation editor has the same structure as Retail Growth"})})})]})})]})]})};var Ed="Switch",[t5]=Ba(Ed),[a5,n5]=t5(Ed),zj=p.forwardRef((e,t)=>
256{const{__scopeSwitch:a,name:s,checked:i,defaultChecked:r,required:l,disabled:o,value:c="on",onCheckedChange:d,form:u,...m}=e,[f,h]=p.useState(null),w=Te(t,g=>h(g)),v=p.useRef(!1),j=f?u||!!f.closest("form"):!0,[y,x]=Ta({prop:i,defaultProp:r??!1,onChange:d,caller:Ed});return n.jsxs(a5,{scope:a,checked:y,disabled:o,children:[n.jsx(Y.button,{type:"button",role:"switch","aria-checked":y,"aria-required":l,"data-state":Vj(y),"data-disabled":o?"":void 0,disabled:o,value:c,...m,ref:w,onClick:F(e.onClick,g=>{x(b=>!b),j&&(v.current=g.isPropagationStopped(),v.current||g.stopPropagation())})}),j&&n.jsx(qj,{control:f,bubbles:!v.current,name:s,value:c,checked:y,required:l,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});zj.displayName=Ed;var Bj="SwitchThumb",Uj=p.forwardRef((e,t)=>{const{__scopeSwitch:a,...s}=e,i=n5(Bj,a);return n.jsx(Y.span,{"data-state":Vj(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})});Uj.displayName=Bj;var s5="SwitchBubbleInput",qj=p.forwardRef(({__scopeSwitch:e,control:t,checked:a,bubbles:s=!0,...i},r)=>{const l=p.useRef(null),o=Te(l,r),c=Mf(a),d=Jx(t);return p.useEffect(()=>{const u=l.current;if(!u)return;const m=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(m,"checked").set;if(c!==a&&h){const w=new Event("click",{bubbles:s});h.call(u,a),u.dispatchEvent(w)}},[c,a,s]),n.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...i,tabIndex:-1,ref:o,style:{...i.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});qj.displayName=s5;function Vj(e){return e?"checked":"unchecked"}var Hj=zj,i5=Uj;const Es=p.forwardRef(({className:e,...t},a)=>n.jsx(Hj,{className:P("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors 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 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:a,children:n.jsx(i5,{className:P("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")})}));Es.displayName=Hj.displayName;const r5=[{id:"cards",label:"Cards",icon:Dk},{id:"table",label:"Table",icon:Ek},{id:"list",label:"List",icon:Lk}],l5=()=>{const[e,t]=p.useState("cards"),[a,s]=p.useState(!1),i=()=>{s(!0),setTimeout(()=>{s(!1),Ae({title:"Packages saved",description:"Your changes to the packages have been saved"})},1500)};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsx("h2",{className:"text-2xl font-bold",children:"Packages Editor"}),n.jsxs(B,{size:"sm",onClick:i,disabled:a,children:[n.jsx($l,{className:"h-4 w-4 mr-1"}),a?"Saving...":"Save Changes"]})]}),n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Display Settings"}),n.jsx($e,{children:"Configure how packages are displayed on the website"})]}),n.jsx(V,{children:n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx(Q,{children:"Layout Type"}),n.jsx("div",{className:"flex flex-wrap gap-4 mt-2",children:r5.map(r=>{const l=r.icon;return n.jsxs("div",{className:`flex flex-col items-center p-4 rounded-lg cursor-pointer border-2 transition-all ${e===r.id?"border-appblue bg-appblue/5":"border-gray-200 hover:border-gray-300"}`,onClick:()=>t(r.id),children:[n.jsx(l,{className:`h-6 w-6 mb-2 ${e===r.id?"text-appblue":"text-gray-500"}`}),n.jsx("span",{className:`text-sm font-medium ${e===r.id?"text-appblue":"text-gray-700"}`,children:r.label})]},r.id)})})]}),n.jsxs("div",{className:"flex flex-wrap gap-6",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Es,{id:"showComparison",defaultChecked:!0}),n.jsx(Q,{htmlFor:"showComparison",className:"cursor-pointer",children:"Show comparison table"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Es,{id:"highlightPopular",defaultChecked:!0}),n.jsx(Q,{htmlFor:"highlightPopular",className:"cursor-pointer",children:"Highlight popular package"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Es,{id:"showCurrency",defaultChecked:!0}),n.jsx(Q,{htmlFor:"showCurrency",className:"cursor-pointer",children:"Show currency symbol (€)"})]})]})]})})]}),n.jsxs(ei,{defaultValue:"starter",children:[n.jsxs(rs,{className:"grid grid-cols-3",children:[n.jsx(Me,{value:"starter",children:"Starter"}),n.jsx(Me,{value:"pro",children:"Professional"}),n.jsx(Me,{value:"enterprise",children:"Enterprise"})]}),n.jsx(De,{value:"starter",className:"space-y-6 mt-6",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Starter Package"}),n.jsx($e,{children:"Edit the Starter package details"})]}),n.jsxs(V,{className:"space-y-6",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"starterName",children:"Package Name"}),n.jsx($,{id:"starterName",defaultValue:"Starter",placeholder:"Enter package name"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"starterPrice",children:"Price (€)"}),n.jsx($,{id:"starterPrice",defaultValue:"1499",placeholder:"Enter price in euros",type:"number"})]}),n.jsx("div",{className:"space-y-2 flex items-end",children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Es,{id:"starterPopular"}),n.jsx(Q,{htmlFor:"starterPopular",children:"Mark as Popular"})]})})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"starterDesc",children:"Description"}),n.jsx($,{id:"starterDesc",defaultValue:"Perfect for small businesses starting with AI",placeholder:"Enter package description"})]}),n.jsxs(qa,{type:"single",collapsible:!0,className:"w-full",children:[n.jsxs(Vt,{value:"features",children:[n.jsx(Ht,{children:"Package Features"}),n.jsx($t,{children:n.jsxs("div",{className:"space-y-4 pt-2",children:[n.jsx(Q,{children:"Features List"}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx($,{defaultValue:"AI Business Analysis",placeholder:"Feature",className:"flex-1"}),n.jsx(B,{variant:"outline",size:"sm",className:"shrink-0",children:n.jsx(Ii,{className:"h-4 w-4"})})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx($,{defaultValue:"Market Opportunity Assessment",placeholder:"Feature",className:"flex-1"}),n.jsx(B,{variant:"outline",size:"sm",className:"shrink-0",children:n.jsx(Ii,{className:"h-4 w-4"})})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx($,{defaultValue:"AI Readiness Evaluation",placeholder:"Feature",className:"flex-1"}),n.jsx(B,{variant:"outline",size:"sm",className:"shrink-0",children:n.jsx(Ii,{className:"h-4 w-4"})})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx($,{defaultValue:"1 Interactive Workshop",placeholder:"Feature",className:"flex-1"}),n.jsx(B,{variant:"outline",size:"sm",className:"shrink-0",children:n.jsx(Ii,{className:"h-4 w-4"})})]})]}),n.jsxs(B,{variant:"outline",size:"sm",children:[n.jsx(qr,{className:"h-4 w-4 mr-1"}),"Add Feature"]})]})})]}),n.jsxs(Vt,{value:"cta",children:[n.jsx(Ht,{children:"Call to Action"}),n.jsx($t,{children:n.jsxs("div",{className:"space-y-4 pt-2",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"starterBtnText",children:"Button Text"}),n.jsx($,{id:"starterBtnText",defaultValue:"Get Started",placeholder:"Enter button text"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"starterBtnLink",children:"Button Link"}),n.jsx($,{id:"starterBtnLink",defaultValue:"/contact?package=starter",placeholder:"Enter URL"})]})]})})]})]})]})]})}),n.jsx(De,{value:"pro",className:"space-y-6 mt-6",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Professional Package"}),n.jsx($e,{children:"Edit the Professional package details"})]}),n.jsx(V,{children:n.jsx("div",{className:"text-center py-10 text-muted-foreground",children:"Professional package editor has the same structure as Starter"})})]})}),n.jsx(De,{value:"enterprise",className:"space-y-6 mt-6",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Enterprise Package"}),n.jsx($e,{children:"Edit the Enterprise package details"})]}),n.jsx(V,{children:n.jsx("div",{className:"text-center py-10 text-muted-foreground",children:"Enterprise package editor has the same structure as Starter"})})]})})]})]})};function cm(e,[t,a]){return Math.min(a,Math.max(t,e))}var o5=[" ","Enter","ArrowUp","ArrowDown"],c5=[" ","Enter"],Hs="Select",[Cd,Od,d5]=bm(Hs),[br]=Ba(Hs,[d5,uv]),Rd=uv(),[u5,os]=br(Hs),[h5,m5]=br(Hs),$j=e=>{const{__scopeSelect:t,children:a,open:s,defaultOpen:i,onOpenChange:r,value:l,defaultValue:o,onValueChange:c,dir:d,name:u,autoComplete:m,disabled:f,required:h,form:w}=e,v=Rd(t),[j,y]=p.useState(null),[x,g]=p.useState(null),[b,N]=p.useState(!1),A=Cl(d),[S,_]=Ta({prop:s,defaultProp:i??!1,onChange:r,caller:Hs}),[O,R]=Ta({prop:l,defaultProp:o,onChange:c,caller:Hs}
vendor: 17,755 bytes, line 256
256),H=p.useRef(null),X=j?w||!!j.closest("form"):!0,[me,U]=p.useState(new Set),ce=Array.from(me).map(C=>C.props.value).join(";");return n.jsx(W2,{...v,children:n.jsxs(u5,{required:h,scope:t,trigger:j,onTriggerChange:y,valueNode:x,onValueNodeChange:g,valueNodeHasChildren:b,onValueNodeHasChildrenChange:N,contentId:zn(),value:O,onValueChange:R,open:S,onOpenChange:_,dir:A,triggerPointerDownPosRef:H,disabled:f,children:[n.jsx(Cd.Provider,{scope:t,children:n.jsx(h5,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(C=>{U(D=>new Set(D).add(C))},[]),onNativeOptionRemove:p.useCallback(C=>{U(D=>{const z=new Set(D);return z.delete(C),z})},[]),children:a})}),X?n.jsxs(f1,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:m,value:O,onChange:C=>R(C.target.value),disabled:f,form:w,children:[O===void 0?n.jsx("option",{value:""}):null,Array.from(me)]},ce):null]})})};$j.displayName=Hs;var Gj="SelectTrigger",Wj=p.forwardRef((e,t)=>{const{__scopeSelect:a,disabled:s=!1,...i}=e,r=Rd(a),l=os(Gj,a),o=l.disabled||s,c=Te(t,l.onTriggerChange),d=Od(a),u=p.useRef("touch"),[m,f,h]=g1(v=>{const j=d().filter(g=>!g.disabled),y=j.find(g=>g.value===l.value),x=x1(j,v,y);x!==void 0&&l.onValueChange(x.value)}),w=v=>{o||(l.onOpenChange(!0),h()),v&&(l.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return n.jsx($2,{asChild:!0,...r,children:n.jsx(Y.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":p1(l.value)?"":void 0,...i,ref:c,onClick:F(i.onClick,v=>{v.currentTarget.focus(),u.current!=="mouse"&&w(v)}),onPointerDown:F(i.onPointerDown,v=>{u.current=v.pointerType;const j=v.target;j.hasPointerCapture(v.pointerId)&&j.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(w(v),v.preventDefault())}),onKeyDown:F(i.onKeyDown,v=>{const j=m.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&f(v.key),!(j&&v.key===" ")&&o5.includes(v.key)&&(w(),v.preventDefault())})})})});Wj.displayName=Gj;var Fj="SelectValue",Yj=p.forwardRef((e,t)=>{const{__scopeSelect:a,className:s,style:i,children:r,placeholder:l="",...o}=e,c=os(Fj,a),{onValueNodeHasChildrenChange:d}=c,u=r!==void 0,m=Te(t,c.onValueNodeChange);return ka(()=>{d(u)},[d,u]),n.jsx(Y.span,{...o,ref:m,style:{pointerEvents:"none"},children:p1(c.value)?n.jsx(n.Fragment,{children:l}):r})});Yj.displayName=Fj;var f5="SelectIcon",Kj=p.forwardRef((e,t)=>{const{__scopeSelect:a,children:s,...i}=e;return n.jsx(Y.span,{"aria-hidden":!0,...i,ref:t,children:s||"▼"})});Kj.displayName=f5;var p5="SelectPortal",Qj=e=>n.jsx(ud,{asChild:!0,...e});Qj.displayName=p5;var $s="SelectContent",Xj=p.forwardRef((e,t)=>{const a=os($s,e.__scopeSelect),[s,i]=p.useState();if(ka(()=>{i(new DocumentFragment)},[]),!a.open){const r=s;return r?Fc.createPortal(n.jsx(Jj,{scope:e.__scopeSelect,children:n.jsx(Cd.Slot,{scope:e.__scopeSelect,children:n.jsx("div",{children:e.children})})}),r):null}return n.jsx(Zj,{...e,ref:t})});Xj.displayName=$s;var ja=10,[Jj,cs]=br($s),g5="SelectContentImpl",x5=Qx("SelectContent.RemoveScroll"),Zj=p.forwardRef((e,t)=>{const{__scopeSelect:a,position:s="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:r,onPointerDownOutside:l,side:o,sideOffset:c,align:d,alignOffset:u,arrowPadding:m,collisionBoundary:f,collisionPadding:h,sticky:w,hideWhenDetached:v,avoidCollisions:j,...y}=e,x=os($s,a),[g,b]=p.useState(null),[N,A]=p.useState(null),S=Te(t,L=>b(L)),[_,O]=p.useState(null),[R,H]=p.useState(null),X=Od(a),[me,U]=p.useState(!1),ce=p.useRef(!1);p.useEffect(()=>{if(g)return Gb(g)},[g]),Lb();const C=p.useCallback(L=>{const[_e,...et]=X().map(xe=>xe.ref.current),[we]=et.slice(-1),fe=document.activeElement;for(const xe of L)if(xe===fe||(xe==null||xe.scrollIntoView({block:"nearest"}),xe===_e&&N&&(N.scrollTop=0),xe===we&&N&&(N.scrollTop=N.scrollHeight),xe==null||xe.focus(),document.activeElement!==fe))return},[X,N]),D=p.useCallback(()=>C([_,g]),[C,_,g]);p.useEffect(()=>{me&&D()},[me,D]);const{onOpenChange:z,triggerPointerDownPosRef:M}=x;p.useEffect(()=>{if(g){let L={x:0,y:0};const _e=we=>{var fe,xe;L={x:Math.abs(Math.round(we.pageX)-(((fe=M.current)==null?void 0:fe.x)??0)),y:Math.abs(Math.round(we.pageY)-(((xe=M.current)==null?void 0:xe.y)??0))}},et=we=>{L.x<=10&&L.y<=10?we.preventDefault():g.contains(we.target)||z(!1),document.removeEventListener("pointermove",_e),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",_e),document.addEventListener("pointerup",et,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_e),document.removeEventListener("pointerup",et,{capture:!0})}}},[g,z,M]),p.useEffect(()=>{const L=()=>z(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L)}},[z]);const[ne,wt]=g1(L=>{const _e=X().filter(fe=>!fe.disabled),et=_e.find(fe=>fe.ref.current===document.activeElement),we=x1(_e,L,et);we&&setTimeout(()=>we.ref.current.focus())}),ae=p.useCallback((L,_e,et)=>{const we=!ce.current&&!et;(x.value!==void 0&&x.value===_e||we)&&(O(L),we&&(ce.current=!0))},[x.value]),se=p.useCallback(()=>g==null?void 0:g.focus(),[g]),te=p.useCallback((L,_e,et)=>{const we=!ce.current&&!et;(x.value!==void 0&&x.value===_e||we)&&H(L)},[x.value]),qe=s==="popper"?dm:e1,Jt=qe===dm?{side:o,sideOffset:c,align:d,alignOffset:u,arrowPadding:m,collisionBoundary:f,collisionPadding:h,sticky:w,hideWhenDetached:v,avoidCollisions:j}:{};return n.jsx(Jj,{scope:a,content:g,viewport:N,onViewportChange:A,itemRefCallback:ae,selectedItem:_,onItemLeave:se,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:R,position:s,isPositioned:me,searchRef:ne,children:n.jsx(_f,{as:x5,allowPinchZoom:!0,children:n.jsx(Tf,{asChild:!0,trapped:x.open,onMountAutoFocus:L=>{L.preventDefault()},onUnmountAutoFocus:F(i,L=>{var _e;(_e=x.trigger)==null||_e.focus({preventScroll:!0}),L.preventDefault()}),children:n.jsx(Xx,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:n.jsx(qe,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:L=>L.preventDefault(),...y,...Jt,onPlaced:()=>U(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:F(y.onKeyDown,L=>{const _e=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!_e&&L.key.length===1&&wt(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let we=X().filter(fe=>!fe.disabled).map(fe=>fe.ref.current);if(["ArrowUp","End"].includes(L.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const fe=L.target,xe=we.indexOf(fe);we=we.slice(xe+1)}setTimeout(()=>C(we)),L.preventDefault()}})})})})})})});Zj.displayName=g5;var v5="SelectItemAlignedPosition",e1=p.forwardRef((e,t)=>{const{__scopeSelect:a,onPlaced:s,...i}=e,r=os($s,a),l=cs($s,a),[o,c]=p.useState(null),[d,u]=p.useState(null),m=Te(t,S=>u(S)),f=Od(a),h=p.useRef(!1),w=p.useRef(!0),{viewport:v,selectedItem:j,selectedItemText:y,focusSelectedItem:x}=l,g=p.useCallback(()=>{if(r.trigger&&r.valueNode&&o&&d&&v&&j&&y){const S=r.trigger.getBoundingClientRect(),_=d.getBoundingClientRect(),O=r.valueNode.getBoundingClientRect(),R=y.getBoundingClientRect();if(r.dir!=="rtl"){const fe=R.left-_.left,xe=O.left-fe,Oa=S.left-xe,Ga=S.width+Oa,wr=Math.max(Ga,_.width),ai=window.innerWidth-ja,jr=cm(xe,[ja,Math.max(ja,ai-wr)]);o.style.minWidth=Ga+"px",o.style.left=jr+"px"}else{const fe=_.right-R.right,xe=window.innerWidth-O.right-fe,Oa=window.innerWidth-S.right-xe,Ga=S.width+Oa,wr=Math.max(Ga,_.width),ai=window.innerWidth-ja,jr=cm(xe,[ja,Math.max(ja,ai-wr)]);o.style.minWidth=Ga+"px",o.style.right=jr+"px"}const H=f(),X=window.innerHeight-ja*2,me=v.scrollHeight,U=window.getComputedStyle(d),ce=parseInt(U.borderTopWidth,10),C=parseInt(U.paddingTop,10),D=parseInt(U.borderBottomWidth,10),z=parseInt(U.paddingBottom,10),M=ce+C+me+z+D,ne=Math.min(j.offsetHeight*5,M),wt=window.getComputedStyle(v),ae=parseInt(wt.paddingTop,10),se=parseInt(wt.paddingBottom,10),te=S.top+S.height/2-ja,qe=X-te,Jt=j.offsetHeight/2,L=j.offsetTop+Jt,_e=ce+C+L,et=M-_e;if(_e<=te){const fe=H.length>0&&j===H[H.length-1].ref.current;o.style.bottom="0px";const xe=d.clientHeight-v.offsetTop-v.offsetHeight,Oa=Math.max(qe,Jt+(fe?se:0)+xe+D),Ga=_e+Oa;o.style.height=Ga+"px"}else{const fe=H.length>0&&j===H[0].ref.current;o.style.top="0px";const Oa=Math.max(te,ce+v.offsetTop+(fe?ae:0)+Jt)+et;o.style.height=Oa+"px",v.scrollTop=_e-te+v.offsetTop}o.style.margin=`${ja}px 0`,o.style.minHeight=ne+"px",o.style.maxHeight=X+"px",s==null||s(),requestAnimationFrame(()=>h.current=!0)}},[f,r.trigger,r.valueNode,o,d,v,j,y,r.dir,s]);ka(()=>g(),[g]);const[b,N]=p.useState();ka(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);const A=p.useCallback(S=>{S&&w.current===!0&&(g(),x==null||x(),w.current=!1)},[g,x]);return n.jsx(b5,{scope:a,contentWrapper:o,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:n.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:n.jsx(Y.div,{...i,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});e1.displayName=v5;var y5="SelectPopperPosition",dm=p.forwardRef((e,t)=>{const{__scopeSelect:a,align:s="start",collisionPadding:i=ja,...r}=e,l=Rd(a);return n.jsx(G2,{...l,...r,ref:t,align:s,collisionPadding:i,style:{boxSizing:"border-box",...r.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)"}})});dm.displayName=y5;var[b5,Wf]=br($s,{}),um="SelectViewport",t1=p.forwardRef((e,t)=>{const{__scopeSelect:a,nonce:s,...i}=e,r=cs(um,a),l=Wf(um,a),o=Te(t,r.onViewportChange),c=p.useRef(0);return n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),n.jsx(Cd.Slot,{scope:a,children:n.jsx(Y.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:F(i.onScroll,d=>{const u=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:f}=l;if(f!=null&&f.current&&m){const h=Math.abs(c.current-u.scrollTop);if(h>0){const w=window.innerHeight-ja*2,v=parseFloat(m.style.minHeight),j=parseFloat(m.style.height),y=Math.max(v,j);if(y<w){const x=y+h,g=Math.min(w,x),b=x-g;m.style.height=g+"px",m.style.bottom==="0px"&&(u.scrollTop=b>0?b:0,m.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});t1.displayName=um;var a1="SelectGroup",[w5,j5]=br(a1),N5=p.forwardRef((e,t)=>{const{__scopeSelect:a,...s}=e,i=zn();return n.jsx(w5,{scope:a,id:i,children:n.jsx(Y.div,{role:"group","aria-labelledby":i,...s,ref:t})})});N5.displayName=a1;var n1="SelectLabel",s1=p.forwardRef((e,t)=>{const{__scopeSelect:a,...s}=e,i=j5(n1,a);return n.jsx(Y.div,{id:i.id,...s,ref:t})});s1.displayName=n1;var Uc="SelectItem",[S5,i1]=br(Uc),r1=p.forwardRef((e,t)=>{const{__scopeSelect:a,value:s,disabled:i=!1,textValue:r,...l}=e,o=os(Uc,a),c=cs(Uc,a),d=o.value===s,[u,m]=p.useState(r??""),[f,h]=p.useState(!1),w=Te(t,x=>{var g;return(g=c.itemRefCallback)==null?void 0:g.call(c,x,s,i)}),v=zn(),j=p.useRef("touch"),y=()=>{i||(o.onValueChange(s),o.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return n.jsx(S5,{scope:a,value:s,disabled:i,textId:v,isSelected:d,onItemTextChange:p.useCallback(x=>{m(g=>g||((x==null?void 0:x.textContent)??"").trim())},[]),children:n.jsx(Cd.ItemSlot,{scope:a,value:s,disabled:i,textValue:u,children:n.jsx(Y.div,{role:"option","aria-labelledby":v,"data-highlighted":f?"":void 0,"aria-selected":d&&f,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:w,onFocus:F(l.onFocus,()=>h(!0)),onBlur:F(l.onBlur,()=>h(!1)),onClick:F(l.onClick,()=>{j.current!=="mouse"&&y()}),onPointerUp:F(l.onPointerUp,()=>{j.current==="mouse"&&y()}),onPointerDown:F(l.onPointerDown,x=>{j.current=x.pointerType}),onPointerMove:F(l.onPointerMove,x=>{var g;j.current=x.pointerType,i?(g=c.onItemLeave)==null||g.call(c):j.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(l.onPointerLeave,x=>{var g;x.currentTarget===document.activeElement&&((g=c.onItemLeave)==null||g.call(c))}),onKeyDown:F(l.onKeyDown,x=>{var b;((b=c.searchRef)==null?void 0:b.current)!==""&&x.key===" "||(c5.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});r1.displayName=Uc;var Hr="SelectItemText",l1=p.forwardRef((e,t)=>{const{__scopeSelect:a,className:s,style:i,...r}=e,l=os(Hr,a),o=cs(Hr,a),c=i1(Hr,a),d=m5(Hr,a),[u,m]=p.useState(null),f=Te(t,y=>m(y),c.onItemTextChange,y=>{var x;return(x=o.itemTextRefCallback)==null?void 0:x.call(o,y,c.value,c.disabled)}),h=u==null?void 0:u.textContent,w=p.useMemo(()=>n.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:j}=d;return ka(()=>(v(w),()=>j(w)),[v,j,w]),n.jsxs(n.Fragment,{children:[n.jsx(Y.span,{id:c.textId,...r,ref:f}),c.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Fc.createPortal(r.children,l.valueNode):null]})});l1.displayName=Hr;var o1="SelectItemIndicator",c1=p.forwardRef((e,t)=>{const{__scopeSelect:a,...s}=e;return i1(o1,a).isSelected?n.jsx(Y.span,{"aria-hidden":!0,...s,ref:t}):null});c1.displayName=o1;var hm="SelectScrollUpButton",d1=p.forwardRef((e,t)=>{const a=cs(hm,e.__scopeSelect),s=Wf(hm,e.__scopeSelect),[i,r]=p.useState(!1),l=Te(t,s.onScrollButtonChange);return ka(()=>{if(a.viewport&&a.isPositioned){let o=function(){const d=c.scrollTop>0;r(d)};const c=a.viewport;return o(),c.addEventListener("scroll",o),()=>c.removeEventListener("scroll",o)}},[a.viewport,a.isPositioned]),i?n.jsx(h1,{...e,ref:l,onAutoScroll:()=>{const{viewport:o,selectedItem:c}=a;o&&c&&(o.scrollTop=o.scrollTop-c.offsetHeight)}}):null});d1.displayName=hm;var mm="SelectScrollDownButton",u1=p.forwardRef((e,t)=>{const a=cs(mm,e.__scopeSelect),s=Wf(mm,e.__scopeSelect),[i,r]=p.useState(!1),l=Te(t,s.onScrollButtonChange);return ka(()=>{if(a.viewport&&a.isPositioned){let o=function(){const d=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<d;r(u)};const c=a.viewport;return o(),c.addEventListener("scroll",o),()=>c.removeEventListener("scroll",o)}},[a.viewport,a.isPositioned]),i?n.jsx(h1,{...e,ref:l,onAutoScroll:()=>{const{viewport:o,selectedItem:c}=a;o&&c&&(o.scrollTop=o.scrollTop+c.offsetHeight)}}):null});u1.displayName=mm;var h1=p.forwardRef((e,t)=>{const{__scopeSelect:a,onAutoScroll:s,...i}=e,r=cs("SelectScrollButton",a),l=p.useRef(null),o=Od(a),c=p.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return p.useEffect(()=>()=>c(),[c]),ka(()=>{var u;const d=o().find(m=>m.ref.current===document.activeElement);(u=d==null?void 0:d.ref.current)==null||u.scrollIntoView({block:"nearest"})},[o]),n.jsx(Y.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:F(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(s,50))}),onPointerMove:F(i.onPointerMove,()=>{var d;(d=r.onItemLeave)==null||d.call(r),l.current===null&&(l.current=window.setInterval(s,50))}),onPointerLeave:F(i.onPointerLeave,()=>{c()})})}),A5="SelectSeparator",m1=p.forwardRef((e,t)=>{const{__scopeSelect:a,...s}=e;return n.jsx(Y.div,{"aria-hidden":!0,...s,ref:t})});m1.displayName=A5;var fm="SelectArrow",k5=p.forwardRef((e,t)=>{const{__scopeSelect:a,...s}=e,i=Rd(a),r=os(fm,a),l=cs(fm,a);return r.open&&l.position==="popper"?n.jsx(Y2,{...i,...s,ref:t}):null});k5.displayName=fm;var T5="SelectBubbleInput",f1=p.forwardRef(({__scopeSelect:e,value:t,...a},s)=>{const i=p.useRef(null),r=Te(s,i),l=Mf(t);return p.useEffect(()=>{const o=i.current;if(!o)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(l!==t&&u){const m=new Event("change",{bubbles:!0});u.call(o,t),o.dispatchEvent(m)}},[l,t]),n.jsx(Y.select,{...a,style:{...F2,...a.style},ref:r,defaultValue:t})});f1.displayName=T5;function p1(e){return e===""||e===void 0}function g1(e){const t=St(e),a=p.useRef(""),s=p.useRef(0),i=p.useCallback(l=>{const o=a.current+l;t(o),function c(d){a.current=d,window.clearTimeout(s.current),d!==""&&(s.current=window.setTimeout(()=>c(""),1e3))}(o)},[t]),r=p.useCallback(()=>{a.current="",window.clearTimeout(s.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(s.current),[]),[a,i,r]}function x1(e,t,a){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,r=a?e.indexOf(a):-1;let l=_5(e,Math.max(r,0));i.length===1&&(l=l.filter(d=>d!==a));const c=l.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==a?c:void 0}function _5(e,t){return e.map((a,s)=>e[(t+s)%e.length])}var E5=$j,v1=Wj,C5=Yj,O5=Kj,R5=Qj,y1=Xj,I5=t1,b1=s1,w1=r1,M5=l1,D5=c1,j1=d1,N1=u1,S1=m1;const pm=E5,gm=C5,qc=p.forwardRef(({className:e,children:t,...a},s)=>n.jsxs(v1,{ref:s,className:P("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
256ing-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),...a,children:[t,n.jsx(O5,{asChild:!0,children:n.jsx(ul,{className:"h-4 w-4 opacity-50"})})]}));qc.displayName=v1.displayName;const A1=p.forwardRef(({className:e,...t},a)=>n.jsx(j1,{ref:a,className:P("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(Oc,{className:"h-4 w-4"})}));A1.displayName=j1.displayName;const k1=p.forwardRef(({className:e,...t},a)=>n.jsx(N1,{ref:a,className:P("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(ul,{className:"h-4 w-4"})}));k1.displayName=N1.displayName;const Vc=p.forwardRef(({className:e,children:t,position:a="popper",...s},i)=>n.jsx(R5,{children:n.jsxs(y1,{ref:i,className:P("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",a==="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:a,...s,children:[n.jsx(A1,{}),n.jsx(I5,{className:P("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),n.jsx(k1,{})]})}));Vc.displayName=y1.displayName;const L5=p.forwardRef(({className:e,...t},a)=>n.jsx(b1,{ref:a,className:P("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));L5.displayName=b1.displayName;const aa=p.forwardRef(({className:e,children:t,...a},s)=>n.jsxs(w1,{ref:s,className:P("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[n.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(D5,{children:n.jsx(dt,{className:"h-4 w-4"})})}),n.jsx(M5,{children:t})]}));aa.displayName=w1.displayName;const P5=p.forwardRef(({className:e,...t},a)=>n.jsx(S1,{ref:a,className:P("-mx-1 my-1 h-px bg-muted",e),...t}));P5.displayName=S1.displayName;const z5=[{name:"Jan 2023",value:824},{name:"Feb 2023",value:968},{name:"Mar 2023",value:1120},{name:"Apr 2023",value:1342},{name:"May 2023",value:1507},{name:"Jun 2023",value:1689},{name:"Jul 2023",value:1854}],Cx=[{name:"Desktop",value:61},{name:"Mobile",value:35},{name:"Tablet",value:4}],B5=[{name:"Homepage",views:1842,conversions:43},{name:"About Us",views:862,conversions:19},{name:"Case Studies",views:1120,conversions:37},{name:"Packages",views:1456,conversions:58},{name:"Contact",views:978,conversions:64}],Ox=[{name:"United Kingdom",value:52},{name:"United States",value:24},{name:"EU",value:16},{name:"Asia Pacific",value:5},{name:"Other",value:3}],Ao=["#0088FE","#00C49F","#FFBB28","#FF8042","#A28CFC","#FF6B6B"],ko=({title:e,value:t,change:a,isPositive:s,icon:i})=>n.jsx(q,{children:n.jsx(V,{className:"p-6",children:n.jsxs("div",{className:"flex justify-between items-start",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm text-gray-500 mb-1",children:e}),n.jsx("h3",{className:"text-2xl font-bold",children:t}),a&&n.jsxs("div",{className:`flex items-center mt-1 text-sm ${s?"text-green-500":"text-red-500"}`,children:[s?n.jsx(Tk,{className:"h-3 w-3 mr-1"}):n.jsx(K2,{className:"h-3 w-3 mr-1"}),a]})]}),n.jsx("div",{className:"rounded-full bg-gray-100 p-2",children:i})]})})}),U5=()=>{const[e,t]=p.useState("30d"),[a,s]=p.useState(!1),i=()=>{s(!0),setTimeout(()=>{s(!1)},1500)};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsx("h2",{className:"text-2xl font-bold",children:"Analytics Dashboard"}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs(pm,{defaultValue:e,onValueChange:t,children:[n.jsxs(qc,{className:"w-[130px]",children:[n.jsx(cv,{className:"h-4 w-4 mr-2"}),n.jsx(gm,{placeholder:"Select range"})]}),n.jsxs(Vc,{children:[n.jsx(aa,{value:"7d",children:"Last 7 days"}),n.jsx(aa,{value:"30d",children:"Last 30 days"}),n.jsx(aa,{value:"90d",children:"Last 90 days"}),n.jsx(aa,{value:"1y",children:"This year"})]})]}),n.jsxs(B,{variant:"outline",size:"sm",onClick:i,children:[n.jsx(Gu,{className:`h-4 w-4 mr-1 ${a?"animate-spin":""}`}),"Refresh"]}),n.jsxs(B,{variant:"outline",size:"sm",children:[n.jsx(km,{className:"h-4 w-4 mr-1"}),"Export"]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(ko,{title:"Total Visitors",value:"8,976",change:"7.2% vs last period",isPositive:!0,icon:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{d:"M16 21V19C16 16.7909 14.2091 15 12 15H5C2.79086 15 1 16.7909 1 19V21",stroke:"#4A5568",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 11C10.7091 11 12.5 9.20914 12.5 7C12.5 4.79086 10.7091 3 8.5 3C6.29086 3 4.5 4.79086 4.5 7C4.5 9.20914 6.29086 11 8.5 11Z",stroke:"#4A5568",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M17 11L23 11",stroke:"#4A5568",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M20 8L20 14",stroke:"#4A5568",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),n.jsx(ko,{title:"Avg. Time on Site",value:"2:37",change:"4.8% vs last period",isPositive:!0,icon:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"#4A5568",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M12 6V12L16 14",stroke:"#4A5568",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),n.jsx(ko,{title:"Bounce Rate",value:"38.2%",change:"1.5% vs last period",isPositive:!1,icon:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{d:"M13 3L16 6
256M16 6L13 9M16 6H8C6.93913 6 5.92172 6.42143 5.17157 7.17157C4.42143 7.92172 4 8.93913 4 10V11",stroke:"#4A5568",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M11 21L8 18M8 18L11 15M8 18H16C17.0609 18 18.0783 17.5786 18.8284 16.8284C19.5786 16.0783 20 15.0609 20 14V13",stroke:"#4A5568",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),n.jsx(ko,{title:"Conversions",value:"221",change:"12.3% vs last period",isPositive:!0,icon:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{d:"M9 12L11 14L15 10",stroke:"#4A5568",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"#4A5568",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),n.jsxs(ei,{defaultValue:"visitors",children:[n.jsxs(rs,{className:"grid grid-cols-4 w-full",children:[n.jsx(Me,{value:"visitors",children:"Visitors"}),n.jsx(Me,{value:"devices",children:"Devices"}),n.jsx(Me,{value:"pages",children:"Top Pages"}),n.jsx(Me,{value:"locations",children:"Locations"})]}),n.jsx(De,{value:"visitors",className:"space-y-4 mt-6",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Visitor Trends"}),n.jsx($e,{children:"Number of visitors over time"})]}),n.jsx(V,{children:n.jsx("div",{className:"h-80",children:n.jsx(Ts,{width:"100%",height:"100%",children:n.jsxs(Ws,{data:z5,margin:{top:5,right:30,left:20,bottom:5},children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"name"}),n.jsx(Pe,{}),n.jsx(At,{}),n.jsx(mt,{}),n.jsx(Qn,{type:"monotone",dataKey:"value",stroke:"#3174de",activeDot:{r:8}})]})})})})]})}),n.jsx(De,{value:"devices",className:"space-y-4 mt-6",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Device Breakdown"}),n.jsx($e,{children:"Visitor device types"})]}),n.jsx(V,{children:n.jsx("div",{className:"h-80",children:n.jsx(Ts,{width:"100%",height:"100%",children:n.jsxs(lr,{children:[n.jsx(Lt,{data:Cx,cx:"50%",cy:"50%",labelLine:!1,label:({name:r,percent:l})=>`${r}: ${(l*100).toFixed(0)}%`,outerRadius:80,fill:"#8884d8",dataKey:"value",children:Cx.map((r,l)=>n.jsx(Ds,{fill:Ao[l%Ao.length]},`cell-${l}`))}),n.jsx(At,{formatter:r=>`${r}%`}),n.jsx(mt,{})]})})})})]})}),n.jsx(De,{value:"pages",className:"space-y-4 mt-6",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Top Pages"}),n.jsx($e,{children:"Most viewed pages and conversion rates"})]}),n.jsx(V,{children:n.jsx("div",{className:"h-80",children:n.jsx(Ts,{width:"100%",height:"100%",children:n.jsxs(gn,{data:B5,margin:{top:20,right:30,left:20,bottom:5},children:[n.jsx(ze,{strokeDasharray:"3 3"}),n.jsx(Le,{dataKey:"name"}),n.jsx(Pe,{}),n.jsx(At,{}),n.jsx(mt,{}),n.jsx(yt,{dataKey:"views",name:"Page Views",fill:"#3174de"}),n.jsx(yt,{dataKey:"conversions",name:"Conversions",fill:"#ff6b84"})]})})})})]})}),n.jsx(De,{value:"locations",className:"space-y-4 mt-6",children:n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Geographic Distribution"}),n.jsx($e,{children:"Visitor locations by country"})]}),n.jsx(V,{children:n.jsx("div",{className:"h-80",children:n.jsx(Ts,{width:"100%",height:"100%",children:n.jsxs(lr,{children:[n.jsx(Lt,{data:Ox,cx:"50%",cy:"50%",labelLine:!1,label:({name:r,percent:l})=>`${r}: ${(l*100).toFixed(0)}%`,outerRadius:80,fill:"#8884d8",dataKey:"value",children:Ox.map((r,l)=>n.jsx(Ds,{fill:Ao[l%Ao.length]},`cell-${l}`))}),n.jsx(At,{formatter:r=>`${r}%`}),n.jsx(mt,{})]})})})})]})})]})]})};var Ff="Progress",Yf=100,[q5]=Ba(Ff),[V5,H5]=q5(Ff),T1=p.forwardRef((e,t)=>{const{__scopeProgress:a,value:s=null,max:i,getValueLabel:r=$5,...l}=e;(i||i===0)&&!Rx(i)&&console.error(G5(`${i}`,"Progress"));const o=Rx(i)?i:Yf;s!==null&&!Ix(s,o)&&console.error(W5(`${s}`,"Progress"));const c=Ix(s,o)?s:null,d=Hc(c)?r(c,o):void 0;return n.jsx(V5,{scope:a,value:c,max:o,children:n.jsx(Y.div,{"aria-valuemax":o,"aria-valuemin":0,"aria-valuenow":Hc(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":C1(c,o),"data-value":c??void 0,"data-max":o,...l,ref:t})})});T1.displayName=Ff;var _1="ProgressIndicator",E1=p.forwardRef((e,t)=>
256{const{__scopeProgress:a,...s}=e,i=H5(_1,a);return n.jsx(Y.div,{"data-state":C1(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...s,ref:t})});E1.displayName=_1;function $5(e,t){return`${Math.round(e/t*100)}%`}function C1(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Hc(e){return typeof e=="number"}function Rx(e){return Hc(e)&&!isNaN(e)&&e>0}function Ix(e,t){return Hc(e)&&!isNaN(e)&&e<=t&&e>=0}function G5(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Yf}\`.`}function W5(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
257  - a positive number
258  - less than the value passed to \`max\` (or ${Yf} if no \`max\` prop is set)
259  - \`null\` or \`undefined\` if the progress is indeterminate.
260
261Defaulting to \`null\`.`}var O1=T1,F5=E1;const xm=p.forwardRef(({className:e,value:t,...a},s)=>n.jsx(O1,{ref:s,className:P("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:n.jsx(F5,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));xm.displayName=O1.displayName;const Y5=({page:e})=>{const[t,a]=p.useState(e.title||""),[s,i]=p.useState(e.description||""),[r,l]=p.useState(e.ogTitle||""),[o,c]=p.useState(e.ogDescription||""),[d,u]=p.useState(e.indexed!==!1),[m,f]=p.useState(!1),h=t.length,w=s.length,v=()=>h===0?0:h<30?h/30*100:h<=60?100:Math.max(0,100-(h-60)*5),j=()=>w===0?0:w<80?w/80*100:w<=160?100:Math.max(0,100-(w-160)*5),y=()=>{const b=v();return b<50?"bg-red-500":b<80?"bg-yellow-500":"bg-green-500"},x=()=>{const b=j();return b<50?"bg-red-500":b<80?"bg-yellow-500":"bg-green-500"},g=()=>{f(!0),setTimeout(()=>{f(!1),Ae({title:"SEO settings saved",description:`SEO settings for ${e.name} have been updated`})},1500)};return n.jsxs(q,{children:[n.jsxs(G,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[n.jsxs("div",{children:[n.jsx(W,{children:e.name}),n.jsx($e,{children:e.url})]}),n.jsxs(B,{size:"sm",onClick:g,disabled:m,children:[n.jsx($l,{className:"h-4 w-4 mr-1"}),m?"Saving...":"Save SEO"]})]}),n.jsxs(V,{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx(Q,{htmlFor:`meta-title-${e.id}`,children:"Meta Title"}),n.jsxs("span",{className:`text-xs ${h>60?"text-red-500 font-bold":"text-gray-500"}`,children:[h,"/60 characters"]})]}),n.jsx($,{id:`meta-title-${e.id}`,value:t,onChange:b=>a(b.target.value),placeholder:"Enter meta title",maxLength:70}),n.jsx(xm,{value:v(),className:y()}),n.jsxs("p",{className:"text-xs text-gray-500",children:["Recommended length: 30-60 characters.",h<30&&"Title too short.",h>60&&"Title too long."]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx(Q,{htmlFor:`meta-desc-${e.id}`,children:"Meta Description"}),n.jsxs("span",{className:`text-xs ${w>160?"text-red-500 font-bold":"text-gray-500"}`,children:[w,"/160 characters"]})]}),n.jsx(rn,{id:`meta-desc-${e.id}`,value:s,onChange:b=>i(b.target.value),placeholder:"Enter meta description",rows:3,maxLength:200}),n.jsx(xm,{value:j(),className:x()}),n.jsxs("p",{className:"text-xs text-gray-500",children:["Recommended length: 80-160 characters.",w<80&&" Description too short.",w>160&&" Description too long."]})]}),n.jsxs("div",{className:"flex items-center space-x-2 py-2",children:[n.jsx(Es,{id:`indexing-${e.id}`,checked:d,onCheckedChange:u}),n.jsx(Q,{htmlFor:`indexing-${e.id}`,children:d?n.jsxs("span",{className:"flex items-center",children:[n.jsx(dt,{className:"h-4 w-4 text-green-500 mr-1"}),"Allow search engines to index this page"]}):n.jsxs("span",{className:"flex items-center",children:[n.jsx(Q2,{className:"h-4 w-4 text-red-500 mr-1"}),"Block search engines from indexing this page"]})})]})]}),n.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg shadow-inner",children:[n.jsx("h4",{className:"text-sm font-semibold mb-3",children:"SERP Preview"}),n.jsxs("div",{className:"bg-white p-3 rounded border",children:[n.jsx("p",{className:"text-blue-600 text-lg font-medium truncate",children:t||"Your Page Title"}),n.jsx("p",{className:"text-green-700 text-sm truncate",children:e.url}),n.jsx("p",{className:"text-gray-600 text-sm line-clamp-2",children:s||"Your meta description will appear here. Make sure to write a compelling description that summarizes the page content."})]})]}),n.jsxs("div",{className:"pt-4 border-t",children:[n.jsx("h4",{className:"text-sm font-semibold mb-3",children:n.jsxs("span",{className:"flex items-center",children:[n.jsx(hv,{className:"h-4 w-4 mr-1"}),"Open Graph Settings"]})}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:`og-title-${e.id}`,children:"OG Title (for social sharing)"}),n.jsx($,{id:`og-title-${e.id}`,value:r,onChange:b=>l(b.target.value),placeholder:"Same as meta title if left empty"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:`og-desc-${e.id}`,children:"OG Description"}),n.jsx(rn,{id:`og-desc-${e.id}`,value:o,onChange:b=>
261c(b.target.value),placeholder:"Same as meta description if left empty",rows:2})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{children:"OG Image"}),n.jsxs("div",{className:"bg-gray-50 border border-dashed rounded-lg p-4 text-center",children:[n.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Recommended size: 1200 x 630 pixels"}),n.jsx(B,{variant:"outline",size:"sm",children:"Upload Image"})]})]})]})]})]})]})},K5=()=>{const e=[{id:"home",name:"Homepage",url:"https://appenue-ai.com/",title:"Appenue AI - AI-Driven Growth & Business Transformation",description:"Appenue AI leverages cutting-edge AI-driven strategies to accelerate business growth, optimize go-to-market plans, and execute high-level BDR campaigns."},{id:"about",name:"About Us",url:"https://appenue-ai.com/about",title:"About Appenue AI - Our Approach to AI-Driven Growth",description:"Learn about our team of AI and business experts who specialize in implementing transformative AI solutions for businesses across industries."},{id:"case-studies",name:"Case Studies",url:"https://appenue-ai.com/case-studies",title:"AI Success Stories - Appenue AI Case Studies",description:"Explore our portfolio of successful AI implementation case studies across retail, creative, and sales automation sectors."},{id:"packages",name:"Packages",url:"https://appenue-ai.com/packages",title:"AI Growth Packages - Appenue AI Service Packages",description:"Discover our range of AI service packages designed to help businesses at every stage of their AI transformation journey."},{id:"contact",name:"Contact",url:"https://appenue-ai.com/contact",title:"Contact Appenue AI - Schedule a Consultation",description:"Get in touch with our AI business consultants to discuss how we can help transform your business with artificial intelligence."}],[t,a]=p.useState("home");return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsx("h2",{className:"text-2xl font-bold",children:"SEO Management"}),n.jsxs(B,{variant:"outline",size:"sm",onClick:()=>{Ae({title:"SEO Recommendations Generated",description:"AI-powered SEO recommendations have been generated for your pages"})},children:["Generate SEO Recommendations",n.jsx(Zx,{className:"h-4 w-4 ml-1"})]})]}),n.jsxs(ei,{value:t,onValueChange:a,children:[n.jsx(rs,{className:"grid grid-cols-5 w-full",children:e.map(s=>n.jsx(Me,{value:s.id,children:s.name},s.id))}),e.map(s=>n.jsx(De,{value:s.id,className:"mt-6",children:n.jsx(Y5,{page:s})},s.id))]}),n.jsxs(q,{children:[n.jsxs(G,{children:[n.jsx(W,{children:"Global SEO Settings"}),n.jsx($e,{children:"Configure site-wide SEO settings"})]}),n.jsxs(V,{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"site-name",children:"Site Name"}),n.jsx($,{id:"site-name",defaultValue:"Appenue AI",placeholder:"Enter site name"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{htmlFor:"site-separator",children:"Title Separator"}),n.jsx($,{id:"site-separator",defaultValue:"-",placeholder:"e.g. |, -, -"}),n.jsx("p",{className:"text-xs text-gray-500",children:"This character separates the page title and site name"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Q,{children:"XML Sitemap"}),n.jsxs("div",{className:"flex items-center justify-between bg-gray-50 p-3 rounded",children:[n.jsx("span",{className:"text-sm",children:"https://appenue-ai.com/sitemap.xml"}),n.jsxs(B,{variant:"outline",size:"sm",children:[n.jsx(Ck,{className:"h-4 w-4 mr-1"}),"Copy"]})]})]}),n.jsx("div",{className:"space-y-2",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Es,{id:"auto-sitemap",defaultChecked:!0}),n.jsx(Q,{htmlFor:"auto-sitemap",children:"Automatically update sitemap when content changes"})]})}),n.jsx("div",{className:"pt-2",children:n.jsxs(B,{children:[n.jsx($l,{className:"h-4 w-4 mr-1"}),"Save Global SEO Settings"]})})]})]})]})},Q5=_l("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 vm({className:e,variant:t,...a}){return n.jsx("div",{className:P(Q5({variant:t}),e),...a})}const R1=p.forwardRef(({className:e,...t},a)=>n.jsx("div",{className:"relative w-full overflow-auto",children:n.jsx("table",{ref:a,className:P("w-full caption-bottom text-sm",e),...t})}));R1.displayName="Table";const I1=p.forwardRef(({className:e,...t},a)=>n.jsx("thead",{ref:a,className:P("[&_tr]:border-b",e),...t}));I1.displayName="TableHeader";const M1=p.forwardRef(({className:e,...t},a)=>n.jsx("tbody",{ref:a,className:P("[&_tr:last-child]:border-0",e),...t}));M1.displayName="TableBody";const X5=p.forwardRef(({className:e,...t},a)=>n.jsx("tfoot",{ref:a,className:P("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));X5.displayName="TableFooter";const ym=p.forwardRef(({className:e,...t},a)=>n.jsx("tr",{ref:a,className:P("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));ym.displayName="TableRow";const $r=p.forwardRef(({className:e,...t},a)=>n.jsx("th",{ref:a,className:P("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));
vendor: 14,371 bytes, line 261
261$r.displayName="TableHead";const Gr=p.forwardRef(({className:e,...t},a)=>n.jsx("td",{ref:a,className:P("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Gr.displayName="TableCell";const J5=p.forwardRef(({className:e,...t},a)=>n.jsx("caption",{ref:a,className:P("mt-4 text-sm text-muted-foreground",e),...t}));J5.displayName="TableCaption";function Z5(e,t){return p.useReducer((a,s)=>t[a][s]??a,e)}var Kf="ScrollArea",[D1]=Ba(Kf),[e6,pa]=D1(Kf),L1=p.forwardRef((e,t)=>{const{__scopeScrollArea:a,type:s="hover",dir:i,scrollHideDelay:r=600,...l}=e,[o,c]=p.useState(null),[d,u]=p.useState(null),[m,f]=p.useState(null),[h,w]=p.useState(null),[v,j]=p.useState(null),[y,x]=p.useState(0),[g,b]=p.useState(0),[N,A]=p.useState(!1),[S,_]=p.useState(!1),O=Te(t,H=>c(H)),R=Cl(i);return n.jsx(e6,{scope:a,type:s,dir:R,scrollHideDelay:r,scrollArea:o,viewport:d,onViewportChange:u,content:m,onContentChange:f,scrollbarX:h,onScrollbarXChange:w,scrollbarXEnabled:N,onScrollbarXEnabledChange:A,scrollbarY:v,onScrollbarYChange:j,scrollbarYEnabled:S,onScrollbarYEnabledChange:_,onCornerWidthChange:x,onCornerHeightChange:b,children:n.jsx(Y.div,{dir:R,...l,ref:O,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":g+"px",...e.style}})})});L1.displayName=Kf;var P1="ScrollAreaViewport",z1=p.forwardRef((e,t)=>{const{__scopeScrollArea:a,children:s,nonce:i,...r}=e,l=pa(P1,a),o=p.useRef(null),c=Te(t,o,l.onViewportChange);return n.jsxs(n.Fragment,{children:[n.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}),n.jsx(Y.div,{"data-radix-scroll-area-viewport":"",...r,ref:c,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:n.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});z1.displayName=P1;var $a="ScrollAreaScrollbar",Qf=p.forwardRef((e,t)=>{const{forceMount:a,...s}=e,i=pa($a,e.__scopeScrollArea),{onScrollbarXEnabledChange:r,onScrollbarYEnabledChange:l}=i,o=e.orientation==="horizontal";return p.useEffect(()=>(o?r(!0):l(!0),()=>{o?r(!1):l(!1)}),[o,r,l]),i.type==="hover"?n.jsx(t6,{...s,ref:t,forceMount:a}):i.type==="scroll"?n.jsx(a6,{...s,ref:t,forceMount:a}):i.type==="auto"?n.jsx(B1,{...s,ref:t,forceMount:a}):i.type==="always"?n.jsx(Xf,{...s,ref:t}):null});Qf.displayName=$a;var t6=p.forwardRef((e,t)=>{const{forceMount:a,...s}=e,i=pa($a,e.__scopeScrollArea),[r,l]=p.useState(!1);return p.useEffect(()=>{const o=i.scrollArea;let c=0;if(o){const d=()=>{window.clearTimeout(c),l(!0)},u=()=>{c=window.setTimeout(()=>l(!1),i.scrollHideDelay)};return o.addEventListener("pointerenter",d),o.addEventListener("pointerleave",u),()=>{window.clearTimeout(c),o.removeEventListener("pointerenter",d),o.removeEventListener("pointerleave",u)}}},[i.scrollArea,i.scrollHideDelay]),n.jsx(Ua,{present:a||r,children:n.jsx(B1,{"data-state":r?"visible":"hidden",...s,ref:t})})}),a6=p.forwardRef((e,t)=>{const{forceMount:a,...s}=e,i=pa($a,e.__scopeScrollArea),r=e.orientation==="horizontal",l=Md(()=>c("SCROLL_END"),100),[o,c]=Z5("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 p.useEffect(()=>{if(o==="idle"){const d=window.setTimeout(()=>c("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(d)}},[o,i.scrollHideDelay,c]),p.useEffect(()=>{const d=i.viewport,u=r?"scrollLeft":"scrollTop";if(d){let m=d[u];const f=()=>{const h=d[u];m!==h&&(c("SCROLL"),l()),m=h};return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[i.viewport,r,c,l]),n.jsx(Ua,{present:a||o!=="hidden",children:n.jsx(Xf,{"data-state":o==="hidden"?"hidden":"visible",...s,ref:t,onPointerEnter:F(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:F(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),B1=p.forwardRef((e,t)=>{const a=pa($a,e.__scopeScrollArea),{forceMount:s,...i}=e,[r,l]=p.useState(!1),o=e.orientation==="horizontal",c=Md(()=>{if(a.viewport){const d=a.viewport.offsetWidth<a.viewport.scrollWidth,u=a.viewport.offsetHeight<a.viewport.scrollHeight;l(o?d:u)}},10);return cr(a.viewport,c),cr(a.content,c),n.jsx(Ua,{present:s||r,children:n.jsx(Xf,{"data-state":r?"visible":"hidden",...i,ref:t})})}),Xf=p.forwardRef((e,t)=>{const{orientation:a="vertical",...s}=e,i=pa($a,e.__scopeScrollArea),r=p.useRef(null),l=p.useRef(0),[o,c]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=$1(o.viewport,o.content),u={...s,sizes:o,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:f=>r.current=f,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:f=>l.current=f};function m(f,h){return o6(f,l.current,o,h)}return a==="horizontal"?n.jsx(n6,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&r.current){const f=i.viewport.scrollLeft,h=Mx(f,o,i.dir);r.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollLeft=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollLeft=m(f,i.dir))}}):a==="vertical"?n.jsx(s6,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&r.current){const f=i.viewport.scrollTop,h=Mx(f,o);r.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollTop=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollTop=m(f))}}):null}),n6=p.forwardRef((e,t)=>{const{sizes:a,onSizesChange:s,...i}=e,r=pa($a,e.__scopeScrollArea),[l,o]=p.useState(),c=p.useRef(null),d=Te(t,c,r.onScrollbarXChange);return p.useEffect(()=>{c.current&&o(getComputedStyle(c.current))},[c]),n.jsx(q1,{"data-orientation":"horizontal",...i,ref:d,sizes:a,style:{bottom:0,left:r.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:r.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Id(a)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,m)=>{if(r.viewport){const f=r.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),W1(f,m)&&u.preventDefault()}},onResize:()=>{c.current&&r.viewport&&l&&s({content:r.viewport.scrollWidth,viewport:r.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Gc(l.paddingLeft),paddingEnd:Gc(l.paddingRight)}})}})}),s6=p.forwardRef((e,t)=>{const{sizes:a,onSizesChange:s,...i}=e,r=pa($a,e.__scopeScrollArea),[l,o]=p.useState(),c=p.useRef(null),d=Te(t,c,r.onScrollbarYChange);return p.useEffect(()=>{c.current&&o(getComputedStyle(c.current))},[c]),n.jsx(q1,{"data-orientation":"vertical",...i,ref:d,sizes:a,style:{top:0,right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Id(a)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,m)=>{if(r.viewport){const f=r.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),W1(f,m)&&u.preventDefault()}},onResize:()=>{c.current&&r.viewport&&l&&s({content:r.viewport.scrollHeight,viewport:r.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Gc(l.paddingTop),paddingEnd:Gc(l.paddingBottom)}})}})}),[i6,U1]=D1($a),q1=p.forwardRef((e,t)=>{const{__scopeScrollArea:a,sizes:s,hasThumb:i,onThumbChange:r,onThumbPointerUp:l,onThumbPointerDown:o,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:u,onResize:m,...f}=e,h=pa($a,a),[w,v]=p.useState(null),j=Te(t,O=>v(O)),y=p.useRef(null),x=p.useRef(""),g=h.viewport,b=s.content-s.viewport,N=St(u),A=St(c),S=Md(m,10);function _(O){if(y.current){const R=O.clientX-y.current.left,H=O.clientY-y.current.top;d({x:R,y:H})}}return p.useEffect(()=>{const O=R=>{const H=R.target;(w==null?void 0:w.contains(H))&&N(R,b)};return document.addEventListener("wheel",O,{passive:!1}),()=>document.removeEventListener("wheel",O,{passive:!1})},[g,w,b,N]),p.useEffect(A,[s,A]),cr(w,S),cr(h.content,S),n.jsx(i6,{scope:a,scrollbar:w,hasThumb:i,onThumbChange:St(r),onThumbPointerUp:St(l),onThumbPositionChange:A,onThumbPointerDown:St(o),children:n.jsx(Y.div,{...f,ref:j,style:{position:"absolute",...f.style},onPointerDown:F(e.onPointerDown,O=>{O.button===0&&(O.target.setPointerCapture(O.pointerId),y.current=w.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),_(O))}),onPointerMove:F(e.onPointerMove,_),onPointerUp:F(e.onPointerUp,O=>{const R=O.target;R.hasPointerCapture(O.pointerId)&&R.releasePointerCapture(O.pointerId),document.body.style.webkitUserSelect=x.current,h.viewport&&(h.viewport.style.scrollBehavior=""),y.current=null})})})}),$c="ScrollAreaThumb",V1=p.forwardRef((e,t)=>{const{forceMount:a,...s}=e,i=U1($c,e.__scopeScrollArea);return n.jsx(Ua,{present:a||i.hasThumb,children:n.jsx(r6,{ref:t,...s})})}),r6=p.forwardRef((e,t)=>{const{__scopeScrollArea:a,style:s,...i}=e,r=pa($c,a),l=U1($c,a),{onThumbPositionChange:o}=l,c=Te(t,m=>l.onThumbChange(m)),d=p.useRef(void 0),u=Md(()=>{d.current&&(d.current(),d.current=void 0)},100);return p.useEffect(()=>{const m=r.viewport;if(m){const f=()=>{if(u(),!d.current){const h=c6(m,o);d.current=h,o()}};return o(),m.addEventListener("scroll",f),()=>m.removeEventListener("scroll",f)}},[r.viewport,u,o]),n.jsx(Y.div,{"data-state":l.hasThumb?"visible":"hidden",...i,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:F(e.onPointerDownCapture,m=>{const h=m.target.getBoundingClientRect(),w=m.clientX-h.left,v=m.clientY-h.top;l.onThumbPointerDown({x:w,y:v})}),onPointerUp:F(e.onPointerUp,l.onThumbPointerUp)})});V1.displayName=$c;var Jf="ScrollAreaCorner",H1=p.forwardRef((e,t)=>{const a=pa(Jf,e.__scopeScrollArea),s=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&s?n.jsx(l6,{...e,ref:t}):null});H1.displayName=Jf;var l6=p.forwardRef((e,t)=>{const{__scopeScrollArea:a,...s}=e,i=pa(Jf,a),[r,l]=p.useState(0),[o,c]=p.useState(0),d=!!(r&&o);return cr(i.scrollbarX,()=>{var m;const u=((m=i.scrollbarX)==null?void 0:m.offsetHeight)||0;i.onCornerHeightChange(u),c(u)}),cr(i.scrollbarY,()=>{var m;const u=((m=i.scrollbarY)==null?void 0:m.offsetWidth)||0;i.onCornerWidthChange(u),l(u)}),d?n.jsx(Y.div,{...s,ref:t,style:{width:r,height:o,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Gc(e){return e?parseInt(e,10):0}function $1(e,t){const a=e/t;return isNaN(a)?0:a}function Id(e){const t=$1(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,s=(e.scrollbar.size-a)*t;return Math.max(s,18)}function o6(e,t,a,s="ltr"){const i=Id(a),r=i/2,l=t||r,o=i-l,c=a.scrollbar.paddingStart+l,d=a.scrollbar.size-a.scrollbar.paddingEnd-o,u=a.content-a.viewport,m=s==="ltr"?[0,u]:[u*-1,0];return G1([c,d],m)(e)}function Mx(e,t,a="ltr"){const s=Id(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=t.scrollbar.size-i,l=t.content-t.viewport,o=r-s,c=a==="ltr"?[0,l]:[l*-1,0],d=cm(e,c);return G1([0,l],[0,o])(d)}function G1(e,t){return a=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const s=(t[1]-t[0])/(e[1]-e[0]);return t[0]+s*(a-e[0])}}function W1(e,t){return e>0&&e<t}var c6=(e,t=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},s=0;return function i(){const r={left:e.scrollLeft,top:e.scrollTop},l=a.left!==r.left,o=a.top!==r.top;(l||o)&&t(),a=r,s=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(s)};function Md(e,t){const a=St(e),s=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(s.current),[]),p.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(a,t)},[a,t])}function cr(e,t){const a=St(t);ka(()=>{let s=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(a)});return i.observe(e),()=>{window.cancelAnimationFrame(s),i.unobserve(e)}}},[e,a])}var F1=L1,d6=z1,u6=H1;const Y1=p.forwardRef(({className:e,children:t,...a},s)=>n.jsxs(F1,{ref:s,className:P("relative overflow-hidden",e),...a,children:[n.jsx(d6,{className:"h-full w-full rounded-[inherit]",children:t}),n.jsx(K1,{}),n.jsx(u6,{})]}));Y1.displayName=F1.displayName;const K1=p.forwardRef(({className:e,orientation:t="vertical",...a},s)=>n.jsx(Qf,{ref:s,orientation:t,className:P("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),...a,children:n.jsx(V1,{className:"relative flex-1 rounded-full bg-border"})}));K1.displayName=Qf.displayName;const h6=_l("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Q1=p.forwardRef(({className:e,variant:t,...a},s)=>n.jsx("div",{ref:s,role:"alert",className:P(h6({variant:t}),e),...a}));Q1.displayName="Alert";const m6=p.forwardRef(({className:e,...t},a)=>n.jsx("h5",{ref:a,className:P("mb-1 font-medium leading-none tracking-tight",e),...t}));m6.displayName="AlertTitle";const X1=p.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:P("text-sm [&_p]:leading-relaxed",e),...t}));X1.displayName="AlertDescription";function Ca(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 Gs(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const J1=6048e5,f6=864e5;let p6={};function Dd(){return p6}function Tl(e,t){var o,c,d,u;const a=Dd(),s=(t==null?void 0:t.weekStartsOn)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.weekStartsOn)??a.weekStartsOn??((u=(d=a.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,i=Ca(e),r=i.getDay(),l=(r<s?7:0)+r-s;return i.setDate(i.getDate()-l),i.setHours(0,0,0,0),i}function Wc(e){return Tl(e,{weekStartsOn:1}
vendor: 10,041 bytes, line 261
261)}function Z1(e){const t=Ca(e),a=t.getFullYear(),s=Gs(e,0);s.setFullYear(a+1,0,4),s.setHours(0,0,0,0);const i=Wc(s),r=Gs(e,0);r.setFullYear(a,0,4),r.setHours(0,0,0,0);const l=Wc(r);return t.getTime()>=i.getTime()?a+1:t.getTime()>=l.getTime()?a:a-1}function Dx(e){const t=Ca(e);return t.setHours(0,0,0,0),t}function Lx(e){const t=Ca(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function g6(e,t){const a=Dx(e),s=Dx(t),i=+a-Lx(a),r=+s-Lx(s);return Math.round((i-r)/f6)}function x6(e){const t=Z1(e),a=Gs(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),Wc(a)}function v6(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function y6(e){if(!v6(e)&&typeof e!="number")return!1;const t=Ca(e);return!isNaN(Number(t))}function b6(e){const t=Ca(e),a=Gs(e,0);return a.setFullYear(t.getFullYear(),0,1),a.setHours(0,0,0,0),a}const w6={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"}},j6=(e,t,a)=>{let s;const i=w6[e];return typeof i=="string"?s=i:t===1?s=i.one:s=i.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+s:s+" ago":s};function Uu(e){return(t={})=>{const a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}const N6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},S6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},A6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},k6={date:Uu({formats:N6,defaultWidth:"full"}),time:Uu({formats:S6,defaultWidth:"full"}),dateTime:Uu({formats:A6,defaultWidth:"full"})},T6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_6=(e,t,a,s)=>T6[e];function Rr(e){return(t,a)=>{const s=a!=null&&a.context?String(a.context):"standalone";let i;if(s==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,o=a!=null&&a.width?String(a.width):l;i=e.formattingValues[o]||e.formattingValues[l]}else{const l=e.defaultWidth,o=a!=null&&a.width?String(a.width):e.defaultWidth;i=e.values[o]||e.values[l]}const r=e.argumentCallback?e.argumentCallback(t):t;return i[r]}}const E6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},C6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},O6={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"]},R6={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","Friday","Saturday"]},I6={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"}},M6={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"}},D6=(e,t)=>{const a=Number(e),s=a%100;if(s>20||s<10)switch(s%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},L6={ordinalNumber:D6,era:Rr({values:E6,defaultWidth:"wide"}),quarter:Rr({values:C6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Rr({values:O6,defaultWidth:"wide"}),day:Rr({values:R6,defaultWidth:"wide"}),dayPeriod:Rr({values:I6,defaultWidth:"wide",formattingValues:M6,defaultFormattingWidth:"wide"})};function Ir(e){return(t,a={})=>{const s=a.width,i=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],r=t.match(i);if(!r)return null;const l=r[0],o=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(o)?z6(o,m=>m.test(l)):P6(o,m=>m.test(l));let d;d=e.valueCallback?e.valueCallback(c):c,d=a.valueCallback?a.valueCallback(d):d;const u=t.slice(l.length);return{value:d,rest:u}}}function P6(e,t){for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function z6(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function B6(e){return(t,a={})=>{const s=t.match(e.matchPattern);if(!s)return null;const i=s[0],r=t.match(e.parsePattern);if(!r)return null;let l=e.valueCallback?e.valueCallback(r[0]):r[0];l=a.valueCallback?a.valueCallback(l):l;const o=t.slice(i.length);return{value:l,rest:o}}}const U6=/^(\d+)(th|st|nd|rd)?/i,q6=/\d+/i,V6={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},H6={any:[/^b/i,/^(a|c)/i]},$6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},G6={any:[/1/i,/2/i,/3/i,/4/i]},W6={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},F6={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]},Y6={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},K6={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]},Q6={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},X6={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}},J6={ordinalNumber:B6({matchPattern:U6,parsePattern:q6,valueCallback:e=>parseInt(e,10)}),era:Ir({matchPatterns:V6,defaultMatchWidth:"wide",parsePatterns:H6,defaultParseWidth:"any"}),quarter:Ir({matchPatterns:$6,defaultMatchWidth:"wide",parsePatterns:G6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ir({matchPatterns:W6,defaultMatchWidth:"wide",parsePatterns:F6,defaultParseWidth:"any"}),day:Ir({matchPatterns:Y6,defaultMatchWidth:"wide",parsePatterns:K6,defaultParseWidth:"any"}),dayPeriod:Ir({matchPatterns:Q6,defaultMatchWidth:"any",parsePatterns:X6,defaultParseWidth:"any"})},Z6={code:"en-US",formatDistance:j6,formatLong:k6,formatRelative:_6,localize:L6,match:J6,options:{weekStartsOn:0,firstWeekContainsDate:1}};function eO(e){const t=Ca(e);return g6(t,b6(t))+1}function tO(e){const t=Ca(e),a=+Wc(t)-+x6(t);return Math.round(a/J1)+1}function e2(e,t){var u,m,f,h;const a=Ca(e),s=a.getFullYear(),i=Dd(),r=(t==null?void 0:t.firstWeekContainsDate)??((m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,l=Gs(e,0);l.setFullYear(s+1,0,r),l.setHours(0,0,0,0);const o=Tl(l,t),c=Gs(e,0);c.setFullYear(s,0,r),c.setHours(0,0,0,0);const d=Tl(c,t);return a.getTime()>=o.getTime()?s+1:a.getTime()>=d.getTime()?s:s-1}function aO(e,t){var o,c,d,u;const a=Dd(),s=(t==null?void 0:t.firstWeekContainsDate)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.firstWeekContainsDate)??a.firstWeekContainsDate??((u=(d=a.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,i=e2(e,t),r=Gs(e,0);return r.setFullYear(i,0,s),r.setHours(0,0,0,0),Tl(r,t)}function nO(e,t){const a=Ca(e),s=+Tl(a,t)-+aO(a,t);return Math.round(s/J1)+1}function ve(e,t){const a=e<0?"-":"",s=Math.abs(e).toString().padStart(t,"0");return a+s}const jn={y(e,t){const a=e.getFullYear(),s=a>0?a:1-a;return ve(t==="yy"?s%100:s,t.length)},M(e,t){const a=e.getMonth();return t==="M"?String(a+1):ve(a+1,2)},d(e,t){return ve(e.getDate(),t.length)},a(e,t){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return ve(e.getHours()%12||12,t.length)},H(e,t){return ve(e.getHours(),t.length)},m(e,t){return ve(e.getMinutes(),t.length)},s(e,t){return ve(e.getSeconds(),t.length)},S(e,t){const a=t.length,s=e.getMilliseconds(),i=Math.trunc(s*Math.pow(10,a-3));return ve(i,t.length)}},gi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}
vendor: 4,661 bytes, line 261
261,Px={G:function(e,t,a){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(s,{width:"abbreviated"});case"GGGGG":return a.era(s,{width:"narrow"});case"GGGG":default:return a.era(s,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){const s=e.getFullYear(),i=s>0?s:1-s;return a.ordinalNumber(i,{unit:"year"})}return jn.y(e,t)},Y:function(e,t,a,s){const i=e2(e,s),r=i>0?i:1-i;if(t==="YY"){const l=r%100;return ve(l,2)}return t==="Yo"?a.ordinalNumber(r,{unit:"year"}):ve(r,t.length)},R:function(e,t){const a=Z1(e);return ve(a,t.length)},u:function(e,t){const a=e.getFullYear();return ve(a,t.length)},Q:function(e,t,a){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return ve(s,2);case"Qo":return a.ordinalNumber(s,{unit:"quarter"});case"QQQ":return a.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,a){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return ve(s,2);case"qo":return a.ordinalNumber(s,{unit:"quarter"});case"qqq":return a.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,a){const s=e.getMonth();switch(t){case"M":case"MM":return jn.M(e,t);case"Mo":return a.ordinalNumber(s+1,{unit:"month"});case"MMM":return a.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,a){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return ve(s+1,2);case"Lo":return a.ordinalNumber(s+1,{unit:"month"});case"LLL":return a.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,a,s){const i=nO(e,s);return t==="wo"?a.ordinalNumber(i,{unit:"week"}):ve(i,t.length)},I:function(e,t,a){const s=tO(e);return t==="Io"?a.ordinalNumber(s,{unit:"week"}):ve(s,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):jn.d(e,t)},D:function(e,t,a){const s=eO(e);return t==="Do"?a.ordinalNumber(s,{unit:"dayOfYear"}):ve(s,t.length)},E:function(e,t,a){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(s,{width:"short",context:"formatting"});case"EEEE":default:return a.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,a,s){const i=e.getDay(),r=(i-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return ve(r,2);case"eo":return a.ordinalNumber(r,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,a,s){const i=e.getDay(),r=(i-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return ve(r,t.length);case"co":return a.ordinalNumber(r,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,a){const s=e.getDay(),i=s===0?7:s;switch(t){case"i":return String(i);case"ii":return ve(i,t.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(s,{width:"short",context:"formatting"});case"iiii":default:return a.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,a){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,a){const s=e.getHours();let i;switch(s===12?i=gi.noon:s===0?i=gi.midnight:i=s/12>
vendor: 4,402 bytes, line 261
261=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,a){const s=e.getHours();let i;switch(s>=17?i=gi.evening:s>=12?i=gi.afternoon:s>=4?i=gi.morning:i=gi.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let s=e.getHours()%12;return s===0&&(s=12),a.ordinalNumber(s,{unit:"hour"})}return jn.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):jn.H(e,t)},K:function(e,t,a){const s=e.getHours()%12;return t==="Ko"?a.ordinalNumber(s,{unit:"hour"}):ve(s,t.length)},k:function(e,t,a){let s=e.getHours();return s===0&&(s=24),t==="ko"?a.ordinalNumber(s,{unit:"hour"}):ve(s,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):jn.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):jn.s(e,t)},S:function(e,t){return jn.S(e,t)},X:function(e,t,a){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return Bx(s);case"XXXX":case"XX":return js(s);case"XXXXX":case"XXX":default:return js(s,":")}},x:function(e,t,a){const s=e.getTimezoneOffset();switch(t){case"x":return Bx(s);case"xxxx":case"xx":return js(s);case"xxxxx":case"xxx":default:return js(s,":")}},O:function(e,t,a){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zx(s,":");case"OOOO":default:return"GMT"+js(s,":")}},z:function(e,t,a){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zx(s,":");case"zzzz":default:return"GMT"+js(s,":")}},t:function(e,t,a){const s=Math.trunc(e.getTime()/1e3);return ve(s,t.length)},T:function(e,t,a){const s=e.getTime();return ve(s,t.length)}};function zx(e,t=""){const a=e>0?"-":"+",s=Math.abs(e),i=Math.trunc(s/60),r=s%60;return r===0?a+String(i):a+String(i)+t+ve(r,2)}function Bx(e,t){return e%60===0?(e>0?"-":"+")+ve(Math.abs(e)/60,2):js(e,t)}function js(e,t=""){const a=e>0?"-":"+",s=Math.abs(e),i=ve(Math.trunc(s/60),2),r=ve(s%60,2);return a+i+t+r}const Ux=(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"})}},t2=(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"})}},sO=(e,t)=>{const a=e.match(/(P+)(p+)?/)||[],s=a[1],i=a[2];if(!i)return Ux(e,t);let r;switch(s){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",Ux(s,t)).replace("{{time}}",t2(i,t))},iO={p:t2,P:sO},rO=/^D+$/,lO=/^Y+$/,oO=["D","DD","YY","YYYY"];function cO(e){return rO.test(e)}function dO(e){return lO.test(e)}function uO(e,t,a){const s=hO(e,t,a);if(console.warn(s),oO.includes(e))throw new RangeError(s)}function hO(e,t,a){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const mO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pO=/^'([^]*?)'?$/,gO=/''/g,xO=/[a-zA-Z]/;function qx(e,t,a){var u,m,f,h;const s=Dd(),i=s.locale??Z6,r=s.firstWeekContainsDate??((m=(u=s.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??1,l=s.weekStartsOn??((h=(f=s.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,o=Ca(e);if(!y6(o))throw new RangeError("Invalid time value");let c=t.match(fO).map(w=>{const v=w[0];if(v==="p"||v==="P"){const j=iO[v];return j(w,i.formatLong)}return w}).join("").match(mO).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const v=w[0];if(v==="'")return{isToken:!1,value:vO(w)};if(Px[v])return{isToken:!0,value:w};
261if(v.match(xO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(c=i.localize.preprocessor(o,c));const d={firstWeekContainsDate:r,weekStartsOn:l,locale:i};return c.map(w=>{if(!w.isToken)return w.value;const v=w.value;(dO(v)||cO(v))&&uO(v,t,String(e));const j=Px[v[0]];return j(o,v,i.localize,d)}).join("")}function vO(e){const t=e.match(pO);return t?t[1].replace(gO,"'"):e}const yO=()=>{const[e,t]=p.useState([]),[a,s]=p.useState([]),[i,r]=p.useState(!0),[l,o]=p.useState(""),[c,d]=p.useState("all"),[u,m]=p.useState("all");p.useEffect(()=>{f()},[]),p.useEffect(()=>{h()},[e,l,c,u]);const f=async()=>{try{r(!0);const{data:b,error:N}=await vt.from("security_logs").select("*").order("created_at",{ascending:!1}).limit(1e3);if(N){console.error("Error fetching security logs:",N),Ae({title:"Error loading security logs",description:"Failed to fetch security logs. Database may not be configured.",variant:"destructive"});return}t(b||[])}catch(b){console.error("Failed to fetch security logs:",b),Ae({title:"Connection error",description:"Unable to connect to security logs database",variant:"destructive"})}finally{r(!1)}},h=()=>{let b=e;if(l&&(b=b.filter(N=>{var A;return N.event_type.toLowerCase().includes(l.toLowerCase())||((A=N.event_details)==null?void 0:A.email)&&N.event_details.email.toLowerCase().includes(l.toLowerCase())||N.ip_address&&N.ip_address.includes(l)||JSON.stringify(N.event_details).toLowerCase().includes(l.toLowerCase())})),c!=="all"&&(b=b.filter(N=>N.event_type===c)),u!=="all"){const N=new Date;let A=new Date;switch(u){case"1h":A.setHours(N.getHours()-1);break;case"24h":A.setDate(N.getDate()-1);break;case"7d":A.setDate(N.getDate()-7);break;case"30d":A.setDate(N.getDate()-30);break}b=b.filter(S=>new Date(S.created_at)>=A)}s(b)},w=b=>{switch(b){case"admin_login_success":case"admin_logout":return"bg-green-100 text-green-800";case"admin_login_failed":case"admin_access_denied":case"admin_login_denied":return"bg-red-100 text-red-800";case"admin_session_expired":return"bg-yellow-100 text-yellow-800";default:return"bg-gray-100 text-gray-800"}},v=b=>{switch(b){case"admin_login_success":return n.jsx(op,{className:"h-4 w-4 text-green-600"});case"admin_login_failed":case"admin_access_denied":case"admin_login_denied":return n.jsx(Dg,{className:"h-4 w-4 text-red-600"});case"admin_logout":return n.jsx(da,{className:"h-4 w-4 text-blue-600"});case"admin_session_expired":return n.jsx(tc,{className:"h-4 w-4 text-yellow-600"});default:return n.jsx(Wi,{className:"h-4 w-4 text-gray-600"})}},j=()=>{const b=[["Timestamp","Event Type","User ID","Details","IP Address","User Agent"].join(","),...a.map(_=>[_.created_at,_.event_type,_.user_id||"",JSON.stringify(_.event_details).replace(/"/g,'""'),_.ip_address||"",(_.user_agent||"").replace(/"/g,'""')].map(O=>`"${O}"`).join(","))].join(`
262`),N=new Blob([b],{type:"text/csv"}),A=window.URL.createObjectURL(N),S=document.createElement("a");S.href=A,S.download=`security-logs-${qx(new Date,"yyyy-MM-dd-HH-mm")}.csv`,document.body.appendChild(S),S.click(),document.body.removeChild(S),window.URL.revokeObjectURL(A),Ae({title:"Export successful",description:`Exported ${a.length} security log entries`})},y=()=>Array.from(new Set(e.map(b=>b.event_type))),g=(()=>{const b=e.length,N=e.filter(_=>_.event_type.includes("failed")||_.event_type.includes("denied")||_.event_type.includes("error")).length,A=e.filter(_=>_.event_type.includes("success")||_.event_type.includes("logout")).length,S=e.filter(_=>new Date(_.created_at)>new Date(Date.now()-24*60*60*1e3)).length;return{total:b,failed:N,successful:A,recent:S}})();return i?n.jsxs("div",{className:"flex items-center justify-center py-8",children:[n.jsx(Gu,{className:"h-8 w-8 animate-spin text-gray-400"}),n.jsx("span",{className:"ml-2 text-gray-600",children:"Loading security logs..."})]}):n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[n.jsx(q,{children:n.jsx(V,{className:"pt-6",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Total Events"}),n.jsx("p",{className:"text-2xl font-bold",children:g.total})]}),n.jsx(da,{className:"h-8 w-8 text-blue-600"})]})})}),n.jsx(q,{children:n.jsx(V,{className:"pt-6",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Failed Events"}),n.jsx("p",{className:"text-2xl font-bold text-red-600",children:g.failed})]}),n.jsx(Dg,{className:"h-8 w-8 text-red-600"})]})})}),n.jsx(q,{children:n.jsx(V,{className:"pt-6",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Successful Events"}),n.jsx("p",{className:"text-2xl font-bold text-green-600",children:g.successful})]}),n.jsx(op,{className:"h-8 w-8 text-green-600"})]})})}),n.jsx(q,{children:n.jsx(V,{className:"pt-6",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Last 24h"}),n.jsx("p",{className:"text-2xl font-bold",children:g.recent})]}
262),n.jsx(tc,{className:"h-8 w-8 text-yellow-600"})]})})})]}),n.jsxs(q,{children:[n.jsx(G,{children:n.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4",children:[n.jsxs("div",{children:[n.jsxs(W,{className:"flex items-center gap-2",children:[n.jsx(da,{className:"h-5 w-5"}),"Security Event Log"]}),n.jsx($e,{children:"Monitor and analyze security events in real-time"})]}),n.jsxs("div",{className:"flex gap-2",children:[n.jsxs(B,{onClick:f,variant:"outline",size:"sm",children:[n.jsx(Gu,{className:"h-4 w-4 mr-2"}),"Refresh"]}),n.jsxs(B,{onClick:j,variant:"outline",size:"sm",children:[n.jsx(km,{className:"h-4 w-4 mr-2"}),"Export"]})]})]})}),n.jsxs(V,{children:[n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-6",children:[n.jsx("div",{className:"flex-1",children:n.jsxs("div",{className:"relative",children:[n.jsx(Vk,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),n.jsx($,{placeholder:"Search logs...",value:l,onChange:b=>o(b.target.value),className:"pl-10"})]})}),n.jsxs(pm,{value:c,onValueChange:d,children:[n.jsxs(qc,{className:"w-full sm:w-48",children:[n.jsx(X2,{className:"h-4 w-4 mr-2"}),n.jsx(gm,{placeholder:"Event Type"})]}),n.jsxs(Vc,{children:[n.jsx(aa,{value:"all",children:"All Events"}),y().map(b=>n.jsx(aa,{value:b,children:b.replace(/_/g," ").replace(/\b\w/g,N=>N.toUpperCase())},b))]})]}),n.jsxs(pm,{value:u,onValueChange:m,children:[n.jsx(qc,{className:"w-full sm:w-32",children:n.jsx(gm,{placeholder:"Time Range"})}),n.jsxs(Vc,{children:[n.jsx(aa,{value:"all",children:"All Time"}),n.jsx(aa,{value:"1h",children:"Last Hour"}),n.jsx(aa,{value:"24h",children:"Last 24h"}),n.jsx(aa,{value:"7d",children:"Last 7 Days"}),n.jsx(aa,{value:"30d",children:"Last 30 Days"})]})]})]}),a.length===0?n.jsxs(Q1,{children:[n.jsx(Wi,{className:"h-4 w-4"}),n.jsx(X1,{children:e.length===0?"No security events have been logged yet.":"No events match your current filters."})]}):n.jsx(Y1,{className:"h-96",children:n.jsxs(R1,{children:[n.jsx(I1,{children:n.jsxs(ym,{children:[n.jsx($r,{children:"Timestamp"}),n.jsx($r,{children:"Event"}),n.jsx($r,{children:"Details"}),n.jsx($r,{children:"Source"})]})}),n.jsx(M1,{children:a.map(b=>{var N,A,S;return n.jsxs(ym,{children:[n.jsx(Gr,{className:"font-medium",children:qx(new Date(b.created_at),"MMM dd, HH:mm:ss")}),n.jsx(Gr,{children:n.jsxs("div",{className:"flex items-center gap-2",children:[v(b.event_type),n.jsx(vm,{className:w(b.event_type),children:b.event_type.replace(/_/g," ").replace(/\b\w/g,_=>_.toUpperCase())})]})}),n.jsx(Gr,{children:n.jsxs("div",{className:"max-w-xs",children:[((N=b.event_details)==null?void 0:N.email)&&n.jsxs("div",{className:"text-sm text-gray-600",children:["User: ",b.event_details.email]}),((A=b.event_details)==null?void 0:A.reason)&&n.jsxs("div",{className:"text-sm text-gray-600",children:["Reason: ",b.event_details.reason]}),((S=b.event_details)==null?void 0:S.attempted_route)&&n.jsxs("div",{className:"text-sm text-gray-600",children:["Route: ",b.event_details.attempted_route]})]})}),n.jsx(Gr,{children:n.jsxs("div",{className:"text-sm text-gray-600",children:[b.ip_address&&n.jsxs("div",{children:["IP: ",b.ip_address]}),b.user_agent&&n.jsxs("div",{className:"truncate max-w-xs",title:b.user_agent,children:[b.user_agent.split(" ")[0],"..."]})]})})]},b.id)})})]})})]})]})]})},bO=()=>{const e=Am(),[t,a]=p.useState(null),[s,i]=p.useState("homepage");p.useEffect(()=>{(async()=>{var d;const{data:{session:c}}=await vt.auth.getSession();(d=c==null?void 0:c.user)!=null&&d.email&&a(c.user.email)})();const{data:{subscription:o}}=vt.auth.onAuthStateChange((c,d)=>{var u;c==="SIGNED_OUT"?(a(null),e("/admin")):(u=d==null?void 0:d.user)!=null&&u.email&&a(d.user.email)});return()=>o.unsubscribe()},[e]);const r=async()=>{try{try{await vt.functions.invoke("logUsage",{body:{endpoint:"/admin/logout",method:"POST",statusCode:200,additionalData:{event:"admin_logout",email:t}}})}catch(o){console.error("Failed to log logout event:",o)}const{error:l}=await vt.auth.signOut();if(l){console.error("Logout error:",l),Ae({title:"Logout error",description:"There was an issue logging out. Please try again.",variant:"destructive"});return}Ae({title:"Logged out",description:"You have been securely logged out of the admin dashboard"}),e("/admin")}catch(l){console.error("Logout failed:",l),Ae({title:"Logout failed",description:"Please try again or refresh the page",variant:"destructive"})}};return n.jsx(J3,{children:n.jsx(Xt,{children:n.jsxs("div",{className:"py-6",children:[n.jsxs("div",{className:"flex justify-between items-center mb-6",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Admin Dashboard"}),n.jsx("p",{className:"text-gray-500",children:"Manage your website content and settings"})]}),n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("div",{className:"text-sm text-gray-500",children:n.jsx("span",{className:"font-semibold",children:t})}),n.jsxs(B,{variant:"outline",size:"sm",onClick:r,children:[n.jsx(zk,{className:"mr-2 h-4 w-4"}),"Log Out"]})]})]}),n.jsxs(ei,{value:s,onValueChange:i,className:"space-y-4",children:[n.jsxs(rs,{className:"grid grid-cols-2 md:grid-cols-6 gap-2",children:[n.jsxs(Me,{value:"homepage",className:"flex items-center gap-2",children:[n.jsx(Rk,{className:"h-4 w-4"}),n.jsx("span",{className:"hidden md:inline",children:"Homepage"})]}),n.jsxs(Me,{value:"case-studies",className:"flex items-center gap-2",children:[n.jsx(Jn,{className:"h-4 w-4"}),n.jsx("span",{className:"hidden md:inline",children:"Case Studies"})]}),n.jsxs(Me,{value:"packages",className:"flex items-center gap-2",children:[n.jsx(J2,{className:"h-4 w-4"}),n.jsx("span",{className:"hidden md:inline",children:"Packages"})]}),n.jsxs(Me,{value:"analytics",className:"flex items-center gap-2",children:[n.jsx(Sm,{className:"h-4 w-4"}),n.jsx("span",{className:"hidden md:inline",children:"Analytics"})]}),n.jsxs(Me,{value:"seo",className:"flex items-center gap-2",children:[n.jsx(hv,{className:"h-4 w-4"}),n.jsx("span",{className:"hidden md:inline",children:"SEO"})]}),n.jsxs(Me,{value:"security",className:"flex items-center gap-2",children:[n.jsx(_k,{className:"h-4 w-4"}),n.jsx("span",{className:"hidden md:inline",children:"Security"})]})]}),n.jsx(De,{value:"homepage",className:"space-y-4",children:n.jsx(Z3,{})}),n.jsx(De,{value:"case-studies",className:"space-y-4",children:n.jsx(e5,{})}),n.jsx(De,{value:"packages",className:"space-y-4",children:n.jsx(l5,{})}),n.jsx(De,{value:"analytics",className:"space-y-4",children:n.jsx(U5,{})}),n.jsx(De,{value:"seo",className:"space-y-4",children:n.jsx(K5,{})}),n.jsx(De,{value:"security",className:"space-y-4",children:n.jsx(yO,{})})]})]})})})},Vx="https://www.paypal.com/paypalme/appenueai/590",wO="https://www.loom.com/embed/YOUR_SAMPLE_VIDEO_ID",jO=()=>{const e=()=>window.open(Vx,"_blank","noopener,noreferrer");return n.jsx(Xt,{children:n.jsxs("main",{className:"min-h-screen bg-background text-foreground",children:[n.jsx("div",{className:"md:hidden fixed bottom-0 left-0 right-0 z-50 bg-white/90 backdrop-blur border-t border-border",children:n.jsxs("div",{className:"mx-auto max-w-screen-sm px-4 py-3 flex items-center justify-between gap-3",children:[n.jsxs("div",{className:"text-sm",children:[n.jsx("div",{className:"font-semibold",children:"Executive Snapshot"}),n.jsx("div",{className:"text-muted-foreground",children:"Delivered in 24 hours"})]}),n.jsx(B,{size:"sm",className:"rounded-full px-4",onClick:e,"aria-label":"Buy Executive Snapshot via PayPal","data-gtm":"cta-mobile-buy",children:"Buy - $590"})]})}),n.jsx("section",{className:"section pt-28",children:n.jsxs("div",{className:"max-w-5xl mx-auto text-center",children:[n.jsx(vm,{className:"mb-4 rounded-full bg-appblue/10 text-appblue border border-appblue/20",children:"No calls - async delivery"}),n.jsx("h1",{className:"mx-auto",children:"Get an Executive Sales AI Snapshot in 24 hours"}),n.jsx("p",{className:"mt-4 mx-auto max-w-2xl text-muted-foreground",children:"A concise 7 minute Loom that identifies three ranked blockers, one quick fix, and a seven day KPI target. Built for energy, industrial, and infrastru
262cture teams."}),n.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row items-center justify-center gap-3",children:[n.jsx(B,{className:"h-12 rounded-full px-6 text-base",onClick:e,"aria-label":"Buy the Executive Snapshot","data-gtm":"cta-hero-buy",children:"Buy the $590 Snapshot"}),n.jsx("a",{href:"#sample",className:"h-12 inline-flex items-center justify-center rounded-full border border-border px-6 text-base text-foreground hover:bg-muted/40","aria-label":"See a sample Snapshot","data-gtm":"cta-hero-sample",children:"See a sample Snapshot"})]}),n.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-4 text-muted-foreground",children:[n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsx(Rc,{className:"h-4 w-4"})," 24 hour turnaround"]}),n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsx(da,{className:"h-4 w-4"})," Refund if no actionable blocker"]}),n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsx(zg,{className:"h-4 w-4"})," Secure PayPal checkout"]})]})]})}),n.jsx("section",{className:"section pt-6",children:n.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[n.jsxs(q,{className:"glass-card",children:[n.jsx(G,{children:n.jsx(W,{children:"What you get"})}),n.jsxs(V,{className:"text-foreground/80 space-y-3",children:[n.jsx(ea,{line:"7 minute executive Loom"}),n.jsx(ea,{line:"Three prioritised blockers ranked by impact"}),n.jsx(ea,{line:"One immediate fix with copy or configuration"}),n.jsx(ea,{line:"Seven day KPI target with simple instrumentation"}),n.jsx(ea,{line:"One revision within 72 hours"})]})]}),n.jsxs(q,{className:"glass-card",children:[n.jsx(G,{children:n.jsx(W,{children:"What you provide"})}),n.jsxs(V,{className:"text-foreground/80 space-y-3",children:[n.jsx(ea,{line:"LinkedIn URL or page we should assess"}),n.jsx(ea,{line:"Pick one workflow - outbound message, website CTA, demo handoff"}),n.jsx(ea,{line:"Your seven day goal metric"}),n.jsx(ea,{line:"Email for delivery"}),n.jsx("div",{className:"pt-1 text-sm text-muted-foreground",children:"You’ll receive a secure intake link via email right after payment."})]})]}),n.jsxs(q,{className:"glass-card",children:[n.jsxs(G,{className:"flex-row items-center justify-between",children:[n.jsx(W,{children:"Capacity"}),n.jsx(vm,{className:"rounded-full bg-emerald-500/15 text-emerald-700 border border-emerald-500/30",children:"Limited"})]}),n.jsxs(V,{className:"text-foreground/80 space-y-3",children:[n.jsx(ea,{line:"5 Snapshots per week - quality over volume"}),n.jsx(ea,{line:"Energy and industrial focus"}),n.jsx(ea,{line:"All work is async - no calls"}),n.jsxs("div",{className:"pt-2",children:[n.jsx(B,{className:"w-full rounded-full",onClick:e,"aria-label":"Buy now via PayPal","data-gtm":"cta-capacity-buy",children:"Buy now - $590"}),n.jsxs("div",{className:"mt-2 text-xs text-muted-foreground inline-flex items-center gap-1",children:[n.jsx(zg,{className:"h-3.5 w-3.5"})," Secure PayPal payment"]})]})]})]})]})}),n.jsx("section",{id:"sample",className:"section pt-6",children:n.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 items-start",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"inline-flex items-center gap-2 text-appblue",children:[n.jsx(Nm,{className:"h-4 w-4"})," Sample Snapshot"]}),n.jsx("h2",{className:"mt-2",children:"See the format before you buy"}),n.jsx("p",{className:"mt-3 text-muted-foreground max-w-xl",children:"Short, specific, and immediately useful. You receive a redacted tile you can publish as proof, plus one revision within 72 hours if you need a minor change."}),n.jsxs("ul",{className:"mt-6 space-y-3 text-foreground/85",children:[n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(dt,{className:"h-5 w-5 text-emerald-500 mt-0.5"})," Reply rate raised inside 7 days - example shown"]}),n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(dt,{className:"h-5 w-5 text-emerald-500 mt-0.5"})," Demo handoff friction reduced - fewer steps"]}),n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(dt,{className:"h-5 w-5 text-emerald-500 mt-0.5"})," Website CTA clarity improved - higher clicks"]})]}),n.jsxs("div",{className:"mt-8 flex gap-3",children:[n.jsx(B,{className:"rounded-full",onClick:e,"aria-label":"Buy the Executive Snapshot from sample section","data-gtm":"cta-sample-buy",children:"Buy the $590 Snapshot"}),n.jsx("a",{href:"#faqs",className:"inline-flex items-center justify-center rounded-full border border-border px-4",children:"Read FAQs"})]})]}),n.jsxs("div",{children:[n.jsx("div",{className:"relative aspect-video rounded-2xl overflow-hidden border border-border bg-muted",children:n.jsx("iframe",{src:wO,className:"absolute inset-0 h-full w-full",allow:"autoplay; fullscreen",loading:"lazy",title:"Executive Snapshot - Sample"})}),n.jsxs("div",{className:"mt-4 grid grid-cols-3 gap-3",children:[n.jsx("div",{className:"h-24 rounded-xl bg-white/70 border border-border"}),n.jsx("div",{className:"h-24 rounded-xl bg-white/70 border border-border"}),n.jsx("div",{className:"h-24 rounded-xl bg-white/70 border border-border"})]})]})]})}),n.jsx("section",{className:"section pt-6",children:n.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[n.jsx(qu,{icon:n.jsx(_b,{className:"h-5 w-5"}),title:"Buy",body:"Checkout via PayPal. You’ll receive a secure intake link immediately."}),n.jsx(qu,{icon:n.jsx(Z2,{className:"h-5 w-5"}),title:"Submit",body:"Share a LinkedIn URL, pick one workflow, and set a seven day goal metric."}),n.jsx(qu,{icon:n.jsx(Rc,{className:"h-5 w-5"}),title:"Deliver",body:"Receive your 7 minute Loom within 24 hours - plus one revision if needed."})]})}),n.jsxs("section",{id:"faqs",className:"section pt-6 max-w-3xl",children:[n.jsx("h3",{children:"Frequently asked questions"}),n.jsxs("div",{className:"mt-6 divide-y divide-border border border-border rounded-2xl overflow-hidden",children:[n.jsx(Mr,{q:"Do we need a call?",a:"No. Everything is async to protect your time and mine. The deliverable is a 7 minute Loom with concrete fixes and a seven day KPI target."}),n.jsx(Mr,{q:"What if there is no actionable blocker?",a:"If I cannot identify a blocker worth fixing now, I refund you in full."}),n.jsx(Mr,{q:"What happens after purchase?",a:"PayPal confirms your payment and you’ll receive a secure intake link to provide the four inputs. You will receive the Loom within 24 hours."}),n.jsx(Mr,{q:"Can you work outside energy and industrial?",a:"Yes, but the strongest results come from energy, industrial, and infrastru
262cture. If your context is very different, email first."}),n.jsx(Mr,{q:"How do revisions work?",a:"One revision within 72 hours is included. It is for minor corrections or clarity, not a second scope."})]})]}),n.jsx("section",{className:"section pt-6 pb-28",children:n.jsx("div",{className:"mx-auto max-w-5xl rounded-2xl border border-border bg-white/80 p-6 md:p-8",children:n.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-4 md:gap-6",children:[n.jsx(da,{className:"h-8 w-8 text-emerald-600"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h4",{className:"text-lg font-semibold gradient-text text-3d",children:"Simple guarantee"}),n.jsx("p",{className:"text-muted-foreground",children:"If there is no actionable blocker to improve within seven days, you get a full refund. No forms. No delay."})]}),n.jsx(B,{className:"rounded-full",onClick:e,"aria-label":"Buy now from guarantee section","data-gtm":"cta-guarantee-buy",children:"Buy now - $590"})]})})}),n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Product",name:"Executive Sales AI Snapshot",description:"A 7 minute Loom that identifies three blockers, one quick fix, and a seven day KPI target. Delivered in 24 hours. Async - no calls.",brand:{"@type":"Brand",name:"Appenue AI"},offers:{"@type":"Offer",priceCurrency:"USD",price:"590",availability:"https://schema.org/InStock",url:Vx}})}}),n.jsx("footer",{className:"mx-auto max-w-6xl px-6 pb-24 text-xs text-muted-foreground",children:n.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 sm:gap-4 items-start sm:items-center",children:[n.jsxs("div",{children:["© ",new Date().getFullYear()," Appenue AI"]}),n.jsx("div",{className:"hidden sm:inline",children:"•"}),n.jsx("div",{children:"Privacy - your inputs are kept confidential and never used for training."})]})})]})})};function ea({line:e}){return n.jsxs("div",{className:"inline-flex items-start gap-2",children:[n.jsx(dt,{className:"h-5 w-5 text-emerald-600 mt-0.5"}),n.jsx("span",{children:e})]})}function qu({icon:e,title:t,body:a}){return n.jsxs(q,{className:"glass-card",children:[n.jsxs(G,{className:"flex-row items-center gap-2",children:[n.jsx("div",{className:"h-9 w-9 rounded-xl bg-white border border-border grid place-items-center",children:e}),n.jsx(W,{children:t})]}),n.jsx(V,{className:"text-foreground/80",children:a})]})}function Mr({q:e,a:t}){return n.jsxs("details",{className:"group open:bg-white/70",children:[n.jsxs("summary",{className:"cursor-pointer list-none px-4 py-4 font-medium flex items-center justify-between",children:[n.jsx("span",{children:e}),n.jsx("svg",{className:"h-4 w-4 transition-transform group-open:rotate-180",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n.jsx("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z",clipRule:"evenodd"})})]}),n.jsx("div",{className:"px-4 pb-4 text-muted-foreground text-sm",children:t})]})}const NO=()=>(p.useEffect(()=>{let e=document.querySelector('link[rel="canonical"]');e||(e=document.createElement("link"),e.setAttribute("rel","canonical"),document.head.appendChild(e)),e.setAttribute("href","https://mvp.appenue-ai.com/"),document.title="MVP in 15 Business Days | $3,850 | Revenue-Ready Product";let t=document.querySelector('meta[name="description"]');t&&t.setAttribute("content","Ship a revenue-ready MVP in 15 business days starting at $3,850. Auth, payments, database, admin panel included. Fixed price, fixed timeline.");let a=document.querySelector('meta[name="keywords"]');a&&a.setAttribute("content","MVP development, 15 day MVP, rapid MVP, fixed price MVP, revenue-ready product, startup development, MVP in 15 days");let s=document.querySelector('meta[name="author"]');s||(s=document.createElement("meta"),s.setAttribute("name","author"),document.head.appendChild(s)),s.setAttribute("content","Avishay (AJ) Segal, MBA - Appenue AI");let i=document.querySelector('meta[property="og:title"]');i&&i.setAttribute("content","MVP in 15 Business Days | $3,850 Starting Price");let r=document.querySelector('meta[property="og:description"]');r&&r.setAttribute("content","Revenue-ready MVP: user auth, payments, admin panel, database. 15 business days. Fixed price.");
262let l=document.querySelector('link[rel="alternate"][href*="appenue-ai.com"]');l||(l=document.createElement("link"),l.setAttribute("rel","alternate"),l.setAttribute("hreflang","en"),document.head.appendChild(l)),l.setAttribute("href","https://appenue-ai.com");let o=document.querySelector('link[rel="related"][title="AI Services & Consulting"]');o||(o=document.createElement("link"),o.setAttribute("rel","related"),o.setAttribute("title","AI Services & Consulting"),document.head.appendChild(o)),o.setAttribute("href","https://appenue-ai.com/packages");let c=document.querySelector('link[rel="author"]');c||(c=document.createElement("link"),c.setAttribute("rel","author"),document.head.appendChild(c)),c.setAttribute("href","https://www.amazon.com/author/avishay_segal");const d=document.querySelector('script[data-type="mvp-service-jsonld"]');d&&d.remove();const u=document.querySelector('script[data-type="mvp-product-jsonld"]');u&&u.remove();const m=document.createElement("script");m.setAttribute("type","application/ld+json"),m.setAttribute("data-type","mvp-service-jsonld"),m.textContent=JSON.stringify({"@context":"https://schema.org","@type":"Service",name:"MVP in 15 Days",provider:{"@type":"Organization",name:"Appenue AI",url:"https://appenue-ai.com"},url:"https://mvp.appenue-ai.com",description:"Revenue-ready MVP in 15 business days. Includes user authentication, payment integration, database, and admin panel.",serviceType:"Software Development",areaServed:"Worldwide",offers:{"@type":"Offer",url:"https://mvp.appenue-ai.com",priceCurrency:"USD",price:"3850",priceValidUntil:"2026-12-31",availability:"https://schema.org/InStock"}}),document.head.appendChild(m);const f=document.querySelector('script[data-type="mvp-breadcrumb-jsonld"]');f&&f.remove();const h=document.createElement("script");return h.setAttribute("type","application/ld+json"),h.setAttribute("data-type","mvp-breadcrumb-jsonld"),h.textContent=JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Appenue AI",item:"https://appenue-ai.com"},{"@type":"ListItem",position:2,name:"MVP in 15 Days",item:"https://mvp.appenue-ai.com"}]}),document.head.appendChild(h),()=>{const w=document.querySelector('script[data-type="mvp-service-jsonld"]');w&&w.remove();const v=document.querySelector('script[data-type="mvp-breadcrumb-jsonld"]');v&&v.remove()}},[]),null),SO=()=>(p.useEffect(()=>{const e=document.querySelector('script[data-type="author-jsonld"]');e&&e.remove();const t=document.createElement("script");return t.setAttribute("type","application/ld+json"),t.setAttribute("data-type","author-jsonld"),t.textContent=JSON.stringify({"@context":"https://schema.org","@type":"Person",name:"Avishay (AJ) Segal",jobTitle:"AI Strategy Consultant & Published Author",worksFor:{"@type":"Organization",name:"Appenue AI",url:"https://appenue-ai.com"},url:"https://mvp.appenue-ai.com",sameAs:["https://www.linkedin.com/in/avishaysegal/","https://www.instagram.com/vishvisher/","https://www.amazon.com/author/avishay_segal"],alumniOf:"MBA",knowsAbout:["AI Strategy","MVP Development","Business Transformation","Vibe Coding"],author:[{"@type":"Book",name:"Vibe Coding: For Non-Techies",isbn:"B0FXH4MGBP",url:"https://www.amazon.com/Vibe-Coding-Non-Techies-scratch-without/dp/B0FXH4MGBP",author:"Avishay (AJ) Segal"},{"@type":"Book",name:"Marketing Survival Guide for Businesses",isbn:"B076VTXBK1",url:"https://www.amazon.com/MARKETING-SURVIVAL-GUIDE-BUSINESSES-startups-ebook/dp/B076VTXBK1",author:"Avishay (AJ) Segal"},{"@type":"Book",isbn:"B0CW1DB823",url:"https://www.amazon.com/dp/B0CW1DB823",author:"Avishay (AJ) Segal"}],publication:[{"@type":"Article",headline:"Vibe Coding: A Mini Revolution",url:"https://www.linkedin.com/pulse/vibe-coding-mini-revolution-avishay-aj-segal-mba-zhixf/",author:"Avishay (AJ) Segal"}]}),document.head.appendChild(t),()=>{const a=document.querySelector('script[data-type="author-jsonld"]');a&&a.remove()}},[]),null),To="https://calendly.com/appenueai/25min",AO=()=>{const e=ev(),t=()=>{window.open(To,"_blank")};return n.jsxs(Xt,{children:[n.jsx(NO,{}),n.jsx(SO,{}
262),n.jsx(Co,{title:"Ready to discuss your MVP?",link:To,scrollPercentage:e,threshold:25,maxThreshold:45}),n.jsx(Co,{title:"Let's talk about your future business",link:To,scrollPercentage:e,threshold:50,maxThreshold:70}),n.jsx(Co,{title:"Yesterday was the best time - today is what's left",link:To,scrollPercentage:e,threshold:75}),n.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 glass-card border-b",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-4 flex justify-between items-center",children:[n.jsx("a",{href:"https://appenue-ai.com",className:"text-2xl font-bold gradient-text hover:opacity-80 transition-opacity",rel:"noopener noreferrer",children:"Appenue AI"}),n.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[n.jsx("a",{href:"https://appenue-ai.com",className:"hover:text-appblue transition-colors",rel:"noopener noreferrer",children:"Appenue AI"}),n.jsx(eN,{className:"w-4 h-4"}),n.jsx("span",{className:"text-appblue font-medium",children:"MVP in 15 Days"})]}),n.jsx(B,{onClick:t,className:"btn-primary",children:"Book a 25-min Strategy Call"})]})}),n.jsx("section",{className:"section pt-32 pb-16 text-center neural-network-bg",children:n.jsxs(T.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7},className:"max-w-4xl mx-auto",children:[n.jsx(T.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5,delay:.2},className:"mb-8",children:n.jsxs("a",{href:"https://www.goodfirms.co/company/appenue-ai",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 glass-card px-4 py-2 text-sm font-medium hover:shadow-lg transition-all",children:[n.jsx("img",{style:{width:"48px"},src:"/images/goodfirms-badge.svg",title:"Top Artificial Intelligence Company",alt:"Top Artificial Intelligence Company on Goodfirms"}),n.jsx("span",{children:"Trusted on GoodFirms"})]})}),n.jsx("h1",{className:"text-5xl lg:text-6xl font-bold mb-6 gradient-text text-3d",children:"Ship Your Revenue-Ready MVP in 15 Business Days starting at $3,850"}),n.jsxs("p",{className:"text-xl text-gray-600 mb-4",children:["18 years of expertise. 100+ companies served. ",n.jsx("span",{className:"font-semibold",children:"We only take the ones ready for it."})]}),n.jsx("p",{className:"text-lg text-gray-500 mb-8 italic",children:"Yesterday was the best time to launch your idea - today is what's left"}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[n.jsx(B,{onClick:t,className:"btn-primary text-lg px-8 py-4",children:"Let's talk about your future business"}),n.jsx(B,{onClick:()=>{var a;return(a=document.getElementById("offers"))==null?void 0:a.scrollIntoView({behavior:"smooth"})},variant:"outline",className:"text-lg px-8 py-4",children:"What's included"})]})]})}),n.jsxs("section",{id:"offers",className:"section",children:[n.jsx(I,{title:"Revenue-Ready MVP in 15 Days",subtitle:"One clear offer. One fixed price. One outcome: your business launched."}),n.jsx("div",{className:"max-w-2xl mx-auto",children:n.jsx(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:n.jsxs(q,{className:"glass-card relative",children:[n.jsx("div",{className:"absolute -top-3 left-1/2 transform -translate-x-1/2",children:n.jsx("span",{className:"bg-apppink text-white px-4 py-2 rounded-full text-sm font-medium shadow-lg",children:"Ready to Launch"})}),n.jsxs(G,{className:"text-center pb-4",children:[n.jsx(W,{className:"text-2xl mb-6",children:"MVP Build Package"}),n.jsxs("div",{className:"text-center",children:[n.jsx("span",{className:"text-5xl font-bold gradient-text",children:"starting at $3,850"}),n.jsx("p",{className:"text-gray-600 mt-2 text-lg",children:"15 business days to a revenue-ready product"})]})]}),n.jsxs(V,{className:"space-y-6",children:[n.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(dt,{className:"w-5 h-5 text-green-500"}),n.jsx("span",{children:"Revenue-ready web application"})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(dt,{className:"w-5 h-5 text-green-500"}),n.jsx("span",{children:"User authentication & profiles"})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(dt,{className:"w-5 h-5 text-green-500"}),n.jsx("span",{children:"Payment integration (Stripe, Paypal, etc.)"})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(dt,{className:"w-5 h-5 text-green-500"}),n.jsx("span",{children:"Core business features (3-5)"})]})]}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(dt,{className:"w-5 h-5 text-green-500"}),n.jsx("span",{children:"Responsive design"})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(dt,{className:"w-5 h-5 text-green-500"}),n.jsx("span",{children:"Database & hosting setup"})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(dt,{className:"w-5 h-5 text-green-500"}),n.jsx("span",{children:"Basic admin panel"})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(dt,{className:"w-5 h-5 text-green-500"}),n.jsx("span",{children:"2 revision rounds included"})]})]})]}),n.jsxs("div",{className:"text-center pt-4",children:[n.jsx(B,{onClick:t,className:"btn-primary text-lg px-12 py-4",children:"Let's build your MVP"}),n.jsx("p",{className:"text-sm text-gray-500 mt-2",children:"Next available slot: This week"})]})]})]})})})]}),n.jsxs("section",{className:"section",children:[n.jsx(I,{title:"How We Build So Fast",subt
262itle:"Modern tools. Proven approach. Products users fall in love with."}),n.jsx("div",{className:"max-w-4xl mx-auto",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"glass-card p-8 text-center",children:[n.jsxs("p",{className:"text-xl text-gray-700 mb-6 leading-relaxed",children:["We use ",n.jsx("span",{className:"font-semibold text-appblue",children:"no-code and low-code AI-driven tools"})," to deliver products which are ",n.jsx("span",{className:"font-semibold text-apppink",children:"well designed"}),",",n.jsx("span",{className:"font-semibold text-appblue",children:" scalable"})," and",n.jsx("span",{className:"font-semibold text-apppink",children:" users fall in love with"}),"."]}),n.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mt-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"w-16 h-16 bg-appblue/10 rounded-full flex items-center justify-center mx-auto mb-3",children:n.jsx(tc,{className:"w-8 h-8 text-appblue"})}),n.jsx("h4",{className:"font-semibold mb-2",children:"Lightning Fast"}),n.jsx("p",{className:"text-sm text-gray-600",children:"15 days from idea to live product"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"w-16 h-16 bg-apppink/10 rounded-full flex items-center justify-center mx-auto mb-3",children:n.jsx(Gk,{className:"w-8 h-8 text-apppink"})}),n.jsx("h4",{className:"font-semibold mb-2",children:"User-Focused"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Designed for engagement and conversion"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"w-16 h-16 bg-gradient-to-r from-appblue to-apppink text-white rounded-full flex items-center justify-center mx-auto mb-3",children:n.jsx(da,{className:"w-8 h-8"})}),n.jsx("h4",{className:"font-semibold mb-2",children:"Enterprise Ready"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Scalable architecture from day one"})]})]})]})})]}),n.jsxs("section",{className:"section bg-gradient-to-r from-gray-50 to-white",children:[n.jsx(I,{title:"Our Process",subtitle:"Three steps from idea to revenue-ready business."}),n.jsx("div",{className:"max-w-5xl mx-auto",children:n.jsxs("div",{className:"grid gap-8",children:[n.jsx(T.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7},className:"glass-card p-8 relative",children:n.jsxs("div",{className:"flex flex-col md:flex-row items-start gap-6",children:[n.jsx("div",{className:"flex-shrink-0",children:n.jsx("div",{className:"w-20 h-20 bg-gradient-to-r from-appblue to-apppink text-white rounded-full flex items-center justify-center",children:n.jsx("span",{className:"text-3xl font-bold",children:"1"})})}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h3",{className:"text-2xl font-bold mb-3 gradient-text",children:"Define Your Vision"}),n.jsx("p",{className:"text-lg text-gray-700 mb-4",children:"Building a product people want is hard. We help you strategize, and work to make it better."}),n.jsx("p",{className:"text-gray-600",children:"We lock down your requirements, validate your core assumptions, and create a clear roadmap. No feature creep, no scope changes - just a solid foundation for success."})]})]})}),n.jsx(T.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7,delay:.2},className:"glass-card p-8 relative",children:n.jsxs("div",{className:"flex flex-col md:flex-row items-start gap-6",children:[n.jsx("div",{className:"flex-shrink-0",children:n.jsx("div",{className:"w-20 h-20 bg-gradient-to-r from-apppink to-appblue text-white rounded-full flex items-center justify-center",children:n.jsx("span",{className:"text-3xl font-bold",children:"2"})})}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h3",{className:"text-2xl font-bold mb-3 gradient-text",children:"Build Your MVP"}),n.jsx("p",{className:"text-lg text-gray-700 mb-4",children:"Having the core product built out helps us use data to iterate on the product ahead. In 15 days we'll have a functioning revenue-ready product in your hands."}),n.jsx("p",{className:"text-gray-600",children:"User authentication, payment processing, core features, responsive design - everything you need to start generating revenue and validating your market."})]})]})}),n.jsx(T.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7,delay:.4},className:"glass-card p-8 relative",children:n.jsxs("div",{className:"flex flex-col md:flex-row items-start gap-6",children:[n.jsx("div",{className:"flex-shrink-0",children:n.jsx("div",{className:"w-20 h-20 bg-gradient-to-r from-appblue to-apppink text-white rounded-full flex items-center justify-center",children:n.jsx("span",{className:"text-3xl font-bold",children:"3"})})}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h3",{className:"text-2xl font-bold mb-3 gradient-text",children:"Launch & Iterate"}),n.jsx("p",{className:"text-lg text-gray-700 mb-4",children:"After launching we'll work with you to continue to iterate on your product."}),n.jsx("p",{className:"text-gray-600",children:"Your MVP is live and generating revenue. We provide the foundation and guidance to scale from early adopters to sustainable growth."})]})]})})]})})]}),n.jsxs("section",{className:"section bg-gradient-to-r from-gray-50 to-white",children:[n.jsx(I,{title:"Common Questions",subtitle:"Straight answers for serious founders"}
262),n.jsxs("div",{className:"max-w-3xl mx-auto space-y-4",children:[n.jsx(Dr,{q:"What if my idea needs features outside basic scope?",a:"We'll discuss it in the SOW (Statement of Work) during our initial call. Complex features can be handled in follow-on sprints."}),n.jsx(Dr,{q:"What if I need changes after the 2 iterations?",a:"Additional revisions are $150/hour or you can upgrade to our Execution Retainer for ongoing development."}),n.jsx(Dr,{q:"How do payments work?",a:"40% upfront to start, 60% on delivery. We use secure payment processing and provide detailed invoices."}),n.jsx(Dr,{q:"What if you can't deliver in 15 days?",a:"Original scope will be delivered as promised or we reduce the fee. Extensions only happen if you request scope changes."}),n.jsx(Dr,{q:"Do you work with international clients?",a:"Yes, we work globally. All communication is in English and we accommodate reasonable timezone differences."})]})]}),n.jsxs("section",{className:"section",children:[n.jsx(I,{title:"Who This Is NOT For",subtitle:"We're selective about who we work with"}),n.jsx("div",{className:"max-w-3xl mx-auto",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"glass-card p-8 border-l-4 border-apppink",children:[n.jsxs("ul",{className:"space-y-4 text-gray-700",children:[n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx("span",{className:"text-apppink font-bold",children:"✗"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Enterprise transformation programmes"})," - We build MVPs, not multi-year digital overhauls."]})]}),n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx("span",{className:"text-apppink font-bold",children:"✗"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Long consulting engagements"})," - 15 days, fixed price, done. No retainers required upfront."]})]}),n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx("span",{className:"text-apppink font-bold",children:"✗"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Dev-shop outsourcing"})," - We're not a body shop. We deliver complete products, not hours."]})]}),n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx("span",{className:"text-apppink font-bold",children:"✗"}),n.jsxs("span",{children:[n.jsx("strong",{children:"Unclear requirements"})," - If you can't articulate the core problem, we're not ready to build."]})]})]}),n.jsxs("p",{className:"mt-6 text-gray-600 text-sm",children:["Looking for transformation, readiness assessments, or AI governance?",n.jsx("a",{href:"https://appenue-ai.com/packages",className:"text-appblue hover:underline ml-1",children:"See our Growth Packages instead."})]})]})})]}),n.jsx("section",{className:"section",children:n.jsx(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"glass-card p-8 text-center",children:n.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-8",children:[n.jsxs("a",{href:"https://www.goodfirms.co/company/appenue-ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 hover:opacity-80 transition-opacity",children:[n.jsx("img",{style:{width:"32px"},src:"/images/goodfirms-badge.svg",title:"Top Artificial Intelligence Company",alt:"Top Artificial Intelligence Company on Goodfirms"}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold",children:"Trusted on GoodFirms"}),n.jsx("div",{className:"text-sm text-gray-600",children:"Verified reviews & portfolio"})]})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(tc,{className:"w-8 h-8 text-appblue"}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold",children:"18 Years Expertise"}),n.jsx("div",{className:"text-sm text-gray-600",children:"Since 2007"})]})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(da,{className:"w-8 h-8 text-apppink"}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold",children:"100+ Companies Served"}),n.jsx("div",{className:"text-sm text-gray-600",children:"Proven track record"})]})]})]})})}),n.jsxs("section",{className:"section bg-gradient-to-r from-gray-50 to-white",children:[n.jsx(I,{title:"Built by Published AI Expert",subtitle:"18 years of expertise, proven methodologies, published insights"}),n.jsx("div",{className:"max-w-4xl mx-auto glass-card p-8",children:n.jsx("div",{className:"flex flex-col gap-8",children:n.jsxs("div",{className:"flex-1",children:[n.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Avishay (AJ) Segal, MBA"}),n.jsx("p",{className:"text-gray-700 mb-6",children:'Published author and AI strategist with 18+ years of experience helping 100+ companies transform through AI-driven methodologies. Creator of the "Vibe Coding" approach for rapid MVP development.'}),n.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mb-6",children:[n.jsxs("a",{href:"https://www.amazon.com/Vibe-Coding-Non-Techies-scratch-without/dp/B0FXH4MGBP",target:"_blank",rel:"nofollow noopener noreferrer",className:"flex items-center gap-3 p-3 border rounded-lg hover:shadow-md transition-all",children:[n.jsx(Ro,{className:"w-5 h-5 text-appblue flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-sm",children:"Vibe Coding"}),n.jsx("div",{className:"text-xs text-gray-600",children:"Build MVPs without code"})]})]}),n.jsxs("a",{href:"https://www.amazon.com/MARKETING-SURVIVAL-GUIDE-BUSINESSES-startups-ebook/dp/B076VTXBK1",target:"_blank",rel:"nofollow noopener noreferrer",className:"flex items-center gap-3 p-3 border rounded-lg hover:shadow-md transition-all",children:[n.jsx(Ro,{className:"w-5 h-5 text-apppink flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-sm",children:"Marketing Survival Guide"}),n.jsx("div",{className:"text-xs text-gray-600",children:"For startups & SMBs"})]})]}),n.jsxs("a",{href:"https://www.amazon.com/dp/B0CW1DB823",target:"_blank",rel:"nofollow noopener noreferrer",className:"flex items-center gap-3 p-3 border rounded-lg hover:shadow-md transition-all",children:[n.jsx(Ro,{className:"w-5 h-5 text-appblue flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-sm",children:"Latest Publication"}),n.jsx("div",{className:"text-xs text-gray-600",children:"AI Implementation Guide"})]})]}),n.jsxs("a",{href:"https://www.linkedin.com/pulse/vibe-coding-mini-revolution-avishay-aj-segal-mba-zhixf/",target:"_blank",rel:"nofollow noopener noreferrer",className:"flex items-center gap-3 p-3 border rounded-lg hover:shadow-md transition-all",children:[n.jsx(Jn,{className:"w-5 h-5 text-apppink flex-shrink-0"}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-sm",children:"Vibe Coding Article"}),n.jsx("div",{className:"text-xs text-gray-600",children:"A Mini Revolution"})]})]})]}),n.jsx("div",{children:n.jsx("a",{href:"https://www.amazon.com/author/avishay_segal",target:"_blank",rel:"nofollow noopener noreferrer",className:"inline-flex items-center gap-2 text-appblue hover:underline font-medium",children:"View all publications on Amazon →"})})]})})})]}),n.jsx("section",{className:"section bg-gradient-to-r from-appblue to-apppink text-white text-center",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"max-w-3xl mx-auto",children:[n.jsx("h2",{className:"text-4xl font-bold mb-4 text-white",children:"Ready to move fast without blowing scope?"}),n.jsx("p",{className:"text-xl mb-2 text-white/90",children:"Yesterday was the best time to launch - today is what's left"}),n.jsx("p",{className:"text-lg mb-8 text-white/80",children:"We only take the ones ready for it."}),n.jsx("p",{className:"text-lg mb-10 text-white/80",children:" Are you?"}),n.jsx(B,{onClick:t,className:"bg-white text-appblue hover:bg-gray-100 text-lg px-8 py-4 font-semibold",children:"Let's talk about your future business"})]})}),n.jsx("footer",{className:"section bg-gradient-to-r from-gray-900 to-gray-800 text-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto",children:[n.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-8",children:[n.jsxs("div",{children:[n.jsx("h4",{className:"font-bold text-xl mb-4",children:"Appenue AI"}),n.jsx("p",{className:"text-gray-300 text-sm mb-4",children:"AI-driven growth strategies and MVP development"}),n.jsx("a",{href:"https://appenue-ai.com",className:"text-sm text-blue-400 hover:text-blue-300 inline-flex items-center gap-1",rel:"noopener noreferrer",children:"← Back to Main Site"})]}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-bold mb-4",children:"Explore More"}),n.jsxs("ul",{className:"space-y-2 text-sm",children:[n.jsx("li",{children:n.jsx("a",{href:"https://appenue-ai.com/about",className:"text-gray-300 hover:text-white",rel:"noopener noreferrer",children:"About Us"})}),n.jsx("li",{children:n.jsx("a",{href:"https://appenue-ai.com/packages",className:"text-gray-300 hover:text-white",rel:"noopener noreferrer",children:"All Services"})}),n.jsx("li",{children:n.jsx("a",{href:"https://appenue-ai.com/case-studies",className:"text-gray-300 hover:text-white",rel:"noopener noreferrer",children:"Case Studies"})}),n.jsx("li",{children:n.jsx("a",{href:"https://appenue-ai.com/contact",className:"text-gray-300 hover:text-white",rel:"noopener noreferrer",children:"Contact"})})]})]}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-bold mb-4",children:"Published Works"}),n.jsxs("ul",{className:"space-y-2 text-sm",children:[n.jsx("li",{children:n.jsx("a",{href:"https://www.amazon.com/author/avishay_segal",target:"_blank",rel:"nofollow noopener noreferrer",className:"text-gray-300 hover:text-white",children:"Amazon Author Page"})}),n.jsx("li",{children:n.jsx("a",{href:"https://www.linkedin.com/pulse/vibe-coding-mini-revolution-avishay-aj-segal-mba-zhixf/",target:"_blank",rel:"nofollow noopener noreferrer",className:"text-gray-300 hover:text-white",children:"Vibe Coding Article"})})]})]})]}),n.jsx("div",{className:"border-t border-gray-700 pt-6 text-center text-sm text-gray-400",children:n.jsx("p",{children:"© 2025 Appenue AI. All rights reserved."})})]})}),n.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-40 md:hidden bg-white border-t shadow-lg p-4",children:n.jsx(B,{onClick:t,className:"w-full btn-primary",children:"Book Your Call - We Only Take the Ready Ones"})}),n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Service",name:"MVP Development Service",description:"Ship your revenue-ready MVP in 15 business days starting at $3,850",provider:{"@type":"Organization",name:"Appenue AI",url:"https://appenueai.com"},offers:{"@type":"Offer",price:"3850",priceCurrency:"USD",description:"Complete MVP development in 15 business days"}})}})]})},Dr=({q:e,a:t})=>{const[a,s]=p.useState(!1);return n.jsx(T.div,{initial:{opacity:0}
262,whileInView:{opacity:1},viewport:{once:!0},className:"glass-card",children:n.jsxs("details",{className:"group",onToggle:i=>s(i.target.open),children:[n.jsxs("summary",{className:"flex items-center justify-between p-4 cursor-pointer font-medium hover:bg-gray-50/50",children:[n.jsx("span",{children:e}),n.jsx("span",{className:`transform transition-transform ${a?"rotate-45":""}`,children:"+"})]}),n.jsx("div",{className:"px-4 pb-4 text-gray-600 text-sm",children:t})]})})},As=[{id:"section-1",title:"1. When agents buy, systems decide"},{id:"section-2",title:"2. Failure signals operators see"},{id:"section-3",title:"3. What changed in 2026"},{id:"section-4",title:"4. Execution readiness gaps"},{id:"section-5",title:"5. Data contracts and liability"},{id:"section-6",title:"6. Timeouts and decision speed"},{id:"section-7",title:"7. Operating system for GTM"},{id:"section-8",title:"8. Next steps"}],_o=({children:e})=>n.jsxs(T.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4},className:"bg-primary/5 border border-primary/20 rounded-lg p-4 my-6",children:[n.jsx("p",{className:"text-sm font-semibold text-primary mb-1",children:"What this means for SMBs"}),n.jsx("p",{className:"text-sm text-foreground",children:e})]}),Vu=({children:e})=>n.jsx(T.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4},className:"bg-destructive/5 border border-destructive/20 rounded-lg p-4 my-6",children:n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx(Wi,{className:"w-4 h-4 text-destructive flex-shrink-0 mt-0.5"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-semibold text-destructive mb-1",children:"Common mistake"}),n.jsx("p",{className:"text-sm text-foreground",children:e})]})]})}),kO=({activeSection:e,isOpen:t,onToggle:a,showFloating:s})=>{const i=As.findIndex(l=>l.id===e),r=(i+1)/As.length*100;return n.jsxs(n.Fragment,{children:[n.jsx("button",{onClick:a,className:"xl:hidden fixed bottom-4 right-4 z-50 bg-primary text-primary-foreground p-3 rounded-full shadow-lg","aria-label":t?"Close table of contents":"Open table of contents",children:t?n.jsx(dr,{className:"w-5 h-5"}):n.jsx(fv,{className:"w-5 h-5"})}),t&&n.jsx("div",{className:"xl:hidden fixed inset-0 bg-background/80 backdrop-blur-sm z-40",onClick:a}),n.jsxs("nav",{className:`
263          xl:hidden fixed top-0
264          ${t?"right-0":"-right-full"}
265          w-72 h-screen
266          bg-card
267          border-l border-border
268          p-6
269          z-50
270          transition-all duration-300 ease-in-out
271          overflow-y-auto
272        `,"aria-label":"Table of contents",children:[n.jsx("p",{className:"text-sm font-semibold text-foreground mb-4 uppercase tracking-wider",children:"Contents"}),n.jsx("ul",{className:"space-y-2",children:As.map(l=>n.jsx("li",{children:n.jsx("a",{href:`#${l.id}`,onClick:o=>{var c;o.preventDefault(),(c=document.getElementById(l.id))==null||c.scrollIntoView({behavior:"smooth"}),a()},className:`
273                  block text-sm py-1.5 px-3 rounded-md transition-colors
274                  ${e===l.id?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:text-foreground hover:bg-muted"}
275                `,children:l.title})},l.id))})]}),n.jsx(T.nav,{initial:{opacity:0,x:-20},animate:{opacity:s?1:0,x:s?0:-20,pointerEvents:s?"auto":"none"},transition:{duration:.3},className:"hidden xl:block fixed top-24 left-[max(1rem,calc(50%-42rem))] w-56 z-40","aria-label":"Table of contents",children:n.jsxs("div",{className:"bg-card/95 backdrop-blur-sm border border-border rounded-lg shadow-lg p-4",children:[n.jsx("p",{className:"text-xs font-semibold text-foreground mb-3 uppercase tracking-wider",children:"Contents"}),n.jsxs("div",{className:"flex gap-3",children:[n.jsxs("div",{className:"relative w-1 flex-shrink-0",children:[n.jsx("div",{className:"absolute inset-0 bg-muted rounded-full"}),n.jsx(T.div,{className:"absolute top-0 left-0 w-full bg-primary rounded-full",initial:{height:0},animate:{height:`${r}%`},transition:{duration:.3,ease:"easeOut"}})]}),n.jsx("ul",{className:"space-y-1 flex-1",children:As.map(l=>n.jsxs("li",{className:"relative",children:[n.jsx("a",{href:`#${l.id}`,onClick:o=>{var c;o.preventDefault(),(c=document.getElementById(l.id))==null||c.scrollIntoView({behavior:"smooth"})},className:`
276                      block text-xs py-1 px-2 rounded transition-all duration-200
277                      ${e===l.id?"bg-primary/10 text-primary font-medium scale-[1.02]":"text-muted-foreground hover:text-foreground hover:bg-muted/50"}
278                    `,children:l.title}),e===l.id&&n.jsx(T.div,{layoutId:"activeIndicator",className:"absolute -left-3.5 to
278p-1/2 -translate-y-1/2 w-2 h-2 bg-primary rounded-full shadow-sm",transition:{type:"spring",stiffness:300,damping:30}})]},l.id))})]}),n.jsxs("div",{className:"mt-4 pt-3 border-t border-border",children:[n.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-wide",children:"Reading"}),n.jsxs("p",{className:"text-xs font-medium text-foreground truncate mt-0.5",children:["Section ",i+1," of ",As.length]})]})]})})]})},TO=()=>{const[e,t]=p.useState("section-1"),[a,s]=p.useState(!1),[i,r]=p.useState(!1),l={"@context":"https://schema.org","@type":"Article","@id":"https://www.appenue-ai.com/insights/ai-gtm-playbook#article",headline:"AI GTM Playbook",description:"A field guide for operators moving from AI discovery to execution-ready go-to-market systems.",datePublished:"2026-01-26",dateModified:"2026-01-26",author:{"@type":"Organization",name:"Appenue AI",url:"https://www.appenue-ai.com"},publisher:{"@type":"Organization",name:"Appenue AI",url:"https://www.appenue-ai.com"},mainEntityOfPage:{"@type":"WebPage","@id":"https://www.appenue-ai.com/insights/ai-gtm-playbook"},isPartOf:{"@type":"CollectionPage","@id":"https://www.appenue-ai.com/insights",name:"Insights"},image:"https://www.appenue-ai.com/images/hero-placeholder.webp"},o={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://www.appenue-ai.com/"},{"@type":"ListItem",position:2,name:"Insights",item:"https://www.appenue-ai.com/insights"},{"@type":"ListItem",position:3,name:"AI GTM Playbook",item:"https://www.appenue-ai.com/insights/ai-gtm-playbook"}]},c={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What does this playbook help identify?",acceptedAnswer:{"@type":"Answer",text:"It highlights the execution bottlenecks that cause AI-enabled GTM efforts to stall, such as unclear ownership, weak signal quality, and handoff friction."}},{"@type":"Question",name:"Does this guide include implementation steps?",acceptedAnswer:{"@type":"Answer",text:"No. It intentionally omits sequencing, prioritisation, tooling, and architecture specifics so operators can surface the right questions before acting."}},{"@type":"Question",name:"Is this playbook only for enterprise teams?",acceptedAnswer:{"@type":"Answer",text:"No. It applies to SMB and midmarket teams that need to align GTM execution before scaling AI-enabled workflows."}},{"@type":"Question",name:"How should teams use the canvas?",acceptedAnswer:{"@type":"Answer",text:"Use it to align teams on where execution stalls today, then map which constraints are most visible in your revenue workflow."}},{"@type":"Question",name:"When is it useful to contact Appenue AI?",acceptedAnswer:{"@type":"Answer",text:"Contact is most useful once your team has identified the friction and is stuck converting the diagnosis into a scoped execution plan."}},{"@type":"Question",name:"Does this playbook replace a GTM strategy?",acceptedAnswer:{"@type":"Answer",text:"No. It is a diagnostic lens on operational readiness, not a replacement for strategic positioning or market planning."}}]};return p.useEffect(()=>{const d=()=>{const u=As.map(f=>document.getElementById(f.id)),m=window.scrollY+150;r(window.scrollY>300);for(let f=u.length-1;f>=0;f-=1){const h=u[f];if(h&&h.offsetTop<=m){t(As[f].id);break}}};return window.addEventListener("scroll",d),()=>window.removeEventListener("scroll",d)},[]),n.jsxs(Xt,{children:[n.jsx("script",{type:"application/ld+json","data-schema":"ai-gtm-article",dangerouslySetInnerHTML:{__html:JSON.stringify(l)}}),n.jsx("script",{type:"application/ld+json","data-schema":"ai-gtm-breadcrumb",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}}),n.jsx("script",{type:"application/ld+json","data-schema":"ai-gtm-faq",dangerouslySetInnerHTML:{__html:JSON.stringify(c)}}),n.jsx("section",{className:"py-12 md:py-20 bg-gradient-to-b from-muted/50 to-background",children:n.jsx("div",{className:"section",children:n.jsxs(T.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[n.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-4",children:"AI GTM Playbook"}),n.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"A diagnostic guide for operators facing agentic checkout, execution latency, and GTM handoff drift."})]})})}),n.jsx(kO,{activeSection:e,isOpen:a,onToggle:()=>s(!a),showFloating:i}),n.jsx("div",{className:"section",children:n.jsx("div",{className:"max-w-4xl mx-auto xl:mr-0 xl:ml-auto xl:pr-8",children:n.jsxs("main",{className:"min-w-0",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"bg-card border border-border rounded-xl p-6 md:p-8 mb-10",children:[n.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Controlled usefulness"}),n.jsx("p",{className:"text-muted-foreground mb-4",children:"This guide helps identify where AI-enabled go-to-market execution stalls: ownership gaps, weak signals, and handoffs that break before revenue is captured."}),n.jsx("p",{className:"text-muted-foreground mb-4",children:"It intentionally omits sequencing, prioritisation, tooling decisions, and implementation detail. The goal is to surface the right constraints without prescribing a full operating model."}),n.jsx("p",{className:"text-muted-foreground",children:"Contact Appenue AI only once your team can name the friction and is stuck turning it into a scoped plan."})]}),n.jsx(mv,{title:"AI GTM Reality Check",subtitle:"Where AI-enabled go-to-market stalls before it produces revenue",sections:[{heading:"Ownership and accountability",bullets:["Decision rights differ by deal size or client type","AI initiatives lack a clear business owner","Sales, marketing, and delivery optimise for different outcomes","Escalation paths exist but are inconsistently used"]},{heading:"Signal quality",bullets:["Lead quality definitions vary across teams","AI outputs are trusted selectively or ignored entirely","Success metrics change between pipeline stages","Feedback loops are slow or informal"]},{heading:"Process handoffs",bullets:["Transitions between teams introduce delays","Context is lost between discovery and delivery","AI experimentation does not translate into repeatable execution","Exceptions gradually become the norm"]},{heading:"Incentives and behaviour",bullets:["Teams optimise for activity rather than outcomes","Short-term wins override long-term learning","Risk avoidance shapes AI usage more than intent","Accountability diffuses once deals move downstream"]}],footerNote:"Illustrative only - prioritisation, sequencing, and trade-offs intentionally omitted.",altText:"AI GTM Reality Check highlighting common points where AI-enabled go-to-market execution breaks down due to unclear ownership, weak signals, and fragmented handoffs.",textAlt:"AI GTM Reality Check. This canvas highlights recurring reasons AI-enabled go-to-market efforts fail to convert experimentation into revenue. It surfaces issues such as unclear decision ownership, inconsistent signal quality, and fragile handoffs between sales, marketing, and delivery. The canvas is diagnostic and illustrative. It does not provide prioritisation, benchmarks, or implementation guidance. Its purpose is to clarify where execution friction exists, not how to resolve it."}),n.jsx("section",{id:"section-1",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 1. When agents buy, systems decide",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"Agentic checkout shifts power away from persuasion and toward execution integrity. When the buyer is an agent, the system determines whether revenue is captured or lost."}),n.jsx("p",{className:"text-foreground mb-4",children:"This creates a new operational obligation: the data, pricing logic, and availability signals must resolve instantly and consistently. GTM now includes infrastru
278cture readiness, not just messaging."})]}),n.jsx(_o,{children:"If your team can close deals with human buyers but fails with automated buyers, the issue is execution integrity rather than messaging depth."})]})}),n.jsx("section",{id:"section-2",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 2. Failure signals operators see",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"Operators report patterns that repeat across industries: products render correctly, but checkout fails on edge cases. Shipping quotes lag behind inventory changes. Policy ambiguity triggers avoidable returns."}),n.jsx("p",{className:"text-foreground mb-4",children:"Example: a marketplace can show the right SKU, but the agent abandons the purchase when tax and availability responses disagree across systems. The issue is not UX; it is system reconciliation."})]}),n.jsx(Vu,{children:"Treating these failures as isolated bugs instead of signals of systemic misalignment delays the real fix."})]})}),n.jsx("section",{id:"section-3",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 3. What changed in 2026",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"2025 was about AI influencing discovery. In 2026, agents execute purchases. That shift changes the definition of GTM success."}),n.jsx("p",{className:"text-foreground mb-4",children:"Latency beats persuasion, accuracy beats copy, and APIs beat pages. Your GTM engine is now judged by its operational reliability."})]}),n.jsx(_o,{children:"If your team does not own latency budgets and data refresh cycles, you are now exposed even when your positioning is strong."})]})}),n.jsx("section",{id:"section-4",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 4. Execution readiness gaps",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"Discovery and execution are often owned by different teams. The transition between them is where accountability fades."}),n.jsx("p",{className:"text-foreground mb-4",children:"Example: marketing qualifies an account, sales escalates it, and delivery assumes the data will be accurate. When the agent relies on stale fields, nobody owns the correction loop."})]}),n.jsx(Vu,{children:'Assuming "someone else" validates the data contract leaves the agent with conflicting signals.'})]})}),n.jsx("section",{id:"section-5",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 5. Data contracts and liability",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"Feeds and product data are no longer passive. They behave like contracts: once published, they become an operational liability if they are wrong."}),n.jsx("p",{className:"text-foreground mb-4",children:"This is why agents magnify errors. The issue is not incorrect copy; it is the absence of a formal owner for data fidelity."})]}),n.jsx(_o,{children:"Assign one owner for the data contract before you scale agentic checkout. The alternative is constant firefighting across teams."})]})}),n.jsx("section",{id:"section-6",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 6. Timeouts and decision speed",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"Agents do not wait. When systems cannot resolve pricing, shipping, or policy clarity fast enough, the agent times out and moves on."}),n.jsx("p",{className:"text-foreground mb-4",children:"Example: a quote engine that relies on manual approval might perform fine for human buyers but fails with automated buyers. The gap is speed, not conversion messaging."})]}),n.jsx(Vu,{children:"Measuring the wrong latency (human response time instead of system response time) obscures the actual bottleneck."})]})}),n.jsx("section",{id:"section-7",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 7. Operating system for GTM",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"Execution readiness depends on clear owners, explicit escalation paths, and shared definitions of success. Without these, AI-enabled GTM becomes a set of disconnected experiments."}),n.jsx("p",{className:"text-foreground mb-4",children:"The operating system is not a toolset. It is an agreement about how decisions are made and how they surface in the data the agent sees."})]}),n.jsx(_o,{children:"Write down the handoff rule, even if it feels obvious. The act of writing reveals misalignment."})]})}),n.jsx("section",{id:"section-8",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 8. Next steps",alignment:"left"}),n.jsx("div",{className:"prose prose-lg max-w-none",children:n.jsx("p",{className:"text-foreground mb-4",children:"Use the canvas first. Map where ownership breaks, where signal quality decays, and where handoffs create latency."})}),n.jsx("div",{className:"flex flex-wrap gap-4 mt-6",children:n.jsx(B,{asChild:!0,className:"bg-white text-appblue border border-appblue hover:bg-gray-50",children:n.jsx(Ge,{to:"/contact",children:"Contact us"})})})]})})]})})})]})},ks=[{id:"section-1",title:"1. Growth compounding starts with alignment"},{id:"section-2",title:"2. Decision latency is the hidden brake"},{id:"section-3",title:"3. Governance gaps create drift"},{id:"section-4",title:"4. Adoption inconsistency"},{id:"section-5",title:"5. Measurement ambiguity"},{id:"section-6",title:"6. Execution trade-offs"},{id:"section-7",title:"7. Controlled rollout posture"},{id:"section-8",title:"8. Next steps"}],Eo=({children:e})=>n.jsxs(T.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4},className:"bg-primary/5 border border-primary/20 rounded-lg p-4 my-6",children:[n.jsx("p",{className:"text-sm font-semibold text-primary mb-1",children:"What this means for SMBs"}),n.jsx("p",{className:"text-sm text-foreground",children:e})]}),Hu=({children:e})=>n.jsx(T.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4},className:"bg-destructive/5 border border-destructive/20 rounded-lg p-4 my-6",children:n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx(Wi,{className:"w-4 h-4 text-destructive flex-shrink-0 mt-0.5"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-semibold text-destructive mb-1",children:"Common mistake"}),n.jsx("p",{className:"text-sm text-foreground",children:e})]})]})}),_O=({activeSection:e,isOpen:t,onToggle:a,showFloating:s})=>{const i=ks.findIndex(l=>l.id===e),r=(i+1)/ks.length*100;return n.jsxs(n.Fragment,{children:[n.jsx("button",{onClick:a,className:"xl:hidden fixed bottom-4 right-4 z-50 bg-primary text-primary-foreground p-3 rounded-full shadow-lg","aria-label":t?"Close table of contents":"Open table of contents",children:t?n.jsx(dr,{className:"w-5 h-5"}):n.jsx(fv,{className:"w-5 h-5"})}),t&&n.jsx("div",{className:"xl:hidden fixed inset-0 bg-background/80 backdrop-blur-sm z-40",onClick:a}),n.jsxs("nav",{className:`
279          xl:hidden fixed top-0
280          ${t?"right-0":"-right-full"}
281          w-72 h-screen
282          bg-card
283          border-l border-border
284          p-6
285          z-50
286          transition-all duration-300 ease-in-out
287          overflow-y-auto
288        `,"aria-label":"Table of contents",children:[n.jsx("p",{className:"text-sm font-semibold text-foreground mb-4 uppercase tracking-wider",children:"Contents"}),n.jsx("ul",{className:"space-y-2",children:ks.map(l=>n.jsx("li",{children:n.jsx("a",{href:`#${l.id}`,onClick:o=>{var c;o.preventDefault(),(c=document.getElementById(l.id))==null||c.scrollIntoView({behavior:"smooth"}),a()},className:`
289                  block text-sm py-1.5 px-3 rounded-md transition-colors
290                  ${e===l.id?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:text-foreground hover:bg-muted"}
291                `,children:l.title})},l.id))})]}),n.jsx(T.nav,{initial:{opacity:0,x:-20}
291,animate:{opacity:s?1:0,x:s?0:-20,pointerEvents:s?"auto":"none"},transition:{duration:.3},className:"hidden xl:block fixed top-24 left-[max(1rem,calc(50%-42rem))] w-56 z-40","aria-label":"Table of contents",children:n.jsxs("div",{className:"bg-card/95 backdrop-blur-sm border border-border rounded-lg shadow-lg p-4",children:[n.jsx("p",{className:"text-xs font-semibold text-foreground mb-3 uppercase tracking-wider",children:"Contents"}),n.jsxs("div",{className:"flex gap-3",children:[n.jsxs("div",{className:"relative w-1 flex-shrink-0",children:[n.jsx("div",{className:"absolute inset-0 bg-muted rounded-full"}),n.jsx(T.div,{className:"absolute top-0 left-0 w-full bg-primary rounded-full",initial:{height:0},animate:{height:`${r}%`},transition:{duration:.3,ease:"easeOut"}})]}),n.jsx("ul",{className:"space-y-1 flex-1",children:ks.map(l=>n.jsxs("li",{className:"relative",children:[n.jsx("a",{href:`#${l.id}`,onClick:o=>{var c;o.preventDefault(),(c=document.getElementById(l.id))==null||c.scrollIntoView({behavior:"smooth"})},className:`
292                      block text-xs py-1 px-2 rounded transition-all duration-200
293                      ${e===l.id?"bg-primary/10 text-primary font-medium scale-[1.02]":"text-muted-foreground hover:text-foreground hover:bg-muted/50"}
294                    `,children:l.title}),e===l.id&&n.jsx(T.div,{layoutId:"activeIndicator",className:"absolute -left-3.5 top-1/2 -translate-y-1/2 w-2 h-2 bg-primary rounded-full shadow-sm",transition:{type:"spring",stiffness:300,damping:30}})]},l.id))})]}),n.jsxs("div",{className:"mt-4 pt-3 border-t border-border",children:[n.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-wide",children:"Reading"}),n.jsxs("p",{className:"text-xs font-medium text-foreground truncate mt-0.5",children:["Section ",i+1," of ",ks.length]})]})]})})]})},EO=()=>{const[e,t]=p.useState("section-1"),[a,s]=p.useState(!1),[i,r]=p.useState(!1),l={"@context":"https://schema.org","@type":"Article","@id":"https://www.appenue-ai.com/insights/ai-driven-growth-guide#article",headline:"AI Driven Growth Guide",description:"A practical guide to aligning data, workflows, and teams so AI-driven growth compounds instead of stalls.",datePublished:"2026-01-26",dateModified:"2026-01-26",author:{"@type":"Organization",name:"Appenue AI",url:"https://www.appenue-ai.com"},publisher:{"@type":"Organization",name:"Appenue AI",url:"https://www.appenue-ai.com"},mainEntityOfPage:{"@type":"WebPage","@id":"https://www.appenue-ai.com/insights/ai-driven-growth-guide"},isPartOf:{"@type":"CollectionPage","@id":"https://www.appenue-ai.com/insights",name:"Insights"},image:"https://www.appenue-ai.com/images/hero-placeholder.webp"},o={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://www.appenue-ai.com/"},{"@type":"ListItem",position:2,name:"Insights",item:"https://www.appenue-ai.com/insights"},{"@type":"ListItem",position:3,name:"AI Driven Growth Guide",item:"https://www.appenue-ai.com/insights/ai-driven-growth-guide"}]},c={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What does this guide help clarify?",acceptedAnswer:{"@type":"Answer",text:"It clarifies the organisational frictions that slow AI-driven growth, including decision latency, governance drift, and inconsistent adoption."}},{"@type":"Question",name:"Does the guide include prioritisation or benchmarks?",acceptedAnswer:{"@type":"Answer",text:"No. It intentionally omits scoring, sequencing, and implementation detail to keep the focus on diagnosing constraints."}},{"@type":"Question",name:"Is the canvas meant for executives or operators?",acceptedAnswer:{"@type":"Answer",text:"Both. The canvas is designed for shared alignment across leadership and execution teams without prescribing a roadmap."}},{"@type":"Question",name:"When should we involve external support?",acceptedAnswer:{"@type":"Answer",text:"External support is most useful once the frictions are visible and the team needs help converting them into a scoped execution plan."}},{"@type":"Question",name:"Will this guide replace a growth strategy?",acceptedA
294nswer:{"@type":"Answer",text:"No. It is an operational lens that complements strategy but does not replace market positioning or product planning."}},{"@type":"Question",name:"How should SMB teams use the guide?",acceptedAnswer:{"@type":"Answer",text:"Use it to surface where decisions slow down, where governance is unclear, and where adoption is uneven before investing in new tooling."}}]};return p.useEffect(()=>{const d=()=>{const u=ks.map(f=>document.getElementById(f.id)),m=window.scrollY+150;r(window.scrollY>300);for(let f=u.length-1;f>=0;f-=1){const h=u[f];if(h&&h.offsetTop<=m){t(ks[f].id);break}}};return window.addEventListener("scroll",d),()=>window.removeEventListener("scroll",d)},[]),n.jsxs(Xt,{children:[n.jsx("script",{type:"application/ld+json","data-schema":"ai-growth-article",dangerouslySetInnerHTML:{__html:JSON.stringify(l)}}),n.jsx("script",{type:"application/ld+json","data-schema":"ai-growth-breadcrumb",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}}),n.jsx("script",{type:"application/ld+json","data-schema":"ai-growth-faq",dangerouslySetInnerHTML:{__html:JSON.stringify(c)}}),n.jsx("section",{className:"py-12 md:py-20 bg-gradient-to-b from-muted/50 to-background",children:n.jsx("div",{className:"section",children:n.jsxs(T.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[n.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-4",children:"AI Driven Growth Guide"}),n.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"A guide for aligning decision-making, governance, and execution so AI-enabled growth compounds over time."})]})})}),n.jsx(_O,{activeSection:e,isOpen:a,onToggle:()=>s(!a),showFloating:i}),n.jsx("div",{className:"section",children:n.jsx("div",{className:"max-w-4xl mx-auto xl:mr-0 xl:ml-auto xl:pr-8",children:n.jsxs("main",{className:"min-w-0",children:[n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"bg-card border border-border rounded-xl p-6 md:p-8 mb-10",children:[n.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Controlled usefulness"}),n.jsx("p",{className:"text-muted-foreground mb-4",children:"This guide helps identify the organisational frictions that limit AI-driven growth: slow decisions, fragmented governance, uneven adoption, and unclear measurement."}),n.jsx("p",{className:"text-muted-foreground mb-4",children:"It intentionally omits prioritisation logic, sequencing, benchmarks, and tooling. The goal is to make constraints visible without prescribing a playbook."}),n.jsx("p",{className:"text-muted-foreground",children:"Contact Appenue AI only when your team has mapped the frictions and needs help moving from diagnosis to execution."})]}),n.jsx(mv,{title:"AI Growth Friction Map",subtitle:"The constraints that stop AI from compounding growth",sections:[{heading:"Decision latency",bullets:["Decisions depend on who is present","Speed varies by team or initiative","Reversals are common after partial execution","Authority is implicit rather than explicit"]},{heading:"Governance and alignment",bullets:["AI initiatives span multiple owners","Policies exist but are unevenly applied","Risk tolerance differs across leadership","Accountability weakens beyond pilots"]},{heading:"Adoption consistency",bullets:["Usage varies widely by role","Informal workarounds replace formal processes","Learning is individual rather than institutional","Success stories do not propagate reliably"]},{heading:"Measurement ambiguity",bullets:["Outcomes are described differently by teams","Productivity gains are assumed rather than measured","AI impact is discussed qualitatively","Trade-offs remain implicit"]}],footerNote:"Illustrative only - synthesis, scoring, and next steps intentionally omitted.",altText:"AI Growth Friction Map showing organisational constraints such as decision latency, fragmented governance, and inconsistent adoption that limit AI-driven growth.",textAlt:"AI Growth Friction Map. This canvas illustrates organisational frictions that limit AI from compounding growth. It highlights patterns such as slow decision-making, fragmented governance, uneven adoption, and unclear measurement. Multiple frictions may exist simultaneously. The map does not score maturity or recommend actions. Its purpose is to make constraints visible, not to resolve them."}),n.jsx("section",{id:"section-1",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 1. Growth compounding starts with alignment",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"AI-driven growth compounds when teams agree on what matters and how decisions are made. Without that alignment, AI adoption becomes a series of local optimisations."}),n.jsx("p",{className:"text-foreground mb-4",children:"Growth stalls when every team defines success differently, even if the tools themselves are capable."})]}),n.jsx(Eo,{children:"Alignment does not require a new tool. It requires shared definitions of outcomes and who approves changes when AI touches revenue-critical workflows."})]})}),n.jsx("section",{id:"section-2",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 2. Decision latency is the hidden brake",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"Decision latency slows growth even when teams are motivated. The lag between insight and action erodes momentum."}),n.jsx("p",{className:"text-foreground mb-4",children:"Example: a team can identify a pipeline issue, but the fix waits for quarterly alignment. AI can surface the problem faster, but the decision system still moves at the old speed."})]}),n.jsx(Hu,{children:"Treating decision latency as a coordination issue instead of a structural constraint keeps the slowdown hidden."})]})}),n.jsx("section",{id:"section-3",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 3. Governance gaps create drift",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"When AI 
294initiatives span multiple owners, governance determines whether the work compounds or fragments. Drift happens when policies are vague or unevenly applied."}),n.jsx("p",{className:"text-foreground mb-4",children:"Growth cannot compound if teams interpret risk tolerance differently or if accountability weakens after pilots."})]}),n.jsx(Eo,{children:"Governance does not need to be heavy. It needs to be explicit about who can approve AI-driven changes."})]})}),n.jsx("section",{id:"section-4",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 4. Adoption inconsistency",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"Adoption inconsistency creates a false sense of progress. Some roles become power users while others bypass the tools entirely."}),n.jsx("p",{className:"text-foreground mb-4",children:"Example: sales uses AI for prospecting, but delivery sticks to manual checklists. The end-to-end workflow still breaks under scale."})]}),n.jsx(Hu,{children:"Assuming adoption will spread organically ignores the reality that people default to familiar tools."})]})}),n.jsx("section",{id:"section-5",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 5. Measurement ambiguity",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"When outcomes are described differently by each team, AI impact becomes a story rather than a measurable shift."}),n.jsx("p",{className:"text-foreground mb-4",children:"This ambiguity turns trade-offs invisible and prevents teams from deciding whether AI is helping or simply adding noise."})]}),n.jsx(Eo,{children:"Clarify which outcomes matter most before launching new AI-enabled workflows, even if the measurement is imperfect at first."})]})}),n.jsx("section",{id:"section-6",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 6. Execution trade-offs",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"Growth depends on trade-offs between speed, risk, and consistency. AI surfaces those tensions but does not resolve them."}),n.jsx("p",{className:"text-foreground mb-4",children:"Example: a team can accelerate lead scoring, but if finance lacks visibility into assumptions, trust erodes and adoption slows."})]}),n.jsx(Hu,{children:"Optimising one team without making the trade-offs explicit shifts friction downstream."})]})}),n.jsx("section",{id:"section-7",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 7. Controlled rollout posture",alignment:"left"}),n.jsxs("div",{className:"prose prose-lg max-w-none",children:[n.jsx("p",{className:"text-foreground mb-4",children:"A controlled rollout posture keeps AI grounded. It emphasises clarity on who decides, what is measured, and where escalation happens."}),n.jsx("p",{className:"text-foreground mb-4",children:"The point is not to slow down, but to prevent growth from fracturing into disconnected experiments."})]}),n.jsx(Eo,{children:"Decide which workflow is protected first, then let AI expand outward. Compounding comes from control, not from speed alone."}),n.jsx("div",{className:"flex flex-wrap gap-4 mt-6",children:n.jsx(B,{asChild:!0,className:"bg-white text-appblue border border-appblue hover:bg-gray-50",children:n.jsx(Ge,{to:"/packages",children:"Packages"})})})]})}),n.jsx("section",{id:"section-8",className:"py-12 md:py-16 scroll-mt-24",children:n.jsxs(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[n.jsx(I,{title:"Section 8. Next steps",alignment:"left"}),n.jsx("div",{className:"prose prose-lg max-w-none",children:n.jsx("p",{className:"text-foreground mb-4",children:"Use the canvas to align leadership, growth, and operations on the frictions that are slowing AI-driven growth."})}),n.jsx("div",{className:"flex flex-wrap gap-4 mt-6",children:n.jsx(B,{asChild:!0,className:"bg-white text-appblue border border-appblue hover:bg-gray-50",children:n.jsx(Ge,{to:"/packages",children:"View packages"})})})]})})]})})})]})},CO=()=>(p.useEffect(()=>{window.scrollTo(0,0)},[]),n.jsx(Xt,{children:n.jsx("article",{className:"py-16",children:n.jsxs("div",{className:"section max-w-4xl mx-auto",children:[n.jsx("nav",{className:"mb-6","aria-label":"Breadcrumb",children:n.jsxs("ol",{className:"flex items-center gap-2 text-sm text-gray-600",children:[n.jsx("li",{children:n.jsx(Ge,{to:"/",className:"hover:text-appblue",children:"Home"})}),n.jsx("li",{children:n.jsx("span",{className:"text-gray-600",children:"/"})}),n.jsx("li",{children:n.jsx(Ge,{to:"/insights",className:"hover:text-appblue",children:"Insights"})}),n.jsx("li",{children:n.jsx("span",{className:"text-gray-600",children:"/"})}),n.jsx("li",{className:"text-gray-900 font-medium",children:"AI-led Marketing"})]})}),n.jsxs(T.header,{initial:{opacity:0,y:20}
294,animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:[n.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-6",children:"AI-led Marketing: From Thin Air to Deliverables"}),n.jsx("p",{className:"text-xl text-gray-600 leading-relaxed",children:"A short guide for operators, founders, and marketing leads who need credible copy and visuals quickly without slipping into hype or noise."})]}),n.jsxs("div",{className:"prose prose-lg max-w-none prose-headings:mt-10 prose-headings:mb-4 prose-p:my-4 prose-ul:my-4 prose-li:my-2",children:[n.jsx(I,{title:"Who this is for",alignment:"left"}),n.jsx("p",{children:"This workflow is designed for teams that have to move fast but still need evidence, consistency, and approval-ready outputs. It focuses on getting to shippable assets without improvising your way into drift."}),n.jsx(I,{title:"Marketing pipeline",alignment:"left"}),n.jsx("div",{className:"not-prose my-6",children:n.jsx("div",{className:"insights-step-map",children:n.jsx("div",{className:"insights-step-map-row",children:["Intake","Sources","Draft","Review","Assets","Ship"].map(e=>n.jsx("div",{className:"insights-step-map-card rounded-full border border-gray-200 bg-gray-50 px-3 py-2 text-center text-sm font-medium text-gray-700",children:e},e))})})}),n.jsx(I,{title:"Workflow from prompt to production",alignment:"left"}),n.jsx("p",{children:"Start with a clear intake: what is shipping, who signs off, and what outcomes you care about. Translate that into a prompt brief, generate drafts, review for accuracy, then turn approved drafts into production assets. The measurement layer should be defined before you publish, not after."}),n.jsx(I,{title:"Why markdown uploads matter",alignment:"left"}),n.jsx("p",{children:"Markdown files keep a single source of truth for claims, narrative, and constraints. They preserve version history, reduce prompt drift, and give teams a reusable backbone for future campaigns."}),n.jsx(I,{title:"Agentic tools, safely",alignment:"left"}),n.jsx("p",{children:"Use guardrails: checklists for claims, explicit “no hallucinated metrics” rules, and required human review before publishing. The goal is speed with control, not speed without accountability."}),n.jsx(I,{title:"Prompt stack",alignment:"left"}),n.jsx("div",{className:"not-prose my-6 space-y-4",children:[{title:"Context",description:"State the audience, market reality, and what must remain true."},{title:"Constraints",description:"Define what cannot be claimed, promised, or implied."},{title:"Examples",description:"Provide 1-2 samples of approved tone or structure."},{title:"Output format",description:"Specify the deliverable type, length, and CTA placement."}].map(e=>n.jsxs("div",{className:"glass-card p-4",children:[n.jsx("h4",{className:"text-lg font-semibold text-gray-900 mb-1",children:e.title}),n.jsx("p",{className:"text-sm text-gray-600",children:e.description})]},e.title))}),n.jsx(I,{title:"Prompt pack",alignment:"left"}),n.jsxs("ul",{children:[n.jsx("li",{children:"LinkedIn copy: “Draft a post for [audience] announcing [offer], using [voice], 140-180 words.”"}),n.jsx("li",{children:"Landing page hero: “Generate a hero headline + subhead for [offer] with a single CTA.”"}),n.jsx("li",{children:"Visual spec: “Describe a simple visual for [message] with color guidance and layout notes.”"}),n.jsx("li",{children:"Competitive angle: “Summarise how we differ from [competitor] in 3 bullets.”"}),n.jsx("li",{children:"CTA variants: “Write 5 CTA options that avoid urgency language.”"})]}),n.jsx(I,{title:"Common failure modes",alignment:"left"}),n.jsxs("ul",{children:[n.jsx("li",{children:"Tool sprawl that fragments the message."}),n.jsx("li",{children:"Too many CTAs that dilute the decision."}),n.jsx("li",{children:"Inconsistent voice across channels and assets."})]}),n.jsx(I,{title:"When to contact us",alignment:"left"}),n.jsx("p",{children:"Reach out when the workflow stalls at review, governance, or measurement. That’s where most teams lose momentum."})]}),n.jsx("div",{className:"mt-10 flex",children:n.jsx(B,{asChild:!0,className:"bg-appblue hover:bg-appblue/90 !text-white",children:n.jsx(Ge,{to:"/contact",children:"Contact us"})})})]})})})),OO=()=>(p.useEffect(()=>{window.scrollTo(0,0)},[]),n.jsx(Xt,{children:n.jsx("article",{className:"py-16",children:n.jsxs("div",{className:"section max-w-4xl mx-auto",children:[n.jsx("nav",{className:"mb-6","aria-label":"Breadcrumb",children:n.jsxs("ol",{className:"flex items-center gap-2 text-sm text-gray-600",children:[n.jsx("li",{children:n.jsx(Ge,{to:"/",className:"hover:text-appblue",children:"Home"})}),n.jsx("li",{children:n.jsx("span",{className:"text-gray-600",children:"/"})}),n.jsx("li",{children:n.jsx(Ge,{to:"/insights",className:"hover:text-appblue",children:"Insights"})}),n.jsx("li",{children:n.jsx("span",{className:"text-gray-600",children:"/"})}),n.jsx("li",{className:"text-gray-900 font-medium",children:"Market Research to Prototype in a Week"})]})}),n.jsxs(T.header,{initial:{opacity:0,y:20}
294,animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:[n.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-6",children:"Market Research to Prototype in a Week - The AI Way"}),n.jsx("p",{className:"text-xl text-gray-600 leading-relaxed",children:"A grounded, anonymised account of how a client compressed research, positioning, and a prototype plan into seven working days without sacrificing operational rigor."})]}),n.jsxs("div",{className:"prose prose-lg max-w-none prose-headings:mt-10 prose-headings:mb-4 prose-p:my-4 prose-ul:my-4 prose-li:my-2",children:[n.jsx(I,{title:"Problem",alignment:"left"}),n.jsx("p",{children:"A client needed to make a new operating-layer concept tangible quickly. The challenge was not a lack of ideas; it was the time required to convert messy inputs into decision-ready artefacts."}),n.jsx(I,{title:"Constraints",alignment:"left"}),n.jsx("p",{children:"The brief required legacy-friendly language, explainable logic, and a short runway. The work had to reduce decision latency without promising a full platform rebuild."}),n.jsx(I,{title:"Approach",alignment:"left"}),n.jsx("p",{children:"We ran a one-week sprint that blended market research, operational framing, and early prototype logic. The goal was to test whether the concept could be positioned as operational infrastructure rather than hype."}),n.jsx(I,{title:"Week sprint map",alignment:"left"}),n.jsx("div",{className:"not-prose my-6",children:n.jsx("div",{className:"insights-step-map",children:n.jsx("div",{className:"insights-step-map-row",children:[{day:"Day 1",items:["Intake","Scope boundaries"]},{day:"Day 2",items:["Research scan","Signal capture"]},{day:"Day 3",items:["ICP framing","Pain patterns"]},{day:"Day 4",items:["Operating model","Requirements"]},{day:"Day 5",items:["Prototype outline","Governance"]},{day:"Day 6",items:["Narrative","Review"]},{day:"Day 7",items:["Delivery","Next steps"]}].map(e=>n.jsxs("div",{className:"insights-step-map-card rounded-xl border border-gray-200 bg-gray-50 p-4 min-h-[140px] flex flex-col",children:[n.jsx("p",{className:"text-sm font-semibold text-gray-900 mb-2",children:e.day}),n.jsx("ul",{className:"insights-step-map-list text-xs text-gray-600",children:e.items.map(t=>n.jsx("li",{children:t},t))})]},e.day))})})}),n.jsx(I,{title:"Timeline (7 days)",alignment:"left"}),n.jsx("div",{className:"not-prose my-6",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-sm border border-gray-200",children:[n.jsx("thead",{className:"bg-gray-50",children:n.jsxs("tr",{children:[n.jsx("th",{className:"text-left px-4 py-2 font-semibold text-gray-900",children:"Day"}),n.jsx("th",{className:"text-left px-4 py-2 font-semibold text-gray-900",children:"Focus"})]})}),n.jsx("tbody",{children:[["Day 1","Scope the operating problem and define the decision bottleneck."],["Day 2","Review market signals and gather real-world constraints."],["Day 3","Draft the ICP and map the recurring pain patterns."],["Day 4","Translate needs into requirements and governance assumptions."],["Day 5","Outline the prototype logic and success measures."],["Day 6","Refine the narrative and stress-test assumptions."],["Day 7","Deliver artefacts and align on next decisions."]].map(([e,t])=>n.jsxs("tr",{className:"border-t border-gray-200",children:[n.jsx("td",{className:"px-4 py-2 font-medium text-gray-900",children:e}),n.jsx("td",{className:"px-4 py-2 text-gray-600",children:t})]},e))})]})})}),n.jsx(I,{title:"Deliverables",alignment:"left"}),n.jsxs("ul",{children:[n.jsx("li",{children:"Problem framing and positioning narrative."}),n.jsx("li",{children:"ICP definition with buyer triggers and disqualifiers."}),n.jsx("li",{children:"Requirements outline with functional and n
294on-functional guardrails."}),n.jsx("li",{children:"Prototype scope and governance assumptions."}),n.jsx("li",{children:"Decision-grade summary for leadership review."})]}),n.jsx(I,{title:"Decision-grade artefacts",alignment:"left"}),n.jsx("p",{children:"Stakeholders needed a clear operating story, a bounded prototype scope, and proof that the approach could reduce decision latency without creating new system risk."}),n.jsx(I,{title:"System view",alignment:"left"}),n.jsx("div",{className:"not-prose my-6 space-y-3",children:[{title:"Inputs",items:"Market signals · assumptions"},{title:"Analysis",items:"Synthesis · scoring · scenarios"},{title:"Prototype",items:"Prototype scope · investor narrative"}].map(e=>n.jsxs("div",{className:"rounded-xl border border-gray-200 bg-gray-50 p-4",children:[n.jsx("p",{className:"text-sm font-semibold text-gray-900 mb-1",children:e.title}),n.jsx("p",{className:"text-sm text-gray-600",children:e.items})]},e.title))}),n.jsx(I,{title:"Outcome",alignment:"left"}),n.jsx("p",{children:"The client left with a coherent operating concept, a realistic prototype boundary, and the ability to make a go/no-go decision without waiting for a full product build."}),n.jsx(I,{title:"What we would do differently next time",alignment:"left"}),n.jsxs("ul",{children:[n.jsx("li",{children:"Schedule stakeholder review checkpoints earlier in the week."}),n.jsx("li",{children:"Define escalation ownership before prototype scope is drafted."}),n.jsx("li",{children:"Capture more frontline workflow examples to reduce assumptions."})]})]}),n.jsx("div",{className:"mt-10 flex",children:n.jsx(B,{asChild:!0,className:"bg-appblue hover:bg-appblue/90 !text-white",children:n.jsx(Ge,{to:"/contact",children:"Contact us"})})})]})})})),RO="/__l5e/assets-v1/7e04a6d6-fec7-4e6f-8fbc-79220d233107/when-ai-loses-the-human-layer-applied-analysis.pdf",IO={url:RO},Hx="/images/insights/when-ai-loses-the-human-layer-hero-4k.png",$x=IO.url,MO="when-ai-loses-the-human-layer-applied-analysis.pdf",$u="https://www.appenue-ai.com/insights/when-ai-loses-the-human-layer",Gx="/contact?source=human-layer-analysis",Wx=[{q:"What is the human layer in an AI workflow?",a:"The human layer is the contextual knowledge, judgement, exception handling, relationships, and accountability surrounding a workflow. Much of it may never appear in the formal system or recorded data available to the AI."},{q:"Why can removing human judgement make AI less useful?",a:"AI acts on the information it can access. When important context remains outside the record, removing human review can produce consistent outputs that overlook exceptions, weaken trust, or make the wrong decision for the situation."},{q:"What should a business define before allowing AI to act?",a:"The business should define the real workflow, available data, permitted AI actions, human review points, escalation triggers, accountable owner, failure response, and metric used to prove whether the workflow improved."},{q:"Where should humans remain in the loop?",a:"Human intervention should remain where decisions require context, carry material risk, affect vulnerable people, involve exceptions, or cannot be safely reversed. The exact boundary should be designed around the workflow rather than applied as a generic approval step."},{q:"How can Appenue AI help with an existing AI workflow?",a:"Appenue AI can pressure-test one workflow by mapping what actually happens, identifying what the AI can and cannot see, defining machine authority and human controls, assigning ownership, and establishing the evidence required before scaling."}],Fx=[{label:"Cyberspace Administration of China",href:"https://www.cac.gov.cn/2025-12/27/c_1768571207311996.htm"},{label:"The Economist - China wants to end AI romances",href:"https://www.economist.com/china/2026/07/16/china-wants-to-end-ai-romances"},{label:"Reuters - China drafts rules to regulate AI with human-like interaction",href:"https://www.reuters.com/world/asia-pacific/china-issues-drafts-rules-regulate-ai-with-human-like-interaction-2025-12-27/"},{label:"Carnegie Endowment for International Peace - China and AI companions",href:"https://carnegieendowment.org/research/2026/02/china-is-worried-about-ai-companions-heres-what-its-doing-about-them"}],DO=()=>{var t;if(typeof window>"u")return;const e=window;(t=e.gtag)==null||t.call(e,"event","insight_pdf_download",{document:"when-ai-loses-the-human-layer",content_type:"applied_analysis"})},Yx=()=>{var t;if(typeof window>"u")return;const e=window;(t=e.gtag)==null||t.call(e,"event","insight_contact_click",{document:"when-ai-loses-the-human-layer",cta:"discuss_one_workflow"})},LO=()=>{p.useEffect(()=>{if(typeof document>"u")return;const s=document.querySelector('link[rel="canonical"]')||document.createElement("link");s.setAttribute("rel","canonical"),s.setAttribute("href",$u),s.parentNode||document.head.appendChild(s)},[]);const e={"@context":"https://schema.org","@type":"Article",headline:"When AI Loses the Human Layer",description:"A practical analysis of human oversight, workflow ownership, and AI decision-making, using China's AI-companion rules as an extreme reference point.",author:{"@type":"Organization",name:"Appenue AI"},publisher:{"@type":"Organization",name:"Appenue AI",logo:{"@type":"ImageObject",url:"https://www.appenue-ai.com/favicon.svg"}},datePublished:"2026-07-20",dateModified:"2026-07-20",mainEntityOfPage:$u,image:`https://www.appenue-ai.com${Hx}`,articleSection:"Applied Analysis",inLanguage:"en-GB",keywords:["human oversight in AI","AI workflow governance","AI decision-making accountability","human-in-the-loop AI","AI automation risk","AI agent governance","AI workflow ownership","AI operating model","business chatbot governance","legacy workflow AI integration"].join(", "),about:[{"@type":"Thing",name:"Human oversight in AI"},{"@type":"Thing",name:"AI workflow governance"},{"@type":"Thing",name:"AI accountability"},{"@type":"Thing",name:"AI automation risk"},{"@type":"Thing",name:"Anthropomorphic AI regulation"}],citation:Fx.map(s=>({"@type":"CreativeWork",name:s.label,url:s.href})),associatedMedia:{"@type":"MediaObject",contentUrl:$x,encodingFormat:"application/pdf",name:"When AI Loses the Human Layer - Applied Analysis (PDF)"},isPartOf:{"@type":"CollectionPage",name:"Appenue AI Insights",url:"https://www.appenue-ai.com/insights"}},t={"@context":"https://schema.org","@type":"FAQPage",mainEntity:Wx.map(s=>
294({"@type":"Question",name:s.q,acceptedAnswer:{"@type":"Answer",text:s.a}}))},a={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://www.appenue-ai.com/"},{"@type":"ListItem",position:2,name:"Insights",item:"https://www.appenue-ai.com/insights"},{"@type":"ListItem",position:3,name:"When AI Loses the Human Layer",item:$u}]};return n.jsxs(tN,{title:"When AI Loses the Human Layer",subtitle:"What China\\u2019s AI-companion rules reveal about human oversight, workflow ownership, and machine-only decision-making.",author:"Appenue AI",publishDate:"2026-07-20",breadcrumbTitle:"When AI Loses the Human Layer",children:[n.jsx("script",{type:"application/ld+json","data-schema":"human-layer-article",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}}),n.jsx("script",{type:"application/ld+json","data-schema":"human-layer-faq",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}}),n.jsx("script",{type:"application/ld+json","data-schema":"human-layer-breadcrumb",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}}),n.jsx(T.figure,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5},className:"my-8",children:n.jsx("img",{src:Hx,alt:"Editorial illustration showing a human separated from a blue AI figure by fragmented workflow data, representing lost human oversight in AI decision-making.",title:"Human oversight and accountability in AI workflows",width:3840,height:2160,fetchPriority:"high",loading:"eager",decoding:"async",className:"w-full h-auto rounded-lg border border-border"})}),n.jsxs("div",{className:"space-y-6 text-gray-700 leading-relaxed",children:[n.jsx("p",{className:"text-lg",children:"AI can make a process faster while quietly making the business less aware of what is happening inside it."}),n.jsx("p",{children:"China’s approach to AI-companion regulation provides an extreme example of what happens when systems build engagement and influence before providers clearly define their limits, human escalation points, and responsibility for the consequences."}),n.jsx("p",{children:"The same gap appears in ordinary AI workflows. A machine sees recorded data, but may miss the workarounds, customer history, relationships, exceptions, and human judgement keeping the operation moving. Remove that layer too early and automation can become more consistent, but less useful, less trusted, and harder to govern."}),n.jsx("p",{children:"This applied analysis asks practical questions: What can the AI see? What may it infer, recommend, or execute? Where is human oversight required? Who owns the workflow and the resulting decision?"}),n.jsx("p",{children:"Appenue AI helps businesses answer those questions around one real workflow before scaling further. If your team is deploying AI agents, chatbots, or workflow automation without clear ownership and human review points, this analysis will help identify the gap and determine what to fix next."})]}),n.jsxs(T.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"mt-12 p-8 bg-gray-50 rounded-xl border border-gray-200",children:[n.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Download the applied analysis"}),n.jsx("p",{className:"text-gray-700 mb-6",children:"A practical analysis of what AI may see, infer, recommend, or execute - and where human judgement must remain visible."}),n.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[n.jsx(B,{asChild:!0,size:"lg",className:"bg-appblue hover:bg-appblue/90 !text-white",children:n.jsxs("a",{href:$x,target:"_blank",rel:"noopener noreferrer",download:MO,onClick:DO,className:"flex items-center gap-2",children:[n.jsx(km,{className:"w-5 h-5"}),"Download PDF"]})}),n.jsxs(Ge,{to:Gx,onClick:Yx,className:"inline-flex items-center gap-2 text-sm font-medium text-appblue hover:text-appblue/80 transition-colors",children:[n.jsx(aN,{className:"h-4 w-4"}),"Discuss one AI workflow"]})]}),n.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Already using AI in a live workflow? We can help map what the machine sees, where people intervene, and who owns the result."})]}),n.jsxs(T.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"mt-12",children:[n.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Frequently asked questions"}),n.jsx(qa,{type:"single",collapsible:!0,className:"w-full",children:Wx.map((s,i)=>n.jsxs(Vt,{value:`faq-${i}`,children:[n.jsx(Ht,{className:"text-left text-gray-900",children:s.q}),n.jsx($t,{className:"text-gray-700",children:s.a})]},i))})]}),n.jsxs(T.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"mt-10 p-5 bg-white border border-gray-200 rounded-lg text-sm text-gray-700",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Evidence and analysis"}),n.jsx("p",{className:"mb-4",children:"The China example is based on published regulatory material and reporting. The conclusions about workflow ownership, human oversight, legacy systems, and operating responsibility are Appenue AI’s analysis."}),n.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[Fx.map(s=>n.jsx("li",{children:n.jsx("a",{href:s.href,target:"_blank",rel:"noopener noreferrer",className:"text-appblue hover:underline break-words",children:s.label})},s.href)),n.jsx("li",{children:n.jsx(Ge,{to:"/insights/ai-is-not-dead-white-paper",className:"text-appblue hover:underline",children:"Related Appenue AI white paper: AI Is Not Dead. It Is Under-Operationalised."})})]})]}),n.jsx(T.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"mt-10 p-6 bg-gray-50 rounded-lg border border-gray-200",children:n.jsxs("p",{className:"text-gray-700",children:["Is AI acting inside a workflow your business cannot fully see?"," ",n.jsx(Ge,{to:Gx,onClick:Yx,className:"text-appblue hover:underline font-medium",children:"Discuss the workflow with Appenue AI"}),"."]})})]})},PO=new nN,zO=()=>(p.useEffect(()=>{const e=document.createElement("meta");e.httpEquiv="Cache-Control",e.content="no-cache, no-store, must-revalidate",document.head.appendChild(e);const t=document.createElement("meta");t.httpEquiv="Pragma",t.content="no-cache",document.head.appendChild(t);const a=document.createElement("meta");return a.httpEquiv="Expires",a.content="0",document.head.appendChild(a),()=>{document.head.removeChild(e),document.head.removeChild(t),document.head.removeChild(a)}},[]),null),BO=()=>{const e=El();return n.jsx(dN,{mode:"wait",children:n.jsxs(uN,{location:e,children:[n.jsx(ie,{path:"/",element:n.jsx(hN,{})}),n.jsx(ie,{path:"/about",element:n.jsx(mN,{})}),n.jsx(ie,{path:"/case-studies",element:n.jsx(fN,{})}),n.jsx(ie,{path:"/case-studies/retail-growth",element:n.jsx(J4,{})}),n.jsx(ie,{path:"/case-studies/creative-transformation",element:n.jsx(eE,{})}),n.jsx(ie,{path:"/case-studies/sales-automation",element:n.jsx(tE,{})}),n.jsx(ie,{path:"/case-studies/ai-investment",element:n.jsx(aE,{})}),n.jsx(ie,{path:"/case-studies/healthcare-customer-success",element:n.jsx(nE,{})}),n.jsx(ie,{path:"/case-studies/manufacturing-optimization",element:n.jsx(sE,{})}),n.jsx(ie,{path:"/case-studies/timepiece-manufacturing",element:n.jsx(rE,{})}),n.jsx(ie,{path:"/packages",element:n.jsx(pN,{})}
294),n.jsx(ie,{path:"/executive-snapshot",element:n.jsx(jO,{})}),n.jsx(ie,{path:"/mvp-build",element:n.jsx(AO,{})}),n.jsx(ie,{path:"/insights",element:n.jsx(gN,{})}),n.jsx(ie,{path:"/insights/south-korea-ai-governance",element:n.jsx(xN,{})}),n.jsx(ie,{path:"/insights/ai-readiness-guide",element:n.jsx(vN,{})}),n.jsx(ie,{path:"/insights/ai-mvp-blueprint",element:n.jsx(yN,{})}),n.jsx(ie,{path:"/insights/ai-agents-playbook",element:n.jsx(bN,{})}),n.jsx(ie,{path:"/insights/ai-integration-small-business",element:n.jsx(wN,{})}),n.jsx(ie,{path:"/insights/geo-visibility-guide",element:n.jsx(jN,{})}),n.jsx(ie,{path:"/insights/ai-gtm-playbook",element:n.jsx(TO,{})}),n.jsx(ie,{path:"/insights/ai-driven-growth-guide",element:n.jsx(EO,{})}),n.jsx(ie,{path:"/insights/ai-led-marketing-from-thin-air",element:n.jsx(CO,{})}),n.jsx(ie,{path:"/insights/market-research-to-prototype-in-a-week",element:n.jsx(OO,{})}),n.jsx(ie,{path:"/insights/goodfirms-executive-interview",element:n.jsx(NN,{})}),n.jsx(ie,{path:"/insights/ai-is-not-dead-white-paper",element:n.jsx(SN,{})}),n.jsx(ie,{path:"/insights/when-ai-loses-the-human-layer",element:n.jsx(LO,{})}),n.jsx(ie,{path:"/services/ai-mvp-development",element:n.jsx(AN,{})}),n.jsx(ie,{path:"/services/ai-integration-for-small-business",element:n.jsx(kN,{})}),n.jsx(ie,{path:"/contact",element:n.jsx(TN,{})}),n.jsx(ie,{path:"/accessibility",element:n.jsx(TE,{})}),n.jsx(ie,{path:"/privacy",element:n.jsx(_E,{})}),n.jsx(ie,{path:"/terms",element:n.jsx(EE,{})}),n.jsx(ie,{path:"/copyright",element:n.jsx(CE,{})}),n.jsx(ie,{path:"/admin",element:n.jsx(X3,{})}),n.jsx(ie,{path:"/admin/dashboard",element:n.jsx(bO,{})}),n.jsx(ie,{path:"*",element:n.jsx(AT,{})})]},e.pathname)})},UO=()=>{const e=El(),t=e.pathname.startsWith("/admin");return e.pathname==="/"||e.pathname,n.jsxs(n.Fragment,{children:[n.jsx(zO,{}),n.jsx(z_,{}),!t&&n.jsx(oN,{}),n.jsx(BO,{}),!t&&n.jsx(cN,{}),!t&&n.jsx(L_,{})]})},qO=()=>n.jsx(sN,{client:PO,children:n.jsx(iN,{children:n.jsxs(rN,{children:[n.jsx(Qk,{}),n.jsx(ST,{}),n.jsx(lN,{children:n.jsx(UO,{})})]})})});nk.createRoot(document.getElementById("root")).render(n.jsx(qO,{}));

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.