PageSourceSearch

https://www.knapsack.ai/assets/index-omGll9H-.js

js knapsack.ai collected 2026-10-05 12:07:14 UTC 906,487 bytes, 134 lines download raw bytes

1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function ee(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function D(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?D(``+e.key):t.toString(36)}function re(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+ne(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(te,`$&/`)+`/`),re(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=ee(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+ne(s,l);c+=re(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+ne(s,l++),c+=re(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function ie(e,t,n){if(e==null)return e;var r=[],i=0;return re(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ae(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var O={current:null},oe={transition:null},se={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:oe,ReactCurrentOwner:C};function k(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:ie,forEach:function(e,t,n){ie(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ie(e,function(){t++}),t},toArray:function(e){return ie(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INT
vendor: 7,460 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,e.act=k,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ae}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=oe.transition;oe.transition={};try{e()}finally{oe.transition=t}},e.unstable_act=k,e.useCallback=function(e,t){return O.current.useCallback(e,t)},e.useContext=function(e){return O.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return O.current.useDeferredValue(e)},e.useEffect=function(e,t){return O.current.useEffect(e,t)},e.useId=function(){return O.current.useId()},e.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return O.current.useMemo(e,t)},e.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},e.useRef=function(e){return O.current.useRef(e)},e.useState=function(e){return O.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return O.current.useTransition()},e.version=`18.3.1`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,ie(x);else{var t=n(l);t!==null&&ae(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&ae(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,ee=-1;function E(){return!(e.unstable_now()-ee<T)}function D(){if(C!==null){var t=e.unstable_now();ee=t;var n=!0;try{n=C(!0,t)}finally{n?te():(S=!1,C=null)}}else S=!1}var te;if(typeof v==`function`)te=function(){v(D)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=D,te=function(){re.postMessage(null)}}else te=function(){g(D,0)};function ie(e){C=e,S||(S=!0,te())}function ae(t,n){w=g(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,ie(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,ae(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ie(x))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p(),n=h();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},f={};function m(e){return l.call(f,e)?!0:l.call(d,e)?!1:u.test(e)?f[e]=!0:(d[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;
vendor: 23,579 bytes, lines 1-5
1if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?m(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),ee=Symbol.for(`react.fragment`),E=Symbol.for(`react.strict_mode`),D=Symbol.for(`react.profiler`),te=Symbol.for(`react.provider`),ne=Symbol.for(`react.context`),re=Symbol.for(`react.forward_ref`),ie=Symbol.for(`react.suspense`),ae=Symbol.for(`react.suspense_list`),O=Symbol.for(`react.memo`),oe=Symbol.for(`react.lazy`),se=Symbol.for(`react.offscreen`),k=Symbol.iterator;function ce(e){return typeof e!=`object`||!e?null:(e=k&&e[k]||e[`@@iterator`],typeof e==`function`?e:null)}var A=Object.assign,le;function ue(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||``}return`
2`+le+e}var de=!1;function fe(e,t){if(!e||de)return``;de=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
3`),a=r.stack.split(`
4`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
5`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{de=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ue(e):``}function pe(e){switch(e.tag){case 5:return ue(e.type);case 16:return ue(`Lazy`);case 13:return ue(`Suspense`);case 19:return ue(`SuspenseList`);case 0:case 2:case 15:return e=fe(e.type,!1),e;case 11:return e=fe(e.type.render,!1),e;case 1:return e=fe(e.type,!0),e;default:return``}}function me(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ee:return`Fragment`;case T:return`Portal`;case D:return`Profiler`;case E:return`StrictMode`;case ie:return`Suspense`;case ae:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case ne:return(e.displayName||`Context`)+`.Consumer`;case te:return(e._context.displayName||`Context`)+`.Provider`;case re:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case O:return t=e.displayName||null,t===null?me(e.type)||`Memo`:t;case oe:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}function he(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return me(t);case 8:return t===E?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function ge(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function _e(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function ve(e){var t=_e(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ye(e){e._valueTracker||=ve(e)}function be(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=_e(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function xe(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Se(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ce(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=ge(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function we(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function Te(e,t){we(e,t);var n=ge(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?De(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&De(e,t.type,ge(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ee(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function De(e,t,n){(t!==`number`||xe(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Oe=Array.isArray;function ke(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+ge(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ae(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return A({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function je(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(Oe(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:ge(n)}}function Me(e,t){var n=ge(t.value),r=ge(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Ne(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Pe(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Fe(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Pe(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Ie,Le=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Ie||=document.createElement(`div`),Ie.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Re(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ze={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Be=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(ze).forEach(function(e){Be.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ze[t]=ze[e]})});function Ve(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||ze.hasOwnProperty(e)&&ze[e]?(``+t).trim():t+`px`}function He(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Ve(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Ue=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function We(e,t){if(t){if(Ue[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Ge(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Ke=null;function qe(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Je=null,Ye=null,Xe=null;function Ze(e){if(e=Yi(e)){if(typeof Je!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Zi(t),Je(e.stateNode,e.type,t))}}function Qe(e){Ye?Xe?Xe.push(e):Xe=[e]:Ye=e}function $e(){if(Ye){var e=Ye,t=Xe;if(Xe=Ye=null,Ze(e),t)for(e=0;e<t.length;e++)Ze(t[e])}}function et(e,t){return e(t)}function tt(){}var nt=!1;function rt(e,t,n){if(nt)return e(t,n);nt=!0;try{return et(e,t,n)}finally{nt=!1,(Ye!==null||Xe!==null)&&(tt(),$e())}}function it(e,t){var n=e.stateNode;if(n===null)return null;var i=Zi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var at=!1;if(c)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){at=!0}}),window.addEventListener(`test`,ot,ot),window.removeEventListener(`test`,ot,ot)}catch{at=!1}function st(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var ct=!1,lt=null,ut=!1,dt=null,ft={onError:function(e){ct=!0,lt=e}};function pt(e,t,n,r,i,a,o,s,c){ct=!1,lt=null,st.apply(ft,arguments)}function mt(e,t,n,i,a,o,s,c,l){if(pt.apply(this,arguments),ct){if(ct){var u=lt;ct=!1,lt=null}else throw Error(r(198));ut||(ut=!0,dt=u)}}function ht(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function gt(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _t(e){if(ht(e)!==e)throw Error(r(188))}function vt(e){var t=e.alternate;if(!t){if(t=ht(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return _t(a),e;if(o===i)return _t(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function yt(e){return e=vt(e),e===null?null:bt(e)}function bt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bt(e);if(t!==null)return t;e=e.sibling}return null}var xt=n.unstable_scheduleCallback,St=n.unstable_cancelCallback,Ct=n.unstable_shouldYield,wt=n.unstable_requestPaint,Tt=n.unstable_now,Et=n.unstable_getCurrentPriorityLevel,Dt=n.unstable_ImmediatePriority,Ot=n.unstable_UserBlockingPriority,kt=n.unstable_NormalPriority,At=n.unstable_LowPriority,jt=n.unstable_IdlePriority,Mt=null,Nt=null;function Pt(e){if(Nt&&typeof Nt.onCommitFiberRoot==`function`)try{Nt.onCommitFiberRoot(Mt,e,void 0,(e.current.flags&128)==128)}catch{}}var Ft=Math.clz32?Math.clz32:Rt,It=Math.log,Lt=Math.LN2;function Rt(e){return e>>>=0,e===0?32:31-(It(e)/Lt|0)|0}var j=64,zt=4194304;function Bt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Bt(a))):r=Bt(s)}else o=n&~i,o===0?a!==0&&(r=Bt(a)):r=Bt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ft(t),i=1<<n,r|=e[n],t&=~i;return r}function Ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ut(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Ft(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ht(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Wt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Gt(){var e=j;return j<<=1,!(j&4194240)&&(j=64),e}function Kt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function Jt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ft(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ft(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var M=0;function Xt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Zt,Qt,$t,en,tn,nn=!1,rn=[],an=null,on=null,sn=null,cn=new Map,ln=new Map,un=[],dn=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function fn(e,t){switch(e){case`focusin`:case`focusout`:an=null;break;case`dragenter`:case`dragleave`:on=null;break;case`mouseover`:case`mouseout`:sn=null;break;case`pointerover`:case`pointerout`:cn.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:ln.delete(t.pointerId)}}function pn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Yi(t),t!==null&&Qt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function mn(e,t,n,r,i){switch(t){case`focusin`:return an=pn(an,e,t,n,r,i),!0;case`dragenter`:return on=pn(on,e,t,n,r,i),!0;case`mouseover`:return sn=pn(sn,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return cn.set(a,pn(cn.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,ln.set(a,pn(ln.get(a)||null,e,t,n,r,i)),!0}return!1}function hn(e){var t=Ji(e.target);if(t!==null){var n=ht(t);if(n!==null){if(t=n.tag,t===13){if(t=gt(n),t!==null){e.blockedOn=t,tn(e.priority,function(){$t(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Dn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ke=r,n.target.dispatchEvent(r),Ke=null}else return t=Yi(n),t!==null&&Qt(t),e.blockedOn=n,!1;t.shift()}return!0}function _n(e,t,n){gn(e)&&n.delete(t)}function vn(){nn=!1,an!==null&&gn(an)&&(an=null),on!==null&&gn(on)&&(on=null),sn!==null&&gn(sn)&&(sn=null),cn.forEach(_n),ln.forEach(_n)}function yn(e,t){e.blockedOn===t&&(e.blockedOn=null,nn||(nn=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,vn)))}function bn(e){function t(t){return yn(t,e)}if(0<rn.length){yn(rn[0],e);for(var n=1;n<rn.length;n++){var r=rn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(an!==null&&yn(an,e),on!==null&&yn(on,e),sn!==null&&yn(sn,e),cn.forEach(t),ln.forEach(t),n=0;n<un.length;n++)r=un[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<un.length&&(n=un[0],n.blockedOn===null);)hn(n),n.blockedOn===null&&un.shift()}var xn=C.ReactCurrentBatchConfig,Sn=!0;function Cn(e,t,n,r){var i=M,a=xn.transition;xn.transition=null;try{M=1,Tn(e,t,n,r)}finally{M=i,xn.transition=a}}function wn(e,t,n,r){var i=M,a=xn.transition;xn.transition=null;try{M=4,Tn(e,t,n,r)}finally{M=i,xn.transition=a}}function Tn(e,t,n,r){if(Sn){var i=Dn(e,t,n,r);if(i===null)xi(e,t,r,En,n),fn(e,r);else if(mn(i,e,t,n,r))r.stopPropagation();else if(fn(e,r),t&4&&-1<dn.indexOf(e)){for(;i!==null;){var a=Yi(i);if(a!==null&&Zt(a),a=Dn(e,t,n,r),a===null&&xi(e,t,r,En,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else xi(e,t,r,null,n)}}var En=null;function Dn(e,t,n,r){if(En=null,e=qe(r),e=Ji(e),e!==null)if(t=ht(e),t===null)e=null;else if(n=t.tag,n===13){if(e=gt(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return En=e,null}function On(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`
vendor: 5,031 bytes, line 5
5:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(Et()){case Dt:return 1;case Ot:return 4;case kt:case At:return 16;case jt:return 536870912;default:return 16}default:return 16}}var kn=null,An=null,jn=null;function Mn(){if(jn)return jn;var e,t=An,n=t.length,r,i=`value`in kn?kn.value:kn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return jn=i.slice(e,1<r?1-r:void 0)}function Nn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Pn(){return!0}function Fn(){return!1}function In(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Pn:Fn,this.isPropagationStopped=Fn,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Pn)},persist:function(){},isPersistent:Pn}),t}var Ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rn=In(Ln),zn=A({},Ln,{view:0,detail:0}),Bn=In(zn),Vn,Hn,Un,Wn=A({},zn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Un&&(Un&&e.type===`mousemove`?(Vn=e.screenX-Un.screenX,Hn=e.screenY-Un.screenY):Hn=Vn=0,Un=e),Vn)},movementY:function(e){return`movementY`in e?e.movementY:Hn}}),Gn=In(Wn),Kn=In(A({},Wn,{dataTransfer:0})),qn=In(A({},zn,{relatedTarget:0})),Jn=In(A({},Ln,{animationName:0,elapsedTime:0,pseudoElement:0})),Yn=In(A({},Ln,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Xn=In(A({},Ln,{data:0})),Zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Qn={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`},$n={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function er(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$n[e])?!!t[e]:!1}function tr(){return er}var nr=In(A({},zn,{key:function(e){if(e.key){var t=Zn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Nn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tr,charCode:function(e){return e.type===`keypress`?Nn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Nn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),rr=In(A({},Wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ir=In(A({},zn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tr})),ar=In(A({},Ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),or=In(A({},Wn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}
vendor: 92,490 bytes, lines 5-8
5)),sr=[9,13,27,32],cr=c&&`CompositionEvent`in window,lr=null;c&&`documentMode`in document&&(lr=document.documentMode);var ur=c&&`TextEvent`in window&&!lr,dr=c&&(!cr||lr&&8<lr&&11>=lr),fr=` `,pr=!1;function mr(e,t){switch(e){case`keyup`:return sr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function hr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var gr=!1;function _r(e,t){switch(e){case`compositionend`:return hr(t);case`keypress`:return t.which===32?(pr=!0,fr):null;case`textInput`:return e=t.data,e===fr&&pr?null:e;default:return null}}function vr(e,t){if(gr)return e===`compositionend`||!cr&&mr(e,t)?(e=Mn(),jn=An=kn=null,gr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return dr&&t.locale!==`ko`?null:t.data;default:return null}}var yr={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 br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!yr[e.type]:t===`textarea`}function xr(e,t,n,r){Qe(r),t=Ci(t,`onChange`),0<t.length&&(n=new Rn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Sr=null,Cr=null;function wr(e){hi(e,0)}function Tr(e){if(be(Xi(e)))return e}function Er(e,t){if(e===`change`)return t}var Dr=!1;if(c){var Or;if(c){var kr=`oninput`in document;if(!kr){var Ar=document.createElement(`div`);Ar.setAttribute(`oninput`,`return;`),kr=typeof Ar.oninput==`function`}Or=kr}else Or=!1;Dr=Or&&(!document.documentMode||9<document.documentMode)}function jr(){Sr&&(Sr.detachEvent(`onpropertychange`,Mr),Cr=Sr=null)}function Mr(e){if(e.propertyName===`value`&&Tr(Cr)){var t=[];xr(t,Cr,e,qe(e)),rt(wr,t)}}function Nr(e,t,n){e===`focusin`?(jr(),Sr=t,Cr=n,Sr.attachEvent(`onpropertychange`,Mr)):e===`focusout`&&jr()}function Pr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Tr(Cr)}function Fr(e,t){if(e===`click`)return Tr(t)}function Ir(e,t){if(e===`input`||e===`change`)return Tr(t)}function Lr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Rr=typeof Object.is==`function`?Object.is:Lr;function zr(e,t){if(Rr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Rr(e[i],t[i]))return!1}return!0}function Br(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vr(e,t){var n=Br(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Br(n)}}function Hr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ur(){for(var e=window,t=xe();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=xe(e.document)}return t}function Wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Gr(e){var t=Ur(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hr(n.ownerDocument.documentElement,n)){if(r!==null&&Wr(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Vr(n,a);var o=Vr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Kr=c&&`documentMode`in document&&11>=document.documentMode,qr=null,Jr=null,Yr=null,Xr=!1;function Zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xr||qr==null||qr!==xe(r)||(r=qr,`selectionStart`in r&&Wr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yr&&zr(Yr,r)||(Yr=r,r=Ci(Jr,`onSelect`),0<r.length&&(t=new Rn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=qr)))}function Qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var $r={animationend:Qr(`Animation`,`AnimationEnd`),animationiteration:Qr(`Animation`,`AnimationIteration`),animationstart:Qr(`Animation`,`AnimationStart`),transitionend:Qr(`Transition`,`TransitionEnd`)},ei={},ti={};c&&(ti=document.createElement(`div`).style,`AnimationEvent`in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),`TransitionEvent`in window||delete $r.transitionend.transition);function ni(e){if(ei[e])return ei[e];if(!$r[e])return e;var t=$r[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ti)return ei[e]=t[n];return e}var ri=ni(`animationend`),ii=ni(`animationiteration`),ai=ni(`animationstart`),oi=ni(`transitionend`),si=new Map,ci=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function li(e,t){si.set(e,t),o(t,[e])}for(var ui=0;ui<ci.length;ui++){var di=ci[ui];li(di.toLowerCase(),`on`+(di[0].toUpperCase()+di.slice(1)))}li(ri,`onAnimationEnd`),li(ii,`onAnimationIteration`),li(ai,`onAnimationStart`),li(`dblclick`,`onDoubleClick`),li(`focusin`,`onFocus`),li(`focusout`,`onBlur`),li(oi,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var fi=`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(` `),pi=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(fi));function mi(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,mt(r,t,void 0,e),e.currentTarget=null}function hi(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;mi(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;mi(i,s,l),a=c}}}if(ut)throw e=dt,ut=!1,dt=null,e}function gi(e,t){var n=t[Gi];n===void 0&&(n=t[Gi]=new Set);var r=e+`__bubble`;n.has(r)||(bi(t,e,2,!1),n.add(r))}function _i(e,t,n){var r=0;t&&(r|=4),bi(n,e,r,t)}var vi=`_reactListening`+Math.random().toString(36).slice(2);function yi(e){if(!e[vi]){e[vi]=!0,i.forEach(function(t){t!==`selectionchange`&&(pi.has(t)||_i(t,!1,e),_i(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vi]||(t[vi]=!0,_i(`selectionchange`,!1,t))}}function bi(e,t,n,r){switch(On(t)){case 1:var i=Cn;break;case 4:i=wn;break;default:i=Tn}n=i.bind(null,t,n,e),i=void 0,!at||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function xi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ji(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}rt(function(){var r=a,i=qe(n),o=[];a:{var s=si.get(e);if(s!==void 0){var c=Rn,l=e;switch(e){case`keypress`:if(Nn(n)===0)break a;case`keydown`:case`keyup`:c=nr;break;case`focusin`:l=`focus`,c=qn;break;case`focusout`:l=`blur`,c=qn;break;case`beforeblur`:case`afterblur`:c=qn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=ir;break;case ri:case ii:case ai:c=Jn;break;case oi:c=ar;break;case`scroll`:c=Bn;break;case`wheel`:c=or;break;case`copy`:case`cut`:case`paste`:c=Yn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=rr}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=it(p,f),h!=null&&u.push(Si(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Ke&&(l=n.relatedTarget||n.fromElement)&&(Ji(l)||l[Wi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ji(l):null,l!==null&&(d=ht(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Gn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=rr,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Xi(c),m=l==null?s:Xi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ji(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=wi(m))p++;for(m=0,h=f;h;h=wi(h))m++;for(;0<p-m;)u=wi(u),p--;for(;0<m-p;)f=wi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=wi(u),f=wi(f)}u=null}else u=null;c!==null&&Ti(o,s,c,u,!1),l!==null&&d!==null&&Ti(o,d,l,u,!0)}}a:{if(s=r?Xi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Er;else if(br(s))if(Dr)g=Ir;else{g=Pr;var _=Nr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Fr);if(g&&=g(e,r)){xr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&De(s,`number`,s.value)}switch(_=r?Xi(r):window,e){case`focusin`:(br(_)||_.contentEditable===`true`)&&(qr=_,Jr=r,Yr=null);break;case`focusout`:Yr=Jr=qr=null;break;case`mousedown`:Xr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Xr=!1,Zr(o,n,i);break;case`selectionchange`:if(Kr)break;case`keydown`:case`keyup`:Zr(o,n,i)}var v;if(cr)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else gr?mr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(dr&&n.locale!==`ko`&&(gr||y!==`onCompositionStart`?y===`onCompositionEnd`&&gr&&(v=Mn()):(kn=i,An=`value`in kn?kn.value:kn.textContent,gr=!0)),_=Ci(r,y),0<_.length&&(y=new Xn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=hr(n),v!==null&&(y.data=v)))),(v=ur?_r(e,n):vr(e,n))&&(r=Ci(r,`onBeforeInput`),0<r.length&&(i=new Xn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}hi(o,t)})}function Si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ci(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=it(e,n),a!=null&&r.unshift(Si(e,a,i)),a=it(e,t),a!=null&&r.push(Si(e,a,i))),e=e.return}return r}function wi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ti(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=it(n,a),c!=null&&o.unshift(Si(n,c,s))):i||(c=it(n,a),c!=null&&o.push(Si(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ei=/\r\n?/g,Di=/\u0000|\uFFFD/g;function Oi(e){return(typeof e==`string`?e:``+e).replace(Ei,`
6`).replace(Di,``)}function ki(e,t,n){if(t=Oi(t),Oi(e)!==t&&n)throw Error(r(425))}function Ai(){}var ji=null,Mi=null;function Ni(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pi=typeof setTimeout==`function`?setTimeout:void 0,Fi=typeof clearTimeout==`function`?clearTimeout:void 0,Ii=typeof Promise==`function`?Promise:void 0,Li=typeof queueMicrotask==`function`?queueMicrotask:Ii===void 0?Pi:function(e){return Ii.resolve(null).then(e).catch(Ri)};function Ri(e){setTimeout(function(){throw e})}function zi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),bn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);bn(t)}function Bi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Vi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Hi=Math.random().toString(36).slice(2),Ui=`__reactFiber$`+Hi,N=`__reactProps$`+Hi,Wi=`__reactContainer$`+Hi,Gi=`__reactEvents$`+Hi,Ki=`__reactListeners$`+Hi,qi=`__reactHandles$`+Hi;function Ji(e){var t=e[Ui];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wi]||n[Ui]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vi(e);e!==null;){if(n=e[Ui])return n;e=Vi(e)}return t}e=n,n=e.parentNode}return null}function Yi(e){return e=e[Ui]||e[Wi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Xi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Zi(e){return e[N]||null}var Qi=[],$i=-1;function ea(e){return{current:e}}function ta(e){0>$i||(e.current=Qi[$i],Qi[$i]=null,$i--)}function P(e,t){$i++,Qi[$i]=e.current,e.current=t}var na={},ra=ea(na),ia=ea(!1),aa=na;function oa(e,t){var n=e.type.contextTypes;if(!n)return na;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function sa(e){return e=e.childContextTypes,e!=null}function ca(){ta(ia),ta(ra)}function la(e,t,n){if(ra.current!==na)throw Error(r(168));P(ra,t),P(ia,n)}function ua(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,he(e)||`Unknown`,a));return A({},n,i)}function da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||na,aa=ra.current,P(ra,e),P(ia,ia.current),!0}function fa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ua(e,t,aa),i.__reactInternalMemoizedMergedChildContext=e,ta(ia),ta(ra),P(ra,e)):ta(ia),P(ia,n)}var pa=null,ma=!1,ha=!1;function ga(e){pa===null?pa=[e]:pa.push(e)}function _a(e){ma=!0,ga(e)}function F(){if(!ha&&pa!==null){ha=!0;var e=0,t=M;try{var n=pa;for(M=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}pa=null,ma=!1}catch(t){throw pa!==null&&(pa=pa.slice(e+1)),xt(Dt,F),t}finally{M=t,ha=!1}}return null}var va=[],ya=0,ba=null,xa=0,I=[],Sa=0,Ca=null,wa=1,Ta=``;function Ea(e,t){va[ya++]=xa,va[ya++]=ba,ba=e,xa=t}function Da(e,t,n){I[Sa++]=wa,I[Sa++]=Ta,I[Sa++]=Ca,Ca=e;var r=wa;e=Ta;var i=32-Ft(r)-1;r&=~(1<<i),n+=1;var a=32-Ft(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,wa=1<<32-Ft(t)+i|n<<i|r,Ta=a+e}else wa=1<<a|n<<i|r,Ta=e}function Oa(e){e.return!==null&&(Ea(e,1),Da(e,1,0))}function ka(e){for(;e===ba;)ba=va[--ya],va[ya]=null,xa=va[--ya],va[ya]=null;for(;e===Ca;)Ca=I[--Sa],I[Sa]=null,Ta=I[--Sa],I[Sa]=null,wa=I[--Sa],I[Sa]=null}var Aa=null,ja=null,Ma=!1,Na=null;function Pa(e,t){var n=au(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Fa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Aa=e,ja=Bi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Aa=e,ja=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=Ca===null?null:{id:wa,overflow:Ta},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=au(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Aa=e,ja=null,!0);default:return!1}}function Ia(e){return(e.mode&1)!=0&&(e.flags&128)==0}function La(e){if(Ma){var t=ja;if(t){var n=t;if(!Fa(e,t)){if(Ia(e))throw Error(r(418));t=Bi(n.nextSibling);var i=Aa;t&&Fa(e,t)?Pa(i,n):(e.flags=e.flags&-4097|2,Ma=!1,Aa=e)}}else{if(Ia(e))throw Error(r(418));e.flags=e.flags&-4097|2,Ma=!1,Aa=e}}}function Ra(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Aa=e}function za(e){if(e!==Aa)return!1;if(!Ma)return Ra(e),Ma=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Ni(e.type,e.memoizedProps)),t&&=ja){if(Ia(e))throw Ba(),Error(r(418));for(;t;)Pa(e,t),t=Bi(t.nextSibling)}if(Ra(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){ja=Bi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}ja=null}}else ja=Aa?Bi(e.stateNode.nextSibling):null;return!0}function Ba(){for(var e=ja;e;)e=Bi(e.nextSibling)}function Va(){ja=Aa=null,Ma=!1}function Ha(e){Na===null?Na=[e]:Na.push(e)}var Ua=C.ReactCurrentBatchConfig;function Wa(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Ga(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ka(e){var t=e._init;return t(e._payload)}function qa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=cu(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=fu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ee?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===oe&&Ka(i)===t.type)?(r=a(t,n.props),r.ref=Wa(e,t,n),r.return=e,r):(r=lu(n.type,n.key,n.props,null,e.mode,r),r.ref=Wa(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=pu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=uu(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=fu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=lu(t.type,t.key,t.props,null,e.mode,n),n.ref=Wa(e,null,t),n.return=e,n;case T:return t=pu(t,e.mode,n),t.return=e,t;case oe:var r=t._init;return f(e,r(t._payload),n)}if(Oe(t)||ce(t))return t=uu(t,e.mode,n,null),t.return=e,t;Ga(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case oe:return i=n._init,p(e,t,i(n._payload),r)}if(Oe(n)||ce(n))return i===null?d(e,t,n,r,null):null;Ga(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case oe:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Oe(r)||ce(r))return e=e.get(n)||null,d(t,e,r,i,null);Ga(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Ma&&Ea(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Ma&&Ea(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Ma&&Ea(r,h),l}function g(a,s,c,l){var u=ce(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ma&&Ea(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ma&&Ea(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ma&&Ea(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===ee&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===ee){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===oe&&Ka(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Wa(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===ee?(r=uu(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=lu(i.type,i.key,i.props,null,e.mode,o),o.ref=Wa(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=pu(i,e.mode,o),r.return=e,e=r}return s(e);case oe:return l=i._init,_(e,r,l(i._payload),o)}if(Oe(i))return h(e,r,i,o);if(ce(i))return g(e,r,i,o);Ga(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=fu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ja=qa(!0),Ya=qa(!1),Xa=ea(null),Za=null,Qa=null,$a=null;function eo(){$a=Qa=Za=null}function to(e){var t=Xa.current;ta(Xa),e._currentValue=t}function no(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ro(e,t){Za=e,$a=Qa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ks=!0),e.firstContext=null)}function io(e){var t=e._currentValue;if($a!==e)if(e={context:e,memoizedValue:t,next:null},Qa===null){if(Za===null)throw Error(r(308));Qa=e,Za.dependencies={lanes:0,firstContext:e}}else Qa=Qa.next=e;return t}var ao=null;function oo(e){ao===null?ao=[e]:ao.push(e)}function so(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,oo(t)):(n.next=i.next,i.next=n),t.interleaved=n,co(e,r)}function co(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var lo=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function po(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,co(e,n)}return i=r.interleaved,i===null?(t.next=t,oo(r)):(t.next=i.next,i.next=t),r.interleaved=t,co(e,n)}function ho(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yt(e,n)}}function go(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _o(e,t,n,r){var i=e.updateQueue;lo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=A({},d,f);break a;case 2:lo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);sl|=o,e.lanes=o,e.memoizedState=d}}function vo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var yo={},bo=ea(yo),xo=ea(yo),So=ea(yo);function Co(e){if(e===yo)throw Error(r(174));return e}function wo(e,t){switch(P(So,t),P(xo,e),P(bo,yo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fe(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fe(t,e)}ta(bo),P(bo,t)}function To(){ta(bo),ta(xo),ta(So)}function Eo(e){Co(So.current);var t=Co(bo.current),n=Fe(t,e.type);t!==n&&(P(xo,e),P(bo,n))}function Do(e){xo.current===e&&(ta(bo),ta(xo))}var Oo=ea(0);function ko(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ao=[];function jo(){for(var e=0;e<Ao.length;e++)Ao[e]._workInProgressVersionPrimary=null;Ao.length=0}var Mo=C.ReactCurrentDispatcher,No=C.ReactCurrentBatchConfig,Po=0,L=null,Fo=null,Io=null,Lo=!1,Ro=!1,zo=0,Bo=0;function Vo(){throw Error(r(321))}function Ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rr(e[n],t[n]))return!1;return!0}function Uo(e,t,n,i,a,o){if(Po=o,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mo.current=e===null||e.memoizedState===null?Es:Ds,e=n(i,a),Ro){o=0;do{if(Ro=!1,zo=0,25<=o)throw Error(r(301));o+=1,Io=Fo=null,t.updateQueue=null,Mo.current=Os,e=n(i,a)}while(Ro)}if(Mo.current=Ts,t=Fo!==null&&Fo.next!==null,Po=0,Io=Fo=L=null,Lo=!1,t)throw Error(r(300));return e}function Wo(){var e=zo!==0;return zo=0,e}function Go(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Io===null?L.memoizedState=Io=e:Io=Io.next=e,Io}function Ko(){if(Fo===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=Fo.next;var t=Io===null?L.memoizedState:Io.next;if(t!==null)Io=t,Fo=e;else{if(e===null)throw Error(r(310));Fo=e,e={memoizedState:Fo.memoizedState,baseState:Fo.baseState,baseQueue:Fo.baseQueue,queue:Fo.queue,next:null},Io===null?L.memoizedState=Io=e:Io=Io.next=e}return Io}function qo(e,t){return typeof t==`function`?t(e):t}function Jo(e){var t=Ko(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Fo,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Po&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,L.lanes|=d,sl|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Rr(i,t.memoizedState)||(Ks=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,L.lanes|=o,sl|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Yo(e){var t=Ko(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Rr(o,t.memoizedState)||(Ks=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Xo(){}function Zo(e,t){var n=L,i=Ko(),a=t(),o=!Rr(i.memoizedState,a);if(o&&(i.memoizedState=a,Ks=!0),i=i.queue,ls(es.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Io!==null&&Io.memoizedState.tag&1){if(n.flags|=2048,is(9,$o.bind(null,n,i,a,t),void 0,null),el===null)throw Error(r(349));Po&30||Qo(n,t,a)}return a}function Qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t={lastEffect:null,stores:null},L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $o(e,t,n,r){t.value=n,t.getSnapshot=r,ts(t)&&ns(e)}function es(e,t,n){return n(function(){ts(t)&&ns(e)})}function ts(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rr(e,n)}catch{return!0}}function ns(e){var t=co(e,1);t!==null&&Dl(t,e,1,-1)}function rs(e){var t=Go();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},t.queue=e,e=e.dispatch=xs.bind(null,L,e),[t.memoizedState,e]}function is(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=L.updateQueue,t===null?(t={lastEffect:null,stores:null},L.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function as(){return Ko().memoizedState}function os(e,t,n,r){var i=Go();L.flags|=e,i.memoizedState=is(1|t,n,void 0,r===void 0?null:r)}function ss(e,t,n,r){var i=Ko();r=r===void 0?null:r;var a=void 0;if(Fo!==null){var o=Fo.memoizedState;if(a=o.destroy,r!==null&&Ho(r,o.deps)){i.memoizedState=is(t,n,a,r);return}}L.flags|=e,i.memoizedState=is(1|t,n,a,r)}function cs(e,t){return os(8390656,8,e,t)}function ls(e,t){return ss(2048,8,e,t)}function us(e,t){return ss(4,2,e,t)}function ds(e,t){return ss(4,4,e,t)}function fs(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ps(e,t,n){return n=n==null?null:n.concat([e]),ss(4,4,fs.bind(null,t,e),n)}function ms(){}function hs(e,t){var n=Ko();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gs(e,t){var n=Ko();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ho(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _s(e,t,n){return Po&21?(Rr(n,t)||(n=Gt(),L.lanes|=n,sl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ks=!0),e.memoizedState=n)}function vs(e,t){var n=M;M=n!==0&&4>n?n:4,e(!0);var r=No.transition;No.transition={};try{e(!1),t()}finally{M=n,No.transition=r}}function ys(){return Ko().memoizedState}function bs(e,t,n){var r=El(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ss(e))Cs(t,n);else if(n=so(e,t,n,r),n!==null){var i=Tl();Dl(n,e,r,i),ws(n,t,r)}}function xs(e,t,n){var r=El(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ss(e))Cs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Rr(s,o)){var c=t.interleaved;c===null?(i.next=i,oo(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=so(e,t,i,r),n!==null&&(i=Tl(),Dl(n,e,r,i),ws(n,t,r))}}function Ss(e){var t=e.alternate;return e===L||t!==null&&t===L}function Cs(e,t){Ro=Lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ws(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yt(e,n)}}var Ts={readContext:io,useCallback:Vo,useContext:Vo,useEffect:Vo,useImperativeHandle:Vo,useInsertionEffect:Vo,useLayoutEffect:Vo,useMemo:Vo,useReducer:Vo,useRef:Vo,useState:Vo,useDebugValue:Vo,useDeferredValue:Vo,useTransition:Vo,useMutableSource:Vo,useSyncExternalStore:Vo,useId:Vo,unstable_isNewReconciler:!1},Es={readContext:io,useCallback:function(e,t){return Go().memoizedState=[e,t===void 0?null:t],e},useContext:io,useEffect:cs,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),os(4194308,4,fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){return os(4,2,e,t)},useMemo:function(e,t){var n=Go();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Go();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bs.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=Go();return e={current:e},t.memoizedState=e},useState:rs,useDebugValue:ms,useDeferredValue:function(e){return Go().memoizedState=e},useTransition:function(){var e=rs(!1),t=e[0];return e=vs.bind(null,e[1]),Go().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=L,a=Go();if(Ma){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),el===null)throw Error(r(349));Po&30||Qo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,cs(es.bind(null,i,o,e),[e]),i.flags|=2048,is(9,$o.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Go(),t=el.identifierPrefix;if(Ma){var n=Ta,r=wa;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=zo++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Bo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Ds={readContext:io,useCallback:hs,useContext:io,useEffect:ls,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Jo,useRef:as,useState:function(){return Jo(qo)},useDebugValue:ms,useDeferredValue:function(e){return _s(Ko(),Fo.memoizedState,e)},useTransition:function(){return[Jo(qo)[0],Ko().memoizedState]},useMutableSource:Xo,useSyncExternalStore:Zo,useId:ys,unstable_isNewReconciler:!1},Os={readContext:io,useCallback:hs,useContext:io,useEffect:ls,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Yo,useRef:as,useState:function(){return Yo(qo)},useDebugValue:ms,useDeferredValue:function(e){var t=Ko();return Fo===null?t.memoizedState=e:_s(t,Fo.memoizedState,e)},useTransition:function(){return[Yo(qo)[0],Ko().memoizedState]},useMutableSource:Xo,useSyncExternalStore:Zo,useId:ys,unstable_isNewReconciler:!1};function ks(e,t){if(e&&e.defaultProps){for(var n in t=A({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function As(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:A({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var js={isMounted:function(e){return(e=e._reactInternals)?ht(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Tl(),i=El(e),a=po(r,i);a.payload=t,n!=null&&(a.callback=n),t=mo(e,a,i),t!==null&&(Dl(t,e,i,r),ho(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Tl(),i=El(e),a=po(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=mo(e,a,i),t!==null&&(Dl(t,e,i,r),ho(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tl(),r=El(e),i=po(n,r);i.tag=2,t!=null&&(i.callback=t),t=mo(e,i,r),t!==null&&(Dl(t,e,r,n),ho(t,e,r))}};function Ms(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!zr(n,r)||!zr(i,a):!0}function Ns(e,t,n){var r=!1,i=na,a=t.contextType;return typeof a==`object`&&a?a=io(a):(i=sa(t)?aa:ra.current,r=t.contextTypes,a=(r=r!=null)?oa(e,i):na),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=js,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ps(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&js.enqueueReplaceState(t,t.state,null)}function Fs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},uo(e);var a=t.contextType;typeof a==`object`&&a?i.context=io(a):(a=sa(t)?aa:ra.current,i.context=oa(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(As(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&js.enqueueReplaceState(i,i.state,null),_o(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Is(e,t){try{var n=``,r=t;do n+=pe(r),r=r.return;while(r);var i=n}catch(e){i=`
7Error generating stack: `+e.message+`
8`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ls(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Rs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var zs=typeof WeakMap==`function`?WeakMap:Map;function Bs(e,t,n){n=po(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hl||(hl=!0,gl=r),Rs(e,t)},n}function Vs(e,t,n){n=po(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Rs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Rs(e,t),typeof r!=`function`&&(_l===null?_l=new Set([this]):_l.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Hs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ql.bind(null,e,t,n),t.then(e,e))}function Us(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Ws(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=po(-1,1),t.tag=2,mo(n,t,1))),n.lanes|=1),e)}var Gs=C.ReactCurrentOwner,Ks=!1;function qs(e,t,n,r){t.child=e===null?Ya(t,null,n,r):Ja(t,e.child,n,r)}function Js(e,t,n,r,i){n=n.render;var a=t.ref;return ro(t,i),r=Uo(e,t,n,r,a,i),n=Wo(),e!==null&&!Ks?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,mc(e,t,i)):(Ma&&n&&Oa(t),t.flags|=1,qs(e,t,r,i),t.child)}function Ys(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ou(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Xs(e,t,a,r,i)):(e=lu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?zr:n,n(o,r)&&e.ref===t.ref)return mc(e,t,i)}return t.flags|=1,e=cu(a,r),e.ref=t.ref,e.return=t,t.child=e}function Xs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(zr(a,r)&&e.ref===t.ref)if(Ks=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ks=!0);else return t.lanes=e.lanes,mc(e,t,i)}return $s(e,t,n,r,i)}function Zs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},P(il,rl),rl|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,P(il,rl),rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,P(il,rl),rl|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),P(il,rl),rl|=r;return qs(e,t,i,n),t.child}function Qs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $s(e,t,n,r,i){var a=sa(n)?aa:ra.current;return a=oa(t,a),ro(t,i),n=Uo(e,t,n,r,a,i),r=Wo(),e!==null&&!Ks?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,mc(e,t,i)):(Ma&&r&&Oa(t),t.flags|=1,qs(e,t,n,i),t.child)}function ec(e,t,n,r,i){if(sa(n)){var a=!0;da(t)}else a=!1;if(ro(t,i),t.stateNode===null)pc(e,t),Ns(t,n,r),Fs(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=io(l):(l=sa(n)?aa:ra.current,l=oa(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ps(t,o,r,l),lo=!1;var f=t.memoizedState;o.state=f,_o(t,r,o,i),c=t.memoizedState,s!==r||f!==c||ia.current||lo?(typeof u==`function`&&(As(t,n,u,r),c=t.memoizedState),(s=lo||Ms(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,fo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ks(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=io(c):(c=sa(n)?aa:ra.current,c=oa(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ps(t,o,r,c),lo=!1,f=t.memoizedState,o.state=f,_o(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||ia.current||lo?(typeof p==`function`&&(As(t,n,p,r),m=t.memoizedState),(l=lo||Ms(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return tc(e,t,n,r,a,i)}function tc(e,t,n,r,i,a){Qs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&fa(t,n,!1),mc(e,t,a);r=t.stateNode,Gs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ja(t,e.child,null,a),t.child=Ja(t,null,s,a)):qs(e,t,s,a),t.memoizedState=r.state,i&&fa(t,n,!0),t.child}function nc(e){var t=e.stateNode;t.pendingContext?la(e,t.pendingContext,t.pendingContext!==t.context):t.context&&la(e,t.context,!1),wo(e,t.containerInfo)}function rc(e,t,n,r,i){return Va(),Ha(i),t.flags|=256,qs(e,t,n,r),t.child}var ic={dehydrated:null,treeContext:null,retryLane:0};function ac(e){return{baseLanes:e,cachePool:null,transitions:null}}function oc(e,t,n){var r=t.pendingProps,i=Oo.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),P(Oo,i&1),e===null)return La(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=du(o,r,0,null),e=uu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ac(n),t.memoizedState=ic,e):sc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return lc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=cu(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=uu(a,o,n,null),a.flags|=2):a=cu(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?ac(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=ic,r}return a=e.child,e=a.sibling,r=cu(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function sc(e,t){return t=du({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function cc(e,t,n,r){return r!==null&&Ha(r),Ja(t,e.child,null,n),e=sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ls(Error(r(422))),cc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=du({mode:`visible`,children:i.children},a,0,null),o=uu(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ja(t,e.child,null,s),t.child.memoizedState=ac(s),t.memoizedState=ic,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return cc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ls(o,i,void 0),cc(e,t,s,i)}if(c=(s&e.childLanes)!==0,Ks||c){if(i=el,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,co(e,a),Dl(i,e,a,-1))}return Vl(),i=Ls(Error(r(421))),cc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=eu.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ja=Bi(a.nextSibling),Aa=t,Ma=!0,Na=null,e!==null&&(I[Sa++]=wa,I[Sa++]=Ta,I[Sa++]=Ca,wa=e.id,Ta=e.overflow,Ca=t),t=sc(t,i.children),t.flags|=4096,t)}function uc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),no(e.return,t,n)}function dc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function fc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(qs(e,t,r.children,n),r=Oo.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uc(e,n,t);else if(e.tag===19)uc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(P(Oo,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ko(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),dc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ko(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}dc(t,!0,n,null,a);break;case`together`:dc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sl|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=cu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=cu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hc(e,t,n){switch(t.tag){case 3:nc(t),Va();break;case 5:Eo(t);break;case 1:sa(t.type)&&da(t);break;case 4:wo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;P(Xa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(P(Oo,Oo.current&1),e=mc(e,t,n),e===null?null:e.sibling):oc(e,t,n):(P(Oo,Oo.current&1),t.flags|=128,null);P(Oo,Oo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),P(Oo,Oo.current),r)break;return null;case 22:case 23:return t.lanes=0,Zs(e,t,n)}return mc(e,t,n)}var gc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},_c=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Co(bo.current);var o=null;switch(n){case`input`:i=Se(e,i),r=Se(e,r),o=[];break;case`select`:i=A({},i,{value:void 0}),r=A({},r,{value:void 0}),o=[];break;case`textarea`:i=Ae(e,i),r=Ae(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Ai)}We(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&gi(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},vc=function(e,t,n,r){n!==r&&(t.flags|=4)};function yc(e,t){if(!Ma)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function bc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xc(e,t,n){var i=t.pendingProps;switch(ka(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bc(t),null;case 1:return sa(t.type)&&ca(),bc(t),null;case 3:return i=t.stateNode,To(),ta(ia),ta(ra),jo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(za(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Na!==null&&(jl(Na),Na=null))),bc(t),null;case 5:Do(t);var o=Co(So.current);if(n=t.type,e!==null&&t.stateNode!=null)_c(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return bc(t),null}if(e=Co(bo.current),za(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Ui]=t,i[N]=s,e=(t.mode&1)!=0,n){case`dialog`:gi(`cancel`,i),gi(`close`,i);break;case`iframe`:case`object`:case`embed`:gi(`load`,i);break;case`video`:case`audio`:for(o=0;o<fi.length;o++)gi(fi[o],i);break;case`source`:gi(`error`,i);break;case`img`:case`image`:case`link`:gi(`error`,i),gi(`load`,i);break;case`details`:gi(`toggle`,i);break;case`input`:Ce(i,s),gi(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},gi(`invalid`,i);break;case`textarea`:je(i,s),gi(`invalid`,i)}for(var c in We(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&ki(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&ki(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&gi(`scroll`,i)}switch(n){case`input`:ye(i),Ee(i,s,!0);break;case`textarea`:ye(i),Ne(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Ai)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Pe(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Ui]=t,e[N]=i,gc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ge(n,i),n){case`dialog`:gi(`cancel`,e),gi(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:gi(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<fi.length;o++)gi(fi[o],e);o=i;break;case`source`:gi(`error`,e),o=i;break;case`img`:case`image`:case`link`:gi(`error`,e),gi(`load`,e),o=i;break;case`details`:gi(`toggle`,e),o=i;break;case`input`:Ce(e,i),o=Se(e,i),gi(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=A({},i,{value:void 0}),gi(`invalid`,e);break;case`textarea`:je(e,i),o=Ae(e,i),gi(`invalid`,e);break;default:o=i}for(s in We(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?He(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Le(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Re(e,u):typeof u==`number`&&Re(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&gi(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:ye(e),Ee(e,i,!1);break;case`textarea`:ye(e),Ne(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+ge(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&ke(e,!!i.multiple,i.defaultValue,!0):ke(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Ai)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return bc(t),null;case 6:if(e&&t.stateNode!=null)vc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=Co(So.current),Co(bo.current),za(t)){if(i=t.stateNode,n=t.memoizedProps,i[Ui]=t,(s=i.nodeValue!==n)&&(e=Aa,e!==null))switch(e.tag){case 3:ki(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ki(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Ui]=t,t.stateNode=i}return bc(t),null;case 13:if(ta(Oo),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ma&&ja!==null&&t.mode&1&&!(t.flags&128))Ba(),Va(),t.flags|=98560,s=!1;else if(s=za(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Ui]=t}else Va(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;bc(t),s=!1}else Na!==null&&(jl(Na),Na=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Oo.current&1?al===0&&(al=3):Vl())),t.updateQueue!==null&&(t.flags|=4),bc(t),null);case 4:return To(),e===null&&yi(t.stateNode.containerInfo),bc(t),null;case 10:return to(t.type._context),bc(t),null;case 17:return sa(t.type)&&ca(),bc(t),null;case 19:if(ta(Oo),s=t.memoizedState,s===null)return bc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)yc(s,!1);else{if(al!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=ko(e),c!==null){for(t.flags|=128,yc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return P(Oo,Oo.current&1|2),t.child}e=e.sibling}s.tail!==null&&Tt()>pl&&(t.flags|=128,i=!0,yc(s,!1),t.lanes=4194304)}else{if(!i)if(e=ko(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Ma)return bc(t),null}else 2*Tt()-s.renderingStartTime>pl&&n!==1073741824&&(t.flags|=128,i=!0,yc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(bc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Tt(),t.sibling=null,n=Oo.current,P(Oo,i?n&1|2:n&1),t);case 22:case 23:return Ll(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?rl&1073741824&&(bc(t),t.subtreeFlags&6&&(t.flags|=8192)):bc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function Sc(e,t){switch(ka(t),t.tag){case 1:return sa(t.type)&&ca(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return To(),ta(ia),ta(ra),jo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Do(t),null;case 13:if(ta(Oo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ta(Oo),null;case 4:return To(),null;case 10:return to(t.type._context),null;case 22:case 23:return Ll(),null;case 24:return null;default:return null}}var Cc=!1,wc=!1,Tc=typeof WeakSet==`function`?WeakSet:Set,R=null;function Ec(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Zl(e,t,n)}else n.current=null}function Dc(e,t,n){try{n()}catch(n){Zl(e,t,n)}}var Oc=!1;function kc(e,t){if(ji=Sn,e=Ur(),Wr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Mi={focusedElem:e,selectionRange:n},Sn=!1,R=t;R!==null;)if(t=R,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ks(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Zl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return h=Oc,Oc=!1,h}function Ac(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Dc(t,n,a)}i=i.next}while(i!==r)}}function jc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Mc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Nc(e){var t=e.alternate;t!==null&&(e.alternate=null,Nc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ui],delete t[N],delete t[Gi],delete t[Ki],delete t[qi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pc(e){return e.tag===5||e.tag===3||e.tag===4}function Fc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function z(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ai));else if(r!==4&&(e=e.child,e!==null))for(z(e,t,n),e=e.sibling;e!==null;)z(e,t,n),e=e.sibling}function Ic(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}var Lc=null,Rc=!1;function zc(e,t,n){for(n=n.child;n!==null;)Bc(e,t,n),n=n.sibling}function Bc(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount==`function`)try{Nt.onCommitFiberUnmount(Mt,n)}catch{}switch(n.tag){case 5:wc||Ec(n,t);case 6:var r=Lc,i=Rc;Lc=null,zc(e,t,n),Lc=r,Rc=i,Lc!==null&&(Rc?(e=Lc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Lc.removeChild(n.stateNode));break;case 18:Lc!==null&&(Rc?(e=Lc,n=n.stateNode,e.nodeType===8?zi(e.parentNode,n):e.nodeType===1&&zi(e,n),bn(e)):zi(Lc,n.stateNode));break;case 4:r=Lc,i=Rc,Lc=n.stateNode.containerInfo,Rc=!0,zc(e,t,n),Lc=r,Rc=i;break;case 0:case 11:case 14:case 15:if(!wc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Dc(n,t,o),i=i.next}while(i!==r)}zc(e,t,n);break;case 1:if(!wc&&(Ec(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Zl(n,t,e)}zc(e,t,n);break;case 21:zc(e,t,n);break;case 22:n.mode&1?(wc=(r=wc)||n.memoizedState!==null,zc(e,t,n),wc=r):zc(e,t,n);break;default:zc(e,t,n)}}function Vc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tc),t.forEach(function(t){var r=tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Hc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Lc=c.stateNode,Rc=!1;break a;case 3:Lc=c.stateNode.containerInfo,Rc=!0;break a;case 4:Lc=c.stateNode.containerInfo,Rc=!0;break a}c=c.return}if(Lc===null)throw Error(r(160));Bc(o,s,a),Lc=null,Rc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Zl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Uc(t,e),t=t.sibling}function Uc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Hc(t,e),Wc(e),i&4){try{Ac(3,e,e.return),jc(3,e)}catch(t){Zl(e,e.return,t)}try{Ac(5,e,e.return)}catch(t){Zl(e,e.return,t)}}break;case 1:Hc(t,e),Wc(e),i&512&&n!==null&&Ec(n,n.return);break;case 5:if(Hc(t,e),Wc(e),i&512&&n!==null&&Ec(n,n.return),e.flags&32){var a=e.stateNode;try{Re(a,``)}catch(t){Zl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&we(a,o),Ge(c,s);var u=Ge(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?He(a,f):d===`dangerouslySetInnerHTML`?Le(a,f):d===`children`?Re(a,f):S(a,d,f,u)}switch(c){case`input`:Te(a,o);break;case`textarea`:Me(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?ke(a,!!o.multiple,o.multiple?[]:``,!1):ke(a,!!o.multiple,o.defaultValue,!0)):ke(a,!!o.multiple,m,!1)}a[N]=o}catch(t){Zl(e,e.return,t)}}break;case 6:if(Hc(t,e),Wc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Zl(e,e.return,t)}}break;case 3:if(Hc(t,e),Wc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{bn(t.containerInfo)}catch(t){Zl(e,e.return,t)}break;case 4:Hc(t,e),Wc(e);break;case 13:Hc(t,e),Wc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(fl=Tt())),i&4&&Vc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(wc=(u=wc)||d,Hc(t,e),wc=u):Hc(t,e),Wc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(f=R=d;R!==null;){switch(p=R,m=p.child,p.tag){case 0:case 11:case 14:case 15:Ac(4,p,p.return);break;case 1:Ec(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Zl(i,n,e)}}break;case 5:Ec(p,p.return);break;case 22:if(p.memoizedState!==null){Jc(f);continue}}m===null?Jc(f):(m.return=p,R=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Ve(`display`,s))}catch(t){Zl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Zl(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Hc(t,e),Wc(e),i&4&&Vc(e);break;case 21:break;default:Hc(t,e),Wc(e)}}function Wc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Pc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Re(a,``),i.flags&=-33),Ic(e,Fc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;z(e,Fc(e),o);break;default:throw Error(r(161))}}catch(t){Zl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gc(e,t,n){R=e,Kc(e,t,n)}function Kc(e,t,n){for(var r=(e.mode&1)!=0;R!==null;){var i=R,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Cc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||wc;s=Cc;var l=wc;if(Cc=o,(wc=c)&&!l)for(R=i;R!==null;)o=R,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Yc(i):(c.return=o,R=c);for(;a!==null;)R=a,Kc(a,t,n),a=a.sibling;R=i,Cc=s,wc=l}qc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,R=a):qc(e,t,n)}}function qc(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:wc||jc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!wc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ks(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&vo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}vo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&bn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}wc||t.flags&512&&Mc(t)}catch(e){Zl(t,t.return,e)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function Jc(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function Yc(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jc(4,t)}catch(e){Zl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Zl(t,i,e)}}var a=t.return;try{Mc(t)}catch(e){Zl(t,a,e)}break;case 5:var o=t.return;try{Mc(t)}catch(e){Zl(t,o,e)}}}catch(e){Zl(t,t.return,e)}if(t===e){R=null;break}var s=t.sibling;if(s!==null){s.return=t.return,R=s;break}R=t.return}}var Xc=Math.ceil,Zc=C.ReactCurrentDispatcher,Qc=C.ReactCurrentOwner,$c=C.ReactCurrentBatchConfig,B=0,el=null,tl=null,nl=0,rl=0,il=ea(0),al=0,ol=null,sl=0,cl=0,ll=0,ul=null,dl=null,fl=0,pl=1/0,ml=null,hl=!1,gl=null,_l=null,vl=!1,yl=null,bl=0,xl=0,Sl=null,Cl=-1,wl=0;function Tl(){return B&6?Tt():Cl===-1?Cl=Tt():Cl}function El(e){return e.mode&1?B&2&&nl!==0?nl&-nl:Ua.transition===null?(e=M,e===0?(e=window.event,e=e===void 0?16:On(e.type),e):e):(wl===0&&(wl=Gt()),wl):1}function Dl(e,t,n,i){if(50<xl)throw xl=0,Sl=null,Error(r(185));qt(e,n,i),(!(B&2)||e!==el)&&(e===el&&(!(B&2)&&(cl|=n),al===4&&Nl(e,nl)),Ol(e,i),n===1&&B===0&&!(t.mode&1)&&(pl=Tt()+500,ma&&F()))}function Ol(e,t){var n=e.callbackNode;Ut(e,t);var r=Vt(e,e===el?nl:0);if(r===0)n!==null&&St(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&St(n),t===1)e.tag===0?_a(Pl.bind(null,e)):ga(Pl.bind(null,e)),Li(function(){!(B&6)&&F()}),n=null;else{switch(Xt(r)){case 1:n=Dt;break;case 4:n=Ot;break;case 16:n=kt;break;case 536870912:n=jt;break;default:n=kt}n=ru(n,kl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kl(e,t){if(Cl=-1,wl=0,B&6)throw Error(r(327));var n=e.callbackNode;if(Yl()&&e.callbackNode!==n)return null;var i=Vt(e,e===el?nl:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Hl(e,i);else{t=i;var a=B;B|=2;var o=Bl();(el!==e||nl!==t)&&(ml=null,pl=Tt()+500,Rl(e,t));do try{Wl();break}catch(t){zl(e,t)}while(1);eo(),Zc.current=o,B=a,tl===null?(el=null,nl=0,t=al):t=0}if(t!==0){if(t===2&&(a=Wt(e),a!==0&&(i=a,t=Al(e,a))),t===1)throw n=ol,Rl(e,0),Nl(e,i),Ol(e,Tt()),n;if(t===6)Nl(e,i);else{if(a=e.current.alternate,!(i&30)&&!Ml(a)&&(t=Hl(e,i),t===2&&(o=Wt(e),o!==0&&(i=o,t=Al(e,o))),t===1))throw n=ol,Rl(e,0),Nl(e,i),Ol(e,Tt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:ql(e,dl,ml);break;case 3:if(Nl(e,i),(i&130023424)===i&&(t=fl+500-Tt(),10<t)){if(Vt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Tl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Pi(ql.bind(null,e,dl,ml),t);break}ql(e,dl,ml);break;case 4:if(Nl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Ft(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=Tt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Xc(i/1960))-i,10<i){e.timeoutHandle=Pi(ql.bind(null,e,dl,ml),i);break}ql(e,dl,ml);break;case 5:ql(e,dl,ml);break;default:throw Error(r(329))}}}return Ol(e,Tt()),e.callbackNode===n?kl.bind(null,e):null}function Al(e,t){var n=ul;return e.current.memoizedState.isDehydrated&&(Rl(e,t).flags|=256),e=Hl(e,t),e!==2&&(t=dl,dl=n,t!==null&&jl(t)),e}function jl(e){dl===null?dl=e:dl.push.apply(dl,e)}function Ml(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Rr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Nl(e,t){for(t&=~ll,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ft(t),r=1<<n;e[n]=-1,t&=~r}}function Pl(e){if(B&6)throw Error(r(327));Yl();var t=Vt(e,0);if(!(t&1))return Ol(e,Tt()),null;var n=Hl(e,t);if(e.tag!==0&&n===2){var i=Wt(e);i!==0&&(t=i,n=Al(e,i))}if(n===1)throw n=ol,Rl(e,0),Nl(e,t),Ol(e,Tt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ql(e,dl,ml),Ol(e,Tt()),null}function Fl(e,t){var n=B;B|=1;try{return e(t)}finally{B=n,B===0&&(pl=Tt()+500,ma&&F())}}function Il(e){yl!==null&&yl.tag===0&&!(B&6)&&Yl();var t=B;B|=1;var n=$c.transition,r=M;try{if($c.transition=null,M=1,e)return e()}finally{M=r,$c.transition=n,B=t,!(B&6)&&F()}}function Ll(){rl=il.current,ta(il)}function Rl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Fi(n)),tl!==null)for(n=tl.return;n!==null;){var r=n;switch(ka(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ca();break;case 3:To(),ta(ia),ta(ra),jo();break;case 5:Do(r);break;case 4:To();break;case 13:ta(Oo);break;case 19:ta(Oo);break;case 10:to(r.type._context);break;case 22:case 23:Ll()}n=n.return}if(el=e,tl=e=cu(e.current,null),nl=rl=t,al=0,ol=null,ll=cl=sl=0,dl=ul=null,ao!==null){for(t=0;t<ao.length;t++)if(n=ao[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}ao=null}return e}function zl(e,t){do{var n=tl;try{if(eo(),Mo.current=Ts,Lo){for(var i=L.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Lo=!1}if(Po=0,Io=Fo=L=null,Ro=!1,zo=0,Qc.current=null,n===null||n.return===null){al=1,ol=t,tl=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=nl,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Us(s);if(m!==null){m.flags&=-257,Ws(m,s,c,o,t),m.mode&1&&Hs(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Hs(o,u,t),Vl();break a}l=Error(r(426))}}else if(Ma&&c.mode&1){var _=Us(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ws(_,s,c,o,t),Ha(Is(l,c));break a}}o=l=Is(l,c),al!==4&&(al=2),ul===null?ul=[o]:ul.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Bs(o,l,t);go(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(_l===null||!_l.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Vs(o,c,t);go(o,x);break a}}o=o.return}while(o!==null)}Kl(n)}catch(e){t=e,tl===n&&n!==null&&(tl=n=n.return);continue}break}while(1)}function Bl(){var e=Zc.current;return Zc.current=Ts,e===null?Ts:e}function Vl(){(al===0||al===3||al===2)&&(al=4),el===null||!(sl&268435455)&&!(cl&268435455)||Nl(el,nl)}function Hl(e,t){var n=B;B|=2;var i=Bl();(el!==e||nl!==t)&&(ml=null,Rl(e,t));do try{Ul();break}catch(t){zl(e,t)}while(1);if(eo(),B=n,Zc.current=i,tl!==null)throw Error(r(261));return el=null,nl=0,al}function Ul(){for(;tl!==null;)Gl(tl)}function Wl(){for(;tl!==null&&!Ct();)Gl(tl)}function Gl(e){var t=nu(e.alternate,e,rl);e.memoizedProps=e.pendingProps,t===null?Kl(e):tl=t,Qc.current=null}function Kl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Sc(n,t),n!==null){n.flags&=32767,tl=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{al=6,tl=null;return}}else if(n=xc(n,t,rl),n!==null){tl=n;return}if(t=t.sibling,t!==null){tl=t;return}tl=t=e}while(t!==null);al===0&&(al=5)}function ql(e,t,n){var r=M,i=$c.transition;try{$c.transition=null,M=1,Jl(e,t,n,r)}finally{$c.transition=i,M=r}return null}function Jl(e,t,n,i){do Yl();while(yl!==null);if(B&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Jt(e,o),e===el&&(tl=el=null,nl=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||vl||(vl=!0,ru(kt,function(){return Yl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=$c.transition,$c.transition=null;var s=M;M=1;var c=B;B|=4,Qc.current=null,kc(e,n),Uc(n,e),Gr(Mi),Sn=!!ji,Mi=ji=null,e.current=n,Gc(n,e,a),wt(),B=c,M=s,$c.transition=o}else e.current=n;if(vl&&(vl=!1,yl=e,bl=a),o=e.pendingLanes,o===0&&(_l=null),Pt(n.stateNode,i),Ol(e,Tt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(hl)throw hl=!1,e=gl,gl=null,e;return bl&1&&e.tag!==0&&Yl(),o=e.pendingLanes,o&1?e===Sl?xl++:(xl=0,Sl=e):xl=0,F(),null}function Yl(){if(yl!==null){var e=Xt(bl),t=$c.transition,n=M;try{if($c.transition=null,M=16>e?16:e,yl===null)var i=!1;else{if(e=yl,yl=null,bl=0,B&6)throw Error(r(331));var a=B;for(B|=4,R=e.current;R!==null;){var o=R,s=o.child;if(R.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(R=u;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:Ac(8,d,o)}var f=d.child;if(f!==null)f.return=d,R=f;else for(;R!==null;){d=R;var p=d.sibling,m=d.return;if(Nc(d),d===u){R=null;break}if(p!==null){p.return=m,R=p;break}R=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}R=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,R=s;else b:for(;R!==null;){if(o=R,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ac(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,R=v;break b}R=o.return}}var y=e.current;for(R=y;R!==null;){s=R;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,R=b;else b:for(s=y;R!==null;){if(c=R,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:jc(9,c)}}catch(e){Zl(c,c.return,e)}if(c===s){R=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,R=x;break b}R=c.return}}if(B=a,F(),Nt&&typeof Nt.onPostCommitFiberRoot==`function`)try{Nt.onPostCommitFiberRoot(Mt,e)}catch{}i=!0}return i}finally{M=n,$c.transition=t}}return!1}function Xl(e,t,n){t=Is(n,t),t=Bs(e,t,1),e=mo(e,t,1),t=Tl(),e!==null&&(qt(e,1,t),Ol(e,t))}function Zl(e,t,n){if(e.tag===3)Xl(e,e,n);else for(;t!==null;){if(t.tag===3){Xl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(_l===null||!_l.has(r))){e=Is(n,e),e=Vs(t,e,1),t=mo(t,e,1),e=Tl(),t!==null&&(qt(t,1,e),Ol(t,e));break}}t=t.return}}function Ql(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Tl(),e.pingedLanes|=e.suspendedLanes&n,el===e&&(nl&n)===n&&(al===4||al===3&&(nl&130023424)===nl&&500>Tt()-fl?Rl(e,0):ll|=n),Ol(e,t)}function $l(e,t){t===0&&(e.mode&1?(t=zt,zt<<=1,!(zt&130023424)&&(zt=4194304)):t=1);var n=Tl();e=co(e,t),e!==null&&(qt(e,t,n),Ol(e,n))}function eu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$l(e,n)}function tu(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),$l(e,n)}var nu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ia.current)Ks=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ks=!1,hc(e,t,n);Ks=!!(e.flags&131072)}else Ks=!1,Ma&&t.flags&1048576&&Da(t,xa,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;pc(e,t),e=t.pendingProps;var a=oa(t,ra.current);ro(t,n),a=Uo(null,t,i,e,a,n);var o=Wo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,sa(i)?(o=!0,da(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,uo(t),a.updater=js,t.stateNode=a,a._reactInternals=t,Fs(t,i,e,n),t=tc(null,t,i,!0,o,n)):(t.tag=0,Ma&&o&&Oa(t),qs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(pc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=su(i),e=ks(i,e),a){case 0:t=$s(null,t,i,e,n);break a;case 1:t=ec(null,t,i,e,n);break a;case 11:t=Js(null,t,i,e,n);break a;case 14:t=Ys(null,t,i,ks(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),$s(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),ec(e,t,i,a,n);case 3:a:{if(nc(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,fo(e,t),_o(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Is(Error(r(423)),t),t=rc(e,t,i,n,a);break a}else if(i!==a){a=Is(Error(r(424)),t),t=rc(e,t,i,n,a);break a}else for(ja=Bi(t.stateNode.containerInfo.firstChild),Aa=t,Ma=!0,Na=null,n=Ya(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Va(),i===a){t=mc(e,t,n);break a}qs(e,t,i,n)}t=t.child}return t;case 5:return Eo(t),e===null&&La(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ni(i,a)?s=null:o!==null&&Ni(i,o)&&(t.flags|=32),Qs(e,t),qs(e,t,s,n),t.child;case 6:return e===null&&La(t),null;case 13:return oc(e,t,n);case 4:return wo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ja(t,null,i,n):qs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),Js(e,t,i,a,n);case 7:return qs(e,t,t.pendingProps,n),t.child;case 8:return qs(e,t,t.pendingProps.children,n),t.child;case 12:return qs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,P(Xa,i._currentValue),i._currentValue=s,o!==null)if(Rr(o.value,s)){if(o.children===a.children&&!ia.current){t=mc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=po(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),no(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),no(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}qs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,ro(t,n),a=io(a),i=i(a),t.flags|=1,qs(e,t,i,n),t.child;case 14:return i=t.type,a=ks(i,t.pendingProps),a=ks(i.type,a),Ys(e,t,i,a,n);case 15:return Xs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),pc(e,t),t.tag=1,sa(i)?(e=!0,da(t)):e=!1,ro(t,n),Ns(t,i,a),Fs(t,i,a,n),tc(null,t,i,!0,e,n);case 19:return fc(e,t,n);case 22:return Zs(e,t,n)}throw Error(r(156,t.tag))};function ru(e,t){return xt(e,t)}function iu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function au(e,t,n,r){return new iu(e,t,n,r)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function su(e){if(typeof e==`function`)return+!!ou(e);if(e!=null){if(e=e.$$typeof,e===re)return 11;if(e===O)return 14}return 2}function cu(e,t){var n=e.alternate;return n===null?(n=au(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function lu(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ou(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case ee:return uu(n.children,a,o,t);case E:s=8,a|=8;break;case D:return e=au(12,n,t,a|2),e.elementType=D,e.lanes=o,e;case ie:return e=au(13,n,t,a),e.elementType=ie,e.lanes=o,e;case ae:return e=au(19,n,t,a),e.elementType=ae,e.lanes=o,e;case se:return du(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case te:s=10;break a;case ne:s=9;break a;case re:s=11;break a;case O:s=14;break a;case oe:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=au(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function uu(e,t,n,r){return e=au(7,e,r,t),e.lanes=n,e}function du(e,t,n,r){return e=au(22,e,r,t),e.elementType=se,e.lanes=n,e.stateNode={isHidden:!1},e}function fu(e,t,n){return e=au(6,e,null,t),e.lanes=n,e}function pu(e,t,n){return t=au(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kt(0),this.expirationTimes=Kt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hu(e,t,n,r,i,a,o,s,c){return e=new mu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=au(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},uo(a),e}function gu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function _u(e){if(!e)return na;e=e._reactInternals;
vendor: 4,413 bytes, line 8
8a:{if(ht(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(sa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(sa(n))return ua(e,n,t)}return t}function vu(e,t,n,r,i,a,o,s,c){return e=hu(n,r,!0,e,i,a,o,s,c),e.context=_u(null),n=e.current,r=Tl(),i=El(n),a=po(r,i),a.callback=t??null,mo(n,a,i),e.current.lanes=i,qt(e,i,r),Ol(e,r),e}function yu(e,t,n,r){var i=t.current,a=Tl(),o=El(i);return n=_u(n),t.context===null?t.context=n:t.pendingContext=n,t=po(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mo(i,t,o),e!==null&&(Dl(e,i,o,a),ho(e,i,o)),o}function bu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function xu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Su(e,t){xu(e,t),(e=e.alternate)&&xu(e,t)}function Cu(){return null}var wu=typeof reportError==`function`?reportError:function(e){console.error(e)};function Tu(e){this._internalRoot=e}Eu.prototype.render=Tu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));yu(e,t,null,null)},Eu.prototype.unmount=Tu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Il(function(){yu(null,e,null,null)}),t[Wi]=null}};function Eu(e){this._internalRoot=e}Eu.prototype.unstable_scheduleHydration=function(e){if(e){var t=en();e={blockedOn:null,target:e,priority:t};for(var n=0;n<un.length&&t!==0&&t<un[n].priority;n++);un.splice(n,0,e),n===0&&hn(e)}};function Du(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ou(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function ku(){}function Au(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=bu(o);a.call(e)}}var o=vu(t,r,e,0,null,!1,!1,``,ku);return e._reactRootContainer=o,e[Wi]=o.current,yi(e.nodeType===8?e.parentNode:e),Il(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=bu(c);s.call(e)}}var c=hu(e,0,!1,null,null,!1,!1,``,ku);return e._reactRootContainer=c,e[Wi]=c.current,yi(e.nodeType===8?e.parentNode:e),Il(function(){yu(t,c,n,r)}),c}function ju(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=bu(o);s.call(e)}}yu(t,o,e,i)}else o=Au(n,t,e,i,r);return bu(o)}Zt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bt(t.pendingLanes);n!==0&&(Yt(t,n|1),Ol(t,Tt()),!(B&6)&&(pl=Tt()+500,F()))}break;case 13:Il(function(){var t=co(e,1);t!==null&&Dl(t,e,1,Tl())}),Su(e,1)}},Qt=function(e){if(e.tag===13){var t=co(e,134217728);t!==null&&Dl(t,e,134217728,Tl()),Su(e,134217728)}},$t=function(e){if(e.tag===13){var t=El(e),n=co(e,t);n!==null&&Dl(n,e,t,Tl()),Su(e,t)}},en=function(){return M},tn=function(e,t){var n=M;try{return M=e,t()}finally{M=n}},Je=function(e,t,n){switch(t){case`input`:if(Te(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Zi(i);if(!a)throw Error(r(90));be(i),Te(i,a)}}}break;case`textarea`:Me(e,n);break;case`select`:t=n.value,t!=null&&ke(e,!!n.multiple,t,!1)}},et=Fl,tt=Il;var Mu={usingClientEntryPoint:!1,Events:[Yi,Xi,Zi,Qe,$e,Fl]},Nu={findFiberByHostInstance:Ji,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},Pu={bundleType:Nu.bundleType,version:Nu.version,rendererPackageName:Nu.rendererPackageName,rendererConfig:Nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yt(e),e===null?null:e.stateNode},findFiberByHostInstance:Nu.findFiberByHostInstance||Cu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};
8if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fu.isDisabled&&Fu.supportsFiber)try{Mt=Fu.inject(Pu),Nt=Fu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Du(t))throw Error(r(200));return gu(e,t,null,n)},e.createRoot=function(e,t){if(!Du(e))throw Error(r(299));var n=!1,i=``,a=wu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=hu(e,1,!1,null,null,n,!1,i,a),e[Wi]=t.current,yi(e.nodeType===8?e.parentNode:e),new Tu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=yt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Il(e)},e.hydrate=function(e,t,n){if(!Ou(t))throw Error(r(200));return ju(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!Du(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=wu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=vu(t,null,e,1,n??null,a,!1,o,s),e[Wi]=t.current,yi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Eu(t)},e.render=function(e,t,n){if(!Ou(t))throw Error(r(200));return ju(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Ou(e))throw Error(r(40));return e._reactRootContainer?(Il(function(){ju(null,null,e,!1,function(){e._reactRootContainer=null,e[Wi]=null})}),!0):!1},e.unstable_batchedUpdates=Fl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Ou(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return ju(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=_();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),y=`modulepreload`,b=function(e){return`/`+e},x={},S=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=b(t,n),t in x)return;x[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:y,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},C=u(p(),1),w=`popstate`;function T(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function ee(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return re(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:ie(t)}return O(t,n,null,e)}function E(e,t){if(e===!1||e==null)throw Error(t)}function D(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function te(){return Math.random().toString(36).substring(2,10)}function ne(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function re(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?ae(t):t,state:n,key:t&&t.key||r||te(),mask:i}}function ie({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function ae(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function O(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=T(e)?e:re(h.location,e,t);n&&n(r,e),l=u()+1;let d=ne(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=T(e)?e:re(h.location,e,t);n&&n(r,e),l=u();let i=ne(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return oe(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(w,d),c=e,()=>{i.removeEventListener(w,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function oe(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),E(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:ie(t);return i=i.replace(/ $/,`%20`),!n&&i.startsWith(`//`)&&(i=r+i),new URL(i,r)}function se(e,t,n=`/`){return k(e,t,n,!1)}function k(e,t,n,r,i){let a=Te((typeof t==`string`?ae(t):t).pathname||`/`,n);if(a==null)return null;let o=i??A(e),s=null,c=we(a);for(let e=0;s==null&&e<o.length;++e)s=xe(o[e],c,r);return s}function ce(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function A(e){let t=le(e);return de(t),t}function le(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;E(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}
8" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Pe([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(E(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),le(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:ye(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ue(e.path))a(e,t,!0,n)}),t}function ue(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ue(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function de(e){e.sort((e,t)=>e.score===t.score?be(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var fe=/^:[\w-]+$/,pe=3,me=2,he=1,ge=10,_e=-2,ve=e=>e===`*`;function ye(e,t){let n=e.split(`/`),r=n.length;return n.some(ve)&&(r+=_e),t&&(r+=me),n.filter(e=>!ve(e)).reduce((e,t)=>e+(fe.test(t)?pe:t===``?he:ge),r)}function be(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function xe(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=Se({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=Se({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
8Object.assign(i,u.params),o.push({params:i,pathname:Pe([a,u.pathname]),pathnameBase:Ie(Pe([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=Pe([a,u.pathnameBase]))}return o}function Se(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ce(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ce(e,t=!1,n=!0){D(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function we(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return D(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Te(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var Ee=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function De(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?ae(e):e,a;return n?(n=Ne(n),a=n.startsWith(`/`)?Oe(n.substring(1),`/`):Oe(n,t)):a=t,{pathname:a,search:Le(r),hash:Re(i)}}function Oe(e,t){let n=Fe(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ke(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ae(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function je(e){let t=Ae(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Me(e,t,n,r=!1){let i;typeof e==`string`?i=ae(e):(i={...e},E(!i.pathname||!i.pathname.includes(`?`),ke(`?`,`pathname`,`search`,i)),E(!i.pathname||!i.pathname.includes(`#`),ke(`#`,`pathname`,`hash`,i)),E(!i.search||!i.search.includes(`#`),ke(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=De(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Ne=e=>e.replace(/\/\/+/g,`/`),Pe=e=>Ne(e.join(`/`)),Fe=e=>e.replace(/\/+$/,``),Ie=e=>Fe(e).replace(/^\/*/,`/`),Le=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Re=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,ze=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Be(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ve(e){return Pe(e.map(e=>e.route.path).filter(Boolean))||`/`}var He=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ue(e,t){let n=e;if(typeof n!=`string`||!Ee.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(He)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=Te(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{D(!1,`<Link to="${n}">
8 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var We=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(We);var Ge=[`GET`,...We];new Set(Ge);var Ke=C.createContext(null);Ke.displayName=`DataRouter`;var qe=C.createContext(null);qe.displayName=`DataRouterState`;var Je=C.createContext(!1);function Ye(){return C.useContext(Je)}var Xe=C.createContext({isTransitioning:!1});Xe.displayName=`ViewTransition`;var Ze=C.createContext(new Map);Ze.displayName=`Fetchers`;var Qe=C.createContext(null);Qe.displayName=`Await`;var $e=C.createContext(null);$e.displayName=`Navigation`;var et=C.createContext(null);et.displayName=`Location`;var tt=C.createContext({outlet:null,matches:[],isDataRoute:!1});tt.displayName=`Route`;var nt=C.createContext(null);nt.displayName=`RouteError`;var rt=`REACT_ROUTER_ERROR`,it=`REDIRECT`,at=`ROUTE_ERROR_RESPONSE`;function ot(e){if(e.startsWith(`${rt}:${it}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function st(e){if(e.startsWith(`${rt}:${at}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new ze(t.status,t.statusText,t.data)}catch{}}function ct(e,{relative:t}={}){E(lt(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=C.useContext($e),{hash:i,pathname:a,search:o}=ht(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Pe([n,a])),r.createHref({pathname:s,search:o,hash:i})}function lt(){return C.useContext(et)!=null}function ut(){return E(lt(),`useLocation() may be used only in the context of a <Router> component.`),C.useContext(et).location}var dt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function ft(e){C.useContext($e).static||C.useLayoutEffect(e)}function pt(){let{isDataRoute:e}=C.useContext(tt);return e?Pt():mt()}function mt(){E(lt(),`useNavigate() may be used only in the context of a <Router> component.`);let e=C.useContext(Ke),{basename:t,navigator:n}=C.useContext($e),{matches:r}=C.useContext(tt),{pathname:i}=ut(),a=JSON.stringify(je(r)),o=C.useRef(!1);return ft(()=>{o.current=!0}),C.useCallback((r,s={})=>{if(D(o.current,dt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Me(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Pe([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}C.createContext(null);function ht(e,{relative:t}={}){let{matches:n}=C.useContext(tt),{pathname:r}=ut(),i=JSON.stringify(je(n));return C.useMemo(()=>Me(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function gt(e,t){return _t(e,t)}function _t(e,t,n){E(lt(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=C.useContext($e),{matches:i}=C.useContext(tt),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;It(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
9
10Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=ut(),d;if(t){let e=typeof t==`string`?ae(t):t;E(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):se(e,{pathname:p});D(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),D(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=wt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Pe([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Pe([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?C.createElement(et.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function vt(){let e=Nt(),t=Be(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=C.createElement(C.Fragment,null,C.createElement(`p`,null,`💿 Hey developer 👋`),C.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,C.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,C.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),C.createElement(C.Fragment,null,C.createElement(`h2`,null,`Unexpected Application 
10Error!`),C.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?C.createElement(`pre`,{style:i},n):null,o)}var yt=C.createElement(vt,null),bt=class extends C.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=st(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:C.createElement(tt.Provider,{value:this.props.routeContext},C.createElement(nt.Provider,{value:e,children:this.props.component}));return this.context?C.createElement(St,{error:e},t):t}};bt.contextType=Je;var xt=new WeakMap;function St({children:e,error:t}){let{basename:n}=C.useContext($e);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=ot(t.digest);if(e){let r=xt.get(t);if(r)throw r;let i=Ue(e.location,n);if(He&&!xt.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw xt.set(t,n),n}return C.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Ct({routeContext:e,match:t,children:n}){let r=C.useContext(Ke);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(tt.Provider,{value:e},n)}function wt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);E(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ve(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||yt,o&&(s<0&&c===0?(It(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?C.createElement(n.route.Component,null):n.route.element?n.route.element:e,C.createElement(Ct,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?C.createElement(bt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Tt(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Et(e){let t=C.useContext(Ke);return E(t,Tt(e)),t}function Dt(e){let t=C.useContext(qe);return E(t,Tt(e)),t}function Ot(e){let t=C.useContext(tt);return E(t,Tt(e)),t}function kt(e){let t=Ot(e),n=t.matches[t.matches.length-1];return E(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function At(){return kt(`useRouteId`)}function jt(){let e=Dt(`useNavigation`);return C.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Mt(){let{matches:e,loaderData:t}=Dt(`useMatches`);return C.useMemo(()=>e.map(e=>ce(e,t)),[e,t])}function Nt(){let e=C.useContext(nt),t=Dt(`useRouteError`),n=kt(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Pt(){let{router:e}=Et(`useNavigate`),t=kt(`useNavigate`),n=C.useRef(!1);return ft(()=>{n.current=!0}
10),C.useCallback(async(r,i={})=>{D(n.current,dt),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Ft={};function It(e,t,n){!t&&!Ft[e]&&(Ft[e]=!0,D(!1,n))}C.memo(Lt);function Lt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return _t(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Rt({to:e,replace:t,state:n,relative:r}){E(lt(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=C.useContext($e);D(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=C.useContext(tt),{pathname:o}=ut(),s=pt(),c=Me(e,je(a),o,r===`path`),l=JSON.stringify(c);return C.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function j(e){E(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function zt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){E(!lt(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=C.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ae(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=C.useMemo(()=>{let e=Te(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return D(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:C.createElement($e.Provider,{value:c},C.createElement(et.Provider,{children:t,value:h}))}function Bt({children:e,location:t}){return gt(Vt(e),t)}C.Component;function Vt(e,t=[]){let n=[];return C.Children.forEach(e,(e,r)=>{if(!C.isValidElement(e))return;let i=[...t,r];if(e.type===C.Fragment){n.push.apply(n,Vt(e.props.children,i));return}E(e.type===j,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),E(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Vt(e.props.children,i)),n.push(a)}),n}var Ht=`get`,Ut=`application/x-www-form-urlencoded`;function Wt(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Gt(e){return Wt(e)&&e.tagName.toLowerCase()===`button`}function Kt(e){return Wt(e)&&e.tagName.toLowerCase()===`form`}function qt(e){return Wt(e)&&e.tagName.toLowerCase()===`input`}function Jt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Yt(e,t){return e.button===0&&(!t||t===`_self`)&&!Jt(e)}function M(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Xt(e,t){let n=M(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Zt=null;function Qt(){if(Zt===null)try{new FormData(document.createElement(`form`),0),Zt=!1}catch{Zt=!0}return Zt}var $t=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function en(e){return e!=null&&!$t.has(e)?(D(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ut}"`),null):e}function tn(e,t){let n,r,i,a,o;if(Kt(e)){let o=e.getAttribute(`action`);r=o?Te(o,t):null,n=e.getAttribute(`method`)||Ht,i=en(e.getAttribute(`enctype`))||Ut,a=new FormData(e)}else if(Gt(e)||qt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Te(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Ht,i=en(e.getAttribute(`formenctype`))||en(o.getAttribute(`enctype`))||Ut,a=new FormData(o,e),!Qt()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Wt(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Ht,r=null,i=Ut,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var nn={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},rn=/[&><\u2028\u2029]/g;function an(e){return e.replace(rn,e=>nn[e])}function on(e,t){if(e===!1||e==null)throw Error(t)}function sn(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>
10`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Te(i.pathname,t)===`/`?i.pathname=`${Fe(t)}/_root.${r}`:i.pathname=`${Fe(i.pathname)}.${r}`,i}async function cn(e,t){if(e.id in t)return t[e.id];try{let n=await S(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ln(e){return e!=null&&typeof e.page==`string`}function un(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function dn(e,t,n){return gn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await cn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(un).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function fn(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function pn(e,t,{includeHydrateFallback:n}={}){return mn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function mn(e){return[...new Set(e)]}function hn(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function gn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!ln(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(hn(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function _n(){let e=C.useContext(Ke);return on(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function vn(){let e=C.useContext(qe);return on(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var yn=C.createContext(void 0);yn.displayName=`FrameworkContext`;function bn(){let e=C.useContext(yn);return on(e,`You must render this element inside a <HydratedRouter> element`),e}function xn(e,t){let n=C.useContext(yn),[r,i]=C.useState(!1),[a,o]=C.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=C.useRef(null);C.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),C.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Sn(s,p),onBlur:Sn(c,m),onMouseEnter:Sn(l,p),onMouseLeave:Sn(u,m),onTouchStart:Sn(d,p)}]:[a,f,{}]:[!1,f,{}]}function Sn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Cn({page:e,...t}){let n=Ye(),{router:r}=_n(),i=C.useMemo(()=>se(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?C.createElement(Tn,{page:e,matches:i,...t}):C.createElement(En,{page:e,matches:i,...t}):null}function wn(e){let{manifest:t,routeModules:n}=bn(),[r,i]=C.useState([]);return C.useEffect(()=>{let r=!1;return dn(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Tn({page:e,matches:t,...n}){let r=ut(),{future:i}=bn(),{basename:a}=_n(),o=C.useMemo(()=>
10{if(e===r.pathname+r.search+r.hash)return[];let n=sn(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return C.createElement(C.Fragment,null,o.map(e=>C.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function En({page:e,matches:t,...n}){let r=ut(),{future:i,manifest:a,routeModules:o}=bn(),{basename:s}=_n(),{loaderData:c,matches:l}=vn(),u=C.useMemo(()=>fn(e,t,l,a,r,`data`),[e,t,l,a,r]),d=C.useMemo(()=>fn(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=sn(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=C.useMemo(()=>pn(d,a),[d,a]),m=wn(d);return C.createElement(C.Fragment,null,f.map(e=>C.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>C.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>C.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Dn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}C.Component;var On=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{On&&(window.__reactRouterVersion=`7.17.0`)}catch{}function kn({basename:e,children:t,useTransitions:n,window:r}){let i=C.useRef();i.current??=ee({window:r,v5Compat:!0});let a=i.current,[o,s]=C.useState({action:a.action,location:a.location}),c=C.useCallback(e=>{n===!1?s(e):C.startTransition(()=>s(e))},[n]);return C.useLayoutEffect(()=>a.listen(c),[a,c]),C.createElement(zt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function An({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=C.useState({action:n.action,location:n.location}),o=C.useCallback(e=>{r===!1?a(e):C.startTransition(()=>a(e))},[r]);return C.useLayoutEffect(()=>n.listen(o),[n,o]),C.createElement(zt,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}An.displayName=`unstable_HistoryRouter`;var jn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mn=C.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=C.useContext($e),v=typeof l==`string`&&jn.test(l),y=Ue(l,h);l=y.to;let b=ct(l,{relative:r}),x=ut(),S=null;if(o){let e=Me(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Pe([h,e.pathname])),S=g.createHref(e)}let[w,T,ee]=xn(n,p),E=zn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let te=!(y.isExternal||i),ne=C.createElement(`a`,{...p,...ee,href:(te?S:void 0)||y.absoluteURL||b,onClick:te?D:e,ref:Dn(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?C.createElement(C.Fragment,null,ne,C.createElement(Cn,{page:b})):ne});Mn.displayName=`Link`;var Nn=C.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=ht(a,{relative:c.relative}),d=ut(),f=C.useContext(qe),{navigator:p,basename:m}=C.useContext($e),h=f!=null&&Xn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Te(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(
10Boolean).join(` `);let ee=typeof i==`function`?i(S):i;return C.createElement(Mn,{...c,"aria-current":w,className:T,ref:l,style:ee,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Nn.displayName=`NavLink`;var Pn=C.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Ht,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=C.useContext($e),g=Un(),_=Wn(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&jn.test(s);return C.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?C.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Pn.displayName=`Form`;function Fn({getKey:e,storageKey:t,...n}){let r=C.useContext(yn),{basename:i}=C.useContext($e),a=ut(),o=Mt();Jn({getKey:e,storageKey:t});let s=C.useMemo(()=>{if(!r||!e)return null;let t=qn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];
10typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return C.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${an(JSON.stringify(t||Gn))}, ${an(JSON.stringify(s))})`}})}Fn.displayName=`ScrollRestoration`;function In(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ln(e){let t=C.useContext(Ke);return E(t,In(e)),t}function Rn(e){let t=C.useContext(qe);return E(t,In(e)),t}function zn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=pt(),d=ut(),f=ht(e,{relative:o});return C.useCallback(p=>{if(Yt(p,t)){p.preventDefault();let t=n===void 0?ie(d)===ie(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?C.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Bn(e){D(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=C.useRef(M(e)),n=C.useRef(!1),r=ut(),i=C.useMemo(()=>Xt(r.search,n.current?null:t.current),[r.search]),a=pt();return[i,C.useCallback((e,t)=>{let r=M(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Vn=0,Hn=()=>`__${String(++Vn)}__`;function Un(){let{router:e}=Ln(`useSubmit`),{basename:t}=C.useContext($e),n=At(),r=e.fetch,i=e.navigate;return C.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=tn(e,t);a.navigate===!1?await r(a.fetcherKey||Hn(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Wn(e,{relative:t}={}){let{basename:n}=C.useContext($e),r=C.useContext(tt);E(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...ht(e||`.`,{relative:t})},o=ut();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Pe([n,a.pathname])),ie(a)}var Gn=`react-router-scroll-positions`,Kn={};function qn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Te(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Jn({getKey:e,storageKey:t}={}){let{router:n}=Ln(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Rn(`useScrollRestoration`),{basename:a}=C.useContext($e),o=ut(),s=Mt(),c=jt();C.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Yn(C.useCallback(()=>{if(c.state===`idle`){let t=qn(o,s,a,e);Kn[t]=window.scrollY}try{sessionStorage.setItem(t||Gn,JSON.stringify(Kn))}catch(e){D(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(C.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Gn);e&&(Kn=JSON.parse(e))}catch{}},[t]),C.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Kn,()=>window.scrollY,e?(t,n)=>qn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),C.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{D(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Yn(e,t){let{capture:n}=t||{};C.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Xn(e,{relative:t}={}){let n=C.useContext(Xe);E(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ln(`useViewTransitionState`),i=ht(e,{relative:t});if(!n.isTransitioning)return!1;let a=Te(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Te(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Se(i.pathname,o)!=null||Se(i.pathname,a)!=null}var Zn=s(((e,t)=>{var n=typeof Element<`u`,r=typeof Map==`function`,i=typeof Set==`function`,a=typeof ArrayBuffer==`function`&&!!ArrayBuffer.isView;function o(e,t){if(e===t)return!0;
10if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var s,c,l;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(!o(e[c],t[c]))return!1;return!0}var u;if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],t.get(c.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf==`function`&&typeof t.valueOf==`function`)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString==`function`&&typeof t.toString==`function`)return e.toString()===t.toString();if(l=Object.keys(e),s=l.length,s!==Object.keys(t).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[c]))return!1;if(n&&e instanceof Element)return!1;for(c=s;c--!==0;)if(!((l[c]===`_owner`||l[c]===`__v`||l[c]===`__o`)&&e.$$typeof)&&!o(e[l[c]],t[l[c]]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||``).match(/stack|recursion/i))return console.warn(`react-fast-compare cannot handle circular refs`),!1;throw e}}})),Qn=s(((e,t)=>{t.exports=function(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}})),$n=s(((e,t)=>{t.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(i=n?n.call(r,u,d,l):void 0,i===!1||i===void 0&&u!==d)return!1}return!0}})),er=v(),tr=u(Zn()),nr=u(Qn()),rr=u($n()),ir=(e=>(e.BASE=`base`,e.BODY=`body`,e.HEAD=`head`,e.HTML=`html`,e.LINK=`link`,e.META=`meta`,e.NOSCRIPT=`noscript`,e.SCRIPT=`script`,e.STYLE=`style`,e.TITLE=`title`,e.FRAGMENT=`Symbol(react.fragment)`,e))(ir||{}),ar={link:{rel:[`amphtml`,`canonical`,`alternate`]},script:{type:[`application/ld+json`]},meta:{charset:``,name:[`generator`,`robots`,`description`],property:[`og:type`,`og:title`,`og:url`,`og:image`,`og:image:alt`,`og:description`,`twitter:url`,`twitter:title`,`twitter:description`,`twitter:image`,`twitter:image:alt`,`twitter:card`,`twitter:site`]}},or=Object.values(ir),sr={accesskey:`accessKey`,charset:`charSet`,class:`className`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,"http-equiv":`httpEquiv`,itemprop:`itemProp`,tabindex:`tabIndex`},cr=Object.entries(sr).reduce((e,[t,n])=>(e[n]=t,e),{}),lr=`data-rh`,ur={DEFAULT_TITLE:`defaultTitle`,DEFER:`defer`,ENCODE_SPECIAL_CHARACTERS:`encodeSpecialCharacters`,ON_CHANGE_CLIENT_STATE:`onChangeClientState`,TITLE_TEMPLATE:`titleTemplate`,PRIORITIZE_SEO_TAGS:`prioritizeSeoTags`},dr=(e,t)=>{for(let n=e.length-1;n>=0;--n){let r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},fr=e=>{let t=dr(e,`title`),n=dr(e,ur.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join(``)),n&&t)return n.replace(/%s/g,()=>t);let r=dr(e,ur.DEFAULT_TITLE);return t||r||void 0},pr=e=>dr(e,ur.ON_CHANGE_CLIENT_STATE)||(()=>{}),mr=(e,t)=>t.filter(t=>t[e]!==void 0).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),hr=(e,t)=>t.filter(e=>e.base!==void 0).map(e=>e.base).reverse().reduce((t,n)=>{if(!t.length){let r=Object.keys(n);for(let i=0;i<r.length;i+=1){let a=r[i].toLowerCase();if(e.indexOf(a)!==-1&&n[a])return t.concat(n)}}return t},[]),gr=e=>console&&typeof console.warn==`function`&&console.warn(e),_r=(e,t,n)=>{let r={};return n.filter(t=>Array.isArray(t[e])?!0:(t[e]!==void 0&&gr(`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`),!1)).map(t=>t[e]).reverse().reduce((e,n)=>{let i={};n.filter(e=>{let n,a=Object.keys(e);for(let r=0;r<a.length;r+=1){let i=a[r],o=i.toLowerCase();t.indexOf(o)!==-1&&!(n===`rel`&&e[n].toLowerCase()===`canonical`)&&!(o===`rel`&&e[o].toLowerCase()===`stylesheet`)&&(n=o),t.indexOf(i)!==-1&&(i===`innerHTML`||i===`cssText`||i===`itemprop`)&&(n=i)}if(!n||!e[n])return!1;let o=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),r[n][o]?!1:(i[n][o]=!0,!0)}
10).reverse().forEach(t=>e.push(t));let a=Object.keys(i);for(let e=0;e<a.length;e+=1){let t=a[e];r[t]={...r[t],...i[t]}}return e},[]).reverse()},vr=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},yr=e=>({baseTag:hr([`href`],e),bodyAttributes:mr(`bodyAttributes`,e),defer:dr(e,ur.DEFER),encode:dr(e,ur.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:mr(`htmlAttributes`,e),linkTags:_r(`link`,[`rel`,`href`],e),metaTags:_r(`meta`,[`name`,`charset`,`http-equiv`,`property`,`itemprop`],e),noscriptTags:_r(`noscript`,[`innerHTML`],e),onChangeClientState:pr(e),scriptTags:_r(`script`,[`src`,`innerHTML`],e),styleTags:_r(`style`,[`cssText`],e),title:fr(e),titleAttributes:mr(`titleAttributes`,e),prioritizeSeoTags:vr(e,ur.PRIORITIZE_SEO_TAGS)}),br=e=>Array.isArray(e)?e.join(``):e,xr=(e,t)=>{let n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Sr=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>(xr(n,t)?e.priority.push(n):e.default.push(n),e),{priority:[],default:[]}):{default:e,priority:[]},Cr=(e,t)=>({...e,[t]:void 0}),wr=[`noscript`,`script`,`style`],Tr=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`),Er=e=>Object.keys(e).reduce((t,n)=>{let r=e[n]===void 0?`${n}`:`${n}="${e[n]}"`;return t?`${t} ${r}`:r},``),Dr=(e,t,n,r)=>{let i=Er(n),a=br(t);return i?`<${e} ${lr}="true" ${i}>${Tr(a,r)}</${e}>`:`<${e} ${lr}="true">${Tr(a,r)}</${e}>`},Or=(e,t,n=!0)=>t.reduce((t,r)=>{let i=r,a=Object.keys(i).filter(e=>!(e===`innerHTML`||e===`cssText`)).reduce((e,t)=>{let r=i[t]===void 0?t:`${t}="${Tr(i[t],n)}"`;return e?`${e} ${r}`:r},``),o=i.innerHTML||i.cssText||``;return`${t}<${e} ${lr}="true" ${a}${wr.indexOf(e)===-1?`/>`:`>${o}</${e}>`}`},``),kr=(e,t={})=>Object.keys(e).reduce((t,n)=>{let r=sr[n];return t[r||n]=e[n],t},t),Ar=(e,t,n)=>{let r=kr(n,{key:t,[lr]:!0});return[C.createElement(`title`,r,t)]},jr=(e,t)=>t.map((t,n)=>{let r={key:n,[lr]:!0};return Object.keys(t).forEach(e=>{let n=sr[e]||e;n===`innerHTML`||n===`cssText`?r.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:r[n]=t[e]}),C.createElement(e,r)}),Mr=(e,t,n=!0)=>{switch(e){case`title`:return{toComponent:()=>Ar(e,t.title,t.titleAttributes),toString:()=>Dr(e,t.title,t.titleAttributes,n)};case`bodyAttributes`:case`htmlAttributes`:return{toComponent:()=>kr(t),toString:()=>Er(t)};default:return{toComponent:()=>jr(e,t),toString:()=>Or(e,t,n)}}},Nr=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{let i=Sr(e,ar.meta),a=Sr(t,ar.link),o=Sr(n,ar.script);return{priorityMethods:{toComponent:()=>[...jr(`meta`,i.priority),...jr(`link`,a.priority),...jr(`script`,o.priority)],toString:()=>`${Mr(`meta`,i.priority,r)} ${Mr(`link`,a.priority,r)} ${Mr(`script`,o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},Pr=e=>{let{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s=``,titleAttributes:c,prioritizeSeoTags:l}=e,{linkTags:u,metaTags:d,scriptTags:f}=e,p={toComponent:()=>{},toString:()=>``};return l&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=Nr(e)),{priority:p,base:Mr(`base`,t,r),bodyAttributes:Mr(`bodyAttributes`,n,r),htmlAttributes:Mr(`htmlAttributes`,i,r),link:Mr(`link`,u,r),meta:Mr(`meta`,d,r),noscript:Mr(`noscript`,a,r),script:Mr(`script`,f,r),style:Mr(`style`,o,r),title:Mr(`title`,{title:s,titleAttributes:c},r)}},Fr=[],Ir=!!(typeof window<`u`&&window.document&&window.document.createElement),Lr=class{instances=[];canUseDOM=Ir;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Fr:this.instances,add:e=>{(this.canUseDOM?Fr:this.instances).push(e)},remove:e=>{let t=(this.canUseDOM?Fr:this.instances).indexOf(e);(this.canUseDOM?Fr:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Pr({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:``,titleAttributes:{}}))}},Rr=C.createContext({}),zr=class e extends C.Component{static canUseDOM=Ir;helmetData;constructor(t){super(t),this.helmetData=new Lr(this.props.context||{},e.canUseDOM)}render(){return C.createElement(Rr.Provider,{value:this.helmetData.value},this.props.children)}},Br=(e,t)=>
10{let n=document.head||document.querySelector(`head`),r=n.querySelectorAll(`${e}[${lr}]`),i=[].slice.call(r),a=[],o;return t&&t.length&&t.forEach(t=>{let n=document.createElement(e);for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))if(e===`innerHTML`)n.innerHTML=t.innerHTML;else if(e===`cssText`)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{let r=e,i=t[r]===void 0?``:t[r];n.setAttribute(e,i)}n.setAttribute(lr,`true`),i.some((e,t)=>(o=t,n.isEqualNode(e)))?i.splice(o,1):a.push(n)}),i.forEach(e=>e.parentNode?.removeChild(e)),a.forEach(e=>n.appendChild(e)),{oldTags:i,newTags:a}},Vr=(e,t)=>{let n=document.getElementsByTagName(e)[0];if(!n)return;let r=n.getAttribute(lr),i=r?r.split(`,`):[],a=[...i],o=Object.keys(t);for(let e of o){let r=t[e]||``;n.getAttribute(e)!==r&&n.setAttribute(e,r),i.indexOf(e)===-1&&i.push(e);let o=a.indexOf(e);o!==-1&&a.splice(o,1)}for(let e=a.length-1;e>=0;--e)n.removeAttribute(a[e]);i.length===a.length?n.removeAttribute(lr):n.getAttribute(lr)!==o.join(`,`)&&n.setAttribute(lr,o.join(`,`))},Hr=(e,t)=>{e!==void 0&&document.title!==e&&(document.title=br(e)),Vr(`title`,t)},Ur=(e,t)=>{let{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:c,scriptTags:l,styleTags:u,title:d,titleAttributes:f}=e;Vr(`body`,r),Vr(`html`,i),Hr(d,f);let p={baseTag:Br(`base`,n),linkTags:Br(`link`,a),metaTags:Br(`meta`,o),noscriptTags:Br(`noscript`,s),scriptTags:Br(`script`,l),styleTags:Br(`style`,u)},m={},h={};Object.keys(p).forEach(e=>{let{newTags:t,oldTags:n}=p[e];t.length&&(m[e]=t),n.length&&(h[e]=p[e].oldTags)}),t&&t(),c(e,m,h)},Wr=null,Gr=e=>{Wr&&cancelAnimationFrame(Wr),e.defer?Wr=requestAnimationFrame(()=>{Ur(e,()=>{Wr=null})}):(Ur(e),Wr=null)},Kr=class extends C.Component{rendered=!1;shouldComponentUpdate(e){return!(0,rr.default)(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){let{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){let{helmetInstances:e,setHelmet:t}=this.props.context,n=null,r=yr(e.get().map(e=>{let t={...e.props};return delete t.context,t}));zr.canUseDOM?Gr(r):Pr&&(n=Pr(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;let{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},qr=class extends C.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!(0,tr.default)(Cr(this.props,`helmetData`),Cr(e,`helmetData`))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case`script`:case`noscript`:return{innerHTML:t};case`style`:return{cssText:t};default:throw Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case`title`:return{...t,[e.type]:r,titleAttributes:{...n}};case`body`:return{...t,bodyAttributes:{...n}};case`html`:return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(t=>{n={...n,[t]:e[t]}}),n}warnOnInvalidChildren(e,t){return(0,nr.default)(or.some(t=>e.type===t),typeof e.type==`function`?`You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.`:`Only elements types ${or.join(`, `)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),(0,nr.default)(!t||typeof t==`string`||Array.isArray(t)&&!t.some(e=>typeof e!=`string`),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return C.Children.forEach(e,e=>{if(!e||!e.props)return;let{children:r,...i}=e.props,a=Object.keys(i).reduce((e,t)=>(e[cr[t]||t]=i[t],e),{}),{type:o}=e;
10switch(typeof o==`symbol`?o=o.toString():this.warnOnInvalidChildren(e,r),o){case`Symbol(react.fragment)`:t=this.mapChildrenToProps(r,t);break;case`link`:case`meta`:case`noscript`:case`script`:case`style`:n=this.flattenArrayTypeChildren(e,n,a,r);break;default:t=this.mapObjectTypeChildren(e,t,a,r);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){let{children:e,...t}=this.props,n={...t},{helmetData:r}=t;return e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Lr)&&(r=new Lr(r.context,!0),delete n.helmetData),r?C.createElement(Kr,{...n,context:r.value}):C.createElement(Rr.Consumer,null,e=>C.createElement(Kr,{...n,context:e}))}},Jr=s((e=>{var t=p(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),Yr=s(((e,t)=>{t.exports=Jr()})),Xr=(0,C.createContext)({});function Zr(e){let t=(0,C.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Qr=typeof window<`u`,$r=Qr?C.useLayoutEffect:C.useEffect,ei=(0,C.createContext)(null);function ti(e,t){e.indexOf(t)===-1&&e.push(t)}function ni(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var ri=(e,t,n)=>n>t?t:n<e?e:n,ii={},ai=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function oi(e){return typeof e==`object`&&!!e}var si=e=>/^0[^.\s]+$/u.test(e);function ci(e){let t;return()=>(t===void 0&&(t=e()),t)}var li=e=>e,ui=(e,t)=>n=>t(e(n)),di=(...e)=>e.reduce(ui),fi=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},pi=class{constructor(){this.subscriptions=[]}add(e){return ti(this.subscriptions,e),()=>ni(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},mi=e=>e*1e3,hi=e=>e/1e3;function gi(e,t){return t?1e3/t*e:0}var _i=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,vi=1e-7,yi=12;function bi(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=_i(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>vi&&++s<yi);return o}function xi(e,t,n,r){if(e===t&&n===r)return li;let i=t=>bi(t,0,1,e,n);return e=>e===0||e===1?e:_i(i(e),t,r)}var Si=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ci=e=>t=>1-e(1-t),wi=xi(.33,1.53,.69,.99),Ti=Ci(wi),Ei=Si(Ti),Di=e=>(e*=2)<1?.5*Ti(e):.5*(2-2**(-10*(e-1))),Oi=e=>1-Math.sin(Math.acos(e)),ki=Ci(Oi),Ai=Si(Oi),ji=xi(.42,0,1,1),Mi=xi(0,0,.58,1),Ni=xi(.42,0,.58,1),Pi=e=>Array.isArray(e)&&typeof e[0]!=`number`,Fi=e=>Array.isArray(e)&&typeof e[0]==`number`,Ii={linear:li,easeIn:ji,easeInOut:Ni,easeOut:Mi,circIn:Oi,circInOut:Ai,circOut:ki,backIn:Ti,backInOut:Ei,backOut:wi,anticipate:Di},Li=e=>typeof e==`string`,Ri=e=>{if(Fi(e)){e.length;let[t,n,r,i]=e;return xi(t,n,r,i)}else if(Li(e))return Ii[e],`${e}`,Ii[e];return e},zi=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Bi={value:null,addProjectionMetrics:null};function Vi(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&Bi.value&&Bi.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Hi=40;function Ui(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=zi.reduce((e,n)=>(e[n]=Vi(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=ii.useManualTiming?i.timestamp:performance.now();n=!1,ii.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,Hi),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:zi.reduce((e,t)=>
10{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<zi.length;t++)o[zi[t]].cancel(e)},state:i,steps:o}}var{schedule:N,cancel:Wi,state:Gi,steps:Ki}=Ui(typeof requestAnimationFrame<`u`?requestAnimationFrame:li,!0),qi;function Ji(){qi=void 0}var Yi={now:()=>(qi===void 0&&Yi.set(Gi.isProcessing||ii.useManualTiming?Gi.timestamp:performance.now()),qi),set:e=>{qi=e,queueMicrotask(Ji)}},Xi={layout:0,mainThread:0,waapi:0},Zi=e=>t=>typeof t==`string`&&t.startsWith(e),Qi=Zi(`--`),$i=Zi(`var(--`),ea=e=>$i(e)?ta.test(e.split(`/*`)[0].trim()):!1,ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,P={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},na={...P,transform:e=>ri(0,1,e)},ra={...P,default:1},ia=e=>Math.round(e*1e5)/1e5,aa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function oa(e){return e==null}var sa=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ca=(e,t)=>n=>!!(typeof n==`string`&&sa.test(n)&&n.startsWith(e)||t&&!oa(n)&&Object.prototype.hasOwnProperty.call(n,t)),la=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(aa);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ua=e=>ri(0,255,e),da={...P,transform:e=>Math.round(ua(e))},fa={test:ca(`rgb`,`red`),parse:la(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+da.transform(e)+`, `+da.transform(t)+`, `+da.transform(n)+`, `+ia(na.transform(r))+`)`};function pa(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var ma={test:ca(`#`),parse:pa,transform:fa.transform},ha=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ga=ha(`deg`),_a=ha(`%`),F=ha(`px`),va=ha(`vh`),ya=ha(`vw`),ba={..._a,parse:e=>_a.parse(e)/100,transform:e=>_a.transform(e*100)},xa={test:ca(`hsl`,`hue`),parse:la(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+_a.transform(ia(t))+`, `+_a.transform(ia(n))+`, `+ia(na.transform(r))+`)`},I={test:e=>fa.test(e)||ma.test(e)||xa.test(e),parse:e=>fa.test(e)?fa.parse(e):xa.test(e)?xa.parse(e):ma.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?fa.transform(e):xa.transform(e),getAnimatableNone:e=>{let t=I.parse(e);return t.alpha=0,I.transform(t)}},Sa=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ca(e){return isNaN(e)&&typeof e==`string`&&(e.match(aa)?.length||0)+(e.match(Sa)?.length||0)>0}var wa=`number`,Ta=`color`,Ea=`var`,Da=`var(`,Oa="${}",ka=/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 Aa(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ka,e=>(I.test(e)?(r.color.push(a),i.push(Ta),n.push(I.parse(e))):e.startsWith(Da)?(r.var.push(a),i.push(Ea),n.push(e)):(r.number.push(a),i.push(wa),n.push(parseFloat(e))),++a,Oa)).split(Oa),indexes:r,types:i}}function ja(e){return Aa(e).values}function Ma(e){let{split:t,types:n}=Aa(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===wa?i+=ia(e[a]):t===Ta?i+=I.transform(e[a]):i+=e[a]}return i}}var Na=e=>typeof e==`number`?0:I.test(e)?I.getAnimatableNone(e):e;function Pa(e){let t=ja(e);return Ma(e)(t.map(Na))}var Fa={test:Ca,parse:ja,createTransformer:Ma,getAnimatableNone:Pa};function Ia(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function La({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Ia(s,r,e+1/3),a=Ia(s,r,e),o=Ia(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ra(e,t){return n=>n>0?t:e}var za=(e,t,n)=>e+(t-e)*n,Ba=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Va=[ma,fa,xa],Ha=e=>Va.find(t=>t.test(e));function Ua(e){let t=Ha(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===xa&&(n=La(n)),n}var Wa=(e,t)=>{let n=Ua(e),r=Ua(t);if(!n||!r)return Ra(e,t);let i={...n};return e=>(i.red=Ba(n.red,r.red,e),i.green=Ba(n.green,r.green,e),i.blue=Ba(n.blue,r.blue,e),i.alpha=za(n.alpha,r.alpha,e),fa.transform(i))},Ga=new Set([`none`,`hidden`]);function Ka(e,t){return Ga.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function qa(e,t){return n=>za(e,t,n)}function Ja(e){return typeof e==`number`?qa:typeof e==`string`?ea(e)?Ra:I.test(e)?Wa:Qa:Array.isArray(e)?Ya:typeof e==`object`?I.test(e)?Wa:Xa:Ra}function Ya(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Ja(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Xa(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ja(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Za(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Qa=(e,t)=>{let n=Fa.createTransformer(t),r=Aa(e),i=Aa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ga.has(e)&&!i.values.length||Ga.has(t)&&!r.values.length?Ka(e,t):di(Ya(Za(r,i),i.values),n):(`${e}${t}`,Ra(e,t))};function $a(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`
10number`?za(e,t,n):Ja(e)(e,t)}var eo=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>N.update(t,e),stop:()=>Wi(t),now:()=>Gi.isProcessing?Gi.timestamp:Yi.now()}},to=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},no=2e4;function ro(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function io(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(ro(r),no);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:hi(i)}}var ao=5;function oo(e,t,n){let r=Math.max(t-ao,0);return gi(n-e(r),t-r)}var so={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},co=.001;function lo({duration:e=so.duration,bounce:t=so.bounce,velocity:n=so.velocity,mass:r=so.mass}){let i,a;so.maxDuration;let o=1-t;o=ri(so.minDamping,so.maxDamping,o),e=ri(so.minDuration,so.maxDuration,hi(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=po(t,o),c=Math.exp(-i);return co-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=po(t**2,o);return(-i(t)+co>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=fo(i,a,s);if(e=mi(e),isNaN(c))return{stiffness:so.stiffness,damping:so.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var uo=12;function fo(e,t,n){let r=n;for(let n=1;n<uo;n++)r-=e(r)/t(r);return r}function po(e,t){return e*Math.sqrt(1-t*t)}var mo=[`duration`,`bounce`],ho=[`stiffness`,`damping`,`mass`];function go(e,t){return t.some(t=>e[t]!==void 0)}function _o(e){let t={velocity:so.velocity,stiffness:so.stiffness,damping:so.damping,mass:so.mass,isResolvedFromDuration:!1,...e};if(!go(e,ho)&&go(e,mo))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*ri(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:so.mass,stiffness:i,damping:a}}else{let n=lo(e);t={...t,...n,mass:so.mass},t.isResolvedFromDuration=!0}return t}function vo(e=so.visualDuration,t=so.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=_o({...n,velocity:-hi(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=hi(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?so.restSpeed.granular:so.restSpeed.default,i||=v?so.restDelta.granular:so.restDelta.default;let y;if(h<1){let e=po(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?mi(m):oo(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(ro(b),no),t=to(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}vo.applyToOptions=e=>{let t=io(e,100,vo);return e.ease=t.ease,e.duration=mi(t.duration),e.type=`keyframes`,e};function yo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=vo({keyframes:[f.value,m(f.value)],velocity:oo(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function bo(e,t,n){let r=[],i=n||ii.mix||$a,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=di(Array.isArray(t)?t[n]||li:t,a)),r.push(a)}return r}function xo(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=bo(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=fi(e[r],e[r+1],n);return s[r](i)};return n?t=>l(ri(e[0],e[a-1],t)):l}function So(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=fi(0,t,r);e.push(za(n,1,i))}}function Co(e){let t=[0];return So(t,e.length-1),t}function wo(e,t){return e.map(e=>e*t)}function To(e,t){return e.map(()=>t||Ni).splice(0,e.length-1)}function Eo({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Pi(r)?r.map(Ri):Ri(r),a={done:!1,value:t[0]},o=xo(wo(n&&n.length===t.length?n:Co(t),e),t,{ease:Array.isArray(i)?i:To(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Do=e=>e!==null;function Oo(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Do),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var ko={decay:yo,inertia:yo,tween:Eo,keyframes:Eo,spring:vo};function Ao(e){typeof e.type==`string`&&(e.type=ko[e.type])}var jo=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Mo=e=>e/100,No=class extends jo{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Yi.now()&&this.tick(Yi.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Xi.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Ao(e);let{type:t=Eo,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Eo;s!==Eo&&typeof o[0]!=`number`&&(this.mixKeyframes=di(Mo,$a(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=ro(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=ri(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);
10i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==yo&&(b.value=Oo(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return hi(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+hi(e)}get time(){return hi(this.currentTime)}set time(e){e=mi(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Yi.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=hi(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=eo,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(Yi.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,Xi.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Po(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var L=e=>e*180/Math.PI,Fo=e=>Lo(L(Math.atan2(e[1],e[0]))),Io={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Fo,rotateZ:Fo,skewX:e=>L(Math.atan(e[1])),skewY:e=>L(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Lo=e=>(e%=360,e<0&&(e+=360),e),Ro=Fo,zo=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bo=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Vo={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zo,scaleY:Bo,scale:e=>(zo(e)+Bo(e))/2,rotateX:e=>Lo(L(Math.atan2(e[6],e[5]))),rotateY:e=>Lo(L(Math.atan2(-e[2],e[0]))),rotateZ:Ro,rotate:Ro,skewX:e=>L(Math.atan(e[4])),skewY:e=>L(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ho(e){return+!!e.includes(`scale`)}function Uo(e,t){if(!e||e===`none`)return Ho(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Vo,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Io,i=t}if(!i)return Ho(t);let a=r[t],o=i[1].split(`,`).map(Go);return typeof a==`function`?a(o):o[a]}var Wo=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Uo(n,t)};function Go(e){return parseFloat(e.trim())}var Ko=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],qo=new Set(Ko),Jo=e=>e===P||e===F,Yo=new Set([`x`,`y`,`z`]),Xo=Ko.filter(e=>!Yo.has(e));function Zo(e){let t=[];return Xo.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Qo={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Uo(t,`x`),y:(e,{transform:t})=>Uo(t,`y`)};Qo.translateX=Qo.x,Qo.translateY=Qo.y;var $o=new Set,es=!1,ts=!1,ns=!1;function rs(){if(ts){let e=Array.from($o).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
10t.forEach(e=>{let t=Zo(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}ts=!1,es=!1,$o.forEach(e=>e.complete(ns)),$o.clear()}function is(){$o.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ts=!0)})}function as(){ns=!0,is(),rs(),ns=!1}var os=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?($o.add(this),es||(es=!0,N.read(is),N.resolveKeyframes(rs))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Po(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),$o.delete(this)}cancel(){this.state===`scheduled`&&($o.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ss=e=>e.startsWith(`--`);function cs(e,t,n){ss(t)?e.style.setProperty(t,n):e.style[t]=n}var ls=ci(()=>window.ScrollTimeline!==void 0),us={};function ds(e,t){let n=ci(e);return()=>us[t]??n()}var fs=ds(()=>{try{document.createElement(`div`).animate({opacity:0}
10,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ps=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ms={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ps([0,.65,.55,1]),circOut:ps([.55,0,1,.45]),backIn:ps([.31,.01,.66,-.59]),backOut:ps([.33,1.53,.69,.99])};function hs(e,t){if(e)return typeof e==`function`?fs()?to(e,t):`ease-out`:Fi(e)?ps(e):Array.isArray(e)?e.map(e=>hs(e,t)||ms.easeOut):ms[e]}function gs(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=hs(s,i);Array.isArray(d)&&(u.easing=d),Bi.value&&Xi.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Bi.value&&p.finished.finally(()=>{Xi.waapi--}),p}function _s(e){return typeof e==`function`&&`applyToOptions`in e}function vs({type:e,...t}){return _s(e)&&fs()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ys=class extends jo{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=vs(e);this.animation=gs(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Oo(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):cs(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(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;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return hi(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+hi(e)}get time(){return hi(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=mi(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
10inished`}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&ls()?(this.animation.timeline=e,li):t(this)}},bs={anticipate:Di,backInOut:Ei,circInOut:Ai};function xs(e){return e in bs}function Ss(e){typeof e.ease==`string`&&xs(e.ease)&&(e.ease=bs[e.ease])}var Cs=10,ws=class extends ys{constructor(e){Ss(e),Ao(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new No({...a,autoplay:!1}),s=mi(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-Cs).value,o.sample(s).value,Cs),o.stop()}},Ts=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Fa.test(e)||e===`0`)&&!e.startsWith(`url(`));function Es(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ds(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ts(i,t),s=Ts(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Es(e)||(n===`spring`||_s(n))&&r}function Os(e){e.duration=0,e.type=`keyframes`}var ks=new Set([`opacity`,`clipPath`,`filter`,`transform`]),As=ci(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function js(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return As()&&n&&ks.has(n)&&(n!==`transform`||!c)&&!s&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ms=40,Ns=class extends jo{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Yi.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||os;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Yi.now(),Ds(e,i,a,o)||((ii.instantAnimations||!s)&&l?.(Oo(e,n,t)),e[0]=e[e.length-1],Os(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Ms?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!c&&js(u)?new ws({...u,element:u.motionValue.owner.current}):new No(u);d.finished.then(()=>this.notifyFinished()).catch(li),this.pendingTimeline&&=(this.stopTimeline=d.attachTimeline(this.pendingTimeline),void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),as()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},Ps=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fs(e){let t=Ps.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Is(e,t,n=1){`${e}`;let[r,i]=Fs(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ai(e)?parseFloat(e):e}return ea(i)?Is(i,t,n+1):i}function Ls(e,t){return e?.[t]??e?.default??e}var Rs=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Ko]),zs={test:e=>e===`auto`,parse:e=>e},Bs=e=>t=>t.test(e),Vs=[P,F,_a,ga,ya,va,zs],Hs=e=>Vs.find(Bs(e));function Us(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||si(e)}var Ws=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Gs(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(aa)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Ws.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Ks=/\b([a-z-]*)\(.*?\)/gu,qs={...Fa,getAnimatableNone:e=>{let t=e.match(Ks);return t?t.map(Gs).join(` `):e}},Js={...P,transform:Math.round},Ys={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,radius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,backgroundPositionX:F,backgroundPositionY:F,rotate:ga,rotateX:ga,rotateY:ga,rotateZ:ga,scale:ra,scaleX:ra,scaleY:ra,scaleZ:ra,skew:ga,skewX:ga,skewY:ga,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:na,originX:ba,originY:ba,originZ:F,zIndex:Js,fillOpacity:na,strokeOpacity:na,numOctaves:Js},Xs={...Ys,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:qs,WebkitFilter:qs}
10,Zs=e=>Xs[e];function Qs(e,t){let n=Zs(e);return n!==qs&&(n=Fa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var $s=new Set([`auto`,`none`,`0`]);function ec(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!$s.has(t)&&Aa(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Qs(n,i)}var tc=class extends os{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),ea(r))){let i=Is(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Rs.has(n)||e.length!==2)return;let[r,i]=e,a=Hs(r),o=Hs(i);if(a!==o)if(Jo(a)&&Jo(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Qo[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Us(e[t]))&&n.push(t);n.length&&ec(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qo[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Qo[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
10h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function nc(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}var rc=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function ic(e){return oi(e)&&`offsetHeight`in e}var ac=30,oc=e=>!isNaN(parseFloat(e)),sc={current:void 0},cc=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Yi.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Yi.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=oc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new pi);let n=this.events[e].add(t);return e===`change`?()=>{n(),N.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return sc.current&&sc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ac)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ac);return gi(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 lc(e,t){return new cc(e,t)}var{schedule:uc,cancel:dc}=Ui(queueMicrotask,!1),fc={x:!1,y:!1};function pc(){return fc.x||fc.y}function mc(e){return e===`x`||e===`y`?fc[e]?null:(fc[e]=!0,()=>{fc[e]=!1}):fc.x||fc.y?null:(fc.x=fc.y=!0,()=>{fc.x=fc.y=!1})}function hc(e,t){let n=nc(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function gc(e){return!(e.pointerType===`touch`||pc())}function _c(e,t,n={}){let[r,i,a]=hc(e,n),o=e=>{if(!gc(e))return;let{target:n}=e,r=t(n,e);if(typeof r!=`function`||!n)return;let a=e=>{gc(e)&&(r(e),n.removeEventListener(`pointerleave`,a))};n.addEventListener(`pointerleave`,a,i)};return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}var vc=(e,t)=>t?e===t?!0:vc(e,t.parentElement):!1,yc=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,bc=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function xc(e){return bc.has(e.tagName)||e.tabIndex!==-1}var Sc=new WeakSet;function Cc(e){return t=>{t.key===`Enter`&&e(t)}}function wc(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Tc=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Cc(()=>{if(Sc.has(n))return;wc(n,`down`);let e=Cc(()=>{wc(n,`up`)});
10n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>wc(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function R(e){return yc(e)&&!pc()}function Ec(e,t,n={}){let[r,i,a]=hc(e,n),o=e=>{let r=e.currentTarget;if(!R(e))return;Sc.add(r);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Sc.has(r)&&Sc.delete(r),R(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||vc(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),ic(e)&&(e.addEventListener(`focus`,e=>Tc(e,i)),!xc(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Dc(e){return oi(e)&&`ownerSVGElement`in e}function Oc(e){return Dc(e)&&e.tagName===`svg`}var kc=e=>!!(e&&e.getVelocity),Ac=[...Vs,I,Fa],jc=e=>Ac.find(Bs(e)),Mc=(0,C.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Nc(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Pc(...e){return t=>{let n=!1,r=e.map(e=>{let r=Nc(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Nc(e[t],null)}}}}function Fc(...e){return C.useCallback(Pc(...e),e)}var z=Yr(),Ic=class extends C.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=ic(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}};function Lc({children:e,isPresent:t,anchorX:n,root:r}){let i=(0,C.useId)(),a=(0,C.useRef)(null),o=(0,C.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,C.useContext)(Mc),c=Fc(a,e?.ref);return(0,C.useInsertionEffect)(()=>{let{width:e,height:c,top:l,left:u,right:d}=o.current;if(t||!a.current||!e||!c)return;let f=n===`left`?`left: ${u}`:`right: ${d}`;a.current.dataset.motionPopId=i;let p=document.createElement(`style`);s&&(p.nonce=s);let m=r??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`
11          [data-motion-pop-id="${i}"] {
12            position: absolute !important;
13            width: ${e}px !important;
14            height: ${c}px !important;
15            ${f}px !important;
16            top: ${l}px !important;
17          }
18        `),()=>{m.contains(p)&&m.removeChild(p)}},[t]),(0,z.jsx)(Ic,{isPresent:t,childRef:a,sizeRef:o,children:C.cloneElement(e,{ref:c})})}var Rc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,root:c})=>{let l=Zr(zc),u=(0,C.useId)(),d=!0,f=(0,C.useMemo)(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:e=>{l.set(e,!0);for(let e of l.values())if(!e)return;r&&r()},register:e=>(l.set(e,!1),()=>l.delete(e))}),[n,l,r]);return a&&d&&(f={...f}),(0,C.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),C.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o===`popLayout`&&(e=(0,z.jsx)(Lc,{isPresent:n,anchorX:s,root:c,children:e})),(0,z.jsx)(ei.Provider,{value:f,children:e})};function zc(){return new Map}function Bc(e=!0){let t=(0,C.useContext)(ei);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,C.useId)();(0,C.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,C.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Vc=e=>e.key||``;function Hc(e){let t=[];return C.Children.forEach(e,e=>{(0,C.isValidElement)(e)&&t.push(e)}),t}var Uc=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,root:c})=>{let[l,u]=Bc(o),d=(0,C.useMemo)(()=>Hc(e),[e]),f=o&&!l?[]:d.map(Vc),p=(0,C.useRef)(!0),m=(0,C.useRef)(d),h=Zr(()=>new Map),[g,_]=(0,C.useState)(d),[v,y]=(0,C.useState)(d);$r(()=>{p.current=!1,m.current=d;for(let e=0;e<v.length;e++){let t=Vc(v[e]);f.includes(t)?h.delete(t):h.get(t)!==!0&&h.set(t,!1)}}
18,[v,f.length,f.join(`-`)]);let b=[];if(d!==g){let e=[...d];for(let t=0;t<v.length;t++){let n=v[t],r=Vc(n);f.includes(r)||(e.splice(t,0,n),b.push(n))}return a===`wait`&&b.length&&(e=b),y(Hc(e)),_(d),null}let{forceRender:x}=(0,C.useContext)(Xr);return(0,z.jsx)(z.Fragment,{children:v.map(e=>{let g=Vc(e),_=o&&!l?!1:d===v||f.includes(g);return(0,z.jsx)(Rc,{isPresent:_,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:_?void 0:()=>{if(h.has(g))h.set(g,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(x?.(),y(m.current),o&&u?.(),r&&r())},anchorX:s,children:e},g)})})},Wc=(0,C.createContext)({strict:!1}),Gc={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`]},Kc={};for(let e in Gc)Kc[e]={isEnabled:t=>Gc[e].some(e=>!!t[e])};function qc(e){for(let t in e)Kc[t]={...Kc[t],...e[t]}}var Jc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.ignoreStrict.viewport`.split(`.`));function Yc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Jc.has(e)}var Xc=c({default:()=>Zc}),Zc,Qc=o((()=>{throw Zc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),$c=e=>!Yc(e);function B(e){typeof e==`function`&&($c=t=>t.startsWith(`on`)?!Yc(t):e(t))}try{B((Qc(),d(Xc)).default)}catch{}function el(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||($c(i)||n===!0&&Yc(i)||!t&&!Yc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var tl=(0,C.createContext)({});function nl(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function rl(e){return typeof e==`string`||Array.isArray(e)}var il=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],al=[`initial`,...il];function ol(e){return nl(e.animate)||al.some(t=>rl(e[t]))}function sl(e){return!!(ol(e)||e.variants)}function cl(e,t){if(ol(e)){let{initial:t,animate:n}=e;return{initial:t===!1||rl(t)?t:void 0,animate:rl(n)?n:void 0}}return e.inherit===!1?{}:t}function ll(e){let{initial:t,animate:n}=cl(e,(0,C.useContext)(tl));return(0,C.useMemo)(()=>({initial:t,animate:n}),[ul(t),ul(n)])}function ul(e){return Array.isArray(e)?e.join(` `):e}var dl={};function fl(e){for(let t in e)dl[t]=e[t],Qi(t)&&(dl[t].isCSSVariable=!0)}function pl(e,{layout:t,layoutId:n}){return qo.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!dl[e]||e===`opacity`)}var ml={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},hl=Ko.length;function gl(e,t,n){let r=``,i=!0;for(let a=0;a<hl;a++){let o=Ko[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===+!!o.startsWith(`scale`):parseFloat(s)===0,!c||n){let e=rc(s,Ys[o]);if(!c){i=!1;let t=ml[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function _l(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(qo.has(e)){o=!0;continue}else if(Qi(e)){i[e]=n;continue}else{let t=rc(n,Ys[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=gl(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var vl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yl(e,t,n){for(let r in t)!kc(t[r])&&!pl(r,n)&&(e[r]=t[r])}function bl({transformTemplate:e},t){return(0,C.useMemo)(()=>{let n=vl();return _l(n,t,e),Object.assign({},n.vars,n.style)},[t])}function xl(e,t){let n=e.style||{},r={};
18return yl(r,n,e),Object.assign(r,bl(e,t)),r}function Sl(e,t){let n={},r=xl(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Cl={offset:`stroke-dashoffset`,array:`stroke-dasharray`},wl={offset:`strokeDashoffset`,array:`strokeDasharray`};function Tl(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Cl:wl;e[a.offset]=F.transform(-r);let o=F.transform(t),s=F.transform(n);e[a.array]=`${o} ${s}`}function El(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(_l(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Tl(d,i,a,o,!1)}var Dl=()=>({...vl(),attrs:{}}),Ol=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function kl(e,t,n,r){let i=(0,C.useMemo)(()=>{let n=Dl();return El(n,t,Ol(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};yl(t,e.style,e),i.style={...t,...i.style}}return i}var Al=[`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 jl(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Al.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ml(e,t,n,{latestValues:r},i,a=!1){let o=(jl(e)?kl:Sl)(t,r,i,e),s=el(t,typeof e==`string`,a),c=e===C.Fragment?{}:{...s,...o,ref:n},{children:l}=t,u=(0,C.useMemo)(()=>kc(l)?l.get():l,[l]);return(0,C.createElement)(e,{...c,children:u})}function Nl(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Pl(e,t,n,r){if(typeof t==`function`){let[i,a]=Nl(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Nl(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Fl(e){return kc(e)?e.get():e}function Il({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Ll(n,r,i,e),renderState:t()}}function Ll(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Fl(a[e]);let{initial:o,animate:s}=e,c=ol(e),l=sl(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!nl(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Pl(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Rl=e=>(t,n)=>{let r=(0,C.useContext)(tl),i=(0,C.useContext)(ei),a=()=>Il(e,t,r,i);return n?a():Zr(a)};function zl(e,t,n){let{style:r}=e,i={};for(let a in r)(kc(r[a])||t.style&&kc(t.style[a])||pl(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}var Bl=Rl({scrapeMotionValuesFromProps:zl,createRenderState:vl});function Vl(e,t,n){let r=zl(e,t,n);for(let n in e)if(kc(e[n])||kc(t[n])){let t=Ko.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Hl=Rl({scrapeMotionValuesFromProps:Vl,createRenderState:Dl}),Ul=Symbol.for(`motionComponentSymbol`);function Wl(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Gl(e,t,n){return(0,C.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):Wl(n)&&(n.current=r))},[t])}var Kl=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),ql=`data-`+Kl(`framerAppearId`),Jl=(0,C.createContext)({});function Yl(e,t,n,r,i){let{visualElement:a}=(0,C.useContext)(tl),o=(0,C.useContext)(Wc),s=(0,C.useContext)(ei),c=(0,C.useContext)(Mc).reducedMotion,l=(0,C.useRef)(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}
18));let u=l.current,d=(0,C.useContext)(Jl);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&Xl(l.current,n,i,d);let f=(0,C.useRef)(!1);(0,C.useInsertionEffect)(()=>{u&&f.current&&u.update(n,s)});let p=n[ql],m=(0,C.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return $r(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),(0,C.useEffect)(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),!1),u.enteringChildren=void 0)}),u}function Xl(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Zl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Wl(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function Zl(e){if(e)return e.options.allowProjection===!1?Zl(e.parent):e.projection}function Ql(e,{forwardMotionProps:t=!1}={},n,r){n&&qc(n);let i=jl(e)?Hl:Bl;function a(a,o){let s,c={...(0,C.useContext)(Mc),...a,layoutId:$l(a)},{isStatic:l}=c,u=ll(a),d=i(a,l);if(!l&&Qr){eu(c,n);let t=tu(c);s=t.MeasureLayout,u.visualElement=Yl(e,d,c,r,t.ProjectionNode)}return(0,z.jsxs)(tl.Provider,{value:u,children:[s&&u.visualElement?(0,z.jsx)(s,{visualElement:u.visualElement,...c}):null,Ml(e,a,Gl(d,u.visualElement,o),d,l,t)]})}a.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let o=(0,C.forwardRef)(a);return o[Ul]=e,o}function $l({layoutId:e}){let t=(0,C.useContext)(Xr).id;return t&&e!==void 0?t+`-`+e:e}function eu(e,t){(0,C.useContext)(Wc).strict}function tu(e){let{drag:t,layout:n}=Kc;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function nu(e,t){if(typeof Proxy>`u`)return Ql;let n=new Map,r=(n,r)=>Ql(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Ql(a,void 0,e,t)),n.get(a))})}function ru({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function iu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function au(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ou(e){return e===void 0||e===1}function su({scale:e,scaleX:t,scaleY:n}){return!ou(e)||!ou(t)||!ou(n)}function cu(e){return su(e)||lu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function lu(e){return uu(e.x)||uu(e.y)}function uu(e){return e&&e!==`0%`}function du(e,t,n){return n+t*(e-n)}function fu(e,t,n,r,i){return i!==void 0&&(e=du(e,i,r)),du(e,n,r)+t}function pu(e,t=0,n=1,r,i){e.min=fu(e.min,t,n,r,i),e.max=fu(e.max,t,n,r,i)}function mu(e,{x:t,y:n}){pu(e.x,t.translate,t.scale,t.originPoint),pu(e.y,n.translate,n.scale,n.originPoint)}var hu=.999999999999,gu=1.0000000000001;function _u(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&bu(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,mu(e,o)),r&&cu(a.latestValues)&&bu(e,a.latestValues))}t.x<gu&&t.x>hu&&(t.x=1),t.y<gu&&t.y>hu&&(t.y=1)}function vu(e,t){e.min+=t,e.max+=t}function yu(e,t,n,r,i=.5){pu(e,t,n,za(e.min,e.max,i),r)}function bu(e,t){yu(e.x,t.x,t.scaleX,t.scale,t.originX),yu(e.y,t.y,t.scaleY,t.scale,t.originY)}function xu(e,t){return ru(au(e.getBoundingClientRect(),t))}function Su(e,t,n){let r=xu(e,n),{scroll:i}=t;return i&&(vu(r.x,i.offset.x),vu(r.y,i.offset.y)),r}var Cu=()=>({translate:0,scale:1,origin:0,originPoint:0}),wu=()=>({x:Cu(),y:Cu()}),Tu=()=>({min:0,max:0}),Eu=()=>({x:Tu(),y:Tu()}),Du={current:null},Ou={current:!1};function ku(){if(Ou.current=!0,Qr)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Du.current=e.matches;e.addEventListener(`change`,t),t()}else Du.current=!1}var Au=new WeakMap;function ju(e,t,n){for(let r in t){let i=t[r],a=n[r];if(kc(i))e.addValue(r,i);else if(kc(a))e.addValue(r,lc(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,lc(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Mu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Nu=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=os,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Yi.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,N.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=ol(t),this.isVariantNode=sl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&kc(t)&&t.set(s[e])}}mount(e){this.current=e,Au.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
18h((e,t)=>this.bindToMotionValue(t,e)),Ou.current||ku(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:Du.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Wi(this.notifyUpdate),Wi(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=qo.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&N.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Kc){let t=Kc[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Eu()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Mu.length;t++){let n=Mu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=ju(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=lc(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ai(n)||si(n))?n=parseFloat(n):!jc(n)&&Fa.test(t)&&(n=Qs(e,t)),this.setBaseTarget(e,kc(n)?n.get():n)),kc(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Pl(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!kc(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new pi),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){uc.render(this.render)}},Pu=class extends Nu{constructor(){super(...arguments),this.KeyframeResolver=tc}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;kc(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Fu(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Iu(e){return window.getComputedStyle(e)}var Lu=class extends Pu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Fu}readValueFromInstance(e,t){if(qo.has(t))return this.projection?.isProjecting?Ho(t):Wo(e,t);{let n=Iu(e),r=(Qi(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return xu(e,t)}build(e,t,n){_l(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return zl(e,t,n)}},Ru=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function zu(e,t,n,r){Fu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Ru.has(n)?n:Kl(n),t.attrs[n])}var Bu=class extends Pu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Eu}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(qo.has(t)){let e=Zs(t);return e&&e.default||0}return t=Ru.has(t)?t:Kl(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Vl(e,t,n)}
18build(e,t,n){El(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){zu(e,t,n,r)}mount(e){this.isSVGTag=Ol(e.tagName),super.mount(e)}},Vu=(e,t)=>jl(e)?new Bu(t):new Lu(t,{allowProjection:e!==C.Fragment});function Hu(e,t,n){let r=e.getProps();return Pl(r,t,n===void 0?r.custom:n,e)}var Uu=e=>Array.isArray(e);function Wu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,lc(n))}function Gu(e){return Uu(e)?e[e.length-1]||0:e}function Ku(e,t){let{transitionEnd:n={},transition:r={},...i}=Hu(e,t)||{};i={...i,...n};for(let t in i)Wu(e,t,Gu(i[t]))}function qu(e){return!!(kc(e)&&e.add)}function Ju(e,t){let n=e.getValue(`willChange`);if(qu(n))return n.add(t);if(!n&&ii.WillChange){let n=new ii.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Yu(e){return e.props[ql]}var Xu=e=>e!==null;function Zu(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(Xu),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}var Qu={type:`spring`,stiffness:500,damping:25,restSpeed:10},$u=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ed={type:`keyframes`,duration:.8},td={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},nd=(e,{keyframes:t})=>t.length>2?ed:qo.has(e)?e.startsWith(`scale`)?$u(t[1]):Qu:td;function rd({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var id=(e,t,n,r={},i,a)=>o=>{let s=Ls(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=mi(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};rd(s)||Object.assign(u,nd(e,u)),u.duration&&=mi(u.duration),u.repeatDelay&&=mi(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Os(u),u.delay===0&&(d=!0)),(ii.instantAnimations||ii.skipAnimations)&&(d=!0,Os(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Zu(u.keyframes,s);if(e!==void 0){N.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new No(u):new Ns(u)};function ad({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function od(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&ad(l,t))continue;let o={delay:n,...Ls(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=Yu(e);if(n){let e=window.MotionHandoffAnimation(n,t,N);e!==null&&(o.startTime=e,d=!0)}}Ju(e,t),r.start(id(t,r,i,e.shouldReduceMotion&&Rs.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{N.update(()=>{o&&Ku(e,o)})}),c}function sd(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}function cd(e,t,n={}){let r=Hu(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(od(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ld(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function ld(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(cd(c,t,{...o,delay:n+(typeof r==`function`?0:r)+sd(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ud(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>
18cd(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=cd(e,t,n);else{let i=typeof t==`function`?Hu(e,t,n.custom):t;r=Promise.all(od(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function dd(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var fd=al.length;function pd(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&pd(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<fd;n++){let r=al[n],i=e.props[r];(rl(i)||i===!1)&&(t[r]=i)}return t}var md=[...il].reverse(),hd=il.length;function gd(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ud(e,t,n)))}function _d(e){let t=gd(e),n=bd(),r=!0,i=t=>(n,r)=>{let i=Hu(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=pd(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<hd;t++){let f=md[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=rl(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||nl(m)||typeof m==`boolean`)continue;let v=vd(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Uu(t)&&Uu(n)?!dd(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let ee=_&&v;y&&(!ee||b)&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Hu(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=sd(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=Hu(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=bd(),r=!0}}}function vd(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!dd(t,e):!1}function yd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bd(){return{animate:yd(!0),whileInView:yd(),whileHover:yd(),whileTap:yd(),whileDrag:yd(),whileFocus:yd(),exit:yd()}}var xd=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Sd=class extends xd{constructor(e){super(e),e.animationState||=_d(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();nl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Cd=0,wd={animation:{Feature:Sd},exit:{Feature:class extends xd{constructor(){super(...arguments),this.id=Cd++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};
18t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Td(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ed(e){return{point:{x:e.pageX,y:e.pageY}}}var Dd=e=>t=>yc(t)&&e(t,Ed(t));function Od(e,t,n,r){return Td(e,t,Dd(n),r)}var kd=.9999,Ad=1.0001,jd=-.01,Md=.01;function Nd(e){return e.max-e.min}function Pd(e,t,n){return Math.abs(e-t)<=n}function Fd(e,t,n,r=.5){e.origin=r,e.originPoint=za(t.min,t.max,e.origin),e.scale=Nd(n)/Nd(t),e.translate=za(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kd&&e.scale<=Ad||isNaN(e.scale))&&(e.scale=1),(e.translate>=jd&&e.translate<=Md||isNaN(e.translate))&&(e.translate=0)}function Id(e,t,n,r){Fd(e.x,t.x,n.x,r?r.originX:void 0),Fd(e.y,t.y,n.y,r?r.originY:void 0)}function Ld(e,t,n){e.min=n.min+t.min,e.max=e.min+Nd(t)}function Rd(e,t,n){Ld(e.x,t.x,n.x),Ld(e.y,t.y,n.y)}function zd(e,t,n){e.min=t.min-n.min,e.max=e.min+Nd(t)}function Bd(e,t,n){zd(e.x,t.x,n.x),zd(e.y,t.y,n.y)}function Vd(e){return[e(`x`),e(`y`)]}var Hd=({current:e})=>e?e.ownerDocument.defaultView:null,Ud=(e,t)=>Math.abs(e-t);function Wd(e,t){let n=Ud(e.x,t.x),r=Ud(e.y,t.y);return Math.sqrt(n**2+r**2)}var Gd=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=Jd(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Wd(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Gi;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Kd(t,this.transformPagePoint),N.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Jd(e.type===`pointercancel`?this.lastMoveEventInfo:Kd(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!yc(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=Kd(Ed(e),this.transformPagePoint),{point:s}=o,{timestamp:c}=Gi;this.history=[{...s,timestamp:c}];let{onSessionStart:l}=t;l&&l(e,Jd(o,this.history)),this.removeListeners=di(Od(this.contextWindow,`pointermove`,this.handlePointerMove),Od(this.contextWindow,`pointerup`,this.handlePointerUp),Od(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Wi(this.updatePoint)}};function Kd(e,t){return t?{point:t(e.point)}:e}function qd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jd({point:e},t){return{point:e,delta:qd(e,Xd(t)),offset:qd(e,Yd(t)),velocity:Zd(t,.1)}}function Yd(e){return e[0]}function Xd(e){return e[e.length-1]}function Zd(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Xd(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>mi(t)));)n--;if(!r)return{x:0,y:0};let a=hi(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Qd(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?za(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?za(n,e,r.max):Math.min(e,n)),e}function $d(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function ef(e,{top:t,left:n,bottom:r,right:i}){return{x:$d(e.x,n,i),y:$d(e.y,t,r)}}function tf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nf(e,t){return{x:tf(e.x,t.x),y:tf(e.y,t.y)}}function rf(e,t){let n=.5,r=Nd(e),i=Nd(t);return i>r?n=fi(t.min,t.max-r,e.min):r>i&&(n=fi(e.min,e.max-i,t.min)),ri(0,1,n)}function af(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var of=.35;function sf(e=of){return e===!1?e=0:e===!0&&(e=of),{x:cf(e,`left`,`right`),y:cf(e,`top`,`bottom`)}}function cf(e,t,n){return{min:lf(e,t),max:lf(e,n)}}function lf(e,t){return typeof e==`number`?e:e[t]||0}var uf=new WeakMap,df=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Eu(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Ed(e).point)},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mc(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vd(e=>{let t=this.getAxisMotionValue(e).get()||0;if(_a.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Nd(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&N.postRender(()=>i(e,t)),Ju(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=pf(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Vd(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Gd(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Hd(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&N.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ff(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Qd(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Wl(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=ef(n.layoutBox,e):this.constraints=!1,this.elastic=sf(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Vd(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=af(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Wl(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Su(n,r.root,this.visualElement.getTransformPagePoint()),a=nf(r.layout.layoutBox,i);
vendor: 4,385 bytes, line 18
18if(t){let e=t(iu(a));this.hasMutatedConstraints=!!e,e&&(a=ru(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Vd(o=>{if(!ff(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Ju(this.visualElement,e),n.start(id(e,n,0,t,this.visualElement,!1))}stopAnimation(){Vd(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Vd(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Vd(t=>{let{drag:n}=this.getProps();if(!ff(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-za(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Wl(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Vd(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=rf({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Vd(t=>{if(!ff(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(za(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;uf.set(this.visualElement,this);let e=this.visualElement.current,t=Od(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Wl(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),N.read(n);let a=Td(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Vd(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=of,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ff(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function pf(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var mf=class extends xd{constructor(e){super(e),this.removeGroupControls=li,this.removeListeners=li,this.controls=new df(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||li}unmount(){this.removeGroupControls(),this.removeListeners()}},hf=e=>(t,n)=>{e&&N.postRender(()=>e(t,n))},gf=class extends xd{constructor(){super(...arguments),this.removePointerDownListener=li}onPointerDown(e){this.session=new Gd(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Hd(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:hf(e),onStart:hf(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&N.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Od(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},_f={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var yf={correct:(e,t)=>
18{if(!t.target)return e;if(typeof e==`string`)if(F.test(e))e=parseFloat(e);else return e;return`${vf(e,t.target.x)}% ${vf(e,t.target.y)}%`}},bf={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Fa.parse(e);if(i.length>5)return r;let a=Fa.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=za(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},xf=!1,Sf=class extends C.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;fl(wf),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),xf&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),_f.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,xf=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||N.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),uc.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;xf=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Cf(e){let[t,n]=Bc(),r=(0,C.useContext)(Xr);return(0,z.jsx)(Sf,{...e,layoutGroup:r,switchLayoutGroup:(0,C.useContext)(Jl),isPresent:t,safeToRemove:n})}var wf={borderRadius:{...yf,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:yf,borderTopRightRadius:yf,borderBottomLeftRadius:yf,borderBottomRightRadius:yf,boxShadow:bf};function Tf(e,t,n){let r=kc(e)?e:lc(e);return r.start(id(``,r,t,n)),r.animation}var Ef=(e,t)=>e.depth-t.depth,Df=class{constructor(){this.children=[],this.isDirty=!1}add(e){ti(this.children,e),this.isDirty=!0}remove(e){ni(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ef),this.isDirty=!1,this.children.forEach(e)}};function Of(e,t){let n=Yi.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Wi(r),e(a-t))};return N.setup(r,!0),()=>Wi(r)}var kf=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],Af=kf.length,jf=e=>typeof e==`string`?parseFloat(e):e,Mf=e=>typeof e==`number`||F.test(e);function Nf(e,t,n,r,i,a){i?(e.opacity=za(0,n.opacity??1,Ff(r)),e.opacityExit=za(t.opacity??1,0,If(r))):a&&(e.opacity=za(t.opacity??1,n.opacity??1,r));for(let i=0;i<Af;i++){let a=`border${kf[i]}Radius`,o=Pf(t,a),s=Pf(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Mf(o)===Mf(s)?(e[a]=Math.max(za(jf(o),jf(s),r),0),(_a.test(s)||_a.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=za(t.rotate||0,n.rotate||0,r))}function Pf(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ff=Lf(0,.5,ki),If=Lf(.5,.95,li);function Lf(e,t,n){return r=>r<e?0:r>t?1:n(fi(e,t,r))}function Rf(e,t){e.min=t.min,e.max=t.max}function zf(e,t){Rf(e.x,t.x),Rf(e.y,t.y)}function Bf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vf(e,t,n,r,i){return e-=t,e=du(e,1/n,r),i!==void 0&&(e=du(e,1/i,r)),e}function Hf(e,t=0,n=1,r=.5,i,a=e,o=e){if(_a.test(t)&&(t=parseFloat(t),t=za(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=za(a.min,a.max,r);e===a&&(s-=t),e.min=Vf(e.min,t,n,s,i),e.max=Vf(e.max,t,n,s,i)}function Uf(e,t,[n,r,i],a,o){Hf(e,t[n],t[r],t[i],t.scale,a,o)}var Wf=[`x`,`scaleX`,`originX`],Gf=[`y`,`scaleY`,`originY`];function Kf(e,t,n,r){Uf(e.x,t,Wf,n?n.x:void 0,r?r.x:void 0),Uf(e.y,t,Gf,n?n.y:void 0,r?r.y:void 0)}function qf(e){return e.translate===0&&e.scale===1}function Jf(e){return qf(e.x)&&qf(e.y)}function Yf(e,t){return e.min===t.min&&e.max===t.max}function Xf(e,t){return Yf(e.x,t.x)&&Yf(e.y,t.y)}function Zf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Qf(e,t){return Zf(e.x,t.x)&&Zf(e.y,t.y)}function $f(e){return Nd(e.x)/Nd(e.y)}function ep(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var tp=class{constructor(){this.members=[]}add(e){ti(this.members,e),e.scheduleRender()}remove(e){if(ni(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}
18exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function np(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var rp={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ip=[``,`X`,`Y`,`Z`],ap=1e3,op=0;function sp(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function cp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Yu(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,N,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&cp(r)}function lp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=op++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Bi.value&&(rp.nodes=rp.calculatedTargetDeltas=rp.calculatedProjections=0),this.nodes.forEach(fp),this.nodes.forEach(yp),this.nodes.forEach(bp),this.nodes.forEach(pp),Bi.addProjectionMetrics&&Bi.addProjectionMetrics(rp)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Df)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new pi),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Dc(t)&&!Oc(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;N.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Of(i,250),_f.hasAnimatedSinceResize&&(_f.hasAnimatedSinceResize=!1,this.nodes.forEach(vp)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Dp,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Qf(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ls(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||vp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Wi(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.forEac
18h(xp),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(gp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_p),this.nodes.forEach(up),this.nodes.forEach(dp)):this.nodes.forEach(gp),this.clearAllSnapshots();let e=Yi.now();Gi.delta=ri(0,1e3/60,e-Gi.timestamp),Gi.timestamp=e,Gi.isProcessing=!0,Ki.update.process(Gi),Ki.preRender.process(Gi),Ki.render.process(Gi),Gi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,uc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mp),this.sharedNodes.forEach(Sp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,N.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){N.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nd(this.snapshot.measuredBox.x)&&!Nd(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Eu(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Jf(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||cu(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),jp(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Eu();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Np))){let{scroll:e}=this.root;e&&(vu(t.x,e.offset.x),vu(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Eu();if(zf(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&zf(t,e),vu(t.x,i.offset.x),vu(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=Eu();zf(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&bu(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),cu(r.latestValues)&&bu(n,r.latestValues)}return cu(this.latestValues)&&bu(n,this.latestValues),n}removeTransform(e){let t=Eu();zf(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!cu(n.latestValues))continue;su(n.latestValues)&&n.updateSnapshot();let r=Eu();zf(r,n.measurePageBox()),Kf(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return cu(this.latestValues)&&Kf(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}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!==Gi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
18if(!(!this.layout||!(r||i))){if(this.resolvedRelativeTargetAt=Gi.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Eu(),this.relativeTargetOrigin=Eu(),Bd(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),zf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Eu(),this.targetWithTransforms=Eu()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Rd(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):zf(this.target,this.layout.layoutBox),mu(this.target,this.targetDelta)):zf(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Eu(),this.relativeTargetOrigin=Eu(),Bd(this.relativeTargetOrigin,this.target,e.target),zf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Bi.value&&rp.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||su(this.parent.latestValues)||lu(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Gi.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;zf(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;_u(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Eu());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bf(this.prevProjectionDelta.x,this.projectionDelta.x),Bf(this.prevProjectionDelta.y,this.projectionDelta.y)),Id(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!ep(this.projectionDelta.x,this.prevProjectionDelta.x)||!ep(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Bi.value&&rp.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=wu(),this.projectionDelta=wu(),this.projectionDeltaWithTransform=wu()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=wu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Eu(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Ep));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Cp(a.x,e.x,n),Cp(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bd(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Tp(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Xf(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=Eu(),zf(d,this.relativeTarget)),s&&(this.animationValues=i,Nf(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Wi(this.pendingAnimation),void 0),this.pendingAnimation=N.update(()=>{_f.hasAnimatedSinceResize=!0,Xi.layout++,this.motionValue||=lc(0),this.currentAnimation=Tf(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Xi.layout--},onComplete:()=>{Xi.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ap),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Mp(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Eu();let t=Nd(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Nd(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}zf(t,n),bu(t,i),Id(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
18)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new tp),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&sp(`z`,e,r,this.animationValues);for(let t=0;t<ip.length;t++)sp(`rotate${ip[t]}`,e,r,this.animationValues),sp(`skew${ip[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Fl(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Fl(t?.pointerEvents)||``),this.hasProjected&&!cu(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=np(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in dl){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=dl[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Fl(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(hp),this.root.sharedNodes.clear()}}}function up(e){e.updateLayout()}function dp(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?Vd(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Nd(r);r.min=n[e].min,r.max=r.min+i}):Mp(i,t.layoutBox,n)&&Vd(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Nd(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=wu();Id(o,n,t.layoutBox);let s=wu();a?Id(s,e.applyTransform(r,!0),t.measuredBox):Id(s,n,t.layoutBox);let c=!Jf(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=Eu();Bd(o,t.layoutBox,i.layoutBox);let s=Eu();Bd(s,n,a.layoutBox),Qf(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function fp(e){Bi.value&&rp.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function pp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mp(e){e.clearSnapshot()}function hp(e){e.clearMeasurements()}function gp(e){e.isLayoutDirty=!1}function _p(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function vp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yp(e){e.resolveTargetDelta()}function bp(e){e.calcProjection()}
18function xp(e){e.resetSkewAndRotation()}function Sp(e){e.removeLeadSnapshot()}function Cp(e,t,n){e.translate=za(t.translate,0,n),e.scale=za(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wp(e,t,n,r){e.min=za(t.min,n.min,r),e.max=za(t.max,n.max,r)}function Tp(e,t,n,r){wp(e.x,t.x,n.x,r),wp(e.y,t.y,n.y,r)}function Ep(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Dp={duration:.45,ease:[.4,0,.1,1]},Op=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),kp=Op(`applewebkit/`)&&!Op(`chrome/`)?Math.round:li;function Ap(e){e.min=kp(e.min),e.max=kp(e.max)}function jp(e){Ap(e.x),Ap(e.y)}function Mp(e,t,n){return e===`position`||e===`preserve-aspect`&&!Pd($f(t),$f(n),.2)}function Np(e){return e!==e.root&&e.scroll?.wasRoot}var Pp=lp({attachResizeListener:(e,t)=>Td(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fp={current:void 0},Ip=lp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fp.current){let e=new Pp({});e.mount(window),e.setOptions({layoutScroll:!0}),Fp.current=e}return Fp.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Lp={pan:{Feature:gf},drag:{Feature:mf,ProjectionNode:Ip,MeasureLayout:Cf}};function Rp(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&N.postRender(()=>i(t,Ed(t)))}var zp=class extends xd{mount(){let{current:e}=this.node;e&&(this.unmount=_c(e,(e,t)=>(Rp(this.node,t,`Start`),e=>Rp(this.node,e,`End`))))}unmount(){}},Bp=class extends xd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!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=di(Td(this.node.current,`focus`,()=>this.onFocus()),Td(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Vp(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&N.postRender(()=>i(t,Ed(t)))}var Hp=class extends xd{mount(){let{current:e}=this.node;e&&(this.unmount=Ec(e,(e,t)=>(Vp(this.node,t,`Start`),(e,{success:t})=>Vp(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}},Up=new WeakMap,Wp=new WeakMap,Gp=e=>{let t=Up.get(e.target);t&&t(e)},Kp=e=>{e.forEach(Gp)};function qp({root:e,...t}){let n=e||document;Wp.has(n)||Wp.set(n,{});let r=Wp.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Kp,{root:e,...t})),r[i]}function Jp(e,t,n){let r=qp(t);return Up.set(e,n),r.observe(e),()=>{Up.delete(e),r.unobserve(e)}}var Yp={some:0,all:1},Xp=class extends xd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Yp[r]};return Jp(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Zp(e,t))&&this.startObserver()}unmount(){}};function Zp({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Qp={inView:{Feature:Xp},tap:{Feature:Hp},focus:{Feature:Bp},hover:{Feature:zp}},$p={layout:{ProjectionNode:Ip,MeasureLayout:Cf}},V=nu({...wd,...Qp,...Lp,...$p},Vu),em={some:0,all:1};function tm(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=nc(e),o=new WeakMap,s=new IntersectionObserver(e=>
18{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:em[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function nm(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,C.useState)(a);return(0,C.useEffect)(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return tm(e.current,a,c)},[t,e,n,i,r]),o}var rm=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),im=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),am=e=>{let t=im(e);return t.charAt(0).toUpperCase()+t.slice(1)},om=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),sm={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`},cm=(0,C.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,C.createElement)(`svg`,{ref:c,...sm,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:om(`lucide`,i),...s},[...o.map(([e,t])=>(0,C.createElement)(e,t)),...Array.isArray(a)?a:[a]])),H=(e,t)=>{let n=(0,C.forwardRef)(({className:n,...r},i)=>(0,C.createElement)(cm,{ref:i,iconNode:t,className:om(`lucide-${rm(am(e))}`,`lucide-${e}`,n),...r}));return n.displayName=am(e),n},lm=H(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),um=H(`brain`,[[`path`,{d:`M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`,key:`l5xja`}],[`path`,{d:`M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z`,key:`ep3f8r`}],[`path`,{d:`M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4`,key:`1p4c4q`}],[`path`,{d:`M17.599 6.5a3 3 0 0 0 .399-1.375`,key:`tmeiqw`}],[`path`,{d:`M6.003 5.125A3 3 0 0 0 6.401 6.5`,key:`105sqy`}],[`path`,{d:`M3.477 10.896a4 4 0 0 1 .585-.396`,key:`ql3yin`}],[`path`,{d:`M19.938 10.5a4 4 0 0 1 .585.396`,key:`1qfode`}],[`path`,{d:`M6 18a4 4 0 0 1-1.967-.516`,key:`2e4loj`}],[`path`,{d:`M19.967 17.484A4 4 0 0 1 18 18`,key:`159ez6`}]]),dm=H(`briefcase`,[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),fm=H(`calculator`,[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`line`,{x1:`8`,x2:`16`,y1:`6`,y2:`6`,key:`x4nwl0`}],[`line`,{x1:`16`,x2:`16`,y1:`14`,y2:`18`,key:`wjye3r`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M12 10h.01`,key:`1nrarc`}],[`path`,{d:`M8 10h.01`,key:`19clt8`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}]]),pm=H(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),mm=H(`chart-column`,[[`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`}]]),hm=H(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),gm=H(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),_m=H(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),vm=H(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),ym=H(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),bm=H(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`polyline`,{points:`12 6 12 12 16 14`,key:`68esgv`}]]),xm=H(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),Sm=H(`cpu`,[[`rect`,{width:`16`,height:`16`,x:`4`,y:`4`,rx:`2`,key:`14l7u7`}
18],[`rect`,{width:`6`,height:`6`,x:`9`,y:`9`,rx:`1`,key:`5aljv4`}],[`path`,{d:`M15 2v2`,key:`13l42r`}],[`path`,{d:`M15 20v2`,key:`15mkzm`}],[`path`,{d:`M2 15h2`,key:`1gxd5l`}],[`path`,{d:`M2 9h2`,key:`1bbxkp`}],[`path`,{d:`M20 15h2`,key:`19e6y8`}],[`path`,{d:`M20 9h2`,key:`19tzq7`}],[`path`,{d:`M9 2v2`,key:`165o2o`}],[`path`,{d:`M9 20v2`,key:`i2bqo8`}]]),Cm=H(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),wm=H(`download`,[[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`polyline`,{points:`7 10 12 15 17 10`,key:`2ggqvy`}],[`line`,{x1:`12`,x2:`12`,y1:`15`,y2:`3`,key:`1vk2je`}]]),Tm=H(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Em=H(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Dm=H(`file-text`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Om=H(`github`,[[`path`,{d:`M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4`,key:`tonef`}],[`path`,{d:`M9 18c-4.51 2-5-2-7-2`,key:`9comsn`}]]),km=H(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Am=H(`hard-drive`,[[`line`,{x1:`22`,x2:`2`,y1:`12`,y2:`12`,key:`1y58io`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}],[`line`,{x1:`6`,x2:`6.01`,y1:`16`,y2:`16`,key:`sgf278`}],[`line`,{x1:`10`,x2:`10.01`,y1:`16`,y2:`16`,key:`1l4acy`}]]),jm=H(`laptop`,[[`path`,{d:`M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16`,key:`tarvll`}]]),Mm=H(`layers`,[[`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`}]]),Nm=H(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),Pm=H(`linkedin`,[[`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`}]]),Fm=H(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),Im=H(`mail`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}]]),Lm=H(`menu`,[[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}],[`line`,{x1:`4`,x2:`20`,y1:`6`,y2:`6`,key:`1owob3`}],[`line`,{x1:`4`,x2:`20`,y1:`18`,y2:`18`,key:`yk5zj1`}]]),Rm=H(`message-square`,[[`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`,key:`1lielz`}]]),zm=H(`mic`,[[`path`,{d:`M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z`,key:`131961`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`,key:`x3vr5v`}]]),Bm=H(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Vm=H(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),Hm=H(`play`,[[`polygon`,{points:`6 3 20 12 6 21 6 3`,key:`1oa8hb`}]]),Um=H(`repeat`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]),Wm=H(`scale`,[[`path`,{d:`m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z`,key:`7g6ntu`}],[`path`,{d:`m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z`,key:`ijws7r`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`path`,{d:`M12 3v18`,key:`108xh3`}
18],[`path`,{d:`M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2`,key:`3gwbw2`}]]),Gm=H(`search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),Km=H(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),qm=H(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Jm=H(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),Ym=H(`shield-check`,[[`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`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Xm=H(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Zm=H(`smartphone`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),Qm=H(`sparkles`,[[`path`,{d:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z`,key:`4pj2yx`}],[`path`,{d:`M20 3v4`,key:`1olli1`}],[`path`,{d:`M22 5h-4`,key:`1gvqau`}],[`path`,{d:`M4 17v2`,key:`vumght`}],[`path`,{d:`M5 18H3`,key:`zchphs`}]]),$m=H(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),eh=H(`terminal`,[[`polyline`,{points:`4 17 10 11 4 5`,key:`akl6gq`}],[`line`,{x1:`12`,x2:`20`,y1:`19`,y2:`19`,key:`q2wloq`}]]),th=H(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`path`,{d:`M16 3.13a4 4 0 0 1 0 7.75`,key:`1da9ce`}]]),nh=H(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),rh=H(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),ih=H(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),ah=`/assets/favicon-BOkbA4ra.ico`;function oh(){if(typeof navigator<`u`){let e=navigator.userAgent;if(e.includes(`Win`))return`Download Windows App`;if(e.includes(`Mac`))return`Download macOS App`;if(e.includes(`Linux`))return`Download Linux App`}return`Download Desktop App`}function sh({onBookDemo:e}){let[t,n]=(0,C.useState)(!1),[r,i]=(0,C.useState)(!1);(0,C.useEffect)(()=>{let e=()=>{n(window.scrollY>20)};return window.addEventListener(`scroll`,e),()=>window.removeEventListener(`scroll`,e)},[]);let a=()=>`https://knapsack.ai`,o=[{label:`Financial roles`,href:`/financial-services-ai-roles`}];return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(V.nav,{initial:{y:-50,opacity:0},animate:{y:0,opacity:1},transition:{duration:.6},className:`sticky top-0 z-30 w-full transition-all duration-300 bg-white px-4 sm:px-6 md:px-8 lg:px-10`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex h-[100px] lg:h-[140px] items-center justify-between max-w-[1500px] mx-auto pb-4 lg:pb-8 pt-5 px-4 lg:px-0 relative shrink-0 w-full`,children:[(0,z.jsxs)(V.a,{href:a(),whileHover:{scale:1.05},className:`content-stretch flex gap-[4px] items-center justify-start relative shrink-0 cursor-pointer`,children:[(0,z.jsx)(`div`,{className:`bg-center bg-cover bg-no-repeat shrink-0 size-[36px] hidden lg:block`,style:{backgroundImage:`url('${ah}')`}}),(0,z.jsx)(`div`,{className:`flex flex-col font-medium justify-center leading-[0] not-italic relative shrink-0 text-[24px] lg:text-[32px] text-black text-nowrap tracking-[-1px]`,children:(0,z.jsx)(`p`,{className:`leading-[1.05] whitespace-pre font-Spectral font-bold font-normal`,children:`Knapsack`})})]}),(0,z.jsxs)(`div`,{className:`hidden lg:flex content-stretch curs
18or-pointer gap-3 items-center justify-end relative shrink-0`,children:[o.map(e=>(0,z.jsx)(V.a,{whileHover:{y:-2},href:e.href,className:`px-4 py-3 font-Inter text-[15px] text-[#222222] hover:text-[#003a53] transition-colors`,children:e.label},e.label)),(0,z.jsx)(V.a,{whileHover:{scale:1.05,boxShadow:`0 8px 25px rgba(255, 178, 71, 0.3)`},whileTap:{scale:.95},href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`bg-[#ffb247] box-border content-stretch flex flex-col gap-2.5 items-center justify-center overflow-visible px-[22px] py-3.5 relative rounded-[1000px] shrink-0 transition-all duration-300 cursor-pointer`,children:(0,z.jsx)(`div`,{className:`font-normal leading-[0] relative shrink-0 text-[14px] text-black text-center text-nowrap tracking-[-0.35px] cursor-pointer`,children:(0,z.jsx)(`p`,{className:`leading-[1.4] whitespace-pre cursor-pointer`,children:`Try Studio free`})})}),(0,z.jsx)(V.a,{whileHover:{scale:1.05},whileTap:{scale:.95},href:`/desktop`,className:`bg-white border border-[#333333] flex gap-2 items-center justify-center px-6 py-3 md:px-8 md:py-4 rounded-[80px] hover:bg-gray-50 transition-colors`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[18px] text-[14px] md:text-[16px] text-[#222222] whitespace-nowrap`,children:oh()})})]}),(0,z.jsx)(V.button,{whileHover:{scale:1.1},whileTap:{scale:.9},onClick:()=>i(!r),className:`lg:hidden p-2 rounded-lg hover:bg-gray-100 transition-colors`,children:r?(0,z.jsx)(rh,{size:24}):(0,z.jsx)(Lm,{size:24})})]})}),(0,z.jsx)(Uc,{children:r&&(0,z.jsx)(V.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:`auto`},exit:{opacity:0,height:0},className:`lg:hidden fixed top-[100px] left-0 right-0 bg-white/95 backdrop-blur-md shadow-lg z-40 border-t border-gray-200`,children:(0,z.jsxs)(`div`,{className:`px-4 py-6 space-y-4`,children:[o.map((e,t)=>(0,z.jsx)(V.a,{href:e.href,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:t*.1},onClick:()=>i(!1),className:`block py-2 text-lg hover:text-[#003a53] transition-colors`,children:e.label},e.label)),(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 pt-4`,children:[(0,z.jsx)(V.a,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`bg-[#ffb247] text-center py-3 px-6 rounded-full font-normal text-black`,children:`Try Studio free`}),(0,z.jsx)(V.a,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},href:`/desktop`,onClick:()=>i(!1),className:`bg-white border border-[#333333] flex gap-2 items-center justify-center px-6 py-3 rounded-[80px] hover:bg-gray-50 transition-colors`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[18px] text-[14px] text-[#222222] whitespace-nowrap`,children:oh()})})]})]})})})]})}function ch({privacyClaimSafe:e=!1}){let t=(0,C.useRef)(null),n=nm(t,{once:!0,margin:`-100px`}),r={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},i={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}},a=[{title:`Learn more`,links:[`Blog`,`Extension`,`Customer stories`,`Best practices`,`Financial AI Roles`,`Case Study: Financial Advisors`,`Platform Overview`]},{title:`Support`,links:[`Contact`,`Privacy Policy`,`Terms`,`Pricing`]},{title:`Agents`,links:[`Daily Coach`,`Email Autopilot`,`Meeting Notes to CRM`,`Travel Outreach`,`LP Quarterly Update`,`Pitch Evaluator`,`Investment Memorandum Drafter`,`Due Diligence`,`Quarterly Meeting Prep`,`Tax Planning Meeting Prep`,`Year End Tax Planning`,`Discovery Meeting Prep`,`Weekend Strategy Reflections`,`Meeting Prep`,`Meeting Follow Up`,`Workflow Builder`,`Salesforce Case Review`]}],o=e=>{switch(e){case`Blog`:return`https://www.knapsack.ai/blog`;case`Extension`:return`/extension`;case`Case Study: Financial Advisors`:return`/fa`;case`Platform Overview`:return`/platform-overview`;case`Financial AI Roles`:return`/financial-services-ai-roles`;case`Pricing`:return`/pricing`;case`Executive Assistant`:return`/executive-assistant`;case`Enterprise SDR`:return`/enterprise-sdr`;case`Ads Optimizer`:return`/ads-optimizer`;case`Paraplanner`:return`/paraplanner`;case`Project Coordinator`:return`/project-coordinator`;case`Customer Success Manager`:return`/customer-success-manager`;case`Recruiting Coordinator`:return`/recruiting-coordinator`;case`Bookkeeper`:return`/bookkeeper`;case`Creator Coach`:return`/creator-coach`;case`Daily Coach`:return`/daily-coach`;case`Email Autopilot`:return`/email-autopilot`;case`Meeting Notes to CRM`:return`/meeting-notes-to-crm`;
18case`Travel Outreach`:return`/travel-outreach`;case`LP Quarterly Update`:return`/lp-quarterly-update`;case`Pitch Evaluator`:return`/pitch-evaluator`;case`Investment Memorandum Drafter`:return`/investment-memorandum-drafter`;case`Due Diligence`:return`/due-diligence`;case`Quarterly Meeting Prep`:return`/quarterly-meeting-prep`;case`Tax Planning Meeting Prep`:return`/tax-planning-meeting-prep`;case`Year End Tax Planning`:return`/year-end-tax-planning`;case`Discovery Meeting Prep`:return`/discovery-meeting-prep`;case`Weekend Strategy Reflections`:return`/weekend-strategy-reflections`;case`Meeting Prep`:return`/meeting-prep`;case`Meeting Follow Up`:return`/meeting-follow-up`;case`Workflow Builder`:return`/knapmaker`;case`Salesforce Case Review`:return`/salesforce-case-review`;case`Contact`:return`mailto:[email protected]`;case`Terms`:return`https://www.knapsack.ai/terms/`;case`Privacy Policy`:return`https://www.knapsack.ai/privacy-policy/`;default:return`#`}};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(V.footer,{ref:t,variants:r,initial:`hidden`,animate:n?`visible`:`hidden`,className:`relative shrink-0 w-full`,children:(0,z.jsx)(`div`,{className:`flex flex-row items-center justify-center overflow-visible relative w-full`,children:(0,z.jsx)(`div`,{className:`box-border content-stretch flex gap-12 lg:gap-24 items-center justify-center pb-16 lg:pb-[120px] pt-0 px-4 lg:px-16 relative w-full max-w-[1600px] mx-auto`,children:(0,z.jsxs)(`div`,{className:`flex-1 box-border content-stretch flex flex-col gap-16 lg:gap-[120px] items-start justify-start min-h-px min-w-px px-0 py-8 lg:py-20 relative shrink-0`,children:[(0,z.jsx)(`div`,{className:`absolute border-[1px_0px_0px] border-[rgba(0,0,0,0.1)] border-solid inset-0 pointer-events-none`}),(0,z.jsxs)(V.div,{variants:i,className:`content-stretch flex flex-col gap-8 lg:gap-14 items-stretch justify-center relative shrink-0 w-full`,children:[(0,z.jsx)(`div`,{className:`content-stretch flex flex-col items-center justify-center relative shrink-0 w-full pt-0 pb-4`,children:(0,z.jsx)(`h1`,{className:`text-center text-[24px] tracking-[-0.03em] font-[Spectral] text-[#222] leading-[1.4]`,children:e?`Desktop-run OpenClaw • Scoped channel and tool controls • Explicit model choice.`:`SOC 2 Type 2 Certified • HIPAA Compliant • Your data never trains AI models.`})}),(0,z.jsx)(`div`,{className:`w-full border-[1px_0px_0px] border-[#e9e9e9] border-solid`}),(0,z.jsx)(`nav`,{className:`box-border content-stretch flex gap-6 items-start justify-start overflow-visible p-0 relative shrink-0`,children:(0,z.jsx)(V.a,{whileHover:{scale:1.1,y:-2},whileTap:{scale:.9},href:`https://www.linkedin.com/company/getknap/posts/?feedView=all`,target:`_blank`,rel:`noopener noreferrer`,className:`relative shrink-0 p-2 rounded-lg hover:bg-gray-100 transition-colors`,children:(0,z.jsx)(Pm,{size:24,className:`text-black/45 hover:text-[#003a53] transition-colors`})})})]}),(0,z.jsx)(V.div,{variants:r,className:`content-stretch flex flex-col lg:flex-row gap-6 lg:gap-10 items-start justify-start relative shrink-0 w-full flex-wrap`,children:a.map((e,t)=>(0,z.jsxs)(V.nav,{variants:i,className:`box-border content-stretch flex flex-col gap-1 items-start justify-center overflow-visible p-0 relative shrink-0 w-full ${e.title===`Pro Knaps`||e.title===`Agents`?`lg:w-auto`:`lg:w-[130px]`}`,children:[(0,z.jsx)(`div`,{className:`box-border content-stretch flex items-start justify-start pb-2 pt-0 px-0 relative shrink-0 w-full`,children:(0,z.jsx)(`div`,{className:`flex flex-col font-regular justify-center relative shrink-0 text-[16px] text-[#777] text-nowrap`,children:(0,z.jsx)(`p`,{className:`leading-[1.45] whitespace-pre`,children:e.title===`Support`?`Company`:e.title})})}),e.links.filter(e=>e!==`Customer stories`&&e!==`Best practices`).map((e,t)=>(0,z.jsx)(V.a,{href:o(e),target:e===`Terms`||e===`Privacy Policy`||e===`Docs`?`_blank`:void 0,rel:e===`Terms`||e===`Privacy Policy`||e===`Docs`?`noopener noreferrer`:void 0,whileHover:{x:5,color:`#000`},className:`flex flex-col font-normal justify-center leading-[0] not-italic relative shrink-0 text-[16px] text-[#222] hover:text-[#000] w-full transition-colors cursor-pointer`,children:(0,z.jsx)(`span`,{className:`leading-[1.45] transition-colors duration-200`,children:e})},e))]},e.title))})]})})})}),(0,z.jsxs)(V.footer,{variants:i,initial:`hidden`,animate:n?`visible`:`hidden`,className:`box-border content-stretch flex flex-col gap-8 lg:gap-20 items-start justify-end overflow-visible pb-5 pt-4 lg:pt-10 px-4 sm:px-6 lg:px-8 relative shrink-0 w-full`,children:[(0,z.jsx)(`div`,{className:`absolute border-[#e9e9e9] border-[1px_0px_0px] border-solid inset-0 pointer-events-none`}),(0,z.jsxs)(V.div,{variants:i,className:`content-stretch flex flex-col lg:flex-row font-normal gap-4 lg:gap-10 items-start lg:items-end justify-start leading-[0] relative shrink-0 text-[12px] text-nowrap tracking-[-0.12px] w-full`,children:[(0,z.jsx)(`div`,{className:`flex-1 content-stretch flex gap-4 items-center justify-start min-h-px min-w-px relative shrink-0 text-[#003a53]`,children:(0,z.jsx)(`div`,{className:`flex flex-col justify-center relative shrink-0`,children:(0,z.jsx)(`p`,{className:`leading-[1.4] text-nowrap whitespace-pre text-[rgba(69,69,69,1)]`,children:`© Knap Inc., 2025`})})}),(0,z.jsx)(`div`,{className:`flex flex-col justify-center relative shrink-0 text-[#683d00]`,children:(0,z.jsx)(`p`,{className:`leading-[1.4] text-nowrap whitespace-pre text-[rgba(101,101,
18101,1)]`,children:`All Rights Reserved`})})]})]})]})}typeof window<`u`&&window.document&&window.document.createElement;function lh(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function uh(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function dh(...e){return t=>{let n=!1,r=e.map(e=>{let r=uh(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():uh(e[t],null)}}}}function fh(...e){return C.useCallback(dh(...e),e)}function ph(e,t){let n=C.createContext(t),r=e=>{let{children:t,...r}=e,i=C.useMemo(()=>r,Object.values(r));return(0,z.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=C.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function mh(e,t=[]){let n=[];function r(t,r){let i=C.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=C.useMemo(()=>o,Object.values(o));return(0,z.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=C.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>C.createContext(e));return function(n){let r=n?.[e]||t;return C.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,hh(i,...t)]}function hh(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var gh=globalThis?.document?C.useLayoutEffect:()=>{},_h=C.useId||(()=>void 0),vh=0;function yh(e){let[t,n]=C.useState(_h());return gh(()=>{e||n(e=>e??String(vh++))},[e]),e||(t?`radix-${t}`:``)}var bh=C.useInsertionEffect||gh;function xh({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Sh({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=C.useRef(e!==void 0);C.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`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.`),t.current=s},[s,r])}return[c,C.useCallback(t=>{if(s){let n=Ch(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Sh({defaultProp:e,onChange:t}){let[n,r]=C.useState(e),i=C.useRef(n),a=C.useRef(t);return bh(()=>{a.current=t},[t]),C.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Ch(e){return typeof e==`function`}var wh=u(_(),1);function Th(e){let t=Eh(e),n=C.forwardRef((e,n)=>{let{children:r,...i}=e,a=C.Children.toArray(r),o=a.find(Oh);if(o){let e=o.props.children,r=a.map(t=>t===o?C.Children.count(e)>1?C.Children.only(null):C.isValidElement(e)?e.props.children:null:t);return(0,z.jsx)(t,{...i,ref:n,children:C.isValidElement(e)?C.cloneElement(e,void 0,r):null})}return(0,z.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Eh(e){let t=C.forwardRef((e,t)=>{let{children:n,...r}=e;if(C.isValidElement(n)){let e=Ah(n),i=kh(r,n.props);return n.type!==C.Fragment&&(i.ref=t?dh(t,e):e),C.cloneElement(n,i)}return C.Children.count(n)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dh=Symbol(`radix.slottable`);function Oh(e){return C.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Dh}function kh(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Ah(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 jh=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>
vendor: 9,521 bytes, line 18
18{let n=Th(`Primitive.${t}`),r=C.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mh(e,t){e&&wh.flushSync(()=>e.dispatchEvent(t))}function Nh(e){let t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...e)=>t.current?.(...e),[])}function Ph(e,t=globalThis?.document){let n=Nh(e);C.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Fh=`DismissableLayer`,Ih=`dismissableLayer.update`,Lh=`dismissableLayer.pointerDownOutside`,Rh=`dismissableLayer.focusOutside`,zh,Bh=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vh=C.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=C.useContext(Bh),[u,d]=C.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=C.useState({}),m=fh(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=Wh(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=Gh(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return Ph(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),C.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(zh=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Kh(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=zh)}},[u,f,n,l]),C.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Kh())},[u,l]),C.useEffect(()=>{let e=()=>p({});return document.addEventListener(Ih,e),()=>document.removeEventListener(Ih,e)},[]),(0,z.jsx)(jh.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:lh(e.onFocusCapture,S.onFocusCapture),onBlurCapture:lh(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:lh(e.onPointerDownCapture,x.onPointerDownCapture)})});Vh.displayName=Fh;var Hh=`DismissableLayerBranch`,Uh=C.forwardRef((e,t)=>{let n=C.useContext(Bh),r=C.useRef(null),i=fh(t,r);return C.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,z.jsx)(jh.div,{...e,ref:i})});Uh.displayName=Hh;function Wh(e,t=globalThis?.document){let n=Nh(e),r=C.useRef(!1),i=C.useRef(()=>{});return C.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){qh(Lh,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Gh(e,t=globalThis?.document){let n=Nh(e),r=C.useRef(!1);return C.useEffect(()=>{let e=e=>{e.target&&!r.current&&qh(Rh,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Kh(){let e=new CustomEvent(Ih);document.dispatchEvent(e)}function qh(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Mh(i,a):i.dispatchEvent(a)}var Jh=`focusScope.autoFocusOnMount`,Yh=`focusScope.autoFocusOnUnmount`,Xh={bubbles:!1,cancelable:!0},Zh=`FocusScope`,Qh=C.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=C.useState(null),l=Nh(i),u=Nh(a),d=C.useRef(null),f=fh(t,e=>c(e)),p=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:ag(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||ag(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ag(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),C.useEffect(()=>{if(s){og.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Jh,Xh);s.addEventListener(Jh,l),s.dispatchEvent(t),t.defaultPrevented||($h(lg(tg(s)),{select:!0}),document.activeElement===e&&ag(s))}return()=>{s.removeEventListener(Jh,l),setTimeout(()=>{let t=new CustomEvent(Yh,Xh);s.addEventListener(Yh,u),s.dispatchEvent(t),t.defaultPrevented||ag(e??document.body,{select:!0}),s.removeEventListener(Yh,u),og.remove(p)},0)}}},[s,l,u,p]);let m=C.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=eg(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ag(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ag(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,z.jsx)(jh.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});Qh.displayName=Zh;function $h(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ag(r,{select:t}),document.activeElement!==n)return}function eg(e){let t=tg(e);return[ng(t,e),ng(t.reverse(),e)]}function tg(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ng(e,t){for(let n of e)if(!rg(n,{upTo:t}))return n}function rg(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 ig(e){return e instanceof HTMLInputElement&&`select`in e}function ag(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ig(e)&&t&&e.select()}}var og=sg();function sg(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=cg(e,t),e.unshift(t)},remove(t){e=cg(e,t),e[0]?.resume()}}}function cg(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function lg(e){return e.filter(e=>e.tagName!==`A`)}var ug=`Portal`,dg=C.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=C.useState(!1);gh(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?wh.createPortal((0,z.jsx)(jh.div,{...r,ref:t}),o):null});dg.displayName=ug;function fg(e,t){return C.useReducer((e,n)=>t[e][n]??e,e)}var pg=e=>{let{present:t,children:n}=e,r=mg(t),i=typeof n==`function`?n({present:r.isPresent}):C.Children.only(n),a=fh(r.ref,gg(i));return typeof n==`function`||r.isPresent?C.cloneElement(i,{ref:a}):null};pg.displayName=`Presence`;function mg(e){let[t,n]=C.useState(),r=C.useRef(null),i=C.useRef(e),a=C.useRef(`none`),[o,s]=fg(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return C.useEffect(()=>{let e=hg(r.current);a.current=o===`mounted`?e:`none`},[o]),gh(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=hg(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),gh(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=hg(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=hg(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:C.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function hg(e){return e?.animationName||`none`}function gg(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 _g=0;function vg(){C.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??yg()),document.body.insertAdjacentElement(`beforeend`,e[1]??yg()),_g++,()=>{_g===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e
18=>e.remove()),_g--}},[])}function yg(){let 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 bg=function(e,t){return bg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},bg(e,t)};function xg(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);bg(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},U.apply(this,arguments)};function Sg(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function W(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function G(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function K(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function q(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function J(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Cg(e){return this instanceof Cg?(this.v=e,this):new Cg(e)}function wg(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Cg?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function Tg(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof K==`function`?K(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var Eg=`right-scroll-bar-position`,Dg=`width-before-scroll-bar`,Og=`with-scroll-bars-hidden`,kg=`--removed-body-scroll-bar-size`;function Ag(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function jg(e,t){var n=(0,C.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Mg=typeof window<`u`?C.useLayoutEffect:C.useEffect,Ng=new WeakMap;function Pg(e,t){var n=jg(t||null,function(t){return e.forEach(function(e){return Ag(e,t)})});return Mg(function(){var t=Ng.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Ag(e,null)}
vendor: 8,124 bytes, lines 18-58
18),i.forEach(function(e){r.has(e)||Ag(e,a)})}Ng.set(n,e)},[e]),n}function Fg(e){return e}function Ig(e,t){t===void 0&&(t=Fg);var n=[],r=!1;return{read:function(){if(r)throw 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(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Lg(e){e===void 0&&(e={});var t=Ig(null);return t.options=U({async:!0,ssr:!1},e),t}var Rg=function(e){var t=e.sideCar,n=Sg(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return C.createElement(r,U({},n))};Rg.isSideCarExport=!0;function zg(e,t){return e.useMedium(t),Rg}var Bg=Lg(),Vg=function(){},Hg=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:Vg,onWheelCapture:Vg,onTouchMoveCapture:Vg}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Sg(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Pg([n,t]),w=U(U({},b),i);return C.createElement(C.Fragment,null,u&&C.createElement(x,{sideCar:Bg,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?C.cloneElement(C.Children.only(s),U(U({},w),{ref:S})):C.createElement(v,U({},w,{className:c,ref:S}),s))});Hg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Hg.classNames={fullWidth:Dg,zeroRight:Eg};var Ug,Wg=function(){if(Ug)return Ug;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Gg(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Wg();return t&&e.setAttribute(`nonce`,t),e}function Kg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qg(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Jg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gg())&&(Kg(t,n),qg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yg=function(){var e=Jg();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xg=function(){var e=Yg();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Zg={left:0,top:0,right:0,gap:0},Qg=function(e){return parseInt(e||``,10)||0},$g=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Qg(n),Qg(r),Qg(i)]},e_=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Zg;var t=$g(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},t_=Xg(),n_=`data-scroll-locked`,r_=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
19  .${Og} {
20   overflow: hidden ${r};
21   padding-right: ${s}px ${r};
22  }
23  body[${n_}] {
24    overflow: hidden ${r};
25    overscroll-behavior: contain;
26    ${[t&&`position: relative ${r};`,n===`margin`&&`
27    padding-left: ${i}px;
28    padding-top: ${a}px;
29    padding-right: ${o}px;
30    margin-left:0;
31    margin-top:0;
32    margin-right: ${s}px ${r};
33    `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
34  }
35  
36  .${Eg} {
37    right: ${s}px ${r};
38  }
39  
40  .${Dg} {
41    margin-right: ${s}px ${r};
42  }
43  
44  .${Eg} .${Eg} {
45    right: 0 ${r};
46  }
47  
48  .${Dg} .${Dg} {
49    margin-right: 0 ${r};
50  }
51  
52  body[${n_}] {
53    ${kg}: ${s}px;
54  }
55`},i_=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},a_=function(){C.useEffect(function(){return document.body.setAttribute(n_,(i_()+1).toString()),function(){var e=i_()-1;e<=0?document.body.removeAttribute(n_):document.body.setAttribute(n_,e.toString())}},[])},o_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;a_();var a=C.useMemo(function(){return e_(i)},[i]);return C.createElement(t_,{styles:r_(a,!t,i,n?``:`!important`)})},s_=!1;if(typeof window<`u`)try{var c_=Object.defineProperty({},"passive",{get:function(){return s_=!0,!0}});window.addEventListener(`test`,c_,c_),window.removeEventListener(`test`,c_,c_)}catch{s_=!1}var l_=s_?{passive:!1}:!1,u_=function(e){return e.tagName===`TEXTAREA`},d_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!u_(e)&&n[t]===`visible`)},f_=function(e){return d_(e,`overflowY`)},p_=function(e){return d_(e,`overflowX`)},m_=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),__(e,r)){var i=v_(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},h_=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},g_=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},__=function(e,t){return e===`v`?f_(t):p_(t)},v_=function(e,t){return e===`v`?h_(t):g_(t)},y_=function(e,t){return e===`h`&&t===`rtl`?-1:1},b_=function(e,t,n,r,i){var a=y_(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=v_(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&__(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},x_=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},S_=function(e){return[e.deltaX,e.deltaY]},C_=function(e){return e&&`current`in e?e.current:e},w_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},T_=function(e){return`
56  .block-interactivity-${e} {pointer-events: none;}
57  .allow-interactivity-${e} {pointer-events: all;}
58`},E_=0,D_=[];function O_(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),i=C.useState(E_++)[0],a=C.useState(Xg)[0],o=C.useRef(e);C.useEffect(function(){o.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=J([e.lockRef.current],(e.shards||[]).map(C_),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=x_(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=m_(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=m_(d,u)),!f)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var p=r.current||l;return b_(p,t,e,p===`h`?s:c,!0)},[]),c=C.useCallback(function(e){var n=e;if(!(!D_.length||D_[D_.length-1]!==a)){var r=`deltaY`in n?S_(n):x_(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&w_(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(C_).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>
vendor: 4,217 bytes, line 58
580?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=C.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:k_(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=C.useCallback(function(e){n.current=x_(e),r.current=void 0},[]),d=C.useCallback(function(t){l(t.type,S_(t),t.target,s(t,e.lockRef.current))},[]),f=C.useCallback(function(t){l(t.type,x_(t),t.target,s(t,e.lockRef.current))},[]);C.useEffect(function(){return D_.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,l_),document.addEventListener(`touchmove`,c,l_),document.addEventListener(`touchstart`,u,l_),function(){D_=D_.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,l_),document.removeEventListener(`touchmove`,c,l_),document.removeEventListener(`touchstart`,u,l_)}},[]);var p=e.removeScrollBar,m=e.inert;return C.createElement(C.Fragment,null,m?C.createElement(a,{styles:T_(i)}):null,p?C.createElement(o_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function k_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var A_=zg(Bg,O_),j_=C.forwardRef(function(e,t){return C.createElement(Hg,U({},e,{ref:t,sideCar:A_}))});j_.classNames=Hg.classNames;var M_=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},N_=new WeakMap,P_=new WeakMap,F_={},I_=0,L_=function(e){return e&&(e.host||L_(e.parentNode))},R_=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=L_(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},z_=function(e,t,n,r){var i=R_(t,Array.isArray(e)?e:[e]);F_[n]||(F_[n]=new WeakMap);var a=F_[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(N_.get(e)||0)+1,l=(a.get(e)||0)+1;N_.set(e,c),a.set(e,l),o.push(e),c===1&&i&&P_.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),I_++,function(){o.forEach(function(e){var t=N_.get(e)-1,i=a.get(e)-1;N_.set(e,t),a.set(e,i),t||(P_.has(e)||e.removeAttribute(r),P_.delete(e)),i||e.removeAttribute(n)}),I_--,I_||(N_=new WeakMap,N_=new WeakMap,P_=new WeakMap,F_={})}},B_=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||M_(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),z_(r,i,n,`aria-hidden`)):function(){return null}},V_=`Dialog`,[H_,U_]=mh(V_),[W_,G_]=H_(V_),K_=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=C.useRef(null),c=C.useRef(null),[l,u]=xh({prop:r,defaultProp:i??!1,onChange:a,caller:V_});return(0,z.jsx)(W_,{scope:t,triggerRef:s,contentRef:c,contentId:yh(),titleId:yh(),descriptionId:yh(),open:l,onOpenChange:u,onOpenToggle:C.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};K_.displayName=V_;var q_=`DialogTrigger`,J_=C.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=G_(q_,n),a=fh(t,i.triggerRef);return(0,z.jsx)(jh.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":mv(i.open),...r,ref:a,onClick:lh(e.onClick,i.onOpenToggle)})});J_.displayName=q_;var Y_=`DialogPortal`,[X_,Z_]=H_(Y_,{forceMount:void 0}),Q_=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=G_(Y_,t);return(0,z.jsx)(X_,{scope:t,forceMount:n,children:C.Children.map(r,e=>(0,z.jsx)(pg,{present:n||a.open,children:(0,z.jsx)(dg,{asChild:!0,container:i,children:e})}))})};Q_.displayName=Y_;var $_=`DialogOverlay`,ev=C.forwardRef((e,t)=>{let n=Z_($_,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=G_($_,e.__scopeDialog);return a.modal?(0,z.jsx)(pg,{present:r||a.open,children:(0,z.jsx)(nv,{...i,ref:t})}):null});ev.displayName=$_;var tv=Th(`DialogOverlay.RemoveScroll`),nv=C.forwardRef((e,t)=>
58{let{__scopeDialog:n,...r}=e,i=G_($_,n);return(0,z.jsx)(j_,{as:tv,allowPinchZoom:!0,shards:[i.contentRef],children:(0,z.jsx)(jh.div,{"data-state":mv(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),rv=`DialogContent`,iv=C.forwardRef((e,t)=>{let n=Z_(rv,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=G_(rv,e.__scopeDialog);return(0,z.jsx)(pg,{present:r||a.open,children:a.modal?(0,z.jsx)(av,{...i,ref:t}):(0,z.jsx)(ov,{...i,ref:t})})});iv.displayName=rv;var av=C.forwardRef((e,t)=>{let n=G_(rv,e.__scopeDialog),r=C.useRef(null),i=fh(t,n.contentRef,r);return C.useEffect(()=>{let e=r.current;if(e)return B_(e)},[]),(0,z.jsx)(sv,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lh(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:lh(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:lh(e.onFocusOutside,e=>e.preventDefault())})}),ov=C.forwardRef((e,t)=>{let n=G_(rv,e.__scopeDialog),r=C.useRef(!1),i=C.useRef(!1);return(0,z.jsx)(sv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),sv=C.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=G_(rv,n),c=C.useRef(null),l=fh(t,c);return vg(),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Qh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(Vh,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":mv(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(vv,{titleId:s.titleId}),(0,z.jsx)(bv,{contentRef:c,descriptionId:s.descriptionId})]})]})}),cv=`DialogTitle`,lv=C.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=G_(cv,n);return(0,z.jsx)(jh.h2,{id:i.titleId,...r,ref:t})});lv.displayName=cv;var uv=`DialogDescription`,dv=C.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=G_(uv,n);return(0,z.jsx)(jh.p,{id:i.descriptionId,...r,ref:t})});dv.displayName=uv;var fv=`DialogClose`,pv=C.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=G_(fv,n);return(0,z.jsx)(jh.button,{type:`button`,...r,ref:t,onClick:lh(e.onClick,()=>i.onOpenChange(!1))})});pv.displayName=fv;function mv(e){return e?`open`:`closed`}var hv=`DialogTitleWarning`,[gv,_v]=ph(hv,{contentName:rv,titleName:cv,docsSlug:`dialog`}),vv=({titleId:e})=>{let t=_v(hv),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
59
60If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
61
62For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return C.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},yv=`DialogDescriptionWarning`,bv=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_v(yv).contentName}}.`;return C.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},xv=K_,Sv=Q_,Cv=ev,wv=iv,Tv=lv,Ev=dv,Dv=pv;function Ov(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ov(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function kv(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ov(e))&&(r&&(r+=` `),r+=t);return r}var Av=`-`,jv=e=>{let t=Fv(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split(Av);return n[0]===``&&n.length!==1&&n.shift(),Mv(n,t)||Pv(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},Mv=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?Mv(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(Av);return t.validators.find(({validator:e})=>e(a))?.classGroupId},Nv=/^\[(.+)\]$/,Pv=e=>{if(Nv.test(e)){let t=Nv.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}},Fv=e=>{let{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(let e in n)Iv(n[e],r,e,t);return r},Iv=(e,t,n,r)=>
62{e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:Lv(t,e);r.classGroupId=n;return}if(typeof e==`function`){if(Rv(e)){Iv(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{Iv(i,Lv(t,e),n,r)})})},Lv=(e,t)=>{let n=e;return t.split(Av).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Rv=e=>e.isThemeGetter,zv=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},Bv=`!`,Vv=`:`,Hv=1,Uv=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a;for(let o=0;o<e.length;o++){let s=e[o];if(n===0&&r===0){if(s===Vv){t.push(e.slice(i,o)),i=o+Hv;continue}if(s===`/`){a=o;continue}}s===`[`?n++:s===`]`?n--:s===`(`?r++:s===`)`&&r--}let o=t.length===0?e:e.substring(i),s=Wv(o);return{modifiers:t,hasImportantModifier:s!==o,baseClassName:s,maybePostfixModifierPosition:a&&a>i?a-i:void 0}};if(t){let e=t+Vv,n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Wv=e=>e.endsWith(Bv)?e.substring(0,e.length-1):e.startsWith(Bv)?e.substring(1):e,Gv=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;let n=[],r=[];return e.forEach(e=>{e[0]===`[`||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},Kv=e=>({cache:zv(e.cacheSize),parseClassName:Uv(e),sortModifiers:Gv(e),...jv(e)}),qv=/\s+/,Jv=(e,t)=>
vendor: 4,114 bytes, line 62
62{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(qv),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=a(u).join(`:`),_=d?g+Bv:g,v=_+h;if(o.includes(v))continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c};function Yv(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=Xv(t))&&(r&&(r+=` `),r+=n);return r}var Xv=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Xv(e[r]))&&(n&&(n+=` `),n+=t);return n};function Zv(e,...t){let n,r,i,a=o;function o(o){return n=Kv(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=Jv(e,n);return i(e,a),a}return function(){return a(Yv.apply(null,arguments))}}var Qv=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},$v=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ey=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ty=/^\d+\/\d+$/,ny=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ry=/\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$/,iy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ay=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sy=e=>ty.test(e),Y=e=>!!e&&!Number.isNaN(Number(e)),cy=e=>!!e&&Number.isInteger(Number(e)),ly=e=>e.endsWith(`%`)&&Y(e.slice(0,-1)),uy=e=>ny.test(e),dy=()=>!0,fy=e=>ry.test(e)&&!iy.test(e),py=()=>!1,my=e=>ay.test(e),hy=e=>oy.test(e),gy=e=>!X(e)&&!Z(e),_y=e=>ky(e,Ny,py),X=e=>$v.test(e),vy=e=>ky(e,Py,fy),yy=e=>ky(e,Fy,Y),by=e=>ky(e,jy,py),xy=e=>ky(e,My,hy),Sy=e=>ky(e,Ly,my),Z=e=>ey.test(e),Cy=e=>Ay(e,Py),wy=e=>Ay(e,Iy),Ty=e=>Ay(e,jy),Ey=e=>Ay(e,Ny),Dy=e=>Ay(e,My),Oy=e=>Ay(e,Ly,!0),ky=(e,t,n)=>{let r=$v.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ay=(e,t,n=!1)=>{let r=ey.exec(e);return r?r[1]?t(r[1]):n:!1},jy=e=>e===`position`||e===`percentage`,My=e=>e===`image`||e===`url`,Ny=e=>e===`length`||e===`size`||e===`bg-size`,Py=e=>e===`length`,Fy=e=>e===`number`,Iy=e=>e===`family-name`,Ly=e=>e===`shadow`,Ry=Zv(()=>{let e=Qv(`color`),t=Qv(`font`),n=Qv(`text`),r=Qv(`font-weight`),i=Qv(`tracking`),a=Qv(`leading`),o=Qv(`breakpoint`),s=Qv(`container`),c=Qv(`spacing`),l=Qv(`radius`),u=Qv(`shadow`),d=Qv(`inset-shadow`),f=Qv(`text-shadow`),p=Qv(`drop-shadow`),m=Qv(`blur`),h=Qv(`perspective`),g=Qv(`aspect`),_=Qv(`ease`),v=Qv(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Z,X],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Z,X,c],T=()=>[sy,`full`,`auto`,...w()],ee=()=>[cy,`none`,`subgrid`,Z,X],E=()=>[`auto`,{span:[`full`,cy,Z,X]},cy,Z,X],D=()=>[cy,`auto`,Z,X],te=()=>[`auto`,`min`,`max`,`fr`,Z,X],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],re=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ie=()=>[`auto`,...w()],ae=()=>[sy,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],O=()=>[e,Z,X],oe=()=>[...b(),Ty,by,{position:[Z,X]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],k=()=>[`auto`,`cover`,`contain`,Ey,_y,{size:[Z,X]}],ce=()=>[ly,Cy,vy],A=()=>[``,`none`,`full`,l,Z,X],le=()=>[``,Y,Cy,vy],ue=()=>[`solid`,`dashed`,`dotted`,`double`],de=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],fe=()=>[Y,ly,Ty,by],pe=()=>[``,`none`,m,Z,X],me=()=>[`none`,Y,Z,X],he=()=>[`none`,Y,Z,X],ge=()=>
vendor: 6,274 bytes, line 62
62[Y,Z,X],_e=()=>[sy,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[uy],breakpoint:[uy],color:[dy],container:[uy],"drop-shadow":[uy],ease:[`in`,`out`,`in-out`],font:[gy],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[uy],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[uy],shadow:[uy],spacing:[`px`,Y],text:[uy],"text-shadow":[uy],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,sy,X,Z,g]}],container:[`container`],columns:[{columns:[Y,X,Z,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[cy,`auto`,Z,X]}],basis:[{basis:[sy,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Y,sy,`auto`,`initial`,`none`,X]}],grow:[{grow:[``,Y,Z,X]}],shrink:[{shrink:[``,Y,Z,X]}],order:[{order:[cy,`first`,`last`,`none`,Z,X]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...re(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...re()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...re(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...re(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...re(),`baseline`]}],"place-self":[{"place-self":[`auto`,...re()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ae()}],w:[{w:[s,`screen`,...ae()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ae()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ae()]}],h:[{h:[`screen`,`lh`,...ae()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ae()]}],"max-h":[{"max-h":[`screen`,`lh`,...ae()]}],"font-size":[{text:[`base`,n,Cy,vy]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Z,yy]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ly,X]}],"font-family":[{font:[wy,X,t]}],"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,Z,X]}],"line-clamp":[{"line-clamp":[Y,`none`,Z,yy]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Z,X]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Z,X]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[Y,`from-font`,`auto`,Z,vy]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Y,`auto`,Z,X]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Z,X]}],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`,Z,X]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:k()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},cy,Z,X],radial:[``,Z,X],conic:[cy,Z,X]},Dy,xy]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:ce()}
vendor: 8,626 bytes, line 62
62],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":le()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`hidden`,`none`]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Y,Z,X]}],"outline-w":[{outline:[``,Y,Cy,vy]}],"outline-color":[{outline:O()}],shadow:[{shadow:[``,`none`,u,Oy,Sy]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":[`none`,d,Oy,Sy]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:le()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Y,vy]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":[`none`,f,Oy,Sy]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Y,Z,X]}],"mix-blend":[{"mix-blend":[...de(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":de()}],"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":[Y]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[Z,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[Y]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Z,X]}],filter:[{filter:[``,`none`,Z,X]}],blur:[{blur:pe()}],brightness:[{brightness:[Y,Z,X]}],contrast:[{contrast:[Y,Z,X]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Oy,Sy]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:[``,Y,Z,X]}],"hue-rotate":[{"hue-rotate":[Y,Z,X]}],invert:[{invert:[``,Y,Z,X]}],saturate:[{saturate:[Y,Z,X]}],sepia:[{sepia:[``,Y,Z,X]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Z,X]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[Y,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[Y,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Y,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Y,Z,X]}],"backdrop-invert":[{"backdrop-invert":[``,Y,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[Y,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[Y,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":[``,Y,Z,X]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Z,X]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Y,`initial`,Z,X]}],ease:[{ease:[`linear`,`initial`,_,Z,X]}],delay:[{delay:[Y,Z,X]}],animate:[{animate:[`none`,v,Z,X]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Z,X]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":[`scale-3d`],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[Z,X,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":[`translate-none`],accent:[{accent:O()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:O()}],"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`,Z,X]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`]}
62],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`,Z,X]}],fill:[{fill:[`none`,...O()]}],"stroke-w":[{stroke:[Y,Cy,vy,yy]}],stroke:[{stroke:[`none`,...O()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],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-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function zy(...e){return Ry(kv(e))}function By({...e}){return(0,z.jsx)(xv,{"data-slot":`dialog`,...e})}function Vy({...e}){return(0,z.jsx)(Sv,{"data-slot":`dialog-portal`,...e})}function Hy({...e}){return(0,z.jsx)(Dv,{"data-slot":`dialog-close`,...e})}var Uy=C.forwardRef(({className:e,...t},n)=>(0,z.jsx)(Cv,{ref:n,"data-slot":`dialog-overlay`,className:zy(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50`,e),...t}));Uy.displayName=Cv.displayName;var Wy=C.forwardRef(({className:e,children:t,...n},r)=>(0,z.jsxs)(Vy,{"data-slot":`dialog-portal`,children:[(0,z.jsx)(Uy,{}),(0,z.jsxs)(wv,{ref:r,"data-slot":`dialog-content`,className:zy(`bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-xl md:max-w-2xl`,e),...n,children:[t,(0,z.jsxs)(Dv,{className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,z.jsx)(rh,{}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));Wy.displayName=wv.displayName;function Gy({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`dialog-header`,className:zy(`flex text-center sm:text-left`,e),...t})}function Ky({className:e,...t}){return(0,z.jsx)(Tv,{"data-slot":`dialog-title`,className:zy(`text-lg leading-none font-semibold`,e),...t})}function qy({className:e,...t}){return(0,z.jsx)(Ev,{"data-slot":`dialog-description`,className:zy(`text-muted-foreground text-sm`,e),...t})}function Jy({isOpen:e,onClose:t,calendlyUrl:n=`https://calendly.com/mark-knap/discovery`}){let[r,i]=(0,C.useState)(!1),[a,o]=(0,C.useState)(``),[s,c]=(0,C.useState)(``);return(0,C.useEffect)(()=>{e||(i(!1),o(``),c(``))},[e]),(0,C.useEffect)(()=>
62{if(!e||!r)return;let t=setTimeout(()=>{let e=document.getElementById(`calendly-inline-widget`);e&&(e.innerHTML=`
63          <iframe
64            src="${n}?embed_domain=${window.location.hostname}&embed_type=Inline&hide_event_type_details=1&hide_gdpr_banner=1"
65            width="100%"
66            frameborder="0"
67            scrolling="auto"
68            style="border: none; border-radius: 8px; min-height: 800px; height: auto;"
69            title="Schedule a demo with Knapsack"
70          ></iframe>
71        `)},100);return()=>{clearTimeout(t)}},[e,r,n]),(0,z.jsx)(By,{open:e,onOpenChange:t,children:(0,z.jsxs)(Wy,{className:`max-w-[100%] sm:max-w-[80dvw] max-h-[90vh] p-0 overflow-y-auto gap-0`,children:[(0,z.jsx)(Gy,{className:`sticky top-0 bg-white z-10 p-6 pb-0`,children:(0,z.jsxs)(`div`,{className:`flex items-start justify-between`,children:[(0,z.jsxs)(`div`,{className:`flex-1`,children:[(0,z.jsx)(Ky,{className:`mb-2`,children:`Book a Discovery Call`}),(0,z.jsx)(qy,{children:r?`Select a time that works for you.`:`Tell us a bit about what you'd like to discuss.`})]}),(0,z.jsxs)(Hy,{className:`md:hidden rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none`,children:[(0,z.jsx)(rh,{className:`h-4 w-4`}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})}),(0,z.jsx)(`div`,{className:`p-6`,children:r?(0,z.jsx)(`div`,{id:`calendly-inline-widget`,className:`w-full rounded-lg overflow-hidden bg-white`}):(0,z.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),a.trim()&&s.trim()&&i(!0)},className:`space-y-6`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`label`,{htmlFor:`email`,className:`block text-sm font-medium text-gray-700 mb-2`,children:`Email address`}),(0,z.jsx)(`input`,{type:`email`,id:`email`,required:!0,value:s,onChange:e=>c(e.target.value),className:`w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#003a53] focus:border-transparent`,placeholder:`[email protected]`})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`label`,{htmlFor:`intent`,className:`block text-sm font-medium text-gray-700 mb-2`,children:`What would you like to discuss? *`}),(0,z.jsx)(`textarea`,{id:`intent`,required:!0,value:a,onChange:e=>o(e.target.value),rows:4,className:`w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#003a53] focus:border-transparent`,placeholder:`Tell us about your use case, questions, or what you'd like to explore...`})]}),(0,z.jsxs)(`div`,{className:`flex gap-3`,children:[(0,z.jsx)(`button`,{type:`submit`,className:`flex-1 bg-[#ffb247] hover:bg-[#ffa733] text-black py-3 px-6 rounded-full font-medium transition-all`,children:`Continue to Calendar`}),(0,z.jsx)(`button`,{type:`button`,onClick:t,className:`px-6 py-3 border border-gray-300 rounded-full font-medium hover:bg-gray-50 transition-all`,children:`Cancel`})]})]})})]})})}var Yy=(0,C.createContext)(null),Xy=()=>{let e=(0,C.useContext)(Yy);if(!e)throw Error(`useCalendly must be used within a CalendlyProvider`);return e},Zy=({children:e,openCalendlyModal:t})=>(0,z.jsx)(Yy.Provider,{value:{openCalendlyModal:t},children:e}),Qy;(function(e){e.SET=`$set`,e.SET_ONCE=`$setOnce`,e.ADD=`$add`,e.APPEND=`$append`,e.PREPEND=`$prepend`,e.REMOVE=`$remove`,e.PREINSERT=`$preInsert`,e.POSTINSERT=`$postInsert`,e.UNSET=`$unset`,e.CLEAR_ALL=`$clearAll`})(Qy||={});var $y;(function(e){e.IDENTIFY=`$identify`,e.GROUP_IDENTIFY=`$groupidentify`,e.REVENUE=`revenue_amount`})($y||={});var eb=`AMP_unsent`,tb=`$default_instance`,nb=`https://api2.amplitude.com/2/httpapi`,rb=`https://api.eu.amplitude.com/2/httpapi`,ib=`https://api2.amplitude.com/batch`,ab=`https://api.eu.amplitude.com/batch`,ob=`utm_campaign`,sb=`utm_content`,cb=`utm_id`,lb=`utm_medium`,ub=`utm_source`,db=`utm_term`,fb=`dclid`,pb=`fbclid`,mb=`gbraid`,hb=`gclid`,gb=`ko_click_id`,_b=`li_fat_id`,vb=`msclkid`,yb=`rdt_cid`,bb=`ttclid`,xb=`twclid`,Sb=`wbraid`,Cb={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},wb=`access-control-allow-origin.access-control-allow-credentials.access-control-expose-headers.access-control-max-age.access-control-allow-methods.access-control-allow-headers.accept-patch.accept-ranges.age.allow.alt-svc.cache-control.connection.content-disposition.content-encoding.content-language.content-length.content-location.content-md5.content-range.content-type.date.delta-base.etag.expires.im.last-modified.link.location.permanent.p3p.pragma.proxy-authenticate.public-key-pins.retry-after.server.status.strict-transport-security.trailer.transfer-encoding.tk.upgrade.vary.via.warning.www-authenticate.x-b3-traceid.x-frame-options`.split(`.`),Tb=[`authorization`,`cookie`,`set-cookie`],Eb=1e3,Db=function(e){if(Object.keys(e).length>Eb)return!1;for(var t in e){var n=e[t];if(!Ob(t,n))return!1}return!0},Ob=function(e,t){var n,r;if(typeof e!=`string`)return!1;if(Array.isArray(t)){var i=!0;try{for(var a=K(t),o=a.next();!o.done;o=a.next()){var s=o.value;if(Array.isArray(s))return!1;if(typeof s==`object`)i&&=Db(s);else if(![`number`,`string`].includes(typeof s))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}else if(t==null)return!1;else if(typeof t==`object`)return Db(t);else if(![`number`,`string`,`boolean`].includes(typeof t))return!1;return!0},kb=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return U({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(Ab.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(Ab.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(Ab.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(Ab.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(Ab.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(Ab.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(Ab.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(Ab.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(Ab.UNSET,e,`-`),this},e.prototype.clearAll=function(){return this._properties={},this._properties[Ab.CLEAR_ALL]=`-`,this}
71,e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return r===void 0&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return this._properties[Ab.CLEAR_ALL]!==void 0||this._propertySet.has(t)?!1:e===Ab.ADD?typeof n==`number`:e!==Ab.UNSET&&e!==Ab.REMOVE?Ob(t,n):!0},e}(),Ab;(function(e){e.SET=`$set`,e.SET_ONCE=`$setOnce`,e.ADD=`$add`,e.APPEND=`$append`,e.PREPEND=`$prepend`,e.REMOVE=`$remove`,e.PREINSERT=`$preInsert`,e.POSTINSERT=`$postInsert`,e.UNSET=`$unset`,e.CLEAR_ALL=`$clearAll`})(Ab||={});var jb=[Ab.CLEAR_ALL,Ab.UNSET,Ab.SET,Ab.SET_ONCE,Ab.ADD,Ab.APPEND,Ab.PREPEND,Ab.PREINSERT,Ab.POSTINSERT,Ab.REMOVE],Mb=`Event tracked successfully`,Nb=`Unexpected error occurred`,Pb=`Event rejected due to exceeded retry count`,Fb=`Event skipped due to optOut config`,Ib=`Event rejected due to missing API key`,Lb=`Client not initialized`,Rb;(function(e){e.Unknown=`unknown`,e.Skipped=`skipped`,e.Success=`success`,e.RateLimit=`rate_limit`,e.PayloadTooLarge=`payload_too_large`,e.Invalid=`invalid`,e.Failed=`failed`,e.Timeout=`Timeout`,e.SystemError=`SystemError`})(Rb||={});var zb=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Rb.Unknown),{event:e,code:t,message:n}},Bb=function(){var e=`ampIntegrationContext`;if(typeof globalThis<`u`&&globalThis[e]!==void 0)return globalThis[e];if(typeof globalThis<`u`)return globalThis;if(typeof window<`u`)return window;if(typeof self<`u`)return self;if(typeof global<`u`)return global},Vb=function(e){return e?(e^Math.random()*16>>e/4).toString(16):`10000000-1000-4000-8000-100000000000`.replace(/[018]/g,Ub)},Hb=J([],q(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,`0`)}),Ub=function(e){var t=Bb();if(!t?.crypto?.getRandomValues)return Vb(e);var n=t.crypto.getRandomValues(new Uint8Array(16));return n[6]=n[6]&15|64,n[8]=n[8]&63|128,J([],q(n.entries()),!1).map(function(e){var t=q(e,2),n=t[0],r=t[1];return[4,6,8,10].includes(n)?`-${Hb[r]}`:Hb[r]}).join(``)},Wb=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){return W(this,void 0,void 0,function(){return G(this,function(n){switch(n.label){case 0:return this.plugins.some(function(t){return t.name===e.name})?(this.loggerProvider.warn(`Plugin with name ${e.name} already exists, skipping registration`),[2]):(e.name===void 0&&(e.name=Ub(),this.loggerProvider.warn(`Plugin name is undefined. 
72      Generating a random UUID for plugin name: ${e.name}. 
73      Set a name for the plugin to prevent it from being added multiple times.`)),e.type=e.type??`enrichment`,[4,e.setup?.call(e,t,this.client)]);case 1:return n.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){return W(this,void 0,void 0,function(){var n,r;return G(this,function(i){switch(i.label){case 0:return n=this.plugins.findIndex(function(t){return t.name===e}),n===-1?(t.loggerProvider.warn(`Plugin with name ${e} does not exist, skipping deregistration`),[2]):(r=this.plugins[n],this.plugins.splice(n,1),[4,r.teardown?.call(r)]);case 1:return i.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){return e.teardown?.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return W(this,void 0,void 0,function(){var t,n,r,i,a,o,s,c,l,u,d,f,p,c,l,m,h,g,_,v,y,b;return G(this,function(x){switch(x.label){case 0:if(!e)return[2];t=q(e,1),n=t[0],r=q(e,2),i=r[1],this.loggerProvider.log(`Timeline.apply: Initial event`,n),a=this.plugins.filter(function(e){return e.type===`before`}),x.label=1;case 1:x.trys.push([1,6,7,8]),o=K(a),s=o.next(),x.label=2;case 2:return s.done?[3,5]:(c=s.value,c.execute?[4,c.execute(U({},n))]:[3,4]);case 3:if(l=x.sent(),l===null)return this.loggerProvider.log(`Timeline.apply: Event filtered out by before plugin '${String(c.name)}', event: ${JSON.stringify(n)}`),i({event:n,code:0,message:``}),[2];n=l,this.loggerProvider.log(`Timeline.apply: Event after before plugin '${String(c.name)}', event: ${JSON.stringify(n)}`),x.label=4;case 4:return s=o.next(),[3,2];case 5:return[3,8];case 6:return u=x.sent(),_={error:u},[3,8];case 7:try{s&&!s.done&&(v=o.return)&&v.call(o)}finally{if(_)throw _.error}
73return[7];case 8:d=this.plugins.filter(function(e){return e.type===`enrichment`||e.type===void 0}),x.label=9;case 9:x.trys.push([9,14,15,16]),f=K(d),p=f.next(),x.label=10;case 10:return p.done?[3,13]:(c=p.value,c.execute?[4,c.execute(U({},n))]:[3,12]);case 11:if(l=x.sent(),l===null)return this.loggerProvider.log(`Timeline.apply: Event filtered out by enrichment plugin '${String(c.name)}', event: ${JSON.stringify(n)}`),i({event:n,code:0,message:``}),[2];n=l,this.loggerProvider.log(`Timeline.apply: Event after enrichment plugin '${String(c.name)}', event: ${JSON.stringify(n)}`),x.label=12;case 12:return p=f.next(),[3,10];case 13:return[3,16];case 14:return m=x.sent(),y={error:m},[3,16];case 15:try{p&&!p.done&&(b=f.return)&&b.call(f)}finally{if(y)throw y.error}return[7];case 16:return h=this.plugins.filter(function(e){return e.type===`destination`}),this.loggerProvider.log(`Timeline.apply: Final event before destinations, event: ${JSON.stringify(n)}`),g=h.map(function(e){var t=U({},n);return e.execute(t).catch(function(e){return zb(t,0,String(e))})}),Promise.all(g).then(function(e){var t=q(e,1)[0]||zb(n,100,`Event not tracked, no destination plugins on the instance`);i(t)}),[2]}})})},e.prototype.flush=function(){return W(this,void 0,void 0,function(){var e,t,n,r=this;return G(this,function(i){switch(i.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return r.apply(e)}))];case 1:return i.sent(),t=this.plugins.filter(function(e){return e.type===`destination`}),n=t.map(function(e){return e.flush&&e.flush()}),[4,Promise.all(n)];case 2:return i.sent(),[2]}})})},e.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var n;(n=t.onIdentityChanged)==null||n.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var n;(n=t.onSessionIdChanged)==null||n.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var n;(n=t.onOptOutChanged)==null||n.call(t,e)})},e}(),Gb=function(e,t,n){return U(U(U({},typeof e==`string`?{event_type:e}:e),n),t&&{event_properties:t})},Kb=function(e,t){return U(U({},t),{event_type:$y.IDENTIFY,user_properties:e.getUserProperties()})},qb=function(e,t,n,r){var i;return U(U({},r),{event_type:$y.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(i={},i[e]=t,i)})},Jb=function(e,t,n){var r,i=new kb;return i.set(e,t),U(U({},n),{event_type:$y.IDENTIFY,user_properties:i.getUserProperties(),groups:(r={},r[e]=t,r)})},Yb=function(e,t){return U(U({},t),{event_type:$y.REVENUE,event_properties:e.getEventProperties()})},Xb=function(e){return{promise:e||Promise.resolve()}},Zb=function(){function e(e){e===void 0&&(e=`$default`),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new Wb(this),this.name=e}return e.prototype._init=function(e){return W(this,void 0,void 0,function(){return G(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions(`q`)];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return W(this,void 0,void 0,function(){var t,n,r,i,a,o,s,c;return G(this,function(l){switch(l.label){case 0:t=this[e],this[e]=[],l.label=1;case 1:l.trys.push([1,8,9,10]),n=K(t),r=n.next(),l.label=2;case 2:return r.done?[3,7]:(i=r.value,a=i(),a&&`promise`in a?[4,a.promise]:[3,4]);case 3:return l.sent(),[3,6];case 4:return[4,a];case 5:l.sent(),l.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o=l.sent(),s={error:o},[3,10];case 9:try{r&&!r.done&&(c=n.return)&&c.call(n)}finally{if(s)throw s.error}return[7];case 10:return this[e].length?[4,this.runQueuedFunctions(e)]:[3,12];case 11:l.sent(),l.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=Gb(e,t,n);return Xb(this.dispatch(r))},e.prototype.identify=function(e,t){var n=Kb(e,t);return Xb(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=qb(e,t,n,r);return Xb(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=Jb(e,t,n);return Xb(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=Yb(e,t);return Xb(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),Xb())},e.prototype._addPlugin=function(e){return Xb(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),Xb())},e.prototype._removePlugin=function(e){return Xb(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(zb(e,0,Lb));this.process(e).then(t)},e.prototype.dispatch=function(e){return W(this,void 0,void 0,function(){var t=this;return G(this,function(n){return this.isReady?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.getOperationAppliedUserProperties=function(e){var t={};if(e===void 0)return t;var n={};return Object.keys(e).forEach(function(t){Object.values(Qy).includes(t)||(n[t]=e[t])}),jb.forEach(function(n){if(Object.keys(e).includes(n)){var r=e[n];switch(n){case Qy.CLEAR_ALL:Object.keys(t).forEach(function(e){delete t[e]});break;case Qy.UNSET:Object.keys(r).forEach(function(e){delete t[e]});break;case Qy.SET:Object.assign(t,r);break}}}),Object.assign(t,n),t},e.prototype.process=function(e){return W(this,void 0,void 0,function(){var t,n,r,i,n;return G(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),this.config.optOut?[2,zb(e,0,Fb)]:(e.event_type===$y.IDENTIFY&&(t=this.getOperationAppliedUserProperties(e.user_properties),this.timeline.onIdentityChanged({userProperties:t})),[4,this.timeline.push(e)]);case 1:return n=a.sent(),n.code===200?this.config.loggerProvider.log(n.message):n.co
73de===100?this.config.loggerProvider.warn(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return r=a.sent(),i=String(r),this.config.loggerProvider.error(i),n=zb(e,0,i),[2,n];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!e));return}this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.timeline.onOptOutChanged(e),this.config.optOut=!!e)},e.prototype.flush=function(){return Xb(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});if(t===void 0){this.config.loggerProvider.debug(`Cannot find plugin with name ${e}`);return}return t},e.prototype.plugins=function(e){return this.timeline.plugins.filter(function(t){return t instanceof e})},e}(),Qb=function(){function e(e,t){this.key=`AMP_remote_config_${e.substring(0,10)}`,this.logger=t}return e.prototype.fetchConfig=function(){var e=null,t={remoteConfig:null,lastFetch:new Date};try{e=localStorage.getItem(this.key)}catch(e){return this.logger.debug(`Remote config localstorage failed to access: `,e),Promise.resolve(t)}if(e===null)return this.logger.debug(`Remote config localstorage gets null because the key does not exist`),Promise.resolve(t);try{var n=JSON.parse(e);return this.logger.debug(`Remote config localstorage parsed successfully: ${JSON.stringify(n)}`),Promise.resolve({remoteConfig:n.remoteConfig,lastFetch:new Date(n.lastFetch)})}catch(e){return this.logger.debug(`Remote config localstorage failed to parse: `,e),localStorage.removeItem(this.key),Promise.resolve(t)}},e.prototype.setConfig=function(e){try{return localStorage.setItem(this.key,JSON.stringify(e)),this.logger.debug(`Remote config localstorage set successfully.`),Promise.resolve(!0)}catch(e){this.logger.debug(`Remote config localstorage failed to set: `,e)}return Promise.resolve(!1)},e}(),$b=`https://sr-client-cfg.amplitude.com/config`,ex=`https://sr-client-cfg.eu.amplitude.com/config`,tx=1e3,nx=function(){function e(e,t,n){n===void 0&&(n=`US`),this.callbackInfos=[],this.apiKey=e,this.serverUrl=n===`US`?$b:ex,this.logger=t,this.storage=new Qb(e,t)}return e.prototype.subscribe=function(e,t,n){var r=Ub(),i={id:r,key:e,deliveryMode:t,callback:n};return this.callbackInfos.push(i),t===`all`?this.subscribeAll(i):this.subscribeWaitForRemote(i,t.timeout),r},e.prototype.unsubscribe=function(e){var t=this.callbackInfos.findIndex(function(t){return t.id===e});return t===-1?(this.logger.debug(`Remote config client unsubscribe failed because callback with id ${e} doesn't exist.`),!1):(this.callbackInfos.splice(t,1),this.logger.debug(`Remote config client unsubscribe succeeded removing callback with id ${e}.`),!0)},e.prototype.updateConfigs=function(){return W(this,void 0,void 0,function(){var e,t=this;return G(this,function(n){switch(n.label){case 0:return[4,this.fetch()];case 1:return e=n.sent(),this.storage.setConfig(e),this.callbackInfos.forEach(function(n){t.sendCallback(n,e,`remote`)}),[2]}})})},e.prototype.subscribeAll=function(e){return W(this,void 0,void 0,function(){var t,n,r,i=this;return G(this,function(a){switch(a.label){case 0:return t=this.fetch().then(function(t){i.logger.debug(`Remote config client subscription all mode fetched from remote: ${JSON.stringify(t)}`),i.sendCallback(e,t,`remote`),i.storage.setConfig(t)}),n=this.storage.fetchConfig().then(function(e){return e}),[4,Promise.race([t,n])];case 1:return r=a.sent(),r!==void 0&&(this.logger.debug(`Remote config client subscription all mode fetched from cache: ${JSON.stringify(r)}`),this.sendCallback(e,r,`cache`)),[4,t];case 2:return a.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(e,t){return W(this,void 0,void 0,function(){var n,r,r;return G(this,function(i){switch(i.label){case 0:n=new Promise(function(e,n){setTimeout(function(){n(`Timeout exceeded`)},t)}),i.label=1;case 1:return i.trys.push([1,3,,5]),[4,Promise.race([this.fetch(),n])];case 2:return r=i.sent(),this.logger.debug(`Remote config client subscription wait for remote mode returns from remote.`),this.sendCallback(e,r,`remote`),this.storage.setConfig(r),[3,5];case 3:return i.sent(),this.logger.debug(`Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache.`),[4,this.storage.fetchConfig()];case 4:return r=i.sent(),r.remoteConfig===null?(this.logger.debug(`Remote config client subscription wait for remote mode failed to fetch cache.`),this.sendCallback(e,r,`remote`)):(this.logger.debug(`Remote config client subscription wait for remote mode returns a cached copy.`),this.sendCallback(e,r,`cache`)),[3,5];case 5:return[2]}})})},e.prototype.sendCallback=function(e,t,n){e.lastCallback=new Date;var r=e.key?e.key.split(`.`).reduce(function(e,t){return e===null?e:t in e?e[t]:null},t.remoteConfig):t.remoteConfig;e.callback(r,n,t.lastFetch)},e.prototype.fetch=function(e,t){return e===void 0&&(e=3),t===void 0&&(t=tx),W(this,void 0,void 0,function(){var n,r,i,a,o,s,c=this;return G(this,function(l){switch(l.label){case 0:n=t/e,r={remoteConfig:null,lastFetch:new Date},i=function(r){var i,o,s,l,u,d;return G(this,function(f){switch(f.label){case 0:i=new AbortController,o=setTimeout(function(){return i.abort()},t),f.label=1;case 1:return f.trys.push([1,7,8,9]),[4,fetch(a.getUrlParams(),{method:`GET`,headers:{Accept:`*/*`},signal:i.signal})];case 2:return s=f.sent(),s.ok?[3,4]:[4,s.text()];case 3:return l=f.sent(),a.logger.debug(`Remote config client fetch with retry time ${e} failed with ${s.status}: ${l}`),[3,6];case 4:return[4,s.json()];case 5:return u=f.sent(),[2,{value:{remoteConfig:u,lastFetch:new Date}}];case 6:return[3,9];
73case 7:return d=f.sent(),d instanceof Error&&d.name===`AbortError`?a.logger.debug(`Remote config client fetch with retry time ${e} timed out after ${t}ms`):a.logger.debug(`Remote config client fetch with retry time ${e} is rejected because: `,d),[3,9];case 8:return clearTimeout(o),[7];case 9:return r<e-1?[4,new Promise(function(e){return setTimeout(e,c.getJitterDelay(n))})]:[3,11];case 10:f.sent(),f.label=11;case 11:return[2]}})},a=this,o=0,l.label=1;case 1:return o<e?[5,i(o)]:[3,4];case 2:if(s=l.sent(),typeof s==`object`)return[2,s.value];l.label=3;case 3:return o++,[3,1];case 4:return[2,r]}})})},e.prototype.getJitterDelay=function(e){return Math.floor(Math.random()*e)},e.prototype.getUrlParams=function(){var t=encodeURIComponent(this.apiKey),n=new URLSearchParams;return n.append(`config_group`,e.CONFIG_GROUP),`${this.serverUrl}/${t}?${n.toString()}`},e.CONFIG_GROUP=`browser`,e}(),rx;(function(e){e[e.None=0]=`None`,e[e.Error=1]=`Error`,e[e.Warn=2]=`Warn`,e[e.Verbose=3]=`Verbose`,e[e.Debug=4]=`Debug`})(rx||={});var ix=`Amplitude Logger `,ax=function(){function e(){this.logLevel=rx.None}return e.prototype.disable=function(){this.logLevel=rx.None},e.prototype.enable=function(e){e===void 0&&(e=rx.Warn),this.logLevel=e},e.prototype.log=function(){var e=[...arguments];this.logLevel<rx.Verbose||console.log(`${ix}[Log]: ${e.join(` `)}`)},e.prototype.warn=function(){var e=[...arguments];this.logLevel<rx.Warn||console.warn(`${ix}[Warn]: ${e.join(` `)}`)},e.prototype.error=function(){var e=[...arguments];this.logLevel<rx.Error||console.error(`${ix}[Error]: ${e.join(` `)}`)},e.prototype.debug=function(){var e=[...arguments];this.logLevel<rx.Debug||console.log(`${ix}[Debug]: ${e.join(` `)}`)},e}(),ox=function(){function e(){this.productId=``,this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){return Db(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?U({},this.properties):{};return e[sx.REVENUE_PRODUCT_ID]=this.productId,e[sx.REVENUE_QUANTITY]=this.quantity,e[sx.REVENUE_PRICE]=this.price,e[sx.REVENUE_TYPE]=this.revenueType,e[sx.REVENUE_CURRENCY]=this.currency,e[sx.REVENUE]=this.revenue,e[sx.RECEIPT]=this.receipt,e[sx.RECEIPT_SIG]=this.receiptSig,e},e}(),sx;(function(e){e.REVENUE_PRODUCT_ID=`$productId`,e.REVENUE_QUANTITY=`$quantity`,e.REVENUE_PRICE=`$price`,e.REVENUE_TYPE=`$revenueType`,e.REVENUE_CURRENCY=`$currency`,e.REVENUE=`$revenue`,e.RECEIPT=`$receipt`,e.RECEIPT_SIG=`$receiptSig`})(sx||={});var cx=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},lx=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:tb,logLevel:rx.Warn,loggerProvider:new ax,offline:!1,optOut:!1,serverUrl:nb,serverZone:`US`,useBatch:!1}},ux=function(){function e(e){this._optOut=!1;var t=lx();this.apiKey=e.apiKey,this.flushIntervalMillis=e.flushIntervalMillis??t.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||t.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||t.flushQueueSize,this.instanceName=e.instanceName||t.instanceName,this.loggerProvider=e.loggerProvider||t.loggerProvider,this.logLevel=e.logLevel??t.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=e.offline===void 0?t.offline:e.offline,this.optOut=e.optOut??t.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||t.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=e.useBatch??t.useBatch,this.loggerProvider.enable(this.logLevel);var n=fx(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=n.serverZone,this.serverUrl=n.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e}
73,enumerable:!1,configurable:!0}),e}(),dx=function(e,t){return e===`EU`?t?ab:rb:t?ib:nb},fx=function(e,t,n){if(e===void 0&&(e=``),t===void 0&&(t=lx().serverZone),n===void 0&&(n=lx().useBatch),e)return{serverUrl:e,serverZone:void 0};var r=[`US`,`EU`].includes(t)?t:lx().serverZone;return{serverZone:r,serverUrl:dx(r,n)}},px=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}();(function(){function e(){}return e})();function mx(e){return e instanceof Error?e.message:String(e)}function hx(e){var t=``;try{`body`in e&&(t=JSON.stringify(e.body,null,2))}catch{}return t}var gx=function(){function e(){this.name=`amplitude`,this.type=`destination`,this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey=``,this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(e){return W(this,void 0,void 0,function(){var t,n=this;return G(this,function(r){switch(r.label){case 0:return this.config=e,this.storageKey=`${eb}_${this.config.apiKey.substring(0,10)}`,[4,this.config.storageProvider?.get(this.storageKey)];case 1:return t=r.sent(),t&&t.length>0&&Promise.all(t.map(function(e){return n.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||=Ub(),new Promise(function(n){var r={event:e,attempts:0,callback:function(e){return n(e)},timeout:0};t.queue.push(r),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries?!0:(t.fulfillRequest([e],500,Pb),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(e.timeout===0?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(this.scheduleId===null||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return e===void 0&&(e=!1),W(this,void 0,void 0,function(){var t,n,r,i=this;return G(this,function(a){switch(a.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug(`Skipping flush while offline.`),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug(`Skipping flush because previous flush has not resolved.`),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),t=[],n=[],this.queue.forEach(function(e){return e.timeout===0?t.push(e):n.push(e)}),r=cx(t,this.config.flushQueueSize),[4,r.reduce(function(t,n){return W(i,void 0,void 0,function(){return G(this,function(r){switch(r.label){case 0:return[4,t];case 1:return r.sent(),[4,this.send(n,e)];case 2:return[2,r.sent()]}})})},Promise.resolve())]);case 1:return a.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){return t===void 0&&(t=!0),W(this,void 0,void 0,function(){var n,r,i,a,o;return G(this,function(s){switch(s.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,Ib)];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,Sg(t,[`extra`])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new px,s.label=1;case 1:return s.trys.push([1,3,,4]),r=fx(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:return i=s.sent(),i===null?(this.fulfillRequest(e,0,Nb),[2]):t?(this.handleResponse(i,e),[3,4]):(`body`in i?this.fulfillRequest(e,i.statusCode,`${i.status}: ${hx(i)}`):this.fulfillRequest(e,i.statusCode,i.status),[2]);case 3:return a=s.sent(),o=mx(a),this.config.loggerProvider.error(o),this.handleResponse({status:Rb.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case Rb.Success:this.handleSuccessResponse(e,t);break;case Rb.Invalid:this.handleInvalidResponse(e,t);break;case Rb.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case Rb.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn(`{code: 0, error: "Status '${n}' provided for ${t.length} events"}`),this.handleOtherResponse(t);break}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,Mb)},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith(`Invalid API key`)){this.fulfillRequest(t,e.statusCode,e.body.error);return}
73var r=J(J(J(J([],q(Object.values(e.body.eventsWithInvalidFields)),!1),q(Object.values(e.body.eventsWithMissingFields)),!1),q(Object.values(e.body.eventsWithInvalidIdLengths)),!1),q(e.body.silencedEvents),!1).flat(),i=new Set(r),a=t.filter(function(t,r){if(i.has(r)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});a.length>0&&this.config.loggerProvider.warn(hx(e));var o=this.removeEventsExceedFlushMaxRetries(a);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(t.length===1){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(hx(e)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),a=e.body.throttledEvents,o=new Set(r),s=new Set(i),c=new Set(a),l=t.filter(function(t,r){if(t.event.user_id&&o.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return c.has(r)&&(t.timeout=n.throttleTimeout),!0});l.length>0&&this.config.loggerProvider.warn(hx(e));var u=this.removeEventsExceedFlushMaxRetries(l);this.scheduleEvents(u)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach(function(e){return e.callback(zb(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}(),_x=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:vx(),platform:`Web`,os:void 0,deviceModel:void 0}},e}(),vx=function(){return typeof navigator<`u`&&(navigator.languages&&navigator.languages[0]||navigator.language)||``},yx=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),bx=function(){return bx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},bx.apply(this,arguments)};function xx(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Sx(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}var Cx=function(e,t){var n,r,i=[`string`,`number`,`boolean`,`undefined`],a=typeof e;if(a!==typeof t)return!1;try{for(var o=xx(i),s=o.next();!s.done;s=o.next())if(s.value===a)return e===t}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;var c=Array.isArray(e),l=Array.isArray(t);if(c!==l)return!1;if(c&&l){for(var u=0;u<e.length;u++)if(!Cx(e[u],t[u]))return!1}else{if(!Cx(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var d=!0;return Object.keys(e).forEach(function(n){Cx(e[n],t[n])||(d=!1)}),d}return!0},wx=`$set`,Tx=`$unset`,Ex=`$clearAll`;Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var Dx=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=bx({},this.identity.userProperties),n=bx(bx({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,a,o,s,c=n.userProperties||{};try{for(var l=xx(Object.entries(e)),u=l.next();!u.done;u=l.next()){var d=Sx(u.value,2),f=d[0],p=d[1];switch(f){case wx:try{for(var m=(i=void 0,xx(Object.entries(p))),h=m.next();!h.done;h=m.next()){var g=Sx(h.value,2),_=g[0],v=g[1];c[_]=v}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case Tx:try{for(var y=(o=void 0,xx(Object.keys(p))),b=y.next();!b.done;b=y.next()){var _=b.value;delete c[_]}}catch(e){o={error:e}}finally{try{b&&!b.done&&(s=y.return)&&s.call(y)}finally{if(o)throw o.error}}break;case Ex:c={};break}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return n.userProperties=c,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return bx({},this.identity)},e.prototype.setIdentity=function(e){var t=bx({},this.identity);this.identity=bx({}
73,e),Cx(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),Ox=typeof globalThis<`u`?globalThis:typeof global<`u`?global:self,kx=function(){function e(){this.identityStore=new Dx,this.eventBridge=new yx,this.applicationContextProvider=new _x}return e.getInstance=function(t){return Ox.analyticsConnectorInstances||={},Ox.analyticsConnectorInstances[t]||(Ox.analyticsConnectorInstances[t]=new e),Ox.analyticsConnectorInstances[t]},e}(),Ax=function(e){return e===void 0&&(e=tb),kx.getInstance(e)},jx=function(e,t){Ax(t).identityStore.editIdentity().setUserId(e).commit()},Mx=function(e,t){Ax(t).identityStore.editIdentity().setDeviceId(e).commit()},Nx=function(){function e(){this.name=`identity`,this.type=`before`,this.identityStore=Ax().identityStore}return e.prototype.execute=function(e){return W(this,void 0,void 0,function(){var t;return G(this,function(n){return t=e.user_properties,t&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return W(this,void 0,void 0,function(){return G(this,function(t){return e.instanceName&&(this.identityStore=Ax(e.instanceName).identityStore),[2]})})},e}(),Px=function(e,t){return t===void 0&&(t=Date.now()),Date.now()-t>e},Fx=function(e,t,n){return t===void 0&&(t=``),n===void 0&&(n=10),[`AMP`,t,e.substring(0,n)].filter(Boolean).join(`_`)},Ix=function(e){return`amp_${e.substring(0,6)}`},Lx=function(){if(typeof navigator>`u`)return``;var e=navigator.userLanguage;return navigator.languages?.[0]??navigator.language??e??``},Rx=function(){var e=Bb();return e?.location?.search?e.location.search.substring(1).split(`&`).filter(Boolean).reduce(function(e,t){var n=t.split(`=`,2),r=zx(n[0]),i=zx(n[1]);return i&&(e[r]=i),e},{}):{}},zx=function(e){e===void 0&&(e=``);try{return decodeURIComponent(e)}catch{return``}},Bx=function(e){return e===void 0&&(e=0),(Error().stack||``).split(`
74`).slice(2+e).map(function(e){return e.trim()})},Vx=function(e){return function(){var t=U({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},Hx=function(e,t){var n,r;t=t.replace(/\[(\w+)\]/g,`.$1`),t=t.replace(/^\./,``);try{for(var i=K(t.split(`.`)),a=i.next();!a.done;a=i.next()){var o=a.value;if(o in e)e=e[o];else return}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},Ux=function(e,t){return function(){var n,r,i={};try{for(var a=K(t),o=a.next();!o.done;o=a.next()){var s=o.value;i[s]=Hx(e,s)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}},Wx=function(e,t,n,r,i){return i===void 0&&(i=null),function(){var a=[...arguments],o=n(),s=o.logger,c=o.logLevel;if(c&&c<rx.Debug||!c||!s)return e.apply(i,a);var l={type:`invoke public method`,name:t,args:a,stacktrace:Bx(1),time:{start:new Date().toISOString()},states:{}};r&&l.states&&(l.states.before=r());var u=e.apply(i,a);return u&&u.promise?u.promise.then(function(){r&&l.states&&(l.states.after=r()),l.time&&(l.time.end=new Date().toISOString()),s.debug(JSON.stringify(l,null,2))}):(r&&l.states&&(l.states.after=r()),l.time&&(l.time.end=new Date().toISOString()),s.debug(JSON.stringify(l,null,2))),u}},Gx=function(e,t){return!t||!t.length?!0:t.some(function(t){return typeof t==`string`?e===t:e.match(t)})},Kx=function(e,t){var n=e;try{n=decodeURI(e)}catch(e){t?.error(`Malformed URI sequence: `,e)}return n},qx=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return W(this,void 0,void 0,function(){return G(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return W(this,void 0,void 0,function(){return G(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return W(this,void 0,void 0,function(){var t;return G(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return t=n.sent(),[2,t?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return W(this,void 0,void 0,function(){return G(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return W(this,void 0,void 0,function(){return G(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return W(this,void 0,void 0,function(){return G(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),Jx=function(){function e(e){this.options=U({},e)}return e.prototype.isEnabled=function(){return W(this,void 0,void 0,function(){var t,n,r;return G(this,function(i){switch(i.label){case 0:if(!Bb())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n=`AMP_TEST`,i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return i.sent(),[4,t.get(n)];case 3:return r=i.sent(),[2,r===e.testValue];case 4:return i.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return W(this,void 0,void 0,function(){var t,n;return G(this,function(r){switch(r.label){case 0:return[4,this.getRaw(e)];case 1:if(t=r.sent(),!t)return[2,void 0];try{return n=Yx(t)??Xx(t),n===void 0?(console.error(`Amplitude Logger [Error]: Failed to decode cookie value for key: ${e}, value: ${t}`),[2,void 0]):[2,JSON.parse(n)]}catch{return console.error(`Amplitude Logger [Error]: Failed to parse cookie value for key: ${e}, value: ${t}`),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){return W(this,void 0,void 0,function(){var t,n,r;return G(this,function(i){return t=Bb(),n=(t?.document)?.cookie.split(`; `)??[],r=n.find(function(t){return t.indexOf(e+`=`)===0}),r?[2,r.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){return W(this,void 0,void 0,function(){var n,r,i,a,o,s,c;return G(this,function(l){try{n=this.options.expirationDays??0,r=t===null?-1:n,i=void 0,r&&(a=new Date,a.setTime(a.getTime()+r*24*60*60*1e3),i=a),o=`${e}=${btoa(encodeURIComponent(JSON.stringify(t)))}`,i&&(o+=`; expires=${i.toUTCString()}`),o+=`; path=/`,this.options.domain&&(o+=`; domain=${this.options.domain}`),this.options.secure&&(o+=`; Secure`),this.options.sameSite&&(o+=`; SameSite=${this.options.sameSite}`),s=Bb(),s&&(s.document.cookie=o)}catch(t){c=t instanceof Error?t.message:String(t),console.error(`Amplitude Logger [Error]: Failed to set cookie for key: ${e}. Error: ${c}`)}return[2]})})},e.prototype.remove=function(e){return W(this,void 0,void 0,function(){return G(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return W(this,void 0,void 0,function(){return G(this,function(e){return[2]})})},e}(),Yx=function(e){try{return decodeURIComponent(atob(e))}catch{return}},Xx=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch{return}},Zx=function(e,t,n){return t===void 0&&(t=``),n===void 0&&(n=10),[`AMP`,t,e.substring(0,n)].filter(
74Boolean).join(`_`)},Qx=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return W(this,void 0,void 0,function(){var t,n,r,i;return G(this,function(a){switch(a.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r=`AMP_TEST`,a.label=1;case 1:return a.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return a.sent(),[4,n.get(r)];case 3:return i=a.sent(),[2,i===t];case 4:return a.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return a.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return W(this,void 0,void 0,function(){var t;return G(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return t=n.sent(),t?[2,JSON.parse(t)]:[2,void 0];case 2:return n.sent(),console.error(`[Amplitude] Error: Could not get value from storage`),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){return W(this,void 0,void 0,function(){return G(this,function(t){return[2,this.storage?.getItem(e)||void 0]})})},e.prototype.set=function(e,t){var n;return W(this,void 0,void 0,function(){return G(this,function(r){try{(n=this.storage)==null||n.setItem(e,JSON.stringify(t))}catch{}return[2]})})},e.prototype.remove=function(e){var t;return W(this,void 0,void 0,function(){return G(this,function(n){try{(t=this.storage)==null||t.removeItem(e)}catch{}return[2]})})},e.prototype.reset=function(){var e;return W(this,void 0,void 0,function(){return G(this,function(t){try{(e=this.storage)==null||e.clear()}catch{}return[2]})})},e}(),$x=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if(typeof e!=`object`)return null;var t=e.code||0,n=this.buildStatus(t);switch(n){case Rb.Success:return{status:n,statusCode:t,body:{eventsIngested:e.events_ingested??0,payloadSizeBytes:e.payload_size_bytes??0,serverUploadTime:e.server_upload_time??0}};case Rb.Invalid:return{status:n,statusCode:t,body:{error:e.error??``,missingField:e.missing_field??``,eventsWithInvalidFields:e.events_with_invalid_fields??{},eventsWithMissingFields:e.events_with_missing_fields??{},eventsWithInvalidIdLengths:e.events_with_invalid_id_lengths??{},epsThreshold:e.eps_threshold??0,exceededDailyQuotaDevices:e.exceeded_daily_quota_devices??{},silencedDevices:e.silenced_devices??[],silencedEvents:e.silenced_events??[],throttledDevices:e.throttled_devices??{},throttledEvents:e.throttled_events??[]}};case Rb.PayloadTooLarge:return{status:n,statusCode:t,body:{error:e.error??``}};case Rb.RateLimit:return{status:n,statusCode:t,body:{error:e.error??``,epsThreshold:e.eps_threshold??0,throttledDevices:e.throttled_devices??{},throttledUsers:e.throttled_users??{},exceededDailyQuotaDevices:e.exceeded_daily_quota_devices??{},exceededDailyQuotaUsers:e.exceeded_daily_quota_users??{},throttledEvents:e.throttled_events??[]}};case Rb.Timeout:default:return{status:n,statusCode:t}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?Rb.Success:e===429?Rb.RateLimit:e===413?Rb.PayloadTooLarge:e===408?Rb.Timeout:e>=400&&e<500?Rb.Invalid:e>=500?Rb.Failed:Rb.Unknown},e}(),eS=function(e){xg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(e,t){return W(this,void 0,void 0,function(){var n,r,i;return G(this,function(a){switch(a.label){case 0:if(typeof fetch>`u`)throw Error(`FetchTransport is not supported`);return n={headers:{"Content-Type":`application/json`,Accept:`*/*`},body:JSON.stringify(t),method:`POST`},[4,fetch(e,n)];case 1:return r=a.sent(),[4,r.text()];case 2:i=a.sent();try{return[2,this.buildResponse(JSON.parse(i))]}catch{return[2,this.buildResponse({code:r.status})]}return[2]}})})},t}($x),tS=[`a`,`button`,`input`,`select`,`textarea`,`label`,`video`,`audio`,`[contenteditable="true" i]`,`[data-amp-default-track]`,`.amp-default-track`],nS=`data-amp-track-`,rS=[`div`,`span`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],iS=J([`input[type="button"]`,`input[type="submit"]`,`input[type="reset"]`,`input[type="image"]`,`input[type="file"]`],q([`a`,`button`,`[role="button"]`,`[role="link"]`,`[role="menuitem"]`,`[role="menuitemcheckbox"]`,`[role="menuitemradio"]`,`[role="option"]`,`[role="tab"]`,`[role="treeitem"]`,`[contenteditable="true" i]`]),!1),aS=[`*`],oS=1e3;function sS(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e==null}function cS(e,t,n){e&&lS({json:e,allowlist:t.map(uS),excludelist:n.map(uS),ancestors:[]})}function lS(e){var t,n,r=e.json,i=e.targetObject,a=e.allowlist,o=e.excludelist,s=e.ancestors,c=e.parentObject,l=e.targetKey;i||=r;var u=Object.keys(i);try{for(var d=K(u),f=d.next();!f.done;
74f=d.next()){var p=f.value,m=J(J([],q(s),!1),[p],!1);sS(i[p])?(!fS(m,a)||fS(m,o))&&delete i[p]:lS({json:r,targetObject:i[p],allowlist:a,excludelist:o,ancestors:m,parentObject:i,targetKey:p})}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}Object.keys(i).length===0&&c&&l&&delete c[l]}function uS(e){return e.startsWith(`/`)&&(e=e.slice(1)),e.split(`/`).map(function(e){return e.replace(/~0/g,`~`).replace(/~1/g,`/`)})}function dS(e,t,n,r){if(n===void 0&&(n=0),r===void 0&&(r=0),r===t.length)return n===e.length;if(n===e.length){for(;r<t.length&&t[r]===`**`;)r++;return r===t.length}var i=t[r];if(i===`**`){if(r+1===t.length)return!0;for(var a=n;a<=e.length;a++)if(dS(e,t,a,r+1))return!0;return!1}else if(i===`*`||i===e[n])return dS(e,t,n+1,r+1);else return!1}function fS(e,t){return t.some(function(t){return dS(e,t)})}var pS=500,mS=function(){function e(e){this.request=e}return e.prototype.headers=function(e){var t,n;e===void 0&&(e=[]);var r=this.request.headers,i={};if(Array.isArray(r))r.forEach(function(e){var t=q(e,2),n=t[0];i[n]=t[1]});else if(r instanceof Headers)r.forEach(function(e,t){i[t]=e});else if(typeof r==`object`&&r)try{for(var a=K(Object.entries(r)),o=a.next();!o.done;o=a.next()){var s=q(o.value,2),c=s[0];i[c]=s[1]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return SS(i,{allow:e})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if(typeof this._bodySize==`number`)return this._bodySize;if(Bb()?.TextEncoder){var e=this.request.body;return this._bodySize=gS(e,100),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.request.body==`string`?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),W(this,void 0,void 0,function(){var n;return G(this,function(r){return e.length===0?[2,null]:(n=this.body,[2,yS(n,e,t)])})})},e}(),hS=function(){function e(e,t){this.bodyRaw=e,this.requestHeaders=t}return e.prototype.headers=function(e){return e===void 0&&(e=[]),SS(this.requestHeaders,{allow:e})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return gS(this.bodyRaw,100)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.bodyRaw==`string`?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),W(this,void 0,void 0,function(){var n;return G(this,function(r){return e.length===0?[2,null]:(n=this.body,[2,yS(n,e,t)])})})},e}();function gS(e,t){var n,r,i,a=Bb()?.TextEncoder;if(a){var o;if(typeof e==`string`)o=e,i=new a().encode(o).length;else if(e instanceof Blob)o=e,i=o.size;else if(e instanceof URLSearchParams)o=e,i=new a().encode(o.toString()).length;else if(ArrayBuffer.isView(e))o=e,i=o.byteLength;else if(e instanceof ArrayBuffer)o=e,i=o.byteLength;else if(e instanceof FormData){var s=e,c=0,l=0;try{for(var u=K(s.entries()),d=u.next();!d.done;d=u.next()){var f=q(d.value,2),p=f[0],m=f[1];if(c+=p.length,typeof m==`string`)c+=new a().encode(m).length;else if(m instanceof Blob)c+=m.size;else return;if(++l>=t)return}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}i=c}else if(e instanceof ReadableStream){o=e;return}return i}}var _S=function(){function e(e){this.response=e}return e.prototype.headers=function(e){var t;if(e===void 0&&(e=[]),this.response.headers instanceof Headers){var n=this.response.headers,r={};return(t=n?.forEach)==null||t.call(n,function(e,t){r[t]=e}),SS(r,{allow:e})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){var e;if(this._bodySize!==void 0)return this._bodySize;var t=((e=this.response.headers)?.get)?.call(e,`content-length`),n=t?parseInt(t,10):void 0;return this._bodySize=n,n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status}
74,enumerable:!1,configurable:!0}),e.prototype.text=function(){return W(this,void 0,void 0,function(){var e,t,n;return G(this,function(r){switch(r.label){case 0:this.clonedResponse||=this.response.clone(),r.label=1;case 1:return r.trys.push([1,3,,4]),e=this.clonedResponse.text(),t=new Promise(function(e){return setTimeout(function(){return e(null)},pS)}),[4,Promise.race([e,t])];case 2:return n=r.sent(),[2,n];case 3:return r.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),W(this,void 0,void 0,function(){var n;return G(this,function(r){switch(r.label){case 0:return e.length===0?[2,null]:[4,this.text()];case 1:return n=r.sent(),[2,yS(n,e,t)]}})})},e}(),vS=function(){function e(e,t,n,r){this.statusCode=e,this.headersString=t,this.size=n,this.getJson=r}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(e){var t,n;if(e===void 0&&(e=[]),!this.headersString)return{};var r={},i=this.headersString.split(`\r
75`);try{for(var a=K(i),o=a.next();!o.done;o=a.next()){var s=o.value,c=q(s.split(`: `),2),l=c[0],u=c[1];l&&u&&(r[l]=u)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return SS(r,{allow:e})},e.prototype.json=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),W(this,void 0,void 0,function(){var n;return G(this,function(r){return e.length===0?[2,null]:(n=this.getJson(),n?(cS(n,e,t),[2,n]):[2,null])})})},e}();function yS(e,t,n){if(!e)return null;try{var r=JSON.parse(e);return cS(r,t,n),r}catch{return null}}var bS;(function(e){e.REDACT=`redact`,e.REMOVE=`remove`})(bS||={});var xS=`[REDACTED]`,SS=function(e,t){var n,r,i=t.allow,a=i===void 0?[]:i,o=t.strategy,s=o===void 0?bS.REMOVE:o,c=J([],q(Tb),!1),l={},u=function(t){var n=t.toLowerCase();c.find(function(e){return e.toLowerCase()===n})?s===bS.REDACT&&(l[t]=xS):a.find(function(e){return e.toLowerCase()===n})?l[t]=e[t]:s===bS.REDACT&&(l[t]=xS)};try{for(var d=K(Object.keys(e)),f=d.next();!f.done;f=d.next()){var p=f.value;u(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return l},CS=function(){function e(e,t,n,r,i,a,o,s,c,l,u){o===void 0&&(o=0),this.type=e,this.method=t,this.timestamp=n,this.startTime=r,this.url=i,this.requestWrapper=a,this.status=o,this.duration=s,this.responseWrapper=c,this.error=l,this.endTime=u}return e.prototype.toSerializable=function(){var e={type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:this.requestWrapper?.headers(J([],q(wb),!1)),requestBodySize:this.requestWrapper?.bodySize,responseHeaders:this.responseWrapper?.headers(J([],q(wb),!1)),responseBodySize:this.responseWrapper?.bodySize};return Object.fromEntries(Object.entries(e).filter(function(e){var t=q(e,2);return t[0],t[1]!==void 0}))},e}();function wS(e){return typeof e==`object`&&!!e&&`url`in e&&`method`in e}var TS=function(){function e(e,t){t===void 0&&(t=Ub()),this.callback=e,this.id=t}return e}(),ES=new(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var n=Bb();e.isSupported()&&(this.globalScope=n)}return e.isSupported=function(){var e=Bb();return!!e&&!!e.fetch},e.prototype.subscribe=function(e,t){if(this.logger||=t,this.eventCallbacks.set(e.id,e),!this.isObserving){var n=this.globalScope?.XMLHttpRequest?.prototype?.open,r=this.globalScope?.XMLHttpRequest?.prototype?.send,i=this.globalScope?.XMLHttpRequest?.prototype?.setRequestHeader;n&&r&&i&&this.observeXhr(n,r,i);var a=this.globalScope?.fetch;a&&this.observeFetch(a),this.isObserving=!0}},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id)},e.prototype.triggerEventCallbacks=function(e){var t=this;this.eventCallbacks.forEach(function(n){var r;try{n.callback(e)}catch(e){(r=t.logger)==null||r.debug(`an unexpected error occurred while triggering event callbacks`,e)}})},e.prototype.handleNetworkRequestEvent=function(e,t,n,r,i,a,o){if(!(a===void 0||o===void 0)){var s,c=`GET`;if(wS(t)?(s=t.url,c=t.method):s=(t?.toString)?.call(t),s)try{var l=new URL(s);s=`${l.protocol}//${l.host}${l.pathname}${l.search}${l.hash}`}catch{}c=n?.method||c;var u,d;r&&(u=r.status),i&&(d={name:i.name||`UnknownError`,message:i.message||`An unknown error occurred`},u=0);var f=Math.floor(performance.now()-o),p=Math.floor(a+f),m=new CS(e,c,a,a,s,n,u,f,r,d,p);this.triggerEventCallbacks(m)}},e.prototype.getTimestamps=function(){return{startTime:Date.now?.call(Date),durationStart:(performance==null?void 0:performance.now)?.call(performance)}},e.prototype.observeFetch=function(e){var t=this;!this.globalScope||!e||(this.globalScope.fetch=function(n,r){return W(t,void 0,void 0,function(){var t,i,a,o,s,c;return G(this,function(l){switch(l.label){case 0:try{t=this.getTimestamps()}catch(e){(s=this.logger)==null||s.debug(`an unexpected error occurred while retrieving timestamps`,e)}l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e(n,r)];case 2:return i=l.sent(),[3,4];case 3:return o=l.sent(),a=o,[3,4];case 4:try{this.handleNetworkRequestEvent(`fetch`,n,r?new mS(r):void 0,i?new _S(i):void 0,a,t?.startTime,t?.durationStart)}catch(e){(c=this.logger)==null||c.debug(`an unexpected error occurred while handling fetch`,e)}if(i)return[2,i];throw a}})})})},e.createXhrJsonParser=function(e,t){return function(){var n;try{if(e.responseType===`json`){if(t.globalScope?.structuredClone)return t.globalScope.structuredClone(e.response)}else if([`text`,``].includes(e.responseType))return JSON.parse(e.responseText)}catch(r){return r instanceof Error&&r.name===`InvalidStateError`&&((n=t.logger)==null||n.error(`unexpected error when retrieving responseText. responseType='${e.responseType}'`)),null}return null}},e.prototype.observeXhr=function(t,n,r){if(!(!this.globalScope||!t||!n)){var i=this.globalScope.XMLHttpRequest.prototype,a=this;i.open=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this,o=q(n,2),s=o[0],c=o[1];try{i.$$AmplitudeAnalyticsEvent=U({method:s,url:(c?.toString)?.call(c),headers:{}},a.getTimestamps())}catch(t){(e=a.logger)==null||e.error(`an unexpected error occurred while calling xhr open`,t)}return t.apply(i,n)},i.send=function(){var t=[...arguments],r=this,i=r,o=e.createXhrJsonParser(r,a),s=t[0],c=i.$$AmplitudeAnalyticsEvent;return i.addEventListener(`loadend`,function(){var e;try{var t=i.getAllResponseHeaders(),n=i.getResponseHeader(`content-length`),r=new vS(i.status,t,n?parseInt(n,10):void 0,o),l=i.$$AmplitudeAnalyticsEvent.headers,u=new hS(s,l);c.status=i.status,a.handleNetworkRequestEvent(`xhr`,{url:c.url,method:c.method},u,r,void 0,c.startTime,c.durationStart)}catch(t){(e=a.logger)==null||e.error(`an unexpected error occurred while handling xhr send`,t)}}),n.apply(i,t)},i.setRequestHeader=function(e,t){var n,i=this;try{i.$$AmplitudeAnalyticsEvent.headers[e]=t}catch(e){(n=a.logger)==null||n.error(`an unexpected error occurred while calling xhr setRequestHeader`,e)}
75r.apply(i,[e,t])}}},e}()),DS=function(){function e(){}return e.prototype.parse=function(){return W(this,void 0,void 0,function(){return G(this,function(e){return[2,U(U(U(U({},Cb),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=Rx();return{utm_campaign:e[ob],utm_content:e[sb],utm_id:e[cb],utm_medium:e[lb],utm_source:e[ub],utm_term:e[db]}},e.prototype.getReferrer=function(){var e={referrer:void 0,referring_domain:void 0};try{e.referrer=document.referrer||void 0,e.referring_domain=e.referrer?.split(`/`)[2]??void 0}catch{}return e},e.prototype.getClickIds=function(){var e,t=Rx();return e={},e[fb]=t[fb],e[pb]=t[pb],e[mb]=t[mb],e[hb]=t[hb],e[gb]=t[gb],e[_b]=t[_b],e[vb]=t[vb],e[yb]=t[yb],e[bb]=t[bb],e[xb]=t[xb],e[Sb]=t[Sb],e},e}(),OS=function(e,t){return typeof e==`boolean`?e:e?.[t]!==!1},kS=function(e){return OS(e,`attribution`)},AS=function(e){return OS(e,`fileDownloads`)},jS=function(e){return OS(e,`formInteractions`)},MS=function(e){return OS(e,`pageViews`)},NS=function(e){return OS(e,`sessions`)},PS=function(e){return typeof e==`object`&&(e.networkTracking===!0||typeof e.networkTracking==`object`)},FS=function(e){return typeof e==`boolean`?e:typeof e==`object`&&(e.elementInteractions===!0||typeof e.elementInteractions==`object`)},IS=function(e){return typeof e==`object`&&e.webVitals===!0},LS=function(e){return typeof e==`boolean`?e:typeof e==`object`&&(e.frustrationInteractions===!0||typeof e.frustrationInteractions==`object`)},RS=function(e){if(FS(e.autocapture)&&typeof e.autocapture==`object`&&typeof e.autocapture.elementInteractions==`object`)return e.autocapture.elementInteractions},zS=function(e){if(LS(e.autocapture)&&typeof e.autocapture==`object`&&typeof e.autocapture.frustrationInteractions==`object`)return e.autocapture.frustrationInteractions},BS=function(e){if(PS(e.autocapture)){var t=void 0;return typeof e.autocapture==`object`&&typeof e.autocapture.networkTracking==`object`?t=e.autocapture.networkTracking:e.networkTrackingOptions&&(t=e.networkTrackingOptions),U(U({},t),{captureRules:(t?.captureRules)?.map(function(t){var n;if(t.urls&&t.hosts){var r=JSON.stringify(t.hosts),i=JSON.stringify(t.urls);return(n=e.loggerProvider)==null||n.warn(`Found network capture rule with both urls='${i}' and hosts='${r}' set. Definition of urls takes precedence over hosts, so ignoring hosts.`),U(U({},t),{hosts:void 0})}return t})})}},VS=function(e){var t=function(){return!1},n=void 0,r,i=e.pageCounter;return MS(e.defaultTracking)&&(t=void 0,r=void 0,e.defaultTracking&&typeof e.defaultTracking==`object`&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews==`object`&&(`trackOn`in e.defaultTracking.pageViews&&(t=e.defaultTracking.pageViews.trackOn),`trackHistoryChanges`in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),`eventType`in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(r=e.defaultTracking.pageViews.eventType))),{trackOn:t,trackHistoryChanges:n,eventType:r,pageCounter:i}},HS=function(e){return kS(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking==`object`&&e.defaultTracking.attribution&&typeof e.defaultTracking.attribution==`object`?U({},e.defaultTracking.attribution):{}},US=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,a=r.args,o=r.resolve,s=e&&e[i];if(typeof s==`function`){var c=s.apply(e,a);typeof o==`function`&&o(c?.promise)}}return e},WS=function(e){var t=e;return t&&t._q!==void 0},GS=`2.25.1`,KS=`amplitude-ts`,qS=`Web`,JS=`$remote`,YS=function(){function e(){this.name=`@amplitude/plugin-context-browser`,this.type=`before`,this.library=`${KS}/${GS}`,typeof navigator<`u`&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){return W(this,void 0,void 0,function(){var t,n,r,i;return G(this,function(a){return t=new Date().getTime(),n=this.config.lastEventId??-1,r=e.event_id??n+1,this.config.lastEventId=r,e.time||(this.config.lastEventTime=t),i=U(U(U(U(U(U(U(U({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:t},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:qS}),this.config.trackingOptions.language&&{language:Lx()}),this.config.trackingOptions.ipAddress&&{ip:JS}),{insert_id:Ub(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:r,library:this.library,user_agent:this.userAgent}),[2,i]})})},e}(),XS=1e3,ZS=function(e){xg(t,e);function t(t){var n=this,r,i;try{i=Bb()?.localStorage}catch(e){(r=t?.loggerProvider)==null||r.debug(`Failed to access localStorage. error=${JSON.stringify(e)}`),i=void 0}return n=e.call(this,i)||this,n.loggerProvider=t?.loggerProvider,n}return t.prototype.set=function(t,n){var r;return W(this,void 0,void 0,function(){var i;return G(this,function(a){switch(a.label){case 0:return Array.isArray(n)&&n.length>XS?(i=n.length-XS,[4,e.prototype.set.call(this,t,n.slice(0,XS))]):[3,2];case 1:return a.sent(),(r=this.loggerProvider)==null||r.error(`Failed to save ${i} events because the queue length exceeded ${XS}.`),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:a.sent(),a.label=4;case 4:return[2]}})})},t}(Qx),QS=function(e){xg(t,e);
75function t(){return e.call(this,Bb()?.sessionStorage)||this}return t}(Qx),$S=function(e){xg(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={done:4},t}return t.prototype.send=function(e,t){return W(this,void 0,void 0,function(){var n=this;return G(this,function(r){return[2,new Promise(function(r,i){typeof XMLHttpRequest>`u`&&i(Error(`XHRTransport is not supported.`));var a=new XMLHttpRequest;a.open(`POST`,e,!0),a.onreadystatechange=function(){if(a.readyState===n.state.done){var e=a.responseText;try{r(n.buildResponse(JSON.parse(e)))}catch{r(n.buildResponse({code:a.status}))}}},a.setRequestHeader(`Content-Type`,`application/json`),a.setRequestHeader(`Accept`,`*/*`),a.send(JSON.stringify(t))})]})})},t}($x),eC=function(e){xg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(e,t){return W(this,void 0,void 0,function(){var n=this;return G(this,function(r){return[2,new Promise(function(r,i){var a=Bb();if(!a?.navigator.sendBeacon)throw Error(`SendBeaconTransport is not supported`);try{var o=JSON.stringify(t);return a.navigator.sendBeacon(e,JSON.stringify(t))?r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:o.length,server_upload_time:Date.now()})):r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}($x),tC=function(e,t,n){return n===void 0&&(n=!0),W(void 0,void 0,void 0,function(){var r,i,a,o,s,c,l,u,d;return G(this,function(f){switch(f.label){case 0:return r=Ix(e),[4,t.getRaw(r)];case 1:return i=f.sent(),i?n?[4,t.remove(r)]:[3,3]:[2,{optOut:!1}];case 2:f.sent(),f.label=3;case 3:return a=q(i.split(`.`),6),o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],d=a[5],[2,{deviceId:o,userId:rC(s),sessionId:nC(l),lastEventId:nC(d),lastEventTime:nC(u),optOut:!!c}]}})})},nC=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},rC=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},iC=`[Amplitude]`;`${iC}`;var aC=`${iC} Form Started`,oC=`${iC} Form Submitted`,sC=`${iC} File Downloaded`,cC=`session_start`,lC=`session_end`,uC=`${iC} File Extension`,dC=`${iC} File Name`,fC=`${iC} Link ID`,pC=`${iC} Link Text`,mC=`${iC} Link URL`,hC=`${iC} Form ID`,gC=`${iC} Form Name`,_C=`${iC} Form Destination`,vC=`cookie`,yC=function(e){xg(t,e);function t(t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,ee,E,D,te,ne,re,ie,ae,O,oe,se){r===void 0&&(r=new qx),i===void 0&&(i={domain:``,expiration:365,sameSite:`Lax`,secure:!1,upgrade:!0}),c===void 0&&(c=1e3),l===void 0&&(l=5),u===void 0&&(u=30),d===void 0&&(d=vC),g===void 0&&(g=new ax),_===void 0&&(_=rx.Warn),y===void 0&&(y=!1),b===void 0&&(b=!1),C===void 0&&(C=``),w===void 0&&(w=`US`),ee===void 0&&(ee=1800*1e3),E===void 0&&(E=new ZS({loggerProvider:g})),D===void 0&&(D={ipAddress:!0,language:!0,platform:!0}),te===void 0&&(te=`fetch`),ne===void 0&&(ne=!1),re===void 0&&(re=!0);var k=e.call(this,{apiKey:t,storageProvider:E,transportProvider:SC(te)})||this;return k.apiKey=t,k.appVersion=n,k.cookieOptions=i,k.defaultTracking=a,k.autocapture=o,k.flushIntervalMillis=c,k.flushMaxRetries=l,k.flushQueueSize=u,k.identityStorage=d,k.ingestionMetadata=f,k.instanceName=p,k.loggerProvider=g,k.logLevel=_,k.minIdLength=v,k.offline=y,k.partnerId=x,k.plan=S,k.serverUrl=C,k.serverZone=w,k.sessionTimeout=ee,k.storageProvider=E,k.trackingOptions=D,k.transport=te,k.useBatch=ne,k.fetchRemoteConfig=re,k.networkTrackingOptions=oe,k.identify=se,k.version=GS,k._optOut=!1,k._cookieStorage=r,k.deviceId=s,k.lastEventId=m,k.lastEventTime=h,k.optOut=b,k.sessionId=T,k.pageCounter=ae,k.userId=ie,k.debugLogsEnabled=O,k.loggerProvider.enable(O?rx.Debug:k.logLevel),k.networkTrackingOptions=oe,k.identify=se,k}return Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())}
75,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(Fx(this.apiKey),e)},t}(ux),bC=function(e,t,n){return t===void 0&&(t={}),W(void 0,void 0,void 0,function(){var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;return G(this,function(T){switch(T.label){case 0:return r=t.identityStorage||`cookie`,C={},r===`cookie`?[3,1]:(a=``,[3,5]);case 1:return(w=t.cookieOptions?.domain)==null?[3,2]:(o=w,[3,4]);case 2:return[4,CC()];case 3:o=T.sent(),T.label=4;case 4:a=o,T.label=5;case 5:return i=U.apply(void 0,[(C.domain=a,C.expiration=365,C.sameSite=`Lax`,C.secure=!1,C.upgrade=!0,C),t.cookieOptions]),s=xC(t.identityStorage,i),[4,tC(e,s,t.cookieOptions?.upgrade??!0)];case 6:return c=T.sent(),[4,s.get(Fx(e))];case 7:return l=T.sent(),u=Rx(),d=u.ampTimestamp?Number(u.ampTimestamp):void 0,f=d?Date.now()<d:!0,p=t.deviceId??(f?u.ampDeviceId??u.deviceId:void 0)??l?.deviceId??c.deviceId??Ub(),m=l?.lastEventId??c.lastEventId,h=l?.lastEventTime??c.lastEventTime,g=t.optOut??l?.optOut??c.optOut,_=l?.sessionId??c.sessionId,v=t.userId??l?.userId??c.userId,n.previousSessionDeviceId=l?.deviceId??c.deviceId,n.previousSessionUserId=l?.userId??c.userId,y={ipAddress:t.trackingOptions?.ipAddress??!0,language:t.trackingOptions?.language??!0,platform:t.trackingOptions?.platform??!0},b=l?.pageCounter,x=l?.debugLogsEnabled,t.autocapture!==void 0&&(t.defaultTracking=t.autocapture),S=new yC(e,t.appVersion,s,i,t.defaultTracking,t.autocapture,p,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,r,t.ingestionMetadata,t.instanceName,m,h,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,g,t.partnerId,t.plan,t.serverUrl,t.serverZone,_,t.sessionTimeout,t.storageProvider,y,t.transport,t.useBatch,t.fetchRemoteConfig,v,b,x,t.networkTrackingOptions,t.identify),[4,S.storageProvider.isEnabled()];
75case 8:return T.sent()||(S.loggerProvider.warn(`Storage provider ${S.storageProvider.constructor.name} is not enabled. Falling back to MemoryStorage.`),S.storageProvider=new qx),[2,S]}})})},xC=function(e,t){switch(e===void 0&&(e=vC),t===void 0&&(t={}),e){case`localStorage`:return new ZS;case`sessionStorage`:return new QS;case`none`:return new qx;default:return new Jx(U(U({},t),{expirationDays:t.expiration}))}},SC=function(e){return e===`xhr`?new $S:e===`beacon`?new eC:new eS},CC=function(e){return W(void 0,void 0,void 0,function(){var t,n,r,i,a,a,o,s,c,l;return G(this,function(u){switch(u.label){case 0:return[4,new Jx().isEnabled()];case 1:if(!u.sent()||!e&&(typeof location>`u`||!location.hostname))return[2,``];for(t=e??location.hostname,n=t.split(`.`),r=[],i=`AMP_TLDTEST`,a=n.length-2;a>=0;--a)r.push(n.slice(a).join(`.`));a=0,u.label=2;case 2:return a<r.length?(o=r[a],s={domain:`.`+o},c=new Jx(s),[4,c.set(i,1)]):[3,7];case 3:return u.sent(),[4,c.get(i)];case 4:return l=u.sent(),l?[4,c.remove(i)]:[3,6];case 5:return u.sent(),[2,`.`+o];case 6:return a++,[3,2];case 7:return[2,``]}})})},wC=function(){var e=`ampIntegrationContext`;if(typeof globalThis<`u`&&globalThis[e]!==void 0)return globalThis[e];if(typeof globalThis<`u`)return globalThis;if(typeof window<`u`)return window;if(typeof self<`u`)return self;if(typeof global<`u`)return global},TC=function(){var e=wC();return e?.location?.search?e.location.search.substring(1).split(`&`).filter(Boolean).reduce(function(e,t){var n=t.split(`=`,2),r=EC(n[0]),i=EC(n[1]);return i&&(e[r]=i),e},{}):{}},EC=function(e){e===void 0&&(e=``);try{return decodeURIComponent(e)}catch{return``}},DC=`utm_campaign`,OC=`utm_content`,kC=`utm_id`,AC=`utm_medium`,jC=`utm_source`,MC=`utm_term`,NC=`dclid`,PC=`fbclid`,FC=`gbraid`,IC=`gclid`,LC=`ko_click_id`,RC=`li_fat_id`,zC=`msclkid`,BC=`rdt_cid`,VC=`ttclid`,HC=`twclid`,UC=`wbraid`,WC={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},GC=`data-amp-mask`,KC=`*****`,qC=function(){function e(){}return e.prototype.parse=function(){return W(this,void 0,void 0,function(){return G(this,function(e){return[2,U(U(U(U({},WC),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=TC();return{utm_campaign:e[DC],utm_content:e[OC],utm_id:e[kC],utm_medium:e[AC],utm_source:e[jC],utm_term:e[MC]}},e.prototype.getReferrer=function(){var e={referrer:void 0,referring_domain:void 0};try{e.referrer=document.referrer||void 0,e.referring_domain=e.referrer?.split(`/`)[2]??void 0}catch{}return e},e.prototype.getClickIds=function(){var e,t=TC();return e={},e[NC]=t[NC],e[PC]=t[PC],e[FC]=t[FC],e[IC]=t[IC],e[LC]=t[LC],e[RC]=t[RC],e[zC]=t[zC],e[BC]=t[BC],e[VC]=t[VC],e[HC]=t[HC],e[UC]=t[UC],e},e}(),JC=function(e){if(typeof document>`u`||!document.title)return``;var t=document.querySelector(`title`);return t&&t.hasAttribute(`data-amp-mask`)?KC:e?e(document.title):document.title},YC;(function(e){e.SET=`$set`,e.SET_ONCE=`$setOnce`,e.ADD=`$add`,e.APPEND=`$append`,e.PREPEND=`$prepend`,e.REMOVE=`$remove`,e.PREINSERT=`$preInsert`,e.POSTINSERT=`$postInsert`,e.UNSET=`$unset`,e.CLEAR_ALL=`$clearAll`})(YC||={});var XC;(function(e){e.REVENUE_PRODUCT_ID=`$productId`,e.REVENUE_QUANTITY=`$quantity`,e.REVENUE_PRICE=`$price`,e.REVENUE_TYPE=`$revenueType`,e.REVENUE_CURRENCY=`$currency`,e.REVENUE=`$revenue`})(XC||={});var ZC;(function(e){e.IDENTIFY=`$identify`,e.GROUP_IDENTIFY=`$groupidentify`,e.REVENUE=`revenue_amount`})(ZC||={});var QC=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},$C=`[Amplitude] Page Viewed`,ew=function(e){e===void 0&&(e={});var t,n=wC(),r=void 0,i=!1,a,o=e.trackOn,s=e.trackHistoryChanges,c=e.eventType,l=c===void 0?$C:c,u=function(e){var t=e;try{t=decodeURI(e)}catch(e){r?.error(`Malformed URI sequence: `,e)}return t},d=function(){return W(void 0,void 0,void 0,function(){var e,t,n;return G(this,function(r){switch(r.label){case 0:return e=u(typeof location<`u`&&location.href||``),n={event_type:l},t=[{}],[4,tw()];case 1:return[2,(n.event_properties=U.apply(void 0,[U.apply(void 0,t.concat([r.sent()])),{"[Amplitude] Page Domain":typeof location<`u`&&location.hostname||``,"[Amplitude] Page Location":e,"[Amplitude] Page Path":typeof location<`u`&&u(location.pathname)||``,"[Amplitude] Page Title":JC(),"[Amplitude] Page URL":e.split(`?`)[0]}]),n)]}})})},f=function(){return o===void 0||typeof o==`function`&&o()},p=typeof location<`u`?location.href:null,m=function(){return W(void 0,void 0,void 0,function(){var e,n,i,a;return G(this,function(o){switch(o.label){case 0:return e=location.href,n=rw(s,e,p||``)&&f(),p=e,n?(r?.log(`Tracking page view event`),t==null?[3,3]:[3,1]):[3,4];case 1:return a=(i=t).track,[4,d()];case 2:a.apply(i,[o.sent()]),o.label=3;case 3:o.label=4;case 4:return[2]}})})},h=function(){m()};return{name:`@amplitude/plugin-page-view-tracking-browser`,type:`enrichment`,setup:function(e,o){return W(void 0,void 0,void 0,function(){var s,c;return G(this,function(l){switch(l.label){case 0:return t=o,a=e,r=e.loggerProvider,r.log(`Installing @amplitude/plugin-page-view-tracking-browser`),i=!0,n&&(n.addEventListener(`popstate`,h),n.history.pushState=new Proxy(n.history.pushState,{apply:function(e,t,n){var r=q(n,3),a=r[0],o=r[1],s=r[2];e.apply(t,[a,o,s]),i&&m()}})),f()?(r.log(`Tracking page view event`),c=(s=t).track,[4,d()]):[3,2];case 1:c.apply(s,[l.sent()]),l.label=2;case 2:return[2]}})})},execute:function(e){return W(void 0,void 0,void 0,function(){var t;return G(this,function(n){switch(n.label){case 0:return o===`attribution`&&nw(e)?(r?.log(`Enriching c
75ampaign event to page view event with campaign parameters`),[4,d()]):[3,2];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=U(U({},e.event_properties),t.event_properties),n.label=2;case 2:return a&&e.event_type===l&&(a.pageCounter=a.pageCounter?a.pageCounter+1:1,e.event_properties=U(U({},e.event_properties),{"[Amplitude] Page Counter":a.pageCounter})),[2,e]}})})},teardown:function(){return W(void 0,void 0,void 0,function(){return G(this,function(e){return n&&(n.removeEventListener(`popstate`,h),i=!1),[2]})})}}},tw=function(){return W(void 0,void 0,void 0,function(){var e;return G(this,function(t){switch(t.label){case 0:return e=QC,[4,new qC().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},nw=function(e){if(e.event_type===`$identify`&&e.user_properties){var t=e.user_properties,n=t[YC.SET]||{},r=t[YC.UNSET]||{},i=J(J([],q(Object.keys(n)),!1),q(Object.keys(r)),!1);return Object.keys(WC).every(function(e){return i.includes(e)})}return!1},rw=function(e,t,n){switch(e){case`pathOnly`:if(n==``)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname;default:return t!==n}},iw=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;t?.removeEventListener(n,r)}),t=[]};return{name:`@amplitude/plugin-form-interaction-tracking-browser`,type:`enrichment`,setup:function(t,r){return W(void 0,void 0,void 0,function(){var i,a;return G(this,function(o){return i=function(){if(!r){t.loggerProvider.warn(`Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.`);return}if(!(typeof document>`u`)){var i=function(e){var t=!1;n(e,`change`,function(){var n,i=ow(e);t||r.track(aC,(n={},n[hC]=aw(e.id),n[gC]=aw(e.name),n[_C]=i,n)),t=!0}),n(e,`submit`,function(){var n,i,a=ow(e);t||r.track(aC,(n={},n[hC]=aw(e.id),n[gC]=aw(e.name),n[_C]=a,n)),r.track(oC,(i={},i[hC]=aw(e.id),i[gC]=aw(e.name),i[_C]=a,i)),t=!1})};Array.from(document.getElementsByTagName(`form`)).forEach(i),typeof MutationObserver<`u`&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){e.nodeName===`FORM`&&i(e),`querySelectorAll`in e&&typeof e.querySelectorAll==`function`&&Array.from(e.querySelectorAll(`form`)).map(i)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState===`complete`?i():(a=Bb(),a?a.addEventListener(`load`,i):t.loggerProvider.debug(`Form interaction tracking is not installed because global is undefined.`)),[2]})})},execute:function(e){return W(void 0,void 0,void 0,function(){return G(this,function(t){return[2,e]})})},teardown:function(){return W(void 0,void 0,void 0,function(){return G(this,function(t){return e?.disconnect(),r(),[2]})})}}},aw=function(e){if(typeof e==`string`)return e},ow=function(e){var t=e.getAttribute(`action`);try{t=new URL(encodeURI(t??``),window.location.href).href}catch{}return t},sw=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;t?.removeEventListener(n,r)}),t=[]};return{name:`@amplitude/plugin-file-download-tracking-browser`,type:`enrichment`,setup:function(t,r){return W(void 0,void 0,void 0,function(){var i,a;return G(this,function(o){return i=function(){if(!r){t.loggerProvider.warn(`File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.`);return}if(!(typeof document>`u`)){var i=function(e){var t;try{t=new URL(e.href,window.location.href)}catch{return}var i=a.exec(t.href)?.[1];i&&n(e,`click`,function(){var n;i&&r.track(sC,(n={},n[uC]=i,n[dC]=t.pathname,n[fC]=e.id,n[pC]=e.text,n[mC]=e.href,n))})},a=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName(`a`)).forEach(i),typeof MutationObserver<`u`&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEac
75h(function(e){e.nodeName===`A`&&i(e),`querySelectorAll`in e&&typeof e.querySelectorAll==`function`&&Array.from(e.querySelectorAll(`a`)).map(i)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState===`complete`?i():(a=Bb(),a?a.addEventListener(`load`,i):t.loggerProvider.debug(`File download tracking is not installed because global is undefined.`)),[2]})})},execute:function(e){return W(void 0,void 0,void 0,function(){return G(this,function(t){return[2,e]})})},teardown:function(){return W(void 0,void 0,void 0,function(){return G(this,function(t){return e?.disconnect(),r(),[2]})})}}},cw=!1,lw=function(e){cw||e.defaultTracking!==void 0||(e.loggerProvider.warn(`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:
76
77amplitude.init(<YOUR_API_KEY>, {
78  defaultTracking: true,
79});
80
81Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`),cw=!0)},uw=function(){var e=`@amplitude/plugin-network-checker-browser`,t=`before`,n=Bb(),r=[],i=function(e,t){n?.addEventListener&&(n?.addEventListener(e,t),r.push({type:e,handler:t}))},a=function(){r.forEach(function(e){var t=e.type,r=e.handler;n?.removeEventListener(t,r)}),r=[]};return{name:e,type:t,setup:function(e,t){return W(void 0,void 0,void 0,function(){return G(this,function(n){return typeof navigator>`u`?(e.loggerProvider.debug(`Network connectivity checker plugin is disabled because navigator is not available.`),e.offline=!1,[2]):(e.offline=!navigator.onLine,i(`online`,function(){e.loggerProvider.debug(`Network connectivity changed to online.`),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),i(`offline`,function(){e.loggerProvider.debug(`Network connectivity changed to offline.`),e.offline=!0}),[2])})})},teardown:function(){return W(void 0,void 0,void 0,function(){return G(this,function(e){return a(),[2]})})}}};function dw(e){var t,n,r,i,a,o;if(!(typeof e!=`object`||!e)&&!Array.isArray(e)){var s=Object.keys(e);try{for(var c=K(s),l=c.next();!l.done;l=c.next()){var u=l.value;try{var d=e[u];typeof d?.enabled==`boolean`&&(d.enabled?(delete d.enabled,Object.keys(d).length===0&&(e[u]=!0)):e[u]=!1),dw(d)}catch{}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}try{if(e.autocapture?.networkTracking?.captureRules?.length)try{for(var f=K(e.autocapture.networkTracking.captureRules),p=f.next();!p.done;p=f.next()){var m=p.value;try{for(var h=(a=void 0,K([`responseHeaders`,`requestHeaders`])),g=h.next();!g.done;g=h.next()){var _=g.value,v=m[_]??{},y=v.captureSafeHeaders,b=v.allowlist;if(!(!y&&!b)){if(b!==void 0&&!Array.isArray(b)){delete m[_];continue}m[_]=J(J([],q(y?wb:[]),!1),q(b??[]),!1)}}}catch(e){a={error:e}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}catch{}}}function fw(e,t,n){var r,i,a=[];try{for(var o=K(t??[]),s=o.next();!s.done;s=o.next()){var c=s.value;try{a.push(new RegExp(c))}catch(e){n.loggerProvider.warn(`Invalid regex pattern: ${c}`,e)}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e.concat(a)}function pw(e,t){var n,r;if(e){dw(e);try{t.loggerProvider.debug(`Update browser config with remote configuration:`,JSON.stringify(e));var i=e;if(i&&`autocapture`in i){if(typeof i.autocapture==`boolean`&&(t.autocapture=i.autocapture),typeof i.autocapture==`object`&&i.autocapture!==null){var a=U({},i.autocapture);if(t.autocapture===void 0&&(t.autocapture=i.autocapture),typeof i.autocapture.elementInteractions==`object`&&i.autocapture.elementInteractions!==null&&i.autocapture.elementInteractions.pageUrlAllowlistRegex?.length){a.elementInteractions=U({},i.autocapture.elementInteractions);var o=a.elementInteractions,s=o.pageUrlAllowlist??[],c=i.autocapture.elementInteractions.pageUrlAllowlistRegex;o.pageUrlAllowlist=fw(s,c,t),delete o.pageUrlAllowlistRegex}
81if(typeof i.autocapture.networkTracking==`object`&&i.autocapture.networkTracking!==null&&i.autocapture.networkTracking.captureRules?.length){a.networkTracking=U({},i.autocapture.networkTracking);var l=a.networkTracking.captureRules??[];try{for(var u=K(l),d=u.next();!d.done;d=u.next()){var f=d.value;f.urls=fw(f.urls??[],f.urlsRegex,t),delete f.urlsRegex}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}typeof t.autocapture==`boolean`&&(t.autocapture=U({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},a)),typeof t.autocapture==`object`&&(t.autocapture=U(U({},t.autocapture),a))}t.defaultTracking=t.autocapture}t.loggerProvider.debug(`Browser config after remote config update:`,JSON.stringify(t))}catch(e){t.loggerProvider.error(`Failed to apply remote configuration because of error: `,e)}}}var mw;(function(e){e.US=`US`,e.EU=`EU`,e.STAGING=`STAGING`})(mw||={});var hw;(function(e){e.Unknown=`unknown`,e.Skipped=`skipped`,e.Success=`success`,e.RateLimit=`rate_limit`,e.PayloadTooLarge=`payload_too_large`,e.Invalid=`invalid`,e.Failed=`failed`,e.Timeout=`Timeout`,e.SystemError=`SystemError`})(hw||={});var gw=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if(typeof e!=`object`)return null;var t=e.code||0,n=this.buildStatus(t);switch(n){case hw.Success:return{status:n,statusCode:t,body:{eventsIngested:e.events_ingested??0,payloadSizeBytes:e.payload_size_bytes??0,serverUploadTime:e.server_upload_time??0}};case hw.Invalid:return{status:n,statusCode:t,body:{error:e.error??``,missingField:e.missing_field??``,eventsWithInvalidFields:e.events_with_invalid_fields??{},eventsWithMissingFields:e.events_with_missing_fields??{},eventsWithInvalidIdLengths:e.events_with_invalid_id_lengths??{},epsThreshold:e.eps_threshold??0,exceededDailyQuotaDevices:e.exceeded_daily_quota_devices??{},silencedDevices:e.silenced_devices??[],silencedEvents:e.silenced_events??[],throttledDevices:e.throttled_devices??{},throttledEvents:e.throttled_events??[]}};case hw.PayloadTooLarge:return{status:n,statusCode:t,body:{error:e.error??``}};case hw.RateLimit:return{status:n,statusCode:t,body:{error:e.error??``,epsThreshold:e.eps_threshold??0,throttledDevices:e.throttled_devices??{},throttledUsers:e.throttled_users??{},exceededDailyQuotaDevices:e.exceeded_daily_quota_devices??{},exceededDailyQuotaUsers:e.exceeded_daily_quota_users??{},throttledEvents:e.throttled_events??[]}};case hw.Timeout:default:return{status:n,statusCode:t}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?hw.Success:e===429?hw.RateLimit:e===413?hw.PayloadTooLarge:e===408?hw.Timeout:e>=400&&e<500?hw.Invalid:e>=500?hw.Failed:hw.Unknown},e}(),_w=`Network error occurred, remote config fetch failed`,vw=`Remote config successfully fetched`,yw=`Remote config fetch rejected due to exceeded retry count`,bw=`Remote config fetch rejected due to timeout after 5 seconds`,xw=`Unexpected error occurred`,Sw=`https://sr-client-cfg.amplitude.com/config`,Cw=`https://sr-client-cfg.stag2.amplitude.com/config`,ww=`https://sr-client-cfg.eu.amplitude.com/config`,Tw=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteNamespaceConfig=function(e,t){return W(r,void 0,void 0,function(){var n,r,i;return G(this,function(a){switch(a.label){case 0:return n=Date.now(),[4,this.fetchWithTimeout(t)];case 1:return r=a.sent(),r&&(i=r.configs&&r.configs[e],i)?(this.metrics.fetchTimeAPISuccess=Date.now()-n,[2,i]):(this.metrics.fetchTimeAPIFail=Date.now()-n,[2,void 0])}})})},this.getRemoteConfig=function(e,t,n){return W(r,void 0,void 0,function(){var r;return G(this,function(i){switch(i.label){case 0:return[4,this.getRemoteNamespaceConfig(e,n)];case 1:return r=i.sent(),[2,r?.[t]]}})})},this.fetchWithTimeout=function(e){return W(r,void 0,void 0,function(){var t,n,r;return G(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return W(r,void 0,void 0,function(){var n,r,i,a,o,s,c,l,u,d,f,p;return G(this,function(m){switch(m.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:yw})];if(e.aborted)return[2,this.completeRequest({err:bw})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),m.label=1;case 1:m.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(r=K(this.configKeys),i=r.next();!i.done;
81i=r.next())a=i.value,n.append(`config_keys`,a)}catch(e){f={error:e}}finally{try{i&&!i.done&&(p=r.return)&&p.call(r)}finally{if(f)throw f.error}}return t&&n.set(`session_id`,String(t)),o={headers:{Accept:`*/*`},method:`GET`},s=`${this.getServerUrl()}?${n.toString()}`,this.attempts+=1,[4,fetch(s,U(U({},o),{signal:e}))];case 2:if(c=m.sent(),c===null)return[2,this.completeRequest({err:xw})];switch(l=new gw().buildStatus(c.status),l){case hw.Success:return this.attempts=0,[2,this.parseAndStoreConfig(c)];case hw.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:_w})]}return[3,4];case 3:return u=m.sent(),d=u,e.aborted?[2,this.completeRequest({err:bw})]:[2,this.completeRequest({err:d.message??xw})];case 4:return[2]}})})},this.retryFetch=function(e,t){return W(r,void 0,void 0,function(){var n=this;return G(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return W(r,void 0,void 0,function(){var t;return G(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:vw}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===mw.STAGING?Cw:this.localConfig.serverZone===mw.EU?ww:Sw},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),Ew=function(e){var t=e.localConfig,n=e.configKeys;return W(void 0,void 0,void 0,function(){return G(this,function(e){return[2,new Tw({localConfig:t,configKeys:n})]})})},Dw=`@amplitude/plugin-autocapture-browser`,Ow=`@amplitude/plugin-frustration-browser`,kw=`[Amplitude] Element Clicked`,Aw=`[Amplitude] Dead Click`,jw=`[Amplitude] Rage Click`,Mw=`[Amplitude] Element ID`,Nw=`[Amplitude] Element Class`,Pw=`[Amplitude] Element Tag`,Fw=`[Amplitude] Element Text`,Iw=`[Amplitude] Element Hierarchy`,Lw=`[Amplitude] Element Href`,Rw=`[Amplitude] Element Position Left`,zw=`[Amplitude] Element Position Top`,Bw=`[Amplitude] Element Aria Label`,Vw=`[Amplitude] Element Attributes`,Hw=`[Amplitude] Element Parent Label`,Uw=`[Amplitude] Page URL`,Ww=`[Amplitude] Page Title`,Gw=`[Amplitude] Viewport Height`,Kw=`[Amplitude] Viewport Width`,qw=`https://app.amplitude.com`,Jw={US:qw,EU:`https://app.eu.amplitude.com`,STAGING:`https://apps.stag2.amplitude.com`},Yw=`https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz`,Xw=`amp-visual-tagging-selector-highlight`,Zw=`data-amp-mask-attributes`;function Qw(e){return typeof e==`function`}function $w(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var eT=$w(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
82`+t.map(function(e,t){return t+1+`) `+e.toString()}).join(`
83  `):``,this.name=`UnsubscriptionError`,this.errors=t}});function tT(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var nT=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=K(a),s=o.next();!s.done;s=o.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var c=this.initialTeardown;if(Qw(c))try{c()}catch(e){i=e instanceof eT?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=K(l),d=u.next();!d.done;d=u.next()){var f=d.value;try{aT(f)}catch(e){i??=[],e instanceof eT?i=J(J([],q(i)),q(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new eT(i)}},e.prototype.add=function(t){if(t&&t!==this)if(this.closed)aT(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=this._finalizers??[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&tT(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&tT(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e}(),rT=nT.EMPTY;function iT(e){return e instanceof nT||e&&`closed`in e&&Qw(e.remove)&&Qw(e.add)&&Qw(e.unsubscribe)}function aT(e){Qw(e)?e():e.unsubscribe()}var oT={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNext
vendor: 10,446 bytes, line 83
83Context:!1},sT={setTimeout:function(e,t){var n=[...arguments].slice(2),r=sT.delegate;return r?.setTimeout?r.setTimeout.apply(r,J([e,t],q(n))):setTimeout.apply(void 0,J([e,t],q(n)))},clearTimeout:function(e){return(sT.delegate?.clearTimeout||clearTimeout)(e)},delegate:void 0};function cT(e){sT.setTimeout(function(){var t=oT.onUnhandledError;if(t)t(e);else throw e})}function lT(){}var uT=(function(){return pT(`C`,void 0,void 0)})();function dT(e){return pT(`E`,void 0,e)}function fT(e){return pT(`N`,e,void 0)}function pT(e,t,n){return{kind:e,value:t,error:n}}var mT=null;function hT(e){if(oT.useDeprecatedSynchronousErrorHandling){var t=!mT;if(t&&(mT={errorThrown:!1,error:null}),e(),t){var n=mT,r=n.errorThrown,i=n.error;if(mT=null,r)throw i}}else e()}function gT(e){oT.useDeprecatedSynchronousErrorHandling&&mT&&(mT.errorThrown=!0,mT.error=e)}var _T=function(e){xg(t,e);function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,iT(t)&&t.add(n)):n.destination=TT,n}return t.create=function(e,t,n){return new xT(e,t,n)},t.prototype.next=function(e){this.isStopped?wT(fT(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?wT(dT(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?wT(uT,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(nT),vT=Function.prototype.bind;function yT(e,t){return vT.call(e,t)}var bT=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ST(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ST(e)}else ST(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ST(e)}},e}(),xT=function(e){xg(t,e);function t(t,n,r){var i=e.call(this)||this,a;if(Qw(t)||!t)a={next:t??void 0,error:n??void 0,complete:r??void 0};else{var o;i&&oT.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&yT(t.next,o),error:t.error&&yT(t.error,o),complete:t.complete&&yT(t.complete,o)}):a=t}return i.destination=new bT(a),i}return t}(_T);function ST(e){oT.useDeprecatedSynchronousErrorHandling?gT(e):cT(e)}function CT(e){throw e}function wT(e,t){var n=oT.onStoppedNotification;n&&sT.setTimeout(function(){return n(e,t)})}var TT={closed:!0,next:lT,error:CT,complete:lT},ET=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})();function DT(e){return e}function OT(e){return e.length===0?DT:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var kT=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this,i=MT(e)?e:new xT(e,t,n);return hT(function(){var e=r,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?r._subscribe(i):r._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return t=AT(t),new t(function(t,r){var i=new xT({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){return this.source?.subscribe(e)},e.prototype[ET]=function(){return this},e.prototype.pipe=function(){return OT([...arguments])(this)},e.prototype.toPromise=function(e){var t=this;return e=AT(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function AT(e){return e??oT.Promise??Promise}function jT(e){return e&&Qw(e.next)&&Qw(e.error)&&Qw(e.complete)}function MT(e){return e&&e instanceof _T||jT(e)&&iT(e)}function NT(e){return Qw(e?.lift)}function PT(e){return function(t){if(NT(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError(`Unable to lift unknown Observable type`)}}function FT(e,t,n,r,i){return new IT(e,t,n,r,i)}var IT=function(e){xg(t,e);function t(t,n,r,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)==null||t.call(this))}},t}(_T),LT=$w(function(e){return function(){e(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`}}),RT=function(e){xg(t,e);function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return t.prototype.lift=function(e){var t=new zT(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new LT},t.prototype.next=function(e){var t=this;hT(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||=Array.from(t.observers);try{for(var i=K(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;hT(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;hT(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){return this.observers?.length>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?rT:(this.currentObservers=null,a.push(e),new nT(function(){t.currentObservers=null,tT(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new kT;return e.source=this,e},t.create=function(e,t){return new zT(e,t)},t}(kT),zT=function(e){xg(t,e);function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},t.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},t.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},t.prototype._subscribe=function(e){return this.source?.subscribe(e)??rT},t}(RT),BT={now:function(){return(BT.delegate||Date).now()},delegate:void 0},VT=function(e){xg(t,e);function t(t,n){return e.call(this)||this}return t.prototype.schedule=function(e,t){return t===void 0&&(t=0),this},t}(nT),HT={setInterval:function(e,t){var n=[...arguments].slice(2),r=HT.delegate;return r?.setInterval?r.setInterval.apply(r,J([e,t],q(n))):setInterval.apply(void 0,J([e,t],q(n)))},clearInterval:function(e){return(HT.delegate?.clearInterval||clearInterval)(e)},delegate:void 0},UT=function(e){xg(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return t.prototype.schedule=function(e,t){if(t===void 0&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id??this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return n===void 0&&(n=0),HT.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&HT.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error(`executing a cancelled action`);this.pending=!1;var n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r;try{this.work(e)}catch(e){n=!0,r=e||Error(`Scheduled action threw falsy error`)}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,r=t.scheduler,i=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,tT(i,this),n!=null&&(this.id=this.recycleAsyncId(r,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(VT),WT=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=BT.now,e}(),GT=new(function(e){xg(t,e);function t(t,n){n===void 0&&(n=WT.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return t.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},t}(WT))(UT),KT=GT,qT=new kT(function(e){return e.complete()});function JT(e){return e&&Qw(e.schedule)}function YT(e){return e[e.length-1]}function XT(e){return JT(YT(e))?e.pop():void 0}function ZT(e,t){return typeof YT(e)==`number`?e.pop():t}var QT=(function(e){return e&&typeof e.length==`number`&&typeof e!=`function`});function $T(e){return Qw(e?.then)}function eE(e){return Qw(e[ET])}function tE(e){return Symbol.asyncIterator&&Qw(e?.[Symbol.asyncIterator])}function nE(e){return TypeError(`You provided `+(typeof e==`object`&&e?`an invali
83d object`:`'`+e+`'`)+` where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function rE(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}var iE=rE();function aE(e){return Qw(e?.[iE])}function oE(e){return wg(this,arguments,function(){var t,n,r,i;return G(this,function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Cg(t.read())];case 3:return n=a.sent(),r=n.value,i=n.done,i?[4,Cg(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Cg(r)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function sE(e){return Qw(e?.getReader)}function cE(e){if(e instanceof kT)return e;if(e!=null){if(eE(e))return lE(e);if(QT(e))return uE(e);if($T(e))return dE(e);if(tE(e))return pE(e);if(aE(e))return fE(e);if(sE(e))return mE(e)}throw nE(e)}function lE(e){return new kT(function(t){var n=e[ET]();if(Qw(n.subscribe))return n.subscribe(t);throw TypeError(`Provided object does not correctly implement Symbol.observable`)})}function uE(e){return new kT(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function dE(e){return new kT(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,cT)})}function fE(e){return new kT(function(t){var n,r;try{for(var i=K(e),a=i.next();!a.done;a=i.next()){var o=a.value;if(t.next(o),t.closed)return}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function pE(e){return new kT(function(t){hE(e,t).catch(function(e){return t.error(e)})})}function mE(e){return pE(oE(e))}function hE(e,t){var n,r,i,a;return W(this,void 0,void 0,function(){var o,s;return G(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=Tg(e),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),i={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function gE(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}function _E(e,t){return t===void 0&&(t=0),PT(function(n,r){n.subscribe(FT(r,function(n){return gE(r,e,function(){return r.next(n)},t)},function(){return gE(r,e,function(){return r.complete()},t)},function(n){return gE(r,e,function(){return r.error(n)},t)}))})}function vE(e,t){return t===void 0&&(t=0),PT(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function yE(e,t){return cE(e).pipe(vE(t),_E(t))}function bE(e,t){return cE(e).pipe(vE(t),_E(t))}function xE(e,t){return new kT(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function SE(e,t){return new kT(function(n){var r;return gE(n,t,function(){r=e[iE](),gE(n,t,function(){var e,t,i;try{e=r.next(),t=e.value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return Qw(r?.return)&&r.return()}})}function CE(e,t){if(!e)throw Error(`Iterable cannot be null`);return new kT(function(n){gE(n,t,function(){var r=e[Symbol.asyncIterator]();gE(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function wE(e,t){return CE(oE(e),t)}function TE(e,t){if(e!=null){if(eE(e))return yE(e,t);if(QT(e))return xE(e,t);if($T(e))return bE(e,t);if(tE(e))return CE(e,t);if(aE(e))return SE(e,t);if(sE(e))return wE(e,t)}throw nE(e)}function EE(e,t){return t?TE(e,t):cE(e)}function DE(e){return e instanceof Date&&!isNaN(e)}var OE=$w(function(e){return function(t){t===void 0&&(t=null),e(this),this.message=`Timeout has occurred`,this.name=`TimeoutError`,this.info=t}});function kE(e,t){var n=DE(e)?{first:e}:typeof e==`number`?{each:e}:e,r=n.first,i=n.each,a=n.with,o=a===void 0?AE:a,s=n.scheduler,c=s===void 0?t??GT:s,l=n.meta,u=l===void 0?null:l;if(r==null&&i==null)throw TypeError(`No timeout provided.`);return PT(function(e,t){var n,a,s=null,l=0,d=function(e){a=gE(t,c,function(){try{n.unsubscribe(),cE(o({meta:u,lastValue:s,seen:l})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(FT(t,function(e){a?.unsubscribe(),l++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){a?.closed||a?.unsubscribe(),s=null})),!l&&d(r==null?i:typeof r==`number`?r:+r-c.now())})}function AE(e){throw new OE(e)}function jE(e,t){return PT(function(n,r){var i=0;n.subscribe(FT(r,function(n){r.next(e.call(t,n,i++))}))})}var ME=Array.isArray;function NE(e,t){return ME(t)?e.apply(void 0,J([],q(t))):e(t)}function PE(e){return jE(function(t){return NE(e,t)})}function FE(e,t,n,r,i,a,o,s){var c=[],l=0,u=0,d=!1,f=function(){d&&!c.length&&!l&&t.complete()},p=function(e){return l<r?m(e):c.push(e)},m=function(e){a&&t.next(e),l++;var s=!1;cE(n(e,u++)).subscribe(FT(t,function(e){i?.(e),a?p(e):t.next(e)},function(){s=!0},void 0,function(){if(s)try{l--;for(var e=function(){var e=c.shift();o?gE(t,o,function(){return m(e)}):m(e)};c.length&&l<r;)e();f()}catch(e){t.error(e)}}))};return e.subscribe(FT(t,p,function(){d=!0,f()})),function(){s?.()}}function IE(e,t,n){return n===void 0&&(n=1/0),Qw(t)?IE(function(n,r){return jE(function(e,i){return t(n,e,r,i)})(cE(e(n,r)))},n):(typeof t==`number`&&(n=t),PT(function(t,r){return FE(t,r,e,n)}))}function LE(e){return e===void 0&&(e=1/0),IE(DT,e)}function RE(){return LE(1)}function zE(){var e=[...arguments];return RE()(EE(e,XT(e)))}var BE=[`addListener`,`removeListener`],VE=[`addEventListener`,`removeEventListener`],HE=[`on`,`off`];function UE(e,t,n,r){if(Qw(n)&&(r=n,n=void 0),r)return UE(e,t,n).pipe(PE(r));var i=q(qE(e)?VE.map(function(r){return function(i){return e[r](t,i,n)}}):GE(e)?BE.map(WE(e,t)):KE(e)?HE.map(WE(e,t)):[],2),a=i[0],o=i[1];if(!a&&QT(e))return IE(function(e){return UE(e,t,n)})(cE(e));if(!a)throw TypeError(`Invalid event target`);return new kT(function(e){var t=function(){var t=[...arguments];return e.next(1<t.length?t:t[0])};return a(t),function(){return o(t)}})}function WE(e,t){return function(n){return function(r){return e[n](t,r)}}}function GE(e){return Qw(e.addListener)&&Qw(e.removeListener)}function KE(e){return Qw(e.on)&&Qw(e.off)}function qE(e){return Qw(e.addEventListener)&&Qw(e.removeEventListener)}
83function JE(e,t,n){e===void 0&&(e=0),n===void 0&&(n=KT);var r=-1;return t!=null&&(JT(t)?n=t:r=t),new kT(function(t){var i=DE(e)?+e-n.now():e;i<0&&(i=0);var a=0;return n.schedule(function(){t.closed||(t.next(a++),0<=r?this.schedule(void 0,r):t.complete())},i)})}function YE(){var e=[...arguments],t=XT(e),n=ZT(e,1/0),r=e;return r.length?r.length===1?cE(r[0]):LE(n)(EE(r,t)):qT}var XE=Array.isArray;function ZE(e){return e.length===1&&XE(e[0])?e[0]:e}function QE(e,t){return PT(function(n,r){var i=0;n.subscribe(FT(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}function $E(){var e=[...arguments];return e=ZE(e),e.length===1?cE(e[0]):new kT(eD(e))}function eD(e){return function(t){for(var n=[],r=function(r){n.push(cE(e[r]).subscribe(FT(t,function(e){if(n){for(var i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}t.next(e)})))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}}function tD(e){return PT(function(t,n){var r=[];return t.subscribe(FT(n,function(e){return r.push(e)},function(){n.next(r),n.complete()})),cE(e).subscribe(FT(n,function(){var e=r;r=[],n.next(e)},lT)),function(){r=null}})}function nD(e,t){return t===void 0&&(t=GT),PT(function(n,r){var i=null,a=null,o=null,s=function(){if(i){i.unsubscribe(),i=null;var e=a;a=null,r.next(e)}};function c(){var n=o+e,a=t.now();if(a<n){i=this.schedule(void 0,n-a),r.add(i);return}s()}n.subscribe(FT(r,function(n){a=n,o=t.now(),i||(i=t.schedule(c,e),r.add(i))},function(){s(),r.complete()},void 0,function(){a=i=null}))})}function rD(e){return e<=0?function(){return qT}:PT(function(t,n){var r=0;t.subscribe(FT(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function iD(){return PT(function(e,t){e.subscribe(FT(t,lT))})}function aD(e){return jE(function(){return e})}function oD(e,t){return t?function(n){return zE(t.pipe(rD(1),iD()),n.pipe(oD(e)))}:IE(function(t,n){return cE(e(t,n)).pipe(rD(1),aD(t))})}function sD(e,t){t===void 0&&(t=GT);var n=JE(e,t);return oD(function(){return n})}function cD(){return PT(function(e,t){var n,r=!1;e.subscribe(FT(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))})}function lD(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new RT}:t,r=e.resetOnError,i=r===void 0?!0:r,a=e.resetOnComplete,o=a===void 0?!0:a,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(e){var t,r,a,s=0,l=!1,u=!1,d=function(){r?.unsubscribe(),r=void 0},f=function(){d(),t=a=void 0,l=u=!1},p=function(){var e=t;f(),e?.unsubscribe()};return PT(function(e,m){s++,!u&&!l&&d();var h=a??=n();m.add(function(){s--,s===0&&!u&&!l&&(r=uD(p,c))}),h.subscribe(m),!t&&s>0&&(t=new xT({next:function(e){return h.next(e)},error:function(e){u=!0,d(),r=uD(f,i,e),h.error(e)},complete:function(){l=!0,d(),r=uD(f,o),h.complete()}}),cE(e).subscribe(t))})(e)}}function uD(e,t){var n=[...arguments].slice(2);if(t===!0){e();return}if(t!==!1){var r=new xT({next:function(){r.unsubscribe(),e()}});return cE(t.apply(void 0,J([],q(n)))).subscribe(r)}}function dD(e,t){return PT(function(n,r){var i=null,a=0,o=!1,s=function(){return o&&!i&&r.complete()};n.subscribe(FT(r,function(n){i?.unsubscribe();var o=0,c=a++;cE(e(n,c)).subscribe(i=FT(r,function(e){return r.next(t?t(n,e,c,o++):e)},function(){i=null,s()}))},function(){o=!0,s()}))})}function fD(e,t){return PT(function(n,r){var i=t??{},a=i.leading,o=a===void 0?!0:a,s=i.trailing,c=s===void 0?!1:s,l=!1,u=null,d=null,f=!1,p=function(){d?.unsubscribe(),d=null,c&&(g(),f&&r.complete())},m=function(){d=null,f&&r.complete()},h=function(t){return d=cE(e(t)).subscribe(FT(r,p,m))},g=function(){if(l){l=!1;var e=u;u=null,r.next(e),!f&&h(e)}};n.subscribe(FT(r,function(e){l=!0,u=e,!(d&&!d.closed)&&(o?g():h(e))},function(){f=!0,!(c&&l&&d&&!d.closed)&&r.complete()}))})}function pD(e,t,n){t===void 0&&(t=GT);var r=JE(e,t);return fD(function(){return r},n)}var mD=[`input`,`select`,`textarea`],hD=function(e,t){return((window==null?void 0:window.getComputedStyle)?.call(window,e))?.getPropertyValue(`cursor`)===`pointer`&&t===`click`},gD=function(e,t,n){return n===void 0&&(n=!1),function(r,i){var a,o=e.pageUrlAllowlist,s=e.pageUrlExcludelist,c=e.shouldTrackEventResolver,l=((a=i?.tagName)?.toLowerCase)?.call(a);if(!l)return!1;if(c)return c(r,i);if(!Gx(window.location.href,o)||s&&s.length>0&&Gx(window.location.href,s))return!1;var u=String(i?.getAttribute(`type`))||``;if(typeof u==`string`)switch(u.toLowerCase()){case`hidden`:return!1;case`password`:return!1}var d=hD(i,r);if(n&&d)return!0;
83if(t&&!t.some(function(e){return!!(i?.matches)?.call(i,e)}))return!1;switch(l){case`input`:case`select`:case`textarea`:return r===`change`||r===`click`;default:return d?!0:r===`click`}}},_D=function(e){var t,n=((t=e?.tagName)?.toLowerCase)?.call(t),r=e instanceof HTMLElement?e.getAttribute(`contenteditable`)?.toLowerCase()===`true`:!1;return!mD.includes(n)&&!r},vD=function(e){return e?e.split(`,`).map(function(e){return e.trim()}).filter(function(e){return e.length>0&&e!==`id`&&e!==`class`}):[]},yD=function(e,t){return Object.entries(e).reduce(function(e,n){var r=q(n,2),i=r[0],a=r[1];if(i.startsWith(t)){var o=i.replace(t,``);o&&(e[o]=a||``)}return e},{})},bD=function(e){return e==null||typeof e==`object`&&Object.keys(e).length===0||typeof e==`string`&&e.trim().length===0},xD=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return bD(r)||(t[n]=r),t},{})},SD=function(e,t){return e?t.some(function(t){return(e?.matches)?.call(e,t)})?e:SD(e?.parentElement,t):null},CD=function(e){return new Promise(function(t,n){var r;try{var i=document.createElement(`script`);i.type=`text/javascript`,i.async=!0,i.src=e,i.addEventListener(`load`,function(){t({status:!0})},{once:!0}),i.addEventListener(`error`,function(){n({status:!1,message:`Failed to load the script ${e}`})}),(r=document.head)==null||r.appendChild(i)}catch(e){n(e)}})};function wD(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}var TD=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)};function ED(e){return e.type===`click`||e.type===`change`}var DD=`1.14.2`,OD=new Set([`id`,`class`,`style`,`value`,`onclick`,`onchange`,`oninput`,`onblur`,`onsubmit`,`onfocus`,`onkeydown`,`onkeyup`,`onkeypress`,`data-reactid`,`data-react-checksum`,`data-reactroot`,Zw,GC]),kD=[`type`],AD=[`svg`,`path`,`g`],jD=[`password`,`hidden`],MD=128;function ND(e,t){var n,r;if(e===null)return null;var i=String(e.tagName).toLowerCase(),a={tag:i},o=Array.from(e.parentElement?.children??[]);o.length&&(a.index=o.indexOf(e),a.indexOfType=o.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var s=(e.previousElementSibling?.tagName)?.toLowerCase();s&&(a.prevSib=String(s));var c=e.getAttribute(`id`);c&&(a.id=String(c));var l=Array.from(e.classList);l.length&&(a.classes=l);var u={},d=Array.from(e.attributes).filter(function(e){return!OD.has(e.name)}),f=!_D(e);if(!jD.includes(String(e.getAttribute(`type`)))&&!AD.includes(i))try{for(var p=K(d),m=p.next();!m.done;m=p.next()){var h=m.value;if(!(f&&!kD.includes(h.name))){if(t.has(h.name)){u[h.name]=KC;continue}u[h.name]=String(h.value).substring(0,MD)}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}return Object.keys(u).length&&(a.attrs=u),a}function PD(e){var t=[];if(!e)return t;
83t.push(e);for(var n=e.parentElement;n&&n.tagName!==`HTML`;)t.push(n),n=n.parentElement;return t}var FD=function(e,t){try{if(e.sourceType===`DOM_ELEMENT`){var n=document.documentElement;return e.scope&&t&&(n=t.closest(e.scope)),n&&e.selector?n.querySelector(e.selector):n}}catch{return}},ID=function(e,t,n){e.forEach(function(e){if(typeof e!=`string`&&e.actionType===`ATTACH_EVENT_PROPERTY`){var r=n.extractDataFromDataSource(e.dataSource,t.closestTrackedAncestor);t.targetElementProperties[e.destinationKey]=r}})},LD=/\b(?:\d[ -]*?){13,16}\b/,RD=/(\d{3}-?\d{2}-?\d{4})/g,zD=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,BD=function(){function e(e){var t,n,r=this;this.replaceSensitiveString=function(e){var t,n;if(typeof e!=`string`)return``;var i=e;i=i.replace(LD,KC),i=i.replace(RD,KC),i=i.replace(zD,KC);try{for(var a=K(r.additionalMaskTextPatterns),o=a.next();!o.done;o=a.next()){var s=o.value;try{i=i.replace(s,KC)}catch{}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},this.getHierarchy=function(e){var t,n,i=[];if(!e)return[];for(var a=PD(e),o=new Map,s=a.length-1;s>=0;s--){var c=a[s];if(c){var l=vD(c.getAttribute(Zw)),u=s===a.length-1?[]:o.get(a[s+1])??new Set,d=new Set(J(J([],q
83(u),!1),q(l),!1));o.set(c,d)}}i=a.map(function(e){return ND(e,o.get(e)??new Set)});var f=function(e){e?.attrs&&Object.entries(e.attrs).forEach(function(t){var n=q(t,2),i=n[0],a=n[1];e.attrs&&(e.attrs[i]=r.replaceSensitiveString(a))})};try{for(var p=K(i),m=p.next();!m.done;m=p.next()){var h=m.value;f(h)}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return i},this.getNearestLabel=function(e){var t=e.parentElement;if(!t)return``;var n;try{n=t.querySelector(`:scope>span,h1,h2,h3,h4,h5,h6`)}catch{n=null}return n?r.getText(n):r.getNearestLabel(t)},this.getEventProperties=function(e,t,n){var i,a,o=((a=t?.tagName)?.toLowerCase)?.call(a),s=typeof t.getBoundingClientRect==`function`?t.getBoundingClientRect():{left:null,top:null},c=r.getHierarchy(t),l=c[0]?.attrs,u=r.getNearestLabel(t),d=yD(l??{},n),f=(i={},i[Iw]=c,i[Pw]=o,i[Fw]=r.getText(t),i[Rw]=s.left==null?null:Math.round(s.left),i[zw]=s.top==null?null:Math.round(s.top),i[Vw]=d,i[Hw]=u,i[Uw]=Kx(window.location.href.split(`?`)[0]),i[Ww]=JC(r.replaceSensitiveString),i[Gw]=window.innerHeight,i[Kw]=window.innerWidth,i);return f[Mw]=t.getAttribute(`id`)||``,f[Nw]=t.getAttribute(`class`),f[Bw]=l?.[`aria-label`],o===`a`&&e===`click`&&t instanceof HTMLAnchorElement&&(f[Lw]=r.replaceSensitiveString(t.href)),xD(f)},this.addAdditionalEventProperties=function(e,t,n,i,a){a===void 0&&(a=!1);var o={event:e,timestamp:Date.now(),type:t};if(ED(o)&&o.event.target!==null){if(a&&hD(o.event.target,o.type))return o.closestTrackedAncestor=o.event.target,o.targetElementProperties=r.getEventProperties(o.type,o.closestTrackedAncestor,i),o;var s=SD(o.event.target,n);return s&&(o.closestTrackedAncestor=s,o.targetElementProperties=r.getEventProperties(o.type,s,i)),o}return o},this.extractDataFromDataSource=function(e,t){if(e.sourceType===`DOM_ELEMENT`){var n=FD(e,t);return n?e.elementExtractType===`TEXT`?r.getText(n):e.elementExtractType===`ATTRIBUTE`&&e.attribute?n.getAttribute(e.attribute):void 0:void 0}},this.getText=function(e){if(e.closest(`[data-amp-mask]`)!==null)return KC;var t=``;if(!e.querySelector(`[data-amp-mask], [contenteditable]`))t=e.innerText||``;else{var n=e.cloneNode(!0);n.querySelectorAll(`[${GC}], [contenteditable]`).forEach(function(e){e.innerText=KC}),t=n.innerText||``}return r.replaceSensitiveString(t.substring(0,255)).replace(/\s+/g,` `).trim()},this.getEventTagProps=function(e){var t,n;if(!e)return{};var i=((n=e?.tagName)?.toLowerCase)?.call(n);return xD((t={},t[Pw]=i,t[Fw]=r.getText(e),t[Uw]=window.location.href.split(`?`)[0],t))};var i=e.maskTextRegex??[],a=[];try{for(var o=K(i),s=o.next();!s.done;s=o.next()){var c=s.value;if(a.length>=25)break;if(c instanceof RegExp)a.push(c);else if(`pattern`in c&&typeof c.pattern==`string`)try{a.push(new RegExp(c.pattern,`i`))}catch{}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}this.additionalMaskTextPatterns=a}return e}(),VD=function(){function e(e){var t=(e===void 0?{}:e).origin,n=t===void 0?qw:t,r=this;this.endpoint=qw,this.requestCallbacks={},this.onSelect=function(e){r.notify({action:`element-selected`,data:e})},this.onTrack=function(e,t){e===`selector-mode-changed`?r.notify({action:`track-selector-mode-changed`,data:t}):e===`selector-moved`&&r.notify({action:`track-selector-moved`,data:t})},this.endpoint=n}return e.prototype.notify=function(e){var t,n,r,i;(n=(t=this.logger)?.debug)==null||n.call(t,`Message sent: `,JSON.stringify(e)),(i=(r=window.opener)?.postMessage)==null||i.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;n===void 0&&(n={timeout:15e3});var i=wD(),a={id:i,action:e,args:t};return new Promise(function(t,o){r.requestCallbacks[i]={resolve:t,reject:o},r.notify(a),n?.timeout>0&&setTimeout(function(){o(Error(`${e} timed out (id: ${i})`)),delete r.requestCallbacks[i]},n.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){(t=this.logger)==null||t.warn(`No callback found for request id: ${e.id}`);return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,n=e===void 0?{dataExtractor:new BD({})}:e,r=n.logger,i=n.endpoint,a=n.isElementSelectable,o=n.cssSelectorAllowlist,s=n.actionClickAllowlist,c=n.dataExtractor;this.logger=r,i&&this.endpoint===`https://app.amplitude.com`&&(this.endpoint=i);var l=null;window.addEventListener(`message`,function(e){var n,r,i,u,d;if((r=(n=t.logger)?.debug)==null||r.call(n,`Message received: `,JSON.stringify(e)),t.endpoint===e.origin){var f=e?.data,p=f?.action;if(p)if(`id`in f)(u=(i=t.logger)?.debug)==null||u.call(i,`Received Response to previous request: `,JSON.stringify(e)),t.handleResponse(f);else if(p===`ping`)t.notify({action:`pong`});else if(p===`initialize-visual-tagging-selector`){var m=f?.data;CD(Yw).then(function(){l=(window==null?void 0:window.amplitudeVisualTaggingSelector)?.call(window,{getEventTagProps:c.getEventTagProps,isElementSelectable:function(e){return a?a(m?.actionType||`click`,e):!0},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:Xw,messenger:t,cssSelectorAllowlist:o,actionClickAllowlist:s,extractDataFromDataSource:c.extractDataFromDataSource,dataExtractor:c,diagnostics:{autocapture:{version:DD}}}),t.notify({action:`selector-loaded`})}).catch(function(){var e;(e=t.logger)==null||e.warn(`Failed to initialize visual tagging selector`)})}else p===`close-visual-tagging-selector`&&((d=l?.close)==null||d.call(l))}}),this.notify({action:`page-loaded`})},e}();function HD(e){var t=e.amplitude,n=e.allObservables,r=e.options,i=e.shouldTrackEvent,a=e.evaluateTriggers,o=n.clickObservable,s=YE(o.pipe(cD(),QE(function(e){var t=q(e,2),n=t[0],r=t[1],i=n.event.target!==r.event.target,a=Math.abs(r.event.screenX-n.event.screenX)<=20&&Math.abs(r.event.screenY-n.event.screenY)<=20;return i&&!a})),o.pipe(nD(r.debounceTime),jE(function(){return`timeout`})));
83return o.pipe(sD(0),QE(TD),QE(function(e){return i(`click`,e.closestTrackedAncestor)}),jE(function(e){return a(e)}),tD(s)).subscribe(function(e){var n,r,i=(e.length,kw);try{for(var a=K(e),o=a.next();!o.done;o=a.next()){var s=o.value;t?.track(i,s.targetElementProperties)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}})}function UD(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,i=e.shouldTrackEvent,a=e.evaluateTriggers;return n.changeObservable.pipe(QE(TD),QE(function(e){return i(`change`,e.closestTrackedAncestor)}),jE(function(e){return a(e)})).subscribe(function(e){t?.track(`[Amplitude] Element Changed`,r(`change`,e.closestTrackedAncestor))})}function WD(e){var t=e.amplitude,n=e.allObservables,r=e.options,i=e.getEventProperties,a=e.shouldTrackEvent,o=e.shouldTrackActionClick,s=n.clickObservable,c=n.mutationObservable,l=n.navigateObservable,u=s.pipe(QE(function(e){return!a(`click`,e.closestTrackedAncestor)}),jE(function(e){return e.closestTrackedAncestor=SD(e.event.target,r.actionClickAllowlist),e.closestTrackedAncestor!==null&&(e.targetElementProperties=i(e.type,e.closestTrackedAncestor)),e}),QE(TD),QE(function(e){return o(`click`,e.closestTrackedAncestor)})),d=[c];l&&d.push(l);var f=YE.apply(void 0,J([],q(d),!1));return u.pipe(dD(function(e){return f.pipe(rD(1),kE({first:500,with:function(){return qT}}),jE(function(){return e}))})).subscribe(function(e){t?.track(`[Amplitude] Element Clicked`,i(`click`,e.closestTrackedAncestor))})}var GD=function(){return new kT(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},KD=function(e){return e===void 0&&(e=`click`),UE(document,e,{capture:!0})},qD=function(e,t){try{if(t.subprop_key===`[Amplitude] Element Text`)return t.subprop_op===`is`&&t.subprop_value.includes(e.targetElementProperties[`[Amplitude] Element Text`]);if(t.subprop_key===`[Amplitude] Element Hierarchy`)return t.subprop_op===`autotrack css match`&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(e){return console.error(`Error matching event to filter`,e),!1}return!1},JD={"[Amplitude] Element Clicked":`click`,"[Amplitude] Element Changed":`change`},YD=function(e){var t,n,r,i,a=Object.values(JD).reduce(function(e,t){return e[t]=new Set,e},{});if(!e)return a;try{for(var o=K(e),s=o.next();!s.done;s=o.next()){var c=s.value;try{try{for(var l=(r=void 0,K(c.definition)),u=l.next();!u.done;u=l.next()){var d=JD[u.value.event_type];d&&a[d].add(c.id)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}catch(e){console.warn(`Skipping Labeled Event due to malformed definition`,c?.id,e)}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},XD=function(e){var t,n,r,i,a=new Map;try{for(var o=K(e),s=o.next();!s.done;s=o.next()){var c=s.value;try{for(var l=(r=void 0,K(c.conditions)),u=l.next();!u.done;u=l.next()){var d=u.value;if(d.type===`LABELED_EVENT`){var f=d.match.eventId,p=a.get(f);p||(p=[],a.set(f,p)),p.push(c)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},ZD=function(e,t){return t.filter(function(t){return t.definition.some(function(t){return JD[t.event_type]===e.type&&t.filters.every(function(t){return qD(e,t)})})})},QD=function(e,t){var n,r,i,a,o=new Set;try{for(var s=K(e),c=s.next();!c.done;c=s.next()){var l=c.value,u=t.get(l.id);if(u)try{for(var d=(i=void 0,K(u)),f=d.next();!f.done;f=d.next()){var p=f.value;o.add(p)}}catch(e){i={error:e}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return Array.from(o)},$D=function(){function e(e,t,n,r){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.dataExtractor=n,this.options=r}return e.prototype.evaluate=function(e){var t,n,r=this.options.pageActions;if(!r)return e;var i=QD(ZD(e,Array.from(this.groupedLabeledEvents[e.type]).map(function(e){return r.labeledEvents[e]})),this.labeledEventToTriggerMap);try{for(var a=K(i),o=a.next();!o.done;o=a.next()){var s=o.value;ID(s.actions,e,this.dataExtractor)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return e},e.prototype.update=function(e,t,n){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.options=n},e}(),eO=function(e,t,n,r){return new $D(e,t,n,r)},tO;(function(e){e.ClickObservable=`clickObservable`,e.ChangeObservable=`changeObservable`,e.NavigateObservable=`navigateObservable`,e.MutationObservable=`mutationObservable`})(tO||={});var nO=function(e){e===void 0&&(e={});var t=e.dataAttributePrefix,n=t===void 0?nS:t,r=e.visualTaggingOptions,i=r===void 0?{enabled:!0,messenger:new VD}:r;e.cssSelectorAllowlist=e.cssSelectorAllowlist??tS,e.actionClickAllowlist=e.actionClickAllowlist??rS,e.debounceTime=e.debounceTime??0,e.pageUrlExcludelist=e.pageUrlExcludelist?.reduce(function(e,t){if(typeof t==`string`&&e.push(t),t instanceof RegExp&&e.push(t),typeof t==`object`&&t&&`pattern`in t)try{e.push(new RegExp(t.pattern))}catch(n){return console.warn(`Invalid regex pattern: ${t.pattern}`,n),e}return e},[]);var a=Dw,o=`enrichment`,s=[],c=new BD(e),l=function(){var t,r=KD().pipe(jE(function(t){return c.addAdditionalEventProperties(t,`click`,e.cssSelectorAllowlist,n)}),lD()),i=UE(document,`change`,{capture:!0}).pipe(jE(function(t){return c.addAdditionalEventProperties(t,`change`,e.cssSelectorAllowlist,n)}),lD()),a;
83window.navigation&&(a=UE(window.navigation,`navigate`).pipe(jE(function(t){return c.addAdditionalEventProperties(t,`navigate`,e.cssSelectorAllowlist,n)}),lD()));var o=GD().pipe(jE(function(t){return c.addAdditionalEventProperties(t,`mutation`,e.cssSelectorAllowlist,n)}),lD());return t={},t[tO.ClickObservable]=r,t[tO.ChangeObservable]=i,t[tO.NavigateObservable]=a,t[tO.MutationObservable]=o,t},u=YD(Object.values(e.pageActions?.labeledEvents??{})),d=XD(e.pageActions?.triggers??[]),f=eO(u,d,c,e),p=function(t){t&&(e.pageActions=U(U({},e.pageActions),t),u=YD(Object.values(e.pageActions.labeledEvents??{})),d=XD(e.pageActions.triggers??[]),f.update(u,d,e))};return{name:a,type:o,setup:function(t,r){return W(void 0,void 0,void 0,function(){var o,u,d,m,h,g,_,v,y,b;return G(this,function(x){return typeof document>`u`?[2]:(t.fetchRemoteConfig&&Ew({localConfig:t,configKeys:[`analyticsSDK.pageActions`]}).then(function(e){return W(void 0,void 0,void 0,function(){var n,r,i;return G(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.getRemoteConfig(`analyticsSDK`,`pageActions`)];case 1:return n=a.sent(),p(n),[3,3];case 2:return r=a.sent(),(i=t?.loggerProvider)==null||i.error(`Failed to fetch remote config: ${String(r)}`),[3,3];case 3:return[2]}})})}).catch(function(e){var n;(n=t?.loggerProvider)==null||n.error(`Failed to create remote config fetch: ${String(e)}`)}),o=gD(e,e.cssSelectorAllowlist),u=gD(e,e.actionClickAllowlist),d=l(),m=HD({allObservables:d,options:e,amplitude:r,shouldTrackEvent:o,evaluateTriggers:f.evaluate.bind(f)}),s.push(m),h=UD({allObservables:d,getEventProperties:function(){var e=[...arguments];return c.getEventProperties.apply(c,J(J([],q(e),!1),[n],!1))},amplitude:r,shouldTrackEvent:o,evaluateTriggers:f.evaluate.bind(f)}),s.push(h),g=WD({allObservables:d,options:e,getEventProperties:function(){var e=[...arguments];return c.getEventProperties.apply(c,J(J([],q(e),!1),[n],!1))},amplitude:r,shouldTrackEvent:o,shouldTrackActionClick:u}),s.push(g),(y=t?.loggerProvider)==null||y.log(`${a} has been successfully added.`),window.opener&&i.enabled&&(_=e.cssSelectorAllowlist,v=e.actionClickAllowlist,(b=i.messenger)==null||b.setup(U(U({dataExtractor:c,logger:t?.loggerProvider},t?.serverZone&&{endpoint:Jw[t.serverZone]}),{isElementSelectable:gD(e,J(J([],q(_),!1),q(v),!1)),cssSelectorAllowlist:_,actionClickAllowlist:v}))),[2])})})},execute:function(e){return W(void 0,void 0,void 0,function(){return G(this,function(t){return[2,e]})})},teardown:function(){return W(void 0,void 0,void 0,function(){var e,t,n,r,i;return G(this,function(a){try{for(e=K(s),t=e.next();!t.done;t=e.next())n=t.value,n.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}return[2]})})}}},rO=3e3;function iO(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,i=e.shouldTrackDeadClick,a=n.clickObservable,o=n.mutationObservable,s=n.navigateObservable,c=a.pipe(QE(TD),QE(function(e){return i(`click`,e.closestTrackedAncestor)}),QE(function(e){return e.event.target.closest(`a[target="_blank"]`)===null})),l=[o];s&&l.push(s);var u=YE.apply(void 0,J([],q(l),!1));return c.pipe(IE(function(e){var t;return $E(new kT(function(n){return t=setTimeout(function(){return n.next(e)},rO),function(){clearTimeout(t)}}),u.pipe(rD(1),jE(function(){return null}))).pipe(QE(function(e){return e!==null}))}),pD(rO)).subscribe(function(e){var n={"[Amplitude] X":e.event.clientX,"[Amplitude] Y":e.event.clientY};t.track(Aw,U(U({},r(`click`,e.closestTrackedAncestor)),n),{time:e.timestamp})})}var aO=4,oO=oS,sO=50;function cO(e,t){var n=t.event,r=n.clientX,i=n.clientY;e.yMin=Math.min(e.yMin??i,i),e.yMax=Math.max(e.yMax??i,i),e.xMin=Math.min(e.xMin??r,r),e.xMax=Math.max(e.xMax??r,r),e.isOutOfBounds=e.yMax-e.yMin>sO||e.xMax-e.xMin>sO}function lO(e){var t=e[0],n=e[e.length-1];return{rageClickEvent:U({"[Amplitude] Begin Time":new Date(t.timestamp).toISOString(),"[Amplitude] End Time":new Date(n.timestamp).toISOString(),"[Amplitude] Duration":n.timestamp-t.timestamp,"[Amplitude] Clicks":e.map(function(e){return{X:e.event.clientX,Y:e.event.clientY,Time:e.timestamp}}),"[Amplitude] Click Count":e.length},t.targetElementProperties),time:t.timestamp}}function uO(e,t){var n=e[Math.max(0,e.length-aO+1)];return t.timestamp-n.timestamp>=oO}function dO(e,t){return e.length>0&&e[e.length-1].closestTrackedAncestor!==t.closestTrackedAncestor}function fO(e){var t=e.amplitude,n=e.allObservables,r=e.shouldTrackRageClick,i=n.clickObservable,a=[],o={},s;function c(e){a=[],o={},e&&(cO(o,e),a.push(e))}return i.pipe(QE(TD),QE(function(e){return r(`click`,e.closestTrackedAncestor)}),jE(function(e){if(s&&clearTimeout(s),cO(o,e),a.length===0)return a.push(e),null;if(dO(a,e)||uO(a,e)||o.isOutOfBounds){var n=a.length>=aO?lO(a):null;return c(e),n}return a.push(e),a.length>=aO&&(s=setTimeout(function(){var e=lO(a),n=e.rageClickEvent,r=e.time;t.track(jw,n,{time:r}),c()},oO)),null}),QE(function(e){return e!==null})).subscribe(function(e){e!==null&&t.track(jw,e.rageClickEvent,{time:e.time})})}var pO=function(e){e===void 0&&(e={});var t=Ow,n=`enrichment`,r=[],i=e.rageClicks?.cssSelectorAllowlist??aS,a=e.deadClicks?.cssSelectorAllowlist??iS,o=e.dataAttributePrefix??nS,s=new BD(e),c=J([],q(new Set(J(J([],q
83(i),!1),q(a),!1))),!1),l=function(){var e,t=KD(`pointerdown`).pipe(jE(function(e){return s.addAdditionalEventProperties(e,`click`,c,o,!0)}),lD()),n;window.navigation&&(n=UE(window.navigation,`navigate`).pipe(jE(function(e){return s.addAdditionalEventProperties(e,`navigate`,c,o)}),lD()));var r=GD().pipe(jE(function(e){return s.addAdditionalEventProperties(e,`mutation`,c,o)}),lD());return e={},e[tO.ClickObservable]=t,e[tO.ChangeObservable]=new kT,e[tO.NavigateObservable]=n,e[tO.MutationObservable]=r,e};return{name:t,type:n,setup:function(n,c){return W(void 0,void 0,void 0,function(){var u,d,f,p,m,h;return G(this,function(g){return typeof document>`u`?[2]:(u=gD(e,i),d=gD(e,a),f=l(),p=fO({allObservables:f,amplitude:c,shouldTrackRageClick:u}),r.push(p),m=iO({amplitude:c,allObservables:f,getEventProperties:function(e,t){return s.getEventProperties(e,t,o)},shouldTrackDeadClick:d}),r.push(m),(h=n?.loggerProvider)==null||h.log(`${t} has been successfully added.`),[2])})})},execute:function(e){return W(void 0,void 0,void 0,function(){return G(this,function(t){return[2,e]})})},teardown:function(){return W(void 0,void 0,void 0,function(){var e,t,n,i,a;return G(this,function(o){try{for(e=K(r),t=e.next();!t.done;t=e.next())n=t.value,n.unsubscribe()}catch(e){i={error:e}}finally{try{t&&!t.done&&(a=e.return)&&a.call(e)}finally{if(i)throw i.error}}return[2]})})}}},mO=`@amplitude/plugin-network-capture-browser`,hO=`500-599`;function gO(e,t){var n=`^`+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,`\\$&`).replace(/\*/g,`.*`)+`$`;return new RegExp(n).test(e)}function _O(e,t){var n,r,i=t.split(`,`);try{for(var a=K(i),o=a.next();!o.done;o=a.next()){var s=o.value,c=q(s.split(`-`).map(Number),2),l=c[0],u=c[1];if(e===l&&u===void 0||e>=l&&e<=u)return!0}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!1}function vO(e,t,n,r,i){if(!(e.hosts&&!e.hosts.find(function(e){return gO(t,e)}))&&!(r&&e.urls&&!Gx(r,e.urls))&&!(i&&e.methods&&!e.methods.find(function(e){return i.toLowerCase()===e.toLowerCase()||e===`*`})))return!((n||n===0)&&!_O(n,e.statusCodeRange||hO))}function yO(e){if(e)try{var t=Bb()?.location.href,n=new URL(e,t),r=n.searchParams.toString(),i=n.hash.replace(`#`,``),a=n.href,o=n.host;return n.hash=``,n.search=``,{query:r,fragment:i,href:a,hrefWithoutQueryOrHash:n.href,host:o}}catch{return}}function bO(e,t){if(e.includes(`amplitude.com`))try{var n=t.body;if(typeof n!=`string`)return!1;if(JSON.parse(n).events.find(function(e){return e.event_type===`[Amplitude] Network Request`}))return!0}catch{}return!1}function xO(e){if(typeof e!=`object`||!e)return e?J([],q(wb),!1):void 0;if(e.length!==0)return e}function SO(e){return!e?.allowlist?.length&&!e?.blocklist?.length}function CO(e,t){t===void 0&&(t={});var n=yO(e.url);if(!n)return!1;var r=n.host;if(t.ignoreAmplitudeRequests!==!1&&(gO(r,`*.amplitude.com`)||gO(r,`amplitude.com`))||t.ignoreHosts?.find(function(e){return gO(r,e)})||!t.captureRules&&e.status!==void 0&&!_O(e.status,hO))return!1;if(t.captureRules){var i;if(J([],q(t.captureRules),!1).reverse().find(function(t){if(i=vO(t,r,e.status,e.url,e.method),i){var n=xO(t.responseHeaders);if(e.responseWrapper&&n){var a=e.responseWrapper.headers(n);a&&(e.responseHeaders=a)}var o=xO(t.requestHeaders);if(e.requestWrapper&&o){var s=e.requestWrapper.headers(o);s&&(e.requestHeaders=s)}e.responseWrapper&&t.responseBody&&!SO(t.responseBody)&&(e.responseBodyJson=e.responseWrapper.json(t.responseBody.allowlist,t.responseBody.blocklist)),e.requestWrapper&&t.requestBody&&!SO(t.requestBody)&&(e.requestBodyJson=e.requestWrapper.json(t.requestBody.allowlist,t.requestBody.blocklist))}return i!==void 0}),!i)return!1}return!(e.requestWrapper&&bO(r,e.requestWrapper))}function wO(e,t,n,r){return W(this,void 0,void 0,function(){var i,a,o;return G(this,function(s){switch(s.label){case 0:return t.requestBodyJson||t.responseBodyJson?[4,Promise.all([t.requestBodyJson,t.responseBodyJson])]:[3,2];case 1:if(i=q.apply(void 0,[s.sent(),2]),a=i[0],o=i[1],a)try{e[`[Amplitude] Request Body`]=JSON.stringify(a)}catch(e){r?.debug(`Failed to stringify request body`,e)}if(o)try{e[`[Amplitude] Response Body`]=JSON.stringify(o)}catch{r?.debug(`Failed to stringify response body`)}s.label=2;case 2:return n?.track(`[Amplitude] Network Request`,e),[2]}})})}function TO(e){var t=e.allObservables,n=e.networkTrackingOptions,r=e.amplitude,i=e.loggerProvider;return t.networkObservable.pipe(QE(function(e){return CO(e.event,n)}
83)).subscribe(function(e){var t,n=e.event,a=yO(n.url);if(a){var o=n.responseWrapper?.bodySize,s=n.requestWrapper?.bodySize;wO((t={},t[`[Amplitude] URL`]=a.hrefWithoutQueryOrHash,t[`[Amplitude] URL Query`]=a.query,t[`[Amplitude] URL Fragment`]=a.fragment,t[`[Amplitude] Request Method`]=n.method,t[`[Amplitude] Status Code`]=n.status,t[`[Amplitude] Start Time`]=n.startTime,t[`[Amplitude] Completion Time`]=n.endTime,t[`[Amplitude] Duration`]=n.duration,t[`[Amplitude] Request Body Size`]=s,t[`[Amplitude] Response Body Size`]=o,t[`[Amplitude] Request Type`]=n.type,t[`[Amplitude] Request Headers`]=n.requestHeaders,t[`[Amplitude] Response Headers`]=n.responseHeaders,t),n,r,i)}})}var EO;(function(e){e.NetworkObservable=`networkObservable`})(EO||={});var DO=function(e){e===void 0&&(e={});var t=mO,n=`enrichment`,r,i=[],a=function(e,t){return{event:e,timestamp:Date.now(),type:t}},o=function(){var e,t=new kT(function(e){var t=new TS(function(t){var n=a(t,`network`);e.next(n)});return ES.subscribe(t,r),function(){ES.unsubscribe(t)}});return e={},e[EO.NetworkObservable]=t,e};return{name:t,type:n,setup:function(n,a){return W(void 0,void 0,void 0,function(){var s,c;return G(this,function(l){return typeof document>`u`?[2]:(s=o(),r=n?.loggerProvider,c=TO({allObservables:s,networkTrackingOptions:e,amplitude:a,loggerProvider:r}),i.push(c),r?.log(`${t} has been successfully added.`),[2])})})},execute:function(e){return W(void 0,void 0,void 0,function(){return G(this,function(t){return[2,e]})})},teardown:function(){return W(void 0,void 0,void 0,function(){var e,t,n,r,a;return G(this,function(o){try{for(e=K(i),t=e.next();!t.done;t=e.next())n=t.value,n.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(a=e.return)&&a.call(e)}finally{if(r)throw r.error}}return[2]})})}}},OO=`web-vitals-browser`,kO=`[Amplitude] Web Vitals`,AO=-1,jO=e=>{addEventListener(`pageshow`,(t=>{t.persisted&&(AO=t.timeStamp,e(t))}),!0)},MO=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`)(t.value,n),e(t)))}},NO=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},PO=()=>{let e=performance.getEntriesByType(`navigation`)[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},FO=()=>PO()?.activationStart??0,IO=(e,t=-1)=>{let n=PO(),r=`navigate`;return AO>=0?r=`back-forward-cache`:n&&(document.prerendering||FO()>0?r=`prerender`:document.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+0xe8d4a51000}`,navigationType:r}},LO=new WeakMap;function RO(e,t){return LO.get(e)||LO.set(e,new t),LO.get(e)}var zO=class{t;i=0;o=[];h(e){if(e.hadRecentInput)return;let t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}},BO=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe({type:e,buffered:!0,...n}),r}}catch{}},VO=e=>{let t=!1;return()=>{t||=(e(),!0)}},HO=-1,UO=new Set,WO=()=>document.visibilityState!==`hidden`||document.prerendering?1/0:0,GO=e=>{if(document.visibilityState===`hidden`){if(e.type===`visibilitychange`)for(let e of UO)e();isFinite(HO)||(HO=e.type===`visibilitychange`?e.timeStamp:0,removeEventListener(`prerenderingchange`,GO,!0))}},KO=()=>{if(HO<0){let e=FO();HO=(document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter((t=>t.name===`hidden`&&t.startTime>e))[0]?.startTime)??WO(),addEventListener(`visibilitychange`,GO,!0),addEventListener(`prerenderingchange`,GO,!0),jO((()=>{setTimeout((()=>{HO=WO()}))}))}return{get firstHiddenTime(){return HO},onHidden(e){UO.add(e)}}},qO=e=>{document.prerendering?addEventListener(`prerenderingchange`,(()=>e()),!0):e()},JO=[1800,3e3],YO=(e,t={})=>{qO((()=>{let n=KO(),r,i=IO(`FCP`),a=BO(`paint`,(e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-FO(),0),i.entries.push(t),r(!0)))}));a&&(r=MO(e,i,JO,t.reportAllChanges),jO((n=>{i=IO(`FCP`),r=MO(e,i,JO,t.reportAllChanges),NO((()=>{i.value=performance.now()-n.timeStamp,r(!0)}))})))}))},XO=[.1,.25],ZO=(e,t={})=>{let n=KO();YO(VO((()=>{let r,i=IO(`CLS`,0),a=RO(t,zO),o=e=>{for(let t of e)a.h(t);a.i>i.value&&(i.value=a.i,i.entries=a.o,r())},s=BO(`layout-shift`,o);s&&(r=MO(e,i,XO,t.reportAllChanges),n.onHidden((()=>{o(s.takeRecords()),r(!0)})),jO((()=>{a.i=0,i=IO(`CLS`,0),r=MO(e,i,XO,t.reportAllChanges),NO((()=>r()))}
83)),setTimeout(r))})))},QO=0,$O=1/0,ek=0,tk=e=>{for(let t of e)t.interactionId&&($O=Math.min($O,t.interactionId),ek=Math.max(ek,t.interactionId),QO=ek?(ek-$O)/7+1:0)},nk,rk=()=>nk?QO:performance.interactionCount??0,ik=()=>{`interactionCount`in performance||nk||(nk=BO(`event`,tk,{type:`event`,buffered:!0,durationThreshold:0}))},ak=0,ok=class{u=[];l=new Map;m;p;v(){ak=rk(),this.u.length=0,this.l.clear()}L(){let e=Math.min(this.u.length-1,Math.floor((rk()-ak)/50));return this.u[e]}h(e){if(this.m?.(e),!e.interactionId&&e.entryType!==`first-input`)return;let t=this.u.at(-1),n=this.l.get(e.interactionId);if(n||this.u.length<10||e.duration>t.P){if(n?e.duration>n.P?(n.entries=[e],n.P=e.duration):e.duration===n.P&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],P:e.duration},this.l.set(n.id,n),this.u.push(n)),this.u.sort(((e,t)=>t.P-e.P)),this.u.length>10){let e=this.u.splice(10);for(let t of e)this.l.delete(t.id)}this.p?.(n)}}},sk=e=>{let t=globalThis.requestIdleCallback||setTimeout;document.visibilityState===`hidden`?e():(e=VO(e),addEventListener(`visibilitychange`,e,{once:!0,capture:!0}),t((()=>{e(),removeEventListener(`visibilitychange`,e,{capture:!0})})))},ck=[200,500],lk=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!(`interactionId`in PerformanceEventTiming.prototype))return;let n=KO();qO((()=>{ik();let r,i=IO(`INP`),a=RO(t,ok),o=e=>{sk((()=>{for(let t of e)a.h(t);let t=a.L();t&&t.P!==i.value&&(i.value=t.P,i.entries=t.entries,r())}))},s=BO(`event`,o,{durationThreshold:t.durationThreshold??40});r=MO(e,i,ck,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden((()=>{o(s.takeRecords()),r(!0)})),jO((()=>{a.v(),i=IO(`INP`),r=MO(e,i,ck,t.reportAllChanges)})))}))},uk=class{m;h(e){this.m?.(e)}},dk=[2500,4e3],fk=(e,t={})=>{qO((()=>{let n=KO(),r,i=IO(`LCP`),a=RO(t,uk),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a.h(t),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-FO(),0),i.entries=[t],r())},s=BO(`largest-contentful-paint`,o);if(s){r=MO(e,i,dk,t.reportAllChanges);let n=VO((()=>{o(s.takeRecords()),s.disconnect(),r(!0)})),a=e=>{e.isTrusted&&(sk(n),removeEventListener(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])addEventListener(e,a,{capture:!0});jO((n=>{i=IO(`LCP`),r=MO(e,i,dk,t.reportAllChanges),NO((()=>{i.value=performance.now()-n.timeStamp,r(!0)}))}))}}))},pk=[800,1800],mk=e=>{document.prerendering?qO((()=>mk(e))):document.readyState===`complete`?setTimeout(e):addEventListener(`load`,(()=>mk(e)),!0)},hk=(e,t={})=>{let n=IO(`TTFB`),r=MO(e,n,pk,t.reportAllChanges);mk((()=>{let i=PO();i&&(n.value=Math.max(i.responseStart-FO(),0),n.entries=[i],r(!0),jO((()=>{n=IO(`TTFB`,0),r=MO(e,n,pk,t.reportAllChanges),r(!0)})))}))};function gk(e){var t=e.entries[0]?.startTime||0;return performance.timeOrigin+t}function _k(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(gk(e)),navigationStart:Math.floor(performance.timeOrigin)}}var vk=function(){var e=null,t=Bb(),n=t?.document,r=t?.location;return{name:OO,type:`enrichment`,setup:function(t,i){return W(void 0,void 0,void 0,function(){var a,o,s;return G(this,function(c){return a=function(e){var n;if(!e)return``;var r=e;try{r=decodeURI(e)}catch(e){(n=t.loggerProvider)==null||n.error(`Malformed URI sequence: `,e)}return r},n===void 0?[2]:(o=a(r?.href),s={"[Amplitude] Page Domain":r?.hostname||``,"[Amplitude] Page Location":o,"[Amplitude] Page Path":a(r?.pathname),"[Amplitude] Page Title":typeof document<`u`&&document.title||``,"[Amplitude] Page URL":o.split(`?`)[0]},fk(function(e){s[`[Amplitude] LCP`]=_k(e)}),YO(function(e){s[`[Amplitude] FCP`]=_k(e)}),lk(function(e){s[`[Amplitude] INP`]=_k(e)}),ZO(function(e){s[`[Amplitude] CLS`]=_k(e)}),hk(function(e){s[`[Amplitude] TTFB`]=_k(e)}),e=function(){n.visibilityState===`hidden`&&e&&(i.track(kO,s),n.removeEventListener(`visibilitychange`,e),e=null)},n.addEventListener(`visibilitychange`,e),[2])})})},execute:function(e){return W(void 0,void 0,void 0,function(){return G(this,function(t){return[2,e]})})},teardown:function(){return W(void 0,void 0,void 0,function(){return G(this,function(t){return e&&n?.removeEventListener(`visibilitychange`,e),[2]})})}}},yk=function(e){var t=e.split(`.`);return t.length<=2?e:t.slice(t.length-2,t.length).join(`.`)},bk=function(e){return Object.values(e).every(function(e){return!e})},xk=function(e,t,n,r,i){i===void 0&&(i=!0),e.referrer;var a=e.referring_domain,o=Sg(e,[`referrer`,`referring_domain`]),s=t||{};s.referrer;var c=s.referring_domain,l=Sg(s,[`referrer`,`referring_domain`]);if(Sk(n.excludeReferrers,e.referring_domain))return r.debug(`This is not a new campaign because ${e.referring_domain} is in the exclude referrer list.`),!1;if(!i&&bk(e)&&t)return r.debug(`This is not a new campaign because this is a direct traffic in the same session.`),!1;var u=JSON.stringify(o)!==JSON.stringify(l),d=yk(a||``)!==yk(c||``),f=!t||u||d;return f?r.debug(`This is a new campaign. An $identify event will be sent.`):r.debug(`This is not a new campaign because it's the same as the previous one.`),f},Sk=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=``),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},Ck=function(e,t){var n=U(U({},Cb),e);return Kb(Object.entries(n).reduce(function(e,n){var r=q(n,2),i=r[0],a=r[1];return e.setOnce(`initial_${i}
83`,a??t.initialEmptyValue??`EMPTY`),a?e.set(i,a):e.unset(i)},new kb))},wk=function(e){var t=e;return t?(t.startsWith(`.`)&&(t=t.substring(1)),[RegExp(`${t.replace(`.`,`\\.`)}\$`)]):[]},Tk=function(){function e(e,t){this.shouldTrackNewCampaign=!1,this.options=U({initialEmptyValue:`EMPTY`,resetSessionOnNewCampaign:!1,excludeReferrers:wk(t.cookieOptions?.domain)},e),this.storage=t.cookieStorage,this.storageKey=Zx(t.apiKey,`MKTG`),this.webExpStorageKey=Zx(t.apiKey,`MKTG_ORIGINAL`),this.currentCampaign=Cb,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log(`Installing web attribution tracking.`)}return e.prototype.init=function(){return W(this,void 0,void 0,function(){var e,t;return G(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:return t=q.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=this.lastEventTime?Px(this.sessionTimeout,this.lastEventTime):!0,xk(this.currentCampaign,this.previousCampaign,this.options,this.logger,e)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return W(this,void 0,void 0,function(){var e;return G(this,function(t){switch(t.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return e=t.sent(),e?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:t.sent(),t.label=3;case 3:return[4,Promise.all([e||new DS().parse(),this.storage.get(this.storageKey)])];case 4:return[2,t.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t=Ck(this.currentCampaign,this.options);return e&&(t.event_id=e),t},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),Ek=function(e){xg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n){e===void 0&&(e=``);var r,i;return arguments.length>2?(r=t,i=n):typeof t==`string`?(r=t,i=void 0):(r=t?.userId,i=t),Xb(this._init(U(U({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){return W(this,void 0,void 0,function(){var n,r,i,a,o,s,c,l=this;return G(this,function(u){switch(u.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,bC(t.apiKey,t,this)]);case 1:return n=u.sent(),n.fetchRemoteConfig?(this.remoteConfigClient=new nx(n.apiKey,n.loggerProvider,n.serverZone),[4,new Promise(function(e){var t;(t=l.remoteConfigClient)==null||t.subscribe(`configs.analyticsSDK.browserSDK`,`all`,function(t,r,i){n.loggerProvider.debug(`Remote configuration received:`,JSON.stringify({remoteConfig:t,source:r,lastFetch:i},null,2)),t&&pw(t,n),e()})})]):[3,3];case 2:u.sent(),u.label=3;case 3:return[4,e.prototype._init.call(this,n)];case 4:return u.sent(),this.logBrowserOptions(n),kS(this.config.defaultTracking)?(r=HS(this.config),this.webAttribution=new Tk(r,this.config),[4,this.webAttribution.init()]):[3,6];case 5:u.sent(),u.label=6;case 6:return i=Rx(),a=i.ampTimestamp?Number(i.ampTimestamp):void 0,o=a?Date.now()<a:!0,this.config.identify&&this.identify(this.config.identify),s=o&&!Number.isNaN(Number(i.ampSessionId))?Number(i.ampSessionId):void 0,this.setSessionId(t.sessionId??s??this.config.sessionId??Date.now()),c=Ax(t.instanceName),c.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===null?[3,8]:[4,this.add(uw()).promise];case 7:u.sent(),u.label=8;case 8:return[4,this.add(new gx).promise];case 9:return u.sent(),[4,this.add(new YS).promise];case 10:return u.sent(),[4,this.add(new Nx).promise];case 11:return u.sent(),lw(this.config),AS(this.config.defaultTracking)?(this.config.loggerProvider.debug(`Adding file download tracking plugin`),[4,this.add(sw()).promise]):[3,13];case 12:u.sent(),u.label=13;case 13:return jS(this.config.defaultTracking)?(this.config.loggerProvider.debug(`Adding form interaction plugin`),[4,this.add(iw()).promise]):[3,15];case 14:u.sent(),u.label=15;case 15:return MS(this.config.defaultTracking)?(this.config.loggerProvider.debug(`Adding page view tracking plugin`),[4,this.add(ew(VS(this.config))).promise]):[3,17];case 16:u.sent(),u.label=17;case 17:return FS(this.config.autocapture)?(this.config.loggerProvider.debug(`Adding user interactions plugin (autocapture plugin)`),[4,this.add(nO(RS(this.config))).promise]):[3,19];case 18:u.sent(),u.label=19;case 19:return LS(this.config.autocapture)?(this.config.loggerProvider.debug(`Adding frustration interactions plugin`),[4,this.add(pO(zS(this.config))).promise]):[3,21];case 20:u.sent(),u.label=21;case 21:return PS(this.config.autocapture)?(this.config.loggerProvider.debug(`Adding network tracking plugin`),[4,this.add(DO(BS(this.config))).promise]):[3,23];case 22:u.sent(),u.label=23;case 23:return IS(this.config.autocapture)?(this.config.loggerProvider.debug(`Adding web vitals plugin`),[4,this.add(vk()).promise]):[3,25];case 24:u.sent(),u.label=25;case 25:return this.initializing=!1,[4,this.runQueuedFunctions(`dispatchQ`)];case 26:return u.sent(),c.eventBridge.setEventReceiver(function(e){l.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){return this.config?.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}this.config.loggerProvider.debug(`function setUserId: `,e),(e!==this.config.userId||e===void 0)&&(this.config.userId=e,this.timeline.onIdentityChanged({userId:e}),jx(e,this.config.instanceName))},t.prototype.getDeviceId=function(){return this.config?.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.loggerProvider.debug(`function setDeviceId: `,e),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),Mx(e,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(Ub()),this.setUserId(void 0)},t.prototype.getIdentity=function(){return{deviceId:this.config?.deviceId,userId:this.config?.userId,userProperties:this.userProperties}},t.prototype.getOptOut=function(){return this.config?.optOut},t.prototype.getSessionId=function(){return this.config?.sessionId},t.prototype.setSessionId=function(e){var t=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),Xb(Promise.resolve());if(e===this.config.sessionId)return Xb(Promise.resolve());this.config.loggerProvider.debug(`function setSessionId: `,e);var n=this.getSessionId();n!==e&&this.timeline.onSessionIdChanged(e);var r=this.config.lastEventTime,i=this.config.lastEventId??-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,NS(this.config.defaultTracking)&&(n&&r&&t.push(this.track(lC,void 0,{device_id:this.previousSessionDeviceId,event_id:++i,session_id:n,time:r+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++i,t);return NS(this.config.defaultTracking)&&t.push(this.track(cC,void 0,{event_id:a?++i:i,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,Xb(Promise.all(t))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}
83this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=SC(e)},t.prototype.identify=function(t,n){if(WS(t)){var r=t._q;t._q=[],t=US(new kb,r)}return n?.user_id&&this.setUserId(n.user_id),n?.device_id&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(WS(r)){var a=r._q;r._q=[],r=US(new kb,a)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(WS(t)){var r=t._q;t._q=[],t=US(new ox,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log(`Tracking attribution.`),!0},t.prototype.process=function(t){return W(this,void 0,void 0,function(){var n,r,i;return G(this,function(a){return n=Date.now(),r=Px(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type!==`session_start`&&t.event_type!==`session_end`&&(!t.session_id||t.session_id===this.getSessionId())&&(r||i?(this.setSessionId(n),i&&this.config.loggerProvider.log(`Created a new session for new campaign.`)):r||this.trackCampaignEventIfNeeded()),t.event_type===$y.IDENTIFY&&t.user_properties&&(this.userProperties=this.getOperationAppliedUserProperties(t.user_properties)),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=U(U({},e),{apiKey:e.apiKey.substring(0,10)+`********`});this.config.loggerProvider.debug(`Initialized Amplitude with BrowserConfig:`,JSON.stringify(t))}catch(e){this.config.loggerProvider.error(`Error logging browser config`,e)}},t}(Zb),Dk=function(){var e=new Ek;return{init:Wx(e.init.bind(e),`init`,Vx(e),Ux(e,[`config`])),add:Wx(e.add.bind(e),`add`,Vx(e),Ux(e,[`config.apiKey`,`timeline.plugins`])),remove:Wx(e.remove.bind(e),`remove`,Vx(e),Ux(e,[`config.apiKey`,`timeline.plugins`])),track:Wx(e.track.bind(e),`track`,Vx(e),Ux(e,[`config.apiKey`,`timeline.queue.length`])),logEvent:Wx(e.logEvent.bind(e),`logEvent`,Vx(e),Ux(e,[`config.apiKey`,`timeline.queue.length`])),identify:Wx(e.identify.bind(e),`identify`,Vx(e),Ux(e,[`config.apiKey`,`timeline.queue.length`])),groupIdentify:Wx(e.groupIdentify.bind(e),`groupIdentify`,Vx(e),Ux(e,[`config.apiKey`,`timeline.queue.length`])),setGroup:Wx(e.setGroup.bind(e),`setGroup`,Vx(e),Ux(e,[`config.apiKey`,`timeline.queue.length`])),revenue:Wx(e.revenue.bind(e),`revenue`,Vx(e),Ux(e,[`config.apiKey`,`timeline.queue.length`])),flush:Wx(e.flush.bind(e),`flush`,Vx(e),Ux(e,[`config.apiKey`,`timeline.queue.length`])),getUserId:Wx(e.getUserId.bind(e),`getUserId`,Vx(e),Ux(e,[`config`,`config.userId`])),setUserId:Wx(e.setUserId.bind(e),`setUserId`,Vx(e),Ux(e,[`config`,`config.userId`])),getDeviceId:Wx(e.getDeviceId.bind(e),`getDeviceId`,Vx(e),Ux(e,[`config`,`config.deviceId`])),setDeviceId:Wx(e.setDeviceId.bind(e),`setDeviceId`,Vx(e),Ux(e,[`config`,`config.deviceId`])),reset:Wx(e.reset.bind(e),`reset`,Vx(e),Ux(e,[`config`,`config.userId`,`config.deviceId`])),getSessionId:Wx(e.getSessionId.bind(e),`getSessionId`,Vx(e),Ux(e,[`config`])),setSessionId:Wx(e.setSessionId.bind(e),`setSessionId`,Vx(e),Ux(e,[`config`])),extendSession:Wx(e.extendSession.bind(e),`extendSession`,Vx(e),Ux(e,[`config`])),setOptOut:Wx(e.setOptOut.bind(e),`setOptOut`,Vx(e),Ux(e,[`config`])),setTransport:Wx(e.setTransport.bind(e),`setTransport`,Vx(e),Ux(e,[`config`])),getIdentity:Wx(e.getIdentity.bind(e),`getIdentity`,Vx(e),Ux(e,[`config`])),getOptOut:Wx(e.getOptOut.bind(e),`getOptOut`,Vx(e),Ux(e,[`config`]))}};Dk();var Ok=`cc56790eae72a854e5f40a6a81785083`,Q=class{static HAS_LOADED=!1;static USER_AGENT=void 0;static client=void 0;static initPromise=void 0;static async initAnalytics(){this.client||(this.client=Dk(),this.initPromise=this.client.init(Ok,void 0,{defaultTracking:!0,flushIntervalMillis:0,transport:`beacon`}).promise.then(()=>{this.HAS_LOADED=!0})),await this.initPromise,this.USER_AGENT===void 0&&(this.USER_AGENT=navigator.userAgent)}static trackEvent(e,t){if(!this.client||!this.HAS_LOADED){this.initAnalytics().then(()=>{this.client?.logEvent(e,t)}).catch(t=>{console.warn(`Failed to initialize analytics for ${e}.`,t)});return}this.client.logEvent(e,t)}static async trackEventAndFlush(e,t){try{return await this.initAnalytics(),this.client?(await this.client.logEvent(e,t).promise).code===200:!1}catch(t){return console.warn(`Failed to send ${e} before navigation.`,t),!1}}},kk=`ks_attr`,Ak=`ks_attr`,jk=[`utm_source`,`utm_medium`,`utm_campaign`,`utm_content`,`utm_term`],Mk=[`mt`,`ag`,`net`,`dev`],Nk=null,Pk=null;function Fk(e){let t=e.replace(/([.*+?^${}()|[\]\\])/g,`\\$1`),n=document.cookie.match(RegExp(`(?:^|; )`+t+`=([^;]*)`));return n?decodeURIComponent(n[1]):null}function Ik(e,t){let n=location.hostname.endsWith(`knapsack.ai`)?`; domain=.knapsack.ai`:``,r=location.protocol===`https:`?`; Secure`:``;document.cookie=e+`=`+encodeURIComponent(t)+`; path=/; max-age=7776000; SameSite=Lax`+n+r}function Lk(){try{if(typeof crypto<`u`&&`randomUUID`in crypto)return crypto.randomUUID()}catch{}return Date.now().toString(36)+`-`+Math.random().toString(36).slice(2,10)}function Rk(){try{return localStorage.getItem(kk)}catch{return null}}function zk(){for(let e of[Fk(Ak),Rk()])if(e)try{let t=JSON.parse(e);if(t&&typeof t==`object`)return t}catch{}return null}function Bk(e){let t=JSON.stringify(e);try{localStorage.setItem(kk,t)}catch{}try{Ik(Ak,t)}catch{}}function Vk(e){return!!(e.gclid||e.utm_medium===`cpc`)}function Hk(e,t){return!!(t.gclid&&t.gclid===e.gclid)}var $=class{static capture(){let e=location.href;if(Nk===e&&Pk)return Pk;let t=zk(),n=new URLSearchParams(location.search),r={},i=n.get(`gclid`)||n.get(`wbraid`)||n.get(`gbraid`);i&&(r.gclid=i);let a=n.get(`attr_id`);a&&(r.attr_id=a);for(let e of jk){let t=n.get(e);t&&(r[e]=t)}for(let e of Mk){let t=n.get(e);t&&(r[e]=t)}let o=Object.keys(r).length>0;if(t&&!r.attr_id&&(!o||!Vk(r)||Hk(t,r)))return Nk=e,Pk=t,t;let s={...r,referrer:document.referrer||void 0,first_seen:Math.floor(Date.now()/1e3),attr_id:r.attr_id||Lk()};return Bk(s),Nk=e,Pk=s,s}static get(){return zk()||{}}static eventProps(){let e=zk();if(!e)return{};let t={};for(let[n,r]of Object.entries(e))r==null||r===``||(t[`attr_`+n]=r);return t}static isPaid(){let e=zk();return!!(e&&Vk(e))}},Uk=`https://github.com/knap-ai/knapsack_desktop/releases/latest`,Wk=`https://api.github.com/repos/knap-ai/knapsack_desktop/releases/latest`,Gk=`3.3.5`,Kk={mac:`https://github.com/knap-ai/knapsack_desktop/releases/download/v${Gk}/Knapsack_${Gk}_universal.dmg`,windows:`https://github.com/knap-ai/knapsack_desktop/releases/download/v${Gk}/Knapsack_${Gk}_x64-setup.exe`};
83function qk(){if(typeof navigator>`u`)return`unknown`;let e=navigator.userAgent||``,t=navigator.userAgentData?.platform||navigator.platform||``;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)||/Mobi|Android/i.test(e)?`mobile`:/Mac/i.test(t)||/Macintosh/i.test(e)?`mac`:/Win/i.test(t)||/Windows/i.test(e)?`windows`:`unknown`}function Jk(){let[e,t]=(0,C.useState)(`unknown`),[n,r]=(0,C.useState)(Uk),[i,a]=(0,C.useState)(``),[o,s]=(0,C.useState)(!1),[c,l]=(0,C.useState)(!1);return(0,C.useEffect)(()=>{let e=qk();if(t(e),e!==`mac`&&e!==`windows`){s(!0);return}let n=!1,i=new AbortController,o=window.setTimeout(()=>i.abort(),4e3);return fetch(Wk,{signal:i.signal}).then(e=>{if(!e.ok)throw Error(`GitHub release lookup failed with ${e.status}`);return e.json()}).then(t=>{if(n)return;let i=e===`windows`?`.exe`:`.dmg`,o=t?.assets?.find(e=>typeof e?.name==`string`&&e.name.endsWith(i));if(!o?.browser_download_url)throw Error(`No ${e} installer in latest release`);r(o.browser_download_url),a(String(t.tag_name||``).replace(/^v/,``)),l(!0)}).catch(()=>{n||(r(Kk[e]),a(Gk),l(!0))}).finally(()=>{window.clearTimeout(o),n||s(!0)}),()=>{n=!0,window.clearTimeout(o),i.abort()}},[]),{platform:e,url:n,version:i,isMobile:e===`mobile`,isResolved:o,isDirectInstaller:c}}var Yk=({content:e})=>{let t=Jk(),n=e.isProKnap!==!1,r=!n&&e.price===`Free`,[i,a]=(0,C.useState)(!1),[o,s]=(0,C.useState)(``),[c,l]=(0,C.useState)(!1),[u,d]=(0,C.useState)(`idle`),f=(0,C.useRef)(!0);(0,C.useEffect)(()=>(f.current=!0,()=>{f.current=!1}),[]),(0,C.useEffect)(()=>{$.capture(),Q.initAnalytics().then(()=>{Q.trackEvent(`www_role_page_visit`,{role:e.title,role_slug:window.location.pathname.replace(/^\/+|\/+$/g,``),vertical:e.vertical,experiment_group:e.experimentGroup,path:window.location.pathname,price:e.price,is_pro_knap:n,...$.eventProps()})})},[e.title]);let p=typeof window<`u`?window.location.pathname.replace(/^\/+|\/+$/g,``):``,m=`/downloading?role=${encodeURIComponent(p)}`,h=p===`investment-research-analyst`,g=async(n,r)=>{let i={role:e.title,role_slug:p,vertical:e.vertical,experiment_group:e.experimentGroup,path:window.location.pathname,price:e.price,placement:r,...h?{cta_variant:`sample_brief_v3`}:{},platform:t.platform,version:t.version,...$.eventProps()};if(n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey){Q.trackEvent(`www_role_download_click`,i);return}n.preventDefault(),await Promise.race([Q.trackEventAndFlush(`www_role_download_click`,i),new Promise(e=>window.setTimeout(e,1200))]),f.current&&window.location.assign(m)};(0,C.useEffect)(()=>{let e=()=>{a(window.scrollY>480)};return window.addEventListener(`scroll`,e),e(),()=>window.removeEventListener(`scroll`,e)},[]);let _=async e=>{if(e.preventDefault(),!(!o||c)){l(!0),d(`idle`);try{let e=(()=>{let e=window.location.hostname;return e===`localhost`||e===`127.0.0.1`?`http://localhost:8000`:`https://api.knapsack.ai`})();(await fetch(`${e}/api/creator-coach/signup`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:o,knap:`creator-coach`})})).ok?(d(`success`),s(``)):d(`error`)}catch(e){console.error(`Error submitting email:`,e),d(`error`)}finally{l(!1)}}};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:e.metaTitle||`${e.title} | Knapsack AI`}),(0,z.jsx)(`meta`,{name:`description`,content:e.metaDescription||`Learn about ${e.title} - ${e.whatItHandles?.shortDescription||``}`}),(0,z.jsx)(`link`,{rel:`canonical`,href:`https://knapsack.ai${window.location.pathname}`}),(0,z.jsx)(`script`,{async:!0,src:`https://www.googletagmanager.com/gtag/js?id=AW-16630252215`}),(0,z.jsx)(`script`,{type:`text/javascript`,children:`
vendor: 127 bytes, lines 83-86
83window.dataLayer = window.dataLayer || [];
84function gtag(){dataLayer.push(arguments);}
85gtag('js', new Date());
86gtag('config', '
86AW-16630252215
vendor: 3 bytes, line 86
86');
86`})]}),(0,z.jsxs)(`div`,{className:`bg-white min-h-screen flex flex-col items-center relative w-full overflow-x-hidden`,children:[(0,z.jsx)(`div`,{className:`relative w-full`,children:(0,z.jsxs)(`div`,{className:`relative z-10 flex flex-col items-center pt-8 md:pt-16 pb-12 md:pb-20 px-2 sm:px-4 md:px-8`,children:[(0,z.jsx)(`div`,{className:`absolute inset-0 w-full h-full`,style:{backgroundImage:`radial-gradient(ellipse 100% 100% at center bottom, rgba(255,178,71,0.32) 0%, rgba(255,178,71,0) 100%)`,backgroundSize:`100% 100%`,backgroundPosition:`center bottom`,backgroundRepeat:`no-repeat`}}),(0,z.jsxs)(`div`,{className:`relative z-10 flex flex-col gap-2 items-center`,children:[n&&(0,z.jsx)(`div`,{className:`border border-black flex gap-1 items-center px-1.5 py-.5 rounded-[4px] mb-1`,children:(0,z.jsx)(`p`,{className:`font-Spectral font-normal not-italic leading-normal text-[16px] text-black whitespace-nowrap tracking-[1.6px]`,children:`VIRTUAL EMPLOYEE`})}),(0,z.jsx)(`h1`,{className:`font-Spectral italic font-normal leading-normal text-[36px] sm:text-[48px] md:text-[80px] text-[#222222] tracking-[-1.6px] text-center px-2 break-words`,children:e.title}),e.tag&&(0,z.jsx)(`p`,{className:`font-Inter font-normal text-[#222222] text-[14px] md:text-[16px] text-center opacity-60`,children:e.tag}),e.schedule&&(0,z.jsx)(`p`,{className:`font-Inter font-normal text-[#222222] text-[14px] md:text-[16px] text-center opacity-60`,children:e.schedule}),h&&!e.showSignUpForm&&(0,z.jsxs)(`div`,{className:`mt-6 flex w-full max-w-[840px] flex-col items-center gap-4 roun
86ded-2xl border border-black/10 bg-white/90 p-5 shadow-[0_18px_60px_-30px_rgba(0,0,0,0.45)] backdrop-blur-sm sm:p-6`,children:[(0,z.jsx)(`p`,{className:`font-Spectral text-center text-[24px] font-normal leading-[30px] text-[#222222] sm:text-[30px] sm:leading-[36px]`,children:`Turn a filing into an analyst-ready brief in minutes.`}),(0,z.jsx)(`p`,{className:`max-w-[620px] text-center font-Inter text-[14px] leading-[21px] text-[#555555] sm:text-[15px]`,children:`Knapsack Desktop opens with a starter task ready. Add the filing you choose, run it, and review every fact against its source.`}),(0,z.jsx)(`a`,{href:m,onClick:e=>void g(e,`hero_above_fold`),className:`flex w-full max-w-[430px] items-center justify-center rounded-lg bg-[#222222] px-6 py-4 text-center transition-colors hover:bg-black`,children:(0,z.jsx)(`span`,{className:`font-Inter text-[16px] font-semibold leading-[20px] text-white`,children:t.isMobile?`Get the Desktop download link`:e.ctaText})}),(0,z.jsx)(`p`,{className:`font-Inter text-center text-[12px] leading-[18px] text-[#555555] sm:text-[13px]`,children:`Free Desktop download · No credit card · macOS and Windows`}),(0,z.jsxs)(`div`,{className:`grid w-full grid-cols-1 overflow-hidden rounded-xl border border-black/10 bg-[#FAFAF8] text-left sm:grid-cols-[0.9fr_1.1fr]`,children:[(0,z.jsxs)(`div`,{className:`border-b border-black/10 p-4 sm:border-b-0 sm:border-r sm:p-5`,children:[(0,z.jsx)(`p`,{className:`mb-3 font-Inter text-[11px] font-semibold uppercase tracking-[1.4px] text-[#767676]`,children:`Your task`}),(0,z.jsxs)(`div`,{className:`rounded-lg border border-black/10 bg-white p-3`,children:[(0,z.jsx)(`p`,{className:`font-Inter text-[13px] font-semibold leading-[18px] text-[#222222]`,children:`Analyze this quarterly filing`}),(0,z.jsx)(`p`,{className:`mt-1 font-Inter text-[12px] leading-[18px] text-[#555555]`,children:`Summarize material changes, margin drivers, risks, and questions for management.`})]}),(0,z.jsxs)(`div`,{className:`mt-3 flex items-center gap-2 font-Inter text-[12px] text-[#555555]`,children:[(0,z.jsx)(`span`,{className:`flex h-6 w-6 items-center justify-center rounded bg-[#FFF0D9] font-semibold text-[#7A4B00]`,children:`10-Q`}),`Uses only the sources you add`]})]}),(0,z.jsxs)(`div`,{className:`p-4 sm:p-5`,children:[(0,z.jsxs)(`div`,{className:`mb-3 flex items-center justify-between gap-3`,children:[(0,z.jsx)(`p`,{className:`font-Inter text-[11px] font-semibold uppercase tracking-[1.4px] text-[#767676]`,children:`Example output`}),(0,z.jsx)(`span`,{className:`rounded-full bg-[#EAF5EC] px-2 py-1 font-Inter text-[10px] font-semibold text-[#28643A]`,children:`Source linked`})]}),(0,z.jsx)(`div`,{className:`space-y-2`,children:[[`Key facts`,`Revenue growth slowed while gross margin expanded.`],[`Risks`,`Customer concentration and renewal timing remain open.`],[`Questions`,`Which pricing changes drove the margin improvement?`]].map(([e,t])=>(0,z.jsxs)(`div`,{className:`rounded-lg bg-white px-3 py-2.5 shadow-sm ring-1 ring-black/5`,children:[(0,z.jsx)(`p`,{className:`font-Inter text-[11px] font-semibold uppercase tracking-[0.8px] text-[#9A5B00]`,children:e}),(0,z.jsx)(`p`,{className:`mt-0.5 font-Inter text-[12px] leading-[18px] text-[#333333]`,children:t})]},e))}),(0,z.jsx)(`p`,{className:`mt-3 font-Inter text-[11px] leading-[16px] text-[#767676]`,children:`Illustrative format — your brief is generated from your selected filing.`})]})]})]})]})]})}),(0,z.jsx)(`div`,{className:`lg:hidden flex flex-col gap-6 items-center justify-center w-full max-w-[720px] mx-auto px-4 sm:px-6 md:px-20 pt-12 pb-8`,children:(0,z.jsx)(`div`,{className:`flex flex-col w-full border border-gray-200 bg-white rounded-[12px] overflow-hidden`,children:e.showSignUpForm?e.waitlistUrl?(0,z.jsxs)(`div`,{className:`px-6 py-6 flex flex-col gap-4`,children:[(0,z.jsx)(`a`,{href:e.waitlistUrl,target:`_blank`,rel:`noopener noreferrer`,className:`bg-[#222222] flex gap-2 items-center justify-center px-6 py-4 rounded-lg hover:bg-[#2a2a2a] transition-colors w-full text-center`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[20px] text-[16px] text-white whitespace-nowrap`,children:`Sign up for our waitlist`})}),e.influencerWaitlistUrl&&(0,z.jsx)(`div`,{className:`flex items-center justify-center w-full pt-2`,children:(0,z.jsx)(`a`,{href:e.influencerWaitlistUrl,target:`_blank`,rel:`noopener noreferrer`,className:`font-Inter font-normal leading-[18px] text-[14px] text-[#222222] underline hover:no-underline transition-colors`,children:`Or, join the influencer waiting list`})})]}):(0,z.jsxs)(`div`,{className:`px-6 py-6 flex flex-col gap-4`,children:[e.signUpFormTitle&&(0,z.jsx)(`h3`,{className:`font-Inter font-semibold text-[18px] text-[#222222] text-center`,children:e.signUpFormTitle}),e.signUpFormDescription&&(0,z.jsx)(`p`,{className:`font-Inter font-normal text-[14px] text-[#222222] text-center`,children:e.signUpFormDescription}),(0,z.jsxs)(`form`,{onSubmit:_,className:`flex flex-col gap-3`,children:[(0,z.jsx)(`input`,{type:`email`,value:o,onChange:e=>s(e.target.value),placeholder:`Enter your email`,required:!0,className:`px-4 py-3 border border-gray-300 rounded-lg font-Inter font-normal text-[14px] text-[#222222] focus:outline-none focus:ring-2 focus:ring-[#222222] focus:border-transparent`}),(0,z.jsx)(`button`,{type:`submit`,disabled:c||!o,className:`bg-[#222222] flex gap-2 items-center justify-center px-6 py-3 rounded-lg hover:bg-[#2a2a2a] transition-colors w-full text-center disabled:opacity-50 disabled:cursor-not-allowed`,children:(0,z.jsx)(`p`,{className:`font-Inter font-semibold leading-[20px] text-[16px] text-white whitespace-nowrap`,children:c?`Submitting...`:u===`success`?`Thank y
86ou!`:`Sign up`})}),u===`success`&&(0,z.jsx)(`p`,{className:`font-Inter font-normal text-[14px] text-green-600 text-center`,children:`We'll be in touch soon!`}),u===`error`&&(0,z.jsx)(`p`,{className:`font-Inter font-normal text-[14px] text-red-600 text-center`,children:`Something went wrong. Please try again.`})]})]}):(0,z.jsxs)(z.Fragment,{children:[e.price&&(0,z.jsxs)(`div`,{className:`px-6 pt-6 pb-4 border-b border-gray-200 text-center`,children:[(0,z.jsx)(`div`,{className:`flex items-baseline justify-center gap-2 mb-1`,children:(0,z.jsx)(`span`,{className:`font-Inter font-semibold text-[22px] text-[#222222]`,children:e.price.includes(` after `)?e.price.split(` after `)[0]:e.price})}),e.price.includes(` after `)&&(0,z.jsxs)(`p`,{className:`font-Inter font-normal text-[14px] text-[#222222]`,children:[`after `,(0,z.jsx)(`span`,{className:`font-semibold`,children:e.price.split(` after `)[1]})]})]}),(0,z.jsxs)(`div`,{className:`px-6 py-6 flex flex-col gap-4`,children:[(0,z.jsx)(`a`,{href:m,onClick:e=>void g(e,`hero`),className:`bg-[#222222] flex gap-2 items-center justify-center px-6 py-4 rounded-lg hover:bg-[#2a2a2a] transition-colors w-full text-center`,children:(0,z.jsx)(`p`,{className:`font-Inter font-semibold leading-[20px] text-[16px] text-white whitespace-nowrap`,children:t.isMobile?`Get the download link`:e.ctaText})}),n&&(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-normal text-[#222222] text-[13px] text-center`,children:`Free to download. Start your Studio trial from inside the app once you're set up.`})]})]})})}),(0,z.jsx)(`div`,{className:`w-full max-w-[1000px] mx-auto px-4 sm:px-6 md:px-20 py-8 md:py-16`,children:(0,z.jsxs)(`div`,{className:`flex flex-col lg:flex-row gap-8 items-start lg:items-stretch`,children:[(0,z.jsx)(`div`,{className:`flex-1 w-full`,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-8 md:gap-16 items-center relative w-full`,children:[e.whatItHandles&&(0,z.jsxs)(`div`,{id:`what-it-handles`,className:`flex flex-col gap-4 md:gap-6 items-start p-4 md:p-8 rounded-[24px] w-full scroll-mt-20`,children:[(0,z.jsx)(`h2`,{className:`font-Spectral font-light leading-[36px] md:leading-[48px] text-[24px] md:text-[32px] tracking-[-0.64px] w-full`,children:`What this worker handles for you`}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[24px] text-[16px] w-full`,children:e.whatItHandles.shortDescription}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[24px] text-[16px] w-full`,children:e.whatItHandles.longDescription}),e.whatItHandles.bulletPoints&&e.whatItHandles.bulletPoints.length>0&&(0,z.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 w-full`,children:e.whatItHandles.bulletPoints.map((e,t)=>(0,z.jsx)(`div`,{className:`bg-white border border-gray-300 p-4 flex items-center rounded-lg`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[20px] text-[14px] text-[#333333]`,children:e})},t))})]}),e.whatItHandles&&e.dailyWorkflow&&e.dailyWorkflow.length>0&&(0,z.jsx)(`div`,{className:`w-full border-t border-gray-200`}),e.dailyWorkflow&&e.dailyWorkflow.length>0&&(0,z.jsxs)(`div`,{id:`daily-workflow`,className:`flex flex-col gap-4 md:gap-6 items-start p-4 md:p-8 rounded-[24px] w-full scroll-mt-20`,children:[(0,z.jsx)(`h2`,{className:`font-Spectral font-light leading-[36px] md:leading-[48px] text-[24px] md:text-[32px] tracking-[-0.64px] w-full`,children:`Daily workflow`}),(0,z.jsx)(`ol`,{className:`block font-Inter font-normal leading-[24px] list-decimal text-[16px] w-full space-y-2 pl-4 md:pl-0`,children:e.dailyWorkflow.map((e,t)=>(0,z.jsx)(`li`,{className:`ml-4 md:ml-[36px]`,children:(0,z.jsx)(`span`,{children:e})},t))})]})]})}),(0,z.jsx)(`div`,{className:`hidden lg:block w-[320px] shrink-0 self-start`,children:(0,z.jsx)(`div`,{className:`sticky top-4`,children:(0,z.jsx)(`div`,{className:`flex flex-col w-full border border-gray-200 bg-white rounded-[12px] overflow-hidden`,children:e.showSignUpForm?e.waitlistUrl?(0,z.jsxs)(`div`,{className:`px-6 py-6 flex flex-col gap-4`,children:[(0,z.jsx)(`a`,{href:e.waitlistUrl,target:`_blank`,rel:`noopener noreferrer`,className:`bg-[#222222] flex gap-2 items-center justify-center px-6 py-4 rounded-lg hover:bg-[#2a2a2a] transition-colors w-full text-center`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[20px] text-[16px] text-white whitespace-nowrap`,children:`Sign up for our waitlist`})}),e.influencerWaitlistUrl&&(0,z.jsx)(`div`,{className:`flex items-center justify-center w-full pt-2`,children:(0,z.jsx)(`a`,{href:e.influencerWaitlistUrl,target:`_blank`,rel:`noopener noreferrer`,className:`font-Inter font-normal leading-[18px] text-[14px] text-[#222222] underline hover:no-underline transition-colors`,children:`Or, join the influencer waiting list`})})]}):(0,z.jsxs)(`div`,{className:`px-6 py-6 flex flex-col gap-4`,children:[e.signUpFormTitle&&(0,z.jsx)(`h3`,{className:`font-Inter font-semibold text-[18px] text-[#222222] text-center`,children:e.signUpFormTitle}),e.signUpFormDescription&&(0,z.jsx)(`p`,{className:`font-Inter font-normal text-[14px] text-[#222222] text-center`,children:e.signUpFormDescription}),(0,z.jsxs)(`form`,{onSubmit:_,className:`flex flex-col gap-3`,children:[(0,z.jsx)(`input`,{type:`email`,value:o,onChange:e=>s(e.target.value),placeholder:`Enter your email`,required:!0,className:`px-4 py-3 border border-gray-300 rounded-lg font-Inter font-normal text-[14px] text-[#222222] focus:outline-none focus:ring-2 focus:ring-[#222222] focus:border-transparent`}),(0,z.jsx)(`button`,{type:`submit`,disabled:c||!o,className:`bg-[#222222] flex gap-2 items-center justify-center px-6 py-3 rounded-lg hover:bg-[#2a2a2a] transition-colors w-full text-center disabled:opacity-50 disabled:cursor-not-allowed`,children:(0,z.jsx)(`p`,{className:`font-Inter font-semibold leading-[20px] text-[16px] text-white whitespace-nowrap`,children:c?`Submitting...`:u===`success`?`Thank y
86ou!`:`Sign up`})}),u===`success`&&(0,z.jsx)(`p`,{className:`font-Inter font-normal text-[14px] text-green-600 text-center`,children:`We'll be in touch soon!`}),u===`error`&&(0,z.jsx)(`p`,{className:`font-Inter font-normal text-[14px] text-red-600 text-center`,children:`Something went wrong. Please try again.`})]})]}):(0,z.jsxs)(z.Fragment,{children:[e.price&&(0,z.jsxs)(`div`,{className:`px-6 pt-6 pb-4 border-b border-gray-200 text-center`,children:[(0,z.jsx)(`div`,{className:`flex items-baseline justify-center gap-2 mb-1`,children:(0,z.jsx)(`span`,{className:`font-Inter font-semibold text-[22px] text-[#222222]`,children:e.price.includes(` after `)?e.price.split(` after `)[0]:e.price})}),e.price.includes(` after `)&&(0,z.jsxs)(`p`,{className:`font-Inter font-normal text-[14px] text-[#222222]`,children:[`after `,(0,z.jsx)(`span`,{className:`font-semibold`,children:e.price.split(` after `)[1]})]})]}),(0,z.jsxs)(`div`,{className:`px-6 py-6 flex flex-col gap-4`,children:[(0,z.jsx)(`a`,{href:m,onClick:e=>void g(e,`pricing_card`),className:`bg-[#222222] flex gap-2 items-center justify-center px-6 py-4 rounded-lg hover:bg-[#2a2a2a] transition-colors w-full text-center`,children:(0,z.jsx)(`p`,{className:`font-Inter font-semibold leading-[20px] text-[16px] text-white whitespace-nowrap`,children:t.isMobile?`Get the download link`:e.ctaText})}),n&&(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-normal text-[#222222] text-[13px] text-center`,children:`Free to download. Start your Studio trial from inside the app once you're set up.`})]})]})})})})]})}),(0,z.jsx)(`div`,{className:`w-full max-w-[1000px] mx-auto px-4 sm:px-6 md:px-20 py-8 md:py-16`,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-8 md:gap-16 items-center relative w-full`,children:[n&&(0,z.jsx)(z.Fragment,{children:(0,z.jsx)(`div`,{className:`w-full py-4 md:py-16`,children:(0,z.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-center justify-center gap-4 sm:gap-6 w-full px-4 sm:px-6 md:px-20`,children:[(0,z.jsx)(`div`,{className:`border border-black flex gap-1 items-center px-1.5 py-0.5 rounded-[4px] shrink-0`,children:(0,z.jsx)(`p`,{className:`font-Spectral font-normal not-italic leading-normal text-[16px] text-black whitespace-nowrap tracking-[1.6px]`,children:`VIRTUAL EMPLOYEE`})}),(0,z.jsx)(`div`,{className:`hidden sm:block w-px bg-gray-300 h-8 self-center`}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[24px] text-[16px] text-[#222222] text-center sm:text-left`,children:`Curated AI agents built for enterprises`})]})})}),e.howItWorks&&e.howItWorks.length>0&&(0,z.jsxs)(`div`,{id:`how-it-works`,className:`flex flex-col gap-4 md:gap-6 items-center p-4 md:p-8 border border-gray-200 rounded-[24px] w-full scroll-mt-20`,children:[(0,z.jsx)(`h2`,{className:`font-Spectral font-light italic leading-[36px] md:leading-[48px] text-[32px] md:text-[48px] tracking-[-0.64px] w-full text-center`,children:`How it works`}),(0,z.jsx)(`ol`,{className:`block font-Inter font-normal leading-[24px] list-decimal text-[16px] w-full space-y-4 pl-4 md:pl-0`,children:e.howItWorks.map((e,t)=>(0,z.jsx)(`li`,{className:`ml-4 md:ml-[36px]`,children:(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`span`,{className:`font-Inter font-normal`,children:e.title}),` `,e.description]})},t))})]}),e.whoThisIsFor&&e.whoThisIsFor.length>0&&(0,z.jsxs)(`div`,{id:`who-this-is-for`,className:`flex flex-col gap-4 md:gap-6 items-center p-4 md:p-8 rounded-[24px] w-full scroll-mt-20`,children:[(0,z.jsx)(`h2`,{className:`font-Spectral font-light italic leading-[36px] md:leading-[48px] text-[32px] md:text-[48px] tracking-[-0.64px] w-full text-center`,children:`Who this is for`}),(0,z.jsx)(`div`,{className:`flex flex-col sm:flex-row items-stretch w-full border border-gray-200 rounded-[24px] p-4 md:p-6`,children:e.whoThisIsFor.slice(0,2).map((e,t)=>(0,z.jsxs)(C.Fragment,{children:[(0,z.jsx)(`div`,{className:`flex-1 text-center flex items-center justify-center`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[24px] text-[16px]`,children:e})}),t<1&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`hidden lg:block w-px bg-gray-200 mx-8 self-stretch`}),(0,z.jsx)(`div`,{className:`lg:hidden w-full h-px bg-gray-200 my-6`})]})]},t))})]}),e.whatYoullGet&&e.whatYoullGet.length>0&&(0,z.jsxs)(`div`,{id:`what-youll-get`,className:`flex flex-col gap-4 md:gap-6 items-center p-4 md:p-8 rounded-[24px] w-full scroll-mt-20`,children:[(0,z.jsxs)(`h2`,{className:`font-Spectral font-light italic leading-[36px] md:leading-[48px] text-[32px] md:text-[48px] tracking-[-0.64px] w-full text-center`,children:[`What you'll get from this `,n?`virtual employee`:`AI workflow`]}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-3 md:gap-4 w-full`,children:e.whatYoullGet.map((e,t)=>(0,z.jsxs)(`div`,{className:`bg-white border border-gray-200 rounded-xl p-4 md:p-6 text-center`,children:[(0,z.jsx)(`h3`,{className:`font-Inter font-normal leading-[24px] text-[14px] md:text-[16
86px] mb-0`,children:e.title}),e.description&&(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[24px] text-[14px] md:text-[16px] text-gray-600`,children:e.description})]},t))})]}),(()=>{let t=[{title:`Executive Assistant`,url:`/executive-assistant`,isProKnap:!0},{title:`Enterprise SDR`,url:`/enterprise-sdr`,isProKnap:!0},{title:`Ads Optimizer`,url:`/ads-optimizer`,isProKnap:!0},{title:`Paraplanner`,url:`/paraplanner`,isProKnap:!0},{title:`Project Coordinator`,url:`/project-coordinator`,isProKnap:!0},{title:`Customer Success Manager`,url:`/customer-success-manager`,isProKnap:!0},{title:`Recruiting Coordinator`,url:`/recruiting-coordinator`,isProKnap:!0},{title:`Bookkeeper`,url:`/bookkeeper`,isProKnap:!0},{title:`Creator Coach`,url:`/creator-coach`,isProKnap:!0},{title:`Daily Coach`,url:`/daily-coach`,isProKnap:!1},{title:`Email Autopilot`,url:`/email-autopilot`,isProKnap:!1},{title:`Meeting Notes to CRM`,url:`/meeting-notes-to-crm`,isProKnap:!1},{title:`Travel Outreach`,url:`/travel-outreach`,isProKnap:!1},{title:`LP Quarterly Update`,url:`/lp-quarterly-update`,isProKnap:!1},{title:`Pitch Evaluator`,url:`/pitch-evaluator`,isProKnap:!1},{title:`Investment Memorandum Drafter`,url:`/investment-memorandum-drafter`,isProKnap:!1},{title:`Due Diligence`,url:`/due-diligence`,isProKnap:!1},{title:`Quarterly Meeting Prep`,url:`/quarterly-meeting-prep`,isProKnap:!1},{title:`Tax Planning Meeting Prep`,url:`/tax-planning-meeting-prep`,isProKnap:!1},{title:`Year End Tax Planning`,url:`/year-end-tax-planning`,isProKnap:!1},{title:`Discovery Meeting Prep`,url:`/discovery-meeting-prep`,isProKnap:!1},{title:`Weekend Strategy Reflections`,url:`/weekend-strategy-reflections`,isProKnap:!1},{title:`Meeting Prep`,url:`/meeting-prep`,isProKnap:!1},{title:`Meeting Follow Up`,url:`/meeting-follow-up`,isProKnap:!1},{title:`Workflow Builder`,url:`/knapmaker`,isProKnap:!1},{title:`Salesforce Case Review`,url:`/salesforce-case-review`,isProKnap:!1}].filter(t=>t.title===e.title?!1:n?t.isProKnap===!0:!0);return t=t.slice(0,6),t.length===0?null:(0,z.jsxs)(`div`,{className:`w-full py-12 md:py-16`,children:[(0,z.jsx)(`h2`,{className:`font-Spectral font-light italic leading-[36px] md:leading-[48px] text-[32px] md:text-[48px] tracking-[-0.64px] w-full text-center mb-8 md:mb-12`,children:n?`More Virtual Employees`:`Explore More AI Workflows`}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6 w-full max-w-7xl mx-auto px-4 md:px-8`,children:t.map(e=>(0,z.jsx)(Mn,{to:e.url,className:`group bg-white border border-gray-200 rounded-xl p-6 hover:border-gray-300 hover:shadow-md transition-all duration-200`,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[e.isProKnap&&(0,z.jsx)(`div`,{className:`flex items-center gap-2 mb-1`,children:(0,z.jsx)(`div`,{className:`border border-black flex gap-1 items-center px-1.5 py-0.5 rounded-[4px] shrink-0`,children:(0,z.jsx)(`p`,{className:`font-Spectral font-normal not-italic leading-normal text-[12px] text-black whitespace-nowrap tracking-[1.2px]`,children:`VIRTUAL EMPLOYEE`})})}),(0,z.jsx)(`h3`,{className:`font-Inter font-semibold leading-[24px] text-[18px] text-[#222222] group-hover:text-[#000] transition-colors`,children:e.title})]})},e.url))})]})})()]})})]}),i&&!e.showSignUpForm&&(0,z.jsx)(V.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:`easeOut`},className:`hidden lg:block fixed bottom-6 left-1/2 transform -translate-x-1/2 z-50 rounded-[12px] border border-gray-950`,style:{maxWidth:r?`none`:`1000px`,width:r?`auto`:`calc(100% - 80px)`,boxShadow:`0 10px 40px -10px rgba(255, 178, 71, 0.6), 0 0 60px -20px rgba(255, 140, 0, 0.4)`,background:`linear-gradient(to right, #FFD700, #FF8C00)`},children:(0,z.jsx)(`div`,{className:`bg-white rounded-[11.75px] px-6 py-4`,children:(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-6`,children:[e.price&&(0,z.jsxs)(`div`,{className:`flex flex-col shrink-0`,children:[(0,z.jsx)(`span`,{className:`font-Inter font-semibold text-[22px] text-[#222222]`,children:e.price.includes(` after `)?e.price.split(` after `)[0]:e.price}),e.price.includes(` after `)&&(0,z.jsxs)(`span`,{className:`font-Inter font-normal text-[14px] text-[#222222]`,children:[`After `,e.price.split(` after `)[1]]})]}),n&&(0,z.jsx)(`div`,{className:`flex-1 text-center`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-normal text-[#222222] text-[13px]`,children:`Free to download. Start your Studio trial from inside the app once you're set up.`})}),(0,z.jsx)(`div`,{className:`flex items-center gap-3 shrink-0`,children:(0,z.jsx)(`a`,{href:m,onClick:e=>void g(e,`footer`),className:`bg-[#222222] flex gap-2 items-center justify-center px-6 py-3 rounded-lg hover:bg-[#2a2a2a] transition-colors text-center shrink-0`,children:(0,z.jsx)(`p`,{className:`font-Inter font-semibold leading-[20px] text-[16px] text-white whitespace-nowrap`,children:t.isMobile?`Get the download link`:e.ctaText})})})]})})}),i&&!e.showSignUpForm&&(0,z.jsx)(V.div,{initial:{opacity:0,y:20}
86,animate:{opacity:1,y:0},transition:{duration:.3,ease:`easeOut`},className:`lg:hidden fixed bottom-6 left-1/2 transform -translate-x-1/2 z-50 rounded-[12px] border border-gray-950`,style:{maxWidth:r?`none`:`calc(100% - 32px)`,width:r?`auto`:`100%`,boxShadow:`0 10px 40px -10px rgba(255, 178, 71, 0.6), 0 0 60px -20px rgba(255, 140, 0, 0.4)`,background:`linear-gradient(to right, #FFD700, #FF8C00)`},children:(0,z.jsx)(`div`,{className:`bg-white rounded-[10px] px-4 py-4`,children:(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[e.price&&(0,z.jsxs)(`div`,{className:`flex flex-col shrink-0`,children:[(0,z.jsx)(`span`,{className:`font-Inter font-semibold text-[18px] text-[#222222]`,children:e.price.includes(` after `)?e.price.split(` after `)[0]:e.price}),e.price.includes(` after `)&&(0,z.jsxs)(`span`,{className:`font-Inter font-normal text-[12px] text-[#222222]`,children:[`After `,e.price.split(` after `)[1]]})]}),(0,z.jsx)(`a`,{href:m,onClick:e=>void g(e,`sticky_banner`),className:`bg-[#222222] flex gap-2 items-center justify-center px-4 py-2.5 rounded-lg hover:bg-[#2a2a2a] transition-colors text-center shrink-0`,children:(0,z.jsx)(`p`,{className:`font-Inter font-semibold leading-[18px] text-[14px] text-white whitespace-nowrap`,children:t.isMobile?`Get the download link`:e.ctaText})})]})})})]})},Xk=[{slug:`ria-compliance-analyst`,title:`RIA Compliance Analyst`,cluster:`compliance`,tag:`For registered investment advisers`,shortDescription:`A supervised digital worker that reviews firm records, assembles evidence, and drafts compliance work for human approval.`,longDescription:`Compliance teams spend too much time collecting records, comparing activity with policy, and preparing routine documentation. This worker organizes that work across your approved systems, flags gaps, and produces review-ready drafts without making legal conclusions or submitting anything on your behalf.`,bulletPoints:[`Collects evidence from approved email, CRM, calendar, and document sources`,`Compares records with your firm policies and review checklists`,`Flags missing disclosures, approvals, and supporting documentation`,`Creates a traceable review packet for the designated compliance reviewer`],workflow:[`Evidence collection – gathers the records required by the selected checklist`,`Gap review – identifies missing, stale, or inconsistent documentation`,`Draft preparation – creates a review memo with links back to source material`,`Human approval – routes findings to your compliance owner before any action`],inputs:`Works from the policies, checklists, CRM records, communications, and files that your firm authorizes.`,review:`Produces drafts and exceptions for a designated reviewer; it does not provide legal advice or make compliance determinations.`,audience:[`RIA compliance teams`,`Chief compliance officers and deputies`,`Operations teams supporting adviser reviews`],outputs:[{title:`Evidence packets`,description:`organized source records for a defined review`},{title:`Exception reports`,description:`missing or inconsistent items that need attention`},{title:`Review memos`,description:`draft findings with source references`},{title:`Follow-up drafts`,description:`requests for documents or clarification`}],metaDescription:`A supervised AI RIA compliance analyst that assembles evidence, flags documentation gaps, and drafts review-ready compliance work.`},{slug:`regulatory-exam-readiness-analyst`,title:`Regulatory Exam Readiness Analyst`,cluster:`compliance`,tag:`For exam preparation and recurring readiness`,shortDescription:`A digital worker that keeps examination evidence organized before a regulator requests it.`,longDescription:`Exam preparation becomes disruptive when policies, testing records, disclosures, and supporting evidence live in different systems. This worker maintains a readiness checklist, gathers the requested evidence, and drafts an index of what is complete, missing, or awaiting review.`,bulletPoints:[`Maintains recurring readiness checklists by examination topic`,`Builds evidence indexes across policies, testing, communications, and client files`,`Flags stale policies and missing support before a request arrives`,`Drafts response inventories for counsel and compliance review`],workflow:[`Scope selection – starts from your exam module or document request list`,`Evidence inventory – locates authorized records and records their status`,`Readiness review – flags gaps, owners, and due dates`,`Response drafting – prepares an indexed packet for human review`],inputs:`Uses your examination checklist, policies, prior testing, disclosures, and approved record systems.`,review:`Keeps counsel and compliance in control of scope, interpretation, and every external response.`,audience:[`Registered investment advisers`,`Broker-dealer compliance teams`,`Newly registered or never-examined firms`],outputs:[{title:`Readiness dashboard`,description:`evidence status by request and owner`},{title:`Document index`,description:`organized links to supporting records`},{title:`Gap register`,description:`missing items and remediation owners`},{title:`Response packet draft`,description:`review-ready inventory for counsel or compliance`}],metaDescription:`An AI regulatory exam readiness analyst that inventories evidence, identifies gaps, and prepares review-ready response packets.`},{slug:`advertising-compliance-reviewer`,title:`Advertising Compliance Reviewer`,cluster:`compliance`,tag:`For marketing and communications review`,shortDe
86scription:`A digital worker that performs first-pass review of marketing materials against your firm rules and required disclosures.`,longDescription:`Marketing reviews slow down when compliance must repeatedly check the same claims, disclosures, performance references, and approval history. This worker applies your approved checklist, highlights potential issues, and drafts reviewer comments while leaving approval with your compliance team.`,bulletPoints:[`Reviews presentations, emails, webpages, and social copy against firm checklists`,`Flags unsupported claims, missing disclosures, and inconsistent language`,`Compares new material with previously approved examples`,`Creates reviewer comments and an approval record draft`],workflow:[`Material intake – identifies the audience, channel, and applicable checklist`,`First-pass review – highlights claims, disclosures, and performance references`,`Precedent comparison – checks language against approved examples and policies`,`Reviewer handoff – drafts comments and a clean approval summary`],inputs:`Uses your communications policies, disclosure library, approved precedents, and submitted marketing material.`,review:`Never approves or publishes material; a qualified reviewer makes the final decision.`,audience:[`RIA and broker-dealer compliance teams`,`Financial-services marketing teams`,`Agencies supporting regulated firms`],outputs:[{title:`Marked-up draft`,description:`potential issues highlighted in context`},{title:`Disclosure checklist`,description:`required language and completion status`},{title:`Reviewer comments`,description:`draft feedback for the submitter`},{title:`Approval record draft`,description:`material, version, reviewer, and disposition fields`}],metaDescription:`A supervised AI advertising compliance reviewer for financial-services marketing materials, disclosures, and approval workflows.`},{slug:`aml-fraud-sanctions-analyst`,title:`AML, Fraud & Sanctions Analyst`,cluster:`compliance`,tag:`For financial-crime operations`,shortDescription:`A supervised digital worker that assembles customer context and drafts investigation summaries for analyst review.`,longDescription:`Investigators lose time moving between alerts, customer records, communications, and supporting documents. This worker gathers the authorized context, organizes the timeline, identifies missing evidence, and drafts a case narrative without clearing alerts or filing reports.`,bulletPoints:[`Builds a timeline from alerts, customer records, communications, and documents`,`Surfaces missing identity, ownership, and transaction context`,`Drafts investigation narratives using your case template`,`Keeps disposition and filing decisions with trained personnel`],workflow:[`Alert intake – confirms the alert type, customer, and review period`,`Context assembly – gathers authorized KYC, transaction, and communication records`,`Exception review – identifies gaps and facts requiring analyst judgment`,`Case drafting – produces a source-linked narrative for human disposition`],inputs:`Works from your case system, customer records, approved data sources, procedures, and investigation templates.`,review:`Does not clear alerts, determine suspicious activity, screen conclusively, or submit regulatory reports.`,audience:[`AML and financial-crime teams`,`Fraud operations groups`,`Sanctions review and escalation teams`],outputs:[{title:`Case timeline`,description:`ordered activity and supporting context`},{title:`Evidence checklist`,description:`available and missing records`},{title:`Narrative draft`,description:`review-ready investigation summary`},{title:`Escalation brief`,description:`facts and open questions for senior review`}],metaDescription:`A supervised AI AML, fraud and sanctions analyst that assembles evidence and drafts investigation narratives for human review.`},{slug:`books-records-analyst`,title:`Books & Records Analyst`,cluster:`compliance`,tag:`For records supervision and retrieval`,shortDescription:`A digital worker that checks record completeness, retention metadata, and retrieval readiness across approved systems.`,longDescription:`Books-and-records work is often a repetitive search for missing files, incomplete metadata, and evidence that cannot be retrieved quickly. This worker runs your checklist, identifies gaps, and prepares a retrieval index for the responsible reviewer.`,bulletPoints:[`Checks required record types against your retention schedule`,`Flags missing files, owners, dates, and approval metadata`,`Creates searchable indexes for recurring supervision and requests`,`Drafts follow-ups without altering or deleting source records`],workflow:[`Requirement mapping – loads the selected record schedule and review scope`,`Completeness scan – checks authorized repositories and metadata`,`Gap assignment – identifies missing records and likely owners`,`Retrieval preparation – drafts an indexed packet for reviewer validation`],inputs:`Uses your retention schedule, supervision checklist, and authorized document and communication repositories.`,review:`Preserves source records and leaves retention, deleti
86on, and production decisions with authorized personnel.`,audience:[`Broker-dealer operations teams`,`RIA compliance teams`,`Records and supervision groups`],outputs:[{title:`Completeness report`,description:`required records matched to available evidence`},{title:`Retrieval index`,description:`organized locations and metadata`},{title:`Gap assignments`,description:`missing items with suggested owners`},{title:`Request packet draft`,description:`review-ready records inventory`}],metaDescription:`An AI books and records analyst that checks completeness, flags missing evidence, and prepares retrieval-ready indexes.`},{slug:`third-party-risk-analyst`,title:`Third-Party Risk Analyst`,cluster:`risk`,tag:`For vendor diligence and ongoing oversight`,shortDescription:`A digital worker that organizes vendor evidence, identifies unanswered risks, and drafts oversight reviews.`,longDescription:`Vendor reviews become slow and inconsistent when questionnaires, contracts, security reports, and business-owner notes are scattered across systems. This worker assembles the evidence, applies your review framework, and drafts a risk summary for the accountable owner.`,bulletPoints:[`Extracts controls and obligations from questionnaires, contracts, and reports`,`Tracks missing answers, expired evidence, and unresolved exceptions`,`Compares renewals with prior reviews and remediation commitments`,`Drafts an oversight memo without accepting risk on your behalf`],workflow:[`Vendor intake – confirms service, data access, owner, and criticality`,`Evidence review – summarizes questionnaires, agreements, and assurance reports`,`Exception tracking – identifies gaps and prior commitments`,`Decision support – drafts a risk memo for the accountable reviewer`],inputs:`Uses your vendor inventory, risk framework, questionnaires, contracts, assurance reports, and business-owner notes.`,review:`Does not approve vendors or accept risk; accountable owners retain every decision.`,audience:[`Financial-services risk teams`,`Vendor management offices`,`Security and compliance reviewers`],outputs:[{title:`Vendor profile`,description:`service, access, owners, and criticality`},{title:`Evidence summary`,description:`controls and obligations from source documents`},{title:`Exception register`,description:`open risks and remediation commitments`},{title:`Risk memo draft`,description:`review-ready decision support`}],metaDescription:`A supervised AI third-party risk analyst for vendor evidence, exception tracking, renewals, and oversight memos.`},{slug:`investment-research-analyst`,title:`Private AI Research Analyst`,cluster:`analysis`,tag:`Private, source-grounded research on your desktop`,shortDescription:`Give it a filing, earnings release, or research packet and get a structured brief with key facts, risks, and open questions for analyst review.`,longDescription:`Investment teams spend hours assembling filings, notes, models, market research, and prior decisions before analysis can begin. This worker organizes that context, extracts the requested facts, and drafts a research brief that clearly separates source material, calculations, and open questions.`,bulletPoints:[`Organizes filings, internal notes, models, transcripts, and approved research`,`Extracts key operating, financial, market, and risk evidence`,`Compares new information with the existing thesis and prior assumptions`,`Drafts research without making autonomous investment decisions`],workflow:[`Research scope – confirms the company, security, question, and time horizon`,`Evidence gathering – collects authorized internal and external source material`,`Analysis draft – structures facts, calculations, risks, and unanswered questions`,`Analyst review – delivers a source-linked brief for validation and judgment`],inputs:`Works from approved filings, research, CRM records, meeting notes, documents, and models.`,review:`Separates evidence from interpretation and leaves recommendations and investment decisions with your team.`,audience:[`Asset managers and RIAs`,`Equity and credit research teams`,`Family offices and investment committees`],outputs:[{title:`Research brief`,description:`structured evidence, analysis, and open questions`},{title:`Thesis tracker`,description:`new facts compared with prior assumptions`},{title:`Risk register`,description:`key risks and supporting evidence`},{title:`Meeting prep`,description:`questions and context for management or committee review`}],metaDescription:`A source-grounded AI investment research analyst that gathers evidence and drafts structured research for human review.`},{slug:`private-credit-due-diligence-analyst`,title:`Private Credit Due Diligence Analyst`,cluster:`anal
86ysis`,tag:`For lender and investment diligence`,shortDescription:`A digital worker that organizes deal-room evidence and drafts repeatable private-credit diligence.`,longDescription:`Private-credit diligence requires teams to reconcile financials, covenant terms, ownership information, customer concentration, and management explanations. This worker extracts and compares the evidence, flags missing support, and drafts a diligence brief for the deal team.`,bulletPoints:[`Extracts financial, covenant, collateral, ownership, and concentration evidence`,`Reconciles claims across models, presentations, contracts, and diligence notes`,`Tracks missing documents and unanswered management questions`,`Drafts credit materials without setting terms or approving a transaction`],workflow:[`Deal intake – confirms borrower, structure, scope, and required checklist`,`Document review – extracts facts from the authorized deal room and models`,`Cross-check – identifies inconsistencies, missing support, and diligence questions`,`Memo preparation – drafts a structured brief for deal-team review`],inputs:`Uses approved deal-room files, financial models, CRM records, diligence notes, and credit templates.`,review:`Supports diligence but does not determine creditworthiness, set terms, or approve transactions.`,audience:[`Private-credit funds`,`Direct lenders`,`Credit committees and deal teams`],outputs:[{title:`Diligence checklist`,description:`evidence status and open requests`},{title:`Financial cross-check`,description:`key figures and inconsistencies across sources`},{title:`Risk and covenant brief`,description:`review-ready structure and supporting facts`},{title:`Management questions`,description:`draft follow-ups tied to evidence gaps`}],metaDescription:`An AI private credit due diligence analyst that reviews deal-room evidence and drafts structured credit materials.`},{slug:`portfolio-reporting-analyst`,title:`Portfolio Reporting Analyst`,cluster:`analysis`,tag:`For consistent portfolio and client reporting`,shortDescription:`A digital worker that assembles portfolio context and drafts repeatable reporting narratives.`,longDescription:`Portfolio reporting often requires manual reconciliation across performance data, manager commentary, CRM context, and prior reports. This worker gathers the approved inputs, identifies missing or inconsistent information, and drafts a narrative for analyst and compliance review.`,bulletPoints:[`Assembles performance, allocation, activity, and portfolio-company context`,`Compares current results with prior periods and stated objectives`,`Flags missing data and inconsistent commentary before publication`,`Drafts reporting narratives while preserving human and compliance approval`],workflow:[`Period setup – confirms portfolio, audience, benchmark, and reporting period`,`Data assembly – gathers authorized reporting data and supporting commentary`,`Variance review – highlights material changes and missing explanations`,`Narrative drafting – prepares a report for analyst and compliance review`],inputs:`Works from approved portfolio data, models, CRM records, prior reports, notes, and reporting templates.`,review:`Does not calculate official performance or publish reports without validation by your existing systems and reviewers.`,audience:[`Asset managers`,`RIAs and family offices`,`Investor-relations and portfolio-operations teams`],outputs:[{title:`Reporting draft`,description:`structured narrative for the selected audience`},{title:`Variance summary`,description:`material changes from prior periods`},{title:`Data-gap report`,description:`missing inputs and unresolved inconsistencies`},{title:`Reviewer checklist`,description:`facts and disclosures requiring validation`}],metaDescription:`An AI portfolio reporting analyst that assembles context, flags data gaps, and drafts reporting narratives for review.`},{slug:`financial-risk-analyst`,title:`Financial Risk Analyst`,cluster:`risk`,tag:`For evidence-driven risk monitoring`,shortDescription:`A digital worker that monitors approved risk evidence and drafts exception-focused review briefs.`,longDescription:`Risk teams need consistent monitoring across reports, limits, incidents, controls, and business-owner updates. This worker organizes those inputs, identifies changes and exceptions, and drafts a concise brief so specialists can focus on judgment rather than collection.`,bulletPoints:[`Tracks selected indicators, limits, controls, and remediation commitments`,`Compares current evidence with prior periods and approved thresholds`,`Highlights exceptions, missing explanations, and overdue follow-ups`,`Drafts review materials without calculating official risk or taking action`],workflow:[`Monitoring scope – confirms indicators, thresholds, owners, and period`,`Evidence assembly – gathers authorized reports and business updates`,`Exception review – highlights changes, missing support, and overdue actions`,`Risk briefing – drafts an evidence-linked summary for specialist review`],inputs:`Uses your approved risk reports, thresholds, incident records, control evidence, and owner updates.`,review:`Does not replace validated risk systems, models, or accountable risk decisions.`,audie
86nce:[`Enterprise and operational risk teams`,`Investment-risk groups`,`Financial-services control functions`],outputs:[{title:`Risk brief`,description:`material changes and supporting evidence`},{title:`Exception register`,description:`threshold breaches and missing explanations`},{title:`Action tracker`,description:`owners, due dates, and remediation status`},{title:`Review questions`,description:`draft prompts for accountable specialists`}],metaDescription:`A supervised AI financial risk analyst that monitors evidence, identifies exceptions, and drafts risk briefs for human review.`},{slug:`financial-planning-analyst`,title:`Financial Planning Analyst`,cluster:`advisor_operations`,tag:`For financial planning and paraplanning teams`,shortDescription:`A digital worker that prepares client-file reviews and drafts planning work for advisor approval.`,longDescription:`Planning teams spend valuable time assembling client facts, checking stale information, and preparing meeting materials. This worker reviews the approved client record, flags missing or inconsistent information, and drafts a planning brief without making recommendations or communicating with clients.`,bulletPoints:[`Assembles client facts from CRM, planning files, notes, and approved documents`,`Flags missing KYC, stale profiles, and inconsistent assumptions`,`Drafts planning observations and meeting-preparation questions`,`Keeps recommendations and client communication with the advisor`],workflow:[`Household selection – confirms the client, meeting, and planning scope`,`File review – assembles authorized client facts and prior decisions`,`Gap analysis – identifies stale data, missing support, and open questions`,`Advisor brief – drafts review materials for advisor validation`],inputs:`Uses your CRM, planning documents, meeting notes, client files, and firm-approved templates.`,review:`Does not provide financial advice, make recommendations, or contact clients without advisor approval.`,audience:[`RIAs and financial-planning firms`,`Paraplanners and associate advisors`,`Advisor operations teams`],outputs:[{title:`Client review brief`,description:`key facts, changes, and open questions`},{title:`File-gap report`,description:`missing or stale client information`},{title:`Meeting agenda draft`,description:`prioritized topics for advisor review`},{title:`Follow-up checklist`,description:`documents and decisions that remain outstanding`}],metaDescription:`A supervised AI financial planning analyst that reviews client files and drafts planning briefs for advisor approval.`},{slug:`client-review-onboarding-analyst`,title:`Client Review & Onboarding Analyst`,cluster:`advisor_operations`,tag:`For consistent client operations`,shortDescription:`A digital worker that prepares onboarding and recurring client reviews across your approved systems.`,longDescription:`Client onboarding and review work breaks down when forms, CRM fields, meeting notes, disclosures, and follow-ups live in separate places. This worker assembles the record, identifies missing items, and drafts the next steps for advisor and operations approval.`,bulletPoints:[`Checks onboarding and review requirements against the client record`,`Flags missing forms, signatures, profile data, and follow-up items`,`Drafts internal tasks and client communications for approval`,`Creates a consistent record of what was reviewed and completed`],workflow:[`Workflow selection – confirms onboarding or recurring-review requirements`,`Record assembly – gathers authorized CRM, document, and meeting context`,`Completion check – identifies missing information and unresolved tasks`,`Handoff drafting – prepares internal tasks and client-ready drafts for approval`],inputs:`Uses your CRM, approved forms, client documents, meeting notes, email, and workflow checklists.`,review:`Leaves account opening, advice, approvals, signatures, and client communication with authorized personnel.`,audience:[`RIA operations teams`,`Client-service associates`,`Advisors scaling onboarding and recurring reviews`],outputs:[{title:`Completion dashboard`,description:`requirements, status, and responsible owner`}
86,{title:`Missing-item list`,description:`forms, facts, signatures, and follow-ups`},{title:`Task drafts`,description:`internal next steps for assignment`},{title:`Client communication drafts`,description:`review-ready requests and summaries`}],metaDescription:`An AI client review and onboarding analyst that checks requirements, flags missing items, and drafts next steps.`}],Zk=Xk.map(({slug:e})=>e),Qk=Xk.map(({slug:e,title:t,cluster:n,tag:r,shortDescription:i})=>({slug:e,title:t,cluster:n,tag:r,shortDescription:i})),$k=new Map(Xk.map(({slug:e,title:t,cluster:n})=>[e,{title:t,vertical:`financial_services`,experimentGroup:n}])),eA=new Map(Xk.map(e=>{let t={title:e.title,tag:e.tag,ctaText:e.slug===`investment-research-analyst`?`Download free & analyze a filing`:`Run your first task free`,schedule:`Try one real task in minutes · Then run on demand or on your schedule`,price:`$500/month after 14 day free trial`,isProKnap:!0,vertical:`financial_services`,experimentGroup:e.cluster,whatItHandles:{shortDescription:e.shortDescription,longDescription:e.longDescription,bulletPoints:e.bulletPoints},dailyWorkflow:e.workflow,howItWorks:[{title:`Connect only the tools you approve`,description:e.inputs},{title:`Review evidence before drafting`,description:`Knapsack gathers the relevant context, identifies missing support, and keeps links back to the underlying records.`},{title:`Keep a human in control`,description:e.review}],whoThisIsFor:e.audience,whatYoullGet:e.outputs,metaTitle:`${e.title} AI Worker | Knapsack`,metaDescription:e.metaDescription};return[e.slug,t]})),tA=({slug:e})=>{let t=eA.get(e);return t?(0,z.jsx)(Yk,{content:t}):null},nA=`198895334799`,rA=`824066061308`,iA=`/investment-research-analyst`,aA=`/downloading`,oA=new Set([iA,aA]),sA=({children:e})=>{let[t,n]=(0,C.useState)(!1),r=ut(),i=pt();r.pathname;
86let a=new URLSearchParams(r.search).get(`role`),o=r.pathname.startsWith(`/private-openclaw-for-`)||r.pathname===`/downloading`&&a?.startsWith(`privacy-`),s=[`/executive-assistant`,`/enterprise-sdr`,`/ads-optimizer`,`/paraplanner`,`/project-coordinator`,`/customer-success-manager`,`/recruiting-coordinator`,`/bookkeeper`,`/creator-coach`,`/daily-expert`,...Zk.map(e=>`/${e}`)].includes(r.pathname)?`https://calendly.com/mark-knap/pro-knap-consultation`:`https://calendly.com/mark-knap/discovery`;(0,C.useEffect)(()=>{$.capture();let e=new URLSearchParams(r.search),t=!!(e.get(`gclid`)||e.get(`wbraid`)||e.get(`gbraid`)),n=e.get(`paid_redirect_source`),a=e.get(`paid_redirect_path`);Q.initAnalytics();let o=t&&e.get(`ag`)===nA,s=o&&e.get(`utm_content`)===rA;if(o&&n&&r.pathname===iA){Q.trackEvent(`www_paid_campaign_rerouted`,{from_host:n,from_path:a||`/`,to_path:iA,reason:`cross_subdomain_sitelink_destination`,...$.eventProps()}),e.delete(`paid_redirect_source`),e.delete(`paid_redirect_path`),i({pathname:iA,search:e.toString()?`?${e.toString()}`:``,hash:r.hash},{replace:!0});return}if(s&&r.pathname===iA){Q.trackEvent(`www_paid_campaign_rerouted`,{from_host:window.location.hostname,from_path:r.pathname,to_path:aA,reason:`download_first_ad_destination`,...$.eventProps()}),e.set(`role`,`investment-research-analyst`),i({pathname:aA,search:`?${e.toString()}`,hash:r.hash},{replace:!0});return}o&&!oA.has(r.pathname)&&(Q.trackEvent(`www_paid_campaign_rerouted`,{from_host:window.location.hostname,from_path:r.pathname,to_path:iA,reason:`generic_sitelink_destination`,...$.eventProps()}),i({pathname:iA,search:r.search,hash:r.hash},{replace:!0}))},[r.hash,r.pathname,r.search,i]),(0,C.useEffect)(()=>{window.scrollTo(0,0)},[r.pathname]);let c=()=>{Q.trackEvent(`www_user_click_book_demo`),n(!0)};return(0,z.jsxs)(zr,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`html`,{lang:`en`}),(0,z.jsx)(`title`,{children:`Knapsack AI`}),(0,z.jsx)(`meta`,{charSet:`UTF-8`}),(0,z.jsx)(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1.0`}),(0,z.jsx)(`script`,{children:`
vendor: 388 bytes, lines 86-91
86
87            (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
88            new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
89            j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
90            'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
91            })(window,document,'script','dataLayer','
91GTM-N4XNTCLN
vendor: 14 bytes, lines 91-92
91');
92          
92`}),`<!-- Google tag (gtag.js) -->`,(0,z.jsx)(`script`,{async:!0,src:`https://www.googletagmanager.com/gtag/js?id=AW-16630252215`}),(0,z.jsx)(`script`,{children:`
93          
vendor: 157 bytes, lines 93-96
93window.dataLayer = window.dataLayer || [];
94          function gtag(){dataLayer.push(arguments);}
95          gtag('js', new Date());
96          gtag('config', '
96AW-16630252215
vendor: 14 bytes, lines 96-97
96');
97          
97`}),(0,z.jsx)(`script`,{children:`
98            function initApollo(){var n=Math.random().toString(36).substring(7),o=document.createElement("script");
99o.src="https://assets.apollo.io/micro/website-tracker/tracker.iife.js?nocache="+n,o.async=!0,o.defer=!0,
100o.onload=function(){window.trackingFunctions.onLoad({appId:"68893418a4ab320021949e81"})},
101document.head.appendChild(o)}initApollo();
102          `}),(0,z.jsx)(`script`,{children:`
103            !function(key) {
104              if (window.reb2b) return;
105              window.reb2b = {loaded: true};
106              var s = document.createElement("script");
107              s.async = true;
108              s.src = "https://b2bjsstore.s3.us-west-2.amazonaws.com/b/" + key + "/" + key + ".js.gz";
109              document.getElementsByTagName("script")[0].parentNode.insertBefore(s, document.getElementsByTagName("script")[0]);
110            }("DNXY8HK0GWO0");
111          `}),(0,z.jsx)(`script`,{children:`
112            _linkedin_partner_id = "8187132";
113            window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
114            window._linkedin_data_partner_ids.push(_linkedin_partner_id);
115          `}),(0,z.jsx)(`script`,{type:`text/javascript`,children:`
116            (function(l) {
117            if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])};
118            window.lintrk.q=[]}
119            var s = document.getElementsByTagName("script")[0];
120            var b = document.createElement("script");
121            b.type = "text/javascript";b.async = true;
122            b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";
123            s.parentNode.insertBefore(b, s);})(window.lintrk);
124          `}),(0,z.jsx)(`noscript`,{children:`<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=8187132&fmt=gif" />`}),(0,z.jsx)(`script`,{children:`
vendor: 145 bytes, lines 124-127
124
125            (function(h,o,t,j,a,r){
126              h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
127              h._hjSettings={hjid:
1275285593
vendor: 300 bytes, lines 127-133
127,hjsv:6};
128              a=o.getElementsByTagName('head')[0];
129              r=o.createElement('script');r.async=1;
130              r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
131              a.appendChild(r);
132            })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
133          
133`}),(0,z.jsx)(`script`,{type:`text/javascript`,id:`hs-script-loader`,async:!0,defer:!0,src:`//js.hs-scripts.com/44667998.js`})]}),(0,z.jsx)(`noscript`,{children:(0,z.jsx)(`iframe`,{src:`https://www.googletagmanager.com/ns.html?id=GTM-N4XNTCLN`,height:`0`,width:`0`,style:{display:`none`,visibility:`hidden`}})}),(0,z.jsx)(Zy,{openCalendlyModal:c,children:(0,z.jsxs)(`div`,{className:`min-h-screen bg-white`,children:[(0,z.jsx)(sh,{onBookDemo:c}),e,(0,z.jsx)(ch,{privacyClaimSafe:o}),(0,z.jsx)(Jy,{isOpen:t,onClose:()=>{n(!1)},calendlyUrl:s})]})})]})};function cA(){if(typeof navigator<`u`){let e=navigator.userAgent;if(e.includes(`Win`))return`Download Windows App`;if(e.includes(`Mac`))return`Download macOS App`;if(e.includes(`Linux`))return`Download Linux App`}return`Download Desktop App`}function lA(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.25,delayChildren:.2}}},r={hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{duration:.8,ease:[.16,1,.3,1]}}};return(0,z.jsxs)(V.header,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`box-border content-stretch flex flex-col gap-6 lg:gap-10 items-center justify-start max-w-[1500px] overflow-hidden py-8 lg:py-16 relative shrink-0 w-full`,children:[(0,z.jsx)(V.p,{variants:r,className:`text-[12px] lg:text-[13px] font-semibold uppercase tracking-[0.15em] text-[#003a53] opacity-60`,children:`Safe & simple AI for your real work`}),(0,z.jsx)(V.div,{variants:r,className:`flex flex-col justify-center not-italic relative shrink-0 text-[#222222] text-center w-full px-4`,children:(0,z.jsx)(`h1`,{className:`text-[48px] sm:text-[70px] lg:text-[88px] leading-[1.0] lg:leading-[0.95] tracking-[-2px] sm:tracking-[-3px] lg:tracking-[-.05em] font-normal font-Spectral`,children:`Your work. On autopilot.`})}),(0,z.jsx)(V.p,{variants:r,className:`text-[15px] lg:text-[18px] text-[#222222] opacity-75 text-center max-w-[640px] leading-[1.5] px-4`,children:`Knapsack turns your email and calendar into personalized AI agents that actually do the work — drafting replies, prepping meetings, tracking follow-ups. Start in your browser. Go private when you're ready.`}),(0,z.jsxs)(V.div,{variants:r,className:`flex flex-col sm:flex-row items-center gap-4 mt-2`,children:[(0,z.jsx)(V.a,{whileHover:{scale:1.05,boxShadow:`0 12px 30px rgba(255, 178, 71, 0.3)`},whileTap:{scale:.95},href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`bg-[#ffb247] hover:bg-[#ffa733] text-black font-medium py-3.5 px-8 rounded-full transition-all duration-300 text-[15px] shadow-md min-w-[200px] text-center`,children:`Start free in Studio`}),(0,z.jsx)(V.a,{whileHover:{scale:1.05},whileTap:{scale:.95},href:`/desktop`,className:`bg-white border border-[#333333] text-[#222222] font-medium py-3.5 px-8 rounded-full transition-all duration-300 text-[15px] min-w-[200px] text-center hover:bg-gray-50`,children:cA()})]}),(0,z.jsx)(V.p,{variants:r,className:`text-[13px] lg:text-[14px] text-[#003a53] opacity-60 text-center font-medium`,children:`Start instantly in your browser. Run it privately on your machine.`}),(0,z.jsx)(V.div,{variants:r,className:`flex flex-wrap items-center justify-center gap-3 lg:gap-5 px-4`,children:[`SOC 2 Type 2`,`HIPAA Compliant`,`No training on your data`].map(e=>(0,z.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,z.jsx)(Xm,{className:`w-3.5 h-3.5 text-[#003a53] opacity-30`}),(0,z.jsx)(`span`,{className:`text-[12px] lg:text-[13px] text-[#222222] opacity-40 font-medium`,children:e})]},e))})]})}var uA=[{name:`Inbox Autopilot`,icon:Im,description:`Drafts replies to actionable emails in your voice.`,bullets:[`Triages your inbox by urgency and type`,`Drafts context-aware responses for your review`,`Learns your tone and preferences over time`]},{name:`Meeting Prep`,icon:pm,description:`Briefs you before every meeting, automatically.`,bullets:[`Pulls attendee history from email, CRM, and past meetings`,`Surfaces open action items and recent conversations`,`Delivers a brief to your inbox 30 minutes before the call`]},{name:`Post-Meeting Follow-Up`,icon:Km,description:`Turns meetings into action within minutes.`,bullets:[`Summarizes key decisions and next steps`,`Drafts personalized follow-up emails per attendee`,`Logs notes and outcomes to your CRM`]},{name:`Relationship Tracker`,icon:th,description:`Flags relationships that need attention before they go cold.`,bullets:[`Monitors communication frequency across contacts`,`Alerts you when key relationships go quiet`,`Suggests re-engagement touchpoints`]},{name:`Daily Coach`,icon:mm,description:`A personalized daily brief with priorities and feedback.`,bullets:[`Reviews your calendar and inbox each morning`,`Highlights what matters most today`,`Gives structured feedback on yesterday's follow-through`]}];function dA(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0}
133,visible:{opacity:1,transition:{duration:.8,staggerChildren:.1,delayChildren:.2}}},r={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};return(0,z.jsx)(V.section,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`relative shrink-0 w-full bg-white`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-8 lg:gap-12 items-center justify-center px-4 lg:px-16 py-12 lg:py-20 relative w-full max-w-[1500px] mx-auto`,children:[(0,z.jsxs)(V.div,{variants:r,className:`text-center w-full max-w-3xl`,children:[(0,z.jsx)(`p`,{className:`text-[12px] lg:text-[13px] font-semibold uppercase tracking-[0.15em] text-[#003a53] opacity-60 mb-4`,children:`Personalized from your work`}),(0,z.jsx)(`h2`,{className:`text-[32px] lg:text-[48px] font-Spectral leading-[1.1] tracking-[-.03em] text-black mb-4`,children:`Agents that already know your work`}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-80 leading-[1.4]`,children:`No blank page. Connect your email and calendar, and Knapsack creates agents personalized to your real workflow — ready to use immediately.`})]}),(0,z.jsx)(`div`,{className:`w-full max-w-6xl`,children:(0,z.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 lg:gap-6`,children:uA.map(e=>{let t=e.icon;return(0,z.jsxs)(V.div,{variants:r,whileHover:{y:-8,scale:1.01},transition:{duration:.3},className:`bg-gradient-to-br from-white to-gray-50 border border-gray-200 rounded-2xl p-6 lg:p-7 flex flex-col gap-4 hover:shadow-lg transition-all duration-300 cursor-default`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,z.jsx)(`div`,{className:`w-11 h-11 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center flex-shrink-0`,children:(0,z.jsx)(t,{className:`w-5 h-5 text-white`})}),(0,z.jsx)(`h3`,{className:`text-[18px] lg:text-[20px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222]`,children:e.name})]}),(0,z.jsx)(`p`,{className:`text-[14px] lg:text-[15px] text-[#222222] opacity-80 leading-[1.4] font-medium`,children:e.description}),(0,z.jsx)(`ul`,{className:`flex flex-col gap-2 mt-1`,children:e.bullets.map(e=>(0,z.jsxs)(`li`,{className:`flex items-start gap-2.5`,children:[(0,z.jsx)(`span`,{className:`w-1.5 h-1.5 rounded-full bg-[#003a53] opacity-40 mt-[7px] flex-shrink-0`}),(0,z.jsx)(`span`,{className:`text-[13px] lg:text-[14px] text-[#222222] opacity-65 leading-[1.4]`,children:e})]},e))})]},e.name)})})}),(0,z.jsx)(V.p,{variants:r,className:`text-[13px] lg:text-[14px] text-[#222222] opacity-50 text-center`,children:`These are your starting agents. Customize them or build your own — no code required.`})]})})}var fA=[{number:`01`,title:`Connect your email and calendar`,description:`Sign in with Google or Microsoft. Knapsack connects to your inbox and calendar — read-only by default.`},{number:`02`,title:`Review your agents`,description:`Knapsack auto-creates five agents based on your workflow. Keep them as-is, tweak them, or turn any off.`},{number:`03`,title:`Let them run`,description:`Agents work in the background — drafting emails, prepping meetings, tracking follow-ups. You stay in control.`}];function pA(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.8,staggerChildren:.15,delayChildren:.2}}},r={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};return(0,z.jsx)(V.section,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`relative w-full bg-gradient-to-b from-gray-50 to-white py-12 lg:py-20`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-8 lg:gap-14 items-center justify-start px-4 lg:px-16 relative w-full max-w-[1500px] mx-auto`,children:[(0,z.jsx)(V.div,{variants:r,className:`text-center w-full max-w-3xl`,children:(0,z.jsx)(`h2`,{className:`text-[32px] lg:text-[48px] font-Spectral leading-[1.1] tracking-[-.03em] text-black`,children:`Up and running in under two minutes`})}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 lg:grid-cols-3 gap-6 lg:gap-8 w-full max-w-5xl`,children:fA.map(e=>(0,z.jsxs)(V.div,{variants:r,whileHover:{y:-8,scale:1.01},transition:{duration:.3},className:`bg-white border border-gray-200 rounded-2xl p-6 lg:p-8 flex flex-col gap-4 hover:shadow-lg transition-all duration-300`,children:[(0,z.jsx)(`span`,{className:`text-[40px] lg:text-[48px] font-Spectral font-light text-[#003a53] opacity-20 leading-none`,children:e.number}),(0,z.jsx)(`h3`,{className:`text-[20px] lg:text-[22px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] leading-[1.2]`,children:e.title}
133),(0,z.jsx)(`p`,{className:`text-[14px] lg:text-[16px] text-[#222222] opacity-70 leading-[1.5]`,children:e.description})]},e.number))}),(0,z.jsx)(V.p,{variants:r,className:`text-[14px] lg:text-[15px] text-[#222222] opacity-50 text-center max-w-lg`,children:`Nothing sends without you. Every draft, every action — you approve it first.`})]})})}function mA(){if(typeof navigator<`u`){let e=navigator.userAgent;if(e.includes(`Win`))return`Download Windows App`;if(e.includes(`Mac`))return`Download macOS App`;if(e.includes(`Linux`))return`Download Linux App`}return`Download Desktop App`}function hA(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.8,staggerChildren:.15,delayChildren:.2}}},r={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};return(0,z.jsx)(V.section,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`relative shrink-0 w-full`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-8 lg:gap-12 items-center justify-center px-4 lg:px-16 py-12 lg:py-20 relative w-full max-w-[1500px] mx-auto`,children:[(0,z.jsxs)(V.div,{variants:r,className:`text-center w-full max-w-3xl`,children:[(0,z.jsx)(`h2`,{className:`text-[32px] lg:text-[48px] font-Spectral leading-[1.1] tracking-[-.03em] text-black mb-4`,children:`Start instantly. Run it your way.`}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-80 leading-[1.4]`,children:`Two ways to use Knapsack. Same agents, same privacy commitment.`})]}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-6 w-full max-w-5xl`,children:[(0,z.jsxs)(V.div,{variants:r,whileHover:{y:-8},transition:{duration:.3},className:`bg-white border-2 border-[#ffb247] rounded-2xl p-7 lg:p-9 flex flex-col gap-6 hover:shadow-lg transition-all duration-300 relative h-full`,children:[(0,z.jsx)(`div`,{className:`flex items-center gap-3`,children:(0,z.jsx)(`span`,{className:`inline-flex items-center bg-[#ffb247] text-black text-[12px] font-semibold px-3 py-1 rounded-full`,children:`Start here`})}),(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 bg-gradient-to-br from-[#ffb247] to-[#ffa733] rounded-xl flex items-center justify-center flex-shrink-0`,children:(0,z.jsx)(km,{className:`w-6 h-6 text-white`})}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h3`,{className:`text-[24px] lg:text-[28px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222]`,children:`Studio`}),(0,z.jsx)(`p`,{className:`text-[13px] text-[#222222] opacity-50`,children:`studio.knapsack.ai`})]})]}),(0,z.jsx)(`p`,{className:`text-[15px] lg:text-[16px] text-[#222222] opacity-80 leading-[1.5]`,children:`Open your browser and start. No download, no install. Agents run in the cloud with end-to-end encryption.`}),(0,z.jsx)(`ul`,{className:`flex flex-col gap-2.5`,children:[`Works on any device`,`Zero setup required`,`SOC 2 Type 2 infrastructure`,`All 5 agents included`].map(e=>(0,z.jsxs)(`li`,{className:`flex items-center gap-2.5`,children:[(0,z.jsx)(hm,{className:`w-4 h-4 text-[#ffb247] flex-shrink-0`}),(0,z.jsx)(`span`,{className:`text-[14px] lg:text-[15px] text-[#222222] opacity-75`,children:e})]},e))}),(0,z.jsx)(V.a,{whileHover:{scale:1.03,boxShadow:`0 8px 25px rgba(255, 178, 71, 0.3)`},whileTap:{scale:.97},href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`bg-[#ffb247] hover:bg-[#ffa733] text-black font-medium text-center py-3.5 px-6 rounded-full transition-all duration-300 text-[15px] mt-auto`,children:`Try Studio free`})]}),(0,z.jsxs)(V.div,{variants:r,whileHover:{y:-8},transition:{duration:.3},className:`bg-gradient-to-br from-[#f8fafb] to-[#f0f4f6] border-2 border-[#003a53]/20 rounded-2xl p-7 lg:p-9 flex flex-col gap-6 hover:shadow-lg transition-all duration-300 relative h-full`,children:[(0,z.jsx)(`div`,{className:`flex items-center gap-3`,children:(0,z.jsx)(`span`,{className:`inline-flex items-center bg-[#003a53] text-white text-[12px] font-semibold px-3 py-1 rounded-full`,children:`Maximum privacy`})}),(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center flex-shrink-0`,children:(0,z.jsx)(Vm,{className:`w-6 h-6 text-white`})}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h3`,{className:`text-[24px] lg:text-[28px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222]`,children:`Desktop`}),(0,z.jsx)(`p`,{className:`text-[13px] text-[#222222] opacity-50`,children:`macOS and Windows`})]})]}
133),(0,z.jsx)(`p`,{className:`text-[15px] lg:text-[16px] text-[#222222] opacity-80 leading-[1.5]`,children:`Run agents locally on your machine. Your data stays on your hardware. Nothing goes to the cloud unless you choose.`}),(0,z.jsx)(`ul`,{className:`flex flex-col gap-2.5`,children:[`Runs 100% on your machine`,`No cloud dependency`,`Always-on background processing`,`Ideal for regulated industries`].map(e=>(0,z.jsxs)(`li`,{className:`flex items-center gap-2.5`,children:[(0,z.jsx)(hm,{className:`w-4 h-4 text-[#003a53] flex-shrink-0`}),(0,z.jsx)(`span`,{className:`text-[14px] lg:text-[15px] text-[#222222] opacity-75`,children:e})]},e))}),(0,z.jsx)(V.a,{whileHover:{scale:1.03},whileTap:{scale:.97},href:`/desktop`,className:`bg-[#003a53] hover:bg-[#004461] text-white font-medium text-center py-3.5 px-6 rounded-full transition-all duration-300 text-[15px] mt-auto`,children:mA()})]})]}),(0,z.jsxs)(V.div,{variants:r,className:`text-center max-w-2xl space-y-3`,children:[(0,z.jsx)(`p`,{className:`text-[13px] text-[#222222] opacity-40`,children:(0,z.jsx)(`a`,{href:`/desktop`,className:`underline underline-offset-2 hover:opacity-70 transition-opacity`,children:`Learn more about the Desktop app →`})}),(0,z.jsx)(`p`,{className:`text-[14px] lg:text-[15px] text-[#222222] opacity-60 leading-[1.5]`,children:`Start in Studio today. Move to Desktop when you need full local control. Your agents and settings transfer seamlessly.`}),(0,z.jsxs)(`p`,{className:`text-[13px] text-[#222222] opacity-40`,children:[`Building a product? Knapsack also runs headless — embed private AI agents directly in your app.`,` `,(0,z.jsx)(`a`,{href:`https://docs.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`underline underline-offset-2 hover:opacity-70 transition-opacity`,children:`Learn more →`})]})]})]})})}var gA=[{feature:`Personalization`,chatbots:`Generic responses every time`,cloudAgents:`Requires manual setup per workflow`,knapsack:`Auto-personalized from your email and calendar`},{feature:`Privacy`,chatbots:`Data sent to cloud for training`,cloudAgents:`Data stored on vendor servers`,knapsack:`Local option. No training on your data.`},{feature:`Reliability`,chatbots:`Inconsistent outputs`,cloudAgents:`Brittle automations that break`,knapsack:`Structured agents with human approval`},{feature:`Setup time`,chatbots:`Manual prompting every time`,cloudAgents:`Hours of workflow configuration`,knapsack:`Under 2 minutes. Works out of the box.`},{feature:`Model lock-in`,chatbots:`Tied to one provider`,cloudAgents:`Tied to one provider`,knapsack:`Model independent. Switch freely.`}];function _A(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.8,staggerChildren:.1,delayChildren:.2}}},r={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};return(0,z.jsx)(V.section,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`relative shrink-0 w-full bg-gradient-to-b from-white to-gray-50`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-8 lg:gap-12 items-center justify-center px-4 lg:px-16 py-12 lg:py-20 relative w-full max-w-[1500px] mx-auto`,children:[(0,z.jsxs)(V.div,{variants:r,className:`text-center w-full max-w-3xl`,children:[(0,z.jsx)(`h2`,{className:`text-[32px] lg:text-[48px] font-Spectral leading-[1.1] tracking-[-.03em] text-black mb-4`,children:`Not another chatbot. Not another agent framework.`}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-80 leading-[1.4]`,children:`Most AI tools are either too generic, too risky, or too complicated. Knapsack is personalized, structured, and simple.`})]}),(0,z.jsx)(V.div,{variants:r,className:`hidden lg:block w-full max-w-5xl`,children:(0,z.jsxs)(`div`,{className:`rounded-2xl border border-gray-200 overflow-hidden`,children:[(0,z.jsxs)(`div`,{className:`grid grid-cols-4 bg-gray-50`,children:[(0,z.jsx)(`div`,{className:`p-5 border-r border-gray-200`}),(0,z.jsxs)(`div`,{className:`p-5 border-r border-gray-200 text-center`,children:[(0,z.jsx)(`p`,{className:`text-[14px] font-semibold text-[#222222] opacity-50`,children:`Generic Chatbots`}),(0,z.jsx)(`p`,{className:`text-[12px] text-[#222222] opacity-35 mt-0.5`,children:`ChatGPT, etc.`})]}),(0,z.jsxs)(`div`,{className:`p-5 border-r border-gray-200 text-center`,children:[(0,z.jsx)(`p`,{className:`text-[14px] font-semibold text-[#222222] opacity-50`,children:`Cloud AI Agents`}),(0,z.jsx)(`p`,{className:`text-[12px] text-[#222222] opacity-35 mt-0.5`,children:`Zapier AI, etc.`})]}),(0,z.jsx)(`div`,{className:`p-5 bg-[#003a53]/[0.03] border-t-[3px] border-t-[#ffb247]`,children:(0,z.jsx)(`p`,{className:`text-[14px] font-semibold text-[#003a53] text-center`,children:`Knapsack`})})]}),gA.map((e,t)=>(0,z.jsxs)(`div`,{className:`grid grid-cols-4 ${t<gA.length-1?`border-b border-gray-200`:``}`,children:[(0,z.jsx)(`div`,{className:`p-5 border-r border-gray-200 flex items-center`,children:(0,z.jsx)(`p`,{className:`text-[15px] font-semibold text-[#222222]`,children:e.feature})}),(0,z.jsxs)(`div`,{className:`p-5 border-r border-gray-200 flex items-center gap-2.5`,children:[(0,z.jsx)(rh,{className:`w-4 h-4 text-red-400/60 flex-shrink-0`}),(0,z.jsx)(`p`,{className:`text-[14px] text-[#222222] opacity-55 leading-[1.4]`,children:e.chatbots})]}),(0,z.jsxs)(`div`,{className:`p-5 border-r border-gray-200 flex items-center gap-2.5`,children:[(0,z.jsx)(Bm,{className:`w-4 h-4 text-amber-400/60 flex-shrink-0`}),(0,z.jsx)(`p`,{className:`text-[14px] text-[#222222] opacity-55 leading-[1.4]`,children:e.cloudAgents})]}),(0,z.jsxs)(`div`,{className:`p-5 bg-[#003a53]/[0.03] flex items-center gap-2.5`,children:[(0,z.jsx)(hm,{className:`w-4 h-4 text-emerald-500 flex-shrink-0`}),(0,z.jsx)(`p`,{className:`text-[14px] text-[#222222] font-medium leading-[1.4]`,children:e.knapsack})]})]},e.feature))]})}),(0,z.jsx)(`div`,{className:`lg:hidden w-full flex flex-col gap-4`,children:gA.map(e=>(0,z.jsxs)(V.div,{variants:r,className:`bg-white border border-gray-200 rounded-2xl p-5 flex flex-col gap-3`,children:[(0,z.jsx)(`h3`,{className:`text-[17px] font-semibold text-[#222222]`,children:e.feature}),(0,z.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[(0,z.jsxs)(`div`,{className:`flex items-start gap-2.5`,children:[(0,z.jsx)(rh,{className:`w-4 h-4 text-red-400/60 flex-shrink-0 mt-0.5`}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`text-[12px] text-[#222222] opacity-40 font-medium`,children:`Generic Chatbots`}),(0,z.jsx)(`p`,{className:`text-[13px] text-[#222222] opacity-60 leading-[1.4]`,children:e.chatbots})]})]}),(0,z.jsxs)(`div`,{className:`flex items-start gap-2.5`,children:[(0,z.jsx)(Bm,{className:`w-4 h-4 text-amber-400/60 flex-shrink-0 mt-0.5`}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`text-[12px] text-[#222222] opacity-40 font-medium`,children:`Cloud AI Agents`}),(0,z.jsx)(`p`,{className:`text-[13px] text-[#222222] opacity-60 leading-[1.4]`,children:e.cloudAgents})]})]}),(0,z.jsxs)(`div`,{className:`flex items-start gap-2.5 bg-[#003a53]/[0.03] rounded-xl p-3 -mx-1`,children:[(0,z.jsx)(hm,{className:`w-4 h-4 text-emerald-500 flex-shrink-0 mt-0.5`}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`text-[12px] text-[#003a53] font-semibold`,children:`Knapsack`}),(0,z.jsx)(`p`,{className:`text-[13px] text-[#222222] font-medium leading-[1.4]`,children:e.knapsack})]})]})]})]},e.feature))}),(0,z.jsx)(V.p,{variants:r,className:`text-[14px] lg:text-[15px] text-[#222222] opacity-50 text-center`,children:`Built for professionals who need AI they can trust, not babysit.`})]})})}
133var vA=[{icon:Cm,title:`Your context is yours`,description:`Your email history, meeting notes, relationship data, and agent configurations belong to you — not to a model provider.`},{icon:Um,title:`Switch models without starting over`,description:`Move between AI models freely. Your agents, your context, and your workflows stay the same.`},{icon:Mm,title:`Built for what comes next`,description:`Models will keep changing. Knapsack keeps your work context portable so you always have access to the best option.`}];function yA(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.8,staggerChildren:.15,delayChildren:.2}}},r={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};return(0,z.jsx)(V.section,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`relative shrink-0 w-full bg-gradient-to-b from-gray-50 to-white`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-8 lg:gap-12 items-center justify-center px-4 lg:px-16 py-12 lg:py-20 relative w-full max-w-[1500px] mx-auto`,children:[(0,z.jsxs)(V.div,{variants:r,className:`text-center w-full max-w-3xl`,children:[(0,z.jsx)(`p`,{className:`text-[12px] lg:text-[13px] font-semibold uppercase tracking-[0.15em] text-[#003a53] opacity-60 mb-4`,children:`Model independence`}),(0,z.jsx)(`h2`,{className:`text-[32px] lg:text-[48px] font-Spectral leading-[1.1] tracking-[-.03em] text-black mb-4`,children:`Models change. Your context shouldn't.`}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-80 leading-[1.4]`,children:`Most AI tools lock you into one model. Knapsack keeps your work context portable — so you're never stuck, and always on the best available model.`})]}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 lg:grid-cols-3 gap-6 lg:gap-8 w-full max-w-5xl`,children:vA.map(e=>{let t=e.icon;return(0,z.jsxs)(V.div,{variants:r,whileHover:{y:-8,scale:1.01},transition:{duration:.3},className:`bg-white border border-gray-200 rounded-2xl p-6 lg:p-8 flex flex-col gap-4 hover:shadow-lg transition-all duration-300`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center flex-shrink-0`,children:(0,z.jsx)(t,{className:`w-6 h-6 text-white`})}),(0,z.jsx)(`h3`,{className:`text-[20px] lg:text-[22px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] leading-[1.2]`,children:e.title}),(0,z.jsx)(`p`,{className:`text-[14px] lg:text-[16px] text-[#222222] opacity-70 leading-[1.5]`,children:e.description})]},e.title)})})]})})}function bA(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.1}}},r={hidden:{opacity:0,y:60},visible:{opacity:1,y:0,transition:{duration:.8,ease:[.16,1,.3,1]}}},i={hidden:{opacity:0,scale:.9,y:40},visible:{opacity:1,scale:1,y:0,transition:{duration:.8,ease:[.16,1,.3,1]}}},a=[{icon:Xm,title:`SOC 2 Type 2 Certified`,description:`Independently audited. Enterprise-grade security controls verified by a third party. Built from the ground up for regulated industries.`},{icon:Fm,title:`No training on your data`,description:`Your emails, meetings, and documents are never used to train AI models. Not by us. Not by anyone.`},{icon:Am,title:`Local-first architecture`,description:`With Knapsack Desktop, your data never leaves your machine. No cloud storage, no third-party access, no exceptions.`}];return(0,z.jsx)(V.section,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`relative shrink-0 w-full`,children:(0,z.jsx)(`div`,{className:`overflow-clip relative w-full`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col lg:flex-row gap-8 lg:gap-12 items-start justify-start px-4 lg:px-16 py-12 lg:py-[120px] relative w-full`,children:[(0,z.jsx)(V.div,{variants:r,className:`flex-1 content-stretch flex gap-4 items-start justify-start min-h-px min-w-px relative shrink-0`,children:(0,z.jsxs)(`div`,{className:`flex-1 flex flex-col gap-4 justify-center min-h-px min-w-px not-italic relative shrink-0`,children:[(0,z.jsx)(`h2`,{className:`text-[40px] lg:text-[60px] leading-[1.1] tracking-[-1.8px] text-black font-Spectral`,children:`Safe and simple. By design.`}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-70 leading-[1.4] max-w-md`,children:`Built for regulated industries from day one. You get useful AI without compromising on privacy or c
133ontrol.`})]})}),(0,z.jsx)(V.div,{variants:n,className:`flex-1 content-stretch flex flex-col gap-4 items-start justify-start min-h-px min-w-px relative shrink-0`,children:a.map(e=>{let t=e.icon;return(0,z.jsxs)(V.div,{variants:i,whileHover:{scale:1.02,y:-5},transition:{duration:.3},className:`bg-[#f2f2f2] hover:bg-[#f8f8f8] min-w-[300px] lg:min-w-[324px] relative rounded-[16px] shrink-0 w-full cursor-pointer group transition-all duration-300`,children:[(0,z.jsx)(`div`,{className:`absolute border border-[#dddddd] group-hover:border-[#ffb247] border-solid inset-0 pointer-events-none rounded-[16px] transition-colors duration-300`}),(0,z.jsx)(`div`,{className:`min-w-inherit relative w-full`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-6 items-start justify-start min-w-inherit p-[24px] relative w-full`,children:[(0,z.jsx)(V.div,{whileHover:{scale:1.1,rotate:5},transition:{duration:.3},className:`h-[42px] relative shrink-0 w-10`,children:(0,z.jsx)(t,{size:40,className:`text-black/50 group-hover:text-[#ffb247] transition-colors duration-300`,strokeWidth:1.5})}),(0,z.jsx)(`div`,{className:`content-stretch flex gap-3 items-center justify-center relative shrink-0`,children:(0,z.jsx)(`div`,{className:`font-semibold leading-[0] not-italic relative shrink-0 text-[20px] lg:text-[24px] text-black text-nowrap tracking-[-0.36px]`,children:(0,z.jsx)(`p`,{className:`leading-none whitespace-pre`,children:e.title})})}),(0,z.jsx)(`div`,{className:`flex flex-col justify-center min-w-full not-italic relative shrink-0`,style:{width:`min-content`},children:(0,z.jsx)(`p`,{className:`text-[13px] lg:text-[16px] text-[#222222] text-left leading-[1.4]`,children:e.description})})]})})]},e.title)})})]})})})}function xA(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`});return(0,z.jsx)(V.section,{ref:e,variants:{hidden:{opacity:0},visible:{opacity:1,transition:{duration:.8,staggerChildren:.15,delayChildren:.2}}},initial:`hidden`,animate:t?`visible`:`hidden`,className:`relative shrink-0 w-full`,children:(0,z.jsx)(`div`,{className:`box-border content-stretch flex flex-col gap-8 lg:gap-10 items-center justify-center px-4 lg:px-16 py-12 lg:py-20 relative w-full max-w-[1500px] mx-auto`,children:(0,z.jsx)(V.div,{variants:{hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}},className:`w-full bg-gradient-to-br from-white to-gray-50 border-2 border-[#ffb247] rounded-2xl p-6 lg:p-10 max-w-4xl`,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-6 lg:gap-8`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,z.jsx)(`div`,{className:`w-11 h-11 rounded-xl flex items-center justify-center flex-shrink-0 bg-gradient-to-br from-[#ffb247] to-[#ffa733]`,children:(0,z.jsx)(dm,{className:`w-5 h-5 text-white`})}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`text-[12px] text-[#af7018] font-semibold uppercase tracking-[0.1em]`,children:`Case Study`}),(0,z.jsx)(`h3`,{className:`text-[24px] lg:text-[32px] font-Spectral font-semibold tracking-[-0.5px] text-black leading-[1.1]`,children:`How financial advisors save 8 hours a week`})]})]}),(0,z.jsx)(`p`,{className:`text-[15px] lg:text-[17px] text-[#222222] opacity-75 leading-[1.5] max-w-2xl`,children:`Compliance-sensitive teams cannot use generic AI. Client data cannot leave the firm. Every communication must be archivable. Knapsack was built for exactly this scenario.`}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-3 gap-4 lg:gap-6`,children:[{value:`8 hrs/week`,label:`saved on meeting prep and follow-ups`},{value:`100%`,label:`of client communications stay local`},{value:`0`,label:`compliance violations`}].map(e=>(0,z.jsxs)(`div`,{className:`bg-white border border-gray-200 rounded-xl p-4 lg:p-5 text-center`,children:[(0,z.jsx)(`p`,{className:`text-[28px] lg:text-[32px] font-Spectral font-semibold text-[#003a53] leading-none mb-1.5`,children:e.value}),(0,z.jsx)(`p`,{className:`text-[13px] lg:text-[14px] text-[#222222] opacity-55 leading-[1.3]`,children:e.label})]},e.value))}),(0,z.jsxs)(Mn,{to:`/fa`,className:`inline-flex items-center gap-2 text-[15px] font-medium text-[#003a53] hover:text-[#004461] transition-colors group`,children:[`Read the full case study`,(0,z.jsx)(lm,{className:`w-4 h-4 group-hover:translate-x-1 transition-transform`})]})]})})})})}var SA={p36b9f400:`M18.7622 0C20.6384 0 22.2541 0.679739 23.6091 2.03922C24.9642 3.50327 25.6417 5.28105 25.6417 7.37255C25.6417 9.56863 25.0163 12.0784 23.7655 14.902C22.4104 17.7255 20.7427 20.3922 18.7622 22.902C16.6775 25.5163 14.4886 27.6601 12.1954 29.3333C9.90228 31.1111 7.76547 32 5.78502 32C4.01303 32 2.60586 31.4771 1.56352 30.4314C0.521172 29.3856 0 28.1307 0 26.6667C0 25.9346 0.156351 25.2549 0.469054 24.6275C0.57329 24.2092 0.78176 23.7908 1.09446 23.3725C1.40717 22.9542 1.66775 22.4314 1.87622 21.8039C3.23127 20.1307 4.58632 18.4052 5.94137 16.6275C7.29642 14.8497 8.39088 12.915 9.22475 10.8235C9.74593 9.46405 10.3713 7.89542 11.101 6.11764C11.8306 4.44444 12.8208 2.98039 14.0717 1.72549C15.2182 0.575162 16.7818 0 18.7622 0ZM41.1205 0C42.9967 0 44.6124 0.679739 45.9674 2.03922C47.3225 3.50327 48 5.28105 48 7.37255C48 9.56863 47.3746 12.0784 46.1238 14.902C44.7687 17.7255 43.101 20.3922 41.1205 22.902C39.0358 25.5163 36.8469 27.6601 34.5537 29.3333C32.2606 31.1111 30.1238 32 28.1433 32C26.4756 32 25.1205 31.4771 24.0782 30.4314C22.9316 29.3856 22.3583 28.1307 22.3583 26.6667C22.3583 25.9346 22.5147 25.2549 22.8274 24.6275C23.0358 24.2092 23.2964 23.7908 23.6091 23.3725C23.8176 22.9542 24.0782 22.4314 24.3909 21.8039C25.7459 20.1307 27.101 18.4052 28.456 16.6275C29.8111 14.8497 30.8534 12.915 31.5831 10.8235C32.1042 9.46405 32.7296 7.89542 33.4593 6.11764C34.1889 4.44444 35.1792 2.98039 36.43 1.72549C37.5765 0.575162 39.1401 0 41.1205 0Z`},CA=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==`;function wA(e){let[t,n]=(0,C.useState)(!1),r=()=>{n(!0)},{src:i,alt:a,style:o,className:s,...c}=e;return t?(0,z.jsx)(`div`,{className:`inline-block bg-gray-100 text-center align-middle ${s??``}`,style:o,children:(0,z.jsx)(`div`,{className:`flex items-center justify-center w-full h-full`,children:(0,z.jsx)(`img`,{src:CA,alt:`Error loading image`,...c,"data-original-url":i})})}):(0,z.jsx)(`img`,{src:i,alt:a,className:s,style:o,...c,onError:r})}function TA(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`});return(0,z.jsx)(V.section,{ref:e,variants:{hidden:{opacity:0}
133,visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.1}}},initial:`hidden`,animate:t?`visible`:`hidden`,className:`relative shrink-0 w-full py-12 lg:py-20`,children:(0,z.jsx)(`div`,{className:`flex flex-col items-center justify-center relative w-full`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-6 items-center justify-center px-4 lg:px-16 py-12 lg:py-12 relative w-full`,children:[(0,z.jsx)(V.p,{variants:{hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}},className:`text-[12px] lg:text-[13px] font-semibold uppercase tracking-[0.15em] text-[#003a53] opacity-50`,children:`Trusted by compliance-first teams`}),(0,z.jsxs)(V.div,{variants:{hidden:{opacity:0,y:80,scale:.95},visible:{opacity:1,y:0,scale:1,transition:{duration:.8,ease:[.16,1,.3,1]}}},whileHover:{y:-10,scale:1.02},transition:{duration:.3},className:`bg-white max-w-[800px] w-full relative rounded-[16px] shrink-0 shadow-[0px_4px_8px_0px_rgba(0,0,0,0.02),0px_6px_12px_0px_rgba(0,0,0,0.03)] hover:shadow-[0px_8px_20px_0px_rgba(0,0,0,0.04),0px_12px_24px_0px_rgba(0,0,0,0.06)] transition-shadow duration-300`,children:[(0,z.jsx)(`div`,{className:`overflow-clip relative size-full`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-6 items-start justify-start p-8 lg:p-10 relative w-full`,children:[(0,z.jsxs)(`div`,{className:`content-stretch flex gap-4 items-center justify-between relative shrink-0 w-full`,children:[(0,z.jsxs)(`div`,{className:`flex-1 content-stretch flex gap-4 items-start justify-start min-h-px min-w-px relative shrink-0`,children:[(0,z.jsx)(`div`,{className:`shrink-0 size-[48px]`,children:(0,z.jsx)(wA,{src:`assets/images/customer_headshot.png`,alt:`Daniel Lopez profile`,className:`w-full h-full object-cover rounded-[8px]`})}),(0,z.jsxs)(`div`,{className:`basis-0 content-stretch flex flex-col gap-[4px] grow items-start justify-start leading-[0] min-h-px min-w-px not-italic relative shrink-0 text-[16px] tracking-[-0.08px]`,children:[(0,z.jsx)(`div`,{className:`flex flex-col font-semibold justify-center relative shrink-0 text-black w-full`,children:(0,z.jsx)(`p`,{className:`leading-[1.5]`,children:`Daniel Lopez`})}),(0,z.jsx)(`div`,{className:`flex flex-col font-medium justify-center relative shrink-0 text-[rgba(0,0,0,0.55)] w-full`,children:(0,z.jsx)(`p`,{className:`leading-[1.4]`,children:`CEO, Sevanta`})})]})]}),(0,z.jsx)(`div`,{className:`h-[32px] relative shrink-0 w-[48px] opacity-20`,children:(0,z.jsx)(`svg`,{className:`block size-full`,fill:`none`,preserveAspectRatio:`none`,viewBox:`0 0 48 32`,children:(0,z.jsx)(`path`,{d:SA.p36b9f400,fill:`currentColor`})})})]}),(0,z.jsx)(`div`,{className:`flex flex-col font-medium justify-center leading-[0] not-italic relative shrink-0 text-[18px] lg:text-[20px] text-black tracking-[-0.09px] w-full`,children:(0,z.jsx)(`h2`,{className:`block leading-[1.45] font-[Inter] font-bold font-normal`,children:`"Sevanta wants to give clients a great user experience, and becoming just another MCP tool to be used by ChatGPT doesn't give us the ability to audit what an outside AI might be doing.  With Knapsack Chat, we're in a position to iterate and improve the quality of the experience for our clients.  We take that responsibility seriously and want to save our clients from re-inventing the same wheel hundreds of times over.`})})]})}),(0,z.jsx)(`div`,{"aria-hidden":`true`,className:`absolute border border-[rgba(0,0,0,0.1)] border-solid inset-0 pointer-events-none rounded-[16px]`})]})]})})})}function EA(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.8,staggerChildren:.15,delayChildren:.2}}},r={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};return(0,z.jsx)(V.section,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`relative w-full bg-white py-12 lg:py-20`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-8 lg:gap-12 items-center justify-start px-4 lg:px-16 relative w-full max-w-[1500px] mx-auto`,children:[(0,z.jsxs)(V.div,{variants:r,className:`text-center w-full max-w-3xl`,children:[(0,z.jsx)(`h2`,{className:`text-[32px] lg:text-[48px] font-Spectral leading-[1.1] tracking-[-.03em] text-black mb-4`,children:`Simple, predictable pricing`}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-80 leading-[1.4]`,children:`Start free. No credit card required. Upgrade when you're ready.`})]}),(0,z.jsxs)(V.div,{variants:r,className:`bg-gradient-to-br from-white to-gray-50 border-2 border-gray-200 rounded-2xl p-8 lg:p-10 max-w-2xl w-full`,children:[(0,z.jsxs)(`div`,{className:`flex items-baseline gap-2 mb-4`,children:[(0,z.jsx)(`span`,{className:`text-[48px] lg:text-[56px] font-Spectral font-semibold text-[#222222]`,children:`$50`}),(0,z.jsx)(`span`,{className:`text-[18px] lg:text-[20px] text-[#222222] opacity-70`,children:`/month`})]}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-75 mb-6`,children:`Includes 100 credits per month. Typical usage for all five agents fits comfortably within this plan.`}),(0,z.jsx)(`ul`,{className:`space-y-3 mb-6`,children:[`All 5 agents (Inbox Autopilot, Meeting Prep, Follow-Up, Tracker, Daily Coach)`,`Unlimited email and calendar connections`,`Studio and Desktop access included`,`Custom agent builder`,`SOC 2 Type 2 infrastru
133cture`].map((e,t)=>(0,z.jsxs)(`li`,{className:`flex items-start gap-3`,children:[(0,z.jsx)(hm,{className:`w-5 h-5 text-[#003a53] flex-shrink-0 mt-0.5`}),(0,z.jsx)(`span`,{className:`text-[14px] lg:text-[16px] text-[#222222] opacity-80 leading-[1.4]`,children:e})]},t))}),(0,z.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-4`,children:[(0,z.jsx)(`a`,{href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`flex-1 bg-[#ffb247] hover:bg-[#ffa733] text-black text-center py-4 px-6 rounded-full font-medium text-base transition-all`,children:`Start free trial`}),(0,z.jsx)(Mn,{to:`/pricing`,className:`flex-1 bg-white border-2 border-[#003a53] hover:bg-gray-50 text-[#003a53] text-center py-4 px-6 rounded-full font-medium text-base transition-all`,children:`View full pricing`})]})]}),(0,z.jsx)(V.div,{variants:r,className:`text-center max-w-2xl`,children:(0,z.jsx)(`p`,{className:`text-[14px] lg:text-[16px] text-[#222222] opacity-70 leading-[1.4]`,children:`Fair-use limits apply during the free trial. Need more? Contact us for team pricing.`})})]})})}function DA(){if(typeof navigator<`u`){let e=navigator.userAgent;if(e.includes(`Win`))return`Download Windows App`;if(e.includes(`Mac`))return`Download macOS App`;if(e.includes(`Linux`))return`Download Linux App`}return`Download Desktop App`}function OA(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0,scale:.95},visible:{opacity:1,scale:1,transition:{duration:.8,ease:[.16,1,.3,1],staggerChildren:.2,delayChildren:.2}}},r={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};return(0,z.jsxs)(V.section,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`bg-[#003a53] hover:bg-[#004461] max-w-[1500px] relative rounded-[24px] shrink-0 w-full mx-4 lg:mx-0 my-12 lg:my-20 overflow-hidden group transition-all duration-500`,children:[(0,z.jsx)(`div`,{className:`absolute border-[#e9e9e9] border-[0.5px_0px_0px] border-solid inset-0 pointer-events-none rounded-[24px]`}),(0,z.jsx)(V.div,{initial:{opacity:0}
133,animate:t?{opacity:.1}:{},transition:{duration:2,delay:.5},className:`absolute inset-0 bg-gradient-to-br from-[#ffb247]/20 via-transparent to-[#baeaff]/20 opacity-0 group-hover:opacity-20 transition-opacity duration-700`}),(0,z.jsx)(`div`,{className:`flex flex-col items-center max-w-inherit relative w-full`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-8 lg:gap-10 items-center justify-start max-w-inherit px-6 lg:px-[8px] py-16 lg:py-[120px] relative w-full`,children:[(0,z.jsx)(V.div,{variants:r,className:`text-[32px] lg:text-[60px] text-center text-white tracking-[-.04em] max-w-[900px]`,children:(0,z.jsx)(`h2`,{className:`leading-[1.1] font-Spectral font-normal`,children:`AI that works the way you do.`})}),(0,z.jsx)(V.div,{variants:r,className:`text-center max-w-[640px]`,children:(0,z.jsx)(`p`,{className:`text-[14px] lg:text-[17px] text-white opacity-80 leading-[1.5]`,children:`Personalized agents from your email and calendar. Start free in Studio, or download the Desktop app for full privacy. Ready in under two minutes.`})}),(0,z.jsxs)(V.div,{variants:r,className:`flex flex-col sm:flex-row gap-4 items-center justify-center`,children:[(0,z.jsx)(V.a,{whileHover:{scale:1.05,boxShadow:`0 20px 40px rgba(255, 255, 255, 0.2)`},whileTap:{scale:.95},href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`bg-white hover:bg-gray-50 box-border cursor-pointer flex items-center justify-center px-8 py-4 lg:py-3.5 rounded-[1000px] transition-all duration-300`,children:(0,z.jsx)(`p`,{className:`font-medium text-[15px] text-black text-center whitespace-pre`,children:`Start free in Studio`})}),(0,z.jsx)(V.a,{whileHover:{scale:1.05,backgroundColor:`rgba(255, 255, 255, 0.1)`},whileTap:{scale:.95},href:`/desktop`,className:`border-2 border-white hover:border-white/80 box-border cursor-pointer flex items-center justify-center px-8 py-4 lg:py-3.5 rounded-[1000px] transition-all duration-300 bg-transparent`,children:(0,z.jsx)(`p`,{className:`font-medium text-[15px] text-white text-center whitespace-pre`,children:DA()})})]}),(0,z.jsxs)(V.p,{variants:r,className:`text-[13px] text-white opacity-40 text-center`,children:[`Want to embed Knapsack in your own product?`,` `,(0,z.jsx)(`a`,{href:`https://docs.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`underline underline-offset-2 hover:opacity-70 transition-opacity`,children:`Learn about our headless API →`})]}),(0,z.jsx)(V.div,{initial:{opacity:0,scale:0},animate:t?{opacity:.1,scale:1}:{},transition:{duration:1,delay:1},className:`absolute top-10 left-10 w-20 h-20 bg-[#ffb247] rounded-full blur-xl`}),(0,z.jsx)(V.div,{initial:{opacity:0,scale:0},animate:t?{opacity:.1,scale:1}:{},transition:{duration:1,delay:1.2},className:`absolute bottom-10 right-10 w-16 h-16 bg-[#baeaff] rounded-full blur-xl`})]})})]})}function kA(){let[e,t]=(0,C.useState)(!1);return(0,C.useEffect)(()=>{t(!0),Q.initAnalytics().then(()=>{Q.trackEvent(`www_knapsack_visit`)})},[]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(qr,{children:(0,z.jsx)(`link`,{rel:`icon`,href:`/favicon/favicon.ico`})}),(0,z.jsx)(`div`,{className:`bg-white relative min-h-screen overflow-x-hidden`,children:(0,z.jsx)(`div`,{className:`flex flex-col items-center relative w-full`,children:(0,z.jsxs)(`div`,{className:`box-border content-stretch flex flex-col gap-16 lg:gap-20 items-center justify-start pb-5 pt-0 px-0 sm:px-6 lg:px-10 relative w-full max-w-[1600px]`,children:[(0,z.jsx)(lA,{}),(0,z.jsx)(dA,{}),(0,z.jsx)(pA,{}),(0,z.jsx)(hA,{}),(0,z.jsx)(bA,{}),(0,z.jsx)(yA,{}),(0,z.jsx)(_A,{}),(0,z.jsx)(xA,{}),(0,z.jsx)(TA,{}),(0,z.jsx)(EA,{}),(0,z.jsx)(OA,{})]})})})]})}var AA=()=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Privacy Policy - Knapsack AI`}),(0,z.jsx)(`meta`,{name:`description`,content:`Knapsack AI Privacy Policy`})]}),(0,z.jsx)(`div`,{className:`min-h-screen bg-white`,children:(0,z.jsxs)(`div`,{className:`max-w-4xl mx-auto px-6 py-16`,children:[(0,z.jsxs)(`header`,{className:`mb-12`,children:[(0,z.jsx)(`h1`,{className:`text-[48px] lg:text-[56px] font-Spectral font-normal leading-[1.1] tracking-[-1px] text-black mb-4`,children:`Privacy Policy`}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/70 leading-[1.5]`,children:`Last updated: July 5th, 2025.`})]}),(0,z.jsx)(`div`,{className:`prose prose-lg max-w-none`,children:(0,z.jsxs)(`div`,{className:`font-Inter text-base leading-[1.6] text-black space-y-6`,children:[(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`TLDR`}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`SOC 2 Type 2 Compliant:`}
133),` All services and infrastructure meet SOC 2 Type 2 security standards.`]}),(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`Zero Data Training:`}),` We never use Google Workspace data (or any connected source data) to train generalized AI or ML models.`]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`font-semibold mb-2`,children:`Product Separation:`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Knapsack Assistant:`}),` Local-first, zero-knowledge, no cloud storage, no retention after processing unless linked to Studio with user consent.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Knapsack Studio:`}),` Cloud-hosted, collaborative, encrypted, with a 30-day data retention policy.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Knapsack Memory:`}),` Cross-application context storage with 30-day default retention unless pinned by the user.`]})]})]}),(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`Your Rights:`}),` Full GDPR and CCPA rights, including access, deletion, correction, portability, and non-discrimination.`]}),(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`Data Sharing:`}),` No sale of personal information; sharing only with trusted service providers under strict contractual privacy obligations.`]}),(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`Security:`}),` End-to-end encryption, strict access controls, and regular security audits.`]}),(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`Opt-Out & Consent:`}),` You control optional data sharing and can opt out by contacting [email protected].`]})]}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-8 mb-2`,children:`Full Policy`}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`1. Scope`}),(0,z.jsx)(`p`,{children:`By using our services, you agree to the practices described in this Privacy Policy. If you do not agree, discontinue use of our services. Continued use constitutes your informed consent.`}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`2. Product-Specific Privacy Approaches`}),(0,z.jsxs)(`div`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`font-semibold`,children:`2.1 Knapsack Assistant on Desktop (Local & Ephemeral)`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 mt-1 space-y-0.5`,children:[(0,z.jsx)(`li`,{children:`Processes data locally where possible.`}),(0,z.jsx)(`li`,{children:`When cloud inference is needed, data is routed securely to SOC 2 Type 2-compliant partners (e.g., Groq) and deleted immediately after processing.`}),(0,z.jsx)(`li`,{children:`No content is retained after processing unless explicitly saved by you or unless linked to Studio with your consent.`})]})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`font-semibold`,children:`2.2 Knapsack Studio (Cloud-Hosted Collaboration)`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 mt-1 space-y-0.5`,children:[(0,z.jsx)(`li`,{children:`Securely hosts your uploaded or created content.`}),(0,z.jsx)(`li`,{children:`Encrypted at rest and in transit.`}),(0,z.jsx)(`li`,{children:`Retains content for 30 days by default unless deleted sooner by you.`})]})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`font-semibold`,children:`2.3 Knapsack Memory (Cross-App Context)`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 mt-1 space-y-0.5`,children:[(0,z.jsx)(`li`,{children:`Stores contextual links across applications to improve workflow continuity.`}),(0,z.jsx)(`li`,{children:`Default retention is 30 days unless explicitly pinned for longer use.`}),(0,z.jsx)(`li`,{children:`You control whether Memory captures cross-application context.`})]})]})]}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`3. Types of Data Collected`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Personal Data:`}),` Name, email, phone number, and voluntary information.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Usage Data:`}),` IP address, device type, browser type, visited pages, timestamps, and diagnostic data.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Cookies & Tracking:`}),` Used for authentication and performance. Disabling cookies may reduce functionality.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`External Data:`}),` From integrations you authorize (e.g., CRM, calendar, email systems).`]})]}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`4. Use of Data`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsx)(`li`,{children:`Deliver, maintain, and improve services.`}),(0,z.jsx)(`li`,{children:`Provide customer support and communicate updates.`}),(0,z.jsx)(`li`,{children:`Ensure security and prevent fraud.`}),(0,z.jsx)(`li`,{children:`Comply with legal and regulatory obligations.`})]}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`5. Sharing of Data`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsx)(`li`,{children:`Only with service providers under strict contractual privacy obligations.`}),(0,z.jsx)(`li`,{children:`For legal compliance, safety, or fraud prevention.`}),(0,z.jsx)(`li`,{children:`In business reorganizations or acquisitions under equivalent privacy safeguards.`}),(0,z.jsx)(`li`,{children:`Never for sale of personal information.`})]}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`6. Retention of Data`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Assistant:`}),` No post-processing retention.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Studio:`}),` 30-day default retention.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Memory:`}),` 30-day default retention unless pinned.`]}),(0,z.jsx)(`li`,{children:`Extended retention only when legally required.`})]}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`7. Data Transfers & Frameworks`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsx)(`li`,{children:`Complies with the EU-U.S. Data Privacy Framework (DPF) and UK/Swiss extensions.`}),(0,z.jsx)(`li`,{children:`All data transfers are secured and adhere to DPF Principles.`})]}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`8. Choice & Consent`}),(0,z.jsx)(`p`,{className:`mb-2`,children:`You can opt out of:`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsx)(`li`,{children:`Data sharing beyond original purposes.`}),(0,z.jsx)(`li`,{children:`Optional processing unrelated to core functionality.`})]}),(0,z.jsx)(`p`,{className:`mt-2`,children:`Contact [email protected] to exercise these choices.`}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`9. Your Rights (GDPR & CCPA)`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Know & Access:`}),` Categories and specific pieces of data collected.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Delete:`}
133),` Request deletion of data we collected.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Correct:`}),` Update inaccurate information.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Portability:`}),` Obtain portable copies of your data.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Non-Discrimination:`}),` No discrimination for exercising privacy rights.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Authorized Agents:`}),` Can act on your behalf with written consent.`]})]}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`10. Limits to Privacy`}),(0,z.jsx)(`p`,{children:`Links to external sites are provided for convenience. We are not responsible for their content or privacy practices. Data provided to third parties is subject to their policies.`}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`11. Security`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsx)(`li`,{children:`End-to-end encryption for sensitive data.`}),(0,z.jsx)(`li`,{children:`Strict access controls and monitoring.`}),(0,z.jsx)(`li`,{children:`Annual security training and SOC 2 Type 2 certification for systems and processes.`})]}),(0,z.jsx)(`p`,{className:`mt-2`,children:`No method of transmission or storage is 100% secure, but we maintain commercially reasonable safeguards.`}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`12. Children's Privacy`}),(0,z.jsx)(`p`,{children:`We do not knowingly collect data from individuals under 16. Contact us if you believe such data has been provided.`}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`13. Changes to This Policy`}),(0,z.jsx)(`p`,{children:`We may update this Privacy Policy and will notify users by updating the "Last Updated" date and, for major changes, via email or in-product notice.`}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal leading-[1.3] tracking-[-0.3px] text-black mt-6 mb-2`,children:`14. Contact Us`}),(0,z.jsx)(`p`,{children:`Email: [email protected]`})]})})]})})]}),jA=()=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Terms of Service - Knapsack AI`}),(0,z.jsx)(`meta`,{name:`description`,content:`Knapsack AI Terms of Service`})]}),(0,z.jsx)(`div`,{className:`min-h-screen bg-white`,children:(0,z.jsxs)(`div`,{className:`max-w-4xl mx-auto px-6 py-16`,children:[(0,z.jsxs)(`header`,{className:`mb-12`,children:[(0,z.jsx)(`h1`,{className:`text-[48px] lg:text-[56px] font-Spectral font-normal leading-[1.1] tracking-[-1px] text-black mb-4`,children:`Terms of Service`}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/70 leading-[1.5]`,children:`Effective Date: May 1, 2024`})]}),(0,z.jsx)(`div`,{className:`prose prose-lg max-w-none`,children:(0,z.jsxs)(`div`,{className:`font-Inter text-base leading-[1.6] text-black space-y-4`,children:[(0,z.jsx)(`p`,{children:`Welcome to Knapsack ("the Service"). By accessing or using our Service, you agree to comply with and be bound by the following Terms of Use. Please read them carefully.`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`1. Acceptance of Terms`}),(0,z.jsx)(`p`,{children:`By accessing and using the Service, you accept and agree to be bound by these Terms of Use. If you do not agree to these terms, you must not access or use the Service. Knapsack provides the Service conditioned upon your acceptance of all the terms, conditions, policies and notices stated and/or referenced in these Terms of Use. By accepting these Terms of Use during any registration process, or by otherwise accessing or using the Service, you signify agreement to all terms, conditions, policies, and notices contained and/or referenced in these Terms of Use. If you do not agree to these Terms of Use in full, you may 
133not access or use the Service, and you must immediately cease all access thereto and thereof. Knapsack respects the privacy of our users. Information collection and use, including the collection and use of personally identifiable information is governed by our Privacy Policy which is incorporated into and is a part of these Terms of Use.`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`2. Description of Service`}),(0,z.jsx)(`p`,{children:`Knapsack provides instant workflow automation solutions for users ("Users"). The Service allows Users to create, manage, and execute automated workflows across various applications and platforms.`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`3. Eligibility`}),(0,z.jsx)(`p`,{children:`The Service is intended for users who are at least 18 years old. By using the Service, you represent and warrant that you meet this age requirement. Presently the Service is only available for employment related automations, so you must provide a work email address to use the Service.`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`4. Account Registration`}),(0,z.jsx)(`p`,{children:`To use the Service, you are required to register an account using your employment email address. You agree to provide accurate, current, and complete information during the registration process and to update such information as necessary to keep it up to date.`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`5. User Responsibilities`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Compliance:`}),` You agree to use the Service only for lawful purposes and in accordance with these Terms of Use.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Security:`}),` You are responsible for maintaining the confidentiality of your account and password. You agree to notify us immediately of any unauthorized access or use of your account.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`strong`,{children:`Prohibited Activities:`}),` You agree not to misuse the Service, including but not limited to: attempting to access unauthorized areas, interfering with the operation of the Service, or using the Service to perform any illegal activities.`]})]}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`6. Intellectual Property`}),(0,z.jsxs)(`p`,{className:`mb-2`,children:[(0,z.jsx)(`strong`,{children:`Ownership:`}),` All content, features, and functionality of the Service, including but not limited to software, text, images, and logos, are the exclusive property of Knapsack or its licensors and are protected by intellectual property laws.`]}),(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`Exclusive License/Assignment and Limited Non-Exclusive License:`}),` The Service may permit Users to submit or upload materials or responses in connection with the Service ("User-Generated Content"). By submitting or creating any User-Generated Content within Knapsack's products or services, you, as the User grant Knapsack a perpetual, irrevocable, worldwide, exclusive license to use, reproduce, modify, distribute, display, perform, create derivative works from, and otherwise exploit the User-Generated Content for any purpose, including resale and any other commercial purposes. In return, subject to your compliance with these Terms, Knapsack grants you a limited, non-exclusive, non-transferable, royalty-free license to use the User-Generated Content you created solely for personal or internal business use, excluding any commercial exploitation of the Content.`]}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`7. User-Generated Content`}),(0,z.jsx)(`p`,{children:`With respect to any User-Generated content that you submit, create or upload ("Your Content"), you acknowledge that you are responsible for Your Content, including the legality, reliability, appropriateness, originality and copyright of any such material and you must ensure you have all the rights and permissions needed to use Your Content in connection with the Service. You warrant that Your Content does not include copyrighted information or intellectual property from any source other than such copyrighted information or intellectual property owned by you. Knapsack does not assure, and has no responsibility for, the accuracy, legality, reliability, appropriateness, quality or confidentiality of any of Your Content (or any other User-Generated Content submitted by other users). You acknowledge that we do not have any obligation to pre-screen Your Content or other User-Generated Content but may do so in our sole discretion. You may not upload to distribute or otherwise publish through the Services any content that violates any of the Usage Rules below.`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`8. Usage Rules`}),(0,z.jsx)(`p`,{className:`mb-2`,children:`In addition to other usage rules specified above in these Terms of Use, in connection with your use of the Service you agree:`}),(0,z.jsxs)(`ul`,{className:`list-disc pl-6 space-y-0.5`,children:[(0,z.jsx)(`li`,{children:`Not to submit or create any link to material that infringes the copyright, patent, trademark, trade secret, right of publicity or privacy, or any other proprietary or personal right of any third party;
133 and not to submit or create a link to any material that is subject to any such right(s) unless you are the owner of such right(s), or have first obtained from the owner of such right(s) or already have all necessary rights and permissions to grant the rights in such materials you grant under the section entitled "Material You Submit", above;`}),(0,z.jsx)(`li`,{children:`Not to submit or create any link to material that is unlawful, defamatory, abusive, obscene, indecent, lewd, pornographic, violent, threatening, discriminatory, or otherwise objectionable;`}),(0,z.jsx)(`li`,{children:`Not to make any personal attack on any person, firm, or company;`}),(0,z.jsx)(`li`,{children:`Not to submit or create any link to material, or otherwise use this Site for any purpose, that constitutes or encourages a criminal offense, including but not limited to conspiring to violate laws;`}),(0,z.jsx)(`li`,{children:`Not to reverse engineer, decompile, disassemble, or otherwise attempt to derive the source code, underlying algorithms, or any other intellectual property associated with the software and/or service;`}),(0,z.jsx)(`li`,{children:`Not to modify, adapt, translate, or create derivative works based on the software and/or service or any part thereof;`}),(0,z.jsx)(`li`,{children:`Not to use software and/or service for the purpose of developing, testing, or benchmarking a competitive or similar product or service;`}),(0,z.jsx)(`li`,{children:`Not to misrepresent your identity, or impersonate any party, including but not limited to misrepresenting your current or previous positions, qualifications, or affiliations;`}),(0,z.jsx)(`li`,{children:`Not to submit any material that you do not have the legal right to disclose;`}),(0,z.jsx)(`li`,{children:`Not to submit or create any link to any material that is intentionally false or misleading, or is potentially damaging or harmful;`}),(0,z.jsx)(`li`,{children:`Not to engage in fraudulent or deceptive activity;`}),(0,z.jsx)(`li`,{children:`Not to engage in any illegal activity;`}),(0,z.jsx)(`li`,{children:`Not to use, or attempt to use, any browser extensions, artificial intelligence tools (including but not limited to ChatGPT), scripts, bots, or any other technology tools that access, intrude upon, or connect to the Service;`}),(0,z.jsx)(`li`,{children:`You acknowledge that any breach of this provision would cause irreparable harm to Knapsack for which monetary damages would be inadequate. Accordingly, in the event of such a breach, you agree that Knapsack shall be entitled to seek specific performance, injunction, and other forms of equitable relief, in addition to any other remedies available under law.`}),(0,z.jsx)(`li`,{children:`Any third party, including app developers, who knowingly induces, aids, or otherwise facilitates a breach of this provision by a user shall be liable for tortious interference with contract, and Knapsack reserves the right to pursue all available legal remedies against such third parties.`}),(0,z.jsx)(`li`,{children:`Not to use the Service to create any content that does any of the above;`}),(0,z.jsx)(`li`,{children:`Not to use the Service to generate hateful, harassing, or violent content;`}),(0,z.jsx)(`li`,{children:`Not to advertise or engage in any form of marketing or use user information obtained through the Service for marketing or other commercial purposes, or use this site to post or transmit "spam," "chain letters," "pyramid schemes," or any other form of solicitation;`}),(0,z.jsx)(`li`,{children:`Not to submit or create any link to any material that c
133ontains software viruses or any other malicious computer code or programs that might damage, destroy or interfere with the proper functioning of any software, hardware, or systems;`}),(0,z.jsx)(`li`,{children:`Not to stalk or harass anyone;`}),(0,z.jsx)(`li`,{children:`Not to take any action that interferes with the proper working of, or places an unreasonable burden on, the infrastructure of the Service, or that would damage, compromise the security of, or disrupt the Service or the servers or any connected network through which they are provided;`}),(0,z.jsx)(`li`,{children:`Not to use the Service to collect personal information about individuals;`}),(0,z.jsx)(`li`,{children:`Not to post or make available private information of any third party;`}),(0,z.jsx)(`li`,{children:`Not to use the Service as a forwarding service to any other website;`}),(0,z.jsx)(`li`,{children:`Not to encourage usage by others in such a way as to violate these Terms of Use.`})]}),(0,z.jsx)(`p`,{className:`mt-2`,children:`If your use of the Service requires you to comply with specific regulations applicable to such use, you will be solely responsible for such compliance.`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`9. Privacy`}),(0,z.jsx)(`p`,{children:`Your use of the Service is also governed by our Privacy Policy, which can be found at www.knapsack.ai/privacy-policy.`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`10. Service Availability and Modifications`}),(0,z.jsxs)(`p`,{className:`mb-2`,children:[(0,z.jsx)(`strong`,{children:`Availability:`}),` We aim to keep the Service available 24/7 but do not guarantee uninterrupted access. We reserve the right to suspend or discontinue the Service at any time without notice.`]}),(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`Modifications:`}),` We may modify these Terms of Use or the Service at any time. Changes will be effective immediately upon posting the updated Terms of Use on our website. Your continued use of the Service constitutes acceptance of the new terms.`]}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`11. Termination`}),(0,z.jsx)(`p`,{children:`We reserve the right to terminate or suspend your account or access to the Service at our sole discretion, without notice or liability, for any reason, including violation of these Terms of Use.`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`12. Disclaimers and Limitation of Liability`}),(0,z.jsxs)(`p`,{className:`mb-2`,children:[(0,z.jsx)(`strong`,{children:`Disclaimer:`}),` YOUR USE OF THE SERVICE IS AT YOUR SOLE RISK. THE SERVICE IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS. WE EXPRESSLY DISCLAIM ON BEHALF OF OURSELVES AND OUR AFFILIATES AND LICENSORS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTIES THAT THE SERVICES ARE NONINFRINGING; THAT ACCESS TO SERVICE WILL BE UNINTERRUPTED OR ERROR-FREE; THAT THE SERVICE WILL BE SECURE; THAT THE SERVICE AND THE SERVER THAT MAKES THEM AVAILABLE WILL BE VIRUS-FREE; OR THAT INFORMATION ON THE SERVICE WILL BE COMPLETE, ACCURATE OR TIMELY. IF YOU DOWNLOAD ANY DOWNLOADED CONTENT FROM US, YOU DO SO AT YOUR OWN DISCRETION AND RISK. YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR LOSS OF DATA THAT RESULTS FROM THE DOWNLOAD OF ANY DOWNLOADED CONTENT. NO ADVICE OR INFORMATION, WHETHER ORAL OR WRITTEN, OBTAINED BY YOU FROM US OR THROUGH OR FROM THE SERVICES SHALL CREATE ANY WARRANTY OF ANY KIND. WE DO NOT MAKE ANY WARRANTIES OR REPRESENTATIONS REGARDING THE USE OF THE SERVICES OR DOWNLOADED CONTENT IN TERMS OF THEIR COMPLETENESS, CORRECTNESS, ACCURACY, ADEQUACY, USEFULNESS, TIMELINESS, RELIABILITY OR OTHERWISE.`]}),(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`Limitation of Liability:`}),` TO THE FULLEST EXTENT PERMITTED UNDER APPLICABLE LAW, YOU UNDERSTAND AND AGREE THAT NEITHER KNAPSACK NOR ANY OF OUR AFFILIATES OR THIRD PARTY CONTENT OR TECHNOLOGY LICENSORS SHALL BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, CONSEQUENTIAL, OR PUNITIVE DAMAGES RELATING TO OR RESULTING FROM YOUR USE OF OR INABILITY TO USE THE SERVICE OR FROM ANY ACTIONS WE TAKE OR FAIL TO TAKE AS A RESULT OF EMAIL MESSAGES YOU SEND US. THE FOREGOING EXCLUSION INCLUDES DAMAGES FOR ERRORS, OMISSIONS, INTERRUPTIONS, DEFECTS, DELAYS, COMPUTER VIRUSES, YOUR LOSS OF PROFITS, LOSS OF DATA, UNAUTHORIZED ACCESS TO AND ALTERATION OF YOUR TRANSMISSIONS AND DATA, AND AND/OR RELATING TO THE COST OF PROCUREMENT OF SUBSTITUTE GOODS AND SERVICE. UNDER NO CIRCUMSTANCES WILL WE OR ANY OF OUR AFFILIATES OR LICENSORS BE LIABLE TO YOU FOR MORE THAN THE AMOUNT WE RECEIVED FOR YOUR ACCESS TO THE SERVICES. THIS LIMITATION APPLIES REGARDLESS OF WHETHER THE DAMAGES ARE CLAIMED UNDER THE TERMS OF A 
133CONTRACT, AS THE RESULT OF NEGLIGENCE OR OTHERWISE ARISE OUT OF OR IN CONNECTION WITH THE USE, INABILITY TO USE, OR PERFORMANCE OF THE SERVICE AND EVEN IF WE OR OUR REPRESENTATIVES HAVE BEEN NEGLIGENT OR HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.`]}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`13. Indemnification`}),(0,z.jsx)(`p`,{children:`You agree to indemnify, defend and hold harmless us, our affiliates and licensors, and licensees, our and their officers, directors, members, employees, contractors, other agents and customers (each an "Indemnitee") from any claim, demand, action, class action, investigation or other proceeding, including but not limited to any loss, damage, payment, settlement, judgment or other expense (including reasonable attorneys' fees and disbursements) arising therefrom (each a "Claim"), brought by any third party against an Indemnitee to the extent that such Claim is based on, or arises out of: (i) your violation, or potential violation, of these Terms of Use; or (ii) any claim that you have violated any third-party right or that any of Your Content caused harm or damage to a third party. If you cause a technical disruption of the Service or the systems transmitting the Service to you or others, you agree to be responsible for any and all loss, damage, payment, settlement, judgment or other expense (including reasonable attorneys' fees and disbursements) arising out of or resulting from that disruption. You shall not settle any Claim unless such settlement completely and forever releases the Indemnitee from all liability with respect to such Claim without any admission of wrongdoing on the part of the Indemnitee or unless the Indemnitee consents to such settlement in writing (which consent shall not be unreasonably withheld).`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`14. Governing Law`}),(0,z.jsx)(`p`,{children:`These Terms of Use shall be governed by and construed in accordance with the laws of California, without regard to its conflict of law principles.`}),(0,z.jsx)(`h2`,{className:`text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mt-6 mb-2`,children:`15. Severability`}),(0,z.jsx)(`p`,{children:`If any provision of these Terms of Use is found to be invalid or unenforceable, the remaining provisions will remain in full force and effect.`}),(0,z.jsx)(`p`,{className:`mt-6`,children:`If you have any questions about this Terms of Use, please contact us by email at: [email protected]`})]})})]})})]}),MA=`/assets/images/soc2-badge.png`,NA=()=>{let[e,t]=(0,C.useState)(null),n=n=>{t(e===n?null:n)};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Private and Secure | Knapsack.ai`}),(0,z.jsx)(`meta`,{name:`description`,content:`Learn about Knapsack's SOC 2 Type 2 and HIPAA compliance, security measures, and data privacy commitments.`})]}),(0,z.jsxs)(`div`,{className:`min-h-screen bg-white`,children:[(0,z.jsx)(`section`,{className:`bg-gradient-to-b from-[#FDFDFB] to-white`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6 py-16 pb-8`,children:(0,z.jsxs)(`div`,{className:`text-center`,children:[(0,z.jsx)(`h1`,{className:`text-[48px] lg:text-[64px] font-Spectral font-normal leading-[1.1] tracking-[-1.5px] text-black mb-6`,children:`Compliance and Security`}),(0,z.jsxs)(`p`,{className:`text-lg font-Inter text-black/80 leading-relaxed max-w-3xl mx-auto`,children:[`At Knapsack, your trust is our top priority. We understand that data security and privacy are critical to our users, and we are committed to meeting the highest standards in these areas. The foundation for this is our`,` `,(0,z.jsx)(Mn,{to:`/privacy-policy`,className:`text-[#609FB0] hover:underline`,children:`privacy policy`}),`.`]})]})})}),(0,z.jsx)(`section`,{className:`bg-[#FFF8F5] py-8`,children:(0,z.jsx)(`div`,{className:`max-w-6xl px-6 mx-auto`,children:(0,z.jsxs)(`div`,{className:`text-center py-8 rounded-xl`,children:[(0,z.jsx)(`h2`,{className:`text-[40px] lg:text-[48px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mb-6 px-4`,children:`How we keep your data private`}),(0,z.jsxs)(`div`,{className:`rounded-lg p-6 max-w-4xl mx-auto`,children:[(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/80 leading-relaxed mb-4`,children:`Here is a quick explainer you can send to your IT or compliance manager if you are trying to sign into Knapsack via Microsoft or Google and are blocked.`}),(0,z.jsx)(`div`,{className:`bg-white border border-gray-200 rounded-lg p-4`,children:(0,z.jsx)(`p`,{className:`text-sm font-Inter italic text-black/70`,children:`"Knapsack is a SOC2 Type 2 and HIPAA compliant AI tool that allows me to be more productive. It only accesses the data it needs to run those operations, never trains on our data, and deletes the data within 30 days. You can see more on www.knapsack.ai/compliance."`})})]})]})})}),(0,z.jsx)(`section`,{className:`py-16 bg-white`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6`,children:(0,z.jsx)(`div`,{className:`grid grid-cols-1 gap-8`,children:(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-[#FFF8F5] to-white border border-[#FFEFE6] rounded-xl p-8`,children:[(0,z.jsxs)(`div`,{className:`flex items-start mb-4`,children:[(0,z.jsx)(`div`,{className:`w-10 h-10 bg-[#FFE4D6] rounded-lg flex items-center justify-center mr-3`,children:(0,z.jsx)(Xm,{className:`w-5 h-5 text-[#D97638]`})}),(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal text-black`,children:`Knapsack Studio`})]}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/70 leading-relaxed`,children:`The Studio also uses ephemeral compute, but it stores your chat conversations and the content of your AI workflows for you to access in the browser. We never train on your data; we never sell your data to AI companies (or anyone else).`})]})})})}),(0,z.jsx)(`section`,{className:`pl-4 sm:pl-6 lg:pl-10 py-16 bg-gray-50`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6`,children:(0,z.jsxs)(`div`,{className:`lg:flex lg:items-center lg:gap-12`,children:[(0,z.jsxs)(`div`,{className:`lg:w-1/2 mb-8 lg:mb-0`,children:[(0,z.jsx)(`h2`,{className:`text-[40px] lg:text-[48px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mb-6`,children:`Current Compliance`}),(0,z.jsxs)(`p`,{className:`text-base font-Inter text-black/80 leading-relaxed mb-4`,children:[(0,z.jsx)(`strong`,{children:`We are proud to be SOC 2 Type 2 Compliant.`}),` We're also HIPAA compliant, ensuring that sensitive health data is protected in accordance with the strictest regulations. This demonstrates our ongoing commitment to safeguarding personal and confidential information.`]}),(0,z.jsxs)(`p`,{className:`text-base font-Inter text-black/80 leading-relaxed mb-6`,children:[`For users who use cloud inference, we use`,` `,(0,z.jsxs)(`a`,{href:`https://trust.groq.com/`,target:`_blank`,rel:`noopener noreferrer`,className:`text-[#609FB0] hover:underline inline-flex items-center`,children:[`Groq`,(0,z.jsx)(Tm,{className:`w-3 h-3 ml-1`})]}),`, who are also SOC 2 Type 2 compliant.`]}),(0,z.jsx)(`a`,{href:`mailto:[email protected]`,className:`inline-block bg-[#609FB0] text-white font-Inter font-medium px-8 py-3 rounded-lg hover:bg-[#4A8A9C] transition-colors`,children:`Talk to Our Team`})]}),(0,z.jsx)(`div`,{className:`w-48 sm:w-48 md:w-64 lg:w-80 mx-auto`,children:(0,z.jsx)(`img`,{src:MA,alt:`Compliance illustration`,className:`w-full`})})]})})}),(0,z.jsx)(`section`,{className:`py-16 bg-white`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6`,children:(0,z.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-8`,children:[(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-[#F0F9FF] to-white border border-[#C3E9F6] rounded-xl p-8`,children:[(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal text-black mb-4`,children:`Have Questions? Let's Talk`}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/70 leading-relaxed mb-4`,children:`We actively engage with our users to ensure our compliance efforts align with the industry's most trusted standards. Your feedback plays a vital role in shaping how we prioritize and implement security measures, and we are always ready to listen to your concerns.`}),(0,z.jsx)(`a`,{href:`#contact`,className:`text-[#609FB0] font-Inter font-medium hover:underline`,children:`Get in touch →`})]}),(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-[#F0F9FF] to-white border border-[#C3E9F6] rounded-xl p-8`,children:[(0,z.jsx)(`h3`,{className:`text-[24px] font-Spectral font-normal text-black mb-4`,children:`Secure by Design`}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/70 leading-relaxed mb-4`,children:`Knapsack Studio only accesses the data you authorize via connected applications. When AI 
133inference is needed, we send only the minimum necessary context along with your prompt to SOC 2 Type 2-compliant inference providers (e.g., Groq) for processing. Prompts and outputs are deleted immediately after a response is returned.`}),(0,z.jsxs)(`a`,{href:`https://docsend.com/view/23vg6ujhc7th9n5h`,target:`_blank`,rel:`noopener noreferrer`,className:`text-[#609FB0] font-Inter font-medium hover:underline inline-flex items-center`,children:[`Read the Whitepaper`,(0,z.jsx)(Tm,{className:`w-3 h-3 ml-1`})]})]})]})})}),(0,z.jsx)(`section`,{className:`py-16 bg-gray-50`,children:(0,z.jsxs)(`div`,{className:`max-w-4xl mx-auto px-6`,children:[(0,z.jsx)(`h2`,{className:`text-[40px] lg:text-[48px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black text-center mb-12`,children:`Frequently Asked Questions`}),(0,z.jsx)(`div`,{className:`space-y-4`,children:[{question:`How does Knapsack ensure data privacy?`,answer:`Knapsack employs state-of-the-art encryption for data at rest and in transit, ensuring that your information is secure from unauthorized access. We also prioritize zero-knowledge architecture, meaning we never have access to the contents of your files or notes. Knapsack undergoes regular pe
133netration testing and adheres to GDPR, HIPAA, and CCPA guidelines to provide peace of mind for data privacy.`},{question:`How does Knapsack support FINRA compliance?`,answer:`Knapsack offers robust tools to support FINRA compliance, including automated archiving of notes, activity logs, and communication records. These features ensure that all necessary records are securely stored in a tamper-proof format and are easily retrievable during audits. Knapsack also provides tools to flag non-compliant content, helping financial advisors proactively adhere to FINRA's strict regulatory standards.`},{question:`Can Knapsack provide customized compliance solutions?`,answer:`Yes, Knapsack offers tailored compliance solutions to meet the unique needs of your organization. Our platform can be configured to align with your specific regulatory environment, whether it's SEC, FINRA, HIPAA, or international data protection laws. We also provide APIs and integration options for enterprise customers to work seamlessly with your existing compliance and governance systems.`},{question:`What is the name your firm? How long have you been around? How are you financed?`,answer:`Knap Inc is a Delaware C-Corp based in San Francisco CA USA. The company has been active since 2023. We are venture backed from top tier investors including Accel, Everywhere Venture, K5 Tokyo Black, Data Tech Fund, and Half Court Ventures.`},{question:`How do your products work from a data security point of view?`,answer:`Knapsack Studio is a web application that connects to the tools you authorize. When AI inference is needed, we send only the minimum necessary context along with your prompt to SOC 2 Type 2-compliant inference providers (e.g., AWS Bedrock and Groq) for processing. We do not train on your data, and we focus on an "ephemeral compute" model—minimizing what is retained and for how long.`}].map((t,r)=>(0,z.jsxs)(`div`,{className:`bg-white rounded-lg border border-gray-200 overflow-hidden`,children:[(0,z.jsxs)(`button`,{onClick:()=>n(r),className:`w-full px-6 py-4 text-left flex items-center justify-between hover:bg-gray-50 transition-colors`,children:[(0,z.jsx)(`span`,{className:`font-Inter font-medium text-black pr-4`,children:t.question}),e===r?(0,z.jsx)(_m,{className:`w-5 h-5 text-gray-500 flex-shrink-0`}):(0,z.jsx)(gm,{className:`w-5 h-5 text-gray-500 flex-shrink-0`})]}),e===r&&(0,z.jsx)(`div`,{className:`px-6 pb-4`,children:(0,z.jsx)(`p`,{className:`font-Inter text-black/70 leading-relaxed whitespace-pre-wrap`,children:t.answer})})]},r))})]})}),(0,z.jsx)(`section`,{id:`contact`,className:`py-16 bg-white`,children:(0,z.jsxs)(`div`,{className:`max-w-4xl mx-auto px-6 text-center`,children:[(0,z.jsx)(`h2`,{className:`text-[40px] lg:text-[48px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mb-4`,children:`Have Questions?`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/70 mb-8`,children:`Please reach out if you have questions, we're always happy to chat.`}),(0,z.jsx)(`a`,{href:`mailto:[email protected]`,className:`inline-block bg-[#609FB0] text-white font-Inter font-medium px-8 py-3 rounded-lg hover:bg-[#4A8A9C] transition-colors`,children:`Contact Us`})]})}),(0,z.jsx)(`section`,{className:`py-16 bg-gray-50`,children:(0,z.jsxs)(`div`,{className:`max-w-4xl mx-auto px-6`,children:[(0,z.jsx)(`h2`,{className:`text-[40px] lg:text-[48px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black text-center mb-6`,children:`Future proofing`}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/80 text-center mb-8`,children:`In addition to HIPAA, we are actively working towards full compliance with:`}),(0,z.jsxs)(`div`,{className:`space-y-4 max-w-2xl mx-auto`,children:[(0,z.jsxs)(`div`,{className:`flex items-start`,children:[(0,z.jsx)(vm,{className:`w-5 h-5 text-[#609FB0] mt-1 mr-3 flex-shrink-0`}),(0,z.jsxs)(`p`,{className:`font-Inter text-black/80`,children:[(0,z.jsx)(`strong`,{children:`CCPA:`}),` So we meet the privacy rights and data protection standards expected in California and beyond.`]})]}),(0,z.jsxs)(`div`,{className:`flex items-start`,children:[(0,z.jsx)(vm,{className:`w-5 h-5 text-[#609FB0] mt-1 mr-3 flex-shrink-0`}),(0,z.jsxs)(`p`,{className:`font-Inter text-black/80`,children:[(0,z.jsx)(`strong`,{children:`GDPR:`}),` Aligning with the rigorous privacy requirements for protecting user data in the European Union.`]})]})]})]})}),(0,z.jsx)(`section`,{className:`py-16 bg-white`,children:(0,z.jsxs)(`div`,{className:`max-w-4xl mx-auto px-6`,children:[(0,z.jsx)(`h2`,{className:`text-[40px] lg:text-[48px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black text-center mb-6`,children:`Investing in Security`}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/80 leading-relaxed mb-8`,children:`Our compliance team has 30 years of experience working on security and compliance. This represents an area of ongoing investment for us. The Knap security program is led by IT and Security Senior Leadership and is responsible for the following areas:`}),(0,z.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-4 mb-8`,children:[(0,z.jsxs)(`div`,{className:`flex items-center`,children:[(0,z.jsx)(vm,{className:`w-5 h-5 text-[#609FB0] mr-3 flex-shrink-0`}),(0,z.jsx)(`span`,{className:`font-Inter text-black/80`,children:`Application Security`})]}),(0,z.jsxs)(`div`,{className:`flex items-center`,children:[(0,z.jsx)(vm,{className:`w-5 h-5 text-[#609FB0] mr-3 flex-shrink-0`}),(0,z.jsx)(`span`,{className:`font-Inter text-black/80`,children:`Infrastru
133cture and Network Security`})]}),(0,z.jsxs)(`div`,{className:`flex items-center`,children:[(0,z.jsx)(vm,{className:`w-5 h-5 text-[#609FB0] mr-3 flex-shrink-0`}),(0,z.jsx)(`span`,{className:`font-Inter text-black/80`,children:`Compliance`})]}),(0,z.jsxs)(`div`,{className:`flex items-center`,children:[(0,z.jsx)(vm,{className:`w-5 h-5 text-[#609FB0] mr-3 flex-shrink-0`}),(0,z.jsx)(`span`,{className:`font-Inter text-black/80`,children:`Privacy`})]}),(0,z.jsxs)(`div`,{className:`flex items-center`,children:[(0,z.jsx)(vm,{className:`w-5 h-5 text-[#609FB0] mr-3 flex-shrink-0`}),(0,z.jsx)(`span`,{className:`font-Inter text-black/80`,children:`Corporate Security`})]}),(0,z.jsxs)(`div`,{className:`flex items-center`,children:[(0,z.jsx)(vm,{className:`w-5 h-5 text-[#609FB0] mr-3 flex-shrink-0`}),(0,z.jsx)(`span`,{className:`font-Inter text-black/80`,children:`Physical Security`})]})]}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/80 leading-relaxed text-center`,children:`Our employees are required to attend annual security awareness training and are informed of their security responsibilities.`})]})})]})]})},PA=`/assets/images/modelfa_logo.png`,FA=()=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Knapsack + ModelFA`}),(0,z.jsx)(`meta`,{name:`description`,content:`Model FA uses Knapsack to deliver compliant AI. Sign into your ModelFA Outreach and Coaching assistants.`})]}),(0,z.jsxs)(`div`,{className:`min-h-screen bg-white`,children:[(0,z.jsx)(`section`,{className:`bg-gradient-to-b from-[#FFF] to-white`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6 py-8`,children:(0,z.jsxs)(`div`,{className:`text-center`,children:[(0,z.jsx)(`div`,{className:`mb-8`,children:(0,z.jsx)(`img`,{src:PA,alt:`ModelFA AI assistants`,className:`mx-auto max-w-xl w-full`})}),(0,z.jsx)(`h1`,{className:`text-[48px] lg:text-[64px] font-Spectral font-normal leading-[1.1] tracking-[-1.5px] text-black mt-24 mb-6`,children:`Model FA uses Knapsack to deliver compliant AI`})]})})}),(0,z.jsx)(`section`,{className:`py-8 bg-white`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6`,children:(0,z.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-3 gap-8 lg:gap-12`,children:[(0,z.jsx)(`div`,{className:`text-center`,children:(0,z.jsxs)(`div`,{className:`mb-6`,children:[(0,z.jsx)(`span`,{className:`inline-block bg-[#FFE4D6] text-[#D97638] px-4 py-2 rounded-full text-sm font-Inter font-medium mb-4`,children:`Step 1`}),(0,z.jsx)(`h2`,{className:`text-[28px] lg:text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mb-4`,children:`Sign In`}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/80 leading-relaxed mb-6`,children:`Sign into your ModelFA Outreach and Coaching assistants here.`}),(0,z.jsxs)(`a`,{href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center bg-[#609FB0] text-white font-Inter font-medium px-6 py-2.5 rounded-lg hover:bg-[#4A8A9C] transition-colors`,children:[`Sign in`,(0,z.jsx)(lm,{className:`w-4 h-4 ml-2`})]})]})}),(0,z.jsx)(`div`,{className:`text-center`,children:(0,z.jsxs)(`div`,{className:`mb-6`,children:[(0,z.jsx)(`span`,{className:`inline-block bg-[#FFE4D6] text-[#D97638] px-4 py-2 rounded-full text-sm font-Inter font-medium mb-4`,children:`Step 2`}),(0,z.jsx)(`h2`,{className:`text-[28px] lg:text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mb-4`,children:`Connect Email`}),(0,z.jsx)(`div`,{className:`flex justify-center mb-4`,children:(0,z.jsx)(`div`,{className:`w-12 h-12 bg-[#609FB0] rounded-full flex items-center justify-center`,children:(0,z.jsx)(Im,{className:`w-6 h-6 text-white`})})}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/80 leading-relaxed`,children:`Connect your email and click Outreach. Never lose touch with clients and prospects again.`})]})}),(0,z.jsx)(`div`,{className:`text-center`,children:(0,z.jsxs)(`div`,{className:`mb-6`,children:[(0,z.jsx)(`span`,{className:`inline-block bg-[#FFE4D6] text-[#D97638] px-4 py-2 rounded-full text-sm font-Inter font-medium mb-4`,children:`Step 3`}),(0,z.jsx)(`h2`,{className:`text-[28px] lg:text-[32px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mb-4`,children:`Activate Features`}),(0,z.jsxs)(`div`,{className:`flex justify-center gap-3 mb-4`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 bg-[#609FB0] rounded-full flex items-center justify-center`,children:(0,z.jsx)(pm,{className:`w-6 h-6 text-white`})}),(0,z.jsx)(`div`,{className:`w-12 h-12 bg-[#609FB0] rounded-full flex items-center justify-center`,children:(0,z.jsx)(Rm,{className:`w-6 h-6 text-white`})})]}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/80 leading-relaxed`,children:`Connect your calendar to activate the embedded Notetaker. Use Chat across all of your data.`})]})})]})})}),(0,z.jsx)(`section`,{className:`py-8 bg-gradient-to-b from-[#FFF8F5] to-white`,children:(0,z.jsxs)(`div`,{className:`max-w-4xl mx-auto px-6 text-center`,children:[(0,z.jsx)(`h2`,{className:`text-[32px] lg:text-[40px] font-Spectral font-normal leading-[1.2] tracking-[-0.5px] text-black mb-6`,children:`Ready to get started?`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/70 mb-8`,children:`Access your ModelFA AI assistants and start delivering compliant AI solutions.`}),(0,z.jsxs)(`a`,{href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center bg-[#609FB0] text-white font-Inter font-medium px-8 py-4 rounded-lg hover:bg-[#4A8A9C] transition-colors text-lg`,children:[`Access Knapsack`,(0,z.jsx)(lm,{className:`w-5 h-5 ml-2`})]})]})}),(0,z.jsx)(`section`,{className:`py-8 bg-gray-50 border-t`,children:(0,z.jsx)(`div`,{className:`max-w-4xl mx-auto px-6 text-center`,children:(0,z.jsxs)(`p`,{className:`text-sm font-Inter text-black/60`,children:[`Partnership between Knapsack and ModelFA. For support, contact`,` `,(0,z.jsx)(`a`,{href:`mailto:[email protected]`,className:`text-[#609FB0] hover:underline`,children:`[email protected]`})]})})})]})]}),IA=`https://chromewebstore.google.com/detail/ndolhgjognokndkmkcjgookcogfbgdpg?utm_source=item-share-cb`,LA=()=>{let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n=()=>{Q.trackEvent(`www_chrome_extension_cta_click`),typeof gtag<`u`&&gtag(`event`,`conversion`,{send_to:`AW-16630252215/qntvCOGv3L0bELeF9vk9`})},r={hidden:{opacity:0}
133,visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.1}}},i={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Chrome Extension | Knapsack.ai`}),(0,z.jsx)(`meta`,{name:`description`,content:`Install the Knapsack Chrome extension to get AI-powered assistance right in your browser. Chat and run agents securely on any website.`})]}),(0,z.jsxs)(`div`,{className:`min-h-screen bg-white`,children:[(0,z.jsx)(`section`,{ref:e,className:`bg-white border-b border-gray-100`,children:(0,z.jsxs)(V.div,{variants:r,initial:`hidden`,animate:t?`visible`:`hidden`,className:`max-w-7xl mx-auto px-6 py-24 lg:py-32`,children:[(0,z.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,z.jsx)(V.h1,{variants:i,className:`text-[56px] lg:text-[88px] font-Spectral font-normal leading-[1.05] tracking-[-2.5px] text-black mb-6`,children:`An AI side panel securely connected to your data`}),(0,z.jsx)(V.p,{variants:i,className:`text-xl lg:text-2xl font-Inter text-black/60 leading-relaxed max-w-2xl mx-auto mb-10 font-light`,children:`The Knapsack AI Chrome Extension allows you to chat with your data and run agents directly from your side panel on Chrome.`}),(0,z.jsx)(V.div,{variants:i,className:`flex flex-col sm:flex-row gap-4 items-center justify-center`,children:(0,z.jsxs)(V.a,{whileHover:{scale:1.05,boxShadow:`0 20px 40px rgba(255, 178, 71, 0.3)`},whileTap:{scale:.95},href:IA,target:`_blank`,rel:`noopener noreferrer`,onClick:n,className:`bg-[#ffb247] hover:bg-[#ffa733] text-black font-semibold py-4 px-10 rounded-full transition-all duration-300 text-lg shadow-lg flex items-center gap-2 group`,children:[(0,z.jsx)(`span`,{children:`Install from Chrome Web Store`}),(0,z.jsx)(Tm,{className:`w-5 h-5 group-hover:translate-x-1 transition-transform`})]})})]}),(0,z.jsx)(V.div,{variants:i,className:`max-w-7xl mx-auto mt-20`,children:(0,z.jsx)(`img`,{src:`https://cdn.sanity.io/images/82z4x250/production/ce39a1626ca5ce6d4cf263726b245f3945d177db-4092x2526.png`,alt:`Knapsack Chrome Extension - AI side panel with dashboard and chat interface`,className:`w-full h-auto rounded-xl border-[.5px] border-gray-200 shadow-[0_25px_50px_-12px_rgba(0,0,0,0.25)]`})})]})}),(0,z.jsx)(`section`,{className:`py-24 lg:py-32 bg-white border-b border-gray-100`,children:(0,z.jsxs)(`div`,{className:`max-w-6xl mx-auto px-6`,children:[(0,z.jsxs)(`div`,{className:`text-center mb-20`,children:[(0,z.jsx)(`h2`,{className:`text-[48px] lg:text-[72px] font-Spectral font-normal leading-[1.05] tracking-[-1.5px] text-black mb-6`,children:`Chat and run agents securely on your data`}),(0,z.jsx)(`p`,{className:`text-xl font-Inter text-black/60 max-w-3xl mx-auto font-light`,children:`The Knapsack extension observes your connected data sources, plans actions, and executes workflows—all while keeping you in control.`})]}),(0,z.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-12 mb-20`,children:[(0,z.jsxs)(`div`,{className:`text-center`,children:[(0,z.jsx)(`div`,{className:`inline-flex items-center justify-center w-20 h-20 bg-[#003a53] rounded-2xl mb-6`,children:(0,z.jsx)(Cm,{className:`w-10 h-10 text-white`})}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-4 tracking-[-0.3px]`,children:`Connects`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:`Seamlessly integrates with Salesforce, HubSpot, Google Drive, Dropbox, calendars, and custom MCP servers to access your business data.`})]}),(0,z.jsxs)(`div`,{className:`text-center`,children:[(0,z.jsx)(`div`,{className:`inline-flex items-center justify-center w-20 h-20 bg-[#003a53] rounded-2xl mb-6`,children:(0,z.jsx)(Rm,{className:`w-10 h-10 text-white`})}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-4 tracking-[-0.3px]`,children:`Reasons`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:`Understands your goals and plans actionable steps. The agent shares its decision-making process and keeps you informed throughout.`})]}),(0,z.jsxs)(`div`,{className:`text-center`,children:[(0,z.jsx)(`div`,{className:`inline-flex items-center justify-center w-20 h-20 bg-[#003a53] rounded-2xl mb-6`,children:(0,z.jsx)(ih,{className:`w-10 h-10 text-white`})}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-4 tracking-[-0.3px]`,children:`Executes`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:`N
133avigates and interacts with your connected systems to carry out workflows. You can prompt, modify, or stop the agent at any time.`})]})]})]})}),(0,z.jsx)(`section`,{className:`py-24 lg:py-32 bg-gray-50 border-b border-gray-200`,children:(0,z.jsxs)(`div`,{className:`max-w-6xl mx-auto px-6`,children:[(0,z.jsxs)(`div`,{className:`mb-20`,children:[(0,z.jsx)(`h2`,{className:`text-[48px] lg:text-[72px] font-Spectral font-normal leading-[1.05] tracking-[-1.5px] text-black mb-6`,children:`AI in every tab`}),(0,z.jsx)(`p`,{className:`text-xl font-Inter text-black/60 max-w-3xl font-light leading-relaxed`,children:`Use natural language to assign AI agents to handle time-consuming tasks, like research, planning, and data entry.`})]}),(0,z.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-8`,children:[(0,z.jsxs)(`div`,{className:`bg-white rounded-2xl p-8 border border-gray-200`,children:[(0,z.jsx)(`div`,{className:`w-14 h-14 bg-[#FFE4D6] rounded-xl flex items-center justify-center mb-6`,children:(0,z.jsx)(bm,{className:`w-7 h-7 text-[#D97638]`})}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-4 tracking-[-0.3px]`,children:`Schedule tasks for your agent`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:`Automate repetitive workflows so you can focus on what matters. Set your agent to upload notes to CRM after meetings, auto-generate draft replies to urgent emails, or take notes during meetings.`})]}),(0,z.jsxs)(`div`,{className:`bg-white rounded-2xl p-8 border border-gray-200`,children:[(0,z.jsx)(`div`,{className:`w-14 h-14 bg-[#FFE4D6] rounded-xl flex items-center justify-center mb-6`,children:(0,z.jsx)(Rm,{className:`w-7 h-7 text-[#D97638]`})}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-4 tracking-[-0.3px]`,children:`Chat with your connected data in real-time`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:`Have natural conversations with your data sources. Get AI-generated suggestions based on your actual business data.`})]}),(0,z.jsxs)(`div`,{className:`bg-white rounded-2xl p-8 border border-gray-200`,children:[(0,z.jsx)(`div`,{className:`w-14 h-14 bg-[#FFE4D6] rounded-xl flex items-center justify-center mb-6`,children:(0,z.jsx)(ih,{className:`w-7 h-7 text-[#D97638]`})}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-4 tracking-[-0.3px]`,children:`Build your own AI agents`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:`Use natural language to build an agent in seconds. No coding required.`})]}),(0,z.jsxs)(`div`,{className:`bg-white rounded-2xl p-8 border border-gray-200`,children:[(0,z.jsx)(`div`,{className:`w-14 h-14 bg-[#FFE4D6] rounded-xl flex items-center justify-center mb-6`,children:(0,z.jsx)(Xm,{className:`w-7 h-7 text-[#D97638]`})}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-4 tracking-[-0.3px]`,children:`Secure & private by design`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:`Knapsack is SOC2 Type 2 certified and HIPAA compliant.`})]})]})]})}),(0,z.jsx)(`section`,{className:`py-24 lg:py-32 bg-white border-b border-gray-100`,children:(0,z.jsxs)(`div`,{className:`max-w-6xl mx-auto px-6`,children:[(0,z.jsxs)(`div`,{className:`text-center mb-20`,children:[(0,z.jsx)(`h2`,{className:`text-[48px] lg:text-[72px] font-Spectral font-normal leading-[1.05] tracking-[-1.5px] text-black mb-6`,children:`Introducing AI workflows`}),(0,z.jsx)(`p`,{className:`text-xl font-Inter text-black/60 max-w-3xl mx-auto font-light`,children:`Build and run powerful Agents that save you hours each week`})]}),(0,z.jsx)(`div`,{className:`mb-24`,children:(0,z.jsx)(`div`,{className:`grid md:grid-cols-3 gap-8`,children:[{icon:ih,text:`Build custom workflows tailored to your specific needs`},{icon:Jm,text:`Share workflows with team members via link`},{icon:Hm,text:`Run any workflow instantly with "Run now" button`}].map((e,t)=>{let n=e.icon;return(0,z.jsxs)(`div`,{className:`flex items-start gap-4`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 bg-[#003a53] rounded-xl flex items-center justify-center flex-shrink-0`,children:(0,z.jsx)(n,{className:`w-6 h-6 text-white`})}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light pt-1`,children:e.text})]},t)})})}),(0,z.jsx)(`div`,{className:`mb-24`,children:(0,z.jsx)(`img`,{src:`https://cdn.sanity.io/images/82z4x250/production/ae2cff1029036062ba0e8f5ac3d0a576f65809e3-1440x640.png`,alt:`Popular AI workflow examples`,className:`w-full h-auto rounded-xl`})})]})}),(0,z.jsx)(`section`,{className:`py-24 lg:py-32 bg-gray-50 border-b border-gray-200`,children:(0,z.jsxs)(`div`,{className:`max-w-6xl mx-auto px-6`,children:[(0,z.jsx)(`h2`,{className:`text-[48px] lg:text-[72px] font-Spectral font-normal leading-[1.05] tracking-[-1.5px] text-black text-center mb-20`,children:`Why a Chrome Extension?`}),(0,z.jsx)(`div`,{className:`grid md:grid-cols-2 gap-8 max-w-5xl mx-auto`,children:[{icon:Rm,title:`Always accessible`,text:`Side panel stays open while you browse`},{icon:Cm,title:`Connected to your data`,text:`Works with your actual business systems`},{icon:ih,title:`Fully automated`,text:`Set workflows to run on schedule or after meetings`},{icon:Xm,title:`Private & secure`,text:`Control what data is processed and shared`}].map((e,t)=>{let n=e.icon;return(0,z.jsxs)(`div`,{className:`bg-white rounded-xl p-8 border border-gray-200`,children:[(0,z.jsx)(`div`,{className:`w-14 h-14 bg-[#FFE4D6] rounded-xl flex items-center justify-center mb-6`,children:(0,z.jsx)(n,{className:`w-7 h-7 text-[#D97638]`})}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-3 tracking-[-0.3px]`,children:e.title}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:e.text})]},t)})})]})}),(0,z.jsx)(`section`,{className:`py-24 lg:py-32 bg-gradient-to-br from-[#003a53] via-[#004461] to-[#003a53] border-b border-[#003a53]/20`,children:(0,z.jsx)(`div`,{className:`max-w-4xl mx-auto px-6 text-center`,children:(0,z.jsxs)(`p`,{className:`text-2xl lg:text-3xl font-Inter text-white/95 leading-relaxed font-light`,children:[`Perfect for `,(0,z.jsx)(`strong`,{className:`text-white font-medium`,children:`sales professionals`}),`, `,(0,z.jsx)(`strong`,{className:`text-white font-medium`,children:`executives`}),`, `,(0,z.jsx)(`strong`,{className:`text-white font-medium`,children:`consultants`}),`, and anyone who wants to automate repetitive tasks and get AI-powered insights from their connected business tools.`]})})}),(0,z.jsx)(`section`,{className:`py-24 lg:py-32 bg-white border-b border-gray-100`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6`,children:(0,z.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-12 max-w-5xl mx-auto`,children:[(0,z.jsxs)(`div`,{className:`text-center`,children:[(0,z.jsx)(`div`,{className:`w-24 h-24 bg-[#003a53] text-white rounded-2xl flex items-center justify-center text-4xl font-bold font-Inter mx-auto mb-6`,children:`1`}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-4 tracking-[-0.3px]`,children:`Install the extension`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:`Add Knapsack to your Chrome browser with one click from the Chrome Web Store.`})]}),(0,z.jsxs)(`div`,{className:`text-center`,children:[(0,z.jsx)(`div`,{className:`w-24 h-24 bg-[#003a53] text-white rounded-2xl flex items-center justify-center text-4xl font-bold font-Inter mx-auto mb-6`,children:`2`}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-4 tracking-[-0.3px]`,children:`Access anyw
133here`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:`Use Knapsack AI on any website. Simply click the extension icon to get started.`})]}),(0,z.jsxs)(`div`,{className:`text-center`,children:[(0,z.jsx)(`div`,{className:`w-24 h-24 bg-[#003a53] text-white rounded-2xl flex items-center justify-center text-4xl font-bold font-Inter mx-auto mb-6`,children:`3`}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-black mb-4 tracking-[-0.3px]`,children:`Chat and create`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light`,children:`Ask questions, run agents, and get AI-powered assistance without leaving your current page.`})]})]})})}),(0,z.jsx)(`section`,{className:`py-24 lg:py-32 bg-gradient-to-br from-[#003a53] via-[#004461] to-[#003a53]`,children:(0,z.jsxs)(`div`,{className:`max-w-4xl mx-auto px-6 text-center`,children:[(0,z.jsx)(`h2`,{className:`text-[48px] lg:text-[72px] font-Spectral font-normal leading-[1.05] tracking-[-1.5px] text-white mb-8`,children:`Ready to get started?`}),(0,z.jsx)(`p`,{className:`text-xl lg:text-2xl font-Inter text-white/95 mb-12 max-w-2xl mx-auto leading-relaxed font-light`,children:`Install the Knapsack Chrome extension today and experience AI-powered assistance right in your browser.`}),(0,z.jsxs)(V.a,{whileHover:{scale:1.05,boxShadow:`0 20px 40px rgba(255, 178, 71, 0.3)`},whileTap:{scale:.95},href:IA,target:`_blank`,rel:`noopener noreferrer`,onClick:n,className:`inline-flex items-center gap-3 bg-[#ffb247] hover:bg-[#ffa733] text-black font-semibold py-5 px-10 rounded-full transition-all duration-300 text-lg shadow-lg group`,children:[(0,z.jsx)(`span`,{children:`Install from Chrome Web Store`}),(0,z.jsx)(lm,{className:`w-5 h-5 group-hover:translate-x-1 transition-transform`})]})]})})]})]})},RA=()=>{let e=pt(),[t]=Bn();return(0,C.useEffect)(()=>{let n=t.get(`access_token`),r=t.get(`provider`),i=t.get(`error`),a=t.get(`error_detail`);if(window.opener)i?window.opener.postMessage({type:`AUTH_ERROR`,error:a||i,provider:r||`unknown`},`*`):n&&r&&window.opener.postMessage({type:`AUTH_SUCCESS`,access_token:n,provider:r},`*`),setTimeout(()=>{window.close()},500);else{let t=setTimeout(()=>{e(`/`)},3e3);return()=>clearTimeout(t)}},[t,e]),(0,z.jsx)(`div`,{className:`min-h-screen flex items-center justify-center bg-gray-50`,children:(0,z.jsxs)(`div`,{className:`text-center`,children:[(0,z.jsx)(`div`,{className:`animate-spin rounded-full h-12 w-12 border-b-2 border-[#003a53] mx-auto`}),(0,z.jsx)(`p`,{className:`mt-4 text-gray-600`,children:`Completing authentication...`})]})})},zA=()=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Thank You - Knapsack AI`}),(0,z.jsx)(`meta`,{name:`description`,content:`Thank you for booking a discovery call with Knapsack AI.`})]}),(0,z.jsx)(`div`,{className:`min-h-screen bg-white flex items-center justify-center px-6`,children:(0,z.jsxs)(`div`,{className:`max-w-2xl mx-auto text-center`,children:[(0,z.jsx)(`h1`,{className:`text-[48px] lg:text-[64px] font-Spectral font-normal leading-[1.1] tracking-[-1.5px] text-black mb-6`,children:`Thank You!`}),(0,z.jsx)(`p`,{className:`text-xl lg:text-2xl font-Inter text-black/70 mb-8 leading-relaxed`,children:`We look forward to speaking with you soon.`}),(0,z.jsxs)(`p`,{className:`text-base font-Inter text-black/60`,children:[`If you have any questions in the meantime, feel free to reach out to us at`,` `,(0,z.jsx)(`a`,{href:`mailto:[email protected]`,className:`text-[#003a53] hover:underline`,children:`[email protected]`})]})]})})]}),BA=({name:e,logo:t})=>{let[n,r]=(0,C.useState)(!1);return(0,z.jsx)(`div`,{className:`flex-shrink-0 flex items-center justify-center h-12 md:h-16 opacity-100 hover:opacity-100 transition-opacity min-w-[100px] md:min-w-[120px]`,children:n?(0,z.jsx)(`span`,{className:`font-Inter font-medium text-[12px] md:text-[14px] text-[#222222] text-center whitespace-nowrap`,children:e}):(0,z.jsx)(`img`,{src:t,alt:e,className:`h-full w-auto max-w-[120px] md:max-w-[150px] object-contain`,onError:()=>r(!0)})})},VA=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Case Study: Financial Advisors | Knapsack AI`}),(0,z.jsx)(`meta`,{name:`description`,content:`See how Knapsack AI helps financial advisors automate meeting prep, notetaking, and follow-ups. A regulated industry case study.`})]}),(0,z.jsxs)(`div`,{className:`bg-white min-h-screen flex flex-col items-center relative w-full`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col h-auto min-h-[160px] md:h-auto items-center justify-center relative rounded-2xl md:rounded-[48px] w-full py-4 md:py-8 px-4 md:px-6`,children:[(0,z.jsx)(`div`,{className:`mb-3`,children:(0,z.jsx)(`span`,{className:`inline-block bg-[#ffb247] text-black text-sm font-medium px-4 py-1.5 rounded-full`,children:`Case Study`})}),(0,z.jsx)(`h1`,{className:`font-Spectral italic font-light leading-normal text-[48px] md:text-[96px] text-black tracking-[-1.92px] text-center mb-4 md:mb-6`,children:`Financial Advisors`}),(0,z.jsxs)(`p`,{className:`font-Inter font-normal leading-relaxed text-[16px] md:text-[18px] text-[#222222] opacity-70 text-center max-w-3xl mb-4`,children:[`We help advisors stop doing back office work`,(0,z.jsx)(`br`,{}),`so they can spend more time advising`,(0,z.jsx)(`br`,{}),`and less time managing a CRM.`]}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[14px] md:text-[16
133px] text-[#222222] opacity-60 text-center max-w-2xl italic`,children:`This is a case study of how Knapsack works in a regulated industry. Knapsack is not exclusively for financial advisors—it's a platform for anyone who wants to automate work with natural-language agents.`})]}),(0,z.jsxs)(`div`,{className:`flex gap-2 items-start relative mt-3 md:mt-6 px-4 md:px-0`,children:[(0,z.jsx)(`a`,{href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`bg-[#ffb247] hover:bg-[#ffa733] flex gap-2 items-center justify-center px-4 py-3 md:px-6 md:py-4 rounded-[80px] transition-colors`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[18px] text-[14px] md:text-[16px] text-black whitespace-nowrap`,children:`Start using Studio`})}),(0,z.jsx)(`button`,{onClick:e,className:`bg-white border border-[#333333] flex gap-2 items-center justify-center px-4 py-3 md:px-6 md:py-4 rounded-[80px] hover:bg-gray-50 transition-colors`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[18px] text-[14px] md:text-[16px] text-[#222222] whitespace-nowrap`,children:`Book a call`})})]}),(0,z.jsxs)(`div`,{className:`flex flex-col gap-8 md:gap-16 items-center px-4 md:px-6 lg:px-20 py-8 md:py-16 relative w-full max-w-6xl`,children:[(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white via-gray-50/30 to-white border border-gray-200/80 rounded-3xl p-5 md:p-10 w-full shadow-sm`,children:[(0,z.jsxs)(`div`,{className:`mb-4 md:mb-8`,children:[(0,z.jsx)(`h2`,{className:`font-Spectral font-semibold leading-[36px] text-[28px] text-[#222222] tracking-[-0.5px] mb-2 md:mb-3`,children:`Meeting Lifecycle Tools`}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[16px] md:text-[18px] text-[#222222] opacity-70`,children:`Complete your meeting workflow with AI-powered tools designed for financial advisors`})]}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6 w-full`,children:[(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white to-gray-50 border border-gray-200 rounded-2xl p-5 md:p-8 flex flex-col gap-4 md:gap-6 hover:shadow-lg transition-all duration-300 group`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 md:gap-4`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 md:w-14 md:h-14 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center shadow-md group-hover:scale-110 transition-transform duration-300`,children:(0,z.jsx)(pm,{className:`w-6 h-6 md:w-7 md:h-7 text-white`})}),(0,z.jsx)(`h3`,{className:`font-Spectral font-semibold leading-[28px] md:leading-[32px] text-[20px] md:text-[24px] text-[#222222] tracking-[-0.24px]`,children:`Meeting Prep`})]}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[14px] md:text-[16px] text-[#222222] opacity-75`,children:`Automatically prepare for your meetings by pulling client history, account summaries, and relevant notes. Get a comprehensive briefing before every client interaction.`})]}),(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white to-gray-50 border border-gray-200 rounded-2xl p-5 md:p-8 flex flex-col gap-4 md:gap-6 hover:shadow-lg transition-all duration-300 group`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 md:gap-4`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 md:w-14 md:h-14 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center shadow-md group-hover:scale-110 transition-transform duration-300`,children:(0,z.jsx)(Dm,{className:`w-6 h-6 md:w-7 md:h-7 text-white`})}),(0,z.jsx)(`h3`,{className:`font-Spectral font-semibold leading-[28px] md:leading-[32px] text-[20px] md:text-[24px] text-[#222222] tracking-[-0.24px]`,children:`Meeting Notetaker`})]}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[14px] md:text-[16px] text-[#222222] opacity-75`,children:`Capture meeting notes automatically without recording video. Our notetaker transcribes conversations and creates structured summaries for compliance and follow-up.`})]}),(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white to-gray-50 border border-gray-200 rounded-2xl p-5 md:p-8 flex flex-col gap-4 md:gap-6 hover:shadow-lg transition-all duration-300 group`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 md:gap-4`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 md:w-14 md:h-14 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center shadow-md group-hover:scale-110 transition-transform duration-300`,children:(0,z.jsx)(Km,{className:`w-6 h-6 md:w-7 md:h-7 text-white`})}),(0,z.jsx)(`h3`,{className:`font-Spectral font-semibold leading-[28px] md:leading-[32px] text-[20px] md:text-[24px] text-[#222222] tracking-[-0.24px]`,children:`Meeting Follow-Up`})]}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[14px] md:text-[16
133px] text-[#222222] opacity-75`,children:`Automatically generate follow-up emails, action items, and next steps after each meeting. Keep clients informed and ensure nothing falls through the cracks.`})]})]})]}),(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white via-gray-50/30 to-white border border-gray-200/80 rounded-3xl p-5 md:p-10 w-full shadow-sm`,children:[(0,z.jsxs)(`div`,{className:`mb-4 md:mb-8`,children:[(0,z.jsx)(`h2`,{className:`font-Spectral font-semibold leading-[36px] text-[28px] text-[#222222] tracking-[-0.5px] mb-2 md:mb-3`,children:`Staying on Task`}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[16px] md:text-[18px] text-[#222222] opacity-70`,children:`Stay focused and productive with AI-powered tools that help you prioritize and automate routine tasks`})]}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6 w-full`,children:[(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white to-gray-50 border border-gray-200 rounded-2xl p-5 md:p-8 flex flex-col gap-4 md:gap-6 hover:shadow-lg transition-all duration-300 group`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 md:gap-4`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 md:w-14 md:h-14 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center shadow-md group-hover:scale-110 transition-transform duration-300`,children:(0,z.jsx)($m,{className:`w-6 h-6 md:w-7 md:h-7 text-white`})}),(0,z.jsx)(`h3`,{className:`font-Spectral font-semibold leading-[28px] md:leading-[32px] text-[20px] md:text-[24px] text-[#222222] tracking-[-0.24px]`,children:`Daily Coach`})]}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[14px] md:text-[16px] text-[#222222] opacity-75`,children:`Daily Coach sends you personalized feedback on how you can improve at work. After reviewing your recent docs, emails, CRM, Slack, Notion, and meeting notes, Daily Coach will send a brief summary of the last 24 hours in the context of the week. It then tells you the most important things to do today and how to be more effective.`})]}),(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white to-gray-50 border border-gray-200 rounded-2xl p-5 md:p-8 flex flex-col gap-4 md:gap-6 hover:shadow-lg transition-all duration-300 group`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 md:gap-4`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 md:w-14 md:h-14 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center shadow-md group-hover:scale-110 transition-transform duration-300`,children:(0,z.jsx)(Im,{className:`w-6 h-6 md:w-7 md:h-7 text-white`})}),(0,z.jsx)(`h3`,{className:`font-Spectral font-semibold leading-[28px] md:leading-[32px] text-[20px] md:text-[24px] text-[#222222] tracking-[-0.24px]`,children:`Email Autopilot`})]}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[14px] md:text-[16px] text-[#222222] opacity-75`,children:`Email Autopilot scans your inbox, filters out junk, and auto-drafts responses for any actionable emails, matching your tone and using your real signature.`})]})]})]}),(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white via-gray-50/30 to-white border border-gray-200/80 rounded-3xl p-5 md:p-10 w-full shadow-sm`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col items-start gap-3 md:gap-4 mb-4 md:mb-6`,children:[(0,z.jsx)(`div`,{className:`w-10 h-10 md:w-12 md:h-12 bg-gradient-to-br from-[#ffb247] to-[#ffa733] rounded-xl flex items-center justify-center shadow-md flex-shrink-0`,children:(0,z.jsx)(ih,{className:`w-5 h-5 md:w-6 md:h-6 text-white`})}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{className:`font-Spectral font-semibold leading-[32px] md:leading-[36px] text-[24px] md:text-[28px] text-[#222222] tracking-[-0.5px] mb-2`,children:`Build Any Automation for Your Workflow`}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[16px] md:text-[18px] text-[#222222] opacity-70`,children:`Knapsack isn't limited to meeting tools. Create custom automations that fit your unique workflow—whether it's client onboarding, portfolio reviews, compliance reporting, or any other process you need to streamline. Connect your CRM, email, calendar, and other tools to build powerful workflows that save you hours every week.`})]})]}),(0,z.jsx)(`div`,{className:`mt-6 md:mt-8 mb-6 md:mb-8 overflow-hidden w-full`,children:(0,z.jsx)(`div`,{className:`flex gap-3 animate-scroll`,children:[{title:`Tax Planning Meeting Prep`,icon:fm,gradient:`from-[#ff6b6b] to-[#ee5a6f]`},{title:`Quarterly Meeting Prep`,icon:pm,gradient:`from-[#4ecdc4] to-[#44a08d]`},{title:`Discovery Meeting Prep`,icon:Gm,gradient:`from-[#ffb347] to-[#ffa733]`},{title:`Year End Tax Planning`,icon:Dm,gradient:`from-[#a8e6cf] to-[#7fcdbb]`},{title:`Email Autopilot`,icon:Im,gradient:`from-[#95a5a6] to-[#7f8c8d]`},{title:`Tax Planning Meeting Prep`,icon:fm,gradient:`from-[#ff6b6b] to-[#ee5a6f]`},{title:`Quarterly Meeting Prep`,icon:pm,gradient:`from-[#4ecdc4] to-[#44a08d]`},{title:`Discovery Meeting Prep`,icon:Gm,gradient:`from-[#ffb347] to-[#ffa733]`},{title:`Year End Tax Planning`,icon:Dm,gradient:`from-[#a8e6cf] to-[#7fcdbb]`},{title:`Email Autopilot`,icon:Im,gradient:`from-[#95a5a6] to-[#7f8c8d]`}].map((e,t)=>{let n=e.icon;return(0,z.jsxs)(`div`,{className:`flex-shrink-0 bg-white border border-gray-200 rounded-xl px-4 py-4 md:px-6 md:py-5 flex flex-col items-center gap-2 md:gap-3`,children:[(0,z.jsx)(`div`,{className:`w-8 h-8 md:w-10 md:h-10 bg-gradient-to-br ${e.gradient} rounded-lg flex items-center justify-center flex-shrink-0`,children:(0,z.jsx)(n,{className:`w-4 h-4 md:w-5 md:h-5 text-white`})}),(0,z.jsx)(`p`,{className:`font-Inter font-medium text-[14px] md:text-[16
133px] text-[#222222] whitespace-nowrap text-center`,children:e.title})]},t)})})}),(0,z.jsx)(`div`,{className:`mt-6 md:mt-8 flex justify-start`,children:(0,z.jsx)(`a`,{href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`bg-white border border-[#333333] flex gap-2 items-center justify-center px-6 py-3 md:px-8 md:py-4 rounded-[80px] hover:bg-gray-50 transition-colors`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[18px] text-[14px] md:text-[16px] text-[#222222] whitespace-nowrap`,children:`Try today`})})})]}),(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white via-gray-50/30 to-white border border-gray-200/80 rounded-3xl p-5 md:p-10 w-full shadow-sm`,children:[(0,z.jsxs)(`div`,{className:`mb-4 md:mb-8`,children:[(0,z.jsx)(`h2`,{className:`font-Spectral font-semibold leading-[36px] text-[28px] text-[#222222] tracking-[-0.5px] mb-2 md:mb-3`,children:`Connect with the Tools You Already Use`}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[16px] md:text-[18px] text-[#222222] opacity-70`,children:`Knapsack integrates seamlessly with your existing workflow tools and platforms`})]}),(0,z.jsx)(`div`,{className:`mt-6 md:mt-8 mb-6 md:mb-8 overflow-hidden w-full`,children:(0,z.jsx)(`div`,{className:`flex gap-6 md:gap-8 animate-scroll items-center`,children:[{name:`Slack`,logo:`/assets/images/logos/slack.svg`},{name:`Notion`,logo:`/assets/images/logos/notion.svg`},{name:`Wealthbox`,logo:`/assets/images/logos/wealthbox.svg`},{name:`Gmail`,logo:`/assets/images/logos/gmail.svg`},{name:`Google Drive`,logo:`/assets/images/logos/google-drive.svg`},{name:`Outlook`,logo:`/assets/images/logos/outlook.svg`},{name:`OneDrive`,logo:`/assets/images/logos/onedrive.svg`},{name:`Google Calendar`,logo:`/assets/images/logos/google-calendar.svg`},{name:`Zoho`,logo:`/assets/images/logos/zoho.svg`},{name:`Salesforce`,logo:`/assets/images/logos/salesforce.svg`},{name:`Dropbox`,logo:`/assets/images/logos/dropbox.svg`},{name:`HubSpot`,logo:`/assets/images/logos/hubspot.svg`},{name:`Pipedrive`,logo:`/assets/images/logos/pipedrive.svg`},{name:`Box`,logo:`/assets/images/logos/box.svg`},{name:`Google Docs`,logo:`/assets/images/logos/google-docs.svg`},{name:`Microsoft Calendar`,logo:`/assets/images/logos/microsoft-calendar.svg`},{name:`Slack`,logo:`/assets/images/logos/slack.svg`},{name:`Notion`,logo:`/assets/images/logos/notion.svg`},{name:`Wealthbox`,logo:`/assets/images/logos/wealthbox.svg`},{name:`Gmail`,logo:`/assets/images/logos/gmail.svg`},{name:`Google Drive`,logo:`/assets/images/logos/google-drive.svg`},{name:`Outlook`,logo:`/assets/images/logos/outlook.svg`},{name:`OneDrive`,logo:`/assets/images/logos/onedrive.svg`},{name:`Google Calendar`,logo:`/assets/images/logos/google-calendar.svg`},{name:`Zoho`,logo:`/assets/images/logos/zoho.svg`},{name:`Salesforce`,logo:`/assets/images/logos/salesforce.svg`},{name:`Dropbox`,logo:`/assets/images/logos/dropbox.svg`},{name:`HubSpot`,logo:`/assets/images/logos/hubspot.svg`},{name:`Pipedrive`,logo:`/assets/images/logos/pipedrive.svg`},{name:`Box`,logo:`/assets/images/logos/box.svg`},{name:`Google Docs`,logo:`/assets/images/logos/google-docs.svg`},{name:`Microsoft Calendar`,logo:`/assets/images/logos/microsoft-calendar.svg`}].map((e,t)=>(0,z.jsx)(BA,{name:e.name,logo:e.logo},t))})}),(0,z.jsx)(`div`,{className:`mt-6 md:mt-8 flex justify-start`,children:(0,z.jsx)(`a`,{href:`https://studio.knapsack.ai/connections`,target:`_blank`,rel:`noopener noreferrer`,className:`bg-white border border-[#333333] flex gap-2 items-center justify-center px-6 py-3 md:px-8 md:py-4 rounded-[80px] hover:bg-gray-50 transition-colors`,children:(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-[18px] text-[14px] md:text-[16px] text-[#222222] whitespace-nowrap`,children:`See all integrations`})})})]}),(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white via-gray-50/30 to-white border border-gray-200/80 rounded-3xl p-5 md:p-10 w-full shadow-sm`,children:[(0,z.jsxs)(`div`,{className:`flex items-start gap-3 md:gap-4 mb-4 md:mb-8`,children:[(0,z.jsx)(`div`,{className:`w-10 h-10 md:w-12 md:h-12 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center shadow-md flex-shrink-0`,children:(0,z.jsx)(Xm,{className:`w-5 h-5 md:w-6 md:h-6 text-white`})}),(0,z.jsx)(`div`,{children:(0,z.jsx)(`h2`,{className:`font-Spectral font-semibold leading-[32px] md:leading-[36px] text-[24px] md:text-[28px] text-[#222222] tracking-[-0.5px] mb-2`,children:`SOC 2 Type 2 Compliant`})})]}),(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 md:gap-6 items-start w-full`,children:[(0,z.jsx)(`div`,{className:`bg-gradient-to-br from-gray-50 to-white border border-gray-200/60 rounded-xl p-4 md:p-6 w-full shadow-sm`,children:(0,z.jsxs)(`p`,{className:`font-Inter font-normal leading-relaxed text-[16px] md:text-[18px] text-[#222222] opacity-80`,children:[(0,z.jsx)(`strong`,{className:`text-[#003a53]`,children:`We are proud to be SOC 2 Type 2 Compliant.`}),` This certification demonstrates our ongoing commitment to safeguarding your client data and meeting the highest security standards in the financial services industry.`]})}),(0,z.jsx)(`div`,{className:`bg-gradient-to-br from-gray-50 to-white border border-gray-200/60 rounded-xl p-4 md:p-6 w-full shadow-sm`,children:(0,z.jsxs)(`p`,{className:`font-Inter font-normal leading-relaxed text-[16px] md:text-[18px] text-[#222222] opacity-80`,children:[(0,z.jsx)(`strong`,{className:`text-[#003a53]`,children:`Our Notetaker does not record video.`}),` We only transcribe audio to create meeting notes, ensuring privacy and compliance with industry regulations. All data is encrypted in transit and at rest, and we never train on your data or sell it to third parties.`]})})]})]}),(0,z.jsx)(`div`,{className:`bg-gradient-to-br from-white via-gray-50/30 to-white border border-gray-200/80 rounded-3xl p-5 md:p-10 w-full shadow-sm`,children:(0,z.jsxs)(`div`,{className:`flex flex-col md:flex-row gap-6 md:gap-8 items-start`,children:[(0,z.jsx)(`div`,{className:`shrink-0 w-16 h-16 md:w-20 md:h-20`,children:(0,z.jsx)(wA,{src:`https://cdn.sanity.io/images/82z4x250/production/b45538c7194aa43819b6f90b1718b17f6b7f56bb-698x872.jpg`,alt:`Guillaume Decalf`,className:`w-full h-full object-cover rounded-xl`})}),(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 flex-1`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`h3`,{className:`font-Spectral font-semibold leading-[24px] text-[20px] md:text-[22px] text-[#222222] tracking-[-0.22px]`,children:`Guillaume Decalf`}),(0,z.jsx)(`p`,{className:`font-Inter font-medium leading-[20px] text-[14px] md:text-[16
133px] text-[#222222] opacity-60`,children:`CEO, Oui Financial`})]}),(0,z.jsx)(`p`,{className:`font-Inter font-normal leading-relaxed text-[16px] md:text-[18px] text-[#222222] opacity-80 italic`,children:`"Knapsack will transform how financial advisors work. Its capabilities in compliance checking, meeting preparation, and providing a comprehensive view of clients make it a powerful tool for enhancing client relationships and streamlining workflows."`})]})]})})]})]})]})},HA=()=>(0,z.jsx)(Yk,{content:{title:`Executive Assistant`,ctaText:`Run your first task free`,schedule:`Set up in minutes · Runs every weekday morning`,price:`$500/month after 14 day free trial`,whatItHandles:{shortDescription:`Give it one real task today. It reviews your calendar, finds conflicts and missing context, and prepares you for the meetings that matter.`,longDescription:`Most teams deal with surprise conflicts, missing agendas, and meetings that lack context. This worker clears those risks before your day starts. It reviews your calendar, gathers the information you need, and prepares you for the conversations ahead.`,bulletPoints:[`Protects your calendar from conflicts and missing context`,`Prepares you for external meetings with short summaries`,`Surfaces meetings with no agenda or unclear goals`,`Flags meetings that need prep time or rescheduling`,`Keeps your day organized without manual review`]},dailyWorkflow:[`Morning scan – reviews the next 48 hours of your calendar and flags issues`,`Meeting prep – creates briefings for external meetings`,`Follow up drafts – drafts rescheduling emails when needed`,`Daily summary – sends one clear briefing to your inbox`],howItWorks:[{title:`Connects to your tools`,description:`Reads your calendar, email, CRM notes, and past meeting documents.`},{title:`Builds context before acting`,description:`Reviews past communication, notes, and files before drafting anything.`},{title:`Acts through drafts, not surprises`,description:`Saves all emails as drafts and sends a summary instead of many alerts.`}],whoThisIsFor:[`People with constant external meetings`,`Anyone who struggles with calendar conflicts`,`Leaders who prefer preparation over improvisation`,`Teams where meetings happen faster than prep allows`],whatYoullGet:[{title:`Daily calendar brief`,description:`conflicts, key meetings, prep links`},{title:`External meeting dossiers`,description:`who you're meeting and why it matters`},{title:`Rescheduling drafts`,description:`ready for approval`},{title:`Agenda gap alerts`,description:`short notes on meetings that lack structure`}],setup:[`Connect your tools – calendar, email, and CRM`,`Pick your settings – hours to scan and briefing preferences`,`Review first outputs – adjust rules if needed`],safetyAndControl:[`Works through drafts by default`,`Respects calendar and email permissions`,`Keeps an action log for audit`],faq:[{question:`How is this different from a normal AI assistant?`,answer:`It runs proactively every morning and uses context from your tools.`},{question:`Can I control what it scans?`,answer:`Yes, you set which calendars and inboxes it reads.`},{question:`Does it send emails automatically?`,answer:`No, it drafts only.`},{question:`What tools does it work with?`,answer:`Google Workspace and Microsoft 365.`},{question:`Can I try it with one person first?`,answer:`Yes, you can enable it for one user.`}],metaTitle:`Executive Assistant | Knapsack AI`,metaDescription:`Try a private virtual executive assistant that reviews your calendar, flags conflicts, and prepares you for important meetings.`}}),UA=()=>(0,z.jsx)(Yk,{content:{title:`Enterprise SDR`,ctaText:`Download the free app`,schedule:`Runs every weekday morning`,price:`$500/month after 14 day free trial`,whatItHandles:{shortDescription:`A digital worker that researches accounts, maps stakeholders, and drafts outreach that sounds like you.`,longDescription:`Breaking into enterprise accounts requires research and tailored messaging. This worker handles that research every morning and drafts multi-threaded outreach built on real insights.`,bulletPoints:[`Tracks target accounts for news and signals`,`Maps stakeholders and identifies entry points`,`Writes outreach for each role inside the account`,`Learns from past calls and updates future drafts`,`Gives you a steady flow of researched messaging`]},dailyWorkflow:[`Account scan – checks for news, signals, and changes`,`Stakeholder mapping – updates org views through LinkedIn and CRM`,`Message drafting – tailored outreach by role`,`Call review – extracts strong language from prior calls`],howItWorks:[{title:`Connects to your tools`,description:`Reads CRM notes, call transcripts, cloud documents, and past outreach.`},{title:`Builds context before acting`,description:`Understands the account's situation, buyer roles, and past interactions.`},{title:`Acts through drafts, not surprises`,description:`Saves outreach drafts instead of sending.`}],whoThisIsFor:[`Account executives and SDRs working enterprise deals`,`Teams targeting multi-stakeholder accounts`,`Sellers with limited time for deep research`],whatYoullGet:[{title:`Daily account brief`,description:`news, activity, and opportunities`},{title:`Stakeholder map`,description:`updated role and contact view`},{title:`Outreach drafts`,description:`tailored emails for each role`},{title:`Post-call insights`,description:`language patterns that worked`}],setup:[`Connect your tools – CRM, email, calendar`,`Pick your accounts – choose target lists`,`Review first drafts – refine tone and structure`],safetyAndControl:[`Works entirely through drafts`,`Respects CRM and email permissions`,`Keeps history of all suggestions`],faq:[{question:`How does it match my voice?`,answer:`It learns from past emails and call notes.`},{question:`Does it send outreach automatically?`,answer:`No, drafts only.`},{question:`Can I adjust which accounts it monitors?`,answer:`Yes, account lists are configurable.`}],metaTitle:`Enterprise SDR | Knapsack AI`,metaDescription:`A digital worker that researches accounts, maps stakeholders, and drafts outreach that sounds like you.`}}),WA=()=>(0,z.jsx)(Yk,{content:{title:`Ads Optimizer`,ctaText:`Download the free app`,schedule:`Runs every weekday morning`,price:`$500/month after 14 day free trial`,whatItHandles:{shortDe
133scription:`A digital worker that monitors your ad spend daily and stops waste before it compounds.`,longDescription:`Ad accounts lose money quietly over time. This worker reviews your account every morning, flags leaks, and drafts improvements based on what is actually working.`,bulletPoints:[`Flags wasted spend`,`Identifies negative keyword opportunities`,`Monitors creative fatigue`,`Suggests new creative based on winning patterns`,`Gives you a clear daily spend summary`]},dailyWorkflow:[`Performance review – checks spend, conversions, and outliers`,`Waste detection – identifies low value keywords and placements`,`Creative review – spots fatigue and drafts new variations`,`Spend summary – sends a clear morning report`],howItWorks:[{title:`Connects to your tools`,description:`reads Google Ads data.`},{title:`Builds context before acting`,description:`looks at historical performance, trends, and patterns.`},{title:`Acts through drafts`,description:`creates draft changes and explanations.`}],whoThisIsFor:[`Teams spending money on search or display`,`Marketers who want daily feedback`,`Anyone who wants fewer surprises in ad spend`],whatYoullGet:[{title:`Daily spend brief`,description:`leaks, trends, and opportunities`},{title:`Draft optimizations`,description:`paused keywords, new negatives`},{title:`Creative suggestions`,description:`new headline variations`}],setup:[`Connect Google Ads`,`Choose monitored campaigns`,`Review daily summaries`],safetyAndControl:[`All changes drafted, never applied`,`Clear reasoning for every recommendation`,`Works within set budgets and permissions`],faq:[{question:`Does this replace an agency?`,answer:`It focuses on daily optimization, not full strategy.`},{question:`Can I choose which campaigns it monitors?`,answer:`Yes.`}],metaTitle:`Ads Optimizer | Knapsack AI`,metaDescription:`A digital worker that monitors your ad spend daily and stops waste before it compounds.`}}),GA=()=>(0,z.jsx)(Yk,{content:{title:`Paraplanner`,ctaText:`Download the free app`,schedule:`Runs every weekday morning`,price:`$500/month after 14 day free trial`,whatItHandles:{shortDescription:`A digital worker that audits client files and drafts compliance documentation after every meeting.`,longDescription:`Compliance tasks take time and carry risk when incomplete. This worker reviews client files before meetings and drafts suitability letters after them.`,bulletPoints:[`Checks required documentation before meetings`,`Flags missing KYC and outdated profiles`,`Drafts suitability letters after meetings`,`Tracks consistency between risk tolerance and advice`]},dailyWorkflow:[`Pre meeting audit – checks client files for required docs`,`Gap detection – drafts requests when items are missing`,`Post meeting processing – drafts suitability letters`,`Consistency review – watches for mismatched recommendations`],howItWorks:[{title:`Connects to your tools`,description:`reads CRM records and cloud files.`},{title:`Builds context before acting`,description:`reviews history and client notes.`},{title:`Acts through drafts`,description:`never sends documents directly to clients.`}],whoThisIsFor:[`Financial advisors`,`RIAs and planning teams`,`Anyone who needs compliant documentation at scale`],whatYoullGet:[{title:`Document gap reports`,description:``},{title:`Suitability letter drafts`,description:``},{title:`KYC alerts`,description:``},{title:`Risk profile reminders`,description:``}],setup:[`Connect CRM and cloud storage`,`Choose which clients or meetings to monitor`,`Review drafts and adjust templates`],safetyAndControl:[`Draft only`,`Respects CRM permissions`,`Keeps audit logs`],faq:[{question:`Can this adapt to my firm's policies?`,answer:`Yes, templates and rules are configurable.`}],metaTitle:`Paraplanner | Knapsack AI`,metaDescription:`A digital worker that audits client files and drafts compliance documentation after every meeting.`}}),KA=()=>(0,z.jsx)(Yk,{content:{title:`Project Coordinator`,ctaText:`Download the free app`,schedule:`Runs every weekday morning`,price:`$500/month after 14 day free trial`,whatItHandles:{shortDe
133scription:`A digital worker that tracks blockers, chases updates, and turns meetings into action items.`,longDescription:`Projects fail quietly when tasks stall. This worker monitors the critical path daily and follows up before delays compound.`,bulletPoints:[`Watches the project boards for stalled tasks`,`Flags blockers early`,`Drafts targeted follow ups`,`Turns meeting notes into action items`,`Sends daily status briefs`]},dailyWorkflow:[`Board scan – identifies risks on the critical path`,`Blocker detection – finds tasks that are stuck`,`Follow up drafting – sends targeted follow ups`,`Meeting processing – converts notes into tickets`],howItWorks:[{title:`Connects to your tools`,description:`reads project management boards and meeting notes.`},{title:`Builds context`,description:`understands task ownership and dependencies.`},{title:`Acts through drafts`,description:`saves follow ups for review.`}],whoThisIsFor:[`Engineering teams`,`Product managers`,`Operations and project leads`],whatYoullGet:[{title:`Daily status brief`,description:``},{title:`Blocker alerts`,description:``},{title:`Action item tickets`,description:``},{title:`Follow up drafts`,description:``}],setup:[`Connect project tools`,`Choose monitored projects`,`Review first briefs`],safetyAndControl:[`Draft only`,`Respects project permissions`,`Clear audit trail`],faq:[{question:`Does this replace a project manager?`,answer:`No, it supports one.`}],metaTitle:`Project Coordinator | Knapsack AI`,metaDescription:`A digital worker that tracks blockers, chases updates, and turns meetings into action items.`}}),qA=()=>(0,z.jsx)(Yk,{content:{title:`Customer Success Manager`,ctaText:`Download the free app`,schedule:`Runs every weekday morning`,price:`$500/month after 14 day free trial`,whatItHandles:{shortDescription:`A digital worker that monitors account health and drafts interventions before customers churn.`,longDescription:`Churn shows up in scattered signals. This worker watches those signals daily and drafts specific outreach when accounts show risk.`,bulletPoints:[`Tracks usage, sentiment, and support volume`,`Flags at risk accounts early`,`Drafts interventions that address real issues`,`Prepares QBR summaries`,`Supports onboarding sequences`]},dailyWorkflow:[`Health scan – checks usage, support, and CRM notes`,`Risk detection – flags churn indicators`,`Intervention drafting – tailored outreach`,`QBR prep – account history summaries`],howItWorks:[{title:`Connects to your tools`,description:`support tools, CRM, usage data, and meeting notes.`},{title:`Builds a full picture`,description:`of account history.`},{title:`Acts through drafts only`,description:`All interventions are saved as drafts for review before sending.`}],whoThisIsFor:[`CS teams`,`Account managers`,`Anyone managing renewals`],whatYoullGet:[{title:`At risk account alerts`,description:``},{title:`Intervention drafts`,description:``},{title:`QBR summaries`,description:``},{title:`Onboarding sequences`,description:``}],setup:[`Connect support tools and CRM`,`Choose monitored segments`,`Review drafts and adjust tone`],safetyAndControl:[`Draft only`,`Permissions respected`,`Logged history`],faq:[{question:`How does it detect risk?`,answer:`By combining usage, sentiment, and history.`}],metaTitle:`Customer Success Manager | Knapsack AI`,metaDescription:`A digital worker that monitors account health and drafts interventions before customers churn.`}}),JA=()=>(0,z.jsx)(Yk,{content:{title:`Recruiting Coordinator`,ctaText:`Download the free app`,schedule:`Runs every weekday morning`,price:`$500/month after 14 day free trial`,whatItHandles:{shortDescription:`A digital worker that schedules interviews, chases feedback, and keeps candidates informed.`,longDescription:`Strong candidates disappear when the process stalls. This worker handles scheduling, feedback reminders, and updates.`,bulletPoints:[`Schedules interviews efficiently`,`Tracks scorecard completion`,`Follows up with interviewers`,`Keeps candidates informed`,`Surfaces pipeline bottlenecks`]},dailyWorkflow:[`Pipeline scan – identifies stuck candidates`,`Scheduling – finds availabilities and proposes times`,`Feedback reminders – prompts interviewers`,`Candidate updates – sends clear, honest updates`],howItWorks:[{title:`Connects to your tools`,description:`reads ATS pipelines, calendars, and interview feedback.`},{title:`Builds context`,description:`on candidate and role.`},{title:`Acts through drafts only`,description:`All communications are saved as drafts for review before sending.`}],whoThisIsFor:[`Recruiters`,`Hiring managers`,`Fast scaling teams`],whatYoullGet:[{title:`Pipeline brief`,description:``},{title:`Scheduling suggestions`,description:``},{title:`Feedback nudges`,description:``},{title:`Candidate update drafts`,description:``}],setup:[`Connect ATS and calendar`,`Define roles and pipelines`,`Review drafts`],safetyAndControl:[`Draft only`,`Permissions respected`,`Logged actions`],faq:[{question:`Does it replace a recruiter?`,answer:`No, it supports coordination.`}],metaTitle:`Recruiting Coordinator | Knapsack AI`,metaDescription:`A digital worker that schedules interviews, chases feedback, and keeps candidates informed.`}}),YA=()=>(0,z.jsx)(Yk,{content:{title:`Bookkeeper`,ctaText:`Download the free app`,schedule:`Runs every weekday morning`,price:`$500/month after 14 day free trial`,whatItHandles:{shortDe
133scription:`A digital worker that matches receipts to transactions and chases overdue invoices.`,longDescription:`Bookkeeping piles up fast. This worker handles receipt matching, categorization, and invoice reminders.`,bulletPoints:[`Matches receipts to transactions`,`Categorizes expenses`,`Drafts overdue invoice reminders`,`Sends exception reports`]},dailyWorkflow:[`Receipt search – finds receipts in email and storage`,`Matching – links receipts to transactions`,`Categorization – assigns expense categories`,`Invoice reminders – drafts follow ups`],howItWorks:[{title:`Connects to your tools`,description:`reads accounting system, email, and files.`},{title:`Uses pattern and vendor logic`,description:`Matches receipts and categorizes expenses based on historical patterns.`},{title:`Acts through drafts only`,description:`All reminders and reports are saved as drafts for review.`}],whoThisIsFor:[`Founders`,`Operations teams`,`Freelancers and small businesses`],whatYoullGet:[{title:`Receipt matches`,description:``},{title:`Expense categorization summaries`,description:``},{title:`Invoice reminder drafts`,description:``},{title:`Exception list`,description:``}],setup:[`Connect accounting system`,`Set categorization rules`,`Review matches and drafts`],metaTitle:`Bookkeeper | Knapsack AI`,metaDescription:`A digital worker that matches receipts to transactions and chases overdue invoices.`}}),XA=()=>(0,z.jsx)(Yk,{content:{title:`Creator Coach`,ctaText:`Download the free app`,isProKnap:!0,schedule:`Runs continuously, providing guidance when needed`,showSignUpForm:!0,waitlistUrl:`https://form.typeform.com/to/czogPAqb`,influencerWaitlistUrl:`https://form.typeform.com/to/jCMivXMz`,whatItHandles:{shortDescription:`A digital AI coach built from Creator methods and guidelines that provides personalized guidance on making your work processes more efficient.`,longDescription:`Creator Coach is an AI coach built using the methods and guidelines from top creators who typically only do 1-on-1 coaching with CEOs. With access to your email and calendar, it provides personalized guidance on how to make your work processes more efficient, helping you apply proven frameworks and strategies to your daily workflow.`,bulletPoints:[`Built from proven Creator methods and frameworks`,`Provides personalized guidance based on your actual work patterns`,`Analyzes your email and calendar to understand your workflow`,`Offers actionable recommendations to improve efficiency`,`Applies CEO-level coaching principles to your daily work`]},dailyWorkflow:[`Workflow analysis – reviews your email and calendar patterns`,`Efficiency assessment – identifies bottlenecks and improvement opportunities`,`Personalized guidance – provides recommendations based on your specific situation`,`Process optimization – suggests ways to streamline your workflow`,`Continuous learning – adapts recommendations as your work patterns evolve`],howItWorks:[{title:`Connects to your tools`,description:`Reads your email and calendar to understand your work patterns and schedule.`},{title:`Applies Creator frameworks`,description:`Uses proven methods and guidelines from top creators who coach CEOs.`},{title:`Provides personalized guidance`,description:`Offers actionable recommendations tailored to your specific workflow and challenges.`}],whoThisIsFor:[`Creators looking to scale their impact`,`Entrepreneurs who want CEO-level coaching insights`,`Anyone seeking to optimize their work processes`,`People who want personalized guidance based on their actual workflow`],whatYoullGet:[{title:`Personalized efficiency recommendations`,description:`Actionable guidance based on your email and calendar patterns`},{title:`Workflow optimization insights`,description:`Identifies bottlenecks and suggests improvements`},{title:`Process improvement strategies`,description:`Applies proven Creator frameworks to your work`},{title:`Continuous coaching support`,description:`Ongoing guidance that adapts to your evolving needs`}],setup:[`Connect your email and calendar`,`Share your Creator methods and guidelines (or use built-in frameworks)`,`Review initial recommendations and adjust preferences`],safetyAndControl:[`Read-only access to email and calendar`,`All recommendations are suggestions, not automatic changes`,`Your data remains private and secure`],faq:[{question:`How does Creator Coach differ from generic productivity tools?`,answer:`Creator Coach is built from actual methods used by top creators who coach CEOs, providing personalized guidance based on your specific workflow patterns rather than generic advice.`},{question:`Can I use my own Creator methods and guidelines?`,answer:`Yes, you can provide your own methods and guidelines, or use the built-in frameworks from proven creators.`},{question:`What data does Creator Coach access?`,answer:`Creator Coach reads your email and calendar to understand your work patterns. It never sends emails or makes calendar changes automatically.`},{question:`How often will I receive guidance?`,answer:`Creator Coach provides continuous guidance and recommendations as it identifies opportunities for improvement in your workflow.`},{question:`Is my data secure?`,answer:`Yes, all data access is read-only and your information remains private and secure.`}],metaTitle:`Creator Coach | Knapsack AI`,metaDescription:`An AI coach built from Creator methods that provides personalized guidance on making your work processes more efficient.`}}),ZA=()=>(0,z.jsx)(Yk,{content:{title:`Daily Coach`,ctaText:`Download the free app`,isProKnap:!1,schedule:`Runs every weekday morning`,price:`Free`,whatItHandles:{shortDe
133scription:`A digital worker that reviews your work and sends personalized feedback on how you can improve and what you should focus on today.`,longDescription:`Getting better at work requires reflection and feedback. This worker reviews your recent documents, emails, CRM, Slack, Notion, and meeting notes to understand what you've been working on. It then sends you a brief summary of the last 24 hours in the context of the week, tells you the most important things to do today, and how to be more effective.`,bulletPoints:[`Reviews your docs, emails, CRM, Slack, Notion, and meeting notes`,`Sends a brief summary of the last 24 hours in context of the week`,`Tells you the most important things to do today`,`Provides personalized feedback on how to improve at work`,`Helps you be more effective with actionable insights`]},dailyWorkflow:[`Data review – scans your docs, emails, CRM, Slack, Notion, and meeting notes from the last 24 hours`,`Context building – understands the week's progress and patterns`,`Summary generation – creates a brief overview of your recent work`,`Coaching delivery – sends personalized feedback, priorities, and effectiveness tips`],howItWorks:[{title:`Connects to your tools`,description:`Reads your documents, emails, CRM, Slack, Notion, and meeting notes.`},{title:`Builds context`,description:`Understands the last 24 hours in the context of your week.`},{title:`Acts through feedback`,description:`Sends personalized insights on what to do today and how to improve.`}],whoThisIsFor:[`People who want personalized feedback on their work`,`Anyone looking to improve their effectiveness`,`Leaders who need clarity on daily priorities`,`Teams focused on continuous improvement`],whatYoullGet:[{title:`Daily summary`,description:`brief overview of the last 24 hours in context of the week`},{title:`Today's priorities`,description:`the most important things to do today`},{title:`Effectiveness tips`,description:`personalized feedback on how to improve`},{title:`Weekly context`,description:`understanding of how today fits into the bigger picture`}],metaTitle:`Daily Coach | Knapsack AI`,metaDescription:`A digital worker that reviews your work and sends personalized feedback on how you can improve.`}}),QA=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Email Autopilot`,ctaText:`Start using Email Autopilot`,ctaOnClick:e,isProKnap:!1,schedule:`Runs hourly on weekdays 8am-6pm`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that drafts email responses to help you stay on top of important communications.`,longDescription:`Email Autopilot checks your inbox every hour during business hours, prioritizes important and urgent emails, and drafts thoughtful responses that match your writing style. It handles meeting requests, follows up on conversations, and helps you respond faster to what matters most.`,bulletPoints:[`Checks emails hourly during business hours (8am-6pm weekdays)`,`Prioritizes flagged emails, direct action requests, and known contacts`,`Drafts responses that match your tone and writing style`,`Handles meeting requests by checking your calendar and suggesting times`,`Skips marketing emails, spam, and messages you've already responded to`]},dailyWorkflow:[`Hourly email check – reviews new emails since last check`,`Smart filtering – ignores marketing, spam, and already-responded emails`,`Priority ranking – flags starred emails, action requests, and known contacts first`,`Response drafting – creates short, natural replies matching thread tone`,`Meeting coordination – suggests calendar times and uses booking links when appropriate`],howItWorks:[{title:`Checks your inbox hourly`,description:`Reviews new emails every hour during weekdays (8am-6pm), focusing on messages that need your response.`},{title:`Prioritizes intelligently`,description:`Flags starred emails first, then direct action requests, then known contacts, ensuring important messages get attention.`},{title:`Drafts natural responses`,description:`Creates short, first-person replies that match the thread's tone, check your calendar for meetings, and handle out-of-office situations.`}],whoThisIsFor:[`Professionals drowning in email`,`Anyone who wants faster response times`],whatYoullGet:[{title:`Faster responses`,description:`drafted replies ready for your review and send`},{title:`Better prioritization`,description:`important emails surfaced automatically`},{title:`Meeting coordination`,description:`calendar integration for scheduling requests`}
133,{title:`Time back`,description:`less time drafting routine email responses`}],metaTitle:`Email Autopilot | Knapsack AI`,metaDescription:`A digital worker that automatically manages your email communications.`}})},$A=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Meeting Notes to CRM`,ctaText:`Start using Meeting Notes to CRM`,ctaOnClick:e,isProKnap:!1,schedule:`Runs after all meetings`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that automatically saves your meeting notes to your CRM, creating records and opportunities as needed.`,longDescription:`Meeting Notes to CRM reads your meeting notes after each meeting, finds the right account, contact, deal, or opportunity in your CRM (or creates them if they don't exist), then logs the meeting activity and sets up follow-up tracking. Works with Sevanta, Zoho, Salesforce, Wealthbox, Copper, and other connected CRMs.`,bulletPoints:[`Finds or creates the right account, contact, deal, or opportunity`,`Logs meeting activity under the correct company or c
133ontact`,`Creates partnership opportunities linking to the company`,`Sets up follow-up tracking for ongoing communication`,`Verifies all records were created with direct links`]},dailyWorkflow:[`Meeting detection – identifies when a meeting has ended`,`Note reading – accesses meeting notes from your calendar or notes app`,`CRM matching – finds existing account, contact, deal, or opportunity records`,`Record creation – creates new records if matches aren't found (Sevanta, Zoho, Salesforce, Wealthbox, Copper, etc.)`,`Activity logging – adds meeting activity and creates opportunities`,`Verification – provides links to confirm all records were created`],howItWorks:[{title:`Reads your meeting notes`,description:`Accesses notes after each meeting ends, identifying key contacts, companies, and discussion points.`},{title:`Finds or creates CRM records`,description:`Matches meeting participants to existing accounts, contacts, deals, or opportunities. Creates new records if needed in your connected CRM.`},{title:`Logs everything automatically`,description:`Adds meeting activity, creates opportunities, sets up follow-up tracking, and provides verification links to all created records.`}],whoThisIsFor:[`Sales teams using CRMs`,`Anyone who wants automated CRM updates`],whatYoullGet:[{title:`Zero manual entry`,description:`all meeting information automatically saved to your CRM`},{title:`Complete records`,description:`contacts, companies, and opportunities created as needed`},{title:`Verified updates`,description:`direct links to confirm everything was saved correctly`},{title:`Better follow-ups`,description:`tracking set up automatically for ongoing communication`}],metaTitle:`Meeting Notes to CRM | Knapsack AI`,metaDescription:`A digital worker that automatically extracts ke
133y information from meeting notes and updates your CRM.`}})},ej=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Travel Outreach`,ctaText:`Start using Travel Outreach`,ctaOnClick:e,isProKnap:!1,schedule:`Runs manually in the chat`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that finds contacts in cities you're visiting and drafts coffee meeting invites based on your calendar availability.`,longDescription:`Travel Outreach checks your calendar for upcoming travel in the next 3 months, finds contacts in your Cloud Drive or CRM who live in those cities, reviews recent email history, and drafts personalized coffee meeting invites using your calendar availability. It asks contacts to suggest a place and ensures you don't miss any opportunities to connect while traveling.`,bulletPoints:[`Scans calendar for all trips in the next 3 months`,`Finds contacts in your Cloud Drive and CRM for each destination city`,`Reviews recent email history for context`,`Drafts personalized coffee meeting invites`,`Uses your calendar availability and asks contacts to suggest locations`]},dailyWorkflow:[`Travel detection – identifies all upcoming trips in the next 3 months`,`Contact discovery – searches Cloud Drive and CRM for contacts in destination cities`,`Email review – checks recent email history for relationship context`,`Calendar check – reviews your availability during travel dates`,`Invite drafting – creates personalized coffee meeting invites with calendar links`,`Location request – asks contacts to suggest meeting places`],howItWorks:[{title:`Finds your upcoming travel`,description:`Checks your calendar for all trips scheduled in the next 3 months and identifies destination cities.`},{title:`Matches contacts to cities`,description:`Searches your Cloud Drive and CRM to find contacts who live in the cities you're visiting, and reviews recent email history.`},{title:`Drafts meeting invites`,description:`Creates personalized coffee meeting invites using your calendar availability, and asks contacts to suggest a meeting place.`}],whoThisIsFor:[`Frequent business travelers`,`Anyone who wants to maximize travel connections`],whatYoullGet:[{title:`No missed connections`,description:`automatically finds all contacts in cities you're visiting`},{title:`Personalized invites`,description:`context-aware messages based on recent email history`},{title:`Calendar integration`,description:`meeting invites use your actual availability`},{title:`Complete coverage`,description:`finds all trips and contacts so nothing falls through the cracks`}],metaTitle:`Travel Outreach | Knapsack AI`,metaDescription:`A digital worker that automatically reaches out to contacts when you're traveling to their area.`}})},tj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`LP Quarterly Update`,tag:`For VCs`,ctaText:`Start using LP Quarterly Update`,ctaOnClick:e,isProKnap:!1,schedule:`Runs on the last day of each quarter`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that drafts engaging quarterly updates for Limited Partners using all your recent fund data.`,longDescription:`LP Quarterly Update pulls data from Sevanta MyDealflow (portfolio progress, deal pipeline, financials), Gmail (investor communications), cloud drive files (fund models, reports, memos), calendar (meetings and events), and meeting notes (team discussions) to create clear, structured, and compelling quarterly updates that highlight key wins, challenges, and forward-looking priorities.`,bulletPoints:[`Pulls data from Sevanta MyDealflow for portfolio and deal pipeline information`,`Reviews Gmail for important investor, partner, and portfolio company communications`,`Accesses cloud drive files including fund models, financial reports, and investment memos`,`Incorporates calendar events like investor meetings, board calls, and key milestones`,`Includes meeting notes from team discussions and portfolio reviews`]},dailyWorkflow:[`Data aggregation – pulls portfolio progress and deal pipeline from Sevanta MyDealflow`,`Communication review – analyzes important emails with investors, partners, and portfolio companies`,`Document analysis – reviews fund models, financial reports, investment memos, and strategy docs`,`Event tracking – incorporates investor meetings, board calls, and key events from calendar`,`Note integration – includes insights from team discussions and portfolio review meetings`,`Report drafting – creates engaging, structured update with metrics, wins, challenges, and priorities`],howItWorks:[{title:`Gathers comprehensive data`,description:`Pulls information from Sevanta MyDealflow, Gmail, cloud drive files, calendar, and meeting notes to get a complete picture of fund activity.`},{title:`Structures the update`,description:`Creates clear, compelling updates highlighting key wins, challenges, and forward-looking priorities with data and metrics where possible.`},{title:`Uses professional tone`,description:`Writes in a professional but approachable tone that effectively communicates fund performance to Limited Partners.`}],whoThisIsFor:[`Venture capital firms`,`Fund managers communicating with LPs`],whatYoullGet:[{title:`Comprehensive updates`,description:`all fund data automatically compiled into one report`},{title:`Data-driven insights`,description:`metrics and key information included throughout`},{title:`Time savings`,description:`no manual data gathering or report writing each quarter`},{title:`Consistent quality`,description:`professional, structured updates delivered on schedule`}
133],metaTitle:`LP Quarterly Update | Knapsack AI`,metaDescription:`A digital worker that automatically generates quarterly updates for Limited Partners.`}})},nj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Pitch Evaluator`,tag:`For VCs`,ctaText:`Start using Pitch Evaluator`,ctaOnClick:e,isProKnap:!1,schedule:`Runs after all meetings`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that evaluates pitch meetings, scores deals across key dimensions, and updates your CRM with recommendations.`,longDescription:`Pitch Evaluator analyzes email history and pitch-meeting transcripts to evaluate deals. It uses internal emails and docs to understand your fund's investment thesis, then scores each pitch on Team, Market, Product, Traction, Thesis Fit, and Deal Setup (0-10 each). It classifies deals as A (strong fit), B (promising), C (weak fit), or D (decline), updates the CRM, and drafts appropriate emails (introductions for A/B deals, polite rejections for C/D deals).`,bulletPoints:[`Only runs for meetings that appear to be founder pitches`,`Analyzes email history and pitch-meeting transcripts`,`Uses internal docs to understand your fund's investment thesis`,`Scores six dimensions (Team, Market, Product, Traction, Thesis Fit, Deal Setup)`,`Classifies deals as A, B, C, or D and updates CRM accordingly`]},dailyWorkflow:[`Meeting detection – identifies meetings that appear to be founder pitches`,`Email and transcript analysis – reviews email history and meeting transcripts`,`Thesis inference – uses internal emails and docs to understand fund investment criteria`,`Company summary – summarizes what the company does, stage, traction, and team`,`Dimensional scoring – scores Team, Market, Product, Traction, Thesis Fit, and Deal Setup (0-10)`,`Classification – computes average score and classifies as A (≥9), B (7-8.9), C (5-6.9), or D (<5)`,`CRM update – adds evaluation note and grade to CRM record`,`Email drafting – creates intro email for A/B deals or rejection email for C/D deals`,`Sevanta updates – proposes moving deals to Stage D (A/B) or Inactive (C/D)`],howItWorks:[{title:`Analyzes pitch meetings`,description:`Reviews email history and meeting transcripts for pitch meetings, using internal docs to understand your fund's investment thesis.`},{title:`Scores and classifies`,description:`Scores six dimensions (0-10 each), computes average, and classifies deals as A (strong fit), B (promising), C (weak fit), or D (decline).`},{title:`Takes action`,description:`Updates CRM with evaluation, drafts intro emails for A/B deals or rejection emails for C/D deals, and proposes Sevanta stage movements.`}],whoThisIsFor:[`Venture capital firms`,`Funds using Sevanta for deal tracking`],whatYoullGet:[{title:`Structured evaluations`,description:`consistent scoring across six key dimensions with clear classifications`},{title:`Automated CRM updates`,description:`evaluation notes and grades added to records automatically`},{title:`Smart email drafting`,description:`intro emails for promising deals, polite rejections for others`},{title:`Sevanta integration`,description:`proposes stage movements based on deal quality`}],metaTitle:`Pitch Evaluator | Knapsack AI`,metaDescription:`A digital worker that analyzes pitch decks and provides structured evaluations.`}})},rj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Investment Memorandum Drafter`,tag:`Designed for venture capital`,ctaText:`Start using Investment Memorandum Drafter`,ctaOnClick:e,isProKnap:!1,schedule:`Runs manually in the chat`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that automatically drafts comprehensive investment memos for companies under diligence.`,longDescription:`Investment Memorandum Drafter pulls data from CRM, meeting notes, financial models, market research, and deal room documents to create professional investment memos. It follows your firm's template and tone guidelines, includes all standard sections (executive summary, market analysis, team, financials, risks, recommendation), and can generate outreach drafts to investors, founders, and industry experts for additional diligence support.`,bulletPoints:[`Confirms target company before drafting`,`Aggregates data from CRM, documents, meeting notes, emails, and calendar`,`Drafts memos following your firm's template and tone from examples`,`Includes all standard sections (executive summary, market analysis, team, financials, risks, recommendation)`,`Generates outreach drafts to investors, founders, and experts for additional diligence`]},dailyWorkflow:[`Company confirmation – confirms which company the memo 
133will cover`,`Data aggregation – pulls CRM data (stage, deal owner, interactions, valuation, round type)`,`Document synthesis – reviews pitch decks, financials, term sheets, product overviews`,`Qualitative analysis – incorporates meeting notes, emails, and founder narratives`,`Calendar integration – includes investor meetings and diligence calls`,`Memo drafting – creates comprehensive memo following internal template and tone`,`Outreach generation – drafts emails to investors, founders, and experts for additional support`,`Document output – generates formatted Google Doc or PDF with executive summary and visual highlights`],howItWorks:[{title:`Confirms and gathers data`,description:`Confirms the target company, then pulls data from CRM, documents, meeting notes, emails, and calendar to get a complete picture.`},{title:`Drafts comprehensive memo`,description:`Creates professional investment memo following your firm's template (or standard format), including executive summary, market analysis, team, financials, risks, and recommendation.`},{title:`Generates outreach and output`,description:`Drafts emails to investors, founders, and experts for additional diligence support, then outputs formatted document with summary and highlights.`}],whoThisIsFor:[`Venture capital firms`,`Teams conducting investment diligence`],whatYoullGet:[{title:`Complete memos`,description:`comprehensive investment memos from unstructured diligence data`},{title:`Consistent format`,description:`follows your firm's template and tone automatically`},{title:`Time savings`,description:`no manual data gathering or document assembly`},{title:`Outreach support`,description:`drafts emails to gather additional diligence information`}],metaTitle:`Investment Memorandum Drafter | Knapsack AI`,metaDescription:`A digital worker that automatically drafts comprehensive investment memos for companies under diligence.`}})},ij=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Due Diligence`,tag:`Designed for venture capital`,ctaText:`Start using Due Diligence`,ctaOnClick:e,isProKnap:!1,schedule:`Runs manually in the chat`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that assists investment teams in evaluating companies under consideration for investment.`,longDescription:`Due Diligence helps VC teams evaluate companies by analyzing deal room documents (financials, cap tables, term sheets, legal contracts, product roadmaps), cross-referencing CRM data and meeting notes, generating outreach drafts to investors and founders, and automatically flagging compliance items. It creates investment summaries with headline metrics, key risks, governance terms, and missing documents.`,bulletPoints:[`Confirms target company before proceeding`,`Analyzes deal room documents (Google Drive, Box, Dropbox) for financials, cap tables, contracts, and product docs`,`Cross-references deal room data with CRM entries and past notes`,`Generates outreach drafts to investors, founders, and industry experts`,`Flags missing compliance items (NDAs, KYC/AML, conflicts) and generates diligence summaries`]},dailyWorkflow:[`Company confirmation – confirms which company to run diligence on`,`Deal room analysis – monitors and analyzes shared deal room (Google Drive, Box, Dropbox)`,`Document extraction – summarizes financial statements, cap tables, term sheets, legal contracts, product roadmaps`,`Investment summary – generates headline metrics (ARR, growth rate, churn, burn multiple, runway), key risks, governance terms`,`CRM cross-check – matches deal room data with CRM entries and past notes about company or founders`,`Outreach generation – drafts emails to investors for references, founders for missing docs, and experts for validation`,`Compliance flagging – identifies missing NDAs, KYC/AML checks, conflicts of interest`,`Reporting – generates diligence summary deck and populates CRM checklist`],howItWorks:[{title:`Confirms and analyzes`,description:`Confirms the target company, then continuously monitors and analyzes the deal room to extract key materials like financials, cap tables, contracts, and product docs.`},{title:`Enriches and cross-checks`,description:`Cross-references deal room data with CRM entries and past notes, matching counterparties and investors to enrich profiles.`},{title:`Generates outreach and reports`,description:`Drafts outreach emails to investors, founders, and experts, flags compliance items, and generates diligence summary decks with investment summaries.`}],whoThisIsFor:[`Venture capital firms`,`Investment teams conducting diligence`],whatYoullGet:[{title:`Semi-automated process`,description:`reduces admin overhead and increases insight accuracy`},{title:`Complete analysis`,description:`investment summaries with headline metrics, risks, and governance terms`},{title:`Proactive outreach`,description:`draft emails to investors, founders, and experts for additional information`}
133,{title:`Compliance tracking`,description:`automatically flags missing compliance items and generates structured reports`}],metaTitle:`Due Diligence | Knapsack AI`,metaDescription:`A digital worker that conducts structured due diligence on investment opportunities.`}})},aj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Quarterly Meeting Prep`,tag:`Designed for financial advisors`,ctaText:`Start using Quarterly Meeting Prep`,ctaOnClick:e,isProKnap:!1,schedule:`Runs manually in the chat`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that generates complete, data-informed quarterly meeting prep documents for financial advisors.`,longDescription:`Quarterly Meeting Prep pulls the latest data from CRM (HubSpot, Wealthbox, Redtail, Salesforce), email, calendar, and cloud drives to create comprehensive meeting prep documents. It includes client overview, financial snapshot, milestones, cash flow updates, life events, action items, opportunities, and risks. If information is missing, it drafts emails to clients requesting the needed data.`,bulletPoints:[`Pulls latest client data from CRM, email, calendar, and cloud drives`,`Creates comprehensive prep documents with client overview, financial snapshot, milestones, and action items`,`Identifies time-sensitive items like RMDs, college planning, insurance reviews, and tax events`,`Flags opportunities and risks for discussion`,`Drafts client emails requesting missing information if needed`]},dailyWorkflow:[`Client confirmation – asks which client if not clear from context`,`Data aggregation – pulls client notes, contact data, financial goals, and last-meeting summaries from CRM`,`Document review – accesses linked financial plans, investment summaries, and meeting notes`,`Financial snapshot – compiles portfolio value, cash, investments, insurance, liabilities, and quarterly performance`,`Milestone identification – flags retirement progress, RMDs, college planning, insurance reviews, estate/tax events`,`Life event tracking – notes job changes, health updates, relocations, family milestones from CRM activities`,`Action item compilation – lists items from last meeting, open tasks, and recommendations to discu
133ss`,`Email drafting – creates client emails requesting missing information if needed`],howItWorks:[{title:`Gathers comprehensive data`,description:`Pulls latest client information from CRM, email, calendar, and cloud drives, including portfolio data, goals, notes, and meeting history.`},{title:`Creates structured prep document`,description:`Generates 2-3 page meeting prep with client overview, financial snapshot, milestones, cash flow, life events, action items, opportunities, and risks.`},{title:`Requests missing information`,description:`If data is missing, drafts professional client emails (without markdown or all caps) requesting the needed information before the meeting.`}],whoThisIsFor:[`Financial advisors`,`Advisory firms using CRMs like HubSpot, Wealthbox, Redtail, or Salesforce`],whatYoullGet:[{title:`Complete prep documents`,description:`comprehensive 2-3 page summaries with all client context and financial data`},{title:`Time-sensitive flags`,description:`RMDs, college planning, insurance reviews, and tax events clearly identified`},{title:`Action items`,description:`clear list of topics to discu
133ss, follow-ups, and recommendations`},{title:`Proactive communication`,description:`automated email drafts to clients requesting missing information`}],metaTitle:`Quarterly Meeting Prep | Knapsack AI`,metaDescription:`A digital worker that prepares comprehensive materials for quarterly client meetings.`}})},oj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Tax Planning Meeting Prep`,tag:`Designed for financial advisors`,ctaText:`Start using Tax Planning Meeting Prep`,ctaOnClick:e,isProKnap:!1,schedule:`Runs the first Tuesday of June and October at 9 AM`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that checks for clients requiring tax planning meetings and creates meeting prep summaries and client email drafts.`,longDescription:`Tax Planning Meeting Prep checks all sources for clients requiring tax planning meetings, then creates two outputs: (1) an internal meeting prep summary with client overview, tax-related items (Roth conversions, RMDs, charitable giving, tax-loss harvesting, retirement plan funding, estate considerations), tax optimization opportunities, and action items; (2) a client email draft confirming the meeting and requesting missing data, customized to your tone.`,bulletPoints:[`Checks CRM, email, calendar, and cloud drive for clients requiring tax planning meetings`,`Creates advisor-facing meeting prep with tax-related items, optimization opportunities, and action items`,`Identifies Roth conversions, RMDs, charitable giving, tax-loss harvesting, and retirement plan funding needs`,`Drafts client emails confirming meetings and requesting missing data (W-2s, realized gains, donation receipts)`,`Customizes email tone based on your previous similar emails to the client`]},dailyWorkflow:[`Client identification – checks sources for clients requiring tax planning meetings (asks if unclear)`,`Data aggregation – pulls client profiles, notes, financial goals, tax/retirement/charitable planning records from CRM`,`Task review – identifies tasks or opportunities tagged "year-end," "RMD," or "tax planning"`,`Meeting prep creation – generates advisor-facing summary with client overview, tax items, opportunities, and action items`,`Tax item analysis – reviews Roth conversions, RMDs, charitable giving, tax-loss harvesting, retirement funding, estate considerations`,`Email drafting – creates client email confirming meeting and requesting missing data, customized to your tone`,`Document output – separates meeting prep and client email sections clearly`],howItWorks:[{title:`Identifies clients and gathers data`,description:`Checks all sources for clients requiring tax planning meetings, then pulls client data, tax records, and planning information from CRM, email, calendar, and cloud drive.`},{title:`Creates meeting prep summary`,description:`Generates advisor-facing prep with client overview, tax-related items (Roth conversions, RMDs, charitable giving, tax-loss harvesting, retirement funding), optimization opportunities, and action items.`},{title:`Drafts client communication`,description:`Creates client email confirming the meeting and requesting missing data (W-2s, realized gains, donation receipts), customized to your tone based on previous similar emails.`}],whoThisIsFor:[`Financial advisors`,`Advisory firms using CRMs like HubSpot, Wealthbox, Redtail, or Salesforce`],whatYoullGet:[{title:`Complete meeting prep`,description:`advisor-facing summary with all tax-related items, opportunities, and action items`},{title:`Proactive client communication`,description:`drafted emails confirming meetings and requesting needed information`},{title:`Tax optimization identification`,description:`Roth conversions, RMDs, charitable giving, tax-loss harvesting, and retirement funding opportunities flagged`},{title:`Personalized tone`,description:`client emails customized to match your previous communication style`}],metaTitle:`Tax Planning Meeting Prep | Knapsack AI`,metaDescription:`A digital worker that prepares comprehensive materials for tax planning meetings.`}})},sj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Year End Tax Planning`,tag:`Designed for financial advisors`,ctaText:`Start using Year End Tax Planning`,ctaOnClick:e,isProKnap:!1,schedule:`Runs manually in the chat`,price:`Free`,whatItHandles:{shortDe
133scription:`A digital worker that checks for previous year tax returns and drafts client emails for year-end tax planning meetings.`,longDescription:`Year End Tax Planning checks your cloud drive for the previous year's tax return for each client. If the return doesn't exist, it drafts an email requesting delivery. If it does exist, it drafts an email referencing action items from the previous summary email and proposes an agenda for the next meeting focused on year-end events like tax and charitable planning, portfolio and financial structure review, and priority setting for the next year.`,bulletPoints:[`Checks cloud drive for previous year tax returns for each client`,`Drafts email requesting tax return delivery if it doesn't exist`,`References action items from previous summary emails if return exists`,`Proposes meeting agenda focused on year-end tax and charitable planning`,`Includes portfolio review and priority setting for the next year`]},dailyWorkflow:[`Client identification – identifies clients needing year-end tax planning`,`Cloud drive check – searches for previous year tax return for each client`,`Email drafting (missing return) – creates email requesting delivery of tax return if not found`,`Action item review – references action items from previous summary emails if return exists`,`Agenda creation – proposes meeting agenda with year-end tax planning, charitable planning, portfolio review, and priority setting`,`Email drafting (return exists) – creates email with action items and proposed agenda`],howItWorks:[{title:`Checks for tax returns`,description:`Searches your cloud drive for the previous year's tax return for each client.`},{title:`Drafts appropriate email`,description:`If return is missing, drafts email requesting delivery. If it exists, drafts email referencing previous action items and proposing year-end meeting agenda.`},{title:`Focuses on year-end planning`,description:`Proposes agenda covering tax and charitable planning, portfolio and financial structure review, and priority setting for the next year.`}],whoThisIsFor:[`Financial advisors`,`Advisors conducting year-end tax planning`],whatYoullGet:[{title:`Proactive client communication`,description:`automated emails requesting tax returns or proposing year-end meetings`},{title:`Action item continuity`,description:`references previous summary emails to maintain continuity`},{title:`Structured agendas`,description:`proposed meeting agendas covering tax planning, charitable planning, and portfolio review`},{title:`Year-end focus`,description:`emphasizes year-end events and priority setting for the next year`}],metaTitle:`Year End Tax Planning | Knapsack AI`,metaDescription:`A digital worker that prepares comprehensive year-end tax planning strategies.`}})},cj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Discovery Meeting Prep`,tag:`Designed for financial advisors`,ctaText:`Start using Discovery Meeting Prep`,ctaOnClick:e,isProKnap:!1,schedule:`Runs before discovery meetings`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that prepares materials and questions for client discovery meetings.`,longDescription:`Discovery Meeting Prep researches potential clients, prepares relevant questions, and organizes materials to help you conduct effective discovery meetings that uncover client needs and goals.`,bulletPoints:[`Researches potential clients`,`Prepares discovery questions`,`Organizes meeting materials`,`Identifies relevant service offerings`,`Creates personalized meeting agendas`]},dailyWorkflow:[`Client research – gathers information about potential clients`,`Question preparation – creates relevant discovery questions`,`Material organization – compiles service information and resources`,`Agenda creation – structures meeting flow for effective discovery`,`Follow-up planning – prepares next steps and follow-up materials`],howItWorks:[{title:`Researches clients`,description:`Gathers information about potential clients from available sources.`},{title:`Prepares questions`,description:`Creates relevant discovery questions based on client profile.`},{title:`Organizes materials`,description:`Compiles service information and resources for the meeting.`}],whoThisIsFor:[`Financial advisors`,`Sales professionals conducting discovery`],whatYoullGet:[{title:`Better meetings`,description:`well-prepared discovery sessions`},{title:`Higher conversion`,description:`effective discovery leads to more clients`},{title:`Time savings`,description:`automated preparation of meeting materials`}
133,{title:`Professional image`,description:`demonstrates preparation and expertise`}],metaTitle:`Discovery Meeting Prep | Knapsack AI`,metaDescription:`A digital worker that prepares materials and questions for client discovery meetings.`}})},lj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Weekend Strategy Reflections`,ctaText:`Start using Weekend Strategy Reflections`,ctaOnClick:e,isProKnap:!1,schedule:`Runs every weekend`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that provides weekly strategic reflections and insights.`,longDescription:`Weekend Strategy Reflections reviews your week's work, identifies patterns, highlights achievements, and provides strategic insights to help you plan and improve for the coming week.`,bulletPoints:[`Reviews week's activities and outcomes`,`Identifies patterns and trends`,`Highlights key achievements`,`Provides strategic insights`,`Suggests improvements for next week`]},dailyWorkflow:[`Week review – analyzes activities, meetings, and outcomes from the week`,`Pattern identification – finds recurring themes and trends`,`Achievement recognition – highlights key wins and progress`,`Insight generation – provides strategic observations and recommendations`,`Report delivery – sends comprehensive weekend reflection`],howItWorks:[{title:`Reviews your week`,description:`Analyzes your calendar, emails, and work activities from the past week.`},{title:`Identifies patterns`,description:`Finds trends, patterns, and areas for improvement.`},{title:`Provides insights`,description:`Delivers strategic reflections and recommendations for the week ahead.`}],whoThisIsFor:[`Executives and leaders`,`Anyone seeking strategic improvement`],whatYoullGet:[{title:`Better planning`,description:`strategic insights for the week ahead`},{title:`Pattern recognition`,description:`identifies trends and opportunities`},{title:`Continuous improvement`,description:`weekly feedback on effectiveness`},{title:`Strategic thinking`,description:`time for reflection and planning`}],metaTitle:`Weekend Strategy Reflections | Knapsack AI`,metaDescription:`A digital worker that provides weekly strategic reflections and insights.`}})},uj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Meeting Prep`,ctaText:`Start using Meeting Prep`,ctaOnClick:e,isProKnap:!1,schedule:`Runs at 8 AM every day`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that reviews today's meetings, looks up relevant preparation info, and sends you a meeting prep email.`,longDescription:`Meeting Prep reviews your meetings for today from your calendar, looks up relevant information you need to prepare, and sends you a comprehensive meeting prep report in an email. Each meeting prep includes location details, background on relationships and previous interactions, insights about participants, action items and proposed questions, and an icebreaker. It speaks to you in second person as your assistant, keeping sections short with bullets and including data where possible.`,bulletPoints:[`Reviews all meetings scheduled for today from your calendar`,`Looks up relevant information needed for preparation`,`Sends comprehensive meeting prep email with location, background, insights, action items, and icebreaker`,`Speaks in second person as your assistant, keeping sections concise with bullets`,`Includes data and relevant links to documents or web pages`]},dailyWorkflow:[`Calendar review – identifies all meetings scheduled for today`,`Information gathering – looks up relevant info about participants, companies, and previous interactions`,`Background research – reviews previous meetings, emails, and documents related to each meeting`,`Insight compilation – gathers recent news, social media posts, and context about external participants`,`Prep email creation – generates meeting prep email with location, background, insights, action items, questions, and icebreaker`,`Email delivery – sends comprehensive meeting prep report to you`],howItWorks:[{title:`Reviews today's meetings`,description:`Identifies all meetings scheduled for today from your calendar.`},{title:`Gathers preparation info`,description:`Looks up relevant information about participants, previous interactions, documents, and context needed for each meeting.`},{title:`Sends prep email`,description:`Creates and sends comprehensive meeting prep email with location, background, insights, action items, proposed questions, and icebreaker for each meeting.`}],whoThisIsFor:[`Professionals with many meetings`,`Anyone wanting better daily meeting preparation`],whatYoullGet:[{title:`Daily prep emails`,description:`comprehensive meeting prep delivered every morning at 8 AM`},{title:`Complete context`,description:`background, insights, action items, and proposed questions for each meeting`},{title:`Better outcomes`,description:`well-prepared meetings with relevant data and talking points`},{title:`Time savings`,description:`automated gathering and organization of meeting information`}],metaTitle:`Meeting Prep | Knapsack AI`,metaDescription:`A digital worker that prepares you for meetings by gathering context and creating agendas.`}})},dj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Meeting Follow Up`,ctaText:`Start using Meeting Follow Up`,ctaOnClick:e,isProKnap:!1,schedule:`Runs after every meeting`,price:`Free`,whatItHandles:{shortDe
133scription:`A digital worker that writes conversational follow-up emails from recorded and transcribed meetings.`,longDescription:`Meeting Follow Up writes warm, concise, action-oriented follow-up emails from the last meeting that was recorded and transcribed. It uses exact email addresses from the calendar event, matches tone with previous emails to participants, uses data from cloud drive, CRM, and calendar for context (especially for proper nouns, product names, and terms of art), thanks participants, recaps key points, highlights 1-2 specific next steps or value-adds, and puts the email in drafts. The email feels personal and not salesy—like a trusted peer checking in.`,bulletPoints:[`Uses exact email addresses from calendar event for recipients`,`Matches tone with previous emails to meeting participants`,`Uses cloud drive, CRM, and calendar data for context and proper noun spelling`,`Writes warm, concise, action-oriented emails that feel personal, not salesy`,`Thanks participants, recaps key points, highlights 1-2 next steps, and puts email in drafts`]},dailyWorkflow:[`Meeting detection – identifies when a meeting has ended and was recorded/transcribed`,`Transcript review – reads meeting transcript to understand what was discussed`,`Context gathering – pulls data from cloud drive, CRM, and calendar for proper nouns, product names, and terms of art`,`Email address extraction – uses exact email addresses from calendar event`,`Tone matching – reviews previous emails to participants to match communication style`,`Email drafting – creates warm, conversational follow-up with thanks, recap, and 1-2 next steps`,`Draft creation – puts email in drafts with proper subject line formatting (capitalize first word and proper nouns only)`],howItWorks:[{title:`Detects recorded meetings`,description:`Identifies when a meeting has ended and was recorded and transcribed.`},{title:`Gathers context`,description:`Uses cloud drive, CRM, and calendar data for context, especially for spelling proper nouns, product names, and terms of art. Matches tone with previous emails.`},{title:`Drafts follow-up email`,description:`Creates warm, concise, action-oriented email thanking participants, recapping key points, highlighting 1-2 next steps, and puts it in drafts. Uses exact email addresses from calendar event.`}],whoThisIsFor:[`Professionals with many meetings`,`Anyone wanting better meeting follow-up`],whatYoullGet:[{title:`Automatic follow-ups`,description:`warm, conversational emails after every recorded meeting`},{title:`Personal tone`,description:`emails feel like a trusted peer checking in, not salesy`},{title:`Accurate context`,description:`uses CRM, cloud drive, and calendar data for proper nouns and context`},{title:`Time savings`,description:`automated drafting of follow-up emails ready in drafts`}],metaTitle:`Meeting Follow Up | Knapsack AI`,metaDescription:`A digital worker that handles meeting follow-ups by sending summaries and action items.`}})},fj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Workflow Builder`,ctaText:`Start building workflows`,ctaOnClick:e,isProKnap:!1,schedule:`Runs manually in the chat`,price:`Free`,whatItHandles:{shortDescription:`A digital worker that finds operational and strategic bottlenecks and creates custom AI workflows to make you 10x more productive.`,longDescription:`The Workflow Builder looks in your email, calendar, CRM (if available), and meeting transcripts to find operational and strategic bottlenecks. It then creates AI workflows that can run asynchronously using the tools you have available to make you 10x more productive. It lists them and designs the prompts for them.`,bulletPoints:[`Analyzes email, calendar, CRM, and meeting transcripts for bottlenecks`,`Identifies operational and strategic inefficiencies`,`Creates custom AI workflows that run asynchronously`,`Designs prompts for each workflow using available tools`,`Focuses on solutions that make you 10x more productive`]},dailyWorkflow:[`Data analysis – reviews email, calendar, CRM, and meeting transcripts`,`Bottleneck identification – finds operational and strategic inefficiencies`,`Opportunity assessment – identifies tasks that could be automated or improved`,`Workflow design – creates custom agents that run asynchronously`,`Prompt creation – designs detailed prompts for each workflow using available tools`,`Productivity focus – ensures each workflow targets 10x productivity improvements`,`Recommendation delivery – lists all workflows with their designed prompts`],howItWorks:[{title:`Analyzes your work`,description:`Reviews your email, calendar, CRM (if available), and meeting transcripts to understand your workflow.`},{title:`Finds bottlenecks`,description:`Identifies operational and strategic bottlenecks that are slowing you down.`},{title:`Creates custom AI workflows`,description:`Designs AI workflows that run asynchronously using your available tools, with prompts designed to make you 10x more productive.`}],whoThisIsFor:[`Anyone wanting custom automation`,`People looking to identify productivity bottlenecks`],whatYoullGet:[{title:`Bottleneck identification`,description:`finds operational and strategic inefficiencies in your workflow`},{title:`Custom AI workflows`,description:`agents designed specifically for your bottlenecks`},{title:`10x productivity`,description:`focuses on solutions that dramatically improve productivity`},{title:`Ready-to-use prompts`,description:`complete prompts designed for each workflow`}],metaTitle:`AI Workflow Builder | Knapsack AI`,metaDescription:`A digital worker that helps you create custom AI workflows for your specific needs.`}})},pj=()=>{let{openCalendlyModal:e}=Xy();return(0,z.jsx)(Yk,{content:{title:`Salesforce Case Review`,ctaText:`Start using Salesforce Case Review`,ctaOnClick:e,isProKnap:!1,schedule:`Runs continuously`,price:`Free`,whatItHandles:{shortDe
133scription:`A digital worker that reviews and analyzes Salesforce cases to identify patterns and priorities.`,longDescription:`Salesforce Case Review monitors your Salesforce cases, analyzes patterns, identifies urgent issues, and provides insights to help you prioritize and resolve cases more effectively.`,bulletPoints:[`Monitors Salesforce cases`,`Identifies urgent and high-priority cases`,`Analyzes case patterns and trends`,`Suggests resolution strategies`,`Tracks case resolution metrics`]},dailyWorkflow:[`Case monitoring – continuously reviews new and updated cases`,`Priority assessment – identifies urgent cases needing attention`,`Pattern analysis – finds trends and recurring issues`,`Recommendation generation – suggests resolution approaches`,`Reporting – provides case metrics and insights`],howItWorks:[{title:`Connects to Salesforce`,description:`Integrates with your Salesforce instance to access cases.`},{title:`Analyzes cases`,description:`Reviews case details, history, and patterns using AI.`},{title:`Provides insights`,description:`Delivers prioritized recommendations and case analysis.`}],whoThisIsFor:[`Support teams using Salesforce`,`Customer success managers`],whatYoullGet:[{title:`Better prioritization`,description:`identifies most urgent cases first`},{title:`Pattern recognition`,description:`finds recurring issues and trends`},{title:`Faster resolution`,description:`suggested strategies for common problems`},{title:`Improved metrics`,description:`better case handling and resolution times`}],metaTitle:`Salesforce Case Review | Knapsack AI`,metaDescription:`A digital worker that reviews and analyzes Salesforce cases to identify patterns and priorities.`}})};function mj(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.8,staggerChildren:.15,delayChildren:.2}}},r={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Pricing | Knapsack AI`}),(0,z.jsx)(`meta`,{name:`description`,content:`Simple, transparent pricing for Knapsack AI. Start with $50/month or contact us for custom enterprise plans.`})]}),(0,z.jsx)(`div`,{className:`bg-white min-h-screen flex flex-col items-center relative w-full`,children:(0,z.jsxs)(`div`,{className:`w-full max-w-6xl mx-auto px-4 lg:px-16 py-12 lg:py-20`,children:[(0,z.jsxs)(V.div,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`text-center mb-12 lg:mb-16`,children:[(0,z.jsx)(`h1`,{className:`text-[48px] lg:text-[64px] font-Spectral leading-[1.1] tracking-[-.03em] text-black mb-4`,children:`Simple, transparent pricing`}),(0,z.jsx)(`p`,{className:`text-[18px] lg:text-[20px] text-[#222222] opacity-80 leading-[1.4] max-w-2xl mx-auto`,children:`Start with a plan that fits your needs. Upgrade or customize as you grow.`})]}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12`,children:[{name:`Starter`,price:`$50`,period:`/month`,description:`Perfect for individuals and small teams`,features:[`100 credits per month`,`Meeting Note Taker (typical usage fits plan)`,`Daily Coach`,`Email Autopilot`,`Meeting Follow-ups`,`Access to all starter automations`,`Fair-use limits apply during trial`],cta:`Start free trial`,ctaLink:`https://studio.knapsack.ai`,popular:!1},{name:`Pro`,price:`Custom`,period:``,description:`For teams and organizations`,features:[`Custom credit allocation`,`Priority support`,`Advanced automations`,`Custom integrations`,`Team collaboration features`,`Dedicated account manager`,`Custom pricing based on usage`],cta:`Contact sales`,ctaLink:`#`,popular:!0}].map((e,t)=>(0,z.jsxs)(V.div,{variants:r,className:`bg-gradient-to-br from-white to-gray-50 border-2 rounded-2xl p-8 lg:p-10 flex flex-col ${e.popular?`border-[#ffb247] shadow-lg`:`border-gray-200`}`,children:[e.popular&&(0,z.jsx)(`div`,{className:`mb-4`,children:(0,z.jsx)(`span`,{className:`inline-block bg-[#ffb247] text-black text-sm font-medium px-3 py-1 rounded-full`,children:`Most Popular`})}),(0,z.jsx)(`h2`,{className:`text-[32px] lg:text-[40px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] mb-2`,children:e.name}),(0,z.jsxs)(`div`,{className:`flex items-baseline gap-2 mb-4`,children:[(0,z.jsx)(`span`,{className:`text-[48px] lg:text-[56px] font-Spectral font-semibold text-[#222222]`,children:e.price}),e.period&&(0,z.jsx)(`span`,{className:`text-[18px] lg:text-[20px] text-[#222222] opacity-70`,children:e.period})]}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-75 mb-6`,children:e.description}),(0,z.jsx)(`ul`,{className:`space-y-3 mb-8 flex-1`,children:e.features.map((e,t)=>(0,z.jsxs)(`li`,{className:`flex items-start gap-3`,children:[(0,z.jsx)(hm,{className:`w-5 h-5 text-[#003a53] flex-shrink-0 mt-0.5`}
133),(0,z.jsx)(`span`,{className:`text-[14px] lg:text-[16px] text-[#222222] opacity-80 leading-[1.4]`,children:e})]},t))}),(0,z.jsx)(`a`,{href:e.ctaLink,target:e.ctaLink.startsWith(`http`)?`_blank`:void 0,rel:e.ctaLink.startsWith(`http`)?`noopener noreferrer`:void 0,className:`w-full text-center py-4 px-6 rounded-full font-medium text-base transition-all ${e.popular?`bg-[#ffb247] hover:bg-[#ffa733] text-black`:`bg-[#003a53] hover:bg-[#004461] text-white`}`,children:e.cta})]},e.name))}),(0,z.jsxs)(V.div,{variants:r,className:`bg-gray-50 border border-gray-200 rounded-2xl p-6 lg:p-8 mb-8`,children:[(0,z.jsx)(`h3`,{className:`text-[20px] lg:text-[24px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] mb-3`,children:`Fair Use Policy`}),(0,z.jsxs)(`p`,{className:`text-[14px] lg:text-[16px] text-[#222222] opacity-75 leading-[1.4] mb-4`,children:[(0,z.jsx)(`strong`,{children:`Fair-use limits apply during trial.`}),` This includes limits on tokens and meeting hours to ensure quality service for all users.`]}),(0,z.jsx)(`p`,{className:`text-[14px] lg:text-[16px] text-[#222222] opacity-75 leading-[1.4]`,children:`We may reach out if usage is extreme to discuss a plan that better fits your needs.`})]}),(0,z.jsxs)(V.div,{variants:r,className:`bg-white border border-gray-200 rounded-2xl p-6 lg:p-8`,children:[(0,z.jsx)(`h3`,{className:`text-[20px] lg:text-[24px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] mb-4`,children:`What typical usage covers`}),(0,z.jsxs)(`div`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h4`,{className:`text-[16px] lg:text-[18px] font-medium text-[#222222] mb-2`,children:`Meeting Note Taker`}),(0,z.jsx)(`p`,{className:`text-[14px] lg:text-[16px] text-[#222222] opacity-75 leading-[1.4]`,children:`The Starter plan typically covers 20-30 hours of meeting transcription per month, which fits most individual users and small teams.`})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h4`,{className:`text-[16px] lg:text-[18px] font-medium text-[#222222] mb-2`,children:`Daily Coach & Email Autopilot`}),(0,z.jsx)(`p`,{className:`text-[14px] lg:text-[16px] text-[#222222] opacity-75 leading-[1.4]`,children:`These automations use credits efficiently and are designed to fit comfortably within the Starter plan's credit allocation.`})]})]})]})]})})]})}function hj(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.8,staggerChildren:.15,delayChildren:.2}}},r={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Meeting Note Taker | Knapsack AI`}),(0,z.jsx)(`meta`,{name:`description`,content:`Automatically transcribe meetings and generate structured notes with action items. No video recording, just smart transcription.`})]}),(0,z.jsx)(`div`,{className:`bg-white min-h-screen flex flex-col items-center relative w-full`,children:(0,z.jsxs)(`div`,{className:`w-full max-w-6xl mx-auto px-4 lg:px-16 py-12 lg:py-20`,children:[(0,z.jsxs)(V.div,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`text-center mb-12 lg:mb-16`,children:[(0,z.jsx)(`h1`,{className:`text-[48px] lg:text-[64px] font-Spectral leading-[1.1] tracking-[-.03em] text-black mb-4`,children:`Meeting Note Taker`}),(0,z.jsx)(`p`,{className:`text-[18px] lg:text-[20px] text-[#222222] opacity-80 leading-[1.4] max-w-2xl mx-auto`,children:`Automatically transcribe your meetings and generate structured notes with action items. No video recording—just smart transcription.`})]}),(0,z.jsx)(V.div,{variants:r,className:`mb-16 lg:mb-20`,children:(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-[#003a53] to-[#004461] rounded-3xl p-8 lg:p-12 text-white`,children:[(0,z.jsx)(`h2`,{className:`text-[24px] lg:text-[32px] font-Spectral font-semibold mb-6 text-center`,children:`Example Output`}),(0,z.jsxs)(`div`,{className:`bg-white/10 backdrop-blur-sm rounded-2xl p-6 lg:p-8 mb-6`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3 mb-4`,children:[(0,z.jsx)(Dm,{className:`w-6 h-6`}),(0,z.jsx)(`h3`,{className:`text-[20px] lg:text-[24px] font-Spectral font-semibold`,children:`Meeting Summary`})]}),(0,z.jsxs)(`div`,{className:`space-y-3 text-[14px] lg:text-[16
133px] leading-[1.5] opacity-90`,children:[(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`Date:`}),` January 15, 2025`]}),(0,z.jsxs)(`p`,{children:[(0,z.jsx)(`strong`,{children:`Attendees:`}),` Sarah Chen, Mike Rodriguez, Alex Kim`]}),(0,z.jsx)(`p`,{children:(0,z.jsx)(`strong`,{children:`Key Discussion Points:`})}),(0,z.jsxs)(`ul`,{className:`list-disc list-inside ml-4 space-y-1`,children:[(0,z.jsx)(`li`,{children:`Reviewed Q4 performance metrics and identified areas for improvement`}),(0,z.jsx)(`li`,{children:`Discussed new product launch timeline and resource allocation`}),(0,z.jsx)(`li`,{children:`Addressed customer feedback and prioritized feature requests`}),(0,z.jsx)(`li`,{children:`Outlined next quarter's strategic goals and budget planning`})]})]})]}),(0,z.jsxs)(`div`,{className:`bg-white/10 backdrop-blur-sm rounded-2xl p-6 lg:p-8`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3 mb-4`,children:[(0,z.jsx)(hm,{className:`w-6 h-6`}),(0,z.jsx)(`h3`,{className:`text-[20px] lg:text-[24px] font-Spectral font-semibold`,children:`Action Items`})]}),(0,z.jsx)(`div`,{className:`space-y-3`,children:[{assignee:`Sarah Chen`,task:`Prepare Q4 performance report by January 20`,due:`Jan 20`},{assignee:`Mike Rodriguez`,task:`Finalize product launch timeline and share with team`,due:`Jan 18`},{assignee:`Alex Kim`,task:`Review customer feedback and create prioritized feature list`,due:`Jan 22`},{assignee:`All`,task:`Schedule follow-up meeting to review budget proposal`,due:`Jan 25`}].map((e,t)=>(0,z.jsxs)(`div`,{className:`bg-white/5 rounded-lg p-4 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex-1`,children:[(0,z.jsx)(`p`,{className:`font-medium mb-1`,children:e.task}),(0,z.jsxs)(`p`,{className:`text-sm opacity-80`,children:[`Assigned to: `,e.assignee]})]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm opacity-80`,children:[(0,z.jsx)(bm,{className:`w-4 h-4`}),(0,z.jsxs)(`span`,{children:[`Due: `,e.due]})]})]},t))})]})]})}),(0,z.jsxs)(V.div,{variants:r,className:`mb-12 lg:mb-16`,children:[(0,z.jsx)(`h2`,{className:`text-[32px] lg:text-[40px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] mb-6 text-center`,children:`What's included`}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6`,children:[{icon:pm,title:`Automatic meeting detection`,description:`Joins meetings on your calendar automatically with host permission`},{icon:Dm,title:`Structured notes`,description:`Generates organized summaries with key discussion points and decisions`},{icon:hm,title:`Action items extraction`,description:`Identifies and tracks action items with assignees and due dates`},{icon:bm,title:`No video recording`,description:`Only transcribes audio—privacy-focused and compliant`}].map((e,t)=>{let n=e.icon;return(0,z.jsxs)(`div`,{className:`bg-gradient-to-br from-white to-gray-50 border border-gray-200 rounded-2xl p-6 flex flex-col gap-3`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center`,children:(0,z.jsx)(n,{className:`w-6 h-6 text-white`})}),(0,z.jsx)(`h3`,{className:`text-[20px] lg:text-[24px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222]`,children:e.title}),(0,z.jsx)(`p`,{className:`text-[14px] lg:text-[16px] text-[#222222] opacity-75 leading-[1.4]`,children:e.description})]},t)})})]}),(0,z.jsxs)(V.div,{variants:r,className:`bg-gray-50 border border-gray-200 rounded-2xl p-6 lg:p-8 mb-12`,children:[(0,z.jsx)(`h3`,{className:`text-[24px] lg:text-[28px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] mb-4`,children:`Typical usage fits plan`}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-75 leading-[1.4] mb-4`,children:`The Starter plan ($50/month) typically covers 20-30 hours of meeting transcription per month. This fits most individual users and small teams comfortably.`}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-75 leading-[1.4]`,children:`Fair-use limits apply during trial. We may reach out if usage is extreme to discu
133ss a plan that better fits your needs.`})]}),(0,z.jsx)(V.div,{variants:r,className:`text-center`,children:(0,z.jsx)(`a`,{href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-block bg-[#ffb247] hover:bg-[#ffa733] text-black text-center py-4 px-8 rounded-full font-medium text-base transition-all`,children:`Start using Meeting Note Taker`})})]})})]})}function gj(){let e=(0,C.useRef)(null),t=nm(e,{once:!0,margin:`-100px`}),n={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.8,staggerChildren:.15,delayChildren:.2}}},r={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}},i=[{icon:um,title:`Natural-language agent platform`,description:`Build AI agents that understand context, reason about tasks, and execute complex workflows using natural language. Not just chat—intelligent automation that plans and acts.`,details:[`Context-aware reasoning`,`Multi-step task planning`,`Autonomous execution`,`Natural language interface`]},{icon:Mm,title:`Intelligent context handling`,description:`Handles large context without dumping everything into the prompt. Understands what matters, retrieves relevant information, and maintains context across conversations.`,details:[`Smart context retrieval`,`Large document handling`,`Context compression`,`Cross-conversation memory`]},{icon:ih,title:`Planning and execution`,description:`Builds multi-step plans and executes them automatically. Breaks down complex tasks, sequences actions, and adapts when things change.`,details:[`Task decomposition`,`Action sequencing`,`Error recovery`,`Dynamic replanning`]},{icon:Nm,title:`Extensive integrations`,description:`Connects to email, calendar, docs, meetings, CRMs, and more. Unified API for accessing and acting on data across your entire stack.`,details:[`Email & calendar`,`Document storage`,`CRM systems`,`Custom API integrations`]},{icon:Em,title:`Full observability`,description:`Inspect runs, steps, tool calls, and failures. Debug with confidence using detailed logs, traces, and performance metrics.`,details:[`Execution traces`,`Tool call logs`,`Performance metrics`,`Error debugging`]},{icon:Xm,title:`Enterprise-ready`,description:`SOC 2 Type 2 compliant, HIPAA ready, and built with security and compliance in mind. Never trains on your data.`,details:[`SOC 2 Type 2 certified`,`HIPAA compliant`,`Data encryption`,`No training on user data`]}];return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Platform Overview | Knapsack AI`}),(0,z.jsx)(`meta`,{name:`description`,content:`Natural-language agent platform with intelligent context handling, planning, execution, and full observability. Enterprise-ready automation.`})]}),(0,z.jsx)(`div`,{className:`bg-white min-h-screen flex flex-col items-center relative w-full`,children:(0,z.jsxs)(`div`,{className:`w-full max-w-6xl mx-auto px-4 lg:px-16 py-12 lg:py-20`,children:[(0,z.jsxs)(V.div,{ref:e,variants:n,initial:`hidden`,animate:t?`visible`:`hidden`,className:`text-center mb-12 lg:mb-16`,children:[(0,z.jsx)(`h1`,{className:`text-[48px] lg:text-[64px] font-Spectral leading-[1.1] tracking-[-.03em] text-black mb-4`,children:`Platform Overview`}),(0,z.jsx)(`p`,{className:`text-[18px] lg:text-[20px] text-[#222222] opacity-80 leading-[1.4] max-w-3xl mx-auto`,children:`A natural-language agent platform built for real work. Intelligent context handling, multi-step planning, autonomous execution, and full observability.`})]}),(0,z.jsx)(`div`,{className:`space-y-12 lg:space-y-16 mb-16`,children:i.map((e,t)=>{let n=e.icon;return(0,z.jsx)(V.div,{variants:r,className:`bg-gradient-to-br from-white to-gray-50 border border-gray-200 rounded-2xl p-8 lg:p-10`,children:(0,z.jsxs)(`div`,{className:`flex flex-col lg:flex-row gap-6 lg:gap-8`,children:[(0,z.jsx)(`div`,{className:`flex-shrink-0`,children:(0,z.jsx)(`div`,{className:`w-16 h-16 bg-gradient-to-br from-[#003a53] to-[#004461] rounded-xl flex items-center justify-center`,children:(0,z.jsx)(n,{className:`w-8 h-8 text-white`})})}),(0,z.jsxs)(`div`,{className:`flex-1`,children:[(0,z.jsx)(`h2`,{className:`text-[28px] lg:text-[32px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] mb-3`,children:e.title}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-75 leading-[1.4] mb-4`,children:e.description}),(0,z.jsx)(`ul`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-2`,children:e.details.map((e,t)=>(0,z.jsxs)(`li`,{className:`flex items-center gap-2 text-[14px] lg:text-[16
133px] text-[#222222] opacity-70`,children:[(0,z.jsx)(`span`,{className:`w-1.5 h-1.5 bg-[#003a53] rounded-full flex-shrink-0`}),e]},t))})]})]})},e.title)})}),(0,z.jsxs)(V.div,{variants:r,className:`bg-gray-50 border border-gray-200 rounded-2xl p-6 lg:p-8 mb-12`,children:[(0,z.jsx)(`h3`,{className:`text-[20px] lg:text-[24px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] mb-3`,children:`API Access`}),(0,z.jsx)(`p`,{className:`text-[16px] lg:text-[18px] text-[#222222] opacity-75 leading-[1.4]`,children:`APIs available for integration. API access available on request (keys required).`})]}),(0,z.jsx)(V.div,{variants:r,className:`text-center`,children:(0,z.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-4 justify-center items-center`,children:[(0,z.jsx)(`a`,{href:`https://studio.knapsack.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`bg-[#ffb247] hover:bg-[#ffa733] text-black text-center py-4 px-8 rounded-full font-medium text-base transition-all`,children:`Try Studio`}),(0,z.jsx)(`a`,{href:`mailto:[email protected]`,className:`bg-white border-2 border-[#003a53] hover:bg-gray-50 text-[#003a53] text-center py-4 px-8 rounded-full font-medium text-base transition-all`,children:`Contact Enterprise Sales`})]})})]})})]})}var _j=`/assets/af1b942c1691c3939433e8ef1db2c808e217c9e1-Bo-k1jGT.png`,vj=`/assets/e0fb1e4e14637e8b37e217dc11761dbdbf8dc591-BQBSHG65.png`,yj=`/assets/fc9313d371fa9377d3121d51eb2f42041c8478a6-CmOsZtno.png`,bj=`/assets/desktop-landscape-bJzv_vrp.png`,xj=`/assets/desktop-app-screenshot-CdmPSU6x.png`;function Sj(){let e=navigator.userAgent||``,t=navigator.userAgentData?.platform||navigator.platform||``;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)||/Mobi|Android/i.test(e)?`mobile`:/Mac/i.test(t)||/Macintosh/i.test(e)?`mac`:/Win/i.test(t)||/Windows/i.test(e)?`windows`:`unknown`}var Cj=()=>{let e=pt(),[t,n]=(0,C.useState)(`unknown`),[r,i]=(0,C.useState)(``),[a,o]=(0,C.useState)(!1),[s,c]=(0,C.useState)(!1),[l,u]=(0,C.useState)(`https://github.com/knap-ai/knapsack_desktop/releases/latest`),[d,f]=(0,C.useState)(`https://github.com/knap-ai/knapsack_desktop/releases/latest`),[p,m]=(0,C.useState)(``),[h,g]=(0,C.useState)(``),_=(0,C.useRef)(null),v=(0,C.useRef)(null),y=(0,C.useRef)(null),b=nm(_,{once:!0,margin:`-50px`}),x=nm(v,{once:!0,margin:`-100px`}),S=nm(y,{once:!0,margin:`-100px`});(0,C.useEffect)(()=>{n(Sj());let e=()=>c(window.innerWidth<640);return e(),window.addEventListener(`resize`,e),$.capture(),Q.initAnalytics().then(()=>{Q.trackEvent(`www_desktop_landing_visit`,$.eventProps())}),fetch(`https://api.github.com/repos/knap-ai/knapsack_desktop/releases/latest`).then(e=>e.json()).then(e=>{e.tag_name&&m(e.tag_name.replace(/^v/,``));let t=e.assets?.find(e=>e.name.endsWith(`.dmg`));t?.browser_download_url&&u(t.browser_download_url);let n=e.assets?.find(e=>e.name.endsWith(`.exe`));n?.browser_download_url&&f(n.browser_download_url)}).catch(()=>{u(`https://github.com/knap-ai/knapsack_desktop/releases/latest`)}),()=>window.removeEventListener(`resize`,e)},[]);let w=async e=>{if(e.preventDefault(),r){g(``),Q.trackEvent(`www_desktop_mobile_reminder`,{email:r,...$.eventProps()});try{if(!(await fetch(`https://api.knapsack.ai/api/desktop/remind`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:r,platform:t})})).ok)throw Error(`Failed to send`);o(!0)}catch{g(`Could not send reminder. Please try again.`)}}},T=t=>{t.preventDefault(),Q.trackEvent(`www_desktop_mac_download`,$.eventProps()),e(`/download?url=${encodeURIComponent(l)}&platform=mac`)},ee=t=>{t.preventDefault(),Q.trackEvent(`www_desktop_windows_download`,$.eventProps()),e(`/download?url=${encodeURIComponent(d)}&platform=windows`)},E={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.1}}},D={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}},te=(e=`hero`)=>{if(a)return(0,z.jsxs)(V.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:`flex items-center gap-3 bg-green-50 border border-green-200 rounded-2xl px-8 py-5`,children:[(0,z.jsx)(hm,{className:`w-6 h-6 text-green-600`}),(0,z.jsx)(`span`,{className:`text-lg text-green-800 font-Inter`,children:`We've sent you a download reminder!`})]});let n=e===`footer`,o=n?`text-black/60`:`text-white/60`,s=n?`text-black/50`:`text-white/70`,c=n?`bg-gray-100 border-gray-200 text-black placeholder-black/40`:`bg-white/10 border-white/20 text-white placeholder-white/40`;switch(t){case`mac`:return(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,z.jsxs)(V.a,{whileHover:{scale:1.05,boxShadow:`0 20px 40px rgba(255, 178, 71, 0.3)`},whileTap:{scale:.95},href:l,onClick:T,className:`bg-[#ffb247] hover:bg-[#ffa733] text-black font-semibold py-5 px-12 rounded-full transition-all duration-300 text-lg shadow-lg flex items-center gap-3 group`,children:[(0,z.jsx)(wm,{className:`w-6 h-6`}),(0,z.jsx)(`span`,{children:`Download for Mac`}),(0,z.jsx)(lm,{className:`w-5 h-5 group-hover:translate-x-1 transition-transform`})]}),(0,z.jsxs)(`span`,{className:`text-sm ${o} font-Inter`,children:[`macOS 13+ required · Apple Silicon`,p&&(0,z.jsxs)(z.Fragment,{children:[` · v`,p]})]})]});case`mobile`:return(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-4 w-full max-w-md`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 mb-2`,children:[(0,z.jsx)(jm,{className:`w-5 h-5 ${s}`}),(0,z.jsx)(`p`,{className:`${s} font-Inter text-sm`,children:`Knapsack Desktop is available for Mac and Windows. Send yourself a reminder to download later.`})]}),(0,z.jsxs)(`form`,{onSubmit:w,className:`flex flex-col sm:flex-row gap-3 w-full`,children:[(0,z.jsx)(`input`,{type:`email`,value:r,onChange:e=>i(e.target.value),placeholder:`[email protected]`,required:!0,className:`flex-1 backdrop-blur-sm border rounded-full px-6 py-4 font-Inter text-base focus:outline-none focus:border-[#ffb247] focu
133s:ring-1 focus:ring-[#ffb247] transition-all ${c}`}),(0,z.jsxs)(V.button,{whileHover:{scale:1.05},whileTap:{scale:.95},type:`submit`,className:`bg-[#ffb247] hover:bg-[#ffa733] text-black font-semibold py-4 px-8 rounded-full transition-all duration-300 flex items-center gap-2 justify-center`,children:[(0,z.jsx)(Im,{className:`w-5 h-5`}),(0,z.jsx)(`span`,{children:`Remind me`})]})]}),h&&(0,z.jsx)(`p`,{className:`text-sm text-red-500 font-Inter`,children:h})]});case`windows`:return(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,z.jsxs)(V.a,{whileHover:{scale:1.05,boxShadow:`0 20px 40px rgba(255, 178, 71, 0.3)`},whileTap:{scale:.95},href:d,onClick:ee,className:`bg-[#ffb247] hover:bg-[#ffa733] text-black font-semibold py-5 px-12 rounded-full transition-all duration-300 text-lg shadow-lg flex items-center gap-3 group`,children:[(0,z.jsx)(wm,{className:`w-6 h-6`}),(0,z.jsx)(`span`,{children:`Download for Windows`}),(0,z.jsx)(lm,{className:`w-5 h-5 group-hover:translate-x-1 transition-transform`})]}),(0,z.jsxs)(`span`,{className:`text-sm ${o} font-Inter`,children:[`Windows 10+ required`,p&&(0,z.jsxs)(z.Fragment,{children:[` · v`,p]})]})]});default:return(0,z.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-4`,children:[(0,z.jsxs)(V.a,{whileHover:{scale:1.05,boxShadow:`0 20px 40px rgba(255, 178, 71, 0.3)`},whileTap:{scale:.95},href:l,onClick:T,className:`bg-[#ffb247] hover:bg-[#ffa733] text-black font-semibold py-5 px-10 rounded-full transition-all duration-300 text-lg shadow-lg flex items-center gap-3 group`,children:[(0,z.jsx)(wm,{className:`w-6 h-6`}),(0,z.jsx)(`span`,{children:`Download for Mac`})]}),(0,z.jsxs)(V.a,{whileHover:{scale:1.05},whileTap:{scale:.95},href:`https://github.com/knap-ai/knapsack_desktop`,target:`_blank`,rel:`noopener noreferrer`,className:`border-2 ${n?`border-gray-300 hover:border-gray-400 text-black`:`border-white/30 hover:border-white/60 text-white`} font-semibold py-5 px-10 rounded-full transition-all duration-300 text-lg flex items-center gap-3 bg-transparent`,children:[(0,z.jsx)(Om,{className:`w-5 h-5`}),(0,z.jsx)(`span`,{children:`View on GitHub`})]})]})}};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Knapsack Desktop | AI That Actually Does Things`}),(0,z.jsx)(`meta`,{name:`description`,content:`Not another chatbot. Knapsack controls your browser, manages your apps, and works across everything on your desktop — securely and privately.`})]}),(0,z.jsxs)(`div`,{className:`min-h-screen bg-white`,children:[(0,z.jsxs)(`section`,{ref:_,className:`relative overflow-hidden`,children:[(0,z.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-b from-[#001a2c] via-[#003a53] to-[#004d6e]`}),(0,z.jsx)(`div`,{className:`absolute inset-0 opacity-[0.07]`,style:{backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' d='M0,224L48,213.3C96,203,192,181,288,186.7C384,192,480,224,576,218.7C672,213,768,171,864,165.3C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E")`,backgroundSize:`cover`,backgroundPosition:`bottom`}}),(0,z.jsx)(V.div,{initial:{opacity:0}
133,animate:b?{opacity:.15}:{},transition:{duration:2,delay:.5},className:`absolute top-20 left-[10%] w-64 h-64 bg-[#ffb247] rounded-full blur-[120px]`}),(0,z.jsx)(V.div,{initial:{opacity:0},animate:b?{opacity:.1}:{},transition:{duration:2,delay:.8},className:`absolute bottom-20 right-[10%] w-80 h-80 bg-[#baeaff] rounded-full blur-[140px]`}),(0,z.jsxs)(V.div,{variants:E,initial:`hidden`,animate:b?`visible`:`hidden`,className:`relative max-w-7xl mx-auto px-6 pt-16 lg:pt-24 pb-24 lg:pb-32`,children:[(0,z.jsxs)(V.div,{variants:D,className:`flex justify-center gap-3 mb-8 flex-wrap`,children:[(0,z.jsxs)(`div`,{className:`bg-white/10 backdrop-blur-sm border border-white/15 rounded-full px-6 py-2.5 flex items-center gap-2`,children:[(0,z.jsx)(Xm,{className:`w-4 h-4 text-[#ffb247]`}),(0,z.jsx)(`span`,{className:`text-sm font-Inter text-white/80 tracking-wide`,children:`Private & Secure`})]}),(0,z.jsxs)(`a`,{href:`https://github.com/knap-ai/knapsack_desktop`,target:`_blank`,rel:`noopener noreferrer`,className:`bg-white/10 backdrop-blur-sm border border-white/15 rounded-full px-6 py-2.5 flex items-center gap-2 hover:bg-white/20 transition-colors`,children:[(0,z.jsx)(Om,{className:`w-4 h-4 text-white/80`}),(0,z.jsx)(`span`,{className:`text-sm font-Inter text-white/80 tracking-wide`,children:`Open Source`}),(0,z.jsx)(Tm,{className:`w-3 h-3 text-white/50`})]})]}),(0,z.jsx)(V.div,{variants:D,className:`text-center mb-6`,children:(0,z.jsx)(`h1`,{className:`text-[48px] sm:text-[64px] lg:text-[88px] font-Spectral font-normal leading-[1.02] tracking-[-2.5px] text-white`,children:`AI that actually does things.`})}),(0,z.jsx)(V.div,{variants:D,className:`text-center mb-12 max-w-3xl mx-auto`,children:(0,z.jsx)(`p`,{className:`text-xl lg:text-2xl font-Inter text-white/70 leading-relaxed font-light`,children:`Not another chatbot. Knapsack controls your browser, manages your apps, and works across everything on your desktop — securely.`})}),(0,z.jsx)(V.div,{variants:D,className:`flex justify-center mb-16 lg:mb-20`,children:te(`hero`)}),(0,z.jsx)(V.div,{variants:D,className:`relative max-w-5xl mx-auto`,children:(0,z.jsxs)(`div`,{className:`relative rounded-[20px] lg:rounded-[32px] overflow-hidden shadow-[0_40px_80px_-20px_rgba(0,0,0,0.5)]`,children:[(0,z.jsx)(V.img,{initial:{scale:1.1},animate:b?{scale:1}:{},transition:{duration:1.5,ease:[.16,1,.3,1],delay:.6},src:_j,alt:`Knapsack Desktop - AI agents that control your browser and apps`,className:`w-full h-auto`}),(0,z.jsx)(`div`,{className:`absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-black/20 to-transparent`})]})})]}),(0,z.jsx)(`div`,{className:`absolute bottom-0 left-0 right-0`,children:(0,z.jsx)(`svg`,{viewBox:`0 0 1440 60`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:`w-full`,children:(0,z.jsx)(`path`,{d:`M0 60L1440 60L1440 30C1440 30 1200 0 720 0C240 0 0 30 0 30L0 60Z`,fill:`white`})})})]}),(0,z.jsx)(`section`,{className:`bg-white py-20 lg:py-28`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6`,children:(0,z.jsxs)(`div`,{className:`flex flex-col lg:flex-row items-center gap-12 lg:gap-20`,children:[(0,z.jsxs)(V.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1]},className:`flex-1`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3 mb-5`,children:[(0,z.jsx)(`div`,{className:`w-10 h-10 bg-gradient-to-br from-[#003a53] to-[#004d6e] rounded-lg flex items-center justify-center`,children:(0,z.jsx)(km,{className:`w-5 h-5 text-white`})}),(0,z.jsx)(`span`,{className:`text-sm font-Inter font-medium text-[#003a53] tracking-wide uppercase`,children:`Secure Browser Control`})]}),(0,z.jsx)(`h2`,{className:`text-[36px] lg:text-[56px] font-Spectral font-normal leading-[1.08] tracking-[-1.5px] text-black mb-6`,children:`Your computer just does it.`}),(0,z.jsx)(`p`,{className:`text-lg lg:text-xl font-Inter text-black/60 leading-relaxed font-light mb-8`,children:`Tell Knapsack what you need and watch it happen. It opens your browser, navigates pages, fills forms, extracts data, and completes tasks — like having a skilled assistant sitting at your keyboard. You see every action and stay in full control.`}),(0,z.jsx)(`div`,{className:`space-y-3`,children:[`"Book me a table at that Italian place for Friday at 7"`,`"Find the best flight to NYC next Tuesday under $400"`,`"Fill out this expense report from my receipts folder"`].map(e=>(0,z.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,z.jsx)(`div`,{className:`w-6 h-6 bg-[#ffb247]/20 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5`,children:(0,z.jsx)(Hm,{className:`w-3 h-3 text-[#c47f1c] ml-0.5`})}),(0,z.jsx)(`span`,{className:`text-[15px] font-Inter text-[#222222] opacity-70 leading-[1.5] italic`,children:e})]},e))})]}),(0,z.jsx)(V.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1],delay:.2},className:`flex-1 max-w-lg`,children:(0,z.jsx)(`div`,{className:`rounded-2xl overflow-hidden shadow-2xl border border-gray-200`,children:(0,z.jsx)(`img`,{src:xj,alt:`Knapsack controlling your browser securely`,className:`w-full h-auto`})})})]})})}),(0,z.jsx)(`section`,{className:`bg-gray-50 py-20 lg:py-28 border-y border-gray-200`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6`,children:(0,z.jsxs)(`div`,{className:`flex flex-col lg:flex-row-reverse items-center gap-12 lg:gap-20`,children:[(0,z.jsxs)(V.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1]},className:`flex-1`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3 mb-5`,children:[(0,z.jsx)(`div`,{className:`w-10 h-10 bg-gradient-to-br from-[#003a53] to-[#004d6e] rounded-lg flex items-center justify-center`,children:(0,z.jsx)(Qm,{className:`w-5 h-5 text-white`})}),(0,z.jsx)(`span`,{className:`text-sm font-Inter font-medium text-[#003a53] tracking-wide uppercase`,children:`Vibe Tasking`})]}),(0,z.jsx)(`h2`,{className:`text-[36px] lg:text-[56px] font-Spectral font-normal leading-[1.08] tracking-[-1.5px] text-black mb-6`,children:`Works across every app. API or not.`}),(0,z.jsx)(`p`,{className:`text-lg lg:text-xl font-Inter text-black/60 leading-relaxed font-light mb-8`,children:`Most automation tools break the moment an app doesn't have an API. Knapsack doesn't care — it drives native apps and web apps the way you do, clicking and typing just like a human. Tell it what you want, and it figures out the best next step across all your tools.`}),(0,z.jsx)(`div`,{className:`space-y-3`,children:[`Connects your email, calendar, CRM, cloud storage, and more`,`Figures out the next best action across all your apps`,`No API? No problem — works with any app on your screen`,`Your credentials never leave your machine`].map(e=>(0,z.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,z.jsx)(`div`,{className:`w-6 h-6 bg-[#ffb247]/20 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5`,children:(0,z.jsx)(hm,{className:`w-3.5 h-3.5 text-[#c47f1c]`})}),(0,z.jsx)(`span`,{className:`text-[15px] font-Inter text-[#222222] opacity-70 leading-[1.5]`,children:e})]},e))})]}),(0,z.jsx)(V.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1],delay:.2},className:`flex-1 max-w-lg`,children:(0,z.jsx)(`div`,{className:`rounded-2xl overflow-hidden shadow-2xl`,children:(0,z.jsx)(`img`,{src:vj,alt:`Connect Gmail, Dropbox, Google Calendar, Drive, HubSpot, and more`,className:`w-full h-auto`})})})]})})}),(0,z.jsx)(`section`,{className:`bg-white py-20 lg:py-28`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6`,children:(0,z.jsxs)(`div`,{className:`flex flex-col lg:flex-row items-center gap-12 lg:gap-20`,children:[(0,z.jsxs)(V.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1]},className:`flex-1`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3 mb-5`,children:[(0,z.jsx)(`div`,{className:`w-10 h-10 bg-gradient-to-br from-[#003a53] to-[#004d6e] rounded-lg flex items-center justify-center`,children:(0,z.jsx)(Zm,{className:`w-5 h-5 text-white`})}),(0,z.jsx)(`span`,{className:`text-sm font-Inter font-medium text-[#003a53] tracking-wide uppercase`,children:`Mobile Remote Control`})]}),(0,z.jsx)(`h2`,{className:`text-[36px] lg:text-[56px] font-Spectral font-normal leading-[1.08] tracking-[-1.5px] text-black mb-6`,children:`Leave your laptop behind.`}),(0,z.jsx)(`p`,{className:`text-lg lg:text-xl font-Inter text-black/60 leading-relaxed font-light mb-8`,children:`Your desktop keeps working while you're away. Control it from your phone — kick off tasks, check progress, and get results from anywhere. Your computer becomes a 24/7 work engine you manage from your pocket.`}),(0,z.jsx)(`div`,{className:`space-y-3`,children:[`Full desktop control from your phone`,`Start tasks on the go, get results when you’re back`,`Works over WhatsApp, Telegram, Discord, or Slack`,`Your desktop stays productive while you’re out`].map(e=>(0,z.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,z.jsx)(`div`,{className:`w-6 h-6 bg-[#ffb247]/20 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5`,children:(0,z.jsx)(hm,{className:`w-3.5 h-3.5 text-[#c47f1c]`})}),(0,z.jsx)(`span`,{className:`text-[15px] font-Inter text-[#222222] opacity-70 leading-[1.5]`,children:e})]},e))})]}),(0,z.jsx)(V.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1],delay:.2},className:`flex-1 max-w-lg`,children:(0,z.jsx)(`div`,{className:`rounded-2xl overflow-hidden shadow-2xl`,children:(0,z.jsx)(`img`,{src:yj,alt:`Control your desktop from your phone`,className:`w-full h-auto`})})})]})})}),(0,z.jsx)(`section`,{className:`bg-gray-50 py-20 lg:py-28 border-y border-gray-200`,children:(0,z.jsxs)(`div`,{className:`max-w-6xl mx-auto px-6`,children:[(0,z.jsxs)(V.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1]},className:`text-center mb-16`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3 justify-center mb-5`,children:[(0,z.jsx)(`div`,{className:`w-10 h-10 bg-gradient-to-br from-[#003a53] to-[#004d6e] rounded-lg flex items-center justify-center`,children:(0,z.jsx)(ih,{className:`w-5 h-5 text-white`})}),(0,z.jsx)(`span`,{className:`text-sm font-Inter font-medium text-[#003a53] tracking-wide uppercase`,children:`Built-in Productivity`})]}),(0,z.jsx)(`h2`,{className:`text-[36px] lg:text-[56px] font-Spectral font-normal leading-[1.08] tracking-[-1.5px] text-black mb-6`,children:`Your inbox and meetings, handled.`}),(0,z.jsx)(`p`,{className:`text-lg lg:text-xl font-Inter text-black/60 leading-relaxed font-light max-w-3xl mx-auto`,children:`Log in to unlock always-on productivity apps that run in the background. Your email stays organized and your meetings stay productive — without lifting a finger.`})]}),(0,z.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-6 lg:gap-8 max-w-4xl mx-auto`,children:[(0,z.jsxs)(V.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1]},className:`bg-white border border-gray-200 rounded-2xl p-8 hover:shadow-lg hover:border-gray-300 transition-all duration-300 group`,children:[(0,z.jsx)(`div`,{className:`w-14 h-14 bg-gradient-to-br from-[#003a53] to-[#004d6e] rounded-xl flex items-center justify-center mb-6 group-hover:scale-105 transition-transform duration-300`,children:(0,z.jsx)(Im,{className:`w-7 h-7 text-white`})}),(0,z.jsx)(`h3`,{className:`text-[22px] lg:text-[26px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] mb-3`,children:`Email Autopilot`}
133),(0,z.jsx)(`p`,{className:`text-[15px] lg:text-[16px] text-[#222222] opacity-65 leading-[1.6] font-Inter`,children:`Checks your inbox hourly, prioritizes what matters, and drafts replies that match your writing style. Handles meeting requests and follow-ups automatically. You review and send — or let it fly.`})]}),(0,z.jsxs)(V.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1],delay:.15},className:`bg-white border border-gray-200 rounded-2xl p-8 hover:shadow-lg hover:border-gray-300 transition-all duration-300 group`,children:[(0,z.jsx)(`div`,{className:`w-14 h-14 bg-gradient-to-br from-[#003a53] to-[#004d6e] rounded-xl flex items-center justify-center mb-6 group-hover:scale-105 transition-transform duration-300`,children:(0,z.jsx)(zm,{className:`w-7 h-7 text-white`})}),(0,z.jsx)(`h3`,{className:`text-[22px] lg:text-[26px] font-Spectral font-semibold tracking-[-0.5px] text-[#222222] mb-3`,children:`Private Meeting Notetaker`}),(0,z.jsx)(`p`,{className:`text-[15px] lg:text-[16px] text-[#222222] opacity-65 leading-[1.6] font-Inter`,children:`Joins your calls, transcribes everything, and generates structured notes with action items. During the meeting, it even suggests what to say next. All processed locally — nothing sent to the cloud.`})]})]})]})}),(0,z.jsx)(`section`,{className:`bg-white py-20 lg:py-28`,children:(0,z.jsx)(`div`,{className:`max-w-6xl mx-auto px-6`,children:(0,z.jsxs)(`div`,{className:`flex flex-col lg:flex-row-reverse items-center gap-12 lg:gap-20`,children:[(0,z.jsxs)(V.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1]},className:`flex-1`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3 mb-5`,children:[(0,z.jsx)(`div`,{className:`w-10 h-10 bg-gradient-to-br from-[#003a53] to-[#004d6e] rounded-lg flex items-center justify-center`,children:(0,z.jsx)(eh,{className:`w-5 h-5 text-white`})}),(0,z.jsx)(`span`,{className:`text-sm font-Inter font-medium text-[#003a53] tracking-wide uppercase`,children:`For Developers`})]}),(0,z.jsx)(`h2`,{className:`text-[36px] lg:text-[56px] font-Spectral font-normal leading-[1.08] tracking-[-1.5px] text-black mb-6`,children:`Turbocharged Claude Code.`}),(0,z.jsx)(`p`,{className:`text-lg lg:text-xl font-Inter text-black/60 leading-relaxed font-light mb-6`,children:`No more copy-pasting error messages or logs into chat. The AI watches your terminal, understands context, and can debug or suggest next steps instantly. PTY mode means it works with interactive CLIs too.`}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-black/50 leading-relaxed font-light mb-8`,children:`Try it: ask it to build you a personal profile website. Just say what you want, and watch it code, run, and iterate — all in your terminal.`}),(0,z.jsxs)(`div`,{className:`bg-gray-900 rounded-xl p-5 font-mono text-sm text-green-400 leading-relaxed`,children:[(0,z.jsx)(`div`,{className:`text-gray-500 mb-2`,children:`$ claude-code`}),(0,z.jsx)(`div`,{className:`text-white/80`,children:`→ "What went wrong with that build?"`}),(0,z.jsx)(`div`,{className:`text-green-400 mt-2`,children:`Reading terminal context... Found error in webpack config line 42.`}),(0,z.jsx)(`div`,{className:`text-green-400`,children:`The issue is a missing loader for .svg files. Adding...`})]})]}),(0,z.jsx)(V.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1],delay:.2},className:`flex-1 max-w-lg`,children:(0,z.jsx)(`div`,{className:`rounded-2xl overflow-hidden shadow-2xl border border-gray-200`,children:(0,z.jsx)(`img`,{src:xj,alt:`Knapsack turbocharged Claude Code with terminal integration`,className:`w-full h-auto`})})})]})})}),(0,z.jsxs)(`section`,{ref:v,className:`bg-gradient-to-br from-[#001a2c] via-[#003a53] to-[#004d6e] py-20 lg:py-28 relative overflow-hidden`,children:[(0,z.jsx)(`div`,{className:`absolute top-10 right-[15%] w-40 h-40 bg-[#ffb247] rounded-full blur-[100px] opacity-10`}),(0,z.jsx)(`div`,{className:`absolute bottom-10 left-[10%] w-56 h-56 bg-[#baeaff] rounded-full blur-[120px] opacity-10`}),(0,z.jsxs)(V.div,{variants:E,initial:`hidden`,animate:x?`visible`:`hidden`,className:`relative max-w-6xl mx-auto px-6`,children:[(0,z.jsxs)(V.div,{variants:D,className:`text-center mb-16`,children:[(0,z.jsx)(`h2`,{className:`text-[40px] lg:text-[64px] font-Spectral font-normal leading-[1.08] tracking-[-1.5px] text-white mb-4`,children:`Privacy first. Always.`}),(0,z.jsx)(`p`,{className:`text-xl font-Inter text-white/60 max-w-3xl mx-auto font-light`,children:`Your context stays on your machine. Choose how your data is processed — cloud, ephemeral, or fully local.`})]}),(0,z.jsx)(`div`,{className:`grid md:grid-cols-3 gap-8 max-w-5xl mx-auto mb-16`,children:[{icon:xm,title:`Cloud models`,description:`GPT, Claude, Gemini, and more — with your own API keys. Nothing stored on our servers.`},{icon:qm,title:`Ephemeral compute`,description:`Groq's SOC 2 certified infrastru
133cture. Spins up for your request, disappears after. No logs, no trace.`},{icon:Sm,title:`Fully local`,description:`Run open-source models with Ollama. No internet required. Complete air-gap privacy.`}].map(e=>{let t=e.icon;return(0,z.jsxs)(V.div,{variants:D,className:`bg-white/5 backdrop-blur-sm border border-white/10 rounded-2xl p-8 hover:bg-white/10 transition-all duration-300 group`,children:[(0,z.jsx)(`div`,{className:`w-14 h-14 bg-white/10 rounded-xl flex items-center justify-center mb-6 group-hover:bg-[#ffb247]/20 transition-colors duration-300`,children:(0,z.jsx)(t,{className:`w-7 h-7 text-white group-hover:text-[#ffb247] transition-colors duration-300`})}),(0,z.jsx)(`h3`,{className:`text-2xl font-Spectral font-normal text-white mb-4 tracking-[-0.3px]`,children:e.title}),(0,z.jsx)(`p`,{className:`text-base font-Inter text-white/60 leading-relaxed font-light`,children:e.description})]},e.title)})}),(0,z.jsx)(V.div,{variants:D,className:`flex flex-wrap gap-6 justify-center`,children:[{icon:Xm,text:`SOC 2 Type 2 certified`},{icon:Fm,text:`Your keys, your control`},{icon:Em,text:`Full agent observability`},{icon:nh,text:`Works fully offline`}].map(e=>{let t=e.icon;return(0,z.jsxs)(`div`,{className:`flex items-center gap-3 bg-white/5 border border-white/10 rounded-full px-5 py-3`,children:[(0,z.jsx)(t,{className:`w-4 h-4 text-[#ffb247]`}),(0,z.jsx)(`span`,{className:`text-sm font-Inter text-white/80`,children:e.text})]},e.text)})})]})]}),(0,z.jsx)(`section`,{className:`bg-white py-16 lg:py-20 border-b border-gray-200`,children:(0,z.jsx)(`div`,{className:`max-w-5xl mx-auto px-6`,children:(0,z.jsxs)(V.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.16,1,.3,1]},className:`flex flex-col lg:flex-row items-center gap-8 lg:gap-16`,children:[(0,z.jsxs)(`div`,{className:`flex-1`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3 mb-4`,children:[(0,z.jsx)(`div`,{className:`w-10 h-10 bg-gradient-to-br from-[#003a53] to-[#004d6e] rounded-lg flex items-center justify-center`,children:(0,z.jsx)(Mm,{className:`w-5 h-5 text-white`})}),(0,z.jsx)(`span`,{className:`text-sm font-Inter font-medium text-[#003a53] tracking-wide uppercase`,children:`Skills Ecosystem`})]}),(0,z.jsx)(`h2`,{className:`text-[30px] lg:text-[42px] font-Spectral font-normal leading-[1.1] tracking-[-1px] text-black mb-4`,children:`Hundreds of skills. Ready to go.`}),(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/60 leading-relaxed font-light mb-6`,children:`Knapsack is compatible with hundreds of OpenClaw skills — meeting prep, deal tracking, recruiting, bookkeeping, CRM updates, and more. Or build your own custom agents in natural language with the Workflow Builder.`}),(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:[`30+ built-in agents`,`OpenClaw compatible`,`Build your own with the Workflow Builder`,`MCP server support`].map(e=>(0,z.jsxs)(`div`,{className:`flex items-center gap-2 bg-gray-50 border border-gray-200 rounded-full px-4 py-2`,children:[(0,z.jsx)(hm,{className:`w-4 h-4 text-[#003a53]`}),(0,z.jsx)(`span`,{className:`text-sm font-Inter text-[#222222]`,children:e})]},e))})]}),(0,z.jsx)(`div`,{className:`flex-shrink-0`,children:(0,z.jsx)(`div`,{className:`grid grid-cols-3 gap-3`,children:[`Email`,`Calendar`,`CRM`,`Meetings`,`Research`,`Writing`,`Data`,`Recruiting`,`Finance`].map(e=>(0,z.jsx)(`div`,{className:`bg-gray-50 border border-gray-200 rounded-xl px-4 py-3 text-center hover:bg-gray-100 transition-colors`,children:(0,z.jsx)(`span`,{className:`text-sm font-Inter text-[#222222] opacity-70`,children:e})},e))})})]})})}),(0,z.jsx)(`section`,{className:`relative overflow-hidden`,children:(0,z.jsxs)(`div`,{className:`relative h-[250px] lg:h-[400px]`,children:[(0,z.jsx)(`img`,{src:bj,alt:`A lone explorer with a backpack traversing pristine mountains`,className:`w-full h-full object-cover`}),(0,z.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-[#001a2c] via-[#001a2c]/40 to-transparent`}),(0,z.jsx)(`div`,{className:`absolute bottom-0 left-0 right-0 p-8 lg:p-16`,children:(0,z.jsx)(`p`,{className:`text-2xl lg:text-4xl font-Spectral font-normal text-white/90 text-center tracking-[-1px]`,children:`Your agents. Your data. Your rules.`})})]})}),(0,z.jsx)(`section`,{ref:y,className:`bg-white py-20 lg:py-28`,children:(0,z.jsxs)(V.div,{variants:E,initial:`hidden`,animate:S?`visible`:`hidden`,className:`max-w-4xl mx-auto px-6 text-center`,children:[(0,z.jsxs)(V.div,{variants:D,className:`mb-6`,children:[(0,z.jsx)(`img`,{src:ah,alt:`Knapsack`,className:`w-16 h-16 mx-auto mb-8 opacity-80`}),(0,z.jsx)(`h2`,{className:`text-[40px] lg:text-[64px] font-Spectral font-normal leading-[1.08] tracking-[-1.5px] text-black mb-6`,children:`Stop chatting. Start doing.`}),(0,z.jsx)(`p`,{className:`text-xl lg:text-2xl font-Inter text-black/60 leading-relaxed font-light max-w-2xl mx-auto mb-10`,children:`Browser control. Cross-app automation. Remote access from your phone. One app, completely private. Download now and let your computer do the work.`})]}),(0,z.jsx)(V.div,{variants:D,className:`flex justify-center`,children:te(`footer`)})]})})]})]})},wj=[{step:`1`,text:`Open the downloaded .dmg file`}
133,{step:`2`,text:`Drag Knapsack into your Applications folder`},{step:`3`,text:`Launch Knapsack from Applications or Spotlight`}],Tj=[{step:`1`,text:`Run the downloaded .exe installer`},{step:`2`,text:`Follow the setup wizard prompts`},{step:`3`,text:`Launch Knapsack from your Start menu or Desktop`}];function Ej(){let[e]=Bn(),t=e.get(`url`)||`https://github.com/knap-ai/knapsack_desktop/releases/latest`,n=e.get(`platform`)||`unknown`,r=(0,C.useRef)(!1);(0,C.useEffect)(()=>{if(r.current)return;r.current=!0,Q.initAnalytics().then(()=>{let e=n===`mac`?`www_download_thanks_mac`:n===`windows`?`www_download_thanks_windows`:`www_download_thanks`;Q.trackEvent(e)});let e=document.createElement(`a`);e.href=t,e.setAttribute(`download`,``),document.body.appendChild(e),e.click(),document.body.removeChild(e)},[t,n]);let i=n===`windows`?Tj:wj,a=n===`windows`?`Windows`:`Mac`;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Downloading Knapsack Desktop`}),(0,z.jsx)(`meta`,{name:`description`,content:`Your Knapsack Desktop download is starting. Follow the steps below to get set up.`})]}),(0,z.jsx)(`div`,{className:`min-h-screen bg-white flex flex-col items-center justify-center px-6 py-20`,children:(0,z.jsxs)(V.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,ease:[.16,1,.3,1]},className:`max-w-xl w-full text-center`,children:[(0,z.jsx)(V.div,{initial:{scale:.8,opacity:0}
133,animate:{scale:1,opacity:1},transition:{duration:.5,delay:.1},className:`flex justify-center mb-6`,children:(0,z.jsx)(`div`,{className:`w-16 h-16 bg-[#ffb247]/15 rounded-2xl flex items-center justify-center`,children:(0,z.jsx)(wm,{className:`w-8 h-8 text-[#ffb247]`})})}),(0,z.jsx)(`h1`,{className:`text-[40px] lg:text-[52px] font-Spectral font-normal leading-[1.1] tracking-[-1.5px] text-black mb-3`,children:`Your download is starting`}),(0,z.jsxs)(`p`,{className:`text-lg font-Inter text-black/60 mb-10`,children:[`Knapsack Desktop for `,a,` is on its way.`,` `,(0,z.jsx)(`a`,{href:t,className:`text-[#003a53] hover:underline`,children:`Click here`}),` `,`if it doesn't start automatically.`]}),(0,z.jsxs)(`div`,{className:`bg-[#f8f9fa] rounded-2xl p-6 mb-8 text-left`,children:[(0,z.jsx)(`p`,{className:`text-xs font-Inter font-semibold text-black/40 uppercase tracking-widest mb-4`,children:`Installation steps`}),(0,z.jsx)(`ol`,{className:`space-y-3`,children:i.map(({step:e,text:t})=>(0,z.jsxs)(`li`,{className:`flex items-start gap-3`,children:[(0,z.jsx)(`span`,{className:`flex-shrink-0 w-6 h-6 rounded-full bg-[#ffb247]/20 text-[#003a53] text-xs font-semibold font-Inter flex items-center justify-center mt-0.5`,children:e}),(0,z.jsx)(`span`,{className:`text-base font-Inter text-black/70`,children:t})]},e))})]}),(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-black/40 text-sm font-Inter`,children:[(0,z.jsx)(ym,{className:`w-4 h-4`}),(0,z.jsx)(`span`,{children:`Free to try · No credit card required`})]}),(0,z.jsxs)(Mn,{to:`/desktop`,className:`inline-flex items-center gap-1.5 text-sm font-Inter text-[#003a53] hover:text-[#004d6e] transition-colors`,children:[`Learn more about Knapsack Desktop`,(0,z.jsx)(lm,{className:`w-3.5 h-3.5`})]})]})]})})]})}var Dj={"executive-assistant":`Executive Assistant`,"enterprise-sdr":`Enterprise SDR`,"daily-coach":`Daily Coach`,"email-autopilot":`Email Autopilot`,"ria-compliance-analyst":`RIA Compliance Analyst`,"regulatory-exam-readiness-analyst":`Regulatory Exam Readiness Analyst`,"advertising-compliance-reviewer":`Advertising Compliance Reviewer`,"aml-fraud-sanctions-analyst":`AML, Fraud & Sanctions Analyst`,"books-records-analyst":`Books & Records Analyst`,"third-party-risk-analyst":`Third-Party Risk Analyst`,"investment-research-analyst":`Private AI Research Analyst`,"private-credit-due-diligence-analyst":`Private Credit Due Diligence Analyst`,"portfolio-reporting-analyst":`Portfolio Reporting Analyst`,"financial-risk-analyst":`Financial Risk Analyst`,"financial-planning-analyst":`Financial Planning Analyst`,"client-review-onboarding-analyst":`Client Review & Onboarding Analyst`,"privacy-advisor":`private advisor agent`,"privacy-lawyer":`private legal agent`},Oj={"privacy-advisor":`advisor`,"privacy-lawyer":`lawyer`},kj={mac:`AW-16630252215/HvixCIaloeUcELeF9vk9`,windows:`AW-16630252215/unEoCImloeUcELeF9vk9`},Aj={"executive-assistant":`Review my calendar for tomorrow. Flag conflicts, missing agendas, and the meetings I should prepare for first.`,"enterprise-sdr":`Research my next sales meeting and give me a concise account brief with three useful questions to ask.`,"ria-compliance-analyst":`Help me turn this compliance checklist and the files I choose into a source-linked gap report for human review.`,"advertising-compliance-reviewer":`Review the marketing draft I choose against my checklist and flag claims or disclosures that need human review.`,"regulatory-exam-readiness-analyst":`Organize the documents I choose into an exam-readiness inventory and show me what is missing.`,"investment-research-analyst":`Using only the filing or earnings release I choose, draft a source-grounded research brief with key facts, risks, and open questions. Do not give investment advice.`};function jj(e,t){try{let t=decodeURIComponent(new URL(e).pathname.split(`/`).pop()||``);if(/\.(dmg|exe)$/i.test(t))return t}catch{}return t===`windows`?`Knapsack installer`:`Knapsack disk image`}var Mj=()=>{let[e]=Bn(),t=e.get(`role`)||``,n=$k.get(t),r=Dj[t]||n?.title,i=Aj[t],a=Jk(),o=(0,C.useRef)(!1),s=(0,C.useRef)(!1),c=(0,C.useRef)(!1),l=(0,C.useRef)(!0),[u,d]=(0,C.useState)(`idle`),[f,p]=(0,C.useState)(!1);(0,C.useEffect)(()=>(l.current=!0,$.capture(),Q.initAnalytics(),()=>{l.current=!1}),[]),(0,C.useEffect)(()=>
133{if(o.current||a.isMobile||!a.isResolved)return;o.current=!0;let e={role:t,role_slug:t,vertical:n?.vertical,experiment_group:n?.experimentGroup,platform:a.platform,version:a.version,...Oj[t]?{experiment_id:`privacy-openclaw-2026-09`,landing_variant:Oj[t]}:{},...$.eventProps()},r=a.isDirectInstaller?kj[a.platform]:void 0;r&&typeof gtag<`u`&&gtag(`event`,`conversion`,{send_to:r});let i=!1,s=!1,c=()=>{s||i||(i=!0,window.location.href=a.url)},l=window.setTimeout(c,1500),u=a.isDirectInstaller?`www_download_started`:`www_releases_page_opened`;return Q.trackEventAndFlush(u,e).finally(()=>{window.clearTimeout(l),c()}),()=>{s=!0,window.clearTimeout(l)}},[a.version,a.url,a.platform,a.isMobile,a.isResolved,a.isDirectInstaller,t,n]),(0,C.useEffect)(()=>{if(a.isMobile)return;let e=()=>{o.current&&(s.current=!0)},r=()=>{!s.current||f||(s.current=!1,p(!0),Q.trackEvent(`www_download_handoff_returned`,{role:t,role_slug:t,vertical:n?.vertical,experiment_group:n?.experimentGroup,platform:a.platform,...Oj[t]?{experiment_id:`privacy-openclaw-2026-09`,landing_variant:Oj[t]}:{},...$.eventProps()}))},i=()=>{if(document.visibilityState===`hidden`){e();return}r()};return document.addEventListener(`visibilitychange`,i),window.addEventListener(`blur`,e),window.addEventListener(`focus`,r),()=>{document.removeEventListener(`visibilitychange`,i),window.removeEventListener(`blur`,e),window.removeEventListener(`focus`,r)}},[a.isMobile,a.platform,f,t,n]);let m=$.get(),h=new URLSearchParams;t&&h.set(`role`,t),m.attr_id&&h.set(`attr_id`,m.attr_id),m.gclid&&h.set(`gclid`,m.gclid),m.utm_source&&h.set(`utm_source`,String(m.utm_source)),m.utm_medium&&h.set(`utm_medium`,String(m.utm_medium)),m.utm_campaign&&h.set(`utm_campaign`,String(m.utm_campaign));let g=`knapsack://onboard?${h.toString()}`;(0,C.useEffect)(()=>{if(!f||a.isMobile||!t||!$.isPaid())return;let e=window.setTimeout(()=>{c.current||(c.current=!0,Promise.race([Q.trackEventAndFlush(`www_open_app_auto_attempted`,{role:t,role_slug:t,vertical:n?.vertical,experiment_group:n?.experimentGroup,platform:a.platform,...$.eventProps()}),new Promise(e=>window.setTimeout(e,1200))]).finally(()=>{l.current&&window.location.assign(g)}))},700);return()=>window.clearTimeout(e)},[g,a.isMobile,a.platform,f,t,n]);let _=new URLSearchParams;t&&_.set(`role`,t);for(let e of[`attr_id`,`gclid`,`utm_source`,`utm_medium`,`utm_campaign`,`utm_content`,`utm_term`,`mt`,`ag`,`net`,`dev`]){let t=m[e];t&&_.set(e,String(t))}let v=`${window.location.origin}/downloading?${_.toString()}`,y=jj(a.url,a.platform);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Downloading Knapsack | Knapsack AI`}),(0,z.jsx)(`meta`,{name:`robots`,content:`noindex`})]}),(0,z.jsx)(`div`,{className:`min-h-screen bg-white flex items-center justify-center px-6`,children:(0,z.jsxs)(`div`,{className:`max-w-xl mx-auto text-center`,children:[(0,z.jsx)(`h1`,{className:`text-[40px] lg:text-[52px] font-Spectral font-normal leading-[1.1] tracking-[-1.5px] text-black mb-5`,children:a.isMobile?`Knapsack runs on your computer`:`Your download is starting`}),a.isMobile?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`p`,{className:`text-lg font-Inter text-black/70 mb-8 leading-relaxed`,children:[`Send this page to your Mac or Windows machine to install Knapsack`,r?` and set up your ${r}`:``,`.`]}),(0,z.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-3 justify-center mb-5`,children:[(0,z.jsx)(`button`,{type:`button`,onClick:async()=>{try{await navigator.clipboard.writeText(v),d(`copied`),Q.trackEvent(`www_mobile_download_link_copied`,{role:t,role_slug:t,vertical:n?.vertical,experiment_group:n?.experimentGroup,...$.eventProps()})}catch{d(`failed`)}},className:`bg-[#003a53] text-white font-Inter font-semibold text-[16px] px-6 py-3 rounded-lg hover:bg-[#00293b] transition-colors`,children:u===`copied`?`Link copied`:`Copy desktop link`}),(0,z.jsx)(`a`,{href:`mailto:?subject=Install%20Knapsack%20on%20my%20computer&body=${encodeURIComponent(`Open this link on your Mac or Windows computer:\n\n${v}`)}`,onClick:()=>{Q.trackEvent(`www_mobile_download_link_email_clicked`,{role:t,role_slug:t,vertical:n?.vertical,experiment_group:n?.experimentGroup,...$.eventProps()})},className:`border border-[#003a53] text-[#003a53] font-Inter font-semibold text-[16px] px-6 py-3 rounded-lg hover:bg-[#f2f7f8] transition-colors`,children:`Email this link`})]}),u===`failed`&&(0,z.jsx)(`p`,{className:`text-sm font-Inter text-black/60 mb-4`,children:`Copying was blocked. Press and hold the link below instead.`}),(0,z.jsx)(`a`,{href:v,className:`text-sm font-Inter text-[#003a53] hover:underline break-all`,children:v.replace(/^https?:\/\//,``)})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{className:`text-lg font-Inter text-black/70 mb-8 leading-relaxed`,children:r?`Install Knapsack, then return to this tab so we can open it with your ${r} ready.`:`Install Knapsack, then return to this tab to finish setting up.`}),(0,z.jsxs)(`ol`,{className:`text-left inline-block mb-6 font-Inter text-black/80 space-y-3`,children:[(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`span`,{className:`font-semibold`,children:`1.`}),` Open `,(0,z.jsx)(`span`,{className:`font-semibold`,children:y}),` from your browser's Downloads`,a.platform===`windows`?` and run the installer.`:` and drag Knapsack to Applications.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`span`,{className:`font-semibold`,children:`2.`}),` Return to this browser tab when installation finishes.`]}),(0,z.jsxs)(`li`,{children:[(0,z.jsx)(`span`,{className:`font-semibold`,children:`3.`}),` Press the button below, then connect your free Knapsack account. No API key is needed.`]})]}),(0,z.jsxs)(`div`,{className:`rounded-xl border p-5 mb-7 ${f?`bg-emerald-50 border-emerald-200`:`bg-[#f2f7f8] border-[#003a53]/15`}`,children:[(0,z.jsx)(`p`,{className:`font-Inter font-semibold text-[#003a53] mb-3`,children:f&&$.isPaid()?`Opening Knapsack with your starter task…`:f?`Installation finished?`:`Keep this tab open while Knapsack installs`}),f&&$.isPaid()&&(0,z.jsx)(`p`,{className:`font-Inter text-sm text-black/65 mb-3`,children:`If your browser does not open the app automatically, use the button below.`}),(0,z.jsx)(`a`,{href:g,onClick:()=>{c.current=!0,Q.trackEventAndFlush(`www_open_app_clicked`,{role:t,role_slug:t,vertical:n?.vertical,experiment_group:n?.experimentGroup,platform:a.platform,...Oj[t]?{experiment_id:`privacy-openclaw-2026-09`,landing_variant:Oj[t]}:{},...$.eventProps()})},className:`inline-block bg-[#003a53] text-white font-Inter font-semibold text-[16px] px-8 py-3 rounded-lg hover:bg-[#00293b] transition-colors`,children:r?`I installed it — open my ${r}`:`I installed it — open Knapsack`})]}),(0,z.jsxs)(`div`,{className:`mb-7`,children:[(0,z.jsxs)(`p`,{className:`font-Inter text-sm text-black/60 mb-3`,children:[`Can't find `,y,` in Downloads?`]}),(0,z.jsx)(`a`,{href:a.url,onClick:()=>{Q.trackEventAndFlush(`www_download_retry_clicked`,{role:t,role_slug:t,vertical:n?.vertical,experiment_group:n?.experimentGroup,platform:a.platform,version:a.version,...$.eventProps()})},className:`inline-block border border-[#003a53] text-[#003a53] font-Inter font-semibold text-[15px] px-6 py-2.5 rounded-lg hover:bg-[#f2f7f8] transition-colors`,children:`Download the installer again`})]}),i&&(0,z.jsxs)(`div`,{className:`text-left bg-[#f2f7f8] border border-[#003a53]/15 rounded-xl p-5 mb-7`,children:[(0,z.jsx)(`p`,{className:`font-Inter font-semibold text-[#003a53] mb-2`,children:`Your first task`}),(0,z.jsxs)(`p`,{className:`font-Inter text-black/75 leading-relaxed`,children:[`“`,i,`”`]}),(0,z.jsx)(`p`,{className:`font-Inter text-sm text-black/50 mt-2`,children:t===`investment-research-analyst`?`After you connect your account, Knapsack starts this automatically and asks for your filing before analyzing anything.`:`Knapsack starts this automatically after setup and asks for any access or materials it needs before doing the work.`})]})]})]})})]})},Nj=[{id:`compliance`,title:`Compliance and financial crime`,description:`Evidence collection, first-pass review, exception handling, and examination readiness.`,icon:Ym},{id:`analysis`,title:`Investment and portfolio analysis`,description:`Source-grounded research, diligence, reporting, and decision-support drafts.`,icon:mm},{id:`risk`,title:`Risk and oversight`,description:`Structured monitoring for vendors, controls, exposures, and review workflows.`,icon:Wm},{id:`advisor_operations`,title:`Advisor operations`,description:`Client planning, onboarding, review preparation, and follow-through across approved tools.`,icon:th}];function Pj(){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Financial Services AI Roles | Knapsack`}),(0,z.jsx)(`meta`,{name:`description`,content:`Explore 12 supervised virtual employee roles for compliance, analysis, risk, and advisor operations in financial services.`})]}),(0,z.jsxs)(`main`,{className:`bg-[#f7f4ee] text-[#102f3c]`,children:[(0,z.jsxs)(`section`,{className:`mx-auto max-w-[1180px] px-6 pb-14 pt-16 text-center lg:px-10 lg:pb-20 lg:pt-24`,children:[(0,z.jsx)(`p`,{className:`mb-5 font-Inter text-sm font-semibold uppercase tracking-[0.18em] text-[#9b5b14]`,children:`Financial services role discovery`}),(0,z.jsx)(`h1`,{className:`mx-auto max-w-[900px] font-Spectral text-4xl leading-[1.08] tracking-[-0.035em] text-[#102f3c] sm:text-5xl lg:text-7xl`,children:`Find the virtual employee your team should test next`}),(0,z.jsx)(`p`,{className:`mx-auto mt-7 max-w-[760px] font-Inter text-lg leading-8 text-[#3d5660]`,children:`Twelve supervised roles built for high-context work across compliance, analysis, risk, and advisor operations. Each one works across the tools you approve and keeps a human responsible for every final decision.`})]}),(0,z.jsx)(`section`,{className:`mx-auto max-w-[1180px] space-y-16 px-6 pb-24 lg:px-10 lg:pb-32`,children:Nj.map(e=>{let t=e.icon,n=Qk.filter(t=>
133t.cluster===e.id);return(0,z.jsxs)(`section`,{"aria-labelledby":`${e.id}-heading`,children:[(0,z.jsxs)(`div`,{className:`mb-7 flex max-w-[760px] items-start gap-4`,children:[(0,z.jsx)(`span`,{className:`mt-1 rounded-full bg-[#ffb247] p-3 text-[#102f3c]`,children:(0,z.jsx)(t,{"aria-hidden":`true`,size:22,strokeWidth:1.7})}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{id:`${e.id}-heading`,className:`font-Spectral text-3xl tracking-[-0.025em] text-[#102f3c]`,children:e.title}),(0,z.jsx)(`p`,{className:`mt-2 font-Inter leading-7 text-[#52666e]`,children:e.description})]})]}),(0,z.jsx)(`div`,{className:`grid gap-5 md:grid-cols-2 xl:grid-cols-3`,children:n.map(e=>(0,z.jsxs)(`a`,{href:`/${e.slug}`,className:`group flex min-h-[270px] flex-col rounded-[22px] border border-[#d9d6cf] bg-white p-7 shadow-[0_8px_30px_rgba(16,47,60,0.04)] transition duration-200 hover:-translate-y-1 hover:border-[#ffb247] hover:shadow-[0_14px_36px_rgba(16,47,60,0.09)]`,children:[(0,z.jsx)(`p`,{className:`font-Inter text-xs font-semibold uppercase tracking-[0.12em] text-[#9b5b14]`,children:e.tag}),(0,z.jsx)(`h3`,{className:`mt-4 font-Spectral text-[28px] leading-tight tracking-[-0.02em] text-[#102f3c]`,children:e.title}),(0,z.jsx)(`p`,{className:`mt-4 flex-1 font-Inter leading-7 text-[#52666e]`,children:e.shortDescription}),(0,z.jsxs)(`span`,{className:`mt-6 inline-flex items-center gap-2 font-Inter text-sm font-semibold text-[#003a53]`,children:[`View this role`,(0,z.jsx)(lm,{"aria-hidden":`true`,size:17,className:`transition-transform group-hover:translate-x-1`})]})]},e.slug))})]},e.id)})})]})]})}var Fj=`privacy-openclaw-2026-09`;function Ij(e){let t=$.get(),n=e===`advisor`?`advisory firm`:`law firm`,r=t.attr_id||`unattributed`,i=`Privacy Mode for our ${n} [ref:${r}]`,a=[`I'm interested in evaluating Knapsack Privacy Mode for our ${n}.`,``,`Team size:`,`Workflow we want to evaluate:`,`Admin or policy requirements:`,``,`Optional privacy pilot receipt (review it before pasting):`,`[Paste the local receipt from Knapsack Settings here]`,``,`Experiment: ${Fj}`,`Landing variant: ${e}`,`Attribution reference: ${r}`].join(`
134`);return`mailto:[email protected]?subject=${encodeURIComponent(i)}&body=${encodeURIComponent(a)}`}var Lj={advisor:{eyebrow:`For financial advisors`,title:`Private OpenClaw for client work.`,description:`Run selected client-safe work through a desktop policy that restricts inference to local Ollama and disables product analytics—not a promise in a model contract.`,role:`privacy-advisor`,useCases:[`Use a local Ollama model; cloud and remote Ollama routes are rejected`,`Stop Amplitude immediately and keep native Sentry off after the next launch`,`Use Google data only in deployments with direct OAuth credentials`],note:`Knapsack is not a substitute for your firm’s supervision, recordkeeping, or vendor-review process.`},lawyer:{eyebrow:`For lawyers`,title:`Private OpenClaw for legal work.`,description:`Run selected, non-sensitive legal work through a desktop policy that restricts inference to local Ollama and disables product analytics—not a promise in a model contract.`,role:`privacy-lawyer`,useCases:[`Use a local Ollama model; cloud and remote Ollama routes are rejected`,`Stop Amplitude immediately and keep native Sentry off after the next launch`,`Use Google data only in deployments with direct OAuth credentials`],note:`No software creates privilege. Your firm should review model, connector, retention, and matter-handling choices before use.`}};function Rj({audience:e}){let[t,n]=(0,C.useState)(()=>Ij(e)),r=Lj[e],i=`/downloading?role=${r.role}`,a={experiment_id:Fj,landing_variant:e,role:r.role};(0,C.useEffect)(()=>{$.capture(),n(Ij(e)),Q.initAnalytics().then(()=>{Q.trackEvent(`www_privacy_landing_visit`,{...a,...$.eventProps()})})},[e]);let o=e=>{Q.trackEvent(`www_privacy_download_click`,{...a,placement:e,...$.eventProps()})};return(0,z.jsxs)(`main`,{className:`bg-[#f6f3ed] text-[#102a2f]`,children:[(0,z.jsxs)(qr,{children:[(0,z.jsx)(`title`,{children:`Private OpenClaw for ${e===`advisor`?`Financial Advisors`:`Lawyers`} | Knapsack`}),(0,z.jsx)(`meta`,{name:`description`,content:`Knapsack packages OpenClaw into a desktop app with a local control plane, scoped access, separate channel sessions, and explicit model choice.`})]}),(0,z.jsx)(`section`,{className:`border-y border-[#d8d2c6] px-6 py-16 lg:py-24`,children:(0,z.jsxs)(`div`,{className:`mx-auto grid max-w-[1200px] gap-14 lg:grid-cols-[1.25fr_0.75fr] lg:items-center`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`mb-6 font-Inter text-sm font-semibold uppercase tracking-[0.18em] text-[#a4482f]`,children:r.eyebrow}),(0,z.jsx)(`h1`,{className:`max-w-[820px] font-Spectral text-[48px] font-normal leading-[1.02] tracking-[-2px] text-[#102a2f] sm:text-[64px] lg:text-[72px]`,children:r.title}),(0,z.jsx)(`p`,{className:`mt-7 max-w-[760px] font-Inter text-xl leading-relaxed text-[#40565a]`,children:r.description}),(0,z.jsx)(`p`,{className:`mt-5 max-w-[760px] font-Spectral text-2xl leading-snug text-[#a4482f]`,children:`ZDR doesn’t make an agent private. Architecture does.`}),(0,z.jsxs)(`div`,{className:`mt-10 flex flex-col gap-4 sm:flex-row`,children:[(0,z.jsx)(`a`,{href:i,onClick:()=>o(`hero`),className:`rounded-full bg-[#102a2f] px-7 py-4 text-center font-Inter font-semibold text-white transition-colors hover:bg-[#1b4148]`,children:`Download Knapsack for desktop`}),(0,z.jsx)(`a`,{href:`#privacy-architecture`,onClick:()=>{Q.trackEvent(`www_privacy_architecture_clicked`,{...a,...$.eventProps()})},className:`rounded-full border border-[#102a2f] px-7 py-4 text-center font-Inter font-semibold transition-colors hover:bg-white`,children:`See the privacy architecture`})]}),(0,z.jsx)(`p`,{className:`mt-4 font-Inter text-sm text-[#647579]`,children:`Mac and Windows · Free to download · Local Ollama required for Privacy Mode`})]}),(0,z.jsxs)(`div`,{className:`rounded-[28px] border border-[#c7beb0] bg-[#102a2f] p-
1347 text-white shadow-[0_24px_70px_rgba(16,42,47,0.18)] lg:p-9`,children:[(0,z.jsx)(`p`,{className:`font-Inter text-xs font-semibold uppercase tracking-[0.2em] text-[#f1b88d]`,children:`A useful first workflow`}),(0,z.jsx)(`h2`,{className:`mt-4 font-Spectral text-3xl leading-tight`,children:`Connect narrowly. Prove value. Expand deliberately.`}),(0,z.jsx)(`ul`,{className:`mt-7 space-y-5 font-Inter text-[15px] leading-relaxed text-white/80`,children:r.useCases.map(e=>(0,z.jsxs)(`li`,{className:`flex gap-3`,children:[(0,z.jsx)(hm,{className:`mt-1 h-4 w-4 shrink-0 text-[#f1b88d]`}),(0,z.jsx)(`span`,{children:e})]},e))})]})]})}),(0,z.jsx)(`section`,{id:`privacy-architecture`,className:`scroll-mt-20 px-6 py-20`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[1100px]`,children:[(0,z.jsxs)(`div`,{className:`mb-10 max-w-[760px]`,children:[(0,z.jsx)(`p`,{className:`font-Inter text-sm font-semibold uppercase tracking-[0.18em] text-[#a4482f]`,children:`Privacy Mode today`}),(0,z.jsx)(`h2`,{className:`mt-4 font-Spectral text-4xl leading-tight`,children:`Controls that ship—not a blanket promise.`}),(0,z.jsx)(`p`,{className:`mt-4 font-Inter text-lg leading-relaxed text-[#56696c]`,children:`ZDR governs what one model provider retains. Shipped Privacy Mode instead enforces a local-only inference route and disables product analytics at the desktop policy layer.`})]}),(0,z.jsx)(`div`,{className:`grid gap-6 md:grid-cols-3`,children:[{icon:Ym,title:`Local-only inference`,body:`Privacy Mode permits only a loopback Ollama endpoint and rejects cloud providers and remote Ollama endpoints.`},{icon:th,title:`Policy before prompt`,body:`The desktop process enforces the provider restriction independently of the agent and gateway configuration.`},{icon:hm,title:`Telemetry shut down`,body:`Amplitude stops when Privacy Mode turns on. Native crash reporting stays off after the next app launch. That also removes Knapsack’s product-usage measurement.`}].map(({icon:e,title:t,body:n})=>(0,z.jsxs)(`article`,{className:`rounded-2xl border border-[#d8d2c6] bg-white p-7`,children:[(0,z.jsx)(e,{className:`h-6 w-6 text-[#a4482f]`}),(0,z.jsx)(`h2`,{className:`mt-5 font-Spectral text-2xl`,children:t}),(0,z.jsx)(`p`,{className:`mt-3 font-Inter leading-relaxed text-[#56696c]`,children:n})]},t))})]})}),(0,z.jsx)(`section`,{className:`bg-white px-6 py-20`,children:(0,z.jsxs)(`div`,{className:`mx-auto grid max-w-[1100px] gap-12 lg:grid-cols-2`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`font-Inter text-sm font-semibold uppercase tracking-[0.18em] text-[#a4482f]`,children:`What Privacy Mode controls`}),(0,z.jsx)(`h2`,{className:`mt-4 font-Spectral text-4xl leading-tight`,children:`Architecture you can reason about.`})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`ul`,{className:`space-y-5 font-Inter text-lg leading-relaxed text-[#40565a]`,children:[`OpenClaw’s gateway and agent state run on your desktop.`,`Only localhost, 127.0.0.1, or ::1 Ollama endpoints are accepted for inference.`,`Cloud inference fails closed; Privacy Mode does not infer ZDR status from an API key.`,`Google access requires direct OAuth credentials provisioned for the deployment; the Knapsack token-exchange fallback is blocked.`].map(e=>(0,z.jsxs)(`li`,{className:`flex gap-3`,children:[(0,z.jsx)(hm,{className:`mt-1.5 h-5 w-5 shrink-0 text-[#a4482f]`}),(0,z.jsx)(`span`,{children:e})]},e))}),(0,z.jsx)(`p`,{className:`mt-6 font-Inter text-sm leading-relaxed text-[#647579]`,children:`Outside Privacy Mode, selecting a cloud model sends the context needed for that request to the selected provider.`}),(0,z.jsx)(`p`,{className:`mt-8 rounded-xl bg-[#f6f3ed] p-5 font-Inter text-sm leading-relaxed text-[#647579]`,children:r.note})]})]})}),(0,z.jsx)(`section`,{className:`border-y border-[#d8d2c6] bg-[#102a2f] px-6 py-20 text-white`,children:(0,z.jsxs)(`div`,{className:`mx-auto grid max-w-[1100px] gap-12 lg:grid-cols-[0.8fr_1.2fr] lg:items-start`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`font-Inter text-sm font-semibold uppercase tracking-[0.18em] text-[#f1b88d]`,children:`Evidence without telemetry`}),(0,z.jsx)(`h2`,{className:`mt-4 font-Spectral text-4xl leading-tight`,children:`You decide whether to share proof.`}),(0,z.jsx)(`p`,{className:`mt-5 font-Inter text-lg leading-relaxed text-white/75`,children:`Privacy Mode does not send product analytics. After a successful paid-pilot workflow, Knapsack can instead create a local receipt that you may review, copy, and share voluntarily.`})]}),(0,z.jsx)(`div`,{className:`grid gap-5 sm:grid-cols-3`,children:[{step:`1`,title:`Use real approved data`,body:`Attach an approved file, or use a directly authorized Google email or calendar source, and receive a successful local response.`},{step:`2`,title:`Return in a later week`,body:`A later successful Privacy Mode workflow updates the same local receipt so weekly use can be verified without background telemetry.`},{step:`3`,title:`Review and share`,body:`In Settings, choose Copy privacy pilot receipt. It records source categories and dates—not prompts, responses, filenames, or account identity.`}].map(e=>(0,z.jsxs)(`article`,{className:`rounded-2xl border border-white/15 bg-white/5 p-6`,children:[(0,z.jsx)(`div`,{className:`flex h-9 w-9 items-center justify-center rounded-full bg-[#f1b88d] font-Inter font-semibold text-[#102a2f]`,children:e.step}),(0,z.jsx)(`h3`,{className:`mt-5 font-Spectral text-2xl`,children:e.title}),(0,z.jsx)(`p`,{className:`mt-3 font-Inter text-sm leading-relaxed text-white/70`,children:e.body})]},e.step))})]})}),(0,z.jsx)(`section`,{className:`px-6 py-20 text-center`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[760px]`,children:[(0,z.jsx)(`h2`,{className:`font-Spectral text-4xl leading-tight`,children:`Start with one controlled workflow.`}),(0,z.jsx)(`p`,{className:`mt-4 font-Inter text-lg text-[#56696c]`,children:`Install Knapsack, set up local Ollama, turn on Privacy Mode, and start with non-sensitive material.`}),(0,z.jsxs)(`div`,{className:`mt-8 flex flex-col justify-center gap-4 sm:flex-row`,children:[(0,z.jsxs)(`a`,{href:i,onClick:()=>o(`footer`),className:`inline-flex items-center justify-center gap-2 rounded-full bg-[#102a2f] px-8 py-4 font-Inter font-semibold text-white transition-colors hover:bg-[#1b4148]`,children:[`Download Knapsack `,(0,z.jsx)(lm,{className:`h-4 w-4`})]}),(0,z.jsx)(`a`,{href:t,onClick:async t=>{t.preventDefault();let n=$.get();await Promise.race([Q.trackEventAndFlush(`www_privacy_team_inbound_handoff_started`,{...a,inbound_channel:`email`,handoff_purpose:`receipt_or_team_controls`,privacy_receipt_requested:!0,attribution_reference_present:!!n.attr_id,...$.eventProps()}),new Promise(e=>window.setTimeout(e,1200))]),window.location.href=Ij(e)},className:`inline-flex items-center justify-center rounded-full border border-[#102a2f] px-8 py-4 font-Inter font-semibold transition-colors hover:bg-white`,children:`Share receipt or discuss team controls`})]})]})})]})}function zj(){return(0,z.jsx)(kn,{children:(0,z.jsxs)(Bt,{children:[(0,z.jsx)(j,{path:`/auth-callback`,element:(0,z.jsx)(RA,{})}),(0,z.jsx)(j,{path:`/*`,element:(0,z.jsx)(sA,{children:(0,z.jsxs)(Bt,{children:[(0,z.jsx)(j,{path:`/`,element:(0,z.jsx)(kA,{})}),(0,z.jsx)(j,{path:`/desktop`,element:(0,z.jsx)(Cj,{})}),(0,z.jsx)(j,{path:`/downloading`,element:(0,z.jsx)(Mj,{})}
134),(0,z.jsx)(j,{path:`/private-openclaw-for-financial-advisors`,element:(0,z.jsx)(Rj,{audience:`advisor`})}),(0,z.jsx)(j,{path:`/private-openclaw-for-lawyers`,element:(0,z.jsx)(Rj,{audience:`lawyer`})}),(0,z.jsx)(j,{path:`/privacy-policy`,element:(0,z.jsx)(AA,{})}),(0,z.jsx)(j,{path:`/terms`,element:(0,z.jsx)(jA,{})}),(0,z.jsx)(j,{path:`/compliance`,element:(0,z.jsx)(NA,{})}),(0,z.jsx)(j,{path:`/modelfa`,element:(0,z.jsx)(FA,{})}),(0,z.jsx)(j,{path:`/extension`,element:(0,z.jsx)(LA,{})}),(0,z.jsx)(j,{path:`/thank-you`,element:(0,z.jsx)(zA,{})}),(0,z.jsx)(j,{path:`/fa`,element:(0,z.jsx)(VA,{})}),(0,z.jsx)(j,{path:`/executive-assistant`,element:(0,z.jsx)(HA,{})}),(0,z.jsx)(j,{path:`/enterprise-sdr`,element:(0,z.jsx)(UA,{})}),(0,z.jsx)(j,{path:`/ads-optimizer`,element:(0,z.jsx)(WA,{})}),(0,z.jsx)(j,{path:`/paraplanner`,element:(0,z.jsx)(GA,{})}),(0,z.jsx)(j,{path:`/project-coordinator`,element:(0,z.jsx)(KA,{})}),(0,z.jsx)(j,{path:`/customer-success-manager`,element:(0,z.jsx)(qA,{})}),(0,z.jsx)(j,{path:`/recruiting-coordinator`,element:(0,z.jsx)(JA,{})}),(0,z.jsx)(j,{path:`/bookkeeper`,element:(0,z.jsx)(YA,{})}),(0,z.jsx)(j,{path:`/creator-coach`,element:(0,z.jsx)(Rt,{to:`/daily-expert`,replace:!0})}),(0,z.jsx)(j,{path:`/daily-expert`,element:(0,z.jsx)(XA,{})}),(0,z.jsx)(j,{path:`/daily-coach`,element:(0,z.jsx)(ZA,{})}),(0,z.jsx)(j,{path:`/email-autopilot`,element:(0,z.jsx)(QA,{})}),(0,z.jsx)(j,{path:`/meeting-notes-to-crm`,element:(0,z.jsx)($A,{})}),(0,z.jsx)(j,{path:`/travel-outreach`,element:(0,z.jsx)(ej,{})}),(0,z.jsx)(j,{path:`/lp-quarterly-update`,element:(0,z.jsx)(tj,{})}),(0,z.jsx)(j,{path:`/pitch-evaluator`,element:(0,z.jsx)(nj,{})}),(0,z.jsx)(j,{path:`/investment-memorandum-drafter`,element:(0,z.jsx)(rj,{})}),(0,z.jsx)(j,{path:`/due-diligence`,element:(0,z.jsx)(ij,{})}),(0,z.jsx)(j,{path:`/quarterly-meeting-prep`,element:(0,z.jsx)(aj,{})}),(0,z.jsx)(j,{path:`/tax-planning-meeting-prep`,element:(0,z.jsx)(oj,{})}),(0,z.jsx)(j,{path:`/year-end-tax-planning`,element:(0,z.jsx)(sj,{})}),(0,z.jsx)(j,{path:`/discovery-meeting-prep`,element:(0,z.jsx)(cj,{})}),(0,z.jsx)(j,{path:`/weekend-strategy-reflections`,element:(0,z.jsx)(lj,{})}),(0,z.jsx)(j,{path:`/meeting-prep`,element:(0,z.jsx)(uj,{})}),(0,z.jsx)(j,{path:`/meeting-follow-up`,element:(0,z.jsx)(dj,{})}),(0,z.jsx)(j,{path:`/knapmaker`,element:(0,z.jsx)(fj,{})}),(0,z.jsx)(j,{path:`/salesforce-case-review`,element:(0,z.jsx)(pj,{})}),(0,z.jsx)(j,{path:`/pricing`,element:(0,z.jsx)(mj,{})}),(0,z.jsx)(j,{path:`/meeting-note-taker`,element:(0,z.jsx)(hj,{})}),(0,z.jsx)(j,{path:`/platform-overview`,element:(0,z.jsx)(gj,{})}),(0,z.jsx)(j,{path:`/financial-services-ai-roles`,element:(0,z.jsx)(Pj,{})}),(0,z.jsx)(j,{path:`/download`,element:(0,z.jsx)(Ej,{})}),Zk.map(e=>(0,z.jsx)(j,{path:`/${e}`,element:(0,z.jsx)(tA,{slug:e})},e))]})})})]})})}(0,er.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(zj,{}));

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.