PageSourceSearch

https://wyecliff.ai/assets/index-e6vuDWmB.js

js wyecliff.ai collected 2026-10-04 07:38:26 UTC 1,221,703 bytes, 335 lines download raw bytes

vendor: 8,085 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/terms-4ZzleK00.js","assets/LegalLayout-BDsF1ppD.js","assets/team-BgawtMIo.js","assets/dialog-Drfrn1PD.js","assets/index-Bajcv36H.js","assets/solution-playground-DJ7-E6uy.js","assets/ListPagination-DShfNBUO.js","assets/chevron-right-XHs_ceWP.js","assets/SolutionCard-DzXd8kyd.js","assets/sliders-horizontal-_pVIdRJi.js","assets/privacy-Di6YxCwe.js","assets/partners-C8LxNMsL.js","assets/PartnerCard-BY7Frz7X.js","assets/users-round-D7ddwYLY.js","assets/newsletter-CKEV4Mbz.js","assets/NewsletterEditionCard-iEEVXuVJ.js","assets/calendar-BqWXbCuQ.js","assets/clock-jrFFCDWh.js","assets/newspaper-DDNMRrXb.js","assets/lightbulb-Cy8W5Xp9.js","assets/insights-B0redJfO.js","assets/route-redirect-CAF58pGe.js","assets/founders-BuL3p2Cl.js","assets/contact-CdzQmD5q.js","assets/case-studies-2bSu0lDx.js","assets/use-animation-BP5hAzkE.js","assets/careers-Dtf3ib6L.js","assets/arrow-down-DLQFgJCj.js","assets/blog-Lfmja4cK.js","assets/BlogArticleCard-pCTMb8Dx.js","assets/admin-BHJWgktg.js","assets/AdminShell-BuN78Gxl.js","assets/use-admin-gate-Dg_SJIEI.js","assets/arrow-left-uVPLveLE.js","assets/file-text-DlaqTMEp.js","assets/layout-grid-Cf7k5prJ.js","assets/about-B_5WNueu.js","assets/AboutOperators-B39wllm_.js","assets/index-CMa25HPR.js","assets/calculator-CDrmEh7w.js","assets/index-ou_oXgnI.js","assets/solution-playground_._slug-DZbw9EOa.js","assets/SimilarCaseStudiesSection-DrrPr5PK.js","assets/StoryMetaPills-RKK12Fot.js","assets/train-Bren9yXh.js","assets/CapabilityPage-Cul5foGZ.js","assets/CapabilityGridHero-B2tgomfG.js","assets/activity-B7ZyP-aY.js","assets/discover-BXWFcHQ-.js","assets/deploy-B_o1FEYP.js","assets/cpu-BetmQgXV.js","assets/build-DQUUm2zY.js","assets/partners_._slug-BrT6hlES.js","assets/newsletter_._slug-BQO6_87C.js","assets/ArticleDetailView-k6Icwpnw.js","assets/NewsletterEditionBody-_dorc251.js","assets/denver-ai-consulting-t5957sMU.js","assets/pe-vc-BNp-XsLP.js","assets/IndustryEditorialHero-CvAJ8zn7.js","assets/manufacturing-C44X_RVH.js","assets/legal-BTre94Z9.js","assets/insurance-lSCfbIMY.js","assets/distribution-Bfz18MvC.js","assets/construction-BRLvvMwp.js","assets/accounting-DJAzDh0u.js","assets/case-studies_._slug-Ddlw8gh5.js","assets/blog_._slug-D21lw2SE.js","assets/admin_.submissions-_lsC5yXn.js","assets/download-CmjDIR-1.js","assets/admin_.newsletters-i31iarGp.js","assets/admin-newsletters-O4zsnZ9x.js","assets/star-Ksegyv_p.js","assets/pencil-Dba93iXk.js","assets/admin_.case-studies-CTqH8cRV.js","assets/admin-case-studies-JGPLZ2x2.js","assets/admin_.blog-1jkoNngg.js","assets/admin-blog-CLD12pSz.js","assets/admin_.newsletters_._id-CzoA1JaP.js","assets/eye-Iy10DbSY.js","assets/upload-ByWB0IdV.js","assets/admin_.case-studies_._slug-CtqJ5l0J.js","assets/admin_.blog_._id-CsaeYLq6.js"])))=>i.map(i=>d[i]);
2function zM(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function VM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hy={exports:{}},zc={};var Ck;function $M(){if(Ck)return zc;Ck=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(s,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:e,type:s,key:l,ref:i!==void 0?i:null,props:o}}return zc.Fragment=t,zc.jsx=n,zc.jsxs=n,zc}var Ek;function FM(){return Ek||(Ek=1,hy.exports=$M()),hy.exports}var y=FM(),py={exports:{}},He={};var Tk;function HM(){if(Tk)return He;Tk=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),b=Symbol.iterator;function w(B){return B===null||typeof B!="object"?null:(B=b&&B[b]||B["@@iterator"],typeof B=="function"?B:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,_={};function k(B,ee,de){this.props=B,this.context=ee,this.refs=_,this.updater=de||x}k.prototype.isReactComponent={},k.prototype.setState=function(B,ee){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,ee,"setState")},k.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function C(){}C.prototype=k.prototype;function R(B,ee,de){this.props=B,this.context=ee,this.refs=_,this.updater=de||x}var O=R.prototype=new C;O.constructor=R,S(O,k.prototype),O.isPureReactComponent=!0;var N=Array.isArray;function P(){}var D={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function $(B,ee,de){var he=de.ref;return{$$typeof:e,type:B,key:ee,ref:he!==void 0?he:null,props:de}}function K(B,ee){return $(B.type,ee,B.props)}function Y(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function X(B){var ee={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(de){return ee[de]})}var ae=/\/+/g;function oe(B,ee){return typeof B=="object"&&B!==null&&B.key!=null?X(""+B.key):ee.toString(36)}function be(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(P,P):(B.status="pending",B.then(function(ee){B.status==="pending"&&(B.status="fulfilled",B.value=ee)},function(ee){B.status==="pending"&&(B.status="rejected",B.reason=ee)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function V(B,ee,de,he,ge){var _e=typeof B;(_e==="undefined"||_e==="boolean")&&(B=null);var ye=!1;if(B===null)ye=!0;else switch(_e){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(B.$$typeof){case e:case t:ye=!0;break;case p:return ye=B._init,V(ye(B._payload),ee,de,he,ge)}}if(ye)return ge=ge(B),ye=he===""?"."+oe(B,0):he,N(ge)?(de="",ye!=null&&(de=ye.replace(ae,"$&/")+"/"),V(ge,ee,de,"",function(Xe){return Xe})):ge!=null&&(Y(ge)&&(ge=K(ge,de+(ge.key==null||B&&B.key===ge.key?"":(""+ge.key).replace(ae,"$&/")+"/")+ye)),ee.push(ge)),1;ye=0;var Me=he===""?".":he+":";if(N(B))for(var Ee=0;Ee<B.length;Ee++)he=B[Ee],_e=Me+oe(he,Ee),ye+=V(he,ee,de,_e,ge);else if(Ee=w(B),typeof Ee=="function")for(B=Ee.call(B),Ee=0;!(he=B.next()).done;)he=he.value,_e=Me+oe(he,Ee++),ye+=V(he,ee,de,_e,ge);else if(_e==="object"){if(typeof B.then=="function")return V(be(B),ee,de,he,ge);throw ee=String(B),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return ye}function Q(B,ee,de){if(B==null)return B;var he=[],ge=0;return V(B,he,"","",function(_e){return ee.call(de,_e,ge++)}),he}function te(B){if(B._status===-1){var ee=B._result;ee=ee(),ee.then(function(de){(B._status===0||B._status===-1)&&(B._status=1,B._result=de)},function(de){(B._status===0||B._status===-1)&&(B._status=2,B._result=de)}),B._status===-1&&(B._status=0,B._result=ee)}if(B._status===1)return B._result.default;throw B._result}var pe=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)}
vendor: 2,781 bytes, line 2
2,ie={map:Q,forEach:function(B,ee,de){Q(B,function(){ee.apply(this,arguments)},de)},count:function(B){var ee=0;return Q(B,function(){ee++}),ee},toArray:function(B){return Q(B,function(ee){return ee})||[]},only:function(B){if(!Y(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return He.Activity=m,He.Children=ie,He.Component=k,He.Fragment=n,He.Profiler=i,He.PureComponent=R,He.StrictMode=s,He.Suspense=f,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,He.__COMPILER_RUNTIME={__proto__:null,c:function(B){return D.H.useMemoCache(B)}},He.cache=function(B){return function(){return B.apply(null,arguments)}},He.cacheSignal=function(){return null},He.cloneElement=function(B,ee,de){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var he=S({},B.props),ge=B.key;if(ee!=null)for(_e in ee.key!==void 0&&(ge=""+ee.key),ee)!M.call(ee,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&ee.ref===void 0||(he[_e]=ee[_e]);var _e=arguments.length-2;if(_e===1)he.children=de;else if(1<_e){for(var ye=Array(_e),Me=0;Me<_e;Me++)ye[Me]=arguments[Me+2];he.children=ye}return $(B.type,ge,he)},He.createContext=function(B){return B={$$typeof:l,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:o,_context:B},B},He.createElement=function(B,ee,de){var he,ge={},_e=null;if(ee!=null)for(he in ee.key!==void 0&&(_e=""+ee.key),ee)M.call(ee,he)&&he!=="key"&&he!=="__self"&&he!=="__source"&&(ge[he]=ee[he]);var ye=arguments.length-2;if(ye===1)ge.children=de;else if(1<ye){for(var Me=Array(ye),Ee=0;Ee<ye;Ee++)Me[Ee]=arguments[Ee+2];ge.children=Me}if(B&&B.defaultProps)for(he in ye=B.defaultProps,ye)ge[he]===void 0&&(ge[he]=ye[he]);return $(B,_e,ge)},He.createRef=function(){return{current:null}},He.forwardRef=function(B){return{$$typeof:u,render:B}},He.isValidElement=Y,He.lazy=function(B){return{$$typeof:p,_payload:{_status:-1,_result:B},_init:te}},He.memo=function(B,ee){return{$$typeof:h,type:B,compare:ee===void 0?null:ee}},He.startTransition=function(B){var ee=D.T,de={};D.T=de;try{var he=B(),ge=D.S;ge!==null&&ge(de,he),typeof he=="object"&&he!==null&&typeof he.then=="function"&&he.then(P,pe)}catch(_e){pe(_e)}finally{ee!==null&&de.types!==null&&(ee.types=de.types),D.T=ee}},He.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},He.use=function(B){return D.H.use(B)},He.useActionState=function(B,ee,de){return D.H.useActionState(B,ee,de)},He.useCallback=function(B,ee){return D.H.useCallback(B,ee)},He.useContext=function(B){return D.H.useContext(B)},He.useDebugValue=function(){},He.useDeferredValue=function(B,ee){return D.H.useDeferredValue(B,ee)},He.useEffect=function(B,ee){return D.H.useEffect(B,ee)}
vendor: 6,057 bytes, line 2
2,He.useEffectEvent=function(B){return D.H.useEffectEvent(B)},He.useId=function(){return D.H.useId()},He.useImperativeHandle=function(B,ee,de){return D.H.useImperativeHandle(B,ee,de)},He.useInsertionEffect=function(B,ee){return D.H.useInsertionEffect(B,ee)},He.useLayoutEffect=function(B,ee){return D.H.useLayoutEffect(B,ee)},He.useMemo=function(B,ee){return D.H.useMemo(B,ee)},He.useOptimistic=function(B,ee){return D.H.useOptimistic(B,ee)},He.useReducer=function(B,ee,de){return D.H.useReducer(B,ee,de)},He.useRef=function(B){return D.H.useRef(B)},He.useState=function(B){return D.H.useState(B)},He.useSyncExternalStore=function(B,ee,de){return D.H.useSyncExternalStore(B,ee,de)},He.useTransition=function(){return D.H.useTransition()},He.version="19.2.7",He}var Rk;function Fu(){return Rk||(Rk=1,py.exports=HM()),py.exports}var E=Fu();const Be=VM(E),Hu=zM({__proto__:null,default:Be},[E]);var my={exports:{}},Vc={},gy={exports:{}},yy={};var Ok;function qM(){return Ok||(Ok=1,(function(e){function t(V,Q){var te=V.length;V.push(Q);e:for(;0<te;){var pe=te-1>>>1,ie=V[pe];if(0<i(ie,Q))V[pe]=Q,V[te]=ie,te=pe;else break e}}function n(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var Q=V[0],te=V.pop();if(te!==Q){V[0]=te;e:for(var pe=0,ie=V.length,B=ie>>>1;pe<B;){var ee=2*(pe+1)-1,de=V[ee],he=ee+1,ge=V[he];if(0>i(de,te))he<ie&&0>i(ge,de)?(V[pe]=ge,V[he]=te,pe=he):(V[pe]=de,V[ee]=te,pe=ee);else if(he<ie&&0>i(ge,te))V[pe]=ge,V[he]=te,pe=he;else break e}}return Q}function i(V,Q){var te=V.sortIndex-Q.sortIndex;return te!==0?te:V.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],h=[],p=1,m=null,b=3,w=!1,x=!1,S=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function O(V){for(var Q=n(h);Q!==null;){if(Q.callback===null)s(h);else if(Q.startTime<=V)s(h),Q.sortIndex=Q.expirationTime,t(f,Q);else break;Q=n(h)}}function N(V){if(S=!1,O(V),!x)if(n(f)!==null)x=!0,P||(P=!0,X());else{var Q=n(h);Q!==null&&be(N,Q.startTime-V)}}var P=!1,D=-1,M=5,$=-1;function K(){return _?!0:!(e.unstable_now()-$<M)}function Y(){if(_=!1,P){var V=e.unstable_now();$=V;var Q=!0;try{e:{x=!1,S&&(S=!1,C(D),D=-1),w=!0;var te=b;try{t:{for(O(V),m=n(f);m!==null&&!(m.expirationTime>V&&K());){var pe=m.callback;if(typeof pe=="function"){m.callback=null,b=m.priorityLevel;var ie=pe(m.expirationTime<=V);if(V=e.unstable_now(),typeof ie=="function"){m.callback=ie,O(V),Q=!0;break t}m===n(f)&&s(f),O(V)}else s(f);m=n(f)}if(m!==null)Q=!0;else{var B=n(h);B!==null&&be(N,B.startTime-V),Q=!1}}break e}finally{m=null,b=te,w=!1}Q=void 0}}finally{Q?X():P=!1}}}var X;if(typeof R=="function")X=function(){R(Y)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=Y,X=function(){oe.postMessage(null)}}else X=function(){k(Y,0)};function be(V,Q){D=k(function(){V(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(V){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var te=b;b=Q;try{return V()}finally{b=te}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(V,Q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var te=b;b=V;try{return Q()}finally{b=te}},e.unstable_scheduleCallback=function(V,Q,te){var pe=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?pe+te:pe):te=pe,V){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=te+ie,V={id:p++,callback:Q,priorityLevel:V,startTime:te,expirationTime:ie,sortIndex:-1},te>pe?(V.sortIndex=te,t(h,V),n(f)===null&&V===n(h)&&(S?(C(D),D=-1):S=!0,be(N,te-pe))):(V.sortIndex=ie,t(f,V),x||w||(x=!0,P||(P=!0,X()))),V},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(V){var Q=b;return function(){var te=b;b=Q;try{return V.apply(this,arguments)}finally{b=te}}}})(yy)),yy}var jk;function WM(){return jk||(jk=1,gy.exports=qM()),gy.exports}var vy={exports:{}},On={};var Nk;function GM(){if(Nk)return On;Nk=1;var e=Fu();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var s={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function o(f,h,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:f,containerInfo:h,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return On.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,On.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,p)},On.flushSync=function(f){var h=l.T,p=s.p;try{if(l.T=null,s.p=2,f)return f()}finally{l.T=h,s.p=p,s.d.f()}},On.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,
vendor: 6,279 bytes, line 2
2s.d.C(f,h))},On.prefetchDNS=function(f){typeof f=="string"&&s.d.D(f)},On.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,m=u(p,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?s.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:b,fetchPriority:w}):p==="script"&&s.d.X(f,{crossOrigin:m,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},On.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=u(h.as,h.crossOrigin);s.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&s.d.M(f)},On.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,m=u(p,h.crossOrigin);s.d.L(f,p,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},On.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=u(h.as,h.crossOrigin);s.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else s.d.m(f)},On.requestFormReset=function(f){s.d.r(f)},On.unstable_batchedUpdates=function(f,h){return f(h)},On.useFormState=function(f,h,p){return l.H.useFormState(f,h,p)},On.useFormStatus=function(){return l.H.useHostTransitionStatus()},On.version="19.2.7",On}var Ik;function rT(){if(Ik)return vy.exports;Ik=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vy.exports=GM(),vy.exports}var Pk;function KM(){if(Pk)return Vc;Pk=1;var e=WM(),t=Fu(),n=rT();function s(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function o(r){var a=r,c=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(c=a.return),r=a.return;while(r)}return a.tag===3?c:null}function l(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function u(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(o(r)!==r)throw Error(s(188))}function h(r){var a=r.alternate;if(!a){if(a=o(r),a===null)throw Error(s(188));return a!==r?null:r}for(var c=r,d=a;;){var g=c.return;if(g===null)break;var v=g.alternate;if(v===null){if(d=g.return,d!==null){c=d;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===c)return f(g),r;if(v===d)return f(g),a;v=v.sibling}throw Error(s(188))}if(c.return!==d.return)c=g,d=v;else{for(var A=!1,j=g.child;j;){if(j===c){A=!0,c=g,d=v;break}if(j===d){A=!0,d=g,c=v;break}j=j.sibling}if(!A){for(j=v.child;j;){if(j===c){A=!0,c=v,d=g;break}if(j===d){A=!0,d=v,c=g;break}j=j.sibling}if(!A)throw Error(s(189))}}if(c.alternate!==d)throw Error(s(190))}if(c.tag!==3)throw Error(s(188));return c.stateNode.current===c?r:a}function p(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=p(r),a!==null)return a;r=r.sibling}return null}var m=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),R=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function X(r){return r===null||typeof r!="object"?null:(r=Y&&r[Y]||r["@@iterator"],typeof r=="function"?r:null)}var ae=Symbol.for("react.client.reference");function oe(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===ae?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case k:return"Profiler";case _:return"StrictMode";case N:return"Suspense";case P:return"SuspenseList";case $:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case x:return"Portal";case R:return r.displayName||"Context";case C:return(r._context.displayName||"Context")+".Consumer";case O:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case D:return a=r.displayName||null,a!==null?a:oe(r.type)||"Memo";case M:a=r._payload,r=r._init;try{return oe(r(a))}catch{}}return null}var be=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},pe=[],ie=-1;function B(r){return{current:r}}function ee(r){0>ie||(r.current=pe[ie],pe[ie]=null,ie--)}function de(r,a){ie++,pe[ie]=r.current,r.current=a}var he=B(null),ge=B(null),_e=B(null),ye=B(null);function Me(r,a){switch(de(_e,a),de(ge,r),de(he,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?Y_(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=Y_(a),r=Z_(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}ee(he),de(he,r)}function Ee(){ee(he),ee(ge),ee(_e)}function Xe(r){r.memoizedState!==null&&de(ye,r);var a=he.current,c=Z_(a,r.type);
vendor: 9,727 bytes, lines 2-9
2a!==c&&(de(ge,r),de(he,c))}function Ye(r){ge.current===r&&(ee(he),ee(ge)),ye.current===r&&(ee(ye),Dc._currentValue=te)}var Qe,Wt;function ht(r){if(Qe===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);Qe=a&&a[1]||"",Wt=-1<c.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+Qe+r+Wt}var Is=!1;function Vn(r,a){if(!r||Is)return"";Is=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(a){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(J){var Z=J}Reflect.construct(r,[],re)}else{try{re.call()}catch(J){Z=J}r.call(re.prototype)}}else{try{throw Error()}catch(J){Z=J}(re=r())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(J){if(J&&Z&&typeof J.stack=="string")return[J.stack,Z.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=d.DetermineComponentFrameRoot(),A=v[0],j=v[1];if(A&&j){var U=A.split(`
5`),G=j.split(`
6`);for(g=d=0;d<U.length&&!U[d].includes("DetermineComponentFrameRoot");)d++;for(;g<G.length&&!G[g].includes("DetermineComponentFrameRoot");)g++;if(d===U.length||g===G.length)for(d=U.length-1,g=G.length-1;1<=d&&0<=g&&U[d]!==G[g];)g--;for(;1<=d&&0<=g;d--,g--)if(U[d]!==G[g]){if(d!==1||g!==1)do if(d--,g--,0>g||U[d]!==G[g]){var ne=`
7`+U[d].replace(" at new "," at ");return r.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",r.displayName)),ne}while(1<=d&&0<=g);break}}}finally{Is=!1,Error.prepareStackTrace=c}return(c=r?r.displayName||r.name:"")?ht(c):""}function Ps(r,a){switch(r.tag){case 26:case 27:case 5:return ht(r.type);case 16:return ht("Lazy");case 13:return r.child!==a&&a!==null?ht("Suspense Fallback"):ht("Suspense");case 19:return ht("SuspenseList");case 0:case 15:return Vn(r.type,!1);case 11:return Vn(r.type.render,!1);case 1:return Vn(r.type,!0);case 31:return ht("Activity");default:return""}}function ts(r){try{var a="",c=null;do a+=Ps(r,c),c=r,r=r.return;while(r);return a}catch(d){return`
8Error generating stack: `+d.message+`
9`+d.stack}}var Ms=Object.prototype.hasOwnProperty,ns=e.unstable_scheduleCallback,ai=e.unstable_cancelCallback,mo=e.unstable_shouldYield,go=e.unstable_requestPaint,an=e.unstable_now,bt=e.unstable_getCurrentPriorityLevel,on=e.unstable_ImmediatePriority,Ds=e.unstable_UserBlockingPriority,la=e.unstable_NormalPriority,ud=e.unstable_LowPriority,L=e.unstable_IdlePriority,H=e.log,q=e.unstable_setDisableYieldValue,ce=null,le=null;function ve(r){if(typeof H=="function"&&q(r),le&&typeof le.setStrictMode=="function")try{le.setStrictMode(ce,r)}catch{}}var ue=Math.clz32?Math.clz32:Tt,Se=Math.log,Ue=Math.LN2;function Tt(r){return r>>>=0,r===0?32:31-(Se(r)/Ue|0)|0}var pn=256,Ls=262144,$n=4194304;function ss(r){var a=r&42;if(a!==0)return a;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function yo(r,a,c){var d=r.pendingLanes;if(d===0)return 0;var g=0,v=r.suspendedLanes,A=r.pingedLanes;r=r.warmLanes;var j=d&134217727;return j!==0?(d=j&~v,d!==0?g=ss(d):(A&=j,A!==0?g=ss(A):c||(c=j&~r,c!==0&&(g=ss(c))))):(j=d&~v,j!==0?g=ss(j):A!==0?g=ss(A):c||(c=d&~r,c!==0&&(g=ss(c)))),g===0?0:a!==0&&a!==g&&(a&v)===0&&(v=g&-g,c=a&-a,v>=c||v===32&&(c&4194048)!==0)?a:g}function oi(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function em(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Yl(){var r=$n;return $n<<=1,($n&62914560)===0&&($n=4194304),r}function tm(r){for(var a=[],c=0;31>c;c++)a.push(r);return a}function Zl(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function TI(r,a,c,d,g,v){var A=r.pendingLanes;r.pendingLanes=c,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=c,r.entangledLanes&=c,r.errorRecoveryDisabledLanes&=c,r.shellSuspendCounter=0;var j=r.entanglements,U=r.expirationTimes,G=r.hiddenUpdates;for(c=A&~c;0<c;){var ne=31-ue(c),re=1<<ne;j[ne]=0,U[ne]=-1;var Z=G[ne];if(Z!==null)for(G[ne]=null,ne=0;ne<Z.length;ne++){var J=Z[ne];J!==null&&(J.lane&=-536870913)}c&=~re}d!==0&&j0(r,d,0),v!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=v&~(A&~a))}function j0(r,a,c){r.pendingLanes|=a,r.suspendedLanes&=~a;var d=31-ue(a);r.entangledLanes|=a,r.entanglements[d]=r.entanglements[d]|1073741824|c&261930}function N0(r,a){var c=r.entangledLanes|=a;for(r=r.entanglements;c;){var d=31-ue(c),g=1<<d;g&a|r[d]&a&&(r[d]|=a),c&=~g}}function I0(r,a){var c=a&-a;return c=(c&42)!==0?1:nm(c),(c&(r.suspendedLanes|a))!==0?0:c}function nm(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function sm(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function P0(){var r=Q.p;return r!==0?r:(r=window.event,r===void 0?32:bk(r.type))}function M0(r,a){var c=Q.p;try{return Q.p=r,a()}finally{Q.p=c}}var li=Math.random().toString(36).slice(2),xn="__reactFiber$"+li,Fn="__reactProps$"+li,vo="__reactContainer$"+li,rm="__reactEvents$"+li,RI="__reactListeners$"+li,OI="__reactHandles$"+li,D0="__reactResources$"+li,Xl="__reactMarker$"+li;function im(r){delete r[xn],delete r[Fn],delete r[rm],delete r[RI],delete r[OI]}function bo(r){var a=r[xn];if(a)return a;for(var c=r.parentNode;c;){if(a=c[vo]||c[xn]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(r=sk(r);r!==null;){if(c=r[xn])return c;r=sk(r)}return a}r=c,c=r.parentNode}return null}function wo(r){if(r=r[xn]||r[vo]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function Jl(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(s(33))}function xo(r){var a=r[D0];return a||(a=r[D0]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function mn(r){r[Xl]=!0}var L0=new Set,B0={};function ca(r,a){So(r,a),So(r+"Capture",a)}function So(r,a){for(B0[r]=a,r=0;r<a.length;r++)L0.add(a[r])}var jI=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]*$"),U0={},z0={};function NI(r){return Ms.call(z0,r)?!0:Ms.call(U0,r)?!1:jI.test(r)?z0[r]=!0:(U0[r]=!0,!1)}function dd(r,a,c){if(NI(a))if(c===null)r.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var d=a.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+c)}}function fd(r,a,c){if(c===null)r.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+c)}}function Sr(r,a,c,d){if(d===null)r.removeAttribute(c);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(c);return}r.setAttributeNS(a,c,""+d)}}function bs(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function V0(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function II(r,a,c){var d=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var g=d.get,v=d.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return g.call(this)},set:function(A){c=""+A,v.call(this,A)}}),Object.defineProperty(r,a,{enumerable:d.enumerable}),{getValue:function(){return c},setValue:function(A){c=""+A},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function am(r){if(!r._valueTracker){var a=V0(r)?"checked":"value";r._valueTracker=II(r,a,""+r[a])}}function $0(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var c=a.getValue(),d="";return r&&(d=V0(r)?r.checked?"true":"false":r.value),r=d,r!==c?(a.setValue(r),!0):!1}function hd(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var PI=/[\n"\\]/g;function ws(r){return r.replace(PI,function(a){return"\\"+a.charCo
vendor: 4,418 bytes, line 9
9deAt(0).toString(16)+" "})}function om(r,a,c,d,g,v,A,j){r.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?r.type=A:r.removeAttribute("type"),a!=null?A==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+bs(a)):r.value!==""+bs(a)&&(r.value=""+bs(a)):A!=="submit"&&A!=="reset"||r.removeAttribute("value"),a!=null?lm(r,A,bs(a)):c!=null?lm(r,A,bs(c)):d!=null&&r.removeAttribute("value"),g==null&&v!=null&&(r.defaultChecked=!!v),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?r.name=""+bs(j):r.removeAttribute("name")}function F0(r,a,c,d,g,v,A,j){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(r.type=v),a!=null||c!=null){if(!(v!=="submit"&&v!=="reset"||a!=null)){am(r);return}c=c!=null?""+bs(c):"",a=a!=null?""+bs(a):c,j||a===r.value||(r.value=a),r.defaultValue=a}d=d??g,d=typeof d!="function"&&typeof d!="symbol"&&!!d,r.checked=j?r.checked:!!d,r.defaultChecked=!!d,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(r.name=A),am(r)}function lm(r,a,c){a==="number"&&hd(r.ownerDocument)===r||r.defaultValue===""+c||(r.defaultValue=""+c)}function _o(r,a,c,d){if(r=r.options,a){a={};for(var g=0;g<c.length;g++)a["$"+c[g]]=!0;for(c=0;c<r.length;c++)g=a.hasOwnProperty("$"+r[c].value),r[c].selected!==g&&(r[c].selected=g),g&&d&&(r[c].defaultSelected=!0)}else{for(c=""+bs(c),a=null,g=0;g<r.length;g++){if(r[g].value===c){r[g].selected=!0,d&&(r[g].defaultSelected=!0);return}a!==null||r[g].disabled||(a=r[g])}a!==null&&(a.selected=!0)}}function H0(r,a,c){if(a!=null&&(a=""+bs(a),a!==r.value&&(r.value=a),c==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=c!=null?""+bs(c):""}function q0(r,a,c,d){if(a==null){if(d!=null){if(c!=null)throw Error(s(92));if(be(d)){if(1<d.length)throw Error(s(93));d=d[0]}c=d}c==null&&(c=""),a=c}c=bs(a),r.defaultValue=c,d=r.textContent,d===c&&d!==""&&d!==null&&(r.value=d),am(r)}function ko(r,a){if(a){var c=r.firstChild;if(c&&c===r.lastChild&&c.nodeType===3){c.nodeValue=a;return}}r.textContent=a}var MI=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 W0(r,a,c){var d=a.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?d?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":d?r.setProperty(a,c):typeof c!="number"||c===0||MI.has(a)?a==="float"?r.cssFloat=c:r[a]=(""+c).trim():r[a]=c+"px"}function G0(r,a,c){if(a!=null&&typeof a!="object")throw Error(s(62));if(r=r.style,c!=null){for(var d in c)!c.hasOwnProperty(d)||a!=null&&a.hasOwnProperty(d)||(d.indexOf("--")===0?r.setProperty(d,""):d==="float"?r.cssFloat="":r[d]="");for(var g in a)d=a[g],a.hasOwnProperty(g)&&c[g]!==d&&W0(r,g,d)}else for(var v in a)a.hasOwnProperty(v)&&W0(r,v,a[v])}function cm(r){if(r.indexOf("-")===-1)return!1;switch(r){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 DI=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"],["colorRen
9dering","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-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"]]),LI=/^[\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 pd(r){return LI.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function _r(){}var um=null;function dm(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ao=null,Co=null;function K0(r){var a=wo(r);if(a&&(r=a.stateNode)){var c=r[Fn]||null;e:switch(r=a.stateNode,a.type){case"input":if(om(r,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),a=c.name,c.type==="radio"&&a!=null){for(c=r;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+ws(""+a)+'"][type="radio"]'),a=0;a<c.length;a++){var d=c[a];if(d!==r&&d.form===r.form){var g=d[Fn]||null;if(!g)throw Error(s(90));om(d,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<c.length;a++)d=c[a],d.form===r.form&&$0(d)}break e;case"textarea":H0(r,c.value,c.defaultValue);break e;case"select":a=c.value,a!=null&&_o(r,!!c.multiple,a,!1)}}}var fm=!1;function Y0(r,a,c){if(fm)return r(a,c);fm=!0;try{var d=r(a);return d}finally{if(fm=!1,(Ao!==null||Co!==null)&&(tf(),Ao&&(a=Ao,r=Co,Co=Ao=null,K0(a),r)))for(a=0;a<r.length;a++)K0(r[a])}}function Ql(r,a){var c=r.stateNode;if(c===null)return null;var d=c[Fn]||null;if(d===null)return null;c=d[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(c&&typeof c!="function")throw Error(s(231,a,typeof c));return c}var kr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hm=!1;if(kr)try{var ec={};Object.defineProperty(ec,"passive",{get:function(){hm=!0}}),window.addEventListener("test",ec,ec),window.removeEventListener("test",ec,ec)}catch{hm=!1}var ci=null,pm=null,md=null;function Z0(){if(md)return md;var r,a=pm,c=a.length,d,g="value"in ci?ci.value:ci.textContent,v=g.length;for(r=0;r<c&&a[r]===g[r];r++);var A=c-r;for(d=1;d<=A&&a[c-d]===g[v-d];d++);return md=g.slice(r,1<d?1-d:void 0)}function gd(r){var a=r.keyCode;
vendor: 5,232 bytes, line 9
9return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function yd(){return!0}function X0(){return!1}function Hn(r){function a(c,d,g,v,A){this._reactName=c,this._targetInst=g,this.type=d,this.nativeEvent=v,this.target=A,this.currentTarget=null;for(var j in r)r.hasOwnProperty(j)&&(c=r[j],this[j]=c?c(v):v[j]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?yd:X0,this.isPropagationStopped=X0,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=yd)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=yd)},persist:function(){},isPersistent:yd}),a}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vd=Hn(ua),tc=m({},ua,{view:0,detail:0}),BI=Hn(tc),mm,gm,nc,bd=m({},tc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vm,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==nc&&(nc&&r.type==="mousemove"?(mm=r.screenX-nc.screenX,gm=r.screenY-nc.screenY):gm=mm=0,nc=r),mm)},movementY:function(r){return"movementY"in r?r.movementY:gm}}),J0=Hn(bd),UI=m({},bd,{dataTransfer:0}),zI=Hn(UI),VI=m({},tc,{relatedTarget:0}),ym=Hn(VI),$I=m({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),FI=Hn($I),HI=m({},ua,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),qI=Hn(HI),WI=m({},ua,{data:0}),Q0=Hn(WI),GI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},KI={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"},YI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZI(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=YI[r])?!!a[r]:!1}function vm(){return ZI}var XI=m({},tc,{key:function(r){if(r.key){var a=GI[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=gd(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?KI[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vm,charCode:function(r){return r.type==="keypress"?gd(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?gd(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),JI=Hn(XI),QI=m({},bd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ex=Hn(QI),eP=m({},tc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vm}),tP=Hn(eP),nP=m({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),sP=Hn(nP),rP=m({},bd,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),iP=Hn(rP),aP=m({},ua,{newState:0,oldState:0}),oP=Hn(aP),lP=[9,13,27,32],bm=kr&&"CompositionEvent"in window,sc=null;kr&&"documentMode"in document&&(sc=document.documentMode);var cP=kr&&"TextEvent"in window&&!sc,tx=kr&&(!bm||sc&&8<sc&&11>=sc),nx=" ",sx=!1;function rx(r,a){switch(r){case"keyup":return lP.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ix(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Eo=!1;function uP(r,a){switch(r){case"compositionend":return ix(a);case"keypress":return a.which!==32?null:(sx=!0,nx);case"textInput":return r=a.data,r===nx&&sx?null:r;default:return null}}function dP(r,a){if(Eo)return r==="compositionend"||!bm&&rx(r,a)?(r=Z0(),md=pm=ci=null,Eo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return tx&&a.locale!=="ko"?null:a.data;default:return null}}var fP={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 ax(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!fP[r.type]:a==="textarea"}
vendor: 6,273 bytes, line 9
9function ox(r,a,c,d){Ao?Co?Co.push(d):Co=[d]:Ao=d,a=cf(a,"onChange"),0<a.length&&(c=new vd("onChange","change",null,c,d),r.push({event:c,listeners:a}))}var rc=null,ic=null;function hP(r){F_(r,0)}function wd(r){var a=Jl(r);if($0(a))return r}function lx(r,a){if(r==="change")return a}var cx=!1;if(kr){var wm;if(kr){var xm="oninput"in document;if(!xm){var ux=document.createElement("div");ux.setAttribute("oninput","return;"),xm=typeof ux.oninput=="function"}wm=xm}else wm=!1;cx=wm&&(!document.documentMode||9<document.documentMode)}function dx(){rc&&(rc.detachEvent("onpropertychange",fx),ic=rc=null)}function fx(r){if(r.propertyName==="value"&&wd(ic)){var a=[];ox(a,ic,r,dm(r)),Y0(hP,a)}}function pP(r,a,c){r==="focusin"?(dx(),rc=a,ic=c,rc.attachEvent("onpropertychange",fx)):r==="focusout"&&dx()}function mP(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return wd(ic)}function gP(r,a){if(r==="click")return wd(a)}function yP(r,a){if(r==="input"||r==="change")return wd(a)}function vP(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var rs=typeof Object.is=="function"?Object.is:vP;function ac(r,a){if(rs(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var c=Object.keys(r),d=Object.keys(a);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var g=c[d];if(!Ms.call(a,g)||!rs(r[g],a[g]))return!1}return!0}function hx(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function px(r,a){var c=hx(r);r=0;for(var d;c;){if(c.nodeType===3){if(d=r+c.textContent.length,r<=a&&d>=a)return{node:c,offset:a-r};r=d}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=hx(c)}}function mx(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?mx(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function gx(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=hd(r.document);a instanceof r.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)r=a.contentWindow;else break;a=hd(r.document)}return a}function Sm(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var bP=kr&&"documentMode"in document&&11>=document.documentMode,To=null,_m=null,oc=null,km=!1;function yx(r,a,c){var d=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;km||To==null||To!==hd(d)||(d=To,"selectionStart"in d&&Sm(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),oc&&ac(oc,d)||(oc=d,d=cf(_m,"onSelect"),0<d.length&&(a=new vd("onSelect","select",null,a,c),r.push({event:a,listeners:d}),a.target=To)))}function da(r,a){var c={};return c[r.toLowerCase()]=a.toLowerCase(),c["Webkit"+r]="webkit"+a,c["Moz"+r]="moz"+a,c}var Ro={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},Am={},vx={};kr&&(vx=document.createElement("div").style,"AnimationEvent"in window||(delete Ro.animationend.animation,delete Ro.animationiteration.animation,delete Ro.animationstart.animation),"TransitionEvent"in window||delete Ro.transitionend.transition);function fa(r){if(Am[r])return Am[r];if(!Ro[r])return r;var a=Ro[r],c;for(c in a)if(a.hasOwnProperty(c)&&c in vx)return Am[r]=a[c];return r}var bx=fa("animationend"),wx=fa("animationiteration"),xx=fa("animationstart"),wP=fa("transitionrun"),xP=fa("transitionstart"),SP=fa("transitioncancel"),Sx=fa("transitionend"),_x=new Map,Cm="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(" ");Cm.push("scrollEnd");function Bs(r,a){_x.set(r,a),ca(a,[r])}var xd=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},xs=[],Oo=0,Em=0;function Sd(){for(var r=Oo,a=Em=Oo=0;a<r;){var c=xs[a];xs[a++]=null;var d=xs[a];xs[a++]=null;var g=xs[a];xs[a++]=null;var v=xs[a];if(xs[a++]=null,d!==null&&g!==null){var A=d.pending;A===null?g.next=g:(g.next=A.next,A.next=g),d.pending=g}v!==0&&kx(c,g,v)}}function _d(r,a,c,d){xs[Oo++]=r,xs[Oo++]=a,xs[Oo++]=c,xs[Oo++]=d,Em|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function Tm(r,a,c,d){return _d(r,a,c,d),kd(r)}function ha(r,a){return _d(r,null,null,a),kd(r)}function kx(r,a,c){r.lanes|=c;var d=r.alternate;d!==null&&(d.lanes|=c);for(var g=!1,v=r.return;v!==null;)v.childLanes|=c,d=v.alternate,d!==null&&(d.childLanes|=c),v.tag===22&&(r=v.stateNode,r===null||r._visibility&1||(g=!0)),r=v,v=v.return;return r.tag===3?(v=r.stateNode,g&&a!==null&&(g=31-ue(c),r=v.hiddenUpdates,d=r[g],d===null?r[g]=[a]:d.push(a),a.lane=c|536870912),v):null}function kd(r){if(50<Rc)throw Rc=0,Lg=null,Error(s(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var jo={};function _P(r,a,c,d){this.tag=r,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 13,790 bytes, line 9
9ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function is(r,a,c,d){return new _P(r,a,c,d)}function Rm(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Ar(r,a){var c=r.alternate;return c===null?(c=is(r.tag,a,r.key,r.mode),c.elementType=r.elementType,c.type=r.type,c.stateNode=r.stateNode,c.alternate=r,r.alternate=c):(c.pendingProps=a,c.type=r.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=r.flags&65011712,c.childLanes=r.childLanes,c.lanes=r.lanes,c.child=r.child,c.memoizedProps=r.memoizedProps,c.memoizedState=r.memoizedState,c.updateQueue=r.updateQueue,a=r.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=r.sibling,c.index=r.index,c.ref=r.ref,c.refCleanup=r.refCleanup,c}function Ax(r,a){r.flags&=65011714;var c=r.alternate;return c===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=c.childLanes,r.lanes=c.lanes,r.child=c.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=c.memoizedProps,r.memoizedState=c.memoizedState,r.updateQueue=c.updateQueue,r.type=c.type,a=c.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Ad(r,a,c,d,g,v){var A=0;if(d=r,typeof r=="function")Rm(r)&&(A=1);else if(typeof r=="string")A=TM(r,c,he.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case $:return r=is(31,c,a,g),r.elementType=$,r.lanes=v,r;case S:return pa(c.children,g,v,a);case _:A=8,g|=24;break;case k:return r=is(12,c,a,g|2),r.elementType=k,r.lanes=v,r;case N:return r=is(13,c,a,g),r.elementType=N,r.lanes=v,r;case P:return r=is(19,c,a,g),r.elementType=P,r.lanes=v,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case R:A=10;break e;case C:A=9;break e;case O:A=11;break e;case D:A=14;break e;case M:A=16,d=null;break e}A=29,c=Error(s(130,r===null?"null":typeof r,"")),d=null}return a=is(A,c,a,g),a.elementType=r,a.type=d,a.lanes=v,a}function pa(r,a,c,d){return r=is(7,r,d,a),r.lanes=c,r}function Om(r,a,c){return r=is(6,r,null,a),r.lanes=c,r}function Cx(r){var a=is(18,null,null,0);return a.stateNode=r,a}function jm(r,a,c){return a=is(4,r.children!==null?r.children:[],r.key,a),a.lanes=c,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var Ex=new WeakMap;function Ss(r,a){if(typeof r=="object"&&r!==null){var c=Ex.get(r);return c!==void 0?c:(a={value:r,source:a,stack:ts(a)},Ex.set(r,a),a)}return{value:r,source:a,stack:ts(a)}}var No=[],Io=0,Cd=null,lc=0,_s=[],ks=0,ui=null,nr=1,sr="";function Cr(r,a){No[Io++]=lc,No[Io++]=Cd,Cd=r,lc=a}function Tx(r,a,c){_s[ks++]=nr,_s[ks++]=sr,_s[ks++]=ui,ui=r;var d=nr;r=sr;var g=32-ue(d)-1;d&=~(1<<g),c+=1;var v=32-ue(a)+g;if(30<v){var A=g-g%5;v=(d&(1<<A)-1).toString(32),d>>=A,g-=A,nr=1<<32-ue(a)+g|c<<g|d,sr=v+r}else nr=1<<v|c<<g|d,sr=r}function Nm(r){r.return!==null&&(Cr(r,1),Tx(r,1,0))}function Im(r){for(;r===Cd;)Cd=No[--Io],No[Io]=null,lc=No[--Io],No[Io]=null;for(;r===ui;)ui=_s[--ks],_s[ks]=null,sr=_s[--ks],_s[ks]=null,nr=_s[--ks],_s[ks]=null}function Rx(r,a){_s[ks++]=nr,_s[ks++]=sr,_s[ks++]=ui,nr=a.id,sr=a.overflow,ui=r}var Sn=null,Nt=null,at=!1,di=null,As=!1,Pm=Error(s(519));function fi(r){var a=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cc(Ss(a,r)),Pm}function Ox(r){var a=r.stateNode,c=r.type,d=r.memoizedProps;switch(a[xn]=r,a[Fn]=d,c){case"dialog":st("cancel",a),st("close",a);break;case"iframe":case"object":case"embed":st("load",a);break;case"video":case"audio":for(c=0;c<jc.length;c++)st(jc[c],a);break;case"source":st("error",a);break;case"img":case"image":case"link":st("error",a),st("load",a);break;case"details":st("toggle",a);break;case"input":st("invalid",a),F0(a,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":st("invalid",a);break;case"textarea":st("invalid",a),q0(a,d.value,d.defaultValue,d.children)}c=d.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||a.textContent===""+c||d.suppressHydrationWarning===!0||G_(a.textContent,c)?(d.popover!=null&&(st("beforetoggle",a),st("toggle",a)),d.onScroll!=null&&st("scroll",a),d.onScrollEnd!=null&&st("scrollend",a),d.onClick!=null&&(a.onclick=_r),a=!0):a=!1,a||fi(r,!0)}function jx(r){for(Sn=r.return;Sn;)switch(Sn.tag){case 5:case 31:case 13:As=!1;return;case 27:case 3:As=!0;return;default:Sn=Sn.return}}function Po(r){if(r!==Sn)return!1;if(!at)return jx(r),at=!0,!1;var a=r.tag,c;if((c=a!==3&&a!==27)&&((c=a===5)&&(c=r.type,c=!(c!=="form"&&c!=="button")||Jg(r.type,r.memoizedProps)),c=!c),c&&Nt&&fi(r),jx(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));Nt=nk(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));Nt=nk(r)}else a===27?(a=Nt,Ci(r.type)?(r=sy,sy=null,Nt=r):Nt=a):Nt=Sn?Es(r.stateNode.nextSibling):null;return!0}function ma(){Nt=Sn=null,at=!1}function Mm(){var r=di;return r!==null&&(Kn===null?Kn=r:Kn.push.apply(Kn,r),di=null),r}function cc(r){di===null?di=[r]:di.push(r)}var Dm=B(null),ga=null,Er=null;function hi(r,a,c){de(Dm,a._currentValue),a._currentValue=c}function Tr(r){r._currentValue=Dm.current,ee(Dm)}function Lm(r,a,c){for(;r!==null;){var d=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),r===c)break;r=r.return}}function Bm(r,a,c,d){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var v=g.dependencies;if(v!==null){var A=g.child;v=v.firstContext;e:for(;v!==null;){var j=v;v=g;for(var U=0;U<a.length;U++)if(j.context===a[U]){v.lanes|=c,j=v.alternate,j!==null&&(j.lanes|=c),Lm(v.return,c,r),d||(A=null);break e}v=j.next}}else if(g.tag===18){if(A=g.return,A===null)throw Error(s(341));A.lanes|=c,v=A.alternate,v!==null&&(v.lanes|=c),Lm(A,c,r),A=null}else A=g.child;if(A!==null)A.return=g;else for(A=g;A!==null;){if(A===r){A=null;break}if(g=A.sibling,g!==null){g.return=A.return,A=g;break}A=A.return}g=A}}function Mo(r,a,c,d){r=null;for(var g=a,v=!1;g!==null;){if(!v){if((g.flags&524288)!==0)v=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var A=g.alternate;if(A===null)throw Error(s(387));if(A=A.memoizedProps,A!==null){var j=g.type;rs(g.pendingProps.value,A.value)||(r!==null?r.push(j):r=[j])}}else if(g===ye.current){if(A=g.alternate,A===null)throw Error(s(387));A.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(Dc):r=[Dc])}g=g.return}r!==null&&Bm(a,r,c,d),a.flags|=262144}function Ed(r){for(r=r.firstContext;r!==null;){if(!rs(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ya(r){ga=r,Er=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function _n(r){return Nx(ga,r)}function Td(r,a){return ga===null&&ya(r),Nx(r,a)}function Nx(r,a){var c=a._currentValue;if(a={context:a,memoizedValue:c,next:null},Er===null){if(r===null)throw Error(s(308));Er=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else Er=Er.next=a;return c}var kP=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(c,d){r.push(d)}};this.abort=function(){a.aborted=!0,r.forEach(function(c){return c()})}},AP=e.unstable_scheduleCallback,CP=e.unstable_NormalPriority,Xt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Um(){return{controller:new kP,data:new Map,refCount:0}}function uc(r){r.refCount--,r.refCount===0&&AP(CP,function(){r.controller.abort()})}var dc=null,zm=0,Do=0,Lo=null;function EP(r,a){if(dc===null){var c=dc=[];zm=0,Do=Fg(),Lo={status:"pending",value:void 0,then:function(d){c.push(d)}}}return zm++,a.then(Ix,Ix),a}function Ix(){if(--zm===0&&dc!==null){Lo!==null&&(Lo.status="fulfilled");var r=dc;dc=null,Do=0,Lo=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function TP(r,a){var c=[],d={status:"pending",value:null,reason:null,then:function(g){c.push(g)}};return r.then(function(){d.status="fulfilled",d.value=a;for(var g=0;g<c.length;g++)(0,c[g])(a)},function(g){for(d.status="rejected",d.reason=g,g=0;g<c.length;g++)(0,c[g])(void 0)}),d}var Px=V.S;V.S=function(r,a){y_=an(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&EP(r,a),Px!==null&&Px(r,a)};var va=B(null);function Vm(){var r=va.current;return r!==null?r:_t.pooledCache}function Rd(r,a){a===null?de(va,va.current):de(va,a.pool)}function Mx(){var r=Vm();return r===null?null:{parent:Xt._currentValue,pool:r}}var Bo=Error(s(460)),$m=Error(s(474)),Od=Error(s(542)),jd={then:function(){}};function Dx(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Lx(r,a,c){switch(c=r[c],c===void 0?r.push(a):c!==a&&(a.then(_r,_r),a=c),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Ux(r),r;default:if(typeof a.status=="string")a.then(_r,_r);else{if(r=_t,r!==null&&100<r.shellSuspendCounter)throw Error(s(482));r=a,r.status="pending",r.then(function(d){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=d}},function(d){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=d}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Ux(r),r}throw wa=a,Bo}}function ba(r){try{var a=r._init;return a(r._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(wa=c,Bo):c}}var wa=null;function Bx(){if(wa===null)throw Error(s(459));var r=wa;return wa=null,r}function Ux(r){if(r===Bo||r===Od)throw Error(s(483))}var Uo=null,fc=0;function Nd(r){var a=fc;return fc+=1,Uo===null&&(Uo=[]),Lx(Uo,r,a)}function hc(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Id(r,a){throw a.$$typeof===b?Error(s(525)):(r=Object.prototype.toString.call(a),Error(s(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function zx(r){function a(F,z){if(r){var W=F.deletions;W===null?(F.deletions=[z],F.flags|=16):W.push(z)}}function c(F,z){if(!r)return null;for(;z!==null;)a(F,z),z=z.sibling;return null}function d(F){for(var z=new Map;F!==null;)F.key!==null?z.set(F.key,F):z.set(F.index,F),F=F.sibling;return z}function g(F,z){return F=Ar(F,z),F.index=0,F.sibling=null,F}function v(F,z,W){return F.index=W,r?(W=F.alternate,W!==null?(W=W.index,W<z?(F.flags|=67108866,z):W):(F.flags|=67108866,z)):(F.flags|=1048576,z)}function A(F){return r&&F.alternate===null&&(F.flags|=67108866),F}function j(F,z,W,se){return z===null||z.tag!==6?(z=Om(W,F.mode,se),z.return=F,z):(z=g(z,W),z.return=F,z)}function U(F,z,W,se){var Pe=W.type;return Pe===S?ne(F,z,W.props.children,se,W.key):z!==null&&(z.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===M&&ba(Pe)===z.type)?(z=g(z,W.props),hc(z,W),z.return=F,z):(z=Ad(W.type,W.key,W.props,null,F.mode,se),hc(z,W),z.return=F,z)}function G(F,z,W,se){return z===null||z.tag!==4||z.stateNode.containerInfo!==W.containerInfo||z.stateNode.implementation!==W.implementation?(z=jm(W,F.mode,se),z.return=F,z):(z=g(z,W.children||[]),z.return=F,z)}function ne(F,z,W,se,Pe){return z===null||z.tag!==7?(z=pa(W,F.mode,se,Pe),z.return=F,z):(z=g(z,W),z.return=F,z)}function re(F,z,W){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Om(""+z,F.mode,W),z.return=F,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case w:return W=Ad(z.type,z.key,z.props,null,F.mode,W),hc(W,z),W.return=F,W;case x:return z=jm(z,F.mode,W),z.return=F,z;case M:return z=ba(z),re(F,z,W)}if(be(z)||X(z))return z=pa(z,F.mode,W,null),z.return=F,z;if(typeof z.then=="function")return re(F,Nd(z),W);if(z.$$typeof===R)return re(F,Td(F,z),W);Id(F,z)}return null}function Z(F,z,W,se){var Pe=z!==null?z.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return Pe!==null?null:j(F,z,""+W,se);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case w:return W.key===Pe?U(F,z,W,se):null;case x:return W.key===Pe?G(F,z,W,se):null;case M:return W=ba(W),Z(F,z,W,se)}if(be(W)||X(W))return Pe!==null?null:ne(F,z,W,se,null);if(typeof W.then=="function")return Z(F,z,Nd(W),se);if(W.$$typeof===R)return Z(F,z,Td(F,W),se);Id(F,W)}return null}function J(F,z,W,se,Pe){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return F=F.get(W)||null,j(z,F,""+se,Pe);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case w:return F=F.get(se.key===null?W:se.key)||null,U(z,F,se,Pe);case x:return F=F.get(se.key===null?W:se.key)||null,G(z,F,se,Pe);case M:return se=ba(se),J(F,z,W,se,Pe)}if(be(se)||X(se))return F=F.get(W)||null,ne(z,F,se,Pe,null);if(typeof se.then=="function")return J(F,z,W,Nd(se),Pe);if(se.$$typeof===R)return J(F,z,W,Td(z,se),Pe);Id(z,se)}return null}function Te(F,z,W,se){for(var Pe=null,ut=null,Ne=z,Je=z=0,it=null;Ne!==null&&Je<W.length;Je++){Ne.index>Je?(it=Ne,Ne=null):it=Ne.sibling;var dt=Z(F,Ne,W[Je],se);if(dt===null){Ne===null&&(Ne=it);break}r&&Ne&&dt.alternate===null&&a(F,Ne),z=v(dt,z,Je),ut===null?Pe=dt:ut.sibling=dt,ut=dt,Ne=it}if(Je===W.length)return c(F,Ne),at&&Cr(F,Je),Pe;if(Ne===null){for(;Je<W.length;Je++)Ne=re(F,W[Je],se),Ne!==null&&(z=v(Ne,z,Je),ut===null?Pe=Ne:ut.sibling=Ne,ut=Ne);return at&&Cr(F,Je),Pe}for(Ne=d(Ne);Je<W.length;Je++)it=J(Ne,F,Je,W[Je],se),it!==null&&(r&&it.alternate!==null&&Ne.delete(it.key===null?Je:it.key),z=v(it,z,Je),ut===null?Pe=it:ut.sibling=it,ut=it);return r&&Ne.forEach(function(ji){return a(F,ji)}),at&&Cr(F,Je),Pe}function Le(F,z,W,se){if(W==null)throw Error(s(151));for(var Pe=null,ut=null,Ne=z,Je=z=0,it=null,dt=W.next();Ne!==null&&!dt.done;Je++,dt=W.next()){Ne.index>Je?(it=Ne,Ne=null):it=Ne.sibling;var ji=Z(F,Ne,dt.value,se);
vendor: 5,011 bytes, line 9
9if(ji===null){Ne===null&&(Ne=it);break}r&&Ne&&ji.alternate===null&&a(F,Ne),z=v(ji,z,Je),ut===null?Pe=ji:ut.sibling=ji,ut=ji,Ne=it}if(dt.done)return c(F,Ne),at&&Cr(F,Je),Pe;if(Ne===null){for(;!dt.done;Je++,dt=W.next())dt=re(F,dt.value,se),dt!==null&&(z=v(dt,z,Je),ut===null?Pe=dt:ut.sibling=dt,ut=dt);return at&&Cr(F,Je),Pe}for(Ne=d(Ne);!dt.done;Je++,dt=W.next())dt=J(Ne,F,Je,dt.value,se),dt!==null&&(r&&dt.alternate!==null&&Ne.delete(dt.key===null?Je:dt.key),z=v(dt,z,Je),ut===null?Pe=dt:ut.sibling=dt,ut=dt);return r&&Ne.forEach(function(UM){return a(F,UM)}),at&&Cr(F,Je),Pe}function St(F,z,W,se){if(typeof W=="object"&&W!==null&&W.type===S&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case w:e:{for(var Pe=W.key;z!==null;){if(z.key===Pe){if(Pe=W.type,Pe===S){if(z.tag===7){c(F,z.sibling),se=g(z,W.props.children),se.return=F,F=se;break e}}else if(z.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===M&&ba(Pe)===z.type){c(F,z.sibling),se=g(z,W.props),hc(se,W),se.return=F,F=se;break e}c(F,z);break}else a(F,z);z=z.sibling}W.type===S?(se=pa(W.props.children,F.mode,se,W.key),se.return=F,F=se):(se=Ad(W.type,W.key,W.props,null,F.mode,se),hc(se,W),se.return=F,F=se)}return A(F);case x:e:{for(Pe=W.key;z!==null;){if(z.key===Pe)if(z.tag===4&&z.stateNode.containerInfo===W.containerInfo&&z.stateNode.implementation===W.implementation){c(F,z.sibling),se=g(z,W.children||[]),se.return=F,F=se;break e}else{c(F,z);break}else a(F,z);z=z.sibling}se=jm(W,F.mode,se),se.return=F,F=se}return A(F);case M:return W=ba(W),St(F,z,W,se)}if(be(W))return Te(F,z,W,se);if(X(W)){if(Pe=X(W),typeof Pe!="function")throw Error(s(150));return W=Pe.call(W),Le(F,z,W,se)}if(typeof W.then=="function")return St(F,z,Nd(W),se);if(W.$$typeof===R)return St(F,z,Td(F,W),se);Id(F,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,z!==null&&z.tag===6?(c(F,z.sibling),se=g(z,W),se.return=F,F=se):(c(F,z),se=Om(W,F.mode,se),se.return=F,F=se),A(F)):c(F,z)}return function(F,z,W,se){try{fc=0;var Pe=St(F,z,W,se);return Uo=null,Pe}catch(Ne){if(Ne===Bo||Ne===Od)throw Ne;var ut=is(29,Ne,null,F.mode);return ut.lanes=se,ut.return=F,ut}}}var xa=zx(!0),Vx=zx(!1),pi=!1;function Fm(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hm(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function mi(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function gi(r,a,c){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(pt&2)!==0){var g=d.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),d.pending=a,a=kd(r),kx(r,null,c),a}return _d(r,d,a,c),kd(r)}function pc(r,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194048)!==0)){var d=a.lanes;d&=r.pendingLanes,c|=d,a.lanes=c,N0(r,c)}}function qm(r,a){var c=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,c===d)){var g=null,v=null;if(c=c.firstBaseUpdate,c!==null){do{var A={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};v===null?g=v=A:v=v.next=A,c=c.next}while(c!==null);v===null?g=v=a:v=v.next=a}else g=v=a;c={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:d.shared,callbacks:d.callbacks},r.updateQueue=c;return}r=c.lastBaseUpdate,r===null?c.firstBaseUpdate=a:r.next=a,c.lastBaseUpdate=a}var Wm=!1;function mc(){if(Wm){var r=Lo;if(r!==null)throw r}}function gc(r,a,c,d){Wm=!1;var g=r.updateQueue;pi=!1;var v=g.firstBaseUpdate,A=g.lastBaseUpdate,j=g.shared.pending;if(j!==null){g.shared.pending=null;var U=j,G=U.next;U.next=null,A===null?v=G:A.next=G,A=U;var ne=r.alternate;ne!==null&&(ne=ne.updateQueue,j=ne.lastBaseUpdate,j!==A&&(j===null?ne.firstBaseUpdate=G:j.next=G,ne.lastBaseUpdate=U))}if(v!==null){var re=g.baseState;A=0,ne=G=U=null,j=v;do{var Z=j.lane&-536870913,J=Z!==j.lane;if(J?(rt&Z)===Z:(d&Z)===Z){Z!==0&&Z===Do&&(Wm=!0),ne!==null&&(ne=ne.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var Te=r,Le=j;Z=a;var St=c;switch(Le.tag){case 1:if(Te=Le.payload,typeof Te=="function"){re=Te.call(St,re,Z);break e}re=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Le.payload,Z=typeof Te=="function"?Te.call(St,re,Z):Te,Z==null)break e;re=m({},re,Z);break e;case 2:pi=!0}}Z=j.callback,Z!==null&&(r.flags|=64,J&&(r.flags|=8192),J=g.callbacks,J===null?g.callbacks=[Z]:J.push(Z))}else J={lane:Z,tag:j.tag,payload:j.payload,callback:j.callback,next:null},ne===null?(G=ne=J,U=re):ne=ne.next=J,A|=Z;if(j=j.next,j===null){if(j=g.shared.pending,j===null)break;J=j,j=J.next,J.next=null,g.lastBaseUpdate=J,g.shared.pending=null}}while(!0);ne===null&&(U=re),g.baseState=U,g.firstBaseUpdate=G,g.lastBaseUpdate=ne,v===null&&(g.shared.lanes=0),xi|=A,r.lanes=A,r.memoizedState=re}}function $x(r,a){if(typeof r!="function")throw Error(s(191,r));r.call(a)}function Fx(r,a){var c=r.callbacks;
vendor: 4,101 bytes, line 9
9if(c!==null)for(r.callbacks=null,r=0;r<c.length;r++)$x(c[r],a)}var zo=B(null),Pd=B(0);function Hx(r,a){r=Lr,de(Pd,r),de(zo,a),Lr=r|a.baseLanes}function Gm(){de(Pd,Lr),de(zo,zo.current)}function Km(){Lr=Pd.current,ee(zo),ee(Pd)}var as=B(null),Cs=null;function yi(r){var a=r.alternate;de(Gt,Gt.current&1),de(as,r),Cs===null&&(a===null||zo.current!==null||a.memoizedState!==null)&&(Cs=r)}function Ym(r){de(Gt,Gt.current),de(as,r),Cs===null&&(Cs=r)}function qx(r){r.tag===22?(de(Gt,Gt.current),de(as,r),Cs===null&&(Cs=r)):vi()}function vi(){de(Gt,Gt.current),de(as,as.current)}function os(r){ee(as),Cs===r&&(Cs=null),ee(Gt)}var Gt=B(0);function Md(r){for(var a=r;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||ty(c)||ny(c)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Rr=0,Ze=null,wt=null,Jt=null,Dd=!1,Vo=!1,Sa=!1,Ld=0,yc=0,$o=null,RP=0;function Ut(){throw Error(s(321))}function Zm(r,a){if(a===null)return!1;for(var c=0;c<a.length&&c<r.length;c++)if(!rs(r[c],a[c]))return!1;return!0}function Xm(r,a,c,d,g,v){return Rr=v,Ze=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,V.H=r===null||r.memoizedState===null?TS:fg,Sa=!1,v=c(d,g),Sa=!1,Vo&&(v=Gx(a,c,d,g)),Wx(r),v}function Wx(r){V.H=wc;var a=wt!==null&&wt.next!==null;if(Rr=0,Jt=wt=Ze=null,Dd=!1,yc=0,$o=null,a)throw Error(s(300));r===null||Qt||(r=r.dependencies,r!==null&&Ed(r)&&(Qt=!0))}function Gx(r,a,c,d){Ze=r;var g=0;do{if(Vo&&($o=null),yc=0,Vo=!1,25<=g)throw Error(s(301));if(g+=1,Jt=wt=null,r.updateQueue!=null){var v=r.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}V.H=RS,v=a(c,d)}while(Vo);return v}function OP(){var r=V.H,a=r.useState()[0];return a=typeof a.then=="function"?vc(a):a,r=r.useState()[0],(wt!==null?wt.memoizedState:null)!==r&&(Ze.flags|=1024),a}function Jm(){var r=Ld!==0;return Ld=0,r}function Qm(r,a,c){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~c}function eg(r){if(Dd){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Dd=!1}Rr=0,Jt=wt=Ze=null,Vo=!1,yc=Ld=0,$o=null}function Mn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?Ze.memoizedState=Jt=r:Jt=Jt.next=r,Jt}function Kt(){if(wt===null){var r=Ze.alternate;r=r!==null?r.memoizedState:null}else r=wt.next;var a=Jt===null?Ze.memoizedState:Jt.next;if(a!==null)Jt=a,wt=r;else{if(r===null)throw Ze.alternate===null?Error(s(467)):Error(s(310));wt=r,r={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Jt===null?Ze.memoizedState=Jt=r:Jt=Jt.next=r}return Jt}function Bd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vc(r){var a=yc;return yc+=1,$o===null&&($o=[]),r=Lx($o,r,a),a=Ze,(Jt===null?a.memoizedState:Jt.next)===null&&(a=a.alternate,V.H=a===null||a.memoizedState===null?TS:fg),r}function Ud(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return vc(r);if(r.$$typeof===R)return _n(r)}throw Error(s(438,String(r)))}function tg(r){var a=null,c=Ze.updateQueue;if(c!==null&&(a=c.memoCache),a==null){var d=Ze.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(a={data:d.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),c===null&&(c=Bd(),Ze.updateQueue=c),c.memoCache=a,c=a.data[a.index],c===void 0)for(c=a.data[a.index]=Array(r),d=0;d<r;d++)c[d]=K;return a.index++,c}function Or(r,a){return typeof a=="function"?a(r):a}function zd(r){var a=Kt();return ng(a,wt,r)}function ng(r,a,c){var d=r.queue;if(d===null)throw Error(s(311));d.lastRenderedReducer=c;var g=r.baseQueue,v=d.pending;if(v!==null){if(g!==null){var A=g.next;
vendor: 9,076 bytes, line 9
9g.next=v.next,v.next=A}a.baseQueue=g=v,d.pending=null}if(v=r.baseState,g===null)r.memoizedState=v;else{a=g.next;var j=A=null,U=null,G=a,ne=!1;do{var re=G.lane&-536870913;if(re!==G.lane?(rt&re)===re:(Rr&re)===re){var Z=G.revertLane;if(Z===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),re===Do&&(ne=!0);else if((Rr&Z)===Z){G=G.next,Z===Do&&(ne=!0);continue}else re={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},U===null?(j=U=re,A=v):U=U.next=re,Ze.lanes|=Z,xi|=Z;re=G.action,Sa&&c(v,re),v=G.hasEagerState?G.eagerState:c(v,re)}else Z={lane:re,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},U===null?(j=U=Z,A=v):U=U.next=Z,Ze.lanes|=re,xi|=re;G=G.next}while(G!==null&&G!==a);if(U===null?A=v:U.next=j,!rs(v,r.memoizedState)&&(Qt=!0,ne&&(c=Lo,c!==null)))throw c;r.memoizedState=v,r.baseState=A,r.baseQueue=U,d.lastRenderedState=v}return g===null&&(d.lanes=0),[r.memoizedState,d.dispatch]}function sg(r){var a=Kt(),c=a.queue;if(c===null)throw Error(s(311));c.lastRenderedReducer=r;var d=c.dispatch,g=c.pending,v=a.memoizedState;if(g!==null){c.pending=null;var A=g=g.next;do v=r(v,A.action),A=A.next;while(A!==g);rs(v,a.memoizedState)||(Qt=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),c.lastRenderedState=v}return[v,d]}function Kx(r,a,c){var d=Ze,g=Kt(),v=at;if(v){if(c===void 0)throw Error(s(407));c=c()}else c=a();var A=!rs((wt||g).memoizedState,c);if(A&&(g.memoizedState=c,Qt=!0),g=g.queue,ag(Xx.bind(null,d,g,r),[r]),g.getSnapshot!==a||A||Jt!==null&&Jt.memoizedState.tag&1){if(d.flags|=2048,Fo(9,{destroy:void 0},Zx.bind(null,d,g,c,a),null),_t===null)throw Error(s(349));v||(Rr&127)!==0||Yx(d,a,c)}return c}function Yx(r,a,c){r.flags|=16384,r={getSnapshot:a,value:c},a=Ze.updateQueue,a===null?(a=Bd(),Ze.updateQueue=a,a.stores=[r]):(c=a.stores,c===null?a.stores=[r]:c.push(r))}function Zx(r,a,c,d){a.value=c,a.getSnapshot=d,Jx(a)&&Qx(r)}function Xx(r,a,c){return c(function(){Jx(a)&&Qx(r)})}function Jx(r){var a=r.getSnapshot;r=r.value;try{var c=a();return!rs(r,c)}catch{return!0}}function Qx(r){var a=ha(r,2);a!==null&&Yn(a,r,2)}function rg(r){var a=Mn();if(typeof r=="function"){var c=r;if(r=c(),Sa){ve(!0);try{c()}finally{ve(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Or,lastRenderedState:r},a}function eS(r,a,c,d){return r.baseState=c,ng(r,wt,typeof d=="function"?d:Or)}function jP(r,a,c,d,g){if(Fd(r))throw Error(s(485));if(r=a.action,r!==null){var v={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){v.listeners.push(A)}};V.T!==null?c(!0):v.isTransition=!1,d(v),c=a.pending,c===null?(v.next=a.pending=v,tS(a,v)):(v.next=c.next,a.pending=c.next=v)}}function tS(r,a){var c=a.action,d=a.payload,g=r.state;if(a.isTransition){var v=V.T,A={};V.T=A;try{var j=c(g,d),U=V.S;U!==null&&U(A,j),nS(r,a,j)}catch(G){ig(r,a,G)}finally{v!==null&&A.types!==null&&(v.types=A.types),V.T=v}}else try{v=c(g,d),nS(r,a,v)}catch(G){ig(r,a,G)}}function nS(r,a,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(d){sS(r,a,d)},function(d){return ig(r,a,d)}):sS(r,a,c)}function sS(r,a,c){a.status="fulfilled",a.value=c,rS(a),r.state=c,a=r.pending,a!==null&&(c=a.next,c===a?r.pending=null:(c=c.next,a.next=c,tS(r,c)))}function ig(r,a,c){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do a.status="rejected",a.reason=c,rS(a),a=a.next;while(a!==d)}r.action=null}function rS(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function iS(r,a){return a}function aS(r,a){if(at){var c=_t.formState;if(c!==null){e:{var d=Ze;if(at){if(Nt){t:{for(var g=Nt,v=As;g.nodeType!==8;){if(!v){g=null;break t}if(g=Es(g.nextSibling),g===null){g=null;break t}}v=g.data,g=v==="F!"||v==="F"?g:null}if(g){Nt=Es(g.nextSibling),d=g.data==="F!";break e}}fi(d)}d=!1}d&&(a=c[0])}}return c=Mn(),c.memoizedState=c.baseState=a,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:iS,lastRenderedState:a},c.queue=d,c=AS.bind(null,Ze,d),d.dispatch=c,d=rg(!1),v=dg.bind(null,Ze,!1,d.queue),d=Mn(),g={state:a,dispatch:null,action:r,pending:null},d.queue=g,c=jP.bind(null,Ze,g,v,c),g.dispatch=c,d.memoizedState=r,[a,c,!1]}function oS(r){var a=Kt();return lS(a,wt,r)}function lS(r,a,c){if(a=ng(r,a,iS)[0],r=zd(Or)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var d=vc(a)}catch(A){throw A===Bo?Od:A}else d=a;a=Kt();var g=a.queue,v=g.dispatch;return c!==a.memoizedState&&(Ze.flags|=2048,Fo(9,{destroy:void 0},NP.bind(null,g,c),null)),[d,v,r]}function NP(r,a){r.action=a}function cS(r){var a=Kt(),c=wt;if(c!==null)return lS(a,c,r);Kt(),a=a.memoizedState,c=Kt();var d=c.queue.dispatch;return c.memoizedState=r,[a,d,!1]}function Fo(r,a,c,d){return r={tag:r,create:c,deps:d,inst:a,next:null},a=Ze.updateQueue,a===null&&(a=Bd(),Ze.updateQueue=a),c=a.lastEffect,c===null?a.lastEffect=r.next=r:(d=c.next,c.next=r,r.next=d,a.lastEffect=r),r}function uS(){return Kt().memoizedState}function Vd(r,a,c,d){var g=Mn();Ze.flags|=r,g.memoizedState=Fo(1|a,{destroy:void 0},c,d===void 0?null:d)}function $d(r,a,c,d){var g=Kt();d=d===void 0?null:d;var v=g.memoizedState.inst;wt!==null&&d!==null&&Zm(d,wt.memoizedState.deps)?g.memoizedState=Fo(a,v,c,d):(Ze.flags|=r,g.memoizedState=Fo(1|a,v,c,d))}function dS(r,a){Vd(8390656,8,r,a)}function ag(r,a){$d(2048,8,r,a)}function IP(r){Ze.flags|=4;var a=Ze.updateQueue;if(a===null)a=Bd(),Ze.updateQueue=a,a.events=[r];else{var c=a.events;c===null?a.events=[r]:c.push(r)}}function fS(r){var a=Kt().memoizedState;return IP({ref:a,nextImpl:r}),function(){if((pt&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}function hS(r,a){return $d(4,2,r,a)}function pS(r,a){return $d(4,4,r,a)}function mS(r,a){if(typeof a=="function"){r=r();var c=a(r);return function(){typeof c=="function"?c():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function gS(r,a,c){c=c!=null?c.concat([r]):null,$d(4,4,mS.bind(null,a,r),c)}function og(){}function yS(r,a){var c=Kt();a=a===void 0?null:a;var d=c.memoizedState;return a!==null&&Zm(a,d[1])?d[0]:(c.memoizedState=[r,a],r)}function vS(r,a){var c=Kt();a=a===void 0?null:a;var d=c.memoizedState;if(a!==null&&Zm(a,d[1]))return d[0];if(d=r(),Sa){ve(!0);try{r()}finally{ve(!1)}}return c.memoizedState=[d,a],d}function lg(r,a,c){return c===void 0||(Rr&1073741824)!==0&&(rt&261930)===0?r.memoizedState=a:(r.memoizedState=c,r=b_(),Ze.lanes|=r,xi|=r,c)}function bS(r,a,c,d){return rs(c,a)?c:zo.current!==null?(r=lg(r,c,d),rs(r,a)||(Qt=!0),r):(Rr&42)===0||(Rr&1073741824)!==0&&(rt&261930)===0?(Qt=!0,r.memoizedState=c):(r=b_(),Ze.lanes|=r,xi|=r,a)}function wS(r,a,c,d,g){var v=Q.p;Q.p=v!==0&&8>v?v:8;var A=V.T,j={};V.T=j,dg(r,!1,a,c);try{var U=g(),G=V.S;if(G!==null&&G(j,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var ne=TP(U,d);bc(r,a,ne,us(r))}else bc(r,a,d,us(r))}catch(re){bc(r,a,{then:function(){},status:"rejected",reason:re},us())}finally{Q.p=v,A!==null&&j.types!==null&&(A.types=j.types),V.T=A}}function PP(){}function cg(r,a,c,d){if(r.tag!==5)throw Error(s(476));var g=xS(r).queue;wS(r,g,a,te,c===null?PP:function(){return SS(r),c(d)})}function xS(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Or,lastRenderedState:te},next:null};var c={};return a.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Or,lastRenderedState:c},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function SS(r){var a=xS(r);a.next===null&&(a=r.alternate.memoizedState),bc(r,a.next.queue,{},us())}function ug(){return _n(Dc)}function _S(){return Kt().memoizedState}function kS(){return Kt().memoizedState}function MP(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var c=us();r=mi(c);var d=gi(a,r,c);d!==null&&(Yn(d,a,c),pc(d,a,c)),a={cache:Um()},r.payload=a;return}a=a.return}}function DP(r,a,c){var d=us();c={lane:d,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Fd(r)?CS(a,c):(c=Tm(r,a,c,d),c!==null&&(Yn(c,r,d),ES(c,a,d)))}function AS(r,a,c){var d=us();bc(r,a,c,d)}function bc(r,a,c,d){var g={lane:d,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(Fd(r))CS(a,g);else{var v=r.alternate;if(r.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var A=a.lastRenderedState,j=v(A,c);if(g.hasEagerState=!0,g.eagerState=j,rs(j,A))return _d(r,a,g,0),_t===null&&Sd(),!1}catch{}if(c=Tm(r,a,g,d),c!==null)return Yn(c,r,d),ES(c,a,d),!0}return!1}function dg(r,a,c,d){if(d={lane:2,revertLane:Fg(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Fd(r)){if(a)throw Error(s(479))}else a=Tm(r,c,d,2),a!==null&&Yn(a,r,2)}function Fd(r){var a=r.alternate;return r===Ze||a!==null&&a===Ze}function CS(r,a){Vo=Dd=!0;
vendor: 4,865 bytes, line 9
9var c=r.pending;c===null?a.next=a:(a.next=c.next,c.next=a),r.pending=a}function ES(r,a,c){if((c&4194048)!==0){var d=a.lanes;d&=r.pendingLanes,c|=d,a.lanes=c,N0(r,c)}}var wc={readContext:_n,use:Ud,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};wc.useEffectEvent=Ut;var TS={readContext:_n,use:Ud,useCallback:function(r,a){return Mn().memoizedState=[r,a===void 0?null:a],r},useContext:_n,useEffect:dS,useImperativeHandle:function(r,a,c){c=c!=null?c.concat([r]):null,Vd(4194308,4,mS.bind(null,a,r),c)},useLayoutEffect:function(r,a){return Vd(4194308,4,r,a)},useInsertionEffect:function(r,a){Vd(4,2,r,a)},useMemo:function(r,a){var c=Mn();a=a===void 0?null:a;var d=r();if(Sa){ve(!0);try{r()}finally{ve(!1)}}return c.memoizedState=[d,a],d},useReducer:function(r,a,c){var d=Mn();if(c!==void 0){var g=c(a);if(Sa){ve(!0);try{c(a)}finally{ve(!1)}}}else g=a;return d.memoizedState=d.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},d.queue=r,r=r.dispatch=DP.bind(null,Ze,r),[d.memoizedState,r]},useRef:function(r){var a=Mn();return r={current:r},a.memoizedState=r},useState:function(r){r=rg(r);var a=r.queue,c=AS.bind(null,Ze,a);return a.dispatch=c,[r.memoizedState,c]},useDebugValue:og,useDeferredValue:function(r,a){var c=Mn();return lg(c,r,a)},useTransition:function(){var r=rg(!1);return r=wS.bind(null,Ze,r.queue,!0,!1),Mn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,c){var d=Ze,g=Mn();if(at){if(c===void 0)throw Error(s(407));c=c()}else{if(c=a(),_t===null)throw Error(s(349));(rt&127)!==0||Yx(d,a,c)}g.memoizedState=c;var v={value:c,getSnapshot:a};return g.queue=v,dS(Xx.bind(null,d,v,r),[r]),d.flags|=2048,Fo(9,{destroy:void 0},Zx.bind(null,d,v,c,a),null),c},useId:function(){var r=Mn(),a=_t.identifierPrefix;if(at){var c=sr,d=nr;c=(d&~(1<<32-ue(d)-1)).toString(32)+c,a="_"+a+"R_"+c,c=Ld++,0<c&&(a+="H"+c.toString(32)),a+="_"}else c=RP++,a="_"+a+"r_"+c.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:ug,useFormState:aS,useActionState:aS,useOptimistic:function(r){var a=Mn();a.memoizedState=a.baseState=r;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=c,a=dg.bind(null,Ze,!0,c),c.dispatch=a,[r,a]},useMemoCache:tg,useCacheRefresh:function(){return Mn().memoizedState=MP.bind(null,Ze)},useEffectEvent:function(r){var a=Mn(),c={impl:r};return a.memoizedState=c,function(){if((pt&2)!==0)throw Error(s(440));return c.impl.apply(void 0,arguments)}}},fg={readContext:_n,use:Ud,useCallback:yS,useContext:_n,useEffect:ag,useImperativeHandle:gS,useInsertionEffect:hS,useLayoutEffect:pS,useMemo:vS,useReducer:zd,useRef:uS,useState:function(){return zd(Or)},useDebugValue:og,useDeferredValue:function(r,a){var c=Kt();return bS(c,wt.memoizedState,r,a)},useTransition:function(){var r=zd(Or)[0],a=Kt().memoizedState;return[typeof r=="boolean"?r:vc(r),a]},useSyncExternalStore:Kx,useId:_S,useHostTransitionStatus:ug,useFormState:oS,useActionState:oS,useOptimistic:function(r,a){var c=Kt();return eS(c,wt,r,a)},useMemoCache:tg,useCacheRefresh:kS};fg.useEffectEvent=fS;var RS={readContext:_n,use:Ud,useCallback:yS,useContext:_n,useEffect:ag,useImperativeHandle:gS,useInsertionEffect:hS,useLayoutEffect:pS,useMemo:vS,useReducer:sg,useRef:uS,useState:function(){return sg(Or)},useDebugValue:og,useDeferredValue:function(r,a){var c=Kt();return wt===null?lg(c,r,a):bS(c,wt.memoizedState,r,a)},useTransition:function(){var r=sg(Or)[0],a=Kt().memoizedState;return[typeof r=="boolean"?r:vc(r),a]},useSyncExternalStore:Kx,useId:_S,useHostTransitionStatus:ug,useFormState:cS,useActionState:cS,useOptimistic:function(r,a){var c=Kt();return wt!==null?eS(c,wt,r,a):(c.baseState=r,[r,c.queue.dispatch])},useMemoCache:tg,useCacheRefresh:kS};RS.useEffectEvent=fS;function hg(r,a,c,d){a=r.memoizedState,c=c(d,a),c=c==null?a:m({},a,c),r.memoizedState=c,r.lanes===0&&(r.updateQueue.baseState=c)}var pg={enqueueSetState:function(r,a,c){r=r._reactInternals;var d=us(),g=mi(d);g.payload=a,c!=null&&(g.callback=c),a=gi(r,g,d),a!==null&&(Yn(a,r,d),pc(a,r,d))},enqueueReplaceState:function(r,a,c){r=r._reactInternals;var d=us(),g=mi(d);g.tag=1,g.payload=a,c!=null&&(g.callback=c),a=gi(r,g,d),a!==null&&(Yn(a,r,d),pc(a,r,d))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var c=us(),d=mi(c);d.tag=2,a!=null&&(d.callback=a),a=gi(r,d,c),a!==null&&(Yn(a,r,c),pc(a,r,c))}};function OS(r,a,c,d,g,v,A){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,v,A):a.prototype&&a.prototype.isPureReactComponent?!ac(c,d)||!ac(g,v):!0}
vendor: 13,025 bytes, line 9
9function jS(r,a,c,d){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,d),a.state!==r&&pg.enqueueReplaceState(a,a.state,null)}function _a(r,a){var c=a;if("ref"in a){c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}if(r=r.defaultProps){c===a&&(c=m({},c));for(var g in r)c[g]===void 0&&(c[g]=r[g])}return c}function NS(r){xd(r)}function IS(r){console.error(r)}function PS(r){xd(r)}function Hd(r,a){try{var c=r.onUncaughtError;c(a.value,{componentStack:a.stack})}catch(d){setTimeout(function(){throw d})}}function MS(r,a,c){try{var d=r.onCaughtError;d(c.value,{componentStack:c.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function mg(r,a,c){return c=mi(c),c.tag=3,c.payload={element:null},c.callback=function(){Hd(r,a)},c}function DS(r){return r=mi(r),r.tag=3,r}function LS(r,a,c,d){var g=c.type.getDerivedStateFromError;if(typeof g=="function"){var v=d.value;r.payload=function(){return g(v)},r.callback=function(){MS(a,c,d)}}var A=c.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(r.callback=function(){MS(a,c,d),typeof g!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var j=d.stack;this.componentDidCatch(d.value,{componentStack:j!==null?j:""})})}function LP(r,a,c,d,g){if(c.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(a=c.alternate,a!==null&&Mo(a,c,g,!0),c=as.current,c!==null){switch(c.tag){case 31:case 13:return Cs===null?nf():c.alternate===null&&zt===0&&(zt=3),c.flags&=-257,c.flags|=65536,c.lanes=g,d===jd?c.flags|=16384:(a=c.updateQueue,a===null?c.updateQueue=new Set([d]):a.add(d),zg(r,d,g)),!1;case 22:return c.flags|=65536,d===jd?c.flags|=16384:(a=c.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([d])},c.updateQueue=a):(c=a.retryQueue,c===null?a.retryQueue=new Set([d]):c.add(d)),zg(r,d,g)),!1}throw Error(s(435,c.tag))}return zg(r,d,g),nf(),!1}if(at)return a=as.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,d!==Pm&&(r=Error(s(422),{cause:d}),cc(Ss(r,c)))):(d!==Pm&&(a=Error(s(423),{cause:d}),cc(Ss(a,c))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,d=Ss(d,c),g=mg(r.stateNode,d,g),qm(r,g),zt!==4&&(zt=2)),!1;var v=Error(s(520),{cause:d});if(v=Ss(v,c),Tc===null?Tc=[v]:Tc.push(v),zt!==4&&(zt=2),a===null)return!0;d=Ss(d,c),c=a;do{switch(c.tag){case 3:return c.flags|=65536,r=g&-g,c.lanes|=r,r=mg(c.stateNode,d,r),qm(c,r),!1;case 1:if(a=c.type,v=c.stateNode,(c.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Si===null||!Si.has(v))))return c.flags|=65536,g&=-g,c.lanes|=g,g=DS(g),LS(g,r,c,d),qm(c,g),!1}c=c.return}while(c!==null);return!1}var gg=Error(s(461)),Qt=!1;function kn(r,a,c,d){a.child=r===null?Vx(a,null,c,d):xa(a,r.child,c,d)}function BS(r,a,c,d,g){c=c.render;var v=a.ref;if("ref"in d){var A={};for(var j in d)j!=="ref"&&(A[j]=d[j])}else A=d;return ya(a),d=Xm(r,a,c,A,v,g),j=Jm(),r!==null&&!Qt?(Qm(r,a,g),jr(r,a,g)):(at&&j&&Nm(a),a.flags|=1,kn(r,a,d,g),a.child)}function US(r,a,c,d,g){if(r===null){var v=c.type;return typeof v=="function"&&!Rm(v)&&v.defaultProps===void 0&&c.compare===null?(a.tag=15,a.type=v,zS(r,a,v,d,g)):(r=Ad(c.type,null,d,a,a.mode,g),r.ref=a.ref,r.return=a,a.child=r)}if(v=r.child,!kg(r,g)){var A=v.memoizedProps;if(c=c.compare,c=c!==null?c:ac,c(A,d)&&r.ref===a.ref)return jr(r,a,g)}return a.flags|=1,r=Ar(v,d),r.ref=a.ref,r.return=a,a.child=r}function zS(r,a,c,d,g){if(r!==null){var v=r.memoizedProps;if(ac(v,d)&&r.ref===a.ref)if(Qt=!1,a.pendingProps=d=v,kg(r,g))(r.flags&131072)!==0&&(Qt=!0);else return a.lanes=r.lanes,jr(r,a,g)}return yg(r,a,c,d,g)}function VS(r,a,c,d){var g=d.children,v=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((a.flags&128)!==0){if(v=v!==null?v.baseLanes|c:c,r!==null){for(d=a.child=r.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;d=g&~v}else d=0,a.child=null;return $S(r,a,v,c,d)}if((c&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Rd(a,v!==null?v.cachePool:null),v!==null?Hx(a,v):Gm(),qx(a);else return d=a.lanes=536870912,$S(r,a,v!==null?v.baseLanes|c:c,c,d)}else v!==null?(Rd(a,v.cachePool),Hx(a,v),vi(),a.memoizedState=null):(r!==null&&Rd(a,null),Gm(),vi());return kn(r,a,g,c),a.child}function xc(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function $S(r,a,c,d,g){var v=Vm();return v=v===null?null:{parent:Xt._currentValue,pool:v},a.memoizedState={baseLanes:c,cachePool:v},r!==null&&Rd(a,null),Gm(),qx(a),r!==null&&Mo(r,a,d,!0),a.childLanes=g,null}function qd(r,a){return a=Gd({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function FS(r,a,c){return xa(a,r.child,null,c),r=qd(a,a.pendingProps),r.flags|=2,os(a),a.memoizedState=null,r}function BP(r,a,c){var d=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(at){if(d.mode==="hidden")return r=qd(a,d),a.lanes=536870912,xc(null,r);if(Ym(a),(r=Nt)?(r=tk(r,As),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ui!==null?{id:nr,overflow:sr}:null,retryLane:536870912,hydrationErrors:null},c=Cx(r),c.return=a,a.child=c,Sn=a,Nt=null)):r=null,r===null)throw fi(a);return a.lanes=536870912,null}return qd(a,d)}var v=r.memoizedState;if(v!==null){var A=v.dehydrated;if(Ym(a),g)if(a.flags&256)a.flags&=-257,a=FS(r,a,c);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(s(558));else if(Qt||Mo(r,a,c,!1),g=(c&r.childLanes)!==0,Qt||g){if(d=_t,d!==null&&(A=I0(d,c),A!==0&&A!==v.retryLane))throw v.retryLane=A,ha(r,A),Yn(d,r,A),gg;nf(),a=FS(r,a,c)}else r=v.treeContext,Nt=Es(A.nextSibling),Sn=a,at=!0,di=null,As=!1,r!==null&&Rx(a,r),a=qd(a,d),a.flags|=4096;return a}return r=Ar(r.child,{mode:d.mode,children:d.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Wd(r,a){var c=a.ref;if(c===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(s(284));(r===null||r.ref!==c)&&(a.flags|=4194816)}}function yg(r,a,c,d,g){return ya(a),c=Xm(r,a,c,d,void 0,g),d=Jm(),r!==null&&!Qt?(Qm(r,a,g),jr(r,a,g)):(at&&d&&Nm(a),a.flags|=1,kn(r,a,c,g),a.child)}function HS(r,a,c,d,g,v){return ya(a),a.updateQueue=null,c=Gx(a,d,c,g),Wx(r),d=Jm(),r!==null&&!Qt?(Qm(r,a,v),jr(r,a,v)):(at&&d&&Nm(a),a.flags|=1,kn(r,a,c,v),a.child)}function qS(r,a,c,d,g){if(ya(a),a.stateNode===null){var v=jo,A=c.contextType;typeof A=="object"&&A!==null&&(v=_n(A)),v=new c(d,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=pg,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=d,v.state=a.memoizedState,v.refs={},Fm(a),A=c.contextType,v.context=typeof A=="object"&&A!==null?_n(A):jo,v.state=a.memoizedState,A=c.getDerivedStateFromProps,typeof A=="function"&&(hg(a,c,A,d),v.state=a.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(A=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),A!==v.state&&pg.enqueueReplaceState(v,v.state,null),gc(a,d,v,g),mc(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),d=!0}else if(r===null){v=a.stateNode;var j=a.memoizedProps,U=_a(c,j);v.props=U;var G=v.context,ne=c.contextType;A=jo,typeof ne=="object"&&ne!==null&&(A=_n(ne));var re=c.getDerivedStateFromProps;ne=typeof re=="function"||typeof v.getSnapshotBeforeUpdate=="function",j=a.pendingProps!==j,ne||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(j||G!==A)&&jS(a,v,d,A),pi=!1;var Z=a.memoizedState;v.state=Z,gc(a,d,v,g),mc(),G=a.memoizedState,j||Z!==G||pi?(typeof re=="function"&&(hg(a,c,re,d),G=a.memoizedState),(U=pi||OS(a,c,U,d,Z,G,A))?(ne||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(a.flags|=4194308)):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=G),v.props=d,v.state=G,v.context=A,d=U):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{v=a.stateNode,Hm(r,a),A=a.memoizedProps,ne=_a(c,A),v.props=ne,re=a.pendingProps,Z=v.context,G=c.contextType,U=jo,typeof G=="object"&&G!==null&&(U=_n(G)),j=c.getDerivedStateFromProps,(G=typeof j=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(A!==re||Z!==U)&&jS(a,v,d,U),pi=!1,Z=a.memoizedState,v.state=Z,gc(a,d,v,g),mc();var J=a.memoizedState;A!==re||Z!==J||pi||r!==null&&r.dependencies!==null&&Ed(r.dependencies)?(typeof j=="function"&&(hg(a,c,j,d),J=a.memoizedState),(ne=pi||OS(a,c,ne,d,Z,J,U)||r!==null&&r.dependencies!==null&&Ed(r.dependencies))?(G||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(d,J,U),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(d,J,U)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||A===r.memoizedProps&&Z===r.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||A===r.memoizedProps&&Z===r.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=J),v.props=d,v.state=J,v.context=U,d=ne):(typeof v.componentDidUpdate!="function"||A===r.memoizedProps&&Z===r.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||A===r.memoizedProps&&Z===r.memoizedState||(a.flags|=1024),d=!1)}return v=d,Wd(r,a),d=(a.flags&128)!==0,v||d?(v=a.stateNode,c=d&&typeof c.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,r!==null&&d?(a.child=xa(a,r.child,null,g),a.child=xa(a,null,c,g)):kn(r,a,c,g),a.memoizedState=v.state,r=a.child):r=jr(r,a,g),r}function WS(r,a,c,d){return ma(),a.flags|=256,kn(r,a,c,d),a.child}var vg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bg(r){return{baseLanes:r,cachePool:Mx()}}function wg(r,a,c){return r=r!==null?r.childLanes&~c:0,a&&(r|=cs),r}function GS(r,a,c){var d=a.pendingProps,g=!1,v=(a.flags&128)!==0,A;if((A=v)||(A=r!==null&&r.memoizedState===null?!1:(Gt.current&2)!==0),A&&(g=!0,a.flags&=-129),A=(a.flags&32)!==0,a.flags&=-33,r===null){if(at){if(g?yi(a):vi(),(r=Nt)?(r=tk(r,As),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ui!==null?{id:nr,overflow:sr}:null,retryLane:536870912,hydrationErrors:null},c=Cx(r),c.return=a,a.child=c,Sn=a,Nt=null)):r=null,r===null)throw fi(a);return ny(r)?a.lanes=32:a.lanes=536870912,null}var j=d.children;return d=d.fallback,g?(vi(),g=a.mode,j=Gd({mode:"hidden",children:j},g),d=pa(d,g,c,null),j.return=a,d.return=a,j.sibling=d,a.child=j,d=a.child,d.memoizedState=bg(c),d.childLanes=wg(r,A,c),a.memoizedState=vg,xc(null,d)):(yi(a),xg(a,j))}var U=r.memoizedState;if(U!==null&&(j=U.dehydrated,j!==null)){if(v)a.flags&256?(yi(a),a.flags&=-257,a=Sg(r,a,c)):a.memoizedState!==null?(vi(),a.child=r.child,a.flags|=128,a=null):(vi(),j=d.fallback,g=a.mode,d=Gd({mode:"visible",children:d.children},g),j=pa(j,g,c,null),j.flags|=2,d.return=a,j.return=a,d.sibling=j,a.child=d,xa(a,r.child,null,c),d=a.child,d.memoizedState=bg(c),d.childLanes=wg(r,A,c),a.memoizedState=vg,a=xc(null,d));else if(yi(a),ny(j)){if(A=j.nextSibling&&j.nextSibling.dataset,A)var G=A.dgst;A=G,d=Error(s(419)),d.stack="",d.digest=A,cc({value:d,source:null,stack:null}),a=Sg(r,a,c)}else if(Qt||Mo(r,a,c,!1),A=(c&r.childLanes)!==0,Qt||A){if(A=_t,A!==null&&(d=I0(A,c),d!==0&&d!==U.retryLane))throw U.retryLane=d,ha(r,d),Yn(A,r,d),gg;ty(j)||nf(),a=Sg(r,a,c)}else ty(j)?(a.flags|=192,a.child=r.child,a=null):(r=U.treeContext,Nt=Es(j.nextSibling),Sn=a,at=!0,di=null,As=!1,r!==null&&Rx(a,r),a=xg(a,d.children),a.flags|=4096);return a}return g?(vi(),j=d.fallback,g=a.mode,U=r.child,G=U.sibling,d=Ar(U,{mode:"hidden",children:d.children}),d.subtreeFlags=U.subtreeFlags&65011712,G!==null?j=Ar(G,j):(j=pa(j,g,c,null),j.flags|=2),j.return=a,d.return=a,d.sibling=j,a.child=d,xc(null,d),d=a.child,j=r.child.memoizedState,j===null?j=bg(c):(g=j.cachePool,g!==null?(U=Xt._currentValue,g=g.parent!==U?{parent:U,pool:U}:g):g=Mx(),j={baseLanes:j.baseLanes|c,cachePool:g}),d.memoizedState=j,d.childLanes=wg(r,A,c),a.memoizedState=vg,xc(r.child,d)):(yi(a),c=r.child,r=c.sibling,c=Ar(c,{mode:"visible",children:d.children}
vendor: 5,367 bytes, line 9
9),c.return=a,c.sibling=null,r!==null&&(A=a.deletions,A===null?(a.deletions=[r],a.flags|=16):A.push(r)),a.child=c,a.memoizedState=null,c)}function xg(r,a){return a=Gd({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Gd(r,a){return r=is(22,r,null,a),r.lanes=0,r}function Sg(r,a,c){return xa(a,r.child,null,c),r=xg(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function KS(r,a,c){r.lanes|=a;var d=r.alternate;d!==null&&(d.lanes|=a),Lm(r.return,a,c)}function _g(r,a,c,d,g,v){var A=r.memoizedState;A===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:g,treeForkCount:v}:(A.isBackwards=a,A.rendering=null,A.renderingStartTime=0,A.last=d,A.tail=c,A.tailMode=g,A.treeForkCount=v)}function YS(r,a,c){var d=a.pendingProps,g=d.revealOrder,v=d.tail;d=d.children;var A=Gt.current,j=(A&2)!==0;if(j?(A=A&1|2,a.flags|=128):A&=1,de(Gt,A),kn(r,a,d,c),d=at?lc:0,!j&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&KS(r,c,a);else if(r.tag===19)KS(r,c,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(g){case"forwards":for(c=a.child,g=null;c!==null;)r=c.alternate,r!==null&&Md(r)===null&&(g=c),c=c.sibling;c=g,c===null?(g=a.child,a.child=null):(g=c.sibling,c.sibling=null),_g(a,!1,g,c,v,d);break;case"backwards":case"unstable_legacy-backwards":for(c=null,g=a.child,a.child=null;g!==null;){if(r=g.alternate,r!==null&&Md(r)===null){a.child=g;break}r=g.sibling,g.sibling=c,c=g,g=r}_g(a,!0,c,null,v,d);break;case"together":_g(a,!1,null,null,void 0,d);break;default:a.memoizedState=null}return a.child}function jr(r,a,c){if(r!==null&&(a.dependencies=r.dependencies),xi|=a.lanes,(c&a.childLanes)===0)if(r!==null){if(Mo(r,a,c,!1),(c&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(s(153));if(a.child!==null){for(r=a.child,c=Ar(r,r.pendingProps),a.child=c,c.return=a;r.sibling!==null;)r=r.sibling,c=c.sibling=Ar(r,r.pendingProps),c.return=a;c.sibling=null}return a.child}function kg(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Ed(r)))}function UP(r,a,c){switch(a.tag){case 3:Me(a,a.stateNode.containerInfo),hi(a,Xt,r.memoizedState.cache),ma();break;case 27:case 5:Xe(a);break;case 4:Me(a,a.stateNode.containerInfo);break;case 10:hi(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Ym(a),null;break;case 13:var d=a.memoizedState;if(d!==null)return d.dehydrated!==null?(yi(a),a.flags|=128,null):(c&a.child.childLanes)!==0?GS(r,a,c):(yi(a),r=jr(r,a,c),r!==null?r.sibling:null);yi(a);break;case 19:var g=(r.flags&128)!==0;if(d=(c&a.childLanes)!==0,d||(Mo(r,a,c,!1),d=(c&a.childLanes)!==0),g){if(d)return YS(r,a,c);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),de(Gt,Gt.current),d)break;return null;case 22:return a.lanes=0,VS(r,a,c,a.pendingProps);case 24:hi(a,Xt,r.memoizedState.cache)}return jr(r,a,c)}function ZS(r,a,c){if(r!==null)if(r.memoizedProps!==a.pendingProps)Qt=!0;else{if(!kg(r,c)&&(a.flags&128)===0)return Qt=!1,UP(r,a,c);Qt=(r.flags&131072)!==0}else Qt=!1,at&&(a.flags&1048576)!==0&&Tx(a,lc,a.index);switch(a.lanes=0,a.tag){case 16:e:{var d=a.pendingProps;if(r=ba(a.elementType),a.type=r,typeof r=="function")Rm(r)?(d=_a(r,d),a.tag=1,a=qS(null,a,r,d,c)):(a.tag=0,a=yg(null,a,r,d,c));else{if(r!=null){var g=r.$$typeof;if(g===O){a.tag=11,a=BS(null,a,r,d,c);break e}else if(g===D){a.tag=14,a=US(null,a,r,d,c);break e}}throw a=oe(r)||r,Error(s(306,a,""))}}return a;case 0:return yg(r,a,a.type,a.pendingProps,c);case 1:return d=a.type,g=_a(d,a.pendingProps),qS(r,a,d,g,c);case 3:e:{if(Me(a,a.stateNode.containerInfo),r===null)throw Error(s(387));d=a.pendingProps;var v=a.memoizedState;g=v.element,Hm(r,a),gc(a,d,null,c);var A=a.memoizedState;if(d=A.cache,hi(a,Xt,d),d!==v.cache&&Bm(a,[Xt],c,!0),mc(),d=A.element,v.isDehydrated)if(v={element:d,isDehydrated:!1,cache:A.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=WS(r,a,d,c);break e}else if(d!==g){g=Ss(Error(s(424)),a),cc(g),a=WS(r,a,d,c);break e}else for(r=a.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,Nt=Es(r.firstChild),Sn=a,at=!0,di=null,As=!0,c=Vx(a,null,d,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(ma(),d===g){a=jr(r,a,c);break e}kn(r,a,d,c)}a=a.child}return a;case 26:return Wd(r,a),r===null?(c=ok(a.type,null,a.pendingProps,null))?a.memoizedState=c:at||(c=a.type,r=a.pendingProps,d=uf(_e.current).createElement(c),d[xn]=a,d[Fn]=r,An(d,c,r),mn(d),a.stateNode=d):a.memoizedState=ok(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Xe(a),r===null&&at&&(d=a.stateNode=rk(a.type,a.pendingProps,_e.current),Sn=a,As=!0,g=Nt,Ci(a.type)?(sy=g,Nt=Es(d.firstChild)):Nt=g),kn(r,a,a.pendingProps.children,c),Wd(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&at&&((g=d=Nt)&&(d=mM(d,a.type,a.pendingProps,As),d!==null?(a.stateNode=d,Sn=a,Nt=Es(d.firstChild),As=!1,g=!0):g=!1),g||fi(a)),Xe(a),g=a.type,v=a.pendingProps,A=r!==null?r.memoizedProps:null,d=v.children,Jg(g,v)?d=null:A!==null&&Jg(g,A)&&(a.flags|=32),a.memoizedState!==null&&(g=Xm(r,a,OP,null,null,c),Dc._currentValue=g),Wd(r,a),
vendor: 4,208 bytes, line 9
9kn(r,a,d,c),a.child;case 6:return r===null&&at&&((r=c=Nt)&&(c=gM(c,a.pendingProps,As),c!==null?(a.stateNode=c,Sn=a,Nt=null,r=!0):r=!1),r||fi(a)),null;case 13:return GS(r,a,c);case 4:return Me(a,a.stateNode.containerInfo),d=a.pendingProps,r===null?a.child=xa(a,null,d,c):kn(r,a,d,c),a.child;case 11:return BS(r,a,a.type,a.pendingProps,c);case 7:return kn(r,a,a.pendingProps,c),a.child;case 8:return kn(r,a,a.pendingProps.children,c),a.child;case 12:return kn(r,a,a.pendingProps.children,c),a.child;case 10:return d=a.pendingProps,hi(a,a.type,d.value),kn(r,a,d.children,c),a.child;case 9:return g=a.type._context,d=a.pendingProps.children,ya(a),g=_n(g),d=d(g),a.flags|=1,kn(r,a,d,c),a.child;case 14:return US(r,a,a.type,a.pendingProps,c);case 15:return zS(r,a,a.type,a.pendingProps,c);case 19:return YS(r,a,c);case 31:return BP(r,a,c);case 22:return VS(r,a,c,a.pendingProps);case 24:return ya(a),d=_n(Xt),r===null?(g=Vm(),g===null&&(g=_t,v=Um(),g.pooledCache=v,v.refCount++,v!==null&&(g.pooledCacheLanes|=c),g=v),a.memoizedState={parent:d,cache:g},Fm(a),hi(a,Xt,g)):((r.lanes&c)!==0&&(Hm(r,a),gc(a,null,null,c),mc()),g=r.memoizedState,v=a.memoizedState,g.parent!==d?(g={parent:d,cache:d},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),hi(a,Xt,d)):(d=v.cache,hi(a,Xt,d),d!==g.cache&&Bm(a,[Xt],c,!0))),kn(r,a,a.pendingProps.children,c),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function Nr(r){r.flags|=4}function Ag(r,a,c,d,g){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(g&335544128)===g)if(r.stateNode.complete)r.flags|=8192;else if(__())r.flags|=8192;else throw wa=jd,$m}else r.flags&=-16777217}function XS(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!fk(a))if(__())r.flags|=8192;else throw wa=jd,$m}function Kd(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Yl():536870912,r.lanes|=a,Go|=a)}function Sc(r,a){if(!at)switch(r.tailMode){case"hidden":a=r.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?r.tail=null:c.sibling=null;break;case"collapsed":c=r.tail;for(var d=null;c!==null;)c.alternate!==null&&(d=c),c=c.sibling;d===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function It(r){var a=r.alternate!==null&&r.alternate.child===r.child,c=0,d=0;if(a)for(var g=r.child;g!==null;)c|=g.lanes|g.childLanes,d|=g.subtreeFlags&65011712,d|=g.flags&65011712,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)c|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=d,r.childLanes=c,a}function zP(r,a,c){var d=a.pendingProps;switch(Im(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(a),null;case 1:return It(a),null;case 3:return c=a.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),Tr(Xt),Ee(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(Po(a)?Nr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Mm())),It(a),null;case 26:var g=a.type,v=a.memoizedState;return r===null?(Nr(a),v!==null?(It(a),XS(a,v)):(It(a),Ag(a,g,null,d,c))):v?v!==r.memoizedState?(Nr(a),It(a),XS(a,v)):(It(a),a.flags&=-16777217):(r=r.memoizedProps,r!==d&&Nr(a),It(a),Ag(a,g,r,d,c)),null;case 27:if(Ye(a),c=_e.current,g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&Nr(a);else{if(!d){if(a.stateNode===null)throw Error(s(166));return It(a),null}r=he.current,Po(a)?Ox(a):(r=rk(g,d,c),a.stateNode=r,Nr(a))}return It(a),null;case 5:if(Ye(a),g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&Nr(a);else{if(!d){if(a.stateNode===null)throw Error(s(166));return It(a),null}if(v=he.current,Po(a))Ox(a);else{var A=uf(_e.current);switch(v){case 1:v=A.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:v=A.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":v=A.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":v=A.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":v=A.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;
vendor: 24,177 bytes, line 9
9case"select":v=typeof d.is=="string"?A.createElement("select",{is:d.is}):A.createElement("select"),d.multiple?v.multiple=!0:d.size&&(v.size=d.size);break;default:v=typeof d.is=="string"?A.createElement(g,{is:d.is}):A.createElement(g)}}v[xn]=a,v[Fn]=d;e:for(A=a.child;A!==null;){if(A.tag===5||A.tag===6)v.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===a)break e;for(;A.sibling===null;){if(A.return===null||A.return===a)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}a.stateNode=v;e:switch(An(v,g,d),g){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Nr(a)}}return It(a),Ag(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,c),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==d&&Nr(a);else{if(typeof d!="string"&&a.stateNode===null)throw Error(s(166));if(r=_e.current,Po(a)){if(r=a.stateNode,c=a.memoizedProps,d=null,g=Sn,g!==null)switch(g.tag){case 27:case 5:d=g.memoizedProps}r[xn]=a,r=!!(r.nodeValue===c||d!==null&&d.suppressHydrationWarning===!0||G_(r.nodeValue,c)),r||fi(a,!0)}else r=uf(r).createTextNode(d),r[xn]=a,a.stateNode=r}return It(a),null;case 31:if(c=a.memoizedState,r===null||r.memoizedState!==null){if(d=Po(a),c!==null){if(r===null){if(!d)throw Error(s(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(557));r[xn]=a}else ma(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;It(a),r=!1}else c=Mm(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=c),r=!0;if(!r)return a.flags&256?(os(a),a):(os(a),null);if((a.flags&128)!==0)throw Error(s(558))}return It(a),null;case 13:if(d=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=Po(a),d!==null&&d.dehydrated!==null){if(r===null){if(!g)throw Error(s(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(s(317));g[xn]=a}else ma(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;It(a),g=!1}else g=Mm(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(os(a),a):(os(a),null)}return os(a),(a.flags&128)!==0?(a.lanes=c,a):(c=d!==null,r=r!==null&&r.memoizedState!==null,c&&(d=a.child,g=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(g=d.alternate.memoizedState.cachePool.pool),v=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(v=d.memoizedState.cachePool.pool),v!==g&&(d.flags|=2048)),c!==r&&c&&(a.child.flags|=8192),Kd(a,a.updateQueue),It(a),null);case 4:return Ee(),r===null&&Gg(a.stateNode.containerInfo),It(a),null;case 10:return Tr(a.type),It(a),null;case 19:if(ee(Gt),d=a.memoizedState,d===null)return It(a),null;if(g=(a.flags&128)!==0,v=d.rendering,v===null)if(g)Sc(d,!1);else{if(zt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(v=Md(r),v!==null){for(a.flags|=128,Sc(d,!1),r=v.updateQueue,a.updateQueue=r,Kd(a,r),a.subtreeFlags=0,r=c,c=a.child;c!==null;)Ax(c,r),c=c.sibling;return de(Gt,Gt.current&1|2),at&&Cr(a,d.treeForkCount),a.child}r=r.sibling}d.tail!==null&&an()>Qd&&(a.flags|=128,g=!0,Sc(d,!1),a.lanes=4194304)}else{if(!g)if(r=Md(v),r!==null){if(a.flags|=128,g=!0,r=r.updateQueue,a.updateQueue=r,Kd(a,r),Sc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!v.alternate&&!at)return It(a),null}else 2*an()-d.renderingStartTime>Qd&&c!==536870912&&(a.flags|=128,g=!0,Sc(d,!1),a.lanes=4194304);d.isBackwards?(v.sibling=a.child,a.child=v):(r=d.last,r!==null?r.sibling=v:a.child=v,d.last=v)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=an(),r.sibling=null,c=Gt.current,de(Gt,g?c&1|2:c&1),at&&Cr(a,d.treeForkCount),r):(It(a),null);case 22:case 23:return os(a),Km(),d=a.memoizedState!==null,r!==null?r.memoizedState!==null!==d&&(a.flags|=8192):d&&(a.flags|=8192),d?(c&536870912)!==0&&(a.flags&128)===0&&(It(a),a.subtreeFlags&6&&(a.flags|=8192)):It(a),c=a.updateQueue,c!==null&&Kd(a,c.retryQueue),c=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==c&&(a.flags|=2048),r!==null&&ee(va),null;case 24:return c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Tr(Xt),It(a),null;case 25:return null;case 30:return null}throw Error(s(156,a.tag))}function VP(r,a){switch(Im(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Tr(Xt),Ee(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Ye(a),null;case 31:if(a.memoizedState!==null){if(os(a),a.alternate===null)throw Error(s(340));ma()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(os(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(s(340));ma()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return ee(Gt),null;case 4:return Ee(),null;case 10:return Tr(a.type),null;case 22:case 23:return os(a),Km(),r!==null&&ee(va),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Tr(Xt),null;case 25:return null;default:return null}}function JS(r,a){switch(Im(a),a.tag){case 3:Tr(Xt),Ee();break;case 26:case 27:case 5:Ye(a);break;case 4:Ee();break;case 31:a.memoizedState!==null&&os(a);break;case 13:os(a);break;case 19:ee(Gt);break;case 10:Tr(a.type);break;case 22:case 23:os(a),Km(),r!==null&&ee(va);break;case 24:Tr(Xt)}}function _c(r,a){try{var c=a.updateQueue,d=c!==null?c.lastEffect:null;if(d!==null){var g=d.next;c=g;do{if((c.tag&r)===r){d=void 0;var v=c.create,A=c.inst;d=v(),A.destroy=d}c=c.next}while(c!==g)}}catch(j){vt(a,a.return,j)}}function bi(r,a,c){try{var d=a.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var v=g.next;d=v;do{if((d.tag&r)===r){var A=d.inst,j=A.destroy;if(j!==void 0){A.destroy=void 0,g=a;var U=c,G=j;try{G()}catch(ne){vt(g,U,ne)}}}d=d.next}while(d!==v)}}catch(ne){vt(a,a.return,ne)}}function QS(r){var a=r.updateQueue;if(a!==null){var c=r.stateNode;try{Fx(a,c)}catch(d){vt(r,r.return,d)}}}function e_(r,a,c){c.props=_a(r.type,r.memoizedProps),c.state=r.memoizedState;try{c.componentWillUnmount()}catch(d){vt(r,a,d)}}function kc(r,a){try{var c=r.ref;if(c!==null){switch(r.tag){case 26:case 27:case 5:var d=r.stateNode;break;case 30:d=r.stateNode;break;default:d=r.stateNode}typeof c=="function"?r.refCleanup=c(d):c.current=d}}catch(g){vt(r,a,g)}}function rr(r,a){var c=r.ref,d=r.refCleanup;if(c!==null)if(typeof d=="function")try{d()}catch(g){vt(r,a,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(g){vt(r,a,g)}else c.current=null}function t_(r){var a=r.type,c=r.memoizedProps,d=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":c.autoFocus&&d.focus();break e;case"img":c.src?d.src=c.src:c.srcSet&&(d.srcset=c.srcSet)}}catch(g){vt(r,r.return,g)}}function Cg(r,a,c){try{var d=r.stateNode;cM(d,r.type,c,a),d[Fn]=a}catch(g){vt(r,r.return,g)}}function n_(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Ci(r.type)||r.tag===4}function Eg(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||n_(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Ci(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Tg(r,a,c){var d=r.tag;if(d===5||d===6)r=r.stateNode,a?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(r,a):(a=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,a.appendChild(r),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=_r));else if(d!==4&&(d===27&&Ci(r.type)&&(c=r.stateNode,a=null),r=r.child,r!==null))for(Tg(r,a,c),r=r.sibling;r!==null;)Tg(r,a,c),r=r.sibling}function Yd(r,a,c){var d=r.tag;if(d===5||d===6)r=r.stateNode,a?c.insertBefore(r,a):c.appendChild(r);else if(d!==4&&(d===27&&Ci(r.type)&&(c=r.stateNode),r=r.child,r!==null))for(Yd(r,a,c),r=r.sibling;r!==null;)Yd(r,a,c),r=r.sibling}function s_(r){var a=r.stateNode,c=r.memoizedProps;try{for(var d=r.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);An(a,d,c),a[xn]=r,a[Fn]=c}catch(v){vt(r,r.return,v)}}var Ir=!1,en=!1,Rg=!1,r_=typeof WeakSet=="function"?WeakSet:Set,gn=null;function $P(r,a){if(r=r.containerInfo,Zg=yf,r=gx(r),Sm(r)){if("selectionStart"in r)var c={start:r.selectionStart,end:r.selectionEnd};else e:{c=(c=r.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&d.rangeCount!==0){c=d.anchorNode;var g=d.anchorOffset,v=d.focusNode;d=d.focusOffset;try{c.nodeType,v.nodeType}catch{c=null;break e}var A=0,j=-1,U=-1,G=0,ne=0,re=r,Z=null;t:for(;;){for(var J;re!==c||g!==0&&re.nodeType!==3||(j=A+g),re!==v||d!==0&&re.nodeType!==3||(U=A+d),re.nodeType===3&&(A+=re.nodeValue.length),(J=re.firstChild)!==null;)Z=re,re=J;for(;;){if(re===r)break t;if(Z===c&&++G===g&&(j=A),Z===v&&++ne===d&&(U=A),(J=re.nextSibling)!==null)break;re=Z,Z=re.parentNode}re=J}c=j===-1||U===-1?null:{start:j,end:U}}else c=null}c=c||{start:0,end:0}}else c=null;for(Xg={focusedElem:r,selectionRange:c},yf=!1,gn=a;gn!==null;)if(a=gn,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,gn=r;else for(;gn!==null;){switch(a=gn,v=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(c=0;c<r.length;c++)g=r[c],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&v!==null){r=void 0,c=a,g=v.memoizedProps,v=v.memoizedState,d=c.stateNode;try{var Te=_a(c.type,g);r=d.getSnapshotBeforeUpdate(Te,v),d.__reactInternalSnapshotBeforeUpdate=r}catch(Le){vt(c,c.return,Le)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,c=r.nodeType,c===9)ey(r);else if(c===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":ey(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(s(163))}if(r=a.sibling,r!==null){r.return=a.return,gn=r;break}gn=a.return}}function i_(r,a,c){var d=c.flags;switch(c.tag){case 0:case 11:case 15:Mr(r,c),d&4&&_c(5,c);break;case 1:if(Mr(r,c),d&4)if(r=c.stateNode,a===null)try{r.componentDidMount()}catch(A){vt(c,c.return,A)}else{var g=_a(c.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(g,a,r.__reactInternalSnapshotBeforeUpdate)}catch(A){vt(c,c.return,A)}}d&64&&QS(c),d&512&&kc(c,c.return);break;case 3:if(Mr(r,c),d&64&&(r=c.updateQueue,r!==null)){if(a=null,c.child!==null)switch(c.child.tag){case 27:case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}try{Fx(r,a)}catch(A){vt(c,c.return,A)}}break;case 27:a===null&&d&4&&s_(c);case 26:case 5:Mr(r,c),a===null&&d&4&&t_(c),d&512&&kc(c,c.return);break;case 12:Mr(r,c);break;case 31:Mr(r,c),d&4&&l_(r,c);break;case 13:Mr(r,c),d&4&&c_(r,c),d&64&&(r=c.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(c=XP.bind(null,c),yM(r,c))));break;case 22:if(d=c.memoizedState!==null||Ir,!d){a=a!==null&&a.memoizedState!==null||en,g=Ir;var v=en;Ir=d,(en=a)&&!v?Dr(r,c,(c.subtreeFlags&8772)!==0):Mr(r,c),Ir=g,en=v}break;case 30:break;default:Mr(r,c)}}function a_(r){var a=r.alternate;a!==null&&(r.alternate=null,a_(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&im(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Mt=null,qn=!1;function Pr(r,a,c){for(c=c.child;c!==null;)o_(r,a,c),c=c.sibling}function o_(r,a,c){if(le&&typeof le.onCommitFiberUnmount=="function")try{le.onCommitFiberUnmount(ce,c)}catch{}switch(c.tag){case 26:en||rr(c,a),Pr(r,a,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:en||rr(c,a);var d=Mt,g=qn;Ci(c.type)&&(Mt=c.stateNode,qn=!1),Pr(r,a,c),Ic(c.stateNode),Mt=d,qn=g;break;case 5:en||rr(c,a);case 6:if(d=Mt,g=qn,Mt=null,Pr(r,a,c),Mt=d,qn=g,Mt!==null)if(qn)try{(Mt.nodeType===9?Mt.body:Mt.nodeName==="HTML"?Mt.ownerDocument.body:Mt).removeChild(c.stateNode)}catch(v){vt(c,a,v)}else try{Mt.removeChild(c.stateNode)}catch(v){vt(c,a,v)}break;case 18:Mt!==null&&(qn?(r=Mt,Q_(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,c.stateNode),tl(r)):Q_(Mt,c.stateNode));break;case 4:d=Mt,g=qn,Mt=c.stateNode.containerInfo,qn=!0,Pr(r,a,c),Mt=d,qn=g;break;case 0:case 11:case 14:case 15:bi(2,c,a),en||bi(4,c,a),Pr(r,a,c);break;case 1:en||(rr(c,a),d=c.stateNode,typeof d.componentWillUnmount=="function"&&e_(c,a,d)),Pr(r,a,c);break;case 21:Pr(r,a,c);break;case 22:en=(d=en)||c.memoizedState!==null,Pr(r,a,c),en=d;break;default:Pr(r,a,c)}}function l_(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{tl(r)}catch(c){vt(a,a.return,c)}}}function c_(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{tl(r)}catch(c){vt(a,a.return,c)}}function FP(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new r_),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new r_),a;default:throw Error(s(435,r.tag))}}function Zd(r,a){var c=FP(r);a.forEach(function(d){if(!c.has(d)){c.add(d);var g=JP.bind(null,r,d);d.then(g,g)}})}function Wn(r,a){var c=a.deletions;if(c!==null)for(var d=0;d<c.length;d++){var g=c[d],v=r,A=a,j=A;e:for(;j!==null;){switch(j.tag){case 27:if(Ci(j.type)){Mt=j.stateNode,qn=!1;break e}break;case 5:Mt=j.stateNode,qn=!1;break e;case 3:case 4:Mt=j.stateNode.containerInfo,qn=!0;break e}j=j.return}if(Mt===null)throw Error(s(160));o_(v,A,g),Mt=null,qn=!1,v=g.alternate,v!==null&&(v.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)u_(a,r),a=a.sibling}var Us=null;function u_(r,a){var c=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Wn(a,r),Gn(r),d&4&&(bi(3,r,r.return),_c(3,r),bi(5,r,r.return));break;case 1:Wn(a,r),Gn(r),d&512&&(en||c===null||rr(c,c.return)),d&64&&Ir&&(r=r.updateQueue,r!==null&&(d=r.callbacks,d!==null&&(c=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=c===null?d:c.concat(d))));break;case 26:var g=Us;if(Wn(a,r),Gn(r),d&512&&(en||c===null||rr(c,c.return)),d&4){var v=c!==null?c.memoizedState:null;if(d=r.memoizedState,c===null)if(d===null)if(r.stateNode===null){e:{d=r.type,c=r.memoizedProps,g=g.ownerDocument||g;t:switch(d){case"title":v=g.getElementsByTagName("title")[0],(!v||v[Xl]||v[xn]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=g.createElement(d),g.head.insertBefore(v,g.querySelector("head > title"))),An(v,d,c),v[xn]=r,mn(v),d=v;break e;case"link":var A=uk("link","href",g).get(d+(c.href||""));if(A){for(var j=0;j<A.length;j++)if(v=A[j],v.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&v.getAttribute("rel")===(c.rel==null?null:c.rel)&&v.getAttribute("title")===(c.title==null?null:c.title)&&v.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){A.splice(j,1);break t}}v=g.createElement(d),An(v,d,c),g.head.appendChild(v);break;case"meta":if(A=uk("meta","content",g).get(d+(c.content||""))){for(j=0;j<A.length;j++)if(v=A[j],v.getAttribute("content")===(c.content==null?null:""+c.content)&&v.getAttribute("name")===(c.name==null?null:c.name)&&v.getAttribute("property")===(c.property==null?null:c.property)&&v.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&v.getAttribute("charset")===(c.charSet==null?null:c.charSet)){A.splice(j,1);break t}}v=g.createElement(d),An(v,d,c),g.head.appendChild(v);break;default:throw Error(s(468,d))}v[xn]=r,mn(v),d=v}r.stateNode=d}else dk(g,r.type,r.stateNode);else r.stateNode=ck(g,d,r.memoizedProps);else v!==d?(v===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):v.count--,d===null?dk(g,r.type,r.stateNode):ck(g,d,r.memoizedProps)):d===null&&r.stateNode!==null&&Cg(r,r.memoizedProps,c.memoizedProps)}break;case 27:Wn(a,r),Gn(r),d&512&&(en||c===null||rr(c,c.return)),c!==null&&d&4&&Cg(r,r.memoizedProps,c.memoizedProps);break;case 5:if(Wn(a,r),Gn(r),d&512&&(en||c===null||rr(c,c.return)),r.flags&32){g=r.stateNode;try{ko(g,"")}catch(Te){vt(r,r.return,Te)}}d&4&&r.stateNode!=null&&(g=r.memoizedProps,Cg(r,g,c!==null?c.memoizedProps:g)),d&1024&&(Rg=!0);break;case 6:if(Wn(a,r),Gn(r),d&4){if(r.stateNode===null)throw Error(s(162));d=r.memoizedProps,c=r.stateNode;try{c.nodeValue=d}catch(Te){vt(r,r.return,Te)}}break;case 3:if(hf=null,g=Us,Us=df(a.containerInfo),Wn(a,r),Us=g,Gn(r),d&4&&c!==null&&c.memoizedState.isDehydrated)try{tl(a.containerInfo)}catch(Te){vt(r,r.return,Te)}Rg&&(Rg=!1,d_(r));break;case 4:d=Us,Us=df(r.stateNode.containerInfo),Wn(a,r),Gn(r),Us=d;break;case 12:Wn(a,r),Gn(r);break;case 31:Wn(a,r),Gn(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Zd(r,d)));break;case 13:Wn(a,r),Gn(r),r.child.flags&8192&&r.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Jd=an()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Zd(r,d)));break;case 22:g=r.memoizedState!==null;var U=c!==null&&c.memoizedState!==null,G=Ir,ne=en;if(Ir=G||g,en=ne||U,Wn(a,r),en=ne,Ir=G,Gn(r),d&8192)e:for(a=r.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(c===null||U||Ir||en||ka(r)),c=null,a=r;;){if(a.tag===5||a.tag===26){if(c===null){U=c=a;try{if(v=U.stateNode,g)A=v.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{j=U.stateNode;var re=U.memoizedProps.style,Z=re!=null&&re.hasOwnProperty("display")?re.display:null;j.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Te){vt(U,U.return,Te)}}}else if(a.tag===6){if(c===null){U=a;try{U.stateNode.nodeValue=g?"":U.memoizedProps}catch(Te){vt(U,U.return,Te)}}}else if(a.tag===18){if(c===null){U=a;try{var J=U.stateNode;g?ek(J,!0):ek(U.stateNode,!1)}catch(Te){vt(U,U.return,Te)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;c===a&&(c=null),a=a.return}c===a&&(c=null),a.sibling.return=a.return,a=a.sibling}d&4&&(d=r.updateQueue,d!==null&&(c=d.retryQueue,c!==null&&(d.retryQueue=null,Zd(r,c))));break;case 19:Wn(a,r),Gn(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Zd(r,d)));break;case 30:break;case 21:break;default:Wn(a,r),Gn(r)}}function Gn(r){var a=r.flags;if(a&2){try{for(var c,d=r.return;d!==null;){if(n_(d)){c=d;break}d=d.return}if(c==null)throw Error(s(160));switch(c.tag){case 27:var g=c.stateNode,v=Eg(r);Yd(r,v,g);break;case 5:var A=c.stateNode;c.flags&32&&(ko(A,""),c.flags&=-33);var j=Eg(r);Yd(r,j,A);break;case 3:case 4:var U=c.stateNode.containerInfo,G=Eg(r);Tg(r,G,U);break;default:throw Error(s(161))}}catch(ne){vt(r,r.return,ne)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function d_(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;d_(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Mr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)i_(r,a.alternate,a),a=a.sibling}function ka(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:bi(4,a,a.return),ka(a);break;case 1:rr(a,a.return);var c=a.stateNode;typeof c.componentWillUnmount=="function"&&e_(a,a.return,c),ka(a);break;case 27:Ic(a.stateNode);case 26:case 5:rr(a,a.return),ka(a);break;case 22:a.memoizedState===null&&ka(a);break;case 30:ka(a);break;default:ka(a)}r=r.sibling}}function Dr(r,a,c){for(c=c&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var d=a.alternate,g=r,v=a,A=v.flags;switch(v.tag){case 0:case 11:case 15:Dr(g,v,c),_c(4,v);break;case 1:if(Dr(g,v,c),d=v,g=d.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(G){vt(d,d.return,G)}if(d=v,g=d.updateQueue,g!==null){var j=d.stateNode;try{var U=g.shared.hiddenCallbacks;if(U!==null)for(g.shared.hiddenCallbacks=null,g=0;g<U.length;g++)$x(U[g],j)}catch(G){vt(d,d.return,G)}}c&&A&64&&QS(v),kc(v,v.return);break;case 27:s_(v);case 26:case 5:Dr(g,v,c),c&&d===null&&A&4&&t_(v),kc(v,v.return);break;case 12:Dr(g,v,c);break;case 31:Dr(g,v,c),c&&A&4&&l_(g,v);break;case 13:Dr(g,v,c),c&&A&4&&c_(g,v);break;case 22:v.memoizedState===null&&Dr(g,v,c),kc(v,v.return);break;case 30:break;default:Dr(g,v,c)}a=a.sibling}}function Og(r,a){var c=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==c&&(r!=null&&r.refCount++,c!=null&&uc(c))}function jg(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&uc(r))}function zs(r,a,c,d){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)f_(r,a,c,d),a=a.sibling}function f_(r,a,c,d){var g=a.flags;switch(a.tag){case 0:case 11:case 15:zs(r,a,c,d),g&2048&&_c(9,a);break;case 1:zs(r,a,c,d);break;case 3:zs(r,a,c,d),g&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&uc(r)));break;case 12:if(g&2048){zs(r,a,c,d),r=a.stateNode;try{var v=a.memoizedProps,A=v.id,j=v.onPostCommit;typeof j=="function"&&j(A,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(U){vt(a,a.return,U)}}else zs(r,a,c,d);break;case 31:zs(r,a,c,d);break;case 13:zs(r,a,c,d);break;case 23:break;case 22:v=a.stateNode,A=a.alternate,a.memoizedState!==null?v._visibility&2?zs(r,a,c,d):Ac(r,a):v._visibility&2?zs(r,a,c,d):(v._visibility|=2,Ho(r,a,c,d,(a.subtreeFlags&10256)!==0||!1)),g&2048&&Og(A,a);break;case 24:zs(r,a,c,d),g&2048&&jg(a.alternate,a);break;default:zs(r,a,c,d)}}function Ho(r,a,c,d,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var v=r,A=a,j=c,U=d,G=A.flags;switch(A.tag){case 0:case 11:case 15:Ho(v,A,j,U,g),_c(8,A);break;case 23:break;case 22:var ne=A.stateNode;A.memoizedState!==null?ne._visibility&2?Ho(v,A,j,U,g):Ac(v,A):(ne._visibility|=2,Ho(v,A,j,U,g)),g&&G&2048&&Og(A.alternate,A);break;case 24:Ho(v,A,j,U,g),g&&G&2048&&jg(A.alternate,A);break;default:Ho(v,A,j,U,g)}a=a.sibling}}function Ac(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var c=r,d=a,g=d.flags;switch(d.tag){case 22:Ac(c,d),g&2048&&Og(d.alternate,d);break;case 24:Ac(c,d),g&2048&&jg(d.alternate,d);break;default:Ac(c,d)}a=a.sibling}}var Cc=8192;function qo(r,a,c){if(r.subtreeFlags&Cc)for(r=r.child;r!==null;)h_(r,a,c),r=r.sibling}function h_(r,a,c){switch(r.tag){case 26:qo(r,a,c),r.flags&Cc&&r.memoizedState!==null&&RM(c,Us,r.memoizedState,r.memoizedProps);break;case 5:qo(r,a,c);break;case 3:case 4:var d=Us;Us=df(r.stateNode.containerInfo),qo(r,a,c),Us=d;break;case 22:r.memoizedState===null&&(d=r.alternate,d!==null&&d.memoizedState!==null?(d=Cc,Cc=16777216,qo(r,a,c),Cc=d):qo(r,a,c));break;default:qo(r,a,c)}}function p_(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Ec(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var d=a[c];gn=d,g_(d,r)}p_(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)m_(r),r=r.sibling}function m_(r){switch(r.tag){case 0:case 11:case 15:Ec(r),r.flags&2048&&bi(9,r,r.return);break;case 3:Ec(r);break;case 12:Ec(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Xd(r)):Ec(r);break;default:Ec(r)}}function Xd(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var d=a[c];gn=d,g_(d,r)}p_(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:bi(8,a,a.return),Xd(a);break;case 22:c=a.stateNode,c._visibility&2&&(c._visibility&=-3,Xd(a));break;default:Xd(a)}r=r.sibling}}function g_(r,a){for(;gn!==null;){var c=gn;switch(c.tag){case 0:case 11:case 15:bi(8,c,a);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var d=c.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:uc(c.memoizedState.cache)}if(d=c.child,d!==null)d.return=c,gn=d;else e:for(c=r;gn!==null;){d=gn;var g=d.sibling,v=d.return;
vendor: 4,092 bytes, line 9
9if(a_(d),d===c){gn=null;break e}if(g!==null){g.return=v,gn=g;break e}gn=v}}}var HP={getCacheForType:function(r){var a=_n(Xt),c=a.data.get(r);return c===void 0&&(c=r(),a.data.set(r,c)),c},cacheSignal:function(){return _n(Xt).controller.signal}},qP=typeof WeakMap=="function"?WeakMap:Map,pt=0,_t=null,nt=null,rt=0,yt=0,ls=null,wi=!1,Wo=!1,Ng=!1,Lr=0,zt=0,xi=0,Aa=0,Ig=0,cs=0,Go=0,Tc=null,Kn=null,Pg=!1,Jd=0,y_=0,Qd=1/0,ef=null,Si=null,ln=0,_i=null,Ko=null,Br=0,Mg=0,Dg=null,v_=null,Rc=0,Lg=null;function us(){return(pt&2)!==0&&rt!==0?rt&-rt:V.T!==null?Fg():P0()}function b_(){if(cs===0)if((rt&536870912)===0||at){var r=Ls;Ls<<=1,(Ls&3932160)===0&&(Ls=262144),cs=r}else cs=536870912;return r=as.current,r!==null&&(r.flags|=32),cs}function Yn(r,a,c){(r===_t&&(yt===2||yt===9)||r.cancelPendingCommit!==null)&&(Yo(r,0),ki(r,rt,cs,!1)),Zl(r,c),((pt&2)===0||r!==_t)&&(r===_t&&((pt&2)===0&&(Aa|=c),zt===4&&ki(r,rt,cs,!1)),ir(r))}function w_(r,a,c){if((pt&6)!==0)throw Error(s(327));var d=!c&&(a&127)===0&&(a&r.expiredLanes)===0||oi(r,a),g=d?KP(r,a):Ug(r,a,!0),v=d;do{if(g===0){Wo&&!d&&ki(r,a,0,!1);break}else{if(c=r.current.alternate,v&&!WP(c)){g=Ug(r,a,!1),v=!1;continue}if(g===2){if(v=a,r.errorRecoveryDisabledLanes&v)var A=0;else A=r.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){a=A;e:{var j=r;g=Tc;var U=j.current.memoizedState.isDehydrated;if(U&&(Yo(j,A).flags|=256),A=Ug(j,A,!1),A!==2){if(Ng&&!U){j.errorRecoveryDisabledLanes|=v,Aa|=v,g=4;break e}v=Kn,Kn=g,v!==null&&(Kn===null?Kn=v:Kn.push.apply(Kn,v))}g=A}if(v=!1,g!==2)continue}}if(g===1){Yo(r,0),ki(r,a,0,!0);break}e:{switch(d=r,v=g,v){case 0:case 1:throw Error(s(345));case 4:if((a&4194048)!==a)break;case 6:ki(d,a,cs,!wi);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(g=Jd+300-an(),10<g)){if(ki(d,a,cs,!wi),yo(d,0,!0)!==0)break e;Br=a,d.timeoutHandle=X_(x_.bind(null,d,c,Kn,ef,Pg,a,cs,Aa,Go,wi,v,"Throttled",-0,0),g);break e}x_(d,c,Kn,ef,Pg,a,cs,Aa,Go,wi,v,null,-0,0)}}break}while(!0);ir(r)}function x_(r,a,c,d,g,v,A,j,U,G,ne,re,Z,J){if(r.timeoutHandle=-1,re=a.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_r},h_(a,v,re);var Te=(v&62914560)===v?Jd-an():(v&4194048)===v?y_-an():0;if(Te=OM(re,Te),Te!==null){Br=v,r.cancelPendingCommit=Te(R_.bind(null,r,a,v,c,d,g,A,j,U,ne,re,null,Z,J)),ki(r,v,A,!G);return}}R_(r,a,v,c,d,g,A,j,U)}function WP(r){for(var a=r;;){var c=a.tag;if((c===0||c===11||c===15)&&a.flags&16384&&(c=a.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var d=0;d<c.length;d++){var g=c[d],v=g.getSnapshot;g=g.value;try{if(!rs(v(),g))return!1}catch{return!1}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ki(r,a,c,d){a&=~Ig,a&=~Aa,r.suspendedLanes|=a,r.pingedLanes&=~a,d&&(r.warmLanes|=a),d=r.expirationTimes;for(var g=a;0<g;){var v=31-ue(g),A=1<<v;d[v]=-1,g&=~A}c!==0&&j0(r,c,a)}function tf(){return(pt&6)===0?(Oc(0),!1):!0}function Bg(){if(nt!==null){if(yt===0)var r=nt.return;else r=nt,Er=ga=null,eg(r),Uo=null,fc=0,r=nt;for(;r!==null;)JS(r.alternate,r),r=r.return;nt=null}}function Yo(r,a){var c=r.timeoutHandle;c!==-1&&(r.timeoutHandle=-1,fM(c)),c=r.cancelPendingCommit,c!==null&&(r.cancelPendingCommit=null,c()),Br=0,Bg(),_t=r,nt=c=Ar(r.current,null),rt=a,yt=0,ls=null,wi=!1,Wo=oi(r,a),Ng=!1,Go=cs=Ig=Aa=xi=zt=0,Kn=Tc=null,Pg=!1,(a&8)!==0&&(a|=a&32);var d=r.entangledLanes;if(d!==0)for(r=r.entanglements,d&=a;0<d;){var g=31-ue(d),v=1<<g;a|=r[g],d&=~v}return Lr=a,Sd(),c}function S_(r,a){Ze=null,V.H=wc,a===Bo||a===Od?(a=Bx(),yt=3):a===$m?(a=Bx(),yt=4):yt=a===gg?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,ls=a,nt===null&&(zt=1,Hd(r,Ss(a,r.current)))}function __(){var r=as.current;return r===null?!0:(rt&4194048)===rt?Cs===null:(rt&62914560)===rt||(rt&536870912)!==0?r===Cs:!1}function k_(){var r=V.H;return V.H=wc,r===null?wc:r}
vendor: 2,722 bytes, line 9
9function A_(){var r=V.A;return V.A=HP,r}function nf(){zt=4,wi||(rt&4194048)!==rt&&as.current!==null||(Wo=!0),(xi&134217727)===0&&(Aa&134217727)===0||_t===null||ki(_t,rt,cs,!1)}function Ug(r,a,c){var d=pt;pt|=2;var g=k_(),v=A_();(_t!==r||rt!==a)&&(ef=null,Yo(r,a)),a=!1;var A=zt;e:do try{if(yt!==0&&nt!==null){var j=nt,U=ls;switch(yt){case 8:Bg(),A=6;break e;case 3:case 2:case 9:case 6:as.current===null&&(a=!0);var G=yt;if(yt=0,ls=null,Zo(r,j,U,G),c&&Wo){A=0;break e}break;default:G=yt,yt=0,ls=null,Zo(r,j,U,G)}}GP(),A=zt;break}catch(ne){S_(r,ne)}while(!0);return a&&r.shellSuspendCounter++,Er=ga=null,pt=d,V.H=g,V.A=v,nt===null&&(_t=null,rt=0,Sd()),A}function GP(){for(;nt!==null;)C_(nt)}function KP(r,a){var c=pt;pt|=2;var d=k_(),g=A_();_t!==r||rt!==a?(ef=null,Qd=an()+500,Yo(r,a)):Wo=oi(r,a);e:do try{if(yt!==0&&nt!==null){a=nt;var v=ls;t:switch(yt){case 1:yt=0,ls=null,Zo(r,a,v,1);break;case 2:case 9:if(Dx(v)){yt=0,ls=null,E_(a);break}a=function(){yt!==2&&yt!==9||_t!==r||(yt=7),ir(r)},v.then(a,a);break e;case 3:yt=7;break e;case 4:yt=5;break e;case 7:Dx(v)?(yt=0,ls=null,E_(a)):(yt=0,ls=null,Zo(r,a,v,7));break;case 5:var A=null;switch(nt.tag){case 26:A=nt.memoizedState;case 5:case 27:var j=nt;if(A?fk(A):j.stateNode.complete){yt=0,ls=null;var U=j.sibling;if(U!==null)nt=U;else{var G=j.return;G!==null?(nt=G,sf(G)):nt=null}break t}}yt=0,ls=null,Zo(r,a,v,5);break;case 6:yt=0,ls=null,Zo(r,a,v,6);break;case 8:Bg(),zt=6;break e;default:throw Error(s(462))}}YP();break}catch(ne){S_(r,ne)}while(!0);return Er=ga=null,V.H=d,V.A=g,pt=c,nt!==null?0:(_t=null,rt=0,Sd(),zt)}function YP(){for(;nt!==null&&!mo();)C_(nt)}function C_(r){var a=ZS(r.alternate,r,Lr);r.memoizedProps=r.pendingProps,a===null?sf(r):nt=a}function E_(r){var a=r,c=a.alternate;switch(a.tag){case 15:case 0:a=HS(c,a,a.pendingProps,a.type,void 0,rt);break;case 11:a=HS(c,a,a.pendingProps,a.type.render,a.ref,rt);break;case 5:eg(a);default:JS(c,a),a=nt=Ax(a,Lr),a=ZS(c,a,Lr)}r.memoizedProps=r.pendingProps,a===null?sf(r):nt=a}function Zo(r,a,c,d){Er=ga=null,eg(a),Uo=null,fc=0;var g=a.return;try{if(LP(r,g,a,c,rt)){zt=1,Hd(r,Ss(c,r.current)),nt=null;return}}catch(v){if(g!==null)throw nt=g,v;zt=1,Hd(r,Ss(c,r.current)),nt=null;return}a.flags&32768?(at||d===1?r=!0:Wo||(rt&536870912)!==0?r=!1:(wi=r=!0,(d===2||d===9||d===3||d===6)&&(d=as.current,d!==null&&d.tag===13&&(d.flags|=16384))),T_(a,r)):sf(a)}function sf(r){var a=r;do{if((a.flags&32768)!==0){T_(a,wi);return}r=a.return;var c=zP(a.alternate,a,Lr);if(c!==null){nt=c;return}if(a=a.sibling,a!==null){nt=a;return}nt=a=r}while(a!==null);zt===0&&(zt=5)}function T_(r,a){do{var c=VP(r.alternate,r);if(c!==null){c.flags&=32767,nt=c;return}if(c=r.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deleti
vendor: 8,296 bytes, line 9
9ons=null),!a&&(r=r.sibling,r!==null)){nt=r;return}nt=r=c}while(r!==null);zt=6,nt=null}function R_(r,a,c,d,g,v,A,j,U){r.cancelPendingCommit=null;do rf();while(ln!==0);if((pt&6)!==0)throw Error(s(327));if(a!==null){if(a===r.current)throw Error(s(177));if(v=a.lanes|a.childLanes,v|=Em,TI(r,c,v,A,j,U),r===_t&&(nt=_t=null,rt=0),Ko=a,_i=r,Br=c,Mg=v,Dg=g,v_=d,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,QP(la,function(){return P_(),null})):(r.callbackNode=null,r.callbackPriority=0),d=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||d){d=V.T,V.T=null,g=Q.p,Q.p=2,A=pt,pt|=4;try{$P(r,a,c)}finally{pt=A,Q.p=g,V.T=d}}ln=1,O_(),j_(),N_()}}function O_(){if(ln===1){ln=0;var r=_i,a=Ko,c=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||c){c=V.T,V.T=null;var d=Q.p;Q.p=2;var g=pt;pt|=4;try{u_(a,r);var v=Xg,A=gx(r.containerInfo),j=v.focusedElem,U=v.selectionRange;if(A!==j&&j&&j.ownerDocument&&mx(j.ownerDocument.documentElement,j)){if(U!==null&&Sm(j)){var G=U.start,ne=U.end;if(ne===void 0&&(ne=G),"selectionStart"in j)j.selectionStart=G,j.selectionEnd=Math.min(ne,j.value.length);else{var re=j.ownerDocument||document,Z=re&&re.defaultView||window;if(Z.getSelection){var J=Z.getSelection(),Te=j.textContent.length,Le=Math.min(U.start,Te),St=U.end===void 0?Le:Math.min(U.end,Te);!J.extend&&Le>St&&(A=St,St=Le,Le=A);var F=px(j,Le),z=px(j,St);if(F&&z&&(J.rangeCount!==1||J.anchorNode!==F.node||J.anchorOffset!==F.offset||J.focusNode!==z.node||J.focusOffset!==z.offset)){var W=re.createRange();W.setStart(F.node,F.offset),J.removeAllRanges(),Le>St?(J.addRange(W),J.extend(z.node,z.offset)):(W.setEnd(z.node,z.offset),J.addRange(W))}}}}for(re=[],J=j;J=J.parentNode;)J.nodeType===1&&re.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<re.length;j++){var se=re[j];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}yf=!!Zg,Xg=Zg=null}finally{pt=g,Q.p=d,V.T=c}}r.current=a,ln=2}}function j_(){if(ln===2){ln=0;var r=_i,a=Ko,c=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||c){c=V.T,V.T=null;var d=Q.p;Q.p=2;var g=pt;pt|=4;try{i_(r,a.alternate,a)}finally{pt=g,Q.p=d,V.T=c}}ln=3}}function N_(){if(ln===4||ln===3){ln=0,go();var r=_i,a=Ko,c=Br,d=v_;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?ln=5:(ln=0,Ko=_i=null,I_(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Si=null),sm(c),a=a.stateNode,le&&typeof le.onCommitFiberRoot=="function")try{le.onCommitFiberRoot(ce,a,void 0,(a.current.flags&128)===128)}catch{}if(d!==null){a=V.T,g=Q.p,Q.p=2,V.T=null;try{for(var v=r.onRecoverableError,A=0;A<d.length;A++){var j=d[A];v(j.value,{componentStack:j.stack})}}finally{V.T=a,Q.p=g}}(Br&3)!==0&&rf(),ir(r),g=r.pendingLanes,(c&261930)!==0&&(g&42)!==0?r===Lg?Rc++:(Rc=0,Lg=r):Rc=0,Oc(0)}}function I_(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,uc(a)))}function rf(){return O_(),j_(),N_(),P_()}function P_(){if(ln!==5)return!1;var r=_i,a=Mg;Mg=0;var c=sm(Br),d=V.T,g=Q.p;try{Q.p=32>c?32:c,V.T=null,c=Dg,Dg=null;var v=_i,A=Br;if(ln=0,Ko=_i=null,Br=0,(pt&6)!==0)throw Error(s(331));var j=pt;if(pt|=4,m_(v.current),f_(v,v.current,A,c),pt=j,Oc(0,!1),le&&typeof le.onPostCommitFiberRoot=="function")try{le.onPostCommitFiberRoot(ce,v)}catch{}return!0}finally{Q.p=g,V.T=d,I_(r,a)}}function M_(r,a,c){a=Ss(c,a),a=mg(r.stateNode,a,2),r=gi(r,a,2),r!==null&&(Zl(r,2),ir(r))}function vt(r,a,c){if(r.tag===3)M_(r,r,c);else for(;a!==null;){if(a.tag===3){M_(a,r,c);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Si===null||!Si.has(d))){r=Ss(c,r),c=DS(2),d=gi(a,c,2),d!==null&&(LS(c,d,a,r),Zl(d,2),ir(d));break}}a=a.return}}function zg(r,a,c){var d=r.pingCache;if(d===null){d=r.pingCache=new qP;var g=new Set;d.set(a,g)}else g=d.get(a),g===void 0&&(g=new Set,d.set(a,g));g.has(c)||(Ng=!0,g.add(c),r=ZP.bind(null,r,a,c),a.then(r,r))}function ZP(r,a,c){var d=r.pingCache;d!==null&&d.delete(a),r.pingedLanes|=r.suspendedLanes&c,r.warmLanes&=~c,_t===r&&(rt&c)===c&&(zt===4||zt===3&&(rt&62914560)===rt&&300>an()-Jd?(pt&2)===0&&Yo(r,0):Ig|=c,Go===rt&&(Go=0)),ir(r)}function D_(r,a){a===0&&(a=Yl()),r=ha(r,a),r!==null&&(Zl(r,a),ir(r))}function XP(r){var a=r.memoizedState,c=0;a!==null&&(c=a.retryLane),D_(r,c)}function JP(r,a){var c=0;switch(r.tag){case 31:case 13:var d=r.stateNode,g=r.memoizedState;g!==null&&(c=g.retryLane);break;case 19:d=r.stateNode;break;case 22:d=r.stateNode._retryCache;break;default:throw Error(s(314))}d!==null&&d.delete(a),D_(r,c)}function QP(r,a){return ns(r,a)}var af=null,Xo=null,Vg=!1,of=!1,$g=!1,Ai=0;function ir(r){r!==Xo&&r.next===null&&(Xo===null?af=Xo=r:Xo=Xo.next=r),of=!0,Vg||(Vg=!0,tM())}function Oc(r,a){if(!$g&&of){$g=!0;do for(var c=!1,d=af;d!==null;){if(r!==0){var g=d.pendingLanes;if(g===0)var v=0;else{var A=d.suspendedLanes,j=d.pingedLanes;v=(1<<31-ue(42|r)+1)-1,v&=g&~(A&~j),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(c=!0,z_(d,v))}else v=rt,v=yo(d,d===_t?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(v&3)===0||oi(d,v)||(c=!0,z_(d,v));d=d.next}while(c);$g=!1}}function eM(){L_()}function L_(){of=Vg=!1;var r=0;Ai!==0&&dM()&&(r=Ai);for(var a=an(),c=null,d=af;d!==null;){var g=d.next,v=B_(d,a);v===0?(d.next=null,c===null?af=g:c.next=g,g===null&&(Xo=c)):(c=d,(r!==0||(v&3)!==0)&&(of=!0)),d=g}ln!==0&&ln!==5||Oc(r),Ai!==0&&(Ai=0)}function B_(r,a){for(var c=r.suspendedLanes,d=r.pingedLanes,g=r.expirationTimes,v=r.pendingLanes&-62914561;0<v;){var A=31-ue(v),j=1<<A,U=g[A];U===-1?((j&c)===0||(j&d)!==0)&&(g[A]=em(j,a)):U<=a&&(r.expiredLanes|=j),v&=~j}if(a=_t,c=rt,c=yo(r,r===a?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d=r.callbackNode,c===0||r===a&&(yt===2||yt===9)||r.cancelPendingCommit!==null)return d!==null&&d!==null&&ai(d),r.callbackNode=null,r.callbackPriority=0;if((c&3)===0||oi(r,c)){if(a=c&-c,a===r.callbackPriority)return a;switch(d!==null&&ai(d),sm(c)){case 2:case 8:c=Ds;break;case 32:c=la;break;case 268435456:c=L;break;default:c=la}return d=U_.bind(null,r),c=ns(c,d),r.callbackPriority=a,r.callbackNode=c,a}return d!==null&&d!==null&&ai(d),r.callbackPriority=2,r.callbackNode=null,2}function U_(r,a){if(ln!==0&&ln!==5)return r.callbackNode=null,r.callbackPriority=0,null;var c=r.callbackNode;if(rf()&&r.callbackNode!==c)return null;var d=rt;return d=yo(r,r===_t?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d===0?null:(w_(r,d,a),B_(r,an()),r.callbackNode!=null&&r.callbackNode===c?U_.bind(null,r):null)}function z_(r,a){if(rf())return null;w_(r,a,!0)}function tM(){hM(function(){(pt&6)!==0?ns(on,eM):L_()})}function Fg(){if(Ai===0){var r=Do;r===0&&(r=pn,pn<<=1,(pn&261888)===0&&(pn=256)),Ai=r}return Ai}function V_(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:pd(""+r)}function $_(r,a){var c=a.ownerDocument.createElement("input");return c.name=a.name,c.value=a.value,r.id&&c.setAttribute("form",r.id),a.parentNode.insertBefore(c,a),r=new FormData(r),c.parentNode.removeChild(c),r}function nM(r,a,c,d,g){if(a==="submit"&&c&&c.stateNode===g){var v=V_((g[Fn]||null).action),A=d.submitter;A&&(a=(a=A[Fn]||null)?V_(a.formAction):A.getAttribute("formAction"),a!==null&&(v=a,A=null));var j=new vd("action","action",null,d,g);r.push({event:j,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Ai!==0){var U=A?$_(g,A):new FormData(g);cg(c,{pending:!0,data:U,method:g.method,action:v},null,U)}}else typeof v=="function"&&(j.preventDefault(),U=A?$_(g,A):new FormData(g),cg(c,{pending:!0,data:U,method:g.method,action:v},v,U))},currentTarget:g}]})}}for(var Hg=0;Hg<Cm.length;Hg++){var qg=Cm[Hg],sM=qg.toLowerCase(),rM=qg[0].toUpperCase()+qg.slice(1);Bs(sM,"on"+rM)}Bs(bx,"onAnimationEnd"),Bs(wx,"onAnimationIteration"),Bs(xx,"onAnimationStart"),Bs("dblclick","onDoubleClick"),Bs("focusin","onFocus"),Bs("focusout","onBlur"),Bs(wP,"onTransitionRun"),Bs(xP,"onTransitionStart"),Bs(SP,"onTransitionCancel"),Bs(Sx,"onTransitionEnd"),So("onMouseEnter",["mouseout","mouseover"]),So("onMouseLeave",["mouseout","mouseover"]),So("onPointerEnter",["pointerout","pointerover"]),So("onPointerLeave",["pointerout","pointerover"]),ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ca("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jc="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(" "),iM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jc));function F_(r,a){a=(a&4)!==0;for(var c=0;c<r.length;c++){var d=r[c],g=d.event;d=d.listeners;e:{var v=void 0;if(a)for(var A=d.length-1;0<=A;A--){var j=d[A],U=j.instance,G=j.currentTarget;if(j=j.listener,U!==v&&g.isPropagationStopped())break e;v=j,g.currentTarget=G;try{v(g)}catch(ne){xd(ne)}g.currentTarget=null,v=U}else for(A=0;A<d.length;A++){if(j=d[A],U=j.instance,G=j.currentTarget,j=j.listener,U!==v&&g.isPropagationStopped())break e;v=j,g.currentTarget=G;try{v(g)}catch(ne){xd(ne)}g.currentTarget=null,v=U}}}}function st(r,a){var c=a[rm];c===void 0&&(c=a[rm]=new Set);var d=r+"__bubble";c.has(d)||(H_(a,r,2,!1),c.add(d))}function Wg(r,a,c){var d=0;a&&(d|=4),H_(c,r,d,a)}var lf="_reactListening"+Math.random().toString(36).slice(2);function Gg(r){if(!r[lf]){r[lf]=!0,L0.forEach(function(c){c!=="selectionchange"&&(iM.has(c)||Wg(c,!1,r),Wg(c,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[lf]||(a[lf]=!0,Wg("selectionchange",!1,a))}}function H_(r,a,c,d){switch(bk(a)){case 2:var g=IM;break;case 8:g=PM;break;default:g=ly}c=g.bind(null,a,c,r),g=void 0,!hm||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),d?g!==void 0?r.addEventListener(a,c,{capture:!0,passive:g}):r.addEventListener(a,c,!0):g!==void 0?r.addEventListener(a,c,{passive:g}):r.addEventListener(a,c,!1)}function Kg(r,a,c,d,g){var v=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var A=d.tag;if(A===3||A===4){var j=d.stateNode.containerInfo;if(j===g)break;if(A===4)for(A=d.return;A!==null;){var U=A.tag;if((U===3||U===4)&&A.stateNode.containerInfo===g)return;A=A.return}for(;j!==null;){if(A=bo(j),A===null)return;if(U=A.tag,U===5||U===6||U===26||U===27){d=v=A;continue e}j=j.parentNode}}d=d.return}Y0(function(){var G=v,ne=dm(c),re=[];e:{var Z=_x.get(r);if(Z!==void 0){var J=vd,Te=r;switch(r){case"keypress":if(gd(c)===0)break e;case"keydown":case"keyup":J=JI;break;case"focusin":Te="focus",J=ym;break;case"focusout":Te="blur",J=ym;break;case"beforeblur":case"afterblur":J=ym;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=J0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=zI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=tP;break;case bx:case wx:case xx:J=FI;break;case Sx:J=sP;break;case"scroll":case"scrollend":J=BI;break;case"wheel":J=iP;break;case"copy":case"cut":case"paste":J=qI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=ex;break;case"toggle":case"beforetoggle":J=oP}var Le=(a&4)!==0,St=!Le&&(r==="scroll"||r==="scrollend"),F=Le?Z!==null?Z+"Capture":null:Z;Le=[];for(var z=G,W;z!==null;){var se=z;if(W=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||W===null||F===null||(se=Ql(z,F),se!=null&&Le.push(Nc(z,se,W))),St)break;z=z.return}0<Le.length&&(Z=new J(Z,Te,null,c,ne),re.push({event:Z,listeners:Le}))}}if((a&7)===0){e:{if(Z=r==="mouseover"||r==="pointerover",J=r==="mouseout"||r==="pointerout",Z&&c!==um&&(Te=c.relatedTarget||c.fromElement)&&(bo(Te)||Te[vo]))break e;if((J||Z)&&(Z=ne.window===ne?ne:(Z=ne.ownerDocument)?Z.defaultView||Z.parentWindow:window,J?(Te=c.relatedTarget||c.toElement,J=G,Te=Te?bo(Te):null,Te!==null&&(St=o(Te),Le=Te.tag,Te!==St||Le!==5&&Le!==27&&Le!==6)&&(Te=null)):(J=null,Te=G),J!==Te)){if(Le=J0,se="onMouseLeave",F="onMouseEnter",z="mouse",(r==="pointerout"||r==="pointerover")&&(Le=ex,se="onPointerLeave",F="onPointerEnter",z="pointer"),St=J==null?Z:Jl(J),W=Te==null?Z:Jl(Te),Z=new Le(se,z+"leave",J,c,ne),Z.target=St,Z.relatedTarget=W,se=null,bo(ne)===G&&(Le=new Le(F,z+"enter",Te,c,ne),Le.target=W,Le.relatedTarget=St,se=Le),St=se,J&&Te)t:{for(Le=aM,F=J,z=Te,W=0,se=F;se;se=Le(se))W++;se=0;for(var Pe=z;Pe;Pe=Le(Pe))se++;for(;0<W-se;)F=Le(F),W--;for(;0<se-W;)z=Le(z),se--;for(;W--;){if(F===z||z!==null&&F===z.alternate){Le=F;break t}F=Le(F),z=Le(z)}Le=null}else Le=null;J!==null&&q_(re,Z,J,Le,!1),Te!==null&&St!==null&&q_(re,St,Te,Le,!0)}}
vendor: 5,203 bytes, lines 9-10
9e:{if(Z=G?Jl(G):window,J=Z.nodeName&&Z.nodeName.toLowerCase(),J==="select"||J==="input"&&Z.type==="file")var ut=lx;else if(ax(Z))if(cx)ut=yP;else{ut=mP;var Ne=pP}else J=Z.nodeName,!J||J.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?G&&cm(G.elementType)&&(ut=lx):ut=gP;if(ut&&(ut=ut(r,G))){ox(re,ut,c,ne);break e}Ne&&Ne(r,Z,G),r==="focusout"&&G&&Z.type==="number"&&G.memoizedProps.value!=null&&lm(Z,"number",Z.value)}switch(Ne=G?Jl(G):window,r){case"focusin":(ax(Ne)||Ne.contentEditable==="true")&&(To=Ne,_m=G,oc=null);break;case"focusout":oc=_m=To=null;break;case"mousedown":km=!0;break;case"contextmenu":case"mouseup":case"dragend":km=!1,yx(re,c,ne);break;case"selectionchange":if(bP)break;case"keydown":case"keyup":yx(re,c,ne)}var Je;if(bm)e:{switch(r){case"compositionstart":var it="onCompositionStart";break e;case"compositionend":it="onCompositionEnd";break e;case"compositionupdate":it="onCompositionUpdate";break e}it=void 0}else Eo?rx(r,c)&&(it="onCompositionEnd"):r==="keydown"&&c.keyCode===229&&(it="onCompositionStart");it&&(tx&&c.locale!=="ko"&&(Eo||it!=="onCompositionStart"?it==="onCompositionEnd"&&Eo&&(Je=Z0()):(ci=ne,pm="value"in ci?ci.value:ci.textContent,Eo=!0)),Ne=cf(G,it),0<Ne.length&&(it=new Q0(it,r,null,c,ne),re.push({event:it,listeners:Ne}),Je?it.data=Je:(Je=ix(c),Je!==null&&(it.data=Je)))),(Je=cP?uP(r,c):dP(r,c))&&(it=cf(G,"onBeforeInput"),0<it.length&&(Ne=new Q0("onBeforeInput","beforeinput",null,c,ne),re.push({event:Ne,listeners:it}),Ne.data=Je)),nM(re,r,G,c,ne)}F_(re,a)})}function Nc(r,a,c){return{instance:r,listener:a,currentTarget:c}}function cf(r,a){for(var c=a+"Capture",d=[];r!==null;){var g=r,v=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||v===null||(g=Ql(r,c),g!=null&&d.unshift(Nc(r,g,v)),g=Ql(r,a),g!=null&&d.push(Nc(r,g,v))),r.tag===3)return d;r=r.return}return[]}function aM(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function q_(r,a,c,d,g){for(var v=a._reactName,A=[];c!==null&&c!==d;){var j=c,U=j.alternate,G=j.stateNode;if(j=j.tag,U!==null&&U===d)break;j!==5&&j!==26&&j!==27||G===null||(U=G,g?(G=Ql(c,v),G!=null&&A.unshift(Nc(c,G,U))):g||(G=Ql(c,v),G!=null&&A.push(Nc(c,G,U)))),c=c.return}A.length!==0&&r.push({event:a,listeners:A})}var oM=/\r\n?/g,lM=/\u0000|\uFFFD/g;function W_(r){return(typeof r=="string"?r:""+r).replace(oM,`
10`).replace(lM,"")}function G_(r,a){return a=W_(a),W_(r)===a}function xt(r,a,c,d,g,v){switch(c){case"children":typeof d=="string"?a==="body"||a==="textarea"&&d===""||ko(r,d):(typeof d=="number"||typeof d=="bigint")&&a!=="body"&&ko(r,""+d);break;case"className":fd(r,"class",d);break;case"tabIndex":fd(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":fd(r,c,d);break;case"style":G0(r,d,v);break;case"data":if(a!=="object"){fd(r,"data",d);break}case"src":case"href":if(d===""&&(a!=="a"||c!=="href")){r.removeAttribute(c);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(c);break}d=pd(""+d),r.setAttribute(c,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(c,"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 v=="function"&&(c==="formAction"?(a!=="input"&&xt(r,a,"name",g.name,g,null),xt(r,a,"formEncType",g.formEncType,g,null),xt(r,a,"formMethod",g.formMethod,g,null),xt(r,a,"formTarget",g.formTarget,g,null)):(xt(r,a,"encType",g.encType,g,null),xt(r,a,"method",g.method,g,null),xt(r,a,"target",g.target,g,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(c);break}d=pd(""+d),r.setAttribute(c,d);break;case"onClick":d!=null&&(r.onclick=_r);break;case"onScroll":d!=null&&st("scroll",r);break;case"onScrollEnd":d!=null&&st("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(s(61));if(c=d.__html,c!=null){if(g.children!=null)throw Error(s(60));r.innerHTML=c}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}c=pd(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(c,""+d):r.removeAttribute(c);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
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(c,""):r.removeAttribute(c);break;case"capture":case"download":d===!0?r.setAttribute(c,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(c,d):r.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(c,d):r.removeAttribute(c);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(c):r.setAttribute(c,d);break;case"popover":st("beforetoggle",r),st("toggle",r),dd(r,"popover",d);break;case"xlinkActuate":Sr(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Sr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Sr(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Sr(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Sr(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Sr(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Sr(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Sr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Sr(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":dd(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=DI.get(c)||c,dd(r,c,d))}}function Yg(r,a,c,d,g,v){switch(c){case"style":G0(r,d,v);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(s(61));if(c=d.__html,c!=null){if(g.children!=null)throw Error(s(60));r.innerHTML=c}}break;case"children":typeof d=="string"?ko(r,d):(typeof d=="number"||typeof d=="bigint")&&ko(r,""+d);break;case"onScroll":d!=null&&st("scroll",r);break;case"onScrollEnd":d!=null&&st("scrollend",r);break;case"onClick":d!=null&&(r.onclick=_r);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!B0.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(g=c.endsWith("Capture"),a=c.slice(2,g?c.length-7:void 0),v=r[Fn]||null,v=v!=null?v[c]:null,typeof v=="function"&&r.removeEventListener(a,v,g),typeof d=="function")){typeof v!="function"&&v!==null&&(c in r?r[c]=null:r.hasAttribute(c)&&r.removeAttribute(c)),r.addEventListener(a,d,g);break e}c in r?r[c]=d:d===!0?r.setAttribute(c,""):dd(r,c,d)}}}function An(r,a,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",r),st("load",r);var d=!1,g=!1,v;for(v in c)if(c.hasOwnProperty(v)){var A=c[v];if(A!=null)switch(v){case"src":d=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:xt(r,a,v,A,c,null)}}g&&xt(r,a,"srcSet",c.srcSet,c,null),d&&xt(r,a,"src",c.src,c,null);return;case"input":st("invalid",r);var j=v=A=g=null,U=null,G=null;for(d in c)if(c.hasOwnProperty(d)){var ne=c[d];if(ne!=null)switch(d){case"name":g=ne;break;case"type":A=ne;break;case"checked":U=ne;break;case"defaultChecked":G=ne;break;case"value":v=ne;break;case"defaultValue":j=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(s(137,a));break;default:xt(r,a,d,ne,c,null)}}F0(r,v,j,U,G,A,g,!1);return;case"select":st("invalid",r),d=A=v=null;for(g in c)if(c.hasOwnProperty(g)&&(j=c[g],j!=null))switch(g){case"value":v=j;break;case"defaultValue":A=j;break;case"multiple":d=j;default:xt(r,a,g,j,c,null)}a=v,c=A,r.multiple=!!d,a!=null?_o(r,!!d,a,!1):c!=null&&_o(r,!!d,c,!0);return;case"textarea":st("invalid",r),v=g=d=null;for(A in c)if(c.hasOwnProperty(A)&&(j=c[A],j!=null))switch(A){case"value":d=j;break;case"defaultValue":g=j;break;case"children":v=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(91));break;default:xt(r,a,A,j,c,null)}q0(r,d,g,v);return;case"option":for(U in c)c.hasOwnProperty(U)&&(d=c[U],d!=null)&&(U==="selected"?r.selected=d&&typeof d!="function"&&typeof d!="symbol":xt(r,a,U,d,c,null));return;case"dialog":st("beforetoggle",r),st("toggle",r),st("cancel",r),st("close",r);break;case"iframe":case"object":st("load",r);break;case"video":case"audio":for(d=0;d<jc.length;d++)st(jc[d],r);break;case"image":st("error",r),st("load",r);break;case"details":st("toggle",r);break;case"embed":case"source":case"link":st("error",r),st("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in c)if(c.hasOwnProperty(G)&&(d=c[G],d!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:xt(r,a,G,d,c,null)}return;default:if(cm(a)){for(ne in c)c.hasOwnProperty(ne)&&(d=c[ne],d!==void 0&&Yg(r,a,ne,d,c,void 0));return}}for(j in c)c.hasOwnProperty(j)&&(d=c[j],d!=null&&xt(r,a,j,d,c,null))}function cM(r,a,c,d){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,v=null,A=null,j=null,U=null,G=null,ne=null;for(J in c){var re=c[J];if(c.hasOwnProperty(J)&&re!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":U=re;default:d.hasOwnProperty(J)||xt(r,a,J,null,d,re)}}for(var Z in d){var J=d[Z];if(re=c[Z],d.hasOwnProperty(Z)&&(J!=null||re!=null))switch(Z){case"type":v=J;break;case"name":g=J;break;case"checked":G=J;break;case"defaultChecked":ne=J;break;case"value":A=J;break;case"defaultValue":j=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(s(137,a));break;default:J!==re&&xt(r,a,Z,J,d,re)}}om(r,A,j,U,G,ne,v,g);return;case"select":J=A=j=Z=null;for(v in c)if(U=c[v],c.hasOwnProperty(v)&&U!=null)switch(v){case"value":break;case"multiple":J=U;default:d.hasOwnProperty(v)||xt(r,a,v,null,d,U)}for(g in d)if(v=d[g],U=c[g],d.hasOwnProperty(g)&&(v!=null||U!=null))switch(g){case"value":Z=v;break;case"defaultValue":j=v;break;case"multiple":A=v;default:v!==U&&xt(r,a,g,v,d,U)}a=j,c=A,d=J,Z!=null?_o(r,!!c,Z,!1):!!d!=!!c&&(a!=null?_o(r,!!c,a,!0):_o(r,!!c,c?[]:"",!1));return;case"textarea":J=Z=null;for(j in c)if(g=c[j],c.hasOwnProperty(j)&&g!=null&&!d.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:xt(r,a,j,null,d,g)}for(A in d)if(g=d[A],v=c[A],d.hasOwnProperty(A)&&(g!=null||v!=null))switch(A){case"value":Z=g;break;case"defaultValue":J=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:g!==v&&xt(r,a,A,g,d,v)}H0(r,Z,J);return;case"option":for(var Te in c)Z=c[Te],c.hasOwnProperty(Te)&&Z!=null&&!d.hasOwnProperty(Te)&&(Te==="selected"?r.selected=!1:xt(r,a,Te,null,d,Z));for(U in d)Z=d[U],J=c[U],d.hasOwnProperty(U)&&Z!==J&&(Z!=null||J!=null)&&(U==="selected"?r.selected=Z&&typeof Z!="function"&&typeof Z!="symbol":xt(r,a,U,Z,d,J));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 Le in c)Z=c[Le],c.hasOwnProperty(Le)&&Z!=null&&!d.hasOwnProperty(Le)&&xt(r,a,Le,null,d,Z);for(G in d)if(Z=d[G],J=c[G],d.hasOwnProperty(G)&&Z!==J&&(Z!=null||J!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,a));break;default:xt(r,a,G,Z,d,J)}return;default:if(cm(a)){for(var St in c)Z=c[St],c.hasOwnProperty(St)&&Z!==void 0&&!d.hasOwnProperty(St)&&Yg(r,a,St,void 0,d,Z);for(ne in d)Z=d[ne],J=c[ne],!d.hasOwnProperty(ne)||Z===J||Z===void 0&&J===void 0||Yg(r,a,ne,Z,d,J);return}}for(var F in c)Z=c[F],c.hasOwnProperty(F)&&Z!=null&&!d.hasOwnProperty(F)&&xt(r,a,F,null,d,Z);for(re in d)Z=d[re],J=c[re],!d.hasOwnProperty(re)||Z===J||Z==null&&J==null||xt(r,a,re,Z,d,J)}function K_(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uM(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,
vendor: 9,910 bytes, line 10
10c=performance.getEntriesByType("resource"),d=0;d<c.length;d++){var g=c[d],v=g.transferSize,A=g.initiatorType,j=g.duration;if(v&&j&&K_(A)){for(A=0,j=g.responseEnd,d+=1;d<c.length;d++){var U=c[d],G=U.startTime;if(G>j)break;var ne=U.transferSize,re=U.initiatorType;ne&&K_(re)&&(U=U.responseEnd,A+=ne*(U<j?1:(j-G)/(U-G)))}if(--d,a+=8*(v+A)/(g.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Zg=null,Xg=null;function uf(r){return r.nodeType===9?r:r.ownerDocument}function Y_(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Z_(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Jg(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Qg=null;function dM(){var r=window.event;return r&&r.type==="popstate"?r===Qg?!1:(Qg=r,!0):(Qg=null,!1)}var X_=typeof setTimeout=="function"?setTimeout:void 0,fM=typeof clearTimeout=="function"?clearTimeout:void 0,J_=typeof Promise=="function"?Promise:void 0,hM=typeof queueMicrotask=="function"?queueMicrotask:typeof J_<"u"?function(r){return J_.resolve(null).then(r).catch(pM)}:X_;function pM(r){setTimeout(function(){throw r})}function Ci(r){return r==="head"}function Q_(r,a){var c=a,d=0;do{var g=c.nextSibling;if(r.removeChild(c),g&&g.nodeType===8)if(c=g.data,c==="/$"||c==="/&"){if(d===0){r.removeChild(g),tl(a);return}d--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")d++;else if(c==="html")Ic(r.ownerDocument.documentElement);else if(c==="head"){c=r.ownerDocument.head,Ic(c);for(var v=c.firstChild;v;){var A=v.nextSibling,j=v.nodeName;v[Xl]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&v.rel.toLowerCase()==="stylesheet"||c.removeChild(v),v=A}}else c==="body"&&Ic(r.ownerDocument.body);c=g}while(c);tl(a)}function ek(r,a){var c=r;r=0;do{var d=c.nextSibling;if(c.nodeType===1?a?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(a?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),d&&d.nodeType===8)if(c=d.data,c==="/$"){if(r===0)break;r--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||r++;c=d}while(c)}function ey(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var c=a;switch(a=a.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":ey(c),im(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}r.removeChild(c)}}function mM(r,a,c,d){for(;r.nodeType===1;){var g=c;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!d&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(d){if(!r[Xl])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(v=r.getAttribute("rel"),v==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(v!==g.rel||r.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||r.getAttribute("title")!==(g.title==null?null:g.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(v=r.getAttribute("src"),(v!==(g.src==null?null:g.src)||r.getAttribute("type")!==(g.type==null?null:g.type)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&v&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var v=g.name==null?null:""+g.name;if(g.type==="hidden"&&r.getAttribute("name")===v)return r}else return r;if(r=Es(r.nextSibling),r===null)break}return null}function gM(r,a,c){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!c||(r=Es(r.nextSibling),r===null))return null;return r}function tk(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Es(r.nextSibling),r===null))return null;return r}function ty(r){return r.data==="$?"||r.data==="$~"}function ny(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function yM(r,a){var c=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||c.readyState!=="loading")a();else{var d=function(){a(),c.removeEventListener("DOMContentLoaded",d)};c.addEventListener("DOMContentLoaded",d),r._reactRetry=d}}function Es(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var sy=null;function nk(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var c=r.data;if(c==="/$"||c==="/&"){if(a===0)return Es(r.nextSibling);a--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||a++}r=r.nextSibling}return null}function sk(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var c=r.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(a===0)return r;a--}else c!=="/$"&&c!=="/&"||a++}r=r.previousSibling}return null}function rk(r,a,c){switch(a=uf(c),r){case"html":if(r=a.documentElement,!r)throw Error(s(452));return r;case"head":if(r=a.head,!r)throw Error(s(453));return r;case"body":if(r=a.body,!r)throw Error(s(454));return r;default:throw Error(s(451))}}function Ic(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);im(r)}var Ts=new Map,ik=new Set;function df(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Ur=Q.d;Q.d={f:vM,r:bM,D:wM,C:xM,L:SM,m:_M,X:AM,S:kM,M:CM};function vM(){var r=Ur.f(),a=tf();return r||a}function bM(r){var a=wo(r);a!==null&&a.tag===5&&a.type==="form"?SS(a):Ur.r(r)}var Jo=typeof document>"u"?null:document;function ak(r,a,c){var d=Jo;if(d&&typeof a=="string"&&a){var g=ws(a);g='link[rel="'+r+'"][href="'+g+'"]',typeof c=="string"&&(g+='[crossorigin="'+c+'"]'),ik.has(g)||(ik.add(g),r={rel:r,crossOrigin:c,href:a},d.querySelector(g)===null&&(a=d.createElement("link"),An(a,"link",r),mn(a),d.head.appendChild(a)))}}function wM(r){Ur.D(r),ak("dns-prefetch",r,null)}function xM(r,a){Ur.C(r,a),ak("preconnect",r,a)}function SM(r,a,c){Ur.L(r,a,c);var d=Jo;if(d&&r&&a){var g='link[rel="preload"][as="'+ws(a)+'"]';a==="image"&&c&&c.imageSrcSet?(g+='[imagesrcset="'+ws(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(g+='[imagesizes="'+ws(c.imageSizes)+'"]')):g+='[href="'+ws(r)+'"]';var v=g;switch(a){case"style":v=Qo(r);break;case"script":v=el(r)}Ts.has(v)||(r=m({rel:"preload",href:a==="image"&&c&&c.imageSrcSet?void 0:r,as:a},c),Ts.set(v,r),d.querySelector(g)!==null||a==="style"&&d.querySelector(Pc(v))||a==="script"&&d.querySelector(Mc(v))||(a=d.createElement("link"),An(a,"link",r),mn(a),d.head.appendChild(a)))}}function _M(r,a){Ur.m(r,a);var c=Jo;if(c&&r){var d=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+ws(d)+'"][href="'+ws(r)+'"]',v=g;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=el(r)}if(!Ts.has(v)&&(r=m({rel:"modulepreload",href:r},a),Ts.set(v,r),c.querySelector(g)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Mc(v)))return}d=c.createElement("link"),An(d,"link",r),mn(d),c.head.appendChild(d)}}}function kM(r,a,c){Ur.S(r,a,c);var d=Jo;if(d&&r){var g=xo(d).hoistableStyles,v=Qo(r);a=a||"default";var A=g.get(v);if(!A){var j={loading:0,preload:null};if(A=d.querySelector(Pc(v)))j.loading=5;else{r=m({rel:"stylesheet",href:r,"data-precedence":a},c),(c=Ts.get(v))&&ry(r,c);var U=A=d.createElement("link");mn(U),An(U,"link",r),U._p=new Promise(function(G,ne){U.onload=G,U.onerror=ne}),U.addEventListener("load",function(){j.loading|=1}),U.addEventListener("error",function(){j.loading|=2}),j.loading|=4,ff(A,a,d)}A={type:"stylesheet",instance:A,count:1,state:j},g.set(v,A)}}}function AM(r,a){Ur.X(r,a);var c=Jo;if(c&&r){var d=xo(c).hoistableScripts,g=el(r),v=d.get(g);v||(v=c.querySelector(Mc(g)),v||(r=m({src:r,async:!0},a),(a=Ts.get(g))&&iy(r,a),v=c.createElement("script"),mn(v),An(v,"link",r),c.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(g,v))}}function CM(r,a){Ur.M(r,a);var c=Jo;if(c&&r){var d=xo(c).hoistableScripts,g=el(r),v=d.get(g);v||(v=c.querySelector(Mc(g)),v||(r=m({src:r,async:!0,type:"module"},a),(a=Ts.get(g))&&iy(r,a),v=c.createElement("script"),mn(v),An(v,"link",r),c.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(g,v))}}function ok(r,a,c,d){var g=(g=_e.current)?df(g):null;if(!g)throw Error(s(446));switch(r){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(a=Qo(c.href),c=xo(g).hoistableStyles,d=c.get(a),d||(d={type:"style",instance:null,count:0,state:null},c.set(a,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){r=Qo(c.href);var v=xo(g).hoistableStyles,A=v.get(r);if(A||(g=g.ownerDocument||g,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(r,A),(v=g.querySelector(Pc(r)))&&!v._p&&(A.instance=v,A.state.loading=5),Ts.has(r)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Ts.set(r,c),v||EM(g,r,c,A.state))),a&&d===null)throw Error(s(528,""));return A}if(a&&d!==null)throw Error(s(529,""));return null;case"script":return a=c.async,c=c.src,typeof c=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?
vendor: 4,600 bytes, line 10
10(a=el(c),c=xo(g).hoistableScripts,d=c.get(a),d||(d={type:"script",instance:null,count:0,state:null},c.set(a,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,r))}}function Qo(r){return'href="'+ws(r)+'"'}function Pc(r){return'link[rel="stylesheet"]['+r+"]"}function lk(r){return m({},r,{"data-precedence":r.precedence,precedence:null})}function EM(r,a,c,d){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?d.loading=1:(a=r.createElement("link"),d.preload=a,a.addEventListener("load",function(){return d.loading|=1}),a.addEventListener("error",function(){return d.loading|=2}),An(a,"link",c),mn(a),r.head.appendChild(a))}function el(r){return'[src="'+ws(r)+'"]'}function Mc(r){return"script[async]"+r}function ck(r,a,c){if(a.count++,a.instance===null)switch(a.type){case"style":var d=r.querySelector('style[data-href~="'+ws(c.href)+'"]');if(d)return a.instance=d,mn(d),d;var g=m({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement("style"),mn(d),An(d,"style",g),ff(d,c.precedence,r),a.instance=d;case"stylesheet":g=Qo(c.href);var v=r.querySelector(Pc(g));if(v)return a.state.loading|=4,a.instance=v,mn(v),v;d=lk(c),(g=Ts.get(g))&&ry(d,g),v=(r.ownerDocument||r).createElement("link"),mn(v);var A=v;return A._p=new Promise(function(j,U){A.onload=j,A.onerror=U}),An(v,"link",d),a.state.loading|=4,ff(v,c.precedence,r),a.instance=v;case"script":return v=el(c.src),(g=r.querySelector(Mc(v)))?(a.instance=g,mn(g),g):(d=c,(g=Ts.get(v))&&(d=m({},c),iy(d,g)),r=r.ownerDocument||r,g=r.createElement("script"),mn(g),An(g,"link",d),r.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(d=a.instance,a.state.loading|=4,ff(d,c.precedence,r));return a.instance}function ff(r,a,c){for(var d=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=d.length?d[d.length-1]:null,v=g,A=0;A<d.length;A++){var j=d[A];if(j.dataset.precedence===a)v=j;else if(v!==g)break}v?v.parentNode.insertBefore(r,v.nextSibling):(a=c.nodeType===9?c.head:c,a.insertBefore(r,a.firstChild))}function ry(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function iy(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var hf=null;function uk(r,a,c){if(hf===null){var d=new Map,g=hf=new Map;g.set(c,d)}else g=hf,d=g.get(c),d||(d=new Map,g.set(c,d));if(d.has(r))return d;for(d.set(r,null),c=c.getElementsByTagName(r),g=0;g<c.length;g++){var v=c[g];if(!(v[Xl]||v[xn]||r==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var A=v.getAttribute(a)||"";A=r+A;var j=d.get(A);j?j.push(v):d.set(A,[v])}}return d}function dk(r,a,c){r=r.ownerDocument||r,r.head.insertBefore(c,a==="title"?r.querySelector("head > title"):null)}function TM(r,a,c){if(c===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(r=a.disabled,typeof a.precedence=="string"&&r==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function fk(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function RM(r,a,c,d){if(c.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var g=Qo(d.href),v=a.querySelector(Pc(g));if(v){a=v._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=pf.bind(r),a.then(r,r)),c.state.loading|=4,c.instance=v,mn(v);return}v=a.ownerDocument||a,d=lk(d),(g=Ts.get(g))&&ry(d,g),v=v.createElement("link"),mn(v);var A=v;A._p=new Promise(function(j,U){A.onload=j,A.onerror=U}),An(v,"link",d),c.instance=v}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(c,a),(a=c.state.preload)&&(c.state.loading&3)===0&&(r.count++,c=pf.bind(r),a.addEventListener("load",c),a.addEventListener("error",c))}}var ay=0;function OM(r,a){return r.stylesheets&&r.count===0&&gf(r,r.stylesheets),0<r.count||0<r.imgCount?function(c){var d=setTimeout(function(){if(r.stylesheets&&gf(r,r.stylesheets),r.unsuspend){var v=r.unsu
vendor: 4,255 bytes, line 10
10spend;r.unsuspend=null,v()}},6e4+a);0<r.imgBytes&&ay===0&&(ay=62500*uM());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&gf(r,r.stylesheets),r.unsuspend)){var v=r.unsuspend;r.unsuspend=null,v()}},(r.imgBytes>ay?50:800)+a);return r.unsuspend=c,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(g)}}:null}function pf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gf(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var mf=null;function gf(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,mf=new Map,a.forEach(jM,r),mf=null,pf.call(r))}function jM(r,a){if(!(a.state.loading&4)){var c=mf.get(r);if(c)var d=c.get(null);else{c=new Map,mf.set(r,c);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<g.length;v++){var A=g[v];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(c.set(A.dataset.precedence,A),d=A)}d&&c.set(null,d)}g=a.instance,A=g.getAttribute("data-precedence"),v=c.get(A)||d,v===d&&c.set(null,g),c.set(A,g),this.count++,d=pf.bind(this),g.addEventListener("load",d),g.addEventListener("error",d),v?v.parentNode.insertBefore(g,v.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(g,r.firstChild)),a.state.loading|=4}}var Dc={$$typeof:R,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function NM(r,a,c,d,g,v,A,j,U){this.tag=1,this.containerInfo=r,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=tm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tm(0),this.hiddenUpdates=tm(null),this.identifierPrefix=d,this.onUncaughtError=g,this.onCaughtError=v,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function hk(r,a,c,d,g,v,A,j,U,G,ne,re){return r=new NM(r,a,c,A,U,G,ne,re,j),a=1,v===!0&&(a|=24),v=is(3,null,null,a),r.current=v,v.stateNode=r,a=Um(),a.refCount++,r.pooledCache=a,a.refCount++,v.memoizedState={element:d,isDehydrated:c,cache:a},Fm(v),r}function pk(r){return r?(r=jo,r):jo}function mk(r,a,c,d,g,v){g=pk(g),d.context===null?d.context=g:d.pendingContext=g,d=mi(a),d.payload={element:c},v=v===void 0?null:v,v!==null&&(d.callback=v),c=gi(r,d,a),c!==null&&(Yn(c,r,a),pc(c,r,a))}function gk(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var c=r.retryLane;r.retryLane=c!==0&&c<a?c:a}}function oy(r,a){gk(r,a),(r=r.alternate)&&gk(r,a)}function yk(r){if(r.tag===13||r.tag===31){var a=ha(r,67108864);a!==null&&Yn(a,r,67108864),oy(r,67108864)}}function vk(r){if(r.tag===13||r.tag===31){var a=us();a=nm(a);var c=ha(r,a);c!==null&&Yn(c,r,a),oy(r,a)}}var yf=!0;function IM(r,a,c,d){var g=V.T;V.T=null;var v=Q.p;try{Q.p=2,ly(r,a,c,d)}finally{Q.p=v,V.T=g}}function PM(r,a,c,d){var g=V.T;V.T=null;var v=Q.p;try{Q.p=8,ly(r,a,c,d)}finally{Q.p=v,V.T=g}}function ly(r,a,c,d){if(yf){var g=cy(d);if(g===null)Kg(r,a,d,vf,c),wk(r,d);else if(DM(g,r,a,c,d))d.stopPropagation();else if(wk(r,d),a&4&&-1<MM.indexOf(r)){for(;g!==null;){var v=wo(g);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var A=ss(v.pendingLanes);if(A!==0){var j=v;for(j.pendingLanes|=2,j.entangledLanes|=2;A;){var U=1<<31-ue(A);j.entanglements[1]|=U,A&=~U}ir(v),(pt&6)===0&&(Qd=an()+500,Oc(0))}}break;case 31:case 13:j=ha(v,2),j!==null&&Yn(j,v,2),tf(),oy(v,2)}if(v=cy(d),v===null&&Kg(r,a,d,vf,c),v===g)break;g=v}g!==null&&d.stopPropagation()}else Kg(r,a,d,null,c)}}function cy(r){return r=dm(r),uy(r)}var vf=null;function uy(r){if(vf=null,r=bo(r),r!==null){var a=o(r);if(a===null)r=null;else{var c=a.tag;if(c===13){if(r=l(a),r!==null)return r;r=null}else if(c===31){if(r=u(a),r!==null)return r;r=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return vf=r,null}function bk(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 4,412 bytes, line 10
10: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(bt()){case on:return 2;case Ds:return 8;case la:case ud:return 32;case L:return 268435456;default:return 32}default:return 32}}var dy=!1,Ei=null,Ti=null,Ri=null,Lc=new Map,Bc=new Map,Oi=[],MM="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 wk(r,a){switch(r){case"focusin":case"focusout":Ei=null;break;case"dragenter":case"dragleave":Ti=null;break;case"mouseover":case"mouseout":Ri=null;break;case"pointerover":case"pointerout":Lc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bc.delete(a.pointerId)}}function Uc(r,a,c,d,g,v){return r===null||r.nativeEvent!==v?(r={blockedOn:a,domEventName:c,eventSystemFlags:d,nativeEvent:v,targetContainers:[g]},a!==null&&(a=wo(a),a!==null&&yk(a)),r):(r.eventSystemFlags|=d,a=r.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),r)}function DM(r,a,c,d,g){switch(a){case"focusin":return Ei=Uc(Ei,r,a,c,d,g),!0;case"dragenter":return Ti=Uc(Ti,r,a,c,d,g),!0;case"mouseover":return Ri=Uc(Ri,r,a,c,d,g),!0;case"pointerover":var v=g.pointerId;return Lc.set(v,Uc(Lc.get(v)||null,r,a,c,d,g)),!0;case"gotpointercapture":return v=g.pointerId,Bc.set(v,Uc(Bc.get(v)||null,r,a,c,d,g)),!0}return!1}function xk(r){var a=bo(r.target);if(a!==null){var c=o(a);if(c!==null){if(a=c.tag,a===13){if(a=l(c),a!==null){r.blockedOn=a,M0(r.priority,function(){vk(c)});return}}else if(a===31){if(a=u(c),a!==null){r.blockedOn=a,M0(r.priority,function(){vk(c)});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){r.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}r.blockedOn=null}function bf(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var c=cy(r.nativeEvent);if(c===null){c=r.nativeEvent;var d=new c.constructor(c.type,c);um=d,c.target.dispatchEvent(d),um=null}else return a=wo(c),a!==null&&yk(a),r.blockedOn=c,!1;a.shift()}return!0}function Sk(r,a,c){bf(r)&&c.delete(a)}function LM(){dy=!1,Ei!==null&&bf(Ei)&&(Ei=null),Ti!==null&&bf(Ti)&&(Ti=null),Ri!==null&&bf(Ri)&&(Ri=null),Lc.forEach(Sk),Bc.forEach(Sk)}function wf(r,a){r.blockedOn===a&&(r.blockedOn=null,dy||(dy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,LM)))}var xf=null;function _k(r){xf!==r&&(xf=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){xf===r&&(xf=null);for(var a=0;a<r.length;a+=3){var c=r[a],d=r[a+1],g=r[a+2];if(typeof d!="function"){if(uy(d||c)===null)continue;break}var v=wo(c);v!==null&&(r.splice(a,3),a-=3,cg(v,{pending:!0,data:g,method:c.method,action:d},d,g))}}))}function tl(r){function a(U){return wf(U,r)}Ei!==null&&wf(Ei,r),Ti!==null&&wf(Ti,r),Ri!==null&&wf(Ri,r),Lc.forEach(a),Bc.forEach(a);for(var c=0;c<Oi.length;c++){var d=Oi[c];d.blockedOn===r&&(d.blockedOn=null)}for(;0<Oi.length&&(c=Oi[0],c.blockedOn===null);)xk(c),c.blockedOn===null&&Oi.shift();if(c=(r.ownerDocument||r).$$reactFormReplay,c!=null)for(d=0;d<c.length;d+=3){var g=c[d],v=c[d+1],A=g[Fn]||null;if(typeof v=="function")A||_k(c);else if(A){var j=null;if(v&&v.hasAttribute("formAction")){if(g=v,A=v[Fn]||null)j=A.formAction;else if(uy(g)!==null)continue}else j=A.action;typeof j=="function"?c[d+1]=j:(c.splice(d,3),d-=3),_k(c)}}}
10function kk(){function r(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(A){return g=A})},focusReset:"manual",scroll:"manual"})}function a(){g!==null&&(g(),g=null),d||setTimeout(c,20)}function c(){if(!d&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,g=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(c,100),function(){d=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function fy(r){this._internalRoot=r}Sf.prototype.render=fy.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(s(409));var c=a.current,d=us();mk(c,d,r,a,null,null)},Sf.prototype.unmount=fy.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;mk(r.current,2,null,r,null,null),tf(),a[vo]=null}};function Sf(r){this._internalRoot=r}Sf.prototype.unstable_scheduleHydration=function(r){if(r){var a=P0();r={blockedOn:null,target:r,priority:a};for(var c=0;c<Oi.length&&a!==0&&a<Oi[c].priority;c++);Oi.splice(c,0,r),c===0&&xk(r)}};var Ak=t.version;if(Ak!=="19.2.7")throw Error(s(527,Ak,"19.2.7"));Q.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(s(188)):(r=Object.keys(r).join(","),Error(s(268,r)));return r=h(a),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var BM={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_f.isDisabled&&_f.supportsFiber)try{ce=_f.inject(BM),le=_f}catch{}}return Vc.createRoot=function(r,a){if(!i(r))throw Error(s(299));var c=!1,d="",g=NS,v=IS,A=PS;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError)),a=hk(r,1,!1,null,null,c,d,null,g,v,A,kk),r[vo]=a.current,Gg(r),new fy(a)},Vc.hydrateRoot=function(r,a,c){if(!i(r))throw Error(s(299));var d=!1,g="",v=NS,A=IS,j=PS,U=null;return c!=null&&(c.unstable_strictMode===!0&&(d=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onUncaughtError!==void 0&&(v=c.onUncaughtError),c.onCaughtError!==void 0&&(A=c.onCaughtError),c.onRecoverableError!==void 0&&(j=c.onRecoverableError),c.formState!==void 0&&(U=c.formState)),a=hk(r,1,!0,a,c??null,d,g,U,v,A,j,kk),a.context=pk(null),c=a.current,d=us(),d=nm(d),g=mi(d),g.callback=null,gi(c,g,d),c=d,a.current.lanes=c,Zl(a,c),ir(a),r[vo]=a.current,Gg(r),new Sf(a)},Vc.version="19.2.7",Vc}var Mk;function YM(){if(Mk)return my.exports;Mk=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),my.exports=KM(),my.exports}var ZM=YM(),XM="__TSS_CONTEXT",Sv=Symbol.for("TSS_SERVER_FUNCTION"),JM="application/x-tss-framed",zr={JSON:0,CHUNK:1,END:2,ERROR:3},QM=/;\s*v=(\d+)/;function eD(e){const t=e.match(QM);return t?parseInt(t[1],10):void 0}function tD(e){const t=eD(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var iT=()=>window.__TSS_START_OPTIONS__;const aT=!1;function yu(e){return e[e.length-1]}function nD(e){return typeof e=="function"}function Ba(e,t){return nD(e)?e(t):e}const oT=Object.prototype.hasOwnProperty,Dk=Object.prototype.propertyIsEnumerable;function lT(e){for(const t in e)if(oT.call(e,t))return!0;return!1}const sD=()=>Object.create(null),Ca=(e,t)=>Ua(e,t,sD);function Ua(e,t,n=()=>({}),s=0){if(e===t)return e;if(s>500)return t;const i=t,o=Uk(e)&&Uk(i);if(!o&&!(_h(e)&&_h(i)))return i;const l=o?e:Lk(e);if(!l)return i;const u=o?i:Lk(i);if(!u)return i;const f=l.length,h=u.length,p=o?new Array(h):n();let m=0;for(let b=0;b<h;b++){const w=o?b:u[b],x=e[w],S=i[w];if(x===S){p[w]=x,(o?b<f:oT.call(e,w))&&m++;continue}if(x===null||S===null||typeof x!="object"||typeof S!="object"){p[w]=S;continue}const _=Ua(x,S,n,s+1);p[w]=_,_===x&&m++}return f===h&&m===f?e:p}function Lk(e){const t=Object.getOwnPropertyNames(e);for(const i of t)if(!Dk.call(e,i))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const s=t;for(const i of n){if(!Dk.call(e,i))return!1;s.push(i)}return s}function _h(e){if(!Bk(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Bk(n)||!n.hasOwnProperty("isPrototypeOf"))}function Bk(e){return Object.prototype.toString.call(e)==="[object Object]"}function Uk(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ln(e,t,n){if(e===t)return!0;
10if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let s=0,i=e.length;s<i;s++)if(!Ln(e[s],t[s],n))return!1;return!0}if(_h(e)&&_h(t)){const s=n?.ignoreUndefined??!0;if(n?.partial){for(const l in t)if((!s||t[l]!==void 0)&&!Ln(e[l],t[l],n))return!1;return!0}let i=0;if(!s)i=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&i++;let o=0;for(const l in t)if((!s||t[l]!==void 0)&&(o++,o>i||!Ln(e[l],t[l],n)))return!1;return i===o}return!1}function Xa(e){let t,n;const s=new Promise((i,o)=>{t=i,n=o});return s.status="pending",s.resolve=i=>{s.status="resolved",s.value=i,t(i),e?.(i)},s.reject=i=>{s.status="rejected",n(i)},s}function rD(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function vu(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}const iD=/[\x00-\x1f\x7f"<>`{}]/g;function aD(e){return e.replace(iD,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function zk(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return aD(t)}const oD=["http:","https:","mailto:","tel:"];function kh(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}const lD={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},cD=/[&><\u2028\u2029]/g;function uD(e){return e.replace(cD,t=>lD[t])}function $c(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,s="",i;for(;(i=t.exec(e))!==null;)s+=zk(e.slice(n,i.index))+i[0],n=t.lastIndex;s=s+zk(n?e.slice(n):e);let o=!1;return s.startsWith("//")&&(o=!0,s="/"+s.replace(/^\/+/,"")),{path:s,handledProtocolRelativeURL:o}}function dD(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function fD(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Jn(){throw new Error("Invariant failed")}function bu(e){const t=new Map;let n,s;const i=o=>{o.next&&(o.prev?(o.prev.next=o.next,o.next.prev=o.prev,o.next=void 0,s&&(s.next=o,o.prev=s)):(o.next.prev=void 0,n=o.next,o.next=void 0,s&&(o.prev=s,s.next=o)),s=o)};return{get(o){const l=t.get(o);if(l)return i(l),l.value},set(o,l){if(t.size>=e&&n){const f=n;t.delete(f.key),f.next&&(n=f.next,f.next.prev=void 0),f===s&&(s=void 0)}const u=t.get(o);if(u)u.value=l,i(u);else{const f={key:o,value:l,prev:s};s&&(s.next=f),s=f,n||(n=f),t.set(o,f)}},clear(){t.clear(),n=void 0,s=void 0}}}const zi=4,cT=5;function hD(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function uT(e,t,n=new Uint16Array(6)){const s=e.indexOf("/",t),i=s===-1?e.length:s,o=e.substring(t,i);if(!o||!o.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(o==="$"){const u=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=u,n[4]=u,n[5]=u,n}if(o.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;const l=hD(o);if(l){const[u,f]=l,h=o.charCodeAt(u+1);if(h===45){if(u+2<o.length&&o.charCodeAt(u+2)===36){const p=u+3,m=f;if(p<m)return n[0]=3,n[1]=t+u,n[2]=t+p,n[3]=t+m,n[4]=t+f+1,n[5]=i,n}}else if(h===36){const p=u+1,m=u+2;return m===f?(n[0]=2,n[1]=t+u,n[2]=t+p,n[3]=t+m,n[4]=t+f+1,n[5]=e.length,n):(n[0]=1,n[1]=t+u,n[2]=t+m,n[3]=t+f,n[4]=t+f+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function bp(e,t,n,s,i,o,l){l?.(n);let u=s;{const f=n.fullPath??n.from,h=f.length,p=n.options?.caseSensitive??e,m=n.options?.params?.parse??n.options?.parseParams;for(;u<h;){const w=uT(f,u,t);let x;const S=u,_=w[5];switch(u=_+1,o++,w[0]){case 0:{const k=f.substring(w[2],w[3]);if(p){const C=i.static?.get(k);if(C)x=C;else{i.static??=new Map;const R=za(n.fullPath??n.from);R.parent=i,R.depth=o,x=R,i.static.set(k,R)}}else{const C=k.toLowerCase(),R=i.staticInsensitive?.get(C);if(R)x=R;else{i.staticInsensitive??=new Map;const O=za(n.fullPath??n.from);O.parent=i,O.depth=o,x=O,i.staticInsensitive.set(C,O)}}break}case 1:{const k=f.substring(S,w[1]),C=f.substring(w[4],_),R=p&&!!(k||C),O=k?R?k:k.toLowerCase():void 0,N=C?R?C:C.toLowerCase():void 0,P=!m&&i.dynamic?.find(D=>!D.parse&&D.caseSensitive===R&&D.prefix===O&&D.suffix===N);if(P)x=P;else{const D=wy(1,n.fullPath??n.from,R,O,N);x=D,D.depth=o,D.parent=i,i.dynamic??=[],i.dynamic.push(D)}break}case 3:{const k=f.substring(S,w[1]),C=f.substring(w[4],_),R=p&&!!(k||C),O=k?R?k:k.toLowerCase():void 0,N=C?R?C:C.toLowerCase():void 0,P=!m&&i.optional?.find(D=>!D.parse&&D.caseSensitive===R&&D.prefix===O&&D.suffix===N);if(P)x=P;else{const D=wy(3,n.fullPath??n.from,R,O,N);
10x=D,D.parent=i,D.depth=o,i.optional??=[],i.optional.push(D)}break}case 2:{const k=f.substring(S,w[1]),C=f.substring(w[4],_),R=p&&!!(k||C),O=k?R?k:k.toLowerCase():void 0,N=C?R?C:C.toLowerCase():void 0,P=wy(2,n.fullPath??n.from,R,O,N);x=P,P.parent=i,P.depth=o,i.wildcard??=[],i.wildcard.push(P)}}i=x}if(m&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const w=za(n.fullPath??n.from);w.kind=cT,w.parent=i,o++,w.depth=o,i.pathless??=[],i.pathless.push(w),i=w}const b=(n.path||!n.children)&&!n.isRoot;if(b&&f.endsWith("/")){const w=za(n.fullPath??n.from);w.kind=zi,w.parent=i,o++,w.depth=o,i.index=w,i=w}i.parse=m??null,i.priority=n.options?.params?.priority??0,b&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(const f of n.children)bp(e,t,f,u,i,o,l)}function by(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Pi(e){if(e.pathless)for(const t of e.pathless)Pi(t);if(e.static)for(const t of e.static.values())Pi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Pi(t);if(e.dynamic?.length){e.dynamic.sort(by);for(const t of e.dynamic)Pi(t)}if(e.optional?.length){e.optional.sort(by);for(const t of e.optional)Pi(t)}if(e.wildcard?.length){e.wildcard.sort(by);for(const t of e.wildcard)Pi(t)}}function za(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function wy(e,t,n,s,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:s,suffix:i}}function pD(e,t){const n=za("/"),s=new Uint16Array(6);for(const i of e)bp(!1,s,i,1,n,0);Pi(n),t.masksTree=n,t.flatCache=bu(1e3)}function mD(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const s=Qb(e,t.masksTree);return t.flatCache.set(e,s),s}function gD(e,t,n,s,i){e||="/",s||="/";const o=t?`case\0${e}`:e;let l=i.singleCache.get(o);return l||(l=za("/"),bp(t,new Uint16Array(6),{from:e},1,l,0),i.singleCache.set(o,l)),Qb(s,l,n)}function yD(e,t,n=!1){const s=n?e:`nofuzz\0${e}`,i=t.matchCache.get(s);if(i!==void 0)return i;e||="/";let o;try{o=Qb(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)o=null;else throw l}return o&&(o.branch=fT(o.route)),t.matchCache.set(s,o),o}function vD(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function bD(e,t=!1,n){const s=za(e.fullPath),i=new Uint16Array(6),o={},l={};let u=0;return bp(t,i,e,1,s,0,f=>{if(n?.(f,u),f.id in o&&Jn(),o[f.id]=f,u!==0&&f.path){const h=vD(f.fullPath);(!l[h]||f.fullPath.endsWith("/"))&&(l[h]=f)}u++}),Pi(s),{processedTree:{segmentTree:s,singleCache:bu(1e3),matchCache:bu(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:l}}function Qb(e,t,n=!1){const s=e.split("/"),i=xD(e,s,t,n);if(!i)return null;const[o]=dT(e,s,i);return{route:i.node.route,rawParams:o}}function dT(e,t,n){const s=wD(n.node);let i=null;const o=Object.create(null);let l=n.extract?.part??0,u=n.extract?.node??0,f=n.extract?.path??0,h=n.extract?.segment??0;for(;u<s.length;l++,u++,f++,h++){const p=s[u];if(p.kind===zi)break;if(p.kind===cT){h--,l--,f--;continue}const m=t[l],b=f;if(m&&(f+=m.length),p.kind===1){i??=n.node.fullPath.split("/");const w=i[h],x=p.prefix?.length??0;if(w.charCodeAt(x)===123){const S=p.suffix?.length??0,_=w.substring(x+2,w.length-S-1),k=m.substring(x,m.length-S);o[_]=decodeURIComponent(k)}else{const S=w.substring(1);o[S]=decodeURIComponent(m)}}else if(p.kind===3){if(n.skipped&1<<u){l--,f=b-1;continue}i??=n.node.fullPath.split("/");const w=i[h],x=p.prefix?.length??0,S=p.suffix?.length??0,_=w.substring(x+3,w.length-S-1),k=p.suffix||p.prefix?m.substring(x,m.length-S):m;k&&(o[_]=decodeURIComponent(k))}else if(p.kind===2){const w=p,x=e.substring(b+(w.prefix?.length??0),e.length-(w.suffix?.length??0)),S=decodeURIComponent(x);o["*"]=S,o._splat=S;break}}return n.rawParams&&Object.assign(o,n.rawParams),[o,{part:l,node:u,path:f,segment:h}]}function fT(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function wD(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function xD(e,t,n,s){if(e==="/"&&n.index)return{node:n.index,skipped:0};const i=!yu(t),o=i&&e!=="/",l=t.length-(i?1:0),u=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let f=null,h=null;for(;u.length;){const p=u.pop(),{node:m,index:b,skipped:w,depth:x,statics:S,dynamics:_,optionals:k}=p;let{extract:C,rawParams:R}=p;if(m.kind===2&&m.route&&!Af(h,p))continue;if(m.parse){if(!Vk(e,t,p))continue;R=p.rawParams,C=p.extract}s&&m.route&&m.kind!==zi&&Af(f,p)&&(f=p);const O=b===l;if(O&&(m.route&&(!o||m.kind===zi||m.kind===2)&&Af(h,p)&&(h=p),!m.optional&&!m.wildcard&&!m.index&&!m.pathless))continue;const N=O?void 0:t[b];let P;if(O&&m.index){const D={node:m.index,index:b,skipped:w,depth:x+1,statics:S,dynamics:_,optionals:k,extract:C,rawParams:R};let M=!0;if(m.index.parse&&(Vk(e,t,D)||(M=!1)),M){if(!_&&!k&&!w&&SD(S,l))return D;Af(h,D)&&(h=D)}}if(m.wildcard)for(let D=m.wildcard.length-1;D>=0;D--){const M=m.wildcard[D],{prefix:$,suffix:K}=M;if(!($&&(O||!(M.caseSensitive?N:P??=N.toLowerCase()).startsWith($)))){if(K){if(O)continue;const Y=t.slice(b).join("/").slice(-K.length);if((M.caseSensitive?Y:Y.toLowerCase())!==K)continue}u.push({node:M,index:l,skipped:w,depth:x+1,statics:S,dynamics:_,optionals:k,extract:C,rawParams:R})}}if(m.optional){const D=w|1<<x,M=x+1;for(let $=m.optional.length-1;$>=0;$--){const K=m.optional[$];u.push({node:K,index:b,skipped:D,depth:M,statics:S,dynamics:_,optionals:k,extract:C,rawParams:R})}if(!O)for(let $=m.optional.length-1;$>=0;$--){const K=m.optional[$],{prefix:Y,suffix:X}=K;if(Y||X){const ae=K.caseSensitive?N:P??=N.toLowerCase();if(Y&&!ae.startsWith(Y)||X&&!ae.endsWith(X))continue}u.push({node:K,index:b+1,skipped:w,depth:M,statics:S,dynamics:_,optionals:k+kf(l,b),extract:C,rawParams:R})}}if(!O&&m.dynamic&&N)for(let D=m.dynamic.length-1;D>=0;D--){const M=m.dynamic[D],{prefix:$,suffix:K}=M;if($||K){const Y=M.caseSensitive?N:P??=N.toLowerCase();if($&&!Y.startsWith($)||K&&!Y.endsWith(K))continue}u.push({node:M,index:b+1,skipped:w,depth:x+1,statics:S,dynamics:_+kf(l,b),optionals:k,extract:C,rawParams:R})}if(!O&&m.staticInsensitive){const D=m.staticInsensitive.get(P??=N.toLowerCase());D&&u.push({node:D,index:b+1,skipped:w,depth:x+1,statics:S+kf(l,b),dynamics:_,optionals:k,extract:C,rawParams:R})}if(!O&&m.static){const D=m.static.get(N);D&&u.push({node:D,index:b+1,skipped:w,depth:x+1,statics:S+kf(l,b),dynamics:_,optionals:k,extract:C,rawParams:R})}if(m.pathless){const D=x+1;for(let M=m.pathless.length-1;M>=0;M--){const $=m.pathless[M];u.push({node:$,index:b,skipped:w,depth:D,statics:S,dynamics:_,optionals:k,extract:C,rawParams:R})}}}if(h)return h;if(s&&f){let p=f.index;for(let b=0;b<f.index;b++)p+=t[b].length;const m=p===e.length?"/":e.slice(p);return f.rawParams??=Object.create(null),f.rawParams["**"]=decodeURIComponent(m),f}return null}function kf(e,t){return 2**(e-t-1)}function SD(e,t){return e===2**(t-1)-1}function Vk(e,t,n){let s,i;try{[s,i]=dT(e,t,n)}catch{return null}if(n.rawParams=s,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(s)===!1)return null}catch{}return!0}function Af(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===zi)>(e.node.kind===zi)||t.node.kind===zi==(e.node.kind===zi)&&t.depth>e.depth))):!0}function rh(e){return ew(e.filter(t=>t!==void 0).join("/"))}function ew(e){return e.replace(/\/{2,}/g,"/")}function hT(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Yr(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function pT(e){return Yr(hT(e))}function Ah(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function _D(e,t,n){return Ah(e,n)===Ah(t,n)}function kD({base:e,to:t,trailingSlash:n="never",cache:s}){const i=t.startsWith("/"),o=!i&&t===".";let l;if(s){l=i?t:o?e:e+"\0"+t;const h=s.get(l);if(h)return h}let u;if(o)u=e.split("/");else if(i)u=t.split("/");else{for(u=e.split("/");u.length>1&&yu(u)==="";)u.pop();const h=t.split("/");for(let p=0,m=h.length;p<m;p++){const b=h[p];b===""?p?p===m-1&&u.push(b):u=[b]:b===".."?u.pop():b==="."||u.push(b)}}u.length>1&&(yu(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));const f=ew(u.join("/"))||"/";return l&&s&&s.set(l,f),f}function AD(e){const t=new Map(e.map(i=>[encodeURIComponent(i),i])),n=Array.from(t.keys()).map(i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(n,"g");return i=>i.replace(s,o=>t.get(o)??o)}function xy(e,t,n){const s=t[e];
10return typeof s!="string"?s:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(s)?s:s.split("/").map(i=>Fk(i,n)).join("/"):Fk(s,n)}function $k({path:e,params:t,decoder:n,...s}){let i=!1;const o=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:o,isMissingParams:i};if(!e.includes("$"))return{interpolatedPath:e,usedParams:o,isMissingParams:i};const l=e.length;let u=0,f,h="";for(;u<l;){const p=u;f=uT(e,p,f);const m=f[5];if(u=m+1,p===m)continue;const b=f[0];if(b===0){h+="/"+e.substring(p,m);continue}if(b===2){const w=t._splat;o._splat=w,o["*"]=w;const x=e.substring(p,f[1]),S=e.substring(f[4],m);if(!w){i=!0,(x||S)&&(h+="/"+x+S);continue}const _=xy("_splat",t,n);h+="/"+x+_+S;continue}if(b===1){const w=e.substring(f[2],f[3]);!i&&!(w in t)&&(i=!0),o[w]=t[w];const x=e.substring(p,f[1]),S=e.substring(f[4],m),_=xy(w,t,n)??"undefined";h+="/"+x+_+S;continue}if(b===3){const w=e.substring(f[2],f[3]),x=t[w];if(x==null)continue;o[w]=x;const S=e.substring(p,f[1]),_=e.substring(f[4],m),k=xy(w,t,n)??"";h+="/"+S+k+_;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:o,interpolatedPath:h||"/",isMissingParams:i}}function Fk(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function Wa(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function vn(e){return e?.isNotFound===!0}function mT(e,t=String){const n=new URLSearchParams;for(const s in e){const i=e[s];i!==void 0&&n.set(s,t(i))}return n.toString()}function Sy(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function CD(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[s,i]of t.entries()){const o=n[s];o==null?n[s]=Sy(i):Array.isArray(o)?o.push(Sy(i)):n[s]=[o,Sy(i)]}return n}const ED=RD(JSON.parse),TD=OD(JSON.stringify,JSON.parse);function RD(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=CD(t);for(const s in n){const i=n[s];if(typeof i=="string")try{n[s]=e(i)}catch{}}return n}}function OD(e,t){const n=typeof t=="function";function s(i){if(typeof i=="object"&&i!==null)try{return e(i)}catch{}else if(n&&typeof i=="string")try{return t(i),e(i)}catch{}return i}return i=>{const o=mT(i,s);return o?`?${o}`:""}}const Ga="__root__";function gT(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Xn(e){return e instanceof Response&&!!e.options}function jD(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return gT(e)}const _v=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},ND=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),wp=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Ka=(e,t,n=!0)=>{const s={...e.router.options.context??{}},i=n?t:t-1;for(let o=0;o<=i;o++){const l=e.matches[o];if(!l)continue;const u=e.router.getMatch(l.id);u&&Object.assign(s,u.__routeContext,u.__beforeLoadContext)}return s},Hk=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,s=e.matches.findIndex(l=>l.routeId===e.router.routeTree.id),i=s>=0?s:0;let o=n?e.matches.findIndex(l=>l.routeId===n):e.firstBadMatchIndex??e.matches.length-1;o<0&&(o=i);for(let l=o;l>=0;l--){const u=e.matches[l];if(e.router.looseRoutesById[u.routeId].options.notFoundComponent)return l}return n?o:i},Vi=(e,t,n)=>{if(!(!Xn(n)&&!vn(n)))throw Xn(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,s=>({...s,status:Xn(n)?"redirected":vn(n)?"notFound":s.status==="pending"?"success":s.status,context:Ka(e,t.index),isFetching:!1,error:n})),vn(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Xn(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},yT=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},qk=(e,t,n)=>
10{const s=Ka(e,n);e.updateMatch(t,i=>({...i,context:s}))},Fc=(e,t,n)=>{const{id:s,routeId:i}=e.matches[t],o=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Vi(e,e.router.getMatch(s),n);try{o.options.onError?.(n)}catch(l){n=l,Vi(e,e.router.getMatch(s),n)}e.updateMatch(s,l=>(l._nonReactive.beforeLoadPromise?.resolve(),l._nonReactive.beforeLoadPromise=void 0,l._nonReactive.loadPromise?.resolve(),{...l,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Xn(n)&&!vn(n)&&(e.serialError??=n)},vT=(e,t,n,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;const i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!wp(e,t)&&(n.options.loader||n.options.beforeLoad||wT(n))&&typeof i=="number"&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const o=setTimeout(()=>{_v(e)},i);s._nonReactive.pendingTimeout=o}},ID=(e,t,n)=>{const s=e.router.getMatch(t);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;vT(e,t,n,s);const i=()=>{const o=e.router.getMatch(t);o.preload&&(o.status==="redirected"||o.status==="notFound")&&Vi(e,o,o.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(i):i()},PD=(e,t,n,s)=>{const i=e.router.getMatch(t);let o=i._nonReactive.loadPromise;i._nonReactive.loadPromise=Xa(()=>{o?.resolve(),o=void 0});const{paramsError:l,searchError:u}=i;l&&Fc(e,n,l),u&&Fc(e,n,u),vT(e,t,s,i);const f=new AbortController;let h=!1;const p=()=>{h||(h=!0,e.updateMatch(t,O=>({...O,isFetching:"beforeLoad",fetchCount:O.fetchCount+1,abortController:f})))},m=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,O=>({...O,isFetching:!1}))};if(!s.options.beforeLoad){e.router.batch(()=>{p(),m()});return}i._nonReactive.beforeLoadPromise=Xa();const b={...Ka(e,n,!1),...i.__routeContext},{search:w,params:x,cause:S}=i,_=wp(e,t),k={search:w,abortController:f,params:x,preload:_,context:b,location:e.location,navigate:O=>e.router.navigate({...O,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?"preload":S,matches:e.matches,routeId:s.id,...e.router.options.additionalContext},C=O=>{if(O===void 0){e.router.batch(()=>{p(),m()});return}(Xn(O)||vn(O))&&(p(),Fc(e,n,O)),e.router.batch(()=>{p(),e.updateMatch(t,N=>({...N,__beforeLoadContext:O})),m()})};let R;try{if(R=s.options.beforeLoad(k),vu(R))return p(),R.catch(O=>{Fc(e,n,O)}).then(C)}catch(O){p(),Fc(e,n,O)}C(R)},MD=(e,t)=>{const{id:n,routeId:s}=e.matches[t],i=e.router.looseRoutesById[s],o=()=>u(),l=()=>PD(e,n,t,i),u=()=>{if(yT(e,n))return;const f=ID(e,n,i);return vu(f)?f.then(l):l()};return o()},DD=(e,t,n)=>{const s=e.router.getMatch(t);if(!s||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const i={ssr:e.router.options.ssr,matches:e.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([o,l,u])=>({meta:o?.meta,links:o?.links,headScripts:o?.scripts,headers:u,scripts:l,styles:o?.styles}))},bT=(e,t,n,s,i)=>{const o=t[s-1],{params:l,loaderDeps:u,abortController:f,cause:h}=e.router.getMatch(n),p=Ka(e,s),m=wp(e,n);return{params:l,deps:u,preload:!!m,parentMatchPromise:o,abortController:f,context:p,location:e.location,navigate:b=>e.router.navigate({...b,_fromLocation:e.location}),cause:m?"preload":h,route:i,...e.router.options.additionalContext}},Wk=async(e,t,n,s,i)=>{try{const o=e.router.getMatch(n);try{(!(aT??e.router.isServer)||o.ssr===!0)&&wu(i);const l=i.options.loader,u=typeof l=="function"?l:l?.handler,f=u?.(bT(e,t,n,s,i)),h=!!u&&vu(f);if((h||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||o._nonReactive.minPendingPromise)&&e.updateMatch(n,m=>({...m,isFetching:"loader"})),u){const m=h?await f:f;Vi(e,e.router.getMatch(n),m),m!==void 0&&e.updateMatch(n,b=>({...b,loaderData:m}))}i._lazyPromise&&await i._lazyPromise;const p=o._nonReactive.minPendingPromise;p&&await p,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,m=>({...m,error:void 0,context:Ka(e,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let u=l;if(u?.name==="AbortError"){if(o.abortController.signal.aborted){o._nonReactive.loaderPromise?.resolve(),o._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,h=>({...h,status:h.status==="pending"?"success":h.status,isFetching:!1,context:Ka(e,s)}));return}const f=o._nonReactive.minPendingPromise;f&&await f,vn(l)&&await i.options.notFoundComponent?.preload?.(),Vi(e,e.router.getMatch(n),l);try{i.options.onError?.(l)}catch(h){u=h,Vi(e,e.router.getMatch(n),h)}!Xn(u)&&!vn(u)&&await wu(i,["errorComponent"]),e.updateMatch(n,h=>({...h,error:u,context:Ka(e,s),status:"error",isFetching:!1}))}}catch(o){const l=e.router.getMatch(n);l&&(l._nonReactive.loaderPromise=void 0),Vi(e,l,o)}},LD=async(e,t,n)=>{async function s(w,x,S,_,k){const C=Date.now()-x.updatedAt,R=w?k.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:k.options.staleTime??e.router.options.defaultStaleTime??0,O=k.options.shouldReload,N=typeof O=="function"?O(bT(e,t,i,n,k)):O,{status:P,invali
10d:D}=_,M=C>=R&&(!!e.forceStaleReload||_.cause==="enter"||S!==void 0&&S!==_.id);l=P==="success"&&(D||(N??M)),w&&k.options.preload===!1||(l&&!e.sync&&p?(u=!0,(async()=>{try{await Wk(e,t,i,n,k);const $=e.router.getMatch(i);$._nonReactive.loaderPromise?.resolve(),$._nonReactive.loadPromise?.resolve(),$._nonReactive.loaderPromise=void 0,$._nonReactive.loadPromise=void 0}catch($){Xn($)&&await e.router.navigate($.options)}})()):P!=="success"||l?await Wk(e,t,i,n,k):qk(e,i,n))}const{id:i,routeId:o}=e.matches[n];let l=!1,u=!1;const f=e.router.looseRoutesById[o],h=f.options.loader,p=((typeof h=="function"?void 0:h?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(yT(e,i)){if(!e.router.getMatch(i))return e.matches[n];qk(e,i,n)}else{const w=e.router.getMatch(i),x=e.router.stores.matchesId.get()[n],S=(x&&e.router.stores.matchStores.get(x)||null)?.routeId===o?x:e.router.stores.matches.get().find(k=>k.routeId===o)?.id,_=wp(e,i);if(w._nonReactive.loaderPromise){if(w.status==="success"&&!e.sync&&!w.preload&&p)return w;await w._nonReactive.loaderPromise;const k=e.router.getMatch(i),C=k._nonReactive.error||k.error;C&&Vi(e,k,C),k.status==="pending"&&await s(_,w,S,k,f)}else{const k=_&&!e.router.stores.matchStores.has(i),C=e.router.getMatch(i);C._nonReactive.loaderPromise=Xa(),k!==C.preload&&e.updateMatch(i,R=>({...R,preload:k})),await s(_,w,S,C,f)}}const m=e.router.getMatch(i);u||(m._nonReactive.loaderPromise?.resolve(),m._nonReactive.loadPromise?.resolve(),m._nonReactive.loadPromise=void 0),clearTimeout(m._nonReactive.pendingTimeout),m._nonReactive.pendingTimeout=void 0,u||(m._nonReactive.loaderPromise=void 0),m._nonReactive.dehydrated=void 0;const b=u?m.isFetching:!1;return b!==m.isFetching||m.invalid!==!1?(e.updateMatch(i,w=>({...w,isFetching:b,invalid:!1})),e.router.getMatch(i)):m};async function Gk(e){const t=e,n=[];ND(t.router)&&_v(t);let s;for(let b=0;b<t.matches.length;b++){try{const w=MD(t,b);vu(w)&&await w}catch(w){if(Xn(w))throw w;if(vn(w))s=w;else if(!t.preload)throw w;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const i=t.firstBadMatchIndex??t.matches.length,o=s&&!t.preload?Hk(t,s):void 0,l=s&&t.preload?0:o!==void 0?Math.min(o+1,i):i;let u,f;for(let b=0;b<l;b++)n.push(LD(t,n,b));try{await Promise.all(n)}catch{const b=await Promise.allSettled(n);for(const w of b){if(w.status!=="rejected")continue;const x=w.reason;if(Xn(x))throw x;vn(x)?u??=x:f??=x}if(f!==void 0)throw f}const h=u??(s&&!t.preload?s:void 0);let p=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!h&&s&&t.preload)return t.matches;if(h){const b=Hk(t,h);b===void 0&&Jn();const w=t.matches[b],x=t.router.looseRoutesById[w.routeId],S=t.router.options?.defaultNotFoundComponent;!x.options.notFoundComponent&&S&&(x.options.notFoundComponent=S),h.routeId=w.routeId;const _=w.routeId===t.router.routeTree.id;t.updateMatch(w.id,k=>({...k,..._?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:h},isFetching:!1})),p=b,await wu(x,["notFoundComponent"])}else if(!t.preload){const b=t.matches[0];b.globalNotFound||t.router.getMatch(b.id)?.globalNotFound&&t.updateMatch(b.id,w=>({...w,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const b=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await wu(b,["errorComponent"])}for(let b=0;b<=p;b++){const{id:w,routeId:x}=t.matches[b],S=t.router.looseRoutesById[x];try{const _=DD(t,w,S);if(_){const k=await _;t.updateMatch(w,C=>({...C,...k}))}}catch(_){console.error(`Error executing head for route ${x}:`,_)}}const m=_v(t);if(vu(m)&&await m,h)throw h;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Kk(e,t){const n=t.map(s=>e.options[s]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function wu(e,t=ih){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(s=>{const{id:i,...o}=s.options;Object.assign(e.options,o),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===ih?(()=>{if(e._componentsPromise===void 0){const s=Kk(e,ih);s?e._componentsPromise=s.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Kk(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function wT(e){for(const t of ih)if(e.options[t]?.preload)return!0;return!1}const ih=["component","errorComponent","pendingComponent","notFoundComponent"];function BD(e){return{input:({url:t})=>{for(const n of e)t=kv(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=xT(e[n],t);return t}}}function UD(e){const t=pT(e.basepath),n=`/${t}`,s=e.caseSensitive?n:n.toLowerCase(),i=`${s}/`;return{input:({url:o})=>{const l=e.caseSensitive?o.pathname:o.pathname.toLowerCase();return l===s?o.pathname="/":l.startsWith(i)&&(o.pathname=o.pathname.slice(n.length)),o},output:({url:o})=>(o.pathname=rh(["/",t,o.pathname]),o)}}function kv(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function xT(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function zD(e,t){const{createMutableStore:n,createReadonlyStore:s,batch:i,init:o}=t,l=new Map,u=new Map,f=new Map,h=n(e.status),p=n(e.loadedAt),m=n(e.isLoading),b=n(e.isTransitioning),w=n(e.location),x=n(e.resolvedLocation),S=n(e.statusCode),_=n(e.redirect),k=n([]),C=n([]),R=n([]),O=s(()=>_y(l,k.get())),N=s(()=>_y(u,C.get())),P=s(()=>_y(f,R.get())),D=s(()=>k.get()[0]),M=s(()=>k.get().some(Q=>l.get(Q)?.get().status==="pending")),$=s(()=>({locationHref:w.get().href,resolvedLocationHref:x.get()?.href,status:h.get()})),K=s(()=>({status:h.get(),loadedAt:p.get(),isLoading:m.get(),isTransitioning:b.get(),matches:O.get(),location:w.get(),resolvedLocation:x.get(),statusCode:S.get(),redirect:_.get()})),Y=bu(64);function X(Q){let te=Y.get(Q);return te||(te=s(()=>{const pe=k.get();for(const ie of pe){const B=l.get(ie);if(B&&B.routeId===Q)return B.get()}}),Y.set(Q,te)),te}const ae={status:h,loadedAt:p,isLoading:m,isTransitioning:b,location:w,resolvedLocation:x,statusCode:S,redirect:_,matchesId:k,pendingIds:C,cachedIds:R,matches:O,pendingMatches:N,cachedMatches:P,firstId:D,hasPending:M,matchRouteDeps:$,matchStores:l,pendingMatchStores:u,cachedMatchStores:f,__store:K,getRouteMatchStore:X,setMatches:oe,setPending:be,setCac
10hed:V};oe(e.matches),o?.(ae);function oe(Q){ky(Q,l,k,n,i)}function be(Q){ky(Q,u,C,n,i)}function V(Q){ky(Q,f,R,n,i)}return ae}function _y(e,t){const n=[];for(const s of t){const i=e.get(s);i&&n.push(i.get())}return n}function ky(e,t,n,s,i){const o=e.map(u=>u.id),l=new Set(o);i(()=>{for(const u of t.keys())l.has(u)||t.delete(u);for(const u of e){const f=t.get(u.id);if(!f){const h=s(u);h.routeId=u.routeId,t.set(u.id,h);continue}f.routeId=u.routeId,f.get()!==u&&f.set(u)}fD(n.get(),o)||n.set(o)})}var qi="__TSR_index",Yk="popstate",Zk="beforeunload";function VD(e){let t=e.getLocation();const n=new Set,s=l=>{t=e.getLocation(),n.forEach(u=>u({location:t,action:l}))},i=l=>{e.notifyOnIndexChange??!0?s(l):t=e.getLocation()},o=async({task:l,navigateOpts:u,...f})=>{if(u?.ignoreBlocker??!1){l();return}const h=e.getBlockers?.()??[],p=f.type==="PUSH"||f.type==="REPLACE";if(typeof document<"u"&&h.length&&p)for(const m of h){const b=Ch(f.path,f.state);if(await m.blockerFn({currentLocation:t,nextLocation:b,action:f.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,u,f)=>{const h=t.state[qi];u=Xk(h+1,u),o({task:()=>{e.pushState(l,u),s({type:"PUSH"})},navigateOpts:f,type:"PUSH",path:l,state:u})},replace:(l,u,f)=>{const h=t.state[qi];u=Xk(h,u),o({task:()=>{e.replaceState(l,u),s({type:"REPLACE"})},navigateOpts:f,type:"REPLACE",path:l,state:u})},go:(l,u)=>{o({task:()=>{e.go(l),i({type:"GO",index:l})},navigateOpts:u,type:"GO"})},back:l=>{o({task:()=>{e.back(l?.ignoreBlocker??!1),i({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{o({task:()=>{e.forward(l?.ignoreBlocker??!1),i({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[qi]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const u=e.getBlockers?.()??[];return e.setBlockers([...u,l]),()=>{const f=e.getBlockers?.()??[];e.setBlockers?.(f.filter(h=>h!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:s}}function Xk(e,t){t||(t={});const n=tw();return{...t,key:n,__TSR_key:n,[qi]:e}}function $D(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,s=t.history.replaceState;let i=[];const o=()=>i,l=M=>i=M,u=(M=>M),f=(()=>Ch(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const M=tw();t.history.replaceState({[qi]:0,key:M,__TSR_key:M},"")}let h=f(),p,m=!1,b=!1,w=!1,x=!1;const S=()=>h;let _,k;const C=()=>{_&&(D._ignoreSubscribers=!0,(_.isPush?t.history.pushState:t.history.replaceState)(_.state,"",_.href),D._ignoreSubscribers=!1,_=void 0,k=void 0,p=void 0)},R=(M,$,K)=>{const Y=u($);k||(p=h),h=Ch($,K),_={href:Y,state:K,isPush:_?.isPush||M==="push"},k||(k=Promise.resolve().then(()=>C()))},O=M=>{h=f(),D.notify({type:M})},N=async()=>{if(b){b=!1;return}const M=f(),$=M.state[qi]-h.state[qi],K=$===1,Y=$===-1,X=!K&&!Y||m;m=!1;const ae=X?"GO":Y?"BACK":"FORWARD",oe=X?{type:"GO",index:$}:{type:Y?"BACK":"FORWARD"};if(w)w=!1;else{const be=o();if(typeof document<"u"&&be.length){for(const V of be)if(await V.blockerFn({currentLocation:h,nextLocation:M,action:ae})){b=!0,t.history.go(1),D.notify(oe);return}}}h=f(),D.notify(oe)},P=M=>{if(x){x=!1;return}let $=!1;const K=o();if(typeof document<"u"&&K.length)for(const Y of K){const X=Y.enableBeforeUnload??!0;if(X===!0){$=!0;break}if(typeof X=="function"&&X()===!0){$=!0;break}}if($)return M.preventDefault(),M.returnValue=""},D=VD({getLocation:S,getLength:()=>t.history.length,pushState:(M,$)=>R("push",M,$),replaceState:(M,$)=>R("replace",M,$),back:M=>(M&&(w=!0),x=!0,t.history.back()),forward:M=>{M&&(w=!0),x=!0,t.history.forward()},go:M=>{m=!0,t.history.go(M)},createHref:M=>u(M),flush:C,destroy:()=>{t.history.pushState=n,t.history.replaceState=s,t.removeEventListener(Zk,P,{capture:!0}),t.removeEventListener(Yk,N)},onBlocked:()=>{p&&h!==p&&(h=p)},getBlockers:o,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(Zk,P,{capture:!0}),t.addEventListener(Yk,N),t.history.pushState=function(...M){const $=n.apply(t.history,M);return D._ignoreSubscribers||O("PUSH"),$},t.history.replaceState=function(...M){const $=s.apply(t.history,M);return D._ignoreSubscribers||O("REPLACE"),$},D}function FD(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Ch(e,t){const n=FD(e),s=n.indexOf("#"),i=n.indexOf("?"),o=tw();return{href:n,pathname:n.substring(0,s>0?i>0?Math.min(s,i):s:i>0?i:n.length),hash:s>-1?n.substring(s):"",search:i>-1?n.slice(i,s===-1?void 0:s):"",state:t||{[qi]:0,key:o,__TSR_key:o}}}function tw(){return(Math.random()+1).toString(36).substring(7)}function HD(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Tl(e,t){const n=t,s=e;return{fromLocation:n,toLocation:s,pathChanged:n?.pathname!==s.pathname,hrefChanged:n?.href!==s.href,hashChanged:n?.hash!==s.hash}}const Av=new WeakMap;var qD=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=n=>
10n(),this.update=n=>{const s=this.options,i=this.basepath??s?.basepath??"/",o=this.basepath===void 0,l=s?.rewrite;if(this.options={...s,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=AD(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=$D()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let p;this.resolvePathCache=bu(1e3),p=this.buildRouteTree(),this.setRoutes(p)}if(!this.stores&&this.latestLocation){const p=this.getStoreConfig(this);this.batch=p.batch,this.stores=zD(GD(this.latestLocation),p),rL(this)}let u=!1;const f=this.options.basepath??"/",h=this.options.rewrite;if(o||i!==f||l!==h){this.basepath=f;const p=[],m=pT(f);m&&m!=="/"&&p.push(UD({basepath:f})),h&&p.push(h),this.rewrite=p.length===0?void 0:p.length===1?p[0]:BD(p),this.history&&this.updateLatestLocation(),u=!0}u&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=bD(this.routeTree,this.options.caseSensitive,(s,i)=>{s.init({originalIndex:i})});return this.options.routeMasks&&pD(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,s)=>{const i={eventType:n,fn:s};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=n=>{this.subscribers.forEach(s=>{s.eventType===n.type&&s.fn(n)})},this.parseLocation=(n,s)=>{const i=({pathname:f,search:h,hash:p,href:m,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(f)){const k=this.options.parseSearch(h),C=this.options.stringifySearch(k);return{href:f+C+p,publicHref:f+C+p,pathname:$c(f).path,external:!1,searchStr:C,search:Ca(s?.search,k),hash:$c(p.slice(1)).path,state:Ua(s?.state,b)}}const w=new URL(m,this.origin),x=kv(this.rewrite,w),S=this.options.parseSearch(x.search),_=this.options.stringifySearch(S);return x.search=_,{href:x.href.replace(x.origin,""),publicHref:m,pathname:$c(x.pathname).path,external:!!this.rewrite&&x.origin!==this.origin,searchStr:_,search:Ca(s?.search,S),hash:$c(x.hash.slice(1)).path,state:Ua(s?.state,b)}},o=i(n),{__tempLocation:l,__tempKey:u}=o.state;if(l&&(!u||u===this.tempLocationKey)){const f=i(l);return f.state.key=o.state.key,f.state.__TSR_key=o.state.__TSR_key,delete f.state.__tempLocation,{...f,maskedLocation:o}}return o},this.resolvePathWithBase=(n,s)=>kD({base:n,to:s.includes("//")?ew(s):s,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,s,i)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:s},i):this.matchRoutesInternal(n,s),this.getMatchedRoutes=n=>KD({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const s=this.getMatch(n);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const s=this.stores.matchStores.get(n)?.get();s&&(s.status==="pending"||s.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const s=(o={})=>{const l=o._fromLocation||this.pendingBuiltLocation||this.latestLocation,u=this.matchRoutesLightweight(l);o.from;const f=o.unsafeRelative==="path"?l.pathname:o.from??u.fullPath,h=o.to?`${o.to}`:void 0,p=u.search,m=Object.assign(Object.create(null),u.params),b=h?.charCodeAt(0)===47?"/":this.resolvePathWithBase(f,"."),w=h?this.resolvePathWithBase(b,h):b,x=o.params===!1||o.params===null?Ob
10ject.create(null):(o.params??!0)===!0?m:Object.assign(m,Ba(o.params,m)),S=this.routesByPath[Yr(w)];let _;if(S)_=this.getRouteBranch(S);else if(w.includes("$"))_=[];else{const Y=this.getMatchedRoutes(w);_=Y.matchedRoutes,this.options.notFoundRoute&&(!Y.foundRoute||Y.foundRoute.path!=="/"&&Y.routeParams["**"])&&(_=[..._,this.options.notFoundRoute])}if(_.length&&lT(x))for(const Y of _){const X=Y.options.params?.stringify??Y.options.stringifyParams;if(X)try{Object.assign(x,X(x))}catch{}}const k=n.leaveParams?w:$c($k({path:w,params:x,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let C=p;if(n._includeValidateSearch&&this.options.search?.strict){const Y={};_.forEach(X=>{if(X.options.validateSearch)try{Object.assign(Y,ah(X.options.validateSearch,{...Y,...C}))}catch{}}),C=Y}C=YD({search:C,dest:o,destRoutes:_,_includeValidateSearch:n._includeValidateSearch}),C=Ca(p,C);const R=this.options.stringifySearch(C),O=o.hash===!0?l.hash:o.hash?Ba(o.hash,l.hash):void 0,N=O?`#${O}`:"";let P=o.state===!0?l.state:o.state?Ba(o.state,l.state):{};P=Ua(l.state,P);const D=`${k}${R}${N}`;let M,$,K=!1;if(this.rewrite){const Y=new URL(D,this.origin),X=xT(this.rewrite,Y);M=Y.href.replace(Y.origin,""),X.origin!==this.origin?($=X.href,K=!0):$=X.pathname+X.search+X.hash}else M=dD(D),$=M;return{publicHref:$,href:M,pathname:k,search:C,searchStr:R,state:P,hash:O??"",external:K,unmaskOnReload:o.unmaskOnReload}},i=(o={},l)=>{const u=s(o);let f=l?s(l):void 0;if(!f){const h=Object.create(null);if(this.options.routeMasks){const p=mD(u.pathname,this.processedTree);if(p){Object.assign(h,p.rawParams);const{from:m,params:b,...w}=p.route,x=b===!1||b===null?Object.create(null):(b??!0)===!0?h:Object.assign(h,Ba(b,h));l={from:n.from,...w,params:x},f=s(l)}}}return f&&(u.maskedLocation=f),u};return n.mask?i(n,{from:n.from,...n.mask}):i(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:s,...i})=>{let o;const l=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(m=>{i.state[m]=this.latestLocation.state[m]}
10);const p=Ln(i.state,this.latestLocation.state);return h.forEach(m=>{delete i.state[m]}),p},u=Yr(this.latestLocation.href)===Yr(i.href);let f=this.commitLocationPromise;if(this.commitLocationPromise=Xa(()=>{f?.resolve(),f=void 0}),u&&l())this.load();else{let{maskedLocation:h,hashScrollIntoView:p,...m}=i;h&&(m={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,o=i.replace?"REPLACE":"PUSH",this.history[o==="REPLACE"?"replace":"push"](m.publicHref,m.state,{ignoreBlocker:s})}return this._scroll.next=i.resetScroll??!0,this.history.subscribers.size||this.load(o?{action:{type:o}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:s,hashScrollIntoView:i,viewTransition:o,ignoreBlocker:l,href:u,...f}={})=>{if(u){const m=this.history.location.state.__TSR_index,b=Ch(u,{__TSR_index:n?m:m+1}),w=new URL(b.pathname,this.origin);f.to=kv(this.rewrite,w).pathname,f.search=this.options.parseSearch(b.search),f.hash=b.hash.slice(1)}const h=this.buildLocation({...f,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const p=this.commitLocation({...h,viewTransition:o,replace:n,resetScroll:s,hashScrollIntoView:i,ignoreBlocker:l});return queueMicrotask(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),p},this.navigate=async({to:n,reloadDocument:s,href:i,publicHref:o,...l})=>{let u=!1;if(i)try{new URL(`${i}`),u=!0}catch{}if(u&&!s&&(s=!0),s){if(n!==void 0||!i){const h=this.buildLocation({to:n,...l});i=i??h.publicHref,o=o??h.publicHref}const f=!u&&o?o:i;if(kh(f,this.protocolAllowlist))return;if(!l.ignoreBlocker){const h=this.history.getBlockers?.()??[];for(const p of h)if(p?.blockerFn&&await p.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}l.replace?window.location.replace(f):window.location.href=f;return}return this.buildAndCommitLocation({...l,href:i,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),s=this.stores.cachedMatches.get().filter(i=>!n.some(o=>o.id===i.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(s)})},this.load=async n=>{const s=n?.action?.type;let i,o,l;const u=this.stores.resolvedLocation.get()??this.stores.location.get();for(l=new Promise(h=>{this.startTransition(async()=>{try{this.beforeLoad(),s?Av.set(this.latestLocation,s):Av.delete(this.latestLocation);const p=this.latestLocation,m=Tl(p,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...m}),this.emit({type:"onBeforeLoad",...m}),await Gk({router:this,sync:n?.sync,forceStaleReload:u.href===p.href,matches:this.stores.pendingMatches.get(),location:p,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=null,w=null,x=null,S=null;this.batch(()=>{const _=this.stores.pendingMatches.get(),k=_.length,C=this.stores.matches.get();b=k?C.filter(N=>!this.stores.pendingMatchStores.has(N.id)):null;const R=new Set;for(const N of this.stores.pendingMatchStores.values())N.routeId&&R.add(N.routeId);const O=new Set;for(const N of this.stores.matchStores.values())N.routeId&&O.add(N.routeId);w=k?C.filter(N=>!R.has(N.routeId)):null,x=k?_.filter(N=>!O.has(N.routeId)):null,S=k?_.filter(N=>O.has(N.routeId)):C,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),k&&(this.stores.setMatches(_),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...b.filter(N=>N.status!=="error"&&N.status!=="notFound"&&N.status!=="redirected")]),this.clearExpiredCache())});for(const[_,k]of[[w,"onLeave"],[x,"onEnter"],[S,"onStay"]])if(_)for(const C of _)this.looseRoutesById[C.routeId].options[k]?.(C)})})}})}catch(p){Xn(p)?(i=p,this.navigate({...i.options,replace:!0,ignoreBlocker:!0}
10)):vn(p)&&(o=p);const m=i?i.status:o?404:this.stores.matches.get().some(b=>b.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(m),this.stores.redirect.set(i)})}this.latestLoadPromise===l&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),h()})}),this.latestLoadPromise=l,await l;this.latestLoadPromise&&l!==this.latestLoadPromise;)await this.latestLoadPromise;let f;this.hasNotFoundMatch()?f=404:this.stores.matches.get().some(h=>h.status==="error")&&(f=500),f!==void 0&&this.stores.statusCode.set(f)},this.startViewTransition=n=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const o=this.latestLocation,l=this.stores.resolvedLocation.get(),u=typeof s.types=="function"?s.types(Tl(o,l)):s.types;if(u===!1){n();return}i={update:n,types:u}}else i=n;document.startViewTransition(i)}else n()},this.updateMatch=(n,s)=>{this.startTransition(()=>{const i=this.stores.pendingMatchStores.get(n);if(i){i.set(s);return}const o=this.stores.matchStores.get(n);if(o){o.set(s);return}const l=this.stores.cachedMatchStores.get(n);if(l){const u=s(l.get());u.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(f=>f.filter(h=>h!==n)):l.set(u)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const s=i=>n?.filter?.(i)??!0?{...i,invalid:!0,...n?.forcePending||i.status==="error"||i.status==="notFound"?{status:"pending",error:void 0}:void 0}:i;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(s)),this.stores.setCached(this.stores.cachedMatches.get().map(s)),this.stores.setPending(this.stores.pendingMatches.get().map(s))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const s=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const i=n.options._builtLocation??this.buildLocation(n.options),o=this.getParsedLocationHref(i);n.options.href=o,n.headers.set("Location",o)}else if(s)try{const i=new URL(s);if(this.origin&&i.origin===this.origin){const o=i.pathname+i.search+i.hash;n.options.href=o,n.headers.set("Location",o)}}catch{}if(n.options.href&&!n.options._builtLocation&&kh(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const s=n?.filter;s!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(i=>!s(i))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),s=i=>{const o=this.looseRoutesById[i.routeId];if(!o.options.loader)return!0;const l=(i.preload?o.options.preloadGcTime??this.options.defaultPreloadGcTime:o.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:n-i.updatedAt>=l};this.clearCache({filter:s})},this.loadRouteChunk=wu,this.preloadRoute=async n=>{const s=n._builtLocation??this.buildLocation(n);let i=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:n});const o=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),l=new Set([...o,...this.stores.cachedIds.get()]),u=i.filter(f=>!l.has(f.id));if(u.length){const f=this.stores.cachedMatches.get();this.stores.setCached([...f,...u])}try{return i=await Gk({router:this,matches:i,location:s,preload:!0,updateMatch:(f,h)=>{o.has(f)?i=i.map(p=>p.id===f?h(p):p):this.updateMatch(f,h)}}),i}catch(f){if(Xn(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:s});vn(f)||console.error(f);return}},this.matchRoute=(n,s)=>{const i={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},o=this.buildLocation(i);if(s?.pending&&this.stores.status.get()!=="pending")return!1;const l=(s?.pending===void 0?!this.stores.isLoading.get():s.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),u=gD(o.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,l.pathname,this.processedTree);return!u||n.params&&!Ln(u.rawParams,n.params,{partial:!0})?!1:s?.includeSearch??!0?Ln(l.search,o.search,{partial:!0})?u.rawParams:!1:u.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>
10n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??TD,parseSearch:e.parseSearch??ED,protocolAllowlist:e.protocolAllowlist??oD}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=fT(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:s,routeParams:i}=n;let{matchedRoutes:o}=n,l=!1;(s?s.path!=="/"&&i["**"]:Yr(e.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:l=!0);const u=l?XD(this.options.notFoundMode,o):void 0,f=new Array(o.length),h=new Map;for(const p of this.stores.matchStores.values())p.routeId&&h.set(p.routeId,p.get());for(let p=0;p<o.length;p++){const m=o[p],b=f[p-1];let w,x,S;{const X=b?.search??e.search,ae=b?._strictSearch??void 0;try{const oe=ah(m.options.validateSearch,{...X})??void 0;w={...X,...oe},x={...ae,...oe},S=void 0}catch(oe){let be=oe;if(oe instanceof Eh||(be=new Eh(oe.message,{cause:oe})),t?.throwOnError)throw be;w=X,x={},S=be}}const _=m.options.loaderDeps?.({search:w})??"",k=_?JSON.stringify(_):"",{interpolatedPath:C,usedParams:R}=$k({path:m.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),O=m.id+C+k,N=this.getMatch(O),P=h.get(m.id),D=N?._strictParams??R;let M;if(!N)try{Jk(m,D)}catch(X){if(vn(X)||Xn(X)?M=X:M=new WD(X.message,{cause:X}),t?.throwOnError)throw M}Object.assign(i,D);const $=P?"stay":"enter";let K;if(N)K={...N,cause:$,params:P?.params??i,_strictParams:D,search:Ca(P?P.search:N.search,w),_strictSearch:x};else{const X=m.options.loader||m.options.beforeLoad||m.lazyFn||wT(m)?"pending":"success";K={id:O,ssr:m.options.ssr,index:p,routeId:m.id,params:P?.params??i,_strictParams:D,pathname:C,updatedAt:Date.now(),search:P?Ca(P.search,w):w,_strictSearch:x,searchError:void 0,status:X,isFetching:!1,error:void 0,paramsError:M,__routeContext:void 0,_nonReactive:{loadPromise:Xa()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:$,loaderDeps:P?Ua(P.loaderDeps,_):_,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}t?.preload||(K.globalNotFound=u===m.id),K.searchError=S;const Y=this.getParentContext(b);
10K.context={...Y,...K.__routeContext,...K.__beforeLoadContext},f[p]=K}for(let p=0;p<f.length;p++){const m=f[p],b=this.looseRoutesById[m.routeId],w=this.getMatch(m.id),x=h.get(m.routeId);if(m.params=x?Ca(x.params,i):i,!w){const S=f[p-1],_=this.getParentContext(S);if(b.options.context){const k={deps:m.loaderDeps,params:m.params,context:_??{},location:e,navigate:C=>this.navigate({...C,_fromLocation:e}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:f,routeId:b.id};m.__routeContext=b.options.context(k)??void 0}m.context={..._,...m.__routeContext,...m.__beforeLoadContext}}}return f}matchRoutesLightweight(e){const t=yu(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];const{matchedRoutes:s,routeParams:i}=this.getMatchedRoutes(e.pathname),o=yu(s),l={...e.search};for(const m of s)try{Object.assign(l,ah(m.options.validateSearch,l))}catch{}const u=t&&this.stores.matchStores.get(t)?.get(),f=u&&u.routeId===o.id&&u.pathname===e.pathname;let h;if(f)h=u.params;else{const m=Object.assign(Object.create(null),i);for(const b of s)try{Jk(b,m)}catch{}h=m}const p={matchedRoutes:s,fullPath:o.fullPath,search:l,params:h};return this.lightweightCache.set(e,[t,p]),p}},Eh=class extends Error{},WD=class extends Error{};function GD(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function ah(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Eh("Async validation not supported");if(n.issues)throw new Eh(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function KD({pathname:e,routesById:t,processedTree:n}){const s=Object.create(null),i=Yr(e);let o;const l=yD(i,n,!0);return l&&(o=l.route,Object.assign(s,l.rawParams)),{matchedRoutes:l?.branch||[t.__root__],routeParams:s,foundRoute:o}}function YD({search:e,dest:t,destRoutes:n,_includeValidateSearch:s}){return ZD(n)(e,t,s??!1)}function ZD(e){let t,n;const s=[];for(const o of e){const l=o.options;if("search"in l)l.search?.middlewares&&s.push(...l.search.middlewares);else if(l.preSearchFilters||l.postSearchFilters){const f=({search:h,next:p})=>{const m=p(l.preSearchFilters?l.preSearchFilters.reduce((b,w)=>w(b),h):h);return l.postSearchFilters?l.postSearchFilters.reduce((b,w)=>w(b),m):m};s.push(f)}const u=l.validateSearch;if(u){const f=({search:h,next:p,meta:m})=>{const b=p(h);if(n)try{const w=ah(u,b);if(m&&w)for(const x in w)x in b||(m.defaulted||=new Map).set(x,w[x]);return{...b,...w}}catch{}return b};s.push(f)}}const i=(o,l,u)=>{if(o>=s.length){if(!t.search)return{};if(t.search===!0)return l;const h=Ba(t.search,l);return u&&(u.explicit=h),h}const f=(h,p)=>{if(p){const m=u||{};return{search:i(o+1,h,m),meta:m}}return i(o+1,h,u)};return s[o]({search:l,next:f,meta:u})};return function(l,u,f){return t=u,n=f,i(0,l)}}function XD(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const s=t[n];if(s.children)return s.id}return Ga}function Jk(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const s=n(t);if(s===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,s)}}function JD(){try{return sessionStorage}catch{return}}const QD="tsr-scroll-restoration-v1_3",ST=JD();function eL(){try{return JSON.parse(ST?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function tL(){try{ST?.setItem(QD,JSON.stringify(pl))}catch{}}const pl=eL(),Qk="data-scroll-restoration-id",nL=e=>e.state.__TSR_key||e.href;function sL(e){const t=e.getAttribute(Qk);if(t)return`[${Qk}="${t}"]`;let n="",s=e,i;for(;i=s.parentNode;){let o=1,l=s;for(;l=l.previousElementSibling;)o++;const u=`${s.localName}:nth-child(${o})`;n=n?`${u} > ${n}`:u,s=i}return n}let Cf=!1;const ml="window";function Cv(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function eA(e){const t=[];for(const n of e){if(n===ml)continue;const s=Cv(n);s&&t.push(s)}return t}function rL(e,t){const n=e.options.scrollRestoration,s=e._scroll;n&&(s.restoring=!0);const i=e.options.getScrollRestorationKey||nL,o=new Map,l=(h,p,m)=>{const b=o.get(h)||{};b.scrollX=p,b.scrollY=m,o.set(h,b)},u=h=>{if(!(Cf||!s.restoring))if(h.target===document)l(ml,scrollX,scrollY);else{const p=h.target;l(p,p.scrollLeft,p.scrollTop)}},f=h=>
10{if(!s.restoring)return;const p=pl[h]||={};for(const[m,b]of o)m===ml?p[ml]=b:m.isConnected&&(p[sL(m)]=b)};n&&!s.restoration&&(s.restoration=!0,Cf=!1,history.scrollRestoration="manual",document.addEventListener("scroll",u,!0),e.subscribe("onBeforeLoad",h=>{h.fromLocation&&f(i(h.fromLocation)),o.clear()}),addEventListener("pagehide",()=>{f(i(e.stores.resolvedLocation.get()??e.stores.location.get())),tL()})),!s.reset&&(s.reset=!0,e.subscribe("onRendered",h=>{const p=e.options.scrollRestorationBehavior,m=e.options.scrollToTopSelectors,b=s.next;let w;if(o.clear(),b||(s.next=!0),typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const x=i(h.toLocation),S=h.fromLocation&&i(h.fromLocation);if(s.restoring&&S&&S!==x){const _=pl[S];if(_){let k=pl[x];for(const C in _){if(C===ml){if(b)continue}else{const R=Cv(C);if(!R||b&&m&&(w??=eA(m),w.includes(R)))continue}k||(k=pl[x]={}),k[C]??=_[C]}}}Cf=!0;try{const _=h.toLocation.hash,k=h.toLocation.state.__hashScrollIntoViewOptions??!0;let C=!1;if(b){const R=Av.get(h.toLocation),O=_&&k&&(R==="PUSH"||R==="REPLACE"),N=s.restoring?pl[x]:void 0;if(N)for(const P in N){const{scrollX:D,scrollY:M}=N[P];if(P===ml){if(O)continue;scrollTo({top:M,left:D,behavior:p}),C=!0}else{const $=Cv(P);$&&($.scrollLeft=D,$.scrollTop=M)}}if(!C&&!_){const P={top:0,left:0,behavior:p};if(scrollTo(P),m){w??=eA(m);for(const D of w)D.scrollTo(P)}}}!C&&_&&k&&document.getElementById(_)?.scrollIntoView(k)}finally{Cf=!1}}))}const ur=Symbol.for("TSR_DEFERRED_PROMISE");function iL(e,t){const n=e;return n[ur]||(n[ur]={status:"pending"},n.then(s=>{n[ur].status="success",n[ur].data=s}).catch(s=>{n[ur].status="error",n[ur].error={data:HD(s),__isServerError:!0}})),n}const aL="Error preloading route! ☝️";function _T(e,t){if(e)return typeof e=="string"?e:e[t]}function oL(e){return e?.scriptFormat??"module"}function lL(e,t,n){const s=cL(t),i=_T(n,"script")??s.crossOrigin;return{...oL(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:s.href,...i?{crossOrigin:i}:{}}}function cL(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function Ef(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const n=new Set;for(const s of t){const i=JSON.stringify(s);n.has(i)||(n.add(i),e.push(s))}}function uL(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}var kT=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,s=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=Ga:this.parentRoute||Jn();let i=s?Ga:n?.path;i&&i!=="/"&&(i=hT(i));const o=n?.id||i;let l=s?Ga:rh([this.parentRoute.id==="__root__"?"":this.parentRoute.id,o]);i==="__root__"&&(i="/"),l!=="__root__"&&(l=rh(["/",l]));const u=l==="__root__"?"/":rh([this.parentRoute.fullPath,i]);this._path=i,this._id=l,this._fullPath=u,this._to=Yr(u)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>gT({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},dL=class extends kT{constructor(e){super(e)}},fL=(e=>(e[e.AggregateError=1]="AggregateError",e[e.ArrowFunction=2]="ArrowFunction",e[e.ErrorPrototypeStack=4]="ErrorPrototypeStack",e[e.ObjectAssign=8]="ObjectAssign",e[e.BigIntTypedArray=16]="BigIntTypedArray",e[e.RegExp=32]="RegExp",e))(fL||{}),Xr=Symbol.asyncIterator,AT=Symbol.hasInstance,Rl=Symbol.isConcatSpreadable,Jr=Symbol.iterator,CT=Symbol.match,ET=Symbol.matchAll,TT=Symbol.replace,RT=Symbol.search,OT=Symbol.species,jT=Symbol.split,NT=Symbol.toPrimitive,Ol=Symbol.toStringTag,IT=Symbol.unscopables,PT={[Xr]:0,[AT]:1,[Rl]:2,[Jr]:3,[CT]:4,[ET]:5,[TT]:6,[RT]:7,[OT]:8,[jT]:9,[NT]:10,[Ol]:11,[IT]:12},hL={0:Xr,1:AT,2:Rl,3:Jr,4:CT,5:ET,6:TT,7:RT,8:OT,9:jT,10:NT,11:Ol,12:IT},I=void 0,pL={2:!0,3:!1,1:I,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},mL={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},gL={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function ft(e,t,n,s,i,o,l,u,f,h,p,m){return{t:e,i:t,s:n,c:s,m:i,p:o,e:l,a:u,f,b:h,o:p,l:m}}function ta(e){return ft(2,I,e,I,I,I,I,I,I,I,I,I)}var MT=ta(2),DT=ta(3),yL=ta(1),vL=ta(0),bL=ta(4),wL=ta(5),xL=ta(6),SL=ta(7
10);function _L(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case`
11`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case"	":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return I}}function na(e){let t="",n=0,s;for(let i=0,o=e.length;i<o;i++)s=_L(e[i]),s&&(t+=e.slice(n,i)+s,n=i+1);return n===0?t=e:t+=e.slice(n),t}function kL(e){switch(e){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return`
12`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return"	";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return e}}function sa(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,kL)}var Tf="__SEROVAL_REFS__",LT=new Map,Sl=new Map;function BT(e){return LT.has(e)}function AL(e){return Sl.has(e)}function CL(e){if(BT(e))return LT.get(e);throw new s5(e)}function EL(e){if(AL(e))return Sl.get(e);throw new r5(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,Tf,{value:Sl,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Tf,{value:Sl,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Tf,{value:Sl,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Tf,{value:Sl,configurable:!0,writable:!1,enumerable:!1});function nw(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function TL(e){let t=mL[nw(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function UT(e,t){let n=TL(e),s=Object.getOwnPropertyNames(e);for(let i=0,o=s.length,l;i<o;i++)l=s[i],l!=="name"&&l!=="message"&&(l==="stack"?t&4&&(n=n||{},n[l]=e[l]):(n=n||{},n[l]=e[l]));return n}function zT(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}function RL(e){switch(e){case Number.POSITIVE_INFINITY:return wL;case Number.NEGATIVE_INFINITY:return xL}return e!==e?SL:Object.is(e,-0)?bL:ft(0,I,e,I,I,I,I,I,I,I,I,I)}function VT(e){return ft(1,I,na(e),I,I,I,I,I,I,I,I,I)}function OL(e){return ft(3,I,""+e,I,I,I,I,I,I,I,I,I)}function jL(e){return ft(4,e,I,I,I,I,I,I,I,I,I,I)}function NL(e,t){let n=t.valueOf();return ft(5,e,n!==n?"":t.toISOString(),I,I,I,I,I,I,I,I,I)}function IL(e,t){return ft(6,e,I,na(t.source),t.flags,I,I,I,I,I,I,I)}function PL(e,t){return ft(17,e,PT[t],I,I,I,I,I,I,I,I,I)}function ML(e,t){return ft(18,e,na(CL(t)),I,I,I,I,I,I,I,I,I)}function DL(e,t,n){return ft(25,e,n,na(t),I,I,I,I,I,I,I,I)}function LL(e,t,n){return ft(9,e,I,I,I,I,I,n,I,I,zT(t),I)}function BL(e,t){return ft(21,e,I,I,I,I,I,I,t,I,I,I)}function UL(e,t,n){return ft(15,e,I,t.constructor.name,I,I,I,I,n,t.byteOffset,I,t.length)}function zL(e,t,n){return ft(16,e,I,t.constructor.name,I,I,I,I,n,t.byteOffset,I,t.byteLength)}function VL(e,t,n){return ft(20,e,I,I,I,I,I,I,n,t.byteOffset,I,t.byteLength)}function $L(e,t,n){return ft(13,e,nw(t),I,na(t.message),n,I,I,I,I,I,I)}function FL(e,t,n){return ft(14,e,nw(t),I,na(t.message),n,I,I,I,I,I,I)}function HL(e,t){return ft(7,e,I,I,I,I,I,t,I,I,I,I)}function qL(e,t){return ft(28,I,I,I,I,I,I,[e,t],I,I,I,I)}function WL(e,t){return ft(30,I,I,I,I,I,I,[e,t],I,I,I,I)}function GL(e,t,n){return ft(31,e,I,I,I,I,I,n,t,I,I,I)}function KL(e,t){return ft(32,e,I,I,I,I,I,I,t,I,I,I)}function YL(e,t){return ft(33,e,I,I,I,I,I,I,t,I,I,I)}function ZL(e,t){return ft(34,e,I,I,I,I,I,I,t,I,I,I)}function XL(e,t,n,s){return ft(35,e,n,I,I,I,I,t,I,I,I,s)}var JL={parsing:1,serialization:2,deserialization:3};function QL(e){return`Seroval Error (step: ${JL[e]})`}var e5=(e,t)=>QL(e),$T=class extends Error{constructor(e,t){super(e5(e)),this.cause=t}},tA=class extends $T{constructor(e){super("parsing",e)}},t5=class extends $T{constructor(e){super("deserialization",e)}};function si(e){return`Seroval Error (specific: ${e})`}var xp=class extends Error{constructor(t){super(si(1)),this.value=t}},FT=class extends Error{constructor(e){super(si(2))}}
12,n5=class extends Error{constructor(t){super(si(3))}},qu=class extends Error{constructor(e){super(si(4))}},s5=class extends Error{constructor(e){super(si(5)),this.value=e}},r5=class extends Error{constructor(e){super(si(6))}},i5=class extends Error{constructor(e){super(si(7))}},ri=class extends Error{constructor(e){super(si(8))}},a5=class extends Error{constructor(e){super(si(9))}},o5=class{constructor(e,t){this.value=e,this.replacement=t}},Sp=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},l5=(e,t)=>{e.s(t),e.p.s=1,e.p.v=t},c5=(e,t)=>{e.f(t),e.p.s=2,e.p.v=t};Sp.toString();l5.toString();c5.toString();var u5=()=>{let e=[],t=[],n=!0,s=!1,i=0,o=(f,h,p)=>{for(p=0;p<i;p++)t[p]&&t[p][h](f)},l=(f,h,p,m)=>{for(h=0,p=e.length;h<p;h++)m=e[h],!n&&h===p-1?f[s?"return":"throw"](m):f.next(m)},u=(f,h)=>(n&&(h=i++,t[h]=f),l(f),()=>{n&&(t[h]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:f=>u(f),next:f=>{n&&(e.push(f),o(f,"next"))},throw:f=>{n&&(e.push(f),o(f,"throw"),n=!1,s=!1,t.length=0)},return:f=>{n&&(e.push(f),o(f,"return"),n=!1,s=!0,t.length=0)}}},d5=e=>t=>()=>{let n=0,s={[e]:()=>s,next:()=>{if(n>t.d)return{done:!0,value:void 0};let i=n++,o=t.v[i];if(i===t.t)throw o;return{done:i===t.d,value:o}}};return s},f5=(e,t)=>n=>()=>{let s=0,i=-1,o=!1,l=[],u=[],f=(p=0,m=u.length)=>{for(;p<m;p++)u[p].s({done:!0,value:void 0})};n.on({next:p=>{let m=u.shift();m&&m.s({done:!1,value:p}),l.push(p)},throw:p=>{let m=u.shift();m&&m.f(p),f(),i=l.length,o=!0,l.push(p)},return:p=>{let m=u.shift();m&&m.s({done:!0,value:p}),f(),i=l.length,l.push(p)}});let h={[e]:()=>h,next:()=>{if(i===-1){let b=s++;if(b>=l.length){let w=t();return u.push(w),w.p}return{done:!1,value:l[b]}}if(s>i)return{done:!0,value:void 0};let p=s++,m=l[p];if(p!==i)return{done:!1,value:m};if(o)throw m;return{done:!0,value:m}}};return h},HT=e=>{let t=atob(e),n=t.length,s=new Uint8Array(n);for(let i=0;i<n;i++)s[i]=t.charCodeAt(i);return s.buffer};HT.toString();function h5(e){return"__SEROVAL_SEQUENCE__"in e}function qT(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function p5(e){let t=[],n=-1,s=-1,i=e[Jr]();for(;;)try{let o=i.next();if(t.push(o.value),o.done){s=t.length-1;break}}catch(o){n=t.length,t.push(o)}return qT(t,n,s)}var m5=d5(Jr);function g5(e){return m5(e)}var y5={},v5={},b5={0:{},1:{},2:{},3:{},4:{},5:{}};function w5(e){return"__SEROVAL_STREAM__"in e}function oo(){return u5()}function x5(e){let t=oo(),n=e[Xr]();async function s(){try{let i=await n.next();i.done?t.return(i.value):(t.next(i.value),await s())}catch(i){t.throw(i)}}return s().catch(()=>{}),t}var S5=f5(Xr,Sp);function _5(e){return S5(e)}async function k5(e){try{return[1,await e]}catch(t){return[0,t]}}function A5(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function oh(e,t){e.marked.add(t)}function C5(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function _p(e,t){let n=e.refs.get(t);return n!=null?(oh(e,n),{type:1,value:jL(n)}):{type:0,value:C5(e,t)}}function sw(e,t){let n=_p(e,t);return n.type===1?n:BT(t)?{type:2,value:ML(n.value,t)}:n}function Va(e,t){let n=sw(e,t);if(n.type!==0)return n.value;if(t in PT)return PL(n.value,t);throw new xp(t)}function kp(e,t){let n=_p(e,b5[t]);return n.type===1?n.value:ft(26,n.value,t,I,I,I,I,I,I,I,I,I)}function E5(e){let t=_p(e,y5);return t.type===1?t.value:ft(27,t.value,I,I,I,I,I,I,Va(e,Jr),I,I,I)}function T5(e){let t=_p(e,v5);return t.type===1?t.value:ft(29,t.value,I,I,I,I,I,[kp(e,1),Va(e,Xr)],I,I,I,I)}function R5(e,t,n,s){return ft(n?11:10,e,I,I,I,s,I,I,I,I,zT(t),I)}function O5(e,t,n,s){return ft(8,t,I,I,I,I,{k:n,v:s},I,kp(e,0),I,I,I)}function j5(e,t,n){let s=new Uint8Array(n),i="";for(let o=0,l=s.length;o<l;o++)i+=String.fromCharCode(s[o]);return ft(19,t,na(btoa(i)),I,I,I,I,I,kp(e,5),I,I,I)}function N5(e,t){return{base:A5(e,t),child:void 0}}var I5=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return fn(this._p,this.depth,e)}};async function P5(e,t,n){let s=[];for(let i=0,o=n.length;i<o;i++)i in n?s[i]=await fn(e,t,n[i]):s[i]=0;return s}async function M5(e,t,n,s){return LL(n,s,await P5(e,t,s))}async function rw(e,t,n){let s=Object.entries(n),i=[],o=[];for(let l=0,u=s.length;l<u;l++)i.push(na(s[l][0])),o.push(await fn(e,t,s[l][1]));
12return Jr in n&&(i.push(Va(e.base,Jr)),o.push(qL(E5(e.base),await fn(e,t,p5(n))))),Xr in n&&(i.push(Va(e.base,Xr)),o.push(WL(T5(e.base),await fn(e,t,x5(n))))),Ol in n&&(i.push(Va(e.base,Ol)),o.push(VT(n[Ol]))),Rl in n&&(i.push(Va(e.base,Rl)),o.push(n[Rl]?MT:DT)),{k:i,v:o}}async function Ay(e,t,n,s,i){return R5(n,s,i,await rw(e,t,s))}async function D5(e,t,n,s){return BL(n,await fn(e,t,s.valueOf()))}async function L5(e,t,n,s){return UL(n,s,await fn(e,t,s.buffer))}async function B5(e,t,n,s){return zL(n,s,await fn(e,t,s.buffer))}async function U5(e,t,n,s){return VL(n,s,await fn(e,t,s.buffer))}async function nA(e,t,n,s){let i=UT(s,e.base.features);return $L(n,s,i?await rw(e,t,i):I)}async function z5(e,t,n,s){let i=UT(s,e.base.features);return FL(n,s,i?await rw(e,t,i):I)}async function V5(e,t,n,s){let i=[],o=[];for(let[l,u]of s.entries())i.push(await fn(e,t,l)),o.push(await fn(e,t,u));return O5(e.base,n,i,o)}async function $5(e,t,n,s){let i=[];for(let o of s.keys())i.push(await fn(e,t,o));return HL(n,i)}async function WT(e,t,n,s){let i=e.base.plugins;if(i)for(let o=0,l=i.length;o<l;o++){let u=i[o];if(u.parse.async&&u.test(s))return DL(n,u.tag,await u.parse.async(s,new I5(e,t),{id:n}))}return I}async function F5(e,t,n,s){let[i,o]=await k5(s);return ft(12,n,i,I,I,I,I,I,await fn(e,t,o),I,I,I)}function H5(e,t,n,s,i){let o=[],l=n.on({next:u=>{oh(this.base,t),fn(this,e,u).then(f=>{o.push(KL(t,f))},f=>{i(f),l()})},throw:u=>{oh(this.base,t),fn(this,e,u).then(f=>{o.push(YL(t,f)),s(o),l()},f=>{i(f),l()})},return:u=>{oh(this.base,t),fn(this,e,u).then(f=>{o.push(ZL(t,f)),s(o),l()},f=>{i(f),l()})}})}async function q5(e,t,n,s){return GL(n,kp(e.base,4),await new Promise(H5.bind(e,t,n,s)))}async function W5(e,t,n,s){let i=[];for(let o=0,l=s.v.length;o<l;o++)i[o]=await fn(e,t,s.v[o]);return XL(n,i,s.t,s.d)}async function G5(e,t,n,s){if(Array.isArray(s))return M5(e,t,n,s);if(w5(s))return q5(e,t,n,s);if(h5(s))return W5(e,t,n,s);let i=s.constructor;if(i===o5)return fn(e,t,s.replacement);let o=await WT(e,t,n,s);if(o)return o;switch(i){case Object:return Ay(e,t,n,s,!1);case I:return Ay(e,t,n,s,!0);case Date:return NL(n,s);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return nA(e,t,n,s);case Number:case Boolean:case String:case BigInt:return D5(e,t,n,s);case ArrayBuffer:return j5(e.base,n,s);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return L5(e,t,n,s);case DataView:return U5(e,t,n,s);case Map:return V5(e,t,n,s);case Set:return $5(e,t,n,s)}if(i===Promise||s instanceof Promise)return F5(e,t,n,s);let l=e.base.features;if(l&32&&i===RegExp)return IL(n,s);if(l&16)switch(i){case BigInt64Array:case BigUint64Array:return B5(e,t,n,s)}if(l&1&&typeof AggregateError<"u"&&(i===AggregateError||s instanceof AggregateError))return z5(e,t,n,s);if(s instanceof Error)return nA(e,t,n,s);if(Jr in s||Xr in s)return Ay(e,t,n,s,!!i);throw new xp(s)}async function K5(e,t,n){let s=sw(e.base,n);if(s.type!==0)return s.value;let i=await WT(e,t,s.value,n);if(i)return i;throw new xp(n)}async function fn(e,t,n){switch(typeof n){case"boolean":return n?MT:DT;case"undefined":return yL;case"string":return VT(n);case"number":return RL(n);case"bigint":return OL(n);case"object":{if(n){let s=sw(e.base,n);return s.type===0?await G5(e,t+1,s.value,n):s.value}return vL}case"symbol":return Va(e.base,n);case"function":return K5(e,t,n);default:throw new xp(n)}}async function Y5(e,t){try{return await fn(e,0,t)}catch(n){throw n instanceof tA?n:new tA(n)}}var Z5=(e=>(e[e.Vanilla=1]="Vanilla",e[e.Cross=2]="Cross",e))(Z5||{});function GT(e,t){for(let n=0,s=t.length;n<s;n++){let i=t[n];e.has(i)||(e.add(i),i.extends&&GT(e,i.extends))}}function KT(e){if(e){let t=new Set;return GT(t,e),[...t]}}function X5(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new i5(e)}}var J5=1e6,Q5=1e4,e3=2e4;function YT(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var t3=1e3;function n3(e,t){var n;let s=t.refs||new Map;return"types"in s||Object.assign(s,{types:new Map}),{mode:e,plugins:t.plugins,refs:s,features:(n=t.features)!=null?n:63^(t.disabledFeatures||0),depthLimit:t.depthLimit||t3}}
12function s3(e){return{mode:2,base:n3(2,e),child:I}}var r3=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Ct(this._p,this.depth,e)}};function ZT(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new ri({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function i3(e,t,n){return ZT(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function a3(e,t,n){return ZT(e.base,t),e.base.refs.set(t,n),n}function hn(e,t,n){return e.mode===1?i3(e,t,n):a3(e,t,n)}function Ev(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new ri(e)}function o3(e,t){return hn(e,t.i,EL(sa(t.s)))}function l3(e,t,n){let s=n.a,i=s.length,o=hn(e,n.i,new Array(i));for(let l=0,u;l<i;l++)u=s[l],u&&(o[l]=Ct(e,t,u));return YT(o,n.o),o}function c3(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function u3(e){switch(e){case Xr:case Rl:case Ol:case Jr:return!0;default:return!1}}function sA(e,t,n){c3(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function d3(e,t,n,s,i){if(typeof s=="string")sA(n,sa(s),Ct(e,t,i));else{let o=Ct(e,t,s);switch(typeof o){case"string":sA(n,o,Ct(e,t,i));break;case"symbol":u3(o)&&(n[o]=Ct(e,t,i));break;default:throw new ri(s)}}}function XT(e,t,n){e.base.refs.types.set(t,n)}function Wu(e,t,n,s){if(e.base.refs.types.get(n)!==s)throw new ri(t)}function JT(e,t,n,s){let i=n.k;if(i.length>0)for(let o=0,l=n.v,u=i.length;o<u;o++)d3(e,t,s,i[o],l[o]);return s}function f3(e,t,n){let s=hn(e,n.i,n.t===10?{}:Object.create(null));return JT(e,t,n.p,s),YT(s,n.o),s}function h3(e,t){return hn(e,t.i,new Date(t.s))}function p3(e,t){if(e.base.features&32){let n=sa(t.c);if(n.length>e3)throw new ri(t);return hn(e,t.i,new RegExp(n,t.m))}throw new FT(t)}function m3(e,t,n){let s=hn(e,n.i,new Set);for(let i=0,o=n.a,l=o.length;i<l;i++)s.add(Ct(e,t,o[i]));return s}function g3(e,t,n){let s=hn(e,n.i,new Map);for(let i=0,o=n.e.k,l=n.e.v,u=o.length;i<u;i++)s.set(Ct(e,t,o[i]),Ct(e,t,l[i]));return s}function y3(e,t){if(t.s.length>J5)throw new ri(t);return hn(e,t.i,HT(sa(t.s)))}function v3(e,t,n){var s;let i=X5(n.c),o=Ct(e,t,n.f),l=(s=n.b)!=null?s:0;if(l<0||l>o.byteLength)throw new ri(n);return hn(e,n.i,new i(o,l,n.l))}function b3(e,t,n){var s;let i=Ct(e,t,n.f),o=(s=n.b)!=null?s:0;if(o<0||o>i.byteLength)throw new ri(n);return hn(e,n.i,new DataView(i,o,n.l))}function QT(e,t,n,s){if(n.p){let i=JT(e,t,n.p,{});Object.defineProperties(s,Object.getOwnPropertyDescriptors(i))}return s}function w3(e,t,n){let s=hn(e,n.i,new AggregateError([],sa(n.m)));return QT(e,t,n,s)}function x3(e,t,n){let s=Ev(n,gL,n.s),i=hn(e,n.i,new s(sa(n.m)));return QT(e,t,n,i)}function S3(e,t,n){let s=Sp(),i=hn(e,n.i,s.p),o=Ct(e,t,n.f);return n.s?s.s(o):s.f(o),i}function _3(e,t,n){return hn(e,n.i,Object(Ct(e,t,n.f)))}function k3(e,t,n){let s=e.base.plugins;if(s){let i=sa(n.c);for(let o=0,l=s.length;o<l;o++){let u=s[o];if(u.tag===i)return hn(e,n.i,u.deserialize(n.s,new r3(e,t),{id:n.i}))}}throw new n5(n.c)}function A3(e,t){let n=hn(e,t.i,hn(e,t.s,Sp()).p);return XT(e,t.s,22),n}function C3(e,t,n){let s=e.base.refs.get(n.i);if(s)return Wu(e,n,n.i,22),s.s(Ct(e,t,n.a[1])),I;throw new qu("Promise")}function E3(e,t,n){let s=e.base.refs.get(n.i);if(s)return Wu(e,n,n.i,22),s.f(Ct(e,t,n.a[1])),I;throw new qu("Promise")}function T3(e,t,n){Ct(e,t,n.a[0]);let s=Ct(e,t,n.a[1]);return g5(s)}function R3(e,t,n){Ct(e,t,n.a[0]);let s=Ct(e,t,n.a[1]);return _5(s)}function O3(e,t,n){let s=hn(e,n.i,oo());XT(e,n.i,31);let i=n.a,o=i.length;if(o)for(let l=0;l<o;l++)Ct(e,t,i[l]);return s}function j3(e,t,n){let s=e.base.refs.get(n.i);if(s)return Wu(e,n,n.i,31),s.next(Ct(e,t,n.f)),I;throw new qu("Stream")}function N3(e,t,n){let s=e.base.refs.get(n.i);if(s)return Wu(e,n,n.i,31),s.throw(Ct(e,t,n.f)),I;throw new qu("Stream")}function I3(e,t,n){let s=e.base.refs.get(n.i);if(s)return Wu(e,n,n.i,31),s.return(Ct(e,t,n.f)),I;throw new qu("Stream")}function P3(e,t,n){return Ct(e,t,n.f),I}function M3(e,t,n){return Ct(e,t,n.a[1]),I}function D3(e,t,n){let s=hn(e,n.i,qT([],n.s,n.l));for(let i=0,o=n.a.length;i<o;i++)s.v[i]=Ct(e,t,n.a[i]);return s}function Ct(e,t,n){if(t>e.base.depthLimit)throw new a5(e.base.depthLimit);switch(t+=1,n.t){case 2:return Ev(n,pL,n.s);case 0:return Number(n.s);case 1:return sa(String(n.s));case 3:if(String(n.s).length>Q5)throw new ri(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return o3(e,n);case 9:return l3(e,t,n);case 10:case 11:return f3(e,t,n);case 5:return h3(e,n);case 6:return p3(e,n);case 7:return m3(e,t,n);case 8:return g3(e,t,n);case 19:return y3(e,n);case 16:case 15:return v3(e,t,n);case 20:return b3(e,t,n);case 14:return w3(e,t,n);case 13:return x3(e,t,n);case 12:return S3(e,t,n);case 17:return Ev(n,hL,n.s);case 21:return _3(e,t,n);case 25:return k3(e,t,n);case 22:return A3(e,n);case 23:return C3(e,t,n);case 24:return E3(e,t,n);case 28:return T3(e,t,n);case 30:return R3(e,t,n);case 31:return O3(e,t,n);case 32:return j3(e,t,n);case 33:return N3(e,t,n);case 34:return I3(e,t,n);case 27:return P3(e,t,n);case 29:return M3(e,t,n);case 35:return D3(e,t,n);default:throw new FT(n)}}function L3(e,t){try{return Ct(e,0,t)}catch(n){throw new t5(n)}}var B3=()=>T;B3.toString();function rA(e,t){let n=KT(t.plugins),s=s3({plugins:n,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit});return L3(s,e)}async function U3(e,t={}){let n=KT(t.plugins),s=N5(1,{plugins:n,disabledFeatures:t.disabledFeatures});return{t:await Y5(s,e),f:s.base.features,m:Array.from(s.base.marked)}}function z3(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,n,s){return{v:n.parse(e.toSerializable(t))}},async async(t,n,s){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,s){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,s){return e.fromSerializable(n.deserialize(t.v))}}}var V3=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};const Th=globalThis.Buffer,eR=!!Th&&typeof Th.from=="function";function tR(e){if(e.length===0)return"";if(eR)return Th.from(e).toString("base64");const t=32768,n=[];for(let s=0;s<e.length;s+=t){const i=e.subarray(s,s+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(""))}function nR(e){if(e.length===0)return new Uint8Array(0);if(eR){const s=Th.from(e,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}const t=atob(e),n=new Uint8Array(t.length);for(let s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}const Hc=Object.create(null),qc=Object.create(null),$3=e=>new ReadableStream({start(t){e.on({next(n){try{t.enqueue(nR(n))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),F3=new TextEncoder,H3=e=>new ReadableStream({start(t){e.on({next(n){try{typeof n=="string"?t.enqueue(F3.encode(n)):t.enqueue(nR(n.$b64))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),q3="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;
12i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",W3="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function iA(e){const t=oo(),n=e.getReader();return(async()=>{try{for(;;){const{done:s,value:i}=await n.read();if(s){t.return(void 0);break}t.next(tR(i))}}catch(s){t.throw(s)}finally{n.releaseLock()}})(),t}function aA(e){const t=oo(),n=e.getReader(),s=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:i,value:o}=await n.read();if(i){try{const l=s.decode();l.length>0&&t.next(l)}catch{}t.return(void 0);break}try{const l=s.decode(o,{stream:!0});l.length>0&&t.next(l)}catch{t.next({$b64:tR(o)})}}}catch(i){t.throw(i)}finally{n.releaseLock()}})(),t}const G3={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(e){return e===Hc},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return q3},deserialize(e,t,n){return Hc}},{tag:"tss/RawStreamFactoryText",test(e){return e===qc},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return W3},deserialize(e,t,n){return qc}}],test(e){return e instanceof V3},parse:{sync(e,t,n){const s=e.hint==="text"?qc:Hc;return{hint:t.parse(e.hint),factory:t.parse(s),stream:t.parse(oo())}},async async(e,t,n){const s=e.hint==="text"?qc:Hc,i=e.hint==="text"?aA(e.stream):iA(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(s),stream:await t.parse(i)}},stream(e,t,n){const s=e.hint==="text"?qc:Hc,i=e.hint==="text"?aA(e.stream):iA(e.stream);return{hint:t.parse(e.hint),factory:t.parse(s),stream:t.parse(i)}}},serialize(e,t,n){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t,n){const s=t.deserialize(e.stream);return t.deserialize(e.hint)==="text"?H3(s):$3(s)}};function K3(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(t,n,s){return e(typeof n?.deserialize=="function"?n.deserialize(t.streamId):t.streamId)}}}const Y3={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}};var Li={},sR=e=>new ReadableStream({start:t=>{e.on({next:n=>{try{t.enqueue(n)}catch{}},throw:n=>{t.error(n)},return:()=>{try{t.close()}catch{}}})}}),Z3={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===Li},parse:{sync(){return Li},async async(){return await Promise.resolve(Li)},stream(){return Li}},serialize(){return sR.toString()},deserialize(){return Li}};function oA(e){let t=oo(),n=e.getReader();async function s(){try{let i=await n.read();i.done?t.return(i.value):(t.next(i.value),await s())}catch(i){t.throw(i)}}return s().catch(()=>{}),t}var X3={tag:"seroval/plugins/web/ReadableStream",extends:[Z3],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Li),stream:t.parse(oo())}},async async(e,t){return{factory:await t.parse(Li),stream:await t.parse(oA(e))}},stream(e,t){return{factory:t.parse(Li),stream:t.parse(oA(e))}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){let n=t.deserialize(e.stream);return sR(n)}},J3=X3;const Q3=[Y3,G3,J3];function e4(){return[...iT()?.serializationAdapters?.map(z3)??[],...Q3]}var lA=new TextDecoder,t4=new Uint8Array(0),cA=16*1024*1024,uA=32*1024*1024,dA=1024,fA=1e5;function n4(e){const t=new Map,n=new Map,s=new Set;let i=!1,o=null,l=0,u;const f=new ReadableStream({start(m){u=m},cancel(){i=!0;try{o?.cancel()}catch{}t.forEach(m=>{try{m.error(new Error("Framed response cancelled"))}catch{}}),t.clear(),n.clear(),s.clear()}});function h(m){const b=n.get(m);
12if(b)return b;if(s.has(m))return new ReadableStream({start(x){x.close()}});if(n.size>=dA)throw new Error(`Too many raw streams in framed response (max ${dA})`);const w=new ReadableStream({start(x){t.set(m,x)},cancel(){s.add(m),t.delete(m),n.delete(m)}});return n.set(m,w),w}function p(m){return h(m),t.get(m)}return(async()=>{const m=e.getReader();o=m;const b=[];let w=0;function x(){if(w<9)return null;const _=b[0];if(_.length>=9)return{type:_[0],streamId:(_[1]<<24|_[2]<<16|_[3]<<8|_[4])>>>0,length:(_[5]<<24|_[6]<<16|_[7]<<8|_[8])>>>0};const k=new Uint8Array(9);let C=0,R=9;for(let O=0;O<b.length&&R>0;O++){const N=b[O],P=Math.min(N.length,R);k.set(N.subarray(0,P),C),C+=P,R-=P}return{type:k[0],streamId:(k[1]<<24|k[2]<<16|k[3]<<8|k[4])>>>0,length:(k[5]<<24|k[6]<<16|k[7]<<8|k[8])>>>0}}function S(_){if(_===0)return t4;const k=b[0];if(k&&k.length>=_){const N=k.subarray(0,_);return k.length===_?b.shift():b[0]=k.subarray(_),w-=_,N}const C=new Uint8Array(_);let R=0,O=_;for(;O>0&&b.length>0;){const N=b[0];if(!N)break;const P=Math.min(N.length,O);C.set(N.subarray(0,P),R),R+=P,O-=P,P===N.length?b.shift():b[0]=N.subarray(P)}return w-=_,C}try{for(;;){const{done:_,value:k}=await m.read();if(i||_)break;if(k){if(w+k.length>uA)throw new Error(`Framed response buffer exceeded ${uA} bytes`);for(b.push(k),w+=k.length;;){const C=x();if(!C)break;const{type:R,streamId:O,length:N}=C;if(R!==zr.JSON&&R!==zr.CHUNK&&R!==zr.END&&R!==zr.ERROR)throw new Error(`Unknown frame type: ${R}`);if(R===zr.JSON){if(O!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(O===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(N>cA)throw new Error(`Frame payload too large: ${N} bytes (max ${cA})`);const P=9+N;if(w<P)break;if(++l>fA)throw new Error(`Too many frames in framed response (max ${fA})`);S(9);const D=S(N);switch(R){case zr.JSON:try{u.enqueue(lA.decode(D))}catch{}break;case zr.CHUNK:{const M=p(O);M&&M.enqueue(D);break}case zr.END:{const M=p(O);if(s.add(O),M){try{M.close()}catch{}t.delete(O)}break}case zr.ERROR:{const M=p(O);if(s.add(O),M){const $=lA.decode(D);M.error(new Error($)),t.delete(O)}break}}}}}if(w!==0)throw new Error("Incomplete frame at end of framed response");try{u.close()}catch{}t.forEach(_=>{try{_.close()}catch{}}),t.clear()}catch(_){try{u.error(_)}catch{}t.forEach(k=>{try{k.error(_)}catch{}}),t.clear()}finally{try{m.releaseLock()}catch{}o=null}})(),{getOrCreateStream:h,jsonChunks:f}}var xu=null;async function Tv(e){e.length>0&&await Promise.allSettled(e)}var s4=Object.prototype.hasOwnProperty;function rR(e){for(const t in e)if(s4.call(e,t))return!0;return!1}async function r4(e,t,n){xu||(xu=e4());const s=t[0],i=s.fetch??n,o=s.data instanceof FormData?"formData":"payload",l=s.headers?new Headers(s.headers):new Headers;if(l.set("x-tsr-serverFn","true"),o==="payload"&&l.set("accept",`${JM}, application/x-ndjson, application/json`),s.method==="GET"){if(o==="formData")throw new Error("FormData is not supported with GET requests");const f=await iR(s);if(f!==void 0){const h=mT({payload:f});e.includes("?")?e+=`&${h}`:e+=`?${h}`}}let u;if(s.method==="POST"){const f=await i4(s);f?.contentType&&l.set("content-type",f.contentType),u=f?.body}return await a4(async()=>i(e,{method:s.method,headers:l,signal:s.signal,body:u}))}async function iR(e){let t=!1;const n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&rR(e.context)&&(t=!0,n.context=e.context),t)return aR(n)}async function aR(e){return JSON.stringify(await Promise.resolve(U3(e,{plugins:xu})))}async function i4(e){if(e.data instanceof FormData){let n;return e.context&&rR(e.context)&&(n=await aR(e.context)),n!==void 0&&e.data.set(XM,n),{body:e.data}}const t=await iR(e);if(t)return{body:t,contentType:"application/json"}}async function a4(e){let t;try{t=await e()}catch(s){if(s instanceof Response)t=s;else throw console.log(s),s}if(t.headers.get("x-tss-raw")==="true")return t;const n=t.headers.get("content-type");if(n||Jn(),t.headers.get("x-tss-serialized")){let s;if(n.includes("application/x-tss-framed")){if(tD(n),!t.body)throw new Error("No response body for framed response");const{getOrCreateStream:i,jsonChunks:o}=n4(t.body),l=[K3(i),...xu||[]],u=new Map;s=await o4({jsonStream:o,onMessage:f=>rA(f,{refs:u,plugins:l}),onError(f,h){console.error(f,h)}})}else if(n.includes("application/json")){const i=await t.json(),o=[];s=rA(i,{plugins:xu}),await Tv(o)}if(s||Jn(),s instanceof Error)throw s;return s}if(n.includes("application/json")){const s=await t.json(),i=jD(s);if(i)throw i;if(vn(s))throw s;return s}if(!t.ok)throw new Error(await t.text());return t}async function o4({jsonStream:e,onMessage:t,onError:n}){const s=e.getReader(),{value:i,done:o}=await s.read();if(o||!i)throw new Error("Stream ended before first object");const l=JSON.parse(i);let u=!1;const f=(async()=>{try{for(;;){const{value:m,done:b}=await s.read();if(b)break;
12if(m)try{const w=[];try{t(JSON.parse(m))}finally{}await Tv(w)}catch(w){n?.(`Invalid JSON: ${m}`,w)}}}catch(m){u||n?.("Stream processing error:",m)}})();let h;const p=[];try{h=t(l)}catch(m){throw u=!0,s.cancel().catch(()=>{}),m}return await Tv(p),Promise.resolve(h).catch(()=>{u=!0,s.cancel().catch(()=>{})}),f.finally(()=>{try{s.releaseLock()}catch{}}),h}function l4(e){const t="/_serverFn/"+e;return Object.assign((...i)=>{const o=iT()?.serverFns?.fetch;return r4(t,i,o??fetch)},{url:t,serverFnMeta:{id:e},[Sv]:!0})}var c4={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(Sv in e)?!1:!!e[Sv],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>l4(e)};function hA(e){return e.replaceAll("\0","/").replaceAll("�","/")}function u4(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function d4(e){window.$_TSR||Jn();const t=e.options.serializationAdapters;if(t?.length){const _=new Map;t.forEach(k=>{_.set(k.key,k.fromSerializable)}),window.$_TSR.t=_,window.$_TSR.buffer.forEach(k=>k())}window.$_TSR.initialized=!0,window.$_TSR.router||Jn();const n=window.$_TSR.router;n.matches.forEach(_=>{_.i=hA(_.i)}),n.lastMatchId&&(n.lastMatchId=hA(n.lastMatchId));const{manifest:s,dehydratedData:i,lastMatchId:o}=n;e.ssr={manifest:s};const l=document.querySelector('meta[property="csp-nonce"]')?.content;e.options.ssr={nonce:l},await e.options.hydrate?.(i);const u=e.matchRoutes(e.stores.location.get()),f=Promise.all(u.map(_=>e.loadRouteChunk(e.looseRoutesById[_.routeId])));function h(_){const k=e.looseRoutesById[_.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(k){const C=Xa();_._nonReactive.minPendingPromise=C,_._forcePending=!0,setTimeout(()=>{C.resolve(),e.updateMatch(_.id,R=>(R._nonReactive.minPendingPromise=void 0,{...R,_forcePending:void 0}))},k)}}function p(_){const k=e.looseRoutesById[_.routeId];k&&(k.options.ssr=_.ssr)}let m;u.forEach(_=>{const k=n.matches.find(C=>C.i===_.id);if(!k){_._nonReactive.dehydrated=!1,_.ssr=!1,p(_);return}u4(_,k),p(_),_._nonReactive.dehydrated=_.ssr!==!1,(_.ssr==="data-only"||_.ssr===!1)&&m===void 0&&(m=_.index,h(_))}),e.stores.setMatches(u);const b=e.stores.matches.get(),w=e.stores.location.get();await Promise.all(b.map(async _=>{try{const k=e.looseRoutesById[_.routeId],C=b[_.index-1]?.context??e.options.context;if(k.options.context){const P={deps:_.loaderDeps,params:_.params,context:C??{},location:w,navigate:D=>e.navigate({...D,_fromLocation:w}),buildLocation:e.buildLocation,cause:_.cause,abortController:_.abortController,preload:!1,matches:u,routeId:k.id};_.__routeContext=k.options.context(P)??void 0}_.context={...C,..._.__routeContext,..._.__beforeLoadContext};const R={ssr:e.options.ssr,matches:b,match:_,params:_.params,loaderData:_.loaderData},O=await k.options.head?.(R),N=await k.options.scripts?.(R);_.meta=O?.meta,_.links=O?.links,_.headScripts=O?.scripts,_.styles=O?.styles,_.scripts=N}catch(k){if(vn(k))_.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${_.routeId}`,k);else throw _.error=k,console.error(`Error during hydration for route ${_.routeId}:`,k),k}}));const x=u[u.length-1].id!==o;if(!u.some(_=>_.ssr===!1)&&!x)return u.forEach(_=>{_._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),f;const S=Promise.resolve().then(()=>e.load()).catch(_=>{console.error("Error during router hydration:",_)});if(x){const _=u[1];_||Jn(),h(_),_._displayPending=!0,_._nonReactive.displayPendingPromise=S,S.then(()=>{e.batch(()=>{e.stores.status.get()==="pending"&&(e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(_.id,k=>({...k,_displayPending:void 0,displayPendingPromise:void 0}))})})}return f}var Rh=E.use,Jc=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Cy(e){const t=E.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function f4(e,t,n={},s={}){E.useEffect(()=>{if(!e.current||s.disabled||typeof IntersectionObserver!="function")return;const i=new IntersectionObserver(([o])=>{t(o)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,s.disabled,e])}function h4(e){const t=E.useRef(null);return E.useImperativeHandle(e,()=>t.current,[]),t}function p4({promise:e}){if(Rh)return Rh(e);const t=iL(e);if(t[ur].status==="pending")throw t;if(t[ur].status==="error")throw t[ur].error;return t[ur].data}function m4(e){const t=y.jsx(g4,{...e});
12return e.fallback?y.jsx(E.Suspense,{fallback:e.fallback,children:t}):t}function g4(e){const t=p4(e);return e.children(t)}function iw(e){const t=e.errorComponent??aw;return y.jsx(y4,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:s})=>n?E.createElement(t,{error:n,reset:s}):e.children})}var y4=class extends E.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function aw({error:e}){const[t,n]=E.useState(!1);return y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),y.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(s=>!s),children:t?"Hide Error":"Show Error"})]}),y.jsx("div",{style:{height:".25rem"}}),t?y.jsx("div",{children:y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?y.jsx("code",{children:e.message}):null})}):null]})}function v4({children:e,fallback:t=null}){return ow()?y.jsx(Be.Fragment,{children:e}):y.jsx(Be.Fragment,{children:t})}function ow(){return Be.useSyncExternalStore(b4,()=>!0,()=>!1)}function b4(){return()=>{}}var oR=E.createContext(null);function wn(e){return E.useContext(oR)}var Ap=E.createContext(void 0),w4=E.createContext(void 0),Dt=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Dt||{});function x4({update:e,notify:t,unwatched:n}){return{link:s,unlink:i,propagate:o,checkDirty:l,shallowPropagate:u};function s(h,p,m){const b=p.depsTail;if(b!==void 0&&b.dep===h)return;const w=b!==void 0?b.nextDep:p.deps;if(w!==void 0&&w.dep===h){w.version=m,p.depsTail=w;return}const x=h.subsTail;if(x!==void 0&&x.version===m&&x.sub===p)return;const S=p.depsTail=h.subsTail={version:m,dep:h,sub:p,prevDep:b,nextDep:w,prevSub:x,nextSub:void 0};w!==void 0&&(w.prevDep=S),b!==void 0?b.nextDep=S:p.deps=S,x!==void 0?x.nextSub=S:h.subs=S}function i(h,p=h.sub){const m=h.dep,b=h.prevDep,w=h.nextDep,x=h.nextSub,S=h.prevSub;return w!==void 0?w.prevDep=b:p.depsTail=b,b!==void 0?b.nextDep=w:p.deps=w,x!==void 0?x.prevSub=S:m.subsTail=S,S!==void 0?S.nextSub=x:(m.subs=x)===void 0&&n(m),w}function o(h){let p=h.nextSub,m;e:do{const b=h.sub;let w=b.flags;if(w&60?w&12?w&4?!(w&48)&&f(h,b)?(b.flags=w|40,w&=1):w=0:b.flags=w&-9|32:w=0:b.flags=w|32,w&2&&t(b),w&1){const x=b.subs;if(x!==void 0){const S=(h=x).nextSub;S!==void 0&&(m={value:p,prev:m},p=S);continue}}if((h=p)!==void 0){p=h.nextSub;continue}for(;m!==void 0;)if(h=m.value,m=m.prev,h!==void 0){p=h.nextSub;continue e}break}while(!0)}function l(h,p){let m,b=0,w=!1;e:do{const x=h.dep,S=x.flags;if(p.flags&16)w=!0;else if((S&17)===17){if(e(x)){const _=x.subs;_.nextSub!==void 0&&u(_),w=!0}}else if((S&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(m={value:h,prev:m}),h=x.deps,p=x,++b;continue}if(!w){const _=h.nextDep;if(_!==void 0){h=_;continue}}for(;b--;){const _=p.subs,k=_.nextSub!==void 0;if(k?(h=m.value,m=m.prev):h=_,w){if(e(p)){k&&u(_),p=h.sub;continue}w=!1}else p.flags&=-33;p=h.sub;const C=h.nextDep;if(C!==void 0){h=C;continue e}}return w}while(!0)}function u(h){do{const p=h.sub,m=p.flags;(m&48)===32&&(p.flags=m|16,(m&6)===2&&t(p))}while((h=h.nextSub)!==void 0)}function f(h,p){let m=p.depsTail;for(;m!==void 0;){if(m===h)return!0;m=m.prevDep}return!1}}function S4(e,t,n){const s=typeof e=="object",i=s?e:void 0;return{next:(s?e.next:e)?.bind(i),error:(s?e.error:t)?.bind(i),complete:(s?e.complete:n)?.bind(i)}}const Rv=[];let lh=0;const{link:pA,unlink:_4,propagate:k4,checkDirty:lR,shallowPropagate:mA}=x4({update(e){return e._update()},notify(e){Rv[Ov++]=e,e.flags&=~Dt.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Dt.Mutable|Dt.Dirty,Oh(e))}});let Rf=0,Ov=0,lr,jv=0;function cR(e){try{++jv,e()}finally{--jv||uR()}}function Oh(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=_4(n,e)}function uR(){if(!(jv>0)){for(;Rf<Ov;){const e=Rv[Rf];Rv[Rf++]=void 0,e.notify()}Rf=0,Ov=0}}function gA(e,t){const n=typeof e=="function",s=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Dt.None:Dt.Mutable,get(){return lr!==void 0&&pA(i,lr,lh),i._snapshot},subscribe(o){const l=S4(o),u={current:!1},f=A4(()=>{i.get(),u.current?l.next?.(i._snapshot):u.current=!0});return{unsubscribe:()=>{f.stop()}}},_update(o){const l=lr,u=t?.compare??Object.is;if(n)lr=i,++lh,i.depsTail=void 0;else if(o===void 0)return!1;
12n&&(i.flags=Dt.Mutable|Dt.RecursedCheck);try{const f=i._snapshot,h=typeof o=="function"?o(f):o===void 0&&n?s(f):o;return f===void 0||!u(f,h)?(i._snapshot=h,!0):!1}finally{lr=l,n&&(i.flags&=~Dt.RecursedCheck),Oh(i)}}};return n?(i.flags=Dt.Mutable|Dt.Dirty,i.get=function(){const o=i.flags;if(o&Dt.Dirty||o&Dt.Pending&&lR(i.deps,i)){if(i._update()){const l=i.subs;l!==void 0&&mA(l)}}else o&Dt.Pending&&(i.flags=o&~Dt.Pending);return lr!==void 0&&pA(i,lr,lh),i._snapshot}):i.set=function(o){if(i._update(o)){const l=i.subs;l!==void 0&&(k4(l),mA(l),uR())}},i}function A4(e){const t=()=>{const s=lr;lr=n,++lh,n.depsTail=void 0,n.flags=Dt.Watching|Dt.RecursedCheck;try{return e()}finally{lr=s,n.flags&=~Dt.RecursedCheck,Oh(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Dt.Watching|Dt.RecursedCheck,notify(){const s=this.flags;s&Dt.Dirty||s&Dt.Pending&&lR(this.deps,this)?t():this.flags=Dt.Watching},stop(){this.flags=Dt.None,this.depsTail=void 0,Oh(this)}};return t(),n}var Ey={exports:{}},Ty={},Ry={exports:{}},Oy={};var yA;function C4(){if(yA)return Oy;yA=1;var e=Fu();function t(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var n=typeof Object.is=="function"?Object.is:t,s=e.useState,i=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function u(m,b){var w=b(),x=s({inst:{value:w,getSnapshot:b}}),S=x[0].inst,_=x[1];return o(function(){S.value=w,S.getSnapshot=b,f(S)&&_({inst:S})},[m,w,b]),i(function(){return f(S)&&_({inst:S}),m(function(){f(S)&&_({inst:S})})},[m]),l(w),w}function f(m){var b=m.getSnapshot;m=m.value;try{var w=b();return!n(m,w)}catch{return!0}}function h(m,b){return b()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return Oy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Oy}var vA;function E4(){return vA||(vA=1,Ry.exports=C4()),Ry.exports}var bA;function T4(){if(bA)return Ty;bA=1;var e=Fu(),t=E4();function n(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var s=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,u=e.useMemo,f=e.useDebugValue;return Ty.useSyncExternalStoreWithSelector=function(h,p,m,b,w){var x=o(null);if(x.current===null){var S={hasValue:!1,value:null};x.current=S}else S=x.current;x=u(function(){function k(P){if(!C){if(C=!0,R=P,P=b(P),w!==void 0&&S.hasValue){var D=S.value;if(w(D,P))return O=D}return O=P}if(D=O,s(R,P))return D;var M=b(P);return w!==void 0&&w(D,M)?(R=P,D):(R=P,O=M)}var C=!1,R,O,N=m===void 0?null:m;return[function(){return k(p())},N===null?void 0:function(){return k(N())}]},[p,m,b,w]);var _=i(h,x[0],x[1]);return l(function(){S.hasValue=!0,S.value=_},[_]),f(_),_},Ty}var wA;function R4(){return wA||(wA=1,Ey.exports=T4()),Ey.exports}var O4=R4();function j4(e,t){return e===t}function Lt(e,t,n=j4){const s=E.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:u}=e.subscribe(l);return u},[e]),i=E.useCallback(()=>e?.get(),[e]);return O4.useSyncExternalStoreWithSelector(s,i,i,t,n)}var jy={get(){},subscribe(){return{unsubscribe(){}}}};function dR(e,t){const n=E.useRef();return s=>{const i=e?.select?e.select(s):s;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Ua(n.current,i):i}}function lo(e){const t=wn(),n=E.useContext(e.from?w4:Ap),s=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=dR(e,t),o=Lt(s??jy,l=>l?i(l):jy);if(o!==jy)return o;(e.shouldThrow??!0)&&Jn()}function fR(e){return lo({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function hR(e){const{select:t,...n}=e;return lo({...n,select:s=>t?t(s.loaderDeps):s.loaderDeps})}function pR(e){return lo({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function mR(e){return lo({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function gR(e){const t=wn();return E.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function yR(e){return lo({...e,select:t=>e.select?e.select(t.context):t.context})}var co=rT();function N4(e,t){const n=wn(),s=h4(t),{activeProps:i,inactiveProps:o,activeOptions:l,to:u,preload:f,preloadDelay:h,preloadIntentProximity:p,hashScrollIntoView:m,replace:b,startTransition:w,resetScroll:x,viewTransition:S,children:_,target:k,disabled:C,style:R,className:O,onClick:N,onBlur:P,onFocus:D,onMouseEnter:M,onMouseLeave:$,onTouchStart:K,ignoreBlocker:Y,params:X,search:ae,hash:oe,state:be,mask:V,reloadDocument:Q,unsafeRelative:te,from:pe,_fromLocation:ie,...B}=e,ee=ow(),de=E.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),he=Lt(n.stores.location,bt=>bt,(bt,on)=>bt.href===on.href),ge=E.useMemo(()=>{const bt={_fromLocation:he,...de};return n.buildLocation(bt)},[n,he,de]),_e=ge.maskedLocation?ge.maskedLocation.publicHref:ge.publicHref,ye=ge.maskedLocation?ge.maskedLocation.external:ge.external,Me=E.useMemo(()=>
12B4(_e,ye,n.history,C),[C,ye,_e,n.history]),Ee=E.useMemo(()=>{if(Me?.external)return kh(Me.href,n.protocolAllowlist)?void 0:Me.href;if(!U4(u)&&!(typeof u!="string"||u.indexOf(":")===-1))try{return new URL(u),kh(u,n.protocolAllowlist)?void 0:u}catch{}},[u,Me,n.protocolAllowlist]),Xe=E.useMemo(()=>{if(Ee)return!1;if(l?.exact){if(!_D(he.pathname,ge.pathname,n.basepath))return!1}else{const bt=Ah(he.pathname,n.basepath),on=Ah(ge.pathname,n.basepath);if(!(bt.startsWith(on)&&(bt.length===on.length||bt[on.length]==="/")))return!1}return(l?.includeSearch??!0)&&!Ln(he.search,ge.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?ee&&he.hash===ge.hash:!0},[l?.exact,l?.explicitUndefined,l?.includeHash,l?.includeSearch,he,Ee,ee,ge.hash,ge.pathname,ge.search,n.basepath]),Ye=Xe?Ba(i,{})??I4:Ny,Qe=Xe?Ny:Ba(o,{})??Ny,Wt=[O,Ye.className,Qe.className].filter(Boolean).join(" "),ht=(R||Ye.style||Qe.style)&&{...R,...Ye.style,...Qe.style},[Is,Vn]=E.useState(!1),Ps=E.useRef(!1),ts=e.reloadDocument||Ee?!1:f??n.options.defaultPreload,Ms=h??n.options.defaultPreloadDelay??0,ns=E.useCallback(()=>{n.preloadRoute({...de,_builtLocation:ge}).catch(bt=>{console.warn(bt),console.warn(aL)})},[n,de,ge]);f4(s,E.useCallback(bt=>{bt?.isIntersecting&&ns()},[ns]),L4,{disabled:!!C||ts!=="viewport"}),E.useEffect(()=>{Ps.current||!C&&ts==="render"&&(ns(),Ps.current=!0)},[C,ns,ts]);const ai=bt=>{const on=bt.currentTarget.getAttribute("target"),Ds=k!==void 0?k:on;if(!C&&!z4(bt)&&!bt.defaultPrevented&&(!Ds||Ds==="_self")&&bt.button===0){bt.preventDefault(),co.flushSync(()=>{Vn(!0)});const la=n.subscribe("onResolved",()=>{la(),Vn(!1)});n.navigate({...de,replace:b,resetScroll:x,hashScrollIntoView:m,startTransition:w,viewTransition:S,ignoreBlocker:Y})}};if(Ee)return{...B,ref:s,href:Ee,..._&&{children:_},...k&&{target:k},...C&&{disabled:C},...R&&{style:R},...O&&{className:O},...N&&{onClick:N},...P&&{onBlur:P},...D&&{onFocus:D},...M&&{onMouseEnter:M},...$&&{onMouseLeave:$},...K&&{onTouchStart:K}};const mo=bt=>{if(C||ts!=="intent")return;if(!Ms){ns();return}const on=bt.currentTarget;if(Wc.has(on))return;const Ds=setTimeout(()=>{Wc.delete(on),ns()},Ms);Wc.set(on,Ds)},go=bt=>{C||ts!=="intent"||ns()},an=bt=>{if(C||!ts||!Ms)return;const on=bt.currentTarget,Ds=Wc.get(on);Ds&&(clearTimeout(Ds),Wc.delete(on))};return{...B,...Ye,...Qe,href:Me?.href,ref:s,onClick:nl([N,ai]),onBlur:nl([P,an]),onFocus:nl([D,mo]),onMouseEnter:nl([M,mo]),onMouseLeave:nl([$,an]),onTouchStart:nl([K,go]),disabled:!!C,target:k,...ht&&{style:ht},...Wt&&{className:Wt},...C&&P4,...Xe&&M4,...ee&&Is&&D4}}var Ny={},I4={className:"active"},P4={role:"link","aria-disabled":!0},M4={"data-status":"active","aria-current":"page"},D4={"data-transitioning":"transitioning"},Wc=new WeakMap,L4={rootMargin:"100px"},nl=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function B4(e,t,n,s){if(!s)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function U4(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var ot=E.forwardRef((e,t)=>{const{_asChild:n,...s}=e,{type:i,...o}=N4(s,t),l=typeof s.children=="function"?s.children({isActive:o["data-status"]==="active"}):s.children;if(!n){const{disabled:u,...f}=o;return E.createElement("a",f,l)}return E.createElement(n,o,l)});function z4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var V4=class extends kT{constructor(t){super(t),this.useMatch=n=>lo({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>yR({...n,from:this.id}),this.useSearch=n=>mR({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>pR({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>hR({...n,from:this.id}),this.useLoaderData=n=>fR({...n,from:this.id}),this.useNavigate=()=>gR({from:this.fullPath}),this.Link=Be.forwardRef((n,s)=>y.jsx(ot,{ref:s,from:this.fullPath,...n}))}};function $4(e){return new V4(e)}function F4(){return e=>q4(e)}var H4=class extends dL{constructor(e){super(e),this.useMatch=t=>lo({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>yR({...t,from:this.id}),this.useSearch=t=>mR({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>pR({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>hR({...t,from:this.id}),this.useLoaderData=t=>fR({...t,from:this.id}),this.useNavigate=()=>gR({from:this.fullPath}
12),this.Link=Be.forwardRef((t,n)=>y.jsx(ot,{ref:n,from:this.fullPath,...t}))}};function q4(e){return new H4(e)}function We(e){return new W4(e,{silent:!0}).createRoute}var W4=class{constructor(e,t){this.path=e,this.createRoute=n=>{const s=$4(n);return s.isRoot=!1,s},this.silent=t?.silent}};function Ge(e,t){let n,s,i,o;const l=()=>(n||(n=e().then(f=>{n=void 0,s=f[t]}).catch(f=>{if(i=f,rD(i)&&i instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const h=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(h)||(sessionStorage.setItem(h,"1"),o=!0)}})),n),u=function(h){if(o)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!s)if(Rh)Rh(l());else throw l();return E.createElement(s,h)};return u.preload=l,u}function G4(e){const t=wn(),n=`not-found-${Lt(t.stores.location,s=>s.pathname)}-${Lt(t.stores.status,s=>s)}`;return y.jsx(iw,{getResetKey:()=>n,onCatch:(s,i)=>{if(vn(s))e.onCatch?.(s,i);else throw s},errorComponent:({error:s})=>{if(vn(s))return e.fallback?.(s);throw s},children:e.children})}function K4(){return y.jsx("p",{children:"Not Found"})}function gl(e){return y.jsx(y.Fragment,{children:e.children})}function vR(e,t,n){return t.options.notFoundComponent?y.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?y.jsx(e.options.defaultNotFoundComponent,{...n}):y.jsx(K4,{})}function Y4(e){return null}function Z4(){return Y4(wn()),null}var X4=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,J4=(e,t)=>e[0]===t[0]&&e[1]===t[1],bR=E.memo(function({matchId:t}){const n=wn(),s=n.stores.matchStores.get(t);s||Jn();const i=Lt(n.stores.loadedAt,l=>l),o=Lt(s,l=>l,X4);return y.jsx(Q4,{router:n,matchId:t,resetKey:i,matchState:E.useMemo(()=>{const l=o.routeId,u=n.routesById[l].parentRoute?.id;return{routeId:l,ssr:o.ssr,_displayPending:o._displayPending,parentRouteId:u}},[o._displayPending,o.routeId,o.ssr,n.routesById])})});function Q4({router:e,matchId:t,resetKey:n,matchState:s}){const i=e.routesById[s.routeId],o=i.options.pendingComponent??e.options.defaultPendingComponent,l=o?y.jsx(o,{}):null,u=i.options.errorComponent??e.options.defaultErrorComponent,f=i.options.onCatch??e.options.defaultOnCatch,h=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,p=s.ssr===!1||s.ssr==="data-only",m=(!i.isRoot||i.options.wrapInSuspense||p)&&(i.options.wrapInSuspense??o??(i.options.errorComponent?.preload||p))?E.Suspense:gl,b=u?iw:gl,w=h?G4:gl;return y.jsxs(i.isRoot?i.options.shellComponent??gl:gl,{children:[y.jsx(Ap.Provider,{value:t,children:y.jsx(m,{fallback:l,children:y.jsx(b,{getResetKey:()=>n,errorComponent:u||aw,onCatch:(x,S)=>{if(vn(x))throw x.routeId??=s.routeId,x;f?.(x,S)},children:y.jsx(w,{fallback:x=>{if(x.routeId??=s.routeId,!h||x.routeId&&x.routeId!==s.routeId||!x.routeId&&!i.isRoot)throw x;return E.createElement(h,x)},children:p||s._displayPending?y.jsx(v4,{fallback:l,children:y.jsx(xA,{matchId:t})}):y.jsx(xA,{matchId:t})})})})}),s.parentRouteId===Ga?y.jsxs(y.Fragment,{children:[y.jsx(eB,{}),e.options.scrollRestoration&&aT?y.jsx(Z4,{}):null]}):null]})}function eB(){const e=wn(),t=E.useRef();return Jc(()=>{const n=e.stores.resolvedLocation.get(),s=t.current;n&&(!s||s.href!==n.href)&&e.emit({type:"onRendered",...Tl(e.stores.location.get(),s??n)}),t.current=n},[Lt(e.stores.resolvedLocation,n=>n?.state.__TSR_key),e]),null}var xA=E.memo(function({matchId:t}){const n=wn(),s=(p,m)=>n.getMatch(p.id)?._nonReactive[m]??p._nonReactive[m],i=n.stores.matchStores.get(t);i||Jn();const o=Lt(i,p=>p),l=o.routeId,u=n.routesById[l],f=E.useMemo(()=>{const p=(n.routesById[l].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:l,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return p?JSON.stringify(p):void 0},[l,o.loaderDeps,o._strictParams,o._strictSearch,n.options.defaultRemountDeps,n.routesById]),h=E.useMemo(()=>{const p=u.options.component??n.options.defaultComponent;return p?y.jsx(p,{},f):y.jsx(wR,{})},[f,u.options.component,n.options.defaultComponent]);if(o._displayPending)throw s(o,"displayPendingPromise");if(o._forcePending)throw s(o,"minPendingPromise");if(o.status==="pending"){const p=u.options.pendingMinMs??n.options.defaultPendingMinMs;if(p){const m=n.getMatch(o.id);if(m&&!m._nonReactive.minPendingPromise){const b=Xa();m._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),m._nonReactive.minPendingPromise=void 0},p)}}throw s(o,"loadPromise")}if(o.status==="notFound")return vn(o.error)||Jn(),vR(n,u,o.error);if(o.status==="redirected")throw Xn(o.error)||Jn(),s(o,"loadPromise");if(o.status==="error")throw o.error;return h}),wR=E.memo(function(){const t=wn(),n=E.useContext(Ap);let s,i=!1,o;{const h=n?t.stores.matchStores.get(n):void 0;[s,i]=Lt(h,p=>[p?.routeId,p?.globalNotFound??!1],J4),o=Lt(t.stores.matchesId,p=>p[p.findIndex(m=>
12m===n)+1])}const l=s?t.routesById[s]:void 0,u=t.options.defaultPendingComponent?y.jsx(t.options.defaultPendingComponent,{}):null;if(i)return l||Jn(),vR(t,l,void 0);if(!o)return null;const f=y.jsx(bR,{matchId:o});return s===Ga?y.jsx(E.Suspense,{fallback:u,children:f}):f});function tB(){const e=wn(),t=E.useRef({router:e,mounted:!1}),[n,s]=E.useState(!1),i=Lt(e.stores.isLoading,m=>m),o=Lt(e.stores.hasPending,m=>m),l=Cy(i),u=i||n||o,f=Cy(u),h=i||o,p=Cy(h);return e.startTransition=m=>{s(!0),E.startTransition(()=>{m(),s(!1)})},E.useEffect(()=>{const m=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Yr(e.latestLocation.publicHref)!==Yr(b.publicHref)&&e.commitLocation({...b,replace:!0}),()=>{m()}},[e,e.history]),Jc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),Jc(()=>{l&&!i&&e.emit({type:"onLoad",...Tl(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,e,i]),Jc(()=>{p&&!h&&e.emit({type:"onBeforeRouteMount",...Tl(e.stores.location.get(),e.stores.resolvedLocation.get())})},[h,p,e]),Jc(()=>{if(f&&!u){const m=Tl(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...m}),cR(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[u,f,e]),null}function nB(){const e=wn(),t=e.routesById[Ga].options.pendingComponent??e.options.defaultPendingComponent,n=t?y.jsx(t,{}):null,s=y.jsxs(typeof document<"u"&&e.ssr?gl:E.Suspense,{fallback:n,children:[y.jsx(tB,{}),y.jsx(sB,{})]});return e.options.InnerWrap?y.jsx(e.options.InnerWrap,{children:s}):s}function sB(){const e=wn(),t=Lt(e.stores.firstId,i=>i),n=Lt(e.stores.loadedAt,i=>i),s=t?y.jsx(bR,{matchId:t}):null;return y.jsx(Ap.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?s:y.jsx(iw,{getResetKey:()=>n,errorComponent:aw,onCatch:void 0,children:s})})}var rB=e=>({createMutableStore:gA,createReadonlyStore:gA,batch:cR}),iB=e=>new aB(e),aB=class extends qD{constructor(e){super(e,rB)}};function oB({router:e,children:t,...n}
12){lT(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const s=y.jsx(oR.Provider,{value:e,children:t});return e.options.Wrap?y.jsx(e.options.Wrap,{children:s}):s}function lB({router:e,...t}){return y.jsx(oB,{router:e,...t,children:y.jsx(nB,{})})}function xR(e){const t=wn({warn:e?.router===void 0}),n=e?.router||t;return Lt(n.stores.__store,dR(e,n))}function SA(e,t){if(t)for(const[n,s]of Object.entries(t))n!=="suppressHydrationWarning"&&s!==void 0&&s!==!1&&e.setAttribute(n,typeof s=="boolean"?"":String(s))}function SR(e){const{attrs:t,children:n,nonce:s,preventScriptHoist:i}=e;switch(e.tag){case"title":return y.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return y.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return y.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:s,suppressHydrationWarning:!0});case"style":return e.inlineCss,y.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n},nonce:s});case"script":return y.jsx(cB,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function cB({attrs:e,children:t,preventScriptHoist:n}){wn();const s=ow(),i=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(E.useEffect(()=>{if(!i){if(e?.src){const o=(()=>{try{const u=document.baseURI||window.location.href;return new URL(e.src,u).href}catch{return e.src}})();for(const u of document.querySelectorAll("script[src]"))if(u.src===o)return;const l=document.createElement("script");return SA(l,e),document.head.appendChild(l),()=>l.remove()}if(typeof t=="string"){const o=typeof e?.type=="string"?e.type:"text/javascript",l=typeof e?.nonce=="string"?e.nonce:void 0;for(const f of document.querySelectorAll("script:not([src])")){if(!(f instanceof HTMLScriptElement))continue;const h=f.getAttribute("type")??"text/javascript",p=f.getAttribute("nonce")??void 0;if(f.textContent===t&&h===o&&p===l)return}const u=document.createElement("script");return u.textContent=t,SA(u,e),document.head.appendChild(u),()=>u.remove()}}},[e,t,i]),i&&typeof t=="string")return y.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!s){if(e?.src)return y.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return y.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var uB=e=>{const t=wn(),n=t.options.ssr?.nonce,s=Lt(t.stores.matches,m=>m.map(b=>b.meta).filter(b=>b!==void 0),Ln),i=E.useMemo(()=>{const m=[],b={};let w;for(let x=s.length-1;x>=0;x--){const S=s[x];for(let _=S.length-1;_>=0;_--){const k=S[_];if(k)if(k.title)w||(w={tag:"title",children:k.title});else if("script:ld+json"in k)try{const C=JSON.stringify(k["script:ld+json"]);m.push({tag:"script",attrs:{type:"application/ld+json"},children:uD(C)})}catch{}else{const C=k.name??k.property;if(C){if(b[C])continue;b[C]=!0}m.push({tag:"meta",attrs:{...k,nonce:n}})}}}return w&&m.push(w),n&&m.push({tag:"meta",attrs:{property:"csp-nonce",content:n}}),m.reverse(),m},[s,n]),o=Lt(t.stores.matches,m=>m.flatMap(b=>b.links??[]).filter(b=>b!==void 0).map(b=>({tag:"link",attrs:{...b,nonce:n}})),Ln),l=Lt(t.stores.matches,m=>{const b=t.ssr?.manifest,w=[];return b&&(m.forEach(x=>{b.routes[x.routeId]?.css?.forEach(S=>{const _=uL(S);w.push({tag:"link",attrs:{rel:"stylesheet",..._,crossOrigin:_T(e,"stylesheet")??_.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),b.inlineStyle&&w.push({tag:"style",attrs:{...b.inlineStyle.attrs,nonce:n},children:b.inlineStyle.children,inlineCss:!0})),w},Ln),u=Lt(t.stores.matches,m=>{const b=[],w=t.ssr?.manifest;return w&&m.forEach(x=>{w.routes[x.routeId]?.preloads?.forEach(S=>{b.push({tag:"link",attrs:{...lL(w,S,e),nonce:n}})})}),b},Ln),f=Lt(t.stores.matches,m=>m.flatMap(b=>b.styles??[]).filter(b=>b!==void 0).map(({children:b,...w})=>({tag:"style",attrs:{...w,nonce:n},children:b})),Ln),h=Lt(t.stores.matches,m=>m.flatMap(b=>b.headScripts??[]).filter(b=>b!==void 0).map(({children:b,...w})=>({tag:"script",attrs:{...w,nonce:n},children:b})),Ln),p=[];return Ef(p,i),p.push(...u),Ef(p,o),p.push(...l),Ef(p,f),Ef(p,h),p};function dB(e){const t=uB(e.assetCrossOrigin),n=wn().options.ssr?.nonce;return y.jsx(y.Fragment,{children:t.map(s=>E.createElement(SR,{...s,key:`tsr-meta-${JSON.stringify(s)}`,nonce:n}))})}var fB=()=>{const e=wn(),t=e.options.ssr?.nonce,n=o=>{const l=[],u=e.ssr?.manifest;if(!u)return[];for(const f of o){const h=u.routes[f.routeId]?.scripts;if(h)for(const p of h)l.push({tag:"script",attrs:{...p.attrs,nonce:t},children:p.children,...typeof p.attrs?.src=="string"?{preventScriptHoist:!0}:{}})}return l},s=o=>o.map(l=>
12l.scripts).flat(1).filter(Boolean).map(({children:l,...u})=>({tag:"script",attrs:{...u,suppressHydrationWarning:!0,nonce:t},children:l})),i=Lt(e.stores.matches,n,Ln);return hB(e,Lt(e.stores.matches,s,Ln),i)};function hB(e,t,n){const s=[...t,...n];return y.jsx(y.Fragment,{children:s.map((i,o)=>E.createElement(SR,{...i,key:`tsr-scripts-${i.tag}-${o}`}))})}var _l=(e,t)=>{const n={type:"request",...t||e},s=i=>_l({},Object.assign(n,{validator:i,inputValidator:i}));return{options:n,middleware:i=>_l({},Object.assign(n,{middleware:i})),validator:s,inputValidator:s,client:i=>_l({},Object.assign(n,{client:i})),server:i=>_l({},Object.assign(n,{server:i}))}};function _R(e,t){for(let n=0,s=t.length;n<s;n++){const i=t[n];e.has(i)||(e.add(i),i.extends&&_R(e,i.extends))}}var pB=e=>({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const n=new Set;_R(n,t.serializationAdapters),t.serializationAdapters=Array.from(n)}return t},createMiddleware:_l});const mB=_l(),_A=pB(()=>({requestMiddleware:[mB]}));var Cp=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gB=class extends Cp{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},kR=new gB,yB={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},vB=class{#e=yB;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Nv=new vB;function bB(e){setTimeout(e,0)}var wB=typeof window>"u"||"Deno"in globalThis;function Ks(){}function xB(e,t){return typeof e=="function"?e(t):e}function SB(e){return typeof e=="number"&&e>=0&&e!==1/0}function _B(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Iv(e,t){return typeof e=="function"?e(t):e}function kB(e,t){return typeof e=="function"?e(t):e}function kA(e,t){const{type:n="all",exact:s,fetchStatus:i,predicate:o,queryKey:l,stale:u}=e;if(l){if(s){if(t.queryHash!==lw(l,t.options))return!1}else if(!_u(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function AA(e,t){const{exact:n,status:s,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Su(t.options.mutationKey)!==Su(o))return!1}else if(!_u(t.options.mutationKey,o))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function lw(e,t){return(t?.queryKeyHashFn||Su)(e)}function Su(e){return JSON.stringify(e,(t,n)=>Pv(n)?Object.keys(n).sort().reduce((s,i)=>(s[i]=n[i],s),{}):n)}function _u(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>_u(e[n],t[n])):!1}var AB=Object.prototype.hasOwnProperty;function AR(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=CA(e)&&CA(t);if(!s&&!(Pv(e)&&Pv(t)))return t;const o=(s?e:Object.keys(e)).length,l=s?t:Object.keys(t),u=l.length,f=s?new Array(u):{};let h=0;for(let p=0;p<u;p++){const m=s?p:l[p],b=e[m],w=t[m];if(b===w){f[m]=b,(s?p<o:AB.call(e,m))&&h++;continue}if(b===null||w===null||typeof b!="object"||typeof w!="object"){f[m]=w;continue}const x=AR(b,w,n+1);f[m]=x,x===b&&h++}return o===u&&h===o?e:f}function CA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pv(e){if(!EA(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!EA(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function EA(e){return Object.prototype.toString.call(e)==="[object Object]"}function CB(e){return new Promise(t=>{Nv.setTimeout(t,e)})}function EB(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?AR(e,t):t}function TB(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function RB(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var cw=Symbol();function CR(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===cw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function OB(e,t,n){let s=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),s||(s=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var ER=(()=>{let e=()=>wB;return{isServer(){return e()},setIsServer(t){e=t}}})();function jB(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function s(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{s({status:"fulfilled",value:i}),e(i)},n.reject=i=>{s({status:"rejected",reason:i}),t(i)},n}var NB=bB;function IB(){let e=[],t=0,n=u=>{u()},s=u=>{u()},i=NB;const o=u=>{t?e.push(u):i(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&i(()=>{s(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||l()}return f},batchCalls:u=>(...f)=>{o(()=>{u(...f)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{s=u},setScheduler:u=>{i=u}}}var Bn=IB(),PB=class extends Cp{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n
vendor: 19,494 bytes, line 12
12)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},jh=new PB;function MB(e){return Math.min(1e3*2**e,3e4)}function TR(e){return(e??"online")==="online"?jh.isOnline():!0}var Mv=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function RR(e){let t=!1,n=0,s;const i=jB(),o=()=>i.status!=="pending",l=S=>{if(!o()){const _=new Mv(S);b(_),e.onCancel?.(_)}},u=()=>{t=!0},f=()=>{t=!1},h=()=>kR.isFocused()&&(e.networkMode==="always"||jh.isOnline())&&e.canRun(),p=()=>TR(e.networkMode)&&e.canRun(),m=S=>{o()||(s?.(),i.resolve(S))},b=S=>{o()||(s?.(),i.reject(S))},w=()=>new Promise(S=>{s=_=>{(o()||h())&&S(_)},e.onPause?.()}).then(()=>{s=void 0,o()||e.onContinue?.()}),x=()=>{if(o())return;let S;const _=n===0?e.initialPromise:void 0;try{S=_??e.fn()}catch(k){S=Promise.reject(k)}Promise.resolve(S).then(m).catch(k=>{if(o())return;const C=e.retry??(ER.isServer()?0:3),R=e.retryDelay??MB,O=typeof R=="function"?R(n,k):R,N=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,k);if(t||!N){b(k);return}n++,e.onFail?.(n,k),CB(O).then(()=>h()?void 0:w()).then(()=>{t?b(k):x()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(s?.(),i),cancelRetry:u,continueRetry:f,canStart:p,start:()=>(p()?x():w().then(x),i)}}var OR=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),SB(this.gcTime)&&(this.#e=Nv.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ER.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Nv.clearTimeout(this.#e),this.#e=void 0)}};function DB(e){return{onFetch:(t,n)=>{const s=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},f=0;const h=async()=>{let p=!1;const m=x=>{OB(x,()=>t.signal,()=>p=!0)},b=CR(t.options,t.fetchOptions),w=async(x,S,_)=>{if(p)return Promise.reject(t.signal.reason);if(S==null&&x.pages.length)return Promise.resolve(x);const C=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return m(P),P})(),R=await b(C),{maxPages:O}=t.options,N=_?RB:TB;return{pages:N(x.pages,R,O),pageParams:N(x.pageParams,S,O)}};if(i&&o.length){const x=i==="backward",S=x?LB:TA,_={pages:o,pageParams:l},k=S(s,_);u=await w(_,k,x)}else{const x=e??o.length;do{const S=f===0?l[0]??s.initialPageParam:TA(s,u);if(f>0&&S==null)break;u=await w(u,S),f++}while(f<x)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function TA(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function LB(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var BB=class extends OR{#e;#t;#n;#r;#i;#s;#l;#a;constructor(e){super(),this.#a=!1,this.#l=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=OA(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#l,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=OA(this.options);t.data!==void 0&&(this.setState(RA(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=EB(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#o({type:"setState",state:e})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(Ks).catch(Ks):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>kB(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cw||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Iv(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!_B(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#a||this.#c()?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},i=()=>{const f=CR(this.options,t),p=(()=>{const m={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(m),m})();return this.#a=!1,this.options.persister?this.options.persister(f,p,this):f(p)},l=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return s(f),f})();(this.#e==="infinite"?DB(this.options.pages):this.options.behavior)?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#s=RR({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:f=>{f instanceof Mv&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(f,h)=>{this.#o({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const f=await this.#s.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#r.config.onSuccess?.(f,this),this.#r.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Mv){if(f.silent)return this.#s.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#r.config.onError?.(f,this),this.#r.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...UB(n.data,this.options),fetchMeta:e.meta??null};case"success":const s={...n,...RA(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Bn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function UB(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:TR(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RA(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function OA(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var zB=class extends OR{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||VB(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=RR({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,l)=>{this.#i({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",i=!this.#r.canStart();try{if(s)t();else{this.#i({type:"pending",variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#i({type:"pending",context:l,variables:e,isPaused:i})}const o=await this.#r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:"success",data:o}),o}catch(o){try{await this.#n.config.onError?.(o,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(o,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#i({type:"error",error:o}),o}finally{this.#n.runNext(this)}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Bn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function VB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $B=class extends Cp{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const s=new zB({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(s),s}add(e){this.#e.add(e);const t=Of(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Of(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const s=n.indexOf(e);s!==-1&&n.splice(s,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Of(e);if(typeof t=="string"){const s=this.#t.get(t)?.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){const t=Of(e);return typeof t=="string"?this.#t.get(t)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Bn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>AA(t,n))}findAll(e={}){return this.getAll().filter(t=>AA(e,t))}notify(e){Bn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Bn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ks))))}};function Of(e){return e.options.scope?.id}var FB=class extends Cp{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const s=t.queryKey,i=t.queryHash??lw(s,t);let o=this.get(i);return o||(o=new BB({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Bn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>kA(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>kA(e,n)):t}notify(e){Bn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Bn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Bn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},HB=class{#e;#t;#n;#r;#i;#s;#l;#a;constructor(e={}){this.#e=e.queryCache||new FB,this.#t=e.mutationCache||new $B,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#l=kR.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=jh.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#l?.(),this.#l=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Iv(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(s.queryHash)?.state.data,l=xB(t,o);if(l!==void 0)return this.#e.build(this,s).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Bn.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Bn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Bn.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=Bn.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(s).then(Ks).catch(Ks)}invalidateQueries(e,t={}){return Bn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=Bn.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ks)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(s).then(Ks)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Iv(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ks).catch(Ks)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ks).catch(Ks)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return jh.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Su(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(s=>{_u(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Su(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(s=>{_u(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cw&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},qB=E.createContext(void 0),WB=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(qB.Provider,{value:e,children:t}));const GB="/assets/styles-CneDSUM8.css";const jR=(...e)=>
vendor: 6,361 bytes, line 12
12e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();const KB=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const YB=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());const jA=e=>{const t=YB(e);return t.charAt(0).toUpperCase()+t.slice(1)};var ZB={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const XB=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const JB=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:o,iconNode:l,...u},f)=>E.createElement("svg",{ref:f,...ZB,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:jR("lucide",i),...!o&&!XB(u)&&{"aria-hidden":"true"},...u},[...l.map(([h,p])=>E.createElement(h,p)),...Array.isArray(o)?o:[o]]));const $e=(e,t)=>{const n=E.forwardRef(({className:s,...i},o)=>E.createElement(JB,{ref:o,iconNode:t,className:jR(`lucide-${KB(jA(e))}`,`lucide-${e}`,s),...i}));return n.displayName=jA(e),n};const QB=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Pn=$e("arrow-right",QB);const eU=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],ys=$e("arrow-up-right",eU);const tU=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],nU=$e("arrow-up",tU);const sU=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],NA=$e("book-open",sU);const rU=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],NR=$e("bot",rU);const iU=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],aU=$e("briefcase",iU);const oU=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],IA=$e("building-2",oU);const lU=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],cU=$e("chart-column",lU);const uU=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ep=$e("check",uU);const dU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],uw=$e("chevron-down",dU);const fU=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],hU=$e("chevron-up",fU);const pU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],mU=$e("circle-check",pU);const gU=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],yU=$e("code-xml",gU);const vU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],bU=$e("compass",vU);const wU=[["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"}]],IR=$e("database",wU);const xU=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],SU=$e("facebook",xU);const _U=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z",key:"1iv0i2"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],kU=$e("factory",_U);const AU=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],CU=$e("graduation-cap",AU);const EU=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],TU=$e("handshake",EU);const RU=[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]],OU=$e("hard-hat",RU);const jU=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],NU=$e("instagram",jU);const IU=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],PU=$e("layers",IU);const MU=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],PR=$e("layout-dashboard",MU);const DU=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],LU=$e("linkedin",DU);const BU=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ja=$e("loader-circle",BU);const UU=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}
12],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],MR=$e("log-in",UU);const zU=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Dv=$e("mail",zU);const VU=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],$U=$e("menu",VU);const FU=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],HU=$e("message-circle",FU);const qU=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],WU=$e("phone",qU);const GU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Lv=$e("plus",GU);const KU=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],YU=$e("presentation",KU);const ZU=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["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-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],XU=$e("rocket",ZU);const JU=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]],QU=$e("scale",JU);const ez=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],DR=$e("search",ez);const tz=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],nz=$e("send",tz);const sz=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],rz=$e("shield",sz);const iz=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
12],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],LR=$e("sparkles",iz);const az=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],oz=$e("trending-up",az);const lz=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],cz=$e("truck",lz);const uz=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],dw=$e("users",uz);const dz=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],BR=$e("wand-sparkles",dz);const fz=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],hz=$e("wrench",fz);const pz=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qr=$e("x",pz);const mz=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],gz=$e("youtube",mz);function Pt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function PA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yz(...e){return t=>{let n=!1;const s=e.map(i=>{const o=PA(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():PA(e[i],null)}}}}function Zt(...e){return E.useCallback(yz(...e),e)}function Tp(e,t=[]){let n=[];function s(o,l){const u=E.createContext(l);u.displayName=o+"Context";const f=n.length;n=[...n,l];const h=m=>{const{scope:b,children:w,...x}=m,S=b?.[e]?.[f]||u,_=E.useMemo(()=>x,Object.values(x));return y.jsx(S.Provider,{value:_,children:w})};h.displayName=o+"Provider";function p(m,b){const w=b?.[e]?.[f]||u,x=E.useContext(w);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[h,p]}const i=()=>{const o=n.map(l=>E.createContext(l));return function(u){const f=u?.[e]||o;return E.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return i.scopeName=e,[s,vz(i,...t)]}function vz(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=s.reduce((u,{useScope:f,scopeName:h})=>{const m=f(o)[`__scope${h}`];return{...u,...m}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var bn=globalThis?.document?E.useLayoutEffect:()=>{},bz=Hu[" useId ".trim().toString()]||(()=>{}),wz=0;function jl(e){const[t,n]=E.useState(bz());return bn(()=>{n(s=>s??String(wz++))},[e]),e||(t?`radix-${t}`:"")}var MA=Hu[" useEffectEvent ".trim().toString()],DA=Hu[" useInsertionEffect ".trim().toString()];function xz(e){if(typeof MA=="function")return MA(e);const t=E.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof DA=="function"?DA(()=>{t.current=e}):bn(()=>{t.current=e}),E.useMemo(()=>((...n)=>t.current?.(...n)),[])}var Sz=Hu[" useInsertionEffect ".trim().toString()]||bn;function Bv({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[i,o,l]=_z({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:i;{const p=E.useRef(e!==void 0);E.useEffect(()=>{const m=p.current;m!==u&&console.warn(`${s} is changing from ${m?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=u},[u,s])}const h=E.useCallback(p=>{if(u){const m=kz(p)?p(e):p;m!==e&&l.current?.(m)}else o(p)},[u,e,o,l]);return[f,h]}function _z({defaultProp:e,onChange:t}){const[n,s]=E.useState(e),i=E.useRef(n),o=E.useRef(t);return Sz(()=>{o.current=t},[t]),E.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,s,o]}function kz(e){return typeof e=="function"}function ku(e){const t=E.forwardRef((n,s)=>{let{children:i,...o}=n,l=null,u=!1;const f=[];LA(i)&&typeof jf=="function"&&(i=jf(i._payload)),E.Children.forEac
12h(i,b=>{if(Rz(b)){u=!0;const w=b;let x="child"in w.props?w.props.child:w.props.children;LA(x)&&typeof jf=="function"&&(x=jf(x._payload)),l=Cz(w,x),f.push(l?.props?.children)}else f.push(b)}),l?l=E.cloneElement(l,void 0,f):!u&&E.Children.count(i)===1&&E.isValidElement(i)&&(l=i);const h=l?Tz(l):void 0,p=Zt(s,h);if(!l){if(i||i===0)throw new Error(u?Iz(e):Nz(e));return i}const m=Ez(o,l.props??{});return l.type!==E.Fragment&&(m.ref=s?p:h),E.cloneElement(l,m)});return t.displayName=`${e}.Slot`,t}var Az=Symbol.for("radix.slottable"),Cz=(e,t)=>{if("child"in e.props){const n=e.props.child;return E.isValidElement(n)?E.cloneElement(n,void 0,e.props.children(n.props.children)):null}return E.isValidElement(t)?t:null};function Ez(e,t){const n={...t};for(const s in t){const i=e[s],o=t[s];/^on[A-Z]/.test(s)?i&&o?n[s]=(...u)=>{const f=o(...u);return i(...u),f}:i&&(n[s]=i):s==="style"?n[s]={...i,...o}:s==="className"&&(n[s]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Tz(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Rz(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Az}var Oz=Symbol.for("react.lazy");function LA(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Oz&&"_payload"in e&&jz(e._payload)}function jz(e){return typeof e=="object"&&e!==null&&"then"in e}var Nz=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Iz=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,jf=Hu[" use ".trim().toString()],Pz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jt=Pz.reduce((e,t)=>{const n=ku(`Primitive.${t}`),s=E.forwardRef((i,o)=>{const{asChild:l,...u}=i,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(f,{...u,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function Mz(e,t){e&&co.flushSync(()=>e.dispatchEvent(t))}function Wi(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>((...n)=>t.current?.(...n)),[])}var Dz="DismissableLayer",Uv="dismissableLayer.update",Lz="dismissableLayer.pointerDownOutside",Bz="dismissableLayer.focusOutside",BA,fw=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),hw=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:u,onDismiss:f,...h}=e,p=E.useContext(fw),[m,b]=E.useState(null),w=m?.ownerDocument??globalThis?.document,[,x]=E.useState({}),S=Zt(t,b),_=Array.from(p.layers),[k]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=_.indexOf(k),R=m?_.indexOf(m):-1,O=p.layersWithOutsidePointerEventsDisabled.size>0,N=R>=C,P=E.useRef(!1),D=$z(Y=>{const X=Y.target;if(!(X instanceof Node))return;const ae=[...p.branches].some(oe=>oe.contains(X));!N||ae||(o?.(Y),u?.(Y),Y.defaultPrevented||f?.())},{ownerDocument:w,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:p.dismissableSurfaces}),M=Fz(Y=>{if(s&&P.current)return;const X=Y.target;[...p.branches].some(oe=>oe.contains(X))||(l?.(Y),u?.(Y),Y.defaultPrevented||f?.())},w),$=m?R===_.length-1:!1,K=xz(Y=>{Y.key==="Escape"&&(i?.(Y),!Y.defaultPrevented&&f&&(Y.preventDefault(),f()))});return E.useEffect(()=>{if($)return w.addEventListener("keydown",K,{capture:!0}),()=>w.removeEventListener("keydown",K,{capture:!0})},[w,$]),E.useEffect(()=>{if(m)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(BA=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),UA(),()=>{n&&(p.layersWithOutsidePointerEventsDisabled.delete(m),p.layersWithOutsidePointerEventsDisabled.size===0&&(w.body.style.pointerEvents=BA))}},[m,w,n,p]),E.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),UA())},[m,p]),E.useEffect(()=>{const Y=()=>x({});return document.addEventListener(Uv,Y),()=>document.removeEventListener(Uv,Y)},[]),y.jsx(jt.div,{...h,ref:S,style:{pointerEvents:O?N?"auto":"none":void 0,...e.style},onFocusCapture:Pt(e.onFocusCapture,M.onFocusCapture),onBlurCapture:Pt(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Pt(e.onPointerDownCapture,D.onPointerDownCapture)})});hw.displayName=Dz;
12var Uz="DismissableLayerBranch",zz=E.forwardRef((e,t)=>{const n=E.useContext(fw),s=E.useRef(null),i=Zt(t,s);return E.useEffect(()=>{const o=s.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y.jsx(jt.div,{...e,ref:i})});zz.displayName=Uz;function Vz(){const e=E.useContext(fw),[t,n]=E.useState(null);return E.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function $z(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:s=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:o}=t,l=Wi(e),u=E.useRef(!1),f=E.useRef(!1),h=E.useRef(new Map),p=E.useRef(()=>{});return E.useEffect(()=>{function m(){f.current=!1,i.current=!1,h.current.clear()}function b(){return Array.from(h.current.values()).some(Boolean)}function w(C){if(!f.current)return;const R=C.target;R instanceof Node&&[...o].some(N=>N.contains(R))||h.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{f.current&&p.current()},0)}function x(C){f.current&&h.current.set(C.type,!1)}const S=C=>{if(C.target&&!u.current){let R=function(){n.removeEventListener("click",p.current);const N=b();m(),N||UR(Lz,l,O,{discrete:!0})};const O={originalEvent:C};f.current=!0,i.current=s&&C.button===0,h.current.clear(),!s||C.button!==0?R():(n.removeEventListener("click",p.current),p.current=R,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),m();u.current=!1},_=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of _)n.addEventListener(C,w,!0),n.addEventListener(C,x);const k=window.setTimeout(()=>{n.addEventListener("pointerdown",S)},0);return()=>{window.clearTimeout(k),n.removeEventListener("pointerdown",S),n.removeEventListener("click",p.current);for(const C of _)n.removeEventListener(C,w,!0),n.removeEventListener(C,x)}},[n,l,s,i,o]),{onPointerDownCapture:()=>u.current=!0}}function Fz(e,t=globalThis?.document){const n=Wi(e),s=E.useRef(!1);return E.useEffect(()=>{const i=o=>{o.target&&!s.current&&UR(Bz,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function UA(){const e=new CustomEvent(Uv);document.dispatchEvent(e)}function UR(e,t,n,{discrete:s}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),s?Mz(i,o):i.dispatchEvent(o)}var Iy="focusScope.autoFocusOnMount",Py="focusScope.autoFocusOnUnmount",zA={bubbles:!1,cancelable:!0},Hz="FocusScope",pw=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=e,[u,f]=E.useState(null),h=Wi(i),p=Wi(o),m=E.useRef(null),b=Zt(t,f),w=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(s){let S=function(R){if(w.paused||!u)return;const O=R.target;u.contains(O)?m.current=O:Ii(m.current,{select:!0})},_=function(R){if(w.paused||!u)return;const O=R.relatedTarget;O!==null&&(u.contains(O)||Ii(m.current,{select:!0}))},k=function(R){if(document.activeElement===document.body)for(const N of R)N.removedNodes.length>0&&Ii(u)};document.addEventListener("focusin",S),document.addEventListener("focusout",_);const C=new MutationObserver(k);return u&&C.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",_),C.disconnect()}}},[s,u,w.paused]),E.useEffect(()=>{if(u){$A.add(w);const S=document.activeElement;if(!u.contains(S)){const k=new CustomEvent(Iy,zA);u.addEventListener(Iy,h),u.dispatchEvent(k),k.defaultPrevented||(qz(Zz(zR(u)),{select:!0}),document.activeElement===S&&Ii(u))}return()=>{u.removeEventListener(Iy,h),setTimeout(()=>{const k=new CustomEvent(Py,zA);u.addEventListener(Py,p),u.dispatchEvent(k),k.defaultPrevented||Ii(S??document.body,{select:!0}),u.removeEventListener(Py,p),$A.remove(w)},0)}}},[u,h,p,w]);const x=E.useCallback(S=>{if(!n&&!s||w.paused)return;const _=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,k=document.activeElement;if(_&&k){const C=S.currentTarget,[R,O]=Wz(C);R&&O?!S.shiftKey&&k===O?(S.preventDefault(),n&&Ii(R,{select:!0})):S.shiftKey&&k===R&&(S.preventDefault(),n&&Ii(O,{select:!0})):k===C&&S.preventDefault()}},[n,s,w.paused]);return y.jsx(jt.div,{tabIndex:-1,...l,ref:b,onKeyDown:x})});pw.displayName=Hz;function qz(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Ii(s,{select:t}),document.activeElement!==n)return}function Wz(e){const t=zR(e),n=VA(t,e),s=VA(t.reverse(),e);return[n,s]}function zR(e){const t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}function VA(e,t){for(const n of e)if(!Gz(n,{upTo:t}))return n}function Gz(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 Kz(e){return e instanceof HTMLInputElement&&"select"in e}function Ii(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Kz(e)&&t&&e.select()}}var $A=Yz();function Yz(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=FA(e,t),e.unshift(t)},remove(t){e=FA(e,t),e[0]?.resume()}}}function FA(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function Zz(e){return e.filter(t=>t.tagName!=="A")}var Xz="Portal",mw=E.forwardRef((e,t)=>
12{const{container:n,...s}=e,[i,o]=E.useState(!1);bn(()=>o(!0),[]);const l=n||i&&globalThis?.document?.body;return l?co.createPortal(y.jsx(jt.div,{...s,ref:t}),l):null});mw.displayName=Xz;function Jz(e,t){return E.useReducer((n,s)=>t[n][s]??n,e)}var Gu=e=>{const{present:t,children:n}=e,s=Qz(t),i=typeof n=="function"?n({present:s.isPresent}):E.Children.only(n),o=eV(s.ref,tV(i));return typeof n=="function"||s.isPresent?E.cloneElement(i,{ref:o}):null};Gu.displayName="Presence";function Qz(e){const[t,n]=E.useState(),s=E.useRef(null),i=E.useRef(e),o=E.useRef("none"),l=e?"mounted":"unmounted",[u,f]=Jz(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const h=Nf(s.current);o.current=u==="mounted"?h:"none"},[u]),bn(()=>{const h=s.current,p=i.current;if(p!==e){const b=o.current,w=Nf(h);e?f("MOUNT"):w==="none"||h?.display==="none"?f("UNMOUNT"):f(p&&b!==w?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),bn(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,m=w=>{const S=Nf(s.current).includes(CSS.escape(w.animationName));if(w.target===t&&S&&(f("ANIMATION_END"),!i.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},b=w=>{w.target===t&&(o.current=Nf(s.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(h),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:E.useCallback(h=>{s.current=h?getComputedStyle(h):null,n(h)},[])}}function HA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function eV(...e){const t=E.useRef(e);return t.current=e,E.useCallback(n=>{const s=t.current;let i=!1;const o=s.map(l=>{const u=HA(l,n);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let l=0;l<o.length;l++){const u=o[l];typeof u=="function"?u():HA(s[l],null)}}},[])}function Nf(e){return e?.animationName||"none"}function tV(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var If=0,sl=null;function VR(){E.useEffect(()=>{sl||(sl={start:qA(),end:qA()});const{start:e,end:t}=sl;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),If++,()=>{If===1&&(sl?.start.remove(),sl?.end.remove(),sl=null),If=Math.max(0,If-1)}},[])}function qA(){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 hr=function(){return hr=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},hr.apply(this,arguments)};function $l(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[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])&&(n[s[i]]=e[s[i]]);return n}function nV(e,t,n,s){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function u(p){try{h(s.next(p))}catch(m){l(m)}}function f(p){try{h(s.throw(p))}catch(m){l(m)}}function h(p){p.done?o(p.value):i(p.value).then(u,f)}h((s=s.apply(e,t||[])).next())})}function sV(e,t,n){if(n||arguments.length===2)for(var s=0,i=t.length,o;s<i;s++)(o||!(s in t))&&(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))}var ch="right-scroll-bar-position",uh="width-before-scroll-bar",rV="with-scroll-bars-hidden",iV="--removed-body-scroll-bar-size";function My(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function aV(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var i=n.value;i!==s&&(n.value=s,n.callback(s,i))}}}})[0];return n.callback=t,n.facade}var oV=typeof window<"u"?E.useLayoutEffect:E.useEffect,WA=new WeakMap;function lV(e,t){var n=aV(null,function(s){return e.forEach(function(i){return My(i,s)})});return oV(function(){var s=WA.get(n);if(s){var i=new Set(s),o=new Set(e),l=n.current;
vendor: 4,196 bytes, lines 12-27
12i.forEach(function(u){o.has(u)||My(u,null)}),o.forEach(function(u){i.has(u)||My(u,l)})}WA.set(n,e)},[e]),n}function cV(e){return e}function uV(e,t){t===void 0&&(t=cV);var n=[],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 n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,s);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(o){for(s=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(u){return o(u)},filter:function(){return n}}},assignMedium:function(o){s=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(o),l=n}var f=function(){var p=l;l=[],p.forEach(o)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(p){l.push(p),h()},filter:function(p){return l=l.filter(p),n}}}};return i}function dV(e){e===void 0&&(e={});var t=uV(null);return t.options=hr({async:!0,ssr:!1},e),t}var $R=function(e){var t=e.sideCar,n=$l(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 E.createElement(s,hr({},n))};$R.isSideCarExport=!0;function fV(e,t){return e.useMedium(t),$R}var FR=dV(),Dy=function(){},Rp=E.forwardRef(function(e,t){var n=E.useRef(null),s=E.useState({onScrollCapture:Dy,onWheelCapture:Dy,onTouchMoveCapture:Dy}),i=s[0],o=s[1],l=e.forwardProps,u=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,m=e.shards,b=e.sideCar,w=e.noRelative,x=e.noIsolation,S=e.inert,_=e.allowPinchZoom,k=e.as,C=k===void 0?"div":k,R=e.gapMode,O=$l(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=b,P=lV([n,t]),D=hr(hr({},O),i);return E.createElement(E.Fragment,null,p&&E.createElement(N,{sideCar:FR,removeScrollBar:h,shards:m,noRelative:w,noIsolation:x,inert:S,setCallbacks:o,allowPinchZoom:!!_,lockRef:n,gapMode:R}),l?E.cloneElement(E.Children.only(u),hr(hr({},D),{ref:P})):E.createElement(C,hr({},D,{className:f,ref:P}),u))});Rp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rp.classNames={fullWidth:uh,zeroRight:ch};var hV=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pV(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hV();return t&&e.setAttribute("nonce",t),e}function mV(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gV(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yV=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pV())&&(mV(t,n),gV(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vV=function(){var e=yV();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},HR=function(){var e=vV(),t=function(n){var s=n.styles,i=n.dynamic;return e(s,i),null};return t},bV={left:0,top:0,right:0,gap:0},Ly=function(e){return parseInt(e||"",10)||0},wV=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Ly(n),Ly(s),Ly(i)]},xV=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bV;var t=wV(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},SV=HR(),Nl="data-scroll-locked",_V=function(e,t,n,s){var i=e.left,o=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
13  .`.concat(rV,` {
14   overflow: hidden `).concat(s,`;
15   padding-right: `).concat(u,"px ").concat(s,`;
16  }
17  body[`).concat(Nl,`] {
18    overflow: hidden `).concat(s,`;
19    overscroll-behavior: contain;
20    `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
21    padding-left: `.concat(i,`px;
22    padding-top: `).concat(o,`px;
23    padding-right: `).concat(l,`px;
24    margin-left:0;
25    margin-top:0;
26    margin-right: `).concat(u,"px ").concat(s,`;
27    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(s,";
27")].filter(Boolean).join(""),`
28  }
29  
30  .`).concat(ch,` {
31    right: `).concat(u,"px ").concat(s,`;
32  }
33  
34  .`).concat(uh,` {
35    margin-right: `).concat(u,"px ").concat(s,`;
36  }
37  
38  .`).concat(ch," .").concat(ch,` {
39    right: 0 `).concat(s,`;
40  }
41  
42  .`).concat(uh," .").concat(uh,` {
43    margin-right: 0 `).concat(s,`;
44  }
45  
46  body[`).concat(Nl,`] {
47    `).concat(iV,": ").concat(u,`px;
48  }
49`)},GA=function(){var e=parseInt(document.body.getAttribute(Nl)||"0",10);return isFinite(e)?e:0},kV=function(){E.useEffect(function(){return document.body.setAttribute(Nl,(GA()+1).toString()),function(){var e=GA()-1;e<=0?document.body.removeAttribute(Nl):document.body.setAttribute(Nl,e.toString())}},[])},AV=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,i=s===void 0?"margin":s;kV();var o=E.useMemo(function(){return xV(i)},[i]);return E.createElement(SV,{styles:_V(o,!t,i,n?"":"!important")})},zv=!1;if(typeof window<"u")try{var Pf=Object.defineProperty({},"passive",{get:function(){return zv=!0,!0}});window.addEventListener("test",Pf,Pf),window.removeEventListener("test",Pf,Pf)}catch{zv=!1}var rl=zv?{passive:!1}:!1,CV=function(e){return e.tagName==="TEXTAREA"},qR=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!CV(e)&&n[t]==="visible")},EV=function(e){return qR(e,"overflowY")},TV=function(e){return qR(e,"overflowX")},KA=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var i=WR(e,s);if(i){var o=GR(e,s),l=o[1],u=o[2];if(l>u)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},RV=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},OV=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},WR=function(e,t){return e==="v"?EV(t):TV(t)},GR=function(e,t){return e==="v"?RV(t):OV(t)},jV=function(e,t){return e==="h"&&t==="rtl"?-1:1},NV=function(e,t,n,s,i){var o=jV(e,window.getComputedStyle(t).direction),l=o*s,u=n.target,f=t.contains(u),h=!1,p=l>0,m=0,b=0;do{if(!u)break;var w=GR(e,u),x=w[0],S=w[1],_=w[2],k=S-_-o*x;(x||k)&&WR(e,u)&&(m+=k,b+=x);var C=u.parentNode;u=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(p&&Math.abs(m)<1||!p&&Math.abs(b)<1)&&(h=!0),h},Mf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},YA=function(e){return[e.deltaX,e.deltaY]},ZA=function(e){return e&&"current"in e?e.current:e},IV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PV=function(e){return`
50  .block-interactivity-`.concat(e,` {pointer-events: none;}
51  .allow-interactivity-`).concat(e,` {pointer-events: all;}
52`)},MV=0,il=[];function DV(e){var t=E.useRef([]),n=E.useRef([0,0]),s=E.useRef(),i=E.useState(MV++)[0],o=E.useState(HR)[0],l=E.useRef(e);E.useEffect(function(){l.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=sV([e.lockRef.current],(e.shards||[]).map(ZA),!0).filter(Boolean);return S.forEach(function(_){return _.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=E.useCallback(function(S,_){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var k=Mf(S),C=n.current,R="deltaX"in S?S.deltaX:C[0]-k[0],O="deltaY"in S?S.deltaY:C[1]-k[1],N,P=S.target,D=Math.abs(R)>Math.abs(O)?"h":"v";if("touches"in S&&D==="h"&&P.type==="range")return!1;var M=window.getSelection(),$=M&&M.anchorNode,K=$?$===P||$.contains(P):!1;if(K)return!1;var Y=KA(D,P);if(!Y)return!0;if(Y?N=D:(N=D==="v"?"h":"v",Y=KA(D,P)),!Y)return!1;if(!s.current&&"changedTouches"in S&&(R||O)&&(s.current=N),!N)return!0;var X=s.current||N;return NV(X,_,S,X==="h"?R:O)},[]),f=E.useCallback(function(S){var _=S;if(!(!il.length||il[il.length-1]!==o)){var k="deltaY"in _?YA(_):Mf(_),C=t.current.filter(function(N){return N.name===_.type&&(N.target===_.target||_.target===N.shadowParent)&&IV(N.delta,k)})[0];if(C&&C.should){_.cancelable&&_.preventDefault();return}
vendor: 4,352 bytes, line 52
52if(!C){var R=(l.current.shards||[]).map(ZA).filter(Boolean).filter(function(N){return N.contains(_.target)}),O=R.length>0?u(_,R[0]):!l.current.noIsolation;O&&_.cancelable&&_.preventDefault()}}},[]),h=E.useCallback(function(S,_,k,C){var R={name:S,delta:_,target:k,should:C,shadowParent:LV(k)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(O){return O!==R})},1)},[]),p=E.useCallback(function(S){n.current=Mf(S),s.current=void 0},[]),m=E.useCallback(function(S){h(S.type,YA(S),S.target,u(S,e.lockRef.current))},[]),b=E.useCallback(function(S){h(S.type,Mf(S),S.target,u(S,e.lockRef.current))},[]);E.useEffect(function(){return il.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:b}),document.addEventListener("wheel",f,rl),document.addEventListener("touchmove",f,rl),document.addEventListener("touchstart",p,rl),function(){il=il.filter(function(S){return S!==o}),document.removeEventListener("wheel",f,rl),document.removeEventListener("touchmove",f,rl),document.removeEventListener("touchstart",p,rl)}},[]);var w=e.removeScrollBar,x=e.inert;return E.createElement(E.Fragment,null,x?E.createElement(o,{styles:PV(i)}):null,w?E.createElement(AV,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function LV(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const BV=fV(FR,DV);var gw=E.forwardRef(function(e,t){return E.createElement(Rp,hr({},e,{ref:t,sideCar:BV}))});gw.classNames=Rp.classNames;var UV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},al=new WeakMap,Df=new WeakMap,Lf={},By=0,KR=function(e){return e&&(e.host||KR(e.parentNode))},zV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=KR(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},VV=function(e,t,n,s){var i=zV(t,Array.isArray(e)?e:[e]);Lf[n]||(Lf[n]=new WeakMap);var o=Lf[n],l=[],u=new Set,f=new Set(i),h=function(m){!m||u.has(m)||(u.add(m),h(m.parentNode))};i.forEach(h);var p=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(b){if(u.has(b))p(b);else try{var w=b.getAttribute(s),x=w!==null&&w!=="false",S=(al.get(b)||0)+1,_=(o.get(b)||0)+1;al.set(b,S),o.set(b,_),l.push(b),S===1&&x&&Df.set(b,!0),_===1&&b.setAttribute(n,"true"),x||b.setAttribute(s,"true")}catch(k){console.error("aria-hidden: cannot operate on ",b,k)}})};return p(t),u.clear(),By++,function(){l.forEach(function(m){var b=al.get(m)-1,w=o.get(m)-1;al.set(m,b),o.set(m,w),b||(Df.has(m)||m.removeAttribute(s),Df.delete(m)),w||m.removeAttribute(n)}),By--,By||(al=new WeakMap,al=new WeakMap,Df=new WeakMap,Lf={})}},YR=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),i=UV(e);return i?(s.push.apply(s,Array.from(i.querySelectorAll("[aria-live], script"))),VV(s,i,n,"aria-hidden")):function(){return null}},Op="Dialog",[ZR]=Tp(Op),[$V,tr]=ZR(Op),Ku=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,u=E.useRef(null),f=E.useRef(null),[h,p]=Bv({prop:s,defaultProp:i??!1,onChange:o,caller:Op});return y.jsx($V,{scope:t,triggerRef:u,contentRef:f,contentId:jl(),titleId:jl(),descriptionId:jl(),open:h,onOpenChange:p,onOpenToggle:E.useCallback(()=>p(m=>!m),[p]),modal:l,children:n})};Ku.displayName=Op;var XR="DialogTrigger",FV=E.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=tr(XR,n),o=Zt(t,i.triggerRef);return y.jsx(jt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":vw(i.open),...s,ref:o,onClick:Pt(e.onClick,i.onOpenToggle)})});FV.displayName=XR;var yw="DialogPortal",[HV,JR]=ZR(yw,{forceMount:void 0}),Yu=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:i}=e,o=tr(yw,t);return y.jsx(HV,{scope:t,forceMount:n,children:E.Children.map(s,l=>y.jsx(Gu,{present:n||o.open,children:y.jsx(mw,{asChild:!0,container:i,children:l})}))})};Yu.displayName=yw;var Nh="DialogOverlay",Zu=E.forwardRef((e,t)=>{const n=JR(Nh,e.__scopeDialog),{forceMount:s=n.forceMount,...i}=e,o=tr(Nh,e.__scopeDialog);return o.modal?y.jsx(Gu,{present:s||o.open,children:y.jsx(WV,{...i,ref:t})}):null});Zu.displayName=Nh;var qV=ku("DialogOverlay.RemoveScroll"),WV=E.forwardRef((e,t)=>
52{const{__scopeDialog:n,...s}=e,i=tr(Nh,n),o=Vz(),l=Zt(t,o);return y.jsx(gw,{as:qV,allowPinchZoom:!0,shards:[i.contentRef],children:y.jsx(jt.div,{"data-state":vw(i.open),...s,ref:l,style:{pointerEvents:"auto",...s.style}})})}),Dl="DialogContent",Xu=E.forwardRef((e,t)=>{const n=JR(Dl,e.__scopeDialog),{forceMount:s=n.forceMount,...i}=e,o=tr(Dl,e.__scopeDialog);return y.jsx(Gu,{present:s||o.open,children:o.modal?y.jsx(GV,{...i,ref:t}):y.jsx(KV,{...i,ref:t})})});Xu.displayName=Dl;var GV=E.forwardRef((e,t)=>{const n=tr(Dl,e.__scopeDialog),s=E.useRef(null),i=Zt(t,n.contentRef,s);return E.useEffect(()=>{const o=s.current;if(o)return YR(o)},[]),y.jsx(QR,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Pt(e.onCloseAutoFocus,o=>{o.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Pt(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&o.preventDefault()}),onFocusOutside:Pt(e.onFocusOutside,o=>o.preventDefault())})}),KV=E.forwardRef((e,t)=>{const n=tr(Dl,e.__scopeDialog),s=E.useRef(!1),i=E.useRef(!1);return y.jsx(QR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(s.current||n.triggerRef.current?.focus(),o.preventDefault()),s.current=!1,i.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(s.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;n.triggerRef.current?.contains(l)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),QR=E.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=e,u=tr(Dl,n);return VR(),y.jsx(y.Fragment,{children:y.jsx(pw,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:i,onUnmountAutoFocus:o,children:y.jsx(hw,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":vw(u.open),...l,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})}),eO="DialogTitle",Ju=E.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=tr(eO,n);return y.jsx(jt.h2,{id:i.titleId,...s,ref:t})});Ju.displayName=eO;var tO="DialogDescription",YV=E.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=tr(tO,n);return y.jsx(jt.p,{id:i.descriptionId,...s,ref:t})});YV.displayName=tO;var nO="DialogClose",Qu=E.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=tr(nO,n);return y.jsx(jt.button,{type:"button",...s,ref:t,onClick:Pt(e.onClick,()=>i.onOpenChange(!1))})});Qu.displayName=nO;function vw(e){return e?"open":"closed"}var ed=e=>e.type==="checkbox",$a=e=>e instanceof Date,Tn=e=>e==null;const sO=e=>typeof e=="object";var Bt=e=>!Tn(e)&&!Array.isArray(e)&&sO(e)&&!$a(e),Vv=e=>Bt(e)&&e.target?ed(e.target)?e.target.checked:e.target.value:e,rO=(e,t)=>t.split(".").some((n,s,i)=>!isNaN(Number(n))&&e.has(i.slice(0,s).join("."))),iO=e=>{const t=e.constructor&&e.constructor.prototype;return Bt(t)&&t.hasOwnProperty("isPrototypeOf")},jp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function $t(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(jp&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Bt(e)&&iO(e)))return e;const s=n?[]:Object.create(Object.getPrototypeOf(e));for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=$t(e[i]));return s}const Mi={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Zs={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Hs={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},aO="root",oO=["__proto__","constructor","prototype"],ZV=/^\w*$/;var td=e=>ZV.test(e),Ot=e=>e===void 0;const XV=/[.[\]'"]/;var Np=e=>e.split(XV).filter(Boolean),me=(e,t,n)=>{if(!t||!Bt(e))return n;const s=td(t)?[t]:Np(t);if(s.some(o=>oO.includes(o)))return n;const i=s.reduce((o,l)=>Tn(o)?void 0:o[l],e);return Ot(i)||i===e?Ot(e[t])?n:e[t]:i},ds=e=>typeof e=="boolean",Nn=e=>typeof e=="function",gt=(e,t,n)=>{let s=-1;const i=td(t)?[t]:Np(t),o=i.length,l=o-1;for(;++s<o;){const u=i[s];let f=n;if(s!==l){const h=e[u];
vendor: 4,335 bytes, line 52
52f=Bt(h)||Array.isArray(h)?h:isNaN(+i[s+1])?{}:[]}if(oO.includes(u))return;e[u]=f,e=e[u]}};const lO=Be.createContext(null);lO.displayName="HookFormControlContext";const bw=()=>Be.useContext(lO);var cO=(e,t,n,s=!0)=>{const i={};for(const o in e)Object.defineProperty(i,o,{get:()=>{const l=o;return t._proxyFormState[l]!==Zs.all&&(t._proxyFormState[l]=!s||Zs.all),n&&(n[l]=!0),e[l]}});return i};const ww=jp?Be.useLayoutEffect:Be.useEffect;function JV(e){const t=bw(),{control:n=t,disabled:s,name:i,exact:o}=e||{},[l,u]=Be.useState(()=>({...n._formState,defaultValues:n._defaultValues})),f=Be.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ww(()=>n._subscribe({name:i,formState:f.current,exact:o,callback:h=>{!s&&u({...n._formState,...h,defaultValues:n._defaultValues})}}),[i,s,o]),Be.useEffect(()=>{f.current.isValid&&n._setValid(!0)},[n]),Be.useMemo(()=>cO(l,n,f.current,!1),[l,n])}var In=e=>typeof e=="string",$v=(e,t,n,s,i)=>In(e)?(s&&t.watch.add(e),me(n,e,i)):Array.isArray(e)?e.map(o=>(s&&t.watch.add(o),me(n,o))):(s&&(t.watchAll=!0),n),Fv=e=>Tn(e)||!sO(e);const XA=(e,t)=>t.length===0&&!Array.isArray(e)&&!iO(e);function fs(e,t,n=new WeakMap){if(e===t)return!0;if(Fv(e)||Fv(t))return Object.is(e,t);if($a(e)&&$a(t))return Object.is(e.getTime(),t.getTime());const s=Object.keys(e),i=Object.keys(t);if(s.length!==i.length)return!1;if(XA(e,s)||XA(t,i))return Object.is(e,t);if(!s.length&&Array.isArray(e)!==Array.isArray(t))return!1;const o=n.get(e);if(o&&o.has(t))return!0;if(o)o.add(t);else{const l=new WeakSet;l.add(t),n.set(e,l)}for(const l of s){const u=e[l];if(!(l in t))return!1;if(l!=="ref"){const f=t[l];if($a(u)&&$a(f)||(Bt(u)||Array.isArray(u))&&(Bt(f)||Array.isArray(f))?!fs(u,f,n):!Object.is(u,f))return!1}}return!0}function QV(e){const t=bw(),{control:n=t,name:s,defaultValue:i,disabled:o,exact:l,compute:u}=e||{},f=Be.useRef(i),h=Be.useRef(u),p=Be.useRef(void 0),m=Be.useRef(n),b=Be.useRef(s);h.current=u;const[w,x]=Be.useState(()=>{const O=n._getWatch(s,f.current);return h.current?h.current(O):O}),S=Be.useCallback(O=>{const N=$v(s,n._names,O||n._formValues,!1,f.current);return h.current?h.current(N):N},[n._formValues,n._names,s]),_=Be.useCallback(O=>{if(!o){const N=$v(s,n._names,O||n._formValues,!1,f.current);if(h.current){const P=h.current(N);fs(P,p.current)||(x(P),p.current=P)}else x(N)}},[n._formValues,n._names,o,s]);ww(()=>((m.current!==n||!fs(b.current,s))&&(m.current=n,b.current=s,_()),n._subscribe({name:s,formState:{values:!0},exact:l,callback:O=>{_(O.values)}})),[n,l,s,_]),Be.useEffect(()=>n._removeUnmounted());const k=m.current!==n,C=b.current,R=Be.useMemo(()=>{if(o)return null;const O=!k&&!fs(C,s);return k||O?S():null},[o,k,s,C,S]);return R!==null?R:w}function e6(e){const t=bw(),{name:n,disabled:s,control:i=t,shouldUnregister:o,defaultValue:l,exact:u=!0}=e,f=rO(i._names.array,n),h=Be.useMemo(()=>me(i._formValues,n,me(i._defaultValues,n,l)),[i,n,l]),p=QV({control:i,name:n,defaultValue:h,exact:u}),m=JV({control:i,name:n,exact:u}),b=Be.useRef(e),w=Be.useRef(null),x=Be.useRef(i.register(n,{...e.rules,value:p,...ds(e.disabled)?{disabled:e.disabled}:{}}));b.current=e;const S=Be.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!me(m.errors,n)},isDirty:{enumerable:!0,get:()=>!!me(m.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!me(m.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!me(m.validatingFields,n)},error:{enumerable:!0,get:()=>me(m.errors,n)}}),[m,n]),_=Be.useCallback(O=>{const N=Vv(O);return me(i._fields,n)||(x.current=i.register(n,{...b.current.rules,value:N})),x.current.onChange({target:{value:Vv(O),name:n},type:Mi.CHANGE})},[n,i]),k=Be.useCallback(()=>x.current.onBlur({target:{value:me(i._formValues,n),name:n},type:Mi.BLUR}),[n,i._formValues]),C=Be.useCallback(O=>{O&&(w.current={focus:()=>Nn(O.focus)&&O.focus(),select:()=>Nn(O.select)&&O.select(),setCustomValidity:P=>Nn(O.setCustomValidity)&&O.setCustomValidity(P),reportValidity:()=>Nn(O.reportValidity)&&O.reportValidity()});const N=me(i._fields,n);N&&N._f&&O&&(N._f.ref=w.current)},[i._fields,n]),R=Be.useMemo(()=>({name:n,value:p,...ds(s)||m.disabled?{disabled:m.disabled||s}:{},onChange:_,onBlur:k,ref:C}),[n,s,m.disabled,_,k,C,p]);return Be.useEffect(()=>{const O=i._options.shouldUnregister||o;
52i.register(n,{...b.current.rules,...ds(b.current.disabled)?{disabled:b.current.disabled}:{}});const N=(P,D)=>{const M=me(i._fields,P);M&&M._f&&(M._f.mount=D)};if(N(n,!0),O){const P=$t(me(o?i._defaultValues:i._options.values||i._defaultValues,n,me(i._options.defaultValues,n,b.current.defaultValue)));gt(i._defaultValues,n,P),Ot(me(i._formValues,n))&&gt(i._formValues,n,P)}if(!f&&i.register(n),w.current){const P=me(i._fields,n);P&&P._f&&(P._f.ref=w.current)}return()=>{(f?O&&!i._state.action:O)?i.unregister(n):N(n,!1)}},[n,i,f,o]),Be.useEffect(()=>{i._setDisabledField({disabled:s,name:n})},[s,n,i]),Be.useMemo(()=>({field:R,formState:m,fieldState:S}),[R,m,S])}const t6=e=>e.render(e6(e)),n6=Be.createContext(null);n6.displayName="HookFormContext";var xw=(e,t,n,s,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:i||!0}}:{},uO=e=>Array.isArray(e)?e.filter(Boolean):[],dh=e=>Array.isArray(e)?e:[e],JA=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}};function dO(e,t){const n={};for(const s in e)if(e.hasOwnProperty(s)){const i=e[s],o=t[s];if(i&&Bt(i)&&o){const l=dO(i,o);Bt(l)&&(n[s]=l)}else e[s]&&(n[s]=o)}return n}var Cn=e=>Bt(e)&&!Object.keys(e).length,Sw=e=>e.type==="file",Ih=e=>{if(!jp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},fO=e=>e.type==="select-multiple",_w=e=>e.type==="radio",s6=e=>_w(e)||ed(e),Uy=e=>Ih(e)&&e.isConnected;function r6(e,t){const n=t.slice(0,-1).length;let s=0;for(;s<n;){if(Tn(e)){e=void 0;break}e=e[t[s]],s++}return e}function i6(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ot(e[t]))return!1;return!0}function tn(e,t){if(In(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const n=Array.isArray(t)?t:td(t)?[t]:Np(t),s=n.length===1?e:r6(e,n),i=n.length-1,o=n[i];return s&&delete s[o],i!==0&&(Bt(s)&&Cn(s)||Array.isArray(s)&&i6(s))&&tn(e,n.slice(0,-1)),e}var a6=e=>{for(const t in e)if(Nn(e[t]))return!0;return!1};function hO(e){return Array.isArray(e)||Bt(e)&&!a6(e)}function Hv(e,t={}){for(const n in e){const s=e[n];hO(s)?(t[n]=Array.isArray(s)?[]:{},Hv(s,t[n])):Ot(s)||(t[n]=!0)}return t}function qv(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){const t=e.map(n=>qv(n));return t.some(n=>n!==void 0)?t:void 0}if(Bt(e)){const t={};for(const n in e){const s=qv(e[n]);Ot(s)||(t[n]=s)}return Object.keys(t).length?t:void 0}}}function Pa(e,t,n){n||(n=Hv(t));for(const s in e){const i=e[s];if(hO(i))Ot(t)||Fv(n[s])?n[s]=Hv(i,Array.isArray(i)?[]:{}):Pa(i,Tn(t)?{}:t[s],n[s]);else{const o=t[s];n[s]=!fs(i,o)}}return qv(n)||{}}const QA={value:!1,isValid:!1},e1={value:!0,isValid:!0};var pO=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ot(e[0].attributes.value)?Ot(e[0].value)||e[0].value===""?e1:{value:e[0].value,isValid:!0}:e1:QA}return QA},mO=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>Ot(e)?e:t?e===""?NaN:e&&+e:n&&In(e)?new Date(e):s?s(e):e;const t1={isValid:!1,value:null};var gO=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,t1):t1;function n1(e){const t=e.ref;return Sw(t)?t.files:_w(t)?gO(e.refs).value:fO(t)?[...t.selectedOptions].map(({value:n})=>n):ed(t)?pO(e.refs).value:mO(Ot(t.value)?e.ref.value:t.value,e)}var o6=(e,t,n,s)=>{const i={};for(const o of e){const l=me(t,o);l&&gt(i,o,l._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:s}},Ph=e=>e instanceof RegExp,Gc=e=>Ot(e)?e:Ph(e)?e.source:Bt(e)?Ph(e.value)?e.value.source:e.value:e,Bf=e=>({isOnSubmit:!e||e===Zs.onSubmit,isOnBlur:e===Zs.onBlur,isOnChange:e===Zs.onChange,isOnAll:e===Zs.all,isOnTouch:e===Zs.onTouched});const s1="AsyncFunction";var l6=e=>{if(!e||!e.validate)return!1;if(Nn(e.validate))return e.validate.constructor.name===s1;if(Bt(e.validate)){for(const t in e.validate)if(e.validate[t].constructor.name===s1)return!0}return!1},c6=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),zy=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(const s of t.watch)if(e.startsWith(s)&&e.charAt(s.length)===".")return!0;return!1};const iu=(e,t,n,s)=>{for(const i of n||Object.keys(e)){const o=me(e,i);if(o){const{_f:l,...u}=o;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],i)&&!s)return!0;
52if(l.ref&&t(l.ref,l.name)&&!s)return!0;if(iu(u,t))break}else if(Bt(u)&&iu(u,t))break}}};function r1(e,t,n){const s=me(e,n);if(s||td(n))return{error:s,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),l=me(t,o),u=me(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};if(u&&u.root&&u.root.type)return{name:`${o}.root`,error:u.root};i.pop()}return{name:n}}var u6=(e,t,n,s)=>{n(e);const{name:i,...o}=e,l=Object.keys(o);return!l.length||s&&l.length>=Object.keys(t).length||l.find(u=>t[u]===(!s||Zs.all))},d6=(e,t,n)=>!e||!t||e===t||dh(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s))),f6=(e,t,n,s,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?s.isOnBlur:i.isOnBlur)?!e:(n?s.isOnChange:i.isOnChange)?e:!0,h6=(e,t)=>!uO(me(e,t)).length&&tn(e,t),i1=(e,t,n)=>{const s=me(e,n),i=Array.isArray(s)?s:[];return gt(i,aO,t[n]),gt(e,n,i),e};function a1(e,t,n="validate"){if(In(e)||Array.isArray(e)&&e.every(In)||ds(e)&&!e)return{type:n,message:In(e)?e:"",ref:t}}var ol=e=>Bt(e)&&!Ph(e)?e:{value:e,message:""},o1=async(e,t,n,s,i,o)=>{const{ref:l,refs:u,required:f,maxLength:h,minLength:p,min:m,max:b,pattern:w,validate:x,name:S,valueAsNumber:_,mount:k}=e._f,C=me(n,S);if(!k||t.has(S))return{};const R=u?u[0]:l,O=X=>{if(i&&R.reportValidity){const ae=ds(X)?"":X||"";u?u.forEach(oe=>oe.setCustomValidity(ae)):R.setCustomValidity(ae),R.reportValidity()}},N={},P=_w(l),D=ed(l),M=P||D,$=(_||Sw(l))&&Ot(l.value)&&Ot(C)||Ih(l)&&l.value===""||C===""||Array.isArray(C)&&!C.length,K=xw.bind(null,S,s,N),Y=(X,ae,oe,be=Hs.maxLength,V=Hs.minLength)=>{const Q=X?ae:oe;N[S]={type:X?be:V,message:Q,ref:l,...K(X?be:V,Q)}};if(o?!Array.isArray(C)||!C.length:f&&(!M&&($||Tn(C))||ds(C)&&!C||D&&!pO(u).isValid||P&&!gO(u).isValid)){const{value:X,message:ae}=In(f)?{value:!!f,message:f}:ol(f);if(X&&(N[S]={type:Hs.required,message:ae,ref:R,...K(Hs.required,ae)},!s))return O(ae),N}if(!$&&(!Tn(m)||!Tn(b))){let X,ae;const oe=ol(b),be=ol(m);if(!Tn(C)&&!isNaN(C)){const V=l.valueAsNumber||C&&+C;Tn(oe.value)||(X=V>oe.value),Tn(be.value)||(ae=V<be.value)}else{const V=l.valueAsDate||new Date(C),Q=ie=>new Date(new Date().toDateString()+" "+ie),te=l.type=="time",pe=l.type=="week";In(oe.value)&&C&&(X=te?Q(C)>Q(oe.value):pe?C>oe.value:V>new Date(oe.value)),In(be.value)&&C&&(ae=te?Q(C)<Q(be.value):pe?C<be.value:V<new Date(be.value))}if((X||ae)&&(Y(!!X,oe.message,be.message,Hs.max,Hs.min),!s))return O(N[S].message),N}if((h||p)&&!$&&(In(C)||o&&Array.isArray(C))){const X=ol(h),ae=ol(p),oe=!Tn(X.value)&&C.length>+X.value,be=!Tn(ae.value)&&C.length<+ae.value;if((oe||be)&&(Y(oe,X.message,ae.message),!s))return O(N[S].message),N}if(w&&!$&&In(C)){const{value:X,message:ae}=ol(w);if(Ph(X)&&!C.match(X)&&(N[S]={type:Hs.pattern,message:ae,ref:l,...K(Hs.pattern,ae)},!s))return O(ae),N}if(x){if(Nn(x)){const X=await x(C,n),ae=a1(X,R);if(ae&&(N[S]={...ae,...K(Hs.validate,ae.message)},!s))return O(ae.message),N}else if(Bt(x)){let X={};for(const ae in x){if(!Cn(X)&&!s)break;const oe=a1(await x[ae](C,n),R,ae);oe&&(X={...oe,...K(ae,oe.message)},O(oe.message),s&&(N[S]=X))}if(!Cn(X)&&(N[S]={ref:R,...X},!s))return N}}return O(!0),N};const p6={mode:Zs.onSubmit,reValidateMode:Zs.onChange,shouldFocusError:!0},Vy="form",yO={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function m6(e={}){let t={...p6,...e},n={...$t(yO),isLoading:Nn(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},s={},i=Bt(t.defaultValues)||Bt(t.values)?$t(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:$t(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},f,h=0,p=0,m=Bf(t.mode),b=Bf(t.reValidateMode);const w={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={...w};let S={...x};const _={array:JA(),state:JA()},k=t.criteriaMode===Zs.all,C=L=>H=>{clearTimeout(h),h=setTimeout(L,H)},R=async L=>{if(!l.keepIsValid&&!t.disabled&&(x.isValid||S.isValid||L)){let H;t.resolver?(H=Cn((await ae()).errors),O()):H=await V({fields:s,onlyCheckValid:!0,eventType:Mi.VALID}),H!==n.isValid&&_.state.next({isValid:H})}},O=(L,H)=>{!t.disabled&&(x.isValidating||x.validatingFields||S.isValidating||S.validatingFields)&&((L||Array.from(u.mount)).forEac
52h(q=>{q&&(H?gt(n.validatingFields,q,H):tn(n.validatingFields,q))}),_.state.next({validatingFields:n.validatingFields,isValidating:!Cn(n.validatingFields)}))},N=()=>{n.dirtyFields=Pa(i,o)},P=(L,H=[],q,ce,le=!0,ve=!0)=>{if(ce&&q&&!t.disabled){if(l.action=!0,ve&&Array.isArray(me(s,L))){const ue=q(me(s,L),ce.argA,ce.argB);le&&gt(s,L,ue)}if(ve&&Array.isArray(me(n.errors,L))){const ue=q(me(n.errors,L),ce.argA,ce.argB);le&&gt(n.errors,L,ue),h6(n.errors,L)}if((x.touchedFields||S.touchedFields)&&ve&&Array.isArray(me(n.touchedFields,L))){const ue=q(me(n.touchedFields,L),ce.argA,ce.argB);le&&gt(n.touchedFields,L,ue)}(x.dirtyFields||S.dirtyFields)&&N(),_.state.next({name:L,isDirty:te(L,H),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else gt(o,L,H)},D=(L,H)=>{gt(n.errors,L,H),n.errors={...n.errors},_.state.next({errors:n.errors})},M=L=>{n.errors=L,_.state.next({errors:n.errors,isValid:!1})},$=L=>{const H=td(L)?[L]:Np(L);let q=o,ce=i;for(let le=0;le<H.length-1;le++){const ve=H[le];if(q=Tn(q)?q:q[ve],ce=Tn(ce)?ce:ce[ve],q===null&&ce!==null)return!0}return!1},K=(L,H,q,ce)=>{const le=me(s,L);if(le){if($(L))return;const ve=Ot(me(o,L)),ue=me(o,L,Ot(q)?me(i,L):q);Ot(ue)||ce&&ce.defaultChecked||H?gt(o,L,H?ue:n1(le._f)):B(L,ue),l.mount&&!l.action&&(R(),ve&&n.isDirty&&(x.isDirty||S.isDirty)&&(te()||(n.isDirty=!1,_.state.next({...n}))),e.shouldUnregister&&ve&&!Ot(me(o,L))&&zy(L,u)&&(l.watch=!0))}},Y=(L,H,q,ce,le)=>{let ve=!1,ue=!1;const Se={name:L};if(!t.disabled){if(!q||ce){const Ue=fs(me(i,L),H);(x.isDirty||S.isDirty)&&(ue=n.isDirty,n.isDirty=Se.isDirty=!Ue||te(),ve=ue!==Se.isDirty),ue=!!me(n.dirtyFields,L),Ue!==n.isDirty?n.dirtyFields=Pa(i,o):Ue?tn(n.dirtyFields,L):gt(n.dirtyFields,L,!0),Se.dirtyFields=n.dirtyFields,ve=ve||(x.dirtyFields||S.dirtyFields)&&ue!==!Ue}if(q){const Ue=me(n.touchedFields,L);Ue||(gt(n.touchedFields,L,q),Se.touchedFields=n.touchedFields,ve=ve||(x.touchedFields||S.touchedFields)&&Ue!==q)}ve&&le&&_.state.next(Se)}return ve?Se:{}},X=(L,H,q,ce)=>{const le=me(n.errors,L),ve=(x.isValid||S.isValid)&&ds(H)&&n.isValid!==H;if(t.delayError&&q?(f=C(()=>D(L,q)),f(t.delayError)):(clearTimeout(h),f=null,q?gt(n.errors,L,q):tn(n.errors,L),n.errors={...n.errors}),(q?!fs(le,q):le)||!Cn(ce)||ve){const ue={...ce,...ve&&ds(H)?{isValid:H}:{},errors:n.errors,name:L};n={...n,...ue},_.state.next(ue)}},ae=async L=>(O(L,!0),await t.resolver(o,t.context,o6(L||u.mount,s,t.criteriaMode,t.shouldUseNativeValidation))),oe=async L=>{const{errors:H}=await ae(L);if(O(L),L){for(const q of L){const ce=me(H,q);ce?u.array.has(q)&&Bt(ce)&&!Object.keys(ce).some(le=>!Number.isNaN(Number(le)))?i1(n.errors,{[q]:ce},q):gt(n.errors,q,ce):tn(n.errors,q)}n.errors={...n.errors}}else n.errors=H;return H},be=async({name:L,eventType:H})=>{if(e.validate){const q=await e.validate({formValues:o,formState:n,name:L,eventType:H});if(Bt(q))for(const ce in q){const le=q[ce];le&&Qe(`${Vy}.${ce}`,{message:In(le.message)?le.message:"",type:le.type||Hs.validate})}else In(q)||!q?Qe(Vy,{message:q||"",type:Hs.validate}):Ye(Vy);return q}return!0},V=async({fields:L,onlyCheckValid:H,name:q,eventType:ce,context:le={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(le.runRootValidation=!0,!await be({name:q,eventType:ce})&&(le.valid=!1,H)))return le.valid;for(const ve in L){const ue=L[ve];if(ue){const{_f:Se,...Ue}=ue;if(Se){const Tt=u.array.has(Se.name),pn=ue._f&&l6(ue._f),Ls=x.validatingFields||x.isValidating||S.validatingFields||S.isValidating;pn&&Ls&&O([Se.name],!0);const $n=await o1(ue,u.disabled,o,k,t.shouldUseNativeValidation&&!H,Tt);if(pn&&Ls&&O([Se.name]),$n[Se.name]&&(le.valid=!1,H)||(!H&&(me($n,Se.name)?Tt?i1(n.errors,$n,Se.name):gt(n.errors,Se.name,$n[Se.name]):tn(n.errors,Se.name)),e.shouldUseNativeValidation&&$n[Se.name]))break}!Cn(Ue)&&await V({context:le,onlyCheckValid:H,fields:Ue,name:ve,eventType:ce})}}return le.valid},Q=()=>{for(const L of u.unMount){const H=me(s,L);H&&(H._f.refs?H._f.refs.every(q=>!Uy(q)):!Uy(H._f.ref))&&Vn(L)}u.unMount=new Set},te=(L,H)=>!t.disabled&&(L&&H&&gt(o,L,H),!fs(l.mount?o:i,i)),pe=(L,H,q)=>$v(L,u,{...l.mount?o:Ot(H)?i:In(L)?{[L]:H}:H},q,H),ie=L=>uO(me(l.mount?o:i,L,t.shouldUnregister?me(i,L,[]):[])),B=(L,H,q={},ce=!1,le=!1)=>{const ve=me(s,L);let ue=H;if(ve){const Se=ve._f;Se&&(!Se.disabled&&gt(o,L,mO(H,Se)),ue=Ih(Se.ref)&&Tn(H)?"":H,fO(Se.ref)?[...Se.ref.options].forEac
52h(Ue=>Ue.selected=ue.includes(Ue.value)):Se.refs?ed(Se.ref)?Se.refs.forEach(Ue=>{(!Ue.defaultChecked||!Ue.disabled)&&(Array.isArray(ue)?Ue.checked=!!ue.find(Tt=>Tt===Ue.value):Ue.checked=ue===Ue.value||!!ue)}):Se.refs.forEach(Ue=>Ue.checked=Ue.value===ue):Sw(Se.ref)?Se.ref.value="":(Se.ref.value=ue,!Se.ref.type&&!le&&_.state.next({name:L,values:ce?o:$t(o)})))}(q.shouldDirty||q.shouldTouch)&&Y(L,ue,q.shouldTouch,q.shouldDirty,!le),q.shouldValidate&&Me(L)},ee=(L,H,q,ce=!1,le=!1)=>{for(const ve in H){if(!H.hasOwnProperty(ve))return;const ue=H[ve],Se=L+"."+ve,Ue=me(s,Se);(u.array.has(L)||Bt(ue)||Ue&&!Ue._f)&&!$a(ue)?ee(Se,ue,q,ce,le):B(Se,ue,q,ce,le)}},de=(L,H,q,ce,le=!1)=>{const ve=me(s,L),ue=u.array.has(L),Se=ce?H:$t(H),Ue=me(o,L),Tt=fs(Ue,Se);if(Tt||gt(o,L,Se),ue)_.array.next({name:L,values:ce?o:$t(o)}),(x.isDirty||x.dirtyFields||S.isDirty||S.dirtyFields)&&q.shouldDirty&&(N(),le||_.state.next({name:L,dirtyFields:n.dirtyFields,isDirty:te(L,Se)}));else{const pn=Array.isArray(Se)&&!Se.length||Cn(Se);!ve||ve._f||Tn(Se)||pn?B(L,Se,q,ce,le):ee(L,Se,q,ce,le)}if(!Tt&&!le){const pn=zy(L,u),Ls=ce?o:$t(o);_.state.next({...pn&&n,name:l.mount||pn?L:void 0,values:Ls})}},he=(L,H,q={})=>de(L,H,q,!1),ge=(L,H={})=>{const q=Nn(L)?L(o):L;if(!fs(o,q)){o={...o,...q};for(const ce of u.mount)de(ce,me(q,ce),H,!0,!0);_.state.next({...n,name:void 0,type:void 0,...p?{values:o}:{}}),H.shouldValidate&&R()}},_e=async L=>{l.mount=!0;const H=L.target;let q=H.name,ce=!0;const le=me(s,q),ve=ue=>{ce=Number.isNaN(ue)||$a(ue)&&isNaN(ue.getTime())||fs(ue,me(o,q,ue))};if(le){let ue,Se;const Ue=H.type?n1(le._f):Vv(L),Tt=L.type===Mi.BLUR||L.type===Mi.FOCUS_OUT,pn=!c6(le._f)&&!e.validate&&!t.resolver&&!me(n.errors,q)&&!le._f.deps,Ls=pn||f6(Tt,me(n.touchedFields,q),n.isSubmitted,b,m),$n=zy(q,u,Tt);gt(o,q,Ue),Tt?(!H||!H.readOnly)&&(le._f.onBlur&&le._f.onBlur(L),f&&f(0)):le._f.onChange&&le._f.onChange(L);const ss=Y(q,Ue,Tt),yo=!Cn(ss)||$n;if(!Tt&&_.state.next({name:q,type:L.type,...p?{values:$t(o)}:{}}),Ls)return(!pn||!n.isValid)&&(x.isValid||S.isValid)&&(t.mode==="onBlur"?Tt&&R():Tt||R()),yo&&_.state.next({name:q,...$n?{}:ss});if(!t.resolver&&e.validate&&await be({name:q,eventType:L.type}),!Tt&&$n&&_.state.next({...n}),t.resolver){const{errors:oi}=await ae([q]);if(O([q]),ve(Ue),!ce){!Cn(ss)&&_.state.next(ss);return}const em=r1(n.errors,s,q),Yl=r1(oi,s,em.name||q);ue=Yl.error,q=Yl.name,Se=Cn(oi)}else O([q],!0),ue=(await o1(le,u.disabled,o,k,t.shouldUseNativeValidation))[q],O([q]),ve(Ue),ce&&(ue?Se=!1:(x.isValid||S.isValid)&&(Se=await V({fields:s,onlyCheckValid:!0,name:q,eventType:L.type})));ce&&(le._f.deps&&(!Array.isArray(le._f.deps)||le._f.deps.length>0)&&Me(le._f.deps),X(q,Se,ue,ss))}},ye=(L,H)=>{if(me(n.errors,H)&&L.focus)return L.focus(),1},Me=async(L,H={})=>{let q,ce;const le=dh(L);if(t.resolver){const ve=await oe(Ot(L)?L:le);q=Cn(ve),ce=L?!le.some(ue=>me(ve,ue)):q}else L?(ce=(await Promise.all(le.map(async ve=>{const ue=me(s,ve);return await V({fields:ue&&ue._f?{[ve]:ue}:ue,eventType:Mi.TRIGGER})}))).every(Boolean),!(!ce&&!n.isValid)&&R()):ce=q=await V({fields:s,name:L,eventType:Mi.TRIGGER});return _.state.next({...!In(L)||(x.isValid||S.isValid)&&q!==n.isValid?{}:{name:L},...t.resolver||!L?{isValid:q}:{},errors:n.errors}),H.shouldFocus&&!ce&&iu(s,ye,L?le:u.mount),ce},Ee=(L,H)=>{let q={...l.mount?o:i};return H&&(q=dO(H.dirtyFields?n.dirtyFields:n.touchedFields,q)),Ot(L)?q:In(L)?me(q,L):L.map(ce=>me(q,ce))},Xe=(L,H)=>({invalid:!!me((H||n).errors,L),isDirty:!!me((H||n).dirtyFields,L),error:me((H||n).errors,L),isValidating:!!me(n.validatingFields,L),isTouched:!!me((H||n).touchedFields,L)}),Ye=L=>{const H=L?dh(L):void 0;H?.forEach(q=>tn(n.errors,q)),H?H.forEach(q=>{_.state.next({name:q,errors:n.errors})}):_.state.next({errors:{}})},Qe=(L,H,q)=>{const ce=(me(s,L,{_f:{}})._f||{}).ref,le=me(n.errors,L)||{},{ref:ve,message:ue,type:Se,...Ue}=le;gt(n.errors,L,{...Ue,...H,ref:ce}),_.state.next({name:L,errors:n.errors,isValid:!1}),q&&q.shouldFocus&&ce&&ce.focus&&ce.focus()},Wt=(L,H)=>{if(Nn(L)){p++;const{unsubscribe:q}=_.state.subscribe({next:le=>"values"in le&&L(le.values||pe(void 0,H),le)});let ce=!1;return{unsubscribe:()=>{ce||(ce=!0,p--,q())}}}return pe(L,H,!0)},ht=L=>{var H;const q=!!(!((H=L.formState)===null||H===void 0)&&H.values);q&&p++;const{unsubscribe:ce}=_.state.subscribe({next:ve=>{if(d6(L.name,ve.name,L.exact)&&u6(ve,L.formState||x,on,L.reRenderRoot)){const ue={...o};L.callback({values:ue,...n,...ve,defaultValues:i})}}});if(!q)return ce;let le=!1;return()=>{le||(le=!0,p--,ce())}},Is=L=>(l.mount=!0,S={...S,...L.formState},ht({...L,formState:{...w,...L.formState}})),Vn=(L,H={})=>{for(const q of L?dh(L):u.mount)u.mount.delete(q),u.array.delete(q),H.keepValue||(tn(s,q),tn(o,q)),!H.keepError&&tn(n.errors,q),!H.keepDirty&&tn(n.dirtyFields,q),!H.keepTouched&&tn(n.touchedFields,q),!H.keepIsValidating&&tn(n.validatingFields,q),!t.shouldUnregister&&!H.keepDefaultValue&&tn(i,q);_.state.next({values:$t(o)}),_.state.next({...n,...H.keepDirty?{isDirty:te()}:{}}),!H.keepIsValid&&R()},Ps=({disabled:L,name:H})=>{if(ds(L)&&l.mount||L||u.disabled.has(H)){const le=u.disabled.has(H)!==!!L;L?u.disabled.add(H):u.disabled.delete(H),le&&l.mount&&!l.action&&R()}},ts=(L,H={})=>{let q=me(s,L);const ce=ds(H.disabled)||ds(t.disabled),le=!u.registerName.has(L)&&q&&q._f&&!q._f.mount;return gt(s,L,{...q||{},_f:{...q&&q._f?q._f:{ref:{name:L}},name:L,mount:!0,...H}}),u.mount.add(L),q&&!le?Ps({disabled:ds(H.disabled)?H.disabled:t.disabled,name:L}):K(L,!0,H.value),{...ce?{disabled:H.disabled||t.disabled}:{},...t.progressive?{required:!!H.required,min:Gc(H.min),max:Gc(H.max),minLength:Gc(H.minLength),maxLength:Gc(H.maxLength),pattern:Gc(H.pattern)}:{},name:L,onChange:_e,onBlur:_e,ref:ve=>{if(ve){u.registerName.add(L),ts(L,H),u.registerName.delete(L),q=me(s,L);const ue=Ot(ve.value)&&ve.querySelectorAll&&ve.querySelectorAll("input,select,textarea")[0]||ve,Se=s6(ue),Ue=q._f.refs||[];if(Se?Ue.find(Tt=>Tt===ue):ue===q._f.ref)return;gt(s,L,{_f:{...q._f,...Se?{refs:[...Ue.filter(Uy),ue,...Array.isArray(me(i,L))?[{}]:[]],ref:{type:ue.type,name:L}}:{ref:ue}}}),K(L,!1,void 0,ue)}else q=me(s,L,{}),q._f&&(q._f.mount=!1),(t.shouldUnregister||H.shouldUnregister)&&!(rO(u.array,L)&&l.action)&&u.unMount.add(L)}}},Ms=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&iu(s,ye,u.mount),ns=L=>{ds(L)&&(_.state.next({disabled:L}),iu(s,(H,q)=>{const ce=me(s,q);ce&&(H.disabled=ce._f.disabled||L,Array.isArray(ce._f.refs)&&ce._f.refs.forEac
52h(le=>{le.disabled=ce._f.disabled||L}))},0,!1))},ai=(L,H)=>async q=>{let ce;q&&(q.preventDefault&&q.preventDefault(),q.persist&&q.persist());let le=$t(o);if(_.state.next({isSubmitting:!0}),t.resolver){const{errors:ve,values:ue}=await ae();O(),n.errors=ve,le=$t(ue)}else await V({fields:s,eventType:Mi.SUBMIT});if(u.disabled.size)for(const ve of u.disabled)tn(le,ve);if(tn(n.errors,aO),Cn(n.errors)){_.state.next({errors:{}});try{await L(le,q)}catch(ve){ce=ve}}else H&&await H({...n.errors},q),Ms(),setTimeout(Ms);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Cn(n.errors)&&!ce,submitCount:n.submitCount+1,errors:n.errors}),ce)throw ce},mo=(L,H={})=>{me(s,L)&&(Ot(H.defaultValue)?he(L,$t(me(i,L))):(he(L,H.defaultValue),gt(i,L,$t(H.defaultValue))),H.keepTouched||tn(n.touchedFields,L),H.keepDirty||(tn(n.dirtyFields,L),n.isDirty=H.defaultValue?te(L,$t(me(i,L))):te()),H.keepError||(tn(n.errors,L),x.isValid&&R()),_.state.next({...n}))},go=(L,H={})=>{const q=L?$t(L):i,ce=$t(q),le=Cn(L),ve=ce;if(H.keepDefaultValues||(i=q),!H.keepValues){if(H.keepDirtyValues){const ue=new Set([...u.mount,...Object.keys(Pa(i,o))]);for(const Se of Array.from(ue)){const Ue=me(n.dirtyFields,Se),Tt=me(o,Se),pn=me(ve,Se);Ue&&!Ot(Tt)?gt(ve,Se,Tt):!Ue&&!Ot(pn)&&he(Se,pn)}}else{if(jp&&Ot(L))for(const ue of u.mount){const Se=me(s,ue);if(Se&&Se._f){const Ue=Array.isArray(Se._f.refs)?Se._f.refs[0]:Se._f.ref;if(Ih(Ue)){const Tt=Ue.closest("form");if(Tt){Tt.reset();break}}}}if(H.keepFieldsRef)for(const ue of u.mount)he(ue,me(ve,ue));else s={}}if(t.shouldUnregister){if(o=H.keepDefaultValues?$t(i):{},H.keepFieldsRef)for(const ue of u.mount)gt(o,ue,me(ve,ue))}else o=$t(ve);_.array.next({values:{...ve}}),_.state.next({values:{...ve}})}u={mount:H.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!x.isValid||!!H.keepIsValid||!!H.keepDirtyValues||!t.shouldUnregister&&!Cn(ve),l.watch=!!t.shouldUnregister,l.keepIsValid=!!H.keepIsValid,l.action=!1,H.keepErrors||(n.errors={}),_.state.next({submitCount:H.keepSubmitCount?n.submitCount:0,isDirty:le?!1:H.keepDirty?n.isDirty:H.keepValues?te():!!(H.keepDefaultValues&&!fs(L,i)),isSubmitted:H.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:le?{}:H.keepDirtyValues?H.keepDefaultValues&&o?Pa(i,o):n.dirtyFields:H.keepDefaultValues&&L?Pa(i,L):H.keepDirty?n.dirtyFields:{},touchedFields:H.keepTouched?n.touchedFields:{},errors:H.keepErrors?n.errors:{},isSubmitSuccessful:H.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},an=(L,H)=>go(Nn(L)?L(o):L,{...t.resetOptions,...H}),bt=(L,H={})=>{const q=me(s,L),ce=q&&q._f;if(ce){const le=ce.refs?ce.refs[0]:ce.ref;le.focus&&setTimeout(()=>{le.focus(),H.shouldSelect&&Nn(le.select)&&le.select()})}},on=L=>{n={...n,...L}},ud={control:{register:ts,unregister:Vn,getFieldState:Xe,handleSubmit:ai,setError:Qe,_subscribe:ht,_runSchema:ae,_updateIsValidating:O,_focusError:Ms,_getWatch:pe,_getDirty:te,_setValid:R,_setFieldArray:P,_setDisabledField:Ps,_setErrors:M,_getFieldArray:ie,_reset:go,_resetDefaultValues:()=>Nn(t.defaultValues)&&t.defaultValues().then(L=>{an(L,t.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:Q,_disableForm:ns,_subjects:_,_proxyFormState:x,get _fields(){return s},get _formValues(){return o},get _state(){return l},set _state(L){l=L},get _defaultValues(){return i},get _names(){return u},set _names(L){u=L},get _formState(){return n},get _options(){return t},set _options(L){t={...t,...L},m=Bf(t.mode),b=Bf(t.reValidateMode)}},subscribe:Is,trigger:Me,register:ts,handleSubmit:ai,watch:Wt,setValue:he,setValues:ge,getValues:Ee,reset:an,resetField:mo,resetDefaultValues:(L,H={})=>{if(i=$t(L),!H.keepDirty){const q=Pa(i,o);n.dirtyFields=q,n.isDirty=!Cn(q)}H.keepIsValid||R(),_.state.next({...n,defaultValues:i})},clearErrors:Ye,unregister:Vn,setError:Qe,setFocus:bt,getFieldState:Xe};return{...ud,formControl:ud}}function Ip(e={}){const t=Be.useRef(void 0),n=Be.useRef(void 0),s=Be.useRef(e.formControl),[i,o]=Be.useState(()=>({...$t(yO),isLoading:Nn(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Nn(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&s.current!==e.formControl)if(s.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!Nn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...f}=m6(e);t.current={...f,formState:i}}const l=t.current.control;return l._options=e,ww(()=>{const u=l._subscribe({formState:l._proxyFormState,callback:()=>o({...l._formState,defaultValues:l._defaultValues}),reRenderRoot:!0});return o(f=>({...f,isReady:!0})),l._formState.isReady=!0,u},[l]),Be.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),Be.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),Be.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),Be.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),Be.useEffect(()=>{if(l._proxyFormState.isDirty){const u=l._getDirty();u!==i.isDirty&&l._subjects.state.next({isDirty:u})}},[l,i.isDirty]),Be.useEffect(()=>{var u;e.values&&!fs(e.values,n.current)?(l._reset(e.values,{keepFieldsRef:!0,...l._options.resetOptions}),!((u=l._options.resetOptions)===null||u===void 0)&&u.keepIsValid||l._setValid(),n.current=e.values,o(f=>({...f}))):l._resetDefaultValues()},[l,e.values]),Be.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),t.current.formState=Be.useMemo(()=>cO(i,l),[l,i]),t.current}const l1=(e,t,n)=>{if(e&&"reportValidity"in e){const s=me(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Wv=(e,t)=>
52{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?l1(s.ref,n,e):s&&s.refs&&s.refs.forEach(i=>l1(i,n,e))}},c1=(e,t)=>{t.shouldUseNativeValidation&&Wv(e,t);const n={};for(const s in e){const i=me(t.fields,s),o=Object.assign(e[s]||{},{ref:i&&i.ref});if(g6(t.names||Object.keys(e),s)){const l=Object.assign({},me(n,s));gt(l,"root",o),gt(n,s,l)}else gt(n,s,o)}return n},g6=(e,t)=>{const n=u1(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(s=>u1(s).match(`^${n}\\.\\d+`))};function u1(e){return e.replace(/[\[\]]/g,"")}function vO(e,t,n){function s(u,f){var h;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(h=u._zod).traits??(h.traits=new Set),u._zod.traits.add(e),t(u,f);for(const p in l.prototype)p in u||Object.defineProperty(u,p,{value:l.prototype[p].bind(u)});u._zod.constr=l,u._zod.def=f}const i=n?.Parent??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function l(u){var f;const h=n?.Parent?new o:this;s(h,u),(f=h._zod).deferred??(f.deferred=[]);for(const p of h._zod.deferred)p();return h}return Object.defineProperty(l,"init",{value:s}),Object.defineProperty(l,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class y6 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const v6={};function bO(e){return v6}function b6(e,t){return typeof t=="bigint"?t.toString():t}const wO=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Uf(e){return typeof e=="string"?e:e?.message}function xO(e,t,n){const s={...e,path:e.path??[]};if(!e.message){const i=Uf(e.inst?._zod.def?.error?.(e))??Uf(t?.error?.(e))??Uf(n.customError?.(e))??Uf(n.localeError?.(e))??"Invalid input";s.message=i}return delete s.inst,delete s.continue,t?.reportInput||delete s.input,s}const SO=(e,t)=>
52{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,b6,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},w6=vO("$ZodError",SO),_O=vO("$ZodError",SO,{Parent:Error}),x6=e=>(t,n,s,i)=>{const o=s?Object.assign(s,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise)throw new y6;if(l.issues.length){const u=new(i?.Err??e)(l.issues.map(f=>xO(f,o,bO())));throw wO(u,i?.callee),u}return l.value},S6=x6(_O),_6=e=>async(t,n,s,i)=>{const o=s?Object.assign(s,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise&&(l=await l),l.issues.length){const u=new(i?.Err??e)(l.issues.map(f=>xO(f,o,bO())));throw wO(u,i?.callee),u}return l.value},k6=_6(_O);function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Gv.apply(null,arguments)}function d1(e,t){try{var n=e()}catch(s){return t(s)}return n&&n.then?n.then(void 0,t):n}function A6(e,t){for(var n={};e.length;){var s=e[0],i=s.code,o=s.message,l=s.path.join(".");if(!n[l])if("unionErrors"in s){var u=s.unionErrors[0].errors[0];n[l]={message:u.message,type:u.code}}else n[l]={message:o,type:i};if("unionErrors"in s&&s.unionErrors.forEach(function(p){return p.errors.forEach(function(m){return e.push(m)})}),t){var f=n[l].types,h=f&&f[s.code];n[l]=xw(l,t,n,i,h?[].concat(h,s.message):s.message)}e.shift()}return n}function C6(e,t){for(var n={},s=function(){var i=e[0],o=i.code,l=i.message,u=i.path.join(".");if(!n[u])if(i.code==="invalid_union"&&i.errors.length>0){var f=i.errors[0][0];n[u]={message:f.message,type:f.code}}else n[u]={message:l,type:o};if(i.code==="invalid_union"&&i.errors.forEach(function(m){return m.forEach(function(b){return e.push(Gv({},b,{path:[].concat(i.path,b.path)}))})}),t){var h=n[u].types,p=h&&h[i.code];n[u]=xw(u,t,n,o,p?[].concat(p,i.message):i.message)}e.shift()};e.length;)s();return n}function Pp(e,t,n){if(n===void 0&&(n={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(e))return function(s,i,o){try{return Promise.resolve(d1(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(l){return o.shouldUseNativeValidation&&Wv({},o),{errors:{},values:n.raw?Object.assign({},s):l}})},function(l){if((function(u){return Array.isArray(u?.issues)})(l))return{values:{},errors:c1(A6(l.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(e))return function(s,i,o){try{return Promise.resolve(d1(function(){return Promise.resolve((n.mode==="sync"?S6:k6)(e,s,t)).then(function(l){return o.shouldUseNativeValidation&&Wv({},o),{errors:{},values:n.raw?Object.assign({},s):l}})},function(l){if((function(u){return u instanceof w6})(l))return{values:{},errors:c1(C6(l.issues,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}var ct;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const l of i)o[l]=l;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(u=>typeof i[i[u]]!="number"),l={};for(const u of o)l[u]=i[u];return e.objectValues(l)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&o.push(l);return o},e.find=(i,o)=>{for(const l of i)if(o(l))return l},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function s(i,o=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}e.joinValues=s,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(ct||(ct={}));var f1;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(f1||(f1={}));const je=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Di=e=>{switch(typeof e){case"undefined":return je.undefined;case"string":return je.string;case"number":return Number.isNaN(e)?je.nan:je.number;case"boolean":return je.boolean;case"function":return je.function;case"bigint":return je.bigint;case"symbol":return je.symbol;case"object":return Array.isArray(e)?je.array:e===null?je.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?je.promise:typeof Map<"u"&&e instanceof Map?je.map:typeof Set<"u"&&e instanceof Set?je.set:typeof Date<"u"&&e instanceof Date?je.date:je.object;default:return je.unknown}}
vendor: 15,449 bytes, line 52
52,fe=ct.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ei extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},s={_errors:[]},i=o=>{for(const l of o.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)s._errors.push(n(l));else{let u=s,f=0;for(;f<l.path.length;){const h=l.path[f];f===l.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(n(l))):u[h]=u[h]||{_errors:[]},u=u[h],f++}}};return i(this),s}static assert(t){if(!(t instanceof ei))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},s=[];for(const i of this.issues)if(i.path.length>0){const o=i.path[0];n[o]=n[o]||[],n[o].push(t(i))}else s.push(t(i));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}ei.create=e=>new ei(e);const Kv=(e,t)=>{let n;switch(e.code){case fe.invalid_type:e.received===je.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case fe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case fe.unrecognized_keys:n=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case fe.invalid_union:n="Invalid input";break;case fe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case fe.invalid_enum_value:n=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case fe.invalid_arguments:n="Invalid function arguments";break;case fe.invalid_return_type:n="Invalid function return type";break;case fe.invalid_date:n="Invalid date";break;case fe.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ct.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case fe.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case fe.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case fe.custom:n="Invalid input";break;case fe.invalid_intersection_types:n="Intersection results could not be merged";break;case fe.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case fe.not_finite:n="Number must be finite";break;default:n=t.defaultError,ct.assertNever(e)}return{message:n}};let E6=Kv;function T6(){return E6}const R6=e=>{const{data:t,path:n,errorMaps:s,issueData:i}=e,o=[...n,...i.path||[]],l={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let u="";const f=s.filter(h=>!!h).slice().reverse();for(const h of f)u=h(l,{data:t,defaultError:u}).message;return{...i,path:o,message:u}};function xe(e,t){const n=T6(),s=R6({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Kv?void 0:Kv].filter(i=>!!i)});e.common.issues.push(s)}class vs{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const i of n){if(i.status==="aborted")return ze;i.status==="dirty"&&t.dirty(),s.push(i.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const i of n){const o=await i.key,l=await i.value;s.push({key:o,value:l})}return vs.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const i of n){const{key:o,value:l}=i;if(o.status==="aborted"||l.status==="aborted")return ze;o.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(s[o.value]=l.value)}return{status:t.value,value:s}}}const ze=Object.freeze({status:"aborted"}),Qc=e=>({status:"dirty",value:e}),Ns=e=>({status:"valid",value:e}),h1=e=>e.status==="aborted",p1=e=>e.status==="dirty",Ll=e=>e.status==="valid",Mh=e=>typeof Promise<"u"&&e instanceof Promise;var Ie;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Ie||(Ie={}));class Gi{constructor(t,n,s,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const m1=(e,t)=>{if(Ll(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ei(e.common.issues);return this._error=n,this._error}}};function tt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:i}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(l,u)=>{const{message:f}=e;return l.code==="invalid_enum_value"?{message:f??u.defaultError}:typeof u.data>"u"?{message:f??s??u.defaultError}:l.code!=="invalid_type"?{message:u.defaultError}:{message:f??n??u.defaultError}},description:i}}class lt{get description(){return this._def.description}_getType(t){return Di(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Di(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new vs,ctx:{common:t.parent.common,data:t.data,parsedType:Di(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Mh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){const s={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Di(t)},i=this._parseSync({data:t,path:s.path,parent:s});return m1(s,i)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Di(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:n});return Ll(s)?{value:s.value}:{issues:n.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>Ll(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Di(t)},i=this._parse({data:t,path:s.path,parent:s}),o=await(Mh(i)?i:Promise.resolve(i));return m1(s,o)}refine(t,n){const s=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const l=t(i),u=()=>o.addIssue({code:fe.custom,...s(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(f=>f?!0:(u(),!1)):l?!0:(u(),!1)})}refinement(t,n){return this._refinement((s,i)=>t(s)?!0:(i.addIssue(typeof n=="function"?n(s,i):n),!1))}_refinement(t){return new to({schema:this,typeName:Ve.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Zr.create(this,this._def)}nullable(){return no.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return mr.create(this)}promise(){return zh.create(this,this._def)}or(t){return Lh.create([this,t],this._def)}and(t){return Bh.create(this,t,this._def)}transform(t){return new to({...tt(this._def),schema:this,typeName:Ve.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Vh({...tt(this._def),innerType:this,defaultValue:n,typeName:Ve.ZodDefault})}brand(){return new EO({typeName:Ve.ZodBranded,type:this,...tt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new $h({...tt(this._def),innerType:this,catchValue:n,typeName:Ve.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Aw.create(this,t)}readonly(){return Fh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const O6=/^c[^\s-]{8,}$/i,j6=/^[0-9a-z]+$/,N6=/^[0-9A-HJKMNP-TV-Z]{26}$/i,I6=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,P6=/^[a-z0-9_-]{21}$/i,M6=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,D6=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,L6=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,B6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let $y;const U6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,z6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,V6=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,$6=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,F6=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,H6=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,kO="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",q6=new RegExp(`^${kO}$`);function AO(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function W6(e){return new RegExp(`^${AO(e)}$`)}function G6(e){let t=`${kO}T${AO(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function K6(e,t){return!!((t==="v4"||!t)&&U6.test(e)||(t==="v6"||!t)&&V6.test(e))}function Y6(e,t){if(!M6.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(s));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function Z6(e,t){return!!((t==="v4"||!t)&&z6.test(e)||(t==="v6"||!t)&&$6.test(e))}class $i extends lt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==je.string){const o=this._getOrReturnCtx(t);
vendor: 4,147 bytes, line 52
52return xe(o,{code:fe.invalid_type,expected:je.string,received:o.parsedType}),ze}const s=new vs;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),xe(i,{code:fe.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),s.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),xe(i,{code:fe.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),s.dirty());else if(o.kind==="length"){const l=t.data.length>o.value,u=t.data.length<o.value;(l||u)&&(i=this._getOrReturnCtx(t,i),l?xe(i,{code:fe.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):u&&xe(i,{code:fe.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),s.dirty())}else if(o.kind==="email")L6.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"email",code:fe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="emoji")$y||($y=new RegExp(B6,"u")),$y.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"emoji",code:fe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="uuid")I6.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"uuid",code:fe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="nanoid")P6.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"nanoid",code:fe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="cuid")O6.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"cuid",code:fe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="cuid2")j6.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"cuid2",code:fe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="ulid")N6.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"ulid",code:fe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),xe(i,{validation:"url",code:fe.invalid_string,message:o.message}),s.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"regex",code:fe.invalid_string,message:o.message}),s.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),xe(i,{code:fe.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),s.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),xe(i,{code:fe.invalid_string,validation:{startsWith:o.value},message:o.message}),s.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),xe(i,{code:fe.invalid_string,validation:{endsWith:o.value},message:o.message}),s.dirty()):o.kind==="datetime"?G6(o).test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{code:fe.invalid_string,validation:"datetime",message:o.message}),s.dirty()):o.kind==="date"?q6.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{code:fe.invalid_string,validation:"date",message:o.message}),s.dirty()):o.kind==="time"?W6(o).test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{code:fe.invalid_string,validation:"time",message:o.message}),s.dirty()):o.kind==="duration"?D6.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"duration",code:fe.invalid_string,message:o.message}),s.dirty()):o.kind==="ip"?K6(t.data,o.version)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"ip",code:fe.invalid_string,message:o.message}),s.dirty()):o.kind==="jwt"?Y6(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"jwt",code:fe.invalid_string,message:o.message}),s.dirty()):o.kind==="cidr"?Z6(t.data,o.version)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"cidr",code:fe.invalid_string,message:o.message}),s.dirty()):o.kind==="base64"?F6.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"base64",code:fe.invalid_string,message:o.message}),s.dirty()):o.kind==="base64url"?H6.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"base64url",code:fe.invali
vendor: 17,794 bytes, line 52
52d_string,message:o.message}),s.dirty()):ct.assertNever(o);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(i=>t.test(i),{validation:n,code:fe.invalid_string,...Ie.errToObj(s)})}_addCheck(t){return new $i({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ie.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ie.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ie.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ie.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ie.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ie.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ie.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ie.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ie.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Ie.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Ie.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ie.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Ie.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Ie.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Ie.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Ie.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ie.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...Ie.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ie.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ie.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ie.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ie.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ie.errToObj(n)})}nonempty(t){return this.min(1,Ie.errToObj(t))}trim(){return new $i({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new $i({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new $i({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}$i.create=e=>new $i({checks:[],typeName:Ve.ZodString,coerce:e?.coerce??!1,...tt(e)});function X6(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,i=n>s?n:s,o=Number.parseInt(e.toFixed(i).replace(".","")),l=Number.parseInt(t.toFixed(i).replace(".",""));return o%l/10**i}class Bl extends lt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==je.number){const o=this._getOrReturnCtx(t);return xe(o,{code:fe.invalid_type,expected:je.number,received:o.parsedType}),ze}let s;const i=new vs;for(const o of this._def.checks)o.kind==="int"?ct.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{code:fe.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(s=this._getOrReturnCtx(t,s),xe(s,{code:fe.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(s=this._getOrReturnCtx(t,s),xe(s,{code:fe.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?X6(t.data,o.value)!==0&&(s=this._getOrReturnCtx(t,s),xe(s,{code:fe.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{code:fe.not_finite,message:o.message}),i.dirty()):ct.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ie.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ie.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ie.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ie.toString(n))}setLimit(t,n,s,i){return new Bl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Ie.toString(i)}]})}_addCheck(t){return new Bl({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ie.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ie.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ie.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ie.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ie.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ie.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ie.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ie.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ie.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ct.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Bl.create=e=>new Bl({checks:[],typeName:Ve.ZodNumber,coerce:e?.coerce||!1,...tt(e)});class Au extends lt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==je.bigint)return this._getInvalidInput(t);let s;const i=new vs;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(s=this._getOrReturnCtx(t,s),xe(s,{code:fe.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(s=this._getOrReturnCtx(t,s),xe(s,{code:fe.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),xe(s,{code:fe.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):ct.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return xe(n,{code:fe.invalid_type,expected:je.bigint,received:n.parsedType}),ze}gte(t,n){return this.setLimit("min",t,!0,Ie.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ie.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ie.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ie.toString(n))}setLimit(t,n,s,i){return new Au({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Ie.toString(i)}]})}_addCheck(t){return new Au({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ie.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ie.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ie.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ie.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ie.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Au.create=e=>new Au({checks:[],typeName:Ve.ZodBigInt,coerce:e?.coerce??!1,...tt(e)});class Yv extends lt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==je.boolean){const s=this._getOrReturnCtx(t);return xe(s,{code:fe.invalid_type,expected:je.boolean,received:s.parsedType}),ze}return Ns(t.data)}}Yv.create=e=>new Yv({typeName:Ve.ZodBoolean,coerce:e?.coerce||!1,...tt(e)});class Dh extends lt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==je.date){const o=this._getOrReturnCtx(t);return xe(o,{code:fe.invalid_type,expected:je.date,received:o.parsedType}),ze}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return xe(o,{code:fe.invalid_date}),ze}const s=new vs;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),xe(i,{code:fe.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),s.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),xe(i,{code:fe.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),s.dirty()):ct.assertNever(o);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Dh({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ie.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ie.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Dh.create=e=>new Dh({checks:[],coerce:e?.coerce||!1,typeName:Ve.ZodDate,...tt(e)});class g1 extends lt{_parse(t){if(this._getType(t)!==je.symbol){const s=this._getOrReturnCtx(t);return xe(s,{code:fe.invalid_type,expected:je.symbol,received:s.parsedType}),ze}return Ns(t.data)}}g1.create=e=>new g1({typeName:Ve.ZodSymbol,...tt(e)});class Zv extends lt{_parse(t){if(this._getType(t)!==je.undefined){const s=this._getOrReturnCtx(t);return xe(s,{code:fe.invalid_type,expected:je.undefined,received:s.parsedType}),ze}return Ns(t.data)}}Zv.create=e=>new Zv({typeName:Ve.ZodUndefined,...tt(e)});class Xv extends lt{_parse(t){if(this._getType(t)!==je.null){const s=this._getOrReturnCtx(t);return xe(s,{code:fe.invalid_type,expected:je.null,received:s.parsedType}),ze}return Ns(t.data)}}Xv.create=e=>new Xv({typeName:Ve.ZodNull,...tt(e)});class y1 extends lt{constructor(){super(...arguments),this._any=!0}_parse(t){return Ns(t.data)}}y1.create=e=>new y1({typeName:Ve.ZodAny,...tt(e)});class v1 extends lt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ns(t.data)}}v1.create=e=>new v1({typeName:Ve.ZodUnknown,...tt(e)});class Ki extends lt{_parse(t){const n=this._getOrReturnCtx(t);return xe(n,{code:fe.invalid_type,expected:je.never,received:n.parsedType}),ze}}Ki.create=e=>new Ki({typeName:Ve.ZodNever,...tt(e)});class b1 extends lt{_parse(t){if(this._getType(t)!==je.undefined){const s=this._getOrReturnCtx(t);return xe(s,{code:fe.invalid_type,expected:je.void,received:s.parsedType}),ze}return Ns(t.data)}}b1.create=e=>new b1({typeName:Ve.ZodVoid,...tt(e)});class mr extends lt{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),i=this._def;if(n.parsedType!==je.array)return xe(n,{code:fe.invalid_type,expected:je.array,received:n.parsedType}),ze;if(i.exactLength!==null){const l=n.data.length>i.exactLength.value,u=n.data.length<i.exactLength.value;(l||u)&&(xe(n,{code:l?fe.too_big:fe.too_small,minimum:u?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),s.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(xe(n,{code:fe.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),s.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(xe(n,{code:fe.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((l,u)=>i.type._parseAsync(new Gi(n,l,n.path,u)))).then(l=>vs.mergeArray(s,l));const o=[...n.data].map((l,u)=>i.type._parseSync(new Gi(n,l,n.path,u)));return vs.mergeArray(s,o)}get element(){return this._def.type}min(t,n){return new mr({...this._def,minLength:{value:t,message:Ie.toString(n)}})}max(t,n){return new mr({...this._def,maxLength:{value:t,message:Ie.toString(n)}})}length(t,n){return new mr({...this._def,exactLength:{value:t,message:Ie.toString(n)}})}nonempty(t){return this.min(1,t)}}mr.create=(e,t)=>new mr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ve.ZodArray,...tt(t)});function yl(e){if(e instanceof sn){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=Zr.create(yl(s))}return new sn({...e._def,shape:()=>t})}else return e instanceof mr?new mr({...e._def,type:yl(e.element)}):e instanceof Zr?Zr.create(yl(e.unwrap())):e instanceof no?no.create(yl(e.unwrap())):e instanceof Qa?Qa.create(e.items.map(t=>yl(t))):e}class sn extends lt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ct.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==je.object){const h=this._getOrReturnCtx(t);return xe(h,{code:fe.invalid_type,expected:je.object,received:h.parsedType}),ze}const{status:s,ctx:i}=this._processInputParams(t),{shape:o,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof Ki&&this._def.unknownKeys==="strip"))for(const h in i.data)l.includes(h)||u.push(h);const f=[];for(const h of l){const p=o[h],m=i.data[h];f.push({key:{status:"valid",value:h},value:p._parse(new Gi(i,m,i.path,h)),alwaysSet:h in i.data})}if(this._def.catchall instanceof Ki){const h=this._def.unknownKeys;if(h==="passthrough")for(const p of u)f.push({key:{status:"valid",value:p},value:{status:"valid",value:i.data[p]}});else if(h==="strict")u.length>0&&(xe(i,{code:fe.unrecognized_keys,keys:u}),s.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const p of u){const m=i.data[p];f.push({key:{status:"valid",value:p},value:h._parse(new Gi(i,m,i.path,p)),alwaysSet:p in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const h=[];for(const p of f){const m=await p.key,b=await p.value;h.push({key:m,value:b,alwaysSet:p.alwaysSet})}return h}).then(h=>vs.mergeObjectSync(s,h)):vs.mergeObjectSync(s,f)}get shape(){return this._def.shape()}strict(t){return Ie.errToObj,new sn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{const i=this._def.errorMap?.(n,s).message??s.defaultError;return n.code==="unrecognized_keys"?{message:Ie.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new sn({...this._def,unknownKeys:"strip"})}passthrough(){return new sn({...this._def,unknownKeys:"passthrough"})}extend(t){return new sn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new sn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ve.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new sn({...this._def,catchall:t})}pick(t){const n={};for(const s of ct.objectKeys(t))t[s]&&this.shape[s]&&(n[s]=this.shape[s]);return new sn({...this._def,shape:()=>n})}omit(t){const n={};for(const s of ct.objectKeys(this.shape))t[s]||(n[s]=this.shape[s]);return new sn({...this._def,shape:()=>n})}deepPartial(){return yl(this)}partial(t){const n={};for(const s of ct.objectKeys(this.shape)){const i=this.shape[s];t&&!t[s]?n[s]=i:n[s]=i.optional()}return new sn({...this._def,shape:()=>n})}required(t){const n={};for(const s of ct.objectKeys(this.shape))if(t&&!t[s])n[s]=this.shape[s];else{let o=this.shape[s];for(;o instanceof Zr;)o=o._def.innerType;n[s]=o}return new sn({...this._def,shape:()=>n})}keyof(){return CO(ct.objectKeys(this.shape))}}sn.create=(e,t)=>
vendor: 4,199 bytes, line 52
52new sn({shape:()=>e,unknownKeys:"strip",catchall:Ki.create(),typeName:Ve.ZodObject,...tt(t)});sn.strictCreate=(e,t)=>new sn({shape:()=>e,unknownKeys:"strict",catchall:Ki.create(),typeName:Ve.ZodObject,...tt(t)});sn.lazycreate=(e,t)=>new sn({shape:e,unknownKeys:"strip",catchall:Ki.create(),typeName:Ve.ZodObject,...tt(t)});class Lh extends lt{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function i(o){for(const u of o)if(u.result.status==="valid")return u.result;for(const u of o)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const l=o.map(u=>new ei(u.ctx.common.issues));return xe(n,{code:fe.invalid_union,unionErrors:l}),ze}if(n.common.async)return Promise.all(s.map(async o=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let o;const l=[];for(const f of s){const h={...n,common:{...n.common,issues:[]},parent:null},p=f._parseSync({data:n.data,path:n.path,parent:h});if(p.status==="valid")return p;p.status==="dirty"&&!o&&(o={result:p,ctx:h}),h.common.issues.length&&l.push(h.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const u=l.map(f=>new ei(f));return xe(n,{code:fe.invalid_union,unionErrors:u}),ze}}get options(){return this._def.options}}Lh.create=(e,t)=>new Lh({options:e,typeName:Ve.ZodUnion,...tt(t)});const Fr=e=>e instanceof Qv?Fr(e.schema):e instanceof to?Fr(e.innerType()):e instanceof Uh?[e.value]:e instanceof eo?e.options:e instanceof eb?ct.objectValues(e.enum):e instanceof Vh?Fr(e._def.innerType):e instanceof Zv?[void 0]:e instanceof Xv?[null]:e instanceof Zr?[void 0,...Fr(e.unwrap())]:e instanceof no?[null,...Fr(e.unwrap())]:e instanceof EO||e instanceof Fh?Fr(e.unwrap()):e instanceof $h?Fr(e._def.innerType):[];class kw extends lt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==je.object)return xe(n,{code:fe.invalid_type,expected:je.object,received:n.parsedType}),ze;const s=this.discriminator,i=n.data[s],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(xe(n,{code:fe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),ze)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){const i=new Map;for(const o of n){const l=Fr(o.shape[t]);if(!l.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const u of l){if(i.has(u))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(u)}`);i.set(u,o)}}return new kw({typeName:Ve.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...tt(s)})}}function Jv(e,t){const n=Di(e),s=Di(t);if(e===t)return{valid:!0,data:e};if(n===je.object&&s===je.object){const i=ct.objectKeys(t),o=ct.objectKeys(e).filter(u=>i.indexOf(u)!==-1),l={...e,...t};for(const u of o){const f=Jv(e[u],t[u]);if(!f.valid)return{valid:!1};l[u]=f.data}return{valid:!0,data:l}}else if(n===je.array&&s===je.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const l=e[o],u=t[o],f=Jv(l,u);if(!f.valid)return{valid:!1};i.push(f.data)}return{valid:!0,data:i}}else return n===je.date&&s===je.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Bh extends lt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t),i=(o,l)=>{if(h1(o)||h1(l))return ze;const u=Jv(o.value,l.value);return u.valid?((p1(o)||p1(l))&&n.dirty(),{status:n.value,value:u.data}):(xe(s,{code:fe.invalid_intersection_types}),ze)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([o,l])=>i(o,l)):i(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Bh.create=(e,t,n)=>new Bh({left:e,right:t,typeName:Ve.ZodIntersection,...tt(n)});class Qa extends lt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);
vendor: 8,266 bytes, line 52
52if(s.parsedType!==je.array)return xe(s,{code:fe.invalid_type,expected:je.array,received:s.parsedType}),ze;if(s.data.length<this._def.items.length)return xe(s,{code:fe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ze;!this._def.rest&&s.data.length>this._def.items.length&&(xe(s,{code:fe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...s.data].map((l,u)=>{const f=this._def.items[u]||this._def.rest;return f?f._parse(new Gi(s,l,s.path,u)):null}).filter(l=>!!l);return s.common.async?Promise.all(o).then(l=>vs.mergeArray(n,l)):vs.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Qa({...this._def,rest:t})}}Qa.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Qa({items:e,typeName:Ve.ZodTuple,rest:null,...tt(t)})};class w1 extends lt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==je.map)return xe(s,{code:fe.invalid_type,expected:je.map,received:s.parsedType}),ze;const i=this._def.keyType,o=this._def.valueType,l=[...s.data.entries()].map(([u,f],h)=>({key:i._parse(new Gi(s,u,s.path,[h,"key"])),value:o._parse(new Gi(s,f,s.path,[h,"value"]))}));if(s.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const f of l){const h=await f.key,p=await f.value;if(h.status==="aborted"||p.status==="aborted")return ze;(h.status==="dirty"||p.status==="dirty")&&n.dirty(),u.set(h.value,p.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const f of l){const h=f.key,p=f.value;if(h.status==="aborted"||p.status==="aborted")return ze;(h.status==="dirty"||p.status==="dirty")&&n.dirty(),u.set(h.value,p.value)}return{status:n.value,value:u}}}}w1.create=(e,t,n)=>new w1({valueType:t,keyType:e,typeName:Ve.ZodMap,...tt(n)});class Cu extends lt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==je.set)return xe(s,{code:fe.invalid_type,expected:je.set,received:s.parsedType}),ze;const i=this._def;i.minSize!==null&&s.data.size<i.minSize.value&&(xe(s,{code:fe.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&s.data.size>i.maxSize.value&&(xe(s,{code:fe.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function l(f){const h=new Set;for(const p of f){if(p.status==="aborted")return ze;p.status==="dirty"&&n.dirty(),h.add(p.value)}return{status:n.value,value:h}}const u=[...s.data.values()].map((f,h)=>o._parse(new Gi(s,f,s.path,h)));return s.common.async?Promise.all(u).then(f=>l(f)):l(u)}min(t,n){return new Cu({...this._def,minSize:{value:t,message:Ie.toString(n)}})}max(t,n){return new Cu({...this._def,maxSize:{value:t,message:Ie.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Cu.create=(e,t)=>new Cu({valueType:e,minSize:null,maxSize:null,typeName:Ve.ZodSet,...tt(t)});class Qv extends lt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Qv.create=(e,t)=>new Qv({getter:e,typeName:Ve.ZodLazy,...tt(t)});class Uh extends lt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return xe(n,{received:n.data,code:fe.invalid_literal,expected:this._def.value}),ze}return{status:"valid",value:t.data}}get value(){return this._def.value}}Uh.create=(e,t)=>new Uh({value:e,typeName:Ve.ZodLiteral,...tt(t)});function CO(e,t){return new eo({values:e,typeName:Ve.ZodEnum,...tt(t)})}class eo extends lt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return xe(n,{expected:ct.joinValues(s),received:n.parsedType,code:fe.invalid_type}),ze}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return xe(n,{received:n.data,code:fe.invalid_enum_value,options:s}),ze}return Ns(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return eo.create(t,{...this._def,...n})}exclude(t,n=this._def){return eo.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}eo.create=CO;class eb extends lt{_parse(t){const n=ct.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==je.string&&s.parsedType!==je.number){const i=ct.objectValues(n);return xe(s,{expected:ct.joinValues(i),received:s.parsedType,code:fe.invalid_type}),ze}if(this._cache||(this._cache=new Set(ct.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=ct.objectValues(n);return xe(s,{received:s.data,code:fe.invalid_enum_value,options:i}),ze}return Ns(t.data)}get enum(){return this._def.values}}eb.create=(e,t)=>new eb({values:e,typeName:Ve.ZodNativeEnum,...tt(t)});class zh extends lt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==je.promise&&n.common.async===!1)return xe(n,{code:fe.invalid_type,expected:je.promise,received:n.parsedType}),ze;const s=n.parsedType===je.promise?n.data:Promise.resolve(n.data);return Ns(s.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}zh.create=(e,t)=>new zh({type:e,typeName:Ve.ZodPromise,...tt(t)});class to extends lt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ve.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:l=>{xe(s,l),l.fatal?n.abort():n.dirty()},get path(){return s.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const l=i.transform(s.data,o);if(s.common.async)return Promise.resolve(l).then(async u=>{if(n.value==="aborted")return ze;const f=await this._def.schema._parseAsync({data:u,path:s.path,parent:s});return f.status==="aborted"?ze:f.status==="dirty"||n.value==="dirty"?Qc(f.value):f});{if(n.value==="aborted")return ze;const u=this._def.schema._parseSync({data:l,path:s.path,parent:s});return u.status==="aborted"?ze:u.status==="dirty"||n.value==="dirty"?Qc(u.value):u}}if(i.type==="refinement"){const l=u=>{const f=i.refinement(u,o);if(s.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(s.common.async===!1){const u=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return u.status==="aborted"?ze:(u.status==="dirty"&&n.dirty(),l(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(u=>u.status==="aborted"?ze:(u.status==="dirty"&&n.dirty(),l(u.value).then(()=>({status:n.value,value:u.value}))))}if(i.type==="transform")if(s.common.async===!1){const l=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ll(l))return ze;const u=i.transform(l.value,o);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(l=>Ll(l)?Promise.resolve(i.transform(l.value,o)).then(u=>({status:n.value,value:u})):ze);ct.assertNever(i)}}to.create=(e,t,n)=>new to({schema:e,typeName:Ve.ZodEffects,effect:t,...tt(n)});to.createWithPreprocess=(e,t,n)=>new to({schema:t,effect:{type:"preprocess",transform:e},typeName:Ve.ZodEffects,...tt(n)});class Zr extends lt{_parse(t){return this._getType(t)===je.undefined?Ns(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Zr.create=(e,t)=>new Zr({innerType:e,typeName:Ve.ZodOptional,...tt(t)});class no extends lt{_parse(t){return this._getType(t)===je.null?Ns(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}no.create=(e,t)=>
vendor: 4,701 bytes, lines 52-81
52new no({innerType:e,typeName:Ve.ZodNullable,...tt(t)});class Vh extends lt{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===je.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Vh.create=(e,t)=>new Vh({innerType:e,typeName:Ve.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...tt(t)});class $h extends lt{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Mh(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ei(s.common.issues)},input:s.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ei(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}$h.create=(e,t)=>new $h({innerType:e,typeName:Ve.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...tt(t)});class x1 extends lt{_parse(t){if(this._getType(t)!==je.nan){const s=this._getOrReturnCtx(t);return xe(s,{code:fe.invalid_type,expected:je.nan,received:s.parsedType}),ze}return{status:"valid",value:t.data}}}x1.create=e=>new x1({typeName:Ve.ZodNaN,...tt(e)});class EO extends lt{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class Aw extends lt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?ze:o.status==="dirty"?(n.dirty(),Qc(o.value)):this._def.out._parseAsync({data:o.value,path:s.path,parent:s})})();{const i=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?ze:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:s.path,parent:s})}}static create(t,n){return new Aw({in:t,out:n,typeName:Ve.ZodPipeline})}}class Fh extends lt{_parse(t){const n=this._def.innerType._parse(t),s=i=>(Ll(i)&&(i.value=Object.freeze(i.value)),i);return Mh(n)?n.then(i=>s(i)):s(n)}unwrap(){return this._def.innerType}}Fh.create=(e,t)=>new Fh({innerType:e,typeName:Ve.ZodReadonly,...tt(t)});var Ve;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ve||(Ve={}));const dn=$i.create,dne=Bl.create,fne=Yv.create;Ki.create;const hne=mr.create,nd=sn.create,pne=Lh.create,mne=kw.create;Bh.create;Qa.create;const TO=Uh.create,gne=eo.create;zh.create;Zr.create;no.create;function RO(){return y.jsx("style",{children:`
53      .partner-input {
54        width: 100%;
55        background: #32302e;
56        border: 1px solid rgba(255, 255, 255, 0.12);
57        border-radius: 12px;
58        padding: 0.85rem 1rem;
59        font-size: 1rem;
60        color: #f7f7f7;
61        transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
62      }
63      @media (min-width: 768px) {
64        .partner-input { font-size: 0.95rem; }
65      }
66      .partner-input:hover {
67        background: #3a3835;
68        border-color: rgba(255, 255, 255, 0.18);
69      }
70      .partner-input:focus {
71        outline: none;
72        background: #3a3835;
73        border-color: rgba(127, 87, 218, 0.45);
74        box-shadow: 0 0 0 4px rgba(127, 87, 218, 0.15);
75      }
76      .partner-input::placeholder { color: rgba(255, 255, 255, 0.40); }
77      .partner-input option {
78        color: #f7f7f7;
79        background-color: #3a3835;
80      }
81    `})}const J6=new Set(["gmail.com","googlemail.com","yahoo.com","ymail.com","rocketmail.com","hotmail.com","outlook.com","live.com","msn.com","icloud.com","me.com","mac.com","aol.com","proton.me","protonmail.com"]),au
81="Use your work email.";function Q6(e){const t=e.trim().toLowerCase(),n=t.lastIndexOf("@");return n<0?"":t.slice(n+1)}function e$(e){return J6.has(Q6(e))}function Cw(e){return!e$(e)}const t$=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Ew extends Error{constructor(t,n="FunctionsError",s){super(t),this.name=n,this.context=s}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class n$ extends Ew{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class S1 extends Ew{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class _1 extends Ew{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var tb;(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"})(tb||(tb={}));class s${constructor(t,{headers:n={},customFetch:s,region:i=tb.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=t$(s)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return nV(this,arguments,void 0,function*(n,s={}){var i;let o,l;try{const{headers:u,method:f,body:h,signal:p,timeout:m}=s;let b={},{region:w}=s;w||(w=this.region);const x=new URL(`${this.url}/${n}`);w&&w!=="any"&&(b["x-region"]=w,x.searchParams.set("forceFunctionRegion",w));let S;const _=!!u&&Object.keys(u).some(P=>P.toLowerCase()==="content-type");h&&!_?typeof Blob<"u"&&h instanceof Blob||h instanceof ArrayBuffer?(b["Content-Type"]="application/octet-stream",S=h):typeof h=="string"?(b["Content-Type"]="text/plain",S=h):typeof FormData<"u"&&h instanceof FormData?S=h:(b["Content-Type"]="application/json",S=JSON.stringify(h)):h&&typeof h!="string"&&!(typeof Blob<"u"&&h instanceof Blob)&&!(h instanceof ArrayBuffer)&&!(typeof FormData<"u"&&h instanceof FormData)?S=JSON.stringify(h):S=h;let k=p;m&&(l=new AbortController,o=setTimeout(()=>l.abort(),m),p?(k=l.signal,p.addEventListener("abort",()=>l.abort())):k=l.signal);const C=yield this.fetch(x.toString(),{method:f||"POST",headers:Object.assign(Object.assign(Object.assign({},b),this.headers),u),body:S,signal:k}).catch(P=>{throw new n$(P)}),R=C.headers.get("x-relay-error");if(R&&R==="true")throw new S1(C);if(!C.ok)throw new _1(C);let O=((i=C.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),N;return O==="application/json"?N=yield C.json():O==="application/octet-stream"||O==="application/pdf"?N=yield C.blob():O==="text/event-stream"?N=C:O==="multipart/form-data"?N=yield C.formData():N=yield C.text(),{data:N,error:null,response:C}}catch(u){return{data:null,error:u,response:u instanceof _1||u instanceof S1?u.context:void 0}}finally{o&&clearTimeout(o)}})}}const OO=3,k1=e=>Math.min(1e3*2**e,3e4),r$=[520,503],jO=["GET","HEAD","OPTIONS"];var A1=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
81de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function C1(e,t){return new Promise(n=>{if(t?.aborted){n();return}const s=setTimeout(()=>{t?.removeEventListener("abort",i),n()},e);function i(){clearTimeout(s),n()}t?.addEventListener("abort",i)})}function i$(e,t,n,s){return!(!s||n>=OO||!jO.includes(e)||!r$.includes(t))}var a$=class{constructor(e){var t,n,s,i,o;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(s=e.shouldStripNulls)!==null&&s!==void 0?s:!1,this.urlLengthLimit=(i=e.urlLengthLimit)!==null&&i!==void 0?i:8e3,this.retryEnabled=(o=e.retry)!==null&&o!==void 0?o:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const l=this.headers.get("Accept");l==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!l||l==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const s=this.fetch;let o=(async()=>{let l=0;for(;;){const h={};n.headers.forEach((m,b)=>{h[b]=m}),l>0&&(h["X-Retry-Count"]=String(l));let p;try{p=await s(n.url.toString(),{method:n.method,headers:h,body:JSON.stringify(n.body,(m,b)=>typeof b=="bigint"?b.toString():b),signal:n.signal})}catch(m){if(m?.name==="AbortError"||m?.code==="ABORT_ERR"||!jO.includes(n.method))throw m;if(n.retryEnabled&&l<OO){const b=k1(l);l++,await C1(b,n.signal);continue}throw m}if(i$(n.method,p.status,l,n.retryEnabled)){var u,f;const m=(u=(f=p.headers)===null||f===void 0?void 0:f.get("Retry-After"))!==null&&u!==void 0?u:null,b=m!==null?Math.max(0,parseInt(m,10)||0)*1e3:k1(l);await p.text(),l++,await C1(b,n.signal);continue}return await n.processResponse(p)}})();return this.shouldThrowOnError||(o=o.catch(l=>{var u;let f="",h="",p="";const m=l?.cause;if(m){var b,w,x,S;const C=(b=m?.message)!==null&&b!==void 0?b:"",R=(w=m?.code)!==null&&w!==void 0?w:"";f=`${(x=l?.name)!==null&&x!==void 0?x:"FetchError"}: ${l?.message}`,f+=`
82
83Caused by: ${(S=m?.name)!==null&&S!==void 0?S:"Error"}: ${C}`,R&&(f+=` (${R})`),m?.stack&&(f+=`
84${m.stack}`)}else{var _;f=(_=l?.stack)!==null&&_!==void 0?_:""}const k=this.url.toString().length;return l?.name==="AbortError"||l?.code==="ABORT_ERR"?(p="",h="Request was aborted (timeout or manual cancellation)",k>this.urlLengthLimit&&(h+=`. Note: Your request URL is ${k} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(m?.name==="HeadersOverflowError"||m?.code==="UND_ERR_HEADERS_OVERFLOW")&&(p="",h="HTTP headers exceeded server limits (typically 16KB)",k>this.urlLengthLimit&&(h+=`. Your request URL is ${k} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(u=l?.name)!==null&&u!==void 0?u:"FetchError"}: ${l?.message}`,details:f,hint:h,code:p},data:null,count:null,status:0,statusText:""}})),o.then(e,t)}async processResponse(e){var t=this;let n=null,s=null,i=null,o=e.status,l=e.statusText;if(e.ok){var u,f;if(t.method!=="HEAD"){var h;const b=await e.text();if(b!=="")if(t.headers.get("Accept")==="text/csv")s=b;else if(t.headers.get("Accept")&&(!((h=t.headers.get("Accept"))===null||h===void 0)&&h.includes("application/vnd.pgrst.plan+text")))s=b;else try{s=JSON.parse(b)}catch{if(n={message:b},s=null,t.shouldThrowOnError)throw new A1({message:b,details:"",hint:"",code:""})}}const p=(u=t.headers.get("Prefer"))===null||u===void 0?void 0:u.match(/count=(exact|planned|estimated)/),m=(f=e.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");p&&m&&m.length>1&&(i=parseInt(m[1])),t.isMaybeSingle&&Array.isArray(s)&&(s.length>1?(n={code:"PGRST116",details:`Results contain ${s.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},s=null,i=null,o=406,l="Not Acceptable"):s.length===1?s=s[0]:s=null)}else{const p=await e.text();try{n=JSON.parse(p),Array.isArray(n)&&e.status===404&&(s=[],n=null,o=200,l="OK")}catch{e.status===404&&p===""?(o=204,l="No Content"):n={message:p}}if(n&&t.shouldThrowOnError)throw new A1(n)}return{success:n===null,error:n,data:s,count:i,status:o,statusText:l}}returns(){return this}overrideTypes(){return this}},o$=class extends a${throwOnError(){return super.throwOnError()}select(e){let t=!1;const n=(e??"*").split("").map(s=>/\s/.test(s)&&!t?"":(s==='"'&&(t=!t),s)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:s,referencedTable:i=s}={}){const o=i?`${i}.order`:"order",l=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${l?`${l},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const s=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:s=n}={}){const i=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(o,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
84explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){var l;const u=[e?"analyze":null,t?"verbose":null,n?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),f=(l=this.headers.get("Accept"))!==null&&l!==void 0?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${f}"; options=${u};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const E1=new RegExp("[,()]");var vl=class extends o${throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(s=>typeof s=="string"&&E1.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(s=>typeof s=="string"&&E1.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${o}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const s=n?`${n}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},l$=class{constructor(e,{headers:t={},schema:n,fetch:s,urlLengthLimit:i=8e3,retry:o}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=s,this.urlLengthLimit=i,this.retry=o}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:s}=t??{},i=n?"HEAD":"GET";let o=!1;const l=(e??"*").split("").map(h=>/\s/.test(h)&&!o?"":(h==='"'&&(o=!o),h)).join(""),{url:u,headers:f}=this.cloneRequestState();return u.searchParams.set("select",l),s&&f.append("Prefer",`count=${s}
84`),new vl({method:i,url:u,headers:f,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var s;const i="POST",{url:o,headers:l}=this.cloneRequestState();if(t&&l.append("Prefer",`count=${t}`),n||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((f,h)=>f.concat(Object.keys(h)),[]);if(u.length>0){const f=[...new Set(u)].map(h=>`"${h}"`);o.searchParams.set("columns",f.join(","))}}return new vl({method:i,url:o,headers:l,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:s,defaultToNull:i=!0}={}){var o;const l="POST",{url:u,headers:f}=this.cloneRequestState();if(f.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&u.searchParams.set("on_conflict",t),s&&f.append("Prefer",`count=${s}`),i||f.append("Prefer","missing=default"),Array.isArray(e)){const h=e.reduce((p,m)=>p.concat(Object.keys(m)),[]);if(h.length>0){const p=[...new Set(h)].map(m=>`"${m}"`);u.searchParams.set("columns",p.join(","))}}return new vl({method:l,url:u,headers:f,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const s="PATCH",{url:i,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new vl({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:s,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new vl({method:n,url:s,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function c$(e,t){if(Eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(Eu(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u$(e){var t=c$(e,"string");return Eu(t)=="symbol"?t:t+""}function d$(e,t,n){return(t=u$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,s)}return n}function zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T1(Object(n),!0).forEach(function(s){d$(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T1(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}var f$=class NO{constructor(t,{headers:n={},schema:s,fetch:i,timeout:o,urlLengthLimit:l=8e3,retry:u}={}){this.url=t,this.headers=new Headers(n),this.schemaName=s,this.urlLengthLimit=l;const f=i??globalThis.fetch;o!==void 0&&o>0?this.fetch=(h,p)=>{const m=new AbortController,b=setTimeout(()=>m.abort(),o),w=p?.signal;if(w){if(w.aborted)return clearTimeout(b),f(h,p);const x=()=>{clearTimeout(b),m.abort()};return w.addEventListener("abort",x,{once:!0}),f(h,zf(zf({},p),{},{signal:m.signal})).finally(()=>{clearTimeout(b),w.removeEventListener("abort",x)})}return f(h,zf(zf({},p),{},{signal:m.signal})).finally(()=>clearTimeout(b))}:this.fetch=f,this.retry=u}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new l$(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new NO(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:s=!1,get:i=!1,count:o}={}){var l;let u;const f=new URL(`${this.url}/rpc/${t}`);let h;const p=w=>w!==null&&typeof w=="object"&&(!Array.isArray(w)||w.some(p)),m=s&&Object.values(n).some(p);m?(u="POST",h=n):s||i?(u=s?"HEAD":"GET",Object.entries(n).filter(([w,x])=>x!==void 0).map(([w,x])=>[w,Array.isArray(x)?`{${x.join(",")}}`:`${x}
84`]).forEach(([w,x])=>{f.searchParams.append(w,x)})):(u="POST",h=n);const b=new Headers(this.headers);return m?b.set("Prefer",o?`count=${o},return=minimal`:"return=minimal"):o&&b.set("Prefer",`count=${o}`),new vl({method:u,url:f,headers:b,schema:this.schemaName,body:h,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class h${constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const s=typeof global<"u"?global:void 0;if(s&&typeof s.WebSocket<"u")return{type:"native",wsConstructor:s.WebSocket};if(typeof globalThis<"u"&&typeof n.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&n.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const i=globalThis.process;if(i){const o=i.versions;if(o&&o.node)return{type:"unsupported",error:"Node.js detected but native WebSocket not found.",workaround:"Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option."}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
85
86Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{return this.detectEnvironment().type==="native"}catch{return!1}}}const p$="2.110.0",m$=`realtime-js/${p$}`,g$="1.0.0",IO="2.0.0",y$=IO,v$=1e4,b$=100,Bi={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},PO={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},nb={connecting:"connecting",closing:"closing",closed:"closed"};class w${constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let s=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(s))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,s;const i=(s=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&s!==void 0?s:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var n,s;const i=(s=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&s!==void 0?s:{},l=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,l)}_encodeUserBroadcastPush(t,n,s){var i,o;const l=t.topic,u=(i=t.ref)!==null&&i!==void 0?i:"",f=(o=t.join_ref)!==null&&o!==void 0?o:"",h=t.payload.event,p=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},m=Object.keys(p).length===0?"":JSON.stringify(p);if(f.length>255)throw new Error(`joinRef length ${f.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`ref length ${u.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`topic length ${l.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`userEvent length ${h.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`metadata length ${m.length} exceeds maximum of 255`);const b=this.USER_BROADCAST_PUSH_META_LENGTH+f.length+u.length+l.length+h.length+m.length,w=new ArrayBuffer(this.HEADER_LENGTH+b);let x=new DataView(w),S=0;x.setUint8(S++,this.KINDS.userBroadcastPush),x.setUint8(S++,f.length),x.setUint8(S++,u.length),x.setUint8(S++,l.length),x.setUint8(S++,h.length),x.setUint8(S++,m.length),x.setUint8(S++,n),Array.from(f,k=>
86x.setUint8(S++,k.charCodeAt(0))),Array.from(u,k=>x.setUint8(S++,k.charCodeAt(0))),Array.from(l,k=>x.setUint8(S++,k.charCodeAt(0))),Array.from(h,k=>x.setUint8(S++,k.charCodeAt(0))),Array.from(m,k=>x.setUint8(S++,k.charCodeAt(0)));var _=new Uint8Array(w.byteLength+s.byteLength);return _.set(new Uint8Array(w),0),_.set(new Uint8Array(s),w.byteLength),_.buffer}decode(t,n){if(this._isArrayBuffer(t)){let s=this._binaryDecode(t);return n(s)}if(typeof t=="string"){const s=JSON.parse(t),[i,o,l,u,f]=s;return n({join_ref:i,ref:o,topic:l,event:u,payload:f})}return n({})}_binaryDecode(t){const n=new DataView(t),s=n.getUint8(0),i=new TextDecoder;if(s===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,n,i)}_decodeUserBroadcast(t,n,s){const i=n.getUint8(1),o=n.getUint8(2),l=n.getUint8(3),u=n.getUint8(4);let f=this.HEADER_LENGTH+4;const h=s.decode(t.slice(f,f+i));f=f+i;const p=s.decode(t.slice(f,f+o));f=f+o;const m=s.decode(t.slice(f,f+l));f=f+l;const b=t.slice(f,t.byteLength),w=u===this.JSON_ENCODING?JSON.parse(s.decode(b)):b,x={type:this.BROADCAST_EVENT,event:p,payload:w};return l>0&&(x.meta=JSON.parse(m)),{join_ref:null,ref:null,topic:h,event:this.BROADCAST_EVENT,payload:x}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t?.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([s])=>n.includes(s)))}}var Rt;(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"})(Rt||(Rt={}));const R1=(e,t,n={})=>{var s;const i=(s=n.skipTypes)!==null&&s!==void 0?s:[];return t?Object.keys(t).reduce((o,l)=>(o[l]=x$(l,e,t,i),o),{}):{}},x$=(e,t,n,s)=>{const i=t.find(u=>u.name===e),o=i?.type,l=n[e];return o&&!s.includes(o)?MO(o,l):sb(l)},MO=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return A$(t,n)}switch(e){case Rt.bool:return S$(t);case Rt.float4:case Rt.float8:case Rt.int2:case Rt.int4:case Rt.int8:case Rt.numeric:case Rt.oid:return _$(t);case Rt.json:case Rt.jsonb:return k$(t);case Rt.timestamp:return C$(t);case Rt.abstime:case Rt.date:case Rt.daterange:case Rt.int4range:case Rt.int8range:case Rt.money:case Rt.reltime:case Rt.text:case Rt.time:case Rt.timestamptz:case Rt.timetz:case Rt.tsrange:case Rt.tstzrange:return sb(t);default:return sb(t)}},sb=e=>e,S$=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},_$=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},k$=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},A$=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,s=e[n];if(e[0]==="{"&&s==="}"){let o;const l=e.slice(1,n);try{o=JSON.parse("["+l+"]")}catch{o=l?l.split(","):[]}return o.map(u=>MO(t,u))}return e},C$=e=>typeof e=="string"?e.replace(" ","T"):e,DO=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var ou=e=>typeof e=="function"?e:function(){return e},E$=typeof self<"u"?self:null,bl=typeof window<"u"?window:null,cr=E$||bl||globalThis,T$="2.0.0",R$=1e4,O$=1e3,dr={connecting:0,open:1,closing:2,closed:3},Zn={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},qr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},rb={longpoll:"longpoll",websocket:"websocket"},j$={complete:4},ib="base64url.bearer.phx.",Vf=class{constructor(e,t,n,s){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 86
86oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),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()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},LO=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}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))}},N$=class{constructor(e,t,n){this.state=Zn.closed,this.topic=e,this.params=ou(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Vf(this,qr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new LO(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Zn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",s=>{this.state=Zn.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Zn.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=Zn.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Vf(this,qr.leave,ou({}),this.timeout).send(),this.state=Zn.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(qr.reply,(s,i)=>{this.trigger(this.replyEventName(i),s)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Zn.closed,this.bindings=[]}onClose(e){this.on(qr.close,e)}onError(e){return this.on(qr.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new Vf(this,e,function(){return t},n);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Zn.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(qr.close,"leave")},n=new Vf(this,qr.leave,ou({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,s){return this.topic!==e?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Zn.joining,this.joinPush.resend(e))}trigger(e,t,n,s){let i=this.onMessage(e,t,n,s);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(l=>l.event===e&&this.filterBindings(l,t,n));for(let l=0;l<o.length;l++)o[l].callback(i,n,s||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Zn.closed}isErrored(){return this.state===Zn.errored}isJoined(){return this.state===Zn.joined}isJoining(){return this.state===Zn.joining}isLeaving(){return this.state===Zn.leaving}},Hh=class{static request(e,t,n,s,i,o,l){if(cr.XDomainRequest){let u=new cr.XDomainRequest;return this.xdomainRequest(u,e,t,s,i,o,l)}else if(cr.XMLHttpRequest){let u=new cr.XMLHttpRequest;return this.xhrRequest(u,e,t,n,s,i,o,l)}else{if(cr.fetch&&cr.AbortController)return this.fetchRequest(e,t,n,s,i,o,l);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,s,i,o,l){let u={method:e,headers:n,body:s},f=null;return i&&(f=new AbortController,setTimeout(()=>f.abort(),i),u.signal=f.signal),cr.fetch(t,u).then(h=>h.text()).then(h=>this.parseJSON(h)).then(h=>l&&l(h)).catch(h=>{h.name==="AbortError"&&o?o():l&&l(null)}),f}static xdomainRequest(e,t,n,s,i,o,l){return e.timeout=i,e.open(t,n),e.onload=()=>{let u=this.parseJSON(e.responseText);l&&l(u)},o&&(e.ontimeout=o),e.onprogress=()=>{},e.send(s),e}static xhrRequest(e,t,n,s,i,o,l,u){e.open(t,n,!0),e.timeout=o;for(let[f,h]of Object.entries(s))e.setRequestHeader(f,h);return e.onerror=()=>u&&u(null),e.onreadystatechange=()=>{if(e.readyState===j$.complete&&u){let f=this.parseJSON(e.responseText);u(f)}},l&&(e.ontimeout=l),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=t?`${t}[${s}]`:s,o=e[s];typeof o=="object"?n.push(this.serialize(o,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(o))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},I$=e=>{let t="",n=new Uint8Array(e),s=n.byteLength;for(let i=0;i<s;i++)t+=String.fromCharCode(n[i]);return btoa(t)},ll=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(ib)&&(this.authToken=atob(t[1].slice(ib.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=dr.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+rb.websocket),"$1/"+rb.longpoll)}endpointURL(){return Hh.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=dr.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===dr.open||this.readyState===dr.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:s,messages:i}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=s}else n=0;switch(n){case 200:i.forEach(o=>{setTimeout(()=>this.onmessage({data:o}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=dr.open,this.onopen({}),this.poll();break;
86case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=I$(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
87`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=dr.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(e,t,n,s,i){let o,l=()=>{this.reqs.delete(o),s()};o=Hh.request(e,this.endpointURL(),t,n,this.timeout,l,u=>{this.reqs.delete(o),this.isActive()&&i(u)}),this.reqs.add(o)}},P$=class eu{constructor(t,n={}){let s=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(s.state,i=>{let{onJoin:o,onLeave:l,onSync:u}=this.caller;this.joinRef=this.channel.joinRef(),this.state=eu.syncState(this.state,i,o,l),this.pendingDiffs.forEach(f=>{this.state=eu.syncDiff(this.state,f,o,l)}),this.pendingDiffs=[],u()}),this.channel.on(s.diff,i=>{let{onJoin:o,onLeave:l,onSync:u}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=eu.syncDiff(this.state,i,o,l),u())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return eu.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,s,i){let o=this.clone(t),l={},u={};return this.map(o,(f,h)=>{n[f]||(u[f]=h)}),this.map(n,(f,h)=>{let p=o[f];if(p){let m=h.metas.map(S=>S.phx_ref),b=p.metas.map(S=>S.phx_ref),w=h.metas.filter(S=>b.indexOf(S.phx_ref)<0),x=p.metas.filter(S=>m.indexOf(S.phx_ref)<0);w.length>0&&(l[f]=h,l[f].metas=w),x.length>0&&(u[f]=this.clone(p),u[f].metas=x)}else l[f]=h}),this.syncDiff(o,{joins:l,leaves:u},s,i)}static syncDiff(t,n,s,i){let{joins:o,leaves:l}=this.clone(n);return s||(s=function(){}),i||(i=function(){}),this.map(o,(u,f)=>{let h=t[u];if(t[u]=this.clone(f),h){let p=t[u].metas.map(b=>b.phx_ref),m=h.metas.filter(b=>p.indexOf(b.phx_ref)<0);t[u].metas.unshift(...m)}s(u,h,f)}),this.map(l,(u,f)=>{let h=t[u];if(!h)return;let p=f.metas.map(m=>m.phx_ref);h.metas=h.metas.filter(m=>p.indexOf(m.phx_ref)<0),i(u,h,f),h.metas.length===0&&delete t[u]}),t}static list(t,n){return n||(n=function(s,i){return i}),this.map(t,(s,i)=>n(s,i))}static map(t,n){return Object.getOwnPropertyNames(t).map(s=>n(s,t[s]))}static clone(t){return JSON.parse(JSON.stringify(t))}},$f={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,s,i,o,l]=JSON.parse(e);return t({join_ref:n,ref:s,topic:i,event:o,payload:l})}},binaryEncode(e){let{join_ref:t,ref:n,event:s,topic:i,payload:o}=e,l=this.META_LENGTH+t.length+n.length+i.length+s.length,u=new ArrayBuffer(this.HEADER_LENGTH+l),f=new DataView(u),h=0;f.setUint8(h++,this.KINDS.push),f.setUint8(h++,t.length),f.setUint8(h++,n.length),f.setUint8(h++,i.length),f.setUint8(h++,s.length),Array.from(t,m=>f.setUint8(h++,m.charCodeAt(0))),Array.from(n,m=>f.setUint8(h++,m.charCodeAt(0))),Array.from(i,m=>f.setUint8(h++,m.charCodeAt(0))),Array.from(s,m=>f.setUint8(h++,m.charCodeAt(0)));var p=new Uint8Array(u.byteLength+o.byteLength);return p.set(new Uint8Array(u),0),p.set(new Uint8Array(o),u.byteLength),p.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,s);case this.KINDS.reply:return this.decodeReply(e,t,s);
87case this.KINDS.broadcast:return this.decodeBroadcast(e,t,s)}},decodePush(e,t,n){let s=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),l=this.HEADER_LENGTH+this.META_LENGTH-1,u=n.decode(e.slice(l,l+s));l=l+s;let f=n.decode(e.slice(l,l+i));l=l+i;let h=n.decode(e.slice(l,l+o));l=l+o;let p=e.slice(l,e.byteLength);return{join_ref:u,ref:null,topic:f,event:h,payload:p}},decodeReply(e,t,n){let s=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),l=t.getUint8(4),u=this.HEADER_LENGTH+this.META_LENGTH,f=n.decode(e.slice(u,u+s));u=u+s;let h=n.decode(e.slice(u,u+i));u=u+i;let p=n.decode(e.slice(u,u+o));u=u+o;let m=n.decode(e.slice(u,u+l));u=u+l;let b=e.slice(u,e.byteLength),w={status:m,response:b};return{join_ref:f,ref:h,topic:p,event:qr.reply,payload:w}},decodeBroadcast(e,t,n){let s=t.getUint8(1),i=t.getUint8(2),o=this.HEADER_LENGTH+2,l=n.decode(e.slice(o,o+s));o=o+s;let u=n.decode(e.slice(o,o+i));o=o+i;let f=e.slice(o,e.byteLength);return{join_ref:null,ref:null,topic:l,event:u,payload:f}}},M$=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||R$,this.transport=t.transport||cr.WebSocket||ll,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=cr&&cr.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=$f.encode.bind($f),this.defaultDecoder=$f.decode.bind($f),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==ll?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let s=null;bl&&bl.addEventListener&&(bl.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),s=this.connectClock)}),bl.addEventListener("pageshow",i=>{s===this.connectClock&&(s=null,this.connect())}),bl.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=i=>t.rejoinAfterMs?t.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>t.reconnectAfterMs?t.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(i,o,l)=>{console.log(`${i}: ${o}`,l)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=ou(t.params||{}),this.endPoint=`${e}/${rb.websocket}`,this.vsn=t.vsn||T$,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new LO(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return ll}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Hh.appendParams(Hh.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=ou(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==ll?this.connectWithF
vendor: 4,353 bytes, line 87
87allback(ll,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let s=this.onMessage(i=>{i.ref===t&&(this.off([s]),e(Date.now()-n))});return!0}transportName(e){return e===ll?"LongPoll":e.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${ib}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,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)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,s=!0,i,o,l=this.transportName(e),u=f=>{this.log("transport",`falling back to ${l}...`,f),this.off([i,o]),s=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${l}`))return u("memorized");this.fallbackTimer=setTimeout(u,t),o=this.onError(f=>{this.log("transport","error",f),s&&!n&&(clearTimeout(this.fallbackTimer),u(f))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!s){let f=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${f}`,"true"),this.log("transport",`established ${f} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(u,t),this.ping(f=>{this.log("transport","connected to primary after",f),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),O$,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const s=this.conn;this.waitForBufferDone(s,()=>{t?s.close(t,n||""):s.close(),this.waitForSocketClosed(s,()=>{this.conn===s&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===dr.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
87triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(qr.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case dr.connecting:return"connecting";case dr.open:return"open";case dr.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new N$(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:s,ref:i,join_ref:o}=e;this.log("push",`${t} ${n} (${o}, ${i})`,s)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:s,payload:i,ref:o,join_ref:l}=t;if(o&&o===this.pendingHeartbeatRef){const u=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.status==="ok"?"ok":"error",u)}catch(f){this.log("error","error in heartbeat callback",f)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${n} ${s} ${o&&"("+o+")"||""}`.trim(),i);for(let u=0;u<this.channels.length;u++){const f=this.channels[u];f.isMember(n,s,i,l)&&f.trigger(s,i,o,l)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,s])=>{try{s(...t)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class lu{constructor(t,n){const s=L$(n);this.presence=new P$(t.getChannel(),s),this.presence.onJoin((i,o,l)=>{const u=lu.onJoinPayload(i,o,l);t.getChannel().trigger("presence",u)}),this.presence.onLeave((i,o,l)=>{const u=lu.onLeavePayload(i,o,l);t.getChannel().trigger("presence",u)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return lu.transformState(this.presence.state)}static transformState(t){return t=D$(t),Object.getOwnPropertyNames(t).reduce((n,s)=>{const i=t[s];return n[s]=fh(i),n},{})}static onJoinPayload(t,n,s){const i=O1(n),o=fh(s);return{event:"join",key:t,currentPresences:i,newPresences:o}}static onLeavePayload(t,n,s){const i=O1(n),o=fh(s);return{event:"leave",key:t,currentPresences:i,leftPresences:o}}}function fh(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function D$(e){return JSON.parse(JSON.stringify(e))}function L$(e){return e?.events&&{events:e.events}}function O1(e){return e?.metas?fh(e):[]}var j1;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(j1||(j1={}));class B${get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new lu(this.channel.channelAdapter,n)}}function U$(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
87if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const n=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${n}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class z${constructor(t,n,s){const i=V$(s);this.channel=t.getSocket().channel(n,i),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,s){let i;try{i=this.channel.push(t,n,s)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>b$){const o=this.channel.pushBuffer.shift();o.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${o.event}`,o.payload())}return i}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===Bi.joined}isJoined(){return this.state===Bi.joined}isJoining(){return this.state===Bi.joining}isClosed(){return this.state===Bi.closed}isLeaving(){return this.state===Bi.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function V$(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}const $$=/[,()"\\]/,F$=e=>$$.test(e)||e!==e.trim(),H$=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,N1=e=>{const t=e===null?"null":String(e);return F$(t)?H$(t):t},q$=e=>e===null?"null":String(e),W$=(e,t)=>{if(e==="in"){const n=Array.isArray(t)?t:[t];if(n.length===0)throw new Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(n)).map(i=>N1(i)).join(",")})`}return e==="is"?`is.${q$(t)}`:`${e}.${N1(t)}`};class G${constructor(){this.filters=[]}add(t,n,s,i=!1){const o=i?"not.":"";return this.filters.push(`${t}=${o}${W$(n,s)}`),this}eq(t,n){return this.add(t,"eq",n)}neq(t,n){return this.add(t,"neq",n)}gt(t,n){return this.add(t,"gt",n)}gte(t,n){return this.add(t,"gte",n)}lt(t,n){return this.add(t,"lt",n)}lte(t,n){return this.add(t,"lte",n)}in(t,n){return this.add(t,"in",n)}like(t,n){return this.add(t,"like",n)}ilike(t,n){return this.add(t,"ilike",n)}match(t,n){return this.add(t,"match",n)}imatch(t,n){return this.add(t,"imatch",n)}is(t,n){return this.add(t,"is",n)}isDistinct(t,n){return this.add(t,"isdistinct",n)}not(t,n,s){return this.add(t,n,s,!0)}build(){return this.filters.join(",")}toString(){return this.build()}}var I1;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(I1||(I1={}));var kl;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(kl||(kl={}));var Wr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Wr||(Wr={}));class cu{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},s){var i,o;if(this.topic=t,this.params=n,this.socket=s,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new z$(this.socket.socketAdapter,t,this.params),this.presence=new B$(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=DO(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((o=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||o===void 0)&&o.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,n=this.timeout){var s,i,o;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:l,presence:u,private:f}}=this.params,h=(i=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(w=>w.filter))!==null&&i!==void 0?i:[],p=!!this.bindings[kl.PRESENCE]&&this.bindings[kl.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,m={},b={broadcast:l,presence:Object.assign(Object.assign({},u),{enabled:p}),postgres_changes:h,private:f};this.socket.accessTokenValue&&(m.access_token=this.socket.accessTokenValue),this._onError(w=>{t?.(Wr.CHANNEL_ERROR,U$(w))}),this._onClose(()=>t?.(Wr.CLOSED)),this.updateJoinPayload(Object.assign({config:b},m)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:w})=>{if(this.socket._isManualToken()||this.socket.setAuth(),w===void 0){t?.(Wr.SUBSCRIBED);return}this._updatePostgresBindings(w,t)}).receive("error",w=>{this.state=Bi.errored;const x=Object.values(w).join(", ")||"error";t?.(Wr.CHANNEL_ERROR,new Error(x,{cause:w}))}).receive("timeout",()=>{t?.(Wr.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var s;const i=this.bindings.postgres_changes,o=(s=i?.length)!==null&&s!==void 0?s:0,l=[];for(let u=0;u<o;u++){const f=i[u],{filter:{event:h,schema:p,table:m,filter:b}}=f,w=t&&t[u];if(w&&w.event===h&&cu.isFilterValueEqual(w.schema,p)&&cu.isFilterValueEqual(w.table,m)&&cu.isFilterValueEqual(w.filter,b))l.push(Object.assign(Object.assign({},f),{id:w.id}));else{this.unsubscribe(),this.state=Bi.errored,n?.(Wr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=l,this.state!=Bi.errored&&n&&n(Wr.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,s){const i=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),o=t===kl.PRESENCE||t===kl.POSTGRES_CHANGES;if(i&&o)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,s)}async httpSend(t,n,s={}){var i;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const o=n instanceof ArrayBuffer||ArrayBuffer.isView(n),l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":o?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const u=new URL(this.broadcastEndpointURL);u.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(t)}`,this.private&&u.searchParams.set("private","true");const f={method:"POST",headers:l,body:o?n:JSON.stringify(n)},h=await this._fetchWithTimeout(u.toString(),f,(i=s.timeout)!==null&&i!==void 0?i:this.timeout);if(h.status===202)return{success:!0};if(h.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realt
87ime-js/migrations/httpsend-server-version.md"));let p=h.statusText;try{const m=await h.json();p=m.error||m.message||p}catch{}return Promise.reject(new Error(p))}async send(t,n={}){var s,i;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:o,payload:l}=t,u={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(u.Authorization=`Bearer ${this.socket.accessTokenValue}`);const f={method:"POST",headers:u,body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:l,private:this.private}]})};try{const h=await this._fetchWithTimeout(this.broadcastEndpointURL,f,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);return await((i=h.body)===null||i===void 0?void 0:i.cancel()),h.ok?"ok":"error"}catch(h){return h instanceof Error&&h.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var l,u,f;const h=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((f=(u=(l=this.params)===null||l===void 0?void 0:l.config)===null||u===void 0?void 0:u.broadcast)===null||f===void 0)&&f.ack)&&o("ok"),h.receive("ok",()=>o("ok")),h.receive("error",()=>o("error")),h.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,s){const i=new AbortController,o=setTimeout(()=>i.abort(),s),l=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(o),l}_on(t,n,s){const i=t.toLocaleLowerCase(),o=n?.filter;(o instanceof G$||typeof o=="object"&&o!==null&&typeof o.build=="function")&&(n=Object.assign(Object.assign({},n),{filter:o.build()}));const l=this.channelAdapter.on(t,s),u={type:i,filter:n,callback:s,ref:l};return this.bindings[i]?this.bindings[i].push(u):this.bindings[i]=[u],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,s)=>{var i,o,l,u,f,h,p;const m=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(m,s))return!1;const b=(i=this.bindings[m])===null||i===void 0?void 0:i.find(w=>w.ref===t.ref);if(!b)return!0;if(["broadcast","presence","postgres_changes"].includes(m))if("id"in b){const w=b.id,x=(o=b.filter)===null||o===void 0?void 0:o.event;return w&&((l=n.ids)===null||l===void 0?void 0:l.includes(w))&&(x==="*"||x?.toLocaleLowerCase()===((u=n.data)===null||u===void 0?void 0:u.type.toLocaleLowerCase()))}else{const w=(h=(f=b?.filter)===null||f===void 0?void 0:f.event)===null||h===void 0?void 0:h.toLocaleLowerCase();return w==="*"||w===((p=n?.event)===null||p===void 0?void 0:p.toLocaleLowerCase())}else return b.type.toLocaleLowerCase()===m})}_notThisChannelEvent(t,n){const{close:s,error:i,leave:o,join:l}=PO;return n&&[s,i,o,l].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,s)=>{if(typeof n=="object"&&"ids"in n){const i=n.data,{schema:o,table:l,commit_timestamp:u,type:f,errors:h}=i;return Object.assign(Object.assign({},{schema:o,table:l,commit_timestamp:u,eventType:f,new:{},old:{},errors:h}),this._getPayloadRecords(i))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const s of t.bindings[n])this._on(s.type,s.filter,s.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=R1(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=R1(t.columns,t.old_record)),n}}class K${constructor(t,n){this.socket=new M$(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,s,i=1e4){return new Promise(o=>{setTimeout(()=>
87o("timeout"),i),this.socket.disconnect(()=>{t(),o("ok")},n,s)})}push(t){this.socket.push(t)}log(t,n,s){this.socket.log(t,n,s)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==nb.connecting}isDisconnecting(){return this.socket.connectionState()==nb.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const P1={HEARTBEAT_INTERVAL:25e3},Y$=[1e3,2e3,5e3,1e4],Z$=1e4;function X$(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var n;return(n=Array.from(e.keys())[t])!==null&&n!==void 0?n:null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function J$(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return X$()}const Q$=`
88  addEventListener("message", (e) => {
89    if (e.data.event === "start") {
90      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
91    }
92  });`;class eF{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var s;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={},this.ref=0,this.serializer=new w$,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=o=>o?(...l)=>o(...l):(...l)=>fetch(...l),!(!((s=n?.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const i=this._initializeOptions(n);this.socketAdapter=new K$(t,i),this.httpEndpoint=DO(t),this.fetch=this._resolveFetch(n?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),n}async removeAllChannels(){const t=this.channels.map(async s=>{const i=await s.unsubscribe();return s.teardown(),i}),n=await Promise.all(t);return await this.disconnect(),n}log(t,n,s){this.socketAdapter.log(t,n,s)}connectionState(){return this.socketAdapter.connectionState()||nb.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const s=`realtime:${t}`,i=this.getChannels().find(o=>o.topic===s);if(i)return i;{const o=new cu(`realtime:${t}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(o),o}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
92this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let n,s=!1;if(t)n=t,s=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;s?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const o={access_token:n,version:m$};n&&i.updateJoinPayload(o),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(PO.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,s)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,s)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const s=new Blob([Q$],{type:"application/javascript"});n=URL.createObjectURL(s)}return n}_initializeOptions(t){var n,s,i,o,l,u,f,h,p,m,b,w;this.worker=(n=t?.worker)!==null&&n!==void 0?n:!1,this.accessToken=(s=t?.accessToken)!==null&&s!==void 0?s:null;const x={};x.timeout=(i=t?.timeout)!==null&&i!==void 0?i:v$,x.heartbeatIntervalMs=(o=t?.heartbeatIntervalMs)!==null&&o!==void 0?o:P1.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(l=t?.disconnectOnEmptyChannelsAfterMs)!==null&&l!==void 0?l:2*((u=t?.heartbeatIntervalMs)!==null&&u!==void 0?u:P1.HEARTBEAT_INTERVAL),x.transport=(f=t?.transport)!==null&&f!==void 0?f:h$.getWebSocketConstructor(),x.params=t?.params,x.logger=t?.logger,x.heartbeatCallback=this._wrapHeartbeatCallback(t?.heartbeatCallback),x.sessionStorage=(h=t?.sessionStorage)!==null&&h!==void 0?h:J$(),x.reconnectAfterMs=(p=t?.reconnectAfterMs)!==null&&p!==void 0?p:(C=>Y$[C-1]||Z$);let S,_;const k=(m=t?.vsn)!==null&&m!==void 0?m:y$;switch(k){case g$:S=(C,R)=>R(JSON.stringify(C)),_=(C,R)=>R(JSON.parse(C));break;case IO:S=this.serializer.encode.bind(this.serializer),_=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${x.vsn}`)}if(x.vsn=k,x.encode=(b=t?.encode)!==null&&b!==void 0?b:S,x.decode=(w=t?.decode)!==null&&w!==void 0?w:_,x.beforeReconnect=this._reconnectAuth.bind(this),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,x.params=Object.assign(Object.assign({},x.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t?.workerUrl,x.autoSendHeartbeat=!this.worker}return x}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
92var Tu=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function tF(e,t,n){const s=new URL(t,e);if(n)for(const[i,o]of Object.entries(n))o!==void 0&&s.searchParams.set(i,o);return s.toString()}async function nF(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function sF(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:s,query:i,body:o,headers:l}){const u=tF(e.baseUrl,s,i),f=await nF(e.auth),h=await t(u,{method:n,headers:{...o?{"Content-Type":"application/json"}:{},...f,...l},body:o?JSON.stringify(o):void 0}),p=await h.text(),m=(h.headers.get("content-type")||"").includes("application/json"),b=m&&p?JSON.parse(p):p;if(!h.ok){const w=m?b:void 0,x=w?.error;throw new Tu(x?.message??`Request failed with status ${h.status}`,{status:h.status,icebergType:x?.type,icebergCode:x?.code,details:w})}return{status:h.status,headers:h.headers,data:b}}}}function Ff(e){return e.join("�")}var rF=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Ff(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(s=>({namespace:s}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ff(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ff(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ff(e.namespace)}`}),!0}catch(t){if(t instanceof Tu&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Tu&&n.status===409)return;throw n}}};function cl(e){return e.join("�")}var iF=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Tu&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Tu&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},aF=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=sF({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new rF(this.client,t),this.tableOps=new iF(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
92async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Ru(e){"@babel/helpers - typeof";return Ru=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},Ru(e)}function oF(e,t){if(Ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(Ru(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lF(e){var t=oF(e,"string");return Ru(t)=="symbol"?t:t+""}function cF(e,t,n){return(t=lF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,s)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M1(Object(n),!0).forEach(function(s){cF(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M1(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}var Mp=class extends Error{constructor(e,t="storage",n,s){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Dp(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var ab=class extends Mp{constructor(e,t,n,s="storage"){super(e,s,t,n),this.name=s==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return De({},super.toJSON())}},BO=class extends Mp{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function qh(e,t,n){const s=De({},e),i=t.toLowerCase();for(const o of Object.keys(s))o.toLowerCase()===i&&delete s[o];return s[i]=n,s}function uF(e){const t={};for(const[n,s]of Object.entries(e))t[n.toLowerCase()]=s;return t}const dF=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),fF=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ob=e=>{if(Array.isArray(e))return e.map(n=>ob(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,s])=>{const i=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[i]=ob(s)}),t},hF=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),D1=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const n=t.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(e)},pF=async(e,t,n,s)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const i=e;let o=parseInt(String(i.status),10);Number.isFinite(o)||(o=500),i.json().then(l=>{const u=l?.statusCode||l?.code||o+"";t(new ab(D1(l),o,u,s))}).catch(()=>{const l=o+"";t(new ab(i.statusText||`HTTP ${o}
92 error`,o,l,s))})}else t(new BO(D1(e),e,s))},mF=(e,t,n,s)=>{const i={method:e,headers:t?.headers||{}};if(e==="GET"||e==="HEAD"||!s)return De(De({},i),n);if(fF(s)){var o;const l=t?.headers||{};let u;for(const[f,h]of Object.entries(l))f.toLowerCase()==="content-type"&&(u=h);i.headers=qh(l,"Content-Type",(o=u)!==null&&o!==void 0?o:"application/json"),i.body=JSON.stringify(s)}else i.body=s;return t?.duplex&&(i.duplex=t.duplex),De(De({},i),n)};async function Kc(e,t,n,s,i,o,l){return new Promise((u,f)=>{e(n,mF(t,s,i,o)).then(h=>{if(!h.ok)throw h;if(s?.noResolveJson)return h;if(l==="vectors"){const p=h.headers.get("content-type");if(h.headers.get("content-length")==="0"||h.status===204)return{};if(!p||!p.includes("application/json"))return{}}return h.json()}).then(h=>u(h)).catch(h=>pF(h,f,s,l))})}function UO(e="storage"){return{get:async(t,n,s,i)=>Kc(t,"GET",n,s,i,void 0,e),post:async(t,n,s,i,o)=>Kc(t,"POST",n,i,o,s,e),put:async(t,n,s,i,o)=>Kc(t,"PUT",n,i,o,s,e),head:async(t,n,s,i)=>Kc(t,"HEAD",n,De(De({},s),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,s,i,o)=>Kc(t,"DELETE",n,i,o,s,e)}}const gF=UO("storage"),{get:Ou,post:Ys,put:lb,head:yF,remove:ju}=gF,ps=UO("vectors");var Fl=class{constructor(e,t={},n,s="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=uF(t),this.fetch=dF(n),this.namespace=s}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=qh(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Dp(n))return{data:null,error:n};throw n}}};let zO;zO=Symbol.toStringTag;var vF=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[zO]="StreamDownloadBuilder",this.promise=null}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Dp(t))return{data:null,error:t};throw t}}};let VO;VO=Symbol.toStringTag;var bF=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[VO]="BlobDownloadBuilder",this.promise=null}asStream(){return new vF(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Dp(t))return{data:null,error:t};throw t}}};const Fy={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},L1={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var wF=class extends Fl{constructor(e,t={},n,s){super(e,t,s,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,s){var i=this;return i.handleOperation(async()=>{let o;const l=De(De({},L1),s);let u=De(De({},i.headers),e==="POST"&&{"x-upsert":String(l.upsert)});const f=l.metadata;if(typeof Blob<"u"&&n instanceof Blob?(o=new FormData,o.append("cacheControl",l.cacheControl),f&&o.append("metadata",i.encodeMetadata(f)),o.append("",n)):typeof FormData<"u"&&n instanceof FormData?(o=n,o.has("cacheControl")||o.append("cacheControl",l.cacheControl),f&&!o.has("metadata")&&o.append("metadata",i.encodeMetadata(f))):(o=n,u["cache-control"]=`max-age=${l.cacheControl}`,u["content-type"]=l.contentType,f&&(u["x-metadata"]=i.toBase64(i.encodeMetadata(f))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!l.duplex&&(l.duplex="half")),s?.headers)for(const[b,w]of Object.entries(s.headers))u=qh(u,b,w);const h=i._removeEmptyFolders(t),p=i._getFinalPath(h),m=await(e=="PUT"?lb:Ys)(i.fetch,`${i.url}/object/${p}`,o,De({headers:u},l?.duplex?{duplex:l.duplex}:{}));return{path:h,id:m.Id,fullPath:m.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,s){var i=this;const o=i._removeEmptyFolders(e),l=i._getFinalPath(o),u=new URL(i.url+`/object/upload/sign/${l}`);return u.searchParams.set("token",t),i.handleOperation(async()=>{let f;const h=De(De({},L1),s);let p=De(De({},i.headers),{"x-upsert":String(h.upsert)});const m=h.metadata;if(typeof Blob<"u"&&n instanceof Blob?(f=new FormData,f.append("cacheControl",h.cacheControl),m&&f.append("metadata",i.encodeMetadata(m)),f.append("",n)):typeof FormData<"u"&&n instanceof FormData?(f=n,f.has("cacheControl")||f.append("cacheControl",h.cacheControl),m&&!f.has("metadata")&&f.append("metadata",i.encodeMetadata(m))):(f=n,p["cache-control"]=`max-age=${h.cacheControl}`,p["content-type"]=h.contentType,m&&(p["x-metadata"]=i.toBase64(i.encodeMetadata(m))),(typeof ReadableStream<"u"&&f instanceof ReadableStream||f&&typeof f=="object"&&"pipe"in f&&typeof f.pipe=="function")&&!h.duplex&&(h.duplex="half")),s?.headers)for(const[b,w]of Object.entries(s.headers))p=qh(p,b,w);return{path:o,fullPath:(await lb(i.fetch,u.toString(),f,De({headers:p},h?.duplex?{duplex:h.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let s=n._getFinalPath(e);const i=De({},n.headers);t?.upsert&&(i["x-upsert"]="true");const o=await Ys(n.fetch,`${n.url}/object/upload/sign/${s}`,{},{headers:i}),l=new URL(n.url+o.url),u=l.searchParams.get("token");if(!u)throw new Mp("No token returned by API");return{signedUrl:l.toString(),path:e,token:u}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var s=this;return s.handleOperation(async()=>await Ys(s.fetch,`${s.url}/object/move`,{bucketId:s.bucketId,sourceKey:e,destinationKey:t,de
92stinationBucket:n?.destinationBucket},{headers:s.headers}))}async copy(e,t,n){var s=this;return s.handleOperation(async()=>({path:(await Ys(s.fetch,`${s.url}/object/copy`,{bucketId:s.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n?.destinationBucket},{headers:s.headers})).Key}))}async createSignedUrl(e,t,n){var s=this;return s.handleOperation(async()=>{let i=s._getFinalPath(e);const o=typeof n?.transform=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let l=await Ys(s.fetch,`${s.url}/object/sign/${i}`,De({expiresIn:t},o?{transform:n.transform}:{}),{headers:s.headers});const u=new URLSearchParams;n?.download&&u.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&u.set("cacheNonce",String(n.cacheNonce));const f=u.toString();return{signedUrl:encodeURI(`${s.url}${l.signedURL}${f?`&${f}`:""}`)}})}async createSignedUrls(e,t,n){var s=this;return s.handleOperation(async()=>{const i=await Ys(s.fetch,`${s.url}/object/sign/${s.bucketId}`,{expiresIn:t,paths:e},{headers:s.headers}),o=new URLSearchParams;n?.download&&o.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&o.set("cacheNonce",String(n.cacheNonce));const l=o.toString();return i.map(u=>De(De({},u),{},{signedUrl:u.signedURL?encodeURI(`${s.url}${u.signedURL}${l?`&${l}`:""}`):null}))})}download(e,t,n){const s=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",i=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(i,t.transform),t?.cacheNonce!=null&&i.set("cacheNonce",String(t.cacheNonce));const o=i.toString(),l=this._getFinalPath(e),u=()=>Ou(this.fetch,`${this.url}/${s}/${l}${o?`?${o}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new bF(u,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>ob(await Ou(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await yF(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(Dp(i)){var s;const o=i instanceof ab?i.status:i instanceof BO?(s=i.originalError)===null||s===void 0?void 0:s.status:void 0;if(o!==void 0&&[400,404].includes(o))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const n=this._getFinalPath(e),s=new URLSearchParams;t?.download&&s.set("download",t.download===!0?"":t.download),t?.transform&&this.applyTransformOptsToQuery(s,t.transform),t?.cacheNonce!=null&&s.set("cacheNonce",String(t.cacheNonce));const i=s.toString(),o=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${n}`)+(i?`?${i}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await ju(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,n){var s=this;return s.handleOperation(async()=>{const i=s._getFinalPath(e),o=new URLSearchParams;t?.transformations&&o.set("transformations","true");const l=o.toString();return await ju(s.fetch,`${s.url}/cdn/${i}${l?`?${l}`:""}`,{},{headers:s.headers},n)})}async list(e,t,n){var s=this;return s.handleOperation(async()=>{const i=t?.sortBy?De(De({},Fy.sortBy),t.sortBy):Fy.sortBy,o=De(De(De({},Fy),t),{},{sortBy:i,prefix:e||""});return await Ys(s.fetch,`${s.url}/object/list/${s.bucketId}`,o,{headers:s.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const s=De({},e);return await Ys(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,s,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("qual
92ity",t.quality.toString()),e}};const xF="2.110.0",sd={"X-Client-Info":`storage-js/${xF}`};var SF=class extends Fl{constructor(e,t={},n,s){const i=new URL(e);s?.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const o=i.href.replace(/\/$/,""),l=De(De({},sd),t);super(o,l,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Ou(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ou(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Ys(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await lb(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Ys(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ju(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async purgeBucketCache(e,t,n){var s=this;return s.handleOperation(async()=>{const i=new URLSearchParams;t?.transformations&&i.set("transformations","true");const o=i.toString();return await ju(s.fetch,`${s.url}/cdn/${e}${o?`?${o}`:""}`,{},{headers:s.headers},n)})}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},_F=class extends Fl{constructor(e,t={},n){const s=e.replace(/\/$/,""),i=De(De({},sd),t);super(s,i,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Ys(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;e?.limit!==void 0&&n.set("limit",e.limit.toString()),e?.offset!==void 0&&n.set("offset",e.offset.toString()),e?.sortColumn&&n.set("sortColumn",e.sortColumn),e?.sortOrder&&n.set("sortOrder",e.sortOrder),e?.search&&n.set("search",e.search);const s=n.toString(),i=s?`${t.url}/bucket?${s}`:`${t.url}/bucket`;return await Ou(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ju(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!hF(e))throw new Mp("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new aF({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),s=this.shouldThrowOnError;return new Proxy(n,{get(i,o){const l=i[o];return typeof l!="function"?l:async(...u)=>{try{return{data:await l.apply(i,u),error:null}}catch(f){if(s)throw f;return{data:null,error:f}}}}})}},kF=class extends Fl{constructor(e,t={},n){const s=e.replace(/\/$/,""),i=De(De({},sd),{},{"Content-Type":"application/json"},t);super(s,i,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await ps.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await ps.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},AF=class extends Fl{constructor(e,t={},n){const s=e.replace(/\/$/,""),i=De(De({},sd),{},{"Content-Type":"application/json"},t);super(s,i,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
92if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},CF=class extends Fl{constructor(e,t={},n){const s=e.replace(/\/$/,""),i=De(De({},sd),{},{"Content-Type":"application/json"},t);super(s,i,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ps.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},EF=class extends CF{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new TF(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},TF=class extends kF{constructor(e,t,n,s){super(e,t,s),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,De(De({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,De(De({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new RF(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},RF=class extends AF{constructor(e,t,n,s,i){super(e,t,i),this.vectorBucketName=n,this.indexName=s}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,De(De({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,De(De({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,De(De({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,De(De({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,De(De({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},OF=class extends SF{constructor(e,t={},n,s){super(e,t,n,s)}from(e){return new wF(this.url,this.headers,e,this.fetch)}get vectors(){return new EF(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new _F(this.url+"/iceberg",this.headers,this.fetch)}};const $O="2.110.0",Gr=30*1e3,tu=3,Hy=tu*Gr,jF=2*Gr,NF="http://localhost:9999",IF="supabase.auth.token",PF={"X-Client-Info":`gotrue-js/${$O}`},cb="X-Supabase-Api-Version",FO={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},MF=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,DF=600*1e3;class Nu extends Error{constructor(t,n,s){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=s}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function we(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class LF extends Nu{constructor(t,n,s){super(t,n,s),this.name="AuthApiError",this.status=n,this.code=s}}function BF(e){return we(e)&&e.name==="AuthApiError"}class Xs extends Nu{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class wr extends Nu{constructor(t,n,s,i){super(t,s,i),this.name=n,this.status=s}}class yn extends wr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Hf(e){return we(e)&&e.name==="AuthSessionMissingError"}class ul extends wr{constructor(){super("Auth session or user missing","AuthInvalidToken
92ResponseError",500,void 0)}}class qf extends wr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Wf extends wr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function UF(e){return we(e)&&e.name==="AuthImplicitGrantRedirectError"}class B1 extends wr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class zF extends wr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class ub extends wr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function U1(e){return we(e)&&e.name==="AuthRetryableFetchError"}class z1 extends wr{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,"AuthRefreshDiscardedError",409,void 0)}}function VF(e){return we(e)&&e.name==="AuthRefreshDiscardedError"}class V1 extends wr{constructor(t,n,s){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Wh extends wr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Gh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),$1=` 	
93\r=`.split(""),$F=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<$1.length;t+=1)e[$1[t].charCodeAt(0)]=-2;for(let t=0;t<Gh.length;t+=1)e[Gh[t].charCodeAt(0)]=t;return e})();function F1(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;n(Gh[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;n(Gh[s]),t.queuedBits-=6}}function HO(e,t,n){const s=$F[e];if(s>-1)for(t.queue=t.queue<<6|s,t.queuedBits+=6;t.queuedBits>=8;)n(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 H1(e){const t=[],n=l=>{t.push(String.fromCodePoint(l))},s={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},o=l=>{qF(l,s,n)};for(let l=0;l<e.length;l+=1)HO(e.charCodeAt(l),i,o);return t.join("")}function FF(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 HF(e,t){for(let n=0;n<e.length;n+=1){let s=e.charCodeAt(n);if(s>55295&&s<=56319){const i=(s-55296)*1024&65535;s=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}FF(s,t)}}function qF(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let s=1;s<6;s+=1)if((e>>7-s&1)===0){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&&n(t.codepoint)}}function Il(e){const t=[],n={queue:0,queuedBits:0},s=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)HO(e.charCodeAt(i),n,s);return new Uint8Array(t)}function WF(e){const t=[];return HF(e,n=>t.push(n)),new Uint8Array(t)}function Fa(e){const t=[],n={queue:0,queuedBits:0},s=i=>{t.push(i)};return e.forEach(i=>F1(i,n,s)),F1(null,n,s),t.join("")}function GF(e){return Math.round(Date.now()/1e3)+e}function KF(){return Symbol("auth-callback")}const jn=()=>typeof window<"u"&&typeof document<"u",Ea={tested:!1,writable:!1},qO=()=>{if(!jn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ea.tested)return Ea.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Ea.tested=!0,Ea.writable=!0}catch{Ea.tested=!0,Ea.writable=!1}return Ea.writable};function YF(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
93h((i,o)=>{t[o]=i})}catch{}return n.searchParams.forEach((s,i)=>{t[i]=s}),t}const WO=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),ZF=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",wl=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Vs=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},Yt=async(e,t)=>{await e.removeItem(t)};class Lp{constructor(){this.promise=new Lp.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Lp.promiseConstructor=Promise;function Gf(e){const t=e.split(".");if(t.length!==3)throw new Wh("Invalid JWT structure");for(let s=0;s<t.length;s++)if(!MF.test(t[s]))throw new Wh("JWT not in base64url format");return{header:JSON.parse(H1(t[0])),payload:JSON.parse(H1(t[1])),signature:Il(t[2]),raw:{header:t[0],payload:t[1]}}}async function XF(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function JF(e,t){return new Promise((s,i)=>{(async()=>{for(let o=0;o<1/0;o++)try{const l=await e(o);if(!t(o,null,l)){s(l);return}}catch(l){if(!t(o,l)){i(l);return}}})()})}function QF(e){return("0"+e.toString(16)).substr(-2)}function eH(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=n.length;let i="";for(let o=0;o<56;o++)i+=n.charAt(Math.floor(Math.random()*s));return i}return crypto.getRandomValues(t),Array.from(t,QF).join("")}async function tH(e){const n=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(s);return Array.from(i).map(o=>String.fromCharCode(o)).join("")}async function nH(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await tH(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Ta(e,t,n=!1){const s=eH();let i=s;n&&(i+="/recovery"),await wl(e,`${t}-code-verifier`,i);const o=await nH(s);return[o,s===o?"plain":"s256"]}const sH=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function rH(e){const t=e.headers.get(cb);if(!t||!t.match(sH))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function iH(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 aH(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 oH=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Vr(e){if(!oH.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function qs(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function qy(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const s=n.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function lH(e,t){return new Proxy(e,{get:(n,s,i)=>{if(s==="__isInsecureUserWarningProxy")return!0;
93if(typeof s=="symbol"){const o=s.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,s,i)}return!t.value&&typeof s=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,s,i)}})}function q1(e){return JSON.parse(JSON.stringify(e))}const Ma=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},cH=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function W1(e){var t;if(!ZF(e))throw new ub(Ma(e),0);if(cH.includes(e.status))throw new ub(Ma(e),e.status);let n;try{n=await e.json()}catch(o){throw new Xs(Ma(o),o)}let s;const i=rH(e);if(i&&i.getTime()>=FO["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?s=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(s=n.error_code),s){if(s==="weak_password")throw new V1(Ma(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(s==="session_not_found")throw new yn}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((o,l)=>o&&typeof l=="string",!0))throw new V1(Ma(n),e.status,n.weak_password.reasons);throw new LF(Ma(n),e.status||500,s)}const uH=(e,t,n,s)=>{const i={method:e,headers:t?.headers||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),i.body=JSON.stringify(s),Object.assign(Object.assign({},i),n))};async function Oe(e,t,n,s){var i;const o=Object.assign({},s?.headers);o[cb]||(o[cb]=FO["2024-01-01"].name),s?.jwt&&(o.Authorization=`Bearer ${s.jwt}`);const l=(i=s?.query)!==null&&i!==void 0?i:{};s?.redirectTo&&(l.redirect_to=s.redirectTo);const u=Object.keys(l).length?"?"+new URLSearchParams(l).toString():"",f=await dH(e,t,n+u,{headers:o,noResolveJson:s?.noResolveJson},{},s?.body);return s?.xform?s?.xform(f):{data:Object.assign({},f),error:null}}async function dH(e,t,n,s,i,o){const l=uH(t,s,i,o);let u;try{u=await e(n,Object.assign({},l))}catch(f){throw console.error(f),new ub(Ma(f),0)}if(u.ok||await W1(u),s?.noResolveJson)return u;try{return await u.json()}catch(f){await W1(f)}}function Rs(e){var t;let n=null;pH(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=GF(e.expires_in)));const s=(t=e.user)!==null&&t!==void 0?t:typeof e?.id=="string"?e:null;return{data:{session:n,user:s},error:null}}function G1(e){const t=Rs(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,s)=>n&&typeof s=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Ui(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function fH(e){return{data:e,error:null}}function hH(e){const{action_link:t,email_otp:n,hashed_token:s,redirect_to:i,verification_type:o}=e,l=$l(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),u={action_link:t,email_otp:n,hashed_token:s,redirect_to:i,verification_type:o},f=Object.assign({},l);return{data:{properties:u,user:f},error:null}}function K1(e){return e}function pH(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const Wy=["global","local","others"];class mH{constructor({url:t="",headers:n={},fetch:s,experimental:i}){this.url=t,this.headers=n,this.fetch=WO(s),this.experimental=i??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}
93async signOut(t,n=Wy[0]){if(Wy.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Wy.join(", ")}`);try{return await Oe(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(s){if(we(s))return{data:null,error:s};throw s}}async inviteUserByEmail(t,n={}){try{return await Oe(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Ui})}catch(s){if(we(s))return{data:{user:null},error:s};throw s}}async generateLink(t){try{const{options:n}=t,s=$l(t,["options"]),i=Object.assign(Object.assign({},s),n);return"newEmail"in s&&(i.new_email=s?.newEmail,delete i.newEmail),await Oe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:hH,redirectTo:n?.redirectTo})}catch(n){if(we(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await Oe(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Ui})}catch(n){if(we(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,s,i,o,l,u,f;try{const h={nextPage:null,lastPage:0,total:0},p=await Oe(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(n=t?.page)===null||n===void 0?void 0:n.toString())!==null&&s!==void 0?s:"",per_page:(o=(i=t?.perPage)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""},xform:K1});if(p.error)throw p.error;const m=await p.json(),b=(l=p.headers.get("x-total-count"))!==null&&l!==void 0?l:0,w=(f=(u=p.headers.get("link"))===null||u===void 0?void 0:u.split(","))!==null&&f!==void 0?f:[];return w.length>0&&(w.forEach(x=>{const S=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(x.split(";")[1].split("=")[1]);h[`${_}Page`]=S}),h.total=parseInt(b)),{data:Object.assign(Object.assign({},m),h),error:null}}catch(h){if(we(h))return{data:{users:[]},error:h};throw h}}async getUserById(t){Vr(t);try{return await Oe(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Ui})}catch(n){if(we(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Vr(t);try{return await Oe(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Ui})}catch(s){if(we(s))return{data:{user:null},error:s};throw s}}async deleteUser(t,n=!1){Vr(t);try{return await Oe(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Ui})}catch(s){if(we(s))return{data:{user:null},error:s};throw s}}async _listFactors(t){Vr(t.userId);try{const{data:n,error:s}=await Oe(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:s}}catch(n){if(we(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Vr(t.userId),Vr(t.id);try{return{data:await Oe(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(we(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,s,i,o,l,u,f;try{const h={nextPage:null,lastPage:0,total:0},p=await Oe(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(n=t?.page)===null||n===void 0?void 0:n.toString())!==null&&s!==void 0?s:"",per_page:(o=(i=t?.perPage)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""},xform:K1});if(p.error)throw p.error;const m=await p.json(),b=(l=p.headers.get("x-total-count"))!==null&&l!==void 0?l:0,w=(f=(u=p.headers.get("link"))===null||u===void 0?void 0:u.split(","))!==null&&f!==void 0?f:[];return w.length>0&&(w.forEach(x=>{const S=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(x.split(";")[1].split("=")[1]);h[`${_}Page`]=S}),h.total=parseInt(b)),{data:Object.assign(Object.assign({},m),h),error:null}}catch(h){if(we(h))return{data:{clients:[]},error:h};throw h}}async _createOAuthClient(t){try{return await Oe(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(we(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await Oe(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(we(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await Oe(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(we(s))return{data:null,error:s};throw s}}async _deleteOAuthClient(t){try{return await Oe(this.fetch,"DELET
93E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(we(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await Oe(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(we(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t?.type&&(n.type=t.type),await Oe(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:s=>{var i;return{data:{providers:(i=s?.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(n){if(we(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await Oe(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(we(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await Oe(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(we(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await Oe(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(we(s))return{data:null,error:s};throw s}}async _deleteCustomProvider(t){try{return await Oe(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(we(n))return{data:null,error:n};throw n}}async _adminListPasskeys(t){qs(this.experimental),Vr(t.userId);try{return await Oe(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(we(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(t){qs(this.experimental),Vr(t.userId),Vr(t.passkeyId);try{return await Oe(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(we(n))return{data:null,error:n};throw n}}}function Y1(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}globalThis&&qO()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");
93class gH extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}function yH(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function GO(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function vH(e){return parseInt(e,16)}function bH(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,s=>s.toString(16).padStart(2,"0")).join("")}function wH(e){var t;const{chainId:n,domain:s,expirationTime:i,issuedAt:o=new Date,nonce:l,notBefore:u,requestId:f,resources:h,scheme:p,uri:m,version:b}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!s)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(l&&l.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${l}`);if(!m)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(b!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${b}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
94`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const w=GO(e.address),x=p?`${p}://${s}`:s,S=e.statement?`${e.statement}
95`:"",_=`${x} wants you to sign in with your Ethereum account:
96${w}
97
98${S}`;let k=`URI: ${m}
99Version: ${b}
100Chain ID: ${n}${l?`
101Nonce: ${l}`:""}
102Issued At: ${o.toISOString()}`;if(i&&(k+=`
103Expiration Time: ${i.toISOString()}`),u&&(k+=`
104Not Before: ${u.toISOString()}`),f&&(k+=`
105Request ID: ${f}`),h){let C=`
106Resources:`;for(const R of h){if(!R||typeof R!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${R}`);C+=`
107- ${R}`}k+=C}return`${_}
108${k}`}
108class nn extends Error{constructor({message:t,code:n,cause:s,name:i}){var o;super(t,{cause:s}),this.__isWebAuthnError=!0,this.name=(o=i??(s instanceof Error?s.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=n}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Kh extends nn{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function xH({error:e,options:t}){var n,s,i;const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new nn({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=o.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new nn({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((s=o.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new nn({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=o.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new nn({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new nn({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new nn({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(u=>u.type==="public-key").length===0?new nn({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new nn({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const l=window.location.hostname;if(KO(l)){if(o.rp.id!==l)return new nn({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new nn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new nn({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new nn({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new nn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function SH({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new nn({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new nn({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const s=window.location.hostname;if(KO(s)){if(n.rpId!==s)return new nn({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new nn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new nn({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new nn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class _H{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const db=new _H;function Z1(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:s}=e,i=$l(e,["challenge","user","excludeCredentials"]),o=Il(t).buffer,l=Object.assign(Object.assign({},n),{id:Il(n.id).buffer}),u=Object.assign(Object.assign({},i),{challenge:o,user:l});if(s&&s.length>0){u.excludeCredentials=new Array(s.length);for(let f=0;f<s.length;f++){const h=s[f];u.excludeCredentials[f]=Object.assign(Object.assign({},h),{id:Il(h.id).buffer,type:h.type||"public-key",transports:h.transports})}}return u}function X1(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,s=$l(e,["challenge","allowCredentials"]),i=Il(t).buffer,o=Object.assign(Object.assign({}
108,s),{challenge:i});if(n&&n.length>0){o.allowCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const u=n[l];o.allowCredentials[l]=Object.assign(Object.assign({},u),{id:Il(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return o}function J1(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:Fa(new Uint8Array(e.response.attestationObject)),clientDataJSON:Fa(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Q1(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,s=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Fa(new Uint8Array(i.authenticatorData)),clientDataJSON:Fa(new Uint8Array(i.clientDataJSON)),signature:Fa(new Uint8Array(i.signature)),userHandle:i.userHandle?Fa(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:s,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function KO(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Yh(){var e,t;return!!(jn()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.get)=="function")}async function YO(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Kh("Browser returned unexpected credential type",t)}:{data:null,error:new Kh("Empty credential response",t)}}catch(t){return{data:null,error:xH({error:t,options:e})}}}async function ZO(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Kh("Browser returned unexpected credential type",t)}:{data:null,error:new Kh("Empty credential response",t)}}catch(t){return{data:null,error:SH({error:t,options:e})}}}const kH={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},AH={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Zh(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),s={};for(const i of e)if(i)for(const o in i){const l=i[o];if(l!==void 0)if(Array.isArray(l))s[o]=l;else if(n(l))s[o]=l;else if(t(l)){const u=s[o];t(u)?s[o]=Zh(u,l):s[o]=Zh(l)}else s[o]=l}return s}function CH(e,t){return Zh(kH,e,t||{})}function EH(e,t){return Zh(AH,e,t||{})}class TH{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:s,signal:i},o){var l;try{const{data:u,error:f}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!u)return{data:null,error:f};const h=i??db.createNewAbortSignal();if(u.webauthn.type==="create"){const{user:p}=u.webauthn.credential_options.publicKey;if(!p.name){const m=s;if(m)p.name=`${p.id}:${m}`;else{const w=(await this.client.getUser()).data.user,x=((l=w?.user_metadata)===null||l===void 0?void 0:l.name)||w?.email||w?.id||"User";p.name=`${p.id}:${x}`}}p.displayName||(p.displayName=p.name)}switch(u.webauthn.type){case"create":{const p=CH(u.webauthn.credential_options.publicKey,o?.create),{data:m,error:b}=await YO({publicKey:p,signal:h});return m?{data:{factorId:t,challengeId:u.id,webauthn:{type:u.webauthn.type,credential_response:m}},error:null}:{data:null,error:b}}case"request":{const p=EH(u.webauthn.credential_options.publicKey,o?.request),{data:m,error:b}=await ZO(Object.assign(Object.assign({},u.webauthn.credential_options),{publicKey:p,signal:h}));return m?{data:{factorId:t,challengeId:u.id,webauthn:{type:u.webauthn.type,credential_response:m}},error:null}:{data:null,error:b}}}}catch(u){return we(u)?{data:null,error:u}:{data:null,error:new Xs("Unexpected error in challenge",u)}}}async _verify({challengeId:t,factorId:n,webauthn:s}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:s})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},o){if(!n)return{data:null,error:new Nu("rpId is required for WebAuthn authentication")};try{if(!Yh())return{data:null,error:new Xs("Browser does not support WebAuthn",null)};const{data:l,error:u}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:s},signal:i},{request:o});if(!l)return{data:null,error:u};const{webauthn:f}=l;return this._verify({factorId:t,challengeId:l.challengeId,webauthn:{type:f.type,rpId:n,rpOrigins:s,credential_response:f.credential_response}})}catch(l){return we(l)?{data:null,error:l}:{data:null,error:new Xs("Unexpected error in authenticate",l)}
108}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},o){if(!n)return{data:null,error:new Nu("rpId is required for WebAuthn registration")};try{if(!Yh())return{data:null,error:new Xs("Browser does not support WebAuthn",null)};const{data:l,error:u}=await this._enroll({friendlyName:t});if(!l)return await this.client.mfa.listFactors().then(p=>{var m;return(m=p.data)===null||m===void 0?void 0:m.all.find(b=>b.factor_type==="webauthn"&&b.friendly_name===t&&b.status!=="unverified")}).then(p=>p?this.client.mfa.unenroll({factorId:p?.id}):void 0),{data:null,error:u};const{data:f,error:h}=await this._challenge({factorId:l.id,friendlyName:l.friendly_name,webauthn:{rpId:n,rpOrigins:s},signal:i},{create:o});return f?this._verify({factorId:l.id,challengeId:f.challengeId,webauthn:{rpId:n,rpOrigins:s,type:f.webauthn.type,credential_response:f.webauthn.credential_response}}):{data:null,error:h}}catch(l){return we(l)?{data:null,error:l}:{data:null,error:new Xs("Unexpected error in register",l)}}}}yH();const RH={url:NF,storageKey:IF,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:PF,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},dl={};class Iu{get jwks(){var t,n;return(n=(t=dl[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){dl[this.storageKey]=Object.assign(Object.assign({},dl[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=dl[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){dl[this.storageKey]=Object.assign(Object.assign({},dl[this.storageKey]),{cachedAt:t})}constructor(t){var n,s,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},RH),t);if(this.storageKey=o.storageKey,this.instanceID=(n=Iu.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Iu.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&jn()){const l=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(l),this.logDebugMessages&&console.trace(l)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.experimental=(s=o.experimental)!==null&&s!==void 0?s:{},this.admin=new mH({url:o.url,headers:o.headers,fetch:o.fetch,experimental:this.experimental}),this.url=o.url,this.headers=o.headers,this.fetch=WO(o.fetch),this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,this.lockAcquireTimeout=o.lockAcquireTimeout,o.lock!=null&&(this.lock=o.lock),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new TH(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:qO()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Y1(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=Y1(this.memoryStorage)),jn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(l){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",l)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async l=>{this._debug("received broadcast notification from other tab or client",l),(l.data.event==="TOKEN_REFRESHED"||l.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(l.data.event,l.data.session,!1)}catch(u){this._debug("#broadcastChannel","error",u)}})}o.skipAutoInitialize||this.initialize().catch(l=>{this._debug("#initialize()","error",l)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${$O}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())(),await this.initializePromise)}async _initialize(){var t;try{let n={},s="none";if(jn()&&(n=YF(window.location.href),this._isImplicitGrantCallback(n)?s="implicit":await this._isPKCECallback(n)&&(s="pkce")),jn()&&this.detectSessionInUrl&&s!=="none"){const{data:i,error:o}=await this._getSessionFromURL(n,s);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),UF(o)){const f=(t=o.details)===null||t===void 0?void 0:t.code;if(f==="identity_already_exists"||f==="identity_not_found"||f==="single_identity_not_deletable")return{error:o}}return{error:o}}const{session:l,redirectType:u}=i;return this._debug("#_initialize()","detected session in URL",l,"redirect type",u),await this._saveSession(l),setTimeout(async()=>{u==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",l):await this._notifyAllSubscribers("SIGNED_IN",l)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return we(n)?this._returnResult({error:n}):this._returnResult({error:new Xs("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,s,i;try{const o=await Oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(n=t?.options)===null||n===void 0?void 0:n.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(i=t?.options)===null||i===void 0?void 0:i.captchaToken}},xform:Rs}),{data:l,error:u}=o;if(u||!l)return this._returnResult({data:{user:null,session:null},error:u});const f=l.session,h=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(o){if(we(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(t){var n,s,i;try{let o;if("email"in t){const{email:p,password:m,options:b}=t;let w=null,x=null;this.flowType==="pkce"&&([w,x]=await Ta(this.storage,this.storageKey)),o=await Oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:b?.emailRedirectTo,body:{email:p,password:m,data:(n=b?.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:b?.captchaToken},code_challenge:w,code_challenge_method:x},xform:Rs})}else if("phone"in t){const{phone:p,password:m,options:b}=t;o=await Oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:p,password:m,data:(s=b?.data)!==null&&s!==void 0?s:{},channel:(i=b?.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:b?.captchaToken}},xform:Rs})}else throw new qf("You must provide either an email or phone number and a password");const{data:l,error:u}=o;if(u||!l)return await Yt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:u});const f=l.session,h=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(o){if(await Yt(this.storage,`${this.storageKey}-code-verifier`),we(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(t){try{let n;if("email"in t){const{email:o,password:l,options:u}=t;n=await Oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:l,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:G1})}else if("phone"in t){const{phone:o,password:l,options:u}=t;n=await Oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:l,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:G1})}else throw new qf("You must provide either an email or phone number and a password");const{data:s,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!s||!s.session||!s.user){const o=new ul;return this._returnResult({data:{user:null,session:null},error:o})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:i})}catch(n){if(we(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,s,i,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.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:(o=t.o
108ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t)):this._exchangeCodeForSession(t)}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,s,i,o,l,u,f,h,p,m,b;let w,x;if("message"in t)w=t.message,x=t.signature;else{const{chain:S,wallet:_,statement:k,options:C}=t;let R;if(jn())if(typeof _=="object")R=_;else{const $=window;if("ethereum"in $&&typeof $.ethereum=="object"&&"request"in $.ethereum&&typeof $.ethereum.request=="function")R=$.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof _!="object"||!C?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");R=_}const O=new URL((n=C?.url)!==null&&n!==void 0?n:window.location.href),N=await R.request({method:"eth_requestAccounts"}).then($=>$).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!N||N.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const P=GO(N[0]);let D=(s=C?.signInWithEthereum)===null||s===void 0?void 0:s.chainId;if(!D){const $=await R.request({method:"eth_chainId"});D=vH($)}const M={domain:O.host,address:P,statement:k,uri:O.href,version:"1",chainId:D,nonce:(i=C?.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(l=(o=C?.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&l!==void 0?l:new Date,expirationTime:(u=C?.signInWithEthereum)===null||u===void 0?void 0:u.expirationTime,notBefore:(f=C?.signInWithEthereum)===null||f===void 0?void 0:f.notBefore,requestId:(h=C?.signInWithEthereum)===null||h===void 0?void 0:h.requestId,resources:(p=C?.signInWithEthereum)===null||p===void 0?void 0:p.resources};w=wH(M),x=await R.request({method:"personal_sign",params:[bH(w),P]})}try{const{data:S,error:_}=await Oe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:w,signature:x},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(b=t.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:Rs});if(_)throw _;if(!S||!S.session||!S.user){const k=new ul;return this._returnResult({data:{user:null,session:null},error:k})}return S.session&&(await this._saveSession(S.session),await this._notifyAllSubscribers("SIGNED_IN",S.session)),this._returnResult({data:Object.assign({},S),error:_})}catch(S){if(we(S))return this._returnResult({data:{user:null,session:null},error:S});throw S}}async signInWithSolana(t){var n,s,i,o,l,u,f,h,p,m,b,w;let x,S;if("message"in t)x=t.message,S=t.signature;else{const{chain:_,wallet:k,statement:C,options:R}=t;let O;if(jn())if(typeof k=="object")O=k;else{const P=window;if("solana"in P&&typeof P.solana=="object"&&("signIn"in P.solana&&typeof P.solana.signIn=="function"||"signMessage"in P.solana&&typeof P.solana.signMessage=="function"))O=P.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 k!="object"||!R?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");O=k}const N=new URL((n=R?.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in O&&O.signIn){const P=await O.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},R?.signInWithSolana),{version:"1",domain:N.host,uri:N.href}),C?{statement:C}:null));let D;if(Array.isArray(P)&&P[0]&&typeof P[0]=="object")D=P[0];else if(P&&typeof P=="object"&&"signedMessage"in P&&"signature"in P)D=P;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in D&&"signature"in D&&(typeof D.signedMessage=="string"||D.signedMessage instanceof Uint8Array)&&D.signature instanceof Uint8Array)x=typeof D.signedMessage=="string"?D.signedMessage:new TextDecoder().decode(D.signedMessage),S=D.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in O)||typeof O.signMessage!="function"||!("publicKey"in O)||typeof O!="object"||!O.publicKey||!("toBase58"in O.publicKey)||typeof O.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");x=[`${N.host} wants you to sign in with your Solana account:`,O.publicKey.toBase58(),...C?["",C,""]:[""],"Version: 1",`URI: ${N.href}`,`Issued At: ${(i=(s=R?.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((o=R?.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${R.signInWithSolana.notBefore}`]:[],...!((l=R?.signInWithSolana)===null||l===void 0)&&l.expirationTime?[`Expiration Time: ${R.signInWithSolana.expirationTime}`]:[],...!((u=R?.signInWithSolana)===null||u===void 0)&&u.chainId?[`Chain ID: ${R.signInWithSolana.chainId}`]:[],...!((f=R?.signInWithSolana)===null||f===void 0)&&f.nonce?[`Nonce: ${R.signInWithSolana.nonce}`]:[],...!((h=R?.signInWithSolana)===null||h===void 0)&&h.requestId?[`Request ID: ${R.signInWithSolana.requestId}`]:[],...!((m=(p=R?.signInWithSolana)===null||p===void 0?void 0:p.resources)===null||m===void 0)&&m.length?["Resources",...R.signInWithSolana.resources.map(D=>`- ${D}`)]:[]].join(`
109`);const P=await O.signMessage(new TextEncoder().encode(x),"utf8");if(!P||!(P instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");S=P}}try{const{data:_,error:k}=await Oe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:Fa(S)},!((b=t.options)===null||b===void 0)&&b.captchaToken?{gotrue_meta_security:{captcha_token:(w=t.options)===null||w===void 0?void 0:w.captchaToken}}:null),xform:Rs});if(k)throw k;if(!_||!_.session||!_.user){const C=new ul;return this._returnResult({data:{user:null,session:null},error:C})}return _.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("SIGNED_IN",_.session)),this._returnResult({data:Object.assign({},_),error:k})}catch(_){if(we(_))return this._returnResult({data:{user:null,session:null},error:_});throw _}}async _exchangeCodeForSession(t){const n=await Vs(this.storage,`${this.storageKey}-code-verifier`),[s,i]=(n??"").split("/");try{if(!s&&this.flowType==="pkce")throw new zF;const{data:o,error:l}=await Oe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:s},xform:Rs});if(await Yt(this.storage,`${this.storageKey}-code-verifier`),l)throw l;if(!o||!o.session||!o.user){const u=new ul;return this._returnResult({data:{user:null,session:null,redirectType:null},error:u})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers(i==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:i??null}),error:l})}catch(o){if(await Yt(this.storage,`${this.storageKey}-code-verifier`),we(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(t){try{const{options:n,provider:s,token:i,access_token:o,nonce:l}=t,u=await Oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:i,access_token:o,nonce:l,gotrue_meta_security:{captcha_token:n?.captchaToken}},xform:Rs}),{data:f,error:h}=u;if(h)return this._returnResult({data:{user:null,session:null},error:h});if(!f||!f.session||!f.user){const p=new ul;return this._returnResult({data:{user:null,session:null},error:p})}return f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("SIGNED_IN",f.session)),this._returnResult({data:f,error:h})}catch(n){if(we(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,s,i,o,l;try{if("email"in t){const{email:u,options:f}=t;let h=null,p=null;this.flowType==="pkce"&&([h,p]=await Ta(this.storage,this.storageKey));const{error:m}=await Oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:u,data:(n=f?.data)!==null&&n!==void 0?n:{},create_user:(s=f?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},code_challenge:h,code_challenge_method:p},redirectTo:f?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:m})}if("phone"in t){const{phone:u,options:f}=t,{data:h,error:p}=await Oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:u,data:(i=f?.data)!==null&&i!==void 0?i:{},create_user:(o=f?.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},channel:(l=f?.channel)!==null&&l!==void 0?l:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:h?.message_id},error:p})}throw new qf("You must provide either an email or phone number.")}catch(u){if(await Yt(this.storage,`${this.storageKey}-code-verifier`),we(u))return this._returnResult({data:{user:null,session:null},error:u});throw u}}async verifyOtp(t){var n,s;try{let i,o;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,o=(s=t.options)===null||s===void 0?void 0:s.captchaToken);const{data:l,error:u}=await Oe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:i,xform:Rs});if(u)throw u;if(!l)throw new Error("An error occurred on token verification.");const f=l.session,h=l.user;return f?.access_token&&(await this._saveSession(f),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(i){if(we(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,s,i,o,l;try{let u=null,f=null;this.flowType==="pkce"&&([u,f]=await Ta(this.storage,this.storageKey));const h=await Oe(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=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&s!==void 0?s:void 0}),!((i=t?.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:u,code_challenge_method:f}),headers:this.headers,xform:fH});return!((o=h.data)===null||o===void 0)&&o.url&&jn()&&!(!((l=t.options)===null||l===void 0)&&l.skipBrowserRedirect)&&window.location.assign(h.data.url),this._returnResult(h)}catch(u){if(await Yt(this.storage,`${this.storageKey}-code-verifier`),we(u))return this._returnResult({data:null,error:u});throw u}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:s}=t;if(s)throw s;if(!n)throw new yn;const{error:i}=await Oe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(we(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:s,type:i,options:o}=t;let l=null,u=null;this.flowType==="pkce"&&([l,u]=await Ta(this.storage,this.storageKey));const{error:f}=await Oe(this.fetch,"POST",n,{headers:this.headers,body:{email:s,type:i,gotrue_meta_security:{captcha_token:o?.captchaToken},code_challenge:l,code_challenge_method:u},redirectTo:o?.emailRedirectTo});return f&&await Yt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:f})}else if("phone"in t){const{phone:s,type:i,options:o}=t,{data:l,error:u}=await Oe(this.fetch,"POST",n,{headers:this.headers,body:{phone:s,type:i,gotrue_meta_security:{captcha_token:o?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:l?.message_id},error:u})}throw new qf("You must provide either an email or phone number and a type")}catch(n){if(await Yt(this.storage,`${this.storageKey}-code-verifier`),we(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async t=>t)):await this._useSession(async t=>t)}async _acquireLock(t,n){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 n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=n();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 n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Vs(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
109id"),await this._removeSession())),!t)return{data:{session:null},error:null};const s=t.expires_at?t.expires_at*1e3-Date.now()<Hy:!1;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",t.expires_at),!s){if(this.userStorage){const l=await Vs(this.userStorage,this.storageKey+"-user");l?.user?t.user=l.user:t.user=qy()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const l={value:this.suppressGetSessionWarning};t.user=lH(t.user,l),l.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:o}=await this._callRefreshToken(t.refresh_token);if(o){if(!!(t.expires_at&&t.expires_at*1e3>Date.now())){const u=await Vs(this.storage,this.storageKey);if(u&&u.refresh_token===t.refresh_token)return this._returnResult({data:{session:t},error:null})}return this._returnResult({data:{session:null},error:o})}return this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;let n;return this.lock!=null?n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):n=await this._getUser(),n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await Oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Ui}):await this._useSession(async n=>{var s,i,o;const{data:l,error:u}=n;if(u)throw u;return!(!((s=l.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new yn}:await Oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(i=l.session)===null||i===void 0?void 0:i.access_token)!==null&&o!==void 0?o:void 0,xform:Ui})})}catch(n){if(we(n))return Hf(n)&&(await this._removeSession(),await Yt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n)):await this._updateUser(t,n)}async _updateUser(t,n={}){try{return await this._useSession(async s=>{const{data:i,error:o}=s;if(o)throw o;if(!i.session)throw new yn;const l=i.session;let u=null,f=null;this.flowType==="pkce"&&t.email!=null&&([u,f]=await Ta(this.storage,this.storageKey));const{data:h,error:p}=await Oe(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:u,code_challenge_method:f}),jwt:l.access_token,xform:Ui});if(p)throw p;return l.user=h.user,await this._saveSession(l),await this._notifyAllSubscribers("USER_UPDATED",l),this._returnResult({data:{user:l.user},error:null})})}catch(s){if(await Yt(this.storage,`${this.storageKey}-code-verifier`),we(s))return this._returnResult({data:{user:null},error:s});throw s}}async setSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t)):await this._setSession(t)}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new yn;const n=Date.now()/1e3;let s=n,i=!0,o=null;const{payload:l}=Gf(t.access_token);if(l.exp&&(s=l.exp,i=s<=n),i){const{data:u,error:f}=await this._callRefreshToken(t.refresh_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});if(!u)return{data:{user:null,session:null},error:null};o=u}else{const{data:u,error:f}=await this._getUser(t.access_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});o={access_token:t.access_token,refresh_token:t.refresh_token,user:u.user,token_type:"bearer",expires_in:s-n,expires_at:s},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(n){if(we(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t)):await this._refreshSession(t)}async _refreshSession(t){try{return await this._useSession(async n=>{var s;if(!t){const{data:l,error:u}=n;if(u)throw u;t=(s=l.session)!==null&&s!==void 0?s:void 0}if(!t?.refresh_token)throw new yn;const{data:i,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(we(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){var s;try{if(!jn())throw new Wf("No browser detected.");
109if(t.error||t.error_description||t.error_code)throw new Wf(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new B1("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Wf("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new B1("No code detected.");const{data:R,error:O}=await this._exchangeCodeForSession(t.code);if(O)throw O;const N=new URL(window.location.href);return N.searchParams.delete("code"),window.history.replaceState(window.history.state,"",N.toString()),{data:{session:R.session,redirectType:(s=R.redirectType)!==null&&s!==void 0?s:null},error:null}}const{provider_token:i,provider_refresh_token:o,access_token:l,refresh_token:u,expires_in:f,expires_at:h,token_type:p}=t;if(!l||!f||!u||!p)throw new Wf("No session defined in URL");const m=Math.round(Date.now()/1e3),b=parseInt(f);let w=m+b;h&&(w=parseInt(h));const x=w-m;x*1e3<=Gr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${x}s, should have been closer to ${b}s`);const S=w-b;m-S>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",S,w,m):m-S<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",S,w,m);const{data:_,error:k}=await this._getUser(l);if(k)throw k;const C={provider_token:i,provider_refresh_token:o,access_token:l,expires_in:b,expires_at:w,refresh_token:u,token_type:p,user:_.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:C,redirectType:t.type},error:null})}catch(i){if(we(i))return this._returnResult({data:{session:null,redirectType:null},error:i});throw i}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error||t.error_description||t.error_code)}async _isPKCECallback(t){const n=await Vs(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t)):await this._signOut(t)}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var s;const{data:i,error:o}=n;if(o&&!Hf(o))return this._returnResult({error:o});const l=(s=i.session)===null||s===void 0?void 0:s.access_token;if(l){const{error:u}=await this.admin.signOut(l,t);if(u&&!(BF(u)&&(u.status===404||u.status===401||u.status===403)||Hf(u)))return this._returnResult({error:u})}return t!=="others"&&(await this._removeSession(),await Yt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=KF(),s={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,s),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)}):await this._emitInitialSession(n)))(),{data:{subscription:s}}}async _emitInitialSession(t){return await this._useSession(async n=>{var s,i;try{const{data:{session:o},error:l}=n;if(l)throw l;await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){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",o),Hf(o)?console.warn(o):console.error(o)}})}async resetPasswordForEmail(t,n={}){let s=null,i=null;this.flowType==="pkce"&&([s,i]=await Ta(this.storage,this.storageKey,!0));try{return await Oe(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:s,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(await Yt(this.storage,`${this.storageKey}-code-verifier`),we(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var t;try{const{data:n,error:s}=await this.getUser();if(s)throw s;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(we(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:s,error:i}=await this._useSession(async o=>{var l,u,f,h,p;const{data:m,error:b}=o;if(b)throw b;const w=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(l=t.options)===null||l===void 0?void 0:l.redirectTo,scopes:(u=t.options)===null||u===void 0?void 0:u.scopes,queryParams:(f=t.options)===null||f===void 0?void 0:f.queryParams,skipBrowserRedirect:!0});return await Oe(this.fetch,"GET",w,{headers:this.headers,jwt:(p=(h=m.session)===null||h===void 0?void 0:h.access_token)!==null&&p!==void 0?p:void 0})});if(i)throw i;
109return jn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(s?.url),this._returnResult({data:{provider:t.provider,url:s?.url},error:null})}catch(s){if(we(s))return this._returnResult({data:{provider:t.provider,url:null},error:s});throw s}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var s;try{const{error:i,data:{session:o}}=n;if(i)throw i;const{options:l,provider:u,token:f,access_token:h,nonce:p}=t,m=await Oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(s=o?.access_token)!==null&&s!==void 0?s:void 0,body:{provider:u,id_token:f,access_token:h,nonce:p,link_identity:!0,gotrue_meta_security:{captcha_token:l?.captchaToken}},xform:Rs}),{data:b,error:w}=m;return w?this._returnResult({data:{user:null,session:null},error:w}):!b||!b.session||!b.user?this._returnResult({data:{user:null,session:null},error:new ul}):(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("USER_UPDATED",b.session)),this._returnResult({data:b,error:w}))}catch(i){if(await Yt(this.storage,`${this.storageKey}-code-verifier`),we(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var s,i;const{data:o,error:l}=n;if(l)throw l;return await Oe(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(we(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n="#_refreshAccessToken()";this._debug(n,"begin");try{const s=Date.now();return await JF(async i=>(i>0&&await XF(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await Oe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Rs})),(i,o)=>{const l=200*Math.pow(2,i);return o&&U1(o)&&Date.now()+l-s<Gr})}catch(s){if(this._debug(n,"error",s),we(s))return this._returnResult({data:{session:null,user:null},error:s});throw s}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const s=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",s),jn()&&!n.skipBrowserRedirect&&window.location.assign(s),{data:{provider:t,url:s},error:null}}async _recoverAndRefresh(){var t,n;const s="#_recoverAndRefresh()";this._debug(s,"begin");try{const i=await Vs(this.storage,this.storageKey);if(i&&this.userStorage){let l=await Vs(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!l&&(l={user:i.user},await wl(this.userStorage,this.storageKey+"-user",l)),i.user=(t=l?.user)!==null&&t!==void 0?t:qy()}else if(i&&!i.user&&!i.user){const l=await Vs(this.storage,this.storageKey+"-user");l&&l?.user?(i.user=l.user,await Yt(this.storage,this.storageKey+"-user"),await wl(this.storage,this.storageKey,i)):i.user=qy()}if(this._debug(s,"session from storage",i),!this._isValidSession(i)){this._debug(s,"session is not valid"),i!==null&&await this._removeSession();return}const o=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Hy;if(this._debug(s,`session has${o?"":" not"} expired with margin of ${Hy}s`),o){if(this.autoRefreshToken&&i.refresh_token){const{error:l}=await this._callRefreshToken(i.refresh_token);l&&(VF(l)?this._debug(s,"refresh discarded by commit guard",l):this._debug(s,"refresh failed",l))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:l,error:u}=await this._getUser(i.access_token);!u&&l?.user?(i.user=l.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(s,"could not get user data, skipping SIGNED_IN notification")}catch(l){console.error("Error getting user data:",l),this._debug(s,"error getting user data, skipping SIGNED_IN notification",l)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(s,"error",i),console.error(i);return}finally{this._debug(s,"end")}}async _callRefreshToken(t){var n,s;if(!t)throw new yn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===t&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning c
109ached failure (cooldown active)"),this.lastRefreshFailure.result;const i="#_callRefreshToken()";this._debug(i,"begin");try{this.refreshingDeferred=new Lp;const o=await Vs(this.storage,this.storageKey),{data:l,error:u}=await this._refreshAccessToken(t);if(u)throw u;if(!l.session)throw new yn;const f=await Vs(this.storage,this.storageKey);if(o!==null&&(f===null||f.refresh_token!==o.refresh_token)){this._debug(i,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:f?"replaced":"cleared"});const b={data:null,error:new z1};return this.refreshingDeferred.resolve(b),b}const p=this._sessionRemovalEpoch;if(await this._saveSession(l.session),this._sessionRemovalEpoch!==p){this._debug(i,"commit guard (post-save): _removeSession ran during _saveSession, undoing write"),await Yt(this.storage,this.storageKey),this.userStorage&&await Yt(this.userStorage,this.storageKey+"-user");const b={data:null,error:new z1};return this.refreshingDeferred.resolve(b),b}await this._notifyAllSubscribers("TOKEN_REFRESHED",l.session);const m={data:l.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(m),m}catch(o){if(this._debug(i,"error",o),we(o)){const l={data:null,error:o};if(!U1(o)){const u=await Vs(this.storage,this.storageKey);!!(u?.expires_at&&u.expires_at*1e3>Date.now())?this._debug(i,"proactive refresh failed, access token still valid — preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:t,result:l,expiresAt:Date.now()+jF},(n=this.refreshingDeferred)===null||n===void 0||n.resolve(l),l}throw(s=this.refreshingDeferred)===null||s===void 0||s.reject(o),o}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,s=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:t,session:n});const o=[],l=Array.from(this.stateChangeEmitters.values()).map(async u=>{try{await u.callback(t,n)}catch(f){o.push(f)}});if(await Promise.all(l),o.length>0){for(let u=0;u<o.length;u+=1)console.error(o[u]);throw o[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Yt(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),s=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!s&&n.user&&await wl(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const o=q1(i);await wl(this.storage,this.storageKey,o)}else{const i=q1(n);await wl(this.storage,this.storageKey,i)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await Yt(this.storage,this.storageKey),await Yt(this.storage,this.storageKey+"-code-verifier"),await Yt(this.storage,this.storageKey+"-user"),this.userStorage&&await Yt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&jn()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Gr);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var t;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(t=this.broadcastChannel)===null||t===void 0||t.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:s}}=n;
109if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((s.expires_at*1e3-t)/Gr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Gr}ms, refresh threshold is ${tu} ticks`),i<=tu&&await this._callRefreshToken(s.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof gH)this._debug("auto refresh token tick lock not available");else throw t}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const t=Date.now();try{await this._useSession(async n=>{const{data:{session:s}}=n;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((s.expires_at*1e3-t)/Gr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Gr}ms, refresh threshold is ${tu} ticks`),i<=tu&&await this._callRefreshToken(s.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!jn()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;if(this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!t)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()});else{if(document.visibilityState!=="visible"){this._debug(n,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,s){const i=[`provider=${encodeURIComponent(n)}`];if(s?.redirectTo&&i.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s?.scopes&&i.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[o,l]=await Ta(this.storage,this.storageKey),u=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(l)}`});i.push(u.toString())}if(s?.queryParams){const o=new URLSearchParams(s.queryParams);i.push(o.toString())}return s?.skipBrowserRedirect&&i.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var s;const{data:i,error:o}=n;return o?this._returnResult({data:null,error:o}):await Oe(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(s=i?.session)===null||s===void 0?void 0:s.access_token})})}catch(n){if(we(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var s,i;const{data:o,error:l}=n;if(l)return this._returnResult({data:null,error:l});const u=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:f,error:h}=await Oe(this.fetch,"POST",`${this.url}/factors`,{body:u,headers:this.headers,jwt:(s=o?.session)===null||s===void 0?void 0:s.access_token});return h?this._returnResult({data:null,error:h}):(t.factorType==="totp"&&f.type==="totp"&&(!((i=f?.totp)===null||i===void 0)&&i.qr_code)&&(f.totp.qr_code=`data:image/svg+xml;utf-8,${f.totp.qr_code}`),this._returnResult({data:f,error:null}))})}catch(n){if(we(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){const n=async()=>{try{return await this._useSession(async s=>{var i;const{data:o,error:l}=s;if(l)return this._returnResult({data:null,error:l});const u=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?J1(t.webauthn.credential_response):Q1(t.webauthn.credential_response)})}:{code:t.code}),{data:f,error:h}=await Oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:u,headers:this.headers,jwt:(i=o?.session)===null||i===void 0?void 0:i.access_token});return h?this._returnResult({data:null,error:h}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+f.expires_in},f)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",f),this._returnResult({data:f,error:h}))})}catch(s){if(we(s))return this._returnResult({data:null,error:s});throw s}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challenge(t){const n=async()=>{try{return await this._useSession(async s=>{var i;const{data:o,error:l}=s;if(l)return this._returnResult({data:null,error:l});const u=await Oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(i=o?.session)===null||i===void 0?void 0:i.access_token});if(u.error)return u;const{data:f}=u;if(f.type!=="webauthn")return{data:f,error:null};switch(f.webauthn.type){case"create":return{data:Object.assign(Object.assign({},f),{webauthn:Object.assign(Object.assign({},f.webauthn),{credential_options:Object.assign(Object.assign({},f.webauthn.credential_options),{publicKey:Z1(f.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},f),{webauthn:Object.assign(Object.assign({},f.webauthn),{credential_options:Object.assign(Object.assign({},f.webauthn.credential_options),{publicKey:X1(f.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(s){if(we(s))return this._returnResult({data:null,error:s});throw s}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challengeAndVerify(t){const{data:n,error:s}=await this._challenge({factorId:t.factorId});return s?this._returnResult({data:null,error:s}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:s}=await this.getUser();if(s)return{data:null,error:s};const i={all:[],phone:[],totp:[],webauthn:[]};for(const o of(t=n?.factors)!==null&&t!==void 0?t:[])i.all.push(o),o.status==="verified"&&i[o.factor_type].push(o);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,s,i,o;if(t)try{const{payload:w}=Gf(t);let x=null;w.aal&&(x=w.aal);let S=x;const{data:{user:_},error:k}=await this.getUser(t);if(k)return this._returnResult({data:null,error:k});((s=(n=_?.factors)===null||n===void 0?void 0:n.filter(O=>O.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(S="aal2");const R=w.amr||[];return{data:{currentLevel:x,nextLevel:S,currentAuthenticationMethods:R},error:null}}catch(w){if(we(w))return this._returnResult({data:null,error:w});throw w}const{data:{session:l},error:u}
109=await this.getSession();if(u)return this._returnResult({data:null,error:u});if(!l)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:f}=Gf(l.access_token);let h=null;f.aal&&(h=f.aal);let p=h;((o=(i=l.user.factors)===null||i===void 0?void 0:i.filter(w=>w.status==="verified"))!==null&&o!==void 0?o:[]).length>0&&(p="aal2");const b=f.amr||[];return{data:{currentLevel:h,nextLevel:p,currentAuthenticationMethods:b},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;return i?this._returnResult({data:null,error:i}):s?await Oe(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:s.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new yn})})}catch(n){if(we(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async s=>{const{data:{session:i},error:o}=s;if(o)return this._returnResult({data:null,error:o});if(!i)return this._returnResult({data:null,error:new yn});const l=await Oe(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:u=>({data:u,error:null})});return l.data&&l.data.redirect_url&&jn()&&!n?.skipBrowserRedirect&&window.location.assign(l.data.redirect_url),l})}catch(s){if(we(s))return this._returnResult({data:null,error:s});throw s}}async _denyAuthorization(t,n){try{return await this._useSession(async s=>{const{data:{session:i},error:o}=s;if(o)return this._returnResult({data:null,error:o});if(!i)return this._returnResult({data:null,error:new yn});const l=await Oe(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:u=>({data:u,error:null})});return l.data&&l.data.redirect_url&&jn()&&!n?.skipBrowserRedirect&&window.location.assign(l.data.redirect_url),l})}catch(s){if(we(s))return this._returnResult({data:null,error:s});throw s}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:s}=t;return s?this._returnResult({data:null,error:s}):n?await Oe(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new yn})})}catch(t){if(we(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;return i?this._returnResult({data:null,error:i}):s?(await Oe(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:s.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new yn})})}catch(n){if(we(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let s=n.keys.find(u=>u.kid===t);if(s)return s;const i=Date.now();if(s=this.jwks.keys.find(u=>u.kid===t),s&&this.jwks_cached_at+DF>i)return s;const{data:o,error:l}=await Oe(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(l)throw l;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=i,s=o.keys.find(u=>u.kid===t),!s)?null:s}async getClaims(t,n={}){try{let s=t;if(!s){const{data:w,error:x}
109=await this.getSession();if(x||!w.session)return this._returnResult({data:null,error:x});s=w.session.access_token}const{header:i,payload:o,signature:l,raw:{header:u,payload:f}}=Gf(s);if(!n?.allowExpired)try{iH(o.exp)}catch(w){throw new Wh(w instanceof Error?w.message:"JWT validation failed")}const h=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n?.keys?{keys:n.keys}:n?.jwks);if(!h){const{error:w}=await this.getUser(s);if(w)throw w;return{data:{claims:o,header:i,signature:l},error:null}}const p=aH(i.alg),m=await crypto.subtle.importKey("jwk",h,p,!0,["verify"]);if(!await crypto.subtle.verify(p,m,l,WF(`${u}.${f}`)))throw new Wh("Invalid JWT signature");return{data:{claims:o,header:i,signature:l},error:null}}catch(s){if(we(s))return this._returnResult({data:null,error:s});throw s}}async signInWithPasskey(t){var n,s,i;qs(this.experimental);try{if(!Yh())return this._returnResult({data:null,error:new Xs("Browser does not support WebAuthn",null)});const{data:o,error:l}=await this._startPasskeyAuthentication({options:{captchaToken:(n=t?.options)===null||n===void 0?void 0:n.captchaToken}});if(l||!o)return this._returnResult({data:null,error:l});const u=X1(o.options),f=(i=(s=t?.options)===null||s===void 0?void 0:s.signal)!==null&&i!==void 0?i:db.createNewAbortSignal(),{data:h,error:p}=await ZO({publicKey:u,signal:f});if(p||!h)return this._returnResult({data:null,error:p??new Xs("WebAuthn ceremony failed",null)});const m=Q1(h);return this._verifyPasskeyAuthentication({challengeId:o.challenge_id,credential:m})}catch(o){if(we(o))return this._returnResult({data:null,error:o});throw o}}async registerPasskey(t){var n,s;qs(this.experimental);try{if(!Yh())return this._returnResult({data:null,error:new Xs("Browser does not support WebAuthn",null)});const{data:i,error:o}=await this._startPasskeyRegistration();if(o||!i)return this._returnResult({data:null,error:o});const l=Z1(i.options),u=(s=(n=t?.options)===null||n===void 0?void 0:n.signal)!==null&&s!==void 0?s:db.createNewAbortSignal(),{data:f,error:h}=await YO({publicKey:l,signal:u});if(h||!f)return this._returnResult({data:null,error:h??new Xs("WebAuthn ceremony failed",null)});const p=J1(f);return this._verifyPasskeyRegistration({challengeId:i.challenge_id,credential:p})}catch(i){if(we(i))return this._returnResult({data:null,error:i});throw i}}async _startPasskeyRegistration(){qs(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:s}=t;if(s)return this._returnResult({data:null,error:s});if(!n)return this._returnResult({data:null,error:new yn});const{data:i,error:o}=await Oe(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(t){if(we(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){qs(this.experimental);try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new yn});const{data:o,error:l}=await Oe(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:s.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:o,error:null})})}catch(n){if(we(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(t){var n;qs(this.experimental);try{const{data:s,error:i}=await Oe(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=t?.options)===null||n===void 0?void 0:n.captchaToken}}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})}catch(s){if(we(s))return this._returnResult({data:null,error:s});throw s}}async _verifyPasskeyAuthentication(t){qs(this.experimental);try{const{data:n,error:s}=await Oe(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:Rs});return s?this._returnResult({data:null,error:s}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(we(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){qs(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:s}=t;if(s)return this._returnResult({data:null,error:s});if(!n)return this._returnResult({data:null,error:new yn});const{data:i,error:o}=await Oe(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:l=>({data:l,error:null})});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(t){if(we(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){qs(this.experimental);try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new yn});const{data:o,error:l}=await Oe(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:s.access_token,body:{friendly_name:t.friendlyName}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:o,error:null})})}catch(n){if(we(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(t){qs(this.experimental);try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new yn});const{error:o}
109=await Oe(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:s.access_token,noResolveJson:!0});return o?this._returnResult({data:null,error:o}):this._returnResult({data:null,error:null})})}catch(n){if(we(n))return this._returnResult({data:null,error:n});throw n}}}Iu.nextInstanceID={};const OH=Iu,jH="2.110.0";let nu="",Xh;if(typeof Deno<"u"){var Gy;nu="deno",Xh=(Gy=Deno.version)===null||Gy===void 0?void 0:Gy.deno}else if(typeof document<"u")nu="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")nu="react-native";else{var Ky;nu="node",Xh=typeof process<"u"?(Ky=process.version)===null||Ky===void 0?void 0:Ky.replace(/^v/,""):void 0}const XO=[`runtime=${nu}`];Xh&&XO.push(`runtime-version=${Xh}`);const NH={"X-Client-Info":`supabase-js/${jH}; ${XO.join("; ")}`},IH={headers:NH},PH={schema:"public"},MH={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},DH={},LH={enabled:!1,respectSamplingDecision:!0};function BH(e,t,n,s){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function u(p){try{h(s.next(p))}catch(m){l(m)}}function f(p){try{h(s.throw(p))}catch(m){l(m)}}function h(p){p.done?o(p.value):i(p.value).then(u,f)}h((s=s.apply(e,[])).next())})}let Yy=null;const UH="@opentelemetry/api";function zH(){return Yy===null&&(Yy=import(UH).catch(()=>null)),Yy}function VH(){return BH(this,void 0,void 0,function*(){try{const e=yield zH();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const n=t.traceparent;return n?{traceparent:n,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function $H(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[n,s,i,o]=t;if(n.length!==2||s.length!==32||i.length!==16||o.length!==2)return null;const l=/^[0-9a-f]+$/i;return!l.test(n)||!l.test(s)||!l.test(i)||!l.test(o)||s==="00000000000000000000000000000000"||i==="0000000000000000"?null:{version:n,traceId:s,parentId:i,traceFlags:o,isSampled:(parseInt(o,16)&1)===1}}function FH(e,t){if(!e||!t||t.length===0)return!1;let n;if(e instanceof URL)n=e;else try{n=new URL(e)}catch{return!1}for(const s of t)try{if(typeof s=="string"){if(HH(n.hostname,s))return!0}else if(s instanceof RegExp){if(s.test(n.hostname))return!0}else if(typeof s=="function"&&s(n))return!0}catch{continue}return!1}function HH(e,t){if(t===e)return!0;if(t.startsWith("*.")){const n=t.slice(2);if(e.endsWith(n)&&(e===n||e.endsWith("."+n)))return!0}return!1}function qH(e){const t=[];try{const n=new URL(e);t.push(n.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function Pu(e){"@babel/helpers - typeof";return Pu=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},Pu(e)}function WH(e,t){if(Pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(Pu(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GH(e){var t=WH(e,"string");return Pu(t)=="symbol"?t:t+""}function KH(e,t,n){return(t=GH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,s)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eC(Object(n),!0).forEach(function(s){KH(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eC(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}const YH=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),ZH=()=>Headers,XH=(e,t,n,s,i)=>{const o=YH(s),l=ZH(),u=i?.enabled===!0,f=i?.respectSamplingDecision!==!1,h=u?qH(t):null;return async(p,m)=>{var b;const w=(b=await n())!==null&&b!==void 0?b:e;let x=new l(m?.headers);if(x.has("apikey")||x.set("apikey",e),x.has("Authorization")||x.set("Authorization",`Bearer ${w}`),h){const S=await JH(p,h,f);S&&(S.traceparent&&!x.has("traceparent")&&x.set("traceparent",S.traceparent),S.tracestate&&!x.has("tracestate")&&x.set("tracestate",S.tracestate),S.baggage&&!x.has("baggage")&&x.set("baggage",S.baggage))}return o(p,Ft(Ft({},m),{},{headers:x}))}};async function JH(e,t,n){if(!FH(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const s=await VH();if(!s||!s.traceparent)return null;if(n){const i=$H(s.traceparent);if(i&&!i.isSampled)return null}return s}function tC(e){return typeof e=="boolean"?{enabled:e}:e}function QH(e){return e.endsWith("/")?e:e+"/"}function eq(e,t){var n,s,i,o,l,u;const{db:f,auth:h,realtime:p,global:m}=e,{db:b,auth:w,realtime:x,global:S}=t,_=tC(e.tracePropagation),k=tC(t.tracePropagation),C={db:Ft(Ft({},b),f),auth:Ft(Ft({},w),h),realtime:Ft(Ft({},x),p),storage:{},global:Ft(Ft(Ft({},S),m),{},{headers:Ft(Ft({},(n=S?.headers)!==null&&n!==void 0?n:{}),(s=m?.headers)!==null&&s!==void 0?s:{})}),tracePropagation:{enabled:(i=(o=_?.enabled)!==null&&o!==void 0?o:k?.enabled)!==null&&i!==void 0?i:!1,respectSamplingDecision:(l=(u=_?.respectSamplingDecision)!==null&&u!==void 0?u:k?.respectSamplingDecision)!==null&&l!==void 0?l:!0},accessToken:async()=>""};return e.accessToken?C.accessToken=e.accessToken:delete C.accessToken,C}function tq(e){const t=e?.trim();if(!t)throw new Error("supabaseUrl is required.");
109if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(QH(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var nq=class extends OH{constructor(e){super(e)}},sq=class{constructor(e,t,n){var s,i;this.supabaseUrl=e,this.supabaseKey=t;const o=tq(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",o),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",o),this.storageUrl=new URL("storage/v1",o),this.functionsUrl=new URL("functions/v1",o);const l=`sb-${o.hostname.split(".")[0]}-auth-token`,u={db:PH,realtime:DH,auth:Ft(Ft({},MH),{},{storageKey:l}),global:IH,tracePropagation:LH},f=eq(n??{},u);if(this.settings=f,this.storageKey=(s=f.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=f.global.headers)!==null&&i!==void 0?i:{},f.accessToken)this.accessToken=f.accessToken,this.auth=new Proxy({},{get:(p,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}});else{var h;this.auth=this._initSupabaseAuthClient((h=f.auth)!==null&&h!==void 0?h:{},this.headers,f.global.fetch)}this.fetch=XH(t,e,this._getAccessToken.bind(this),f.global.fetch,f.tracePropagation),this.realtime=this._initRealtimeClient(Ft({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},f.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(p=>this.realtime.setAuth(p)).catch(p=>console.warn("Failed to set initial Realtime auth token:",p)),this.rest=new f$(new URL("rest/v1",o).href,{headers:this.headers,schema:f.db.schema,fetch:this.fetch,timeout:f.db.timeout,urlLengthLimit:f.db.urlLengthLimit}),this.storage=new OF(this.storageUrl.href,this.headers,this.fetch,n?.storage),f.accessToken||this._listenForAuthEvents()}get functions(){return new s$(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:s}=await e.auth.getSession();return(t=(n=s.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:s,userStorage:i,storageKey:o,flowType:l,lock:u,debug:f,throwOnError:h,experimental:p,lockAcquireTimeout:m,skipAutoInitialize:b},w,x){const S={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new nq({url:this.authUrl.href,headers:Ft(Ft({},S),w),storageKey:o,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:s,userStorage:i,flowType:l,lock:u,debug:f,throwOnError:h,experimental:p,fetch:x,lockAcquireTimeout:m,skipAutoInitialize:b,hasCustomAuthorizationHeader:Object.keys(this.headers).some(_=>_.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new eF(this.realtimeUrl.href,Ft(Ft({},e),{},{params:Ft(Ft({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t?.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const JO=(e,t,n)=>new sq(e,t,n);function rq(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=20:!1}rq()&&console.warn("⚠️  Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
109ode.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715");const Tw="https://xsdzdlgrqnwnrqywnfpa.supabase.co",QO="sb_publishable_aPsNN_IcD6TbWE3tAZoi_Q_7l4SGf5u",es=JO(Tw,QO,{auth:{persistSession:!1},global:{headers:{"X-Client-Info":"wyecliff-website"}}});function iq(e,t){const n=encodeURIComponent(e),s=t.split("/").map(encodeURIComponent).join("/");return`${Tw}/storage/v1/object/public/${n}/${s}`}const aq="Favicon New.png",yne=iq("brand-assets",aq),ej="[email protected]",oq=`mailto:${ej}`,lq=nd({name:dn().trim().min(1,"Required").max(100),company:dn().trim().min(1,"Required").max(120),email:dn().trim().email("Enter a valid email").max(255).refine(Cw,au)}),cq="mb-2 block text-sm font-medium tracking-normal text-paper";function uq({heading:e}){const[t,n]=E.useState(!1),[s,i]=E.useState(null),{register:o,handleSubmit:l,formState:{errors:u,isSubmitting:f},reset:h}=Ip({resolver:Pp(lq)}),p=async m=>{i(null);const{data:b,error:w}=await es.functions.invoke("submit-contact-form",{body:{...m,source:"contact"}});if(w||b?.error){i("Something went wrong sending your message. Please email [email protected] and we'll get right back to you.");return}n(!0),h()};return y.jsxs("div",{className:"rounded-3xl border border-white/[0.06] bg-[#1f1e1d] p-6 sm:p-10",children:[e&&!t&&y.jsx("div",{className:"mb-8 text-center",children:e}),t?y.jsxs("div",{className:"flex flex-col items-start gap-4 py-2",children:[y.jsx("div",{className:"grid h-12 w-12 place-items-center rounded-full bg-[#7f57da]/15 text-[#a585ec]",children:y.jsx(Ep,{className:"h-5 w-5"})}),y.jsx("h3",{className:"font-display text-3xl leading-tight text-foreground",children:"Thanks. We'll be in touch shortly."}),y.jsxs("p",{className:"max-w-md text-sm leading-relaxed text-foreground/65",children:["Someone on our team will reply within one business day. If it's urgent, email"," ",y.jsx("a",{href:oq,className:"text-purple-300 transition hover:text-purple-200",children:ej}),"."]}),y.jsx("button",{type:"button",onClick:()=>n(!1),className:"mt-1 text-sm text-foreground/55 transition hover:text-foreground",children:"← Send another"})]}):y.jsxs("form",{onSubmit:l(p),className:"space-y-5",noValidate:!0,children:[y.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[y.jsx(Zy,{label:"Full name",error:u.name?.message,children:y.jsx("input",{...o("name"),className:"partner-input",autoComplete:"name"})}),y.jsx(Zy,{label:"Company",error:u.company?.message,children:y.jsx("input",{...o("company"),className:"partner-input",autoComplete:"organization"})}),y.jsx(Zy,{label:"Work email",error:u.email?.message,className:"sm:col-span-2",children:y.jsx("input",{...o("email"),className:"partner-input",type:"email",autoComplete:"email"})})]}),y.jsx("button",{type:"submit",disabled:f,className:"group inline-flex w-full items-center justify-center gap-2 rounded-full bg-[#7f57da] px-6 py-4 text-sm font-medium text-white transition hover:bg-[#8a63e3] disabled:opacity-60 sm:w-auto",children:f?y.jsxs(y.Fragment,{children:[y.jsx(Ja,{className:"h-4 w-4 animate-spin"}),"Sending…"]}):y.jsxs(y.Fragment,{children:["Talk to our team",y.jsx(Pn,{className:"h-4 w-4 transition group-hover:translate-x-0.5"})]})}),s&&y.jsx("p",{className:"text-sm text-destructive",children:s}),y.jsxs("p",{className:"text-xs text-foreground/55",children:["We respond within one business day. By submitting you agree to our"," ",y.jsx(ot,{to:"/privacy",className:"underline underline-offset-2 hover:text-foreground",children:"privacy policy"}),"."]})]})]})}function Zy({label:e,error:t,className:n,children:s}){return y.jsxs("label",{className:n?`block ${n}`:"block",children:[y.jsx("span",{className:cq,children:e}),s,t&&y.jsx("span",{className:"mt-1.5 block text-xs text-destructive",children:t})]})}const fb="open-cta-modal";function so(){typeof window<"u"&&window.dispatchEvent(new Event(fb))}function dq(){const[e,t]=E.useState(!1);return E.useEffect(()=>{const n=()=>t(!0);return window.addEventListener(fb,n),()=>window.removeEventListener(fb,n)},[]),y.jsx(Ku,{open:e,onOpenChange:t,children:y.jsxs(Yu,{children:[y.jsx(Zu,{className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),y.jsxs(Xu,{className:"fixed left-1/2 top-1/2 z-50 max-h-[calc(100dvh-2rem)] w-[calc(100%-2rem)] max-w-2xl -translate-x-1/2 -translate-y-1/2 overflow-y-auto overscroll-contain 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",children:[y.jsx(Ju,{className:"sr-only",children:"Get in touch"}),y.jsx(uq,{heading:y.jsxs("h2",{className:"font-display text-3xl leading-[1.05] text-foreground sm:text-4xl",children:["Make AI ",y.jsx("em",{className:"text-purple-300",children:"Make An Impact"})]})}
vendor: 59,040 bytes, line 109
109),y.jsxs(Qu,{className:"absolute right-4 top-4 rounded-full p-2 text-foreground/55 transition hover:bg-white/[0.06] hover:text-foreground",children:[y.jsx(Qr,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]}),y.jsx(RO,{})]})]})})}const Rw=E.createContext({});function Ow(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const fq=typeof window<"u",jw=fq?E.useLayoutEffect:E.useEffect,Bp=E.createContext(null);function Nw(e,t){e.indexOf(t)===-1&&e.push(t)}function Jh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const vr=(e,t,n)=>n>t?t:n<e?e:n;let Iw=()=>{};const Yi={},tj=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),nj=e=>typeof e=="object"&&e!==null,sj=e=>/^0[^.\s]+$/u.test(e);function rj(e){let t;return()=>(t===void 0&&(t=e()),t)}const js=e=>e,rd=(...e)=>e.reduce((t,n)=>s=>n(t(s))),Mu=(e,t,n)=>{const s=t-e;return s?(n-e)/s:1};class Pw{constructor(){this.subscriptions=[]}add(t){return Nw(this.subscriptions,t),()=>Jh(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let o=0;o<i;o++){const l=this.subscriptions[o];l&&l(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ms=e=>e*1e3,Os=e=>e/1e3,ij=(e,t)=>t?e*(1e3/t):0,aj=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,hq=1e-7,pq=12;function mq(e,t,n,s,i){let o,l,u=0;do l=t+(n-t)/2,o=aj(l,s,i)-e,o>0?n=l:t=l;while(Math.abs(o)>hq&&++u<pq);return l}function id(e,t,n,s){if(e===t&&n===s)return js;const i=o=>mq(o,0,1,e,n);return o=>o===0||o===1?o:aj(i(o),t,s)}const oj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,lj=e=>t=>1-e(1-t),cj=id(.33,1.53,.69,.99),Mw=lj(cj),uj=oj(Mw),dj=e=>e>=1?1:(e*=2)<1?.5*Mw(e):.5*(2-Math.pow(2,-10*(e-1))),Dw=e=>1-Math.sin(Math.acos(e)),fj=lj(Dw),hj=oj(Dw),gq=id(.42,0,1,1),yq=id(0,0,.58,1),pj=id(.42,0,.58,1),vq=e=>Array.isArray(e)&&typeof e[0]!="number",mj=e=>Array.isArray(e)&&typeof e[0]=="number",bq={linear:js,easeIn:gq,easeInOut:pj,easeOut:yq,circIn:Dw,circInOut:hj,circOut:fj,backIn:Mw,backInOut:uj,backOut:cj,anticipate:dj},wq=e=>typeof e=="string",nC=e=>{if(mj(e)){Iw(e.length===4);const[t,n,s,i]=e;return id(t,n,s,i)}else if(wq(e))return bq[e];return e},Kf=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function xq(e){let t=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function u(h){o.has(h)&&(f.schedule(h),e()),h(l)}const f={schedule:(h,p=!1,m=!1)=>{const w=m&&s?t:n;return p&&o.add(h),w.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,s){i=!0;return}s=!0;const p=t;t=n,n=p,t.forEach(u),t.clear(),s=!1,i&&(i=!1,f.process(h))}};return f}const Sq=40;function gj(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Kf.reduce((R,O)=>(R[O]=xq(o),R),{}),{setup:u,read:f,resolveKeyframes:h,preUpdate:p,update:m,preRender:b,render:w,postRender:x}=l,S=()=>{const R=Yi.useManualTiming,O=R?i.timestamp:performance.now();n=!1,R||(i.delta=s?1e3/60:Math.max(Math.min(O-i.timestamp,Sq),1)),i.timestamp=O,i.isProcessing=!0,u.process(i),f.process(i),h.process(i),p.process(i),m.process(i),b.process(i),w.process(i),x.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(S))},_=()=>{n=!0,s=!0,i.isProcessing||e(S)};return{schedule:Kf.reduce((R,O)=>{const N=l[O];return R[O]=(P,D=!1,M=!1)=>(n||_(),N.schedule(P,D,M)),R},{}),cancel:R=>{for(let O=0;O<Kf.length;O++)l[Kf[O]].cancel(R)},state:i,steps:l}}const{schedule:Et,cancel:Zi,state:En,steps:Xy}=gj(typeof requestAnimationFrame<"u"?requestAnimationFrame:js,!0);let hh;function _q(){hh=void 0}const Un={now:()=>(hh===void 0&&Un.set(En.isProcessing||Yi.useManualTiming?En.timestamp:performance.now()),hh),set:e=>{hh=e,queueMicrotask(_q)}},yj=e=>t=>typeof t=="string"&&t.startsWith(e),vj=yj("--"),kq=yj("var(--"),Lw=e=>kq(e)?Aq.test(e.split("/*")[0].trim()):!1,Aq=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function sC(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Hl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Du={...Hl,transform:e=>vr(0,1,e)},Yf={...Hl,default:1},uu=e=>Math.round(e*1e5)/1e5,Bw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Cq(e){return e==null}const Eq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Uw=(e,t)=>n=>!!(typeof n=="string"&&Eq.test(n)&&n.startsWith(e)||t&&!Cq(n)&&Object.prototype.hasOwnProperty.call(n,t)),bj=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,o,l,u]=s.match(Bw);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},Tq=e=>vr(0,255,e),Jy={...Hl,transform:e=>Math.round(Tq(e))},Ha={test:Uw("rgb","red"),parse:bj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Jy.transform(e)+", "+Jy.transform(t)+", "+Jy.transform(n)+", "+uu(Du.transform(s))+")"};function Rq(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const hb={test:Uw("#"),parse:Rq,transform:Ha.transform},ad=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hr=ad("deg"),gr=ad("%"),Re=ad("px"),Oq=ad("vh"),jq=ad("vw"),rC={...gr,parse:e=>gr.parse(e)/100,transform:e=>gr.transform(e*100)},Al={test:Uw("hsl","hue"),parse:bj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+gr.transform(uu(t))+", "+gr.transform(uu(n))+", "+uu(Du.transform(s))+")"},rn={test:e=>Ha.test(e)||hb.test(e)||Al.test(e),parse:e=>Ha.test(e)?Ha.parse(e):Al.test(e)?Al.parse(e):hb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ha.transform(e):Al.transform(e),getAnimatableNone:e=>{const t=rn.parse(e);return t.alpha=0,rn.transform(t)}},Nq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Iq(e){return isNaN(e)&&typeof e=="string"&&(e.match(Bw)?.length||0)+(e.match(Nq)?.length||0)>0}const wj="number",xj="color",Pq="var",Mq="var(",iC="${}",Dq=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ul(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(Dq,f=>(rn.test(f)?(s.color.push(o),i.push(xj),n.push(rn.parse(f))):f.startsWith(Mq)?(s.var.push(o),i.push(Pq),n.push(f)):(s.number.push(o),i.push(wj),n.push(parseFloat(f))),++o,iC)).split(iC);return{values:n,split:u,indexes:s,types:i}}function Lq(e){return Ul(e).values}function Sj({split:e,types:t}){const n=e.length;return s=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],s[o]!==void 0){const l=t[o];l===wj?i+=uu(s[o]):l===xj?i+=rn.transform(s[o]):i+=s[o]}return i}}function Bq(e){return Sj(Ul(e))}const Uq=e=>typeof e=="number"?0:rn.test(e)?rn.getAnimatableNone(e):e,zq=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Uq(e);function Vq(e){const t=Ul(e);return Sj(t)(t.values.map((s,i)=>zq(s,t.split[i])))}const Js={test:Iq,parse:Lq,createTransformer:Bq,getAnimatableNone:Vq};function Qy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $q({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=Qy(f,u,e+1/3),o=Qy(f,u,e),l=Qy(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:s}}function Qh(e,t){return n=>n>0?t:e}const At=(e,t,n)=>e+(t-e)*n,ev=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},Fq=[hb,Ha,Al],Hq=e=>Fq.find(t=>t.test(e));function aC(e){const t=Hq(e);if(!t)return!1;let n=t.parse(e);return t===Al&&(n=$q(n)),n}const oC=(e,t)=>{const n=aC(e),s=aC(t);if(!n||!s)return Qh(e,t);const i={...n};return o=>(i.red=ev(n.red,s.red,o),i.green=ev(n.green,s.green,o),i.blue=ev(n.blue,s.blue,o),i.alpha=At(n.alpha,s.alpha,o),Ha.transform(i))},pb=new Set(["none","hidden"]);function qq(e,t){return pb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Wq(e,t){return n=>At(e,t,n)}function zw(e){return typeof e=="number"?Wq:typeof e=="string"?Lw(e)?Qh:rn.test(e)?oC:Yq:Array.isArray(e)?_j:typeof e=="object"?rn.test(e)?oC:Gq:Qh}function _j(e,t){const n=[...e],s=n.length,i=e.map((o,l)=>zw(o)(o,t[l]));return o=>{for(let l=0;l<s;l++)n[l]=i[l](o);return n}}function Gq(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=zw(e[i])(e[i],t[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Kq(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],l=e.indexes[o][s[o]],u=e.values[l]??0;n[i]=u,s[o]++}return n}const Yq=(e,t)=>{const n=Js.createTransformer(t),s=Ul(e),i=Ul(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?pb.has(e)&&!i.values.length||pb.has(t)&&!s.values.length?qq(e,t):rd(_j(Kq(s,i),i.values),n):Qh(e,t)};function kj(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?At(e,t,n):zw(e)(e,t)}const Zq=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Et.update(t,n),stop:()=>Zi(t),now:()=>En.isProcessing?En.timestamp:Un.now()}},Aj=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)s+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ep=2e4;function Vw(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<ep;)t+=n,s=e.next(t);return t>=ep?1/0:t}function Xq(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(Vw(s),ep);return{type:"keyframes",ease:o=>s.next(i*o).value/t,duration:Os(i)}}const Ht={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function mb(e,t){return e*Math.sqrt(1-t*t)}const Jq=12;function Qq(e,t,n){let s=n;for(let i=1;i<Jq;i++)s=s-e(s)/t(s);return s}const tv=.001;function e8({duration:e=Ht.duration,bounce:t=Ht.bounce,velocity:n=Ht.velocity,mass:s=Ht.mass}){let i,o,l=1-t;l=vr(Ht.minDamping,Ht.maxDamping,l),e=vr(Ht.minDuration,Ht.maxDuration,Os(e)),l<1?(i=h=>{const p=h*l,m=p*e,b=p-n,w=mb(h,l),x=Math.exp(-m);return tv-b/w*x},o=h=>{const m=h*l*e,b=m*n+n,w=Math.pow(l,2)*Math.pow(h,2)*e,x=Math.exp(-m),S=mb(Math.pow(h,2),l);return(-i(h)+tv>0?-1:1)*((b-w)*x)/S}):(i=h=>{const p=Math.exp(-h*e),m=(h-n)*e+1;return-tv+p*m},o=h=>{const p=Math.exp(-h*e),m=(n-h)*(e*e);return p*m});const u=5/e,f=Qq(i,o,u);if(e=ms(e),isNaN(f))return{stiffness:Ht.stiffness,damping:Ht.damping,duration:e};{const h=Math.pow(f,2)*s;return{stiffness:h,damping:l*2*Math.sqrt(s*h),duration:e}}}const t8=["duration","bounce"],n8=["stiffness","damping","mass"];function lC(e,t){return t.some(n=>e[n]!==void 0)}function s8(e){let t={velocity:Ht.velocity,stiffness:Ht.stiffness,damping:Ht.damping,mass:Ht.mass,isResolvedFromDuration:!1,...e};if(!lC(e,n8)&&lC(e,t8))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*vr(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ht.mass,stiffness:i,damping:o}}else{const n=e8({...e,velocity:0});t={...t,...n,mass:Ht.mass},t.isResolvedFromDuration=!0}return t}function tp(e=Ht.visualDuration,t=Ht.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:f,damping:h,mass:p,duration:m,velocity:b,isResolvedFromDuration:w}=s8({...n,velocity:-Os(n.velocity||0)}),x=b||0,S=h/(2*Math.sqrt(f*p)),_=l-o,k=Os(Math.sqrt(f/p)),C=Math.abs(_)<5;s||(s=C?Ht.restSpeed.granular:Ht.restSpeed.default),i||(i=C?Ht.restDelta.granular:Ht.restDelta.default);let R,O,N,P,D,M;if(S<1)N=mb(k,S),P=(x+S*k*_)/N,R=K=>{const Y=Math.exp(-S*k*K);return l-Y*(P*Math.sin(N*K)+_*Math.cos(N*K))},D=S*k*P+_*N,M=S*k*_-P*N,O=K=>Math.exp(-S*k*K)*(D*Math.sin(N*K)+M*Math.cos(N*K));else if(S===1){R=Y=>l-Math.exp(-k*Y)*(_+(x+k*_)*Y);const K=x+k*_;O=Y=>Math.exp(-k*Y)*(k*K*Y-x)}else{const K=k*Math.sqrt(S*S-1);R=oe=>{const be=Math.exp(-S*k*oe),V=Math.min(K*oe,300);return l-be*((x+S*k*_)*Math.sinh(V)+K*_*Math.cosh(V))/K};const Y=(x+S*k*_)/K,X=S*k*Y-_*K,ae=S*k*_-Y*K;O=oe=>{const be=Math.exp(-S*k*oe),V=Math.min(K*oe,300);return be*(X*Math.sinh(V)+ae*Math.cosh(V))}}const $={calculatedDuration:w&&m||null,velocity:K=>ms(O(K)),next:K=>{if(!w&&S<1){const X=Math.exp(-S*k*K),ae=Math.sin(N*K),oe=Math.cos(N*K),be=l-X*(P*ae+_*oe),V=ms(X*(D*ae+M*oe));return u.done=Math.abs(V)<=s&&Math.abs(l-be)<=i,u.value=u.done?l:be,u}const Y=R(K);if(w)u.done=K>=m;else{const X=ms(O(K));u.done=Math.abs(X)<=s&&Math.abs(l-Y)<=i}return u.value=u.done?l:Y,u},toString:()=>{const K=Math.min(Vw($),ep),Y=Aj(X=>$.next(K*X).value,K,30);return K+"ms "+Y},toTransition:()=>{}};return $}tp.applyToOptions=e=>{const t=Xq(e,100,tp);return e.ease=t.ease,e.duration=ms(t.duration),e.type="keyframes",e};const r8=5;function Cj(e,t,n){const s=Math.max(t-r8,0);return ij(n-e(s),t-s)}function gb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:l,min:u,max:f,restDelta:h=.5,restSpeed:p}){const m=e[0],b={done:!1,value:m},w=M=>u!==void 0&&M<u||f!==void 0&&M>f,x=M=>u===void 0?f:f===void 0||Math.abs(u-M)<Math.abs(f-M)?u:f;let S=n*t;const _=m+S,k=l===void 0?_:l(_);k!==_&&(S=k-m);const C=M=>-S*Math.exp(-M/s),R=M=>k+C(M),O=M=>{const $=C(M),K=R(M);b.done=Math.abs($)<=h,b.value=b.done?k:K};let N,P;const D=M=>{w(b.value)&&(N=M,P=tp({keyframes:[b.value,x(b.value)],velocity:Cj(R,M,b.value),damping:i,stiffness:o,restDelta:h,restSpeed:p}))};return D(0),{calculatedDuration:null,next:M=>{let $=!1;return!P&&N===void 0&&($=!0,O(M),D(M)),N!==void 0&&M>=N?P.next(M-N):(!$&&O(M),b)}}}function i8(e,t,n){const s=[],i=n||Yi.mix||kj,o=e.length-1;for(let l=0;l<o;l++){let u=i(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||js:t;u=rd(f,u)}s.push(u)}return s}function a8(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const o=e.length;if(Iw(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=i8(t,s,i),f=u.length,h=p=>{if(l&&p<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(p<e[m+1]);m++);const b=Mu(e[m],e[m+1],p);return u[m](b)};return n?p=>h(vr(e[0],e[o-1],p)):h}function o8(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=Mu(0,t,s);e.push(At(n,1,i))}}function l8(e){const t=[0];return o8(t,e.length-1),t}function c8(e,t){return e.map(n=>n*t)}function u8(e,t){return e.map(()=>t||pj).splice(0,e.length-1)}function du({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=vq(s)?s.map(nC):nC(s),o={done:!1,value:t[0]},l=c8(n&&n.length===t.length?n:l8(t),e),u=a8(l,t,{ease:Array.isArray(i)?i:u8(t,i)});return{calculatedDuration:e,next:f=>(o.value=u(f),o.done=f>=e,o)}}const d8=e=>e!==null;function Up(e,{repeat:t,repeatType:n="loop"},s,i=1){const o=e.filter(d8),u=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!u||s===void 0?o[u]:s}const f8={decay:gb,inertia:gb,tween:du,keyframes:du,spring:tp};function Ej(e){typeof e.type=="string"&&(e.type=f8[e.type])}class $w{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const h8=e=>e/100;class np extends $w{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Un.now()&&this.tick(Un.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ej(t);const{type:n=du,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:l=0}=t;let{keyframes:u}=t;const f=n||du;f!==du&&typeof u[0]!="number"&&(this.mixKeyframes=rd(h8,kj(u[0],u[1])),u=[0,100]);const h=f({...t,keyframes:u});o==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...u].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=Vw(h));const{calculatedDuration:p}=h;this.calculatedDuration=p,this.resolvedDuration=p+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:f}=this;if(this.startTime===null)return s.next(0);const{delay:h=0,keyframes:p,repeat:m,repeatType:b,repeatDelay:w,type:x,onUpdate:S,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const k=this.currentTime-h*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?k<0:k>i;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let R=this.currentTime,O=s;if(m){const M=Math.min(this.currentTime,i)/u;let $=Math.floor(M),K=M%1;!K&&M>=1&&(K=1),K===1&&$--,$=Math.min($,m+1),$%2&&(b==="reverse"?(K=1-K,w&&(K-=w/u)):b==="mirror"&&(O=l)),R=vr(0,1,K)*u}let N;C?(this.delayState.value=p[0],N=this.delayState):N=O.next(R),o&&!C&&(N.value=o(N.value));let{done:P}=N;!C&&f!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&x!==gb&&(N.value=Up(p,this.options,_,this.speed)),S&&S(N.value),D&&this.finish(),N}then(t,n){return this.finished.then(t,n)}get duration(){return Os(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Os(t)}get time(){return Os(this.currentTime)}set time(t){t=ms(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Cj(s=>this.generator.next(s).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Un.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Os(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Zq,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Un.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function p8(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const qa=e=>e*180/Math.PI,yb=e=>{const t=qa(Math.atan2(e[1],e[0]));return vb(t)},m8={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yb,rotateZ:yb,skewX:e=>qa(Math.atan(e[1])),skewY:e=>qa(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vb=e=>(e=e%360,e<0&&(e+=360),e),cC=yb,uC=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dC=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),g8={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uC,scaleY:dC,scale:e=>(uC(e)+dC(e))/2,rotateX:e=>vb(qa(Math.atan2(e[6],e[5]))),rotateY:e=>vb(qa(Math.atan2(-e[2],e[0]))),rotateZ:cC,rotate:cC,skewX:e=>qa(Math.atan(e[4])),skewY:e=>qa(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bb(e){return e.includes("scale")?1:0}function wb(e,t){if(!e||e==="none")return bb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=g8,i=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=m8,i=u}if(!i)return bb(t);const o=s[t],l=i[1].split(",").map(v8);return typeof o=="function"?o(l):l[o]}const y8=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return wb(n,t)};function v8(e){return parseFloat(e.trim())}const ql=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wl=new Set([...ql,"pathRotation"]),fC=e=>e===Hl||e===Re,b8=new Set(["x","y","z"]),w8=ql.filter(e=>!b8.has(e));function x8(e){const t=[];return w8.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const Fi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:s})=>{const i=e.max-e.min;return s==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:s})=>{const i=e.max-e.min;return s==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>wb(t,"x"),y:(e,{transform:t})=>wb(t,"y")};Fi.translateX=Fi.x;Fi.translateY=Fi.y;const Ya=new Set;let xb=!1,Sb=!1,_b=!1;function Tj(){if(Sb){const e=Array.from(Ya).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=x8(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,l])=>{s.getValue(o)?.set(l)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Sb=!1,xb=!1,Ya.forEach(e=>e.complete(_b)),Ya.clear()}function Rj(){Ya.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sb=!0)})}function S8(){_b=!0,Rj(),Tj(),_b=!1}class Fw{constructor(t,n,s,i,o,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Ya.add(this),xb||(xb=!0,Et.read(Rj),Et.resolveKeyframes(Tj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;if(t[0]===null){const o=i?.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(s&&n){const u=s.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),i&&o===void 0&&i.set(t[0])}p8(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ya.delete(this)}cancel(){this.state==="scheduled"&&(Ya.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const _8=e=>e.startsWith("--");function Oj(e,t,n){_8(t)?e.style.setProperty(t,n):e.style[t]=n}const k8={};function jj(e,t){const n=rj(e);return()=>k8[t]??n()}const A8=jj(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Nj=jj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),su=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,hC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:su([0,.65,.55,1]),circOut:su([.55,0,1,.45]),backIn:su([.31,.01,.66,-.59]),backOut:su([.33,1.53,.69,.99])};function Ij(e,t){if(e)return typeof e=="function"?Nj()?Aj(e,t):"ease-out":mj(e)?su(e):Array.isArray(e)?e.map(n=>Ij(n,t)||hC.easeOut):hC[e]}function C8(e,t,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:l="loop",ease:u="easeOut",times:f}={},h=void 0){const p={[t]:n};f&&(p.offset=f);const m=Ij(u,i);Array.isArray(m)&&(p.easing=m);const b={delay:s,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"};return h&&(b.pseudoElement=h),e.animate(p,b)}function Pj(e){return typeof e=="function"&&"applyToOptions"in e}function E8({type:e,...t}){return Pj(e)&&Nj()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Mj extends $w{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:l=!1,finalKeyframe:u,onComplete:f}=t;this.isPseudoElement=!!o,this.allowFlatten=l,this.options=t,Iw(typeof t.type!="string");const h=E8(t);this.animation=C8(n,s,i,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const p=Up(i,this.options,u,this.speed);this.updateMotionValue&&this.updateMotionValue(p),Oj(n,s,p),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Os(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Os(t)}get time(){return Os(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ms(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&A8()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),js):i(this)}}const Dj={anticipate:dj,backInOut:uj,circInOut:hj};function T8(e){return e in Dj}function R8(e){typeof e.ease=="string"&&T8(e.ease)&&(e.ease=Dj[e.ease])}const nv=10;class O8 extends Mj{constructor(t){R8(t),Ej(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new np({...l,autoplay:!1}),f=Math.max(nv,Un.now()-this.startTime),h=vr(0,nv,f-nv),p=u.sample(f).value,{name:m}=this.options;o&&m&&Oj(o,m,p),n.setWithVelocity(u.sample(Math.max(0,f-h)).value,p,h),u.stop()}}const pC=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Js.test(e)||e==="0")&&!e.startsWith("url("));function j8(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function N8(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=pC(i,t),u=pC(o,t);return!l||!u?!1:j8(e)||(n==="spring"||Pj(n))&&s}function kb(e){e.duration=0,e.type="keyframes"}const Lj=new Set(["opacity","clipPath","filter","transform"]),I8=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function P8(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&I8.test(e[t]))return!0;return!1}const M8=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),D8=rj(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function L8(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:o,type:l,keyframes:u}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=t.owner.getProps();return D8()&&n&&(Lj.has(n)||M8.has(n)&&P8(u))&&(n!=="transform"||!p)&&!h&&!s&&i!=="mirror"&&o!==0&&l!=="inertia"}const B8=40;class U8 extends $w{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",keyframes:u,name:f,motionValue:h,element:p,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Un.now();const b={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:l,name:f,motionValue:h,element:p,...m},w=p?.KeyframeResolver||Fw;this.keyframeResolver=new w(u,(x,S,_)=>this.onKeyframesResolved(x,S,b,!_),f,h,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,i){this.keyframeResolver=void 0;const{name:o,type:l,velocity:u,delay:f,isHandoff:h,onUpdate:p}=s;this.resolvedAt=Un.now();let m=!0;N8(t,o,l,u)||(m=!1,(Yi.instantAnimations||!f)&&p?.(Up(t,s,n)),t[0]=t[t.length-1],kb(s),s.repeat=0);const w={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>B8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},x=m&&!h&&L8(w),S=w.motionValue?.owner?.current;let _;if(x)try{_=new O8({...w,element:S})}catch{_=new np(w)}else _=new np(w);_.finished.then(()=>{this.notifyFinished()}).catch(js),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),S8()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Bj(e,t,n,s=0,i=1){const o=Array.from(e).sort((h,p)=>h.sortNodePosition(p)).indexOf(t),l=e.size,u=(l-1)*s;return typeof n=="function"?n(o,l):i===1?o*s:u-o*s}const mC=30,z8=e=>!isNaN(parseFloat(e));class V8{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=Un.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Un.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=z8(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Pw);const s=this.events[t].add(n);return t==="change"?()=>{s(),Et.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Un.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>mC)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,mC);return ij(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zl(e,t){return new V8(e,t)}function Uj(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Hw(e,t){const n=e?.[t]??e?.default??e;return n!==e?Uj(n,e):n}const $8={type:"spring",stiffness:500,damping:25,restSpeed:10},F8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),H8={type:"keyframes",duration:.8},q8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W8=(e,{keyframes:t})=>t.length>2?H8:Wl.has(e)?e.startsWith("scale")?F8(t[1]):$8:q8,G8=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function K8(e){for(const t in e)if(!G8.has(t))return!0;return!1}const qw=(e,t,n,s={},i,o)=>l=>{const u=Hw(s,e)||{},f=u.delay||s.delay||0;let{elapsed:h=0}=s;h=h-ms(f);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-h,onUpdate:b=>{t.set(b),u.onUpdate&&u.onUpdate(b)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};K8(u)||Object.assign(p,W8(e,p)),p.duration&&(p.duration=ms(p.duration)),p.repeatDelay&&(p.repeatDelay=ms(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(kb(p),p.delay===0&&(m=!0)),(Yi.instantAnimations||Yi.skipAnimations||i?.shouldSkipAnimations||u.skipAnimations)&&(m=!0,kb(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,m&&!o&&t.get()!==void 0){const b=Up(p.keyframes,u);if(b!==void 0){Et.update(()=>{p.onUpdate(b),p.onComplete()});return}}return u.isSync?new np(p):new U8(p)},Y8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z8(e){const t=Y8.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function zj(e,t,n=1){const[s,i]=Z8(e);if(!s)return;const o=window.getComputedStyle(t).getPropertyValue(s);if(o){const l=o.trim();return tj(l)?parseFloat(l):l}return Lw(i)?zj(i,t,n+1):i}function gC(e){const t=[{},{}];return e?.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Ww(e,t,n,s){if(typeof t=="function"){const[i,o]=gC(s);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=gC(s);t=t(n!==void 0?n:e.custom,i,o)}return t}function Za(e,t,n){const s=e.getProps();return Ww(s,t,n!==void 0?n:s.custom,e)}const Vj=new Set(["width","height","top","left","right","bottom",...ql]),Ab=e=>Array.isArray(e);function X8(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zl(n))}function J8(e){return Ab(e)?e[e.length-1]||0:e}function Q8(e,t){const n=Za(e,t);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const l in o){const u=J8(o[l]);X8(e,l,u)}}const Rn=e=>!!(e&&e.getVelocity);function eW(e){return!!(Rn(e)&&e.add)}function Cb(e,t){const n=e.getValue("willChange");if(eW(n))return n.add(t);if(!n&&Yi.WillChange){const s=new Yi.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Gw(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const tW="framerAppearId",$j="data-"+Gw(tW);function Fj(e){return e.props[$j]}function nW({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Hj(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:l,...u}=t;const f=e.getDefaultTransition();o=o?Uj(o,f):f;const h=o?.reduceMotion,p=o?.skipAnimations;s&&(o=s);const m=[],b=i&&e.animationState&&e.animationState.getState()[i],w=o?.path;w&&w.animateVisualElement(e,u,o,n,m);for(const x in u){const S=e.getValue(x,e.latestValues[x]??null),_=u[x];if(_===void 0||b&&nW(b,x))continue;const k={delay:n,...Hw(o||{},x)};p&&(k.skipAnimations=!0);const C=S.get();if(C!==void 0&&!S.isAnimating()&&!Array.isArray(_)&&_===C&&!k.velocity){Et.update(()=>S.set(_));continue}let R=!1;if(window.MotionHandoffAnimation){const P=Fj(e);if(P){const D=window.MotionHandoffAnimation(P,x,Et);D!==null&&(k.startTime=D,R=!0)}}Cb(e,x);const O=h??e.shouldReduceMotion;S.start(qw(x,S,_,O&&Vj.has(x)?{type:!1}:k,e,R));const N=S.animation;N&&m.push(N)}if(l){const x=()=>Et.update(()=>{l&&Q8(e,l)});m.length?Promise.all(m).then(x):x()}return m}function Eb(e,t,n={}){const s=Za(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Hj(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:p,staggerDirection:m}=i;return sW(e,t,f,h,p,m,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[f,h]=u==="beforeChildren"?[o,l]:[l,o];return f().then(()=>h())}else return Promise.all([o(),l(n.delay)])}function sW(e,t,n=0,s=0,i=0,o=1,l){const u=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),u.push(Eb(f,t,{...l,delay:n+(typeof s=="function"?0:s)+Bj(e.variantChildren,f,s,i,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(u)}function rW(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(o=>Eb(e,o,n));s=Promise.all(i)}else if(typeof t=="string")s=Eb(e,t,n);else{const i=typeof t=="function"?Za(e,t,n.custom):t;s=Promise.all(Hj(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const iW={test:e=>e==="auto",parse:e=>e},qj=e=>t=>t.test(e),Wj=[Hl,Re,gr,Hr,jq,Oq,iW],yC=e=>Wj.find(qj(e));function aW(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||sj(e):!0}const oW=new Set(["brightness","contrast","saturate","opacity"]);function lW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Bw)||[];if(!s)return e;const i=n.replace(s,"");let o=oW.has(t)?1:0;return s!==n&&(o*=100),t+"("+o+i+")"}const cW=/\b([a-z-]*)\(.*?\)/gu,Tb={...Js,getAnimatableNone:e=>{const t=e.match(cW);return t?t.map(lW).join(" "):e}},Rb={...Js,getAnimatableNone:e=>{const t=Js.parse(e);return Js.createTransformer(e)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},vC={...Hl,transform:Math.round},uW={rotate:Hr,pathRotation:Hr,rotateX:Hr,rotateY:Hr,rotateZ:Hr,scale:Yf,scaleX:Yf,scaleY:Yf,scaleZ:Yf,skew:Hr,skewX:Hr,skewY:Hr,distance:Re,translateX:Re,translateY:Re,translateZ:Re,x:Re,y:Re,z:Re,perspective:Re,transformPerspective:Re,opacity:Du,originX:rC,originY:rC,originZ:Re},sp={borderWidth:Re,borderTopWidth:Re,borderRightWidth:Re,borderBottomWidth:Re,borderLeftWidth:Re,borderRadius:Re,borderTopLeftRadius:Re,borderTopRightRadius:Re,borderBottomRightRadius:Re,borderBottomLeftRadius:Re,width:Re,maxWidth:Re,height:Re,maxHeight:Re,top:Re,right:Re,bottom:Re,left:Re,inset:Re,insetBlock:Re,insetBlockStart:Re,insetBlockEnd:Re,insetInline:Re,insetInlineStart:Re,insetInlineEnd:Re,padding:Re,paddingTop:Re,paddingRight:Re,paddingBottom:Re,paddingLeft:Re,paddingBlock:Re,paddingBlockStart:Re,paddingBlockEnd:Re,paddingInline:Re,paddingInlineStart:Re,paddingInlineEnd:Re,margin:Re,marginTop:Re,marginRight:Re,marginBottom:Re,marginLeft:Re,marginBlock:Re,marginBlockStart:Re,marginBlockEnd:Re,marginInline:Re,marginInlineStart:Re,marginInlineEnd:Re,fontSize:Re,backgroundPositionX:Re,backgroundPositionY:Re,...uW,zIndex:vC,fillOpacity:Du,strokeOpacity:Du,numOctaves:vC},dW={...sp,color:rn,backgroundColor:rn,outlineColor:rn,fill:rn,stroke:rn,borderColor:rn,borderTopColor:rn,borderRightColor:rn,borderBottomColor:rn,borderLeftColor:rn,filter:Tb,WebkitFilter:Tb,mask:Rb,WebkitMask:Rb},Gj=e=>dW[e],fW=new Set([Tb,Rb]);function Kj(e,t){let n=Gj(e);return fW.has(n)||(n=Js),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hW=new Set(["auto","none","0"]);function pW(e,t,n){let s=0,i;for(;s<e.length&&!i;){const o=e[s];typeof o=="string"&&!hW.has(o)&&Ul(o).values.length&&(i=e[s]),s++}if(i&&n)for(const o of t)e[o]=Kj(n,i)}class mW extends Fw{constructor(t,n,s,i,o){super(t,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let p=0;p<t.length;p++){let m=t[p];if(typeof m=="string"&&(m=m.trim(),Lw(m))){const b=zj(m,n.current);b!==void 0&&(t[p]=b),p===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!Vj.has(s)||t.length!==2)return;const[i,o]=t,l=yC(i),u=yC(o),f=sC(i),h=sC(o);if(f!==h&&Fi[s]){this.needsMeasurement=!0;return}if(l!==u)if(fC(l)&&fC(u))for(let p=0;p<t.length;p++){const m=t[p];typeof m=="string"&&(t[p]=parseFloat(m))}else Fi[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||aW(t[i]))&&s.push(i);s.length&&pW(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fi[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,l=s[o];s[o]=Fi[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([u,f])=>{t.getValue(u).set(f)}),this.resolveNoneKeyframes()}}const Kw=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Yj(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=n?.[e]??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}const Ob=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ph(e){return nj(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Yw}=gj(queueMicrotask,!1),Ws={x:!1,y:!1};function Zj(){return Ws.x||Ws.y}function gW(e){return e==="x"||e==="y"?Ws[e]?null:(Ws[e]=!0,()=>{Ws[e]=!1}):Ws.x||Ws.y?null:(Ws.x=Ws.y=!0,()=>{Ws.x=Ws.y=!1})}function Xj(e,t){const n=Yj(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function yW(e){return!(e.pointerType==="touch"||Zj())}function vW(e,t,n={}){const[s,i,o]=Xj(e,n);return s.forEach(l=>{let u=!1,f=!1,h;const p=()=>{l.removeEventListener("pointerleave",x)},m=_=>{h&&(h(_),h=void 0),p()},b=_=>{u=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),f&&(f=!1,m(_))},w=()=>{u=!0,window.addEventListener("pointerup",b,i),window.addEventListener("pointercancel",b,i)},x=_=>{if(_.pointerType!=="touch"){if(u){f=!0;return}m(_)}},S=_=>{if(!yW(_))return;f=!1;const k=t(l,_);typeof k=="function"&&(h=k,l.addEventListener("pointerleave",x,i))};l.addEventListener("pointerenter",S,i),l.addEventListener("pointerdown",w,i)}),o}const Jj=(e,t)=>t?e===t?!0:Jj(e,t.parentElement):!1,Zw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,bW=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wW(e){return bW.has(e.tagName)||e.isContentEditable===!0}const xW=new Set(["INPUT","SELECT","TEXTAREA"]);function SW(e){return xW.has(e.tagName)||e.isContentEditable===!0}const mh=new WeakSet;function bC(e){return t=>{t.key==="Enter"&&e(t)}}function sv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _W=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=bC(()=>{if(mh.has(n))return;sv(n,"down");const i=bC(()=>{sv(n,"up")}),o=()=>sv(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function wC(e){return Zw(e)&&!Zj()}const xC=new WeakSet;function kW(e,t,n={}){const[s,i,o]=Xj(e,n),l=u=>{const f=u.currentTarget;if(!wC(u)||xC.has(u))return;mh.add(f),n.stopPropagation&&xC.add(u);const h=t(f,u),p={...i,capture:!0},m=(x,S)=>{window.removeEventListener("pointerup",b,p),window.removeEventListener("pointercancel",w,p),mh.has(f)&&mh.delete(f),wC(x)&&typeof h=="function"&&h(x,{success:S})},b=x=>{m(x,f===window||f===document||n.useGlobalTarget||Jj(f,x.target))},w=x=>{m(x,!1)};window.addEventListener("pointerup",b,p),window.addEventListener("pointercancel",w,p)};return s.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,i),ph(u)&&(u.addEventListener("focus",h=>_W(h,i)),!wW(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),o}function Xw(e){return nj(e)&&"ownerSVGElement"in e}const gh=new WeakMap;let yh;const Qj=(e,t,n)=>(s,i)=>i&&i[0]?i[0][e+"Size"]:Xw(s)&&"getBBox"in s?s.getBBox()[t]:s[n],AW=Qj("inline","width","offsetWidth"),CW=Qj("block","height","offsetHeight");function EW({target:e,borderBoxSize:t}){gh.get(e)?.forEach(n=>{n(e,{get width(){return AW(e,t)},get height(){return CW(e,t)}})})}function TW(e){e.forEach(EW)}function RW(){typeof ResizeObserver>"u"||(yh=new ResizeObserver(TW))}function OW(e,t){yh||RW();const n=Yj(e);return n.forEach(s=>{let i=gh.get(s);i||(i=new Set,gh.set(s,i)),i.add(t),yh?.observe(s)}),()=>{n.forEach(s=>{const i=gh.get(s);i?.delete(t),i?.size||yh?.unobserve(s)})}}const vh=new Set;let Cl;function jW(){Cl=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};vh.forEach(t=>t(e))},window.addEventListener("resize",Cl)}function NW(e){return vh.add(e),Cl||jW(),()=>{vh.delete(e),!vh.size&&typeof Cl=="function"&&(window.removeEventListener("resize",Cl),Cl=void 0)}}function SC(e,t){return typeof e=="function"?NW(e):OW(e,t)}function IW(e){return Xw(e)&&e.tagName==="svg"}const PW=[...Wj,rn,Js],MW=e=>PW.find(qj(e)),_C=()=>({translate:0,scale:1,origin:0,originPoint:0}),El=()=>({x:_C(),y:_C()}),kC=()=>({min:0,max:0}),un=()=>({x:kC(),y:kC()}),DW=new WeakMap;function zp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Lu(e){return typeof e=="string"||Array.isArray(e)}const Jw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qw=["initial",...Jw];function Vp(e){return zp(e.animate)||Qw.some(t=>Lu(e[t]))}function e2(e){return!!(Vp(e)||e.variants)}function LW(e,t,n){for(const s in t){const i=t[s],o=n[s];if(Rn(i))e.addValue(s,i);else if(Rn(o))e.addValue(s,zl(i,{owner:e}));else if(o!==i)if(e.hasValue(s)){const l=e.getValue(s);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(s);e.addValue(s,zl(l!==void 0?l:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const rp={current:null},e0={current:!1},BW=typeof window<"u";function t2(){if(e0.current=!0,!!BW)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rp.current=e.matches;e.addEventListener("change",t),t()}else rp.current=!1}const AC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ip={};function n2(e){ip=e}function UW(){return ip}class zW{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:l,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Fw,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Un.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Et.render(this.render,!1,!0))};const{latestValues:h,renderState:p}=u;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=Vp(n),this.isVariantNode=e2(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...b}=this.scrapeMotionValuesFromProps(n,{},this);for(const w in b){const x=b[w];h[w]!==void 0&&Rn(x)&&x.set(h[w])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,DW.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(e0.current||t2(),this.shouldReduceMotion=rp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Zi(this.notifyUpdate),Zi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Lj.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:u,times:f,ease:h,duration:p}=n.accelerate,m=new Mj({element:this.current,name:t,keyframes:u,times:f,ease:h,duration:ms(p)}),b=l(m);this.valueSubscriptions.set(t,()=>{b(),m.cancel()});return}const s=Wl.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Et.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ip){const n=ip[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):un()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<AC.length;s++){const i=AC[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,l=t[o];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=LW(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=zl(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(tj(s)||sj(s))?s=parseFloat(s):!MW(s)&&Js.test(n)&&(s=Kj(t,n)),this.setBaseTarget(t,Rn(s)?s.get():s)),Rn(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=Ww(this.props,n,this.presenceContext?.custom);o&&(s=o[t])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Rn(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Pw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Yw.render(this.render)}}class s2 extends zW{constructor(){super(...arguments),this.KeyframeResolver=mW}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ra{constructor(t){this.isMounted=!1,this.node=t}update(){}}function r2({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function VW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $W(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function rv(e){return e===void 0||e===1}function jb({scale:e,scaleX:t,scaleY:n}){return!rv(e)||!rv(t)||!rv(n)}function Da(e){return jb(e)||i2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function i2(e){return CC(e.x)||CC(e.y)}function CC(e){return e&&e!=="0%"}function ap(e,t,n){const s=e-n,i=t*s;return n+i}function EC(e,t,n,s,i){return i!==void 0&&(e=ap(e,i,s)),ap(e,n,s)+t}function Nb(e,t=0,n=1,s,i){e.min=EC(e.min,t,n,s,i),e.max=EC(e.max,t,n,s,i)}function a2(e,{x:t,y:n}){Nb(e.x,t.translate,t.scale,t.originPoint),Nb(e.y,n.translate,n.scale,n.originPoint)}const TC=.999999999999,RC=1.0000000000001;function FW(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,l;for(let u=0;u<i;u++){o=n[u],l=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(fr(e.x,-o.scroll.offset.x),fr(e.y,-o.scroll.offset.y)),l&&(t.x*=l.x.scale,t.y*=l.y.scale,a2(e,l)),s&&Da(o.latestValues)&&bh(e,o.latestValues,o.layout?.layoutBox))}t.x<RC&&t.x>TC&&(t.x=1),t.y<RC&&t.y>TC&&(t.y=1)}function fr(e,t){e.min+=t,e.max+=t}function OC(e,t,n,s,i=.5){const o=At(e.min,e.max,i);Nb(e,t,n,o,s)}function jC(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function bh(e,t,n){const s=n??e;OC(e.x,jC(t.x,s.x),t.scaleX,t.scale,t.originX),OC(e.y,jC(t.y,s.y),t.scaleY,t.scale,t.originY)}function o2(e,t){return r2($W(e.getBoundingClientRect(),t))}function HW(e,t,n){const s=o2(e,n),{scroll:i}=t;return i&&(fr(s.x,i.offset.x),fr(s.y,i.offset.y)),s}const qW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WW=ql.length;function GW(e,t,n){let s="",i=!0;for(let l=0;l<WW;l++){const u=ql[l],f=e[u];if(f===void 0)continue;let h=!0;if(typeof f=="number")h=f===(u.startsWith("scale")?1:0);else{const p=parseFloat(f);h=u.startsWith("scale")?p===1:p===0}if(!h||n){const p=Ob(f,sp[u]);if(!h){i=!1;const m=qW[u]||u;s+=`${m}(${p}) `}n&&(t[u]=p)}}const o=e.pathRotation;return o&&(i=!1,s+=`rotate(${Ob(o,sp.pathRotation)}) `),s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}
vendor: 4,999 bytes, line 109
109function t0(e,t,n){const{style:s,vars:i,transformOrigin:o}=e;let l=!1,u=!1;for(const f in t){const h=t[f];if(Wl.has(f)){l=!0;continue}else if(vj(f)){i[f]=h;continue}else{const p=Ob(h,sp[f]);f.startsWith("origin")?(u=!0,o[f]=p):s[f]=p}}if(t.transform||(l||n?s.transform=GW(t,e.transform,n):s.transform&&(s.transform="none")),u){const{originX:f="50%",originY:h="50%",originZ:p=0}=o;s.transformOrigin=`${f} ${h} ${p}`}}function l2(e,{style:t,vars:n},s,i){const o=e.style;let l;for(l in t)o[l]=t[l];i?.applyProjectionStyles(o,s);for(l in n)o.setProperty(l,n[l])}function NC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Re.test(e))e=parseFloat(e);else return e;const n=NC(e,t.target.x),s=NC(e,t.target.y);return`${n}% ${s}%`}},KW={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=Js.parse(e);if(i.length>5)return s;const o=Js.createTransformer(e),l=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;i[0+l]/=u,i[1+l]/=f;const h=At(u,f,.5);return typeof i[2+l]=="number"&&(i[2+l]/=h),typeof i[3+l]=="number"&&(i[3+l]/=h),o(i)}},Ib={borderRadius:{...Yc,applyTo:[...Kw]},borderTopLeftRadius:Yc,borderTopRightRadius:Yc,borderBottomLeftRadius:Yc,borderBottomRightRadius:Yc,boxShadow:KW};function c2(e,{layout:t,layoutId:n}){return Wl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ib[e]||e==="opacity")}function n0(e,t,n){const s=e.style,i=t?.style,o={};if(!s)return o;for(const l in s)(Rn(s[l])||i&&Rn(i[l])||c2(l,e)||n?.getValue(l)?.liveStyle!==void 0)&&(o[l]=s[l]);return o}function YW(e){return window.getComputedStyle(e)}class ZW extends s2{constructor(){super(...arguments),this.type="html",this.renderInstance=l2}readValueFromInstance(t,n){if(Wl.has(n))return this.projection?.isProjecting?bb(n):y8(t,n);{const s=YW(t),i=(vj(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return o2(t,n)}build(t,n,s){t0(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return n0(t,n,s)}}const XW={offset:"stroke-dashoffset",array:"stroke-dasharray"},JW={offset:"strokeDashoffset",array:"strokeDasharray"};function QW(e,t,n=1,s=0,i=!0){e.pathLength=1;const o=i?XW:JW;e[o.offset]=`${-s}`,e[o.array]=`${t} ${n}`}const e9=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function u2(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:l=0,...u},f,h,p){if(t0(e,u,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:b}=e;m.transform&&(b.transform=m.transform,delete m.transform),(b.transform||m.transformOrigin)&&(b.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),b.transform&&(b.transformBox=p?.transformBox??"fill-box",delete m.transformBox);for(const w of e9)m[w]!==void 0&&(b[w]=m[w],delete m[w]);t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),s!==void 0&&(m.scale=s),i!==void 0&&QW(m,i,o,l,!1)}const d2=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),f2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function t9(e,t,n,s){l2(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(d2.has(i)?i:Gw(i),t.attrs[i])}function h2(e,t,n){const s=n0(e,t,n);for(const i in e)if(Rn(e[i])||Rn(t[i])){const o=ql.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=e[i]}return s}class n9 extends s2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=un}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wl.has(n)){const s=Gj(n);return s&&s.default||0}return n=d2.has(n)?n:Gw(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return h2(t,n,s)}build(t,n,s){u2(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){t9(t,n,s,i)}mount(t){this.isSVGTag=f2(t.tagName),super.mount(t)}}const s9=Qw.length;function p2(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?p2(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<s9;n++){const s=Qw[n],i=e.props[s];(Lu(i)||i===!1)&&(t[s]=i)}return t}function m2(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const r9=[...Jw].reverse(),i9=Jw.length;function a9(e){return t=>Promise.all(t.map(({animation:n,options:s})=>rW(e,n,s)))}function o9(e){let t=a9(e),n=IC(),s=!0,i=!1;const o=h=>(p,m)=>{const b=Za(e,m,h==="exit"?e.presenceContext?.custom:void 0);if(b){const{transition:w,transitionEnd:x,...S}=b;p={...p,...S,...x}}return p};function l(h){t=h(e)}function u(h){const{props:p}=e,m=p2(e.parent)||{},b=[],w=new Set;let x={},S=1/0;for(let k=0;k<i9;
vendor: 29,773 bytes, line 109
109k++){const C=r9[k],R=n[C],O=p[C]!==void 0?p[C]:m[C],N=Lu(O),P=C===h?R.isActive:null;P===!1&&(S=k);let D=O===m[C]&&O!==p[C]&&N;if(D&&(s||i)&&e.manuallyAnimateOnMount&&(D=!1),R.protectedKeys={...x},!R.isActive&&P===null||!O&&!R.prevProp||zp(O)||typeof O=="boolean")continue;if(C==="exit"&&R.isActive&&P!==!0){R.prevResolvedValues&&(x={...x,...R.prevResolvedValues});continue}const M=l9(R.prevProp,O);let $=M||C===h&&R.isActive&&!D&&N||k>S&&N,K=!1;const Y=Array.isArray(O)?O:[O];let X=Y.reduce(o(C),{});P===!1&&(X={});const{prevResolvedValues:ae={}}=R,oe={...ae,...X},be=te=>{$=!0,w.has(te)&&(K=!0,w.delete(te)),R.needsAnimating[te]=!0;const pe=e.getValue(te);pe&&(pe.liveStyle=!1)};for(const te in oe){const pe=X[te],ie=ae[te];if(x.hasOwnProperty(te))continue;let B=!1;Ab(pe)&&Ab(ie)?B=!m2(pe,ie)||M:B=pe!==ie,B?pe!=null?be(te):w.add(te):pe!==void 0&&w.has(te)?be(te):R.protectedKeys[te]=!0}R.prevProp=O,R.prevResolvedValues=X,R.isActive&&(x={...x,...X}),(s||i)&&e.blockInitialAnimation&&($=!1);const V=D&&M;$&&(!V||K)&&b.push(...Y.map(te=>{const pe={type:C};if(typeof te=="string"&&(s||i)&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:ie}=e,B=Za(ie,te);if(ie.enteringChildren&&B){const{delayChildren:ee}=B.transition||{};pe.delay=Bj(ie.enteringChildren,e,ee)}}return{animation:te,options:pe}}))}if(w.size){const k={};if(typeof p.initial!="boolean"){const C=Za(e,Array.isArray(p.initial)?p.initial[0]:p.initial);C&&C.transition&&(k.transition=C.transition)}w.forEach(C=>{const R=e.getBaseTarget(C),O=e.getValue(C);O&&(O.liveStyle=!0),k[C]=R??null}),b.push({animation:k})}let _=!!b.length;return s&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(_=!1),s=!1,i=!1,_?t(b):Promise.resolve()}function f(h,p){if(n[h].isActive===p)return Promise.resolve();e.variantChildren?.forEach(b=>b.animationState?.setActive(h,p)),n[h].isActive=p;const m=u(h);for(const b in n)n[b].protectedKeys={};return m}return{animateChanges:u,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=IC(),i=!0}}}function l9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!m2(t,e):!1}function Ra(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function IC(){return{animate:Ra(!0),whileInView:Ra(),whileHover:Ra(),whileTap:Ra(),whileDrag:Ra(),whileFocus:Ra(),exit:Ra()}}function Pb(e,t){e.min=t.min,e.max=t.max}function $s(e,t){Pb(e.x,t.x),Pb(e.y,t.y)}function PC(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const g2=1e-4,c9=1-g2,u9=1+g2,y2=.01,d9=0-y2,f9=0+y2;function zn(e){return e.max-e.min}function h9(e,t,n){return Math.abs(e-t)<=n}function MC(e,t,n,s=.5){e.origin=s,e.originPoint=At(t.min,t.max,e.origin),e.scale=zn(n)/zn(t),e.translate=At(n.min,n.max,e.origin)-e.originPoint,(e.scale>=c9&&e.scale<=u9||isNaN(e.scale))&&(e.scale=1),(e.translate>=d9&&e.translate<=f9||isNaN(e.translate))&&(e.translate=0)}function fu(e,t,n,s){MC(e.x,t.x,n.x,s?s.originX:void 0),MC(e.y,t.y,n.y,s?s.originY:void 0)}function DC(e,t,n,s=0){const i=s?At(n.min,n.max,s):n.min;e.min=i+t.min,e.max=e.min+zn(t)}function p9(e,t,n,s){DC(e.x,t.x,n.x,s?.x),DC(e.y,t.y,n.y,s?.y)}function LC(e,t,n,s=0){const i=s?At(n.min,n.max,s):n.min;e.min=t.min-i,e.max=e.min+zn(t)}function op(e,t,n,s){LC(e.x,t.x,n.x,s?.x),LC(e.y,t.y,n.y,s?.y)}function BC(e,t,n,s,i){return e-=t,e=ap(e,1/n,s),i!==void 0&&(e=ap(e,1/i,s)),e}function m9(e,t=0,n=1,s=.5,i,o=e,l=e){if(gr.test(t)&&(t=parseFloat(t),t=At(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=At(o.min,o.max,s);e===o&&(u-=t),e.min=BC(e.min,t,n,u,i),e.max=BC(e.max,t,n,u,i)}function UC(e,t,[n,s,i],o,l){m9(e,t[n],t[s],t[i],t.scale,o,l)}const g9=["x","scaleX","originX"],y9=["y","scaleY","originY"];function zC(e,t,n,s){UC(e.x,t,g9,n?n.x:void 0,s?s.x:void 0),UC(e.y,t,y9,n?n.y:void 0,s?s.y:void 0)}function VC(e){return e.translate===0&&e.scale===1}function v2(e){return VC(e.x)&&VC(e.y)}function $C(e,t){return e.min===t.min&&e.max===t.max}function v9(e,t){return $C(e.x,t.x)&&$C(e.y,t.y)}function FC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function b2(e,t){return FC(e.x,t.x)&&FC(e.y,t.y)}function HC(e){return zn(e.x)/zn(e.y)}function qC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function or(e){return[e("x"),e("y")]}function b9(e,t,n){let s="";const i=e.x.translate/t.x,o=e.y.translate/t.y,l=n?.z||0;if((i||o||l)&&(s=`translate3d(${i}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,pathRotation:m,rotateX:b,rotateY:w,skewX:x,skewY:S}=n;h&&(s=`perspective(${h}px) ${s}`),p&&(s+=`rotate(${p}deg) `),m&&(s+=`rotate(${m}deg) `),b&&(s+=`rotateX(${b}deg) `),w&&(s+=`rotateY(${w}deg) `),x&&(s+=`skewX(${x}deg) `),S&&(s+=`skewY(${S}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(s+=`scale(${u}, ${f})`),s||"none"}const w9=Kw.length,WC=e=>typeof e=="string"?parseFloat(e):e,GC=e=>typeof e=="number"||Re.test(e);function x9(e,t,n,s,i,o){i?(e.opacity=At(0,n.opacity??1,S9(s)),e.opacityExit=At(t.opacity??1,0,_9(s))):o&&(e.opacity=At(t.opacity??1,n.opacity??1,s));for(let l=0;l<w9;l++){const u=Kw[l];let f=KC(t,u),h=KC(n,u);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||GC(f)===GC(h)?(e[u]=Math.max(At(WC(f),WC(h),s),0),(gr.test(h)||gr.test(f))&&(e[u]+="%")):e[u]=h}(t.rotate||n.rotate)&&(e.rotate=At(t.rotate||0,n.rotate||0,s))}function KC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const S9=w2(0,.5,fj),_9=w2(.5,.95,js);function w2(e,t,n){return s=>s<e?0:s>t?1:n(Mu(e,t,s))}function k9(e,t,n){const s=Rn(e)?e:zl(e);return s.start(qw("",s,t,n)),s.animation}function Bu(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}const A9=(e,t)=>e.depth-t.depth;class C9{constructor(){this.children=[],this.isDirty=!1}add(t){Nw(this.children,t),this.isDirty=!0}remove(t){Jh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(A9),this.isDirty=!1,this.children.forEach(t)}}function E9(e,t){const n=Un.now(),s=({timestamp:i})=>{const o=i-n;o>=t&&(Zi(s),e(o-t))};return Et.setup(s,!0),()=>Zi(s)}function wh(e){return Rn(e)?e.get():e}class T9{constructor(){this.members=[]}add(t){Nw(this.members,t);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===t||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(Jh(this.members,s),s.unmount())}t.scheduleRender()}remove(t){if(Jh(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const xh={hasAnimatedSinceResize:!0,hasEverUpdated:!1},iv=["","X","Y","Z"],R9=1e3;let O9=0;function av(e,t,n,s){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),s&&(s[e]=0))}function x2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Fj(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Et,!(i||o))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&x2(s)}function S2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(l={},u=t?.()){this.id=O9++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(I9),this.nodes.forEach(U9),this.nodes.forEach(z9),this.nodes.forEach(P9)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new C9)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Pw),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const f=this.eventHandlers.get(l);f&&f.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=Xw(l)&&!IW(l),this.instance=l;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||u)&&(this.isLayoutDirty=!0),e){let p,m=0;const b=()=>this.root.updateBlockedByResize=!1;Et.read(()=>{m=window.innerWidth}),e(l,()=>{const w=window.innerWidth;w!==m&&(m=w,this.root.updateBlockedByResize=!0,p&&p(),p=E9(b,250),xh.hasAnimatedSinceResize&&(xh.hasAnimatedSinceResize=!1,this.nodes.forEach(XC)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||q9,{onLayoutAnimationStart:S,onLayoutAnimationComplete:_}=h.getProps(),k=!this.targetLayout||!b2(this.targetLayout,w),C=!m&&b;if(this.options.layoutRoot||this.resumeFrom||C||m&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...Hw(x,"layout"),onPlay:S,onComplete:_};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(p,C,R.path)}else m||XC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(V9),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&x2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,(typeof m.latestValues.x=="string"||typeof m.latestValues.y=="string")&&(m.isLayoutDirty=!0),m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const f=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),f&&this.nodes.forEach(D9),this.nodes.forEach(YC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ZC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(L9),this.nodes.forEach(B9),this.nodes.forEach(j9),this.nodes.forEach(N9)):this.nodes.forEach(ZC),this.clearAllSnapshots();const u=Un.now();En.delta=vr(0,1e3/60,u-En.timestamp),En.timestamp=u,En.isProcessing=!0,Xy.update.process(En),Xy.preRender.process(En),Xy.render.process(En),En.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(M9),this.sharedNodes.forEach($9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!zn(this.snapshot.measuredBox.x)&&!zn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=un()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const f=s(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!v2(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;l&&this.instance&&(u||Da(this.latestValues)||p)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return l&&(f=this.removeTransform(f)),W9(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return un();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(G9))){const{scroll:h}=this.root;h&&(fr(u.x,h.offset.x),fr(u.y,h.offset.y))}return u}removeElementScroll(l){const u=un();if($s(u,l),this.scroll?.wasRoot)return u;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:p,options:m}=h;h!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&$s(u,l),fr(u.x,p.offset.x),fr(u.y,p.offset.y))}return u}applyTransform(l,u=!1,f){const h=f||un();$s(h,l);for(let p=0;p<this.path.length;p++){const m=this.path[p];!u&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(fr(h.x,-m.scroll.offset.x),fr(h.y,-m.scroll.offset.y)),Da(m.latestValues)&&bh(h,m.latestValues,m.layout?.layoutBox)}return Da(this.latestValues)&&bh(h,this.latestValues,this.layout?.layoutBox),h}removeTransform(l){const u=un();$s(u,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!Da(h.latestValues))continue;let p;h.instance&&(jb(h.latestValues)&&h.updateSnapshot(),p=un(),$s(p,h.measurePageBox())),zC(u,h.latestValues,h.snapshot?.layoutBox,p)}return Da(this.latestValues)&&zC(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==En.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:m}=this.options;if(!this.layout||!(p||m))return;this.resolvedRelativeTargetAt=En.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=un(),this.targetWithTransforms=un()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),p9(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):$s(this.target,this.layout.layoutBox),a2(this.target,this.targetDelta)):$s(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||jb(this.parent.latestValues)||i2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,u,f){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=un(),this.relativeTargetOrigin=un(),op(this.relativeTargetOrigin,u,f,this.options.layoutAnchor||void 0),$s(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const l=this.getLead(),u=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===En.timestamp&&(f=!1),f)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;$s(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,b=this.treeScale.y;FW(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=un());const{target:w}=l;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(PC(this.prevProjectionDelta.x,this.projectionDelta.x),PC(this.prevProjectionDelta.y,this.projectionDelta.y)),fu(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==b||!qC(this.projectionDelta.x,this.prevProjectionDelta.x)||!qC(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=El(),this.projectionDelta=El(),this.projectionDeltaWithTransform=El()}setAnimationOrigin(l,u=!1,f){const h=this.snapshot,p=h?h.latestValues:{},m={...this.latestValues},b=El();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const w=un(),x=h?h.source:void 0,S=this.layout?this.layout.source:void 0,_=x!==S,k=this.getStack(),C=!k||k.members.length<=1,R=!!(_&&!C&&this.options.crossfade===!0&&!this.path.some(H9));this.animationProgress=0;let O;const N=f?.interpolateProjection(l);this.mixTargetDelta=P=>{const D=P/1e3,M=N?.(D);M?(b.x.translate=M.x,b.x.scale=At(l.x.scale,1,D),b.x.origin=l.x.origin,b.x.originPoint=l.x.originPoint,b.y.translate=M.y,b.y.scale=At(l.y.scale,1,D),b.y.origin=l.y.origin,b.y.originPoint=l.y.originPoint):(JC(b.x,l.x,D),JC(b.y,l.y,D)),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(op(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),F9(this.relativeTarget,this.relativeTargetOrigin,w,D),O&&v9(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=un()),$s(O,this.relativeTarget)),_&&(this.animationValues=m,x9(m,p,this.latestValues,D,R,C)),M&&M.rotate!==void 0&&(this.animationValues||(this.animationValues=m),this.animationValues.pathRotation=M.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Zi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Et.update(()=>{xh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zl(0)),this.motionValue.jump(0,!1),this.currentAnimation=k9(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(R9),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:f,layout:h,latestValues:p}=l;if(!(!u||!f||!h)){if(this!==l&&this.layout&&h&&_2(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||un();const m=zn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+m;const b=zn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+b}$s(u,f),bh(u,p),fu(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new T9),this.sharedNodes.get(l).add(u);const h=u.options.initialPromotionConfig;u.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const h={};f.z&&av("z",l,h,this.animationValues);for(let p=0;p<iv.length;p++)av(`rotate${iv[p]}`,l,h,this.animationValues),av(`skew${iv[p]}`,l,h,this.animationValues);l.render();for(const p in h)l.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=wh(u?.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=wh(u?.pointerEvents)||""),this.hasProjected&&!Da(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=h.animationValues||h.latestValues;this.applyTransformsToTarget();let m=b9(this.projectionDeltaWithTransform,this.treeScale,p);f&&(m=f(p,m)),l.transform=m;const{x:b,y:w}=this.projectionDelta;l.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,h.animationValues?l.opacity=h===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in Ib){if(p[x]===void 0)continue;const{correct:S,applyTo:_,isCSSVariable:k}=Ib[x],C=m==="none"?p[x]:S(p[x],h);if(_){const R=_.length;for(let O=0;O<R;O++)l[_[O]]=C}else k?this.options.visualElement.renderState.vars[x]=C:l[x]=C}this.options.layoutId&&(l.pointerEvents=h===this?wh(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(YC),this.root.sharedNodes.clear()}}}function j9(e){e.updateLayout()}function N9(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if(i==="size")or(p=>{const m=o?t.measuredBox[p]:t.layoutBox[p],b=zn(m);m.min=n[p].min,m.max=m.min+b});else if(i==="x"||i==="y"){const p=i==="x"?"y":"x";Pb(o?t.measuredBox[p]:t.layoutBox[p],n[p])}else _2(i,t.layoutBox,n)&&or(p=>{const m=o?t.measuredBox[p]:t.layoutBox[p],b=zn(n[p]);m.max=m.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+b)});const l=El();fu(l,n,t.layoutBox);const u=El();o?fu(u,e.applyTransform(s,!0),t.measuredBox):fu(u,n,t.layoutBox);const f=!v2(l);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:m,layout:b}=p;if(m&&b){const w=e.options.layoutAnchor||void 0,x=un();op(x,t.layoutBox,m.layoutBox,w);const S=un();op(S,n,b.layoutBox,w),b2(x,S)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=x,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function I9(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function P9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function M9(e){e.clearSnapshot()}function YC(e){e.clearMeasurements()}function D9(e){e.isLayoutDirty=!0,e.updateLayout()}function ZC(e){e.isLayoutDirty=!1}function L9(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function B9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function XC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function U9(e){e.resolveTargetDelta()}function z9(e){e.calcProjection()}
109function V9(e){e.resetSkewAndRotation()}function $9(e){e.removeLeadSnapshot()}function JC(e,t,n){e.translate=At(t.translate,0,n),e.scale=At(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function QC(e,t,n,s){e.min=At(t.min,n.min,s),e.max=At(t.max,n.max,s)}function F9(e,t,n,s){QC(e.x,t.x,n.x,s),QC(e.y,t.y,n.y,s)}function H9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const q9={duration:.45,ease:[.4,0,.1,1]},eE=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tE=eE("applewebkit/")&&!eE("chrome/")?Math.round:js;function nE(e){e.min=tE(e.min),e.max=tE(e.max)}function W9(e){nE(e.x),nE(e.y)}function _2(e,t,n){return e==="position"||e==="preserve-aspect"&&!h9(HC(t),HC(n),.2)}function G9(e){return e!==e.root&&e.scroll?.wasRoot}const K9=S2({attachResizeListener:(e,t)=>Bu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ov={current:void 0},k2=S2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ov.current){const e=new K9({});e.mount(window),e.setOptions({layoutScroll:!0}),ov.current=e}return ov.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),s0=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Y9(...e){return t=>{let n=!1;const s=e.map(i=>{const o=sE(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():sE(e[i],null)}}}}function Z9(...e){return E.useCallback(Y9(...e),e)}class X9 extends E.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(ph(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=ph(s)&&s.offsetWidth||0,o=ph(s)&&s.offsetHeight||0,l=getComputedStyle(n),u=this.props.sizeRef.current;u.height=parseFloat(l.height),u.width=parseFloat(l.width),u.top=n.offsetTop,u.left=n.offsetLeft,u.right=i-u.width-u.left,u.bottom=o-u.height-u.top,u.direction=l.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function J9({children:e,isPresent:t,anchorX:n,anchorY:s,root:i,pop:o}){const l=E.useId(),u=E.useRef(null),f=E.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:h}=E.useContext(s0),p=e.props?.ref??e?.ref,m=Z9(u,p);return E.useInsertionEffect(()=>{const{width:b,height:w,top:x,left:S,right:_,bottom:k,direction:C}=f.current;if(t||o===!1||!u.current||!b||!w)return;const R=C==="rtl",O=n==="left"?R?`right: ${_}`:`left: ${S}`:R?`left: ${S}`:`right: ${_}`,N=s==="bottom"?`bottom: ${k}`:`top: ${x}`;u.current.dataset.motionPopId=l;const P=document.createElement("style");h&&(P.nonce=h);const D=i??document.head;return D.appendChild(P),P.sheet&&P.sheet.insertRule(`
110          [data-motion-pop-id="${l}"] {
111            position: absolute !important;
112            width: ${b}px !important;
113            height: ${w}px !important;
114            ${O}px !important;
115            ${N}px !important;
116          }
117        `),()=>{u.current?.removeAttribute("data-motion-pop-id"),D.contains(P)&&D.removeChild(P)}},[t]),y.jsx(X9,{isPresent:t,childRef:u,sizeRef:f,pop:o,children:o===!1?e:E.cloneElement(e,{ref:m})})}const Q9=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:l,anchorX:u,anchorY:f,root:h})=>{const p=Ow(e7),m=E.useId(),b=E.useRef(n),w=E.useRef(s);jw(()=>{b.current=n,w.current=s});let x=!0,S=E.useMemo(()=>(x=!1,{id:m,initial:t,isPresent:n,custom:i,onExitComplete:_=>{p.set(_,!0);for(const k of p.values())if(!k)return;s&&s()},register:_=>(p.set(_,!1),()=>{p.delete(_),!b.current&&!p.size&&w.current?.()})}),[n,p,s]);return o&&x&&(S={...S}),E.useMemo(()=>{p.forEach((_,k)=>p.set(k,!1))},[n]),E.useEffect(()=>{!n&&!p.size&&s&&s()},[n]),e=y.jsx(J9,{pop:l==="popLayout",isPresent:n,anchorX:u,anchorY:f,root:h,children:e}),y.jsx(Bp.Provider,{value:S,children:e})};function e7(){return new Map}function A2(e=!0){const t=E.useContext(Bp);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=t,o=E.useId();E.useEffect(()=>{if(e)return i(o)},[e]);const l=E.useCallback(()=>e&&s&&s(o),[o,s,e]);return!n&&s?[!1,l]:[!0]}const Zf=e=>e.key||"";function rE(e){const t=[];
vendor: 5,633 bytes, line 117
117return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const t7=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:l=!1,anchorX:u="left",anchorY:f="top",root:h})=>{const[p,m]=A2(l),b=E.useMemo(()=>rE(e),[e]),w=l&&!p?[]:b.map(Zf),x=E.useRef(!0),S=E.useRef(b),_=Ow(()=>new Map),k=E.useRef(new Set),[C,R]=E.useState(b),[O,N]=E.useState(b);jw(()=>{x.current=!1,S.current=b;for(let M=0;M<O.length;M++){const $=Zf(O[M]);w.includes($)?(_.delete($),k.current.delete($)):_.get($)!==!0&&_.set($,!1)}},[O,w.length,w.join("-")]);const P=[];if(b!==C){let M=[...b];for(let $=0;$<O.length;$++){const K=O[$],Y=Zf(K);w.includes(Y)||(M.splice($,0,K),P.push(K))}return o==="wait"&&P.length&&(M=P),N(rE(M)),R(b),null}const{forceRender:D}=E.useContext(Rw);return y.jsx(y.Fragment,{children:O.map(M=>{const $=Zf(M),K=l&&!p?!1:b===O||w.includes($),Y=()=>{if(k.current.has($))return;if(_.has($))k.current.add($),_.set($,!0);else return;let X=!0;_.forEach(ae=>{ae||(X=!1)}),X&&(D?.(),N(S.current),l&&m?.(),s&&s())};return y.jsx(Q9,{isPresent:K,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:h,onExitComplete:K?void 0:Y,anchorX:u,anchorY:f,children:M},$)})})},C2=E.createContext({strict:!1}),iE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let aE=!1;function n7(){if(aE)return;const e={};for(const t in iE)e[t]={isEnabled:n=>iE[t].some(s=>!!n[s])};n2(e),aE=!0}function E2(){return n7(),UW()}function s7(e){const t=E2();for(const n in e)t[n]={...t[n],...e[n]};n2(t)}const r7=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function lp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||r7.has(e)}let T2=e=>!lp(e);function i7(e){typeof e=="function"&&(T2=t=>t.startsWith("on")?!lp(t):e(t))}try{i7(require("@emotion/is-prop-valid").default)}catch{}function a7(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||Rn(e[i])||(T2(i)||n===!0&&lp(i)||!t&&!lp(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}const $p=E.createContext({});function o7(e,t){if(Vp(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Lu(n)?n:void 0,animate:Lu(s)?s:void 0}}return e.inherit!==!1?t:{}}function l7(e){const{initial:t,animate:n}=o7(e,E.useContext($p));return E.useMemo(()=>({initial:t,animate:n}),[oE(t),oE(n)])}function oE(e){return Array.isArray(e)?e.join(" "):e}const r0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function R2(e,t,n){for(const s in t)!Rn(t[s])&&!c2(s,n)&&(e[s]=t[s])}function c7({transformTemplate:e},t){return E.useMemo(()=>{const n=r0();return t0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function u7(e,t){const n=e.style||{},s={};return R2(s,n,e),Object.assign(s,c7(e,t)),s}function d7(e,t){const n={},s=u7(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const O2=()=>({...r0(),attrs:{}});function f7(e,t,n,s){const i=E.useMemo(()=>{const o=O2();return u2(o,t,f2(s),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};R2(o,e.style,e),i.style={...o,...i.style}}return i}const h7=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function i0(e){return typeof e!="string"||e.includes("-")?!1:!!(h7.indexOf(e)>-1||/[A-Z]/u.test(e))}function p7(e,t,n,{latestValues:s},i,o=!1,l){const f=(l??i0(e)?f7:d7)(t,s,i,e),h=a7(t,typeof e=="string",o),p=e!==E.Fragment?{...h,...f,ref:n}:{},{children:m}=t,b=E.useMemo(()=>Rn(m)?m.get():m,[m]);return E.createElement(e,{...p,children:b})}function m7({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,i){return{latestValues:g7(n,s,i,e),renderState:t()}}function g7(e,t,n,s){const i={},o=s(e,{});for(const b in o)i[b]=wh(o[b]);let{initial:l,animate:u}=e;const f=Vp(e),h=e2(e);t&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const m=p?u:l;if(m&&typeof m!="boolean"&&!zp(m)){const b=Array.isArray(m)?m:[m];for(let w=0;w<b.length;w++){const x=Ww(e,b[w]);if(x){const{transitionEnd:S,transition:_,...k}=x;for(const C in k){let R=k[C];if(Array.isArray(R)){const O=p?R.length-1:0;R=R[O]}R!==null&&(i[C]=R)}for(const C in S)i[C]=S[C]}}}return i}const j2=e=>(t,n)=>{const s=E.useContext($p),i=E.useContext(Bp),o=()=>m7(e,t,s,i);return n?o():Ow(o)},y7=j2({scrapeMotionValuesFromProps:n0,createRenderState:r0}),v7=j2({scrapeMotionValuesFromProps:h2,createRenderState:O2}),b7=Symbol.for("motionComponentSymbol");
vendor: 18,709 bytes, line 117
117function w7(e,t,n){const s=E.useRef(n);E.useInsertionEffect(()=>{s.current=n});const i=E.useRef(null);return E.useCallback(o=>{o&&e.onMount?.(o),t&&(o?t.mount(o):t.unmount());const l=s.current;if(typeof l=="function")if(o){const u=l(o);typeof u=="function"&&(i.current=u)}else i.current?(i.current(),i.current=null):l(o);else l&&(l.current=o)},[t])}const N2=E.createContext({});function xl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function x7(e,t,n,s,i,o){const{visualElement:l}=E.useContext($p),u=E.useContext(C2),f=E.useContext(Bp),h=E.useContext(s0),p=h.reducedMotion,m=h.skipAnimations,b=E.useRef(null),w=E.useRef(!1);s=s||u.renderer,!b.current&&s&&(b.current=s(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:p,skipAnimations:m,isSVG:o}),w.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const x=b.current,S=E.useContext(N2);x&&!x.projection&&i&&(x.type==="html"||x.type==="svg")&&S7(b.current,n,i,S);const _=E.useRef(!1);E.useInsertionEffect(()=>{x&&_.current&&x.update(n,f)});const k=n[$j],C=E.useRef(!!k&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(k)&&window.MotionHasOptimisedAnimation?.(k));return jw(()=>{w.current=!0,x&&(_.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),C.current&&x.animationState&&x.animationState.animateChanges())}),E.useEffect(()=>{x&&(!C.current&&x.animationState&&x.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(k)}),C.current=!1),x.enteringChildren=void 0)}),x}function S7(e,t,n,s){const{layoutId:i,layout:o,drag:l,dragConstraints:u,layoutScroll:f,layoutRoot:h,layoutAnchor:p,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:I2(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!l||u&&xl(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:m,layoutScroll:f,layoutRoot:h,layoutAnchor:p})}function I2(e){if(e)return e.options.allowProjection!==!1?e.projection:I2(e.parent)}function lv(e,{forwardMotionProps:t=!1,type:n}={},s,i){s&&s7(s);const o=n?n==="svg":i0(e),l=o?v7:y7;function u(h,p){let m;const b={...E.useContext(s0),...h,layoutId:_7(h)},{isStatic:w}=b,x=l7(h),S=l(h,w);if(!w&&typeof window<"u"){k7();const _=A7(b);m=_.MeasureLayout,x.visualElement=x7(e,S,b,i,_.ProjectionNode,o)}return y.jsxs($p.Provider,{value:x,children:[m&&x.visualElement?y.jsx(m,{visualElement:x.visualElement,...b}):null,p7(e,h,w7(S,x.visualElement,p),S,w,t,o)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=E.forwardRef(u);return f[b7]=e,f}function _7({layoutId:e}){const t=E.useContext(Rw).id;return t&&e!==void 0?t+"-"+e:e}function k7(e,t){E.useContext(C2).strict}function A7(e){const t=E2(),{drag:n,layout:s}=t;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(e)||s?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function C7(e,t){if(typeof Proxy>"u")return lv;const n=new Map,s=(o,l)=>lv(o,l,e,t),i=(o,l)=>s(o,l);return new Proxy(i,{get:(o,l)=>l==="create"?s:(n.has(l)||n.set(l,lv(l,void 0,e,t)),n.get(l))})}const E7=(e,t)=>t.isSVG??i0(e)?new n9(t):new ZW(t,{allowProjection:e!==E.Fragment});class T7 extends ra{constructor(t){super(t),t.animationState||(t.animationState=o9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let R7=0;class O7 extends ra{constructor(){super(...arguments),this.id=R7++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&s===!1){if(this.isExitComplete){const{initial:o,custom:l}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const u=Za(this.node,o,l);if(u){const{transition:f,transitionEnd:h,...p}=u;for(const m in p)this.node.getValue(m)?.jump(p[m])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const j7={animation:{Feature:T7},exit:{Feature:O7}};function od(e){return{point:{x:e.pageX,y:e.pageY}}}const N7=e=>t=>Zw(t)&&e(t,od(t));function hu(e,t,n,s){return Bu(e,t,N7(n),s)}const P2=({current:e})=>e?e.ownerDocument.defaultView:null,lE=(e,t)=>Math.abs(e-t);function I7(e,t){const n=lE(e.x,t.x),s=lE(e.y,t.y);return Math.sqrt(n**2+s**2)}const cE=new Set(["auto","scroll"]);class M2{constructor(t,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:l=3,element:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Xf(this.lastRawMoveEventInfo,this.transformPagePoint));const x=cv(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,_=I7(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!_)return;const{point:k}=x,{timestamp:C}=En;this.history.push({...k,timestamp:C});const{onStart:R,onMove:O}=this.handlers;S||(R&&R(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,x)},this.handlePointerMove=(x,S)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=S,this.lastMoveEventInfo=Xf(S,this.transformPagePoint),Et.update(this.updatePoint,!0)},this.handlePointerUp=(x,S)=>{this.end();const{onEnd:_,onSessionEnd:k,resumeAnimation:C}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=cv(x.type==="pointercancel"?this.lastMoveEventInfo:Xf(S,this.transformPagePoint),this.history);this.startEvent&&_&&_(x,R),k&&k(x,R)},!Zw(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=l,this.contextWindow=i||window;const f=od(t),h=Xf(f,this.transformPagePoint),{point:p}=h,{timestamp:m}=En;this.history=[{...p,timestamp:m}];const{onSessionStart:b}=n;b&&b(t,cv(h,this.history));const w={passive:!0,capture:!0};this.removeListeners=rd(hu(this.contextWindow,"pointermove",this.handlePointerMove,w),hu(this.contextWindow,"pointerup",this.handlePointerUp,w),hu(this.contextWindow,"pointercancel",this.handlePointerUp,w)),u&&this.startScrollTracking(u)}startScrollTracking(t){let n=t.parentElement;for(;n;){const s=getComputedStyle(n);(cE.has(s.overflowX)||cE.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const s=t===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,i),Et.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Zi(this.updatePoint)}}function Xf(e,t){return t?{point:t(e.point)}:e}function uE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cv({point:e},t){return{point:e,delta:uE(e,D2(t)),offset:uE(e,P7(t)),velocity:M7(t,.1)}}function P7(e){return e[0]}function D2(e){return e[e.length-1]}function M7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const i=D2(e);for(;n>=0&&(s=e[n],!(i.timestamp-s.timestamp>ms(t)));)n--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&i.timestamp-s.timestamp>ms(t)*2&&(s=e[1]);const o=Os(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const l={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function D7(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?At(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?At(n,e,s.max):Math.min(e,n)),e}function dE(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function L7(e,{top:t,left:n,bottom:s,right:i}){return{x:dE(e.x,n,i),y:dE(e.y,t,s)}}function fE(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function B7(e,t){return{x:fE(e.x,t.x),y:fE(e.y,t.y)}}function U7(e,t){let n=.5;const s=zn(e),i=zn(t);return i>s?n=Mu(t.min,t.max-s,e.min):s>i&&(n=Mu(e.min,e.max-i,t.min)),vr(0,1,n)}function z7(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Mb=.35;function V7(e=Mb){return e===!1?e=0:e===!0&&(e=Mb),{x:hE(e,"left","right"),y:hE(e,"top","bottom")}}function hE(e,t,n){return{min:pE(e,t),max:pE(e,n)}}function pE(e,t){return typeof e=="number"?e:e[t]||0}const $7=new WeakMap;class F7{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=un(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=m=>{n&&this.snapToCursor(od(m).point),this.stopAnimation()},l=(m,b)=>{const{drag:w,dragPropagation:x,onDragStart:S}=this.getProps();if(w&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=gW(w),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),or(k=>{let C=this.getAxisMotionValue(k).get()||0;if(gr.test(C)){const{projection:R}=this.visualElement;if(R&&R.layout){const O=R.layout.layoutBox[k];O&&(C=zn(O)*(parseFloat(C)/100))}}this.originPoint[k]=C}),S&&Et.update(()=>S(m,b),!1,!0),Cb(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},u=(m,b)=>{this.latestPointerEvent=m,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:x,onDirectionLock:S,onDrag:_}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:k}=b;if(x&&this.currentDirection===null){this.currentDirection=q7(k),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",b.point,k),this.updateAxis("y",b.point,k),this.visualElement.render(),_&&Et.update(()=>_(m,b),!1,!0)},f=(m,b)=>{this.latestPointerEvent=m,this.latestPanInfo=b,this.stop(m,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new M2(t,{onSessionStart:o,onStart:l,onMove:u,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:s,contextWindow:P2(this.visualElement),element:this.visualElement.current})}stop(t,n){const s=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&Et.postRender(()=>u(s,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,s){const{drag:i}=this.getProps();if(!s||!Jf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(l=D7(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&xl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=L7(s.layoutBox,t):this.constraints=!1,this.elastic=V7(n),i!==this.constraints&&!xl(t)&&s&&this.constraints&&!this.hasMutatedConstraints&&or(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=z7(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xl(t))return!1;const s=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const o=HW(s,i.root,this.visualElement.getTransformPagePoint());let l=B7(i.layout.layoutBox,o);if(n){const u=n(VW(l));this.hasMutatedConstraints=!!u,u&&(l=r2(u))}return l}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},h=or(p=>{if(!Jf(p,n,this.currentDirection))return;let m=f&&f[p]||{};(l===!0||l===p)&&(m={min:0,max:0});const b=i?200:1e6,w=i?40:1e7,x={type:"inertia",velocity:s?t[p]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(p,x)});return Promise.all(h).then(u)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Cb(this.visualElement,t),s.start(qw(t,s,0,n,this.visualElement,!1))}stopAnimation(){or(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){or(n=>{const{drag:s}=this.getProps();if(!Jf(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n],f=o.get()||0;o.set(t[n]-At(l,u,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!xl(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};or(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const f=u.get();i[l]=U7({min:f,max:f},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),or(l=>{if(!Jf(l,t,null))return;const u=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];u.set(At(f,h,i[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;$7.set(this.visualElement,this);const t=this.visualElement.current,n=hu(t,"pointerdown",h=>{const{drag:p,dragListener:m=!0}=this.getProps(),b=h.target,w=b!==t&&SW(b);p&&m&&!w&&this.start(h)});let s;const i=()=>{const{dragConstraints:h}=this.getProps();xl(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),s||(s=H7(t,h.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,l=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Et.read(i);const u=Bu(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(or(m=>{const b=this.getAxisMotionValue(m);b&&(this.originPoint[m]+=h[m].translate,b.set(b.get()+h[m].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),f&&f(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:l=Mb,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:l,dragMomentum:u}}}function mE(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function H7(e,t,n){const s=SC(e,mE(n)),i=SC(t,mE(n));return()=>{s(),i()}}function Jf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function q7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class W7 extends ra{constructor(t){super(t),this.removeGroupControls=js,this.removeListeners=js,this.controls=new F7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||js}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const uv=e=>(t,n)=>{e&&Et.update(()=>e(t,n),!1,!0)};class G7 extends ra{constructor(){super(...arguments),this.removePointerDownListener=js}onPointerDown(t){this.session=new M2(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:P2(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:uv(t),onStart:uv(n),onMove:uv(s),onEnd:(o,l)=>{delete this.session,i&&Et.postRender(()=>i(o,l))}}}mount(){this.removePointerDownListener=hu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let dv=!1;
117class K7 extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),dv&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),xh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:l}=s;return l&&(l.isPresent=o,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),dv=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||Et.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:s}=t;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),Yw.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=t;dv=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function L2(e){const[t,n]=A2(),s=E.useContext(Rw);return y.jsx(K7,{...e,layoutGroup:s,switchLayoutGroup:E.useContext(N2),isPresent:t,safeToRemove:n})}const Y7={pan:{Feature:G7},drag:{Feature:W7,ProjectionNode:k2,MeasureLayout:L2}};function gE(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&Et.postRender(()=>o(t,od(t)))}class Z7 extends ra{mount(){const{current:t}=this.node;t&&(this.unmount=vW(t,(n,s)=>(gE(this.node,s,"Start"),i=>gE(this.node,i,"End"))))}unmount(){}}class X7 extends ra{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rd(Bu(this.node.current,"focus",()=>this.onFocus()),Bu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function yE(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&Et.postRender(()=>o(t,od(t)))}class J7 extends ra{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=kW(t,(i,o)=>(yE(this.node,o,"Start"),(l,{success:u})=>yE(this.node,l,u?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const Db=new WeakMap,fv=new WeakMap,Q7=e=>{const t=Db.get(e.target);t&&t(e)},eG=e=>{e.forEach(Q7)};function tG({root:e,...t}){const n=e||document;fv.has(n)||fv.set(n,{});const s=fv.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(eG,{root:e,...t})),s[i]}function nG(e,t,n){const s=tG(t);return Db.set(e,n),s.observe(e),()=>{Db.delete(e),s.unobserve(e)}}const sG={some:0,all:1};class rG extends ra{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:sG[i]},u=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),b=h?p:m;b&&b(f)};this.stopObserver=nG(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iG(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function iG({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const aG={inView:{Feature:rG},tap:{Feature:J7},focus:{Feature:X7},hover:{Feature:Z7}},oG={layout:{ProjectionNode:k2,MeasureLayout:L2}},lG={...j7,...aG,...Y7,...oG},fl=C7(lG,E7);function cG(){!e0.current&&t2();const[e]=E.useState(rp.current);return e}const pu=ot;function vE(e,t){return t==="/"?e==="/":e===t||e.startsWith(`${t}/`)}function uG(e,t){return e.link&&vE(t,e.link)?!0:e.subMenus?e.subMenus.some(n=>n.items.some(s=>vE(t,s.link))):!1}function dG({navItems:e,onNavigate:t}){const[n,s]=E.useState(null),[i,o]=E.useState(null),l=xR({select:h=>h.location.pathname}),u=()=>{s(null),o(null),t?.()},f="relative inline-flex items-center gap-1 rounded-full px-4 py-1.5 text-sm font-medium text-foreground
117/70 transition-colors duration-200 hover:text-foreground";return y.jsx("ul",{className:"relative flex items-center gap-0",children:e.map(h=>{const p=n===h.label&&!!h.subMenus,m=i===h.id||p,b=uG(h,l),w=h.cols??(h.subMenus&&h.subMenus.length>=5?3:h.subMenus?.length??1);return y.jsxs("li",{className:"relative",onMouseEnter:()=>{o(h.id),h.subMenus&&s(h.label)},onMouseLeave:()=>{o(null),s(null)},children:[h.subMenus?y.jsxs("button",{type:"button",className:`${f} cursor-pointer ${b?"text-foreground":""}`,"aria-haspopup":"true","aria-expanded":p,"aria-current":b?"page":void 0,children:[m&&y.jsx(fl.span,{layoutId:"nav-hover-pill",className:"absolute inset-0 rounded-full bg-primary/15",transition:{type:"spring",stiffness:380,damping:30},"aria-hidden":!0}),y.jsx("span",{className:"relative z-10",children:h.label}),y.jsx(uw,{className:`relative z-10 h-3.5 w-3.5 transition-transform duration-300 ${p?"rotate-180":""}`}),b&&y.jsx("span",{className:"absolute -bottom-1.5 left-3 right-3 h-px bg-foreground/85","aria-hidden":!0}),m&&y.jsx(fl.span,{layoutId:"nav-underline",className:"absolute -bottom-1.5 left-3 right-3 h-px bg-foreground
117/85",transition:{type:"spring",stiffness:380,damping:30},"aria-hidden":!0})]}):h.link?y.jsxs(pu,{to:h.link,className:`${f} ${b?"text-foreground":""}`,onClick:u,activeProps:{className:"text-foreground"},children:[m&&y.jsx(fl.span,{layoutId:"nav-hover-pill",className:"absolute inset-0 rounded-full bg-primary/15",transition:{type:"spring",stiffness:380,damping:30},"aria-hidden":!0}),y.jsx("span",{className:"relative z-10",children:h.label}),b&&y.jsx("span",{className:"absolute -bottom-1.5 left-3 right-3 h-px bg-foreground/85","aria-hidden":!0}),m&&y.jsx(fl.span,{layoutId:"nav-underline",className:"absolute -bottom-1.5 left-3 right-3 h-px bg-foreground/85",transition:{type:"spring",stiffness:380,damping:30},"aria-hidden":!0})]}):y.jsx("span",{className:f,children:h.label}),y.jsx(t7,{children:p&&h.subMenus&&y.jsx("div",{className:`absolute top-full z-50 pt-3 ${h.align==="end"?"right-0":"left-0"}`,children:y.jsxs(fl.div,{layoutId:"nav-mega-panel",className:"rounded-2xl border border-white/[0.10] bg-[var(--ink)]/95 p-6 shadow-[0_30px_80px_-20px_rgba(0,0,0,0.6)] backdrop-blur-md",transition:{type:"spring",stiffness:320,damping:30},children:[h.layout==="rows"?y.jsx(fG,{subMenus:h.subMenus,onNavigate:u}):h.layout==="groups"?y.jsx(hG,{subMenus:h.subMenus,onNavigate:u}):y.jsx("div",{className:"grid gap-x-8 gap-y-6",style:{gridTemplateColumns:`repeat(${w}, minmax(200px, 1fr))`},children:h.subMenus.map(x=>y.jsxs(fl.div,{layout:!0,className:"min-w-[200px]",children:[y.jsx("h3",{className:"font-mono-label mb-3 text-foreground/55",children:x.title}),y.jsx("ul",{className:"space-y-3",children:x.items.map(S=>{const _=S.icon;return y.jsx("li",{children:y.jsxs(pu,{to:S.link,onClick:u,className:"group flex items-start gap-3 rounded-lg p-1 -m-1 transition-colors",children:[_&&y.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md border border-white/10 bg-white/[0.02] text-foreground/85 transition-colors duration-200 group-hover:border-purple-400/50 group-hover:bg-purple-500/15 group-hover:text-purple-300",children:y.jsx(_,{className:"h-4 w-4"})}),y.jsxs("span",{className:"leading-tight",children:[y.jsx("span",{className:"block text-sm font-medium text-foreground transition-colors group-hover:text-purple-300",children:S.label}),S.description&&y.jsx("span",{className:"mt-0.5 block text-xs text-foreground/55 transition-colors group-hover:text-foreground/85",children:S.description})]})]})},S.label)})})]},x.title))}),h.footer&&y.jsx("div",{className:"mt-5 border-t border-white/[0.08] pt-3",children:y.jsxs(pu,{to:h.footer.link,onClick:u,className:"group/footer inline-flex items-center gap-2 text-xs font-medium text-foreground/45 transition-colors hover:text-purple-300",children:[h.footer.icon&&y.jsx(h.footer.icon,{className:"h-3.5 w-3.5",strokeWidth:1.75}),h.footer.label,y.jsx(Pn,{className:"h-3 w-3 transition-transform group-hover/footer:translate-x-0.5"})]})})]})})})]},h.label)})})}function fG({subMenus:e,onNavigate:t}){return y.jsx("div",{className:"grid w-[880px] grid-cols-4 gap-0",children:e.map((n,s)=>{const i=n.link??n.items[0]?.link;return i?y.jsxs(pu,{to:i,onClick:t,className:`group/col relative flex flex-col gap-3 rounded-xl px-4 py-4 transition-colors hover:bg-purple-500/[0.08] ${s>0?"border-l border-white/[0.05]":""}`,children:[y.jsx("span",{className:"font-mono-label text-purple-300 transition-colors group-hover/col:text-purple-200",children:n.title}),y.jsx("ul",{className:"mt-1 flex flex-col gap-2",children:n.items.map(o=>{const l=o.icon;return y.jsx("li",{children:y.jsxs("span",{className:"inline-flex items-center gap-2 text-[13px] font-medium text-foreground/75 transition-colors group-hover/col:text-purple-200",children:[l&&y.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-white/10 bg-white/[0.02] transition-colors duration-200 group-hover/col:border-purple-400/45 group-hover/col:bg-purple-500/15",children:y.jsx(l,{className:"h-3.5 w-3.5 text-foreground/65 transition-colors group-hover/col:text-purple-300",strokeWidth:1.75})}),y.jsx("span",{children:o.label})]})},o.label)})}),y.jsx("div",{className:"mt-auto flex justify-end pt-2",children:y.jsx(Pn,{className:"h-4 w-4 text-foreground
117/30 transition-all duration-200 group-hover/col:translate-x-0.5 group-hover/col:text-purple-300","aria-hidden":!0})})]},n.title):null})})}function hG({subMenus:e,onNavigate:t}){return y.jsx("div",{className:"grid w-[640px] grid-cols-2 gap-x-10 gap-y-2 px-2 py-2",children:e.map(n=>y.jsxs("div",{children:[y.jsx("span",{className:"font-mono-label mb-3 block text-purple-300",children:n.title}),y.jsx("div",{className:"flex flex-col gap-1",children:n.items.map(s=>{const i=s.icon;return y.jsxs(pu,{to:s.link,onClick:t,className:"group/item inline-flex items-center gap-2 rounded-md px-2 py-1.5 transition-colors hover:bg-purple-500/[0.06]",children:[i&&y.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-white/10 bg-white/[0.02] transition-colors duration-200 group-hover/item:border-purple-400/45 group-hover/item:bg-purple-500/15",children:y.jsx(i,{className:"h-3.5 w-3.5 text-foreground/65 transition-colors group-hover/item:text-purple-300",strokeWidth:1.75})}),y.jsx("span",{className:"text-[13px] font-medium text-foreground/75 transition-colors group-hover/item:text-purple-300",children:s.label})]},s.label)})})]},n.title))})}const ld=JO(Tw,QO,{auth:{persistSession:!0,autoRefreshToken:!0,detectSessionInUrl:!0,storageKey:"wyecliff-admin-auth"},global:{headers:{"X-Client-Info":"wyecliff-admin"}}});async function bne(e,t){return ld.auth.signInWithPassword({email:e,password:t})}async function wne(){await ld.auth.signOut()}async function pG(){const{data:e}=await ld.auth.getSession();return e.session??null}async function mG(e){const{data:t,error:n}=await ld.from("user_roles").select("role").eq("user_id",e).eq("role","admin").maybeSingle();return!n&&!!t}function gG(){const[e,t]=E.useState(!0),[n,s]=E.useState(!1);return E.useEffect(()=>{let i=!0;async function o(){try{const u=await pG();if(!u?.user){i&&(s(!1),t(!1));return}const f=await mG(u.user.id);i&&(s(f),t(!1))}catch{i&&(s(!1),t(!1))}}o();const{data:{subscription:l}}=ld.auth.onAuthStateChange(()=>{o()});return()=>{i=!1,l.unsubscribe()}},[]),{loading:e,isAdmin:n}}const bE="/wyecliff-logo-header.png?v=3";function yG(e){return[{id:1,label:"Capabilities",layout:"rows",subMenus:[{title:"Discover",link:"/services/discover",items:[{label:"AI Assessment",icon:DR,link:"/services/discover"},{label:"Strategy",icon:bU,link:"/services/discover"},{label:"Data Audit",icon:IR,link:"/services/discover"}]},{title:"Build",link:"/services/build",items:[{label:"Custom Apps",icon:yU,link:"/services/build"},{label:"AI Agents",icon:NR,link:"/services/build"},{label:"System Upgrades",icon:hz,link:"/services/build"},{label:"Data Consolidation",icon:PU,link:"/services/build"}]},{title:"Deploy",link:"/services/deploy",items:[{label:"Copilot Rollout",icon:XU,link:"/services/deploy"},{label:"Claude Rollout",icon:LR,link:"/services/deploy"},{label:"Enterprise Rollout",icon:IA,link:"/services/deploy"},{label:"Custom Rollouts",icon:BR,link:"/services/deploy"}]},{title:"Train",link:"/services/train",items:[{label:"Workshops",icon:YU,link:"/services/train"},{label:"Documentation",icon:NA,link:"/services/train"},{label:"Use Case Training",icon:CU,link:"/services/train"}]}]},{id:2,label:"Industries",layout:"groups",subMenus:[{title:"Professional Services",items:[{label:"Insurance & Financial",icon:rz,link:"/industries/insurance"},{label:"Accounting",icon:cU,link:"/industries/accounting"},{label:"PE, VC & M&A",icon:oz,link:"/industries/pe-vc"},{label:"Legal",icon:QU,link:"/industries/legal"}]},{title:"Operating Companies",items:[{label:"Construction",icon:OU,link:"/industries/construction"},{label:"Manufacturing",icon:kU,link:"/industries/manufacturing"},{label:"Distribution & Wholesale",icon:cz,link:"/industries/distribution"}]}]},{id:3,label:"Case Studies",link:"/case-studies"},{id:4,label:"Solution Playground",link:"/solution-playground"},{id:5,label:"Company",cols:2,align:"end",footer:e?{label:"Admin",link:"/admin",icon:PR}:{label:"Log in",link:"/login",icon:MR},subMenus:[{title:"Wyecliff",items:[{label:"Our Story",description:"Real Partnerships, Impactful AI",icon:IA,link:"/about"},{label:"Team",description:"Meet Our Impact Makers",icon:dw,link:"/team"},{label:"Partners",description:"Microsoft, Anthropic, AWS",icon:TU,link:"/partners"},{label:"Careers",description:"Make An Impact With Us",icon:aU,link:"/careers"}]},{title:"Insights",items:[{label:"Blog and Insights",description:"Guides, Comparisons, And More",icon:NA,link:"/blog"},{label:"Newsletter",description:"Free Weekly AI Briefing",icon:Dv,link:"/newsletter"}]}]}]}function vG(){const{isAdmin:e}=gG(),t=yG(e),[n,s]=E.useState(!1),[i,o]=E.useState(null),[l,u]=E.useState(!1),f=m=>{o(b=>b===m?null:m)},h=()=>{s(!1),o(null)};E.useEffect(()=>{u(!0)},[]),E.useEffect(()=>{if(!n)return;
117const m=document.documentElement,b=m.style.overflow,w=document.body.style.overflow,x=document.body.style.touchAction;return m.style.overflow="hidden",document.body.style.overflow="hidden",document.body.style.touchAction="none",()=>{m.style.overflow=b,document.body.style.overflow=w,document.body.style.touchAction=x}},[n]);const p=n?y.jsxs("div",{className:"fixed inset-0 z-[60] flex flex-col lg:hidden",role:"dialog","aria-modal":"true",children:[y.jsx("div",{className:"absolute inset-0 bg-header-bg","aria-hidden":!0}),y.jsxs("div",{className:"relative z-10 mx-auto flex h-[5.75rem] w-full max-w-[1400px] shrink-0 items-center justify-between px-6",children:[y.jsx(ot,{to:"/",onClick:h,className:"flex items-center text-foreground","aria-label":"Wyecliff home",children:y.jsx("img",{src:bE,alt:"Wyecliff",width:2128,height:375,decoding:"async",className:"h-9 w-auto select-none"})}),y.jsx("button",{type:"button",onClick:h,className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-white/[0.10] text-foreground","aria-label":"Close menu",children:y.jsx(Qr,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"relative z-10 min-h-0 flex-1 overflow-y-auto overscroll-contain border-t border-white/[0.06]",children:y.jsxs("div",{className:"mx-auto flex max-w-[1400px] flex-col gap-1 px-6 py-6 pb-10",children:[t.map(m=>{if(!m.subMenus)return y.jsx(ot,{to:m.link,onClick:h,className:"block py-3 font-display text-[1.375rem] leading-tight text-foreground",children:m.label},m.label);const b=i===m.label;return y.jsxs("div",{className:"border-b border-white/[0.06] py-2 last:border-0",children:[y.jsxs("button",{type:"button",onClick:()=>f(m.label),className:"flex w-full items-center justify-between py-2 font-display text-[1.375rem] leading-tight text-foreground","aria-expanded":b,children:[m.label,y.jsx("span",{className:`text-foreground/55 transition-transform ${b?"rotate-90":""}`,children:y.jsx(Pn,{className:"h-4 w-4"})})]}),b&&y.jsx("div",{className:"mb-3 ml-1 mt-1 flex flex-col gap-3",children:m.subMenus.map(w=>{const x=w.link;return x?y.jsxs(ot,{to:x,onClick:h,className:"rounded-xl border border-white/[0.08] bg-white/[0.03] px-4 py-3.5",children:[y.jsx("div",{className:"text-[15px] font-medium leading-snug text-foreground",children:w.title}),y.jsx("ul",{className:"mt-2.5 flex flex-col gap-2",children:w.items.map(S=>y.jsx("li",{className:"font-display text-lg leading-snug text-foreground/55",children:S.label},S.label))})]},w.title):y.jsxs("div",{className:"rounded-xl border border-white/[0.08] bg-white/[0.03] px-4 py-3.5",children:[y.jsx("div",{className:"text-[15px] font-medium leading-snug text-foreground",children:w.title}),y.jsx("ul",{className:"mt-2.5 flex flex-col gap-2",children:w.items.map(S=>y.jsx("li",{children:y.jsxs(ot,{to:S.link,onClick:h,className:"block py-0.5 transition hover:opacity-90",children:[y.jsx("span",{className:"font-display text-lg leading-snug text-foreground/72",children:S.label}),S.description&&y.jsx("span",{className:"mt-0.5 block text-sm leading-snug text-foreground/45",children:S.description})]})},S.label))})]},w.title)})})]},m.label)}),y.jsxs("button",{type:"button",onClick:()=>{h(),so()},className:"mt-4 inline-flex items-center justify-center gap-2 rounded-full bg-foreground px-4 py-3 text-sm font-medium text-background transition hover:bg-brand-purple hover:text-white",children:["Talk To Our Team ",y.jsx(Pn,{className:"h-3.5 w-3.5"})]}),y.jsxs(ot,{to:e?"/admin":"/login",onClick:h,className:"mt-3 inline-flex items-center justify-center gap-2 text-xs font-medium text-foreground/45 transition-colors hover:text-purple-300",children:[e?y.jsx(PR,{className:"h-3.5 w-3.5"}):y.jsx(MR,{className:"h-3.5 w-3.5"}),e?"Admin":"Log in"]})]})})]}):null;return y.jsxs("header",{className:"site-chrome-header sticky top-0 z-50 bg-header-bg",children:[y.jsxs("div",{className:"mx-auto flex h-[5.75rem] max-w-[1400px] items-center justify-between px-6 lg:h-[6.75rem]",children:[y.jsx(ot,{to:"/",onClick:h,className:"flex items-center text-foreground","aria-label":"Wyecliff home",children:y.jsx("img",{src:bE,alt:"Wyecliff",width:2128,height:375,decoding:"async",fetchPriority:"high",className:"h-9 w-auto select-none lg:h-10"})}),y.jsx("nav",{className:"hidden lg:block","aria-label":"Primary",children:y.jsx(dG,{navItems:t})}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("button",{type:"button",onClick:so,className:"hidden items-center gap-2 rounded-full bg-foreground px-5 py-2.5 text-sm font-medium text-background transition hover:bg-brand-purple hover:text-white lg:inline-flex",children:["Talk To Our Team ",y.jsx(Pn,{className:"h-3.5 w-3.5"})]}),y.jsx("button",{type:"button",onClick:()=>s(m=>!m),className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-white/[0.10] text-foreground lg:hidden","aria-label":"Toggle menu",children:n?y.jsx(Qr,{className:"h-4 w-4"}):y.jsx($U,{className:"h-4 w-4"})})]})]}),l&&p?co.createPortal(p,document.body):null]})}function B2(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=B2(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function bG(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=B2(e))&&(s&&(s+=" "),s+=t);return s}const wG=(e,t)=>
vendor: 5,624 bytes, line 117
117{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},xG=(e,t)=>({classGroupId:e,validator:t}),U2=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),cp="-",wE=[],SG="arbitrary..",_G=e=>{const t=AG(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return kG(l);const u=l.split(cp),f=u[0]===""&&u.length>1?1:0;return z2(u,f,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const f=s[l],h=n[l];return f?h?wG(h,f):f:h||wE}return n[l]||wE}}},z2=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const h=z2(e,t+1,o);if(h)return h}const l=n.validators;if(l===null)return;const u=t===0?e.join(cp):e.slice(t).join(cp),f=l.length;for(let h=0;h<f;h++){const p=l[h];if(p.validator(u))return p.classGroupId}},kG=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?SG+s:void 0})(),AG=e=>{const{theme:t,classGroups:n}=e;return CG(n,t)},CG=(e,t)=>{const n=U2();for(const s in e){const i=e[s];a0(i,n,s,t)}return n},a0=(e,t,n,s)=>{const i=e.length;for(let o=0;o<i;o++){const l=e[o];EG(l,t,n,s)}},EG=(e,t,n,s)=>{if(typeof e=="string"){TG(e,t,n);return}if(typeof e=="function"){RG(e,t,n,s);return}OG(e,t,n,s)},TG=(e,t,n)=>{const s=e===""?t:V2(t,e);s.classGroupId=n},RG=(e,t,n,s)=>{if(jG(e)){a0(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(xG(n,e))},OG=(e,t,n,s)=>{const i=Object.entries(e),o=i.length;for(let l=0;l<o;l++){const[u,f]=i[l];a0(f,V2(t,u),n,s)}},V2=(e,t)=>{let n=e;const s=t.split(cp),i=s.length;for(let o=0;o<i;o++){const l=s[o];let u=n.nextPart.get(l);u||(u=U2(),n.nextPart.set(l,u)),n=u}return n},jG=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,NG=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const i=(o,l)=>{n[o]=l,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=s[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},Lb="!",xE=":",IG=[],SE=(e,t,n,s,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:i}),PG=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=i=>{const o=[];let l=0,u=0,f=0,h;const p=i.length;for(let S=0;S<p;S++){const _=i[S];if(l===0&&u===0){if(_===xE){o.push(i.slice(f,S)),f=S+1;continue}if(_==="/"){h=S;continue}}_==="["?l++:_==="]"?l--:_==="("?u++:_===")"&&u--}const m=o.length===0?i:i.slice(f);let b=m,w=!1;m.endsWith(Lb)?(b=m.slice(0,-1),w=!0):m.startsWith(Lb)&&(b=m.slice(1),w=!0);const x=h&&h>f?h-f:void 0;return SE(o,w,b,x)};if(t){const i=t+xE,o=s;s=l=>l.startsWith(i)?o(l.slice(i.length)):SE(IG,!1,l,void 0,!0)}if(n){const i=s;s=o=>n({className:o,parseClassName:i})}return s},MG=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],u=l[0]==="[",f=t.has(l);u||f?(i.length>0&&(i.sort(),s.push(...i),i=[]),s.push(l)):i.push(l)}return i.length>0&&(i.sort(),s.push(...i)),s}},DG=e=>({cache:NG(e.cacheSize),parseClassName:PG(e),sortModifiers:MG(e),postfixLookupClassGroupIds:LG(e),..._G(e)}),LG=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let s=0;s<n.length;s++)t[n[s]]=!0;return t},BG=/\s+/,UG=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:i,sortModifiers:o,postfixLookupClassGroupIds:l}=t,u=[],f=e.trim().split(BG);let h="";for(let p=f.length-1;p>=0;p-=1){const m=f[p],{isExternal:b,modifiers:w,hasImportantModifier:x,baseClassName:S,maybePostfixModifierPosition:_}=n(m);if(b){h=m+(h.length>0?" "+h:h);continue}let k=!!_,C;if(k){const D=S.substring(0,_);C=s(D);const M=C&&l[C]?s(S):void 0;M&&M!==C&&(C=M,k=!1)}else C=s(S);if(!C){if(!k){h=m+(h.length>0?" "+h:h);continue}if(C=s(S),!C){h=m+(h.length>0?" "+h:h);continue}k=!1}const R=w.length===0?"":w.length===1?w[0]:o(w).join(":"),O=x?R+Lb:R,N=O+C;if(u.indexOf(N)>-1)continue;u.push(N);const P=i(C,k);for(let D=0;D<P.length;++D){const M=P[D];u.push(O+M)}h=m+(h.length>0?" "+h:h)}return h},zG=(...e)=>{let t=0,n,s,i="";for(;t<e.length;)(n=e[t++])&&(s=$2(n))&&(i&&(i+=" "),i+=s);return i},$2=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=$2(e[s]))&&(n&&(n+=" "),n+=t);return n},VG=(e,...t)=>{let n,s,i,o;const l=f=>{const h=t.reduce((p,m)=>m(p),e());return n=DG(h),s=n.cache.get,i=n.cache.set,o=u,u(f)},u=f=>{const h=s(f);if(h)return h;const p=UG(f,n);return i(f,p),p};return o=l,(...f)=>o(zG(...f))},$G=[],cn=e=>{const t=n=>n[e]||$G;return t.isThemeGetter=!0,t},F2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,H2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,FG=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,HG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qG=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,WG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,GG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,KG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ni=e=>FG.test(e),et=e=>!!e&&!Number.isNaN(Number(e)),ar=e=>!!e&&Number.isInteger(Number(e)),hv=e=>e.endsWith("%")&&et(e.slice(0,-1)),$r=e=>HG.test(e),q2=()=>!0,YG=e=>qG.test(e)&&!WG.test(e),o0=()=>!1,ZG=e=>GG.test(e),XG=e=>KG.test(e),JG=e=>!ke(e)&&!Ae(e),QG=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),eK=e=>ia(e,K2,o0),ke=e=>
vendor: 9,377 bytes, line 117
117F2.test(e),Oa=e=>ia(e,Y2,YG),_E=e=>ia(e,lK,et),tK=e=>ia(e,X2,q2),nK=e=>ia(e,Z2,o0),kE=e=>ia(e,W2,o0),sK=e=>ia(e,G2,XG),Qf=e=>ia(e,J2,ZG),Ae=e=>H2.test(e),Zc=e=>uo(e,Y2),rK=e=>uo(e,Z2),AE=e=>uo(e,W2),iK=e=>uo(e,K2),aK=e=>uo(e,G2),eh=e=>uo(e,J2,!0),oK=e=>uo(e,X2,!0),ia=(e,t,n)=>{const s=F2.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},uo=(e,t,n=!1)=>{const s=H2.exec(e);return s?s[1]?t(s[1]):n:!1},W2=e=>e==="position"||e==="percentage",G2=e=>e==="image"||e==="url",K2=e=>e==="length"||e==="size"||e==="bg-size",Y2=e=>e==="length",lK=e=>e==="number",Z2=e=>e==="family-name",X2=e=>e==="number"||e==="weight",J2=e=>e==="shadow",cK=()=>{const e=cn("color"),t=cn("font"),n=cn("text"),s=cn("font-weight"),i=cn("tracking"),o=cn("leading"),l=cn("breakpoint"),u=cn("container"),f=cn("spacing"),h=cn("radius"),p=cn("shadow"),m=cn("inset-shadow"),b=cn("text-shadow"),w=cn("drop-shadow"),x=cn("blur"),S=cn("perspective"),_=cn("aspect"),k=cn("ease"),C=cn("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...O(),Ae,ke],P=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],M=()=>[Ae,ke,f],$=()=>[Ni,"full","auto",...M()],K=()=>[ar,"none","subgrid",Ae,ke],Y=()=>["auto",{span:["full",ar,Ae,ke]},ar,Ae,ke],X=()=>[ar,"auto",Ae,ke],ae=()=>["auto","min","max","fr",Ae,ke],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],be=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...M()],Q=()=>[Ni,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],te=()=>[Ni,"screen","full","dvw","lvw","svw","min","max","fit",...M()],pe=()=>[Ni,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],ie=()=>[e,Ae,ke],B=()=>[...O(),AE,kE,{position:[Ae,ke]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],de=()=>["auto","cover","contain",iK,eK,{size:[Ae,ke]}],he=()=>[hv,Zc,Oa],ge=()=>["","none","full",h,Ae,ke],_e=()=>["",et,Zc,Oa],ye=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>[et,hv,AE,kE],Xe=()=>["","none",x,Ae,ke],Ye=()=>["none",et,Ae,ke],Qe=()=>["none",et,Ae,ke],Wt=()=>[et,Ae,ke],ht=()=>[Ni,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$r],breakpoint:[$r],color:[q2],container:[$r],"drop-shadow":[$r],ease:["in","out","in-out"],font:[JG],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$r],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$r],shadow:[$r],spacing:["px",et],text:[$r],"text-shadow":[$r],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ni,ke,Ae,_]}],container:["container"],"container-type":[{"@container":["","normal","size",Ae,ke]}],"container-named":[QG],columns:[{columns:[et,ke,Ae,u]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[ar,"auto",Ae,ke]}],basis:[{basis:[Ni,"full","auto",u,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[et,Ni,"auto","initial","none",ke]}],grow:[{grow:["",et,Ae,ke]}],shrink:[{shrink:["",et,Ae,ke]}],order:[{order:[ar,"first","last","none",Ae,ke]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...be(),"normal"]}],"justify-self":[{"justify-self":["auto",...be()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...be(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...be(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...be(),"baseline"]}],"place-self":[{"place-self":["auto",...be()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...te()]}],"min-inline-size":[{"min-inline":["auto",...te()]}],"max-inline-size":[{"max-inline":["none",...te()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[u,"screen",...Q()]}],"min-w":[{"min-w":[u,"screen","none",...Q()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",n,Zc,Oa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,oK,tK]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hv,ke]}],"font-family":[{font:[rK,nK,t]}],"font-features":[{"font-features":[ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Ae,ke]}],"line-clamp":[{"line-clamp":[et,"none",Ae,_E]}],leading:[{leading:[o,...M()]}],"list-image":[{"list-image":["none",Ae,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ae,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ie()}],"text-color":[{text:ie()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:[et,"from-font","auto",Ae,Oa]}],"text-decoration-color":[{decoration:ie()}],"underline-offset":[{"underline-offset":[et,"auto",Ae,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[ar,Ae,ke]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae,ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ae,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:de()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ar,Ae,ke],radial:["",Ae,ke],conic:[ar,Ae,ke]},aK,sK]}],"bg-color":[{bg:ie()}],"gradient-from-pos":[{from:he()}
vendor: 7,472 bytes, line 117
117],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:ie()}],"gradient-via":[{via:ie()}],"gradient-to":[{to:ie()}],rounded:[{rounded:ge()}],"rounded-s":[{"rounded-s":ge()}],"rounded-e":[{"rounded-e":ge()}],"rounded-t":[{"rounded-t":ge()}],"rounded-r":[{"rounded-r":ge()}],"rounded-b":[{"rounded-b":ge()}],"rounded-l":[{"rounded-l":ge()}],"rounded-ss":[{"rounded-ss":ge()}],"rounded-se":[{"rounded-se":ge()}],"rounded-ee":[{"rounded-ee":ge()}],"rounded-es":[{"rounded-es":ge()}],"rounded-tl":[{"rounded-tl":ge()}],"rounded-tr":[{"rounded-tr":ge()}],"rounded-br":[{"rounded-br":ge()}],"rounded-bl":[{"rounded-bl":ge()}],"border-w":[{border:_e()}],"border-w-x":[{"border-x":_e()}],"border-w-y":[{"border-y":_e()}],"border-w-s":[{"border-s":_e()}],"border-w-e":[{"border-e":_e()}],"border-w-bs":[{"border-bs":_e()}],"border-w-be":[{"border-be":_e()}],"border-w-t":[{"border-t":_e()}],"border-w-r":[{"border-r":_e()}],"border-w-b":[{"border-b":_e()}],"border-w-l":[{"border-l":_e()}],"divide-x":[{"divide-x":_e()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_e()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ye(),"hidden","none"]}],"divide-style":[{divide:[...ye(),"hidden","none"]}],"border-color":[{border:ie()}],"border-color-x":[{"border-x":ie()}],"border-color-y":[{"border-y":ie()}],"border-color-s":[{"border-s":ie()}],"border-color-e":[{"border-e":ie()}],"border-color-bs":[{"border-bs":ie()}],"border-color-be":[{"border-be":ie()}],"border-color-t":[{"border-t":ie()}],"border-color-r":[{"border-r":ie()}],"border-color-b":[{"border-b":ie()}],"border-color-l":[{"border-l":ie()}],"divide-color":[{divide:ie()}],"outline-style":[{outline:[...ye(),"none","hidden"]}],"outline-offset":[{"outline-offset":[et,Ae,ke]}],"outline-w":[{outline:["",et,Zc,Oa]}],"outline-color":[{outline:ie()}],shadow:[{shadow:["","none",p,eh,Qf]}],"shadow-color":[{shadow:ie()}],"inset-shadow":[{"inset-shadow":["none",m,eh,Qf]}],"inset-shadow-color":[{"inset-shadow":ie()}],"ring-w":[{ring:_e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ie()}],"ring-offset-w":[{"ring-offset":[et,Oa]}],"ring-offset-color":[{"ring-offset":ie()}],"inset-ring-w":[{"inset-ring":_e()}],"inset-ring-color":[{"inset-ring":ie()}],"text-shadow":[{"text-shadow":["none",b,eh,Qf]}],"text-shadow-color":[{"text-shadow":ie()}],opacity:[{opacity:[et,Ae,ke]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[et]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ee()}],"mask-image-linear-from-color":[{"mask-linear-from":ie()}],"mask-image-linear-to-color":[{"mask-linear-to":ie()}],"mask-image-t-from-pos":[{"mask-t-from":Ee()}],"mask-image-t-to-pos":[{"mask-t-to":Ee()}],"mask-image-t-from-color":[{"mask-t-from":ie()}],"mask-image-t-to-color":[{"mask-t-to":ie()}],"mask-image-r-from-pos":[{"mask-r-from":Ee()}],"mask-image-r-to-pos":[{"mask-r-to":Ee()}],"mask-image-r-from-color":[{"mask-r-from":ie()}],"mask-image-r-to-color":[{"mask-r-to":ie()}],"mask-image-b-from-pos":[{"mask-b-from":Ee()}],"mask-image-b-to-pos":[{"mask-b-to":Ee()}],"mask-image-b-from-color":[{"mask-b-from":ie()}],"mask-image-b-to-color":[{"mask-b-to":ie()}],"mask-image-l-from-pos":[{"mask-l-from":Ee()}],"mask-image-l-to-pos":[{"mask-l-to":Ee()}],"mask-image-l-from-color":[{"mask-l-from":ie()}],"mask-image-l-to-color":[{"mask-l-to":ie()}],"mask-image-x-from-pos":[{"mask-x-from":Ee()}],"mask-image-x-to-pos":[{"mask-x-to":Ee()}],"mask-image-x-from-color":[{"mask-x-from":ie()}],"mask-image-x-to-color":[{"mask-x-to":ie()}],"mask-image-y-from-pos":[{"mask-y-from":Ee()}],"mask-image-y-to-pos":[{"mask-y-to":Ee()}],"mask-image-y-from-color":[{"mask-y-from":ie()}],"mask-image-y-to-color":[{"mask-y-to":ie()}],"mask-image-radial":[{"mask-radial":[Ae,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ee()}],"mask-image-radial-from-color":[{"mask-radial-from":ie()}],"mask-image-radial-to-color":[{"mask-radial-to":ie()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[et]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ee()}],"mask-image-conic-from-color":[{"mask-conic-from":ie()}],"mask-image-conic-to-color":[{"mask-conic-to":ie()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ae,ke]}],filter:[{filter:["","none",Ae,ke]}],blur:[{blur:Xe()}],brightness:[{brightness:[et,Ae,ke]}],contrast:[{contrast:[et,Ae,ke]}],"drop-shadow":[{"drop-shadow":["","none",w,eh,Qf]}],"drop-shadow-color":[{"drop-shadow":ie()}],grayscale:[{grayscale:["",et,Ae,ke]}],"hue-rotate":[{"hue-rotate":[et,Ae,ke]}],invert:[{invert:["",et,Ae,ke]}],saturate:[{saturate:[et,Ae,ke]}],sepia:[{sepia:["",et,Ae,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Ae,ke]}],"backdrop-blur":[{"backdrop-blur":Xe()}],"backdrop-brightness":[{"backdrop-brightness":[et,Ae,ke]}],"backdrop-contrast":[{"backdrop-contrast":[et,Ae,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",et,Ae,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[et,Ae,ke]}],"backdrop-invert":[{"backdrop-invert":["",et,Ae,ke]}],"backdrop-opacity":[{"backdrop-opacity":[et,Ae,ke]}],"backdrop-saturate":[{"backdrop-saturate":[et,Ae,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",et,Ae,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ae,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[et,"initial",Ae,ke]}],ease:[{ease:["linear","initial",k,Ae,ke]}],delay:[{delay:[et,Ae,ke]}],animate:[{animate:["none",C,Ae,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Ae,ke]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Ye()}],"rotate-x":[{"rotate-x":Ye()}],"rotate-y":[{"rotate-y":Ye()}],"rotate-z":[{"rotate-z":Ye()}],scale:[{scale:Qe()}],"scale-x":[{"scale-x":Qe()}],"scale-y":[{"scale-y":Qe()}],"scale-z":[{"scale-z":Qe()}],"scale-3d":["scale-3d"],skew:[{skew:Wt()}],"skew-x":[{"skew-x":Wt()}],"skew-y":[{"skew-y":Wt()}],transform:[{transform:[Ae,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ht()}],"translate-x":[{"translate-x":ht()}],"translate-y":[{"translate-y":ht()}],"translate-z":[{"translate-z":ht()}],"translate-none":["translate-none"],zoom:[{zoom:[ar,Ae,ke]}],accent:[{accent:ie()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ie()}
vendor: 5,490 bytes, line 117
117],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ae,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":ie()}],"scrollbar-track-color":[{"scrollbar-track":ie()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ae,ke]}],fill:[{fill:["none",...ie()]}],"stroke-w":[{stroke:[et,Zc,Oa,_E]}],stroke:[{stroke:["none",...ie()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},uK=VG(cK);function Ce(...e){return uK(bG(e))}const CE=["microsoft","anthropic","monday","ramp"],EE={microsoft:y.jsxs("span",{className:"grid h-3.5 w-3.5 grid-cols-2 grid-rows-2 gap-[1px]",children:[y.jsx("span",{className:"bg-[#F25022]"}),y.jsx("span",{className:"bg-[#7FBA00]"}),y.jsx("span",{className:"bg-[#00A4EF]"}),y.jsx("span",{className:"bg-[#FFB900]"})]}),anthropic:y.jsx("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"#181818","aria-hidden":!0,
117children:y.jsx("path",{d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"})}),monday:y.jsx("svg",{viewBox:"0 0 64 64",className:"h-4 w-4","aria-hidden":!0,children:y.jsxs("g",{transform:"matrix(3.208255 0 0 3.208255 -35.559129 -63.587202)",children:[y.jsx("path",{d:"M13.513 35.76a2.433 2.433 0 0 1-2.059-3.723l4.377-6.99a2.432 2.432 0 1 1 4.123 2.582l-4.378 6.99a2.43 2.43 0 0 1-2.063 1.141z",fill:"#ff3d57"}),y.jsx("path",{d:"M21.056 35.76a2.433 2.433 0 0 1-2.063-3.723l4.38-6.99a2.432 2.432 0 1 1 4.117 2.582l-4.372 6.99a2.43 2.43 0 0 1-2.063 1.141z",fill:"#ffcb00"}),y.jsx("ellipse",{ry:"2.375",rx:"2.436",cy:"33.384",cx:"28.597",fill:"#00d647"})]})}),ramp:y.jsx("img",{src:"/ramp-icon.png",alt:"",width:24,height:24,className:"h-6 w-6 object-cover","aria-hidden":!0})};function dK({tone:e="dark",show:t,showMore:n=!1,moreLabel:s="See All Partners",moreTo:i="/partners",moreHref:o,scrollable:l=!1,className:u}
117){const f=e==="dark"?"border-white/[0.10]":"border-foreground/15",h=e==="dark"?"text-foreground/55":"text-invert-muted",p=e==="dark"?"text-foreground":"text-invert-foreground",m=e==="dark"?"ring-background":"ring-white",b=Ce("flex items-center rounded-full border",f,l?"gap-2 px-3 py-1.5":"gap-3 px-4 py-2"),w=l?"h-5 w-5":"h-6 w-6",x=l?"h-3 w-3":"h-3.5 w-3.5",S=l?`text-[9px] uppercase leading-none tracking-[0.14em] ${h}`:`text-[10px] uppercase tracking-[0.18em] ${h}`,_=l?`text-[11px] font-medium leading-none ${p}`:`text-xs font-medium ${p}`,k=l?"h-5 w-5":"h-6 w-6",C=l?`ring-1 ${m}`:`ring-2 ${m}`,R=l?"h-3 w-3":"h-3.5 w-3.5",O={microsoft:y.jsxs("div",{className:b,children:[y.jsxs("div",{className:Ce("grid grid-cols-2 grid-rows-2 gap-[2px]",w),children:[y.jsx("span",{className:"bg-[#F25022]"}),y.jsx("span",{className:"bg-[#7FBA00]"}),y.jsx("span",{className:"bg-[#00A4EF]"}),y.jsx("span",{className:"bg-[#FFB900]"})]}),y.jsxs("div",{className:"leading-none",children:[y.jsx("div",{className:S,children:"Microsoft"}),y.jsx("div",{className:Ce(_,l?"mt-0.5":""),children:"Cloud Partner"})]})]}),anthropic:y.jsxs("div",{className:b,children:[y.jsx("div",{className:Ce("grid place-items-center rounded-sm bg-[#cc785c]",w),children:y.jsx("svg",{viewBox:"0 0 24 24",className:x,fill:"#fff","aria-hidden":!0,children:y.jsx("path",{d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"})})}),y.jsxs("div",{className:"leading-none",children:[y.jsx("div",{className:S,children:"Anthropic"}),y.jsx("div",{className:Ce(_,l?"mt-0.5":""),children:"Official Partner"})]})]}),monday:y.jsxs("div",{className:b,children:[y.jsx("svg",{viewBox:"0 0 64 64",className:w,"aria-hidden":!0,children:y.jsxs("g",{transform:"matrix(3.208255 0 0 3.208255 -35.559129 -63.587202)",children:[y.jsx("path",{d:"M13.513 35.76a2.433 2.433 0 0 1-2.059-3.723l4.377-6.99a2.432 2.432 0 1 1 4.123 2.582l-4.378 6.99a2.43 2.43 0 0 1-2.063 1.141z",fill:"#ff3d57"}),y.jsx("path",{d:"M21.056 35.76a2.433 2.433 0 0 1-2.063-3.723l4.38-6.99a2.432 2.432 0 1 1 4.117 2.582l-4.372 6.99a2.43 2.43 0 0 1-2.063 1.141z",fill:"#ffcb00"}),y.jsx("ellipse",{ry:"2.375",rx:"2.436",cy:"33.384",cx:"28.597",fill:"#00d647"})]})}),y.jsxs("div",{className:"leading-none",children:[y.jsx("div",{className:S,children:"Monday.com"}),y.jsx("div",{className:Ce(_,l?"mt-0.5":""),children:"Solutions Partner"})]})]}),ramp:y.jsxs("div",{className:b,children:[y.jsx("img",{src:"/ramp-icon.png",alt:"",width:24,height:24,className:Ce(w,"rounded-full object-cover"),"aria-hidden":!0}),y.jsxs("div",{className:"leading-none",children:[y.jsx("div",{className:S,children:"Ramp"}),y.jsx("div",{className:Ce(_,l?"mt-0.5":""),children:"Platform Partner"})]})]})},N=t??CE,P=CE.filter(K=>!N.includes(K)),D=l?"shrink-0 snap-start":void 0,M=Ce(l?b:`group flex items-center gap-2.5 rounded-full border ${f} py-2 pl-3 pr-4 transition hover:border-purple-400/40`,l&&"transition hover:border-purple-400/40"),$=l?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"flex shrink-0 -space-x-1.5",children:[P.map((K,Y)=>y.jsx("span",{style:{zIndex:P.length-Y+1},className:`relative grid ${k} place-items-center overflow-hidden rounded-full bg-white ${C}`,children:EE[K]},K)),y.jsx("span",{style:{zIndex:1},className:`relative grid ${k} place-items-center rounded-full bg-[#7f57da] ${C}`,children:y.jsx(Lv,{className:`${R} text-white`})})]}),y.jsxs("div",{className:"leading-none",children:[y.jsx("div",{className:S,children:"Partners"}),y.jsx("div",{className:Ce(_,"mt-0.5 whitespace-nowrap"),children:s})]})]}):y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"flex -space-x-2",children:[P.map((K,Y)=>y.jsx("span",{style:{zIndex:P.length-Y+1},className:`relative grid h-6 w-6 place-items-center overflow-hidden rounded-full bg-white ring-2 ${m}`,children:EE[K]},K)),y.jsx("span",{style:{zIndex:1},className:`relative grid h-6 w-6 place-items-center rounded-full bg-[#7f57da] ring-2 ${m}`,children:y.jsx(Lv,{className:"h-3.5 w-3.5 text-white"})})]}),y.jsx("span",{className:`text-xs font-medium ${p}`,children:s})]});return y.jsxs("div",{className:Ce("flex items-center",l?"w-max flex-nowrap gap-3":"flex-wrap gap-3",u),children:[N.map(K=>y.jsx("div",{className:D,children:O[K]},K)),n&&o?y.jsx("a",{href:o,className:Ce(M,D),children:$}):n?y.jsx(ot,{to:i,"aria-label":"See all partners",className:Ce(M,D),children:$}):null]})}const fK=["ima","ima-ai-producer-training","ima-power-user-cohort","ima-service-enablement"],hK=["saving-4000-hours-per"],pK=[...fK,...hK];new Set(pK);function l0(e){return!1}function mK(e,t){return e}const th="https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/Company%20logos",La=[{name:"Kenny Electric",src:`${th}/Kenny%20electric%20logo%201.png`,sizeClass:"h-5 sm:h-7",avatarBg:"#e31937"},{name:"IMA Gardner",src:`${th}/IMA_Gardner_BLUE.webp`,sizeClass:"h-7 sm:h-9",avatarBg:"#ffffff"},{name:"Airsan",src:"/airsan-logo.png",marqueeSrc:"/airsan-logo-marquee.png",marqueeInvert:!1,sizeClass:"h-3.5 sm:h-5",avatarBg:"#ffffff"},{name:"Uihlein Electric",src:`${th}/UE%20logo%201.png`,sizeClass:"h-5 sm:h-7",avatarBg:"#ffffff"},{name:"Blue Skies Nursing",src:`${th}/BSN%20logo%201.png`,sizeClass:"h-7 sm:h-9",avatarBg:"#fef3c7"}],TE=La,xne=[La[0],La[1],La[2],La[3],La[4],La[1]];function gK({tone:e="dark",label:t="See All Case Studies",to:n="/case-studies"}
117){const s=e==="dark"?"border-white/[0.10]":"border-foreground/15",i=e==="dark"?"text-foreground":"text-invert-foreground",o=e==="dark"?"ring-background":"ring-white";return y.jsxs(ot,{to:n,"aria-label":t,className:`group flex items-center gap-2.5 rounded-full border ${s} py-2 pl-3 pr-4 transition hover:border-purple-400/40`,children:[y.jsxs("span",{className:"flex -space-x-2",children:[TE.map((l,u)=>y.jsx("span",{style:{zIndex:TE.length-u+1,backgroundColor:l.avatarBg??"#ffffff"},className:`relative grid h-6 w-6 place-items-center overflow-hidden rounded-full ring-2 ${o}`,children:y.jsx("img",{src:l.src,alt:"",width:24,height:24,className:"h-4 w-4 object-contain","aria-hidden":!0})},l.name)),y.jsx("span",{style:{zIndex:1},className:`relative grid h-6 w-6 place-items-center rounded-full bg-[#7f57da] ring-2 ${o}`,children:y.jsx(Lv,{className:"h-3.5 w-3.5 text-white"})})]}),y.jsx("span",{className:`text-xs font-medium ${i}`,children:t})]})}const up={webhookUrl:"",subscriptionType:"Wyecliff Weekly",source:"newsletter-popup",inlineSource:"blog-inline",pageSource:"newsletter-page",klaviyo:{companyId:"RpkBv4",listId:"U4N4DN"}},yK=[{q:"When does Wyecliff Weekly arrive?",a:"Every Friday morning at 6 AM Mountain. One email a week with the biggest AI stories, what they mean for your work, and one thing to try before Monday."},{q:"Is Wyecliff Weekly free?",a:"Yes. Subscribe with your work email and read every edition at no cost. We write for operators who want plain takes, not a sales pitch."},{q:"What is inside each edition?",a:"Top AI news with context, a short take on why it matters for your business, and one practical prompt or workflow you can run this week."},{q:"How do I unsubscribe?",a:"Every email includes an unsubscribe link at the bottom. One click and you are off the list. No hoops."}];async function vK(e,t,n){const{klaviyo:s}=up,i={};if(n)for(const[l,u]of Object.entries(n))u&&(i[l]=u);const o={email:e};Object.keys(i).length>0&&(o.properties=i),await fetch(`https://a.klaviyo.com/client/subscriptions/?company_id=${s.companyId}`,{method:"POST",headers:{"Content-Type":"application/vnd.api+json",revision:"2024-10-15"},body:JSON.stringify({data:{type:"subscription",attributes:{custom_source:t,profile:{data:{type:"profile",attributes:o}}},relationships:{list:{data:{type:"list",id:s.listId}}}}})})}function Bb(){if(typeof window>"u")return{};const e=new URLSearchParams(window.location.search);return{utm_source:e.get("utm_source")??void 0,utm_medium:e.get("utm_medium")??void 0,utm_campaign:e.get("utm_campaign")??void 0,utm_term:e.get("utm_term")??void 0,utm_content:e.get("utm_content")??void 0}}async function Q2(e){const t=(e.referringSite??eN())?.trim()||void 0,{error:n,data:s}=await es.functions.invoke("subscribe-to-beehiiv",{body:{email:e.email,source:e.source,...t?{referring_site:t}:{},utm_source:e.utmParams?.utm_source,utm_medium:e.utmParams?.utm_medium,utm_campaign:e.utmParams?.utm_campaign,utm_term:e.utmParams?.utm_term,utm_content:e.utmParams?.utm_content,first_name:e.firstName?.trim()||void 0,last_name:e.lastName?.trim()||void 0}});if(n){console.error("Beehiiv subscription error:",n);return}s&&typeof s=="object"&&"error"in s&&console.error("Beehiiv subscription error:",s)}function eN(){return typeof window>"u"?null:document.referrer.trim()||null}function bK(){return typeof navigator>"u"?null:navigator.userAgent}async function wK(e,t=up.pageSource,n,s){const i=e.trim().toLowerCase();if(!i||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i))return"error";const{error:o}=await es.from("newsletter_subscribers").insert({email:i,source:t,subscription_type:up.subscriptionType,user_agent:bK(),referrer:eN()});let l="subscribed";if(o)if(o.code==="23505")l="duplicate";else return console.error("Newsletter Supabase insert failed:",o),"error";const u=n??Bb();return await Promise.allSettled([vK(i,t,u).catch(p=>{console.error("Klaviyo subscription error:",p)}),Q2({email:i,source:t,utmParams:u,firstName:void 0,lastName:void 0}).catch(p=>{console.error("Beehiiv subscription error:",p)})]),l}function Sne(){typeof window>"u"||localStorage.setItem("newsletter_subscribed","true")}function _ne(){return typeof window>"u"?!1:localStorage.getItem("newsletter_subscribed")==="true"}function RE(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim())}function xK({source:e="newsletter-page",tone:t="paper",buttonLabel:n="Subscribe",placeholder:s="[email protected]",className:i}){const[o,l]=E.useState(""),[u,f]=E.useState(""),[h,p]=E.useState("email"),[m,b]=E.useState(!1),[w,x]=E.useState(null),[S,_]=E.useState(""),[k,C]=E.useState(""),[R,O]=E.useState(""),N=t==="dark",P=t==="on-purple",D=Ce("min-w-0 rounded-xl px-4 py-3 text-sm transition disabled:opacity-60",P?"border border-white/30 bg-white text-ink placeholder:text-ink/45 hover:bg-white focus:border-white focus:outline-none focus:ring-2 focus:ring-white/40":N?"border border-white/[0.10] bg-white/[0.03] text-foreground placeholder:text-foreground
117/40 hover:bg-white/[0.05] focus:border-purple-400/45 focus:bg-white/[0.05] focus:outline-none focus:ring-2 focus:ring-purple-500/15":"border border-black/[0.10] bg-black/[0.04] text-ink shadow-[inset_0_1px_2px_rgba(0,0,0,0.03)] placeholder:text-ink/40 hover:border-black/[0.14] focus:border-purple-400 focus:outline-none focus:ring-2 focus:ring-purple-500/15"),M=Ce("group inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl px-5 py-3 text-sm font-medium transition disabled:cursor-not-allowed",P?"bg-ink text-white hover:bg-brand-purple":"bg-brand-purple text-white hover:bg-brand-purple-hover disabled:opacity-60"),$=async Y=>{if(Y.preventDefault(),!RE(o)||m)return;b(!0),x(null);const X=o.trim().toLowerCase();if(await wK(X,e,Bb())==="error"){x("There was an error processing your subscription. Please try again later."),b(!1);return}f(X),p("details"),b(!1)},K=async Y=>{if(Y.preventDefault(),m)return;b(!0),x(null);const X=u||o.trim().toLowerCase(),ae=[S.trim(),k.trim()].filter(Boolean).join(" ");if(X&&ae){const{error:oe}=await es.from("newsletter_subscribers").update({name:ae}).eq("email",X);oe&&console.warn("Newsletter detail update failed",oe)}if(X&&(S.trim()||k.trim()))try{await Q2({email:X,source:e,utmParams:Bb(),firstName:S.trim()||void 0,lastName:k.trim()||void 0})}catch(oe){console.error("Beehiiv name update error:",oe)}p("sent"),b(!1)};return h==="sent"?y.jsxs("div",{className:Ce("flex items-start gap-3 rounded-2xl px-5 py-4",P?"border border-white/30 bg-white/15 text-white":N?"border border-white/[0.10] bg-white/[0.03] text-foreground":"border border-purple-200 bg-white text-ink",i),children:[y.jsx(mU,{className:Ce("mt-0.5 h-5 w-5 shrink-0",P?"text-white":N?"text-purple-300":"text-purple-600")}),y.jsxs("div",{children:[y.jsx("div",{className:"text-sm font-medium",children:"You're signed up."}),y.jsx("div",{className:Ce("text-xs",P?"text-white/75":N?"text-foreground/60":"text-ink/55"),children:"Wyecliff Weekly lands every Friday morning. Watch for the first edition."})]})]}):h==="details"?y.jsxs("form",{onSubmit:K,className:Ce("flex flex-col gap-3",i),noValidate:!0,children:[y.jsx("div",{className:Ce("text-xs",P?"text-white/75":N?"text-foreground/60":"text-ink/55"),children:"Email saved. Add a few details so we know who is signing up."}),y.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[y.jsx("label",{className:"sr-only",htmlFor:"newsletter-first-name",children:"First name"}),y.jsx("input",{id:"newsletter-first-name",type:"text",value:S,onChange:Y=>_(Y.target.value),placeholder:"First name",autoComplete:"given-name",disabled:m,className:D}),y.jsx("label",{className:"sr-only",htmlFor:"newsletter-last-name",children:"Last name"}),y.jsx("input",{id:"newsletter-last-name",type:"text",value:k,onChange:Y=>C(Y.target.value),placeholder:"Last name",autoComplete:"family-name",disabled:m,className:D})]}),y.jsx("label",{className:"sr-only",htmlFor:"newsletter-phone",children:"Phone number"}),y.jsx("input",{id:"newsletter-phone",type:"tel",value:R,onChange:Y=>O(Y.target.value),placeholder:"Phone number",autoComplete:"tel",disabled:m,className:D}),y.jsx("button",{type:"submit",disabled:m,className:M,children:m?y.jsxs(y.Fragment,{children:[y.jsx(Ja,{className:"h-3.5 w-3.5 animate-spin"})," Saving"]}):y.jsxs(y.Fragment,{children:["Finish signup",y.jsx(Pn,{className:"h-3.5 w-3.5 transition-transform duration-200 group-hover:translate-x-0.5"})]})})]}):y.jsxs("form",{onSubmit:$,className:Ce("flex flex-col gap-2 sm:flex-row sm:items-stretch",i),noValidate:!0,children:[y.jsx("label",{className:"sr-only",htmlFor:"newsletter-email",children:"Work email"}),y.jsx("input",{id:"newsletter-email",type:"email",value:o,onChange:Y=>{l(Y.target.value),w&&x(null)},placeholder:s,inputMode:"email",autoComplete:"email",disabled:m,className:Ce("flex-1",D)}),y.jsx("button",{type:"submit",disabled:!RE(o)||m,className:M,children:m?y.jsxs(y.Fragment,{children:[y.jsx(Ja,{className:"h-3.5 w-3.5 animate-spin"})," Sending"]}):y.jsxs(y.Fragment,{children:[n,y.jsx(Pn,{className:"h-3.5 w-3.5 transition-transform duration-200 group-hover:translate-x-0.5"})]})}),w&&y.jsx("div",{className:Ce("w-full text-xs sm:absolute sm:mt-14",P?"text-rose-100":N?"text-rose-300":"text-rose-700"),children:w})]})}function Uu(e,t=5){let n=0;for(let i=0;i<e.length;i++)n=n*31+e.charCodeAt(i)|0;const s=[];for(let i=0;i<t;i++){const o=Math.abs(((n^i*2654435761)>>>0)%4)+7,l=Math.abs(((n^i*2246822507)>>>1)%6)+1;s.push([o,l])}return s}function kne(e,t=4){let n=0;for(let i=0;i<e.length;i++)n=n*31+e.charCodeAt(i)|0;const s=[];for(let i=0;i<t;i++){const o=Math.abs(((n^i*2654435761)>>>0)%5)+3,l=Math.abs(((n^i*2246822507)>>>1)%3);s.push([o,l])}return s}function SK({width:e,height:t,x:n,y:s,squares:i,className:o,squareClassName:l,...u}){const f=Be.useId();return y.jsxs("svg",{"aria-hidden":"true",className:o,...u,children:[y.jsx("defs",{children:y.jsx("pattern",{id:f,width:e,height:t,patternUnits:"userSpaceOnUse",x:n,y:s,children:y.jsx("path",{d:`M.5 ${t}V.5H${e}`,fill:"none"})})}),y.jsx("rect",{width:"100%",height:"100%",strokeWidth:0,fill:`url(#${f})`}),i&&y.jsx("svg",{x:n,y:s,className:"overflow-visible",children:i.map(([h,p],m)=>y.jsx("rect",{strokeWidth:"0",width:e+1,height:t+1,x:h*e,y:p*t,className:l},m))})]})}function zu({squares:e,width:t=20,height:n=20,x:s="-12",y:i="4",showGrid:o=!0,className:l,gridClassName:u,squareClassName:f,gradientClassName:h="bg-gradient-to-br from-purple-500/[0.08] to-purple-500/[0.01]"}){const p=h==="bg-transparent",m=!!l?.includes("mask-image");return y.jsx("div",{className:Ce("pointer-events-none absolute inset-0",!m&&"[mask-image:linear-gradient(white,transparent)]",l),children:y.jsx("div",{className:Ce("absolute inset-0",!p&&"[mask-image:radial-gradient(farthest-side_at_top,white,transparent)]",h),children:o&&y.jsx(SK,{width:t,height:n,x:s,y:i,squares:e,squareClassName:f,className:Ce("absolute inset-0 h-full w-full fill-purple-300/[0.10] stroke-purple-300/[0.18] mix-blend-overlay",u)})})})}const tN="GTM-KKB97WGV",OE="AW-17775069972",_K="AW-17775069972/M5IGCPaP-s9bEJSW6JtC",kK="6993dd1f9dc2070019a62d07",jE=up.klaviyo.companyId,AK=`https://static.klaviyo.com/onsite/js/${jE}/klaviyo.js?company_id=${jE}`,CK=`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
118new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
119j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
120'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
121})(window,document,'script','dataLayer','${tN}');`,EK=`<iframe src="https://www.googletagmanager.com/ns.html?id=${tN}" height="0" width="0" style="display:none;visibility:hidden"></iframe>`,TK=`window.addEventListener('load',function(){var s=document.createElement('script');s.async=true;s.src='https://www.googletagmanager.com/gtag/js?id=${OE}';document.head.appendChild(s);window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}window.gtag=gtag;gtag('js',new Date());gtag('config','${OE}');});`,RK=`function gtag_report_conversion(url){var callback=function(){if(typeof url!='undefined'){window.location=url;}};if(window.gtag){gtag('event','conversion',{'send_to':'${_K}','value':1.0,'currency':'USD','event_callback':callback});}return false;}`,c0="wyecliff_consent",OK=3600*24*180,Ub="wyecliff:open-cookie-settings",jK=["AT","BE","BG","CH","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"],NK=["Europe/Andorra","Europe/Astrakhan","Europe/Belgrade","Europe/Chisinau","Europe/Istanbul","Europe/Kaliningrad","Europe/Kirov","Europe/Kyiv","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Podgorica","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vatican","Europe/Volgograd","Europe/Zaporozhye"],IK={ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"},PK={ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied"};function MK(e){return e==="accepted"||e==="necessary"||e==="dismissed"}function nN(){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp(`(?:^|; )${c0}=([^;]*)`)),t=e?decodeURIComponent(e[1]):"";return MK(t)?t:null}function sN(e){const t=window.location.protocol==="https:"?"; Secure":"";document.cookie=`${c0}=${e}; Path=/; Max-Age=${OK}; SameSite=Lax${t}`}function DK(e){window.wyecliffConsent?.apply(e)}function LK(){const e=nN();e!=="accepted"&&e!=="necessary"&&sN("dismissed")}function BK(){window.dispatchEvent(new Event(Ub))}const UK=`(function(){
122  window.dataLayer = window.dataLayer || [];
123  function gtag(){window.dataLayer.push(arguments);}
124  window.gtag = window.gtag || gtag;
125  var optInRegions = ${JSON.stringify(jK)};
126  gtag('consent','default',{
127    ad_storage:'denied',
128    ad_user_data:'denied',
129    ad_personalization:'denied',
130    analytics_storage:'denied',
131    functionality_storage:'granted',
132    security_storage:'granted',
133    region:optInRegions
134  });
135  gtag('consent','default',{
136    ad_storage:'granted',
137    ad_user_data:'granted',
138    ad_personalization:'granted',
139    analytics_storage:'granted',
140    functionality_storage:'granted',
141    security_storage:'granted'
142  });
143  gtag('set','url_passthrough',true);
144
145  function readChoice(){
146    var match = document.cookie.match(/(?:^|; )${c0}=([^;]*)/);
147    return match ? decodeURIComponent(match[1]) : '';
148  }
149  function update(state){gtag('consent','update',state);}
150  var granted = ${JSON.stringify(IK)};
151  var denied = ${JSON.stringify(PK)};
152  var choice = readChoice();
153  var gpc = navigator.globalPrivacyControl === true;
154  if (choice === 'accepted') update(granted);
155  else if (choice === 'necessary') update(denied);
156  else if (gpc) update({ad_storage:'denied',ad_user_data:'denied',ad_personalization:'denied'});
157
158  var skipTz = ${JSON.stringify(NK)};
159  function optInTimezone(){
160    var tz = '';
161    try { tz = Intl.DateTimeFormat().resolvedOptions().timeZone || ''; } catch (e) {}
162    if (!tz) return false;
163    if (tz.indexOf('Europe/') === 0) {
164      for (var i = 0; i < skipTz.length; i++) if (skipTz[i] === tz) return false;
165      return true;
166    }
167    return tz === 'Atlantic/Reykjavik' || tz === 'Atlantic/Faroe' || tz === 'Atlantic/Canary' || tz === 'Atlantic/Madeira' || tz === 'Atlantic/Azores';
168  }
169  function adsAllowed(){
170    if (choice === 'accepted') return true;
171    if (choice === 'necessary') return false;
172    if (gpc) return false;
173    if (optInTimezone()) return false;
174    return true;
175  }
176  function loadOptionalTags(){
177    if (window.__wyecliffOptionalTags) return;
178    window.__wyecliffOptionalTags = true;
179    var k = document.createElement('script');
180    k.async = true;
181    k.src = ${JSON.stringify(AK)};
182    document.head.appendChild(k);
183    var n = Math.random().toString(36).substring(7);
184    var o = document.createElement('script');
185    o.src = 'https://assets.apollo.io/micro/website-tracker/tracker.iife.js?nocache=' + n;
186    o.async = true;
187    o.defer = true;
188    o.onload = function(){
189      if (window.trackingFunctions && window.trackingFunctions.onLoad) {
190        window.trackingFunctions.onLoad({appId:${JSON.stringify(kK)}});
191      }
192    };
193    document.head.appendChild(o);
194  }
195  window.wyecliffConsent = {
196    apply: function(next){
197      if (next === 'accepted') { update(granted); loadOptionalTags(); }
198      else if (next === 'necessary') update(denied);
199    }
200  };
201  if (adsAllowed()) loadOptionalTags();
202})();`,Xi="https://wyecliff.ai",ro="Wyecliff",zb="/og-default.jpg",dp=`${Xi}/wyecliff-logo-header.png`;function Qn(e){if(!e||e==="/")return`${Xi}/`;let t=e.startsWith("/")?e:`/${e}`;return t=t.replace(/\/+$/,""),`${Xi}${t}/`}function fp(e){return/^https?:\/\//i.test(e)?e:`${Xi}${e.startsWith("/")?"":"/"}${e}`}function mt(e){const{path:t,title:n,description:s}=e,i=e.ogTitle??n,o=e.ogDescription??s,l=!e.image,u=fp(e.image??zb),f=e.type??"website",h=Qn(t);return{meta:[{title:n},{name:"description",content:s},{property:"og:title",content:i},{property:"og:description",content:o},{property:"og:type",content:f},{property:"og:url",content:h},{property:"og:site_name",content:ro},{property:"og:image",content:u},...l?[{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"}]:[],{property:"og:image:alt",content:i},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:i},{name:"twitter:description",content:o},{name:"twitter:image",content:u}],links:[{rel:"canonical",href:h}]}}function zK(e){return e.replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026")}function qe(e){return{type:"application/ld+json",children:zK(JSON.stringify(e))}}const rN=[{label:"LinkedIn",href:"https://www.linkedin.com/company/wyecliff/"},{label:"YouTube",href:"https://www.youtube.com/@Wyecliff-ai"},{label:"Instagram",href:"https://www.instagram.com/wyecliff.ai/"},{label:"Facebook",href:"https://www.facebook.com/profile.php?id=61583471377874"}],iN=rN.map(e=>e.href);function VK(){return{"@context":"https://schema.org","@type":"Organization",name:ro,legalName:"Wyecliff Consulting",url:`${Xi}/`,logo:dp,email:"[email protected]",description:"AI consulting and custom software for the industries that actually run things.",areaServed:{"@type":"Country",name:"United States"},founder:[{"@type":"Person",name:"Drew Bowers",jobTitle:"Co-Founder & CEO"},{"@type":"Person",name:"Ben Seidlin",jobTitle:"Co-Founder & AI Lead"},{"@type":"Person",name:"Michael Gebhardt",jobTitle:"Co-Founder, Business Development & Strategic Partnerships"}],sameAs:iN,address:{"@type":"PostalAddress",addressLocality:"Denver",addressRegion:"CO",addressCountry:"US"}}}function $K(){return{"@context":"https://schema.org","@type":"WebSite",name:ro,url:`${Xi}/`}}function qt(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name,item:Qn(t.path)}))}}const FK="/wyecliff-logo-header.png?v=3",HK={LinkedIn:LU,YouTube:gz,Instagram:NU,Facebook:SU},qK=[{label:"Industries",links:[{label:"Construction",to:"/industries/construction"},{label:"Manufacturing",to:"/industries/manufacturing"},{label:"Distribution",to:"/industries/distribution"},{label:"Accounting",to:"/industries/accounting"},{label:"Insurance & Financial",to:"/industries/insurance"},{label:"Legal",to:"/industries/legal"},{label:"PE, VC & M&A",to:"/industries/pe-vc"}]},{label:"Services",links:[{label:"Discover",to:"/services/discover"},{label:"Build",to:"/services/build"},{label:"Deploy",to:"/services/deploy"},{label:"Train",to:"/services/train"},{label:"All Industries",to:"/industries"},{label:"Case Studies",to:"/case-studies"}]},{label:"Company",links:[{label:"Our Story",to:"/about"},{label:"Team",to:"/team"},{label:"Partners",to:"/partners"},{label:"Careers",to:"/careers"},{label:"Solution Playground",to:"/solution-playground"}]},{label:"Resources",links:[{label:"Blog",to:"/blog"},{label:"Wyecliff Weekly",to:"/newsletter"},{label:"AI Consulting in Denver",to:"/locations/denver-ai-consulting"},{label:"Privacy",to:"/privacy"},{label:"Terms",to:"/terms"}]}];function WK(){return y.jsx("footer",{className:"site-chrome-footer section-editorial-hero border-t border-white/[0.06]",children:y.jsxs("div",{className:"mx-auto max-w-[1400px] px-6 py-16",children:[y.jsxs("div",{className:"grid gap-5 border-b border-white/[0.06] pb-12 lg:grid-cols-[1fr_420px] lg:items-stretch",children:[y.jsxs("div",{className:"relative overflow-hidden rounded-2xl border border-black/[0.08] bg-white p-7 transition-colors hover:border-purple-500/40 lg:p-8",children:[y.jsx(zu,{squares:Uu("Wyecliff Weekly"),gridClassName:"fill-purple-500/[0.10] stroke-purple-500/[0.22] mix-blend-normal"}),y.jsxs("div",{className:"relative z-10",children:[y.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-purple-600",children:y.jsx(Dv,{className:"size-5 text-white",strokeWidth:1.5,"aria-hidden":!0})}),y.jsx("h2",{className:"font-display mt-10 max-w-xl leading-tight tracking-[-0.015em] text-ink",style:{fontSize:"clamp(1.6rem, 2.8vw, 2.4rem)",fontWeight:500},children:"The newsletter for operators."}),y.jsx("p",{className:"mt-2.5 text-[13px] leading-relaxed text-ink",style:{fontWeight:300},children:"One email every Friday: the AI moves that actually shipped inside operator-led companies, with the stack and the numbers. No hype."}),y.jsxs("div",{className:"mt-6 flex max-w-2xl flex-col gap-3 sm:flex-row sm:items-center",children:[y.jsx(xK,{source:"footer",tone
202:"paper",buttonLabel:"Subscribe",className:"flex-1"}),y.jsxs(ot,{to:"/newsletter",className:"group inline-flex items-center gap-1.5 whitespace-nowrap text-sm font-medium text-purple-600 transition hover:text-purple-700",children:["Learn more",y.jsx(Pn,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})]})]})]}),y.jsxs("div",{className:"group relative overflow-hidden rounded-2xl border border-white/[0.10] bg-white/[0.06] p-7 transition-colors hover:border-purple-300/40 hover:bg-white/[0.09] lg:p-8",children:[y.jsx(zu,{squares:Uu("Client Briefing"),gridClassName:"fill-purple-300/12 stroke-white/12 mix-blend-normal",gradientClassName:"bg-transparent"}),y.jsxs("div",{className:"relative z-10",children:[y.jsx("div",{className:"font-mono-label text-purple-300",children:"Client Briefing"}),y.jsx("h2",{className:"font-display mt-3 leading-tight tracking-[-0.02em] text-foreground",style:{fontSize:"clamp(1.5rem, 2.4vw, 1.9rem)",fontWeight:500},children:"A private briefing for active teams."}),y.jsx("p",{className:"mt-3 text-[13px] leading-relaxed text-foreground/70",style:{fontWeight:300},children:"Clients get the sharper version: what shipped, what changed, what needs leadership attention, and where the next use case should move."}),y.jsxs("button",{type:"button",onClick:so,className:"group/btn mt-6 inline-flex items-center gap-2 rounded-full bg-brand-purple px-5 py-2.5 text-sm font-medium text-white transition hover:bg-brand-purple-hover",children:["Talk to our team",y.jsx(Pn,{className:"h-3.5 w-3.5 transition-transform group-hover/btn:translate-x-0.5"})]})]})]})]}),y.jsxs("div",{className:"mt-12 grid gap-12 lg:grid-cols-[1.2fr_2fr]",children:[y.jsxs("div",{children:[y.jsx(ot,{to:"/","aria-label":"Wyecliff home",className:"inline-flex items-center",children:y.jsx("img",{src:FK,alt:"Wyecliff",width:2128,height:375,loading:"lazy",decoding:"async",className:"h-12 w-auto select-none"})}),y.jsx("p",{className:"mt-4 max-w-sm text-sm italic text-foreground/65",children:"Wyecliff is an AI strategy partner. We assess, build, deploy, and train AI inside organizations, wherever it makes the biggest impact."}),y.jsx("div",{className:"mt-6 flex flex-wrap items-center gap-2",children:rN.map(e=>{const t=HK[e.label];return y.jsx("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,className:"inline-flex size-9 items-center justify-center rounded-lg border border-white/[0.10] bg-white/[0.03] text-foreground/70 transition hover:border-purple-300/40 hover:bg-white/[0.06] hover:text-purple-300",children:y.jsx(t,{className:"size-4",strokeWidth:1.75,"aria-hidden":!0})},e.href)})}),y.jsxs("div",{className:"mt-4 flex flex-col items-start gap-2",children:[y.jsxs("a",{id:"footer-phone-link",href:"tel:+14142332900",className:"inline-flex items-center gap-2 text-sm text-foreground/85 transition hover:text-purple-300",children:[y.jsx(WU,{className:"size-3.5",strokeWidth:1.75,"aria-hidden":!0}),"414-233-2900"]}),y.jsxs("a",{id:"footer-email-link",href:"mailto:[email protected]",className:"inline-flex items-center gap-2 text-sm text-foreground/85 transition hover:text-purple-300",children:[y.jsx(Dv,{className:"size-3.5",strokeWidth:1.75,"aria-hidden":!0}),"[email protected]"]})]}),y.jsxs("div",{className:"mt-8 flex flex-col items-start gap-3",children:[y.jsx(dK,{tone:"dark",show:[],showMore:!0}),y.jsx(gK,{tone:"dark"})]})]}),y.jsx("div",{className:"grid gap-10 sm:grid-cols-2 lg:grid-cols-4",children:qK.map(e=>y.jsxs("div",{children:[y.jsx("div",{className:"font-mono-label text-foreground/55",children:e.label}),y.jsx("ul",{className:"mt-4 space-y-2.5",children:e.links.map(t=>y.jsx("li",{children:y.jsx(ot,{to:t.to,className:"text-sm text-foreground/85 transition hover:text-purple-300",children:t.label})},t.to))})]},e.label))})]}),y.jsxs("div",{className:"mt-16 flex flex-col items-start justify-between gap-4 border-t border-white/[0.06] pt-8 text-xs text-foreground/55 sm:flex-row sm:items-center",children:[y.jsxs("div",{children:["© ",new Date().getFullYear()," Wyecliff. All rights reserved."]}),y.jsxs("div",{className:"flex gap-6",children:[y.jsx(ot,{to:"/privacy",className:"transition hover:text-foreground",children:"Privacy"}),y.jsx("button",{type:"button",onClick:BK,className:"transition hover:text-foreground",children:"Cookie settings"}),y.jsx(ot,{to:"/terms",className:"transition hover:text-foreground",children:"Terms"}),y.jsx("a",{href:"mailto:[email protected]",className:"transition hover:text-foreground",children:"[email protected]"})]})]})]})})}const aN="[email protected]",GK=`mailto:${aN}`,KK=["Technology vendor (ISV / SaaS)","Implementation / consulting partner","Referral / alliance partner","MSP or IT services","Other"],YK=nd({name:dn().trim().min(1,"Required").max(100),company:dn().trim().min(1,"Required").max(120),email:dn().trim().email("Enter a valid email").max(255),phone:dn().trim().min(7,"Enter a valid phone").max(30).regex(/^[+\d\s().-]+$/,"Enter a valid phone"),partnerType:dn().min(1,"Pick one"),website:dn().trim().max(255).optional().or(TO("")),message:dn().trim().min(10,"Tell us a bit more").max(1500)}),ZK="mb-2 block text-sm font-medium tracking-normal text-paper";function XK({heading:e}){const[t,n]=E.useState(!1),[s,i]=E.useState(null),{register:o,handleSubmit:l,formState:{errors:u,isSubmitting:f},reset:h}=Ip({resolver:Pp(YK),defaultValues:{partnerType:"",website:"",message:""}}),p=async m=>{i(null);const{data:b,error:w}=await es.functions.invoke("submit-partner-application",{body:m});if(w||b?.error){i("Something went wrong submitting your application. Please email [email protected] directly.");return}n(!0),h()};return y.jsxs("div",{className:"rounded-3xl border border-white/[0.06] bg-[#1f1e1d] p-6 sm:p-10",children:[e&&!t&&y.jsx("div",{className:"mb-8 text-center",children:e}),t?y.jsxs("div",{className:"flex flex-col items-start gap-4 py-2",children:[y.jsx("div",{className:"grid h-12 w-12 place-items-center rounded-full bg-[#7f57da]/15 text-[#a585ec]",children:y.jsx(Ep,{className:"h-5 w-5"})}),y.jsx("h3",{className:"font-display text-3xl leading-tight text-foreground",children:"Thanks. We'll review your application."}),y.jsxs("p",{className:"max-w-md text-sm leading-relaxed text-foreground
202/65",children:["Someone on our team will follow up within two business days if there's a fit. If you have questions, email"," ",y.jsx("a",{href:GK,className:"text-purple-300 transition hover:text-purple-200",children:aN}),"."]}),y.jsx("button",{type:"button",onClick:()=>n(!1),className:"mt-1 text-sm text-foreground/55 transition hover:text-foreground",children:"← Send another"})]}):y.jsxs("form",{onSubmit:l(p),className:"space-y-5",noValidate:!0,children:[y.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[y.jsx(ja,{label:"Name",error:u.name?.message,children:y.jsx("input",{...o("name"),className:"partner-input",autoComplete:"name"})}),y.jsx(ja,{label:"Company",error:u.company?.message,children:y.jsx("input",{...o("company"),className:"partner-input",autoComplete:"organization"})}),y.jsx(ja,{label:"Work email",error:u.email?.message,children:y.jsx("input",{...o("email"),className:"partner-input",type:"email",autoComplete:"email"})}),y.jsx(ja,{label:"Phone",error:u.phone?.message,children:y.jsx("input",{...o("phone"),className:"partner-input",type:"tel",autoComplete:"tel"})})]}),y.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[y.jsx(ja,{label:"Partnership type",error:u.partnerType?.message,children:y.jsxs("select",{...o("partnerType"),className:"partner-input",children:[y.jsx("option",{value:"",disabled:!0,children:"Select one"}),KK.map(m=>y.jsx("option",{value:m,children:m},m))]})}),y.jsx(ja,{label:"Website (optional)",error:u.website?.message,children:y.jsx("input",{...o("website"),className:"partner-input",type:"url",placeholder:"https://",autoComplete:"url"})})]}),y.jsx(ja,{label:"How do you want to partner?",error:u.message?.message,children:y.jsx("textarea",{...o("message"),rows:4,className:"partner-input resize-none",placeholder:"Your stack, your clients, and what a partnership would look like."})}),y.jsx("button",{type:"submit",disabled:f,className:"group inline-flex w-full items-center justify-center gap-2 rounded-full bg-[#7f57da] px-6 py-4 text-sm font-medium text-white transition hover:bg-[#8a63e3] disabled:opacity-60 sm:w-auto",children:f?y.jsxs(y.Fragment,{children:[y.jsx(Ja,{className:"h-4 w-4 animate-spin"}),"Sending…"]}):y.jsxs(y.Fragment,{children:["Submit application",y.jsx(Pn,{className:"h-4 w-4 transition group-hover:translate-x-0.5"})]})}),s&&y.jsx("p",{className:"text-sm text-destructive",children:s}),y.jsxs("p",{className:"text-xs text-foreground/55",children:["We review every application. By submitting you agree to our"," ",y.jsx(ot,{to:"/privacy",className:"underline underline-offset-2 hover:text-foreground",children:"privacy policy"}),"."]})]})]})}function ja({label:e,error:t,children:n}){return y.jsxs("label",{className:"block",children:[y.jsx("span",{className:ZK,children:e}),n,t&&y.jsx("span",{className:"mt-1.5 block text-xs text-destructive",children:t})]})}const Vb="open-partner-modal";function Ane(){typeof window<"u"&&window.dispatchEvent(new Event(Vb))}function oN(){return y.jsx(RO,{})}function JK(){const[e,t]=E.useState(!1);return E.useEffect(()=>{const n=()=>t(!0);return window.addEventListener(Vb,n),()=>window.removeEventListener(Vb,n)},[]),y.jsx(Ku,{open:e,onOpenChange:t,children:y.jsxs(Yu,{children:[y.jsx(Zu,{className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),y.jsxs(Xu,{className:"fixed left-1/2 top-1/2 z-50 max-h-[calc(100dvh-2rem)] w-[calc(100%-2rem)] max-w-2xl -translate-x-1/2 -translate-y-1/2 overflow-y-auto overscroll-contain 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",children:[y.jsx(Ju,{className:"sr-only",children:"Join the Wyecliff Partner Network"}),y.jsx(XK,{heading:y.jsxs("h2",{className:"font-display text-3xl leading-[1.05] sm:text-4xl",children:["Join the Wyecliff ",y.jsx("em",{className:"text-purple-300",children:"Partner Network"})]})}
202),y.jsxs(Qu,{className:"absolute right-4 top-4 rounded-full p-2 text-foreground/55 transition hover:bg-white/[0.06] hover:text-foreground",children:[y.jsx(Qr,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]}),y.jsx(oN,{})]})]})})}const QK="General application",eY=[{dept:"Engineering",title:"Senior AI Engineer",location:"Denver, CO / Remote-US",summary:"Build custom apps, agents, and production AI systems wired into client ERPs, CRMs, and cloud stacks.",description:`You ship the software behind Wyecliff engagements: custom web and mobile apps, AI agents, integrations, and the eval and guardrail layers that keep them safe in production.
203
204You work inside client environments across Microsoft, Anthropic, AWS, Google Cloud, and Azure. Most of your time is hands-on with code, architecture, and the people who will use what you build on Monday morning.`,focusAreas:["Custom apps and AI agents","Production deployments and eval suites","ERP, CRM, and cloud integrations","Microsoft, Anthropic, and multi-cloud stacks"]},{dept:"Delivery",title:"AI Solutions Architect",location:"Denver, CO / Remote-US",summary:"Scope engagements, design architecture, and lead clients from use case through go-live.",description:`You sit at the center of Wyecliff delivery: scoping use cases, white-boarding architecture, and keeping builds aligned with what the business actually needs.
205
206You embed with client teams across professional services and operating companies. You translate operator pain into technical plans, partner with engineers on the build, and stay through rollout and adoption.`,focusAreas:["Engagement scoping and solution design","Client workshops and architecture sessions","Go-live planning and adoption","Cross-industry delivery leadership"]},{dept:"GTM",title:"Operator-shaped BD",location:"Denver, CO",summary:"Open conversations with businesses that need AI to work in production, not in a pilot folder.",description:`You help the right companies find Wyecliff: operators and leaders who need AI inside real workflows, not another strategy deck.
207
208You understand how distribution, manufacturing, professional services, and construction businesses run. You open qualified conversations, bring technical partners in when it matters, and build relationships that turn into engagements where we can make a real impact.`,focusAreas:["Outbound and referral-driven pipeline","Operator and executive relationships","Professional services and operating companies","Partnership with delivery and engineering"]}],tY=[...eY.map(e=>e.title),QK];function NE(e,[t,n]){return Math.min(n,Math.max(t,e))}function nY(e){const t=e+"CollectionProvider",[n,s]=Tp(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=S=>{const{scope:_,children:k}=S,C=E.useRef(null),R=E.useRef(new Map).current;return y.jsx(i,{scope:_,itemMap:R,collectionRef:C,children:k})};l.displayName=t;const u=e+"CollectionSlot",f=ku(u),h=E.forwardRef((S,_)=>{const{scope:k,children:C}=S,R=o(u,k),O=Zt(_,R.collectionRef);return y.jsx(f,{ref:O,children:C})});h.displayName=u;const p=e+"CollectionItemSlot",m="data-radix-collection-item",b=ku(p),w=E.forwardRef((S,_)=>{const{scope:k,children:C,...R}
208=S,O=E.useRef(null),N=Zt(_,O),P=o(p,k);return E.useEffect(()=>(P.itemMap.set(O,{ref:O,...R}),()=>{P.itemMap.delete(O)})),y.jsx(b,{[m]:"",ref:N,children:C})});w.displayName=p;function x(S){const _=o(e+"CollectionConsumer",S);return E.useCallback(()=>{const C=_.collectionRef.current;if(!C)return[];const R=Array.from(C.querySelectorAll(`[${m}]`));return Array.from(_.itemMap.values()).sort((P,D)=>R.indexOf(P.ref.current)-R.indexOf(D.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:l,Slot:h,ItemSlot:w},x,s]}var sY=E.createContext(void 0);function rY(e){const t=E.useContext(sY);return e||t||"ltr"}const iY=["top","right","bottom","left"],Ji=Math.min,hs=Math.max,hp=Math.round,nh=Math.floor,yr=e=>({x:e,y:e}),aY={left:"right",right:"left",bottom:"top",top:"bottom"};function $b(e,t,n){return hs(e,Ji(t,n))}function ti(e,t){return typeof e=="function"?e(t):e}function ni(e){return e.split("-")[0]}function Gl(e){return e.split("-")[1]}function u0(e){return e==="x"?"y":"x"}function d0(e){return e==="y"?"height":"width"}function pr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function f0(e){return u0(pr(e))}function oY(e,t,n){n===void 0&&(n=!1);const s=Gl(e),i=f0(e),o=d0(i);let l=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=pp(l)),[l,pp(l)]}function lY(e){const t=pp(e);return[Fb(e),t,Fb(t)]}function Fb(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const IE=["left","right"],PE=["right","left"],cY=["top","bottom"],uY=["bottom","top"];function dY(e,t,n){switch(e){case"top":case"bottom":return n?t?PE:IE:t?IE:PE;case"left":case"right":return t?cY:uY;default:return[]}}function fY(e,t,n,s){const i=Gl(e);let o=dY(ni(e),n==="start",s);return i&&(o=o.map(l=>l+"-"+i),t&&(o=o.concat(o.map(Fb)))),o}function pp(e){const t=ni(e);return aY[t]+e.slice(t.length)}function hY(e){return{top:0,right:0,bottom:0,left:0,...e}}function lN(e){return typeof e!="number"?hY(e):{top:e,right:e,bottom:e,left:e}}function mp(e){const{x:t,y:n,width:s,height:i}=e;return{width:s,height:i,top:n,left:t,right:t+s,bottom:n+i,x:t,y:n}}function ME(e,t,n){let{reference:s,floating:i}=e;const o=pr(t),l=f0(t),u=d0(l),f=ni(t),h=o==="y",p=s.x+s.width/2-i.width/2,m=s.y+s.height/2-i.height/2,b=s[u]/2-i[u]/2;let w;switch(f){case"top":w={x:p,y:s.y-i.height};break;case"bottom":w={x:p,y:s.y+s.height};break;case"right":w={x:s.x+s.width,y:m};break;case"left":w={x:s.x-i.width,y:m};break;default:w={x:s.x,y:s.y}}switch(Gl(t)){case"start":w[l]-=b*(n&&h?-1:1);break;case"end":w[l]+=b*(n&&h?-1:1);break}return w}async function pY(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:o,rects:l,elements:u,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=ti(t,e),x=lN(w),_=u[b?m==="floating"?"reference":"floating":m],k=mp(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:h,rootBoundary:p,strategy:f})),C=m==="floating"?{x:s,y:i,width:l.floating.width,height:l.floating.height}:l.reference,R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),O=await(o.isElement==null?void 0:o.isElement(R))?await(o.getScale==null?void 0:o.getScale(R))||{x:1,y:1}:{x:1,y:1},N=mp(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:C,offsetParent:R,strategy:f}):C);return{top:(k.top-N.top+x.top)/O.y,bottom:(N.bottom-k.bottom+x.bottom)/O.y,left:(k.left-N.left+x.left)/O.x,right:(N.right-k.right+x.right)/O.x}}const mY=50,gY=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,u=l.detectOverflow?l:{...l,detectOverflow:pY},f=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:m}=ME(h,s,f),b=s,w=0;const x={};for(let S=0;S<o.length;S++){const _=o[S];if(!_)continue;const{name:k,fn:C}=_,{x:R,y:O,data:N,reset:P}=await C({x:p,y:m,initialPlacement:s,placement:b,strategy:i,middlewareData:x,rects:h,platform:u,elements:{reference:e,floating:t}});p=R??p,m=O??m,x[k]={...x[k],...N},P&&w<mY&&(w++,typeof P=="object"&&(P.placement&&(b=P.placement),P.rects&&(h=P.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}
vendor: 4,816 bytes, line 208
208):P.rects),{x:p,y:m}=ME(h,b,f)),S=-1)}return{x:p,y:m,placement:b,strategy:i,middlewareData:x}},yY=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:o,platform:l,elements:u,middlewareData:f}=t,{element:h,padding:p=0}=ti(e,t)||{};if(h==null)return{};const m=lN(p),b={x:n,y:s},w=f0(i),x=d0(w),S=await l.getDimensions(h),_=w==="y",k=_?"top":"left",C=_?"bottom":"right",R=_?"clientHeight":"clientWidth",O=o.reference[x]+o.reference[w]-b[w]-o.floating[x],N=b[w]-o.reference[w],P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let D=P?P[R]:0;(!D||!await(l.isElement==null?void 0:l.isElement(P)))&&(D=u.floating[R]||o.floating[x]);const M=O/2-N/2,$=D/2-S[x]/2-1,K=Ji(m[k],$),Y=Ji(m[C],$),X=K,ae=D-S[x]-Y,oe=D/2-S[x]/2+M,be=$b(X,oe,ae),V=!f.arrow&&Gl(i)!=null&&oe!==be&&o.reference[x]/2-(oe<X?K:Y)-S[x]/2<0,Q=V?oe<X?oe-X:oe-ae:0;return{[w]:b[w]+Q,data:{[w]:be,centerOffset:oe-be-Q,...V&&{alignmentOffset:Q}},reset:V}}}),vY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:i,middlewareData:o,rects:l,initialPlacement:u,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,..._}=ti(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const k=ni(i),C=pr(u),R=ni(u)===u,O=await(f.isRTL==null?void 0:f.isRTL(h.floating)),N=b||(R||!S?[pp(u)]:lY(u)),P=x!=="none";!b&&P&&N.push(...fY(u,S,x,O));const D=[u,...N],M=await f.detectOverflow(t,_),$=[];let K=((s=o.flip)==null?void 0:s.overflows)||[];if(p&&$.push(M[k]),m){const oe=oY(i,l,O);$.push(M[oe[0]],M[oe[1]])}if(K=[...K,{placement:i,overflows:$}],!$.every(oe=>oe<=0)){var Y,X;const oe=(((Y=o.flip)==null?void 0:Y.index)||0)+1,be=D[oe];if(be&&(!(m==="alignment"?C!==pr(be):!1)||K.every(te=>pr(te.placement)===C?te.overflows[0]>0:!0)))return{data:{index:oe,overflows:K},reset:{placement:be}};let V=(X=K.filter(Q=>Q.overflows[0]<=0).sort((Q,te)=>Q.overflows[1]-te.overflows[1])[0])==null?void 0:X.placement;if(!V)switch(w){case"bestFit":{var ae;const Q=(ae=K.filter(te=>{if(P){const pe=pr(te.placement);return pe===C||pe==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(pe=>pe>0).reduce((pe,ie)=>pe+ie,0)]).sort((te,pe)=>te[1]-pe[1])[0])==null?void 0:ae[0];Q&&(V=Q);break}case"initialPlacement":V=u;break}if(i!==V)return{reset:{placement:V}}}return{}}}};function DE(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function LE(e){return iY.some(t=>e[t]>=0)}const bY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:i="referenceHidden",...o}=ti(e,t);switch(i){case"referenceHidden":{const l=await s.detectOverflow(t,{...o,elementContext:"reference"}),u=DE(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:LE(u)}}}case"escaped":{const l=await s.detectOverflow(t,{...o,altBoundary:!0}),u=DE(l,n.floating);return{data:{escapedOffsets:u,escaped:LE(u)}}}default:return{}}}}},cN=new Set(["left","top"]);async function wY(e,t){const{placement:n,platform:s,elements:i}=e,o=await(s.isRTL==null?void 0:s.isRTL(i.floating)),l=ni(n),u=Gl(n),f=pr(n)==="y",h=cN.has(l)?-1:1,p=o&&f?-1:1,m=ti(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof x=="number"&&(w=u==="end"?x*-1:x),f?{x:w*p,y:b*h}:{x:b*h,y:w*p}}const xY=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:i,y:o,placement:l,middlewareData:u}=t,f=await wY(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(s=u.arrow)!=null&&s.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:l}}}}},SY=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i,platform:o}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:k=>{let{x:C,y:R}=k;return{x:C,y:R}}},...h}=ti(e,t),p={x:n,y:s},m=await o.detectOverflow(t,h),b=pr(ni(i)),w=u0(b);let x=p[w],S=p[b];if(l){const k=w==="y"?"top":"left",C=w==="y"?"bottom":"right",R=x+m[k],O=x-m[C];x=$b(R,x,O)}if(u){const k=b==="y"?"top":"left",C=b==="y"?"bottom":"right",R=S+m[k],O=S-m[C];S=$b(R,S,O)}const _=f.fn({...t,[w]:x,[b]:S});return{..._,data:{x:_.x-n,y:_.y-s,enabled:{[w]:l,[b]:u}}}}}},_Y=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:i,rects:o,middlewareData:l}=t,{offset:u=0,mainAxis:f=!0,crossAxis:h=!0}=ti(e,t),p={x:n,y:s},m=pr(i),b=u0(m);let w=p[b],x=p[m];const S=ti(u,t),_=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(f){const R=b==="y"?"height":"width",O=o.reference[b]-o.floating[R]+_.mainAxis,N=o.reference[b]+o.reference[R]-_.mainAxis;w<O?w=O:w>N&&(w=N)}
208if(h){var k,C;const R=b==="y"?"width":"height",O=cN.has(ni(i)),N=o.reference[m]-o.floating[R]+(O&&((k=l.offset)==null?void 0:k[m])||0)+(O?0:_.crossAxis),P=o.reference[m]+o.reference[R]+(O?0:((C=l.offset)==null?void 0:C[m])||0)-(O?_.crossAxis:0);x<N?x=N:x>P&&(x=P)}return{[b]:w,[m]:x}}}},kY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:i,rects:o,platform:l,elements:u}=t,{apply:f=()=>{},...h}=ti(e,t),p=await l.detectOverflow(t,h),m=ni(i),b=Gl(i),w=pr(i)==="y",{width:x,height:S}=o.floating;let _,k;m==="top"||m==="bottom"?(_=m,k=b===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(k=m,_=b==="end"?"top":"bottom");const C=S-p.top-p.bottom,R=x-p.left-p.right,O=Ji(S-p[_],C),N=Ji(x-p[k],R),P=!t.middlewareData.shift;let D=O,M=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=R),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(D=C),P&&!b){const K=hs(p.left,0),Y=hs(p.right,0),X=hs(p.top,0),ae=hs(p.bottom,0);w?M=x-2*(K!==0||Y!==0?K+Y:hs(p.left,p.right)):D=S-2*(X!==0||ae!==0?X+ae:hs(p.top,p.bottom))}await f({...t,availableWidth:M,availableHeight:D});const $=await l.getDimensions(u.floating);return x!==$.width||S!==$.height?{reset:{rects:!0}}:{}}}};function Fp(){return typeof window<"u"}function Kl(e){return uN(e)?(e.nodeName||"").toLowerCase():"#document"}function gs(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xr(e){var t;return(t=(uN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function uN(e){return Fp()?e instanceof Node||e instanceof gs(e).Node:!1}function Qs(e){return Fp()?e instanceof Element||e instanceof gs(e).Element:!1}function ii(e){return Fp()?e instanceof HTMLElement||e instanceof gs(e).HTMLElement:!1}function BE(e){return!Fp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gs(e).ShadowRoot}function cd(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=er(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&i!=="inline"&&i!=="contents"}function AY(e){return/^(table|td|th)$/.test(Kl(e))}function Hp(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const CY=/transform|translate|scale|rotate|perspective|filter/,EY=/paint|layout|strict|content/,Na=e=>!!e&&e!=="none";let pv;function h0(e){const t=Qs(e)?er(e):e;return Na(t.transform)||Na(t.translate)||Na(t.scale)||Na(t.rotate)||Na(t.perspective)||!p0()&&(Na(t.backdropFilter)||Na(t.filter))||CY.test(t.willChange||"")||EY.test(t.contain||"")}function TY(e){let t=Qi(e);for(;ii(t)&&!Vl(t);){if(h0(t))return t;if(Hp(t))return null;t=Qi(t)}return null}function p0(){return pv==null&&(pv=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),pv}function Vl(e){return/^(html|body|#document)$/.test(Kl(e))}function er(e){return gs(e).getComputedStyle(e)}function qp(e){return Qs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qi(e){if(Kl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||BE(e)&&e.host||xr(e);return BE(t)?t.host:t}function dN(e){const t=Qi(e);return Vl(t)?e.ownerDocument?e.ownerDocument.body:e.body:ii(t)&&cd(t)?t:dN(t)}function Vu(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=dN(e),o=i===((s=e.ownerDocument)==null?void 0:s.body),l=gs(i);if(o){const u=Hb(l);return t.concat(l,l.visualViewport||[],cd(i)?i:[],u&&n?Vu(u):[])}else return t.concat(i,Vu(i,[],n))}function Hb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fN(e){const t=er(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=ii(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:s,u=hp(n)!==o||hp(s)!==l;return u&&(n=o,s=l),{width:n,height:s,$:u}}function m0(e){return Qs(e)?e:e.contextElement}function Pl(e){const t=m0(e);if(!ii(t))return yr(1);const n=t.getBoundingClientRect(),{width:s,height:i,$:o}=fN(t);let l=(o?hp(n.width):n.width)/s,u=(o?hp(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const RY=yr(0);function hN(e){const t=gs(e);
vendor: 4,357 bytes, line 208
208return!p0()||!t.visualViewport?RY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function OY(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==gs(e)?!1:t}function io(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=m0(e);let l=yr(1);t&&(s?Qs(s)&&(l=Pl(s)):l=Pl(e));const u=OY(o,n,s)?hN(o):yr(0);let f=(i.left+u.x)/l.x,h=(i.top+u.y)/l.y,p=i.width/l.x,m=i.height/l.y;if(o){const b=gs(o),w=s&&Qs(s)?gs(s):s;let x=b,S=Hb(x);for(;S&&s&&w!==x;){const _=Pl(S),k=S.getBoundingClientRect(),C=er(S),R=k.left+(S.clientLeft+parseFloat(C.paddingLeft))*_.x,O=k.top+(S.clientTop+parseFloat(C.paddingTop))*_.y;f*=_.x,h*=_.y,p*=_.x,m*=_.y,f+=R,h+=O,x=gs(S),S=Hb(x)}}return mp({width:p,height:m,x:f,y:h})}function Wp(e,t){const n=qp(e).scrollLeft;return t?t.left+n:io(xr(e)).left+n}function pN(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Wp(e,n),i=n.top+t.scrollTop;return{x:s,y:i}}function jY(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const o=i==="fixed",l=xr(s),u=t?Hp(t.floating):!1;if(s===l||u&&o)return n;let f={scrollLeft:0,scrollTop:0},h=yr(1);const p=yr(0),m=ii(s);if((m||!m&&!o)&&((Kl(s)!=="body"||cd(l))&&(f=qp(s)),m)){const w=io(s);h=Pl(s),p.x=w.x+s.clientLeft,p.y=w.y+s.clientTop}const b=l&&!m&&!o?pN(l,f):yr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+p.x+b.x,y:n.y*h.y-f.scrollTop*h.y+p.y+b.y}}function NY(e){return Array.from(e.getClientRects())}function IY(e){const t=xr(e),n=qp(e),s=e.ownerDocument.body,i=hs(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=hs(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let l=-n.scrollLeft+Wp(e);const u=-n.scrollTop;return er(s).direction==="rtl"&&(l+=hs(t.clientWidth,s.clientWidth)-i),{width:i,height:o,x:l,y:u}}const UE=25;function PY(e,t){const n=gs(e),s=xr(e),i=n.visualViewport;let o=s.clientWidth,l=s.clientHeight,u=0,f=0;if(i){o=i.width,l=i.height;const p=p0();(!p||p&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}const h=Wp(s);if(h<=0){const p=s.ownerDocument,m=p.body,b=getComputedStyle(m),w=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,x=Math.abs(s.clientWidth-m.clientWidth-w);x<=UE&&(o-=x)}else h<=UE&&(o+=h);return{width:o,height:l,x:u,y:f}}function MY(e,t){const n=io(e,!0,t==="fixed"),s=n.top+e.clientTop,i=n.left+e.clientLeft,o=ii(e)?Pl(e):yr(1),l=e.clientWidth*o.x,u=e.clientHeight*o.y,f=i*o.x,h=s*o.y;return{width:l,height:u,x:f,y:h}}function zE(e,t,n){let s;if(t==="viewport")s=PY(e,n);else if(t==="document")s=IY(xr(e));else if(Qs(t))s=MY(t,n);else{const i=hN(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return mp(s)}function mN(e,t){const n=Qi(e);return n===t||!Qs(n)||Vl(n)?!1:er(n).position==="fixed"||mN(n,t)}function DY(e,t){const n=t.get(e);if(n)return n;let s=Vu(e,[],!1).filter(u=>Qs(u)&&Kl(u)!=="body"),i=null;const o=er(e).position==="fixed";let l=o?Qi(e):e;for(;Qs(l)&&!Vl(l);){const u=er(l),f=h0(l);!f&&u.position==="fixed"&&(i=null),(o?!f&&!i:!f&&u.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||cd(l)&&!f&&mN(e,l))?s=s.filter(p=>p!==l):i=u,l=Qi(l)}return t.set(e,s),s}function LY(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const l=[...n==="clippingAncestors"?Hp(t)?[]:DY(t,this._c):[].concat(n),s],u=zE(t,l[0],i);let f=u.top,h=u.right,p=u.bottom,m=u.left;for(let b=1;b<l.length;b++){const w=zE(t,l[b],i);f=hs(w.top,f),h=Ji(w.right,h),p=Ji(w.bottom,p),m=hs(w.left,m)}return{width:h-m,height:p-f,x:m,y:f}}function BY(e){const{width:t,height:n}=fN(e);return{width:t,height:n}}function UY(e,t,n){const s=ii(t),i=xr(t),o=n==="fixed",l=io(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const f=yr(0);function h(){f.x=Wp(i)}if(s||!s&&!o)if((Kl(t)!=="body"||cd(i))&&(u=qp(t)),s){const w=io(t,!0,o,t);f.x=w.x+t.clientLeft,f.y=w.y+t.clientTop}else i&&h();o&&!s&&i&&h();const p=i&&!s&&!o?pN(i,u):yr(0),m=l.left+u.scrollLeft-f.x-p.x,b=l.top+u.scrollTop-f.y-p.y;return{x:m,y:b,width:l.width,height:l.height}}function mv(e){return er(e).position==="static"}function VE(e,t){if(!ii(e)||er(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xr(e)===n&&(n=n.ownerDocument.body),n}function gN(e,t){const n=gs(e);if(Hp(e))return n;if(!ii(e)){let i=Qi(e);for(;i&&!Vl(i);){if(Qs(i)&&!mv(i))return i;i=Qi(i)}return n}let s=VE(e,t);for(;s&&AY(s)&&mv(s);)s=VE(s,t);
vendor: 4,265 bytes, line 208
208return s&&Vl(s)&&mv(s)&&!h0(s)?n:s||TY(e)||n}const zY=async function(e){const t=this.getOffsetParent||gN,n=this.getDimensions,s=await n(e.floating);return{reference:UY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function VY(e){return er(e).direction==="rtl"}const $Y={convertOffsetParentRelativeRectToViewportRelativeRect:jY,getDocumentElement:xr,getClippingRect:LY,getOffsetParent:gN,getElementRects:zY,getClientRects:NY,getDimensions:BY,getScale:Pl,isElement:Qs,isRTL:VY};function yN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function FY(e,t){let n=null,s;const i=xr(e);function o(){var u;clearTimeout(s),(u=n)==null||u.disconnect(),n=null}function l(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),o();const h=e.getBoundingClientRect(),{left:p,top:m,width:b,height:w}=h;if(u||t(),!b||!w)return;const x=nh(m),S=nh(i.clientWidth-(p+b)),_=nh(i.clientHeight-(m+w)),k=nh(p),R={rootMargin:-x+"px "+-S+"px "+-_+"px "+-k+"px",threshold:hs(0,Ji(1,f))||1};let O=!0;function N(P){const D=P[0].intersectionRatio;if(D!==f){if(!O)return l();D?l(!1,D):s=setTimeout(()=>{l(!1,1e-7)},1e3)}D===1&&!yN(h,e.getBoundingClientRect())&&l(),O=!1}try{n=new IntersectionObserver(N,{...R,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,R)}n.observe(e)}return l(!0),o}function HY(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=s,h=m0(e),p=i||o?[...h?Vu(h):[],...t?Vu(t):[]]:[];p.forEach(k=>{i&&k.addEventListener("scroll",n,{passive:!0}),o&&k.addEventListener("resize",n)});const m=h&&u?FY(h,n):null;let b=-1,w=null;l&&(w=new ResizeObserver(k=>{let[C]=k;C&&C.target===h&&w&&t&&(w.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=w)==null||R.observe(t)})),n()}),h&&!f&&w.observe(h),t&&w.observe(t));let x,S=f?io(e):null;f&&_();function _(){const k=io(e);S&&!yN(S,k)&&n(),S=k,x=requestAnimationFrame(_)}return n(),()=>{var k;p.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),m?.(),(k=w)==null||k.disconnect(),w=null,f&&cancelAnimationFrame(x)}}const qY=xY,WY=SY,GY=vY,KY=kY,YY=bY,$E=yY,ZY=_Y,XY=(e,t,n)=>{const s=new Map,i={platform:$Y,...n},o={...i.platform,_c:s};return gY(e,t,{...i,platform:o})};var JY=typeof document<"u",QY=function(){},Sh=JY?E.useLayoutEffect:QY;function gp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!gp(e[s],t[s]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,i[s]))return!1;for(s=n;s--!==0;){const o=i[s];if(!(o==="_owner"&&e.$$typeof)&&!gp(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function vN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function FE(e,t){const n=vN(e);return Math.round(t*n)/n}function gv(e){const t=E.useRef(e);return Sh(()=>{t.current=e}),t}function eZ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:i,elements:{reference:o,floating:l}={},transform:u=!0,whileElementsMounted:f,open:h}=e,[p,m]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=E.useState(s);gp(b,s)||w(s);const[x,S]=E.useState(null),[_,k]=E.useState(null),C=E.useCallback(te=>{te!==P.current&&(P.current=te,S(te))},[]),R=E.useCallback(te=>{te!==D.current&&(D.current=te,k(te))},[]),O=o||x,N=l||_,P=E.useRef(null),D=E.useRef(null),M=E.useRef(p),$=f!=null,K=gv(f),Y=gv(i),X=gv(h),ae=E.useCallback(()=>{if(!P.current||!D.current)return;const te={placement:t,strategy:n,middleware:b};Y.current&&(te.platform=Y.current),XY(P.current,D.current,te).then(pe=>{const ie={...pe,isPositioned:X.current!==!1};oe.current&&!gp(M.current,ie)&&(M.current=ie,co.flushSync(()=>{m(ie)}))})},[b,t,n,Y,X]);Sh(()=>{h===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,m(te=>({...te,isPositioned:!1})))},[h]);const oe=E.useRef(!1);Sh(()=>(oe.current=!0,()=>{oe.current=!1}),[]),Sh(()=>
208{if(O&&(P.current=O),N&&(D.current=N),O&&N){if(K.current)return K.current(O,N,ae);ae()}},[O,N,ae,K,$]);const be=E.useMemo(()=>({reference:P,floating:D,setReference:C,setFloating:R}),[C,R]),V=E.useMemo(()=>({reference:O,floating:N}),[O,N]),Q=E.useMemo(()=>{const te={position:n,left:0,top:0};if(!V.floating)return te;const pe=FE(V.floating,p.x),ie=FE(V.floating,p.y);return u?{...te,transform:"translate("+pe+"px, "+ie+"px)",...vN(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:pe,top:ie}},[n,u,V.floating,p.x,p.y]);return E.useMemo(()=>({...p,update:ae,refs:be,elements:V,floatingStyles:Q}),[p,ae,be,V,Q])}const tZ=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:i}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?$E({element:s.current,padding:i}).fn(n):{}:s?$E({element:s,padding:i}).fn(n):{}}}},nZ=(e,t)=>{const n=qY(e);return{name:n.name,fn:n.fn,options:[e,t]}},sZ=(e,t)=>{const n=WY(e);return{name:n.name,fn:n.fn,options:[e,t]}},rZ=(e,t)=>({fn:ZY(e).fn,options:[e,t]}),iZ=(e,t)=>{const n=GY(e);return{name:n.name,fn:n.fn,options:[e,t]}},aZ=(e,t)=>{const n=KY(e);return{name:n.name,fn:n.fn,options:[e,t]}},oZ=(e,t)=>{const n=YY(e);return{name:n.name,fn:n.fn,options:[e,t]}},lZ=(e,t)=>{const n=tZ(e);return{name:n.name,fn:n.fn,options:[e,t]}};var cZ="Arrow",bN=E.forwardRef((e,t)=>{const{children:n,width:s=10,height:i=5,...o}=e;return y.jsx(jt.svg,{...o,ref:t,width:s,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});bN.displayName=cZ;var uZ=bN;function dZ(e){const[t,n]=E.useState(void 0);return bn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let l,u;if("borderBoxSize"in o){const f=o.borderBoxSize,h=Array.isArray(f)?f[0]:f;l=h.inlineSize,u=h.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var g0="Popper",[wN,xN]=Tp(g0),[fZ,SN]=wN(g0),_N=e=>{const{__scopePopper:t,children:n}=e,[s,i]=E.useState(null),[o,l]=E.useState(void 0);return y.jsx(fZ,{scope:t,anchor:s,onAnchorChange:i,placementState:o,setPlacementState:l,children:n})};_N.displayName=g0;var kN="PopperAnchor",AN=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...i}=e,o=SN(kN,n),l=E.useRef(null),u=o.onAnchorChange,f=E.useCallback(x=>{l.current=x,x&&u(x)},[u]),h=Zt(t,f),p=E.useRef(null);E.useEffect(()=>{if(!s)return;const x=p.current;p.current=s.current,x!==p.current&&u(p.current)});const m=o.placementState&&v0(o.placementState),b=m?.[0],w=m?.[1];return s?null:y.jsx(jt.div,{"data-radix-popper-side":b,"data-radix-popper-align":w,...i,ref:h})});AN.displayName=kN;var y0="PopperContent",[hZ,pZ]=wN(y0),CN=E.forwardRef((e,t)=>{const{__scopePopper:n,side:s="bottom",sideOffset:i=0,align:o="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:x,...S}=e,_=SN(y0,n),[k,C]=E.useState(null),R=Zt(t,C),[O,N]=E.useState(null),P=dZ(O),D=P?.width??0,M=P?.height??0,$=s+(o!=="center"?"-"+o:""),K=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Y=Array.isArray(h)?h:[h],X=Y.length>0,ae={padding:K,boundary:Y.filter(gZ),altBoundary:X},{refs:oe,floatingStyles:be,placement:V,isPositioned:Q,middlewareData:te}=eZ({strategy:"fixed",placement:$,whileElementsMounted:(...Me)=>HY(...Me,{animationFrame:w==="always"}),elements:{reference:_.anchor},middleware:[nZ({mainAxis:i+M,alignmentAxis:l}),f&&sZ({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?rZ():void 0,...ae}),f&&iZ({...ae}),aZ({...ae,apply:({elements:Me,rects:Ee,availableWidth:Xe,availableHeight:Ye})=>{const{width:Qe,height:Wt}=Ee.reference,ht=Me.floating.style;ht.setProperty("--radix-popper-available-width",`${Xe}px`),ht.setProperty("--radix-popper-available-height",`${Ye}px`),ht.setProperty("--radix-popper-anchor-width",`${Qe}px`),ht.setProperty("--radix-popper-anchor-height",`${Wt}px`)}}),O&&lZ({element:O,padding:u}),yZ({arrowWidth:D,arrowHeight:M}),b&&oZ({strategy:"referenceHidden",...ae,boundary:X?ae.boundary:void 0})]}),pe=_.setPlacementState;bn(()=>(pe(V),()=>{pe(void 0)}),[V,pe]);const[ie,B]=v0(V),ee=Wi(x);bn(()=>{Q&&ee?.()},[Q,ee]);const de=te.arrow?.x,he=te.arrow?.y,ge=te.arrow?.centerOffset!==0,[_e,ye]=E.useState();return bn(()=>{k&&ye(window.getComputedStyle(k).zIndex)},[k]),y.jsx("div",{ref:oe.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:Q?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[te.transformOrigin?.x,te.transformOrigin?.y].join(" "),...te.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(hZ,{scope:n,placedSide:ie,placedAlign:B,onArrowChange:N,arrowX:de,arrowY:he,shouldHideArrow:ge,children:y.jsx(jt.div,{"data-side":ie,"data-align":B,...S,ref:R,style:{...S.style,animation:Q?void 0:"none"}})})})});CN.displayName=y0;var EN="PopperArrow",mZ={top:"bottom",right:"left",bottom:"top",left:"r
208ight"},TN=E.forwardRef(function(t,n){const{__scopePopper:s,...i}=t,o=pZ(EN,s),l=mZ[o.placedSide];return y.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:y.jsx(uZ,{...i,ref:n,style:{...i.style,display:"block"}})})});TN.displayName=EN;function gZ(e){return e!==null}var yZ=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:s,middlewareData:i}=t,l=i.arrow?.centerOffset!==0,u=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[h,p]=v0(n),m={start:"0%",center:"50%",end:"100%"}[p],b=(i.arrow?.x??0)+u/2,w=(i.arrow?.y??0)+f/2;let x="",S="";return h==="bottom"?(x=l?m:`${b}px`,S=`${-f}px`):h==="top"?(x=l?m:`${b}px`,S=`${s.floating.height+f}px`):h==="right"?(x=`${-f}px`,S=l?m:`${w}px`):h==="left"&&(x=`${s.floating.width+f}px`,S=l?m:`${w}px`),{data:{x,y:S}}}});function v0(e){const[t,n="center"]=e.split("-");return[t,n]}var vZ=_N,bZ=AN,wZ=CN,xZ=TN;function SZ(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var RN=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_Z="VisuallyHidden",kZ=E.forwardRef((e,t)=>y.jsx(jt.span,{...e,ref:t,style:{...RN,...e.style}}));kZ.displayName=_Z;var AZ=[" ","Enter","ArrowUp","ArrowDown"],CZ=[" ","Enter"],ao="Select",[Gp,Kp,EZ]=nY(ao),[fo]=Tp(ao,[EZ,xN]),Yp=xN(),[TZ,aa]=fo(ao),[RZ,OZ]=fo(ao),jZ="SelectProvider";function ON(e){const{__scopeSelect:t,children:n,open:s,defaultOpen:i,onOpenChange:o,value:l,defaultValue:u,onValueChange:f,dir:h,name:p,autoComplete:m,disabled:b,required:w,form:x,internal_do_not_use_render:S}=e,_=Yp(t),[k,C]=E.useState(null),[R,O]=E.useState(null),[N,P]=E.useState(!1),D=rY(h),[M,$]=Bv({prop:s,defaultProp:i??!1,onChange:o,caller:ao}),[K,Y]=Bv({prop:l,defaultProp:u,onChange:f,caller:ao}),X=E.useRef(null),ae=k?!!x||!!k.closest("form"):!0,[oe,be]=E.useState(new Set),V=jl(),Q=Array.from(oe).map(B=>B.props.value).join(";"),te=E.useCallback(B=>{be(ee=>new Set(ee).add(B))},[]),pe=E.useCallback(B=>{be(ee=>{const de=new Set(ee);return de.delete(B),de})},[]),ie={required:w,trigger:k,onTriggerChange:C,valueNode:R,onValueNodeChange:O,valueNodeHasChildren:N,onValueNodeHasChildrenChange:P,contentId:V,value:K,onValueChange:Y,open:M,onOpenChange:$,dir:D,triggerPointerDownPosRef:X,disabled:b,name:p,autoComplete:m,form:x,nativeOptions:oe,nativeSelectKey:Q,isFormControl:ae};return y.jsx(vZ,{..._,children:y.jsx(TZ,{scope:t,...ie,children:y.jsx(Gp.Provider,{scope:t,children:y.jsx(RZ,{scope:t,onNativeOptionAdd:te,onNativeOptionRemove:pe,children:WZ(S)?S(ie):n})})})})}ON.displayName=jZ;var jN=e=>{const{__scopeSelect:t,children:n,...s}=e;return y.jsx(ON,{__scopeSelect:t,...s,internal_do_not_use_render:({isFormControl:i})=>y.jsxs(y.Fragment,{children:[n,i?y.jsx(JN,{__scopeSelect:t}):null]})})};jN.displayName=ao;var NN="SelectTrigger",b0=E.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...i}=e,o=Yp(n),l=aa(NN,n),u=l.disabled||s,f=Zt(t,l.onTriggerChange),h=Kp(n),p=E.useRef("touch"),[m,b,w]=QN(S=>{const _=h().filter(R=>!R.disabled),k=_.find(R=>R.value===l.value),C=eI(_,S,k);C!==void 0&&l.onValueChange(C.value)}),x=S=>{u||(l.onOpenChange(!0),w()),S&&(l.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return y.jsx(bZ,{asChild:!0,...o,children:y.jsx(jt.button,{type:"button",role:"combobox","aria-controls":l.open?l.contentId:void 0,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":Zp(l.value)?"":void 0,...i,ref:f,onClick:Pt(i.onClick,S=>{S.currentTarget.focus(),p.current!=="mouse"&&x(S)}),onPointerDown:Pt(i.onPointerDown,S=>{p.current=S.pointerType;const _=S.target;_.hasPointerCapture(S.pointerId)&&_.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(x(S),S.preventDefault())}),onKeyDown:Pt(i.onKeyDown,S=>{const _=m.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(_&&S.key===" ")&&AZ.includes(S.key)&&(x(),S.preventDefault())})})})});b0.displayName=NN;var IN="SelectValue",PN=E.forwardRef((e,t)=>
208{const{__scopeSelect:n,className:s,style:i,children:o,placeholder:l="",...u}=e,f=aa(IN,n),{onValueNodeHasChildrenChange:h}=f,p=o!==void 0,m=Zt(t,f.onValueNodeChange);bn(()=>{h(p)},[h,p]);const b=Zp(f.value);return y.jsx(jt.span,{...u,asChild:b?!1:u.asChild,ref:m,style:{pointerEvents:"none"},children:y.jsx(E.Fragment,{children:b?l:o},b?"placeholder":"value")})});PN.displayName=IN;var NZ="SelectIcon",MN=E.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...i}=e;return y.jsx(jt.span,{"aria-hidden":!0,...i,ref:t,children:s||"▼"})});MN.displayName=NZ;var DN="SelectPortal",[IZ,PZ]=fo(DN,{forceMount:void 0}),LN=e=>{const{__scopeSelect:t,forceMount:n,...s}=e;return y.jsx(IZ,{scope:e.__scopeSelect,forceMount:n,children:y.jsx(mw,{asChild:!0,...s})})};LN.displayName=DN;var ea="SelectContent",w0=E.forwardRef((e,t)=>{const n=PZ(ea,e.__scopeSelect),{forceMount:s=n.forceMount,...i}=e,o=aa(ea,e.__scopeSelect),[l,u]=E.useState();return bn(()=>{u(new DocumentFragment)},[]),y.jsx(Gu,{present:s||o.open,children:({present:f})=>f?y.jsx(zN,{...i,ref:t}):y.jsx(BN,{...i,fragment:l})})});w0.displayName=ea;var BN=E.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,fragment:i}=e;return i?co.createPortal(y.jsx(UN,{scope:n,children:y.jsx(Gp.Slot,{scope:n,children:y.jsx("div",{ref:t,children:s})})}),i):null});BN.displayName="SelectContentFragment";var Gs=10,[UN,oa]=fo(ea),MZ="SelectContentImpl",DZ=ku("SelectContent.RemoveScroll"),zN=E.forwardRef((e,t)=>{const{__scopeSelect:n}=e,{position:s="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:l,side:u,sideOffset:f,align:h,alignOffset:p,arrowPadding:m,collisionBoundary:b,collisionPadding:w,sticky:x,hideWhenDetached:S,avoidCollisions:_,...k}=e,C=aa(ea,n),[R,O]=E.useState(null),[N,P]=E.useState(null),D=Zt(t,O),[M,$]=E.useState(null),[K,Y]=E.useState(null),X=Kp(n),[ae,oe]=E.useState(!1),be=E.useRef(!1);E.useEffect(()=>{if(R)return YR(R)},[R]),VR();const V=E.useCallback(ye=>{const[Me,...Ee]=X().map(Qe=>Qe.ref.current),[Xe]=Ee.slice(-1),Ye=document.activeElement;for(const Qe of ye)if(Qe===Ye||(Qe?.scrollIntoView({block:"nearest"}),Qe===Me&&N&&(N.scrollTop=0),Qe===Xe&&N&&(N.scrollTop=N.scrollHeight),Qe?.focus(),document.activeElement!==Ye))return},[X,N]),Q=E.useCallback(()=>V([M,R]),[V,M,R]);E.useEffect(()=>{ae&&Q()},[ae,Q]);const{onOpenChange:te,triggerPointerDownPosRef:pe}=C;E.useEffect(()=>{if(R){let ye={x:0,y:0};const Me=Xe=>{ye={x:Math.abs(Math.round(Xe.pageX)-(pe.current?.x??0)),y:Math.abs(Math.round(Xe.pageY)-(pe.current?.y??0))}},Ee=Xe=>{ye.x<=10&&ye.y<=10?Xe.preventDefault():Xe.composedPath().includes(R)||te(!1),document.removeEventListener("pointermove",Me),pe.current=null};return pe.current!==null&&(document.addEventListener("pointermove",Me),document.addEventListener("pointerup",Ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Me),document.removeEventListener("pointerup",Ee,{capture:!0})}}},[R,te,pe]),E.useEffect(()=>{const ye=()=>te(!1);return window.addEventListener("blur",ye),window.addEventListener("resize",ye),()=>{window.removeEventListener("blur",ye),window.removeEventListener("resize",ye)}},[te]);const[ie,B]=QN(ye=>{const Me=X().filter(Ye=>!Ye.disabled),Ee=Me.find(Ye=>Ye.ref.current===document.activeElement),Xe=eI(Me,ye,Ee);Xe&&setTimeout(()=>Xe.ref.current?.focus())}),ee=E.useCallback((ye,Me,Ee)=>{const Xe=!be.current&&!Ee;(C.value!==void 0&&C.value===Me||Xe)&&($(ye),Xe&&(be.current=!0))},[C.value]),de=E.useCallback(()=>R?.focus(),[R]),he=E.useCallback((ye,Me,Ee)=>{const Xe=!be.current&&!Ee;(C.value!==void 0&&C.value===Me||Xe)&&Y(ye)},[C.value]),ge=s==="popper"?qb:VN,_e=ge===qb?{side:u,sideOffset:f,align:h,alignOffset:p,arrowPadding:m,collisionBoundary:b,collisionPadding:w,sticky:x,hideWhenDetached:S,avoidCollisions:_}:{};return y.jsx(UN,{scope:n,content:R,viewport:N,onViewportChange:P,itemRefCallback:ee,selectedItem:M,onItemLeave:de,itemTextRefCallback:he,focusSelectedItem:Q,selectedItemText:K,position:s,isPositioned:ae,searchRef:ie,children:y.jsx(gw,{as:DZ,allowPinchZoom:!0,children:y.jsx(pw,{asChild:!0,trapped:C.open,onMountAutoFocus:ye=>{ye.preventDefault()},onUnmountAutoFocus:Pt(i,ye=>{C.trigger?.focus({preventScroll:!0}),ye.preventDefault()}),children:y.jsx(hw,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:ye=>ye.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:y.jsx(ge,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:ye=>ye.preventDefault(),...k,..._e,onPlaced:()=>oe(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:Pt(k.onKeyDown,ye=>{const Me=ye.ctrlKey||ye.altKey||ye.metaKey;if(ye.key==="Tab"&&ye.preventDefault(),!Me&&ye.key.length===1&&B(ye.key),["ArrowUp","ArrowDown","Home","End"].includes(ye.key)){let Xe=X().filter(Ye=>!Ye.disabled).map(Ye=>Ye.ref.current);
vendor: 8,829 bytes, line 208
208if(["ArrowUp","End"].includes(ye.key)&&(Xe=Xe.slice().reverse()),["ArrowUp","ArrowDown"].includes(ye.key)){const Ye=ye.target,Qe=Xe.indexOf(Ye);Xe=Xe.slice(Qe+1)}setTimeout(()=>V(Xe)),ye.preventDefault()}})})})})})})});zN.displayName=MZ;var LZ="SelectItemAlignedPosition",VN=E.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...i}=e,o=aa(ea,n),l=oa(ea,n),[u,f]=E.useState(null),[h,p]=E.useState(null),m=Zt(t,p),b=Kp(n),w=E.useRef(!1),x=E.useRef(!0),{viewport:S,selectedItem:_,selectedItemText:k,focusSelectedItem:C}=l,R=E.useCallback(()=>{if(o.trigger&&o.valueNode&&u&&h&&S&&_&&k){const D=o.trigger.getBoundingClientRect(),M=h.getBoundingClientRect(),$=o.valueNode.getBoundingClientRect(),K=k.getBoundingClientRect();if(o.dir!=="rtl"){const Ye=K.left-M.left,Qe=$.left-Ye,Wt=D.left-Qe,ht=D.width+Wt,Is=Math.max(ht,M.width),Vn=window.innerWidth-Gs,Ps=NE(Qe,[Gs,Math.max(Gs,Vn-Is)]);u.style.minWidth=ht+"px",u.style.left=Ps+"px"}else{const Ye=M.right-K.right,Qe=window.innerWidth-$.right-Ye,Wt=window.innerWidth-D.right-Qe,ht=D.width+Wt,Is=Math.max(ht,M.width),Vn=window.innerWidth-Gs,Ps=NE(Qe,[Gs,Math.max(Gs,Vn-Is)]);u.style.minWidth=ht+"px",u.style.right=Ps+"px"}const Y=b(),X=window.innerHeight-Gs*2,ae=S.scrollHeight,oe=window.getComputedStyle(h),be=parseInt(oe.borderTopWidth,10),V=parseInt(oe.paddingTop,10),Q=parseInt(oe.borderBottomWidth,10),te=parseInt(oe.paddingBottom,10),pe=be+V+ae+te+Q,ie=Math.min(_.offsetHeight*5,pe),B=window.getComputedStyle(S),ee=parseInt(B.paddingTop,10),de=parseInt(B.paddingBottom,10),he=D.top+D.height/2-Gs,ge=X-he,_e=_.offsetHeight/2,ye=_.offsetTop+_e,Me=be+V+ye,Ee=pe-Me;if(Me<=he){const Ye=Y.length>0&&_===Y[Y.length-1].ref.current;u.style.bottom="0px";const Qe=h.clientHeight-S.offsetTop-S.offsetHeight,Wt=Math.max(ge,_e+(Ye?de:0)+Qe+Q),ht=Me+Wt;u.style.height=ht+"px"}else{const Ye=Y.length>0&&_===Y[0].ref.current;u.style.top="0px";const Wt=Math.max(he,be+S.offsetTop+(Ye?ee:0)+_e)+Ee;u.style.height=Wt+"px",S.scrollTop=Me-he+S.offsetTop}u.style.margin=`${Gs}px 0`,u.style.minHeight=ie+"px",u.style.maxHeight=X+"px",s?.(),requestAnimationFrame(()=>w.current=!0)}},[b,o.trigger,o.valueNode,u,h,S,_,k,o.dir,s]);bn(()=>R(),[R]);const[O,N]=E.useState();bn(()=>{h&&N(window.getComputedStyle(h).zIndex)},[h]);const P=E.useCallback(D=>{D&&x.current===!0&&(R(),C?.(),x.current=!1)},[R,C]);return y.jsx(UZ,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:w,onScrollButtonChange:P,children:y.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:y.jsx(jt.div,{...i,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});VN.displayName=LZ;var BZ="SelectPopperPosition",qb=E.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:i=Gs,...o}=e,l=Yp(n);return y.jsx(wZ,{...l,...o,ref:t,align:s,collisionPadding:i,style:{boxSizing:"border-box",...o.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)"}})});qb.displayName=BZ;var[UZ,x0]=fo(ea,{}),Wb="SelectViewport",$N=E.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...i}=e,o=oa(Wb,n),l=x0(Wb,n),u=Zt(t,o.onViewportChange),f=E.useRef(0);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(Gp.Slot,{scope:n,children:y.jsx(jt.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Pt(i.onScroll,h=>{const p=h.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:b}=l;if(b?.current&&m){const w=Math.abs(f.current-p.scrollTop);if(w>0){const x=window.innerHeight-Gs*2,S=parseFloat(m.style.minHeight),_=parseFloat(m.style.height),k=Math.max(S,_);if(k<x){const C=k+w,R=Math.min(x,C),O=C-R;m.style.height=R+"px",m.style.bottom==="0px"&&(p.scrollTop=O>0?O:0,m.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});$N.displayName=Wb;var FN="SelectGroup",[zZ,VZ]=fo(FN),$Z=E.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=jl();return y.jsx(zZ,{scope:n,id:i,children:y.jsx(jt.div,{role:"group","aria-labelledby":i,...s,ref:t})})});$Z.displayName=FN;var HN="SelectLabel",S0=E.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=VZ(HN,n);return y.jsx(jt.div,{id:i.id,...s,ref:t})});S0.displayName=HN;var yp="SelectItem",[FZ,qN]=fo(yp),_0=E.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:i=!1,textValue:o,...l}=e,u=aa(yp,n),f=oa(yp,n),h=u.value===s,[p,m]=E.useState(o??""),[b,w]=E.useState(!1),x=Wi(R=>f.itemRefCallback?.(R,s,i)),S=Zt(t,x),_=jl(),k=E.useRef("touch"),C=()=>{i||(u.onValueChange(s),u.onOpenChange(!1))};return y.jsx(FZ,{scope:n,value:s,disabled:i,textId:_,isSelected:h,onItemTextChange:E.useCallback(R=>{m(O=>O||(R?.textContent??"").trim())},[]),children:y.jsx(Gp.ItemSlot,{scope:n,value:s,disabled:i,textValue:p,children:y.jsx(jt.div,{role:"option","aria-labelledby":_,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:S,onFocus:Pt(l.onFocus,()=>w(!0)),onBlur:Pt(l.onBlur,()=>w(!1)),onClick:Pt(l.onClick,()=>{k.current!=="mouse"&&C()}),onPointerUp:Pt(l.onPointerUp,()=>{k.current==="mouse"&&C()}),onPointerDown:Pt(l.onPointerDown,R=>{k.current=R.pointerType}),onPointerMove:Pt(l.onPointerMove,R=>{k.current=R.pointerType,i?f.onItemLeave?.():k.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Pt(l.onPointerLeave,R=>{R.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Pt(l.onKeyDown,R=>{f.searchRef?.current!==""&&R.key===" "||(CZ.includes(R.key)&&C(),R.key===" "&&R.preventDefault())})})})})});_0.displayName=yp;var ru="SelectItemText",WN=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:i,...o}=e,l=aa(ru,n),u=oa(ru,n),f=qN(ru,n),h=OZ(ru,n),[p,m]=E.useState(null),b=Wi(C=>u.itemTextRefCallback?.(C,f.value,f.disabled)),w=Zt(t,m,f.onItemTextChange,b),x=p?.textContent,S=E.useMemo(()=>y.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:_,onNativeOptionRemove:k}=h;return bn(()=>(_(S),()=>k(S)),[_,k,S]),y.jsxs(y.Fragment,{children:[y.jsx(jt.span,{id:f.textId,...o,ref:w}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren&&!Zp(l.value)?co.createPortal(o.children,l.valueNode):null]})});WN.displayName=ru;var GN="SelectItemIndicator",KN=E.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return qN(GN,n).isSelected?y.jsx(jt.span,{"aria-hidden":!0,...s,ref:t}):null});KN.displayName=GN;var Gb="SelectScrollUpButton",k0=E.forwardRef((e,t)=>{const n=oa(Gb,e.__scopeSelect),s=x0(Gb,e.__scopeSelect),[i,o]=E.useState(!1),l=Zt(t,s.onScrollButtonChange);return bn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=f.scrollTop>0;o(h)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?y.jsx(YN,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop-f.offsetHeight)}}):null});k0.displayName=Gb;var Kb="SelectScrollDownButton",A0=E.forwardRef((e,t)=>{const n=oa(Kb,e.__scopeSelect),s=x0(Kb,e.__scopeSelect),[i,o]=E.useState(!1),l=Zt(t,s.onScrollButtonChange);return bn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=f.scrollHeight-f.clientHeight,p=Math.ceil(f.scrollTop)<h;o(p)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?y.jsx(YN,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop+f.offsetHeight)}}):null});A0.displayName=Kb;var YN=E.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...i}=e,o=oa("SelectScrollButton",n),l=E.useRef(null),u=Kp(n),f=E.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return E.useEffect(()=>()=>f(),[f]),bn(()=>{u().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),y.jsx(jt.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Pt(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(s,50))}),onPointerMove:Pt(i.onPointerMove,()=>{o.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(s,50))}),onPointerLeave:Pt(i.onPointerLeave,()=>{f()})})}),HZ="SelectSeparator",C0=E.forwardRef((e,t)=>
208{const{__scopeSelect:n,...s}=e;return y.jsx(jt.div,{"aria-hidden":!0,...s,ref:t})});C0.displayName=HZ;var ZN="SelectArrow",qZ=E.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=Yp(n);return oa(ZN,n).position==="popper"?y.jsx(xZ,{...i,...s,ref:t}):null});qZ.displayName=ZN;var XN="SelectBubbleInput",JN=E.forwardRef(({__scopeSelect:e,...t},n)=>{const s=aa(XN,e),{value:i,onValueChange:o,required:l,disabled:u,name:f,autoComplete:h,form:p}=s,{nativeOptions:m,nativeSelectKey:b}=s,w=E.useRef(null),x=Zt(n,w),S=i??"",_=SZ(S),k=Array.from(m).some(C=>(C.props.value??"")==="");return E.useEffect(()=>{const C=w.current;if(!C)return;const R=window.HTMLSelectElement.prototype,N=Object.getOwnPropertyDescriptor(R,"value").set;if(_!==S&&N){const P=new Event("change",{bubbles:!0});N.call(C,S),C.dispatchEvent(P)}},[_,S]),y.jsxs(jt.select,{"aria-hidden":!0,required:l,tabIndex:-1,name:f,autoComplete:h,disabled:u,form:p,onChange:C=>o(C.target.value),...t,style:{...RN,...t.style},ref:x,defaultValue:S,children:[Zp(i)&&!k?y.jsx("option",{value:""}):null,Array.from(m)]},b)});JN.displayName=XN;function WZ(e){return typeof e=="function"}function Zp(e){return e===""||e===void 0}function QN(e){const t=Wi(e),n=E.useRef(""),s=E.useRef(0),i=E.useCallback(l=>{const u=n.current+l;t(u),(function f(h){n.current=h,window.clearTimeout(s.current),h!==""&&(s.current=window.setTimeout(()=>f(""),1e3))})(u)},[t]),o=E.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,i,o]}function eI(e,t,n){const i=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=GZ(e,Math.max(o,0));i.length===1&&(l=l.filter(h=>h!==n));const f=l.find(h=>h.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function GZ(e,t){return e.map((n,s)=>e[(t+s)%e.length])}const KZ=jN,YZ=PN,tI=E.forwardRef(({className:e,children:t,...n},s)=>y.jsxs(b0,{ref:s,className:Ce("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background cursor-pointer data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,y.jsx(MN,{asChild:!0,children:y.jsx(uw,{className:"h-4 w-4 opacity-50"})})]}));tI.displayName=b0.displayName;const nI=E.forwardRef(({className:e,...t},n)=>y.jsx(k0,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(hU,{className:"h-4 w-4"})}));nI.displayName=k0.displayName;const sI=E.forwardRef(({className:e,...t},n)=>y.jsx(A0,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(uw,{className:"h-4 w-4"})}));sI.displayName=A0.displayName;const rI=E.forwardRef(({className:e,children:t,position:n="popper",...s},i)=>y.jsx(LN,{children:y.jsxs(w0,{ref:i,className:Ce("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-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 origin-(--radix-select-content-transform-origin)",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...s,children:[y.jsx(nI,{}),y.jsx($N,{className:Ce("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(sI,{})]})}));rI.displayName=w0.displayName;const ZZ=E.forwardRef(({className:e,...t},n)=>y.jsx(S0,{ref:n,className:Ce("px-2 py-1.5 text-sm font-semibold",e),...t}));ZZ.displayName=S0.displayName;const iI=E.forwardRef(({className:e,children:t,...n},s)=>y.jsxs(_0,{ref:s,className:Ce("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(KN,{children:y.jsx(Ep,{className:"h-4 w-4"})})}),y.jsx(WN,{children:t})]}));iI.displayName=_0.displayName;const XZ=E.forwardRef(({className:e,...t},n)=>y.jsx(C0,{ref:n,className:Ce("-mx-1 my-1 h-px bg-muted",e),...t}));XZ.displayName=C0.displayName;const aI="[email protected]",JZ=`mailto:${aI}`,QZ=["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],eX=10*1024*1024,tX=nd({name:dn().trim().min(1,"Required").max(100),email:dn().trim().email("Enter a valid email").max(255),phone:dn().trim().min(7,"Enter a valid phone").max(30).regex(/^[+\d\s().-]+$/,"Enter a valid phone"),role:dn().min(1,"Pick a role"),additionalNotes:dn().trim().max(2e3).optional().or(TO(""))}),nX="mb-2 block text-sm font-medium tracking-normal text-paper";function HE(e,t){if(!e||e.size===0)return t?"Required":void 0;if(e.size>eX)return"File must be under 10MB";if(!QZ.includes(e.type))return"Use PDF or Word (.doc, .docx)"}function sX({heading:e,defaultRole:t}){const[n,s]=E.useState(!1),[i,o]=E.useState(null),[l,u]=E.useState(null),[f,h]=E.useState(),[p,m]=E.useState(),[b,w]=E.useState(null),{register:x,control:S,handleSubmit:_,formState:{errors:k,isSubmitting:C},reset:R,setValue:O}=Ip({resolver:Pp(tX),defaultValues:{role:t??"",additionalNotes:""}});E.useEffect(()=>{t&&O("role",t)},[t,O]);const N=async P=>{const D=HE(i,!0),M=HE(l,!1);if(h(D),m(M),D||M)return;w(null);const $=new FormData;$.append("name",P.name),$.append("email",P.email),$.append("phone",P.phone),$.append("role",P.role),$.append("additionalNotes",P.additionalNotes??""),i&&$.append("resume",i),l&&$.append("coverLetter",l);const{data:K,error:Y}=await es.functions.invoke("submit-career-application",{body:$});if(Y||K?.error){w("Something went wrong submitting your application. Please email [email protected] directly.");return}s(!0),R(),o(null),u(null),h(void 0),m(void 0)};return y.jsxs("div",{className:"rounded-3xl border border-white/[0.06] bg-[#1f1e1d] p-6 sm:p-10",children:[e&&!n&&y.jsx("div",{className:"mb-8 text-center",children:e}),n?y.jsxs("div",{className:"flex flex-col items-start gap-4 py-2",children:[y.jsx("div",{className:"grid h-12 w-12 place-items-center rounded-full bg-[#7f57da]/15 text-[#a585ec]",children:y.jsx(Ep,{className:"h-5 w-5"})}),y.jsx("h3",{className:"font-display text-3xl leading-tight text-foreground",children:"Thanks. We received your application."}),y.jsxs("p",{className:"max-w-md text-sm leading-relaxed text-foreground
208/65",children:["Someone on our team will follow up if there is a fit. If you have questions, email"," ",y.jsx("a",{href:JZ,className:"text-purple-300 transition hover:text-purple-200",children:aI}),"."]}),y.jsx("button",{type:"button",onClick:()=>s(!1),className:"mt-1 text-sm text-foreground/55 transition hover:text-foreground",children:"← Send another"})]}):y.jsxs("form",{onSubmit:_(N),className:"space-y-5",noValidate:!0,children:[y.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[y.jsx(Ia,{label:"Name",error:k.name?.message,children:y.jsx("input",{...x("name"),className:"partner-input",autoComplete:"name"})}),y.jsx(Ia,{label:"Email",error:k.email?.message,children:y.jsx("input",{...x("email"),className:"partner-input",type:"email",autoComplete:"email"})}),y.jsx(Ia,{label:"Phone",error:k.phone?.message,children:y.jsx("input",{...x("phone"),className:"partner-input",type:"tel",autoComplete:"tel"})}),y.jsx(Ia,{label:"Role",error:k.role?.message,children:y.jsx(t6,{name:"role",control:S,render:({field:P})=>y.jsxs(KZ,{value:P.value||void 0,onValueChange:P.onChange,children:[y.jsx(tI,{className:"partner-input h-auto min-h-[calc(0.85rem*2+1rem+2px)] border-white/[0.12] bg-[#32302e] py-[0.85rem] text-[#f7f7f7] shadow-none focus:ring-0 focus:ring-offset-0 data-[placeholder]:text-white/40 [&>svg]:text-white/55",children:y.jsx(YZ,{placeholder:"Select a role"})}),y.jsx(rI,{className:"z-[60] border border-white/[0.12] bg-[#32302e] text-[#f7f7f7] shadow-lg",children:tY.map(D=>y.jsx(iI,{value:D,className:"text-[#f7f7f7] focus:bg-[#7f57da]/30 focus:text-[#f7f7f7] data-[highlighted]:bg-[#7f57da]/30 data-[highlighted]:text-[#f7f7f7]",children:D},D))})]})})})]}),y.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[y.jsx(Ia,{label:"Resume",error:f,children:y.jsx("input",{type:"file",accept:".pdf,.doc,.docx,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",className:"partner-input file:mr-3 file:rounded-lg file:border-0 file:bg-white/10 file:px-3 file:py-1.5 file:text-sm file:text-foreground file:transition hover:file:bg-white/15",onChange:P=>{const D=P.target.files?.[0];o(D??null),h(void 0)}})}),y.jsx(Ia,{label:"Cover letter (optional)",error:p,children:y.jsx("input",{type:"file",accept:".pdf,.doc,.docx,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",className:"partner-input file:mr-3 file:rounded-lg file:border-0 file:bg-white/10 file:px-3 file:py-1.5 file:text-sm file:text-foreground file:transition hover:file:bg-white/15",onChange:P=>{const D=P.target.files?.[0];u(D??null),m(void 0)}})})]}),y.jsx(Ia,{label:"Anything you want to add (optional)",error:k.additionalNotes?.message,children:y.jsx("textarea",{...x("additionalNotes"),rows:4,className:"partner-input resize-none",placeholder:"Links to work you have shipped, context on your background, or questions for our team."})}),y.jsx("button",{type:"submit",disabled:C,className:"group inline-flex w-full items-center justify-center gap-2 rounded-full bg-[#7f57da] px-6 py-4 text-sm font-medium text-white transition hover:bg-[#8a63e3] disabled:opacity-60 sm:w-auto",children:C?y.jsxs(y.Fragment,{children:[y.jsx(Ja,{className:"h-4 w-4 animate-spin"}),"Sending…"]}):y.jsxs(y.Fragment,{children:["Submit application",y.jsx(Pn,{className:"h-4 w-4 transition group-hover:translate-x-0.5"})]})}),b&&y.jsx("p",{className:"text-sm text-destructive",children:b}),y.jsxs("p",{className:"text-xs text-foreground/55",children:["We review every application. By submitting you agree to our"," ",y.jsx(ot,{to:"/privacy",className:"underline underline-offset-2 hover:text-foreground",children:"privacy policy"}),"."]})]})]})}function Ia({label:e,error:t,children:n}){return y.jsxs("label",{className:"block",children:[y.jsx("span",{className:nX,children:e}),n,t&&y.jsx("span",{className:"mt-1.5 block text-xs text-destructive",children:t})]})}const Yb="open-careers-modal";function Cne(e){typeof window<"u"&&window.dispatchEvent(new CustomEvent(Yb,{detail:{role:e}}))}function rX(){const[e,t]=E.useState(!1),[n,s]=E.useState();return E.useEffect(()=>{const i=o=>{s(o.detail?.role),t(!0)};return window.addEventListener(Yb,i),()=>window.removeEventListener(Yb,i)},[]),y.jsx(Ku,{open:e,onOpenChange:i=>{t(i),i||s(void 0)},children:y.jsxs(Yu,{children:[y.jsx(Zu,{className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),y.jsxs(Xu,{className:"fixed left-1/2 top-1/2 z-50 max-h-[calc(100dvh-2rem)] w-[calc(100%-2rem)] max-w-2xl -translate-x-1/2 -translate-y-1/2 overflow-y-auto overscroll-contain 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",children:[y.jsx(Ju,{className:"sr-only",children:"Apply to Wyecliff"}),y.jsx(sX,{defaultRole:n,heading:y.jsxs("h2",{className:"font-display text-3xl leading-[1.05] sm:text-4xl",children:["Apply to ",y.jsx("em",{className:"text-purple-300",children:"Wyecliff"})]})}
208),y.jsxs(Qu,{className:"absolute right-4 top-4 rounded-full p-2 text-foreground/55 transition hover:bg-white/[0.06] hover:text-foreground",children:[y.jsx(Qr,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]}),y.jsx(oN,{})]})]})})}const oI="wyecliff_demo_lead",Zb="0x4AAAAAADzYX0u1BMWme-gh",iX=nd({name:dn().trim().min(1,"Required").max(100),company:dn().trim().min(1,"Required").max(120),email:dn().trim().email("Enter a valid email").max(255)}),aX="mb-2 block text-sm font-medium tracking-normal text-paper";function oX(){if(typeof window>"u")return null;try{const e=sessionStorage.getItem(oI);if(!e)return null;const t=JSON.parse(e);return!t.name||!t.email||!t.company?null:t}catch{return null}}function lX(e){typeof window>"u"||sessionStorage.setItem(oI,JSON.stringify(e))}function cX(e){const t=E.useRef(null),n=E.useRef(null),[s,i]=E.useState(null);return E.useEffect(()=>{if(!e||!Zb||!t.current)return;let o=!1;const l=()=>{o||!t.current||!window.turnstile||(n.current&&(window.turnstile.remove(n.current),n.current=null),n.current=window.turnstile.render(t.current,{sitekey:Zb,theme:"dark",callback:f=>i(f),"expired-callback":()=>i(null),"error-callback":()=>i(null)}))},u=document.querySelector('script[src="https://challenges.cloudflare.com/turnstile/v0/api.js"]');if(window.turnstile)l();else if(u)u.addEventListener("load",l);else{const f=document.createElement("script");f.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",f.async=!0,f.onload=l,document.head.appendChild(f)}return()=>{o=!0,n.current&&window.turnstile&&(window.turnstile.remove(n.current),n.current=null)}},[e]),{containerRef:t,token:s,resetToken:()=>i(null)}}function uX({heading:e,context:t,onOpened:n}){const[s,i]=E.useState(null),o=!!Zb,{containerRef:l,token:u}=cX(o),{register:f,handleSubmit:h,formState:{errors:p,isSubmitting:m},reset:b}=Ip({resolver:Pp(iX),defaultValues:{name:"",email:"",company:""}});E.useEffect(()=>{const x=oX();x&&b(x)},[b]);const w=async x=>{if(i(null),o&&!u){i("Complete the captcha check, then try again.");return}const S=typeof document<"u"&&document.referrer||null,_=typeof navigator<"u"?navigator.userAgent:null,{data:k,error:C}=await es.functions.invoke("create-demo-session",{body:{name:x.name.trim(),email:x.email.trim().toLowerCase(),company:x.company.trim(),demoUrl:t.demoUrl,solutionSlug:t.solutionSlug??null,solutionTitle:t.solutionTitle??null,turnstileToken:u??null,referrer:S,userAgent:_}}),R=k;if(C){const O=R?.error;i(O||C.message||"Something went wrong. Try again.");return}if(!R||R.error||!R.redirectUrl){i(R?.error||"Something went wrong. Try again.");return}lX(x),window.open(R.redirectUrl,"_blank","noopener,noreferrer"),n?.()};return y.jsxs("div",{className:"rounded-3xl border border-white/[0.06] bg-[#1f1e1d] p-6 sm:p-10",children:[e&&y.jsx("div",{className:"mb-8 text-center",children:e}),y.jsxs("form",{onSubmit:h(w),className:"space-y-5",noValidate:!0,children:[y.jsx("p",{className:"text-sm leading-relaxed text-foreground/65",children:"Enter your details to open the live demo. We use this to follow up if you have questions while you explore."}),y.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[y.jsx(yv,{label:"Name",error:p.name?.message,children:y.jsx("input",{...f("name"),className:"tryitlive-input",autoComplete:"name"})}),y.jsx(yv,{label:"Company",error:p.company?.message,children:y.jsx("input",{...f("company"),className:"tryitlive-input",autoComplete:"organization"})}),y.jsx(yv,{label:"Work email",error:p.email?.message,children:y.jsx("input",{...f("email"),className:"tryitlive-input",type:"email",autoComplete:"email"})})]}),o?y.jsx("div",{className:"flex justify-start",children:y.jsx("div",{ref:l})}):null,s?y.jsx("p",{className:"text-sm text-destructive",role:"alert",children:s}):null,y.jsx("button",{type:"submit",disabled:m,className:"group inline-flex w-full items-center justify-center gap-2 rounded-full bg-[#7f57da] px-6 py-4 text-sm font-medium text-white transition hover:bg-[#8a63e3] disabled:opacity-60 sm:w-auto",children:m?y.jsxs(y.Fragment,{children:[y.jsx(Ja,{className:"h-4 w-4 animate-spin"}),"Opening…"]}):y.jsxs(y.Fragment,{children:["Continue to demo",y.jsx(ys,{className:"h-4 w-4 transition group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})}
208),y.jsxs("p",{className:"text-xs text-foreground/55",children:["By continuing you agree to our"," ",y.jsx(ot,{to:"/privacy",className:"underline underline-offset-2 hover:text-foreground",children:"privacy policy"}),"."]})]})]})}function yv({label:e,error:t,children:n}){return y.jsxs("label",{className:"block sm:col-span-1",children:[y.jsx("span",{className:aX,children:e}),n,t&&y.jsx("span",{className:"mt-1.5 block text-xs text-destructive",children:t})]})}function dX(){return y.jsx("style",{children:`
209      .tryitlive-input {
210        width: 100%;
211        background: #32302e;
212        border: 1px solid rgba(255, 255, 255, 0.12);
213        border-radius: 12px;
214        padding: 0.85rem 1rem;
215        font-size: 1rem;
216        color: #f7f7f7;
217        transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
218      }
219      @media (min-width: 768px) {
220        .tryitlive-input { font-size: 0.95rem; }
221      }
222      .tryitlive-input:hover {
223        background: #3a3835;
224        border-color: rgba(255, 255, 255, 0.18);
225      }
226      .tryitlive-input:focus {
227        outline: none;
228        background: #3a3835;
229        border-color: rgba(127, 87, 218, 0.45);
230        box-shadow: 0 0 0 4px rgba(127, 87, 218, 0.15);
231      }
232      .tryitlive-input::placeholder { color: rgba(255, 255, 255, 0.40); }
233    `})}const Xb="open-try-it-live-modal";function fX(e){typeof window<"u"&&window.dispatchEvent(new CustomEvent(Xb,{detail:e}))}function Ene({demoUrl:e,solutionTitle:t,solutionSlug:n,className:s,children:i,...o}){return y.jsx("button",{type:"button",className:s,onClick:()=>fX({demoUrl:e,solutionTitle:t,solutionSlug:n}),...o,children:i})}function hX(){const[e,t]=E.useState(!1),[n,s]=E.useState(null);E.useEffect(()=>{const o=l=>{const u=l.detail;u?.demoUrl&&(s(u),t(!0))};return window.addEventListener(Xb,o),()=>window.removeEventListener(Xb,o)},[]);const i=n?.solutionTitle??"Live demo";return y.jsx(Ku,{open:e,onOpenChange:o=>{t(o),o||s(null)},children:y.jsxs(Yu,{children:[y.jsx(Zu,{className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),y.jsxs(Xu,{className:"fixed left-1/2 top-1/2 z-50 max-h-[calc(100dvh-2rem)] w-[calc(100%-2rem)] max-w-2xl -translate-x-1/2 -translate-y-1/2 overflow-y-auto overscroll-contain 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",children:[y.jsxs(Ju,{className:"sr-only",children:["Try ",i]}),n?y.jsx(uX,{context:n,onOpened:()=>t(!1),heading:y.jsxs("h2",{className:"font-display text-3xl leading-[1.05] sm:text-4xl",children:["Try ",y.jsx("em",{className:"text-purple-300",children:n.solutionTitle??"this demo"})]})},n.demoUrl):null,y.jsxs(Qu,{className:"absolute right-4 top-4 roun
233ded-full p-2 text-foreground/55 transition hover:bg-white/[0.06] hover:text-foreground",children:[y.jsx(Qr,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]}),y.jsx(dX,{})]})]})})}const qE="wyecliff-chat-session-id";function pX(){if(typeof window>"u")return"server";try{const e=window.sessionStorage.getItem(qE);if(e)return e;const t=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`chat-${Date.now()}-${Math.random().toString(36).slice(2)}`;return window.sessionStorage.setItem(qE,t),t}catch{return`chat-${Date.now()}-${Math.random().toString(36).slice(2)}`}}const mX="Something went wrong sending that. Please try again, or talk to our team directly.";async function WE(e,t,n,s){const{data:i,error:o}=await es.functions.invoke("wyecliff-chat",{body:{sessionId:pX(),message:e,history:t,pagePath:n}}),l=i;if(o){const u=o.context;if(u)try{const f=await u.clone().json();if(f?.reply)return{kind:"recovered",result:{reply:f.reply,turnCount:f.turnCount??s,shouldEscalate:f.shouldEscalate??!1,degraded:f.degraded,rateLimited:f.rateLimited,capped:f.capped}}}catch{}return{kind:"transport-failure"}}return!l||"error"in l?{kind:"transport-failure"}:{kind:"success",result:l}}async function gX(e,t,n){const s=t.slice(-20),i=t.filter(l=>l.role==="user").length+1;let o=await WE(e,s,n,i);return o.kind==="transport-failure"&&(o=await WE(e,s,n,i)),o.kind==="transport-failure"?{reply:mX,turnCount:i,shouldEscalate:!1,degraded:!0}:o.result}const yX="Hi, I'm the Wyecliff assistant. Ask me about our AI services, how we work, or the industries we serve. If you want to go deeper I'll get our team looped in.";function vv(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`msg-${Date.now()}-${Math.random().toString(36).slice(2)}`}function vX(e){return e.filter(t=>t.kind==="message").map(t=>({role:t.role,content:t.content}))}function bX(){const[e,t]=E.useState(!1),[n,s]=E.useState([{id:"greeting",kind:"message",role:"assistant",content:yX}]),[i,o]=E.useState(""),[l,u]=E.useState(!1),[f,h]=E.useState(!1),[p,m]=E.useState(!1),b=E.useRef(null),w=E.useRef(null);E.useEffect(()=>{e&&b.current?.scrollTo({top:b.current.scrollHeight,behavior:"smooth"})},[n,e,l]),E.useEffect(()=>{e&&w.current?.focus()},[e]);async function x(k){k.preventDefault();const C=i.trim();if(!C||l||p)return;const R={id:vv(),kind:"message",role:"user",content:C},O=vX(n);s(N=>[...N,R]),o(""),u(!0);try{const N=typeof window<"u"?window.location.pathname:void 0,P=await gX(C,O,N);s(D=>{const M=[...D,{id:vv(),kind:"message",role:"assistant",content:P.reply}];return P.shouldEscalate&&!f&&M.push({id:vv(),kind:"escalation"}),M}),P.shouldEscalate&&h(!0),P.capped&&m(!0)}finally{u(!1)}}function S(k){k.key==="Enter"&&!k.shiftKey&&(k.preventDefault(),x(k))}function _(){t(!1),so()}return y.jsxs(y.Fragment,{children:[e&&y.jsxs("div",{role:"dialog","aria-label":"Wyecliff assistant",className:"fixed bottom-24 right-4 z-40 flex h-[min(560px,calc(100dvh-8rem))] w-[min(380px,calc(100vw-2rem))] flex-col overflow-hidden rounded-3xl border border-white/[0.10] bg-[#1f1e1d] shadow-2xl sm:right-6",children:[y.jsxs("div",{className:"flex items-center justify-between border-b border-white/[0.08] px-5 py-4",children:[y.jsxs("div",{children:[y.jsx("div",{className:"font-display text-base text-foreground",children:"Wyecliff Assistant"}),y.jsx("div",{className:"text-xs text-foreground/55",children:"Ask about our AI services"})]}),y.jsx("button",{type:"button",onClick:()=>t(!1),className:"rounded-full p-2 text-foreground/55 transition hover:bg-white/[0.06] hover:text-foreground","aria-label":"Close chat",children:y.jsx(Qr,{className:"h-4 w-4"})})]}),y.jsxs("div",{ref:b,className:"flex-1 space-y-3 overflow-y-auto px-4 py-4",children:[n.map(k=>k.kind==="escalation"?y.jsx(SX,{onTalkToTeam:_},k.id):y.jsx(wX,{role:k.role,content:k.content},k.id)),l&&y.jsx(xX,{})]}),y.jsxs("div",{className:"border-t border-white/[0.08] px-4 py-3",children:[f&&y.jsxs("button",{type:"button",onClick:_,className:"mb-3 flex w-full items-center justify-center gap-2 rounded-full bg-brand-purple px-4 py-2.5 text-sm font-medium text-white transition hover:bg-brand-purple-hover",children:[y.jsx(dw,{className:"h-4 w-4"}),"Talk to our team"]}),y.jsxs("form",{onSubmit:x,className:"flex items-end gap-2",children:[y.jsx("textarea",{ref:w,value:i,onChange:k=>o(k.target.value),onKeyDown:S,rows:1,maxLength:1e3,placeholder:p?"Chat is finished for now":"Ask a question...",disabled:l||p,className:"max-h-24 min-h-[2.5rem] flex-1 resize-none rounded-2xl border border-white/[0.10] bg-white/[0.04] px-4 py-2.5 text-sm text-foreground placeholder:text-foreground
233/40 focus:border-brand-purple focus:outline-none disabled:opacity-60"}),y.jsx("button",{type:"submit",disabled:l||p||!i.trim(),className:"grid h-10 w-10 shrink-0 place-items-center rounded-full bg-brand-purple text-white transition hover:bg-brand-purple-hover disabled:opacity-40","aria-label":"Send message",children:y.jsx(nz,{className:"h-4 w-4"})})]})]})]}),y.jsx("button",{type:"button",onClick:()=>t(k=>!k),className:Ce("fixed bottom-6 right-4 z-40 grid h-14 w-14 place-items-center rounded-full bg-brand-purple text-white shadow-xl transition hover:bg-brand-purple-hover sm:right-6"),"aria-label":e?"Close chat":"Open chat with Wyecliff assistant","aria-expanded":e,children:e?y.jsx(Qr,{className:"h-6 w-6"}):y.jsx(HU,{className:"h-6 w-6"})})]})}function wX({role:e,content:t}){const n=e==="user";return y.jsx("div",{className:Ce("flex",n?"justify-end":"justify-start"),children:y.jsx("div",{className:Ce("max-w-[85%] whitespace-pre-wrap break-words rounded-2xl px-4 py-2.5 text-sm leading-relaxed",n?"bg-brand-purple text-white":"bg-white/[0.06] text-foreground"),children:t})})}function xX(){return y.jsx("div",{className:"flex justify-start",children:y.jsx("div",{className:"flex items-center gap-1.5 rounded-2xl bg-white/[0.06] px-4 py-3",children:[0,1,2].map(e=>y.jsx("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-foreground
233/50",style:{animationDelay:`${e*.12}s`}},e))})})}function SX({onTalkToTeam:e}){return y.jsxs("div",{className:"rounded-2xl border border-brand-purple/30 bg-brand-purple/[0.08] p-4",children:[y.jsx("p",{className:"text-sm text-foreground/85",children:"Want to go deeper than I can help with here? Our team can jump in and answer directly."}),y.jsxs("button",{type:"button",onClick:e,className:"mt-3 flex items-center gap-2 text-sm font-medium text-purple-300 transition hover:text-purple-200",children:[y.jsx(dw,{className:"h-3.5 w-3.5"}),"Talk to our team"]})]})}const lI={density:33,strength:44,radius:520,opacity:.18,ambient:0,extent:84},cI=E.createContext(lI);function _X({value:e,children:t}){const n=E.useMemo(()=>({...lI,...e}),[e]);return y.jsx(cI.Provider,{value:n,children:t})}function Tne(){return E.useContext(cI)}function kX(){const[e,t]=E.useState(!1);if(E.useEffect(()=>{nN()||t(!0);const s=()=>t(!0);return window.addEventListener(Ub,s),()=>window.removeEventListener(Ub,s)},[]),!e)return null;const n=s=>{s==="dismissed"?LK():(sN(s),DK(s)),t(!1)};return y.jsx("div",{className:"fixed inset-x-0 bottom-0 z-30 border-t border-white/[0.10] bg-[#1f1e1d]/95 px-4 py-3 pr-20 shadow-[0_-12px_40px_-24px_rgba(0,0,0,0.6)] backdrop-blur-sm pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:pr-24",role:"region","aria-label":"Cookie choices",children:y.jsxs("div",{className:"mx-auto flex max-w-[1400px] flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[y.jsxs("p",{className:"text-sm text-foreground/80",children:["We use cookies to measure ads and site visits."," ",y.jsx(ot,{to:"/privacy",className:"underline underline-offset-2 hover:text-foreground",children:"Privacy"})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("button",{type:"button",onClick:()=>n("necessary"),className:"rounded-full border border-white/20 px-4 py-2 text-sm text-foreground transition hover:border-white/40 hover:bg-white/[0.04]",children:"Necessary only"}),y.jsx("button",{type:"button",onClick:()=>n("accepted"),className:"rounded-full bg-brand-purple px-4 py-2 text-sm font-medium text-white transition hover:bg-brand-purple-hover",children:"Accept"}),y.jsx("button",{type:"button",onClick:()=>n("dismissed"),className:"grid h-9 w-9 place-items-center rounded-full text-foreground/70 transition hover:bg-white/[0.06] hover:text-foreground","aria-label":"Close",children:y.jsx(Qr,{className:"h-4 w-4"})})]})]})})}const AX='(function(){var r=document.documentElement;r.dataset.appState="booting";function ready(){var m=document.querySelector("main");if(m&&(m.querySelector("section,h1,article")||m.textContent.trim().length>200)){r.dataset.appState="ready";return;}requestAnimationFrame(ready);}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",ready);}else{ready();}})();',CX='html,body{background:#1f1e1d;color:#f7f7f7;margin:0}html[data-app-state="booting"] .site-chrome-footer,html[data-app-state="booting"] .site-chrome-header{display:none!important}html[data-app-state="booting"] main{min-height:100vh;display:block}',bv="Wyecliff | AI Strategy & Implementation Partner",EX="Wyecliff bridges advanced AI and the industries that run America: construction, insurance, manufacturing, legal, distribution, and PE/VC.",GE="AI consulting and custom software for traditional industries. Microsoft Cloud Partner. Anthropic Official Partner.",sh="4";function TX(){return E.useEffect(()=>{document.title="Page not found | Wyecliff";let e=document.querySelector('meta[name="robots"]');e||(e=document.createElement("meta"),e.setAttribute("name","robots"),document.head.appendChild(e)),e.setAttribute("content","noindex, nofollow")},[]),y.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:y.jsxs("div",{className:"max-w-md text-center",children:[y.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),y.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page not found"}),y.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The page you're looking for doesn't exist or has been moved."}),y.jsx("div",{className:"mt-6",children:y.jsx(ot,{to:"/",className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Go home"})})]})})}function RX({error:e,reset:t}){console.error(e);const n=wn();return y.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:y.jsxs("div",{className:"max-w-md text-center",children:[y.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),y.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Something went wrong on our end. You can try refreshing or head back home."}),y.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[y.jsx("button",{onClick:()=>{n.invalidate(),t()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Try again"}),y.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:"Go home"})]})]})})}const Fe=F4()({head:({matches:e})=>{const t=e?.some(n=>n.status==="notFound");return{meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:t?"Page not found | Wyecliff":bv},{name:"description",content:EX},{name:"author",content:"Wyecliff"},...t?[{name:"robots",content:"noindex, nofollow"}]:[],{property:"og:title",content:bv},{property:"og:description",content:GE},{property:"og:type",content:"website"},{property:"og:site_name",content:ro},{property:"og:image",content:fp(zb)}
233,{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{property:"og:image:alt",content:ro},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:bv},{name:"twitter:description",content:GE},{name:"twitter:image",content:fp(zb)}],links:[{rel:"stylesheet",href:GB},{rel:"icon",href:`/favicon.ico?v=${sh}`,sizes:"any"},{rel:"icon",type:"image/png",href:`/favicon.png?v=${sh}`,sizes:"32x32"},{rel:"icon",type:"image/svg+xml",href:`/favicon.svg?v=${sh}`},{rel:"apple-touch-icon",href:`/apple-touch-icon.png?v=${sh}`},{rel:"manifest",href:"/site.webmanifest"},{rel:"preconnect",href:"https://www.googletagmanager.com"},{rel:"dns-prefetch",href:"https://www.googletagmanager.com"},{rel:"dns-prefetch",href:"https://www.google-analytics.com"},{rel:"preload",href:"/fonts/instrument-serif-latin-400-normal.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}],scripts:[{children:UK},{children:CK},{children:TK},{children:RK},qe(VK()),qe($K())]}},shellComponent:OX,component:jX,notFoundComponent:TX,errorComponent:RX});function OX({children:e}){return y.jsxs("html",{lang:"en",suppressHydrationWarning:!0,"data-app-state":"booting",children:[y.jsxs("head",{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:CX}}),y.jsx(dB,{})]}),y.jsxs("body",{children:[y.jsx("noscript",{dangerouslySetInnerHTML:{__html:EK}}),y.jsx("script",{dangerouslySetInnerHTML:{__html:AX}}),e,y.jsx(fB,{})]})]})}function jX(){const{queryClient:e}=Fe.useRouteContext(),t=xR({select:n=>n.status});return E.useEffect(()=>{if(t==="pending")return;let n=!1;const s=()=>
233{if(n)return;const i=document.querySelector("main");if(i&&(i.querySelector("section, article, h1")||i.textContent.trim().length>200)){document.documentElement.dataset.appState="ready";return}requestAnimationFrame(s)};return s(),()=>{n=!0}},[t]),y.jsx(WB,{client:e,children:y.jsx(_X,{children:y.jsxs("div",{className:"flex min-h-screen flex-col",children:[y.jsx(vG,{}),y.jsx("main",{className:"flex-1 min-h-[50vh]",children:y.jsx(wR,{})}),y.jsx(WK,{}),y.jsx(dq,{}),y.jsx(JK,{}),y.jsx(rX,{}),y.jsx(hX,{}),y.jsx(bX,{}),y.jsx(kX,{})]})})})}const NX="modulepreload",IX=function(e){return"/"+e},KE={},Ke=function(t,n,s){let i=Promise.resolve();if(n&&n.length>0){let f=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");i=f(n.map(h=>{if(h=IX(h),h in KE)return;KE[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":NX,p||(b.as="script"),b.crossOrigin="",b.href=h,u&&b.setAttribute("nonce",u),document.head.appendChild(b),p)return new Promise((w,x)=>{b.addEventListener("load",w),b.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return i.then(l=>{for(const u of l||[])u.status==="rejected"&&o(u.reason);return t().catch(o)})},ho="https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/case-study-images",br="https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/Company%20logos",PX={slug:"ima",title:"IMA Financial Group: Copilot Discovery & Summit Enablement",company:"IMA Financial Group",companyLogo:`${br}/IMA_Gardner_BLUE.webp`,category:"Insurance",date:null,readTime:null,industry:"Insurance / Financial Services",services:["Discover","Train"],timeline:"4 weeks",image:`${ho}/Case%20study%20IMA.png`,headline:"IMA Financial Group: Copilot Discovery & Summit Enablement",intro:"How we shadowed four IMA producers, turned their real workflows into live demos, and got a room full of producers asking to start.",background:{heading:"Background",body:"IMA Financial Group is one of the largest privately held insurance brokerages in the country, with hundreds of retail producers. They had just recently decided to begin adopting AI into their organization and were already equipped with Microsoft 365 and Copilot licenses, but adoption had stalled. Producers knew the access was there; they just didn't have time to learn a new tool while staying focused on their clients and day-to-day responsibilities. Our job was to work with the team and show the broader group how Copilot can give time back, not take it away. That summit kicked off a broader program that included [AI Producer Trainings](/case-studies/ima-ai-producer-training) and a [Power User Cohort](/case-studies/ima-power-user-cohort)."},whatWeDid:{heading:"What We Did",body:`Ahead of IMA's company summit, we ran ride-along shadowing sessions with four producers across different lines of business and experience levels. We mapped each producer's real day: where the hours went, which systems they worked across (Salesforce, Outlook, OneNote, Excel, ZoomInfo), and exactly where AI could save time.
234
235From that, we built and delivered:`,bullets:["A library of 30+ production-ready prompts tied to real producer tasks","7 Copilot training guides covering the Microsoft 365 suite","An AI readiness assessment and a three-phase rollout plan","5 live use-case demos presented on stage at the summit, with top producers as champions"]},results:{heading:"Impact",body:`The use cases were presented live, and over 500 producers in the audience immediately saw the value that Copilot brought and wanted to learn more. Morning briefing prep dropped from 30-45 minutes to under 2 minutes. Prospect research went from hours per batch to under 10 minutes. We cataloged and prioritized 45+ use cases across their workflows.
236
237This engagement laid the foundation for the [AI Producer Trainings](/case-studies/ima-ai-producer-training) that followed, first showing the organization the value of AI, then laying out the roadmap for how to use it safely and efficie
237ntly. That work continued with the [Power User Cohort](/case-studies/ima-power-user-cohort), a graduating coaching track for producers ready to go further on their own books of business.`},quote:{text:"At this stage in my career, finding time to truly understand AI hasn't been easy. Most of my early progress came through trial and error. Having a dedicated team like Wyecliff available for focused 30 to 45-minute sessions changed that. He helped me identify practical use cases and apply them in ways that have improved my day-to-day efficiency. It has been an invaluable way to accelerate my learning curve. Turns out you can teach an old dog new tricks.",author:"Jonathan Schreter",role:"Executive Vice President, IMA",logo:`${br}/IMA_Gardner_BLUE.webp`,headshot:null},statsHeading:"By the Numbers",stats:[{value:"95% less time",label:"On morning briefings (45 minutes down to under 2)"},{value:"45+",label:"AI use cases identified and prioritized"},{value:"500+",label:"Producers reached in live summit demos"},{value:"3 to 5 hrs/week",label:"Recoverable per producer (estimated)"}],software:"Microsoft 365, Microsoft Copilot, Salesforce, ZoomInfo, OneNote"},MX={slug:"kenny",title:"Kenny Electric: AI Contract & Spec Review Platform",company:"Kenny Electric",companyLogo:`${br}/Kenny%20electric%20logo%201.png`,category:"Construction",date:null,readTime:null,industry:"Construction (Electrical Contractor)",services:["Build"],timeline:"In production",image:`${ho}/Case%20study%20Kenny.png`,headline:"Kenny Electric: AI Contract & Spec Review Platform",intro:"How we built a dedicated platform that turns 50-page GC subcontracts into prioritized redlines in minutes, on the company's own secure infrastru
237cture.",background:{heading:"Background",body:`Kenny Electric is an industrial and commercial electrical contractor founded in 1974, with more than 300 professionals across Colorado and Wyoming.
238
239Like every specialty trade contractor, their estimating team works against two stacks of paper on every job. First, long, dense subcontracts from general contractors, often 50 to 60 pages, where risk hides in familiar-sounding clauses: broad-form indemnity, pay-when-paid, one-sided termination, prime-contract flow-downs. Second, the construction spec books, which can run thousands of pages and have to be reconciled against the contract scope before a bid goes out. Both land with a tight window to review them, and catching what matters has always relied on a small group of experienced reviewers whose knowledge is hard to scale. The fastest shortcut, pasting all of that into a public AI tool like ChatGPT, means putting confidential, proprietary documents somewhere they should never go.`},whatWeDid:{heading:"What We Did",body:`We built Kenny Electric a dedicated contract and spec review platform that runs on their own isolated infrastructure, so their documents and data never leave their environment or get fed into a public AI tool.
240
241The spec side gets the same treatment, and for an estimating team that is just as big a lift. The platform ingests a full construction spec book, parses it into its CSI divisions and sections, and makes it searchable in plain language. A reviewer can ask something like "what does Division 26 say about conductor type?" and get a cited answer in seconds instead of paging through hundreds of pages. It runs the spec against a trade-specific checklist of more than a hundred questions, flags the findings, and builds a responsibility matrix, so the team can reconcile what the contract obligates them to do against what the specs actually require before the bid goes out.
242
243Every review, contract or spec, is logged. Past decisions and master agreements stay searchable for the next one, and the company's positions live in an editable playbook instead of in a few people's heads.
244
245On the contract side, the platform turns a manual, hours-long review into a repeatable process:`,bullets:["A team member uploads a contract, tied to its project and customer","The platform parses it into clauses and analyzes each one against Kenny's own playbook of acceptable terms and hard limits","It returns a risk score, prioritized findings by severity, and suggested, surgical redlines, each citing the specific contract language and the playbook rule behind it","The team accepts or rejects each suggestion, adds comments, runs it through an approval workflow, and exports a negotiation-ready marked-up document, with an option to push it to SharePoint"]},results:{heading:"Impact",body:`In 3 months, the platform has handled 44 contracts and 43 spec books across 16 projects, with 30 active users on the team. By its own tracking, that is roughly 88 hours saved on contract review and 129 on spec review, with the spec side being the bigger lift, for more than 200 hours back to the estimating team on work that used to eat into tight bid windows.
246
247More important than the hours is the consistency. Every review now runs against the same playbook, so the company's positions are applied the same way whether or not a senior reviewer is in the room, and risk is visible before signature instead of after. Because the platform runs on Kenny's own isolated infrastructure, the team gets all of this without ever putting a confidential GC contract into a public AI tool.
248
249The platform worked well enough at Kenny that we productized it. It now runs for other trade contractors on the same model: a dedicated, fully data-isolated instance per company. See how [Uihlein Electric](/case-studies/uihlein) adopted the same stack, or try the [AI Contract and Spec Review Platform](/solution-playground/contract-risk-analysis) in Solutions Playground.`},quote:{text:"We were buried in GC contracts and thousand-page specs, and the bid windows never got any longer. Wyecliff built us a review platform that runs on our own infrastru
249cture, so confidential documents stay with us. The team is reviewing real contracts against our playbook now, and the hours we used to burn on manual review are going back into estimating. It just fits how we work.",author:"Rob Cheney",role:"Chief Operating Officer, Kenny Electric",logo:`${br}/Kenny%20electric%20logo%201.png`,headshot:null},statsHeading:"By the Numbers",stats:[{value:"200+ hours",label:"Saved across contract and spec review in the first 3 months"},{value:"87 documents",label:"44 contracts and 43 spec books reviewed across 16 projects"},{value:"30 active users",label:"Across the estimating and review team"},{value:"Minutes, not hours",label:"To turn a 50-page subcontract into prioritized redlines"}],software:"Custom Wyecliff platform, Anthropic Claude, Microsoft Word, SharePoint"},DX={slug:"uihlein",title:"Uihlein Electric: AI Contract & Spec Review Platform",company:"Uihlein Electric",companyLogo:null,category:"Construction",date:null,readTime:null,industry:"Construction (Electrical Contractor)",services:["Build"],timeline:"Deployed, early use",image:`${ho}/Case%20study%20Uihlein.png`,headline:"Uihlein Electric: AI Contract & Spec Review Platform",intro:"How we stood up a [proven contract and spec review platform](/case-studies/kenny) for a century-old electrical contractor, customized to their playbook and running on their own secure infrastru
249cture.",background:{heading:"Background",body:`Uihlein Electric is a Milwaukee-area electrical contractor founded in 1911, originally wiring the Schlitz Brewery and, in the century since, much of the city, from American Family Field and Harley-Davidson to Rockwell Automation and the Potawatomi Hotel and Casino. Today the Brookfield, Wisconsin firm handles electrical, data/comm, building automation, and energy work across the region.
250
251Their estimating team faces the same crunch every specialty trade contractor does. Long, dense subcontracts arrive from general contractors, often 50 to 60 pages, with risk buried in familiar-sounding clauses, and they come paired with construction spec books that can run thousands of pages and have to be reconciled against the contract scope before a bid goes out. The review window is tight, and pasting confidential documents into a public AI tool was never an option worth the risk.`},whatWeDid:{heading:"What We Did",body:`Rather than build from scratch, we forked our [proven contract and spec review platform](/case-studies/kenny), the same one already running in production for another electrical contractor, and customized it to Uihlein's playbook, brand, and workflow. They got a battle-tested tool on day one, running on their own isolated infrastructure so their documents never leave their environment.
252
253Specs get the same treatment. The platform ingests a full spec book, parses it into its CSI divisions and sections, and makes it searchable in plain language, so a reviewer can ask a direct question and get a cited answer in seconds instead of paging through hundreds of pages. It runs the spec against a trade-specific checklist of more than a hundred questions and builds a responsibility matrix, reconciling what the contract obligates them to do against what the specs actually require. We are also building a drawing-to-spec comparison that flags conflicts between drawing notes and the spec book.
254
255On the contract side, the platform turns a manual, hours-long review into a repeatable process:`,bullets:["A team member uploads a contract, tied to its project and customer","The platform parses it into clauses and analyzes each one against Uihlein's own playbook of acceptable terms and hard limits","It returns a risk score, prioritized findings by severity, and suggested, surgical redlines, each citing the specific contract language and the playbook rule behind it","The team accepts or rejects each suggestion, then exports a negotiation-ready marked-up document with full Word track-changes formatting, inline strikethroughs, replacement text, and margin comments, in the exact format their GC review process expects"]},results:{heading:"Impact",body:`Because Uihlein started on a [platform already proven in production](/case-studies/kenny) rather than a pilot, the team was reviewing real contracts from day one, with the same data isolation and playbook-driven consistency the system was built for. The same platform has saved [a peer electrical contractor](/case-studies/kenny) more than 200 hours of review time, the benchmark Uihlein is now working from.
256
257The clearest sign of buy-in is that the team is making the tool their own. They have already added more than 10 of their own questions to the spec playbook, shaping how the platform reviews their work rather than just trying it out. With contract review now handled in-house against their own standards, they have reduced their reliance on outside counsel for standard agreements.
258
259Try the same workflow on sample documents in the [AI Contract and Spec Review Platform](/solution-playground/contract-risk-analysis) on Solutions Playground.`},quote:null,statsHeading:"By the Numbers",stats:[{value:"Day one",label:"Reviewing real contracts on a proven platform, not a pilot"},{value:"10+ questions",label:"Added to their own spec playbook already"},{value:"In-house",label:"Standard contract review handled against their own playbook, reducing outside counsel"},{value:"Since 1911",label:"A century-old contractor now reviewing contracts with AI"}],software:"AWS Amplify, Supabase, Docker, ECS, Anthropic Claude, Microsoft Word, SharePoint"},LX={slug:"bsn",title:"Blue Skies Nursing: Lead Automation & Intake System",company:"Blue Skies Nursing",companyLogo:`${br}/BSN%20logo%201.png`,category:"Healthcare",date:null,readTime:null,industry:"Healthcare (In-Home Nursing & Therapy)",services:["Build"],timeline:"2026",image:`${ho}/Case%20study%20BSN.png`,headline:"Blue Skies Nursing: Lead Automation & Intake System",intro:"How we built an automated pipeline that captures and qualifies inquiries and carries new clients from first contact through onboarding.",background:{heading:"Backgroun
259d",body:`Blue Skies Nursing is a concierge in-home nursing and therapy provider based in Steamboat Springs, Colorado, delivering one-on-one, customized care to clients of all ages, wherever they are, at home, on vacation, or in a hotel.
260
261As their reputation grew, inquiries came in steadily from their website, ads, and word of mouth. The team wanted every person to get a fast, thoughtful response, but intake still relied on manual steps spread across a few tools. Tracking follow-up, understanding what kind of care someone needed, and knowing where each inquiry stood took time that pulled the clinical team away from the work they do best.`},whatWeDid:{heading:"What We Did",body:`We built an automated intake and onboarding pipeline that takes over the moment someone reaches out.
262
263The whole pipeline runs on automated workflows wired into their website, questionnaire, CRM, and ShiftCare, so a lead goes from first inquiry to a tracked, qualified, onboarding client without anyone having to remember to move them along.`,bullets:["When a prospective client fills out the intake questionnaire on the site, the system instantly creates their record 
263in the CRM, with no manual entry. It even captures partial submissions, so a half-finished inquiry is never lost.","It checks for an existing record first to avoid duplicates, assigns an owner, files every answer about the care they or their loved one needs, and sets their status so the team knows exactly where they stand.","AI reads the raw questionnaire answers and turns them into a clean, scannable summary with suggested next steps, framed as operational actions like scheduling and callbacks, never medical advice, so the team starts from an organized brief instead of a wall of form fields.","From there, the inquiry moves through the onboarding journey automatically, with a dedicated automation for each stage: post-consultation update, home visit scheduling, and care planning. Their answers route them down the right path and advance their status at every step.","When a lead converts to a client, a client account is created automatically in ShiftCare, the platform Blue Skies runs scheduling and care on, with their details carried straight over so nothing has to be re-keyed."]},results:{heading:"Impact",body:`Every inquiry is now captured and qualified the moment it arrives, instead of living in inboxes and across a few people's notes. The team no longer spends the day on data entry and triage; AI hands them an organized brief with suggested next steps, the pipeline tracks each person's status from first contact through care planning, and each new client lands in ShiftCare automatically with no double entry.
264
265By the system's own tracking, it saves on the order of an hour of manual handling per inquiry. For a small clinical team, that means more time on care, faster follow-up while interest is still warm, and fewer good leads slipping through the cracks.`},quote:{text:"Growing a care company means sales and onboarding pile up fast. Wyecliff helped us build the CRM and intake flow so leads stop living in inboxes and new clients get into care without the double entry. It took a lot of admin off my team's plate, and the process finally feels like it matches how we want to treat people.",author:"Shani Bohlin",role:"Founder and CEO, Blue Skies Nursing",logo:`${br}/BSN%20logo%201.png`,headshot:null},statsHeading:"By the Numbers",stats:[{value:"~1 hour",label:"Saved per inquiry on manual handling and triage"},{value:"Every inquiry",label:"Captured and qualified the moment it arrives"},{value:"Zero re-keying",label:"New clients synced to ShiftCare automatically"},{value:"End to end",label:"From website intake through care planning in one pipeline"}],software:"n8n, Typeform, Monday.com, OpenAI, ShiftCare"},BX={slug:"bsn-claude-rollout",title:"Blue Skies Nursing: Claude Rollout & Documentation Build",company:"Blue Skies Nursing",companyLogo:`${br}/BSN%20logo%201.png`,category:"Healthcare",date:null,readTime:null,industry:"Healthcare (In-Home Nursing & Therapy)",services:["Deploy","Train","Build"],timeline:"2026",image:`${ho}/Case%20study%20BSN.png`,headline:"Blue Skies Nursing: Claude Rollout & Documentation Build",intro:"How we rolled out and trained an entire care team on Claude in a compressed timeline, then put it straight to work drafting the documentation they needed.",background:{heading:"Background",body:`Blue Skies Nursing is a concierge in-home nursing and therapy provider in Steamboat Springs, Colorado, delivering one-on-one care to clients of all ages.
266
267They were working toward a certification that called for getting their whole team trained and a full set of policies and documentation in place, on a tight timeline. As a small, hands-on care team, they needed to move quickly and could not afford to pull people away from clients for weeks to write everything by hand.`},whatWeDid:{heading:"What We Did",body:"We ran a fast, focused Claude rollout built for a small team that needed results in days, not months.",bullets:["We deployed Claude across the whole team and ran an accelerated training on the fundamentals: how to use it well, and just as importantly, how to use it safely. We covered responsible use, data privacy, and keeping sensitive or protected information out of AI tools, which matters in any healthcare setting.",'We built a "Blue Skies Nursing brain," a Claude project grounded in their business, their standards, and their voice, so anything the team created with it came out consistent and specific to them rather than generic.',"We put it straight to work on the documentation they needed, using Claude to help draft and refine policies, handbooks, care-plan templates, and related materials, with the team reviewing and finalizing every document."]},results:{heading:"Impact",body:`In a fraction of the time it would have taken to write everything from scratch, the team produced the body of documentation they needed and got comfortable using Claude safely in their daily work. Because the "Blue Skies Nursing brain" holds their standards and voice, new policies and documents come out consistent and on-brand, drafted in minutes with a person always reviewing and approv
267ing the final version.
268
269For a small care team, the most important part is that none of it required taking people off the floor for long. They moved through a demanding timeline with a tool they continue to use well after the rollout.`},quote:{text:"Growing a care company means sales and onboarding pile up fast. Wyecliff helped us build the CRM and intake flow so leads stop living in inboxes and new clients get into care without the double entry. It took a lot of admin off my team's plate, and the process finally feels like it matches how we want to treat people.",author:"Shani Bohlin",role:"Founder and CEO, Blue Skies Nursing",logo:`${br}/BSN%20logo%201.png`,headshot:null},statsHeading:"By the Numbers",stats:[{value:"Days, not months",label:"Compressed rollout and documentation timeline for the whole team"},{value:"Whole team",label:"Trained on Claude fundamentals, privacy, and safe use"},{value:"On-brand docs",label:"Policies and templates drafted through the Blue Skies Nursing brain"},{value:"Still in use",label:"Claude stays in daily work after the rollout finished"}],software:"Claude"},UX={slug:"wyecliff-marketing-command-center",title:"Wyecliff: Marketing Command Center",company:"Wyecliff",companyLogo:`${br}/Wyecliff%20logo.png`,category:"Internal",date:null,readTime:null,industry:"Internal Tool / AI Implementation",services:["Build"],timeline:"2026",image:`${ho}/Case%20studies%20Wyecliff.png?v=20260709`,headline:"Wyecliff: Marketing Command Center",intro:"How we built our own marketing dashboard, one authenticated app that pulls every channel into a single monthly view.",background:{heading:"Background",body:`Wyecliff is an AI implementation firm. A lot of what we do for clients is consolidate scattered tools and manual work into a single source of truth, so we hold ourselves to the same standard.
270
271Our own marketing ran across a pile of platforms: an email tool, website analytics, Google Ads, Meta Ads, LinkedIn Ads, Google Search Console, Semrush, and LinkedIn. Getting a clear read on how a given month was going meant logging into eight-plus tools and stitching the numbers together by hand, every time. So we built the thing we would have built for a client: one place that answers a single question, how is our marketing performing this month, across every channel?`},whatWeDid:{heading:"What We Did",body:"We built an internal marketing dashboard, a single authenticated web app that pulls every channel into one view.",bullets:["An executive overview with top KPIs, six-month sparklines, month-over-month comparisons, and a channel summary table, plus ad-spend charts, goal progress, and a team LinkedIn leaderboard, the whole month at a glance","Channel deep-dive pages for email, website traffic, Google Ads, Meta Ads, LinkedIn Ads, organic search (Search Console plus Semrush keyword rankings), and social, for when someone needs to go past the summary","A goals page that compares monthly targets to actuals and projects where each metric will land by month-end based on how much of the month has elapsed, with on-track, at-risk, and needs-attention flags","A global month selector that filters every page at once, including future months, so we can set and plan targets ahead of time","An admin page for entering metrics by hand wherever an automated feed is not yet wired up"]},results:{heading:"Impact",body:`The monthly marketing review that used to mean hopping between eight-plus tools now happens in one place. Leadership pulls up the overview and goals for the monthly review, operators drop into the channel pages for detail, and everyone works from the same numbers instead of a stitched-together spreadsheet. The goals view turns targets into a live, projected read on where the month will land, so course corrections happen mid-month instead of after.
272
273Just as valuable, it is proof of our own approach. This is exactly the kind of consolidation-and-visibility build we do for clients, done for ourselves. When we tell a client we can pull their scattered channels into one clean, goal-tracked view, we are showing them something we already run every day. Explore the same layout in the [Marketing Dashboard](/solution-playground/marketing-d
273ashboard) on Solutions Playground, see also [TimeHarmony](/case-studies/wyecliff-timeharmony), and how we approach [custom AI builds](/services/build).`},quote:null,statsHeading:"By the Numbers",stats:[{value:"8+ channels",label:"Email, web, paid search, paid social, organic, and LinkedIn in one view"},{value:"One place",label:"The full monthly marketing review, no more spreadsheet stitching"},{value:"Mid-month",label:"Course corrections from projected month-end goal landing"},{value:"Production-grade",label:"React, TypeScript, Supabase, auth, and a full CI pipeline"}],software:"React, TypeScript, Supabase (Postgres and Auth), Recharts, Tailwind, plus feeds from email, web analytics, Google/Meta/LinkedIn Ads, Google Search Console, Semrush, and LinkedIn"},zX={slug:"wyecliff-timeharmony",title:"Wyecliff: TimeHarmony",company:"Wyecliff",companyLogo:`${br}/Wyecliff%20logo.png`,category:"Internal",date:null,readTime:null,industry:"Internal Tool / AI Implementation",services:["Build"],timeline:"2026",image:`${ho}/Case%20studies%20Wyecliff.png?v=20260709-th`,headline:"Wyecliff: TimeHarmony",intro:"How we built our own AI-assisted time and budget system, so our team barely touches timesheets and clients never pay for the paperwork.",background:{heading:"Background",body:`Wyecliff is an AI implementation firm. A lot of what we do for clients is turn scattered tools and manual work into a single source of truth, so we hold ourselves to the same standard.
274
275This one had a specific belief behind it: clients should not be paying billable hours for our team to fill out timesheets, and our people should not be losing valuable time to time tracking either. But our own time and project economics lived across a few systems plus whatever people remembered to enter by hand. There was no reliable way to see billable versus admin time, watch project budgets in real time, or catch overruns before invoicing. Managers could not see unsubmitted time, and Friday project reporting meant stitching numbers together instead of reading one dashboard.
276
277So we built the thing we would have built for a client: one authenticated system where time is captured as you work, reviewed against estimate phases, and rolled up against project budgets, with AI doing the parts that used to eat people's time.`},whatWeDid:{heading:"What We Did",body:"We built TimeHarmony: a web app plus a Chrome extension that turns everyday browser activity into phase-correct, submit-ready time.",bullets:["Capture as you work. The extension passively tracks activity, domain and page title only, never keystrokes or screen contents, so logging time takes no real effort. It requires a project and phase before tracking starts, so there is no unassigned time, and AI infers the right project and phase from what you are actually doing, even suggesting a switch when the work changes.","Review in minutes, not hours. A timeline lays out the week in simple blocks you can adjust, and a review view rolls everything up by project and phase so submitting time is a quick pass rather than a chore. AI writes plain-language summaries of what happened in a day, week, or month, so the notes write themselves.","Budgets in real time. Every project carries its estimated phases and budgeted hours, and a live budget view shows how actual time is tracking against the estimate, including hours logged but not yet submitted. Overruns show up in the middle of an engagement instead of after the invoice, and managers can review and approve time from the same place.","The whole thing runs on the cadence we actually operate on: time in by end of week, review and approval, then monthly close and invoice handoff.","Under the hood. It is a production build, not a prototype: a React and TypeScript web app, a Chrome extension, and a secure cloud backend, with AI running behind authenticated, rate-limited calls and scheduled syncs that keep it reconciled with our accounting and timesheet systems. Claude handles the project inference, and a second model handles the written summaries."]},results:{heading:"Impact",body:`The weekly time and budget review that used to span several systems and a fair amount of memory now happens in one place. The team captures time as they work and cleans it up in minutes, managers see pe
277nding versus submitted hours and approve without hopping between tools, and leadership can watch budget against estimate mid-engagement instead of after the invoice. Because the phase structure matches the way work was scoped and sold, submitted time lines up with the estimate.
278
279It solved the problem we set out to solve: our people spend almost no time on timesheets, and clients are not paying for us to do administrative work. It is also proof of our approach. Consolidating capture, AI, and back-office systems into one loop is exactly the pattern we build for clients, so when we tell a client we can replace a brittle timesheet stack with something that tracks, reviews, and reconciles to their billing tools, we are describing something we already run every week. See also our [Marketing Command Center](/case-studies/wyecliff-marketing-command-center) and [custom AI builds](/services/build).`},quote:null,statsHeading:"By the Numbers",stats:[{value:"Minutes",label:"Weekly time review instead of hours across tools and memory"},{value:"As you work",label:"Passive capture with project and phase required up front"},{value:"Mid-engagement",label:"Budget versus estimate visible before the invoice"},{value:"Client-safe",label:"Clients are not paying for timesheet paperwork"}],software:"React, TypeScript, Vite, Tailwind, Supabase (Postgres, Auth, RLS, Edge Functions), Chrome Extension (MV3), AWS Amplify, AWS Bedrock (Claude), OpenAI"},VX={ima:PX,kenny:MX,uihlein:DX,bsn:LX,"bsn-claude-rollout":BX,"wyecliff-marketing-command-center":UX,"wyecliff-timeharmony":zX};function mu(e){if(!l0())return VX[e]}function wv(e){const t=e??{};return{heading:gu(t.heading??""),body:gu(t.body??""),bullets:Array.isArray(t.bullets)?t.bullets.filter(Boolean).map(n=>gu(String(n))):void 0}}function gu(e){return e.replace(/\/problems-solved\//g,"/case-studies/")}function $X(e){const t=e.story??{},n=t.quote??null;return{slug:e.slug,title:e.title,company:e.company,companyLogo:t.companyLogo??null,category:t.category??null,date:t.date??null,readTime:t.readTime??null,industry:t.industry??null,services:Array.isArray(t.services)?t.services.filter(Boolean):[],timeline:t.timeline??null,image:t.image??"",headline:gu(t.headline??""),intro:gu(t.intro??""),background:wv(t.background),whatWeDid:wv(t.whatWeDid),results:wv(t.results),quote:n?{text:n.text??"",author:n.author??"",role:n.role??null,logo:n.logo??null,headshot:n.headshot??null}:null,statsHeading:t.statsHeading??null,stats:Array.isArray(t.stats)?t.stats.filter(s=>!!(s&&s.value)).map(s=>({value:String(s.value),label:String(s.label??"")})):[],software:t.software??null}}async function FX(e){if(!l0())try{const{data:t,error:n}=await es.from("case_studies").select("slug, title, company, status, story").eq("slug",e).maybeSingle();if(n||!t)return mu(e);const s=t;return!s.story||s.status==="archive"||s.status&&s.status!=="published"?mu(e):$X(s)}catch{return mu(e)}}const Rne={"broken-misused-software":"Broken or misused software","operational-visibility":"No operational visibility","contract-legal-risk":"Contract & legal risk","theft-asset-loss":"Theft & asset loss","admin-manual-reentry":"Admin & manual re-entry"},HX={discover:{slug:"discover",label:"Discover",path:"/services/discover",tagline:"Discover the highest-return AI use cases"},build:{slug:"build",label:"Build",path:"/services/build",tagline:"Build the custom apps and AI agents behind it"},deploy:{slug:"deploy",label:"Deploy",path:"/services/deploy",tagline:"Deploy AI to production your team trusts"},train:{slug:"train",label:"Train",path:"/services/train",tagline:"Train the enterprise to run it"}},qX={"saving-4000-hours-per":["train"],"from-0-to-2m":["build"],"projecting-499k-in-year-one":["discover"],"saving-10k-monthly-ai-contract":["deploy"],"eliminating-lost-tools-and":["build"],"streamlined-client-sales-and":["build"],"predictive-maintenance-system-to":["build"],"automated-order-processing-and":["build"],"inventory-management-and-job":["build"],"streamlining-outreach-for-a":["build"],"order-fulfillment-management-platform":["build"],ima:["discover","train"],"ima-ai-producer-training":["train"],"ima-power-user-cohort":["train"],"ima-service-enablement":["train"],kenny:["build"],uihlein:["build"],bsn:["build"],"bsn-claude-rollout":["deploy","train","build"],airsan:["build"],"airsan-claude-enablement":["deploy","train","build"],"airsan-business-central":["build"],"ma-science":["build"],dyna:["build"],"wyecliff-marketing-command-center":["build"],"wyecliff-timeharmony":["build"]},WX={discover:"discover",build:"build",deploy:"deploy",train:"train"},GX=["discover","build","deploy","train"];function uI(e){return e.map(t=>WX[t.trim().toLowerCase()]??null).filter(t=>t!==null)}function KX(e){return e?uI(e.split("/")):[]}function dI(e,t){const n=new Set;for(const i of qX[e]??[])n.add(i);const s=mu(e);
279if(s?.services?.length)for(const i of uI(s.services))n.add(i);for(const i of KX(t))n.add(i);return[...n]}function One(e,t){const s=dI(e,t)[0];return s?HX[s]:null}const Vt="https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/case-study-videos",Fs="/case-studies",Dn="https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/case-study-images",E0=[{slug:"saving-4000-hours-per",title:"Saving 4,000+ Hours Per Week with Enterprise AI Enablement",company:"National Insurance Brokerage",industry:"Financial Services",featuredIndustries:["Financial Services","Insurance"],problemCategory:"broken-misused-software",benefitHook:"Saving 4,000+ hours per week with enterprise AI enablement across 500+ producers",description:"A national financial services firm with 500+ producers unlocked massive time savings by structuring AI adoption around real workflows instead of generic training.",image:`${Fs}/saving-4000-hours-per.jpg`,videoUrl:`${Vt}/saving-4000-hours-per.mp4`,featuredVideoUrl:`${Vt}/saving-4000-hours-per-featured.mp4`,featured:!0,displayOrder:2,results:["95% time saved on morning briefings","45+ AI use cases identified","500+ producers presented to","100-150 FTE-equivalent hours recoverable","3-5 hours/week saved per employee"],annualRoi:"Estimated 4,000-6,000 hours/week recovered",timeline:"2 weeks"},{slug:"from-0-to-2m",title:"From $0 to $2M in Revenue: Building a Healthcare Startup's Operational Backbone",company:"Home Healthcare Startup",industry:"Healthcare",featuredIndustries:["Healthcare","Home Nursing","Startups"],problemCategory:"operational-visibility",benefitHook:"From $0 to $2M in revenue with a full operational backbone built from day one",description:"A home healthcare startup needed more than clinical expertise to scale. We built the operational, financial, and compliance infrastructure that took the company from launch to $2M in annual revenue in two years.",image:`${Fs}/from-0-to-2m.jpg`,videoUrl:`${Vt}/from-0-to-2m.mp4`,featuredVideoUrl:`${Vt}/from-0-to-2m-featured.mp4`,featured:!0,displayOrder:2,results:["$2M revenue in Year 2","~80% payroll time reduction","100% CDPHE compliance","~70% faster nurse onboarding"],annualRoi:"$2M annual revenue by Year 2",timeline:"Ongoing (2+ years)"},{slug:"projecting-499k-in-year-one",title:"Projecting $499K in Year-One ROI with Sales CRM and AI Automation",company:"High-Growth General Contractor",industry:"Construction",featuredIndustries:["Construction","Sales"],problemCategory:"broken-misused-software",benefitHook:"Projecting $499K in year-one ROI with CRM migration and AI-powered sales automation",description:"A high-growth general contractor needed its technology stack to keep pace with rapid revenue growth. We assessed the organization, identified 16 technology initiatives, and designed a Phase 1 implementation projected to deliver a 6.2x return on investment.",image:`${Fs}/projecting-499k-in-year-one.jpg`,videoUrl:`${Vt}/projecting-499k-in-year-one.mp4`,featuredVideoUrl:`${Vt}/projecting-499k-in-year-one-featured.mp4`,featured:!0,displayOrder:3,results:["$499K projected Year 1 ROI","6.2x return on investment","85% reduction in pipeline review prep","16 technology initiatives identified"],annualRoi:"$499,250 projected Year 1 ROI",timeline:"2-week assessment; 6-month Phase 1 implementation"},{slug:"saving-10k-monthly-ai-contract",title:"Saving $10K+ Monthly with AI-Powered Contract Review",company:"Kenny Electric",industry:"Electrical Contracting",featuredIndustries:["Electrical Contracting","Construction"],problemCategory:"contract-legal-risk",benefitHook:"Saving $10K+ monthly with AI-powered contract review and automated risk flagging",description:"A mid-market electrical contractor was managing hundreds of contracts through paper, email, and spreadsheets. We deployed an AI-powered contract intelligence platform that brought centralized review, automated risk flagging, and version comparison.",image:`${Fs}/saving-10k-monthly-ai-contract.jpg`,videoUrl:`${Vt}/saving-10k-monthly-ai-contract.mp4`,featuredVideoUrl:`${Vt}/saving-10k-monthly-ai-contract-featured.mp4`,featured:!0,displayOrder:4,results:["50%+ targeted reduction in review time","2x targeted contract throughput","30 days from kickoff to go-live","Near-zero targeted missed clauses","Only $200 / month to run, no user limit"],annualRoi:"$120,000+ projected annual savings",timeline:"30 days from kickoff to go-live"},{slug:"eliminating-lost-tools-and",title:"Eliminating Lost Tools and Manual Ordering with Microsoft-Native Apps",company:"National Electrical Contractor (EMCOR Company)",industry:"Electrical Contracting",featuredIndustries:["Electrical Contracting","Construction"],problemCategory:"theft-
279asset-loss",benefitHook:"Saving 13+ hours per week and eliminating tool loss with Microsoft-native custom apps",description:"A national electrical contractor managing thousands of tools across dozens of jobsites replaced paper-based tracking and ad hoc ordering with custom Power Apps solutions, saving 13+ hours per week and reducing tool loss from day one.",image:`${Fs}/eliminating-lost-tools-and.jpg`,videoUrl:`${Vt}/eliminating-lost-tools-and.mp4`,featuredVideoUrl:`${Vt}/eliminating-lost-tools-and-featured.mp4`,featured:!0,displayOrder:5,results:["13+ hours saved per week","Thousands of tools now digitally tracked","Tool app built in 60 hours","$27K+ annual labor savings"],annualRoi:"$27,000+ annual labor savings (tool app alone)",timeline:"Tool App: 60 hours; Materials Platform: 6-8 weeks"},{slug:"streamlined-client-sales-and",title:"Streamlined Client Sales and Onboarding",company:"Blue Skies Nursing",industry:"Home Health",featuredIndustries:["homehealth"],problemCategory:"admin-manual-reentry",benefitHook:null,description:"We built out Blue Skies Nursing's CRM and sales cycle from the ground up for a growing nursing company. Reduced admin hours and improved the client onboarding experience using AI and automation.",image:`${Fs}/streamlined-client-sales-and.jpg`,videoUrl:`${Vt}/streamlined-client-sales-and.mp4`,featuredVideoUrl:`${Vt}/streamlined-client-sales-and-featured.mp4`,featured:!0,displayOrder:7,results:["Automated email follow-ups so no lead or onboarding step gets missed","Automated data entry across systems to eliminate repetitive manual work","Reduced admin hours and removed bottlenecks from the onboarding workflow","Improved visibility into onboarding status with clear ownership and next steps","New nurses start their first shift feeling confident, not confused"],annualRoi:null,timeline:"4 weeks"},{slug:"predictive-maintenance-system-to",title:"Predictive Maintenance System to Reduce Downtime",company:"Apex Systems",industry:"manufacturing",featuredIndustries:["manufacturing"],problemCategory:"operational-visibility",benefitHook:null,description:"Predictive maintenance automation minimized equipment failures and improved uptime across the production floor.",image:`${Fs}/predictive-maintenance-system-to.jpg`,videoUrl:`${Vt}/predictive-maintenance-system-to.mp4`,featuredVideoUrl:`${Vt}/predictive-maintenance-system-to-featured.mp4`,featured:!0,displayOrder:null,results:["40% reduction in unplanned downtime","30% reduction in maintenance costs","Improved equipment lifespan","Production schedule reliability increased to 98%"],annualRoi:null,timeline:"12 weeks"},{slug:"automated-order-processing-and",title:"Automated Order Processing and Routing System",company:"Premier Logistics",industry:"logistics",featuredIndustries:["logistics"],problemCategory:"broken-misused-software",benefitHook:null,description:"Automated order routing and tracking improved delivery efficiency and gave customers real-time visibility for the first time.",image:`${Fs}/automated-order-processing-and.jpg`,videoUrl:`${Vt}/automated-order-processing-and.mp4`,featuredVideoUrl:`${Vt}/automated-order-processing-and-featured.mp4`,featured:!0,displayOrder:null,results:["55% faster order processing time","30% reduction in shipping errors","Real-time order tracking for customers","25% improvement in on-time delivery rates"],annualRoi:null,timeline:"9 weeks"},{slug:"inventory-management-and-job",title:"Inventory Management and Job Costing Platform",company:"Liberty Painting",industry:"construction",featuredIndustries:["construction"],problemCategory:"broken-misused-software",benefitHook:null,description:"Automated inventory management and job costing reduced overhead and gave the team accurate, real-time visibility into job profitability.",image:`${Fs}/inventory-management-and-job.jpg`,videoUrl:`${Vt}/inventory-management-and-job.mp4`,featuredVideoUrl:`${Vt}/inventory-management-and-job-featured.mp4`,featured:!0,displayOrder:null,results:["35% reduction in overhead costs","25% improvement in job profitability","40% reduction in inventory waste","Accurate real-time job costing"],annualRoi:null,timeline:"6 weeks"},{slug:"streamlining-outreach-for-a",title:"Streamlining Outreach for a Custom Apparel Company",company:"Benjamin Bowers",industry:"manufacturing",featuredIndustries:["manufacturing"],problemCategory:"admin-manual-reentry",benefitHook:null,description:"Automated lead generation and sales outreach for a custom apparel manufacturer. New business flows in without distracting production.",image:`${Fs}/streamlining-outreach-for-a.jpg`,videoUrl:`${Vt}/streamlining-outreach-for-a.mp4`,featuredVideoUrl:`${Vt}/streamlining-outreach-for-a-featured.mp4`,featured:!0,displayOrder:null,results:["Qualified leads flow in without manual prospecting","New clients arrive organized and ready to book","Team reclaimed hours previously spent on sales","Production planning improved with steadier new business"],annualRoi:null,timeline:"5 weeks"},{slug:"order-fulfillment-management-platform",title:"Order Fulfillment & Management Platform",company:"Root To Bloom",industry:"logistics",featuredIndustries:["logistics"],problemCategory:"admin-manual-reentry",benefitHook:null,description:"Full e-commerce website with integrated order management for a book publisher. Tools to reach readers directly and scale the business.",image:`${Fs}/order-fulfillment-management-platform.jpg`,videoUrl:`${Vt}/order-fulfillment-management-platform.mp4`,featuredVideoUrl:`${Vt}/order-fulfillment-management-platform-featured.mp4`,featured:!0,displayOrder:null,results:["Professional online presence under their own brand","Direct sales channel with no third-party fees","Centralized order management and fulfillment","Increased sales and revenue within months"],annualRoi:null,timeline:"3 weeks"},{slug:"ima",title:"IMA Financial Group: Copilot Discovery & Summit Enablement",company:"IMA Financial Group",industry:"Insurance",featuredIndustries:["Insurance","Financial Services"],problemCategory:"broken-misused-software",benefitHook:"Copilot discovery and summit enablement for 500+ insurance producers",description:"How we shadowed four IMA producers, turned their real workflows into live demos, and got a room full of producers asking to start.",image:`${Dn}/Case%20study%20IMA.png`,videoUrl:null,featuredVideoUrl:null,featured:!0,displayOrder:2,results:["95% less t
279ime on morning briefings","45+ AI use cases identified and prioritized","500+ producers reached in live summit demos","3 to 5 hrs/week recoverable per producer"],annualRoi:"Discover / Train",timeline:"4 weeks"},{slug:"ima-ai-producer-training",title:"IMA Financial Group: AI for Producers Training Series",company:"IMA Financial Group",industry:"Insurance",featuredIndustries:["Insurance","Financial Services"],problemCategory:"broken-misused-software",benefitHook:"A multi-week AI training series that gave 500+ producers a working Copilot foundation",description:"How we built on the summit's momentum with a multi-week series that gave 500+ producers a strong AI foundation and the working tools to use Copilot in their day-to-day.",image:`${Dn}/Case%20study%20IMA.png`,videoUrl:null,featuredVideoUrl:null,featured:!1,displayOrder:3,results:["500+ producers trained across the series","4.6 / 5 average producer rating","Reusable recordings, decks, and prompt libraries","Blueprint for IMA's service-division AI program"],annualRoi:"Train",timeline:"2026"},{slug:"ima-power-user-cohort",title:"IMA Financial Group: Power User Cohort",company:"IMA Financial Group",industry:"Insurance",featuredIndustries:["Insurance","Financial Services"],problemCategory:"broken-misused-software",benefitHook:"A graduating power-user cohort that scales internal Copilot champions across IMA",description:"How we built an internal group of Copilot power users inside IMA, meeting each producer where they were and giving them a support system to keep growing.",image:`${Dn}/Case%20study%20IMA.png`,videoUrl:null,featuredVideoUrl:null,featured:!1,displayOrder:4,results:["12-15 producers per concurrent cohort wave","~8 weeks from kickoff to graduation","5-6 producers in each coaching group","Documented roadmap for leadership on next AI investments"],annualRoi:"Train / Build",timeline:"2026"},{slug:"ima-service-enablement",title:"IMA Financial Group: Service Division AI Enablement",company:"IMA Financial Group",industry:"Insurance",featuredIndustries:["Insurance","Financial Services"],problemCategory:"broken-misused-software",benefitHook:"Structured Copilot enablement for ~2,500 service staff across two license tiers",description:"How we brought structured Copilot training to roughly 2,500 service staff across two license tiers, then layered discovery, a power-user cohort, and train-the-trainer to make it stick.",image:`${Dn}/Case%20study%20IMA.png`,videoUrl:null,featuredVideoUrl:null,featured:!0,displayOrder:1,results:["~2,500 service staff reached across Employee Benefits and P&C","Two six-week tracks, one per Copilot license tier","1,000+ live attendees each week","Prioritized, vetted AI roadmap delivered to leadership"],annualRoi:"Train / Discover / Build",timeline:"2026"},{slug:"uihlein",title:"Uihlein Electric: AI Contract & Spec Review Platform",company:"Uihlein Electric",industry:"Construction",featuredIndustries:["Construction","Electrical Contracting"],problemCategory:"contract-legal-risk",benefitHook:"A proven contract and spec review platform, customized to a century-old contractor's playbook",description:"How we stood up a proven contract and spec review platform for a century-old electrical contractor, customized to their playbook and running on their own secure infrastru
279cture.",image:`${Dn}/Case%20study%20Uihlein.png`,videoUrl:null,featuredVideoUrl:null,featured:!0,displayOrder:5,results:["Live on a platform already proven in production","Reviewing real contracts from day one","10+ of their own questions added to the spec playbook","Reduced reliance on outside counsel for standard agreements"],annualRoi:"Build",timeline:"Deployed, early use"},{slug:"kenny",title:"Kenny Electric: AI Contract & Spec Review Platform",company:"Kenny Electric",industry:"Construction",featuredIndustries:["Construction","Electrical Contracting"],problemCategory:"contract-legal-risk",benefitHook:"Secure AI contract and spec review that gives 200+ hours back to estimating",description:"How we built a dedicated platform that turns 50-page GC subcontracts into prioritized redlines in minutes, on the company's own secure infrastructure.",image:`${Dn}/Case%20study%20Kenny.png`,videoUrl:null,featuredVideoUrl:null,featured:!0,displayOrder:6,results:["200+ hours saved in the first 3 months","44 contracts and 43 spec books reviewed across 16 projects","30 active users across the estimating team","Runs on Kenny's own isolated, data-private infrastructure"],annualRoi:"Build",timeline:"In production"},{slug:"bsn",title:"Blue Skies Nursing: Lead Automation & Intake System",company:"Blue Skies Nursing",industry:"Healthcare",featuredIndustries:["Healthcare","Home Health"],problemCategory:"admin-manual-reentry",benefitHook:"Automated intake that captures every lead and moves clients through onboarding",description:"How we built an automated pipeline that captures and qualifies inquiries and carries new clients from first contact through onboarding.",image:`${Dn}/Case%20study%20BSN.png`,videoUrl:null,featuredVideoUrl:null,featured:!0,displayOrder:8,results:["~1 hour saved per inquiry on manual handling","Every inquiry captured and qualified at arrival","New clients synced to ShiftCare with no double entry","Automated pipeline from website intake through care planning"],annualRoi:"Build",timeline:"2026"},{slug:"bsn-claude-rollout",title:"Blue Skies Nursing: Claude Rollout & Documentation Build",company:"Blue Skies Nursing",industry:"Healthcare",featuredIndustries:["Healthcare","Home Health"],problemCategory:"admin-manual-reentry",benefitHook:"Claude rollout and documentation build on a compressed timeline for the whole care team",description:"How we rolled out and trained an entire care team on Claude in a compressed timeline, then put it straight to work drafting the documentation they needed.",image:`${Dn}/Case%20study%20BSN.png`,videoUrl:null,featuredVideoUrl:null,featured:!1,displayOrder:9,results:["Whole care team trained on Claude fundamentals and safe use","Blue Skies Nursing brain for consistent, on-brand documentation","Policies, handbooks, and care-plan templates drafted in days, not months","Team continues using Claude after rollout without long floor absences"],annualRoi:"Deploy / Train / Build",timeline:"2026"},{slug:"airsan",title:"Airsan Corporation: AI-Native SEO Overhaul",company:"Airsan Corporation",industry:"Manufacturing (Industrial Air Filtration)",featuredIndustries:["Manufacturing"],problemCategory:null,benefitHook:"A full technical SEO overhaul in a third of the time",description:"How we delivered a full technical SEO overhaul in about a third of the usual time using AI-native tools like Cursor, Semrush, and Claude.",image:`${Dn}/Case%20study%20Aisan.png`,videoUrl:null,featuredVideoUrl:null,featured:!1,displayOrder:null,results:["Full technical SEO overhaul delivered in about 10 hours instead of 30","Legacy brand phrase cleared across 37 pages in one release","15 page-two keywords optimized toward page one","Six content clusters mapped for buildout"],annualRoi:"Build",timeline:"2026"},{slug:"airsan-claude-enablement",title:"Airsan Corporation: Company-Wide Claude Enablement",company:"Airsan Corporation",industry:"Manufacturing",featuredIndustries:["Manufacturing"],problemCategory:null,benefitHook:"Company-wide Claude enablement in about six weeks",description:"How we took an 80-year-old manufacturer from zero AI use to a team building its own skills and automations in about six weeks.",image:`${Dn}/Case%20study%20Aisan.png`,videoUrl:null,featuredVideoUrl:null,featured:!1,displayOrder:null,results:["CRM enriched from 27% to full coverage on 1,593 companies","Customer sales analysis built on demand","Automated daily brief across hundreds of accounts","Team building its own skills and automations"],annualRoi:"Deploy / Train / Build",timeline:"2026"},{slug:"airsan-business-central",title:"Airsan Corporation: Business Central ERP Implementation",company:"Airsan Corporation",industry:"Manufacturing",featuredIndustries:["Manufacturing"],problemCategory:null,benefitHook:"AI-accelerated Business Central ERP in about a third of the usual time",description:"How we replaced a dead-end legacy ERP and a sprawl of spreadsheets with one modern finance and manufacturing system, in about a third of the usual timeline.",image:`${Dn}/Case%20study%20Aisan.png`,videoUrl:null,featuredVideoUrl:null,featured:!1,displayOrder:null,results:["Full finance and manufacturing scope in Business Central","Roughly three months of active build vs a traditional nine-month rollout","More than a dozen spreadsheet processes collapsed into one platform","On track for September 1, 2026 go-live"],annualRoi:"Build",timeline:"2026"},{slug:"ma-science",title:"M&A Science: A Custom MCP That Puts a Decade of Deal Expertise Inside Claude",company:"M&A Science",industry:"Professional Education / Mergers & Acquisitions",featuredIndustries:["M&A"],problemCategory:null,benefitHook:"A cited M&A playbook inside Claude for live deal work",description:"How we turned years of M&A podcast interviews into a cited knowledge base that dealmakers can query directly inside Claude, in the middle of a live deal.",image:`${Dn}/Case%20studies%20M%26A.png`,videoUrl:null,featuredVideoUrl:null,featured:!1,displayOrder:null,results:["Financial diligence review in 1 to 2 hours instead of about a week","Topic search across the library in seconds 
279instead of hours of audio","318 queries logged in the first weeks of the MVP","Live on-stage diligence demo at the M&A AI Summit"],annualRoi:"Build",timeline:"2026"},{slug:"dyna",title:"Dynalectric Colorado: Tool Tracking Application",company:"Dynalectric Colorado",industry:"Construction",featuredIndustries:["Construction"],problemCategory:null,benefitHook:"Barcode tool tracking inside Microsoft 365",description:"How we built a simple, barcode-based tool tracking app inside their existing Microsoft environment, so they always know which tools are on which job site.",image:`${Dn}/Case%20study%20DYNA.png`,videoUrl:null,featuredVideoUrl:null,featured:!1,displayOrder:null,results:["Single real-time view of tools across warehouse and job sites","Every checkout traced to a foreman and job site","Missing tools traced to last location and assignment","Runs inside Power Apps and SharePoint with no new platform"],annualRoi:"Build",timeline:"2026"},{slug:"wyecliff-marketing-command-center",title:"Wyecliff: Marketing Command Center",company:"Wyecliff",industry:"Internal Tool",featuredIndustries:["Cross Industry"],problemCategory:"operational-visibility",benefitHook:"One authenticated dashboard that pulls every marketing channel into a single monthly view",description:"How we built our own marketing dashboard, one authenticated app that pulls every channel into a single monthly view.",image:`${Dn}/Case%20studies%20Wyecliff.png?v=20260709`,videoUrl:null,featuredVideoUrl:null,featured:!0,displayOrder:10,results:["Executive overview with KPIs, sparklines, and month-over-month comparisons","Channel deep-dives for email, web, paid search, paid social, organic, and LinkedIn","Goals page with projected month-end landing and on-track flags","Global month selector that filters every page, including future months"],annualRoi:"Build",timeline:"2026"},{slug:"wyecliff-timeharmony",title:"Wyecliff: TimeHarmony",company:"Wyecliff",industry:"Internal Tool",featuredIndustries:["Cross Industry"],problemCategory:"admin-manual-reentry",benefitHook:"AI-assisted time and budget system so the team barely touches timesheets",description:"How we built our own AI-assisted time and budget system, so our team barely touches timesheets and clients never pay for the paperwork.",image:`${Dn}/Case%20studies%20Wyecliff.png?v=20260709-th`,videoUrl:null,featuredVideoUrl:null,featured:!0,displayOrder:11,results:["Passive capture via Chrome extension with project and phase required up front","AI project and phase inference plus plain-language day, week, and month summaries","Live budget versus estimate, including hours logged but not yet submitted","Weekly submit, manager approval, and monthly close in one authenticated system"],annualRoi:"Build",timeline:"2026"}],Jb=["ima-service-enablement","kenny","ima","ima-ai-producer-training","uihlein","ima-power-user-cohort","bsn","bsn-claude-rollout","wyecliff-marketing-command-center","wyecliff-timeharmony","airsan","airsan-claude-enablement","ma-science","dyna"];function Xp(e){return l0()?!1:Jb.includes(e)||!!mu(e)}function YX(e){return!e||e==="published"}function T0(){return E0.filter(e=>Xp(e.slug))}function Jp(){return[...T0()].sort((e,t)=>Hi(e)-Hi(t))}function ZX(e){if(Xp(e))return pI(e)}function Hi(e){const t=Jb.indexOf(e.slug);return t>=0?t:Jb.length+(e.displayOrder??100)}const fI={construction:["construction","electrical contracting"],manufacturing:["manufacturing"],distribution:["logistics","distribution","wholesale"],insurance:["insurance","financial services","financial"],accounting:["accounting"],"pe-vc":["pe","vc","m&a","private equity","venture capital","pe/vc"],legal:["legal"]},Ml=e=>e.toLowerCase(),XX=["legal","accounting","pe-vc","insurance"],jne=[{slug:"legal",label:"Legal"},{slug:"accounting",label:"Accounting"},{slug:"pe-vc",label:"PE, VC & M&A"},{slug:"insurance",label:"Insurance & Financial"},{slug:"manufacturing",label:"Manufacturing"},{slug:"distribution",label:"Distribution & Wholesale"},{slug:"construction",label:"Construction"}];function YE(e,t){const n=Ml(e.trim());if(!n)return!1;if(n==="cross industry")return!0;
279if(n==="professional services")return XX.includes(t);const s=fI[t]??[t],i=new Set(s.map(Ml));if(i.add(Ml(t.replace(/-/g," "))),i.has(n))return!0;for(const o of i)if(o.length>3&&(n.includes(o)||o.includes(n)))return!0;return!1}function Nne(e,t){if(YE(e.industry,t))return!0;for(const n of e.featuredIndustries)if(YE(n,t))return!0;return!1}function JX(e){return e.company&&e.title?`${e.company} case study cover: ${e.title}`:e.company?`${e.company} case study cover`:`Case study cover: ${e.slug}`}function hI(e){return!e.title.trim()&&!e.company.trim()&&!e.description.trim()}function Kr(e){return e.trim().toLowerCase()}function QX(e){const t=new Set;if(e.summaryIndustry&&t.add(Kr(e.summaryIndustry)),e.category&&t.add(Kr(e.category)),e.storyIndustry)for(const n of e.storyIndustry.split(/[/,&]/)){const s=Kr(n);s&&t.add(s)}for(const n of e.featuredIndustries??[]){const s=Kr(n);s&&t.add(s)}return t}function eJ(e,t){const n=QX(t);if(t.summaryIndustry&&Kr(e.industry)===Kr(t.summaryIndustry)||n.has(Kr(e.industry)))return!0;for(const i of e.featuredIndustries){const o=Kr(i);if(n.has(o))return!0;for(const l of n)if(l.length>3&&(o.includes(l)||l.includes(o)))return!0}const s=Kr(e.industry);for(const i of n)if(i.length>3&&s.includes(i))return!0;return!1}function tJ(e,t,n,s=3){const i=e.filter(f=>f.slug!==t&&!hI(f)),o=i.filter(f=>eJ(f,n)).sort((f,h)=>Hi(f)-Hi(h)),l=new Set(o.map(f=>f.slug)),u=i.filter(f=>!l.has(f.slug)).sort((f,h)=>Hi(f)-Hi(h));return[...o,...u].slice(0,s)}function pI(e){return E0.find(t=>t.slug===e)}function nJ(e){const t=new Map(E0.map(n=>[n.slug,n]));return e.map(n=>t.get(n)).filter(n=>!!n)}function sJ(e){const t=fI[e]??[e];if(t.length===0)return[];const n=new Set(t.map(Ml));return T0().filter(s=>n.has(Ml(s.industry))?!0:s.featuredIndustries.some(i=>n.has(Ml(i))))}function Ine(e,t=3){return[...T0()].filter(n=>dI(n.slug,n.annualRoi).includes(e)).sort((n,s)=>Hi(n)-Hi(s)).slice(0,t)}async function rJ(e){if(!Xp(e))return null;try{const{data:t,error:n}=await es.from("case_studies").select("slug, title, company, industry, featured_industries, problem_category, benefit_hook, description, image, video_url, featured_video_url, featured, display_order, results, annual_roi, timeline, status, overview, challenge, solution, technologies, problem_heading, solution_heading, outcome_heading, testimonial_quote, testimonial_author, testimonial_position, software_stack, software_context, payback_period, roi_summary, impact_cards").eq("slug",e).maybeSingle();if(n||!t)return null;const s=t.status;return YX(s)?iJ(t):null}catch{return null}}function iJ(e){return{...aJ(e),overview:e.overview,challenge:e.challenge,solution:e.solution,technologies:e.technologies??[],problemHeading:e.problem_heading,solutionHeading:e.solution_heading,outcomeHeading:e.outcome_heading,testimonial:e.testimonial_quote&&e.testimonial_author?{quote:e.testimonial_quote,author:e.testimonial_author,role:e.testimonial_position??""}:null,softwareStack:e.software_stack??[],softwareContext:e.software_context,paybackPeriod:e.payback_period,roiSummary:e.roi_summary,impactCards:e.impact_cards??[]}}function aJ(e){return{slug:e.slug,title:e.title,company:e.company,industry:e.industry,featuredIndustries:e.featured_industries??[],problemCategory:e.problem_category,benefitHook:e.benefit_hook,description:e.description,image:e.image,videoUrl:e.video_url,featuredVideoUrl:e.featured_video_url,featured:!!e.featured,displayOrder:e.display_order,results:e.results??[],annualRoi:e.annual_roi,timeline:e.timeline}}const oJ=()=>Ke(()=>import("./thank-you-BWJxoIX3.js"),[]),lJ=["kenny","airsan-claude-enablement"],cJ=We("/thank-you")({loader:()=>({caseStudies:nJ(lJ)}),pendingMs:1/0,pendingComponent:()=>null,head:()=>{const e=mt({path:"/thank-you",title:"Thanks, We Got It | Wyecliff",description:"A real person from our team will get back to you within 1 business day."});return{...e,meta:[...e.meta,{name:"robots",content:"noindex, nofollow"}]}},component:Ge(oJ,"component")}),uJ=()=>Ke(()=>import("./terms-4ZzleK00.js"),__vite__mapDeps([0,1])),dJ=We("/terms")({head:()=>mt({path:"/terms",title:"Terms of Service | Wyecliff",description:"Terms that govern using wyecliff.ai, Solutions Playground demos, and engaging Wyecliff for services.",ogDescription:"Acceptance, acceptable use, demos, IP, disclaimers, liability, and governing law."}),component:Ge(uJ,"component")}),hl="https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/Photos%20and%20Videos",fJ=[{name:"Drew Bowers",title:"Co-Founder & CEO",initials:"DB",photo:`${hl}/Headshot-Drew%201.png`,objectPosition:"center 22%",bio:`Drew is the Co-Founder and CEO of W
279yecliff. He spent years in technology and development consulting, embedded with distribution, manufacturing, and construction firms shipping internal systems that actually get used on Monday morning.
280
281At Wyecliff he runs the partner side of every engagement: scoping, architecture, and the working sessions that turn a backlog of pain into a shipping plan. He is the named partner on every Wyecliff statement of work.`,summary:"Runs scoping, architecture, and the working sessions that turn a backlog into a shipping plan.",specializesIn:["AI strategy & scoping","Technology & consulting delivery","Microsoft & Anthropic stacks","Engagement leadership"],whyWyecliff:"Companies that run America deserve AI that fits their business, not another binder full of slides.",linkedin:"https://www.linkedin.com/in/andrew-bowers18/",isPlaceholder:!1},{name:"Ben Seidlin",title:"Co-Founder & AI Lead",initials:"BS",photo:`${hl}/Headhsot-Ben%201.png`,objectPosition:"center 22%",bio:`Ben is Co-Founder and AI Lead at Wyecliff. He owns the build side of engagements: application architecture, agent design, and the hands-on work of shipping AI into production on Microsoft, Anthropic, and cloud stacks.
282
283He works directly with client teams to turn scoped use cases into software people actually use, with evals, guardrails, and ownership built in from day one.`,summary:"Owns the build side of engagements: application architecture, agents, and shipping AI into production with evals and guardrails built in.",specializesIn:["Custom apps & agents","Production AI deployment","Architecture & eval suites","Microsoft, Anthropic & cloud"],whyWyecliff:"AI should ship inside real workflows, not sit in a pilot folder.",linkedin:"https://www.linkedin.com/in/benjamin-seidlin11",isPlaceholder:!1},{name:"Michael Gebhardt",title:"Co-Founder, Business Development & Strategic Partnerships",initials:"MG",photo:`${hl}/Michael%20Headshot%201.png`,objectPosition:"center 24%",photoScale:1.1,bio:`Michael is Co-Founder at Wyecliff, leading Business Development and Strategic Partnerships. His time in venture debt at Western Alliance Bank, underwriting and financing growth-stage technology companies, gave him a front-row seat to what separates companies that scale from ones that stall.
284
285He advised Wyecliff from the board before joining full-time. Now he builds the relationships and partnerships that connect Wyecliff with the leaders and organizations who need it most, helping companies across every industry put AI to work where it drives real, measurable value.`,summary:"Builds the relationships and partnerships that connect Wyecliff with the leaders and organizations who need AI most.",specializesIn:["Business development","Strategic partnerships","Growth-stage company financing","Client & partner relationships"],whyWyecliff:"AI matters when it drives real, measurable value for the companies that need it most.",linkedin:"https://www.linkedin.com/in/michaelgebhardt/",isPlaceholder:!1},{name:"Sara Godfrey",title:"Project Manager",initials:"SG",photo:`${hl}/Headshot-Sara%201.png`,bio:`Sara is Project Manager at Wyecliff. She keeps engagements on track from kickoff through go-live: timelines, client communication, and the operational detail that lets the team stay focused on building.
286
287She is the connective tissue between Wyecliff and client stakeholders, so nothing falls through during fast-moving AI deployments.`,summary:"Keeps engagements on track from kickoff through go-live and keeps client teams aligned while the builders stay focused.",specializesIn:["Engagement delivery","Client communication","Timeline & go-live planning","Stakeholder coordination"],whyWyecliff:"Great AI work still needs someone keeping the trains running.",linkedin:"https://www.linkedin.com/in/saragodfrey20",isPlaceholder:!1},{name:"Kole Kearney",title:"Project Manager",initials:"KK",photo:`${hl}/Kole_1.png`,objectPosition:"center 20%",photoScale:1.12,bio:`Kole is Project Manager at Wyecliff. He spent more than six years at RSM as a Dynamics 365 technology consultant, progressing from Associate to Senior to Supervisor. Much of that work sat in the finance and accounting world, helping finance teams with strategy, systems, and delivery.
288
289At Wyecliff he keeps engagements on track and helps clients get valuable solutions shipped, working with the team from kickoff through go-live.`,summary:"Brings six-plus years of Dynamics 365 consulting, with a focus on finance and accounting, to keeping engagements on track.",specializesIn:["Engagement delivery","Finance & accounting systems","Dynamics 365 consulting","Client communication"],whyWyecliff:"Clients deserve clear delivery and solutions that actually help them grow.",linkedin:"https://www.linkedin.com/in/kole-kearney-79985b16a/",isPlaceholder:!1},{name:"Brady Hogoboom",title:"Senior AI Analyst",initials:"BH",photo:`${hl}/Brady%20Hogoboom%20Headshot%201.png`,objectPosition:"center 22%",bio:`Brady is Senior AI Analyst at Wyecliff. He brings a background in engineering, data analytics and machine learning, plus research in academia.
290
291He specializes in operational research, use case analysis, requirement development, and tool development.`,summary:"Brings engineering, data analytics, and ML experience to operational research, use case analysis, and tool development.",specializesIn:["Operational research","Use case analysis","Requirement development","Tool development"],whyWyecliff:"",isPlaceholder:!1}],hJ=()=>Ke(()=>import("./team-BgawtMIo.js"),__vite__mapDeps([2,3,4])),pJ=We("/team")({head:()=>({...mt({path:"/team",title:"Our Team | Wyecliff",description:"Meet the Wyecliff team. Deep expertise in AI infrastru
291cture and consulting, with direct ownership from scoping through go-live.",ogDescription:"Meet the team behind Wyecliff. Technology consulting backgrounds, real partnerships, and impactful AI."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Team",path:"/team"}])),...fJ.filter(e=>!e.isPlaceholder).map(e=>qe({"@context":"https://schema.org","@type":"Person",name:e.name,jobTitle:e.title,url:Qn("/team"),worksFor:{"@type":"Organization",name:"Wyecliff",url:Qn("/")},...e.linkedin?{sameAs:[e.linkedin]}:{}}))]}),component:Ge(hJ,"component")}),mJ=()=>Ke(()=>import("./solution-playground-DJ7-E6uy.js"),__vite__mapDeps([5,6,7,8,9])),gJ=We("/solution-playground")({head:()=>mt({path:"/solution-playground",title:"Solution Playground | Wyecliff",description:"Real systems we built for real operators. Live demos you can click through right now, including apps and AI agents you can try and ship.",ogDescription:"Real systems. Live demos. Click in. Browse the apps and AI agents we've shipped, then try them in your browser."}),component:Ge(mJ,"component")}),yJ=()=>Ke(()=>import("./privacy-Di6YxCwe.js"),__vite__mapDeps([10,1])),vJ=We("/privacy")({head:()=>mt({path:"/privacy",title:"Privacy Policy | Wyecliff",description:"How Wyecliff handles your data. What we collect, how we use it, who we share it with, how long we keep it, and the rights you have.",ogDescription:"How Wyecliff handles your data. Plain English, no dark patterns."}),component:Ge(yJ,"component")}),bJ=()=>Ke(()=>import("./partners-C8LxNMsL.js"),__vite__mapDeps([11,12,13])),wJ=We("/partners")({head:()=>mt({path:"/partners",title:"Microsoft Cloud & Anthropic Partner | Wyecliff",description:"Wyecliff is a Microsoft Cloud Partner and an Official Anthropic Partner. Two stacks, deep partnerships, opinionated patterns, built for operator-led companies.",ogTitle:"Microsoft Cloud & Anthropic Partner | Wyecliff",ogDescription:"Microsoft Cloud Partner. Anthropic Official Partner. The stack we stand behind."}),component:Ge(bJ,"component")}),mI={"ai-vs-automation":{pillar:{label:"AI for construction",to:"/industries/construction"},service:{label:"Custom AI agents",to:"/services/build"},caseStudy:{label:"Blue Skies Nursing",to:"/case-studies/bsn"},relatedBlog:{label:"AI readiness assessment",to:"/blog/ai-readiness-assessment"}},"ai-for-contractors":{pillar:{label:"AI for construction",to:"/industries/construction"},service:{label:"Custom AI agents",to:"/services/build"},caseStudy:{label:"Kenny Electric",to:"/case-studies/kenny"},relatedBlog:{label:"AI vs automation",to:"/blog/ai-vs-automation"}},"ai-readiness-assessment":{pillar:{label:"AI for private equity",to:"/industries/pe-vc"},service:{label:"AI readiness assessment",to:"/services/discover"},caseStudy:{label:"IMA Financial Group",to:"/case-studies/ima"},relatedBlog:{label:"AI for contractors",to:"/blog/ai-for-contractors"}},"best-ai-for-insurance-agents":{pillar:{label:"AI for insurance agencies",to:"/industries/insurance"},service:{label:"Corporate AI training",to:"/services/train"},caseStudy:{label:"Copilot enablement case study",to:"/case-studies/ima-service-enablement"},relatedBlog:{label:"Copilot vs Claude for insurance",to:"/blog/copilot-vs-claude-insurance"}},"copilot-vs-claude-insurance":{pillar:{label:"AI for insurance agencies",to:"/industries/insurance"},service:{label:"Copilot rollout",to:"/services/deploy"},caseStudy:{label:"IMA Financial Group",to:"/case-studies/ima"},relatedBlog:{label:"Best AI for insurance agents",to:"/blog/best-ai-for-insurance-agents"}},"ai-for-legal-research":{pillar:{label:"AI for legal",to:"/industries/legal"},service:{label:"Custom AI agents",to:"/services/build"},caseStudy:{label:"Uihlein Electric",to:"/case-studies/uihlein"},relatedBlog:{label:"ChatGPT for business",to:"/blog/chatgpt-for-business"}},"chatgpt-for-business":{pillar:{label:"AI for legal",to:"/industries/legal"},service:{label:"Production AI deployment",to:"/services/deploy"},caseStudy:{label:"Blue Skies Nursing",to:"/case-studies/bsn-claude-rollout"},relatedBlog:{label:"Copilot vs Claude for insurance",to:"/blog/copilot-vs-claude-insurance"}},"automate-reporting-for-field-teams":{pillar:{label:"AI for construction",to:"/industries/construction"},service:{label:"Custom AI agents",to:"/services/build"},caseStudy:{label:"Dynalectric Colorado",to:"/case-studies/dyna"},relatedBlog:{label:"AI for contractors",to:"/blog/ai-for-contractors"}},"ai-workflow-automation-guide":{pillar:{label:"AI for manufacturing",to:"/industries/manufacturing"},service:{label:"Custom AI agents",to:"/services/build"},caseStudy:{label:"TimeHarmony",to:"/case-studies/wyecliff-timeharmony"},relatedBlog:{label:"AI vs automation",to:"/blog/ai-vs-automation"}},"10-best-ai-workflow-platforms":{pillar:{label:"AI for manufacturing",to:"/industries/manufacturing"}
291,service:{label:"AI readiness assessment",to:"/services/discover"},relatedBlog:{label:"AI workflow automation",to:"/blog/ai-workflow-automation-guide"}},"how-to-connect-business-systems":{pillar:{label:"AI for manufacturing",to:"/industries/manufacturing"},service:{label:"Production AI deployment",to:"/services/deploy"},relatedBlog:{label:"Why AI features fail",to:"/blog/why-ai-features-fail"}},"replace-manual-spreadsheets":{pillar:{label:"AI for manufacturing",to:"/industries/manufacturing"},service:{label:"Custom AI agents",to:"/services/build"},caseStudy:{label:"Marketing Command Center",to:"/case-studies/wyecliff-marketing-command-center"},relatedBlog:{label:"AI workflow automation",to:"/blog/ai-workflow-automation-guide"}},"the-ai-hire-vs-agency":{pillar:{label:"AI for private equity",to:"/industries/pe-vc"},service:{label:"AI readiness assessment",to:"/services/discover"},relatedBlog:{label:"AI readiness assessment",to:"/blog/ai-readiness-assessment"}},"why-ai-features-fail":{pillar:{label:"AI for insurance agencies",to:"/industries/insurance"},service:{label:"Corporate AI training",to:"/services/train"},caseStudy:{label:"IMA Financial Group",to:"/case-studies/ima"},relatedBlog:{label:"How SaaS fails in AI rollouts",to:"/blog/how-saas-fails-in-operations"}},"how-saas-fails-in-operations":{pillar:{label:"AI for manufacturing",to:"/industries/manufacturing"},service:{label:"Custom AI agents",to:"/services/build"},relatedBlog:{label:"Why AI features fail",to:"/blog/why-ai-features-fail"}},"copilot-is-playing-the-long-game":{pillar:{label:"AI for insurance agencies",to:"/industries/insurance"},service:{label:"Copilot rollout",to:"/services/deploy"},caseStudy:{label:"IMA Financial Group",to:"/case-studies/ima"},relatedBlog:{label:"Copilot vs Claude for insurance",to:"/blog/copilot-vs-claude-insurance"}},"microsoft-copilot-for-business":{pillar:{label:"AI for insurance agencies",to:"/industries/insurance"},service:{label:"Corporate AI training",to:"/services/train"},caseStudy:{label:"Copilot enablement case study",to:"/case-studies/ima-service-enablement"},relatedBlog:{label:"Copilot vs ChatGPT for business",to:"/blog/copilot-vs-chatgpt"}}};function ZE(e){const t=[e.pillar,e.service];return e.caseStudy&&t.push(e.caseStudy),e.relatedBlog&&t.push(e.relatedBlog),t}function Pne(e,t){if(t)return ZE(t);const n=mI[e];return n?ZE(n):[]}function xJ(e){return mI[e]}const Mne={discover:[{label:"AI readiness assessment guide",to:"/blog/ai-readiness-assessment"},{label:"The AI hire vs automation",to:"/blog/the-ai-hire-vs-agency"},{label:"IMA case study",to:"/case-studies/ima"},{label:"AI for private equity",to:"/industries/pe-vc"}],build:[{label:"AI for contractors",to:"/blog/ai-for-contractors"},{label:"AI vs automation",to:"/blog/ai-vs-automation"},{label:"Kenny Electric case study",to:"/case-studies/kenny"},{label:"TimeHarmony case study",to:"/case-studies/wyecliff-timeharmony"}],deploy:[{label:"Copilot vs Claude for insurance",to:"/blog/copilot-vs-claude-insurance"},{label:"Best AI for insurance agents",to:"/blog/best-ai-for-insurance-agents"},{label:"ChatGPT for business",to:"/blog/chatgpt-for-business"},{label:"AI for insurance agencies",to:"/industries/insurance"}],train:[{label:"Why AI features fail",to:"/blog/why-ai-features-fail"},{label:"IMA case study",to:"/case-studies/ima"},{label:"Blue Skies Claude rollout",to:"/case-studies/bsn-claude-rollout"},{label:"AI for insurance agencies",to:"/industries/insurance"}]},Dne=[{label:"AI Foundations",slug:"ai-foundations"},{label:"AI by Industry",slug:"ai-by-industry"},{label:"Getting Started with AI",slug:"getting-started-with-ai"},{label:"Tools & Comparisons",slug:"tools-and-comparisons"},{label:"Automation Playbooks",slug:"automation-playbooks"},{label:"Responsible AI & Security",slug:"responsible-ai-and-security"}],SJ={slug:"ai-vs-automation",title:"AI vs Automation: What's the Difference, and Which Does Your Business Actually Need?",description:"AI and automation are not the same thing. Here is the plain-English difference, when you need each, and how to tell which one your business should start with.",category:"AI Foundations",categorySlug:"ai-foundations",date:"July 9, 2026",readTime:"8 min read",author:"Wyecliff",seoTitle:"AI vs Automation: What's the Difference? | Wyecliff",seoDescription:"AI and automation are not the same thing. Here is the plain-English difference, when you need each, and how to tell which one your business should start with.",image:"https://d8j0ntlcm91z4.cloudfront.net/user_3E5tVT6E1KOnKn3gG2mfbBFceWn/hf_20260709_204527_cf75b646-6b95-42d5-9f7a-7b69baf3cf4f.png",isFeatured:!0,publishedAt:"2026-07-09T14:00:00.000Z",intro:"Automation follows rules you write. AI makes judgment calls you cannot easily write down as rules. Most businesses need both, and the trick is knowing which one fits the problem in front of you. If the work is repetitive and predictable, automation is almost always the cheaper, faster answer. If the work needs reading, understanding, or a decision that changes with the situation, that is where AI earns its keep.",blocks:[{type:"section",heading:"What is automation?",paragraphs:["Automation is software following a fixed set of rules. When this happens, do that. It is the logic behind a tool moving data between apps, sending a reminder when a due date passes, or generating the same report every Monday morning. Tools like Zapier, Make, and Microsoft Power Automate are built for this.","Automation is fast, cheap, and reliable, as long as the inputs are clean and predictable. It does exactly what you tell it, every time, without getting tired or distracted. The catch is that it has no judgment. The moment an input shows up in a form it was not expecting, it either stops or does the wrong thing confidently."]},{type:"section",heading:"What is AI, and how is it different?",paragraphs:["AI, in the sense most businesses mean today, is software that handles work needing language, judgment, or pattern recognition. Instead of following rules you wrote, it works from patterns learned across huge amounts of data. That is 
291what lets a tool like Claude, ChatGPT, or Microsoft Copilot read a messy email, understand what the customer actually wants, summarize a long document, or draft a reply that fits the situation.","The practical difference is range. Automation moves things when the conditions are clear. AI can deal with the messy, the ambiguous, and the never-seen-before. The tradeoff is that AI can be confidently wrong, so the higher the stakes, the more you want a person checking its work."]},{type:"section",heading:"AI vs automation: the short version",paragraphs:["Use this side-by-side when you are deciding which tool fits the job in front of you."]},{type:"table",headers:["","Automation","AI"],rows:[["Best for","Repetitive, rule-based steps","Judgment, language, messy inputs"],["How it decides","Fixed rules you define","Patterns learned from data"],["Simple example","Move a file to a folder when an email arrives","Read the email, understand it, and draft a reply"],["Breaks when","The input changes unexpectedly","Rarely, but it can be wrong with confidence"],["Cost to start","Low","Low to moderate"],["Human in the loop","Usually not needed","Recommended for anything high-stakes"]]},{type:"section",heading:"Which one does your business actually need?",paragraphs:["Start with the work, not the tool. Ask one question about the task you want off your team's plate: could you write down every rule for how to do it? If yes, that is automation, and you should not pay for anything fancier. Invoice routing, appointment reminders, moving data between systems, and standard weekly reports are all rules you can spell out.","If the honest answer is no, because doing the task well means reading something, weighing context, or making a call that depends on the specifics, that is where AI fits. Triaging incoming messages, drafting first-pass replies, pulling the key points out of a long document, and screening applications all need judgment, not just rules.","The reason this matters is money and durability. The market reflects it too. In its most recent State of AI research, McKinsey reported that most companies now use AI in at least one function, and a growing share are piloting AI agents. Adoption is mainstream. The businesses getting real value are not the ones spending the most; they are the ones matching the tool to the task and starting small."]},{type:"section",heading:"Where should you start?",paragraphs:["Start with one painful, repetitive, high-volume task and get it working end to end before touching anything else. One finished automation that saves real hours builds more momentum than five half-built experiments. Map how the task runs today, including the exceptions, because the exceptions are where projects fail. Then pick the simplest tool that does the job: rules if rules are enough, an AI layer only where judgment is actually required.","Often the best answer is both together. For Blue Skies, a home-care agency we work with, the win was not choosing AI over automation. It was pairing them: simple rules route a new lead the instant it arrives, and an AI layer reads each inquiry and sorts it so the right person follows up first. Rules gave speed, AI gave judgment, and the combination did what neither could alone. You can read the details in our [Blue Skies case study](/case-studies/bsn). We took the same approach building [TimeHarmony](/case-studies/wyecliff-timeharmony), our own internal system, where rules handle the plumbing and AI handles the parts that need interpretation."]},{type:"section",heading:"What mistakes should you avoid?",paragraphs:["The predictable failures are worth naming. Automating a broken process just means you scale the mess faster, so fix the process first. Starting too big stalls the whole effort, so start narrow. Skipping a clear success measure means you cannot tell if it worked, so decide up front what winning looks like, usually hours saved or errors reduced. And reaching for AI because it is exciting, when a five-dollar automation would do, is the most common and most expensive mistake of all."]},{type:"faq",heading:"Frequently asked questions",items:[{q:"Is AI just a fancier kind of automation?",a:"No. They overlap, but they solve different problems. Automation follows rules you define. AI works from patterns it learned and can handle inputs no one anticipated. Many of the best solutions use automation for the predictable steps and AI only where judgment is needed."},{q:"Do I need AI, or is automation enough?",a:"If you can write down every rule for the task, automation is enough, and it is cheaper and more reliable. If doing the task well requires reading, understanding, or a judgment call that changes with the situation, that is where AI fits."},{q:"What is the cheapest way to start?",a:"Pick one high-volume, repetitive task, automate it end to end with an off-the-shelf tool, and measure the hours it saves. Let a proven result fund the next step. You rarely need a big platform or a developer for your first win."},{q:"Is it safe to use AI with company or customer data?",a:"It can be, if you use business-grade tools with clear data agreements, keep sensitive data in systems you control, and keep a person in the loop for high-stakes decisions. Avoid pasting customer data into consumer AI tools."}]}]},_J={slug:"ai-for-contractors",title:"Where Construction Contractors Should Start With AI",description:"A practical guide for contractors on where to start with AI. The office workflows that pay back fastest, what to skip, and how to pick the first project.",category:"AI by Industry",categorySlug:"ai-by-industry",date:"July 9, 2026",readTime:"8 min read",author:"Wyecliff",seoTitle:"AI for Contractors: Where to Start | Wyecliff",seoDescription:"A practical guide for contractors on where to start with AI. The office workflows that pay back fastest, what to skip, and how to pick the first project.",image:"https://d8j0ntlcm91z4.cloudfront.net/user_3E5tVT6E1KOnKn3gG2mfbBFceWn/hf_20260709_204537_50013713-e0b5-48b5-aaa3-972c1e0e65eb.png",publishedAt:"2026-07-09T13:00:00.000Z",intro:"Start in the office, not the field. For most contractors the fastest, safest AI wins are in the back-office paperwork that already slows your team down: estimating and bid prep, RFIs and submittals, reading plans and specs, sorting job-site photos and documents, and chasing invoices and lien waivers. Pick the one that eats the most hours, automate it end to end, measure the time saved, then move to the next. That is the whole play. Field-facing and safety-critical uses can come later, once you trust the tool on low-risk 
291work.",blocks:[{type:"section",heading:"What can AI actually do for a construction company?",paragraphs:["Two different things, and it helps to keep them straight. Plain automation moves information between the systems you already use, so a signed change order updates the schedule and the budget without anyone rekeying it. AI handles the messy, language-heavy work: reading a 200-page spec and flagging what matters, drafting an RFI from a field note, pulling scope out of a set of plans, or summarizing a day's job-site photos into a progress log.","The point is not to replace your people. It is to take the paperwork that keeps a good project manager at their desk until 7pm and give those hours back. Contractors are a good fit for this because the work is document-heavy and deadline-driven, and because the industry has been slow to digitize. That lag is the opportunity."]},{type:"section",heading:"Where should you start?",paragraphs:["Start with one office workflow that is high-volume, repetitive, and painful, and automate it completely before you touch anything else. One working win that gives an estimator back a full day a week builds more trust with your crew than ten half-finished pilots. Map how the task runs today, including every exception and handoff, because the exceptions are where these projects fail. Then match the tool to the job: rules where the steps are fixed, AI where judgment or reading is required."]},{type:"section",heading:"Which workflows pay back the fastest?",paragraphs:["The best first candidates are high in volume and low in risk, where a mistake is easy to catch before it costs anything. Estimating and document-heavy tasks tend to deliver the most visible wins, which is why they are the most common place to begin."]},{type:"table",caption:"Common first AI workflows for contractors",headers:["Workflow","What AI does","Effort to start","Payback"],rows:[["Bid and estimate prep","Pull quantities and scope from plans, draft the estimate skeleton","Medium","Fast"],["RFIs and submittals","Draft, log, and track from a short field note","Low","Fast"],["Plan and spec review","Read the set, flag conflicts, answer what the spec says about X","Medium","Fast"],["Contract review","Score risk against your playbook and suggest redlines","Medium","Fast"],["Document and photo management","Sort, tag, and summarize job-site files and photos","Low","Medium"],["Invoicing and AP","Match invoices to POs, flag mismatches, chase lien waivers","Medium","Medium"]]},{type:"section",heading:"What does this look like in the real world?",paragraphs:["We work with several contractors, and the pattern holds every time: start narrow in the office, prove the hours, then expand. At [Kenny Electric](/case-studies/kenny), the estimating team was buried in 50-page GC subcontracts and thousand-page spec books. We built a contract and spec review platform on their own secure infrastru
291cture, so documents never go into a public chatbot. In the first three months it handled dozens of contracts and specs across live projects and gave the team more than 200 hours back.","At [Uihlein Electric](/case-studies/uihlein), we stood up the same kind of platform on a proven base, customized to their playbook. The team was reviewing real contracts from day one, and they have already added their own questions to the spec checklist. That is the pattern that works: start from a real workflow, keep data private, and let the crew shape the tool.","Not every first win needs language models. At [Dynalectric Colorado](/case-studies/dyna), the pain was knowing which tools were on which job site. A barcode tracking app inside their existing Microsoft environment solved a daily operations problem without a big AI rollout. Sometimes the right first step is simple automation in the stack you already pay for. You can see more of this work on our [construction page](/industries/construction)."]},{type:"section",heading:"What about the crews in the field?",paragraphs:["Field and safety uses are real, but they are not where you start. Anything that touches safety, code compliance, or a number on a bid needs a person checking the output, because a confident wrong answer on a job site is expensive. Prove the tool on low-stakes office work first. Once your team trusts it and you have a habit of checking its work, you can extend carefully into field reporting, scheduling communication, and closeout."]},{type:"section",heading:"How long before it pays off, and what does it cost?",paragraphs:["A single office workflow can show measurable hours saved inside the first month, often using tools you may already pay for, like Microsoft Copilot or a business AI subscription, plus light setup. Bigger, cross-team rollouts take a quarter or two. The honest approach is to pilot one workflow cheaply, measure the hours saved, and let a proven return fund the next step. Budget for a little training too, because a crew that knows how to use the tool gets far more out of it than one handed a login and left alone."]},{type:"section",heading:"What mistakes should contractors avoid?",paragraphs:["The failures are predictable. Automating a broken process just scales the mess, so tidy the process first. Starting too big stalls everything, so start with one workflow. Skipping a clear measure of success means you never know if it worked, so decide up front, usually hours saved per week. And letting a tool touch bids, safety, or compliance with no human check is the one that actually bites, so keep a person in the loop on anything that carries risk.","Also skip pasting confidential GC contracts into consumer AI tools, and skip buying five tools when one finished process would prove the case."]},{type:"faq",heading:"Frequently asked questions",items:[{q:"What is the best first AI project for a contractor?",a:"An office workflow that is high-volume and low-risk, such as drafting RFIs and submittals, prepping estimates from plans, reviewing contracts and specs, or sorting job-site documents and photos. These are easy to measure and safe to get wrong while you learn."},{q:"Do I need to replace my current software?",a:"Usually not. Most first projects layer AI onto the systems you already use for accounting, project management, and documents. We are software-agnostic, so the goal is to fit your stack, not sell you a new one."},{q:"Is my company data safe?",a:"It can be, with business-grade tools that carry proper data agreements and keep your project and client data in systems you control. Avoid pasting sensitive documents into consumer AI tools, and keep a person reviewing anything high-stakes."},{q:"How much does it cost to get started?",a:"A first workflow can often start small, using tools you may already have plus some setup and training. Pilot cheaply, measure the hours saved, and let proven returns pay for the next step."},{q:"Will AI work on the job site, not just the office?",a:"Eventually, yes, but start in the office. Prove the tool on low-risk paperwork first, then extend carefully into field reporting and scheduling once your team trusts it."}]}]},kJ={slug:"ai-readiness-assessment",title:"AI Readiness Assessment: Is Your Business Actually Ready?",description:"An AI readiness asse
291ssment tells you if your business is ready to adopt AI, and where to start. Here are the signals that you are ready, what to fix first, and what a good assessment covers.",category:"Getting Started with AI",categorySlug:"getting-started-with-ai",date:"July 9, 2026",readTime:"8 min read",author:"Wyecliff",seoTitle:"AI Readiness Assessment: Is Your Business Ready? | Wyecliff",seoDescription:"An AI readiness assessment tells you if your business is ready to adopt AI, and where to start. Here are the signals that you are ready, what to fix first, and what a good assessment covers.",image:"https://d8j0ntlcm91z4.cloudfront.net/user_3E5tVT6E1KOnKn3gG2mfbBFceWn/hf_20260709_204538_612ec1ef-413d-4fce-b22b-651e96311f70.png",publishedAt:"2026-07-09T12:00:00.000Z",intro:`An AI readiness assessment is a short, structured review that answers two questions: is your business ready to get value from AI, and where should you start. You are ready when you have a repetitive, high-volume process worth improving, data that is good enough to work with, leadership that will back the change, and one person who will own it. You are not ready when the process itself is broken, the data lives only in people's heads, or nobody owns the outcome. The good news is that "not ready" is usually a short list of fixable things, not a dead end.`,blocks:[{type:"section",heading:"What is an AI readiness assessment?",paragraphs:['It is a focused look at your workflows, your data, and your team to find where AI would pay off first and whether the groundwork is in place. A good one produces three things: a ranked list of opportunities, an honest read on what is ready versus what needs fixing, and a concrete first step with the effort and expected payback attached. It is not a strategy deck full of theory. It is a short, practical answer to "what do we do Monday."',"Most AI projects do not fail on the technology. They fail because a company started in the wrong place, on a broken process, with no one accountable. A readiness assessment exists to catch that before you spend a dollar, and to point you at the first project actually worth doing."]},{type:"section",heading:"What are the signs you are ready?",paragraphs:["You do not need to be a tech company. You need a few basics in place. If you can check three or four of these, you are ready to start. You do not need all five on day one."]},{type:"table",caption:"Quick readiness self-check",headers:["Signal","What it looks like","Why it matters"],rows:[["A painful, repeatable process","A high-volume task your team dislikes and does the same way each time","This is where AI pays back fastest"],["Usable data","The information lives in systems, not only in someone's memory","AI is only as good as what it can read"],["Leadership buy-in","Someone with authority wants this to happen","Adoption stalls without air cover"],["An owner","One person accountable for the result","Projects with no owner drift and die"],["Tolerance to start small","Willingness to pilot one thing and measure it","Small wins fund the big ones"]]},{type:"section",heading:"What are the signs you are not ready yet?",paragraphs:["A few things should be fixed before you automate anything. If the underlying process is broken, automating it just makes the mess faster, so fix the process first. If the data that matters lives only in people's heads or in scattered spreadsheets, that gap needs closing before a tool can help. And if no one owns the outcome, the project will drift no matter how good the technology is.","None of these are permanent. They are usually a few weeks of cleanup, and a good assessment tells you exactly which ones apply to you. Rushing past those gaps is how AI projects stall. We have seen companies buy licenses, run a kickoff, and still have no finished workflow six months later because the first job was never chosen."]},{type:"section",heading:"What does a good assessment actually cover?",paragraphs:["A strong assessment looks at four things: the workflows where time is being lost, the state of the data those workflows depend on, the team and who will own the change, and the tools you already pay for that might do the job before anyone buys something new. It ends with a prioritized shortlist, not a wish list, ranked by effort and payback so you know exactly what to do first.","Our own [3-day assessment](/services/discover) is built this way. At [IMA Financial Group](/case-studies/ima), discovery work turned real producer workflows into live demos and a prioritized set of use cases the broader team could act on. At [Airsan](/case-studies/airsan-claude-enablement), enablement only worked because the team knew which jobs Claude was supposed to help with and how success would be measured."]},{type:"section",heading:"How do you choose the partner who runs it?",paragraphs:["Ask a few plain questions before you sign with anyone. Are you software-agnostic, or do you resell one vendor's product? Will you measure and report the actual hours and dollars saved? Will you work alongside our IT team instead of around them? Do you stay through adoption, or hand off at go-live? And can you show me real results from businesses like mine?","The answers separate operators who ship from consultants who present. Bring in help when you want an outside pass over the ranking, when the first build needs integration or private infrastru
291cture, or when your team does not have time to run discovery and still keep the business moving. Stay in-house when the first win is a simple automation your team can finish this month with tools you already have."]},{type:"section",heading:"What does a readiness assessment cost, and how long does it take?",paragraphs:["A focused assessment is measured in days, not months, and its whole job is to save you from spending real money in the wrong place. The value is not the document; it is avoiding a six-figure mistake and getting a first project that actually pays back. Keep it short, make it concrete, and expect to walk away with a ranked plan you could start on the same week."]},{type:"faq",heading:"Frequently asked questions",items:[{q:"What is an AI readiness assessment?",a:"A short, structured review of your workflows, data, and team that determines whether you are ready to adopt AI and where to start. It ends with a ranked list of opportunities and a concrete first step."},{q:"How do I know if my business is ready for AI?",a:"You are likely ready if you have a repetitive high-volume process worth improving, data that lives in systems rather than only in people's heads, leadership support, and one person to own the result. You do not need to be technical."},{q:"What should an AI readiness assessment include?",a:"A review of your key workflows, an honest read on your data, a look at your team and ownership, a check of tools you already have, and a prioritized shortlist of what to do first, ranked by effort and payback."},{q:"How long does an AI readiness assessment take?",a:"A good one is measured in days. Ours is a 3-day assessment that ends with a prioritized plan you can act on immediately."},{q:"How do I choose an AI implementation partner?",a:"Ask whether they are software-agnostic, whether they measure ROI, whether they work with your IT team, whether they stay through adoption, and whether they can show real results from similar businesses. Clear answers to those five questions tell you most of what you need to know."}]}]},gI=[kJ,_J,SJ].sort((e,t)=>e.publishedAt<t.publishedAt?1:-1),AJ=new Map(gI.map(e=>[e.slug,e]));function CJ(e){return AJ.get(e)}function EJ(){return gI}function TJ(e){const t=e.find(n=>n.type==="faq");if(!(!t||t.type!=="faq"||t.items.length===0))return t.items}function RJ(e){const t=e.blocks.filter(s=>s.type==="section").map(s=>({heading:s.heading,paragraphs:s.paragraphs,...s.bullets&&s.bullets.length>0?{bullets:s.bullets}:{}})),n=TJ(e.blocks);return{intro:e.intro,sections:t,...n?{faq:n}:{}}}function yI(e){return{slug:e.slug,title:e.title,description:e.description,image:e.image??null,category:e.category,categorySlug:e.categorySlug,date:e.date,readTime:e.readTime,author:e.author,status:"published",template:"standard",isFeatured:!!e.isFeatured,createdAt:e.publishedAt}}function OJ(e){return{...yI(e),publishedAt:e.publishedAt,updatedAt:e.publishedAt,body:RJ(e),seoTitle:e.seoTitle,seoDescription:e.seoDescription,newsletterContent:null,introduction:null,content:null,content2:null,contentImage1:null,contentImage2:null,richContent:null,wyecliffPerspective:null,oneTimeTry:null,conclusion:null,blocks:e.blocks,internalLinks:xJ(e.slug)??null}}function kt(e){return typeof e=="string"&&e.trim().length>0?e:void 0}function jJ(e,t){if(!Array.isArray(e))return;const n=e.map(s=>{if(!s||typeof s!="object")return null;const i=s,o=kt(i.title),l=kt(i.body);return!o||!l?null:{title:o,body:l,whatItMeans:kt(i[t])??kt(i.whatItMeans)}}).filter(s=>s!==null);return n.length>0?n:void 0}function NJ(e){if(!Array.isArray(e))return;const t=e.map(n=>{if(!n||typeof n!="object")return null;const s=n,i=kt(s.title),o=kt(s.body);return!i||!o?null:{title:i,body:o}}).filter(n=>n!==null);return t.length>0?t:void 0}function IJ(e){if(!e||typeof e!="object")return null;const t=e,n=t.whyItMatters,s=n&&typeof n=="object"?{intro:kt(n.intro),forYou:kt(n.forYourLife)??kt(n.forYou),forYourBusiness:kt(n.forYourWork)??kt(n.forYourBusiness)}:void 0,i=t.oneThingToTry,o=i&&typeof i=="object"?{title:kt(i.title),intro:kt(i.intro),bonus:kt(i.bonus),prompt:kt(i.prompt),platforms:Array.isArray(i.platforms)?i.platforms.map(b=>{if(!b||typeof b!="object")return null;const w=b,x=kt(w.name),S=Array.isArray(w.steps)?w.steps.filter(_=>typeof _=="string"&&_.trim().length>0):[];return!x||S.length===0?null:{name:x,steps:S}}).filter(b=>b!==null):void 0}:void 0,l=t.podcastCta,u=l&&typeof l=="object"?{title:kt(l.title),body:kt(l.body),url:kt(l.url)}:void 0,f=t.broughtToYouBy,h=f&&typeof f=="object"?{heading:kt(f.heading),body:kt(f.body),ctaUrl:kt(f.ctaUrl),ctaLabel:kt(f.ctaLabel)}:void 0,p={editionNumber:typeof t.editionNumber=="number"||typeof t.editionNumber=="string"?t.editionNumber:void 0,publishDate:kt(t.publishDate),banner:kt(t.banner),intro:kt(t.intro),podcastCta:u,coverImage:kt(t.coverImage),topStories:jJ(t.topStories,"whatItAllMeans"),moreStories:NJ(t.moreStories),whyItMatters:s,oneThingToTry:o,showSpreadTheWord:t.showSpreadTheWord===!0,broughtToYouBy:h};return!!p.intro||!!p.topStories?.length||!!p.moreStories?.length||!!p.whyItMatters?.intro||!!p.oneThingToTry?.intro?p:null}
291const R0="slug, title, description, image, category, category_slug, date, read_time, author, status, template, is_featured, created_at, published_at";function O0(e){return{slug:e.slug,title:e.title,description:e.description,image:e.image,category:e.category,categorySlug:e.category_slug,date:e.date,readTime:e.read_time,author:e.author,status:e.status,template:e.template,isFeatured:!!e.is_featured,createdAt:e.published_at||e.created_at}}function Qp(e){return e.template==="wyecliff-weekly"||e.categorySlug==="weekly-newsletter"}function XE(e){const t=e?.trim()??"";return!t||t.includes("@")?"Wyecliff":t}function PJ(e){return!Qp(e)}function JE(e,t){const n=new Set(e.map(o=>o.slug)),s=EJ().map(yI).filter(o=>!n.has(o.slug)),i=[...e,...s];return i.sort((o,l)=>{const u=o.createdAt?Date.parse(o.createdAt):0;return(l.createdAt?Date.parse(l.createdAt):0)-u}),i.slice(0,t)}async function vI({limit:e=80}={}){try{const t=Math.max(e*4,e),{data:n,error:s}=await es.from("blog_articles").select(R0).eq("status","published").order("published_at",{ascending:!1,nullsFirst:!1}).order("created_at",{ascending:!1}).limit(t);if(s)throw s;const i=n?.map(O0).filter(PJ)??[];return JE(i,e)}catch{return JE([],e)}}async function bI({limit:e=60}={}){try{const{data:t,error:n}=await es.from("blog_articles").select(R0).eq("status","published").or("template.eq.wyecliff-weekly,category_slug.eq.weekly-newsletter").order("created_at",{ascending:!1}).limit(e);if(n)throw n;return t?.map(O0)??[]}catch{return[]}}const MJ=`${R0}, published_at, updated_at, body, blocks, internal_links, newsletter_content, seo_title, seo_description, introduction, content, content_2, content_image_1, content_image_2, rich_content, wyecliff_perspective, one_time_try, conclusion`;function Xc(e){return typeof e=="string"&&e.trim().length>0}function DJ(e){if(!e||typeof e!="object")return null;const t=e,n=typeof t.intro=="string"?t.intro:"",i=(Array.isArray(t.sections)?t.sections:[]).map(u=>{if(!u||typeof u!="object")return null;const f=u;if(!Xc(f.heading))return null;const h=Array.isArray(f.paragraphs)?f.paragraphs.filter(Xc):[],p=Array.isArray(f.bullets)?f.bullets.filter(Xc):void 0;return{heading:f.heading,paragraphs:h,...p&&p.length>0?{bullets:p}:{}}}).filter(u=>u!==null),l=(Array.isArray(t.faq)?t.faq:[]).map(u=>{if(!u||typeof u!="object")return null;const f=u;return!Xc(f.q)||!Xc(f.a)?null:{q:f.q,a:f.a}}).filter(u=>u!==null);return!n&&i.length===0?null:{intro:n,sections:i,...l.length>0?{faq:l}:{}}}function QE(e){return!e||e.intro.toLowerCase().includes("placeholder")?!0:e.sections.some(t=>t.paragraphs.some(n=>n.toLowerCase().includes("placeholder")))}function LJ(e){if(!Array.isArray(e)||e.length===0)return;const t=[];for(const n of e){if(!n||typeof n!="object")continue;const s=n;
291if(s.type==="section"&&typeof s.heading=="string"&&Array.isArray(s.paragraphs)){const i=s.paragraphs.filter(o=>typeof o=="string");if(!s.heading.trim()||i.length===0)continue;t.push({type:"section",heading:s.heading,paragraphs:i,...Array.isArray(s.bullets)?{bullets:s.bullets.filter(o=>typeof o=="string")}:{}})}else if(s.type==="table"&&Array.isArray(s.headers)&&Array.isArray(s.rows)&&s.headers.length>0)t.push({type:"table",...typeof s.caption=="string"?{caption:s.caption}:{},headers:s.headers.filter(i=>typeof i=="string"),rows:s.rows.filter(i=>Array.isArray(i))});else if(s.type==="faq"&&Array.isArray(s.items)){const i=s.items.map(o=>{if(!o||typeof o!="object")return null;const l=o;return typeof l.q!="string"||typeof l.a!="string"?null:{q:l.q,a:l.a}}).filter(o=>o!==null);i.length>0&&t.push({type:"faq",...typeof s.heading=="string"?{heading:s.heading}:{},items:i})}else s.type==="softClose"&&typeof s.heading=="string"&&typeof s.body=="string"&&t.push({type:"softClose",heading:s.heading,body:s.body,...typeof s.ctaLabel=="string"?{ctaLabel:s.ctaLabel}:{},...typeof s.ctaHref=="string"?{ctaHref:s.ctaHref}:{}})}return t.length>0?t:void 0}function BJ(e){if(e===null)return null;if(!e||typeof e!="object")return;const t=e,n=t.pillar,s=t.service;if(!n||!s||typeof n!="object"||typeof s!="object")return;const i=n,o=s;if(typeof i.label!="string"||typeof i.to!="string"||typeof o.label!="string"||typeof o.to!="string")return;const l={pillar:{label:i.label,to:i.to},service:{label:o.label,to:o.to}};if(t.caseStudy&&typeof t.caseStudy=="object"){const u=t.caseStudy;typeof u.label=="string"&&typeof u.to=="string"&&(l.caseStudy={label:u.label,to:u.to})}if(t.relatedBlog&&typeof t.relatedBlog=="object"){const u=t.relatedBlog;typeof u.label=="string"&&typeof u.to=="string"&&(l.relatedBlog={label:u.label,to:u.to})}return l}function UJ(e){const t=DJ(e.body),n=LJ(e.blocks),s=BJ(e.internal_links);return{...O0(e),publishedAt:e.published_at,updatedAt:e.updated_at,body:t,seoTitle:e.seo_title,seoDescription:e.seo_description,newsletterContent:IJ(e.newsletter_content),...n?{blocks:n}:{},...s!==void 0?{internalLinks:s}:{},introduction:e.introduction,content:e.content,content2:e.content_2,contentImage1:e.content_image_1,contentImage2:e.content_image_2,richContent:e.rich_content,wyecliffPerspective:e.wyecliff_perspective,oneTimeTry:e.one_time_try,conclusion:e.conclusion}}function Lne(e){return Qp(e)&&(e.newsletterContent||e.richContent)?!1:!!(e.body&&!QE(e.body))}async function wI(e){try{const{data:n,error:s}=await es.from("blog_articles").select(MJ).eq("slug",e).eq("status","published").limit(1).maybeSingle();if(!s&&n)return UJ(n)}catch{}const t=CJ(e);return t?OJ(t):null}function zJ(e,t,n=3){const s=t.filter(u=>u.slug!==e.slug),i=s.filter(u=>{const f=!!e.categorySlug&&u.categorySlug===e.categorySlug,h=!!e.category&&u.category===e.category;return f||h}),o=[],l=new Set;for(const u of[...i,...s])if(!l.has(u.slug)&&(l.add(u.slug),o.push(u),o.length>=n))break;return o}const VJ=()=>Ke(()=>import("./newsletter-CKEV4Mbz.js"),__vite__mapDeps([14,6,7,15,16,17,18,19]));async function $J(){const e=await bI({limit:60});return{latest:e[0]??null,recent:e.slice(1)}}const FJ=We("/newsletter")({head:()=>mt({path:"/newsletter",title:"Wyecliff Weekly | The Friday AI Briefing for Operators",description:"Subscribe to Wyecliff Weekly, the Friday morning AI briefing for operators. One short email a week with playbooks, field-tested prompts, and a new use case.",ogTitle:"Wyecliff Weekly",ogDescription:"Subscribe to the Friday morning AI briefing for operators. No fluff."}),loader:()=>$J(),component:Ge(VJ,"component")});nd({email:dn().trim().email("Enter a valid email").max(255).transform(e=>e.toLowerCase())});const HJ=()=>Ke(()=>import("./login-CSLWAlwb.js"),[]),qJ=We("/login")({head:()=>({meta:[{title:"Log In | Wyecliff"},{name:"robots",content:"noindex, nofollow"}]}),component:Ge(HJ,"component")}),WJ=()=>Ke(()=>import("./insights-B0redJfO.js"),__vite__mapDeps([20,21])),GJ=We("/insights")({component:Ge(WJ,"component")}),KJ=()=>Ke(()=>import("./founders-BuL3p2Cl.js"),__vite__mapDeps([22,21])),YJ=We("/founders")({component:Ge(KJ,"component")}),ZJ=()=>Ke(()=>import("./contact-CdzQmD5q.js"),__vite__mapDeps([23,21])),XJ=We("/contact")({component:Ge(ZJ,"component")}),JJ=()=>Ke(()=>import("./case-studies-2bSu0lDx.js"),__vite__mapDeps([24,6,7,25,9]));function QJ(e){const t=e.capability;return typeof t=="string"&&GX.includes(t)?{capability:t}:{}}const eQ=We("/case-studies")({validateSearch:QJ,loader:()=>({caseStudies:Jp()}),pendingMs:1/0,pendingComponent:()=>null,head:()=>({...mt({path:"/case-studies",title:"AI Case Studies | Wyecliff",description:"Real production AI work, with named operators and dollar-weighted outcomes. Filter by industry or by the kind of friction we removed.",ogDescription:"AI shipped inside electrical contractors, GCs, manufacturers, distributors, insurance brokerages, and home health."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Case Studies",path:"/case-studies"}]))]}),component:Ge(JJ,"component")}),tQ=()=>Ke(()=>import("./careers-Dtf3ib6L.js"),__vite__mapDeps([26,3,4,27])),nQ=We("/careers")({head:()=>mt({path:"/careers",title:"Careers | Wyecliff",description:"Build the systems that prove AI works. Wyecliff hires senior operators and engineers. No offshore, no juniors, no slide-deck consultants.",ogDescription:"Senior operators and engineers building AI inside the firms that run America."}),component:Ge(tQ,"component")}),sQ=[{q:"Is Microsoft Copilot or Claude better for an insurance agency?",a:"Neither is best at everything. Microsoft Copilot is strongest when your work already lives in Microsoft 365 and Teams, while Anthropic Claude is strongest for long documents, careful reasoning, and citation-disciplined tasks. Most agencies we work with run both and route each task to the model that handles it best."},{q:"How should a business start using ChatGPT safely?",a:"Start with one narrow, low-risk 
291workflow that wastes hours every week, keep sensitive data out of public tools, and measure the time saved before you expand. The fastest path is a short discovery sprint that ranks use cases by return on investment so you build the right thing first."},{q:"What is the best AI for insurance agents?",a:"The best AI for an insurance agent is the one wired into the systems they already use, the AMS, email, and document store, so it speeds up submissions, policy comparison, and claims triage without forcing a new tool. The model matters less than the integration and the guardrails around it."},{q:"Can AI be trusted for legal research?",a:"Yes, when it is built to cite the exact source and a person reviews the output. General chatbots can invent citations, so law firms should use systems that ground every answer in the firm's own documents and case law, with audit trails and supervised review."}],rQ=()=>Ke(()=>import("./blog-Lfmja4cK.js"),__vite__mapDeps([28,29,6,7,25]));function iQ(e){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.q,acceptedAnswer:{"@type":"Answer",text:t.a}}))}}const aQ=We("/blog")({loader:async()=>({articles:await vI({limit:80})}),head:()=>({...mt({path:"/blog",title:"AI Guides for Operators | Wyecliff Blog",description:"Plain-English AI guides for construction, insurance, and professional services. Foundations, industry playbooks, readiness, tools, and automation.",ogTitle:"Wyecliff Blog: AI Guides for Operators",ogDescription:"Practical AI guides for the industries that actually run things. Start with foundations, then move into industry and readiness."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Blog and Insights",path:"/blog"}])),qe(iQ(sQ))]}),component:Ge(rQ,"component")}),oQ=()=>Ke(()=>import("./admin-BHJWgktg.js"),__vite__mapDeps([30,31,32,33,34,18,35,17])),lQ=We("/admin")({head:()=>({meta:[{title:"Admin | Wyecliff"},{name:"robots",content:"noindex, nofollow"}]}),component:Ge(oQ,"component")}),cQ=()=>Ke(()=>import("./about-B_5WNueu.js"),__vite__mapDeps([36,37,4])),uQ=We("/about")({loader:()=>({caseStudies:Jp()}),pendingMs:1/0,pendingComponent:()=>null,head:()=>({...mt({path:"/about",title:"Our Story | AI Strategy & Implementation Partner | Wyecliff",description:"Since 2025, Wyecliff has been an AI strategy and implementation partner. We assess, build, deploy, and train AI across Microsoft, Anthropic, and AWS.",ogDescription:"We assess, build, deploy, and train AI wherever it makes the biggest impact. Microsoft Copilot, Azure AI Foundry, Claude, and more."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Our Story",path:"/about"}]))]}),component:Ge(cQ,"component")}),dQ=()=>Ke(()=>import("./index-CMa25HPR.js"),__vite__mapDeps([38,4,7,39,8,37])),fQ=We("/")({head:()=>mt({path:"/",title:"AI Implementation Partner | Wyecliff",description:"Wyecliff is an AI implementation partner and strategy firm. We assess, build, deploy, and train AI inside operator-led companies across construction, manufacturing, insurance, legal, and PE.",ogDescription:"Editorial AI strategy partner for distribution, manufacturing, construction, insurance, legal, and PE."}),loader:()=>({caseStudies:Jp()}),pendingMs:1/0,pendingComponent:()=>null,component:Ge(dQ,"component")}),hQ=()=>Ke(()=>import("./index-ou_oXgnI.js"),__vite__mapDeps([40,39])),pQ=We("/industries/")({head:()=>({...mt({path:"/industries",title:"AI Solutions by Industry | Wyecliff",description:"AI shipped inside seven verticals where outcomes are measured in dollars and hours: construction, manufacturing, distribution, accounting, PE/VC, and legal.",ogDescription:"Operating companies and professional services firms running production AI on Microsoft and Anthropic."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Industries",path:"/industries"}]))]}),component:Ge(hQ,"component")}),mQ=new Set(["contract-risk-analysis","marketing-dashboard","operations-control-center"]);function gQ(e){return mQ.has(e)}function Bne(){return xI.filter(e=>gQ(e.slug)).sort((e,t)=>(e.displayOrder??Number.MAX_SAFE_INTEGER)-(t.displayOrder??Number.MAX_SAFE_INTEGER))}const xI=[{slug:"operations-control-center",title:"Operations Control Center",tagline:"One board for work and approvals",description:"Track jobs, owners, due dates, and approvals in one status hub. See overdue work, blockers, and who owns the next step.",industry:"Cross Industry",badgeIcon:"Shield",badgeColor:"purple",cardColor:"purple",videoImageUrl:"/videos/status-hub-cover.mp4",tryItLiveLink:"https://status-hub-demo.wyecliff.ai",seeHowUsedLink:null,isImage:!1,displayOrder:1,status:"active",solutionType:"application",technologies:[]},{slug:"contract-risk-analysis",title:"AI Contract & Spec Review Platform",tagline:"AI-powered contract review and risk",description:"Powered by AI, the system compares new contracts against historical standards to identify risk. It suggests redlines.",industry:"Construction",badgeIcon:"Shield",badgeColor:"blue",cardColor:"blue",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/Photos%20and%20Videos/Contract%20video-1.mp4",tryItLiveLink:"https://contract-demo.wyecliff.ai",seeHowUsedLink:"/case-studies/kenny",isImage:!1,displayOrder:2,status:"active",solutionType:"application",technologies:[]},{slug:"proposal-writing-assistant",title:"Proposal Writing Assistant",tagline:"Generate proposals from templates",description:"Transform your written proposals into reusable templates. The system references historical contracts to generate new ones quickly.",industry:"Cross Industry",badgeIcon:"Sparkles",badgeColor:"emerald",cardColor:"emerald",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/Photos%20and%20Videos/proposalvideo-1.mp4",tryItLiveLink:"https://wyecliff.ai/case-studies",seeHowUsedLink:null,isImage:!1,displayOrder:3,status:"active",solutionType:"application",technologies:[]},{slug:"timeharmony",title:"TimeHarmony",tagline:"Automated time tracking for your team",description:"Captures time entries automatically as your team works — project-assigned, phase-classified, and synced to QuickBooks and TSheets.",industry:"Professional Services",badgeIcon:"Wrench",badgeColor:"blue",cardColor:"blue",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/Photos%20and%20Videos/timeharmony-demo.mp4",tryItLiveLink:"https://ai-time.wyecliff.ai/",seeHowUsedLink:null,isImage:!1,displayOrder:4,status:"active",solutionType:"application",technologies:[]}
291,{slug:"marketing-dashboard",title:"Marketing Dashboard",tagline:"All marketing channels in one view",description:"Pull email, paid ads, organic search, and social into one dashboard. Compare months, track goals, and see what is working.",industry:"Cross Industry",badgeIcon:"Sparkles",badgeColor:"purple",cardColor:"purple",videoImageUrl:"/videos/marketing-dashboard-cover.mp4",tryItLiveLink:"https://marketing-dashboard-analytics-demo.wyecliff.ai",seeHowUsedLink:"/case-studies/wyecliff-marketing-command-center",isImage:!1,displayOrder:5,status:"active",solutionType:"application",technologies:[]},{slug:"eop-portal",title:"EOP Portal",tagline:"Rebate management for distributors",description:"A pre-season ordering platform with real-time rebate calculations, tier tracking, and order management for distributors.",industry:"Distribution",badgeIcon:"Sparkles",badgeColor:"emerald",cardColor:"emerald",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/solution-media/eop-demo.mp4",tryItLiveLink:"https://eop-ordering-demo.wyecliff.ai",seeHowUsedLink:null,isImage:!1,displayOrder:6,status:"active",solutionType:"application",technologies:[]},{slug:"linkedin-analytics",title:"LinkedIn Analytics",tagline:"Employee advocacy metrics, unified",description:"Centralizes LinkedIn post analytics across your team with automated syncs, engagement tracking, and Monday.com integration.",industry:"Cross Industry",badgeIcon:"Sparkles",badgeColor:"blue",cardColor:"blue",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/solution-media/linkedin-demo.mp4",tryItLiveLink:"https://linkedin-analytics-demo.wyecliff.ai",seeHowUsedLink:null,isImage:!1,displayOrder:7,status:"active",solutionType:"application",technologies:[]},{slug:"usage-dashboard",title:"Usage Dashboard",tagline:"SaaS spend tracking across all tools",description:"Connects to your SaaS tools via API and syncs usage, spend, and credit data daily into a single unified monitoring dashboard.",industry:"Professional Services",badgeIcon:"Wrench",badgeColor:"cyan",cardColor:"blue",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/Photos%20and%20Videos/observatory-demo.mp4",tryItLiveLink:"https://demo.d1ehg7wj6n9no6.amplifyapp.com",seeHowUsedLink:null,isImage:!1,displayOrder:8,status:"active",solutionType:"application",technologies:[]},{slug:"invoice-processing-agent",title:"Invoice Processing Agent",tagline:"Automated AP workflow inbox to ERP",description:"AI agent that extracts invoice data from emails, matches PO numbers, and pushes approved items into your ERP automatically.",industry:"Manufacturing",badgeIcon:"Sparkles",badgeColor:"emerald",cardColor:"emerald",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/solution-media/invoice-processing-agent.mp4",tryItLiveLink:"#",seeHowUsedLink:null,isImage:!1,displayOrder:10,status:"active",solutionType:"agent",technologies:[]},{slug:"compliance-monitor-agent",title:"Compliance Monitor Agent",tagline:"50-state regulatory change monitoring",description:"Always-on AI that scans 2,000+ regulatory docs across 50 states, flags critical changes, and routes alerts to your team fast.",industry:"Financial Services",badgeIcon:"Shield",badgeColor:"blue",cardColor:"blue",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/solution-media/compliance-monitor-agent.mp4",tryItLiveLink:"#",seeHowUsedLink:null,isImage:!1,displayOrder:11,status:"active",solutionType:"agent",technologies:[]},{slug:"meeting-logging-agent",title:"Meeting Logging Agent",tagline:"Every meeting captured automatically",description:"An AI agent that captures every meeting from notes, logs it to your CRM, creates contacts, and routes action items automatically.",industry:"Cross Industry",badgeIcon:"Sparkles",badgeColor:"purple",cardColor:"purple",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/solution-media/meeting-logging-agent.mp4",tryItLiveLink:"",seeHowUsedLink:null,isImage:!1,displayOrder:12,status:"active",solutionType:"agent",technologies:[]},{slug:"account-enrichment-agent",title:"Account Enrichment Agent",tagline:"Company intel on auto
291pilot",description:"An AI agent that enriches CRM company records with verified firmographic data from Apollo — domains, revenue, headcount, and more.",industry:"Cross Industry",badgeIcon:"Shield",badgeColor:"emerald",cardColor:"emerald",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/solution-media/account-enrichment-agent.mp4",tryItLiveLink:"",seeHowUsedLink:null,isImage:!1,displayOrder:13,status:"active",solutionType:"agent",technologies:[]},{slug:"contact-intelligence-agent",title:"Contact Intelligence Agent",tagline:"Smart contacts, zero duplicates",description:"An AI agent that captures, deduplicates, and enriches contact records — then links every person to the right company in your CRM.",industry:"Cross Industry",badgeIcon:"Shield",badgeColor:"blue",cardColor:"blue",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/solution-media/contact-intelligence-agent.mp4",tryItLiveLink:"",seeHowUsedLink:null,isImage:!1,displayOrder:14,status:"active",solutionType:"agent",technologies:[]},{slug:"email-calendar-manager",title:"Email & Calendar Manager",tagline:"Drafts replies, books meetings",description:"An AI agent that reads incoming emails, drafts context-aware replies using CRM data, and books conflict-free calendar holds.",industry:"Cross Industry",badgeIcon:"Sparkles",badgeColor:"cyan",cardColor:"purple",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/solution-media/email-calendar-manager.mp4",tryItLiveLink:"",seeHowUsedLink:null,isImage:!1,displayOrder:15,status:"active",solutionType:"agent",technologies:[]},{slug:"executive-assistant-agent",title:"Executive Assistant Agent",tagline:"Your AI chief of staff",description:"A multi-agent system that orchestrates scheduling, meeting logging, and pre-call briefs via intelligent intent classification.",industry:"Cross Industry",badgeIcon:"Sparkles",badgeColor:"green",cardColor:"emerald",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/solution-media/executive-assistant-agent.mp4",tryItLiveLink:"",seeHowUsedLink:null,isImage:!1,displayOrder:16,status:"active",solutionType:"agent",technologies:[]},{slug:"daily-briefing-agent",title:"Daily Briefing Agent",tagline:"Prioritized action items at 7 AM",description:"An AI agent that queries 15 boards each morning and sends personalized, priority-sorted action item emails to every team member.",industry:"Cross Industry",badgeIcon:"Wrench",badgeColor:"blue",cardColor:"blue",videoImageUrl:"https://xsdzdlgrqnwnrqywnfpa.supabase.co/storage/v1/object/public/solution-media/daily-briefing-agent.mp4",tryItLiveLink:"",seeHowUsedLink:null,isImage:!1,displayOrder:17,status:"active",solutionType:"agent",technologies:[]}];function yQ(e){return xI.find(t=>t.slug===e)}const vQ=["contract-risk-analysis","marketing-dashboard","operations-control-center"],bQ={"contract-risk-analysis":{intro:"A contract review application that compares new subcontracts and spec books against your playbook, scores risk, and returns prioritized redlines with citations. Built for specialty trade contractors who cannot paste confidential GC agreements into public AI tools.",background:{heading:"Background",body:`Every specialty trade contractor works against two stacks on every job, and both land with a tight review window.
292
293On the contract side, long GC subcontracts, often 50 to 60 pages, hide risk in familiar-sounding clauses: broad-form indemnity, pay-when-paid, lien language, delay damages, and prime-contract flow-downs. On the spec side, construction spec books can run thousands of pages across CSI divisions. The estimating team has to know what Division 26 actually requires, reconcile that against the contract scope, and catch conflicts before the bid goes out.
294
295Senior estimators carry that knowledge, but it is hard to scale across projects. Pasting confidential agreements or full spec books into a public AI tool was never a real option. Teams need one place to review contracts and specs against the same company playbook, on infrastructure they control.`},howItWorks:{heading:"How It Works",body:`The platform handles contract review and spec review in one system, tied to the same project and customer. On contracts, it parses subcontracts into clauses, scores risk against your playbook, and returns prioritized redlines with citations. On specs, it ingests the full spec book, makes it searchable in plain language, runs your trade checklist, and builds a responsibility matrix so contract obligations and spec requirements line up before you bid.
296
297Every review is logged. Past decisions, master agreements, and spec findings stay searchable for the next job.`,bullets:["Contract review: parses subcontracts and flags payment, delay, lien, and indemnity language","Scores contract risk against your company's standard positions, not generic templates","Returns suggested redlines with citations to the clause and the playbook rule","Spec review: ingests full spec books and parses them into CSI divisions and sections","Search specs in plain language and get cited answers in seconds 
297instead of paging through hundreds of pages","Runs trade-specific checklists and builds a responsibility matrix against contract scope","Runs on isolated infrastructure so contracts and spec books never leave your environment"]},howToUseIt:{heading:"How to Use It",body:`Open Try it live to launch the demo. You can explore the full contract and spec workflow on sample documents without signing up. A walkthrough video sits at the top of this page when you want a guided tour first.
298
299The steps below match what production teams run every day. In the demo, you work with sample contracts and spec books. On your own instance, the same flow runs against your playbook, your projects, and your isolated infrastructure.
300
301See it in production at [Kenny Electric](/case-studies/kenny) and [Uihlein Electric](/case-studies/uihlein).`,bullets:["Open Try it live and pick Contract Review or Spec Review from the demo home screen","For contracts: open a sample subcontract tied to a project and customer","Review the risk score, then open prioritized findings. Each one cites the clause and the playbook rule behind it","Browse suggested redlines and comments on the sample documents","For specs: open a sample spec book, search it in plain language, or review the trade checklist findings"]},caseStudySlug:"kenny",deployedCaseStudySlugs:["kenny","uihlein"]},"marketing-dashboard":{intro:"A marketing dashboard that pulls email, paid ads, organic search, and social into one monthly view, with goals next to actuals so the team can see what is working.",background:{heading:"Background",body:`Marketing data usually lives across five or six tools. Email in one place, Google Ads in another, LinkedIn and Meta somewhere else, and website traffic in analytics. Leaders spend time stitching screenshots together instead of deciding what to do next.
302
303The Marketing Dashboard is built for that gap: one place to check channels, compare months, and see progress against goals without hopping between platforms.
304
305Aggie Inc is our sample company in the live demo. The numbers are fake, but the layout matches what we ship for real teams.`},howItWorks:{heading:"How It Works",body:`The dashboard centers on a monthly overview. Top KPIs, channel summaries, and month-over-month movement sit in one place. Dedicated pages go deeper on email, website, Google Ads, Meta, LinkedIn, organic search, and social. A goals page compares targets to actuals and flags what is on track or needs attention. A global month selector filters every page at once.
306
307The playground build is read-only. There is no live ad account connection and no admin editing, so the walkthrough stays predictable.`,bullets:["Executive overview with KPIs, sparklines, and channel summaries","Channel pages for email, website, Google Ads, Meta, LinkedIn, search, and social","Monthly goals next to actual results, with on-track and at-risk flags","Global month selector that filters every page at once","Team social metrics for a sample marketing team","Demo data across January through June 2026"]},howToUseIt:{heading:"How to Use It",body:`Open Try it live to jump straight into the Aggie Inc dashboard. Use the month selector in the header, scan Overview, then open the channel pages and Goals.
308
309We run a production version of this pattern ourselves. Read the [Marketing Command Center](/case-studies/wyecliff-marketing-command-center) case study for how it works day to day at Wyecliff.`,bullets:["Open Try it live. No login is required for this demo","Pick a month in the header. June 2026 is the default","Scan Overview for the full-month picture","Open Email, Website, Ads, Search, or Social for channel detail","Open Goals to compare targets with actual results"]},caseStudySlug:"wyecliff-marketing-command-center",deployedCaseStudySlugs:["wyecliff-marketing-command-center"]},"operations-control-center":{intro:"A status hub that puts work, ownership, due dates, approvals, and blockers on one board so ops leaders can see what is stuck and who owns the next step.",background:{heading:"Background",body:`Ops work often lives across spreadsheets, email, and chat. Ownership is unclear, approvals sit too long, and leaders only hear about blockers in the weekly meeting.
310
311The Operations Control Center is built for that gap: one place to track items across jobs, see what is overdue or waiting, and open any item for context without hunting through threads.
312
313Aggie Inc is our sample company in the live demo. The board is preloaded with construction workstreams so you can click through a real ops rhythm without connecting live systems.`},howItWorks:{heading:"How It Works",body:`The hub centers on a workstream board. Items move through New, In Progress, Waiting, Blocked, and Done. Stat cards surface overdue work, due-soon items, pending approvals, and blocked items so you can filter the board to what needs attention.
314
315Open any item for the full picture: owner, due date, priority, next action, description, comments, approvals, attachments, and an activity timeline. My Page pulls personal tasks and approvals into one view. Reports cover overdue and at-risk work, workload by owner, aging, and bottlenecks. An AI Briefing can generate canned executive, stuck-work, and risk summaries from the board.
316
317The playground build is read-only. Creating items, changing status, and inviting users are disabled so the walkthrough stays predictable.`,bullets:["Kanban board with New, In Progress, Waiting, Blocked, and Done","Stat cards to filter overdue, due soon, awaiting approval, and blocked work","Workstream filters across sample jobs (for example Downtown Tower or Hospital Wing)","Item drawer with owner, due date, next action, comments, approvals, and activity","My Page for personal tasks, pending approvals, and attention-required items","Reports for overdue and at-risk, workload by owner, aging, and bottlenecks","AI Briefing modes for executive summary, stuck work, and risk forecast"]},howToUseIt:{heading:"How to Use It",body:"Open Try it live to land on the Aggie Inc board as a sample manager. Scan the stat cards, filter the board, open an item drawer, then check My Page and Reports. Use AI Briefing when you want a short summary of what the board is saying.",bullets:["Open Try it live. No login is required for this demo","Scan the four stat cards, then click one to filter the board","Use Organization and Workstream filters to narrow the view","Open an item to see owner, due date, next action, comments, and approvals","Open My Page for personal tasks and pending approvals","Open Reports for overdue, workload, aging, or bottleneck views","Click AI Briefing and try Executive Summary, Stuck Work, or Risk Forecast"]},caseStudySlug:null,deployedCaseStudySlugs:[]}};function wQ(e){return vQ.includes(e)}function xQ(e){if(!wQ(e))return null;const t=yQ(e);if(!t)return null;const n=bQ[e];return{...t,...n}}const SQ=()=>Ke(()=>import("./solution-playground_._slug-DZbw9EOa.js"),__vite__mapDeps([41,42,43,33,27])),_Q=We("/solution-playground_/$slug")({loader:({params:e})=>{const t=xQ(e.slug);
317if(!t)throw Wa();const n=t.deployedCaseStudySlugs.map(s=>pI(s)).filter(s=>s!==void 0);return{story:t,deployed:n}},head:({loaderData:e,params:t})=>{const n=e?.story,s=`/solution-playground/${t.slug}`,i=n?`${n.title} | Wyecliff Solution Playground`:"Solution | Wyecliff",o=n?.intro??n?.description??"Wyecliff solution demo.";return{...mt({path:s,title:i,description:o,type:"article"}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Solution Playground",path:"/solution-playground"},{name:n?.title??"Solution",path:s}]))]}},component:Ge(SQ,"component")}),kQ=()=>Ke(()=>import("./train-Bren9yXh.js"),__vite__mapDeps([44,45,33,46,47])),AQ=We("/services/train")({head:()=>({...mt({path:"/services/train",title:"Corporate AI Training & Employee Enablement | Wyecliff",description:"Corporate AI training and employee enablement for Microsoft Copilot and Claude, with role-based workshops, prompt libraries, and measured adoption.",ogDescription:"Corporate AI training that makes Copilot and Claude stick."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Train",path:"/services/train"}])),qe({"@context":"https://schema.org","@type":"Service",name:"Corporate AI Training & Enablement",serviceType:"Corporate AI Training & Employee Enablement",description:"Corporate AI training and employee enablement that makes Microsoft Copilot and Claude stick, with cohort workshops, prompt libraries, and a 90-day adoption SLA.",url:Qn("/services/train"),provider:{"@type":"Organization",name:"Wyecliff",url:Qn("/")}})]}),component:Ge(kQ,"component")}),CQ=()=>Ke(()=>import("./discover-BXWFcHQ-.js"),__vite__mapDeps([48,45,33,34,13])),EQ=We("/services/discover")({head:()=>({...mt({path:"/services/discover",title:"AI Readiness Assessment & Strategy Consulting | Wyecliff",description:"An AI readiness assessment and strategy consulting sprint that ranks use cases by ROI and delivers a 90-day roadmap your team can execute.",ogDescription:"Find where AI pays off in your business, ranked by ROI, in one week."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Discover",path:"/services/discover"}])),qe({"@context":"https://schema.org","@type":"Service",name:"AI Readiness Assessment & Strategy",serviceType:"AI Readiness Assessment",description:"An on-site AI readiness assessment that maps your workflows, scores your AI readiness, and delivers a ranked 90 day AI roadmap weighted by ROI.",url:Qn("/services/discover"),provider:{"@type":"Organization",name:"Wyecliff",url:Qn("/")}})]}),component:Ge(CQ,"component")}),TQ=()=>Ke(()=>import("./deploy-B_o1FEYP.js"),__vite__mapDeps([49,45,33,46,50,47])),RQ=We("/services/deploy")({head:()=>({...mt({path:"/services/deploy",title:"Copilot Rollout & Microsoft AI Implementation | Wyecliff",description:"Microsoft Copilot rollout and enterprise AI deployment on Claude and Azure, with eval suites, observability, and human review built in from day one.",ogDescription:"Copilot rollout and production AI y
317our team actually trusts."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Deploy",path:"/services/deploy"}])),qe({"@context":"https://schema.org","@type":"Service",name:"Copilot Rollout & Microsoft AI Implementation",serviceType:"Microsoft Copilot Implementation & AI Deployment",description:"Microsoft Copilot rollout and enterprise AI deployment on Anthropic Claude and Microsoft Azure, with eval suites, observability, and human-in-the-loop review inside your tenant.",url:Qn("/services/deploy"),provider:{"@type":"Organization",name:"Wyecliff",url:Qn("/")}})]}),component:Ge(TQ,"component")}),OQ=()=>Ke(()=>import("./build-DQUUm2zY.js"),__vite__mapDeps([51,45,33,50,34])),jQ=We("/services/build")({head:()=>({...mt({path:"/services/build",title:"Custom AI Agents & Application Development | Wyecliff",description:"Custom AI agents and application development built in your tenant, with integrations to ERP, CRM, and the systems your team already runs.",ogDescription:"Custom AI applications and agents shaped to your business, built in your tenant when available."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Build",path:"/services/build"}])),qe({"@context":"https://schema.org","@type":"Service",name:"Custom AI Applications & Agents",serviceType:"Custom AI Application & Agent Development",description:"Custom apps and production AI agents built in your tenant when available, with hosted cloud infrastructure available when you need it.",url:Qn("/services/build"),provider:{"@type":"Organization",name:"Wyecliff",url:Qn("/")}})]}),component:Ge(OQ,"component")}),NQ=[{key:"microsoft",name:"Microsoft",badge:"Cloud Partner",description:"We deploy on your Azure tenant and build inside Power Platform, Dynamics 365, and Microsoft 365 Copilot with named partner access to Microsoft architecture and adoption resources.",externalUrl:"https://partner.microsoft.com/"},{key:"anthropic",name:"Anthropic",badge:"Official Partner",description:"Claude in production with model lifecycle management, custom eval suites built around your data, and deployment patterns we ship on live engagements.",externalUrl:"https://www.anthropic.com/partners"},{key:"monday",name:"Monday.com",badge:"Solutions Partner",description:"Work OS and workflow automation we wire into operator-led rollouts when teams need visibility across projects, intake, and field operations.",externalUrl:"https://monday.com/p/partners"},{key:"ramp",name:"Ramp",badge:"Platform Partner",description:"Finance and spend platform integrations for clients modernizing AP, card programs, and back-office controls alongside AI rollouts.",externalUrl:"https://ramp.com/"}],IQ={microsoft:{partnership:{heading:"The Partnership",body:"Microsoft is the operating system of the kinds of companies Wyecliff is built for. Distributors, manufacturers, contractors, brokerages, and professional services firms already run on Microsoft 365, SharePoint, Dynamics, and Power Platform. When we add AI, we add it to the surface area they already use."},howWeWork:{heading:"How We Work With Microsoft",body:`As a Microsoft Cloud Partner, Wyecliff has named access to Azure architecture support, Microsoft 365 Copilot deployment guidance, Dynamics 365 integration pathways, and Power Platform ALM patterns that keep custom apps governable past go-live.
318
319We deploy on your Azure tenant with your data, your guardrails, and your auditors' paper trail. We build inside Power Apps, Power Automate, and Dynamics 365 when those are the right tools, instead of dropping in a SaaS app the team will quietly stop using. We treat Microsoft 365 Copilot adoption as a real change-management problem with eval suites, prompt libraries, training, and quarterly health checks.`},capabilities:{heading:"Platforms We Deploy",body:"Four Microsoft surfaces we ship on live engagements:",bullets:["Azure on your tenant with your security and compliance controls","Power Platform apps, flows, and governed ALM for custom work","Dynamics 365 integrations and AI copilots that write back through plugins","Microsoft 365 Copilot rollout, adoption, and ongoing health checks"]}},anthropic:{partnership:{heading:"The Partnership",body:"Wyecliff is an Official Anthropic Partner. That means a named relationship with the team building Claude, access to release roadmaps, the partner solutions engineering org, and the eval and safety tooling that powers Anthropic's own deployments. Anthropic tracks how our Claude rollouts land, and that keeps us honest on enterprise outcomes."},howWeWork:{heading:"How We Work With Anthropic",body:`We deploy Claude in production inside customer tenants on Bedrock or Azure-fronted bridges, governed by your security team. We evaluate every Claude release on the customer's actual workloads before we roll it, with a clear deprecation runway when older models retire.
320
321We build custom eval suites around your data, not generic benchmarks. Golden sets, drift monitoring, and quarterly reports that a CFO can read. We also use Claude Code as our internal delivery tool, so every Wyecliff engagement ships faster with cleaner repos and better tests.`},capabilities:{heading:"What We Ship",body:"Four patterns we run on Anthropic engagements:",bullets:["Claude in production on Sonnet and Opus inside your tenant","Model lifecycle management with release evals before every upgrade","Custom eval suites, rubrics, and drift monitoring on your workloads","Deployment patterns for agents, copilots, and governed write-back"]}},monday:{partnership:{heading:"The Partnership",body:"Monday.com is the work OS many mid-market operators use to run projects, intake queues, and cross-team visibility. As a Solutions Partner, Wyecliff wires Monday into operator-led rollouts when the team needs a shared surface for field ops, service desks, and internal programs without standing up another siloed app."},howWeWork:{heading:"How We Work With Monday.com",body:`We map how work actually moves through your business before we automate it. That means 
321shadowing coordinators, project leads, and ops managers to see where status updates stall and where Monday boards can replace email chains.
322
323We build boards, automations, and integrations that connect Monday to the systems your team already trusts: Outlook, SharePoint, Dynamics, and custom APIs. Adoption is packaged with training and playbooks so the rollout survives the first busy month after go-live.`},capabilities:{heading:"What We Ship",body:"Common Monday.com work we deliver on engagements:",bullets:["Workflow automation across boards, forms, and status-driven triggers","Work OS templates for projects, intake, and field operations","Cross-team dashboards that replace spreadsheet status chasing","Implementation playbooks and enablement for coordinators and managers"]}},ramp:{partnership:{heading:"The Partnership",body:"Ramp is the finance and spend platform many growth-stage operators adopt when they want modern card programs, AP automation, and tighter back-office controls. As a Platform Partner, Wyecliff connects Ramp to the ERP, accounting, and AI workflows clients are modernizing in the same program."},howWeWork:{heading:"How We Work With Ramp",body:`We integrate Ramp where finance ops actually run: vendor onboarding, AP queues, card policies, and month-end close. That often means syncing Ramp with Dynamics, NetSuite, or QuickBooks while AI agents handle intake, coding suggestions, and exception routing.
324
325We package the integration with controls your CFO and auditors can defend: permissions, approval paths, and audit trails that survive a growth year, not just a pilot.`},capabilities:{heading:"What We Ship",body:"Ramp integrations we deliver alongside AI rollouts:",bullets:["Spend management and card program setup with policy guardrails","AP automation tied to your ERP and approval workflows","Finance ops integrations for coding, matching, and exception routing","Platform connections to accounting systems and internal agent workflows"]}}};function PQ(e){const t=IQ[e.key];return{...e,title:`${e.name} ${e.badge}`,intro:e.description,...t}}const SI=NQ.map(PQ);function MQ(e){return SI.find(t=>t.key===e)??null}function DQ(e,t=3){return SI.filter(s=>s.key!==e).slice(0,t)}const LQ=()=>Ke(()=>import("./partners_._slug-BrT6hlES.js"),__vite__mapDeps([52,12,43,33])),BQ=We("/partners_/$slug")({loader:({params:e})=>{const t=MQ(e.slug);if(!t)throw Wa();const n=DQ(e.slug,3);return{story:t,similar:n}},head:({loaderData:e,params:t})=>{const n=e?.story,s=`/partners/${t.slug}`,i=n?`${n.title} | Wyecliff`:"Partner | Wyecliff",o=n?.intro??"Wyecliff technology partner.";return{...mt({path:s,title:i,description:o,type:"article"}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Partners",path:"/partners"},{name:n?.name??"Partner",path:s}]))]}},component:Ge(LQ,"component")}),UQ=()=>Ke(()=>import("./newsletter_.confirmed-B6OU3eU_.js"),[]),zQ=We("/newsletter_/confirmed")({head:()=>{const e=mt({path:"/newsletter/confirmed",title:"Subscription Confirmed | Wyecliff Weekly",description:"You're subscribed to Wyecliff Weekly. Your next AI briefing arrives Friday.",ogTitle:"Subscription Confirmed | Wyecliff Weekly",ogDescription:"You're subscribed to Wyecliff Weekly. Your next AI briefing arrives Friday."});return{...e,meta:[...e.meta,{name:"robots",content:"noindex, nofollow"}]}},component:Ge(UQ,"component")});function _I(e,t){const n=e.publishedAt??e.createdAt??void 0,s=e.updatedAt??n,i={"@context":"https://schema.org","@type":"Article",headline:e.title,description:e.seoDescription??e.description??void 0,mainEntityOfPage:{"@type":"WebPage","@id":Qn(t)},author:{"@type":XE(e.author)!==ro?"Person":"Organization",name:XE(e.author)},publisher:{"@type":"Organization",name:ro,url:`${Xi}/`,logo:{"@type":"ImageObject",url:dp}}};return n&&(i.datePublished=n),s&&(i.dateModified=s),e.image&&(i.image=fp(e.image)),i}function VQ(e){return!e?.faq||e.faq.length===0?null:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.faq.map(t=>({"@type":"Question",name:t.q,acceptedAnswer:{"@type":"Answer",text:t.a}}))}}const $Q=()=>Ke(()=>import("./newsletter_._slug-BQO6_87C.js"),__vite__mapDeps([53,54,29,55,18,19,15,16,17,43,33]));function FQ(){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:yK.map(e=>
325({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.a}}))}}const HQ=We("/newsletter_/$slug")({loader:async({params:e})=>{const t=await wI(e.slug);if(!t||!Qp(t))throw Wa();const n=(await bI({limit:6})).filter(s=>s.slug!==t.slug).slice(0,3);return{article:t,related:n}},head:({loaderData:e,params:t})=>{const n=e?.article,s=`/newsletter/${t.slug}`,i=n?n.seoTitle??`${n.title} | Wyecliff Weekly`:"Wyecliff Weekly | Wyecliff",o=n?.seoDescription??n?.description??"An edition of Wyecliff Weekly, the Friday AI briefing for operators.",l=[qe(qt([{name:"Home",path:"/"},{name:"Wyecliff Weekly",path:"/newsletter"},{name:n?.title??"Edition",path:s}]))];return n&&(l.push(qe(_I(n,s))),l.push(qe(FQ()))),{...mt({path:s,title:i,description:o,image:n?.image||void 0,type:"article"}),scripts:l}},component:Ge($Q,"component")}),qQ=[{q:"What does an AI consulting engagement in Denver look like?",a:"We start with a one-week discovery sprint, on site with your Denver team, to map where AI saves the most time and money. From there we build, deploy, and train on a clear plan with return on investment attached to every use case."},{q:"Do you work with companies outside of Denver?",a:"Yes. We are based in the Denver and Colorado market and work with operators across the Front Range and the wider United States. Discovery is on site where it helps, and the build and deploy work runs remotely."},{q:"Which industries do you serve in the Denver area?",a:"We focus on operating companies like construction, manufacturing, and distribution, and professional services like accounting, insurance, legal, and private equity. The Wyecliff method ports across all of them."},{q:"What AI platforms do you deploy?",a:"We are an Anthropic Official Partner and a Microsoft Cloud Partner, so we deploy across Claude and the Microsoft stack, as well as AWS and Google Cloud. We pick the platform that fits the work, not the other way around."},{q:"Do you offer AI consulting for insurance agencies in Denver?",a:"Yes. We work with Denver and Colorado insurance agencies on producer copilots, submission automation, and claims triage wired into the AMS. See our insurance industry page for the full playbook."},{q:"Do you work with law firms in Denver?",a:"Yes. We deploy AI for Denver law firms on research, discovery, and contract review inside iManage, NetDocuments, and Clio, with citation discipline built in from day one."},{q:"Can you help manufacturers in Colorado with AI?",a:"Yes. We deploy predictive maintenance, quality inspection, and shop-floor copilots for manufacturers across Colorado, wired to the ERP and MES you already run."}],WQ=()=>Ke(()=>import("./denver-ai-consulting-t5957sMU.js"),__vite__mapDeps([56,39])),vp="/locations/denver-ai-consulting";function GQ(){return{"@context":"https://schema.org","@type":"ProfessionalService","@id":`${Xi}${vp}#business`,name:"Wyecliff",url:Qn(vp),logo:dp,image:dp,email:"[email protected]",description:"AI consulting in Denver for operating companies and professional services firms. Wyecliff deploys custom software and production AI across the Microsoft and Anthropic stacks.",serviceType:"AI consulting",knowsAbout:["AI consulting","Custom software development","ERP implementation","Microsoft Copilot","Anthropic Claude"],address:{"@type":"PostalAddress",addressLocality:"Denver",addressRegion:"CO",addressCountry:"US"},areaServed:[{"@type":"City",name:"Denver"},{"@type":"State",name:"Colorado"},{"@type":"Country",name:"United States"}],sameAs:iN}}function KQ(e){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.q,acceptedAnswer:{"@type":"Answer",text:t.a}}))}}const YQ=We("/locations/denver-ai-consulting")({head:()=>({...mt({path:vp,title:"AI Consulting in Denver, Colorado | Wyecliff",description:"Denver AI consulting from Wyecliff for Colorado operators. We help insurance agencies, law firms, manufacturers, and contractors find, build, deploy, and adopt AI with clear ROI.",ogDescription:"AI consulting in Denver for operating companies and professional services firms."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Denver AI Consulting",path:vp}])),qe(GQ()),qe(KQ(qQ))]}),component:Ge(WQ,"component")}),ZQ=[{q:"What is AI for private equity?",a:"AI for private equity applies large language models to the work sponsors do across the deal lifecycle: accelerating diligence, screening CIMs against a thesis, synthesizing customer calls, and driving AI value creation inside portfolio companies. The goal is faster conviction at IC and measurable operating leverage after close."},{q:"How does AI speed up due diligence?",a:"AI reads the full data room, extracts and summarizes contracts, flags quality-of-earnings and customer-concentration risk, and synthesizes interview notes into themes. What took an analyst a week can move to a couple of days, and the deal team spends its time on judgment rather than on reading every document line by line."},{q:"What is an AI maturity audit for a portfolio company?",a:"It is a one-week assessment of a company's operations, data, and change-readiness that produces a ranked list of AI initiatives sized to that company's stage and team. Run across the portfolio, the audits give the sponsor a single view of AI maturity and a repeatable plan for value creation."},{q:"Can a fund roll AI out across many portfolio companies?",a:"Yes. We build a repeatable playbook: standardized maturity audits, diligence accelerators, and enablement cohorts that scale across ten to thirty companies. Two operating partners cannot personally drive AI inside every company, so the work is packaged to fork from one investment to the next."},{q:"How is AI value creation reported to LPs?",a:"We provide sponsor-side reporting that rolls company-level AI initiatives and adoption into a fund-level view, refreshed by quarter. That gives operating partners and IR a concrete, defensible narrative on AI value creation rather than a slide of aspirations."},{q:"What AI tools help with private equity modeling?",a:"AI for private equity modeling accelerates CIM review, extracts assumptions from data rooms, and stress-tests scenarios against your thesis. It does not replace the associate's judgment, but it cuts the hours spent rebuilding models from scratch on every deal."},{q:"How does AI automate contract review in PE deals?",a:"A contract intelligence agent reads NDAs, customer contracts, and change-of-control clauses in the data room, flags terms against your playbook, and produces a plain-language summary for the deal team. Partners still decide, but nothing risky hides in page 47."}],XQ=1280,JQ=720;function kI(e){const t=e.match(/([\d,]+)-([\d,]+)\s+hours\/week/i);if(t)return`Hours: ${eT(t[1])}-${eT(t[2])}/wk`;const n=e.match(/\$[\d,.]+[KMB]?\+?/i)?.[0];if(!n)return e;const s=e.toLowerCase();return s.includes("savings")?`Savings: ${n}`:s.includes("revenue")?`Revenue: ${n}`:`ROI: ${n}`}function eT(e){const t=Number(e.replace(/,/g,""));return!Number.isFinite(t)||t<1e3?e:`${Math.round(t/1e3)}k`}function tT(e){return!e.includes("$")&&!/\d[\d,]*\s*-\s*\d[\d,]*\s+hours/i.test(e)&&!/hours\/week/i.test(e)}function AI(e,t,n){const s=[];if(n&&s.push({label:n,kind:"prefix"}),e.industry&&s.push({label:e.industry,kind:"industry"}),e.annualRoi&&tT(e.annualRoi)){const i=e.annualRoi.split(/\s*\/\s*/).filter(
325Boolean);for(const o of i)s.push({label:o,kind:"capability"})}return e.annualRoi&&t&&!tT(e.annualRoi)&&s.push({label:t,kind:"impact"}),s.length===0&&s.push({label:"Read the case study",kind:"fallback"}),s}function QQ(e,t){const n="inline-flex shrink-0 items-center rounded-full px-2.5 py-1 text-[10px] font-medium leading-none";return e==="industry"||e==="capability"||e==="prefix"?Ce(n,t?"border border-purple-400/25 bg-purple-500/10 text-purple-300":"border border-purple-200 bg-purple-50 text-[#7f57da]"):Ce(n,t?"border border-white/[0.10] bg-white/[0.04] text-foreground/55":"border border-black/[0.08] bg-black/[0.03] text-ink-muted")}function CI({chips:e,dark:t}){return y.jsx("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:e.map(n=>y.jsx("span",{className:QQ(n.kind,t),children:n.label},`${n.kind}-${n.label}`))})}function $u({caseStudy:e,className:t,priority:n=!1}){const s=e.image.startsWith("/")&&/\.jpe?g$/i.test(e.image),i=e.image.replace(/\.jpe?g$/i,"");return y.jsxs("picture",{className:"contents",children:[s?y.jsxs(y.Fragment,{children:[y.jsx("source",{srcSet:`${i}.avif`,type:"image/avif"}),y.jsx("source",{srcSet:`${i}.webp`,type:"image/webp"})]}):null,y.jsx("img",{src:e.image,alt:JX(e),width:XQ,height:JQ,className:t,loading:n?"eager":"lazy",decoding:n?"sync":"async",fetchPriority:n?"high":"auto"})]})}function eee({caseStudy:e,variant:t="standard",tone:n="paper",className:s,priority:i=!1,hideDescription:o=!1,nonInteractive:l=!1,horizontal:u=!1}){return t==="featured"?y.jsx(nee,{caseStudy:e,tone:n,className:s,priority:i,horizontal:u}):t==="compact"?y.jsx(see,{caseStudy:e,tone:n,className:s}):y.jsx(tee,{caseStudy:e,tone:n,className:s,priority:i,hideDescription:o,nonInteractive:l})}function tee({caseStudy:e,tone:t,className:n,priority:s=!1,hideDescription:i=!1,nonInteractive:o=!1}){const l=t==="dark",u=hI(e),f=e.annualRoi?kI(e.annualRoi):null,h=Ce("group relative flex flex-col overflow-hidden rounded-2xl border transition-colors",l?"border-white/[0.08] bg-white/[0.02] hover:border-purple-300/40 hover:bg-white/[0.04]":"border-black/[0.07] bg-white hover:border-purple-300 hover:bg-white",n),p=u?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"relative aspect-[16/10] w-full overflow-hidden bg-[var(--bg-grey)]",children:y.jsx($u,{caseStudy:e,priority:s,className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"})}),y.jsx("div",{className:"flex flex-1 flex-col px-6 pb-5 pt-10",children:y.jsxs("div",{className:Ce("flex items-center justify-between border-t pt-4",l?"border-white/[0.08]":"border-black/[0.06]"),children:[y.jsx("span",{className:Ce("text-xs font-medium",l?"text-foreground/55":"text-ink-muted"),children:"Read the case study"}),y.jsxs("span",{className:Ce("inline-flex items-center gap-1 text-xs font-medium transition",l?"text-purple-300 group-hover:text-purple-200":"text-purple-600 group-hover:text-purple-700"),children:["View work",y.jsx(ys,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})]})})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"relative aspect-[16/10] w-full overflow-hidden bg-[var(--bg-grey)]",children:[y.jsx($u,{caseStudy:e,priority:s,className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"}),y.jsx("div",{className:"cs-cover-glow pointer-events-none absolute inset-0","aria-hidden":!0})]}),y.jsxs("div",{className:"flex flex-1 flex-col p-6",children:[y.jsx("div",{className:Ce("font-mono-label",l?"text-purple-300":"text-purple-600"),children:e.company}),y.jsx("h3",{className:Ce("font-display mt-3 text-[25px] leading-[1.2] tracking-[-0.015em]",l?"text-foreground":"text-ink"),children:e.benefitHook??e.title}),i?null:y.jsx("p",{className:Ce("mt-3 line-clamp-3 text-sm leading-relaxed",l?"text-foreground/70":"text-ink-muted"),children:e.description}),y.jsxs("div",{className:Ce("mt-5 flex items-center justify-between gap-3 border-t pt-4",l?"border-white/[0.08]":"border-black/[0.06]"),children:[y.jsx(CI,{chips:AI(e,f),dark:l}),y.jsxs("span",{className:Ce("inline-flex items-center gap-1 text-xs font-medium transition",l?"text-purple-300 group-hover:text-purple-200":"text-purple-600 group-hover:text-purple-700"),
325children:["View work",y.jsx(ys,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})]})]})]});return o?y.jsx("div",{className:h,children:p}):y.jsx(ot,{to:"/case-studies/$slug",params:{slug:e.slug},className:h,children:p})}function nee({caseStudy:e,tone:t,className:n,priority:s=!1,horizontal:i=!1}){const o=t==="dark";return y.jsxs(ot,{to:"/case-studies/$slug",params:{slug:e.slug},className:Ce("group relative grid overflow-hidden rounded-3xl border transition-colors",i?"md:grid-cols-[1.15fr_1fr]":"lg:grid-cols-[1.15fr_1fr]",o?"border-white/[0.08] bg-[var(--ink)]/95 hover:border-purple-300/40":"border-black/[0.06] bg-white hover:border-purple-300",n),children:[y.jsxs("div",{className:Ce("relative aspect-[16/10]",i?"md:aspect-auto md:min-h-[280px]":"lg:aspect-auto"),children:[y.jsx($u,{caseStudy:e,priority:s,className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"}),y.jsx("div",{className:"cs-cover-glow pointer-events-none absolute inset-0","aria-hidden":!0})]}),y.jsxs("div",{className:"flex flex-col justify-between p-8 lg:p-10",children:[y.jsxs("div",{children:[y.jsx("div",{className:Ce("font-mono-label",o?"text-purple-300":"text-purple-600"),children:e.company}),y.jsx("h3",{className:Ce("font-display mt-3 leading-[1.05] tracking-[-0.025em]",o?"text-foreground":"text-ink"),style:{fontSize:"clamp(1.65rem, 2.6vw, 2.4rem)",fontWeight:500},children:e.benefitHook??e.title}),y.jsx("p",{className:Ce("mt-4 line-clamp-3 text-[15px] leading-relaxed",o?"text-foreground/65":"text-ink-muted"),children:e.description})]}),e.results.length?y.jsx("ul",{className:Ce("mt-7 grid grid-cols-2 gap-x-5 gap-y-3 border-t pt-5",o?"border-white/[0.08]":"border-black/[0.06]"),children:e.results.slice(0,4).map(l=>y.jsxs("li",{className:Ce("flex items-start gap-2 text-[13px] leading-snug",o?"text-foreground/80":"text-ink"),children:[y.jsx("span",{className:Ce("mt-1.5 inline-block size-1 shrink-0 rounded-full",o?"bg-purple-300":"bg-purple-600")}),l]},l))}):null,y.jsxs("div",{className:Ce("mt-7 flex items-center justify-between gap-3 border-t pt-4",o?"border-white/[0.08]":"border-black/[0.06]"),children:[y.jsx(CI,{chips:AI(e,e.annualRoi?kI(e.annualRoi):null,"Flagship"),dark:o}),y.jsxs("span",{className:Ce("inline-flex items-center gap-1 text-xs font-medium transition",o?"text-purple-300 group-hover:text-purple-200":"text-purple-600 group-hover:text-purple-700"),children:["Read the full case",y.jsx(ys,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})]})]})]})}function see({caseStudy:e,tone:t,className:n}){const s=t==="dark";return y.jsxs(ot,{to:"/case-studies/$slug",params:{slug:e.slug}
325,className:Ce("group flex items-center gap-4 rounded-xl border p-4 transition",s?"border-white/[0.08] bg-white/[0.02] hover:border-purple-300/40 hover:bg-white/[0.04]":"border-black/[0.06] bg-white hover:border-purple-300",n),children:[y.jsx("div",{className:"relative aspect-square w-16 shrink-0 overflow-hidden rounded-lg bg-[var(--bg-grey)]",children:y.jsx($u,{caseStudy:e,className:"h-full w-full object-cover"})}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{className:Ce("font-mono-label truncate",s?"text-purple-300":"text-purple-600"),children:e.company}),y.jsx("div",{className:Ce("mt-0.5 truncate text-sm font-medium",s?"text-foreground":"text-ink"),children:e.benefitHook??e.title})]}),y.jsx(ys,{className:Ce("h-4 w-4 shrink-0 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5",s?"text-foreground/55":"text-ink-muted")})]})}function ree(){return y.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-[0.58] lg:hidden",style:{backgroundImage:"linear-gradient(to right, rgba(165,133,236,0.12) 1px, transparent 1px), linear-gradient(to bottom, rgba(165,133,236,0.12) 1px, transparent 1px)",backgroundSize:"44px 44px",maskImage:"radial-gradient(95% 80% at 12% 18%, black 0%, transparent 100%)",WebkitMaskImage:"radial-gradient(95% 80% at 12% 18%, black 0%, transparent 100%)"},"aria-hidden":!0})}function iee({links:e,tone:t="dark",heading:n="Guides and services that go deeper.",subheading:s="Related reading"}){if(e.length===0)return null;const i=t==="dark";return y.jsx("section",{className:i?"section-editorial-hero border-t border-white/[0.06]":"section-paper border-t border-black/[0.06]",children:y.jsxs("div",{className:"mx-auto max-w-[1400px] px-6 py-16 lg:py-20",children:[y.jsx("div",{className:i?"font-mono-label text-purple-300":"font-mono-label text-purple-600",children:s}),y.jsx("h2",{className:i?"font-display mt-4 max-w-xl leading-[1.05] tracking-[-0.03em] text-foreground":"font-display mt-4 max-w-xl leading-[1.05] tracking-[-0.03em] text-ink",style:{fontSize:"clamp(1.75rem, 3vw, 2.5rem)",fontWeight:500},children:n}),y.jsx("ul",{className:"mt-8 flex flex-col gap-3 sm:flex-row sm:flex-wrap",children:e.map(o=>y.jsx("li",{children:y.jsxs(ot,{to:o.to,className:i?"group inline-flex items-center gap-2 rounded-full border border-white/[0.12] px-5 py-2.5 text-sm font-medium text-foreground transition hover:border-purple-300/40 hover:text-purple-200":"group inline-flex items-center gap-2 rounded-full border border-black/[0.10] bg-white px-5 py-2.5 text-sm font-medium text-ink transition hover:border-purple-300/50 hover:text-purple-700",children:[o.label,y.jsx(ys,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5","aria-hidden":!0})]})},o.to))})]})})}const EI=E.forwardRef(({className:e,...t},n)=>y.jsx("textarea",{className:Ce("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));EI.displayName="Textarea";const nT=["Tell us what's getting in the way of your team shipping…","Where is AI quietly losing you money each week?","What's the manual handoff that breaks every Friday?","Which spreadsheet would you love to retire forever?","What would your team build with ten hours back?","Where is Microsoft Copilot falling short for you?"],aee=[{Icon:DR,label:"Audit my workflows",prefill:`We'd like a Wyecliff audit of our workflows. Here's where we're stuck:
326
327`},{Icon:NR,label:"Build an AI agent",prefill:`We want a custom AI agent for our team. The job we'd hand it:
328
329`},{Icon:IR,label:"ERP integration",prefill:`Help us wire AI into our ERP (NetSuite / D365 / Epicor / other). The use case:
330
331`},{Icon:LR,label:"Copilot rollout",prefill:`We're rolling out Microsoft Copilot and need help making it stick. Current state:
332
333`},{Icon:BR,label:"Claude deployment",prefill:`We want to deploy Claude across the team. The problem we want it to solve:
334
335`}];function oee({minHeight:e,maxHeight:t}){const n=E.useRef(null),s=E.useCallback(i=>{const o=n.current;if(!o)return;if(i){o.style.height=`${e}px`;return}o.style.height=`${e}px`;const l=Math.max(e,Math.min(o.scrollHeight,t));o.style.height=`${l}px`},[e,t]);return E.useEffect(()=>{n.current&&(n.current.style.height=`${e}px`)},[e]),E.useEffect(()=>{const i=()=>s();return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[s]),{textareaRef:n,adjustHeight:s}}function lee(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim())}function cee(e,t){const[n,s]=E.useState(()=>e[0]??"");return E.useEffect(()=>{if(t||e.length===0)return;let i=!1,o,l=0,u=e[0].length,f="wait",h=performance.now()+2400;const p=()=>
335{if(i)return;if(f==="wait"){performance.now()>=h&&(f=u>0?"delete":"type"),o=window.setTimeout(p,60);return}if(f==="delete"){u>0?(u-=1,s(e[l].slice(0,u)),o=window.setTimeout(p,22)):(l=(l+1)%e.length,f="wait",h=performance.now()+280,o=window.setTimeout(p,60));return}const m=e[l];u<m.length?(u+=1,s(m.slice(0,u)),o=window.setTimeout(p,38)):(f="wait",h=performance.now()+2400,o=window.setTimeout(p,60))};return o=window.setTimeout(p,60),()=>{i=!0,o!==void 0&&window.clearTimeout(o)}},[e,t]),n}async function uee(e){if(!e.problem||!e.email)return{ok:!1};if(!Cw(e.email))return{ok:!1,error:au};const{data:t,error:n}=await es.functions.invoke("submit-contact-form",{body:{email:e.email,problem:e.problem,source:"final-cta"}}),s=t?.error;return n||s?{ok:!1,error:s}:{ok:!0}}function dee(){const[e,t]=E.useState(""),[n,s]=E.useState(""),[i,o]=E.useState("idle"),{textareaRef:l,adjustHeight:u}=oee({minHeight:88,maxHeight:240}),f=cG()??!1,h=cee(nT,e.length>0||f),p=f?nT[0]:h,m=n.trim(),b=lee(m),w=b&&!Cw(m),x=e.trim().length>=8&&b&&!w&&i!=="sending",S=async()=>{if(x){o("sending");try{const C=await uee({problem:e.trim(),email:n.trim()});if(C.ok){window.location.assign("/thank-you/");return}o(C.error===au?"work-email":"error")}catch{o("error")}}},_=C=>{C.key==="Enter"&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),S())},k=C=>{t(C),o("idle"),requestAnimationFrame(()=>{const R=l.current;R&&(R.focus(),R.setSelectionRange(C.length,C.length),u())})};return y.jsxs("div",{children:[y.jsxs("div",{className:"rounded-2xl border border-black/[0.06] bg-white shadow-[0_24px_70px_-22px_rgba(0,0,0,0.12)] transition focus-within:border-purple-300",children:[y.jsx(EI,{ref:l,value:e,onChange:C=>{t(C.target.value),u()},onKeyDown:_,placeholder:p,disabled:i==="sending",className:Ce("w-full resize-none rounded-2xl border-0 bg-transparent px-5 pt-5 text-base leading-relaxed text-ink shadow-none sm:text-[15px]","focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:outline-none","placeholder:text-ink/40","disabled:opacity-60"),style:{overflow:"hidden",minHeight:88}}),y.jsxs("div",{className:"flex flex-col gap-3 border-t border-black/[0.06] p-3 sm:flex-row sm:items-center",children:[y.jsx("input",{type:"email",value:n,onChange:C=>{s(C.target.value),o(R=>R==="error"||R==="work-email"?"idle":R)},placeholder:"[email protected]",disabled:i==="sending",inputMode:"email",autoComplete:"email",className:"w-full flex-1 rounded-lg border border-black/[0.08] bg-black/[0.02] px-3 py-2 text-base text-ink placeholder:text-ink/40 transition hover:bg-black/[0.03] focus:border-purple-400 focus:bg-white focus:outline-none focus:ring-2 focus:ring-purple-500/15 disabled:opacity-60 sm:text-sm"}),y.jsx("button",{type:"button",onClick:S,disabled:!x,className:Ce("group inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-lg px-4 py-2 text-sm font-medium transition",x?"bg-brand-purple text-white hover:bg-brand-purple-hover":"cursor-not-allowed bg-ink/[0.04] text-ink/35"),"aria-label":"Send to Wyecliff",children:i==="sending"?y.jsxs(y.Fragment,{children:[y.jsx(Ja,{className:"h-3.5 w-3.5 animate-spin"}),"Sending"]}):y.jsxs(y.Fragment,{children:["Send to Wyecliff",y.jsx(nU,{className:"h-3.5 w-3.5 rotate-45 transition-transform duration-200 group-hover:rotate-0 group-hover:translate-x-0.5"})]})})]}),w&&y.jsx("div",{className:"border-t border-rose-200 px-4 py-3 text-xs text-rose-700",children:au}),i==="work-email"&&!w&&y.jsx("div",{className:"rounded-b-2xl border-t border-rose-200 bg-rose-50 px-4 py-3 text-xs text-rose-700",children:au}),i==="error"&&y.jsxs("div",{className:"rounded-b-2xl border-t border-rose-200 bg-rose-50 px-4 py-3 text-xs text-rose-700",children:["Something went wrong sending that. Try again, or email"," ",y.jsx("span",{className:"font-medium text-rose-900",children:"[email protected]"})," directly."]})]}),y.jsxs("div",{className:"mt-5 flex flex-wrap items-center justify-center gap-2",children:[y.jsx("span",{className:"font-mono-label text-ink/50",children:"Or start with"}),aee.map(({Icon:C,label:R,prefill:O})=>y.jsxs("button",{type:"button",onClick:()=>k(O),disabled:i==="sending",className:"group inline-flex items-center gap-1.5 rounded-full border border-purple-200 bg-white/80 px-3 py-1.5 text-[12px] font-medium text-purple-700 backdrop-blur-sm transition hover:border-purple-400 hover:bg-white hover:text-purple-900 disabled:opacity-60",children:[y.jsx(C,{className:"h-3.5 w-3.5"}),R]},R))]})]})}function fee(){return y.jsx("section",{className:"section-lavender relative overflow-hidden border-t border-black/[0.08]",children:y.jsxs("div",{className:"relative mx-auto max-w-[820px] px-6 py-32 lg:py-40",children:[y.jsxs("div",{className:"text-center",children:[y.jsxs("h2",{className:"font-display leading-[1.04] tracking-[-0.025em] text-ink",style:{fontSize:"clamp(2.5rem, 5vw, 4rem)",fontWeight:500},children:["Tell us your biggest problem.",y.jsx("br",{}),y.jsx("em",{className:"text-purple-600",style:{fontWeight:400},children:"We'll show you the ROI."})]}),y.jsx("p",{className:"mx-auto mt-5 max-w-[600px] text-[18px] text-ink/85",style:{fontWeight:300},children:"Drop the problem in the box. A Wyecliff partner replies inside one business day with two ideas you can ship in 30 days. No pitch deck, no sales call required."})]}),y.jsx("div",{className:"mt-12",children:y.jsx(dee,{})}),y.jsxs("div",{className:"mt-7 flex flex-wrap items-center justify-center gap-x-5 gap-y-2 text-[12px] text-ink/55",children:[y.jsx("span",{children:"Replies in < 24 hours"}
335),y.jsx("span",{"aria-hidden":!0,children:"·"}),y.jsxs(ot,{to:"/case-studies",className:"group inline-flex items-center gap-1 text-purple-700 transition hover:text-purple-900",children:["Or browse Case Studies",y.jsx(Pn,{className:"h-3 w-3 transition-transform duration-200 group-hover:translate-x-0.5"})]})]})]})})}function po(e){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.q,acceptedAnswer:{"@type":"Answer",text:t.a}}))}}function Une(e){const t=e.featuredCaseSlug?ZX(e.featuredCaseSlug):void 0,n=sJ(e.slug),s=t?n.filter(i=>i.slug!==t.slug).slice(0,3):n.slice(0,3);return y.jsxs("div",{children:[e.hero??y.jsx(pee,{...e}),y.jsx(mee,{pains:e.pains,title:e.title}),y.jsx(yee,{items:e.appliedPlaybook,title:e.title}),y.jsx(xee,{title:e.title}),t?y.jsx(vee,{caseStudy:t}):y.jsx(bee,{title:e.title}),s.length>0?y.jsx(wee,{cases:s,title:e.title}):null,y.jsx(See,{whyUs:e.whyUs,title:e.title}),e.faqs?.length?y.jsx(_ee,{faqs:e.faqs,title:e.title}):null,e.relatedReading?.length?y.jsx(kee,{links:e.relatedReading}):null,e.overview?y.jsx(hee,{overview:e.overview}):null,y.jsx(Cee,{currentSlug:e.currentSlug??""}),y.jsx(fee,{})]})}function hee({overview:e}){return y.jsx("section",{className:"section-paper border-t border-black/[0.06]",children:y.jsx("div",{className:"mx-auto max-w-[1400px] px-6 py-24 lg:py-28",children:y.jsxs("div",{className:"grid gap-12 lg:grid-cols-[1fr_1.4fr] lg:items-start",children:[y.jsxs("div",{children:[y.jsx("div",{className:"font-mono-label text-purple-600",children:"The brief"}),y.jsx("h2",{className:"font-display mt-4 leading-[1.0] tracking-[-0.035em] text-ink",style:{fontSize:"clamp(2rem, 4vw, 3.5rem)",fontWeight:500},children:e.heading})]}),y.jsx("div",{className:"max-w-[68ch] space-y-5",children:e.body.map((t,n)=>y.jsx("p",{className:"text-[16px] leading-relaxed text-ink-muted",children:t},n))})]})})})}function pee({title:e,lede:t,highlights:n}){const s=(n?.length??0)>0;return y.jsxs("section",{className:"section-editorial-hero relative overflow-hidden border-t border-white/[0.06]",children:[y.jsx(ree,{}),y.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-[0.55] hidden lg:block",style:{backgroundImage:"linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px)",backgroundSize:"44px 44px",maskImage:"radial-gradient(80% 60% at 50% 0%, black 0%, transparent 100%)",WebkitMaskImage:"radial-gradient(80% 60% at 50% 0%, black 0%, transparent 100%)"},"aria-hidden":!0}),y.jsx("div",{className:"pointer-events-none absolute -top-[15%] left-1/2 h-[600px] w-[1100px] -translate-x-1/2 rounded-full",style:{background:"rgba(147,51,234,0.12)",filter:"blur(180px)"},"aria-hidden":!0}),y.jsx("div",{className:"relative mx-auto max-w-[1400px] px-6 pb-24 pt-28 lg:pb-32 lg:pt-36",children:y.jsxs("div",{className:s?"grid gap-12 lg:grid-cols-[1.4fr_1fr] lg:gap-20":"max-w-[60ch]",children:[y.jsxs("div",{children:[y.jsxs("h1",{className:"page-hero-title font-display leading-[0.96] tracking-[-0.04em] text-foreground",style:{fontSize:"clamp(3rem, 7.5vw, 7rem)",fontWeight:500},children:["AI inside ",y.jsxs("span",{className:"text-purple-300",children:[e,"."]})]}),y.jsx("p",{className:"mt-8 max-w-[60ch] text-pretty text-[18px] leading-relaxed text-foreground/70",children:t}),y.jsxs("div",{className:"mt-10 flex flex-wrap items-center gap-4",children:[y.jsxs("button",{type:"button",onClick:so,className:"group inline-flex items-center gap-2 rounded-full bg-foreground px-6 py-3 text-sm font-medium text-background transition hover:bg-purple-500 hover:text-white",children:["Talk to our team",y.jsx(Pn,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}),y.jsxs(ot,{to:"/case-studies",className:"group inline-flex items-center gap-1.5 text-sm font-medium text-purple-300 transition hover:text-purple-200",children:["See ",e.toLowerCase()," case studies",y.jsx(ys,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})]})]}),s?y.jsx("aside",{className:"self-end",children:y.jsxs("div",{className:"overflow-hidden rounded-2xl border border-white/[0.08] bg-white/[0.04]",children:[y.jsx("div",{className:"border-b border-white/[0.08] bg-[var(--ink)]/90 px-6 py-4 backdrop-blur-sm",children:y.jsx("div",{className:"font-mono-label text-purple-300",children:"What we deploy"})}),y.jsx("div",{className:"grid gap-px bg-white/[0.06]",children:n.map(i=>y.jsx("div",{className:"bg-[var(--ink)]/90 px-6 py-4 backdrop-blur-sm",children:y.jsxs("div",{className:"flex items-baseline gap-3",children:[y.jsx("span",{className:"mt-1.5 size-1.5 shrink-0 rounded-full bg-purple-400","aria-hidden":!0}),y.jsxs("div",{children:[y.jsx("div",{className:"text-sm font-medium text-foreground",children:i.label}),i.detail?y.jsx("div",{className:"mt-1 text-[13px] leading-relaxed text-foreground
335/60",children:i.detail}):null]})]})},i.label))})]})}):null]})})]})}function mee({pains:e,title:t}){return y.jsx("section",{className:"section-paper border-t border-black/[0.06]",children:y.jsxs("div",{className:"mx-auto max-w-[1400px] px-6 py-24 lg:py-28",children:[y.jsxs("div",{className:"grid gap-12 lg:grid-cols-[1fr_1.4fr] lg:items-end",children:[y.jsx("div",{children:y.jsxs("h2",{className:"font-display leading-[1.0] tracking-[-0.035em] text-ink",style:{fontSize:"clamp(2.25rem, 4.5vw, 4rem)",fontWeight:500},children:["Slow work we see in ",y.jsxs("span",{className:"text-purple-600",children:[t,"."]})]})}),y.jsx("p",{className:"max-w-[480px] text-[15px] leading-relaxed text-ink-muted",children:"These are the repeated workflows where time disappears, handoffs break down, and AI can help without replacing human judgment."})]}),y.jsx("div",{className:"mt-12 grid gap-px overflow-hidden rounded-2xl border border-black/[0.07] bg-black/[0.07] sm:grid-cols-2 lg:grid-cols-4",children:e.map(n=>y.jsxs("div",{className:"bg-paper p-7 transition-colors hover:bg-white",children:[y.jsx("h3",{className:"font-display text-[22px] leading-tight tracking-[-0.015em] text-ink",style:{fontWeight:500},children:n.title}),y.jsx("p",{className:"mt-2 text-[13.5px] leading-relaxed text-ink-muted",children:n.sub})]},n.title))})]})})}const gee={"01":"discover","02":"build","03":"deploy","04":"train"};function yee({items:e,title:t}){return y.jsxs("section",{className:"section-chapter-dark relative overflow-hidden border-t border-white/[0.06]",children:[y.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-[0.4]",style:{backgroundImage:"linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px)",backgroundSize:"44px 44px"},"aria-hidden":!0}),y.jsxs("div",{className:"relative mx-auto max-w-[1400px] px-6 py-24 lg:py-28",children:[y.jsxs("div",{className:"grid gap-12 lg:grid-cols-[1fr_1.4fr] lg:items-end",children:[y.jsx("div",{children:y.jsxs("h2",{className:"font-display leading-[1.0] tracking-[-0.035em] text-foreground",style:{fontSize:"clamp(2.25rem, 4.5vw, 4rem)",fontWeight:500},children:["What we can build for ",y.jsxs("span",{className:"text-purple-300",children:[t,"."]})]})}),y.jsx("p",{className:"max-w-[480px] text-[15px] leading-relaxed text-foreground/65",children:"Secure agents, workflow apps, and enablement built around the systems your team already trusts."})]}),y.jsx("div",{className:"mt-14 grid gap-6 md:grid-cols-2",children:e.map(n=>y.jsxs(ot,{to:`/services/${gee[n.chapter]}`,className:"group relative overflow-hidden rounded-2xl border border-black/[0.08] bg-[var(--paper)] p-7 transition-colors hover:border-purple-400/45",children:[y.jsx(zu,{squares:Uu(n.capability),className:"[mask-image:linear-gradient(white_0%,white_42%,transparent_100%)]",gridClassName:"fill-purple-300/[0.16] stroke-purple-300/[0.32] mix-blend-normal"}),y.jsxs("div",{className:"relative z-10",children:[y.jsx("div",{className:"flex justify-end",children:y.jsx(ys,{className:"h-3.5 w-3.5 text-ink/40 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5 group-hover:text-purple-600"})}),y.jsx("h3",{className:"font-display mt-2 text-[24px] leading-[1.15] tracking-[-0.02em] text-ink",style:{fontWeight:500},children:n.capability}),y.jsx("p",{className:"mt-3 text-[14px] leading-relaxed text-ink-muted",children:n.example})]})]},n.chapter+n.capability))})]})]})}function vee({caseStudy:e}){return y.jsx("section",{className:"section-chapter-dark relative overflow-hidden border-t border-white/[0.06]",children:y.jsx("div",{className:"relative mx-auto max-w-[1400px] px-6 py-24 lg:py-28",children:y.jsxs("div",{className:"grid gap-10 lg:grid-cols-[1.2fr_1fr]",children:[y.jsxs("div",{className:"relative overflow-hidden rounded-3xl border border-white/[0.08] bg-black/40",children:[e.featuredVideoUrl?y.jsx("video",{className:"aspect-[16/10] w-full object-cover",src:e.featuredVideoUrl,muted:!0,playsInline:!0,loop:!0,autoPlay:!0,preload:"metadata"}):y.jsx($u,{caseStudy:e,priority:!0,className:"aspect-[16/10] w-full object-cover"}),y.jsxs("div",{className:"absolute left-5 top-5 inline-flex items-center gap-2 rounded-full bg-black/60 px-3 py-1.5 text-[11px] font-medium uppercase tracking-[0.18em] text-purple-200 backdrop-blur",children:["Flagship · ",e.industry]})]}),y.jsxs("div",{className:"flex flex-col justify-between",children:[y.jsxs("div",{children:[y.jsx("div",{className:"font-mono-label text-purple-300",children:"Featured case"}),y.jsx("h2",{className:"font-display mt-4 leading-[1.05] tracking-[-0.025em] text-foreground",style:{fontSize:"clamp(2rem, 3.6vw, 3.25rem)",fontWeight:500},children:e.benefitHook??e.title}),y.jsx("p",{className:"mt-5 text-[15px] leading-relaxed text-foreground
335/70",children:e.description})]}),e.results.length?y.jsx("ul",{className:"mt-8 grid grid-cols-2 gap-x-6 gap-y-3 border-t border-white/[0.08] pt-6",children:e.results.slice(0,4).map(t=>y.jsxs("li",{className:"flex items-start gap-2 text-[13.5px] leading-snug text-foreground/80",children:[y.jsx("span",{className:"mt-1.5 inline-block size-1 shrink-0 rounded-full bg-purple-300"}),t]},t))}):null,y.jsx("div",{className:"mt-8",children:y.jsxs(ot,{to:"/case-studies/$slug",params:{slug:e.slug},className:"group inline-flex items-center gap-2 rounded-full border border-purple-300/40 bg-purple-300/10 px-5 py-2.5 text-sm font-medium text-purple-200 transition hover:bg-purple-300/20",children:["Read the full case study",y.jsx(ys,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})})]})]})})})}function bee({title:e}){return y.jsx("section",{className:"section-paper relative overflow-hidden border-t border-black/[0.06]",children:y.jsx("div",{className:"relative mx-auto max-w-[1100px] px-6 py-24",children:y.jsxs("div",{className:"rounded-3xl border border-dashed border-white/[0.14] bg-[var(--ink)] p-10 text-center md:p-14",children:[y.jsx("div",{className:"font-mono-label text-purple-300",children:"Case study in flight"}),y.jsxs("h2",{className:"font-display mx-auto mt-5 max-w-[24ch] leading-[1.05] tracking-[-0.02em] text-foreground",style:{fontSize:"clamp(1.85rem, 3.4vw, 2.85rem)",fontWeight:500},children:["We're publishing ",e.toLowerCase()," case studies as engagements close."]}),y.jsx("p",{className:"mx-auto mt-5 max-w-[60ch] text-[15px] leading-relaxed text-foreground/65",children:"Until they're live here, get a private walkthrough. We'll share the work the client hasn't cleared for the public site yet, with named outcomes and stack details."}),y.jsx("div",{className:"mt-8",children:y.jsxs("button",{type:"button",onClick:so,className:"group inline-flex items-center gap-2 rounded-full bg-foreground px-6 py-3 text-sm font-medium text-background transition hover:bg-purple-500 hover:text-white",children:["Request the walkthrough",y.jsx(Pn,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})})]})})})}function wee({cases:e,title:t}){return y.jsx("section",{className:"section-paper border-t border-black/[0.06]",children:y.jsxs("div",{className:"mx-auto max-w-[1400px] px-6 py-24",children:[y.jsxs("div",{className:"grid gap-8 lg:grid-cols-[1fr_1.4fr] lg:items-end",children:[y.jsxs("div",{children:[y.jsx("div",{className:"font-mono-label text-purple-600",children:"More work"}),y.jsxs("h2",{className:"font-display mt-4 leading-[1.0] tracking-[-0.035em] text-ink",style:{fontSize:"clamp(2rem, 4vw, 3.25rem)",fontWeight:500},children:["Other operators in ",y.jsxs("span",{className:"text-purple-600",children:[t,"."]})]})]}),y.jsxs(ot,{to:"/case-studies",className:"group inline-flex items-center gap-1.5 self-end justify-self-start text-sm font-medium text-purple-600 transition hover:text-purple-700 lg:justify-self-end",children:["See every case study",y.jsx(ys,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})]}),y.jsx("div",{className:Ce("mt-12 grid gap-6",e.length===1?"md:grid-cols-1":e.length===2?"md:grid-cols-2":"md:grid-cols-3"),children:e.map(n=>y.jsx(eee,{caseStudy:n,variant:"standard",tone:"paper"},n.slug))})]})})}function xee({title:e}){const t=e.toLowerCase();return y.jsx("section",{className:"section-chapter-dark border-t border-white/[0.06]",children:y.jsx("div",{className:"mx-auto max-w-[1240px] px-6 py-16 lg:py-20",children:y.jsxs("div",{className:"relative overflow-hidden rounded-3xl border border-white/[0.08] bg-[var(--ink)] px-8 py-12 md:px-12 md:py-14 lg:px-16",children:[y.jsx(zu,{squares:Uu(`${e} cta`)}),y.jsxs("div",{className:"relative grid gap-10 lg:grid-cols-[1.55fr_1fr] lg:items-center lg:gap-16",children:[y.jsxs("div",{children:[y.jsx("div",{className:"font-mono-label text-purple-300",children:"Ready when you are"}),y.jsxs("h2",{className:"font-display mt-4 leading-[1.02] tracking-[-0.03em] text-foreground",style:{fontSize:"clamp(1.9rem, 3.4vw, 3rem)",fontWeight:500},children:["See what AI can actually do inside your"," ",y.jsx("span",{className:"text-purple-300",children:e})," operation."]}),y.jsx("p",{className:"mt-5 max-w-[54ch] text-[16px] leading-relaxed text-foreground
335/65",children:"Start with a focused discovery sprint. We map the highest-leverage work, show you the ROI before you commit, and ship a working version in weeks, on a stack you own."})]}),y.jsxs("div",{className:"flex flex-col gap-4 lg:items-end",children:[y.jsxs("button",{type:"button",onClick:so,className:"group inline-flex shrink-0 items-center gap-2 rounded-full bg-foreground px-6 py-3 text-sm font-medium text-background transition hover:bg-purple-500 hover:text-white",children:["Talk to our team",y.jsx(Pn,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}),y.jsxs(ot,{to:"/case-studies",className:"group inline-flex items-center gap-1.5 text-sm font-medium text-purple-300 transition hover:text-purple-200",children:["See ",t," case studies",y.jsx(ys,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})]})]})]})})})}function See({whyUs:e,title:t}){return y.jsxs("section",{className:"section-chapter-dark relative overflow-hidden border-t border-white/[0.06]",children:[y.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-[0.4]",style:{backgroundImage:"linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px)",backgroundSize:"44px 44px"},"aria-hidden":!0}),y.jsx("div",{className:"relative mx-auto max-w-[1400px] px-6 py-24 lg:py-28",children:y.jsxs("div",{className:"grid gap-12 lg:grid-cols-[1fr_1.4fr] lg:items-start",children:[y.jsxs("div",{children:[y.jsx("div",{className:"font-mono-label text-purple-300",children:"Why Wyecliff"}),y.jsx("h2",{className:"font-display mt-4 leading-[1.0] tracking-[-0.035em] text-foreground",style:{fontSize:"clamp(2rem, 4vw, 3.5rem)",fontWeight:500},children:e.headline}),y.jsxs("p",{className:"mt-6 max-w-[42ch] text-[15px] leading-relaxed text-foreground/65",children:["We are an Anthropic Official Partner and a Microsoft Cloud Partner. We bring 15+ years of ERP implementation experience to ",t.toLowerCase(),", and we deploy AI across the Microsoft and Anthropic stacks where it changes the P&L."]})]}),y.jsx("ul",{className:"grid gap-px overflow-hidden rounded-2xl border border-white/[0.08] bg-white/[0.06] sm:grid-cols-2",children:e.bullets.map(n=>y.jsxs("li",{className:"flex items-start gap-3 bg-[var(--ink)]/90 p-6 text-[14.5px] leading-relaxed text-foreground/80 backdrop-blur-sm",children:[y.jsx("span",{className:"mt-2 inline-block size-1.5 shrink-0 rounded-full bg-purple-400"}),n]},n))})]})})]})}function _ee({faqs:e,title:t}){return y.jsx("section",{className:"section-paper border-t border-black/[0.06]",children:y.jsxs("div",{className:"mx-auto max-w-[1400px] px-6 py-24 lg:py-28",children:[y.jsxs("div",{className:"grid gap-12 lg:grid-cols-[1fr_1.4fr] lg:items-end",children:[y.jsxs("div",{children:[y.jsx("div",{className:"font-mono-label text-purple-600",children:"Common questions"}),y.jsxs("h2",{className:"font-display mt-4 leading-[1.0] tracking-[-0.035em] text-ink",style:{fontSize:"clamp(2.25rem, 4.5vw, 4rem)",fontWeight:500},children:["AI in ",y.jsx("span",{className:"text-purple-600",children:t}),", answered."]})]}),y.jsx("p",{className:"max-w-[480px] text-[15px] leading-relaxed text-ink-muted",children:"Straight answers to what leaders in this vertical ask before they start. No fine print, no sales spin."})]}),y.jsx("dl",{className:"mt-12 grid gap-px overflow-hidden rounded-2xl border border-black/[0.07] bg-black/[0.07] md:grid-cols-2",children:e.map(n=>y.jsxs("div",{className:"bg-paper p-7 transition-colors hover:bg-white lg:p-8",children:[y.jsx("dt",{className:"font-display text-[19px] leading-snug tracking-[-0.015em] text-ink",style:{fontWeight:500},children:n.q}),y.jsx("dd",{className:"mt-3 text-[14px] leading-relaxed text-ink-muted",children:n.a})]},n.q))})]})})}function kee({links:e}){return y.jsx(iee,{links:e,tone:"dark"})}const Aee=[{slug:"legal",label:"Legal",group:"Professional Services",tagline:"Discovery, redlines, and matter ops that cite the exact clause and page.",href:"/industries/legal"},{slug:"accounting",label:"Accounting",group:"Professional Services",tagline:"Audit-ready close cycles and policy-aware copilots that compress quarter-end.",href:"/industries/accounting"},{slug:"pe-vc",label:"PE, VC & M&A",group:"Professional Services",tagline:"Diligence acceleration and portfolio-wide AI maturity at LP cadence.",href:"/industries/pe-vc"},{slug:"insurance",label:"Insurance & Financial",group:"Professional Services",tagline:"Producer copilots, submission packs, and claims triage wired 
335into the AMS.",href:"/industries/insurance"},{slug:"manufacturing",label:"Manufacturing",group:"Operating Companies",tagline:"Predictive maintenance, QA vision, and shop-floor copilots wired to MES.",href:"/industries/manufacturing"},{slug:"distribution",label:"Distribution & Wholesale",group:"Operating Companies",tagline:"Order routing, inventory truth, and exception triage across yards and SKUs.",href:"/industries/distribution"},{slug:"construction",label:"Construction",group:"Operating Companies",tagline:"Field-to-office sync, contract risk, and tool tracking for foreman and PM.",href:"/industries/construction"}];function Cee({currentSlug:e}){const t=Aee.filter(i=>i.slug!==e),n=t.filter(i=>i.group==="Professional Services"),s=t.filter(i=>i.group==="Operating Companies");return y.jsxs("section",{className:"section-chapter-dark relative overflow-hidden border-t border-white/[0.06]",children:[y.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-[0.4]",style:{backgroundImage:"linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px)",backgroundSize:"44px 44px"},"aria-hidden":!0}),y.jsxs("div",{className:"relative mx-auto max-w-[1400px] px-6 py-24 lg:py-28",children:[y.jsxs("div",{className:"grid gap-10 lg:grid-cols-[1fr_1.4fr] lg:items-end",children:[y.jsxs("div",{children:[y.jsx("div",{className:"font-mono-label text-purple-300",children:"Adjacent operators"}),y.jsxs("h2",{className:"font-display mt-4 leading-[1.0] tracking-[-0.035em] text-foreground",style:{fontSize:"clamp(2.25rem, 4.5vw, 3.75rem)",fontWeight:500},children:["Browse other ",y.jsx("span",{className:"text-purple-300",children:"industries."})]})]}),y.jsx("p",{className:"max-w-[480px] text-[15px] leading-relaxed text-foreground/65",children:"The Wyecliff method ports between verticals. If your operation runs adjacent to this one, the playbook is already shaped for your stack."})]}),y.jsxs("div",{className:"mt-14 space-y-12",children:[n.length>0?y.jsx(sT,{label:"Professional Services",entries:n}):null,s.length>0?y.jsx(sT,{label:"Operating Companies",entries:s}):null]}),y.jsx("div",{className:"mt-12 flex justify-start",children:y.jsxs(ot,{to:"/industries",className:"group inline-flex items-center gap-1.5 text-sm font-medium text-purple-300 transition hover:text-purple-200",children:["See all seven industries",y.jsx(ys,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})})]})]})}function sT({label:e,entries:t}){return y.jsxs("div",{children:[y.jsx("div",{className:"font-mono-label text-purple-300",children:e}),y.jsx("div",{className:"mt-5 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:t.map(n=>y.jsx(Eee,{entry:n},n.slug))})]})}function Eee({entry:e}){return y.jsxs(ot,{to:e.href,className:"group relative flex flex-col overflow-hidden rounded-2xl border border-white/[0.10] bg-[var(--ink)]/90 p-6 transition-colors hover:border-purple-300/40 hover:bg-white/[0.05]",children:[y.jsx(zu,{squares:Uu(e.label)}),y.jsxs("div",{className:"relative z-10",children:[y.jsxs("div",{className:"flex items-start justify-between",children:[y.jsx("h3",{className:"font-display text-[20px] leading-tight tracking-[-0.02em] text-foreground transition-colors group-hover:text-purple-200",style:{fontWeight:500},children:e.label}),y.jsx(ys,{className:"mt-0.5 h-4 w-4 text-foreground/40 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5 group-hover:text-purple-200"})]}),y.jsx("p",{className:"mt-3 text-[13.5px] leading-relaxed text-foreground/65",children:e.tagline})]})]})}const Tee=()=>Ke(()=>import("./pe-vc-BNp-XsLP.js"),__vite__mapDeps([57,58,46])),Ree=We("/industries/pe-vc")({head:()=>({...mt({path:"/industries/pe-vc",title:"AI for Private Equity & VC | Wyecliff",description:"AI for private equity and venture capital: diligence acceleration and portfolio-wide AI maturity audits shipped at IC and LP cadence.",ogDescription:"AI value creation for sponsors and their portfolio companies."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Industries",path:"/industries"},{name:"PE, VC & M&A",path:"/industries/pe-vc"}])),qe(po(ZQ))]}),component:Ge(Tee,"component")}),Oee=[{q:"What is AI for manufacturing?",a:"AI for manufacturing uses machine learning and large language models to improve uptime, quality, and throughput on the plant floor. Common uses include predictive maintenance, automated quality inspection, shop-floor copilots that answer SOP questions, and AI agents that handle supplier outreach and scheduling exceptions."},{q:"What are AI agents for manufacturing?",a:"AI agents for manufacturing are software workers that carry out multi-step tasks on their own, such as monitoring a historian for failure signatures and alerting maintenance, triaging quality exceptions, or drafting supplier follow-ups. They run with eval suites and human review, so a person stays in control of any action that affects production."},{q:"How does predictive maintenance with AI work?",a:"Predictive maintenance models read sensor, PLC, and historian data, learn the patterns that precede a breakdown, and flag equipment before it fails. This shifts maintenance from reactive to planned, which cuts unplanned downtime and overtime. In one deployment, a predictive maintenance system cut unplanned downtime by 40%."},{q:"Does AI for manufacturing connect to our ERP and MES?",a:"Yes. We build directly on the ERP, MES, and historian you already run, including NetSuite, Epicor, Plex, and Wonderw
335are. AI reads from and writes to those systems through their APIs, so the floor keeps one source of truth rather than adding another disconnected platform."},{q:"Will AI replace operators on the floor?",a:"No. AI for manufacturing handles monitoring, inspection, and paperwork-heavy tasks, and operators and engineers stay in control of the line. It also captures veteran knowledge in copilots and SOPs, so first-pass yield does not drop when an experienced operator retires."},{q:"How long does it take to deploy AI in a plant?",a:"A discovery sprint takes about a week. A predictive maintenance pilot typically reaches production in eight to twelve weeks and custom apps in six to eight, on fixed scope and fixed price. We sequence the rollout around your shift schedule and union or safety posture."},{q:"How does AI help manufacturing quality control?",a:"AI for manufacturing quality control uses vision models and historian data to flag defects earlier, trace root cause faster, and surface SOP answers on the floor. The goal is fewer escapes and less rework, not replacing the engineer who signs off on a line change."}],jee=()=>Ke(()=>import("./manufacturing-C44X_RVH.js"),__vite__mapDeps([59,58,46])),Nee=We("/industries/manufacturing")({head:()=>({...mt({path:"/industries/manufacturing",title:"AI for Manufacturers | Wyecliff",description:"AI for manufacturing: predictive maintenance, QA vision, and shop-floor copilots wired to your ERP and MES. Production-grade AI agents for manufacturers.",ogDescription:"Production-grade AI for manufacturers, deployed where uptime and FPY get decided."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Industries",path:"/industries"},{name:"Manufacturing",path:"/industries/manufacturing"}])),qe(po(Oee))]}),component:Ge(jee,"component")}),Iee=[{q:"What is AI for legal research?",a:"AI for legal research uses large language models to read case law, statutes, and a firm's own documents, then return a grounded answer with citations to the exact case, clause, and page. The best systems are retrieval-based, so every result links back to a source a lawyer can verify rather than generating an unsupported summary."},{q:"Is AI for legal research accurate enough to rely on?",a:"It is when it is built correctly. Reliable AI for legal research is grounded in a defined document set, enforces a citation on every claim, and routes the output through a supervising attorney before it is used. General consumer chatbots are not safe for this work because they can invent citations. The deployment pattern, not the model alone, determines whether it is defensible."},{q:"How does AI for legal work inside iManage, NetDocuments, or Clio?",a:"We connect AI for legal directly to your document and practice management systems through their APIs. Search, privilege review, and clause retrieval run against the documents already in iManage, NetDocuments, or Clio, and results are written back into the matter file. Lawyers use it inside their existing workflow instead of copying text into a separate tool."},{q:"Will AI replace associates or paralegals?",a:"No. AI for legal handles the high-volume, repetitive parts of discovery, document review, and first-draft work, and a lawyer reviews and owns the result. It removes hours of manual tagging and rereading so associates and paralegals can spend time on analysis, strategy, and the client work that requires judgment."},{q:"Is client and matter data kept confidential?",a:"Yes. We deploy on Anthropic Claude and on your own Microsoft Azure tenant, so data stays inside the environment your IT and risk teams already audit. Prompts and documents are not used to train public models, and access controls and audit trails are scoped to match ethical-wall and confidentiality obligations."},{q:"How long does it take to deploy AI for a law firm?",a:"A focused discovery sprint takes about a week and produces a ranked list of where AI saves the most hours. From there a contract intelligence or research copilot typically reaches production in a few weeks on a fixed scope and fixed price, with rollout timed around your billable cadence rather than dropped on the practice at quarter-end."},{q:"Can AI-assisted document review work for legal teams?",a:"Yes, when the system grounds every answer in your matter files, tags privilege consistently, and routes output through supervising review. AI-assisted document review works best on high-volume discovery and contract triage, not on final judgment calls that bind the firm."},{q:"How do you build a business case for legal AI?",a:"Start with the hours your team spends on discovery, research, and contract review, then rank workflows by time saved versus risk. A one-week discovery sprint produces a ranked ROI map and a fixed-scope pilot price, so partners can a
335pprove spend against billable hours recovered instead of vendor hype."}],Pee=()=>Ke(()=>import("./legal-BTre94Z9.js"),__vite__mapDeps([60,58,46])),Mee=We("/industries/legal")({head:()=>({...mt({path:"/industries/legal",title:"AI for Law Firms & In-House Counsel | Wyecliff",description:"AI for legal research, discovery, and contract review. Copilots that cite the exact clause and page, built to be defensible in a malpractice review.",ogTitle:"AI for Legal Research, Discovery & Contracts | Wyecliff",ogDescription:"Citation-disciplined AI for legal teams inside iManage, NetDocuments, and Clio. Not on top of them."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Industries",path:"/industries"},{name:"Legal",path:"/industries/legal"}])),qe(po(Iee))]}),component:Ge(Pee,"component")}),Dee=[{q:"What is AI for insurance?",a:"AI for insurance uses large language models to automate the document- and data-heavy work inside an agency or carrier: client briefings, carrier submissions, renewal proposals, policy comparison, and claims triage. The aim is to give producers and account managers back the hours they spend re-keying and re-prepping, while a person reviews anything that carries E&O risk."},{q:"How do AI copilots help insurance agents?",a:"AI for insurance agents assembles a client brief from the AMS, email, and policy notes before each call, drafts submission packs and renewal proposals from your data, and answers coverage questions in seconds. Producers stop losing the first two hours of the day to prep and spend that time on the relationships that grow the book."},{q:"Does AI for insurance connect to EPIC, AMS360, or Sagitta?",a:"Yes. We build AI for insurance directly on the agency management system you already run, including Applied EPIC, AMS360, and Sagitta. Copilots read from and write to the AMS through its API, so producers work inside their existing system instead of copying data into a separate AI tool."},{q:"Is AI safe for E&O-sensitive insurance work?",a:"It is when it is deployed correctly. We run AI for insurance on Anthropic Claude and your own Microsoft Azure tenant, ground every answer in your documents, and put human-in-the-loop checkpoints on anything that binds coverage. Audit trails and access controls are scoped to match E&O and compliance requirements."},{q:"Can AI triage insurance claims?",a:"Yes. A claims triage agent reads the first notice of loss as it arrives, checks it against the relevant policy form, classifies severity, and routes it to the right queue before the SLA clock runs down. A human adjuster still owns the decision, but nothing sits unread in an inbox."},{q:"What is generative AI for insurance?",a:"Generative AI for insurance drafts the work producers and account managers repeat every day: client briefs, submission packs, renewal proposals, and coverage comparisons. It runs inside your AMS with human review on anything that could bind coverage, so the output is usable instead of another draft to rewrite."},{q:"How does AI improve customer communications for insurers?",a:"AI assembles renewal summaries, answers coverage questions from approved policy language, and drafts follow-ups from AMS and email context before a producer sends them. That keeps client communications consistent and faster without removing the producer from the relationship."},{q:"How long does it take to roll out AI across an agency?",a:mK("A discovery sprint takes about a week. A producer copilot or submission tool typically reaches production in a few weeks on fixed scope and fixed price. We have rolled AI out to 500+ producers, timing enablement around the renewal calendar so it never lands the week before quarter-end.")}],Lee=()=>Ke(()=>import("./insurance-lSCfbIMY.js"),__vite__mapDeps([61,58,46])),Bee=We("/industries/insurance")({head:()=>({...mt({path:"/industries/insurance",title:"AI for Insurance Agencies | Wyecliff",description:"AI for insurance agencies and agents: producer copilots, submission packs, and claims triage wired into EPIC, AMS360, and Sagitta.",ogTitle:"AI for Insurance Agencies & Agents | Wyecliff",ogDescription:"Claims triage, underwriting copilots, and policy comparison wired to your AMS."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Industries",path:"/industries"},{name:"Insurance & Financial",path:"/industries/insurance"}])),qe(po(Dee))]}),component:Ge(Lee,"component")}),Uee=[{q:"What is AI for distribution?",a:"AI for distribution uses large language models and automation to handle the repetitive work in a distribution or 3PL operation: order entry exceptions, inventory reconciliation, route optimization, and customer status requests. The goal is faster order processing and fewer SLA misses without adding another system for CSRs and dispatchers to manage."},{q:"How does AI automate order processing?",a:"AI reads incoming orders and EDI exceptions, extracts the line items, validates them, and posts clean records into the OMS. CSRs review edge cases instead of typing every order by hand. In one deployment, AI-driven order automation cut processing time by 55% and removed the single-person bottleneck."},{q:"Does AI for distribution work with our WMS, OMS, and TMS?",a:"Yes. We build on the systems you already run, including NetSuite, Blue Yonder, McLeod, and Manhattan. AI reads from and writes to your WMS, OMS, and TMS through their APIs, so inventory and order data stay in one place rather than 
335in a separate tool."},{q:"Can AI improve routing and inventory accuracy?",a:"Yes. Routing copilots reprice stops against weather, traffic, and changing pickup windows in real time, and reconciliation agents compare yard counts, cycle counts, and ERP numbers so the team can trust the system instead of a side spreadsheet. A dispatcher still approves changes that affect service."},{q:"How long does it take to deploy AI in a distribution operation?",a:"A discovery sprint runs across a full shift cycle, about a week. Order automation typically ships in six to nine weeks and custom customer portals in eight to twelve, on fixed scope and fixed price. We sequence the rollout so dispatch and CSR teams adopt it without breaking the SLA."}],zee=()=>Ke(()=>import("./distribution-Bfz18MvC.js"),__vite__mapDeps([62,58,46])),Vee=We("/industries/distribution")({head:()=>({...mt({path:"/industries/distribution",title:"AI for Distribution & Wholesale | Wyecliff",description:"AI for distribution and wholesale: order automation, exception triage, and routing copilots wired into your WMS, OMS, and TMS.",ogDescription:"Production AI for distribution operators, anchored in the Premier Logistics work."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Industries",path:"/industries"},{name:"Distribution & Wholesale",path:"/industries/distribution"}])),qe(po(Uee))]}),component:Ge(zee,"component")}),$ee=[{q:"What is AI for construction?",a:"AI for construction applies large language models and machine learning to the work contractors do every day: reading and summarizing contracts, structuring field reports, tracking tools and materials, and triaging the bid pipeline. The goal is to remove manual data entry and surface risk early, so crews and project managers spend less time on paperwork and more time building."},{q:"Where does AI deliver the most value for a contractor?",a:"The highest-return uses are field-to-office data sync, contract risk analysis, and asset and tool tracking. These are high-volume, repetitive tasks where small time savings per crew or per contract compound into six and seven figures across a year. We rank the opportunities for your specific operation in a one-week discovery sprint."},{q:"Does AI for construction work with Sage, Foundation, and Procore?",a:"Yes. We build AI for construction directly on the stack you already run, including Sage 300, Foundation, Procore, Bluebeam, and Microsoft 365. Apps and agents read from and write to those systems through their APIs, so the office keeps one source of truth instead of one more tool to reconcile."},{q:"Can AI review construction contracts for risk?",a:"Yes. A contract intelligence copilot reads incoming GC contracts and subcontracts, flags indemnity, payment, lien, and delay clauses against your standards, and produces a plain-language summary for project managers. A person still makes the final call, but nothing risky slips through because no one had time to read all of it."},{q:"Is AI for construction worth it for a mid-sized contractor?",a:"Usually yes. The savings come from removing repeated manual work and catching margin leaks early, not from a moonshot. We have found six-figure year-one ROI inside high-growth contractors, and we scope every engagement so the expected return is clear before you commit."},{q:"How long does an AI project take for a construction company?",a:"A discovery sprint runs about a week. From there, contract intelligence typically ships in around 30 days and custom apps in roughly six to eight weeks, on fixed scope and fixed price. We sequence the rollout so the field and the back office adopt it without stopping work."},{q:"Can AI help with construction estimating?",a:"Yes. AI for construction estimating reads plans, historical bids, and cost databases to draft takeoffs and flag line items that usually get missed. An estimator still owns the final number, but the first pass moves faster and with fewer manual re-key errors."},{q:"What AI tools help with construction project management?",a:"AI tools for construction project management sync field reports, RFIs, and schedule updates into Procore, Sage, or Foundation, then surface risks like lien exp
335osure or change-order drift before they hit margin. The best tools write back to the system your PMs already use."}],Fee=()=>Ke(()=>import("./construction-BRLvvMwp.js"),__vite__mapDeps([63,58,46])),Hee=We("/industries/construction")({head:()=>({...mt({path:"/industries/construction",title:"AI for Construction Firms | Wyecliff",description:"AI for construction contractors: field-to-office sync, contract risk analysis, and job tracking wired into Sage, Foundation, and Procore.",ogDescription:"Field-to-office sync, contract risk automation, and unified job tracking that closes the loop on payroll, crew, and margin."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Industries",path:"/industries"},{name:"Construction",path:"/industries/construction"}])),qe(po($ee))]}),component:Ge(Fee,"component")}),qee=[{q:"What is AI for accounting firms?",a:"AI for accounting firms uses large language models to automate the document- and data-heavy work inside close, audit, and tax: bank and GL reconciliation, policy research, PBC list tracking, and answering recurring tax questions. The goal is to give staff and reviewers back the hours they spend on repetitive checks, while a senior accountant still signs off on anything that affects the numbers."},{q:"How does AI speed up the month-end close?",a:"A close and reconciliation agent checks bank, GL, and subledger data against your chart of accounts, flags exceptions automatically, and prepares review notes for the senior accountant. Instead of one person manually matching line items in a spreadsheet, staff review exceptions the agent already found, which compresses the close without changing your review process."},{q:"Can AI handle bank and GL reconciliation?",a:"Yes. The reconciliation agent reads bank statements, the general ledger, and subledgers, matches transactions, and surfaces only the exceptions a person needs to look at. It runs the same checks every period, so one team member being out of office no longer slows down the whole close."},{q:"Can AI research accounting standards and tax questions?",a:"A policy research copilot searches FASB, IFRS, tax guidance, and your firm's own memos, then answers with the exact source, page, and date so a reviewer can verify it before it goes in a file. Staff stop re-researching the same recurring tax and standards questions every month, and the firm's own knowledge becomes reusable instead of living in one senior person's head."},{q:"How does AI help with audit prep?",a:"AI keeps PBC lists, sample requests, and supporting files organized and easy to find instead of scattered across email and shared folders. It tracks what has been requested, what has been received, and what is still outstanding, so nobody loses time hunting for the latest version of a file during fieldwork."},{q:"Is AI safe for audit-sensitive accounting work?",a:"It is when it is deployed correctly. We run AI for accounting firms on Anthropic Claude and your own Microsoft Azure tenant, ground every answer in your firm's documents, and put review checkpoints on anything that touches the numbers or a client file. Role permissions and audit trails are scoped so partners can defend the process."},{q:"How long does it take to roll out AI across a firm?",a:"A discovery sprint takes about a week. A reconciliation agent or policy research copilot typically reaches production in a few weeks on fixed scope and fixed price. We time the rollout around your firm's own close and busy-season calendar so it never lands during quarter-end or filing season."}],Wee=()=>Ke(()=>import("./accounting-DJAzDh0u.js"),__vite__mapDeps([64,58,46,39])),Gee=We("/industries/accounting")({head:()=>({...mt({path:"/industries/accounting",title:"AI for Accounting Firms | Wyecliff",description:"AI for accounting firms. Audit-ready close cycles, AI-driven reconciliation, and policy-aware copilots that compress quarter-end.",ogDescription:"Compress quarter-end with AI-driven reconciliation and policy-aware copilots."}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Industries",path:"/industries"},{name:"Accounting",path:"/industries/accounting"}])),qe(po(qee))]}),component:Ge(Wee,"component")}),Kee=()=>Ke(()=>import("./case-studies_._slug-Ddlw8gh5.js"),__vite__mapDeps([65,42,43,33,16,17])),Yee=We("/case-studies_/$slug")({loader:async({params:e})=>
335{if(!Xp(e.slug))throw Wa();const[t,n]=await Promise.all([FX(e.slug),rJ(e.slug)]),s=Jp(),i=s.find(l=>l.slug===e.slug);if(!i&&!t&&!n)throw Wa();const o=tJ(s,e.slug,{summaryIndustry:i?.industry??n?.industry,storyIndustry:t?.industry,category:t?.category,featuredIndustries:i?.featuredIndustries??n?.featuredIndustries??[]});if(t)return{story:t,detail:n??null,similar:o};if(n)return{story:null,detail:n,similar:o};throw Wa()},head:({loaderData:e,params:t})=>{const n=e?.story??null,s=e?.detail??null,i=n?.title??s?.benefitHook??s?.title??"Case study",o=n?.intro??s?.description??"Wyecliff case study.",l=n?.company??s?.title??"Case study";return{...mt({path:`/case-studies/${t.slug}`,title:`${i} | Wyecliff`,description:o,image:s?.image??n?.image,type:"article"}),scripts:[qe(qt([{name:"Home",path:"/"},{name:"Case Studies",path:"/case-studies"},{name:l,path:`/case-studies/${t.slug}`}]))]}},component:Ge(Kee,"component")}),Zee=()=>Ke(()=>import("./blog_._slug-D21lw2SE.js"),__vite__mapDeps([66,54,29,55,18,19,15,16,17,43,33])),Xee=We("/blog_/$slug")({loader:async({params:e})=>{const t=await wI(e.slug);if(!t||Qp(t))throw Wa();const n=await vI({limit:24}),s=zJ(t,n,3);return{article:t,related:s}},head:({loaderData:e,params:t})=>{const n=e?.article,s=`/blog/${t.slug}`,i=n?n.seoTitle??`${n.title} | Wyecliff`:"Blog & Insights | Wyecliff",o=n?.seoDescription??n?.description??"Practical AI guides and comparisons for operators, from Wyecliff.",l=[qe(qt([{name:"Home",path:"/"},{name:"Blog and Insights",path:"/blog"},{name:n?.title??"Article",path:s}]))];if(n){l.push(qe(_I(n,s)));const u=VQ(n.body);u&&l.push(qe(u))}return{...mt({path:s,title:i,description:o,image:n?.image||void 0,type:"article"}),scripts:l}},component:Ge(Zee,"component")}),Jee=()=>Ke(()=>import("./admin_.submissions-_lsC5yXn.js"),__vite__mapDeps([67,31,32,33,34,35,68])),Qee=We("/admin_/submissions")({head:()=>({meta:[{title:"Form Submissions | Admin | Wyecliff"},{name:"robots",content:"noindex, nofollow"}]}),component:Ge(Jee,"component")}),ete=()=>Ke(()=>import("./admin_.newsletters-i31iarGp.js"),__vite__mapDeps([69,31,32,33,70,71,72])),tte=We("/admin_/newsletters")({head:()=>({meta:[{title:"Newsletters | Admin | Wyecliff"},{name:"robots",content:"noindex, nofollow"}]}),component:Ge(ete,"component")}),nte=()=>Ke(()=>import("./admin_.case-studies-CTqH8cRV.js"),__vite__mapDeps([73,31,32,33,74,34,68,72])),ste=We("/admin_/case-studies")({head:()=>({meta:[{title:"Case Studies | Admin | Wyecliff"},{name:"robots",content:"noindex, nofollow"}]}),component:Ge(nte,"component")}),rte=()=>Ke(()=>import("./admin_.blog-1jkoNngg.js"),__vite__mapDeps([75,31,32,33,76,74,18,71,72])),ite=We("/admin_/blog")({head:()=>({meta:[{title:"Blog Posts | Admin | Wyecliff"},{name:"robots",content:"noindex, nofollow"}]}),component:Ge(rte,"component")}),ate=()=>Ke(()=>import("./admin_.newsletters_._id-CzoA1JaP.js"),__vite__mapDeps([77,32,55,18,19,70,33,78,79])),ote=We("/admin_/newsletters_/$id")({head:()=>({meta:[{title:"Edit Newsletter Edition | Wyecliff"},{name:"robots",content:"noindex, nofollow"}]}),component:Ge(ate,"component")}),lte=()=>Ke(()=>import("./admin_.case-studies_._slug-CtqJ5l0J.js"),__vite__mapDeps([80,32,74,33,79])),cte=We("/admin_/case-studies_/$slug")({head:()=>({meta:[{title:"Edit Case Study | Wyecliff"},{name:"robots",content:"noindex, nofollow"}]}),component:Ge(lte,"component")}),ute=()=>Ke(()=>import("./admin_.blog_._id-CsaeYLq6.js"),__vite__mapDeps([81,32,76,74,33,34,78,79])),dte=We("/admin_/blog_/$id")({head:()=>({meta:[{title:"Edit Blog Post | Admin | Wyecliff"},{name:"robots",content:"noindex, nofollow"}]}),component:Ge(ute,"component")}),fte=cJ.update({id:"/thank-you",path:"/thank-you",getParentRoute:()=>Fe}),hte=dJ.update({id:"/terms",path:"/terms",getParentRoute:()=>Fe}),pte=pJ.update({id:"/team",path:"/team",getParentRoute:()=>Fe}),mte=gJ.update({id:"/solution-playground",path:"/solution-playground",getParentRoute:()=>Fe}),gte=vJ.update({id:"/privacy",path:"/privacy",getParentRoute:()=>Fe}),yte=wJ.update({id:"/partners",path:"/partners",getParentRoute:()=>Fe}),vte=FJ.update({id:"/newsletter",path:"/newsletter",getParentRoute:()=>Fe}),bte=qJ.update({id:"/login",path:"/login",getParentRoute:()=>Fe}),wte=GJ.update({id:"/insights",path:"/insights",getParentRoute:()=>Fe}),xte=YJ.update({id:"/founders",path:"/founders",getParentRoute:()=>Fe}),Ste=XJ.update({id:"/contact",path:"/contact",getParentRoute:()=>Fe}),_te=eQ.update({id:"/case-studies",path:"/case-studies",getParentRoute:()=>Fe}),kte=nQ.update({id:"/careers",path:"/careers",getParentRoute:()=>Fe}),Ate=aQ.update({id:"/blog",path:"/blog",getParentRoute:()=>Fe}),Cte=lQ.update({id:"/admin",path:"/admin",getParentRoute:()=>Fe}),Ete=uQ.update({id:"/about",path:"/about",getParentRoute:()=>Fe}),Tte=fQ.update({id:"/",path:"/",getParentRoute:()=>Fe}),Rte=pQ.update({id:"/industries/",path:"/industries/",getParentRoute:()=>Fe}),Ote=_Q.update({id:"/solution-playground_/$slug",path:"/solution-playground/$slug",getParentRoute:()=>Fe}),jte=AQ.update({id:"/services/train",path:"/services/train",getParentRoute:()=>Fe}),Nte=EQ.update({id:"/services/discover",path:"/services/discover",getParentRoute:()=>Fe}),Ite=RQ.update({id:"/services/deploy",path:"/services/deploy",getParentRoute:()=>Fe}),Pte=jQ.update({id:"/services/build",path:"/services/build",getParentRoute:()=>Fe}),Mte=BQ.update({id:"/partners_/$slug",path:"/partners/$slug",getParentRoute:()=>Fe}),Dte=zQ.update({id:"/newsletter_/confirmed",path:"/newsletter/confirmed",getParentRoute:()=>Fe}),Lte=HQ.update({id:"/newsletter_/$slug",path:"/newsletter/$slug",getParentRoute:()=>Fe}),Bte=YQ.update({id:"/locations/denver-ai-consulting",path:"/locations/denver-ai-consulting",getParentRoute:()=>Fe}),Ute=Ree.update({id:"/industries/pe-vc",path:"/industries/pe-vc",getParentRoute:()=>Fe}),zte=Nee.update({id:"/industries/manufacturing",path:"/industries/manufacturing",getParentRoute:()=>Fe}),Vte=Mee.update({id:"/industries/legal",path:"/industries/legal",getParentRoute:()=>Fe}),$te=Bee.update({id:"/industries/insurance",path:"/industries/insurance",getParentRoute:()=>Fe}),Fte=Vee.update({id:"/industries/distribution",path:"/industries/distribution",getParentRoute:()=>Fe}),Hte=Hee.update({id:"/industries/construction",path:"/industries/construction",getParentRoute:()=>Fe}),qte=Gee.update({id:"/industries/accounting",path:"/industries/accounting",getParentRoute:()=>Fe}),Wte=Yee.update({id:"/case-studies_/$slug",path:"/case-studies/$slug",getParentRoute:()=>Fe}),Gte=Xee.update({id:"/blog_/$slug",path:"/blog/$slug",getParentRoute:()=>Fe}),Kte=Qee.update({id:"/admin_/submissions",path:"/admin/submissions",getParentRoute:()=>Fe}),Yte=tte.update({id:"/admin_/newsletters",path:"/admin/newsletters",getParentRoute:()=>Fe}),Zte=ste.update({id:"/admin_/case-studies",path:"/admin/case-studies",getParentRoute:()=>Fe}),Xte=ite.update({id:"/admin_/blog",path:"/admin/blog",getParentRoute:()=>Fe}),Jte=ote.update({id:"/admin_/newsletters_/$id",path:"/admin/newsletters/$id",getParentRoute:()=>Fe}),Qte=cte.update({id:"/admin_/case-studies_/$slug",path:"/admin/case-studies/$slug",getParentRoute:()=>Fe}),ene=dte.update({id:"/admin_/blog_/$id",path:"/admin/blog/$id",getParentRoute:()=>Fe}),tne={IndexRoute:Tte,AboutRoute:Ete,AdminRoute:Cte,BlogRoute:Ate,CareersRoute:kte,CaseStudiesRoute:_te,ContactRoute:Ste,FoundersRoute:xte,InsightsRoute:wte,LoginRoute:bte,NewsletterRoute:vte,PartnersRoute:yte,PrivacyRoute:gte,SolutionPlaygroundRoute:mte,TeamRoute:pte,TermsRoute:hte,ThankYouRoute:fte,AdminBlogRoute:Xte,AdminCaseStudiesRoute:Zte,AdminNewslettersRoute:Yte,AdminSubmissionsRoute:Kte,BlogSlugRoute:Gte,CaseStudiesSlugRoute:Wte,IndustriesAccountingRoute:qte,IndustriesConstructionRoute:Hte,IndustriesDistributionRoute:Fte,IndustriesInsuranceRoute:$te,IndustriesLegalRoute:Vte,IndustriesManufacturingRoute:zte,IndustriesPeVcRoute:Ute,LocationsDenverAiConsultingRoute:Bte,NewsletterSlugRoute:Lte,NewsletterConfirmedRoute:Dte,PartnersSlugRoute:Mte,ServicesBuildRoute:Pte,ServicesDeployRoute:Ite,ServicesDiscoverRoute:Nte,ServicesTrainRoute:jte,SolutionPlaygroundSlugRoute:Ote,IndustriesIndexRoute:Rte,AdminBlogIdRoute:ene,AdminCaseStudiesSlugRoute:Qte,AdminNewslettersIdRoute:Jte},nne=Fe._addFileChildren(tne),sne=()=>{const e=new HB;return iB({routeTree:nne,context:{queryClient:e},trailingSlash:"always",scrollRestoration:!0,defaultPreloadStaleTime:6e4,defaultPendingMs:1/0,defaultPendingMinMs:0,defaultPendingComponent:()=>null})};async function rne(){const e=await sne();let t;if(_A){const n=await _A.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.seri
335alizationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(c4),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.matchesId.get().length||await d4(e),e}var ine=rne;async function ane(){const e=await ine();return window.$_TSR?.h(),e}var xv;function one(){return xv||(xv=ane()),y.jsx(m4,{promise:xv,children:e=>y.jsx(lB,{router:e})})}E.startTransition(()=>{ZM.hydrateRoot(document,y.jsx(E.StrictMode,{children:y.jsx(one,{})}))});export{dI as $,Pn as A,NA as B,eee as C,dn as D,zu as E,fee as F,SK as G,TU as H,wK as I,up as J,Bb as K,ot as L,Dv as M,Sne as N,pG as O,WU as P,mG as Q,cJ as R,LR as S,bne as T,wne as U,cG as V,NQ as W,Qr as X,eQ as Y,Hi as Z,Nne as _,ree as a,iee as a$,GX as a0,HX as a1,eY as a2,Cne as a3,QK as a4,Ku as a5,FV as a6,Yu as a7,Xu as a8,Qu as a9,yne as aA,mU as aB,QU as aC,OU as aD,kU as aE,cz as aF,Be as aG,th as aH,TE as aI,fQ as aJ,gQ as aK,wQ as aL,Ene as aM,Bv as aN,jt as aO,jl as aP,Pt as aQ,Gu as aR,Tp as aS,Zt as aT,bn as aU,nY as aV,rY as aW,sJ as aX,_Q as aY,mK as aZ,Ine as a_,Ce as aa,Ju as ab,YV as ac,Zu as ad,aQ as ae,sQ as af,Dne as ag,DR as ah,rW as ai,Q8 as aj,Ow as ak,jw as al,aU as am,uQ as an,Tne as ao,xne as ap,iq as aq,bU as ar,IR as as,oz as at,yU as au,NR as av,BR as aw,dw as ax,rz as ay,CU as az,ys as b,Mne as b0,qe as b1,kne as b2,BQ as b3,_ne as b4,tN as b5,UK as b6,CK as b7,HQ as b8,qQ as b9,E0 as bA,Xp as bB,hI as bC,pI as bD,$X as bE,mu as bF,mne as bG,TO as bH,xJ as bI,RJ as bJ,pR as bK,IJ as bL,nz as bM,Rne as bN,EJ as bO,CJ as bP,Une as ba,ZQ as bb,Oee as bc,Iee as bd,Dee as be,Pne as bf,Lne as bg,xK as bh,yK as bi,XE as bj,Uee as bk,$ee as bl,qee as bm,Yee as bn,Wa as bo,One as bp,$u as bq,Xee as br,ld as bs,Lv as bt,fne as bu,gne as bv,hne as bw,pne as bx,dne as by,_1 as bz,LU as c,Bne as d,jne as e,uw as f,$e as g,Ane as h,YE as i,y as j,dK as k,XU as l,fl as m,PU as n,so as o,Uu as p,FJ as q,E as r,hz as s,fJ as t,Ep as u,gR as v,Ip as w,Pp as x,Ja as y,nd as z};

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.